]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Make TUI resizing tests more robust
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-12 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-win.c (resize_message): New global.
4 (show_tui_resize_message): New function.
5 (tui_async_resize_screen): Print message if requested.
6 (_initialize_tui_win): Add tui-resize-message setting.
7 * NEWS: Add entry for new commands.
8
9 2019-11-11 Tom Tromey <tom@tromey.com>
10
11 * tui/tui.c (tui_initialize_readline): Add new bindable readline
12 functions.
13
14 2019-11-11 Christian Biesinger <cbiesinger@google.com>
15
16 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
17
18 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
21 function.
22 * python/python-internal.h (gdbpy_lookup_static_symbols):
23 Declare new function.
24 * python/python.c (python_GdbMethods): Add
25 gdb.lookup_static_symbols method.
26 * NEWS: Mention gdb.lookup_static_symbols.
27
28 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
31 static block of current object file first. Also fix typo in
32 header comment.
33
34 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * stack.c (set_last_displayed_sal): Delete.
37 (last_displayed_sal_valid): Delete.
38 (last_displayed_pspace): Delete.
39 (last_displayed_addr): Delete.
40 (last_displayed_symtab): Delete.
41 (last_displayed_line): Delete.
42 (class last_displayed_symtab_info_type): New.
43 (last_displayed_symtab_info): New static global variable.
44 (print_frame_info): Call methods on last_displayed_symtab_info.
45 (clear_last_displayed_sal): Update header comment, and make use of
46 last_displayed_symtab_info.
47 (last_displayed_sal_is_valid): Likewise.
48 (get_last_displayed_pspace): Likewise.
49 (get_last_displayed_addr): Likewise.
50 (get_last_displayed_symtab): Likewise.
51 (get_last_displayed_line): Likewise.
52 (get_last_displayed_sal): Likewise.
53 * stack.h (clear_last_displayed_sal): Update header comment.
54 (last_displayed_sal_is_valid): Likewise.
55 (get_last_displayed_pspace): Likewise.
56 (get_last_displayed_addr): Likewise.
57 (get_last_displayed_symtab): Likewise.
58 (get_last_displayed_line): Likewise.
59 (get_last_displayed_sal): Likewise.
60
61 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * stack.c (frame_show_address): Convert return type to bool.
64 * stack.h (frame_show_address): Likewise, and update header
65 comment.
66
67 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
70 * unittests/vec-utils-selftests.c: New file.
71 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
72
73 2019-11-10 Tom Tromey <tom@tromey.com>
74
75 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
76 (tui_highlight_win): Likewise.
77 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
78 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
79 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
80 Don't set can_highlight.
81
82 2019-11-10 Tom Tromey <tom@tromey.com>
83
84 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
85 Remove unused declaration.
86
87 2019-11-08 Tom Tromey <tromey@adacore.com>
88
89 * top.c (read_command_file): Update.
90 (command_line_input): Make return type const.
91 * python/py-gdb-readline.c: Update.
92 * linespec.c (decode_line_2): Update.
93 * defs.h (command_line_input): Make return type const.
94 * cli/cli-script.c (read_next_line): Make return type const.
95 * ada-lang.c (get_selections): Update.
96
97 2019-11-06 Christian Biesinger <cbiesinger@google.com>
98
99 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
100 * mi/mi-main.c (output_cores): Likewise.
101 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
102 (linux_xfer_osdata_modules): Likewise.
103 * remote.c (register_remote_support_xml): Likewise.
104 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
105 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
106
107 2019-11-06 Tom Tromey <tom@tromey.com>
108
109 * tui/tui-interp.c: Don't include readline.h.
110 * tui/tui-hooks.c: Don't include readline.h.
111 * symmisc.c: Include tilde.h, not readline.h.
112 * symfile.c: Include tilde.h, not readline.h.
113 * source.c: Include tilde.h, not readline.h.
114 * solib.c: Include tilde.h, not readline.h.
115 * psymtab.c: Include tilde.h, not readline.h.
116 * exec.c: Include tilde.h, not readline.h.
117 * corelow.c: Include tilde.h, not readline.h.
118 * cli/cli-dump.c: Include tilde.h, not readline.h.
119 * cli/cli-cmds.c: Don't include readline.h.
120
121 2019-11-05 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
124 (tui_disassemble): Set addr_size.
125 (tui_disasm_window::set_contents): Use addr_size.
126
127 2019-11-05 Tom Tromey <tom@tromey.com>
128
129 * rust-lang.c (rust_language_defn): Update.
130 * python/py-value.c (valpy_string): Call c_get_string.
131 * p-lang.c (pascal_language_defn): Update.
132 * opencl-lang.c (opencl_language_defn): Update.
133 * objc-lang.c (objc_language_defn): Update.
134 * m2-lang.c (m2_language_defn): Update.
135 * language.c (unknown_language_defn, auto_language_defn): Update.
136 (default_get_string): Remove.
137 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
138 * go-lang.c (go_language_defn): Update.
139 * f-lang.c (f_language_defn): Update.
140 * d-lang.c (d_language_defn): Update.
141 * c-lang.c (c_language_defn, cplus_language_defn)
142 (asm_language_defn, minimal_language_defn): Update.
143 * ada-lang.c (ada_language_defn): Update.
144 * language.h (struct language_defn) <la_get_string>: Remove.
145 (LA_GET_STRING): Remove.
146 (default_get_string): Don't declare.
147
148 2019-11-05 Tom Tromey <tom@tromey.com>
149
150 * tui/tui-source.h (struct tui_source_window): Inline
151 constructor. Remove destructor.
152 <style_changed, m_observable>: Move to superclass.
153 * tui/tui-winsource.h (tui_copy_source_line): Declare.
154 (struct tui_source_window_base): Move private members to end.
155 <style_changed, m_observable>: Move from tui_source_window.
156 * tui/tui-winsource.c (tui_copy_source_line): Move from
157 tui-source.c. Rename from copy_source_line. Add special handling
158 for negative line number.
159 (tui_source_window_base::style_changed): Move from
160 tui_source_window.
161 (tui_source_window_base): Register observer.
162 (~tui_source_window_base): New.
163 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
164 rename.
165 (tui_source_window::set_contents): Use tui_copy_source_line.
166 (tui_source_window::tui_source_window): Move to tui-source.h.
167 (tui_source_window::~tui_source_window): Remove.
168 (tui_source_window::style_changed): Move to superclass.
169 * tui/tui-disasm.c (tui_disassemble): Create string file with
170 styling, when possible. Add "addr_size" parameter.
171 (tui_disasm_window::set_contents): Use tui_copy_source_line.
172 Don't compute maximum size.
173 (len_without_escapes): New function
174
175 2019-11-05 Tom Tromey <tom@tromey.com>
176
177 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
178 std::string.
179 * tui/tui-winsource.c (tui_show_source_line): Update.
180 * tui/tui-source.c (tui_source_window::set_contents): Update.
181 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
182
183 2019-11-05 Christian Biesinger <cbiesinger@google.com>
184
185 * symtab.h (gdb_static_assert): Put && operator at the beginning
186 of the line instead of the end.
187
188 2019-11-04 Christian Biesinger <cbiesinger@google.com>
189
190 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
191 and sizeof (symbol).
192 * symtab.h: Add a static_assert for sizeof (partial_symbol).
193
194 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195
196 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
197 * configure.host: Mark *-*-solaris2.10* obsolete.
198 * configure.tgt: Mark Solaris < 11 obsolete.
199 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
200 Update target triplet.
201
202 2019-11-01 Tom Tromey <tromey@adacore.com>
203
204 * utils.c (print_sys_errmsg): Simplify.
205
206 2019-11-01 Tom Tromey <tromey@adacore.com>
207
208 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
209
210 2019-11-01 Christian Biesinger <cbiesinger@google.com>
211
212 * configure: Regenerate.
213 * configure.ac: Remove check for strerror_r.
214 * gdbsupport/common.m4: Check for strerror_r.
215
216 2019-11-01 Luis Machado <luis.machado@linaro.org>
217
218 PR gdb/25124
219
220 * arm-tdep.c (arm_per_objfile): Rename to ...
221 (arm_per_bfd): ... this.
222 (arm_objfile_data_key): Rename to ...
223 (arm_bfd_data_key): ... this.
224 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
225 data.
226 (arm_record_special_symbol): Likewise.
227
228 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
231 end.
232 * c-typeprint.c (c_print_typedef): Likewise.
233 * f-typeprint.c (f_print_typedef): Likewise.
234 * m2-typeprint.c (m2_print_typedef): Likewise.
235 * p-typeprint.c (pascal_print_typedef): Likewise.
236 * rust-lang.c (rust_print_typedef): Likewise.
237 * symtab.c (print_symbol_info): Print a newline after calling
238 typedef_print.
239
240 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * symtab.c (info_module_cmdlist): New variable.
243 (info_module_command): New function.
244 (search_module_symbols): New function.
245 (info_module_subcommand): New function.
246 (struct info_modules_var_func_options): New struct.
247 (info_modules_var_func_options_defs): New variable.
248 (make_info_modules_var_func_options_def_group): New function.
249 (info_module_functions_command): New function.
250 (info_module_variables_command): New function.
251 (info_module_var_func_command_completer): New function.
252 (_initialize_symtab): Register new 'info module functions' and
253 'info module variables' commands.
254 * symtab.h (typedef symbol_search_in_module): New typedef.
255 (search_module_symbols): Declare new function.
256 * NEWS: Mention new commands.
257
258 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
261 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
262 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
263 MODULES_DOMAIN.
264 (scan_partial_symbols): Only create partial module symbols for non
265 declarations.
266 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
267 and MODULES_DOMAIN.
268 * symtab.c (search_domain_name): Likewise.
269 (search_symbols): Likewise.
270 (print_symbol_info): Likewise.
271 (symtab_symbol_info): Likewise.
272 (info_modules_command): New function.
273 (_initialize_symtab): Register 'info modules' command.
274 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
275 * NEWS: Mention new 'info modules' command.
276
277 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
278
279 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
280 and $_gdb_maint_setting_str.
281
282 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
283
284 * cli/cli-cmds.c (setting_cmd, value_from_setting)
285 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
286 (str_value_from_setting, gdb_setting_str_internal_fn)
287 (gdb_maint_setting_str_internal_fn): New functions.
288 (_initialize_cli_cmds): Define the new convenience functions.
289 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
290 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
291
292 2019-10-31 Christian Biesinger <cbiesinger@google.com>
293
294 * agent.c (set_can_use_agent): When the setting is turned on,
295 look up agent symbols if we don't have them yet.
296 (agent_new_objfile): Don't look up agent symbols when the agent
297 setting is off.
298
299 2019-10-31 Christian Biesinger <cbiesinger@google.com>
300
301 * config.in: Regenerate.
302
303 2019-10-31 Christian Biesinger <cbiesinger@google.com>
304
305 * configure: Regenerate.
306 * configure.ac: Check for strerror_r.
307 * gdbsupport/common-utils.h (safe_strerror): Change return value
308 to const char * and document that this function is now threadsafe.
309 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
310 thread_local and call strerror_r, if available.
311 * utils.c (perror_string): Update.
312 (print_sys_errmsg): Update.
313
314 2019-10-31 Luis Machado <luis.machado@linaro.org>
315
316 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
317 objfile_key.
318 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
319 objfile to fetch per-bfd data.
320 (arm_find_exidx_entry): Likewise.
321
322 2019-10-31 Christian Biesinger <cbiesinger@google.com>
323
324 * gdbsupport/agent.c (debug_agent): Change type to bool.
325 (use_agent): Likewise.
326 (all_agent_symbols_look_up): Likewise.
327 (agent_loaded_p): Change return value to bool.
328 (agent_look_up_symbols): Update.
329 (agent_capability_check): Change return value to bool.
330 * gdbsupport/agent.h (agent_loaded_p): Likewise.
331 (debug_agent): Change type to bool.
332 (use_agent): Likewise.
333 (agent_capability_check): Change return value to bool.
334
335 2019-10-30 Christian Biesinger <cbiesinger@google.com>
336
337 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
338 (build_minimal_symbol_hash_tables): Code to clear the table moved
339 to clear_minimal_symbol_hash_tables.
340 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
341 when needed.
342
343 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * infcmd.c: Remove includes.
346 * infrun.c: Remove includes.
347
348 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
351 (grow_vect): Remove declaration.
352 (ada_type_of_array): Remove declaration.
353 (ada_update_initial_language): Remove declaration.
354 (ada_fold_name): Remove declaration.
355 (ada_fill_in_ada_prototype): Remove declaration.
356 (user_select_syms): Remove declaration.
357 (get_selections): Remove declaration.
358 (ada_tag_type): Remove declaration.
359 (ada_value_tag): Remove declaration.
360 (ada_is_others_clause): Remove declaration.
361 (ada_in_variant): Remove declaration.
362 (ada_value_struct_elt): Remove declaration.
363 (ada_attribute_name): Remove declaration.
364 (ada_system_address_type): Remove declaration.
365 * ada-lang.c (ada_watch_location_expression): Make static.
366 (GROW_VECT): Move here from ada-lang.h.
367 (grow_vect): Make static.
368 (ada_update_initial_language): Make static.
369 (ada_fold_name): Make static.
370 (ada_type_of_array): Make static.
371 (encoded_ordered_before): Move up.
372 (sort_choices): Move up.
373 (print_signatures): Move up.
374 (ada_print_symbol_signature): Move up.
375 (get_selections): Move up and make static.
376 (user_select_syms): Move up and make static.
377 (ada_value_struct_elt): Move up and make static.
378 (ada_tag_type): Make static.
379 (ada_value_tag): Make static.
380 (ada_is_others_clause): Make static.
381 (ada_in_variant): Make static.
382 (ada_attribute_name): Make static.
383
384 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * ada-lang.c: Remove includes.
387 * ada-typeprint.c: Remove includes.
388 * ada-valprint.c: Remove includes.
389
390 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
391
392 * addrmap.c: Add static assertions of type size, moved from
393 _initialize_addrmap.
394 (_initialize_addrmap): Remove.
395
396 2019-10-29 Christian Biesinger <cbiesinger@google.com>
397
398 * coffread.c (record_minimal_symbol): Update.
399 (process_coff_symbol): Update.
400 * dbxread.c (read_dbx_symtab): Update.
401 * dwarf2read.c (add_partial_symbol): Update.
402 (fixup_go_packaging): Update.
403 (load_partial_dies): Update.
404 (new_symbol): Update.
405 * elfread.c (record_minimal_symbol): Change signature to use
406 gdb::string_view instead of name+len.
407 (elf_symtab_read): Update.
408 (elf_rel_plt_read): Update.
409 * mdebugread.c (parse_partial_symbols): Update.
410 (handle_psymbol_enumerators): Update.
411 (new_symbol): Update.
412 * minsyms.c (minimal_symbol_reader::record_full): Change signature
413 to use gdb::string_view instead of name+len.
414 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
415 * psympriv.h (add_psymbol_to_list): Likewise.
416 * psymtab.c (add_psymbol_to_bcache): Likewise.
417 (add_psymbol_to_list): Likewise.
418 * stabsread.c (define_symbol): Update.
419 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
420 * symtab.h (SYMBOL_SET_NAMES): Likewise.
421 (symbol_set_names): Likewise.
422 * xcoffread.c (scan_xcoff_symtab): Update.
423
424 2019-10-29 Christian Biesinger <cbiesinger@google.com>
425
426 * symtab.h (symbol_set_names): Document that copy_name must be
427 set to true for non-nullterminated strings.
428 * symtab.c (symbol_set_names): Only make a nullterminated copy of
429 linkage_name if the entry was not found and we need to demangle.
430
431 2019-10-29 Christian Biesinger <cbiesinger@google.com>
432
433 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
434 * dwarf2-frame.c (bsearch_fde_cmp): Update.
435 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
436 * gdbsupport/gdb_binary_search.h: New file.
437
438 2019-10-29 Christian Biesinger <cbiesinger@google.com>
439
440 * NEWS: Mention new --with-system-gdbinit-dir option.
441 * config.in: Regenerate.
442 * configure: Regenerate.
443 * configure.ac: Add new option --with-system-gdbinit-dir.
444 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
445 for a ".gdb" suffix.
446 * main.c (get_init_files): Change system_gdbinit argument to
447 a vector and return the files in SYSTEM_GDBINIT_DIR in
448 addition to SYSTEM_GDBINIT.
449 (captured_main_1): Update.
450 (print_gdb_help): Update.
451 * top.c (print_gdb_configuration): Also print the value of
452 SYSTEM_GDBINIT_DIR.
453
454 2019-10-28 Christian Biesinger <cbiesinger@google.com>
455
456 * gdbsupport/common-utils.h (startswith): Add an overloaded version
457 that takes gdb::string_view arguments.
458
459 2019-10-26 Tom de Vries <tdevries@suse.de>
460
461 * aarch64-linux-tdep.c: Fix typos in comments.
462 * aarch64-tdep.c: Same.
463 * ada-lang.c: Same.
464 * amd64-nat.c: Same.
465 * arc-tdep.c: Same.
466 * arch/aarch64-insn.c: Same.
467 * block.c: Same.
468 * breakpoint.h: Same.
469 * btrace.h: Same.
470 * c-varobj.c: Same.
471 * cli/cli-decode.c: Same.
472 * cli/cli-script.c: Same.
473 * cli/cli-utils.h: Same.
474 * coff-pe-read.c: Same.
475 * coffread.c: Same.
476 * compile/compile-cplus-symbols.c: Same.
477 * compile/compile-object-run.c: Same.
478 * completer.c: Same.
479 * corelow.c: Same.
480 * cp-support.c: Same.
481 * demangle.c: Same.
482 * dwarf-index-write.c: Same.
483 * dwarf2-frame.c: Same.
484 * dwarf2-frame.h: Same.
485 * eval.c: Same.
486 * frame-base.h: Same.
487 * frame.h: Same.
488 * gdbcmd.h: Same.
489 * gdbtypes.h: Same.
490 * gnu-nat.c: Same.
491 * guile/scm-objfile.c: Same.
492 * i386-tdep.c: Same.
493 * i386-tdep.h: Same.
494 * infcall.c: Same.
495 * infcall.h: Same.
496 * linux-nat.c: Same.
497 * m68k-tdep.c: Same.
498 * macroexp.c: Same.
499 * memattr.c: Same.
500 * mi/mi-cmd-disas.c: Same.
501 * mi/mi-getopt.h: Same.
502 * mi/mi-main.c: Same.
503 * minsyms.c: Same.
504 * nat/aarch64-sve-linux-sigcontext.h: Same.
505 * objfiles.h: Same.
506 * ppc-linux-nat.c: Same.
507 * ppc-linux-tdep.c: Same.
508 * ppc-tdep.h: Same.
509 * progspace.h: Same.
510 * prologue-value.h: Same.
511 * python/py-evtregistry.c: Same.
512 * python/py-instruction.h: Same.
513 * record-btrace.c: Same.
514 * record-full.c: Same.
515 * remote.c: Same.
516 * rs6000-tdep.c: Same.
517 * ser-tcp.c: Same.
518 * sol-thread.c: Same.
519 * sparc-sol2-tdep.c: Same.
520 * sparc64-tdep.c: Same.
521 * stabsread.c: Same.
522 * symfile.c: Same.
523 * symtab.h: Same.
524 * target.c: Same.
525 * tracepoint.c: Same.
526 * tui/tui-data.h: Same.
527 * tui/tui-io.c: Same.
528 * tui/tui-win.c: Same.
529 * tui/tui.c: Same.
530 * unittests/rsp-low-selftests.c: Same.
531 * user-regs.h: Same.
532 * utils.c: Same.
533 * utils.h: Same.
534 * valarith.c: Same.
535 * valops.c: Same.
536 * valprint.c: Same.
537 * valprint.h: Same.
538 * value.c: Same.
539 * value.h: Same.
540 * varobj.c: Same.
541 * x86-nat.h: Same.
542 * xtensa-tdep.c: Same.
543
544 2019-10-25 Ali Tamur <tamur@google.com>
545
546 * charset.c (find_charset_names): Reflect API change.
547
548 2019-10-25 Christian Biesinger <cbiesinger@google.com>
549
550 * symtab.c (struct demangled_name_entry): Change demangled name
551 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
552 part of the struct anymore.
553 (symbol_set_names): No longer obstack allocate + copy the demangled
554 name, just store the allocated name from bfd.
555
556 2019-10-25 Tom Tromey <tromey@adacore.com>
557
558 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
559 (bsearch_cie_cmp, add_cie): Remove.
560 (find_cie): Reimplement.
561 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
562 (dwarf2_build_frame_info): Update.
563
564 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR gdb/25126
567 * symfile.c (reread_symbols): Call forget_cached_source_info to
568 clear the stale source cache.
569
570 2019-10-24 Christian Biesinger <cbiesinger@google.com>
571
572 * configure: Regenerate.
573 * configure.ac: Remove code that sets python_has_threads.
574
575 2019-10-24 Christian Biesinger <cbiesinger@google.com>
576
577 * config.in: Regenerate.
578 * configure: Regenerate.
579 * configure.ac: Remove the code that uses sed to get the python
580 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
581
582 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * python/py-progspace.c (pspy_block_for_pc): Return None for all
585 error paths.
586
587 2019-10-23 Tom Tromey <tom@tromey.com>
588
589 * arc-tdep.c: Remove ".." from include.
590 * frv-tdep.c: Remove ".." from include.
591 * lm32-tdep.c: Remove ".." from include.
592 * microblaze-tdep.c: Remove ".." from include.
593 * or1k-tdep.h: Remove ".." from include.
594 * s12z-tdep.c: Remove ".." from include.
595 * Makefile.in (OPCODES_CFLAGS): Add comment.
596 (TOP_CFLAGS): New variable.
597 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
598
599 2019-10-23 Tom Tromey <tom@tromey.com>
600
601 * Makefile.in (READLINE_DIR): Update.
602
603 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
604
605 * infcall.c (call_function_by_hand_dummy): Fix the function
606 comment. And extract out a code section into...
607 (reserve_stack_space): ...this new function.
608
609 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610
611 * infcall.c (value_arg_coerce): Remove an unused parameter.
612 (call_function_by_hand_dummy): Update the call to
613 'value_arg_coerce'.
614
615 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616
617 * infcall.c (call_function_by_hand_dummy): Refactor.
618
619 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620
621 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
622
623 2019-10-23 Tom Tromey <tom@tromey.com>
624
625 * configure: Rebuild.
626 * configure.ac: Don't check for sigprocmask.
627 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
628
629 2019-10-23 Tom Tromey <tom@tromey.com>
630
631 * configure: Rebuild.
632 * acinclude.m4: Use m4_include, not sinclude.
633
634 2019-10-23 Tom de Vries <tdevries@suse.de>
635
636 PR breakpoints/24687
637 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
638
639 2019-10-22 Christian Biesinger <cbiesinger@google.com>
640
641 * symtab.c (struct demangled_name_entry) <language>: Change from
642 bitfield to regular variable.
643
644 2019-10-22 Christian Biesinger <cbiesinger@google.com>
645
646 * symtab.c (struct demangled_name_entry): Add a constructor.
647 (free_demangled_name_entry): New function to call the destructor
648 for demangled_name_entry.
649 (create_demangled_names_hash): Pass free_demangled_name_entry to
650 htab_create_alloc.
651 (symbol_set_names): Call placement new for demangled_name_entry.
652 * utils.c: No longer include xxhash.h here, now that fast_hash
653 is inlined in the header.
654 * utils.h: Instead, include it here.
655
656 2019-10-22 Christian Biesinger <cbiesinger@google.com>
657
658 * Makefile.in: Link with libxxhash.
659 * config.in: Regenerate.
660 * configure: Regenerate.
661 * configure.ac: Search for libxxhash.
662 * utils.c (fast_hash): Use xxhash if present.
663
664 2019-10-22 Christian Biesinger <cbiesinger@google.com>
665
666 * utils.h (fast_hash): New function.
667 * symtab.c (hash_demangled_name_entry): Call new function
668 fast_hash.
669
670 2019-10-22 Christian Biesinger <cbiesinger@google.com>
671
672 * symtab.c (struct demangled_name_entry): Change type of mangled
673 to gdb::string_view. Also adds a constructor that takes the
674 mangled name.
675 (hash_demangled_name_entry): Update.
676 (eq_demangled_name_entry): Update.
677 (free_demangled_name_entry): New function to call the destructor
678 now that this is not a POD anymore.
679 (create_demangled_names_hash): Pass free_demangled_name_entry to
680 htab_create_alloc.
681 (symbol_set_names): Update.
682
683 2019-10-21 Ali Tamur <tamu@google.com>
684
685 * dwarf2read.c (dir_index): Change type.
686 (file_name_index): Likewise.
687 (line_header::include_dir_at): Change comment and implementation on
688 whether it is DWARF 5.
689 (line_header::is_valid_file_index): New function.
690 (line_header::file_name_at): Change comment and implementation on
691 whether it is DWARF 5.
692 (line_header::file_names): Change to private field renamed as
693 m_file_names and introduce a new accessor method.
694 (line_header::file_names_size): New method.
695 (line_header::include_dirs): Change to private field and rename as
696 m_include_dirs.
697 (dw2_get_file_names_reader): Define local var at a smaller scope and
698 reflect API change.
699 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
700 (process_structure_scope): Likewise.
701 (line_header::add_include_dir): Change message and reflect renaming.
702 (line_header::add_file_name): Likewise.
703 (read_formatted_entries): Handle DW_FORM_data16.
704 (dwarf_decode_line_header): Fix line header length calculation.
705 (psymtab_include_file_name): Change comment and API.
706 (lnp_state_machine::m_file): Update comment and reflect type change.
707 (lnp_state_machine::record_line): Reflect type change.
708 (dwarf_decode_lines): Reflect API change.
709 (file_file_name): Likewise.
710 (file_full_name): Likewise.
711
712 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
715
716 2019-10-21 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
719
720 2019-10-21 Tom Tromey <tom@tromey.com>
721
722 * configure.ac (nm.h): Conditionally create nm.h link. Subst
723 NM_H. Use AC_CONFIG_LINKS.
724 * configure: Rebuild.
725 * Makefile.in (NM_H): New variable.
726 (generated_files): Add NM_H. Remove gcore.
727 (nm.h, stamp-nmh): New targets.
728
729 2019-10-20 Tom Tromey <tom@tromey.com>
730
731 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
732 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
733 obsolete comment.
734 (put_objfile_before): Now static.
735
736 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * gdbsupport/common-utils.h (startswith): Change return type to
739 bool.
740
741 2019-10-19 Christian Biesinger <cbiesinger@google.com>
742
743 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
744 * breakpoint.c (bp_locations_compare): Rename to...
745 (bp_location_is_less_than): ...this, and change to std::sort semantics.
746 (update_global_location_list): Use std::sort instead of qsort.
747 * buildsym.c (compare_line_numbers): Rename to...
748 (lte_is_less_than): ...this, and change to std::sort semantics.
749 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
750 instead of qsort.
751 * disasm.c (compare_lines): Rename to...
752 (line_is_less_than): ...this, and change to std::sort semantics.
753 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
754 of qsort.
755 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
756 (fde_is_less_than): ...this, and change to std::sort semantics.
757 (dwarf2_build_frame_info): Call std::sort instead of qsort.
758 * mdebugread.c (compare_blocks):
759 (block_is_less_than): ...this, and change to std::sort semantics.
760 (sort_blocks): Call std::sort instead of qsort.
761 * objfiles.c (qsort_cmp): Rename to...
762 (sort_cmp): ...this, and change to std::sort semantics.
763 (update_section_map): Call std::sort instead of qsort.
764 * remote.c (compare_pnums): Remove.
765 (map_regcache_remote_table): Call std::sort instead of qsort.
766 * utils.c (compare_positive_ints): Remove.
767 * utils.h (compare_positive_ints): Remove.
768 * xcoffread.c (compare_lte): Remove.
769 (arrange_linetable): Call std::sort instead of qsort.
770
771 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
772
773 * symfile.c (init_entry_point_info): Fix typo.
774 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
775
776 2019-10-18 Tom de Vries <tdevries@suse.de>
777
778 * aarch64-tdep.c: Fix typos in comments.
779 * ada-lang.c: Same.
780 * ada-tasks.c: Same.
781 * alpha-tdep.c: Same.
782 * alpha-tdep.h: Same.
783 * amd64-nat.c: Same.
784 * amd64-windows-tdep.c: Same.
785 * arc-tdep.c: Same.
786 * arc-tdep.h: Same.
787 * arch-utils.c: Same.
788 * arm-nbsd-tdep.c: Same.
789 * arm-tdep.c: Same.
790 * ax-gdb.c: Same.
791 * blockframe.c: Same.
792 * btrace.c: Same.
793 * c-varobj.c: Same.
794 * coff-pe-read.c: Same.
795 * coffread.c: Same.
796 * cris-tdep.c: Same.
797 * darwin-nat.c: Same.
798 * dbxread.c: Same.
799 * dcache.c: Same.
800 * disasm.c: Same.
801 * dtrace-probe.c: Same.
802 * dwarf-index-write.c: Same.
803 * dwarf2-frame-tailcall.c: Same.
804 * dwarf2-frame.c: Same.
805 * dwarf2read.c: Same.
806 * eval.c: Same.
807 * exceptions.c: Same.
808 * fbsd-tdep.c: Same.
809 * findvar.c: Same.
810 * frame.c: Same.
811 * frv-tdep.c: Same.
812 * gnu-v3-abi.c: Same.
813 * go32-nat.c: Same.
814 * h8300-tdep.c: Same.
815 * hppa-tdep.c: Same.
816 * i386-linux-tdep.c: Same.
817 * i386-tdep.c: Same.
818 * ia64-libunwind-tdep.c: Same.
819 * ia64-tdep.c: Same.
820 * infcmd.c: Same.
821 * infrun.c: Same.
822 * linespec.c: Same.
823 * linux-nat.c: Same.
824 * linux-thread-db.c: Same.
825 * machoread.c: Same.
826 * mdebugread.c: Same.
827 * mep-tdep.c: Same.
828 * mn10300-tdep.c: Same.
829 * namespace.c: Same.
830 * objfiles.c: Same.
831 * opencl-lang.c: Same.
832 * or1k-tdep.c: Same.
833 * osabi.c: Same.
834 * ppc-linux-nat.c: Same.
835 * ppc-linux-tdep.c: Same.
836 * ppc-sysv-tdep.c: Same.
837 * printcmd.c: Same.
838 * procfs.c: Same.
839 * record-btrace.c: Same.
840 * record-full.c: Same.
841 * remote-fileio.c: Same.
842 * remote.c: Same.
843 * rs6000-tdep.c: Same.
844 * s12z-tdep.c: Same.
845 * score-tdep.c: Same.
846 * ser-base.c: Same.
847 * ser-go32.c: Same.
848 * skip.c: Same.
849 * sol-thread.c: Same.
850 * solib-svr4.c: Same.
851 * solib.c: Same.
852 * source.c: Same.
853 * sparc-nat.c: Same.
854 * sparc-sol2-tdep.c: Same.
855 * sparc-tdep.c: Same.
856 * sparc64-tdep.c: Same.
857 * stabsread.c: Same.
858 * stack.c: Same.
859 * symfile.c: Same.
860 * symtab.c: Same.
861 * target-descriptions.c: Same.
862 * target-float.c: Same.
863 * thread.c: Same.
864 * utils.c: Same.
865 * valops.c: Same.
866 * valprint.c: Same.
867 * value.c: Same.
868 * varobj.c: Same.
869 * windows-nat.c: Same.
870 * xcoffread.c: Same.
871 * xstormy16-tdep.c: Same.
872 * xtensa-tdep.c: Same.
873
874 2019-10-17 Tom Tromey <tromey@adacore.com>
875
876 * configure: Rebuild.
877 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
878 in AC_CONFIG_FILES invocation.
879 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
880 new-style config.status invocation.
881
882 2019-10-17 Tom de Vries <tdevries@suse.de>
883
884 * arm-nbsd-nat.c: Fix typos in comments.
885 * arm-tdep.c: Same.
886 * darwin-nat-info.c: Same.
887 * dwarf2read.c: Same.
888 * elfread.c: Same.
889 * event-top.c: Same.
890 * findvar.c: Same.
891 * gdbtypes.c: Same.
892 * hppa-tdep.c: Same.
893 * i386-tdep.c: Same.
894 * jit.c: Same.
895 * main.c: Same.
896 * mdebugread.c: Same.
897 * moxie-tdep.c: Same.
898 * nto-procfs.c: Same.
899 * osabi.c: Same.
900 * ppc-linux-tdep.c: Same.
901 * remote.c: Same.
902 * riscv-tdep.c: Same.
903 * s390-tdep.c: Same.
904 * sh-tdep.c: Same.
905 * sparc-linux-tdep.c: Same.
906 * sparc-nat.c: Same.
907 * stack.c: Same.
908 * target-descriptions.c: Same.
909 * top.c: Same.
910 * varobj.c: Same.
911
912 2019-10-16 Tom Tromey <tom@tromey.com>
913
914 * objfiles.h (struct objfile) <original_name>: Now const.
915
916 2019-10-16 Christian Biesinger <cbiesinger@google.com>
917
918 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
919 pass on to sigsetjmp's second argument.
920 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
921
922 2019-10-16 Keith Seitz <keiths@redhat.com>
923
924 PR gdb/23567
925 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
926 sections whose size is greater than the file size.
927
928 2019-10-16 Jim Wilson <jimw@sifive.com>
929
930 * riscv-tdep.c (riscv_gcc_target_options): New.
931 (riscv_gnu_triplet_regexp): New.
932 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
933 set_gdbarch_gnu_triplet_regexp.
934
935 2019-10-16 Christian Biesinger <cbiesinger@google.com>
936
937 * Makefile.in: Add xml-builtin.h.
938 * features/feature_to_c.sh: Add an include for xml-builtin.h
939 to ensure that the compiler checks that the types match.
940 * xml-builtin.h: New file.
941 * xml-support.c (fetch_xml_builtin): Add missing const.
942 * xml-support.h: Remove declaration of xml_builtins.
943
944 2019-10-16 Tom de Vries <tdevries@suse.de>
945
946 PR tdep/25096
947 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
948 (amd64_classify_aggregate): ... here.
949 (amd64_classify_aggregate_field): Handled fiels of nested structs
950 recursively.
951
952 2019-10-16 Tom de Vries <tdevries@suse.de>
953
954 PR tdep/24104
955 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
956 that handles 'theclass'.
957
958 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * linespec.c (decode_digits_ordinary): Update comment.
961 * make-target-delegates: No longer need to handle VEC case.
962 * memrange.c (normalize_mem_ranges): Update comment.
963 * namespace.c (add_using_directive): Update comment.
964 * objc-lang.c (uniquify_strings): Update comment.
965 * ppc-linux-nat.c (struct thread_points): Update comment.
966 * probe.h (find_probes_in_objfile): Update comment.
967 * target.h (enum flash_preserve_mode): Update comment.
968 * varobj.c (varobj_restrict_range): Update comment.
969 * varobj.h (varobj_list_children): Update comment.
970
971 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * Makefile.in: Remove references to vec.h and vec.c.
974 * aarch64-tdep.c: No longer include vec.h.
975 * ada-lang.c: Likewise.
976 * ada-lang.h: Likewise.
977 * arm-tdep.c: Likewise.
978 * ax.h: Likewise.
979 * breakpoint.h: Likewise.
980 * charset.c: Likewise.
981 * cp-support.h: Likewise.
982 * dtrace-probe.c: Likewise.
983 * dwarf2read.c: Likewise.
984 * extension.h: Likewise.
985 * gdb_bfd.c: Likewise.
986 * gdbsupport/gdb_vecs.h: Likewise.
987 * gdbsupport/vec.c: Remove.
988 * gdbsupport/vec.h: Remove.
989 * gdbthread.h: Likewise.
990 * guile/scm-type.c: Likewise.
991 * inline-frame.c: Likewise.
992 * machoread.c: Likewise.
993 * memattr.c: Likewise.
994 * memrange.h: Likewise.
995 * namespace.h: Likewise.
996 * nat/linux-btrace.h: Likewise.
997 * osdata.c: Likewise.
998 * parser-defs.h: Likewise.
999 * progspace.h: Likewise.
1000 * python/py-type.c: Likewise.
1001 * record-btrace.c: Likewise.
1002 * rust-exp.y: Likewise.
1003 * solib-target.c: Likewise.
1004 * stap-probe.c: Likewise.
1005 * target-descriptions.c: Likewise.
1006 * target-memory.c: Likewise.
1007 * target.h: Likewise.
1008 * varobj.c: Likewise.
1009 * varobj.h: Likewise.
1010 * xml-support.h: Likewise.
1011
1012 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1015 Update for new std::vector based implementation.
1016 (process_psymtab_comp_unit_reader): Likewise.
1017 (scan_partial_symbols): Likewise.
1018 (recursively_compute_inclusions): Likewise.
1019 (compute_compunit_symtab_includes): Likewise.
1020 (process_imported_unit_die): Likewise.
1021 (queue_and_load_dwo_tu): Likewise.
1022 (follow_die_sig_1): Likewise.
1023 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1024 (typedef dwarf2_per_cu_ptr): Remove.
1025 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1026 function.
1027 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1028 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1029 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1030 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1031 std::vector.
1032
1033 2019-10-15 Tom Tromey <tromey@adacore.com>
1034
1035 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1036 TID.
1037
1038 2019-10-15 Tom Tromey <tromey@adacore.com>
1039
1040 * windows-nat.c (windows_nat_target::fetch_registers)
1041 (windows_nat_target::store_registers): Rename "pid" to "tid".
1042
1043 2019-10-15 Tom Tromey <tromey@adacore.com>
1044
1045 * gdbarch.h, gdbarch.c: Rebuild.
1046 * gdbarch.sh (gcc_target_options): Change return type to
1047 std::string.
1048 * compile/compile.c (get_args): Update.
1049 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1050 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1051 std::string.
1052 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1053 std::string.
1054 * arch-utils.c (default_gcc_target_options): Return std::string.
1055 * arch-utils.h (default_gcc_target_options): Return std::string.
1056 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1057
1058 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1059
1060 * breakpoint.c (breakpoint_chain): Make static.
1061 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1062 of accessing breakpoint_chain.
1063
1064 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1065
1066 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1067 to a gdb::function_view and return value to bool.
1068 * breakpoint.h (iterate_over_breakpoints): Likewise.
1069 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1070 (pop_dummy_frame): Update.
1071 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1072 (gdbscm_breakpoints): Update.
1073 * python/py-breakpoint.c (build_bp_list): Update.
1074 (gdbpy_breakpoints): Update.
1075 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1076 Update.
1077 (bpfinishpy_handle_stop): Update.
1078 (bpfinishpy_handle_exit): Update.
1079 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1080 (svr4_update_solib_event_breakpoints): Update.
1081
1082 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1083
1084 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1085 when unwrapping single-field structs.
1086
1087 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * dwarf2read.c: Remove includes.
1090
1091 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * ui-out.c (ui_out::call_do_message): Silence
1094 -Wformat-nonliteral warning.
1095
1096 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1099 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1100 include: readline/tilde.h.
1101
1102 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1103
1104 * remote.c (remote_target::get_trace_status): Remove declaration of
1105 trace_regblock_size.
1106
1107 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1108
1109 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1110 (show_user): Remove declaration of cmdlist.
1111 * cli/cli-cmds.h (max_user_call_depth): Declare.
1112 * cli/cli-script.c (execute_user_command): Remove declaration
1113 of max_user_call_depth.
1114
1115 2019-10-11 Jim Wilson <jimw@sifive.com>
1116
1117 * gdbsupport/print-utils.h (pulongest): Fix comment.
1118 (plongest): Likewise.
1119 (phex): Add missing comment, mention leading zeros.
1120 (phex_nz): Add mention of no leading zeros to comment.
1121
1122 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1123 plongest instead of unsigned long long cast.
1124
1125 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1126
1127 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1128 for external_editor_command and gdbtk_test.
1129
1130 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1131
1132 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1133 * varobj.c (varobjdebug): Move comment to...
1134 * varobj.h (varobjdebug): ...here, and declare.
1135
1136 2019-10-09 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1139 erase_data_content.
1140
1141 2019-10-09 Tom Tromey <tom@tromey.com>
1142
1143 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1144 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1145 * tui/tui-command.c (tui_cmd_window::resize)
1146 (tui_refresh_cmd_win): Update.
1147 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1148 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1149 * tui/tui-data.c (~tui_gen_win_info): Remove.
1150 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1151 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1152 (tui_redisplay_readline, tui_mld_flush)
1153 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1154 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1155 (tui_data_window::erase_data_content)
1156 (tui_data_item_window::rerender)
1157 (tui_data_item_window::refresh_window): Update.
1158 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1159 (box_win, tui_gen_win_info::make_window)
1160 (tui_gen_win_info::make_visible): Update.
1161 (tui_delete_win): Remove.
1162 * tui/tui-winsource.c
1163 (tui_source_window_base::do_erase_source_content): Update.
1164 (tui_show_source_line, tui_source_window_base::update_tab_width)
1165 (tui_source_window_base::update_exec_info): Update.
1166 * tui/tui-data.h (struct curses_deleter): New.
1167 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1168 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1169
1170 2019-10-09 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1173
1174 2019-10-09 Tom Tromey <tom@tromey.com>
1175
1176 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1177 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1178
1179 2019-10-09 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1182 window height directly.
1183 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1184 declare.
1185 * tui/tui-layout.c (tui_default_win_height): Remove.
1186 (tui_default_win_viewport_height): Remove.
1187
1188 2019-10-09 Tom Tromey <tom@tromey.com>
1189
1190 * tui/tui.h: Remove comments.
1191
1192 2019-10-09 Tom de Vries <tdevries@suse.de>
1193
1194 * python/lib/gdb/printer/bound_registers.py: Use
1195 '^builtin_type_bound128' as regexp argument for
1196 add_builtin_pretty_printer.
1197
1198 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1199
1200 * guile/guile.c (guile_extension_script_ops): Remove forward
1201 declaration and mark as static.
1202 (guile_script_ops): Likewise.
1203 (extension_language_guile): Move further down in the file so
1204 it can reference the definitions for guile_{extension_,}script_ops.
1205
1206 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1207
1208 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1209 except SORTL, DFLTCC, and KDSA.
1210
1211 2019-10-08 Tom Tromey <tromey@adacore.com>
1212
1213 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1214 (struct safe_symbol_file_add_args): Remove.
1215
1216 2019-10-08 Tom Tromey <tromey@adacore.com>
1217
1218 * windows-nat.c: Don't include buildsym-legacy.h.
1219
1220 2019-10-08 Tom Tromey <tromey@adacore.com>
1221
1222 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1223
1224 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1225
1226 * gdbtypes.c (overload_debug): Move comment to header.
1227 * gdbtypes.h (overload_debug): Declare.
1228 * valops.c: Remove declaration of overload_debug, instead
1229 include gdbtypes.h.
1230
1231 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1232
1233 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1234 through _().
1235 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1236 move comment...
1237 * language.h (lang_frame_mismatch_warn): ... here. Also add
1238 declaration.
1239 * top.c (lang_frame_mismatch_warn): Remove declaration.
1240 (check_frame_language_change): Pass lang_frame_mismatch_warn
1241 through _().
1242
1243 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1244
1245 * c-lang.h (vtbl_ptr_name): Declare.
1246 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1247 it from the header.
1248 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1249
1250 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1251
1252 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1253 gdb_static_assert.
1254
1255 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1256
1257 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1258 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1259 * ctfread.c: New file.
1260 * ctfread.h: New file.
1261 * elfread.c: Include ctfread.h.
1262 (struct elfinfo text_p): New member ctfsect.
1263 (elf_locate_sections): Mark CTF section.
1264 (elf_symfile_read): Call elfctf_build_psymtabs.
1265 * Makefile.in (LIBCTF): Add.
1266 (CLIBS): Use it.
1267 (CDEPS): Likewise.
1268 (DIST): Add ctfread.c.
1269
1270 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1271
1272 * ctfread.c (struct nextfield): Renamed to ...
1273 (struct ctf_nextfield): ... this.
1274 (struct field_info): Renamed to ...
1275 (strut ctf_field_info): ... this.
1276 (attach_fields_to_type): Update for renamed structures.
1277 (ctf_add_member_cb): Likewise.
1278 (ctf_add_enum_member_cb): Likewise.
1279 (process_struct_members): Likewise.
1280 (process_enum_type): Likewise.
1281
1282 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1283
1284 * tracectf.h: Rename, was ctf.h.
1285 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1286 * tracefile.c: Likewise.
1287 * tracepoint.c: Remove unused include ctf.h.
1288 * mi/mi-main.c: Likewise.
1289 * Makefile.in Replace ctf.c with tracectf.c.
1290
1291 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1292
1293 * version.in: Change version number to "9.0.50.DATE-git".
1294
1295 2019-10-03 Tom Tromey <tom@tromey.com>
1296
1297 PR rust/24976:
1298 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1299
1300 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1303 cp_search_name_hash.
1304 * NEWS: Add entry about nested function support.
1305
1306 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1307 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1310 for nested static variables when searchin VAR_DOMAIN.
1311 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1312 global scope, update comment.
1313 (add_partial_subprogram): Call add_partial_subprogram recursively
1314 for nested subroutines when processinng Fortran.
1315 (load_partial_dies): Process the child entities of a subprogram
1316 when processing Fortran.
1317 (partial_die_parent_scope): Handle building scope
1318 for Fortran nested functions.
1319 (process_die): Record that nested functions have a scope.
1320 (new_symbol): Always record Fortran subprograms on the global
1321 symbol list.
1322 (determine_prefix): How to build the prefix for Fortran
1323 subprograms.
1324
1325 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1328 have just sent the thread a SIGSTOP and are waiting for it to
1329 arrive.
1330
1331 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * btrace.c (btrace_add_pc): Remove whitespace before the template
1334 parameter in 'std::vector <...>'.
1335 (parse_xml_btrace_block): Likewise.
1336 (btrace_maint_decode_pt): Likewise.
1337 (btrace_maint_update_packets): Likewise.
1338 (btrace_maint_print_packets): Likewise.
1339 * btrace.h (struct btrace_maint_info): Likewise.
1340 * dwarf2read.c (struct type_unit_group): Likewise.
1341 (build_type_psymtabs_reader): Likewise.
1342 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1343 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1344 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1345
1346 2019-10-03 Tom de Vries <tdevries@suse.de>
1347
1348 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1349 the first line of the help text for set/show style metadata.
1350
1351 2019-10-02 Tom Tromey <tromey@adacore.com>
1352
1353 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1354 * gdbsupport/common-inferior.c: New file.
1355 * infcmd.c (startup_with_shell): Don't define.
1356 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1357 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1358 * inferior.h (startup_with_shell): Don't declare.
1359
1360 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1361
1362 * gdbsupport/gdb_assert.h: Include errors.h.
1363 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1364
1365 2019-10-02 Tom Tromey <tromey@adacore.com>
1366
1367 * NEWS: Add $_ada_exception entry.
1368 * ada-lang.c (struct ada_catchpoint): Add constructor.
1369 <m_kind>: New member.
1370 (allocate_location_exception, re_set_exception): Remove
1371 "ex" parameter.
1372 (should_stop_exception): Compute $_ada_exception.
1373 (check_status_exception, print_it_exception)
1374 (print_one_exception, print_mention_exception): Remove
1375 "ex" parameter.
1376 (allocate_location_catch_exception, re_set_catch_exception)
1377 (check_status_exception, print_it_catch_exception)
1378 (print_one_catch_exception, print_mention_catch_exception)
1379 (print_recreate_catch_exception)
1380 (allocate_location_catch_exception_unhandled)
1381 (re_set_catch_exception_unhandled)
1382 (check_status_exception, print_it_catch_exception_unhandled)
1383 (print_one_catch_exception_unhandled)
1384 (print_mention_catch_exception_unhandled)
1385 (print_recreate_catch_exception_unhandled)
1386 (allocate_location_catch_assert, re_set_catch_assert)
1387 (check_status_assert, print_it_catch_assert)
1388 (print_one_catch_assert, print_mention_catch_assert)
1389 (print_recreate_catch_assert)
1390 (allocate_location_catch_handlers, re_set_catch_handlers)
1391 (check_status_handlers, print_it_catch_handlers)
1392 (print_one_catch_handlers, print_mention_catch_handlers)
1393 (print_recreate_catch_handlers): Remove.
1394 (create_ada_exception_catchpoint): Update.
1395 (initialize_ada_catchpoint_ops): Update.
1396
1397 2019-10-02 Tom Tromey <tromey@adacore.com>
1398
1399 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1400 (create_excep_cond_exprs): Simplify exception string computation.
1401 (ada_exception_catchpoint_cond_string): Likewise.
1402
1403 2019-10-02 Tom Tromey <tromey@adacore.com>
1404
1405 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1406 * ada-lang.c (lesseq_defined_than): Handle
1407 LOC_STATIC.
1408 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1409 parameter.
1410 (dwarf2_has_info): Likewise.
1411 (new_symbol): Set maybe_copied on symbol when
1412 appropriate.
1413 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1414 parameter.
1415 <can_copy>: New member.
1416 * elfread.c (record_minimal_symbol): Set maybe_copied
1417 on symbol when appropriate.
1418 (elf_symfile_read): Update call to dwarf2_has_info.
1419 * minsyms.c (lookup_minimal_symbol_linkage): New
1420 function.
1421 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1422 * symtab.c (get_symbol_address, get_msymbol_address):
1423 New functions.
1424 * symtab.h (get_symbol_address, get_msymbol_address):
1425 Declare.
1426 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1427 maybe_copied.
1428 (struct symbol, struct minimal_symbol) <maybe_copied>:
1429 New member.
1430
1431 2019-10-02 Tom Tromey <tromey@adacore.com>
1432
1433 * source.c (struct current_source_location): New.
1434 (current_source_key): New global.
1435 (current_source_symtab, current_source_line)
1436 (current_source_pspace): Remove.
1437 (get_source_location): New function.
1438 (get_current_source_symtab_and_line)
1439 (set_default_source_symtab_and_line)
1440 (set_current_source_symtab_and_line)
1441 (clear_current_source_symtab_and_line, select_source_symtab)
1442 (info_source_command, print_source_lines_base)
1443 (info_line_command, search_command_helper, _initialize_source):
1444 Update.
1445
1446 2019-10-02 Tom Tromey <tromey@adacore.com>
1447
1448 * source.c (select_source_symtab): Don't call
1449 decode_line_with_current_source.
1450
1451 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * symtab.c (lookup_global_symbol): Search global block.
1454
1455 2019-10-02 Tom Tromey <tromey@adacore.com>
1456
1457 * coffread.c (process_coff_symbol): Update.
1458 * dwarf2read.c (var_decode_location, new_symbol): Update.
1459 * mdebugread.c (parse_symbol): Update.
1460 * objfiles.c (relocate_one_symbol): Update.
1461 * stabsread.c (define_symbol, fix_common_block)
1462 (scan_file_globals): Update.
1463 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1464 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1465 * xcoffread.c (process_xcoff_symbol): Update.
1466
1467 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1468
1469 * MAINTAINERS: Update my email address.
1470
1471 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1474 std::vector.
1475 (build_type_psymtabs_reader): Update for std::vector.
1476 (build_type_psymtab_dependencies): Likewise.
1477 * dwarf2read.h: Remove use of DEF_VEC_P.
1478 (typedef sig_type_ptr): Delete.
1479
1480 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1481
1482 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1483 to std::vector.
1484 (btrace_maint_decode_pt): Likewise, and move allocation of the
1485 vector outside of the loop.
1486 (btrace_maint_update_packets): Update to handle change from VEC to
1487 std::vector.
1488 (btrace_maint_print_packets): Likewise.
1489 (maint_info_btrace_cmd): Likewise.
1490 * btrace.h: Remove use of DEF_VEC_O.
1491 (typedef btrace_pt_packet_s): Delete.
1492 (struct btrace_maint_info) <packets>: Change fromm VEC to
1493 std::vector.
1494 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1495
1496 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1499 make accesses into the vector constant references.
1500 (btrace_add_pc): Update for std::vector.
1501 (btrace_stitch_bts): Likewise.
1502 (parse_xml_btrace_block): Likewise.
1503 (btrace_maint_update_packets): Likewise.
1504 (btrace_maint_print_packets): Likewise.
1505 (maint_info_btrace_cmd): Likewise.
1506 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1507 std::vector.
1508 (btrace_data::empty): Likewise.
1509 (btrace_data_append): Likewise.
1510 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1511 (typedef btrace_block_s): Delete.
1512 (struct btrace_block): Add constructor.
1513 (struct btrace_data_bts) <blocks>: Change to std::vector.
1514 * nat/linux-btrace.c (perf_event_read_bts): Update for
1515 std::vector.
1516 (linux_read_bts): Likewise.
1517
1518 2019-10-01 Tom Tromey <tom@tromey.com>
1519
1520 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1521
1522 2019-10-01 Tom Tromey <tom@tromey.com>
1523
1524 * stack.c (print_frame, info_frame_command_core): Use
1525 styled_string.
1526 * linux-thread-db.c (try_thread_db_load_1)
1527 (try_thread_db_load_from_pdir_1): Use styled_string.
1528 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1529 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1530 (maybe_print_unsupported_script_warning)
1531 (maybe_print_script_not_found_warning): Use styled_string.
1532 * ada-lang.c (user_select_syms): Use styled_string.
1533
1534 2019-10-01 Tom Tromey <tom@tromey.com>
1535
1536 * p-lang.c (pascal_printstr): Use metadata style.
1537 * value.c (show_convenience): Use metadata style.
1538 * valprint.c (valprint_check_validity, val_print_optimized_out)
1539 (val_print_not_saved, val_print_unavailable)
1540 (val_print_invalid_address, generic_val_print, val_print)
1541 (value_check_printable, val_print_array_elements): Use metadata
1542 style.
1543 * ui-out.h (class ui_out) <field_fmt>: New overload.
1544 <do_field_fmt>: Add style parameter.
1545 * ui-out.c (ui_out::field_fmt): New overload.
1546 * typeprint.c (type_print_unknown_return_type)
1547 (val_print_not_allocated, val_print_not_associated): Use metadata
1548 style.
1549 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1550 parameter.
1551 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1552 * tracepoint.c (tvariables_info_1): Use metadata style.
1553 * stack.c (print_frame_arg, print_frame_info, print_frame)
1554 (info_frame_command_core): Use metadata style.
1555 * skip.c (info_skip_command): Use metadata style.
1556 * rust-lang.c (rust_print_enum): Use metadata style.
1557 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1558 metadata style.
1559 * python/py-framefilter.c (py_print_single_arg): Use metadata
1560 style.
1561 * printcmd.c (do_one_display, print_variable_and_value): Use
1562 metadata style.
1563 * p-valprint.c (pascal_val_print)
1564 (pascal_object_print_value_fields): Use metadata style.
1565 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1566 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1567 parameter.
1568 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1569 * m2-valprint.c (m2_print_long_set): Use metadata style.
1570 * m2-typeprint.c (m2_print_type): Use metadata style.
1571 * infcmd.c (print_return_value_1): Use metadata style.
1572 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1573 * f-valprint.c (info_common_command_for_block): Use metadata
1574 style.
1575 * f-typeprint.c (f_type_print_base): Use metadata style.
1576 * expprint.c (print_subexp_standard): Use metadata style.
1577 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1578 * cli/cli-style.h (class cli_style_option): Add constructor.
1579 (metadata_style): Declare.
1580 * cli/cli-style.c (metadata_style): New global.
1581 (_initialize_cli_style): Register metadata style.
1582 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1583 parameter.
1584 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1585 * c-typeprint.c (c_type_print_base_struct_union)
1586 (c_type_print_base_1): Use metadata style.
1587 * breakpoint.c (watchpoint_value_print)
1588 (print_one_breakpoint_location): Use metadata style.
1589 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1590 style.
1591 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1592 style.
1593 * ada-valprint.c (val_print_packed_array_elements, printstr)
1594 (print_field_values, ada_val_print_ref, ada_val_print): Use
1595 metadata style.
1596 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1597 style.
1598 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1599 style.
1600 * ada-lang.c (user_select_syms): Use metadata style.
1601
1602 2019-10-01 Tom Tromey <tom@tromey.com>
1603
1604 * cli/cli-cmds.c (pwd_command): Style output.
1605
1606 2019-10-01 Pedro Alves <palves@redhat.com>
1607 Tom Tromey <tom@tromey.com>
1608
1609 * symtab.c (print_symbol_info): Use %ps.
1610 (print_msymbol_info): Use %ps.
1611 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1612 * printcmd.c (print_variable_and_value): Use %ps.
1613 * macrocmd.c (show_pp_source_pos): Use %ps.
1614 * infrun.c (print_exited_reason): Use ui_out::message.
1615 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1616 (describe_other_breakpoints): Use ui_out::message and new
1617 formats.
1618 (say_where): Use new formats.
1619 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1620 and new formats.
1621
1622 2019-10-01 Pedro Alves <palves@redhat.com>
1623 Tom Tromey <tom@tromey.com>
1624
1625 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1626 (test_gdb_formats): New function.
1627 (run_tests): Call it.
1628 (test_format_specifier): Update.
1629 * utils.h (fputs_filtered): Update comment.
1630 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1631 (fputs_styled_unfiltered): Declare.
1632 * utils.c (fputs_styled_unfiltered): New function.
1633 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1634 (vfprintf_filtered): Update.
1635 (vfprintf_unfiltered, vprintf_filtered): Update.
1636 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1637 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1638 disallow_ui_out_field>: New constants.
1639 (enum class field_kind): New.
1640 (struct base_field_s, struct signed_field_s): New.
1641 (signed_field): New function.
1642 (struct string_field_s): New.
1643 (string_field): New function.
1644 (struct styled_string_s): New.
1645 (styled_string): New function.
1646 (class ui_out) <message>: Add comment.
1647 <vmessage, call_do_message>: New methods.
1648 <do_message>: Add style parameter.
1649 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1650 methods.
1651 (ui_out::message): Rewrite.
1652 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1653 parameter.
1654 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1655 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1656 gdb_extensions parameter.
1657 (class format_piece): Add parameter to constructor.
1658 (n_int_args): New field.
1659 * gdbsupport/format.c (format_pieces::format_pieces): Add
1660 gdb_extensions parameter. Handle '*'.
1661 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1662 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1663 vfprintf_styled_no_gdbfmt.
1664 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1665 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1666 unfiltered output.
1667 * ui-style.h (struct ui_file_style) <ptr>: New method.
1668
1669 2019-10-01 Tom Tromey <tom@tromey.com>
1670
1671 * unittests/format_pieces-selftests.c: Update. Add final format.
1672 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1673 empty literal pieces.
1674
1675 2019-10-01 Tom Tromey <tom@tromey.com>
1676
1677 * ui-out.h (enum class ui_out_style_kind): Remove.
1678 (class ui_out) <field_string, field_stsream, do_field_string>:
1679 Change type of "style".
1680 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1681 (ui_out::field_string): Update.
1682 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1683 of "style".
1684 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1685 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1686 * stack.c (print_frame_arg, print_frame_info, print_frame):
1687 Update.
1688 * source.c (print_source_lines_base): Update.
1689 * solib.c (info_sharedlibrary_command): Update.
1690 * skip.c (info_skip_command): Update.
1691 * record-btrace.c (btrace_call_history_src_line)
1692 (btrace_call_history): Update.
1693 * python/py-framefilter.c (py_print_frame): Update.
1694 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1695 "style".
1696 * mi/mi-out.c (mi_ui_out::do_table_header)
1697 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1698 (mi_ui_out::do_field_string): Update.
1699 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1700 Update.
1701 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1702 "style".
1703 * cli-out.c (cli_ui_out::do_table_header)
1704 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1705 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1706 (cli_ui_out::do_field_fmt): Update.
1707 * breakpoint.c (print_breakpoint_location): Update.
1708 (update_static_tracepoint): Update.
1709
1710 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1711
1712 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1713 conversion of gdb_datadir.
1714 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1715 remove not needed c_str ().
1716
1717 2019-09-30 Ali Tamur <tamur@google.com>
1718
1719 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1720 (dwarf2_string_attr): Likewise.
1721
1722 2019-09-30 Ali Tamur <tamur@google.com>
1723
1724 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1725 (process_full_type_unit): Likewise.
1726 (dump_die_shallow): Likewise.
1727 (cu_debug_loc_section): Likewise.
1728
1729 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1730
1731 * minsyms.c (compare_minimal_symbols): Rename to...
1732 (minimal_symbol_is_less_than): ...this, and adjust to STL
1733 conventions (return bool, take arguments as references)
1734 (minimal_symbol_reader::install): Call std::sort instead
1735 of qsort.
1736
1737 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1738
1739 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1740 hash and why.
1741 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1742 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1743
1744 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1747 * psympriv.h (add_psymbol_to_list): Move comment here and update
1748 it.
1749
1750 2019-09-29 Tom de Vries <tdevries@suse.de>
1751
1752 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1753 Use $tmpdir/$(basename "$output_file").dwz instead of
1754 "${output_file}.dwz".
1755
1756 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1757
1758 PR gdb/25045
1759 * hppa-linux-nat.c: Include gdbarch.h.
1760
1761 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1762
1763 * blockframe.c (find_pc_partial_function): Change return type to bool.
1764 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1765 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1766 (stub_gnu_ifunc_resolve_name): Likewise.
1767 * symtab.c (compare_filenames_for_search): Likewise.
1768 (compare_glob_filenames_for_search): Likewise.
1769 (matching_obj_sections): Likewise.
1770 (symbol_matches_domain): Likewise.
1771 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1772 (find_line_pc): Change return type to bool.
1773 (find_line_pc_range): Likewise.
1774 (producer_is_realview): Likewise.
1775 * symtab.h (symbol_matches_domain): Likewise.
1776 (find_pc_partial_function): Likewise.
1777 (find_pc_line_pc_range): Likewise.
1778 (in_gnu_ifunc_stub): Likewise.
1779 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1780 (find_line_pc): Likewise.
1781 (find_line_pc_range): Likewise.
1782 (matching_obj_sections): Likewise.
1783 (find_line_symtab): Change out parameter to bool.
1784 (producer_is_realview): Change return type to bool.
1785 (compare_filenames_for_search): Likewise.
1786 (compare_glob_filenames_for_search): Likewise.
1787
1788 2019-09-26 Tom Tromey <tom@tromey.com>
1789
1790 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1791 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1792 * gdb_usleep.h: Remove.
1793 * gdb_usleep.c: Remove.
1794 * utils.c: Don't include gdb_usleep.h.
1795
1796 2019-09-26 Tom Tromey <tromey@adacore.com>
1797
1798 * python/py-type.c (type_to_type_object): Call check_typedef
1799 for stub types.
1800
1801 2019-09-26 Tom Tromey <tom@tromey.com>
1802
1803 * utils.h (initialize_utils): Don't declare.
1804 * top.c (gdb_init): Don't call initialize_utils.
1805 * utils.c (initialize_utils): Remove. Move contents...
1806 (_initialize_utils): ... here.
1807
1808 2019-09-25 Tom Tromey <tom@tromey.com>
1809
1810 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1811 * utils.h (make_hex_string): Don't declare.
1812 * utils.c (make_hex_string): Remove.
1813
1814 2019-09-24 Tom de Vries <tdevries@suse.de>
1815
1816 PR gdb/23815
1817 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1818 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1819
1820 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1821
1822 * NEWS: Mention new simulator port for PRU.
1823
1824 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1825
1826 * ada-exp.y (write_object_remaining): Update.
1827 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1828 and eliminate the static buffer.
1829 (ada_decode_symbol): Update.
1830 (ada_la_decode): Update.
1831 (ada_sniff_from_mangled_name): Update.
1832 (is_valid_name_for_wild_match): Update.
1833 (ada_lookup_name_info::matches): Update and simplify.
1834 (name_matches_regex): Update.
1835 (ada_add_global_exceptions): Update.
1836 * ada-lang.h (ada_decode): Update signature.
1837 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1838 * dwarf-index-write.c (debug_names::insert): Update.
1839
1840 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1843 formatting.
1844
1845 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1848 Change "nonzero" to "true" in documentation.
1849
1850 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1851
1852 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1853 (_initialize_darwin_solib): Don't set
1854 darwin_so_ops.lookup_lib_global_symbol.
1855 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1856 set_gdbarch_iterate_over_objfiles_in_search_order.
1857 (elf_lookup_lib_symbol): Rename to...
1858 (svr4_iterate_over_objfiles_in_search_order): this, and update
1859 to iterate semantics.
1860 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1861 * solib.c (solib_global_lookup): Remove.
1862 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1863 (solib_global_lookup): Remove.
1864 * symtab.c (lookup_global_or_static_symbol): Remove call to
1865 solib_global_lookup.
1866
1867 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1868
1869 * NEWS: Move entries about default MI version now being
1870 version 3, and about the GDB/MI fix for multi-location
1871 breakpoints to the "since GDB 8.3" section.
1872
1873 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1874
1875 GDB 8.3.1 released.
1876
1877 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1878
1879 * NEWS: Mention that Cell/B.E. debugging support was removed.
1880 * MAINTAINERS: Remove spu target.
1881
1882 * config/djgpp/fnchange.lst: Remove entries for removed files.
1883
1884 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1885 spu-multiarch.o, and spu-tdep.o.
1886 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1887 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1888 spu-multiarch.c, and spu-tdep.c.
1889 * spu-linux-nat.c: Remove file.
1890 * spu-multiarch.c: Remove file.
1891 * spu-tdep.c: Remove file.
1892 * spu-tdep.h: Remove file.
1893 * solib-spu.c: Remove file.
1894 * solib-spu.h: Remove file.
1895
1896 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1897 * configure.nat (spu-linux): Remove.
1898 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1899 solib-multiarch.o from gdb_target_obs.
1900 (spu*-*-*): Remove.
1901
1902 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1903 feature flag.
1904 (ppc_linux_no_features): Update.
1905 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1906 Cell/B.E. support.
1907 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1908 (tdesc_powerpc_cell64l): Likewise.
1909 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1910 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1911 Cell/B.E. support.
1912 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1913 Do not include "features/rs6000/powerpc-cell32l.c" or
1914 "features/rs6000/powerpc-cell64l.c".
1915 (ppc_linux_spu_section): Remove.
1916 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1917 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1918 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1919 (ppc_linux_spe_context_lookup): Remove.
1920 (ppc_linux_spe_context_inferior_created): Remove.
1921 (ppc_linux_spe_context_solib_loaded): Remove.
1922 (ppc_linux_spe_context_solib_unloaded): Remove.
1923 (ppc_linux_spe_context): Remove.
1924 (struct ppu2spu_cache): Remove.
1925 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1926 (struct ppu2spu_data): Remove.
1927 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1928 ppu2spu_unwind): Remove.
1929 (ppc_linux_init_abi): Remove Cell/B.E. support.
1930 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1931
1932 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1933 (rs6000/powerpc-cell64l-expedite): Likewise
1934 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1935 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1936 rs6000/powerpc-cell64l.xml.
1937 * features/rs6000/powerpc-cell32l.xml: Remove.
1938 * features/rs6000/powerpc-cell64l.xml: Likewise.
1939 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1940 * features/rs6000/powerpc-cell64l.c: Likewise.
1941 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1942 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1943 * regformats/reg-spu.dat: Remove.
1944
1945 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1946 * corelow.c (struct spuid_list): Remove.
1947 (add_to_spuid_list): Remove.
1948 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1949 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1950 (remote_protocol_features): Remove associated entries.
1951 (_initialize_remote): No longer initialize them.
1952 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1953 * linux-nat.c (SPUFS_MAGIC): Remove.
1954 (linux_proc_xfer_spu): Remove.
1955 (spu_enumerate_spu_ids): Remove.
1956 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1957 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1958 (linux_make_corefile_notes): No longer call it.
1959
1960 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1961 (cooked_write_test): Likewise.
1962
1963 2019-09-20 Tom Tromey <tom@tromey.com>
1964
1965 * NEWS: Mention case-sensitivity of TUI commands.
1966 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1967 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1968 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1969
1970 2019-09-20 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-source.c (tui_source_window::set_contents): Use
1973 make_unique_xstrdup.
1974 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1975 make_unique_xstrdup.
1976
1977 2019-09-20 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui-data.c: Remove separator comments.
1980 * tui/tui-layout.c: Remove separator comments.
1981 * tui/tui-win.c: Remove separator comments.
1982 * tui/tui-wingeneral.c: Remove separator comments.
1983
1984 2019-09-20 Tom Tromey <tom@tromey.com>
1985
1986 * tui/tui.h (strcat_to_buf): Don't declare.
1987 * tui/tui.c (strcat_to_buf): Remove.
1988
1989 2019-09-20 Tom Tromey <tom@tromey.com>
1990
1991 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1992 from "fullname".
1993 * tui/tui-source.c (tui_source_window::set_contents)
1994 (tui_source_window::location_matches_p)
1995 (tui_source_window::maybe_update): Update.
1996
1997 2019-09-20 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2000 Update.
2001 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2002 prefix.
2003 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2004 (tui_data_window::line_from_reg_element_no)
2005 (tui_data_window::first_reg_element_no_inline)
2006 (tui_data_window::show_registers)
2007 (tui_data_window::show_register_group)
2008 (tui_data_window::display_registers_from)
2009 (tui_data_window::display_registers_from_line)
2010 (tui_data_window::first_data_item_displayed)
2011 (tui_data_window::delete_data_content_windows)
2012 (tui_data_window::erase_data_content)
2013 (tui_data_window::do_scroll_vertical)
2014 (tui_data_window::refresh_window)
2015 (tui_data_window::check_register_values): Update.
2016
2017 2019-09-20 Tom Tromey <tom@tromey.com>
2018
2019 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2020 (struct tui_locator_window) <full_name, proc_name>: Now
2021 std::string.
2022 * tui/tui-stack.c (tui_locator_window::make_status_line)
2023 (tui_locator_window::set_locator_fullname)
2024 (tui_locator_window::set_locator_info): Update.
2025 * tui/tui-source.c (tui_source_window::set_contents)
2026 (tui_source_window::showing_source_p): Update.
2027
2028 2019-09-20 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2031 Don't call tui_locator_win_info_ptr.
2032
2033 2019-09-20 Tom Tromey <tom@tromey.com>
2034
2035 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2036
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2040 height for locator.
2041 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2042 * tui/tui-layout.c (show_source_disasm_command, show_data)
2043 (show_source_or_disasm_and_command): Use 1 as height for locator.
2044
2045 2019-09-20 Tom Tromey <tom@tromey.com>
2046
2047 * tui/tui.c (tui_enable): Update.
2048 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2049 Update.
2050 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2051 Update.
2052 * tui/tui-data.c (win_resized): Now bool.
2053 (tui_win_resized): Return bool.
2054 (tui_set_win_resized_to): Accept a bool.
2055
2056 2019-09-20 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2059 Change type of "refresh_values_only".
2060 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2061 type of "refresh_values_only".
2062
2063 2019-09-20 Tom Tromey <tom@tromey.com>
2064
2065 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2066 std::string.
2067 (tui_disassemble): Add "pos" parameter.
2068 (tui_disasm_window::set_contents): Simplify.
2069
2070 2019-09-20 Tom Tromey <tom@tromey.com>
2071
2072 * tui/tui-winsource.h (struct tui_source_window_base)
2073 <show_source_content>: Now private.
2074 * tui/tui-winsource.c
2075 (tui_source_window_base::show_source_content): Don't handle empty
2076 content case.
2077
2078 2019-09-20 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-layout.c (show_source_disasm_command)
2081 (show_source_or_disasm_and_command): Don't call
2082 show_source_content.
2083
2084 2019-09-20 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2087 Declare.
2088 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2089 from tui_make_status_line.
2090 (tui_locator_window::rerender): Update.
2091
2092 2019-09-20 Tom Tromey <tom@tromey.com>
2093
2094 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2095 (tui_locator_window::rerender): Update.
2096
2097 2019-09-20 Tom Tromey <tom@tromey.com>
2098
2099 * tui/tui-winsource.h (struct tui_source_window_base)
2100 <~tui_source_window_base>: Don't declare.
2101 <fullname>: Remove.
2102 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2103 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2104 member.
2105 * tui/tui-source.c (tui_source_window::set_contents): Update.
2106 (tui_source_window::location_matches_p)
2107 (tui_source_window::maybe_update): Update.
2108
2109 2019-09-20 Tom Tromey <tom@tromey.com>
2110
2111 * tui/tui-winsource.h (~tui_source_element): Remove.
2112 (tui_source_element): Update.
2113 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2114 * tui/tui-winsource.c (tui_show_source_line): Update.
2115 * tui/tui-source.c (tui_source_window::set_contents): Update.
2116 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2117
2118 2019-09-20 Tom Tromey <tom@tromey.com>
2119
2120 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2121 declare.
2122 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2123 tui_clear_source_windows_detail.
2124 * tui/tui-winsource.h (struct tui_source_window_base)
2125 <clear_detail>: Don't declare.
2126 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2127 Remove.
2128 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2129
2130 2019-09-20 Tom Tromey <tromey@adacore.com>
2131
2132 PR ada/24919:
2133 * block.c (contained_in): Fix final return value.
2134
2135 2019-09-20 Alan Modra <amodra@gmail.com>
2136
2137 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2138 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2139 (read_indirect_string_from_dwz): Use bfd accessor.
2140 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2141 * machoread.c (macho_symfile_read_all_oso): Likewise.
2142 * solib.c (solib_bfd_open): Likewise.
2143
2144 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2145
2146 * eval.c: Move declaration of overload_resolution to...
2147 * value.h: ...here.
2148
2149 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2150
2151 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2152 * arm-linux-tdep.c: Likewise.
2153 * arm-nbsd-nat.c: Likewise.
2154 * arm-tdep.h: Declare arm_apcs_32.
2155 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2156
2157 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2158
2159 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2160 * dwarf2read.h: Declare dwarf_always_disassemble.
2161
2162 2019-09-19 Tom de Vries <tdevries@suse.de>
2163
2164 PR gdb/25009
2165 * source-cache.c (source_cache::ensure): Catch exception thrown during
2166 construction of the highlighter.
2167
2168 2019-09-18 Alan Modra <amodra@gmail.com>
2169
2170 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2171 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2172 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2173 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2174 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2175 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2176 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2177 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2178 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2179 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2180 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2181 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2182 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2183 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2184 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2185 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2186 * mi/mi-interp.c: Update throughout for bfd section macro and
2187 function changes.
2188 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2189 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2190
2191 2019-09-18 Tom Tromey <tom@tromey.com>
2192
2193 * NEWS: Add entry.
2194 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2195 call rl_initialize.
2196 (tui_enable): Do not call rl_initialize.
2197
2198 2019-09-18 Christian Groessler <chris@groessler.org>
2199
2200 * alpha-linux-nat.c: Include gdbarch.h.
2201
2202 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * ui-file.c: Include cli/cli-style.h.
2205 (term_cli_styling): Remove cli_styling declaration.
2206
2207 2019-09-18 Alan Modra <amodra@gmail.com>
2208
2209 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2210 to bfd_asymbol_section.
2211
2212 2019-09-18 Alan Modra <amodra@gmail.com>
2213
2214 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2215 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2216 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2217
2218 2019-09-18 Alan Modra <amodra@gmail.com>
2219
2220 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2221 * spu-linux-nat.c (spu_bfd_open): Likewise.
2222
2223 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2224
2225 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2226 to bool to match definition in dwarf2read.c.
2227
2228 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2229
2230 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2231 (print_signatures): Likewise.
2232 (trust_pad_over_xvs): Likewise.
2233 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2234 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2235 * arm-linux-nat.c (arm_apcs_32): Likewise.
2236 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2237 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2238 * arm-tdep.c (arm_debug): Likewise.
2239 (arm_apcs_32): Likewise.
2240 * auto-load.c (debug_auto_load): Likewise.
2241 (auto_load_gdb_scripts): Likewise.
2242 (global_auto_load): Likewise.
2243 (auto_load_local_gdbinit): Likewise.
2244 (auto_load_local_gdbinit_loaded): Likewise.
2245 * auto-load.h (global_auto_load): Likewise.
2246 (auto_load_local_gdbinit): Likewise.
2247 (auto_load_local_gdbinit_loaded): Likewise.
2248 * breakpoint.c (disconnected_dprintf): Likewise.
2249 (breakpoint_proceeded): Likewise.
2250 (automatic_hardware_breakpoints): Likewise.
2251 (always_inserted_mode): Likewise.
2252 (target_exact_watchpoints): Likewise.
2253 (_initialize_breakpoint): Update.
2254 * breakpoint.h (target_exact_watchpoints): Change to bool.
2255 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2256 * cli/cli-cmds.c (trace_commands): Likewise.
2257 * cli/cli-cmds.h (trace_commands): Likewise.
2258 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2259 to bool*.
2260 * cli/cli-logging.c (logging_overwrite): Change to bool.
2261 (logging_redirect): Likewise.
2262 (debug_redirect): Likewise.
2263 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2264 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2265 to bool.
2266 <boolean_option_def>: Update.
2267 (struct flag_option_def): Change default type of Context to bool
2268 from int.
2269 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2270 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2271 (get_setshow_command_value_string): Likewise.
2272 * cli/cli-style.c (cli_styling): Change to bool.
2273 (source_styling): Likewise.
2274 * cli/cli-style.h (source_styling): Likewise.
2275 (cli_styling): Likewise.
2276 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2277 to bool.
2278 * command.h (var_types): Update comment.
2279 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2280 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2281 bool.
2282 (debug_compile_cplus_scopes): Likewise.
2283 * compile/compile-internal.h (compile_debug): Likewise.
2284 * compile/compile.c (compile_debug): Likewise.
2285 (struct compile_options) <raw>: Likewise.
2286 * cp-support.c (catch_demangler_crashes): Likewise.
2287 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2288 (usr_cmd_cris_dwarf2_cfi): Likewise.
2289 * csky-tdep.c (csky_debug): Likewise.
2290 * darwin-nat.c (enable_mach_exceptions): Likewise.
2291 * dcache.c (dcache_enabled_p): Likewise.
2292 * defs.h (info_verbose): Likewise.
2293 * demangle.c (demangle): Likewise.
2294 (asm_demangle): Likewise.
2295 * dwarf-index-cache.c (debug_index_cache): Likewise.
2296 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2297 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2298 * dwarf2read.c (check_physname): Likewise.
2299 (use_deprecated_index_sections): Likewise.
2300 (dwarf_always_disassemble): Likewise.
2301 * eval.c (overload_resolution): Likewise.
2302 * event-top.c (set_editing_cmd_var): Likewise.
2303 (exec_done_display_p): Likewise.
2304 * event-top.h (set_editing_cmd_var): Likewise.
2305 (exec_done_display_p): Likewise.
2306 * exec.c (write_files): Likewise.
2307 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2308 (debug_fbsd_nat): Likewise.
2309 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2310 Likewise.
2311 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2312 <backtrace_past_entry> Likewise.
2313 * gdb-demangle.h (demangle): Likewise.
2314 (asm_demangle): Likewise.
2315 * gdb_bfd.c (bfd_sharing): Likewise.
2316 * gdbcore.h (write_files): Likewise.
2317 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2318 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2319 * gdbthread.h (print_thread_events): Likewise.
2320 * gdbtypes.c (opaque_type_resolution): Likewise.
2321 (strict_type_checking): Likewise.
2322 * gnu-nat.c (gnu_debug_flag): Likewise.
2323 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2324 * guile/scm-param.c (pascm_variable): Add boolval.
2325 (add_setshow_generic): Update.
2326 (pascm_param_value): Update.
2327 (pascm_set_param_value_x): Update.
2328 * hppa-tdep.c (hppa_debug): Change to bool..
2329 * infcall.c (may_call_functions_p): Likewise.
2330 (coerce_float_to_double_p): Likewise.
2331 (unwind_on_signal_p): Likewise.
2332 (unwind_on_terminating_exception_p): Likewise.
2333 * infcmd.c (startup_with_shell): Likewise.
2334 * inferior.c (print_inferior_events): Likewise.
2335 * inferior.h (startup_with_shell): Likewise.
2336 (print_inferior_events): Likewise.
2337 * infrun.c (step_stop_if_no_debug): Likewise.
2338 (detach_fork): Likewise.
2339 (debug_displaced): Likewise.
2340 (disable_randomization): Likewise.
2341 (non_stop): Likewise.
2342 (non_stop_1): Likewise.
2343 (observer_mode): Likewise.
2344 (observer_mode_1): Likewise.
2345 (set_observer_mode): Update.
2346 (sched_multi): Change to bool.
2347 * infrun.h (debug_displaced): Likewise.
2348 (sched_multi): Likewise.
2349 (step_stop_if_no_debug): Likewise.
2350 (non_stop): Likewise.
2351 (disable_randomization): Likewise.
2352 * linux-tdep.c (use_coredump_filter): Likewise.
2353 (dump_excluded_mappings): Likewise.
2354 * linux-thread-db.c (auto_load_thread_db): Likewise.
2355 (check_thread_db_on_load): Likewise.
2356 * main.c (captured_main_1): Update.
2357 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2358 xx2_opt, boolean_opt>: Change to bool.
2359 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2360 * maint.c (maintenance_profile_p): Likewise.
2361 (per_command_time): Likewise.
2362 (per_command_space): Likewise.
2363 (per_command_symtab): Likewise.
2364 * memattr.c (inaccessible_by_default): Likewise.
2365 * mi/mi-main.c (mi_async): Likewise.
2366 (mi_async_1): Likewise.
2367 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2368 * nat/fork-inferior.h (startup_with_shell): Likewise.
2369 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2370 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2371 * nios2-tdep.c (nios2_debug): Likewise.
2372 * or1k-tdep.c (or1k_debug): Likewise.
2373 * parse.c (parser_debug): Likewise.
2374 * parser-defs.h (parser_debug): Likewise.
2375 * printcmd.c (print_symbol_filename): Likewise.
2376 * proc-api.c (procfs_trace): Likewise.
2377 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2378 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2379 (set_parameter_value): Update.
2380 (add_setshow_generic): Update.
2381 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2382 to bool*.
2383 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2384 int*.
2385 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2386 * record-btrace.c (record_btrace_target::store_registers): Update.
2387 * record-full.c (record_full_memory_query): Change to bool.
2388 (record_full_stop_at_limit): Likewise.
2389 * record-full.h (record_full_memory_query): Likewise.
2390 * remote-notif.c (notif_debug): Likewise.
2391 * remote-notif.h (notif_debug): Likewise.
2392 * remote.c (use_range_stepping): Likewise.
2393 (interrupt_on_connect): Likewise.
2394 (remote_break): Likewise.
2395 * ser-tcp.c (tcp_auto_retry): Likewise.
2396 * ser-unix.c (serial_hwflow): Likewise.
2397 * skip.c (debug_skip): Likewise.
2398 * solib-aix.c (solib_aix_debug): Likewise.
2399 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2400 (spu_auto_flush_cache_p): Likewise.
2401 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2402 Likewise.
2403 (struct info_print_options) <quiet>: Likewise.
2404 * symfile-debug.c (debug_symfile): Likewise.
2405 * symfile.c (auto_solib_add): Likewise.
2406 (separate_debug_file_debug): Likewise.
2407 * symfile.h (auto_solib_add): Likewise.
2408 (separate_debug_file_debug): Likewise.
2409 * symtab.c (basenames_may_differ): Likewise.
2410 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2411 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2412 (struct info_types_options) <quiet>: Likewise.
2413 * symtab.h (demangle): Likewise.
2414 (basenames_may_differ): Likewise.
2415 * target-dcache.c (stack_cache_enabled_1): Likewise.
2416 (code_cache_enabled_1): Likewise.
2417 * target.c (trust_readonly): Likewise.
2418 (may_write_registers): Likewise.
2419 (may_write_memory): Likewise.
2420 (may_insert_breakpoints): Likewise.
2421 (may_insert_tracepoints): Likewise.
2422 (may_insert_fast_tracepoints): Likewise.
2423 (may_stop): Likewise.
2424 (auto_connect_native_target): Likewise.
2425 (target_stop_and_wait): Update.
2426 (target_async_permitted): Change to bool.
2427 (target_async_permitted_1): Likewise.
2428 (may_write_registers_1): Likewise.
2429 (may_write_memory_1): Likewise.
2430 (may_insert_breakpoints_1): Likewise.
2431 (may_insert_tracepoints_1): Likewise.
2432 (may_insert_fast_tracepoints_1): Likewise.
2433 (may_stop_1): Likewise.
2434 * target.h (target_async_permitted): Likewise.
2435 (may_write_registers): Likewise.
2436 (may_write_memory): Likewise.
2437 (may_insert_breakpoints): Likewise.
2438 (may_insert_tracepoints): Likewise.
2439 (may_insert_fast_tracepoints): Likewise.
2440 (may_stop): Likewise.
2441 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2442 (make_thread_apply_all_options_def_group): Change argument from int*
2443 to bool*.
2444 (thread_apply_all_command): Update.
2445 (print_thread_events): Change to bool.
2446 * top.c (confirm): Likewise.
2447 (command_editing_p): Likewise.
2448 (history_expansion_p): Likewise.
2449 (write_history_p): Likewise.
2450 (info_verbose): Likewise.
2451 * top.h (confirm): Likewise.
2452 (history_expansion_p): Likewise.
2453 * tracepoint.c (disconnected_tracing): Likewise.
2454 (circular_trace_buffer): Likewise.
2455 * typeprint.c (print_methods): Likewise.
2456 (print_typedefs): Likewise.
2457 * utils.c (debug_timestamp): Likewise.
2458 (sevenbit_strings): Likewise.
2459 (pagination_enabled): Likewise.
2460 * utils.h (sevenbit_strings): Likewise.
2461 (pagination_enabled): Likewise.
2462 * valops.c (overload_resolution): Likewise.
2463 * valprint.h (struct value_print_options) <prettyformat_arrays,
2464 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2465 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2466 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2467 Likewise.
2468 * windows-nat.c (new_console): Likewise.
2469 (cygwin_exceptions): Likewise.
2470 (new_group): Likewise.
2471 (debug_exec): Likewise.
2472 (debug_events): Likewise.
2473 (debug_memory): Likewise.
2474 (debug_exceptions): Likewise.
2475 (useshell): Likewise.
2476 * windows-tdep.c (maint_display_all_tib): Likewise.
2477 * xml-support.c (debug_xml): Likewise.
2478
2479 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2480
2481 * source.c (prepare_path_for_appending): New function.
2482 (openp): Make use of new function.
2483 (find_and_open_source): Search for the compilation directory and
2484 source file as a relative path beneath the directory search path.
2485
2486 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * source-cache.c (source_cache::get_line_charpos): Catch
2489 exceptions and return false, this matches the behaviour documented
2490 in the header file.
2491
2492 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2493
2494 * ada-tasks.c (info_task): Remove quoting of the task's name.
2495
2496 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2497
2498 * symfile.c (auto_solib_add): Replace comment with a reference
2499 to the header file.
2500
2501 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2502
2503 * NEWS: Mention that gdb can now be compiled with Python 3
2504 on Windows.
2505
2506 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * maint.c (maint_print_section_data::maint_print_section_data):
2509 Force use of 'float log10 (float)' by casting the argument to
2510 float.
2511
2512 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * maint.c: Add 'cmath' include.
2515 (struct maint_print_section_data): New structure.
2516 (print_section_index): New function.
2517 (print_bfd_section_info): Add header comment, small whitespace
2518 cleanup, and update to call new print_section_index function.
2519 (print_objfile_section_info): Likewise.
2520 (maint_obj_section_from_bfd_section): New function.
2521 (print_bfd_section_info_maybe_relocated): New function.
2522 (maintenance_info_sections): Add header comment, always use
2523 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2524
2525 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2528 inner scope, add check that the objfile has psymtabs before
2529 checking psymtabs_addrmap.
2530 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2531
2532 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2533
2534 * NEWS: Announce that Ada task names are now shown at more places,
2535 and between quotes (except in info task output).
2536 * gdb/ada-tasks.c (task_to_str): New function.
2537 (display_current_task_id): Call task_to_str.
2538 (task_command_1): Likewise.
2539 (print_ada_task_info): In non-mi mode, Properly align headers and data
2540 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2541
2542 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2543
2544 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2545 prstatus.pr_lwp.pr_info instead of making it up.
2546
2547 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2548
2549 * auto-load.c (auto_load_expand_dir_vars): Update.
2550 * defs.h (gdb_datadir): Change to std::string.
2551 (python_libdir): Likewise.
2552 (relocate_gdb_directory): Change return type to std::string.
2553 * guile/guile.c (gdbscm_data_directory): Update.
2554 (initialize_scheme_side): Update.
2555 * jit.c (jit_reader_dir): Change to std::string.
2556 (jit_reader_load_command): Update.
2557 * main.c (gdb_datadir): Change to std::string.
2558 (python_libdir): Likewise.
2559 (set_gdb_data_directory): Update.
2560 (relocate_path): Change to return std::string.
2561 (relocate_gdb_directory): Change to return std::string.
2562 (relocate_gdbinit_path_maybe_in_datadir): Update.
2563 (captured_main_1): Update.
2564 * python/python.c (do_start_initialization): Update.
2565 * top.c (show_gdb_datadir): Update.
2566 * xml-syscall.c (xml_init_syscalls_info): Update.
2567 (init_syscalls_info): Update.
2568
2569 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2570
2571 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2572 out of get_init_files.
2573 (get_init_files): Update.
2574
2575 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2576
2577 * main.c (get_init_files): Change to use std::string.
2578 (captured_main_1): Update.
2579 (print_gdb_help): Update.
2580
2581 2019-09-11 Ali Tamur <tamur@google.com>
2582
2583 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2584 implementation.
2585
2586 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2587
2588 * dbxread.c (read_dbx_symtab): Update.
2589 * dwarf2read.c (load_partial_dies): Update.
2590 * mdebugread.c (parse_partial_symbols): Update.
2591 (handle_psymbol_enumerators): Update.
2592 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2593 * psymtab.c (add_psymbol_to_bcache): Likewise.
2594 (add_psymbol_to_list): Likewise.
2595 * symtab.c (symbol_set_names): Likewise.
2596 * symtab.h (symbol_set_names): Likewise.
2597 * xcoffread.c (scan_xcoff_symtab): Update.
2598
2599 2019-09-11 Tom Tromey <tom@tromey.com>
2600
2601 * symfile-mem.c (symbol_file_add_from_memory): Use
2602 bfd_set_filename.
2603 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2604 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2605
2606 2019-09-10 Tom Tromey <tromey@adacore.com>
2607
2608 * dwarf-index-write.c (write_psymbols): Extend error message.
2609 (debug_names::insert): Add Ada code.
2610 (debug_names::write_psymbols): Remove Ada check.
2611 (debug_names) <m_string_obstack>: New member.
2612 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2613 (gdb_index_symbol_name_matcher::matches): Remove.
2614 (mapped_index_base::find_name_components_bounds): Add "lang"
2615 parameter.
2616 (mapped_index_base::build_name_components): Also split names
2617 according to Ada syntax.
2618 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2619 type of "match_callback".
2620 (check_match, check_find_bounds_finds)
2621 (dw2_expand_symtabs_matching): Update.
2622 (dw2_debug_names_iterator): Add new constructor.
2623 (dw2_debug_names_map_matching_symbols): New function.
2624 (dw2_debug_names_expand_symtabs_matching): Update.
2625 (dwarf2_debug_names_functions): Use
2626 dw2_debug_names_map_matching_symbols.
2627
2628 2019-09-10 Tom Tromey <tromey@adacore.com>
2629
2630 * dwarf2read.c (dw2_get_file_names_reader): Add the
2631 CU's file name to the results.
2632
2633 2019-09-10 Tom Tromey <tromey@adacore.com>
2634
2635 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2636 map_matching_symbols. Update.
2637 * dwarf2read.c (dw2_map_matching_symbols): Update.
2638 * psymtab.c (match_partial_symbol): Change type; update.
2639 (psym_map_matching_symbols): Likewise.
2640 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2641 type; update.
2642 * symfile.h (struct quick_symbol_functions)
2643 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2644 Remove "match".
2645
2646 2019-09-10 Tom Tromey <tromey@adacore.com>
2647
2648 * psymtab.c (map_block): Remove.
2649 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2650 * symtab.c (iterate_over_symbols_terminated): New function.
2651 * symtab.c (iterate_over_symbols_terminated): Declare.
2652
2653 2019-09-10 Tom Tromey <tromey@adacore.com>
2654
2655 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2656 * language.h (struct language_defn) <la_iterate_over_symbols>:
2657 Return bool.
2658 * symtab.c (iterate_over_symbols): Return bool.
2659 * symtab.h (iterate_over_symbols): Return bool.
2660
2661 2019-09-10 Tom Tromey <tromey@adacore.com>
2662
2663 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2664 (add_nonlocal_symbols): Update.
2665 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2666 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2667 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2668 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2669 Change type of "callback". Remove "data".
2670
2671
2672 2019-09-09 Ali Tamur <tamur@google.com>
2673
2674 * dwarf2read.c (comp_unit_head): Update comment.
2675 (dwarf2_dwo_name): New function declaration.
2676 (dwarf_unit_type_name): New function declaration.
2677 (read_comp_unit_head): Add support for new compilation units,
2678 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2679 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2680 (currently named as "signature") in their header. Also clarify error
2681 messages.
2682 (lookup_dwo_id): New function. Returns the dwo id of the given
2683 compile unit.
2684 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2685 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2686 functions.
2687 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2688 (dwarf2_dwo_name): Get the dwo name if present.
2689 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2690 purposes.
2691
2692 2019-09-09 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2695
2696 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2697
2698 * python/python.c (do_start_initialization): Make progname_copy static,
2699 to avoid a leak report.
2700
2701 2019-09-08 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2704
2705 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2708 Change type to gdb::optional<block_enum>.
2709 (dw2_symtab_iter_init): Change block_index parameter type
2710 to gdb::optional<block_enum>.
2711 (dw2_lookup_symbol): Change block_index parameter
2712 type to block_enum.c
2713 (dw2_debug_names_lookup_symbol): Likewise.
2714 * psymtab.c (psym_lookup_symbol): Likewise.
2715 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2716 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2717 Likewise.
2718
2719 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2720
2721 * defs.h (relocate_gdb_directory): Change int to bool in
2722 signature and rename flag to relocatable.
2723 * main.c (relocate_path): Likewise.
2724 (relocate_gdb_directory): Likewise.
2725
2726 2019-09-06 Alan Modra <amodra@gmail.com>
2727
2728 * coffread.c (coff_symfile_read): Constify filename variable.
2729 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2730 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2731 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2732 * solib.c (reload_shared_libraries_1): Likewise.
2733 * symfile.c (reread_symbols): Likewise.
2734 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2735 * solib-darwin.c (darwin_bfd_open): Likewise.
2736 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2737
2738 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2741 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2742
2743 2019-09-03 Tom Tromey <tromey@adacore.com>
2744
2745 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2746 types.
2747 (has_negatives): Unbias a range type bound.
2748 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2749 * gdbtypes.c (operator==): Handle new field.
2750 (create_range_type): Add "bias" parameter.
2751 (create_static_range_type, resolve_dynamic_range): Update.
2752 * gdbtypes.h (struct range_bounds) <bias>: New member.
2753 (create_range_type): Add bias parameter.
2754 * printcmd.c (print_scalar_formatted): Unbias range types.
2755 * value.c (unpack_long): Unbias range types.
2756 (pack_long): Bias range types.
2757
2758 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2759
2760 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2761 probe arguments.
2762
2763 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2764
2765 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2766 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2767 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2768 (compile_probe_arg): Likewise.
2769 * probe.h (get_argument_count): Likewise.
2770 * solib-svr4.c (solib_event_probe_action): Likewise.
2771 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2772
2773 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2774
2775 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2776 code to here...
2777 (svr4_create_solib_event_breakpoints): ...from here.
2778
2779 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2780
2781 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2782 suffix from warning message.
2783
2784 2019-08-30 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-winsource.h (struct tui_source_window_base)
2787 <refresh_all>: Don't declare.
2788 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2789 Remove.
2790 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2791 tui_show_locator_content.
2792 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2793 declare.
2794 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2795 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2796 declare.
2797
2798 2019-08-30 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2801
2802 2019-08-30 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2805 Remove unnecessary forward declarations.
2806
2807 2019-08-30 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2810 rerender.
2811 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2812 tui_show_locator_content.
2813
2814 2019-08-30 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2817 (tui_locator_window::rerender): Rewrite using body of previous
2818 tui_show_locator_content.
2819
2820 2019-08-30 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2823 set_locator_fullname>: New methods.
2824 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2825 Rename from tui_set_locator_fullname.
2826 (tui_locator_window::set_locator_info): Rename from
2827 tui_set_locator_info. Return bool.
2828 (tui_update_locator_fullname, tui_show_frame_info): Update.
2829
2830 2019-08-30 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2833
2834 2019-08-30 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2837 call touchwin.
2838
2839 2019-08-30 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-wingeneral.c (box_win): Assume win_info and
2842 win_info->handle cannot be NULL.
2843
2844 2019-08-30 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2847 refresh_window>: Declare.
2848 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2849 resize.
2850 (tui_data_item_window::rerender): Rename from
2851 tui_display_register.
2852 (tui_data_item_window::refresh_window): New method.
2853 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2854 no-op.
2855
2856 2019-08-30 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2859 regs_column_count, current_group>: Move later. Now private.
2860 <get_current_group>: New method.
2861 * tui/tui-regs.c (tui_reg_command): Update.
2862 * tui/tui-layout.c (tui_set_layout): Update.
2863
2864 2019-08-30 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2867 (tui_data_window::rerender): Don't call
2868 check_and_display_highlight_if_needed.
2869 (tui_data_window::refresh_all): Remove call to
2870 erase_data_content.
2871
2872 2019-08-30 Tom Tromey <tom@tromey.com>
2873
2874 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2875 (tui_data_window::display_registers_from)
2876 (tui_data_window::display_reg_element_at_line)
2877 (tui_data_window::display_registers_from_line): Remove checks of
2878 "empty".
2879
2880 2019-08-30 Tom Tromey <tom@tromey.com>
2881
2882 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2883 Don't declare.
2884 * tui/tui-regs.c (tui_data_window::show_registers): Call
2885 rerender.
2886 (tui_data_window::rerender): Rename from display_all_data.
2887 (tui_data_window::rerender): Remove old implementation.
2888
2889 2019-08-30 Tom Tromey <tom@tromey.com>
2890
2891 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2892 text.
2893 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2894
2895 2019-08-29 Bernhard Wodok <barto@gmx.net>
2896 Sergio Durigan Junior <sergiodj@redhat.com>
2897
2898 PR win32/24284
2899 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2900
2901 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2904 when searching for types.
2905
2906 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * f-lang.c (f_language_defn): Use f_print_typedef.
2909 * f-lang.h (f_print_typedef): Declare.
2910 * f-typeprint.c (f_print_typedef): Define.
2911
2912 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2913
2914 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2915
2916 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * cli/cli-utils.c (info_print_options_defs): Delete.
2919 (make_info_print_options_def_group): Delete.
2920 (extract_info_print_options): Delete.
2921 (info_print_command_completer): Delete.
2922 (info_print_args_help): Add extra parameter, and optionally
2923 include text about -n flag.
2924 * cli/cli-utils.h (struct info_print_options): Delete.
2925 (extract_info_print_options): Delete declaration.
2926 (info_print_command_completer): Delete declaration.
2927 (info_print_args_help): Add extra parameter, extend header
2928 comment.
2929 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2930 search_symbols.
2931 * stack.c (struct info_print_options): New type.
2932 (info_print_options_defs): New file scoped variable.
2933 (make_info_print_options_def_group): New static function.
2934 (info_print_command_completer): New static function.
2935 (info_locals_command): Update to use new local functions.
2936 (info_args_command): Likewise.
2937 (_initialize_stack): Add extra parameter to calls to
2938 info_print_args_help.
2939 * symtab.c (search_symbols): Add extra parameter, use this to
2940 possibly excluse non-debug symbols.
2941 (symtab_symbol_info): Add extra parameter, which is passed on to
2942 search_symbols.
2943 (struct info_print_options): New type.
2944 (info_print_options_defs): New file scoped variable.
2945 (make_info_print_options_def_group): New static function.
2946 (info_print_command_completer): New static function.
2947 (info_variables_command): Update to use local functions, and pass
2948 extra parameter through to symtab_symbol_info.
2949 (info_functions_command): Likewise.
2950 (info_types_command): Pass additional argument through to
2951 symtab_symbol_info.
2952 (rbreak_command): Pass extra argument to search_symbols.
2953 (_initialize_symtab): Add extra arguments for calls to
2954 info_print_args_help, and update help text for 'info variables',
2955 'whereis', and 'info functions' commands.
2956 * symtab.h (search_symbols): Add extra argument to declaration.
2957 * NEWS: Mention new flags.
2958
2959 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2960
2961 * symtab.c (lookup_static_symbol): Call the new function (and move
2962 it down to be next to lookup_global_symbol).
2963 (struct global_sym_lookup_data): Add block_enum member and rename to...
2964 (struct global_or_static_sym_lookup_data): ...this.
2965 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2966 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2967 (lookup_symbol_global_or_static_iterator_cb): ...this.
2968 (lookup_global_or_static_symbol): New function.
2969 (lookup_global_symbol): Call new function.
2970
2971 2019-08-26 Tom de Vries <tdevries@suse.de>
2972
2973 PR c++/24852
2974 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2975 when pc_probe.prob == NULL.
2976
2977 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2980 variable symbol_linkage to symbol_linkage_.
2981
2982 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2985 represent whether the symbol is static, dynamic, or we don't
2986 know.
2987
2988 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2989
2990 * gdb/rx-tdep.c (rx_register_names): New.
2991 (rx_register_name): Delete.
2992 (rx_psw_type): Delete.
2993 (rx_fpsw_type): Delete.
2994 (rx_register_type): Delete.
2995 (rx_gdbarch_init): Convert target-descriptions.
2996 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2997 * gdb/features/Makefile: Add rx.xml.
2998 * gdb/features/rx.xml: New.
2999 * gdb/features/rx.c: Generated.
3000 * gdb/NEWS: Mention target description support.
3001
3002 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3003
3004 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3005 *slot_ptr.
3006
3007 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3008
3009 * configure.ac: Don't check for 'dlfcn.h' (moved to
3010 gdbsupport/common.m4).
3011 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3012 'gdbsupport/'.
3013 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3014 * compile/compile-c-support.c: Include
3015 'gdbsupport/gdb-dlfcn.h'.
3016 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3017 * gdb-dlfcn.c: Move to...
3018 * gdbsupport/gdb-dlfcn.c: ... here.
3019 * gdb-dlfcn.h: Move to...
3020 * gdbsupport/gdb-dlfcn.h: ... here.
3021
3022 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3023
3024 * nios2-tdep.c (struct reg_value): Improve comments. Make
3025 the offset field signed.
3026
3027 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3028
3029 * python/lib/gdb/__init__.py (_execute_file): New function.
3030 * python/python.c (python_run_simple_file): Call gdb._execute_file
3031 on Windows.
3032
3033 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3036 all uses as this was never set to anything but a zero value.
3037
3038 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3039
3040 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3041
3042 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3043
3044 * tui/tui-data.h (tui_gen_win_info): Add an =default
3045 move constructor, required by some GCC versions.
3046
3047 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3048
3049 * go32-nat.c (go32_sysinfo): Add hygon_p.
3050
3051 2019-08-20 Tom Tromey <tom@tromey.com>
3052
3053 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3054 line_from_reg_element_no, first_reg_element_no_inline,
3055 display_all_data, delete_data_content_windows,
3056 erase_data_content>: Now private.
3057
3058 2019-08-20 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3061 (tui_unhighlight_win, tui_highlight_win)
3062 (tui_win_info::make_window): Update.
3063 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3064
3065 2019-08-20 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3068 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3069 (MAX_PID_WIDTH): Move to tui-stack.c.
3070 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3071 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3072 (MAX_PID_WIDTH): Move from tui-data.h.
3073
3074 2019-08-20 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3077 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3078 (box_win): Update.
3079 (tui_gen_win_info::make_window): Rename from tui_make_window.
3080 (tui_win_info::make_window): New method.
3081 (tui_gen_win_info::make_visible): Update.
3082 * tui/tui-source.c (tui_source_window::set_contents): Update.
3083 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3084 (tui_data_window::display_registers_from): Update.
3085 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3086 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3087 Declare.
3088 <can_box>: Remove.
3089 <title>: Remove.
3090 (struct tui_win_info) <make_window>: Declare.
3091 <can_box>: Now virtual.
3092 <title>: New member.
3093 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3094 * tui/tui-command.c (tui_cmd_window::resize): Update.
3095
3096 2019-08-20 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3099 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3100 (tui_data_window::check_register_values): Update.
3101
3102 2019-08-20 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-regs.h (struct tui_data_window): Use
3105 DISABLE_COPY_AND_ASSIGN.
3106 <regs_content>: Change type, removing unique_ptr.
3107 <tui_data_window>: Add move constructor.
3108 * tui/tui-regs.c (tui_data_window::show_registers)
3109 (tui_data_window::show_register_group)
3110 (tui_data_window::display_registers_from)
3111 (tui_data_window::display_registers_from)
3112 (tui_data_window::first_data_item_displayed)
3113 (tui_data_window::delete_data_content_windows)
3114 (tui_data_window::rerender, tui_data_window::refresh_window)
3115 (tui_data_window::check_register_values): Update.
3116
3117 2019-08-20 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3120 show_register_group>: Declare.
3121 (tui_show_register_group): Don't declare.
3122 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3123 tui_show_registers.
3124 (tui_data_window::show_register_group): Rename from
3125 tui_show_register_group.
3126 (tui_data_window::check_register_values, tui_reg_command):
3127 Update.
3128 * tui/tui-layout.c (tui_set_layout): Update.
3129
3130 2019-08-20 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3133 Declare.
3134 (tui_check_register_values): Don't declare.
3135 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3136 from tui_check_register_values.
3137 * tui/tui-hooks.c (tui_register_changed): Update.
3138
3139 2019-08-20 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-regs.c (tui_reg_layout): Move later.
3142 (tui_show_registers): Don't enable TUI mode or change layout.
3143
3144 2019-08-20 Tom Tromey <tom@tromey.com>
3145
3146 * tui/tui-regs.h (struct tui_data_item_window)
3147 <~tui_data_item_window>: Remove.
3148 <content>: Now a unique_xmalloc_ptr.
3149 * tui/tui-regs.c (tui_register_format): Return a
3150 unique_xmalloc_ptr.
3151 (tui_get_register): Update.
3152 (~tui_data_item_window): Remove.
3153 (tui_data_window::display_registers_from, tui_display_register):
3154 Update.
3155 * tui/tui-io.h (tui_expand_tabs): Update.
3156 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3157 Remove "col" parameter.
3158
3159 2019-08-20 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3162 field.
3163 * tui/tui-regs.c (~tui_data_item_window): Update.
3164
3165 2019-08-20 Tom Tromey <tom@tromey.com>
3166
3167 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3168 earlier.
3169
3170 2019-08-20 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3173
3174 2019-08-20 Tom Tromey <tom@tromey.com>
3175
3176 * tui/tui-source.h (struct tui_source_window): Update.
3177 * tui/tui-regs.c (tui_show_registers): Update.
3178 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3179 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3180 (NO_REGS_STRING): Remove defines.
3181
3182 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3183
3184 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3185 unnecessary thread walk if remote doesn't support the packet.
3186
3187 2019-08-19 Tom Tromey <tromey@adacore.com>
3188
3189 * python/py-value.c (value_has_field): Fix indentation.
3190
3191 2019-08-19 Tom Tromey <tromey@adacore.com>
3192
3193 * printcmd.c (do_one_display, info_display_command): Update.
3194 * block.h (contained_in): Return bool. Add allow_nested
3195 parameter.
3196 * block.c (contained_in): Return bool. Add allow_nested
3197 parameter.
3198
3199 2019-08-19 Tom Tromey <tom@tromey.com>
3200
3201 * configure: Rebuild.
3202 * configure.ac: Disallow the combination of -static-libstdc++ and
3203 source highlight.
3204 * source-cache.c (get_language_name): Handle rust.
3205 (source_cache::get_source_lines): Ignore highlighting exceptions.
3206
3207 2019-08-16 Tom Tromey <tom@tromey.com>
3208
3209 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3210 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3211 (struct tui_source_window_base) <make_visible, refresh_window,
3212 resize>: Remove methods.
3213 <execution_info>: Remove field.
3214 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3215 (tui_show_source_line, tui_source_window_base)
3216 (~tui_source_window_base): Update.
3217 (tui_source_window_base::resize)
3218 (tui_source_window_base::make_visible)
3219 (tui_source_window_base::refresh_window): Remove.
3220 (tui_source_window_base::update_exec_info): Update.
3221 * tui/tui-source.c (tui_source_window::set_contents): Update.
3222 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3223
3224 2019-08-16 Tom Tromey <tom@tromey.com>
3225
3226 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3227 deprecated_query_hook.
3228
3229 2019-08-16 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3232 (tui_update_source_windows_with_line): Update.
3233 * tui/tui-source.h (struct tui_source_window)
3234 <show_symtab_source>: Declare.
3235 (tui_show_symtab_source): Don't declare.
3236 * tui/tui-source.c (tui_show_symtab_source): Rename from
3237 tui_show_symtab_source.
3238
3239 2019-08-16 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-winsource.h (struct tui_source_window_base)
3242 <set_contents>: Declare.
3243 * tui/tui-winsource.c
3244 (tui_source_window_base::update_source_window_as_is): Update.
3245 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3246 Declare.
3247 (tui_set_source_content): Don't declare.
3248 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3249 tui_set_source_content.
3250 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3251 Declare.
3252 (tui_set_disassem_content): Don't declare.
3253 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3254 tui_set_disassem_content.
3255
3256 2019-08-16 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-winsource.h (struct tui_source_window_base)
3259 <update_breakpoint_info>: Declare.
3260 (tui_update_breakpoint_info): Don't declare.
3261 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3262 (tui_update_all_breakpoint_info): Update.
3263 (tui_source_window_base::update_breakpoint_info): Rename from
3264 tui_update_breakpoint_info.
3265 (tui_source_window_base::update_exec_info): Update.
3266
3267 2019-08-16 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-winsource.h (struct tui_source_window_base)
3270 <update_source_window>: Declare.
3271 (tui_update_source_window): Don't declare.
3272 * tui/tui-winsource.c
3273 (tui_source_window_base::update_source_window): Rename from
3274 tui_update_source_window.
3275 (tui_source_window_base::rerender): Update.
3276 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3277 * tui/tui-disasm.c (tui_show_disassem)
3278 (tui_show_disassem_and_update_source)
3279 (tui_disasm_window::maybe_update): Update.
3280
3281 2019-08-16 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-winsource.h (struct tui_source_window_base)
3284 <update_source_window_as_is>: Declare.
3285 (tui_update_source_window_as_is): Don't declare.
3286 * tui/tui-winsource.c (tui_update_source_window): Update
3287 (tui_source_window_base::update_source_window_as_is): Rename from
3288 tui_update_source_window_as_is.
3289 (tui_source_window_base::refill): Update.
3290 * tui/tui-source.c (tui_show_symtab_source): Update.
3291 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3292 Update.
3293
3294 2019-08-16 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-winsource.h (tui_update_source_window)
3297 (tui_update_source_window_as_is): Remove "noerror" parameter.
3298 * tui/tui-winsource.c (tui_update_source_window)
3299 (tui_update_source_window_as_is): Remove "noerror" parameter.
3300 (tui_update_source_windows_with_addr)
3301 (tui_update_source_windows_with_line)
3302 (tui_source_window_base::rerender)
3303 (tui_source_window_base::refill): Update.
3304 * tui/tui-source.h (tui_set_source_content)
3305 (tui_show_symtab_source): Remove "noerror" parameter.
3306 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3307 parameter.
3308 (tui_show_symtab_source): Likewise.
3309 (tui_source_window::maybe_update): Update.
3310 * tui/tui-disasm.c (tui_show_disassem)
3311 (tui_show_disassem_and_update_source)
3312 (tui_disasm_window::do_scroll_vertical)
3313 (tui_disasm_window::maybe_update): Update.
3314
3315 2019-08-16 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui.c (tui_is_window_visible): Update.
3318 * tui/tui-wingeneral.c (tui_make_window)
3319 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3320 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3321 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3322 (tui_set_win_height_command, parse_scrolling_args): Update.
3323 * tui/tui-source.c (tui_source_window::style_changed): Update.
3324 * tui/tui-regs.c (tui_show_registers)
3325 (tui_data_window::first_data_item_displayed)
3326 (tui_data_window::delete_data_content_windows)
3327 (tui_check_register_values, tui_reg_command): Update.
3328 * tui/tui-disasm.c (tui_show_disassem): Update.
3329 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3330 method.
3331 <is_visible>: Remove field.
3332 * tui/tui-data.c (tui_next_win, tui_prev_win)
3333 (tui_delete_invisible_windows): Update.
3334
3335 2019-08-16 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-winsource.h (struct tui_source_window_base)
3338 <m_has_locator>: Remove.
3339 * tui/tui-layout.c (show_source_disasm_command, show_data)
3340 (show_source_or_disasm_and_command): Update.
3341
3342 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3343
3344 * NEWS (Other MI changes): New subsection.
3345 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3346 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3347 * arch-utils.c (default_get_pc_address_flags): New function.
3348 * arch-utils.h (default_get_pc_address_flags): New declaration.
3349 * gdbarch.sh: Add get_pc_address_flags.
3350 * gdbarch.c: Regenerate.
3351 * gdbarch.h: Likewise.
3352 * stack.c (print_pc): New function.
3353 (print_frame_info) (print_frame): Call print_pc.
3354
3355 2019-08-16 Tom de Vries <tdevries@suse.de>
3356
3357 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3358 print_objfile_section_info.
3359
3360 2019-08-15 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3363 calling update_cmdwin_start_line.
3364 * tui/tui-winsource.h (struct tui_source_window_base)
3365 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3366 <rerender>: Declare.
3367 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3368 Call rerender.
3369 (tui_source_window_base::set_new_height): Remove.
3370 (tui_source_window_base::rerender): Rename from
3371 do_make_visible_with_new_height.
3372 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3373 resize method.
3374 (tui_win_info::make_invisible_and_set_new_height)
3375 (tui_win_info::make_visible_with_new_height): Remove.
3376 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3377 Declare.
3378 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3379 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3380 do_make_visible_with_new_height>: Don't declare.
3381 <rerender>: Declare.
3382 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3383 set_new_height.
3384 (tui_data_window::do_make_visible_with_new_height): Remove.
3385 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3386 call tui_show_locator_content.
3387 (tui_gen_win_info::resize): Call rerender.
3388 (show_source_or_disasm_and_command): Don't call
3389 tui_show_locator_content.
3390 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3391 method.
3392 (struct tui_win_info) <rerender>: Declare.
3393 <set_new_height, make_invisible_and_set_new_height,
3394 make_visible_with_new_height>: Don't declare.
3395 * tui/tui-data.c (tui_win_list::rerender): New method.
3396 * tui/tui-command.h (struct tui_cmd_window)
3397 <do_make_visible_with_new_height>: Don't declare.
3398 * tui/tui-command.c
3399 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3400
3401 2019-08-15 Tom Tromey <tromey@adacore.com>
3402
3403 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3404 * ada-lang.c (ada_enum_name): Likewise.
3405
3406 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3407
3408 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3409 leading underscore.
3410 (GdbOutputErrorFile): Likewise.
3411 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3412 accordingly.
3413 (execute_unwinders): Rename to have a leading underscore.
3414 (auto_load_packages): Likewise.
3415 (global scope): Adjust call to auto_load_packages accordingly.
3416 (GdbSetPythonDirectory): Likewise.
3417 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3418 instead of execute_unwinders.
3419
3420 2019-08-15 Tom Tromey <tom@tromey.com>
3421
3422 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3423 (show_data): Don't change window visibility.
3424 (tui_gen_win_info::resize): Remove special case for command
3425 window. Use wresize, when available.
3426 (show_source_or_disasm_and_command): Don't change window
3427 visibility.
3428 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3429 <make_visible>: New method.
3430 * tui/tui-command.c (tui_cmd_window::resize): New method.
3431
3432 2019-08-15 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3435 (struct tui_source_windows): New.
3436 * tui/tui-winsource.c (tui_display_main): Update.
3437 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3438 (new_height_ok, parse_scrolling_args): Update.
3439 * tui/tui-layout.c (show_layout, show_data): Update.
3440 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3441 (tui_add_to_source_windows): Don't declare.
3442 * tui/tui-data.c (source_windows, tui_source_windows)
3443 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3444
3445 2019-08-15 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3448 Rename from reset.
3449 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3450 * tui/tui-layout.c (show_source_disasm_command, show_data):
3451 Update.
3452 (tui_gen_win_info::resize): Rename.
3453 (show_source_or_disasm_and_command): Update.
3454 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3455 reset.
3456
3457 2019-08-15 Tom Tromey <tom@tromey.com>
3458
3459 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3460 * tui/tui-interp.c (tui_interp::init): Don't call
3461 tui_initialize_static_data.
3462 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3463
3464 2019-08-15 Tom Tromey <tom@tromey.com>
3465
3466 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3467 examine tui_win_list.
3468
3469 2019-08-15 Tom Tromey <tom@tromey.com>
3470
3471 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3472 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3473 tui_clear_source_content.
3474 (tui_clear_source_content): Remove.
3475 (tui_source_window_base::do_erase_source_content): Hoist call to
3476 content.clear().
3477 * tui/tui-stack.c (tui_show_frame_info): Don't call
3478 tui_clear_source_content.
3479
3480 2019-08-15 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-winsource.h (struct tui_source_window_base)
3483 <do_erase_source_content>: New method.
3484 <erase_source_content>: New method.
3485 (tui_erase_source_content): Don't declare.
3486 * tui/tui-winsource.c (tui_clear_source_content): Update.
3487 (tui_source_window_base::do_erase_source_content): Rename from
3488 tui_erase_source_content.
3489 (tui_source_window_base::show_source_content): Update.
3490 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3491 * tui/tui-source.h (struct tui_source_window)
3492 <erase_source_content>: New method.
3493 * tui/tui-disasm.h (struct tui_disasm_window)
3494 <erase_source_content>: New method.
3495
3496 2019-08-15 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3499 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3500 constructor.
3501 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3502 * tui/tui-source.c (tui_set_source_content): Update.
3503 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3504
3505 2019-08-15 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3508 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3509 tui-source.c.
3510 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3511 Declare.
3512 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3513 method.
3514 (tui_source_window::maybe_update): Update.
3515
3516 2019-08-15 Tom Tromey <tom@tromey.com>
3517
3518 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3519 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3520 tui-disasm.c.
3521 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3522 Declare.
3523 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3524 method.
3525 (tui_disasm_window::maybe_update): Update.
3526
3527 2019-08-15 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.h (struct tui_source_window_base)
3530 <maybe_update>: Declare.
3531 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3532 method.
3533 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3534 Declare.
3535 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3536 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3537 Declare.
3538 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3539
3540 2019-08-15 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3543
3544 2019-08-15 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-wingeneral.c: Include tui-stack.h.
3547 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3548 (struct tui_locator_window): Move from tui-data.h.
3549 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3550 (tui_initialize_static_data): Move from tui-data.c.
3551 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3552 (struct tui_locator_window): Move to tui-stack.c.
3553 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3554 (tui_initialize_static_data): Move to tui-stack.c.
3555
3556 2019-08-15 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-layout.c (show_source_disasm_command)
3559 (show_source_or_disasm_and_command): Use make_visible method, not
3560 tui_make_window.
3561 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3562 Remove.
3563
3564 2019-08-15 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui-wingeneral.h (tui_make_window): Update.
3567 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3568 parameter.
3569 (tui_gen_win_info::make_visible): Update.
3570 * tui/tui-regs.c (tui_data_window::display_registers_from):
3571 Update.
3572 * tui/tui-layout.c (show_source_disasm_command)
3573 (show_source_or_disasm_and_command): Update.
3574 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3575 (enum tui_box): Remove.
3576 (struct tui_win_info) <can_box>: New method.
3577 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3578 method.
3579
3580 2019-08-15 Tom de Vries <tdevries@suse.de>
3581
3582 * linux-nat-trad.c: Include gdbarch.h.
3583
3584 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3585
3586 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3587 register sizes.
3588
3589 2019-08-14 Tom Tromey <tromey@adacore.com>
3590
3591 * darwin-nat.c: Include gdbarch.h.
3592 * darwin-nat-info.c: Include gdbarch.h.
3593
3594 2019-08-13 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3597 Remove.
3598 * tui/tui-data.c (tui_initialize_static_data): Update.
3599
3600 2019-08-13 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-winsource.h (struct tui_exec_info_window)
3603 <~tui_exec_info_window, maybe_allocate_content, get_content,
3604 m_content>: Remove.
3605 (struct tui_source_window_base) <set_exec_info_content,
3606 show_exec_info_content>: Don't declare.
3607 * tui/tui-winsource.c
3608 (tui_exec_info_window::maybe_allocate_content): Remove.
3609 (tui_source_window_base::update_exec_info): Rename from
3610 set_exec_info_content.
3611 (tui_source_window_base::show_exec_info_content)
3612 (tui_source_window_base::update_exec_info): Remove.
3613
3614 2019-08-13 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3617 declare.
3618 * tui/tui-winsource.c (tui_update_source_window_as_is)
3619 (tui_update_source_windows_with_addr, tui_erase_source_content):
3620 Update.
3621 (tui_clear_exec_info_content): Remove.
3622
3623 2019-08-13 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3626 declare.
3627 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3628 call tui_erase_exec_info_content.
3629 (tui_clear_exec_info_content): Rename from
3630 tui_erase_exec_info_content.
3631 (tui_clear_exec_info_content): Delete.
3632
3633 2019-08-13 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-winsource.h (struct tui_source_window_base)
3636 <show_exec_info_content>: Declare.
3637 (tui_show_exec_info_content): Don't declare.
3638 * tui/tui-winsource.c
3639 (tui_source_window_base::show_exec_info_content): Rename from
3640 tui_show_exec_info_content.
3641 (tui_source_window_base::update_exec_info): Update.
3642
3643 2019-08-13 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3646 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3647 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3648 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3649 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3650 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3651 ... here.
3652
3653 2019-08-13 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-winsource.h (struct tui_source_window_base)
3656 <update_exec_info>: Declare.
3657 (tui_update_exec_info): Don't declare.
3658 * tui/tui-winsource.c (tui_update_source_window_as_is)
3659 (tui_source_window_base::refresh_all)
3660 (tui_update_all_breakpoint_info): Update.
3661 (tui_source_window_base::update_exec_info): Rename from
3662 tui_update_exec_info.
3663 * tui/tui-stack.c (tui_show_frame_info): Update.
3664
3665 2019-08-13 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-winsource.h (struct tui_source_window_base)
3668 <set_exec_info_content>: Declare.
3669 (tui_set_exec_info_content): Don't declare.
3670 * tui/tui-winsource.c
3671 (tui_source_window_base::set_exec_info_content): Rename from
3672 tui_set_exec_info_content.
3673 (tui_update_exec_info): Update.
3674
3675 2019-08-13 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-winsource.h (struct tui_source_window_base)
3678 <show_source_content>: Declare.
3679 (tui_show_source_content): Don't declare.
3680 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3681 (tui_source_window_base::show_source_content): Rename from
3682 tui_show_source_content.
3683 (tui_source_window_base::refresh_all): Update.
3684 * tui/tui-layout.c (show_source_disasm_command)
3685 (show_source_or_disasm_and_command): Update.
3686
3687 2019-08-13 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui-winsource.c (tui_erase_source_content)
3690 (tui_show_source_content, tui_source_window_base::refresh_all):
3691 Update.
3692 * tui/tui-wingeneral.h
3693 (tui_check_and_display_highlight_if_needed): Don't declare.
3694 * tui/tui-wingeneral.c
3695 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3696 check_and_display_highlight_if_needed.
3697 * tui/tui-win.c (tui_rehighlight_all)
3698 (tui_win_info::make_visible_with_new_height): Update.
3699 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3700 (tui_data_window::erase_data_content)
3701 (tui_data_window::display_all_data): Update.
3702 * tui/tui-data.h (struct tui_win_info)
3703 <check_and_display_highlight_if_needed>: Declare.
3704
3705 2019-08-13 Tom Tromey <tom@tromey.com>
3706
3707 * tui/tui-win.c (tui_resize_all): Call
3708 tui_delete_invisible_windows.
3709 * tui/tui-layout.c (show_layout): Call
3710 tui_delete_invisible_windows.
3711 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3712 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3713
3714 2019-08-13 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3717 tui_add_win_to_layout.
3718
3719 2019-08-13 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3722 * tui/tui-layout.c (tui_default_win_height): Now static.
3723
3724 2019-08-13 Tom Tromey <tom@tromey.com>
3725
3726 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3727 single switch.
3728 (show_source_disasm_command, show_source_or_disasm_and_command):
3729 Don't check current layout.
3730
3731 2019-08-13 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-wingeneral.c (make_all_visible): Remove.
3734 (tui_make_all_invisible): Simplify.
3735 * tui/tui-layout.c (tui_make_all_invisible): Move from
3736 tui-wingeneral.c; simplify.
3737 (show_layout): Hoist call to tui_make_all_invisible.
3738 (show_data): Don't call tui_make_all_invisible.
3739
3740 2019-08-13 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3743 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3744
3745 2019-08-13 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3748 tui-data.c.
3749 (show_source_disasm_command, show_data)
3750 (show_source_or_disasm_and_command): Don't use
3751 tui_set_current_layout_to.
3752 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3753 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3754 tui-layout.c.
3755 (tui_set_current_layout_to): Remove.
3756
3757 2019-08-13 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-layout.c (tui_set_layout): Update.
3760 * tui/tui-data.h (struct tui_layout_def): Remove.
3761 (tui_layout_def): Don't declare.
3762 * tui/tui-data.c (layout_def): Remove.
3763 (tui_layout_def): Remove.
3764
3765 2019-08-13 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-winsource.h (struct tui_source_window_base)
3768 <clear_detail>: No longer "override".
3769 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3770 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3771 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3772 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3773 Remove.
3774 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3775
3776 2019-08-13 Tom Tromey <tromey@adacore.com>
3777
3778 * tracepoint.c: Don't include readline.h or history.h.
3779
3780 2019-08-12 Tom Tromey <tom@tromey.com>
3781
3782 * configure: Rebuild.
3783 * configure.ac: Check for readline 7.
3784 * NEWS: Mention readline 7 requirement.
3785 * README: Update.
3786
3787 2019-08-12 Tom Tromey <tom@tromey.com>
3788
3789 * mingw-hdep.c (gdb_select): Remove readline hack.
3790
3791 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3792
3793 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3794 when the function fails.
3795
3796 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3797
3798 * s390-tdep.c (s390_type_align): New function.
3799 (s390_gdbarch_init): Set it as type_align gdbarch method.
3800
3801 2019-08-09 Tom de Vries <tdevries@suse.de>
3802
3803 PR gdb/24591
3804 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3805 pc_low with relocation offset.
3806
3807 2019-08-07 Tom Tromey <tromey@adacore.com>
3808
3809 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3810 (print_frame_args): Update.
3811 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3812 Update.
3813 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3814 * frame.h (struct frame_arg): Add initializers.
3815 <error>: Now a unique_xmalloc_ptr.
3816
3817 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3818
3819 * NEWS: Expand the Pointer Authentication entry.
3820 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3821 (aarch64_frame_unmask_lr): ... to this.
3822 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3823 Call aarch64_frame_unmask_lr.
3824 * frame.c (struct frame_info): Add "masked" variable.
3825 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3826 (fprint_frame): Check for masked pc.
3827 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3828 declarations.
3829 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3830 * stack.c (print_frame): Check for masked pc.
3831
3832 2019-08-06 Tom Tromey <tom@tromey.com>
3833
3834 * stabsread.c (patch_block_stabs, read_one_struct_field)
3835 (read_enum_type): Use obstack_strndup.
3836 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3837 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3838 * dwarf2read.c (guess_full_die_structure_name)
3839 (anonymous_struct_prefix): Use obstack_strndup.
3840 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3841 * c-exp.y (yylex): Use obstack_strndup.
3842 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3843 (write_var_or_type): Use obstack_strndup.
3844
3845 2019-08-06 Tom Tromey <tom@tromey.com>
3846
3847 * symfile.c (reread_symbols): Use obstack_strdup.
3848 * stabsread.c (read_type): Use obstack_strdup.
3849 * gdb_obstack.h (obstack_strdup): New overload.
3850 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3851 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3852 (dwarf2_canonicalize_name): Use obstack_strdup.
3853 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3854 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3855 Use obstack_strdup.
3856
3857 2019-08-06 Tom Tromey <tom@tromey.com>
3858
3859 * gdb_obstack.h (obstack_strdup): Define.
3860 * gdb_obstack.c (obstack_strdup): Don't define.
3861
3862 2019-08-06 Tom Tromey <tom@tromey.com>
3863
3864 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3865 obstack_strdup.
3866 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3867 obstack_strdup.
3868 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3869 * stabsread.c (common_block_start): Use obstack_strdup.
3870 * objfiles.c (set_objfile_main_name, objfile): Use
3871 obstack_strdup.
3872 * namespace.c (add_using_directive): Use obstack_strdup.
3873 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3874 * jit.c (finalize_symtab): Use obstack_strdup.
3875 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3876 (guess_partial_die_structure_name, partial_die_info::fixup)
3877 (dwarf2_name): Use obstack_strdup.
3878 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3879 obstack_strdup.
3880 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3881 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3882 obstack_strdup.
3883 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3884
3885 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3886
3887 * unittests/help-doc-selftests.c: New file.
3888 * Makefile.in: Add the new file.
3889
3890 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3891
3892 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3893 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3894 the full first line, except when FOR_VALUE_PREFIX. In this case,
3895 the trailing '.' is not output, and the first character is uppercased.
3896 (print_help_for_command): Update call to print_doc_line.
3897 (print_doc_of_command): Likewise.
3898 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3899 * cli/cli-option.c (append_indented_doc): Do not append newline.
3900 (build_help_option): Append newline after first appended_indented_doc
3901 only if a second call is done.
3902 (build_help): Append 2 new lines before each option, except the first
3903 one.
3904 * compile/compile.c (_initialize_compile): Add new lines after
3905 %OPTIONS%, when not at the end of the help.
3906 Change help doc or code
3907 producing the help doc to respect the invariants.
3908 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3909 Also removed the new line after 'Options:', as all other commands
3910 do not put an empty line between 'Options:' and the first option.
3911 * printcmd.c (_initialize_printcmd): Likewise.
3912 * stack.c (_initialize_stack): Likewise.
3913 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3914 incorrectly telling COMMAND is optional.
3915 * ada-lang.c (_initialize_ada_language): Change help doc or code
3916 producing the help doc to respect the invariants.
3917 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3918 * breakpoint.c (_initialize_breakpoint): Likewise.
3919 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3920 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3921 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3922 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3923 _initialize_cli_style): Likewise.
3924 * corelow.c (core_target_info): Likewise.
3925 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3926 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3927 * filesystem.c (_initialize_filesystem): Likewise.
3928 * frame.c (_initialize_frame): Likewise.
3929 * gnu-nat.c (add_task_commands): Likewise.
3930 * infcall.c (_initialize_infcall): Likewise.
3931 * infcmd.c (_initialize_infcmd): Likewise.
3932 * interps.c (_initialize_interpreter): Likewise.
3933 * language.c (_initialize_language): Likewise.
3934 * linux-fork.c (_initialize_linux_fork): Likewise.
3935 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3936 * maint.c (_initialize_maint_cmds): Likewise.
3937 * memattr.c (_initialize_mem): Likewise.
3938 * printcmd.c (_initialize_printcmd): Likewise.
3939 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3940 _RegEx): Likewise.
3941 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3942 * record-btrace.c (_initialize_record_btrace): Likewise.
3943 * record-full.c (_initialize_record_full): Likewise.
3944 * record.c (_initialize_record): Likewise.
3945 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3946 * regcache.c (_initialize_regcache): Likewise.
3947 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3948 _initialize_remote): Likewise.
3949 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3950 * serial.c (_initialize_serial): Likewise.
3951 * skip.c (_initialize_step_skip): Likewise.
3952 * source.c (_initialize_source): Likewise.
3953 * stack.c (_initialize_stack): Likewise.
3954 * symfile.c (_initialize_symfile): Likewise.
3955 * symtab.c (_initialize_symtab): Likewise.
3956 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3957 * top.c (init_main): Likewise.
3958 * tracefile-tfile.c (tfile_target_info): Likewise.
3959 * tracepoint.c (_initialize_tracepoint): Likewise.
3960 * tui/tui-win.c (_initialize_tui_win): Likewise.
3961 * utils.c (add_internal_problem_command): Likewise.
3962 * valprint.c (value_print_option_defs): Likewise.
3963
3964 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3965
3966 PR build/24886
3967 * configure.ac: Drop enable-libmcheck support.
3968 * configure, config.in: Rebuild.
3969 * libmcheck.m4: Remove.
3970 * acinclude.m4: Don't include it.
3971 * Makefile.in: Don't distribute it.
3972 * top.c (print_gdb_configuration): Don't mention it.
3973
3974 2019-08-06 Tom Tromey <tom@tromey.com>
3975
3976 * utils.c (set_output_style): Sometimes pass stream to
3977 emit_style_escape.
3978 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3979 * record-btrace.c (btrace_insn_history): Update.
3980 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3981 method.
3982 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3983 Update initializers.
3984 <m_uiout>: New field.
3985 <m_di>: Move lower.
3986 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3987 Remove "uiout" parameter.
3988 (dump_insns): Update.
3989 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3990 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3991
3992 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3993
3994 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3995 (error_in_psymtab_expansion): Likewise.
3996 (lookup_symbol_via_quick_fns): Likewise.
3997 (basic_lookup_transparent_type_quick): Likewise.
3998 (basic_lookup_transparent_type_1): Likewise.
3999
4000 2019-08-06 Tom Tromey <tromey@adacore.com>
4001
4002 * source.c (last_source_error): Now bool.
4003 (print_source_lines_base): Make "noprint" bool. Only open
4004 source file when last_source_visited changes.
4005
4006 2019-08-06 Tom Tromey <tromey@adacore.com>
4007
4008 * annotate.c (annotate_source_line): Use g_source_cache.
4009 * source-cache.c (source_cache::get_plain_source_lines): Change
4010 parameters. Populate m_offset_cache.
4011 (source_cache::ensure): New method.
4012 (source_cache::get_line_charpos): New method.
4013 (extract_lines): Move lower. Change parameters.
4014 (source_cache::get_source_lines): Move lower.
4015 * source-cache.h (class source_cache): Update comment.
4016 <get_line_charpos>: New method.
4017 <get_source_lines>: Update comment.
4018 <clear>: Clear m_offset_cache.
4019 <get_plain_source_lines>: Change parameters.
4020 <ensure>: New method
4021 <m_offset_cache>: New member.
4022 * source.c (forget_cached_source_info_for_objfile): Update.
4023 (info_source_command): Use g_source_cache.
4024 (find_source_lines, open_source_file_with_line_charpos): Remove.
4025 (print_source_lines_base, search_command_helper): Use g_source_cache.
4026 * source.h (open_source_file_with_line_charpos): Don't declare.
4027 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4028 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4029 Use g_source_cache.
4030
4031 2019-08-06 Tom Tromey <tromey@adacore.com>
4032
4033 * source-cache.c (source_cache::get_plain_source_lines):
4034 Remove "first_line" and "last_line" parameters.
4035 (source_cache::get_source_lines): Cache plain text.
4036 * source-cache.h (class source_cache)
4037 <get_plain_source_lines>: Update.
4038
4039 2019-08-06 Tom Tromey <tromey@adacore.com>
4040
4041 * source-cache.c (extract_lines): No longer a method.
4042 Changed type of parameter. Include final newline.
4043 (selftests::extract_lines_test): New function.
4044 (_initialize_source_cache): Likewise.
4045 * source-cache.h (class source_cache)
4046 <extract_lines>: Don't declare.
4047
4048 2019-08-06 Tom Tromey <tromey@adacore.com>
4049
4050 * breakpoint.c (init_breakpoint_sal): Update.
4051 (breakpoint): Update.
4052 * breakpoint.h (struct breakpoint) <filter>: Now a
4053 unique_xmalloc_ptr.
4054
4055 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4056
4057 * NEWS: Mention dictionary access on blocks.
4058 * python/py-block.c (blpy_getitem): New function.
4059 (block_object_as_mapping): New struct.
4060 (block_object_type): Use new struct for tp_as_mapping field.
4061
4062 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4063
4064 * objfiles.h (objfile): Add a comment describing partial symbols.
4065
4066 2019-08-05 Tom Tromey <tromey@adacore.com>
4067
4068 * compile/compile.c (_initialize_compile): Use _(), not N_().
4069 * thread.c (_initialize_thread): Use _(), not N_().
4070 * stack.c (_initialize_stack): Use _(), not N_().
4071 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4072
4073 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4074
4075 * dwarf2read.c (struct dw2_symtab_iterator):
4076 <want_specific_block>: Remove.
4077 <block_index>: Change type to gdb::optional.
4078 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4079 change type of BLOCK_INDEX parameter to gdb::optional.
4080 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4081 (dw2_lookup_symbol): Don't pass argument for
4082 WANT_SPECIFIC_BLOCK.
4083 (dw2_expand_symtabs_for_function): Don't pass argument for
4084 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4085 (class dw2_debug_names_iterator)
4086 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4087 parameter, change BLOCK_INDEX type to gdb::optional.
4088 <m_want_specific_block>: Remove.
4089 <m_block_index>: Change type to gdb::optional.
4090 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4091 gdb::optional. Re-write in function of gdb::optional.
4092 (dw2_debug_names_lookup_symbol): Don't pass argument for
4093 WANT_SPECIFIC_BLOCK.
4094 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4095 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4096 BLOCK_INDEX.
4097
4098 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4099
4100 * NEWS: Mention changes to "info sources" command.
4101
4102 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4103
4104 * symtab.c (filename_partial_match_opts): New struct type.
4105 (struct output_source_filename_data): New members
4106 regexp, c_regexp, partial_match.
4107 (output_source_filename): Use new members to decide to print file.
4108 (info_sources_option_defs): New variable.
4109 (make_info_sources_options_def_group, print_info_sources_header,
4110 info_sources_command_completer):
4111 New functions.
4112 (info_sources_command): Read new optional arguments.
4113 (_initialize_symtab): Update info sources help.
4114
4115 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4116
4117 * ada-lang.c (exception_support_info_v0): Renamed from...
4118 (default_exception_support_info): ... this. Create new
4119 definition for v1.
4120 (ada_has_this_exception_support): Look up catch_handlers_sym.
4121 (ada_exception_support_info_sniffer): Try v0 after default.
4122
4123 2019-08-01 Tom Tromey <tromey@adacore.com>
4124
4125 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4126 gdbarch.h.
4127
4128 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4129
4130 * s12z-tdep.c: Fix include path for s12z-opc.h.
4131
4132 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4133
4134 * NEWS: Require GNU make 3.82.
4135
4136 2019-07-16 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4139 declare.
4140
4141 2019-07-30 Tom Tromey <tromey@adacore.com>
4142
4143 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4144
4145 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4146
4147 * printcmd.c (print_address_symbolic): Print negative offsets.
4148 (build_address_symbolic): Force signed arithmetic when computing
4149 offset.
4150
4151 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4152
4153 PR/24474: Add a function to lookup static variables.
4154 * NEWS: Mention this new function.
4155 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4156 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4157 * python/python.c (python_GdbMethods): Add new function.
4158
4159 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4160
4161 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4162 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4163 (objfpy_lookup_static_symbol): New function.
4164 (objfile_object_methods): Add new functions.
4165
4166 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4167
4168 * NEWS: Mention 'set|show print frame-info'. Mention new
4169 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4170 backtrace argument. Mention that python frame filtering code
4171 is now consistent with what 'backtrace' command prints.
4172
4173 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4174
4175 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4176 comments.
4177 (print_frame_info_auto, print_frame_info_source_line,
4178 print_frame_info_location, print_frame_info_source_and_location,
4179 print_frame_info_location_and_address, print_frame_info_short_location):
4180 New declarations.
4181 (struct frame_print_options): New member print_frame_info.
4182 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4183 * stack.h (get_user_print_what_frame_info): New declaration.
4184 (frame_show_address): New declaration.
4185 * stack.c (print_frame_arguments_choices): New value 'presence'.
4186 (print_frame_info_auto, print_frame_info_source_line,
4187 print_frame_info_location, print_frame_info_source_and_location,
4188 print_frame_info_location_and_address, print_frame_info_short_location,
4189 print_frame_info_choices, print_frame_info_print_what): New definitions.
4190 (print_frame_args): Only print dots for args if print frame-arguments
4191 is 'presence'.
4192 (frame_print_option_defs): New element for "frame-info".
4193 (get_user_print_what_frame_info): New function.
4194 (frame_show_address): Make non static. Move comment to stack.h.
4195 (print_frame_info_to_print_what): New function.
4196 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4197 to decide what to print.
4198 (backtrace_command_1): Handle the new print_frame_arguments_presence
4199 value.
4200 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4201 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4202 (py_print_frame): In non-mi mode, use LOCATION as default for
4203 print_what, similarly to frame information printed directly by
4204 backtrace command. Handle frame-info user option in non MI mode.
4205
4206 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4207
4208 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4209 Add case for debugging 32-bit target on 64-bit host. Revise
4210 comment.
4211
4212 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4213
4214 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4215 instead of find_function_entry_range_from_pc.
4216
4217 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4218
4219 * stack.c (find_frame_funname): Remove code which preferred
4220 minsym over symtab sym in "certain pathological cases".
4221
4222 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4223 parameter. Change type of "do_demangle" to bool.
4224 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4225 Pass suitable "prefer_sym_over_minsym" flag to
4226 build_address_symbolic(). Don't output "+" for negative offsets.
4227 * printcmd.c (print_address_symbolic): Update invocation of
4228 build_address_symbolic to include a "prefer_sym_over_minsym"
4229 flag.
4230 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4231 Restrict cases in which use of minimal symbol is preferred to that
4232 of a found symbol. Update comments.
4233
4234 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4235 for entry pc when entry pc is out of range for that FDE.
4236
4237 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4238
4239 PR gdb/24839:
4240 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4241 type.
4242
4243 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4244
4245 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4246 this function's Python signature.
4247
4248
4249 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4250
4251 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4252 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4253 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4254 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4255 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4256
4257
4258 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4259
4260 * h8300-tdep.c (h8300_register_name_common): New.
4261 h8300_register_name): Use h8300_register_name_common.
4262 (h8300s_register_name): Likewise.
4263 (h8300sx_register_name): Likewise.
4264 (h8300h_register_nam): New.
4265 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4266
4267
4268 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4269
4270 * arm-tdep.c (arm_skip_cmse_entry): New function.
4271 (arm_is_sgstubs_section): New function.
4272 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4273
4274 2019-07-22 Tom Tromey <tom@tromey.com>
4275
4276 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4277 Don't self-assign.
4278
4279 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4282 type_print.
4283
4284 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4287 so that GDB doesn't match any msymbols when searching in the
4288 TYPES_DOMAIN.
4289 (print_symbol_info): Print using typedef_print or type_print based
4290 on the type of the symbol. Add updated FIXME comment moved from...
4291 (_initialize_symtab): ... move and update FIXME comment to above.
4292
4293 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * NEWS: Mention adding -q option to "info types".
4296 * symtab.c (struct info_types_options): New struct.
4297 (info_types_options_defs): New variable.
4298 (make_info_types_options_def_group): New function.
4299 (info_types_command): Use gdb::option framework to parse options.
4300 (info_types_command_completer): New function.
4301 (_initialize_symtab): Extend the help text on "info types" and
4302 register command completer.
4303
4304 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4305
4306 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4307 (lookup_symbol_in_objfile): Change int to block_enum and add a
4308 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4309
4310 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4311
4312 * MAINTAINERS (Write After Approval): Add self.
4313
4314 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4315
4316 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4317 instruction to the dummy code region.
4318
4319 2019-07-19 Tom Tromey <tromey@adacore.com>
4320
4321 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4322 (ARGSUSED, PARAMS, __func__): Remove rules.
4323
4324 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4325
4326 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4327 * features/arm/arm-with-iwmmxt.c: Remove.
4328 * features/arm/arm-with-iwmmxt.xml: Remove.
4329 * features/arm/arm-with-m-fpa-layout.c: Remove.
4330 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4331 * features/arm/arm-with-m-vfp-d16.c: Remove.
4332 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4333 * features/arm/arm-with-m.c: Remove.
4334 * features/arm/arm-with-m.xml: Remove.
4335 * features/arm/arm-with-neon.c: Remove.
4336 * features/arm/arm-with-neon.xml: Remove.
4337 * features/arm/arm-with-vfpv2.c: Remove.
4338 * features/arm/arm-with-vfpv2.xml: Remove.
4339 * features/arm/arm-with-vfpv3.c: Remove.
4340 * features/arm/arm-with-vfpv3.xml: Remove.
4341
4342 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4343
4344 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4345
4346 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4347
4348 * arch/aarch32.c (aarch32_create_target_description): Create
4349 target descriptions using features.
4350 * arch/arm.c (arm_create_target_description)
4351 (arm_create_mprofile_target_description): Likewise.
4352 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4353
4354 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4355
4356 * Makefile.in: Add new files.
4357 * aarch32-tdep.c: New file.
4358 * aarch32-tdep.h: New file.
4359 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4360 Call aarch32_read_description.
4361 * arch/aarch32.c: New file.
4362 * arch/aarch32.h: New file.
4363 * arch/arm.c (arm_create_target_description)
4364 (arm_create_mprofile_target_description): New function.
4365 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4366 (arm_create_target_description)
4367 (arm_create_mprofile_target_description): New declaration.
4368 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4369 read_description functions.
4370 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4371 Likewise.
4372 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4373 * arm-tdep.c (tdesc_arm_list): New variable.
4374 (arm_register_g_packet_guesses): Call create description functions.
4375 (arm_read_description) (arm_read_mprofile_description): New
4376 function.
4377 * arm-tdep.h (arm_read_description)
4378 (arm_read_mprofile_description): Add declaration.
4379 * configure.tgt: Add new files.
4380
4381 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4382
4383 * top.c (new_ui_command): Open specified terminal just once.
4384
4385 2019-07-18 Tom Tromey <tromey@adacore.com>
4386
4387 * symtab.c (main_name): Constify return type.
4388 * symfile.c (set_initial_language): Update.
4389 * symtab.h (main_name): Constify return type.
4390
4391 2019-07-17 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-winsource.c (tui_update_source_window)
4394 (tui_update_source_window_as_is)
4395 (tui_update_source_windows_with_line): Remove return.
4396 * tui/tui-disasm.c (tui_show_disassem)
4397 (tui_show_disassem_and_update_source): Remove return.
4398 * tui/tui.c (tui_reset): Remove return.
4399 * tui/tui-wingeneral.c
4400 (tui_check_and_display_highlight_if_needed): Remove return.
4401
4402 2019-07-17 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4405
4406 2019-07-17 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.h (struct tui_exec_info_window)
4409 (struct tui_source_window_base): Move from tui-data.h.
4410 * tui/tui-winsource.c: Move many method definitions from
4411 elsewhere. Remove "structuring" comments.
4412 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4413 (tui_source_window_base::refresh_window): Move to
4414 tui-winsource.c.
4415 * tui/tui-win.c (tui_source_window_base::refresh_all)
4416 (tui_source_window_base::update_tab_width)
4417 (tui_source_window_base::set_new_height)
4418 (tui_source_window_base::do_make_visible_with_new_height): Move to
4419 tui-winsource.c.
4420 * tui/tui-source.h: Update.
4421 * tui/tui-source.c (tui_source_window_base::reset): Move to
4422 tui-winsource.c.
4423 * tui/tui-disasm.h: Update.
4424 * tui/tui-data.h (struct tui_exec_info_window): Move to
4425 tui-winsource.h.
4426 (struct tui_source_window_base): Likewise.
4427 * tui/tui-data.c (tui_source_window_base::clear_detail)
4428 (tui_source_window_base, ~tui_source_window_base): Move to
4429 tui-winsource.c.
4430
4431 2019-07-17 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-win.c (tui_resize_all)
4434 (tui_source_window_base::update_tab_width)
4435 (tui_adjust_win_heights): Update.
4436 (tui_win_info::make_invisible_and_set_new_height): Rename from
4437 make_invisible_and_set_new_height.
4438 * tui/tui-data.h (struct tui_win_info)
4439 <make_invisible_and_set_new_height>: New method.
4440
4441 2019-07-17 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui.c: Update.
4444 * tui/tui-source.h (struct tui_source_window): Move from
4445 tui-data.h.
4446 * tui/tui-layout.c: Update.
4447 * tui/tui-disasm.c: Update.
4448 * tui/tui-data.h (struct tui_source_window): Move to
4449 tui-source.h.
4450
4451 2019-07-17 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4454 tui-data.h.
4455 * tui/tui-data.h (struct tui_disasm_window): Move to
4456 tui-disasm.h.
4457
4458 2019-07-17 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-regs.h (struct tui_data_item_window): Move from
4461 tui-data.h.
4462 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4463 * tui/tui-data.h (struct tui_data_item_window): Move to
4464 tui-regs.h.
4465 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4466
4467 2019-07-17 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui.c: Update.
4470 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4471 (tui_cmd_window::max_height): Move to tui-command.c.
4472 * tui/tui-layout.c: Update.
4473 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4474 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4475 tui-command.c.
4476 * tui/tui-command.h (struct tui_cmd_window): Move from
4477 tui-data.h.
4478 * tui/tui-command.c: Remove "structuring" comments.
4479 (tui_cmd_window::clear_detail)
4480 (tui_cmd_window::do_make_visible_with_new_height)
4481 (tui_cmd_window::max_height): Move from elsewhere.
4482
4483 2019-07-17 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4486 Now static.
4487 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4488 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4489
4490 2019-07-17 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui.c: Update.
4493 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4494 tui-regs.c.
4495 * tui/tui-windata.h: Remove file.
4496 * tui/tui-windata.c: Remove file.
4497 * tui/tui-win.c (tui_data_window::set_new_height)
4498 (tui_data_window::do_make_visible_with_new_height): Move to
4499 tui-regs.c.
4500 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4501 * tui/tui-regs.c: Remove "structuring" comments.
4502 (tui_data_window::first_data_item_displayed)
4503 (tui_data_window::delete_data_content_windows)
4504 (tui_data_window::erase_data_content)
4505 (tui_data_window::display_all_data)
4506 (tui_data_window::refresh_all)
4507 (tui_data_window::do_scroll_vertical)
4508 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4509 (tui_data_window::do_make_visible_with_new_height)
4510 (tui_data_window::refresh_window): Move from elsewhere.
4511 (_initialize_tui_regs): Move to end of file.
4512 * tui/tui-layout.c: Update.
4513 * tui/tui-hooks.c: Update.
4514 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4515 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4516 tui-regs.c.
4517 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4518
4519 2019-07-17 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4522 seen.
4523
4524 2019-07-17 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-win.c (tui_source_window_base::set_new_height)
4527 (tui_source_window_base::do_make_visible_with_new_height): Use
4528 m_has_locator field directly.
4529 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4530 method.
4531 (struct tui_source_window_base) <has_locator>: Likewise.
4532
4533 2019-07-17 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4536 Don't declare.
4537 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4538 Remove.
4539 * tui/tui-win.c (tui_source_window_base::set_new_height)
4540 (tui_source_window_base::set_new_height)
4541 (make_invisible_and_set_new_height)
4542 (tui_source_window_base::do_make_visible_with_new_height)
4543 (tui_source_window_base::do_make_visible_with_new_height):
4544 Update.
4545 * tui/tui-layout.c (show_source_disasm_command, show_data)
4546 (show_source_or_disasm_and_command): Update.
4547 * tui/tui-layout.c (show_layout): Update.
4548
4549 2019-07-17 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-layout.c (make_data_window): Remove.
4552 (show_data): Unify creation and re-initialization cases.
4553
4554 2019-07-17 Tom Tromey <tom@tromey.com>
4555
4556 * tui/tui-layout.c (make_source_window, make_disasm_window):
4557 Remove.
4558 (show_data): Unify creation and re-initialization cases.
4559
4560 2019-07-17 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-layout.c (make_command_window): Remove.
4563 (show_source_disasm_command, show_source_or_disasm_and_command):
4564 Unify creation and re-initialization cases.
4565
4566 2019-07-17 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4569 creation and re-initialization cases.
4570
4571 2019-07-17 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-regs.c (tui_get_register): Return void.
4574
4575 2019-07-17 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4578 Simplify.
4579
4580 2019-07-17 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4583 resetting.
4584
4585 2019-07-17 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4588 * tui/tui-regs.c (tui_reg_layout): New function.
4589 (tui_show_registers, tui_reg_command): Use it.
4590 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4591 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4592 parameters.
4593 (tui_layout_command): Remove.
4594
4595 2019-07-17 Tom Tromey <tom@tromey.com>
4596
4597 * tui/tui-layout.h (tui/tui-layout): Return void.
4598 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4599
4600 2019-07-17 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-layout.c (show_source_disasm_command, show_data):
4603 Update.
4604 (reset_locator): Remove.
4605 (show_source_or_disasm_and_command): Update.
4606
4607 2019-07-17 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-source.c (tui_source_window_base::reset): Remove
4610 win_type parameter.
4611 * tui/tui-layout.c (make_command_window, make_source_window)
4612 (make_disasm_window, make_data_window)
4613 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4614 (reset_locator, show_source_or_disasm_and_command): Update.
4615 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4616 win_type parameter.
4617 (struct tui_source_window_base) <reset>: Likewise.
4618
4619 2019-07-17 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui-layout.c (show_source_disasm_command): Use
4622 reset_locator.
4623 (reset_locator): New function.
4624 (init_and_make_win): Remove.
4625 (show_source_or_disasm_and_command): Use reset_locator.
4626
4627 2019-07-17 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4630 condition.
4631 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4632 Remove condition.
4633 * tui/tui-source.c (tui_source_window_base::reset): New method.
4634 * tui/tui-layout.c (make_command_window): Don't call
4635 init_and_make_win.
4636 (make_source_window, make_disasm_window): Don't call
4637 make_source_or_disasm_window.
4638 (make_data_window): Don't call init_and_make_win. Change calling
4639 convention.
4640 (show_source_disasm_command, show_data): Simplify.
4641 (make_source_or_disasm_window): Remove.
4642 (show_source_or_disasm_and_command): Simplify.
4643 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4644 (struct tui_source_window_base) <reset>: Likewise.
4645 <execution_info>: Remove initializer.
4646 * tui/tui-data.c (tui_source_window_base): Initialize
4647 execution_info.
4648
4649 2019-07-17 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4652 variable.
4653
4654 2019-07-17 Tom Tromey <tom@tromey.com>
4655
4656 * tui/tui.c (tui_rl_other_window): Update.
4657 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4658 superclass method first. Always iterate over regs_content.
4659 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4660 method.
4661 * tui/tui-win.c (tui_set_focus_command): Update.
4662
4663 2019-07-17 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-win.c (tui_set_focus_command): Rename from
4666 tui_set_focus. Call tui_enable.
4667 (tui_set_focus_command): Remove.
4668
4669 2019-07-17 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4672 refresh_window.
4673 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4674 touchwin.
4675 (tui_data_window::refresh_window): Call refresh_window on data
4676 items. Always call superclass refresh_window.
4677 (tui_win_info::refresh): Remove.
4678 (tui_source_window_base::refresh_window): Update.
4679 (tui_refresh_all): Update.
4680 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4681 refresh_window.
4682 (show_source_or_disasm_and_command): Likewise.
4683 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4684 (struct tui_source_window_base) <refresh>: Likewise.
4685
4686 2019-07-17 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-winsource.c (tui_clear_source_content)
4689 (tui_show_source_content): Update.
4690 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4691 whether content is empty.
4692 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4693 Remove.
4694
4695 2019-07-17 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4698 window's contents.
4699 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4700 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4701
4702 2019-07-17 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4705 (struct tui_data_item_window): Update.
4706
4707 2019-07-17 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4710 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4711 defines.
4712
4713 2019-07-17 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-winsource.h (tui_erase_source_content)
4716 (tui_clear_source_content): Remove "display_prompt" parameter.
4717 * tui/tui-winsource.c (tui_update_source_window_as_is)
4718 (tui_update_source_windows_with_addr): Update.
4719 (tui_clear_source_content): Remove "display_prompt" parameter.
4720 (tui_erase_source_content): Likewise. Simplify.
4721 (tui_show_source_content): Update.
4722 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4723 * tui/tui-stack.c (tui_show_frame_info): Update.
4724 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4725 Remove defines.
4726
4727 2019-07-17 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4730 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4731 parameter.
4732 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4733 parameter.
4734
4735 2019-07-17 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-winsource.c (tui_clear_source_content)
4738 (tui_show_source_content, tui_show_exec_info_content)
4739 (tui_clear_exec_info_content): Update.
4740 * tui/tui-stack.c (tui_show_locator_content): Update.
4741 (tui_show_frame_info): Update.
4742 * tui/tui-source.h (tui_source_window): Don't declare.
4743 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4744 from tui_source_is_displayed.
4745 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4746 Remove field.
4747 (struct tui_source_window_base) <content_in_use>: New field. Now
4748 bool.
4749 (struct tui_source_window) <showing_source_p>: New method.
4750 (TUI_SRC_WIN): Change cast.
4751 * tui/tui-data.c (tui_initialize_static_data): Update.
4752
4753 2019-07-17 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4756 location_matches_p.
4757 * tui/tui-source.c (tui_source_window::location_matches_p): New
4758 method.
4759 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4760 method.
4761 * tui/tui-data.h (struct tui_source_window_base)
4762 <location_matches_p>: New method.
4763 (struct tui_source_window, struct tui_disasm_window)
4764 <location_matches_p>: Likewise.
4765
4766 2019-07-17 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-win.c (tui_set_win_height_command): Rename from
4769 tui_set_win_height.
4770 (tui_set_win_height_command): Remove.
4771
4772 2019-07-17 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-source.c (tui_source_window): New constructor. Add
4775 observer.
4776 (~tui_source_window): New destructor.
4777 (tui_source_window::style_changed): New method.
4778 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4779 (tui_attach_detach_observers): Update.
4780 * tui/tui-data.h (struct tui_source_window): Make constructor not
4781 inline. Add destructor.
4782 (struct tui_source_window) <style_changed>: New method.
4783 <m_observable>: New member.
4784
4785 2019-07-17 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4788 * tui/tui-win.c (tui_resize_all): Fix typo.
4789
4790 2019-07-17 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4793 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4794 (tui_refresh_all): Remove "list" parameter. Use foreach.
4795 * tui/tui-win.c (window_name_completer): Use foreach.
4796 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4797 (update_tab_width): Likewise.
4798 * tui/tui-layout.c (show_layout): Update.
4799 * tui/tui-data.h (class tui_window_iterator): New.
4800 (struct all_tui_windows): New.
4801 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4802
4803 2019-07-17 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4806 parameter. Don't reference globals.
4807 (tui_reg_command): Update.
4808
4809 2019-07-17 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-regs.c (tui_show_registers): Simplify.
4812
4813 2019-07-17 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-regs.c (tui_show_registers): Update.
4816 (tui_show_register_group): Add win_info parameter.
4817
4818 2019-07-17 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4821 Rename from tui_display_reg_element_at_line.
4822 (tui_data_window::display_registers_from_line): Update.
4823 * tui/tui-data.h (struct tui_data_window)
4824 <display_reg_element_at_line>: New method.
4825
4826 2019-07-17 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-regs.h (tui_display_registers_from)
4829 (tui_display_registers_from_line): Don't declare.
4830 * tui/tui-windata.c (tui_data_window::display_all_data)
4831 (tui_data_window::refresh_all)
4832 (tui_data_window::do_scroll_vertical): Update.
4833 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4834 from tui_display_registers_from.
4835 (tui_display_reg_element_at_line): Update.
4836 (tui_data_window::display_registers_from_line): Rename from
4837 tui_display_registers_from_line.
4838 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4839 display_registers_from_line>: New methods.
4840
4841 2019-07-17 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4844 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4845 from tui_erase_data_content.
4846 (tui_data_window::display_all_data)
4847 (tui_data_window::refresh_all)
4848 (tui_data_window::do_scroll_vertical): Update.
4849 * tui/tui-regs.c (tui_show_registers): Update.
4850 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4851 New method.
4852
4853 2019-07-17 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4856 declare.
4857 * tui/tui-windata.c
4858 (tui_data_window::delete_data_content_windows): Rename from
4859 tui_delete_data_content_windows.
4860 (tui_data_window::display_all_data)
4861 (tui_data_window::do_scroll_vertical): Update.
4862 * tui/tui-data.h (struct tui_data_window)
4863 <delete_data_content_windows>: New method.
4864
4865 2019-07-17 Tom Tromey <tom@tromey.com>
4866
4867 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4868 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4869
4870 2019-07-17 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4873 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4874 from tui_display_all_data.
4875 * tui/tui-win.c
4876 (tui_data_window::do_make_visible_with_new_height): Update.
4877 * tui/tui-regs.c (tui_show_registers): Update.
4878 * tui/tui-layout.c (tui_set_layout): Update.
4879 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4880 method.
4881
4882 2019-07-17 Tom Tromey <tom@tromey.com>
4883
4884 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4885 * tui/tui-windata.c (tui_display_data_from): Remove.
4886 (tui_data_window::refresh_all): Update.
4887
4888 2019-07-17 Tom Tromey <tom@tromey.com>
4889
4890 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4891 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4892 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4893 tui_display_registers_from_line.
4894 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4895 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4896 "force_display" parameter.
4897
4898 2019-07-17 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4901 declare.
4902 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4903 Rename from tui_first_reg_element_no_inline.
4904 (tui_display_reg_element_at_line)
4905 (tui_display_registers_from_line): Update.
4906 * tui/tui-data.h (struct tui_data_window)
4907 <first_reg_element_no_inline>: New method.
4908
4909 2019-07-17 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-windata.c (tui_display_data_from)
4912 (tui_data_window::do_scroll_vertical): Update.
4913 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4914 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4915 Rename from tui_line_from_reg_element_no.
4916 (tui_display_registers_from_line): Update.
4917 * tui/tui-data.h (struct tui_data_window)
4918 <line_from_reg_element_no>: New method.
4919
4920 2019-07-17 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4923 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4924 tui_last_regs_line_no.
4925 (tui_display_reg_element_at_line)
4926 (tui_display_registers_from_line): Update.
4927 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4928 method.
4929
4930 2019-07-17 Tom Tromey <tom@tromey.com>
4931
4932 PR tui/24722:
4933 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4934 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4935 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4936 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4937 (tui_update_breakpoint_info): Likewise.
4938 * tui/tui-hooks.c (tui_event_create_breakpoint)
4939 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4940 Update.
4941
4942 2019-07-17 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4945
4946 2019-07-17 Tom Tromey <tom@tromey.com>
4947
4948 * tui/tui-winsource.c (tui_update_source_window_as_is)
4949 (tui_update_source_windows_with_addr): Update.
4950 * tui/tui-source.h (tui_set_source_content)
4951 (tui_show_symtab_source): Add "win_info" parameter.
4952 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4953 parameter.
4954 (tui_show_symtab_source): Likewise.
4955
4956 2019-07-17 Tom Tromey <tom@tromey.com>
4957
4958 * tui/tui-wingeneral.c
4959 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4960
4961 2019-07-17 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4964 (struct tui_cmd_window) <can_scroll>: New method.
4965 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4966 method.
4967
4968 2019-07-17 Tom Tromey <tromey@adacore.com>
4969
4970 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4971 do_field_signed>: Rename. Change type of "value".
4972 * ui-out.c (ui_out::field_signed): Rename from field_int.
4973 Change type of "value".
4974 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4975 type of "value".
4976 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4977 do_field_int. Change type of "value".
4978 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4979 do_field_int. Change type of "value".
4980 * tracepoint.c (trace_status_mi, tfind_1)
4981 (print_one_static_tracepoint_marker): Update.
4982 * thread.c (print_thread_info_1, print_selected_thread_frame):
4983 Update.
4984 * stack.c (print_frame, print_frame_info): Update.
4985 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4986 Update.
4987 * source.c (print_source_lines_base): Update.
4988 * skip.c (info_skip_command): Update.
4989 * record-btrace.c (btrace_ui_out_decode_error)
4990 (btrace_call_history_src_line): Update.
4991 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4992 Update.
4993 * progspace.c (print_program_space): Update.
4994 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4995 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4996 do_field_int. Change type of "value".
4997 * mi/mi-out.c (mi_ui_out::do_table_begin)
4998 (mi_ui_out::do_table_header): Update.
4999 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5000 type of "value".
5001 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5002 (mi_cmd_data_list_changed_registers, output_register)
5003 (mi_cmd_data_read_memory, mi_load_progress)
5004 (mi_cmd_trace_frame_collected): Update.
5005 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5006 Update.
5007 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5008 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5009 (mi_cmd_var_list_children, varobj_update_one): Update.
5010 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5011 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5012 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5013 * inferior.c (print_inferior): Update.
5014 * gdb_bfd.c (print_one_bfd): Update.
5015 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5016 Update.
5017 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5018 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5019 do_field_int. Change type of "value".
5020 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5021 do_field_int. Change type of "value".
5022 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5023 (print_one_breakpoint_location, print_it_catch_fork)
5024 (print_one_catch_fork, print_it_catch_vfork)
5025 (print_one_catch_vfork, print_it_catch_solib)
5026 (print_it_catch_exec, print_it_ranged_breakpoint)
5027 (print_mention_watchpoint, print_mention_masked_watchpoint)
5028 (bkpt_print_it, update_static_tracepoint): Update.
5029 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5030 * break-catch-syscall.c (print_it_catch_syscall): Update.
5031 * ada-tasks.c (print_ada_task_info): Update.
5032 * ada-lang.c (print_it_exception, print_mention_exception):
5033 Update.
5034
5035 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 PR breakpoints/24541
5038 * gdbarch.c: Regenerate.
5039 * gdbarch.h: Regenerate.
5040 * gdbarch.sh: Adjust return type and parameter types for
5041 'stap_adjust_register'.
5042 (i386_stap_adjust_register): Adjust signature and return new
5043 register name.
5044 * stap-probe.c (stap_parse_register_operand): Adjust use of
5045 'gdbarch_stap_adjust_register'.
5046
5047 2019-07-17 Tom Tromey <tromey@adacore.com>
5048
5049 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5050 declare VEC.
5051 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5052 std::vector.
5053 (struct s390_process_info): Add initializers.
5054 (s390_add_process): Use new.
5055 (s390_linux_nat_target::low_forget_process): Use delete.
5056 (s390_linux_nat_target::low_new_fork)
5057 (s390_linux_nat_target::stopped_by_watchpoint)
5058 (s390_linux_nat_target::low_prepare_to_resume)
5059 (s390_linux_nat_target::insert_watchpoint)
5060 (s390_linux_nat_target::insert_hw_breakpoint)
5061 (s390_linux_nat_target::remove_watchpoint)
5062 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5063
5064 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5065
5066 * aarch64-fbsd-nat.c: Include regcache.h.
5067 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5068 argument.
5069 (aarch64_fbsd_nat_target::fetch_registers)
5070 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5071 variable.
5072 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5073
5074 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5075
5076 * fbsd-nat.c: Include gdbarch.h.
5077
5078 2019-07-15 Tom Tromey <tromey@adacore.com>
5079
5080 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5081
5082 2019-07-15 Tom Tromey <tromey@adacore.com>
5083
5084 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5085 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5086 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5087 * cli-out.c (cli_ui_out::do_field_int): New method.
5088 * ui-out.c (ui_out::field_unsigned): New method.
5089 * symfile.c (generic_load): Use field_unsigned.
5090 (print_transfer_performance): Likewise.
5091 * record-btrace.c (ui_out_field_uint): Remove.
5092 (btrace_call_history_insn_range, btrace_call_history): Use
5093 field_unsigned.
5094 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5095 field_unsigned.
5096 * ui-out.h (class ui_out) <field_unsigned>: New method.
5097 <do_field_unsigned>: Likewise.
5098
5099 2019-07-15 Tom Tromey <tromey@adacore.com>
5100
5101 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5102 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5103 * target.c (flash_erase_command): Use field_string.
5104 * infrun.c (print_signal_received_reason): Use field_string.
5105 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5106 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5107 field_string.
5108 * ada-tasks.c (print_ada_task_info): Use field_string.
5109
5110 2019-07-15 Tom Tromey <tromey@adacore.com>
5111
5112 * target.c (flash_erase_command): Use field_core_addr.
5113 * symfile.c (generic_load): Use field_core_addr.
5114 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5115 Use field_core_addr.
5116 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5117 field_core_addr.
5118
5119 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5120
5121 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5122 value if its desired type is smaller than a CORE_ADDR and signed.
5123
5124 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5125
5126 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5127 of changes to field names, and use new is_reference field to
5128 decide if a property is a reference or not.
5129 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5130 field.
5131 (struct dwarf2_property_baton): Update header comment, rename
5132 'referenced_type' to 'property_type' and update comments.
5133 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5134 default property type, store in property baton, update to take
5135 accound of renamed field.
5136 (read_func_scope): Update call to attr_to_dynamic_prop.
5137 (read_array_type): Likewise.
5138 (dwarf2_per_cu_addr_sized_int_type): New function.
5139 (read_subrange_index_type): Move type finding code to
5140 dwarf2_per_cu_addr_sized_int_type.
5141 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5142 (dwarf2_per_cu_addr_type): New function.
5143 (set_die_type): Update calls to attr_to_dynamic_prop.
5144
5145 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * dwarf2read.c (read_subrange_index_type): New function.
5148 (read_subrange_type): Move code into new function and call it.
5149 * gdbtypes.c (create_range_type): Add some asserts.
5150
5151 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5154 update return statements.
5155 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5156 declaration, and update comment to match.
5157 * gdbtypes.c (resolve_dynamic_array): Update call to
5158 dwarf2_evaluate_property to match new return type.
5159
5160 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 * valarith.c (value_subscripted_rvalue): Change lowerbound
5163 parameter type from int to LONGEST.
5164 * value.h (value_subscripted_rvalue): Likewise in declaration.
5165
5166 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * cli/cli-utils.c (info_print_command_completer): New function.
5169 * cli/cli-utils.h: Add 'completer.h' include, and forward
5170 declaration for 'struct cmd_list_element'.
5171 (info_print_command_completer): Declare.
5172 * stack.c (_initialize_stack): Add completer for 'info locals' and
5173 'info args'.
5174 * symtab.c (_initialize_symtab): Add completer for 'info
5175 variables' and 'info functions'.
5176 * NEWS: Mention completion for additional info commands.
5177
5178 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * cli/cli-utils.c (extract_info_print_args): Delete.
5181 (extract_arg_maybe_quoted): Delete.
5182 (info_print_options_defs): New variable.
5183 (make_info_print_options_def_group): New function.
5184 (extract_info_print_options): Define new function.
5185 * cli/cli-utils.h (extract_info_print_args): Delete.
5186 (struct info_print_options): New structure.
5187 (extract_info_print_options): Declare new function.
5188 * stack.c (info_locals_command): Update to use new
5189 extract_info_print_options, also add a header comment.
5190 (info_args_command): Likewise.
5191 * symtab.c (info_variables_command): Likewise.
5192 (info_functions_command): Likewise.
5193
5194 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5197 to extract string arguments.
5198 * common/common-utils.c (extract_string_maybe_quoted): New function.
5199 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5200
5201 2019-07-11 Tom Tromey <tromey@adacore.com>
5202
5203 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5204 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5205 * top.h (gdbinit): Don't declare.
5206 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5207 into...
5208 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5209 * top.c (gdb_init): Don't call init_cli_cmds.
5210 (gdbinit): Remove.
5211 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5212
5213 2019-07-11 Tom Tromey <tromey@adacore.com>
5214
5215 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5216 after it has been moved.
5217
5218 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * valops.c (value_must_coerce_to_target): Change return type to
5221 bool.
5222 * value.h (value_must_coerce_to_target): Likewise.
5223
5224 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5225
5226 * breakpoint.c (is_hardware_watchpoint): Remove
5227 forward-declaration.
5228 (is_masked_watchpoint): Change return type to bool.
5229 (is_tracepoint): Likewise.
5230 (is_breakpoint): Likewise.
5231 (is_hardware_watchpoint): Likewise.
5232 (is_watchpoint): Likewise.
5233 (is_no_memory_software_watchpoint): Likewise.
5234 (is_catchpoint): Likewise.
5235 (breakpoint_1): Make FILTER parameter's return type bool.
5236 is_masked_watchpoint): Change return type to bool.
5237 (save_breakpoints): Make FILTER parameter's return type bool.
5238 * breakpoint.h (is_breakpoint): Change return type to bool.
5239 (is_watchpoint): Likewise.
5240 (is_catchpoint): Likewise.
5241 (is_tracepoint): Likewise.
5242
5243 2019-07-10 Tom Tromey <tom@tromey.com>
5244
5245 * defs.h: Don't include gdbarch.h.
5246 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5247 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5248 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5249 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5250 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5251 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5252 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5253 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5254 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5255 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5256 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5257 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5258 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5259 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5260 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5261 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5262 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5263 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5264 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5265 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5266 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5267 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5268 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5269 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5270 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5271 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5272 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5273
5274 2019-07-10 Tom Tromey <tromey@adacore.com>
5275
5276 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5277 * breakpoint.c (init_ada_exception_breakpoint): Register as
5278 bp_catchpoint.
5279 (print_one_breakpoint_location, print_one_breakpoint): Use
5280 is_ada_exception_catchpoint.
5281 * ada-lang.c (class ada_catchpoint_location): Pass
5282 bp_loc_software_breakpoint to bp_location constructor.
5283 (is_ada_exception_catchpoint): New function.
5284
5285 2019-07-10 Tom Tromey <tromey@adacore.com>
5286
5287 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5288 VEC.
5289 (struct arm_exidx_entry): New method operator<.
5290 (struct arm_exidx_data) <section_maps>: Change type.
5291 (arm_exidx_data_free): Remove.
5292 (arm_exidx_data_key): Change type. Move lower.
5293 (arm_exidx_new_objfile): Update.
5294 (arm_compare_exidx_entries): Remove.
5295 (arm_find_exidx_entry, _initialize_arm_tdep)
5296
5297 2019-07-10 Tom Tromey <tromey@adacore.com>
5298
5299 * solib-spu.c (ocl_program_data_key): Change type.
5300 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5301 Update.
5302
5303 2019-07-10 Tom Tromey <tromey@adacore.com>
5304
5305 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5306 (struct solib_aix_inferior_data) <library_list>: Change type.
5307 (solib_aix_inferior_data_handle): Change type.
5308 (get_solib_aix_inferior_data): Update.
5309 (solib_aix_free_library_list): Remove.
5310 (library_list_start_library): Update.
5311 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5312 return type.
5313 (solib_aix_get_library_list)
5314 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5315 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5316
5317 2019-07-10 Tom Tromey <tromey@adacore.com>
5318
5319 * solib-dsbt.c (struct dsbt_info): Add initializers.
5320 (solib_dsbt_pspace_data): Change type.
5321 (dsbt_pspace_data_cleanup): Remove.
5322 (get_dsbt_info, _initialize_dsbt_solib): Update.
5323
5324 2019-07-10 Tom Tromey <tromey@adacore.com>
5325
5326 * spu-tdep.c (spu_overlay_data): Change type.
5327 (spu_get_overlay_table, spu_overlay_new_objfile)
5328 (_initialize_spu_tdep): Update.
5329
5330 2019-07-10 Tom Tromey <tromey@adacore.com>
5331
5332 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5333 destructor.
5334 (dbx_objfile_data_key): Change type and declare later.
5335 (DBX_SYMFILE_INFO): Rewrite.
5336 * dbxread.c (dbx_objfile_data_key): Change type.
5337 (dbx_symfile_init): Update.
5338 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5339 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5340 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5341
5342 2019-07-10 Tom Tromey <tromey@adacore.com>
5343
5344 * jit.c (jit_program_space_key): Change type. Move lower.
5345 (get_jit_program_space_data): Update.
5346 (jit_program_space_data_cleanup): Remove.
5347 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5348 Update.
5349 (struct jit_program_space_data): Add initializers.
5350
5351 2019-07-10 Tom Tromey <tromey@adacore.com>
5352
5353 * solib-darwin.c (struct darwin_info): Add initializers.
5354 (solib_darwin_pspace_data): Change type.
5355 (darwin_pspace_data_cleanup): Remove.
5356 (get_darwin_info, _initialize_darwin_solib): Update.
5357
5358 2019-07-10 Tom Tromey <tromey@adacore.com>
5359
5360 * remote-sim.c (struct sim_inferior_data): Add initializers,
5361 constructor, and destructor.
5362 (sim_inferior_data_key): Change type. Move lower.
5363 (check_for_duplicate_sim_descriptor): Update.
5364 (get_sim_inferior_data): Use new. Update.
5365 (~sim_inferior_data_cleanup): Rename from
5366 sim_inferior_data_cleanup. Simplify.
5367 (gdbsim_close_inferior, simulator_command)
5368 (sim_command_completer, _initialize_remote_sim): Update.
5369 (next_pid, INITIAL_PID): Move earlier.
5370
5371 2019-07-10 Tom Tromey <tromey@adacore.com>
5372
5373 * python/python-internal.h (create_thread_object): Return
5374 gdbpy_ref.
5375 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5376 * python/py-inferior.c (struct threadlist_entry): Add
5377 constructor.
5378 <thread_obj>: Now a gdbpy_ref.
5379 (thread_to_thread_object): Update.
5380 (add_thread_object): Use new.
5381 (delete_thread_object): Use delete.
5382 (infpy_threads): Update.
5383 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5384 GIL.
5385
5386 2019-07-10 Tom Tromey <tromey@adacore.com>
5387
5388 * valops.c (value_cast): Specialize error message for Ada.
5389
5390 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5393
5394 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5395
5396 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5397 bpstat_should_step): Return bool, adjust comments.
5398 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5399 bpstat_should_step): Likewise.
5400
5401 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5402
5403 * features/Makefile: Use feature target descriptions for Arm.
5404 * features/arm/arm-core.c: Generate new file.
5405 * features/arm/arm-fpa.c: Likewise.
5406 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5407 * features/arm/arm-m-profile.c: Likewise.
5408 * features/arm/arm-vfpv2.c: Likewise.
5409 * features/arm/arm-vfpv3.c: Likewise.
5410 * features/arm/xscale-iwmmxt.c: Likewise.
5411 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5412
5413 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5414
5415 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5416 ptrace earlier.
5417
5418 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5419
5420 * features/aarch64-pauth.c: Regenerate.
5421
5422 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5425 bool.
5426 (bpstat_what): Use false instead of 0.
5427
5428 2019-07-09 Pedro Alves <palves@redhat.com>
5429
5430 * break-catch-throw.c (is_exception_catchpoint): New.
5431 * breakpoint.c (print_one_breakpoint_location): New parameter
5432 'raw_loc'. Handle it. Use
5433 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5434 looking at the breakpoint's type.
5435 (print_one_breakpoint): If handling "maint info breakpoints", also
5436 print locations of exception catchpoints.
5437 * breakpoint.h (is_exception_catchpoint): Declare.
5438
5439 2019-07-09 Pedro Alves <palves@redhat.com>
5440
5441 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5442 "addr" field.
5443 (allocate_location_exception_catchpoint): New.
5444 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5445 (initialize_throw_catchpoint_ops): Install
5446 allocate_location_exception_catchpoint as allocate_location
5447 method.
5448 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5449 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5450 bp_loc_other.
5451 (breakpoint_address_is_meaningful): Delete.
5452 (bl_address_is_meaningful): New.
5453 (breakpoint_locations_match): Adjust comment.
5454 (bp_location_from_bp_type): New, factored out of...
5455 (bp_location::bp_location(breakpoint *)): ... this.
5456 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5457 factored out of...
5458 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5459 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5460 breakpoint_address_is_meaningful.
5461 (bp_locations_compare): Adjust comment.
5462 (update_global_location_list): Use bl_address_is_meaningful
5463 instead of breakpoint_address_is_meaningful.
5464 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5465 explicit.
5466 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5467 * python/py-breakpoint.c (bppy_get_location): No longer check
5468 whether location is null.
5469
5470 2019-07-09 Pedro Alves <palves@redhat.com>
5471
5472 PR c++/15468
5473 * breakpoint.c (print_one_breakpoint_location): Remove
5474 single-location assert.
5475
5476 2019-07-09 Tom Tromey <tom@tromey.com>
5477
5478 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5479 * configure: Rebuild.
5480 * configure.ac: Change common to gdbsupport.
5481 * gdbsupport: Rename from common.
5482 * acinclude.m4: Change common to gdbsupport.
5483 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5484 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5485 gdbsupport.
5486 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5487 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5488 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5489 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5490 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5491 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5492 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5493 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5494 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5495 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5496 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5497 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5498 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5499 coff-pe-read.c, command.h, compile/compile-c-support.c,
5500 compile/compile-c.h, compile/compile-cplus-symbols.c,
5501 compile/compile-cplus-types.c, compile/compile-cplus.h,
5502 compile/compile-loc2c.c, compile/compile.c, completer.c,
5503 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5504 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5505 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5506 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5507 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5508 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5509 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5510 features/aarch64-core.c, features/aarch64-fpu.c,
5511 features/aarch64-pauth.c, features/aarch64-sve.c,
5512 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5513 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5514 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5515 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5516 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5517 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5518 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5519 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5520 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5521 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5522 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5523 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5524 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5525 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5526 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5527 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5528 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5529 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5530 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5531 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5532 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5533 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5534 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5535 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5536 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5537 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5538 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5539 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5540 minsyms.c, mips-linux-tdep.c, namespace.h,
5541 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5542 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5543 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5544 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5545 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5546 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5547 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5548 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5549 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5550 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5551 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5552 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5553 procfs.c, producer.c, progspace.h, psymtab.h,
5554 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5555 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5556 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5557 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5558 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5559 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5560 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5561 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5562 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5563 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5564 target-memory.c, target.c, target.h, target/waitstatus.c,
5565 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5566 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5567 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5568 unittests/array-view-selftests.c,
5569 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5570 unittests/common-utils-selftests.c,
5571 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5572 unittests/format_pieces-selftests.c,
5573 unittests/function-view-selftests.c,
5574 unittests/lookup_name_info-selftests.c,
5575 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5576 unittests/mkdir-recursive-selftests.c,
5577 unittests/observable-selftests.c,
5578 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5579 unittests/parse-connection-spec-selftests.c,
5580 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5581 unittests/scoped_fd-selftests.c,
5582 unittests/scoped_mmap-selftests.c,
5583 unittests/scoped_restore-selftests.c,
5584 unittests/string_view-selftests.c, unittests/style-selftests.c,
5585 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5586 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5587 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5588 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5589 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5590 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5591
5592 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5595 bool value.
5596 (decode_digits_ordinary): Set explicit_line field in sal.
5597 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5598 symtab_and_line that was set on an explicit line number in
5599 assembler code. Do always update the recorded symtab and line if
5600 we do skip the prologue.
5601
5602 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * breakpoint.c (set_breakpoint_location_function): Remove
5605 explicit_loc parameter.
5606 (momentary_breakpoint_from_master): Update call to
5607 set_breakpoint_location_function.
5608 (add_location_to_breakpoint): Likewise.
5609
5610 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5613 required features based on default bfd type when no specific bfd
5614 is present.
5615
5616 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5617
5618 * NEWS: Mention that GDB printf and eval commands can now print
5619 C-style and Ada-style convenience var strings without
5620 calling the inferior.
5621 * printcmd.c (printf_c_string): Locally print GDB internal var
5622 instead of transiting via the inferior.
5623 (printf_wide_c_string): Likewise.
5624
5625 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5626
5627 PR breakpoints/25011
5628 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5629
5630 2019-07-04 Tom Tromey <tom@tromey.com>
5631
5632 PR tui/24724:
5633 * tui/tui-winsource.c (tui_clear_source_content): Update.
5634 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5635 (tui_update_breakpoint_info): Update.
5636 (tui_set_exec_info_content): Update.
5637 * tui/tui-source.c (tui_set_source_content_nil): Update.
5638 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5639 has_break.
5640 * tui/tui-data.h (enum tui_bp_flag): New.
5641 (tui_bp_flags): New enum flags type.
5642 (struct tui_source_element) <break_mode>: Change type. Rename
5643 from has_break.
5644 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5645 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5646 constants.
5647 * tui/tui-winsource.h: Fix comment.
5648
5649 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5650
5651 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5652 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5653 (store_fpregs_to_thread)
5654 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5655 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5656 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5657 (IWMMXT_REGS_SIZE): Add define.
5658 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5659 (fetch_vfp_regs, store_vfp_regs)
5660 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5661 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5662
5663 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5664
5665 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5666 defines.
5667 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5668 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5669 (ARM_INT_REGISTER_SIZE): ...to this.
5670 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5671 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5672 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5673 (arm_linux_collect_gregset, supply_nwfpe_register)
5674 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5675 defines.
5676 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5677 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5678 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5679 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5680 (arm_return_in_memory, arm_store_return_value)
5681 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5682 (arm_record_ld_st_multiple): Likewise.
5683 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5684 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5685
5686 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5687
5688 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5689 AARCH64_DISPLACED_MODIFIED_INSNS.
5690 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5691 (aarch64_displaced_step_copy_insn): Likewise.
5692 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5693 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5694 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5695 ARM_DISPLACED_MODIFIED_INSNS.
5696 * arm-tdep.c (arm_gdbarch_init): Likewise.
5697 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5698 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5699 (struct arm_displaced_step_closure): Use
5700 ARM_DISPLACED_MODIFIED_INSNS.
5701
5702 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5703
5704 * features/Makefile: Remove unused xml files.
5705 * features/aarch64.xml: Remove.
5706 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5707 * features/i386/amd64-avx-avx512.xml: Remove.
5708 * features/i386/amd64-avx-linux.xml: Remove.
5709 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5710 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5711 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5712 * features/i386/amd64-avx-mpx.xml: Remove.
5713 * features/i386/amd64-avx.xml: Remove.
5714 * features/i386/amd64-linux.xml: Remove.
5715 * features/i386/amd64-mpx-linux.xml: Remove.
5716 * features/i386/amd64-mpx.xml: Remove.
5717 * features/i386/amd64.xml: Remove.
5718 * features/i386/i386-avx-avx512-linux.xml: Remove.
5719 * features/i386/i386-avx-avx512.xml: Remove.
5720 * features/i386/i386-avx-linux.xml: Remove.
5721 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5722 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5723 * features/i386/i386-avx-mpx-linux.xml: Remove.
5724 * features/i386/i386-avx-mpx.xml: Remove.
5725 * features/i386/i386-avx.xml: Remove.
5726 * features/i386/i386-linux.xml: Remove.
5727 * features/i386/i386-mmx-linux.xml: Remove.
5728 * features/i386/i386-mmx.xml: Remove.
5729 * features/i386/i386-mpx-linux.xml: Remove.
5730 * features/i386/i386-mpx.xml: Remove.
5731 * features/i386/i386.xml: Remove.
5732 * features/i386/x32-avx-avx512-linux.xml: Remove.
5733 * features/i386/x32-avx-linux.xml: Remove.
5734 * features/i386/x32-linux.xml: Remove.
5735
5736 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5737
5738 * regformats/aarch64.dat: Remove.
5739 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5740 * regformats/i386/amd64-avx-linux.dat: Remove.
5741 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5742 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5743 * regformats/i386/amd64-linux.dat: Remove.
5744 * regformats/i386/amd64-mpx-linux.dat: Remove.
5745 * regformats/i386/amd64.dat: Remove.
5746 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5747 * regformats/i386/i386-avx-linux.dat: Remove.
5748 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5749 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5750 * regformats/i386/i386-linux.dat: Remove.
5751 * regformats/i386/i386-mmx-linux.dat: Remove.
5752 * regformats/i386/i386-mpx-linux.dat: Remove.
5753 * regformats/i386/i386.dat: Remove.
5754 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5755 * regformats/i386/x32-avx-linux.dat: Remove.
5756 * regformats/i386/x32-linux.dat: Remove.
5757
5758 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5759
5760 * aarch64-tdep.c: Remove xml self tests.
5761 * amd64-linux-tdep.c: Likewise.
5762 * amd64-tdep.c: Likewise.
5763 * i386-linux-tdep.c: Likewise.
5764 * i386-tdep.c: Likewise.
5765
5766 2019-07-03 Pedro Alves <palves@redhat.com>
5767
5768 PR cli/24732
5769 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5770 (pipe_cmd_option_defs): New.
5771 (make_pipe_cmd_options_def_group): New.
5772 (pipe_command): Use gdb::option::process_options.
5773 (pipe_command_completer): New function.
5774 (_initialize_cli_cmds): Install completer for "pipe" command.
5775
5776 2019-07-03 Pedro Alves <palves@redhat.com>
5777
5778 * cli/cli-option.c (union option_value) <string>: New field.
5779 (struct option_def_and_value): Add ctor, move ctor, dtor and
5780 use DISABLE_COPY_AND_ASSIGN.
5781 (option_def_and_value::clear_value): New.
5782 (parse_option, save_option_value_in_ctx, get_val_type_str)
5783 (add_setshow_cmds_for_options): Handle var_string.
5784 * cli-option.h (union option_def::var_address) <string>: New
5785 field.
5786 (struct string_option_def): New.
5787 * maint-test-options.c (struct test_options_opts): Add default
5788 ctor and use DISABLE_COPY_AND_ASSIGN.
5789 <string_opt>: New field.
5790 (test_options_opts::~test_options_opts): New.
5791 (test_options_opts::dump): Also dump "-string".
5792 (test_options_option_defs): Install "string.
5793
5794 2019-07-03 Pedro Alves <palves@redhat.com>
5795
5796 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5797 option_value with a null enumeration.
5798 (complete_options): Save the option values in the context.
5799 (save_option_value_in_ctx): New, factored out from ...
5800 (process_options): ... here.
5801 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5802 of the function.
5803 * maint-test-options.c (test_options_opts::dump): New, factored
5804 out from ...
5805 (maintenance_test_options_command_mode): ... here.
5806 (maintenance_test_options_command_completion_result): Delete.
5807 (maintenance_test_options_command_completion_text): Update
5808 comment.
5809 (maintenance_show_test_options_completion_result): Change
5810 prototype. Just print
5811 maintenance_test_options_command_completion_text.
5812 (save_completion_result): New.
5813 (maintenance_test_options_completer_mode): Pass options context to
5814 complete_options, and then save a dump.
5815 (_initialize_maint_test_options): Use add_cmd to install "maint
5816 show test-options-completion-result".
5817
5818 2019-07-03 Pedro Alves <palves@redhat.com>
5819
5820 * NEWS (New commands): Mention "with" and "maint with".
5821 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5822 (with_command, with_command_completer): New.
5823 (pipe_command): Adjust to new repeat_previous
5824 interface.
5825 (_initialize_cli_cmds): Install the "with" command and its "w"
5826 alias.
5827 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5828 declarations.
5829 * cli/cli-setshow.c (parse_cli_var_uinteger)
5830 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5831 argument strings for all var_types.
5832 (get_setshow_command_value_string): New, factored out from ...
5833 (do_show_command): ... this.
5834 * cli/cli-setshow.h: Include <string>.
5835 (get_setshow_command_value_string): Declare.
5836 * command.h (repeat_previous): Now returns const char *. Adjust
5837 comment.
5838 * maint.c: Include "cli/cli-cmds.h".
5839 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5840 (_initialize_maint_cmds): Register the "maintenance with" command.
5841 * top.c (repeat_previous): Move bits from pipe_command here:
5842 Return the saved command line, if any; error out if there's no
5843 command to relaunch.
5844
5845 2019-07-03 Pedro Alves <palves@redhat.com>
5846
5847 * NEWS (New commands): Mention "maint set/show test-settings"
5848 instead of "maint test-settings".
5849 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5850 (maintenance_test_settings_set_list): Rename to ...
5851 (maintenance_set_test_settings_list): ... this.
5852 (maintenance_test_settings_show_list): Rename to ...
5853 (maintenance_show_test_settings_list): ... this.
5854 (maintenance_test_settings_cmd): Delete.
5855 (maintenance_test_settings_set_cmd): ...
5856 (maintenance_set_test_settings_cmd): ... this.
5857 (maintenance_test_settings_show_cmd): ...
5858 (maintenance_show_test_settings_cmd): ... this.
5859 (maintenance_test_settings_show_value_cmd):
5860 (maintenance_show_test_settings_value_cmd): ... this.
5861 (_initialize_maint_test_settings): No longer install the "maint
5862 test-settings" prefix command. Rename "maint test-settings set"
5863 to "maint set test-settings", and "maint test-settings show" to
5864 "maint show test-settings". Adjust all subcommands.
5865
5866 2019-07-03 Pedro Alves <palves@redhat.com>
5867
5868 * maint-test-settings.c: Fix file's intro comment. Replace all
5869 references to "test-options" with references to "test-settings",
5870 in comments.
5871
5872 2019-07-03 Pedro Alves <palves@redhat.com>
5873
5874 * maint-test-settings.c (maintenance_test_settings_xxx)
5875 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5876 New.
5877 (maintenance_test_settings_enums): Use them.
5878 (maintenance_test_settings_enum): Default to
5879 maintenance_test_settings_xxx.
5880 (_initialize_maint_test_settings): Initialize
5881 MAINTENANCE_TEST_SETTINGS_FILENAME.
5882
5883 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * breakpoint.h (remove_breakpoints_inf): Change return type to
5886 void, move function documentation here.
5887 * breakpoint.c (remove_breakpoints_inf): Change return type to
5888 void, move function documentation to header.
5889
5890 2019-07-02 Pedro Alves <palves@redhat.com>
5891
5892 * NEWS (Completion improvements): Mention "info threads".
5893 * thread.c (struct info_threads_opts, info_threads_option_defs)
5894 (make_info_threads_options_def_group): New.
5895 (info_threads_command): Use gdb::option::process_options.
5896 (info_threads_command_completer): New.
5897 (_initialize_thread): Use gdb::option::build_help to build the
5898 help text for "info threads".
5899
5900 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * defs.h (generic_load): Move from here...
5903 * symfile.h (generic_load): ... to here. Rename name parameter
5904 to args.
5905 * symfile.c (generic_load): Add comment.
5906
5907 2019-07-01 Tom Tromey <tromey@adacore.com>
5908
5909 * dwarf2read.c
5910 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5911 declaration of without_params. Fix formatting.
5912
5913 2019-07-01 Tom Tromey <tromey@adacore.com>
5914
5915 * ada-exp.y (find_primitive_type): Update.
5916 * ada-lang.h (ada_lookup_symbol): Update.
5917 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5918 parameter.
5919 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5920
5921 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5922
5923 PR breakpoints/24541
5924 * gdbarch.c: Regenerate.
5925 * gdbarch.h: Regenerate.
5926 * gdbarch.sh: Add 'stap_adjust_register'.
5927 * i386-tdep.c: Include '<unordered_set>'.
5928 (i386_stap_adjust_register): New function.
5929 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5930 * stap-probe.c (stap_parse_register_operand): Call
5931 'gdbarch_stap_adjust_register'.
5932
5933 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5934
5935 PR python/24742
5936 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5937 * python/python.c (do_start_initialization): Use 'xmalloc'
5938 instead of 'PyMem_Malloc'.
5939
5940 2019-06-28 Tom Tromey <tromey@adacore.com>
5941
5942 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5943 for Ada.
5944
5945 2019-06-27 Tom Tromey <tromey@adacore.com>
5946
5947 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5948 objfile_key.
5949 (arm_find_mapping_symbol, arm_record_special_symbol)
5950 (_initialize_arm_tdep): Update.
5951 (arm_objfile_data_free): Remove.
5952
5953 2019-06-27 Tom Tromey <tromey@adacore.com>
5954
5955 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5956 to cp_print_static_field.
5957
5958 2019-06-26 Tom Tromey <tromey@adacore.com>
5959
5960 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5961 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5962 declare.
5963
5964 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5965
5966 * features/aarch64-core.c (create_feature_aarch64_core):
5967 Regenerate.
5968 * features/aarch64-core.xml: Add cpsr flags.
5969
5970 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5971
5972 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5973 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5974
5975 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5978 field.
5979 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5980 use.
5981 (arm_record_special_symbol): Don't insert new symbol in sorted
5982 position, push it at the end.
5983
5984 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5985
5986 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5987 (arm_mapping_symbol_s): Remove.
5988 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5989 (arm_mapping_symbol_vec): New typedef.
5990 (struct arm_per_objfile): Add constructor.
5991 <section_maps>: Change type to
5992 std::unique_ptr<arm_mapping_symbol_vec[]>.
5993 (arm_compare_mapping_symbols): Remove.
5994 (arm_find_mapping_symbol): Adjust to section_maps type change.
5995 (arm_objfile_data_free): Call delete on arm_per_objfile.
5996 (arm_record_special_symbol): Adjust to section_maps type change.
5997 Allocate arm_per_objfile with new.
5998
5999 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6000
6001 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6002 with the command prefix.
6003
6004 2019-06-25 Tom Tromey <tom@tromey.com>
6005
6006 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6007 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6008
6009 2019-06-25 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6012 type.
6013 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6014 protected.
6015
6016 2019-06-25 Tom Tromey <tom@tromey.com>
6017
6018 * tui/tui-winsource.c
6019 (tui_source_window_base::set_is_exec_point_at): Add check against
6020 LOA_ADDRESS.
6021
6022 2019-06-25 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-source.c (tui_set_source_content): Don't check before
6025 xfree.
6026 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6027
6028 2019-06-25 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-winsource.h (tui_update_source_window_as_is)
6031 (tui_alloc_source_buffer, tui_line_is_displayed)
6032 (tui_addr_is_displayed): Change type of win_info.
6033 * tui/tui-winsource.c (tui_update_source_window_as_is)
6034 (tui_clear_source_content, tui_show_source_line)
6035 (tui_show_source_content, tui_source_window_base::refill)
6036 (tui_source_window_base::set_is_exec_point_at)
6037 (tui_source_window_base::set_is_exec_point_at)
6038 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6039 (tui_alloc_source_buffer, tui_line_is_displayed)
6040 (tui_addr_is_displayed): Change type of win_info. Update.
6041 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6042 (tui_source_window_base::do_make_visible_with_new_height):
6043 Update.
6044 * tui/tui-source.c (tui_set_source_content)
6045 (tui_set_source_content_nil)
6046 (tui_source_window::do_scroll_vertical): Update.
6047 * tui/tui-layout.c (show_layout): Update.
6048 * tui/tui-disasm.c (tui_set_disassem_content)
6049 (tui_disasm_window::do_scroll_vertical): Update.
6050 * tui/tui-data.h (tui_win_content): Remove.
6051 (struct tui_gen_win_info) <content, content_size>: Remove.
6052 (struct tui_source_element): Add initializers and destructor.
6053 (union tui_which_element, struct tui_win_element): Remove.
6054 (struct tui_source_window_base) <content>: New field.
6055 (struct tui_data_window): Remove destructor.
6056 (tui_alloc_content, tui_free_win_content)
6057 (tui_free_all_source_wins_content): Don't declare.
6058 * tui/tui-data.c (tui_initialize_static_data): Update.
6059 (init_content_element, tui_alloc_content): Remove.
6060 (~tui_gen_win_info): Update.
6061 (~tui_data_window, tui_free_all_source_wins_content)
6062 (tui_free_win_content, free_content, free_content_elements):
6063 Remove.
6064
6065 2019-06-25 Tom Tromey <tom@tromey.com>
6066
6067 * tui/tui-winsource.h (tui_clear_source_content)
6068 (tui_erase_source_content, tui_show_source_content): Change type
6069 of win_info.
6070 * tui/tui-winsource.c (tui_clear_source_content)
6071 (tui_erase_source_content, tui_show_source_content): Change type
6072 of win_info.
6073 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6074 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6075 win_info.
6076 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6077 win_info.
6078 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6079
6080 2019-06-25 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-winsource.c (tui_clear_source_content)
6083 (tui_source_window_base::set_is_exec_point_at): Update.
6084 * tui/tui-source.c (tui_set_source_content_nil): Update.
6085 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6086 a bool.
6087 * tui/tui-data.c (init_content_element): Update.
6088
6089 2019-06-25 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6092 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6093 * tui/tui-layout.c (init_and_make_win): Update.
6094 * tui/tui.h (enum tui_win_type): Update.
6095 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6096 tui_win_is_auxillary.
6097 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6098 tui_win_is_auxillary.
6099
6100 2019-06-25 Tom Tromey <tom@tromey.com>
6101
6102 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6103 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6104 (tui_delete_data_content_windows, tui_display_all_data)
6105 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6106 Update.
6107 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6108 * tui/tui-regs.c (tui_last_regs_line_no)
6109 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6110 (tui_show_registers): Update.
6111 (tui_show_register_group): Return void. Update.
6112 (tui_display_registers_from, tui_display_reg_element_at_line)
6113 (tui_display_registers_from_line, tui_check_register_values):
6114 Update.
6115 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6116 member.
6117 (struct tui_data_window) <regs_content>: Now a std::vector.
6118 <regs_content_count>: Remove.
6119 (tui_add_content_elements, tui_free_data_content): Don't declare.
6120 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6121 (init_content_element): Remove DATA_WIN case. Add assert.
6122 (tui_add_content_elements): Remove.
6123 (tui_data_window): Update.
6124 (tui_free_data_content): Remove.
6125 (free_content_elements): Remove DATA_WIN case.
6126
6127 2019-06-25 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-data.c (tui_data_item_window): Update.
6130 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6131 * tui/tui-windata.c (tui_display_all_data)
6132 (tui_display_data_from_line): Update.
6133 (tui_check_data_values): Remove.
6134 * tui/tui-regs.c (tui_show_register_group)
6135 (tui_display_reg_element_at_line): Update.
6136 * tui/tui-hooks.c (tui_register_changed)
6137 (tui_refresh_frame_and_register_information): Call
6138 tui_check_register_values.
6139 * tui/tui-data.h (struct tui_data_window) <data_content,
6140 data_content_count, data_type>: Remove.
6141 (enum tui_data_type): Remove.
6142
6143 * tui/tui-data.c (tui_data_window::clear_detail)
6144 (~tui_data_window): Update.
6145
6146 2019-06-25 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6149 declare.
6150 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6151 Rename from tui_first_data_item_displayed. Update.
6152 (tui_data_window::refresh_all)
6153 (tui_data_window::do_scroll_vertical): Update.
6154 * tui/tui-data.h (struct tui_data_window)
6155 <first_data_item_displayed>: Declare new method.
6156
6157 2019-06-25 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6160 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6161 contents...
6162 (tui_initialize_static_data): ...here.
6163
6164 2019-06-25 Tom Tromey <tom@tromey.com>
6165
6166 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6167 (tui_display_registers_from, tui_check_register_values): Update.
6168 (tui_display_register): Remove win_info parameter; update.
6169 (tui_get_register): Change type of parameters.
6170 * tui/tui-data.h (struct tui_data_element): Remove.
6171 (union tui_which_element) <data>: Remove.
6172 <data_window>: Change type.
6173 (struct tui_data_item_window): New.
6174 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6175 case. Add assert.
6176 (~tui_data_item_window): New destructor.
6177 (free_content_elements): Remove DATA_ITEM_WIN case.
6178
6179 2019-06-25 Tom Tromey <tom@tromey.com>
6180
6181 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6182 Remove.
6183
6184 2019-06-25 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-data.h (struct tui_command_element): Remove.
6187 (union tui_which_element) <command>: Remove.
6188 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6189 assert.
6190 (free_content_elements): Remove CMD_WIN case.
6191
6192 2019-06-25 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-layout.c (tui_set_layout): Update.
6195 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6196 * tui/tui-data.c (layout_def): Update.
6197
6198 2019-06-25 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6202 (tui_source_window_base::set_new_height): Update.
6203 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6204 Update.
6205 (tui_set_locator_fullname, tui_set_locator_info)
6206 (tui_show_frame_info): Update.
6207 * tui/tui-source.c (tui_set_source_content)
6208 (tui_source_is_displayed): Update.
6209 * tui/tui-layout.c (show_source_disasm_command, show_data)
6210 (show_source_or_disasm_and_command): Update.
6211 * tui/tui-disasm.c (tui_set_disassem_content)
6212 (tui_get_begin_asm_address): Update.
6213 * tui/tui-data.h (struct tui_locator_element): Remove.
6214 (union tui_which_element) <locator>: Remove.
6215 (struct tui_locator_window): New.
6216 (tui_locator_win_info_ptr): Change return type.
6217 * tui/tui-data.c (_locator): Change type.
6218 (tui_locator_win_info_ptr): Change return type.
6219 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6220 (tui_alloc_content): Add assert.
6221
6222 2019-06-25 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-winsource.c
6225 (tui_exec_info_window::maybe_allocate_content): New method.
6226 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6227 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6228 (make_source_or_disasm_window): Add cast.
6229 * tui/tui-data.h (union tui_which_element) <simple_string>:
6230 Remove.
6231 (struct tui_source_info): New.
6232 (struct tui_source_window_base) <execution_info>: Change type.
6233 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6234 case, and add assert.
6235 (tui_alloc_content): Add assert.
6236
6237 2019-06-25 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6240 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6241 * tui/tui-data.c (tui_alloc_win_info): Remove.
6242
6243 2019-06-25 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6246 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6247 can_highlight.
6248
6249 2019-06-25 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6252 make_visible_with_new_height method.
6253 (tui_win_info::make_visible_with_new_height): New method.
6254 (tui_source_window_base::do_make_visible_with_new_height)
6255 (tui_data_window::do_make_visible_with_new_height)
6256 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6257 (make_visible_with_new_height): Remove.
6258 (tui_resize_all, tui_adjust_win_heights): Use
6259 make_visible_with_new_height method.
6260 * tui/tui-data.h (struct tui_win_info)
6261 <do_make_visible_with_new_height, make_visible_with_new_height>:
6262 New methods.
6263 (struct tui_source_window_base, struct tui_data_window)
6264 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6265 methods.
6266
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6270 method.
6271 (update_tab_width): Call update_tab_width method.
6272 * tui/tui-data.h (struct tui_win_info)
6273 (struct tui_source_window_base) <update_tab_width>: New methods.
6274
6275 2019-06-25 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6278 parameter.
6279 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6280 parameter.
6281 (tui_gen_win_info::make_visible): Update.
6282 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6283 parameter.
6284 * tui/tui-data.h (enum tui_box): New enum.
6285 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6286
6287 2019-06-25 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6290 init_and_make_win for EXEC_INFO_WIN.
6291 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6292 longer inline.
6293 (struct tui_win_info) <~tui_win_info>: Inline.
6294 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6295 Don't declare.
6296 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6297 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6298 Remove.
6299 (tui_initialize_static_data): Update.
6300 (~tui_gen_win_info): Handle more cleanup here.
6301 (~tui_source_window_base): Delete "execution_info".
6302 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6303
6304 2019-06-25 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-layout.c (make_command_window): Don't set
6307 can_highlight.
6308 (show_source_disasm_command): Call the reset method.
6309 (show_data): Don't set can_highlight. Call the reset method.
6310 (tui_gen_win_info::reset): Rename from init_gen_win_info
6311 (init_and_make_win): Simplify. Return tui_gen_win_info.
6312 (show_source_or_disasm_and_command): Call the reset method.
6313 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6314 (struct tui_cmd_window): Set can_highlight.
6315
6316 2019-06-25 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6319 from make_visible.
6320 (tui_make_visible, tui_make_invisible): Rewrite.
6321 (tui_win_info::make_visible): Remove.
6322 (tui_source_window_base::make_visible): Update.
6323 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6324 method. Moved from...
6325 (struct tui_win_info) <make_visible>: ...here.
6326
6327 2019-06-25 Tom Tromey <tom@tromey.com>
6328
6329 * tui/tui-winsource.c
6330 (tui_source_window_base::do_scroll_horizontal): Remove direction
6331 parameter.
6332 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6333 direction parameter.
6334 * tui/tui-win.c (tui_win_info::forward_scroll)
6335 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6336 (tui_win_info::right_scroll): Update.
6337 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6338 direction parameter.
6339 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6340 direction parameter.
6341 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6342 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6343 Remove direction parameter.
6344 (struct tui_source_window_base, struct tui_source_window)
6345 (struct tui_disasm_window, struct tui_data_window)
6346 (struct tui_cmd_window): Update.
6347
6348 2019-06-25 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-winsource.h (tui_set_exec_info_content)
6351 (tui_show_exec_info_content, tui_erase_exec_info_content)
6352 (tui_clear_exec_info_content, tui_update_exec_info): Change
6353 argument to tui_source_window_base.
6354 * tui/tui-winsource.c (tui_set_exec_info_content)
6355 (tui_show_exec_info_content, tui_erase_exec_info_content)
6356 (tui_clear_exec_info_content, tui_update_exec_info): Change
6357 argument to tui_source_window_base.
6358
6359 2019-06-25 Tom Tromey <tom@tromey.com>
6360
6361 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6362 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6363
6364 2019-06-25 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6367 check.
6368
6369 2019-06-25 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6372 type to void.
6373 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6374 type to void.
6375 * tui/tui-source.c (tui_set_source_content): Update.
6376 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6377
6378 2019-06-25 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-win.c (window_name_completer, tui_set_focus)
6381 (tui_all_windows_info): Use name method.
6382 * tui/tui-data.h (struct tui_gen_win_info)
6383 (struct tui_source_window, struct tui_disasm_window)
6384 (struct tui_data_window, struct tui_cmd_window) <name>: New
6385 method.
6386 (tui_win_name): Don't declare.
6387 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6388 (tui_win_name): Remove.
6389
6390 2019-06-25 Tom Tromey <tom@tromey.com>
6391
6392 * tui/tui-winsource.h (tui_update_source_window)
6393 (tui_update_source_window_as_is): Change parameter type.
6394 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6395 to be a tui_source_window_base.
6396 (tui_update_source_window_as_is): Likewise.
6397 * tui/tui-win.c (make_visible_with_new_height): Update.
6398
6399 2019-06-25 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-winsource.c (tui_erase_source_content)
6402 (tui_show_source_content, tui_show_exec_info_content)
6403 (tui_erase_exec_info_content): Use refresh_window method.
6404 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6405 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6406 from tui_refresh_win.
6407 (tui_data_window::refresh_window): New method.
6408 (tui_win_info::refresh, tui_source_window_base::refresh)
6409 (tui_refresh_all): Use refresh_window method.
6410 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6411 method.
6412 * tui/tui-regs.c (tui_display_register): Call refresh_window
6413 method.
6414 * tui/tui-layout.c (show_source_disasm_command)
6415 (show_source_or_disasm_and_command): Call refresh_window method.
6416 * tui/tui-data.h (struct tui_gen_win_info)
6417 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6418 New method.
6419
6420 2019-06-25 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui.c (tui_rl_other_window, tui_enable)
6423 (tui_is_window_visible, tui_get_command_dimension): Update.
6424 * tui/tui-winsource.c (tui_update_source_window_as_is)
6425 (tui_clear_source_content, tui_erase_source_content)
6426 (tui_show_source_line, tui_source_window_base::refill)
6427 (tui_source_window_base::do_scroll_horizontal)
6428 (tui_source_window_base::set_is_exec_point_at)
6429 (tui_update_breakpoint_info, tui_set_exec_info_content)
6430 (tui_alloc_source_buffer, tui_line_is_displayed)
6431 (tui_addr_is_displayed): Update.
6432 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6433 (tui_check_and_display_highlight_if_needed)
6434 (tui_win_info::make_visible, tui_win_info::refresh)
6435 (tui_refresh_all): Update.
6436 * tui/tui-windata.c (tui_first_data_item_displayed)
6437 (tui_delete_data_content_windows, tui_erase_data_content)
6438 (tui_display_all_data, tui_data_window::refresh_all)
6439 (tui_check_data_values): Update.
6440 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6441 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6442 (tui_win_info::backward_scroll, tui_refresh_all_win)
6443 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6444 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6445 (tui_source_window_base::set_new_height)
6446 (tui_data_window::set_new_height)
6447 (make_invisible_and_set_new_height)
6448 (make_visible_with_new_height, new_height_ok)
6449 (parse_scrolling_args): Update.
6450 * tui/tui-stack.c (tui_show_frame_info): Update.
6451 * tui/tui-source.c (tui_set_source_content)
6452 (tui_set_source_content_nil, tui_source_is_displayed)
6453 (tui_source_window::do_scroll_vertical): Update.
6454 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6455 (tui_display_registers_from, tui_display_reg_element_at_line)
6456 (tui_check_register_values, tui_reg_command): Update.
6457 * tui/tui-layout.c (tui_default_win_height)
6458 (show_source_disasm_command, show_data, init_and_make_win)
6459 (show_source_or_disasm_and_command): Update.
6460 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6461 (tui_redisplay_readline, tui_mld_flush)
6462 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6463 (tui_getc): Update.
6464 * tui/tui-disasm.c (tui_set_disassem_content)
6465 (tui_disasm_window::do_scroll_vertical): Update.
6466 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6467 Now virtual.
6468 (struct tui_win_info): Derive from tui_gen_win_info.
6469 <~tui_win_info>: Mark as override.
6470 <generic>: Remove member.
6471 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6472 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6473 (~tui_data_window, ~tui_win_info)
6474 (tui_free_all_source_wins_content): Update.
6475 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6476
6477 2019-06-25 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-layout.c (init_and_make_win): Use new.
6480 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6481 destructor, initializers.
6482 (tui_alloc_generic_win_info): Don't declare.
6483 * tui/tui-data.c (_locator): Add argument to constructor.
6484 (source_win, disasm_win): New globals.
6485 (exec_info): Remove.
6486 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6487 Update.
6488 (tui_alloc_generic_win_info): Remove.
6489 (init_content_element): Use new.
6490 (tui_win_info::tui_win_info): Update.
6491 (free_content_elements) <case DATA_WIN>: Use delete.
6492
6493 2019-06-25 Tom Tromey <tom@tromey.com>
6494
6495 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6496 * tui/tui-windata.c (tui_first_data_item_displayed)
6497 (tui_delete_data_content_windows): Update.
6498 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6499 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6500 (tui_display_registers_from, tui_check_register_values): Update.
6501 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6502 pointer.
6503 * tui/tui-data.c (init_content_element): Update. Allocate the new
6504 window.
6505 (tui_free_data_content): Update.
6506 (free_content_elements) <case DATA_WIN>: Free the window.
6507
6508 2019-06-25 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6511 Update.
6512 * tui/tui-layout.c (make_command_window)
6513 (show_source_disasm_command, show_data, init_and_make_win)
6514 (show_source_or_disasm_and_command): Update.
6515 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6516 method.
6517 <can_highight, is_highlighted>: Now bool.
6518 (tui_set_win_highlight): Don't declare.
6519 * tui/tui-data.c (tui_set_win_highlight): Remove.
6520
6521 2019-06-25 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-wingeneral.c (make_visible): Remove check of window
6524 type.
6525
6526 2019-06-25 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-win.c (tui_win_info::max_height)
6529 (tui_cmd_window::max_height): New methods.
6530 (new_height_ok): Call max_height.
6531 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6532 <max_height>: New method.
6533
6534 2019-06-25 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-win.c (tui_source_window_base::set_new_height)
6537 (tui_data_window::set_new_height): New methods.
6538 (make_invisible_and_set_new_height): Call set_new_height method.
6539 * tui/tui-data.h (struct tui_win_info)
6540 (struct tui_source_window_base, struct tui_data_window)
6541 <set_new_height>: New method.
6542
6543 2019-06-25 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6546 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6547 tui_refresh_data_win.
6548 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6549 method.
6550 (tui_refresh_all_win): Call the refresh_all method.
6551 (tui_set_focus): Likewise.
6552 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6553 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6554 Likewise.
6555
6556 2019-06-25 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-winsource.h (tui_refill_source_window)
6559 (tui_set_is_exec_point_at): Don't declare.
6560 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6561 (tui_source_window_base::refill): Rename from
6562 tui_refill_source_window.
6563 (tui_source_window_base::do_scroll_horizontal): Update.
6564 (tui_source_window_base::set_is_exec_point_at): Rename from
6565 tui_set_is_exec_point_at.
6566 (tui_update_all_breakpoint_info): Update.
6567 * tui/tui-stack.c (tui_show_frame_info): Update.
6568 * tui/tui-layout.c (show_data): Add cast.
6569 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6570 * tui/tui-data.h (struct tui_source_window_base) <refill,
6571 set_is_exec_point_at>: New methods.
6572 (tui_source_windows, tui_add_to_source_windows): Update types.
6573 (tui_add_to_source_windows): Remove redundant declaration.
6574 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6575 (tui_source_windows): Change return type.
6576 (tui_clear_source_windows_detail): Update.
6577 (tui_add_to_source_windows): Change type of parameter.
6578 (tui_free_all_source_wins_content): Update.
6579
6580 2019-06-25 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui-wingeneral.c (tui_win_info::refresh)
6583 (tui_source_window_base::refresh): New methods.
6584 (tui_refresh_all): Call the refresh method.
6585 * tui/tui-data.h (struct tui_win_info)
6586 (struct tui_source_window_base) <refresh>: New method.
6587
6588 2019-06-25 Tom Tromey <tom@tromey.com>
6589
6590 * tui/tui.h (tui_is_window_visible): Return bool.
6591 * tui/tui.c (tui_is_window_visible): Return bool.
6592 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6593 (tui_make_visible, tui_make_invisible)
6594 (tui_win_info::make_visible)
6595 (tui_source_window_base::make_visible, make_all_visible)
6596 (tui_make_all_visible, tui_make_all_invisible): Update.
6597 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6598 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6599 bool.
6600 (struct tui_win_info, struct tui_source_window_base)
6601 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6602 * tui/tui-data.c (tui_init_generic_part): Update.
6603
6604 2019-06-25 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6607 (tui_source_window_base::make_visible): New methods.
6608 (make_all_visible): Make method call.
6609 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6610 (struct tui_source_window_base, struct tui_cmd_window): Override
6611 make_visible.
6612 (tui_win_is_source_type): Don't declare.
6613 * tui/tui-data.c (tui_win_is_source_type): Remove.
6614
6615 2019-06-25 Tom Tromey <tom@tromey.com>
6616
6617 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6618 NULL check.
6619
6620 2019-06-25 Tom Tromey <tom@tromey.com>
6621
6622 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6623 Inline constructor. Add initializers for members.
6624 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6625 constructors; now inline in class.
6626
6627 2019-06-25 Tom Tromey <tom@tromey.com>
6628
6629 * tui/tui-regs.c (tui_show_registers): Update.
6630 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6631 bool.
6632 * tui/tui-data.c (tui_data_window::clear_detail)
6633 (tui_data_window): Update.
6634
6635 2019-06-25 Tom Tromey <tom@tromey.com>
6636
6637 * tui/tui-windata.c (tui_display_all_data)
6638 (tui_display_data_from_line, tui_display_data_from)
6639 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6640 Update.
6641 * tui/tui-regs.c (tui_last_regs_line_no)
6642 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6643 (tui_show_registers, tui_show_register_group)
6644 (tui_display_registers_from, tui_display_reg_element_at_line)
6645 (tui_display_registers_from_line, tui_check_register_values)
6646 (tui_reg_next, tui_reg_prev): Update.
6647 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6648 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6649 tui_data_window.
6650 (struct tui_win_info) <detail>: Remove. Add new fields from
6651 tui_data_info.
6652 (TUI_DATA_WIN): Add cast.
6653 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6654 (~tui_data_window): Simplify.
6655
6656 2019-06-25 Tom Tromey <tom@tromey.com>
6657
6658 * tui/tui-layout.c (show_source_disasm_command)
6659 (show_source_or_disasm_and_command): Update.
6660 * tui/tui-io.c (update_cmdwin_start_line)
6661 (tui_redisplay_readline): Update.
6662 * tui/tui-data.h (struct tui_command_info): Remove.
6663 (struct tui_win_info) <detail>: Remove command_info member.
6664 (struct tui_data_window) <start_line>: New member, from
6665 tui_command_info.
6666 (TUI_CMD_WIN): Add casts.
6667
6668 2019-06-25 Tom Tromey <tom@tromey.com>
6669
6670 * tui/tui-winsource.c (tui_update_source_window)
6671 (tui_refill_source_window)
6672 (tui_source_window_base::do_scroll_horizontal)
6673 (tui_update_breakpoint_info, tui_set_exec_info_content)
6674 (tui_show_exec_info_content, tui_erase_exec_info_content)
6675 (tui_clear_exec_info_content): Update.
6676 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6677 Update.
6678 * tui/tui-win.c (make_invisible_and_set_new_height)
6679 (make_visible_with_new_height): Update.
6680 * tui/tui-source.c (tui_set_source_content)
6681 (tui_show_symtab_source): Update.
6682 * tui/tui-layout.c (extract_display_start_addr)
6683 (show_source_disasm_command, show_data)
6684 (make_source_or_disasm_window)
6685 (show_source_or_disasm_and_command): Update.
6686 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6687 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6688 "gdbarch".
6689 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6690 to tui_source_window_base.
6691 (struct tui_win_info) <detail>: Remove source_info member.
6692 (struct tui_source_window_base) <has_locator>: Inline.
6693 Move contents from tui_source_info; rename has_locator member to
6694 m_has_locator.
6695 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6696 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6697 header file.
6698 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6699 Simplify.
6700 (tui_free_all_source_wins_content): Cast to
6701 tui_source_window_base.
6702
6703 2019-06-25 Tom Tromey <tom@tromey.com>
6704
6705 * tui/tui-win.c (make_invisible_and_set_new_height)
6706 (make_visible_with_new_height): Call has_locator method.
6707 * tui/tui-layout.c (show_source_disasm_command, show_data)
6708 (show_source_or_disasm_and_command): Update for bool change.
6709 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6710 (tui_win_info) <has_locator>: New method.
6711 (struct tui_source_window_base) <has_locator>: New method.
6712 (tui_win_has_locator): Don't declare.
6713 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6714 from tui_win_has_locator.
6715 (tui_source_window_base): Use false, not FALSE.
6716
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6720 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6721 clear_detail method directly.
6722 (tui_clear_win_detail): Remove.
6723
6724 2019-06-25 Tom Tromey <tom@tromey.com>
6725
6726 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6727 "this", not TUI_DISASM_WIN.
6728
6729 2019-06-25 Tom Tromey <tom@tromey.com>
6730
6731 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6732 declare.
6733 * tui/tui-winsource.c
6734 (tui_source_window_base::do_scroll_horizontal): Rename from
6735 tui_horizontal_source_scroll.
6736 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6737 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6738 from tui_vertical_data_scroll.
6739 * tui/tui-win.h (tui_scroll): Don't declare.
6740 * tui/tui-win.c (tui_win_info::forward_scroll)
6741 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6742 (tui_win_info::right_scroll): Rename and update.
6743 (tui_scroll_forward_command, tui_scroll_backward_command)
6744 (tui_scroll_left_command, tui_scroll_right_command): Update.
6745 (tui_scroll): Remove.
6746 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6747 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6748 from tui_vertical_source_scroll.
6749 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6750 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6751 from tui_vertical_disassem_scroll.
6752 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6753 do_scroll_horizontal>: New methods.
6754 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6755 Likewise.
6756 (struct tui_source_window_base): Add do_scroll_horizontal.
6757 (struct tui_source_window, struct tui_disasm_window): Add
6758 do_scroll_vertical.
6759 (struct tui_data_window, struct tui_cmd_window): Add
6760 do_scroll_horizontal and do_scroll_vertical.
6761 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6762
6763 2019-06-25 Tom Tromey <tom@tromey.com>
6764
6765 * tui/tui-data.h (struct tui_source_window_base): New struct.
6766 (struct tui_source_window): Derive from tui_source_window_base.
6767 (struct tui_disasm_window): New struct.
6768 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6769 from tui_source_window::clear_detail.
6770 (tui_source_window_base): Rename from tui_source_window.
6771 (~tui_source_window_base): Rename from ~tui_source_window.
6772 (tui_alloc_win_info): Create a tui_disasm_window.
6773
6774 2019-06-25 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui-data.h (struct tui_source_window)
6777 (struct tui_data_window): Declare destructors.
6778 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6779 destructors.
6780 (tui_win_info): Simplify.
6781
6782 2019-06-25 Tom Tromey <tom@tromey.com>
6783
6784 * tui/tui-winsource.c (tui_display_main)
6785 (tui_update_source_windows_with_addr)
6786 (tui_update_all_breakpoint_info): Update.
6787 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6788 (new_height_ok, parse_scrolling_args): Update.
6789 * tui/tui-stack.c (tui_show_frame_info): Update.
6790 * tui/tui-data.h (struct tui_list): Remove.
6791 (tui_source_windows): Return a reference to a std::vector.
6792 * tui/tui-data.c (source_windows): Now a std::vector.
6793 (tui_source_windows): Change return type.
6794 (tui_clear_source_windows): Rewrite.
6795 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6796 (tui_free_all_source_wins_content): Rewrite.
6797
6798 2019-06-25 Tom Tromey <tom@tromey.com>
6799
6800 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6801 (struct tui_data_window, struct tui_cmd_window): Declare
6802 clear_detail method.
6803 * tui/tui-data.c (tui_source_window::clear_detail)
6804 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6805 methods.
6806 (tui_clear_win_detail): Simplify.
6807
6808 2019-06-25 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-layout.c (make_source_window, make_disasm_window)
6811 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6812 Return the new window.
6813 (show_source_disasm_command, show_data)
6814 (show_source_or_disasm_and_command): Update.
6815
6816 2019-06-25 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6819 parameter. Return the new window.
6820 (show_source_disasm_command): Update and remove NULL check.
6821 (show_source_or_disasm_and_command): Update.
6822
6823 2019-06-25 Tom Tromey <tom@tromey.com>
6824
6825 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6826
6827 2019-06-25 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-data.h (struct tui_win_info): Make constructor
6830 protected. Make destructor virtual. Add initializers.
6831 (tui_source_window, tui_data_window, tui_cmd_window): New
6832 classes.
6833 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6834 constructor. Add "type" parameter.
6835 (tui_source_window, tui_data_window, tui_cmd_window): New
6836 constructors.
6837 (tui_alloc_win_info): Instantiate the appropriate subclass.
6838
6839 2019-06-25 Tom Tromey <tom@tromey.com>
6840
6841 * tui/tui-win.c (tui_resize_all): Use delete.
6842 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6843 destructor.
6844 (tui_free_window): Don't declare.
6845 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6846 Update.
6847
6848 2019-06-25 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui-data.h (struct tui_win_info): Add constructor.
6851 * tui/tui-data.c (tui_alloc_win_info): Use new.
6852 (tui_free_window): Use delete.
6853
6854 2019-06-22 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6857 declare.
6858 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6859
6860 2019-06-22 Tom Tromey <tom@tromey.com>
6861
6862 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6863 declare.
6864 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6865
6866 2019-06-22 Tom de Vries <tdevries@suse.de>
6867
6868 * dwarf2read.c (create_addrmap_from_aranges)
6869 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6870 instead of '%zu'.
6871
6872 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * dwarf2read.h (dwarf2_section_info_def): Remove.
6875 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6876 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6877 std::vector<dwarf2_section_info>.
6878 (struct dwo_file) <~dwo_file>: Remove.
6879 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6880 types field.
6881 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6882 (dwarf2_read_debug_names): Likewise.
6883 (create_debug_types_hash_table): Change parameter type to
6884 array_view, adjust code accordingly.
6885 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6886 (partial_die_info::fixup): Likewise.
6887 (determine_prefix): Likewise.
6888 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6889
6890 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6893 gdb_bfd_ref_ptr.
6894 <~dwo_file>: Remove call to gdb_bfd_unref.
6895 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6896 gdb_bfd_ref_ptr::get.
6897
6898 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6899
6900 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6901 type to htab_up.
6902 * dwarf2read.c (struct dwo_file): Initialize fields.
6903 <~dwo_file>: New.
6904 (free_dwo_file): Remove, move content to ~dwo_file.
6905 (struct dwo_file_deleter): Remove.
6906 (dwo_file_up>: Remove custom deleter.
6907 (free_dwo_files): Remove.
6908 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6909 dwo_files.
6910 (process_skeletonless_type_units): Call unique_ptr::get.
6911 (allocate_dwo_file_hash_table): Add deleter to created hash
6912 table. Change return type to htab_up.
6913 (lookup_dwo_file_slot): Don't memset dwo_file, call
6914 unique_ptr::get.
6915 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6916 (create_dwo_unit_in_dwp_v2): Likewise.
6917 (open_and_init_dwo_file): Likewise.
6918 (free_dwo_file_from_slot): Remove.
6919
6920 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6921
6922 * dwarf2read.h (struct dwarf2_section_info) <readin,
6923 is_virtual>: Change type to bool.
6924 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6925 true instead of 1.
6926
6927 2019-06-19 Tom Tromey <tom@tromey.com>
6928
6929 * tui/tui-data.h (tui_init_content_element): Don't declare.
6930
6931 2019-06-19 Tom Tromey <tom@tromey.com>
6932
6933 * tui/tui-data.h (tui_init_win_info): Don't declare.
6934
6935 2019-06-19 Tom de Vries <tdevries@suse.de>
6936
6937 * dwarf2read.h (abstract_to_concrete): Change type to
6938 std::unordered_map<sect_offset, std::vector<sect_offset>,
6939 gdb::hash_enum<sect_offset>>.
6940
6941 2019-06-19 Tom Tromey <tromey@adacore.com>
6942
6943 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6944 EVAL_AVOID_SIDE_EFFECTS specially.
6945
6946 2019-06-19 Tom Tromey <tromey@adacore.com>
6947
6948 * source-cache.c (highlighter): New global.
6949 (source_cache::get_source_lines): Create a highlighter on demand.
6950
6951 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * defs.h (deprecated_interactive_hook): Delete declaration.
6954 * interps.c (clear_interpreter_hooks): Remove use of
6955 deprecated_interactive_hook.
6956 * top.c (deprecated_interactive_hook): Delete definition.
6957 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6958
6959 2019-06-18 Tom de Vries <tdevries@suse.de>
6960
6961 PR gdb/24515
6962 * dwarf2read.h (abstract_to_concrete): Change type from
6963 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6964 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6965 * dwarf2read.c (read_variable): Update.
6966 (dwarf2_fetch_die_loc_sect_off): Update.
6967
6968 2019-06-17 Tom de Vries <tdevries@suse.de>
6969
6970 PR gdb/24617
6971 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6972 accessing parent[parent_len - 1].
6973
6974 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6975
6976 PR gdb/24364
6977 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6978 call dtrace_process_dof with NULL dof.
6979
6980 2019-06-16 Tom de Vries <tdevries@suse.de>
6981
6982 PR gdb/24445
6983 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6984
6985 2019-06-16 Tom Tromey <tom@tromey.com>
6986
6987 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6988 (make_all_visible): Use address of member.
6989
6990 2019-06-16 Tom Tromey <tom@tromey.com>
6991
6992 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6993 (tui_free_window, free_content, free_content_elements): Remove
6994 unnecessary cast.
6995 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6996 cast.
6997 * tui/tui-regs.c (tui_show_register_group)
6998 (tui_display_registers_from, tui_display_reg_element_at_line):
6999 Remove unnecessary cast.
7000
7001 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * linux-nat.c (normal_mask): Delete.
7004 (_initialize_linux_nat): Don't initialise normal_mask.
7005
7006 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 PR gdb/24445
7009 * dwarf-index-write.h (write_psymtabs_to_index): Add
7010 dwz_basename parameter.
7011 * dwarf-index-write.c (write_gdbindex): Move file writing to
7012 write_gdbindex_1. Change return type void.
7013 (assert_file_size): Move up, remove filename parameter.
7014 (write_gdbindex_1): New function.
7015 (write_debug_names): Change return type to void, call
7016 assert_file_size.
7017 (struct index_wip_file): New struct.
7018 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7019 file logic to index_wip_file. Write index for dwz file if
7020 needed.
7021 (save_gdb_index_command): Pass basename of dwz file, if present.
7022 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7023 build-id of dwz file, if present.
7024 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7025 (dwarf2_get_dwz_file): Likewise.
7026 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7027 (dwarf2_get_dwz_file): Likewise.
7028
7029 2019-06-16 Tom Tromey <tom@tromey.com>
7030
7031 * coffread.c (process_coff_symbol): Use xstrdup.
7032 * value.c (create_internalvar): Use xstrdup.
7033
7034 2019-06-16 Tom Tromey <tom@tromey.com>
7035
7036 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7037 * breakpoint.c (stopin_command, stopat_command)
7038 (until_break_command, decode_location_default): Remove unnecessary
7039 cast.
7040 * utils.c (subset_compare): Remove unnecessary cast.
7041 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7042 cast.
7043 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7044 cast.
7045 * infcmd.c (path_command): Remove unnecessary cast.
7046 * coffread.c (decode_type): Remove unnecessary cast.
7047 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7048 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7049 * tui/tui-stack.c (tui_show_locator_content)
7050 (tui_show_frame_info): Remove unnecessary cast.
7051 * tui/tui-win.c (tui_scroll_forward_command)
7052 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7053 (parse_scrolling_args): Remove unnecessary cast.
7054 * tui/tui-data.c (init_win_info, tui_del_window)
7055 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7056 (free_content_elements): Remove unnecessary cast.
7057 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7058 unnecessary cast.
7059 * tui/tui-source.c (tui_set_source_content)
7060 (tui_vertical_source_scroll): Remove unnecessary cast.
7061 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7062 cast.
7063 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7064 * tui/tui-regs.c (tui_display_registers_from)
7065 (tui_display_register): Remove unnecessary cast.
7066 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7067 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7068 (make_visible): Remove unnecessary cast.
7069 * tui/tui-winsource.c (tui_erase_source_content)
7070 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7071 unnecessary cast.
7072 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7073 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7074 * stabsread.c (read_type, read_array_type, read_range_type):
7075 Remove unnecessary cast.
7076 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7077 (parse_symbol, parse_type, upgrade_type, parse_external)
7078 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7079 unnecessary cast.
7080 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7081
7082 2019-06-16 Tom Tromey <tom@tromey.com>
7083
7084 * tui/tui-data.c (tui_alloc_generic_win_info)
7085 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7086 checks.
7087
7088 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7089 Andrew Burgess <andrew.burgess@embecosm.com>
7090
7091 * f-typeprint.c (f_print_type): Don't return early for not
7092 associated or not allocated types.
7093 (f_type_print_varspec_suffix): Add print_rank parameter and print
7094 ranks of array types in case they dangling.
7095 (f_type_print_base): Add print_rank parameter.
7096
7097 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * NEWS: Mention new MI commands.
7100 * break-catch-throw.c (enum exception_event_kind): Move to
7101 breakpoint.h.
7102 (print_mention_exception_catchpoint): Output text as a single
7103 message.
7104 (catch_exception_command_1): Rename to...
7105 (catch_exception_event): ...this, make non-static, update header
7106 command, and change some parameter types.
7107 (catch_catch_command): Update for changes to
7108 catch_exception_command_1.
7109 (catch_throw_command): Likewise.
7110 (catch_rethrow_command): Likewise.
7111 * breakpoint.c (enum exception_event_kind): Delete.
7112 * breakpoint.h (enum exception_event_kind): Moved here from
7113 break-catch-throw.c.
7114 (catch_exception_event): Declare.
7115 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7116 (mi_cmd_catch_throw): New function.
7117 (mi_cmd_catch_rethrow): New function.
7118 (mi_cmd_catch_catch): New function.
7119 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7120 'catch-catch' entries.
7121 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7122 (mi_cmd_catch_rethrow): Declare.
7123 (mi_cmd_catch_catch): Declare.
7124
7125 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * annotate.c (annotate_source_line): Change return type to void,
7128 update implementation to match.
7129 * annotate.h (annotate_source_line): Change return type to void,
7130 update header comment.
7131 * stack.c (print_frame_info): Don't change what frame information
7132 is printed based on whether annotations are on or not.
7133
7134 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7137 (annotate_source): Make static.
7138 (annotate_source_line): Moved from source.c and renamed from
7139 identify_source_line. Update the return type.
7140 * annotate.h (annotate_source): Delete declaration.
7141 (annotate_source_line): Declaration moved from source.h, and
7142 renamed from identify_source_line. Return type updated.
7143 * source.c (identify_source_line): Moved to annotate.c and renamed
7144 to annotate_source_line.
7145 (info_line_command): Remove check of annotation_level.
7146 * source.h (identify_source_line): Move declaration to annotate.h
7147 and rename to annotate_source_line.
7148 * stack.c: Add 'annotate.h' include.
7149 (print_frame_info): Remove check of annotation_level before
7150 calling annotate_source_line.
7151
7152 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * source-cache.c (source_cache::get_plain_source_lines): Use
7155 open_source_file_with_line_charpos instead of just
7156 open_source_file, remove call to find_source_lines.
7157 (source_cache::get_source_lines): Likewise.
7158 * source.c (find_source_lines): Make static.
7159 (get_filename_and_charpos): Renamed into...
7160 (open_source_file_with_line_charpos): ..this along with changes to
7161 return a scoped_fd, and some other minor clean ups.
7162 (identify_source_line): Use open_source_file_with_line_charpos.
7163 (search_command_helper): Use open_source_file_with_line_charpos
7164 instead of just open_source_file, remove call to
7165 find_source_lines.
7166 * source.h (open_source_file_with_line_charpos): Declare new
7167 function.
7168 (find_source_lines): Delete declaration.
7169
7170 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7171
7172 * source.c (get_filename_and_charpos): Remove fullname
7173 parameter.
7174 (identify_source_line): Update call to get_filename_and_charpos.
7175
7176 2019-06-14 Tom Tromey <tromey@adacore.com>
7177
7178 PR gdb/24502:
7179 * ui-style.h (skip_ansi_escape): Update comment.
7180 * ui-file.h (class no_terminal_escape_file): New class.
7181 * ui-file.c (no_terminal_escape_file::write)
7182 (no_terminal_escape_file::puts): New methods.
7183 * cli/cli-logging.c (handle_redirections): Use
7184 no_terminal_escape_file.
7185
7186 2019-06-14 Tom Tromey <tromey@adacore.com>
7187
7188 * NEWS: Move convenience variable news above Python news.
7189
7190 2019-06-14 Tom Tromey <tom@tromey.com>
7191
7192 * gnulib: Move directory to top-level.
7193 * configure.ac: Don't configure gnulib.
7194 * configure: Rebuild.
7195 * common/common-defs.h: Use new path to gnulib.
7196 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7197 (GNULIB_H): Remove.
7198 (INCGNU): Look in new gnulib location.
7199 (HFILES_NO_SRCDIR): Remove gnulib files.
7200 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7201 (generated_files): Remove GNULIB_H.
7202 ($(LIBGNU), all-lib): Remove targets.
7203 (distclean): Don't mention GNULIB_BUILDDIR.
7204 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7205
7206 2019-06-14 Tom Tromey <tromey@adacore.com>
7207
7208 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7209 Warn if symbol file does not provide any symbols.
7210
7211 2019-06-14 Tom Tromey <tromey@adacore.com>
7212
7213 * source.c (find_and_open_source): Respect basenames_may_differ.
7214
7215 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * annotate.c (annotate_breakpoints_invalid): Make use of
7218 scoped_restore_terminal_state.
7219 (annotate_frames_invalid): Likewise.
7220
7221 2019-06-14 Tom Tromey <tromey@adacore.com>
7222
7223 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7224 allow assignment to an internalvar.
7225
7226 2019-06-14 Tom Tromey <tromey@adacore.com>
7227
7228 * ada-lex.l: Allow "_" in attribute names.
7229
7230 2019-06-14 Tom Tromey <tromey@adacore.com>
7231
7232 PR gdb/24653:
7233 * regcache.c (registers_changed): Don't call alloca.
7234 * top.c (execute_command): Don't call alloca.
7235
7236 2019-06-13 Pedro Alves <palves@redhat.com>
7237
7238 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7239 'expression'. When parsing an expression, error out if there's
7240 junk after "unlimited".
7241 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7242 (do_set_command): Adjust calls to is_unlimited_literal.
7243
7244 2019-06-13 Pedro Alves <palves@redhat.com>
7245
7246 * compile/compile.c (make_compile_options_def_group): Add braces
7247 around array_view initializer.
7248 * thread.c (make_thread_apply_all_options_def_group)
7249 (make_thread_apply_all_options_def_group): Likewise.
7250
7251 2019-06-13 Pedro Alves <palves@redhat.com>
7252
7253 * NEWS (New commands): Mention "maint test-options
7254 require-delimiter", "maint test-options unknown-is-error", "maint
7255 test-options unknown-is-operand" and "maint show
7256 test-options-completion-result".
7257 (New command options, command completion): New section.
7258 (Completion improvements): New section.
7259 Mention that you can abbreviate "unlimited".
7260
7261 2019-06-13 Pedro Alves <palves@redhat.com>
7262
7263 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7264 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7265 * unittests/cli-utils-selftests.c (test_parse_flags)
7266 (test_parse_flags_qcs): Delete.
7267 (test_cli_utils): Don't call deleted functions.
7268
7269 2019-06-13 Pedro Alves <palves@redhat.com>
7270
7271 * thread.c: Include "cli/cli-option.h".
7272 (tp_array_compar_ascending): Global.
7273 (tp_array_compar): Delete function.
7274 (tp_array_compar_ascending, tp_array_compar_descending): New
7275 functions.
7276 (ascending_option_def, qcs_flag_option_def)
7277 (thr_qcs_flags_option_defs)
7278 (make_thread_apply_all_options_def_group)
7279 (make_thread_apply_options_def_group): New.
7280 (thread_apply_all_command): Use gdb::option::process_options.
7281 (thread_apply_command_completer)
7282 (thread_apply_all_command_completer): New.
7283 (thread_apply_command): Use gdb::option::process_options.
7284 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7285 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7286 to generate help text of "thread apply". Adjust "taas"'s help.
7287 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7288 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7289
7290 2019-06-13 Pedro Alves <palves@redhat.com>
7291
7292 * thread.c (thread_apply_command): Check for invalid TID with
7293 isdigit instead of !isalpha.
7294
7295 2019-06-13 Pedro Alves <palves@redhat.com>
7296
7297 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7298 (validate_flags_qcs): New.
7299 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7300 (validate_flags_qcs): Declare.
7301 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7302 (make_frame_apply_options_def_group): New.
7303 (frame_apply_command_count): Process options with
7304 gdb::option::process_options.
7305 (frame_apply_completer): New.
7306 (frame_apply_level_completer, frame_apply_all_completer)
7307 (frame_apply_completer): New.
7308 (_initialize_stack): Update help of "frame apply", "frame apply
7309 level", "frame apply all" and "faas" to mention supported options
7310 and install command completers.
7311 * stack.h (frame_apply_all_completer): Declare.
7312 * thread.c: Include "stack.h".
7313 (tfaas_command): Add "--".
7314 (_initialize_thread): Update help "tfaas" to mention supported
7315 options and install command completer.
7316
7317 2019-06-13 Pedro Alves <palves@redhat.com>
7318
7319 * completer.c (complete_nested_command_line): New.
7320 (gdb_completion_word_break_characters_throw): Add assertion.
7321 * completer.h (complete_nested_command_line): Declare.
7322
7323 2019-06-13 Pedro Alves <palves@redhat.com>
7324
7325 * stack.c (parse_backtrace_qualifiers): New.
7326 (backtrace_command): Use it.
7327 (backtrace_command_completer): Complete on qualifiers.
7328
7329 2019-06-13 Pedro Alves <palves@redhat.com>
7330
7331 * frame.c: Include "cli/cli-option.h.
7332 (user_set_backtrace_options): New.
7333 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7334 Delete.
7335 (get_prev_frame): Adjust.
7336 (boolean_option_def, uinteger_option_def)
7337 (set_backtrace_option_defs): New.
7338 (_initialize_frame): Adjust and use
7339 gdb::option::add_setshow_cmds_for_options to install "set
7340 backtrace past-main" and "set backtrace past-entry".
7341 * frame.h: Include "cli/cli-option.h".
7342 (struct frame_print_options): Forward declare.
7343 (print_frame_arguments_all, print_frame_arguments_scalars)
7344 (print_frame_arguments_none): Declare.
7345 (print_entry_values): Delete declaration.
7346 (struct frame_print_options, user_frame_print_options): New.
7347 (struct set_backtrace_options): New.
7348 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7349 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7350 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7351 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7352 (list_args_or_locals): Add frame_print_options parameter.
7353 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7354 * python/py-framefilter.c (enumerate_args): Pass down
7355 USER_FRAME_PRINT_OPTIONS.
7356 * stack.c: Include "cli/cli-option.h".
7357 (print_frame_arguments_all, print_frame_arguments_scalars)
7358 (print_frame_arguments_none): Declare.
7359 (print_raw_frame_arguments, print_entry_values): Delete.
7360 (user_frame_print_options): New.
7361 (boolean_option_def, enum_option_def, frame_print_option_defs):
7362 New.
7363 (struct backtrace_cmd_options): New.
7364 (bt_flag_option_def): New.
7365 (backtrace_command_option_defs): New.
7366 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7367 (print_frame_arg, read_frame_arg, print_frame_args)
7368 (print_frame_info, print_frame): Add frame_print_options parameter
7369 and use it.
7370 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7371 (backtrace_command_1): Add frame_print_options and
7372 backtrace_cmd_options parameters and use them.
7373 (make_backtrace_options_def_group): New.
7374 (backtrace_command): Process command options with
7375 gdb::option::process_options.
7376 (backtrace_command_completer): New.
7377 (_initialize_stack): Extend "backtrace"'s help to mention
7378 supported options. Install completer for "backtrace".
7379 Install some settings commands with add_setshow_cmds_for_options.
7380
7381 2019-06-13 Pedro Alves <palves@redhat.com>
7382
7383 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7384 and that "set/show print raw frame-arguments" are now deprecated.
7385
7386 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7387 command.
7388 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7389 * stack.c (_initialize_stack): Install "set/show print
7390 raw-frame-arguments", and deprecate "set/show print raw
7391 frame-arguments".
7392 * valprint.c (_initialize_valprint): Deprecate "set/show print
7393 raw".
7394
7395 2019-06-13 Pedro Alves <palves@redhat.com>
7396
7397 * compile/compile.c (struct compile_options): New.
7398 (compile_flag_option_def, compile_command_option_defs)
7399 (make_compile_options_def_group): New.
7400 (compile_file_command): Handle options with
7401 gdb::option::process_options.
7402 (compile_file_command_completer): New function.
7403 (compile_code_command): Handle options with
7404 gdb::option::process_options.
7405 (compile_code_command_completer): New function.
7406 (_initialize_compiler): Install completers for "compile code" and
7407 "compile file". Mention available options in "compile code" and
7408 "compile code"'s help.
7409 * completer.c (advance_to_completion_word): New, factored out from
7410 ...
7411 (advance_to_expression_complete_word_point): ... this.
7412 (advance_to_filename_complete_word_point): New.
7413 * completer.h (advance_to_filename_complete_word_point): New
7414 declaration.
7415
7416 2019-06-13 Pedro Alves <palves@redhat.com>
7417
7418 * compile/compile.c: Include "cli/cli-option.h".
7419 (compile_print_value): Scope data pointer is now a
7420 value_print_options pointer; adjust.
7421 (compile_print_command): Process options. Scope data pointer is
7422 now a value_print_options pointer; adjust.
7423 (_initialize_compile): Update "compile print"'s help to include
7424 supported options. Install a completer for "compile print".
7425 * cp-valprint.c (show_vtblprint, show_objectprint)
7426 (show_static_field_print): Delete.
7427 (_initialize_cp_valprint): Don't install "set print
7428 static-members", "set print vtbl", "set print object" here.
7429 * printcmd.c: Include "cli/cli-option.h" and
7430 "common/gdb_optional.h".
7431 (print_command_parse_format): Rework to fill in a
7432 value_print_options instead of a format_data.
7433 (print_value): Change parameter type from format_data pointer to
7434 value_print_options reference. Adjust.
7435 (print_command_1): Process options. Adjust to pass down a
7436 value_print_options.
7437 (print_command_completer): New.
7438 (_initialize_printcmd): Install print_command_completer as
7439 handle_brkchars completer for the "print" command. Update
7440 "print"'s help to include supported options.
7441 * valprint.c: Include "cli/cli-option.h".
7442 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7443 here from cp-valprint.c.
7444 (boolean_option_def, uinteger_option_def)
7445 (value_print_option_defs, make_value_print_options_def_group):
7446 New. Use gdb::option::add_setshow_cmds_for_options to install
7447 "set print elements", "set print null-stop", "set print repeats",
7448 "set print pretty", "set print union", "set print array", "set
7449 print address", "set print symbol", "set print array-indexes".
7450 * valprint.h: Include <string> and "cli/cli-option.h".
7451 (make_value_print_options_def_group): Declare.
7452 (print_value): Change parameter type from format_data pointer to
7453 value_print_options reference.
7454 (print_command_completer): Declare.
7455
7456 2019-06-13 Pedro Alves <palves@redhat.com>
7457
7458 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7459 (COMMON_SFILES): Add maint-test-settings.c.
7460 * cli/cli-decode.c (boolean_enums): New global, factored out from
7461 ...
7462 (add_setshow_boolean_cmd): ... here.
7463 * cli/cli-decode.h (boolean_enums): Declare.
7464 * cli/cli-option.c: New file.
7465 * cli/cli-option.h: New file.
7466 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7467 factored out from ...
7468 (parse_cli_boolean_value(const char *)): ... this.
7469 (is_unlimited_literal): Change parameter type to pointer to
7470 pointer. Adjust and advance ARG pointer.
7471 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7472 (parse_cli_var_enum): New, factored out from ...
7473 (do_set_command): ... this. Adjust.
7474 * cli/cli-setshow.h (parse_cli_boolean_value)
7475 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7476 (parse_cli_var_enum): Declare.
7477 * cli/cli-utils.c: Include "cli/cli-option.h".
7478 (get_ulongest): New.
7479 * cli/cli-utils.h (get_ulongest): Declare.
7480 (check_for_argument): New overloads.
7481 * maint-test-options.c: New file.
7482
7483 2019-06-13 Pedro Alves <palves@redhat.com>
7484
7485 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7486 parse a range if "-" is at the end of the string.
7487
7488 2019-06-13 Pedro Alves <palves@redhat.com>
7489
7490 * cli/cli-setshow.c (parse_auto_binary_operation)
7491 (parse_cli_boolean_value): Don't allow "o".
7492
7493 2019-06-13 Pedro Alves <palves@redhat.com>
7494
7495 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7496 * NEWS: Mention maint test-settings KIND.
7497 * maint-test-settings.c: New file.
7498
7499 2019-06-13 Pedro Alves <palves@redhat.com>
7500
7501 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7502 completer.
7503 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7504 "set" completers.
7505
7506 2019-06-13 Pedro Alves <palves@redhat.com>
7507
7508 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7509 after item.
7510
7511 2019-06-13 Pedro Alves <palves@redhat.com>
7512
7513 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7514
7515 2019-06-13 Pedro Alves <palves@redhat.com>
7516
7517 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7518 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7519 call.
7520 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7521 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7522 calls.
7523 (check_for_argument): Skip spaces after argument.
7524
7525 2019-06-13 Pedro Alves <palves@redhat.com>
7526
7527 * thread.c (thread_apply_command): Adjust TID parsing.
7528 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7529 detected before end of string.
7530 (tid_is_in_list): Error out if LIST is invalid.
7531
7532 2019-06-13 Pedro Alves <palves@redhat.com>
7533
7534 * completer.c (complete_line_internal_1): Rewind completion word
7535 point.
7536 (completion_tracker::advance_custom_word_point_by): Change
7537 parameter type to int.
7538 * completer.h (completion_tracker::advance_custom_word_point_by):
7539 Likewise.
7540
7541 2019-06-13 Pedro Alves <palves@redhat.com>
7542
7543 * completer.c (advance_to_completion_word): Handle delimiters.
7544
7545 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7546
7547 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7548
7549 2019-06-11 Tom Tromey <tom@tromey.com>
7550
7551 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7552 (xmalloc_failed): Move to alloc.c.
7553 * alloc.c: New file.
7554 * Makefile.in (COMMON_SFILES): Add alloc.c.
7555
7556 2019-06-11 Tom Tromey <tom@tromey.com>
7557
7558 * nat/linux-waitpid.c: Don't include server.h.
7559 (linux_debug): Remove.
7560 (my_waitpid): Update.
7561
7562 2019-06-11 Tom Tromey <tromey@adacore.com>
7563
7564 * infcall.c (_initialize_infcall): Remove trailing newline from
7565 help.
7566 * user-regs.c (_initialize_user_regs): Remove trailing newline
7567 from help.
7568 * typeprint.c (_initialize_typeprint): Remove trailing newline
7569 from help.
7570 * reverse.c (_initialize_reverse): Remove trailing newlines from
7571 help.
7572 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7573 from help.
7574 * language.c (add_set_language_command): Remove trailing newline
7575 from help.
7576 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7577 help.
7578 * disasm.c (_initialize_disasm): Remove trailing newline from
7579 help.
7580 * top.c (init_main): Remove trailing newline from help.
7581 * interps.c (_initialize_interpreter): Remove trailing newline
7582 from help.
7583 * btrace.c (_initialize_btrace): Remove trailing newlines from
7584 help.
7585 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7586 from help.
7587 * python/python.c (_initialize_python): Remove trailing newline
7588 from help.
7589 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7590 help.
7591 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7592 from help. Reformat some text.
7593 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7594 from help.
7595 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7596 newline from help.
7597
7598 2019-06-11 Tom Tromey <tromey@adacore.com>
7599
7600 * darwin-nat.c (darwin_decode_exception_message)
7601 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7602
7603 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7604
7605 * valops.c (value_slice): Check for not allocated or not
7606 associated values.
7607
7608 2019-06-10 Tom de Vries <tdevries@suse.de>
7609
7610 PR gdb/24618
7611 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7612 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7613 invalid.
7614
7615 2019-06-10 Tom de Vries <tdevries@suse.de>
7616
7617 PR gdb/24611
7618 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7619 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7620
7621 2019-06-10 Tom de Vries <tdevries@suse.de>
7622
7623 PR symtab/24545
7624 * symtab.c (struct demangled_name_entry): Add language field.
7625 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7626 static minimal symbol". Set and use language field.
7627
7628 2019-06-10 Tom Tromey <tromey@adacore.com>
7629
7630 * ada-lang.c (_initialize_ada_language): Update help text.
7631
7632 2019-06-10 Tom Tromey <tromey@adacore.com>
7633
7634 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7635 with a newline.
7636 * guile/guile.c (handle_boot_error): Don't end warning with a
7637 newline.
7638 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7639 warning with a newline.
7640 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7641 newline.
7642 (s12z_frame_cache): Likewise.
7643 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7644 a newline.
7645 * solib-svr4.c (disable_probes_interface): Don't end warning with
7646 a newline.
7647 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7648 newline.
7649 * python/python.c (do_finish_initialization): Don't end warning
7650 with a newline.
7651
7652 2019-06-10 Tom Tromey <tom@tromey.com>
7653
7654 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7655 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7656 gdbpy_enter.
7657
7658 2019-06-10 Tom Tromey <tromey@adacore.com>
7659
7660 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7661 data.
7662 (elf_new_init): Don't call stabsread_new_init.
7663 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7664 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7665 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7666
7667 2019-06-10 Tom de Vries <tdevries@suse.de>
7668
7669 PR symtab/16264
7670 PR symtab/24517
7671 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7672
7673 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7674
7675 * source.c (find_and_open_source): Also rewrite relative file
7676 names.
7677
7678 2019-04-26 Amos Bird <amosbird@gmail.com>
7679
7680 * annotate.c (annotate_thread_exited): Add "thread-exited"
7681 annotation.
7682
7683 2019-06-06 Tom Tromey <tromey@adacore.com>
7684
7685 * maint.h (class scoped_command_stats): Use
7686 DISABLE_COPY_AND_ASSIGN.
7687 <print_time>: New method.
7688 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7689 print_time.
7690 (scoped_command_stats::print_time): New method.
7691
7692 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7695 instructions of lengths 6 or 8 bytes.
7696
7697 2019-06-04 Pedro Alves <palves@redhat.com>
7698
7699 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7700
7701 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7702 * breakpoint.c (condition_completer): Likewise.
7703 * cli/cli-dump.c (scan_expression): Likewise.
7704 * common/filestuff.c (mkdir_recursive): Likewise.
7705 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7706 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7707 (gdb_abspath): Likewise.
7708 * compile/compile-cplus-types.c
7709 (compile_cplus_instance::decl_name): Likewise.
7710 * completer.c (complete_explicit_location):
7711 (signal_completer, reg_or_group_completer_1): Likewise.
7712 * cp-support.c (cp_remove_params_if_any): Likewise.
7713 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7714 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7715 * infcmd.c (strip_bg_char): Likewise.
7716 * linespec.c (copy_token_string): Likewise.
7717 * mi/mi-main.c (output_cores): Likewise.
7718 * psymtab.c (psymtab_search_name):
7719 * symfile.c (test_set_ext_lang_command): Likewise.
7720 * target.c (target_fileio_read_stralloc): Likewise.
7721 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7722 * value.c (complete_internalvar): Likewise.
7723
7724 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7725
7726 Add objfile property to gdb.Type.
7727 * NEWS: Mention Python API addition.
7728 * python/py-type.c (typy_get_objfile): New method.
7729
7730 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7731
7732 * NEWS: Mention the new set|show style [title|highlight].
7733 Mention changes to "show style", "help" and "apropos".
7734
7735 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7736
7737 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7738 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7739 instead of print_help_for_command.
7740 (print_doc_of_command): New function.
7741 (help_list): Add 'apropos -v word' suggestion.
7742 (print_help_for_command): Style the command name using title style.
7743 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7744 (_initialize_cli_cmds): Describe -v in apropos_command help.
7745
7746 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7747
7748 * cli/cli-style.h (cli_style_option): Add name in constructor,
7749 add m_name class member, add constructor with intensity,
7750 add name class function.
7751 (cli_style_option::add_setshow_commands): Remove name argument.
7752 (highlight_style, title_style): New styles.
7753 * cli/cli-style.c (do_show): New function that shows a style
7754 characteristic styling the style name with itself.
7755 (set_style_name): New function.
7756 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7757 Update all callers according to the changes in cli/cli-style.h.
7758 * utils.h (fputs_highlighted): New function.
7759 * utils.c (fputs_highlighted): Likewise.
7760
7761 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7762
7763 * NEWS: Mention new pipe command and new convenience variables.
7764
7765 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7766
7767 * cli/cli-cmds.c (pipe_command): New function.
7768 (_initialize_cli_cmds): Call add_com for pipe_command.
7769 Define | as an alias for pipe.
7770 (exit_status_set_internal_vars): New function.
7771 (shell_escape): Call exit_status_set_internal_vars.
7772 cli/cli-decode.c (find_command_name_length): Recognize | as
7773 a single character command.
7774
7775 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7776
7777 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7778 top.c (execute_command_to_ui_file): New function, mostly a copy
7779 of execute_command_to_string.
7780 (execute_command_to_string): Implement by calling
7781 execute_command_to_ui_file.
7782
7783 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7784
7785 * top.h (saved_command_line): Remove declaration.
7786 * top.c (previous_saved_command_line, previous_repeat_arguments):
7787 New variables.
7788 (saved_command_line): Make static, define together with other
7789 'repeat variables'.
7790 (dont_repeat): Clear repeat_arguments.
7791 (repeat_previous, get_saved_command_line, save_command_line):
7792 New functions.
7793 (gdb_init): Initialize saved_command_line
7794 and previous_saved_command_line.
7795 * main.c (captured_main_1): Remove saved_command_line initialization.
7796 * event-top.c (handle_line_of_input): Update to use
7797 the new 'repeat' related functions instead of direct access to
7798 saved_command_line.
7799 * command.h (repeat_previous, get_saved_command_line,
7800 save_command_line): New declarations.
7801 (dont_repeat): Add comment.
7802
7803 2019-05-30 Tom Tromey <tromey@adacore.com>
7804
7805 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7806 Fix comment.
7807 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7808
7809 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7810
7811 PR cli/24587
7812 * completer.c (complete): Initialize variable word.
7813
7814 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7815
7816 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7817 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7818 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7819 'body' is NULL to the outter 'if', protecting the '!is_define'
7820 situation as well.
7821
7822 2019-05-29 Tom Tromey <tromey@adacore.com>
7823
7824 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7825 (dwarf_unknown): New function.
7826 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7827 (dwarf_type_encoding_name): Use dwarf_unknown.
7828
7829 2019-05-29 Tom Tromey <tromey@adacore.com>
7830
7831 PR c++/20020:
7832 * cp-valprint.c (cp_print_value_fields): Call
7833 cp_print_static_field inside "try".
7834
7835 2019-05-29 Tom Tromey <tromey@adacore.com>
7836
7837 * inflow.c (struct terminal_info): Add default operator=.
7838 * configure: Rebuild.
7839 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7840 -Wdeprecated-copy-dtor, -Wredundant-move.
7841
7842 2019-05-29 Tom Tromey <tromey@adacore.com>
7843
7844 * NEWS: Add entry.
7845 * infcmd.c (print_return_value_1): Handle finish_print
7846 option.
7847 (show_print_finish): New function.
7848 (_initialize_infcmd): Add "set/show print finish" commands.
7849 * valprint.c (user_print_options): Initialize new member.
7850 * valprint.h (struct value_print_options) <finish_print>: New
7851 member.
7852
7853 2019-05-28 Tom Tromey <tromey@adacore.com>
7854
7855 * ada-lang.c (ada_remove_Xbn_suffix)
7856 (find_old_style_renaming_symbol)
7857 (parse_old_style_renaming): Remove.
7858 (ada_find_renaming_symbol): Don't call
7859 find_old_style_renaming_symbol.
7860 (ada_is_renaming_symbol): Rename from
7861 ada_find_renaming_symbol. Remove "block" parameter. Return
7862 bool. Now static.
7863 (ada_read_var_value): Update and simplify.
7864 * ada-exp.y (write_var_or_type): Remove old code.
7865
7866 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7867
7868 PR gdb/25010
7869 * event-top.c: Remove include comment.
7870 * inflow.c (class scoped_ignore_sigttou): Move from here...
7871 * inflow.h (class scoped_ignore_sigttou): ...to here.
7872 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7873 * top.c: Remove include comment.
7874
7875 2019-05-27 Tom Tromey <tom@tromey.com>
7876
7877 * NEWS: Fix typo.
7878
7879 2019-05-22 Tom Tromey <tromey@adacore.com>
7880
7881 * target.c (target_follow_exec): Constify parameter.
7882 * target-delegates.c: Rebuild.
7883 * remote.c (remote_target::follow_exec): Constify parameter.
7884 * infrun.c (follow_exec): Constify parameter.
7885 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7886 (target_follow_exec): Likewise.
7887
7888 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7889
7890 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7891 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7892
7893 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7894
7895 * NEWS: Add debugredirect and testsuite sections.
7896
7897 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7898
7899 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7900 target descriptions using exclusively floating point register name
7901 aliases.
7902
7903 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7904
7905 PR gdb/18644:
7906 * f-lang.c (build_fortran_types): Handle the case where
7907 gdbarch_floatformat_for_type returns a nullptr.
7908
7909 2019-05-21 Tom de Vries <tdevries@suse.de>
7910
7911 PR cli/24587
7912 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7913
7914 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 PR gdb/18644:
7917 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7918 16-byte floats.
7919 * i386-tdep.c (i386_floatformat_for_type): Use
7920 floatformats_ia64_quad for the 16-byte floating point component
7921 within a fortran 32-byte complex number.
7922
7923 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7924
7925 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7926 delete default constructor.
7927 (find_partial_die): Update to return const struct.
7928 (partial_die_parent_scope): Move variable declaration into scope
7929 of its use and change its type to auto.
7930 (guess_partial_die_structure_name): Likewise.
7931 (partial_die_info::fixup): Likewise.
7932
7933 2019-05-17 Tom Tromey <tromey@adacore.com>
7934
7935 * source.c (find_and_open_source): Remove cast.
7936
7937 2019-05-17 Tom Tromey <tromey@adacore.com>
7938
7939 * annotate.c (annotate_source): Make "filename" const.
7940 * annotate.h (annotate_source): Use const.
7941
7942 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7943
7944 * disasm.c (set_disassembler_options): Send errors to stderr.
7945
7946 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7947
7948 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7949 (cli_interp_base::set_logging): Check debug_redirect.
7950 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7951 * cli/cli-logging.c (debug_redirect): Add static variable.
7952 (pop_output_files): Add default param.
7953 (handle_redirections): Print debug setting.
7954 (show_logging_command): Likewise.
7955 (_initialize_cli_logging): Add debugredirect command.
7956 * interps.c (current_interp_set_logging): Add debug_redirect
7957 parameter.
7958 * interps.h (set_logging): Add debug_redirect parameter.
7959 (current_interp_set_logging): Likewise.
7960 * mi/mi-common.h: Likewise.
7961 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7962
7963 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7964 Tom Tromey <tromey@adacore.com>
7965
7966 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7967 directly.
7968 * cli/cli-interp.h (make_logging_output): Remove declaration.
7969 * cli/cli-logging.c (make_logging_output): Remove function.
7970 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7971 directly.
7972 * ui-file.c (tee_file::tee_file): Remove bools.
7973 (tee_file::~tee_file): Remove deletes.
7974 * ui-file.h (tee_file): Remove bools.
7975
7976 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7977
7978 * mi/mi-cmds.h (mi_cmd_complete): New function.
7979 * mi/mi-main.c (mi_cmd_complete): Likewise.
7980 * mi/mi-cmds.c: Define new MI command -complete.
7981 * NEWS: Mention new -complete command.
7982
7983 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7984
7985 * completer.h (complete): New function.
7986 * completer.c (complete): Likewise.
7987 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7988 function defined in completer.h.
7989
7990 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7991
7992 * MAINTAINERS (Write After Approval): Add myself.
7993
7994 2019-05-17 Tom de Vries <tdevries@suse.de>
7995
7996 PR gdb/24094
7997 * dwarf2read.c (struct cu_partial_die_info): New struct.
7998 (find_partial_die): Return cu_partial_die_info.
7999 (partial_die_parent_scope, guess_partial_die_structure_name)
8000 (partial_die_info::fixup): Handle new return type of find_partial_die.
8001
8002 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8003
8004 PR breakpoints/24541
8005 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8006 "std::string", simplifying the algorithm.
8007
8008 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8009
8010 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8011 (stap_static_probe_ops::get_probes): Likewise.
8012
8013 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8014
8015 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8016 '-')" and "else if".
8017 (stap_parse_single_operand): Join checks for
8018 "gdbarch_stap_parse_special_token_p" and
8019 "gdbarch_stap_parse_special_token" in the same "if" statement.
8020 Invert check when verifying for operation on register
8021 displacement.
8022
8023 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8024
8025 * stap-probe.c (stap_get_opcode): Update comment.
8026 (stap_get_expected_argument_type): Likewise.
8027 (handle_stap_probe): Likewise.
8028
8029 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8030
8031 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8032 return type to 'bool'. Adjust comment. Use 'bool' when
8033 appropriate.
8034 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8035 * stap-probe.c (stap_parse_argument_1): Likewise.
8036 (stap_is_operator): Likewise.
8037 (stap_is_generic_prefix): Likewise.
8038 (stap_is_register_prefix): Likewise.
8039 (stap_is_register_indirection_prefix): Likewise.
8040 (stap_is_integer_prefix): Likewise.
8041 (stap_generic_check_suffix): Likewise.
8042 (stap_check_integer_suffix): Likewise.
8043 (stap_check_register_suffix): Likewise.
8044 (stap_check_register_indirection_suffix): Likewise.
8045 (stap_parse_register_operand): Likewise.
8046 (stap_parse_single_operand): Likewise.
8047 (stap_parse_argument_1): Likewise.
8048 (stap_probe::get_argument_count): Likewise.
8049 (stap_is_operator): Likewise.
8050
8051 2019-05-16 Tom Tromey <tromey@adacore.com>
8052
8053 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8054 keyword to foreach.
8055
8056 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * linux-thread-db.c (try_thread_db_load_1): Change return type
8059 to bool.
8060 (try_thread_db_load): Likewise.
8061 (try_thread_db_load_from_pdir_1): Likewise.
8062 (try_thread_db_load_from_pdir): Likewise.
8063 (try_thread_db_load_from_sdir): Likewise.
8064 (try_thread_db_load_from_dir): Likewise.
8065 (thread_db_load_search): Likewise.
8066 (has_libpthread): Likewise.
8067 (thread_db_load): Likewise.
8068
8069 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8070
8071 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8072 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8073 NULL, and complain/return if that's the case.
8074
8075 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8076
8077 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8078 (advance, posn, abstract_read_memory): New functions.
8079 [struct mem_read_abstraction]: New struct.
8080 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8081
8082 2019-05-14 Tom Tromey <tromey@adacore.com>
8083
8084 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8085 value is not lval_memory.
8086
8087 2019-05-14 Tom Tromey <tromey@adacore.com>
8088
8089 * solib.c (info_sharedlibrary_command): Style the file name.
8090
8091 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8092
8093 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8094 (aarch64_vnv_type): Likewise.
8095 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8096 * common/tdesc.c: Likewise.
8097 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8098 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8099 * features/aarch64-fpu.xml: Add ieee half view.
8100 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8101 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8102 * gdbtypes.h (struct builtin_type): Likewise.
8103 (struct objfile_type): Likewise.
8104
8105 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8106
8107 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8108 typo.
8109 * location.h (string_to_event_location): Likewise.
8110
8111 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8112
8113 GDB 8.3 released.
8114
8115 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8118 New variable declaration.
8119 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8120 New variable.
8121 (print_one_breakpoint): Use ui_out::test_flags and new global
8122 variable to compute use_fixed_output.
8123 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8124 Remove.
8125 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8126 (mi_multi_location_breakpoint_output_fixed): Remove.
8127 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8128 new variable.
8129 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8130 fix_multi_location_breakpoint_output flag if version >= 3.
8131 * ui-out.h (enum ui_out_flag)
8132 <fix_multi_location_breakpoint_output>: New enumerator.
8133
8134 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8137
8138 2019-05-10 Tom Tromey <tromey@adacore.com>
8139
8140 * ada-lang.c (catch_ada_completer): New function.
8141 (_initialize_ada_language): Use it.
8142
8143 2019-05-10 Tom Tromey <tromey@adacore.com>
8144
8145 * thread.c (print_thread_info): Make "requested_threads" const.
8146 * gdbthread.h (print_thread_info): Make "requested_threads"
8147 const.
8148 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8149 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8150
8151 2019-05-08 Tom Tromey <tom@tromey.com>
8152
8153 * gdbtypes.c (objfile_type_data): Change type.
8154 (objfile_type, _initialize_gdbtypes): Update.
8155
8156 2019-05-08 Tom Tromey <tom@tromey.com>
8157
8158 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8159 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8160 (_initialize_dwarf2_frame): Update.
8161
8162 2019-05-08 Tom Tromey <tom@tromey.com>
8163
8164 * objc-lang.c (objc_objfile_data): Change type.
8165 (find_methods): Update.
8166 (_initialize_objc_lang): Remove.
8167
8168 2019-05-08 Tom Tromey <tom@tromey.com>
8169
8170 * stabsread.c (rs6000_builtin_type_data): Change type.
8171 (rs6000_builtin_type, _initialize_stabsread): Update.
8172
8173 2019-05-08 Tom Tromey <tom@tromey.com>
8174
8175 * mips-tdep.c (mips_pdr_data): Remove.
8176 (_initialize_mips_tdep): Update.
8177
8178 2019-05-08 Tom Tromey <tom@tromey.com>
8179
8180 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8181 (hppa_init_objfile_priv_data, read_unwind_info)
8182 (find_unwind_entry, _initialize_hppa_tdep): Update.
8183
8184 2019-05-08 Tom Tromey <tom@tromey.com>
8185
8186 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8187 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8188 on obstack.
8189 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8190
8191 2019-05-08 Tom Tromey <tom@tromey.com>
8192
8193 * mdebugread.c (basic_type_data): Change type.
8194 (basic_type, _initialize_mdebugread): Update.
8195
8196 2019-05-08 Tom Tromey <tom@tromey.com>
8197
8198 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8199
8200 2019-05-08 Tom Tromey <tom@tromey.com>
8201
8202 * nto-tdep.c (nto_inferior_data_reg): Change type.
8203 (nto_inferior_data): Update.
8204 (nto_inferior_data_cleanup, nto_new_inferior_data)
8205 (_initialize_nto_tdep): Remove.
8206 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8207
8208 2019-05-08 Tom Tromey <tom@tromey.com>
8209
8210 * ada-lang.c (struct ada_inferior_data): Add initializers.
8211 (ada_inferior_data): Change type.
8212 (ada_inferior_data_cleanup): Remove.
8213 (get_ada_inferior_data, ada_inferior_exit)
8214 (struct ada_pspace_data): Add initializers, destructor.
8215 (ada_pspace_data_handle): Change type.
8216 (get_ada_pspace_data): Update.
8217 (ada_pspace_data_cleanup): Remove.
8218
8219 2019-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * coffread.c (struct coff_symfile_info): Add initializers.
8222 (coff_objfile_data_key): Move lower. Change type.
8223 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8224 Update.
8225 (coff_free_info): Remove.
8226
8227 2019-05-08 Tom Tromey <tom@tromey.com>
8228
8229 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8230 (fbsd_pspace_data_handle): Move lower. Change type.
8231 (get_fbsd_pspace_data): Update.
8232 (fbsd_pspace_data_cleanup): Remove.
8233 (_initialize_fbsd_tdep): Update.
8234
8235 2019-05-08 Tom Tromey <tom@tromey.com>
8236
8237 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8238 (get_ada_tasks_pspace_data): Update.
8239 (ada_tasks_pspace_data_cleanup): Remove.
8240 (_initialize_tasks): Update.
8241 (ada_tasks_inferior_data_handle): Change type.
8242 (get_ada_tasks_inferior_data): Update.
8243 (ada_tasks_inferior_data_cleanup): Remove.
8244 (struct ada_tasks_pspace_data): Add initializers.
8245
8246 2019-05-08 Tom Tromey <tom@tromey.com>
8247
8248 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8249 * symfile-debug.c (debug_sym_get_probes): Change type.
8250 * stap-probe.c (handle_stap_probe):
8251 (stap_static_probe_ops::get_probes): Change type.
8252 * probe.h (class static_probe_ops) <get_probes>: Change type.
8253 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8254 (parse_probes_in_pspace): Update.
8255 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8256 Update.
8257 (any_static_probe_ops::get_probes): Change type.
8258 * elfread.c (elfread_data): New typedef.
8259 (probe_key): Change type.
8260 (elf_get_probes): Likewise. Update.
8261 (probe_key_free): Remove.
8262 (_initialize_elfread): Update.
8263 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8264 Change type.
8265 (dtrace_process_dof_probe, dtrace_process_dof)
8266 (dtrace_static_probe_ops::get_probe): Change type.
8267
8268 2019-05-08 Tom Tromey <tom@tromey.com>
8269
8270 * xcoffread.c (struct xcoff_symfile_info): Rename from
8271 coff_symfile_info. Add initializers.
8272 (xcoff_objfile_data_key): Move lower. Change type.
8273 (XCOFF_DATA): Rewrite.
8274 (xcoff_free_info): Remove.
8275 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8276 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8277 (xcoff_initial_scan): Update.
8278
8279 2019-05-08 Tom Tromey <tom@tromey.com>
8280
8281 * solib-svr4.c (struct svr4_info): Add initializers and
8282 destructor.
8283 <probes_table>: Now an htab_up.
8284 (solib_svr4_pspace_data): Change type.
8285 (free_probes_table): Simplify.
8286 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8287 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8288 (probes_table_remove_objfile_probes, register_solib_event_probe)
8289 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8290 (_initialize_svr4_solib): Update.
8291
8292 2019-05-08 Tom Tromey <tom@tromey.com>
8293
8294 * remote.c (remote_pspace_data): Change type.
8295 (remote_pspace_data_cleanup): Remove.
8296 (get_remote_exec_file, set_pspace_remote_exec_file)
8297 (_initialize_remote): Update.
8298
8299 2019-05-08 Tom Tromey <tom@tromey.com>
8300
8301 * breakpoint.c (breakpoint_objfile_key): Change type.
8302 (get_breakpoint_objfile_data): Update.
8303 (free_breakpoint_objfile_data): Remove.
8304 (_initialize_breakpoint): Update.
8305
8306 2019-05-08 Tom Tromey <tom@tromey.com>
8307
8308 * linux-tdep.c (struct linux_info): Add initializers.
8309 (linux_inferior_data): Move. Change type.
8310 (invalidate_linux_cache_inf): Update.
8311 (linux_inferior_data_cleanup): Remove.
8312 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8313
8314 2019-05-08 Tom Tromey <tom@tromey.com>
8315
8316 * auxv.c (auxv_inferior_data): Move. Change type.
8317 (auxv_inferior_data_cleanup): Remove.
8318 (invalidate_auxv_cache_inf): Rewrite.
8319 (get_auxv_inferior_data, _initialize_auxv): Update.
8320
8321 2019-05-08 Tom Tromey <tom@tromey.com>
8322
8323 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8324 (symfile_debug_objfile_data_key): Change type.
8325 (symfile_debug_installed, debug_qf_has_symbols)
8326 (debug_qf_find_last_source_symtab)
8327 (debug_qf_forget_cached_source_info)
8328 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8329 (debug_qf_print_stats, debug_qf_dump)
8330 (debug_qf_expand_symtabs_for_function)
8331 (debug_qf_expand_all_symtabs)
8332 (debug_qf_expand_symtabs_with_fullname)
8333 (debug_qf_map_matching_symbols)
8334 (debug_qf_expand_symtabs_matching)
8335 (debug_qf_find_pc_sect_compunit_symtab)
8336 (debug_qf_map_symbol_filenames)
8337 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8338 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8339 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8340 (debug_sym_read_linetable, debug_sym_relocate): Update.
8341 (symfile_debug_free_objfile): Remove.
8342 (install_symfile_debug_logging, _initialize_symfile_debug):
8343 Update.
8344
8345 2019-05-08 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8348 allocate_on_obstack.
8349 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8350 (get_dwarf2_per_objfile): Update.
8351 (set_dwarf2_per_objfile): Remove.
8352 (dwarf2_has_info, dwarf2_get_section_info): Update.
8353 (dwarf2_free_objfile): Remove.
8354 (_initialize_dwarf2_read): Update.
8355
8356 2019-05-08 Tom Tromey <tom@tromey.com>
8357
8358 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8359 initializers.
8360 <unsupported_script_warning_printed,
8361 script_not_found_warning_printed>: Now bool.
8362 (auto_load_pspace_data): Change type.
8363 (~auto_load_pspace_info): Rename from
8364 auto_load_pspace_data_cleanup.
8365 (get_auto_load_pspace_data, init_loaded_scripts_info)
8366 (clear_section_scripts, maybe_print_unsupported_script_warning)
8367 (maybe_print_script_not_found_warning, _initialize_auto_load):
8368 Update.
8369
8370 2019-05-08 Tom Tromey <tom@tromey.com>
8371
8372 * objfiles.c (objfile_pspace_info): Add destructor and
8373 initializers.
8374 (objfiles_pspace_data): Change type.
8375 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8376 (get_objfile_pspace_data): Update.
8377 (objfiles_bfd_data): Change type.
8378 (get_objfile_bfd_data): Update.
8379 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8380
8381 2019-05-08 Tom Tromey <tom@tromey.com>
8382
8383 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8384 Change type.
8385 (get_catch_syscall_inferior_data): Update.
8386 (catch_syscall_inferior_data_cleanup): Remove.
8387 (_initialize_break_catch_syscall): Update.
8388
8389 2019-05-08 Tom Tromey <tom@tromey.com>
8390
8391 * inflow.c (struct terminal_info): Add destructor and
8392 initializers.
8393 (inflow_inferior_data): Change type.
8394 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8395 (get_inflow_inferior_data, inflow_inferior_exit)
8396 (swap_terminal_info, _initialize_inflow): Update.
8397
8398 2019-05-08 Tom Tromey <tom@tromey.com>
8399
8400 * target-dcache.c (target_dcache_cleanup): Remove.
8401 (target_dcache_aspace_key): Change type.
8402 (target_dcache_init_p, target_dcache_invalidate)
8403 (target_dcache_get, target_dcache_get_or_init)
8404 (_initialize_target_dcache): Update.
8405 * dcache.h (struct dcache_deleter): New.
8406
8407 2019-05-08 Tom Tromey <tom@tromey.com>
8408
8409 * symtab.c (struct symbol_cache): Add destructor and
8410 initializers.
8411 (symbol_cache_key): Move. Change type.
8412 (make_symbol_cache, free_symbol_cache): Remove.
8413 (get_symbol_cache): Update.
8414 (symbol_cache_cleanup): Remove.
8415 (ALL_PSPACES, symbol_cache_flush)
8416 (maintenance_print_symbol_cache)
8417 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8418 Update.
8419
8420 2019-05-08 Tom Tromey <tom@tromey.com>
8421
8422 * symtab.c (struct main_info): Add destructor and initializers.
8423 (main_progspace_key): Move. Change type.
8424 (get_main_info): Update.
8425 (main_info_cleanup): Remove.
8426 (_initialize_symtab): Update.
8427
8428 2019-05-08 Tom Tromey <tom@tromey.com>
8429
8430 * registry.h (DECLARE_REGISTRY): Define the _key class.
8431
8432 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8433
8434 * NEWS: Merge two 'New commands' sections.
8435
8436 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8437
8438 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8439 parameter and use Ada language definition instead.
8440 (ada_val_print_ptr): Remove unused language parameter.
8441 (ada_val_print_num): Remove language parameter and use Ada language
8442 definition instead.
8443 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8444 parameter.
8445 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8446 parameter and use Ada language definition instead.
8447 (ada_val_print_1): Update all ada_val_print_xxx calls.
8448 Remove language parameter.
8449 (ada_val_print): Update ada_val_print_1 call.
8450
8451 2019-05-08 Tom Tromey <tromey@adacore.com>
8452
8453 * remote.c (remote_hw_watchpoint_limit)
8454 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8455 Now static.
8456
8457 2019-05-08 Tom Tromey <tromey@adacore.com>
8458
8459 * maint.c (_initialize_maint_cmds): Move initialization code to
8460 remote.c.
8461 (watchdog, show_watchdog): Move to remote.c.
8462 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8463 "watchdog" static.
8464 (_initialize_remote): Move initialization code from maint.c.
8465 * defs.h (watchdog): Don't declare.
8466
8467 2019-05-08 Tom Tromey <tromey@adacore.com>
8468
8469 * tui/tui-interp.c: Include main.h.
8470 * interps.c: Include main.h.
8471 * main.h (interpreter_p): Declare.
8472 * defs.h (interpreter_p): Don't declare.
8473
8474 2019-05-08 Tom Tromey <tromey@adacore.com>
8475
8476 * dwarf2loc.c: Include dwarf2read.h.
8477 * defs.h (read_unsigned_leb128): Don't declare.
8478 * dwarf2read.h (read_unsigned_leb128): Declare.
8479
8480 2019-05-08 Tom Tromey <tromey@adacore.com>
8481
8482 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8483 method.
8484
8485 2019-05-08 Tom Tromey <tromey@adacore.com>
8486
8487 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8488 when no wrap column is set.
8489
8490 2019-05-08 Tom Tromey <tromey@adacore.com>
8491
8492 * c-lang.c (c_get_string): Handle non-C-style arrays.
8493
8494 2019-05-08 Tom Tromey <tromey@adacore.com>
8495
8496 * typeprint.c (print_offset_data::update): Print the bit offset,
8497 not the number of bits remaining.
8498
8499 2019-05-08 Tom Tromey <tromey@adacore.com>
8500
8501 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8502 padding at end of comment.
8503
8504 2019-05-08 Tom Tromey <tromey@adacore.com>
8505
8506 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8507 Compare main types.
8508
8509 2019-05-06 Tom Tromey <tom@tromey.com>
8510
8511 * common/scoped_mmap.c: Include common-defs.h.
8512 * common/scoped_mmap.h: Don't include config.h.
8513
8514 2019-05-04 Tom Tromey <tom@tromey.com>
8515
8516 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8517 (struct aarch64_call_info): Add initializers.
8518 <si>: Now a std::vector.
8519 (pass_on_stack, aarch64_push_dummy_call): Update.
8520
8521 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8522 Tom Tromey <tom@tromey.com>
8523
8524 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8525 (ppc_threads): Now a std::vector. Now static.
8526 (hwdebug_find_thread_points_by_tid)
8527 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8528 Update.
8529
8530 2019-05-04 Tom Tromey <tom@tromey.com>
8531
8532 * arc-tdep.c (arc_tdesc_init): Return bool.
8533
8534 2019-05-04 Tom Tromey <tom@tromey.com>
8535
8536 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8537 Use gdb_assert_not_reached.
8538
8539 2019-05-04 Tom Tromey <tom@tromey.com>
8540
8541 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8542 "false".
8543
8544 2019-05-04 Tom Tromey <tom@tromey.com>
8545
8546 * arc-tdep.c (arc_tdesc_init): Use bool.
8547
8548 2019-05-04 Tom Tromey <tom@tromey.com>
8549
8550 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8551
8552 2019-05-04 Tom Tromey <tom@tromey.com>
8553
8554 * cli/cli-cmds.c (valid_command_p): Return bool.
8555
8556 2019-05-04 Tom Tromey <tom@tromey.com>
8557
8558 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8559 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8560
8561 2019-05-04 Raul Tambre <raul@tambre.ee>
8562
8563 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8564 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8565 operator for comparison.
8566
8567 2019-05-04 Tom Tromey <tom@tromey.com>
8568
8569 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8570 (lookup_partial_symbol, print_partial_symbols)
8571 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8572 (psymbol_compare): Update.
8573 (add_psymbol_to_bcache): Clear the entire psymbol.
8574 (maintenance_check_psymtabs): Update.
8575 * psympriv.h (struct partial_symbol): Don't derive from
8576 general_symbol_info.
8577 <obj_section, unrelocated_address, address,
8578 set_unrelocated_address>: Update.
8579 <ginfo>: New member.
8580 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8581 (debug_names::write_psymbols): Update.
8582
8583 2019-05-04 Tom de Vries <tdevries@suse.de>
8584
8585 * contrib/cc-with-tweaks.sh: Support -n arg.
8586
8587 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8588
8589 * corelow.c (core_target::detach): Ensure frame cache and
8590 register caches are cleared.
8591 inferior.c (exit_inferior_1): Likewise.
8592
8593 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8594 Tom Tromey <tom@tromey.com>
8595
8596 * dictionary.c (collate_pending_symbols_by_language): Remove
8597 "struct" from foreach.
8598 * symtab.c (lookup_global_symbol_from_objfile)
8599 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8600 foreach.
8601 * ser-tcp.c (net_open): Remove "struct" from foreach.
8602 * objfiles.c (objfile_relocate, objfile_rebase)
8603 (objfile_has_symbols): Remove "struct" from foreach.
8604 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8605 from foreach.
8606 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8607 foreach.
8608 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8609 "struct" from foreach.
8610 * ada-lang.c (create_excep_cond_exprs)
8611 (ada_exception_catchpoint_cond_string): Remove "struct" from
8612 foreach.
8613
8614 2019-05-03 Tom Tromey <tromey@adacore.com>
8615
8616 * ada-exp.y (convert_char_literal): Check suffix of each
8617 enumerator.
8618
8619 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8620
8621 PR ada/21406:
8622 * ada-exp.y (yywrap): Don't define.
8623 * ada-lex.l (%option): Add noyywrap
8624 (yywrap): Remove.
8625
8626 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8627
8628 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8629 _WIN32_WINNT to the XP level, unless already defined to a higher
8630 level.
8631
8632 * unittests/parse-connection-spec-selftests.c:
8633 * ser-tcp.c:
8634 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8635 override.
8636
8637 * symfile.c (find_separate_debug_file): Remove colon from the
8638 drive spec of DOS/Windows file names of the target, so that the
8639 file name produced from DEBUGDIR and the target's directory will
8640 be valid on DOS/Windows systems.
8641
8642 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * rust-lang.c (val_print_struct): Handle printing structures
8645 containing strings.
8646
8647 2019-05-02 Tom Tromey <tromey@adacore.com>
8648
8649 * valarith.c (_initialize_valarith): Remove.
8650
8651 2019-05-01 Tom Tromey <tromey@adacore.com>
8652
8653 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8654 bitfields.
8655
8656 2019-05-01 Tom Tromey <tromey@adacore.com>
8657
8658 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8659 for big-endian copies.
8660
8661 2019-04-30 Ali Tamur <tamur@google.com>
8662 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8663 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8664 (read_3_bytes): New function.
8665
8666 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8667
8668 * windows-nat.c (main_thread_id): Delete.
8669 (handle_output_debug_string): Replace main_thread_id by
8670 current_event.dwThreadId.
8671 (fake_create_process): Likewise.
8672 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8673 Do not set main_thread_id.
8674 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8675 current_event.dwThreadId.
8676 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8677
8678 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8679
8680 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8681 Use current_event.dwThreadId instead of main_thread_id.
8682
8683 2019-04-30 Tom Tromey <tromey@adacore.com>
8684
8685 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8686 (create_excep_cond_exprs): Iterate over program spaces.
8687 (ada_exception_catchpoint_cond_string): Examine all minimal
8688 symbols for exception types.
8689
8690 2019-04-30 Tom Tromey <tromey@adacore.com>
8691
8692 PR c++/24470:
8693 * dwarf2read.c (process_structure_scope): Handle case where type
8694 has template parameters but no symbol was created.
8695
8696 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8697 Chris January <chris.january@arm.com>
8698
8699 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8700 qualifier.
8701 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8702
8703 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * f-typeprint.c (f_print_type): Update rules for printing
8706 whitespace.
8707 (f_type_print_varspec_suffix): Likewise.
8708
8709 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8710 Chris January <chris.january@arm.com>
8711
8712 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8713 function arguments.
8714
8715 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8716
8717 * f-lang.c (build_fortran_types): Change name of void type to
8718 lower case.
8719 * f-typeprint.c (f_type_print_base): Print the name of the void
8720 type, rather than a fixed string.
8721 * f-valprint.c (f_decorations): Use lower case void string.
8722
8723 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8724 Chris January <chris.january@arm.com>
8725
8726 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8727 types for Fortran.
8728
8729 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8730 Chris January <chris.january@arm.com>
8731 David Lecomber <david.lecomber@arm.com>
8732
8733 * f-exp.y (BINOP_INTRINSIC): New token.
8734 (exp): New parser rule handling BINOP_INTRINSIC.
8735 (f77_keywords): Add new builtin procedures.
8736 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8737 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8738 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8739 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8740 (print_unop_subexp_f): New function.
8741 (print_binop_subexp_f): New function.
8742 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8743 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8744 (dump_subexp_body_f): Likewise.
8745 (operator_check_f): Likewise.
8746 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8747 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8748
8749 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8752 UNOP_KIND.
8753 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8754 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8755 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8756 (operator_length_f): New fuction.
8757 (print_subexp_f): New function.
8758 (op_name_f): New function.
8759 (dump_subexp_body_f): New function.
8760 (operator_check_f): New function.
8761 (exp_descriptor_f): Replace standard expression handling functions
8762 with new functions.
8763 * gdb/fortran-operator.def: New file.
8764 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8765 * gdb/std-operator.def: Remove UNOP_KIND.
8766
8767 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * std-operator.def: Remove unbalanced, stray double quote
8770 character.
8771
8772 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8773 Chris January <chris.january@arm.com>
8774 Daniel Everett <daniel.everett@arm.com>
8775 Nick Forrington <nick.forrington@arm.com>
8776 Richard Bunt <richard.bunt@arm.com>
8777
8778 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8779 of depth when printing anonymous structs or unions.
8780 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8781 Don't print either the top-level value, or the children if the
8782 max-depth is exceeded.
8783 (ppscm_print_children): When printing the key of a map, allow one
8784 extra level of depth.
8785 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8786 print either the top-level value, or the children if the max-depth
8787 is exceeded.
8788 (print_children): When printing the key of a map, allow one extra
8789 level of depth.
8790 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8791 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8792 (user_print_options): Initialise max_depth field.
8793 (val_print_scalar_or_string_type_p): New function.
8794 (val_print): Check to see if the max depth has been reached.
8795 (val_print_check_max_depth): Define new function.
8796 (show_print_max_depth): New function.
8797 (_initialize_valprint): Add 'print max-depth' option.
8798 * valprint.h (struct value_print_options) <max_depth>: New field.
8799 (val_print_check_max_depth): Declare new function.
8800 * NEWS: Document new feature.
8801
8802 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8803
8804 * ada-lang.c (ada_language_defn): Initialise new field.
8805 * c-lang.c (c_is_string_type_p): New function.
8806 (c_language_defn): Initialise new field.
8807 (cplus_language_defn): Initialise new field.
8808 (asm_language_defn): Initialise new field.
8809 (minimal_language_defn): Initialise new field.
8810 * c-lang.h (c_is_string_type_p): Declare new function.
8811 * d-lang.c (d_language_defn): Initialise new field.
8812 * f-lang.c (f_is_string_type_p): New function.
8813 (f_language_defn): Initialise new field.
8814 * go-lang.c (go_is_string_type_p): New function.
8815 (go_language_defn): Initialise new field.
8816 * language.c (default_is_string_type_p): New function.
8817 (unknown_language_defn): Initialise new field.
8818 (auto_language_defn): Initialise new field.
8819 * language.h (struct language_defn) <la_is_string_type_p>: New
8820 member variable.
8821 (default_is_string_type_p): Declare new function.
8822 * m2-lang.c (m2_language_defn): Initialise new field.
8823 * objc-lang.c (objc_language_defn): Initialise new field.
8824 * opencl-lang.c (opencl_language_defn): Initialise new field.
8825 * p-lang.c (pascal_is_string_type_p): New function.
8826 (pascal_language_defn): Initialise new field.
8827 * rust-lang.c (rust_is_string_type_p): New function.
8828 (rust_language_defn): Initialise new field.
8829
8830 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8831
8832 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8833 New field.
8834 * ada-lang.c (ada_language_defn): Initialise new field.
8835 * c-lang.c (c_language_defn): Likewise.
8836 (cplus_language_defn): Likewise.
8837 (asm_language_defn): Likewise.
8838 (minimal_language_defn): Likewise.
8839 * d-lang.c (d_language_defn): Likewise.
8840 * f-lang.c (f_language_defn): Likewise.
8841 * go-lang.c (go_language_defn): Likewise.
8842 * language.c (unknown_language_defn): Likewise.
8843 (auto_language_defn): Likewise.
8844 * m2-lang.c (m2_language_defn): Likewise.
8845 * objc-lang.c (objc_language_defn): Likewise.
8846 * opencl-lang.c (opencl_language_defn): Likewise.
8847 * p-lang.c (pascal_language_defn): Likewise.
8848 * rust-lang.c (rust_language_defn): Likewise.
8849
8850 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * ada-lang.c (ada_is_character_type): Change return type to bool.
8853 (ada_is_string_type): Likewise.
8854 * ada-lang.h (ada_is_character_type): Update declaration
8855 (ada_is_string_type): Likewise.
8856
8857 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8858
8859 Support style in 'frame|thread apply'
8860
8861 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8862 * record.c (record_start, record_stop): Update callers of
8863 execute_command_to_string with false.
8864 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8865 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8866 methods.
8867 (class string_file): New constructor with term_out parameter.
8868 Override methods term_out and can_emit_style_escape. New member
8869 term_out.
8870 (class stdio_file): Override can_emit_style_escape.
8871 (class tee_file): Override term_out and can_emit_style_escape.
8872 * utils.h (can_emit_style_escape): Remove.
8873 * utils.c (can_emit_style_escape): Likewise.
8874 Update all callers of can_emit_style_escape (SOMESTREAM) to
8875 SOMESTREAM->can_emit_style_escape.
8876 * source-cache.c (source_cache::get_source_lines): Likewise.
8877 * stack.c (frame_apply_command_count): Call execute_command_to_string
8878 passing the term_out characteristic of the current gdb_stdout.
8879 * thread.c (thr_try_catch_cmd): Likewise.
8880 * top.c (execute_command_to_string): pass term_out parameter
8881 to construct the string_file for the command output.
8882 * ui-file.c (term_cli_styling): New function (most code moved
8883 from utils.c can_emit_style_escape).
8884 (string_file::string_file, string_file::can_emit_style_escape,
8885 stdio_file::can_emit_style_escape, tee_file::term_out,
8886 tee_file::can_emit_style_escape): New functions.
8887
8888 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8889
8890 * NEWS: Mention the new set|show may-call-functions.
8891 * infcall.c (may_call_functions_p): New variable.
8892 (show_may_call_functions_p): New function.
8893 (call_function_by_hand_dummy): Throws an error if not
8894 may-call-functions.
8895 (_initialize_infcall): Call add_setshow_boolean_cmd for
8896 may-call-functions.
8897
8898 2019-04-25 Keith Seitz <keiths@redhat.com>
8899
8900 PR c++/24367
8901 * cp-support.c (inspect_type): Don't attempt substitutions
8902 of symbol with the same name.
8903
8904 2019-04-25 Tom Tromey <tromey@adacore.com>
8905
8906 PR gdb/24475:
8907 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8908 static.
8909
8910 2019-04-25 Tom Tromey <tromey@adacore.com>
8911
8912 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8913 rvalue reference.
8914 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8915 (gdb_xml_parser::parse): Use std::move.
8916 * python/python-internal.h (gdbpy_convert_exception): Take a const
8917 reference.
8918 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8919 std::move.
8920 * python/py-utils.c (gdbpy_convert_exception): Take a const
8921 reference.
8922 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8923 Use std::move.
8924 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8925 Use std::move.
8926 * mi/mi-main.c (mi_print_exception): Take a const reference.
8927 * main.c (handle_command_errors): Take a const reference.
8928 * linespec.c (parse_linespec): Use std::move.
8929 * infcall.c (run_inferior_call): Use std::move.
8930 (call_function_by_hand_dummy): Use std::move.
8931 * exec.c (try_open_exec_file): Use std::move.
8932 * exceptions.h (exception_print, exception_fprintf)
8933 (exception_print_same): Update.
8934 * exceptions.c (print_exception, exception_print)
8935 (exception_fprintf, exception_print_same): Change parameters to
8936 const reference.
8937 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8938 * common/new-op.c: Use std::move.
8939 * common/common-exceptions.h (struct gdb_exception): Add move
8940 constructor.
8941 (struct gdb_exception_error, struct gdb_exception_quit, struct
8942 gdb_quit_bad_alloc): Change constructor to move constructor.
8943 (throw_exception): Change parameter to rvalue reference.
8944 * common/common-exceptions.c (throw_exception): Take rvalue
8945 reference.
8946 * cli/cli-interp.c (safe_execute_command): Use std::move.
8947 * breakpoint.c (insert_bp_location, location_to_sals): Use
8948 std::move.
8949
8950 2019-04-25 Tom Tromey <tromey@adacore.com>
8951
8952 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8953 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8954 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8955 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8956 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8957 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8958 guile/scm-value.c: Use unpack.
8959 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8960 gdbscm_gdb_exception.
8961 (gdbscm_throw_gdb_exception): Likewise.
8962 (struct gdbscm_gdb_exception): New.
8963 (unpack): New function.
8964 (gdbscm_wrap): Use unpack.
8965
8966 2019-04-25 Tom Tromey <tromey@adacore.com>
8967
8968 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8969 (gdb_rl_callback_handler): Use std::move.
8970 * common/common-exceptions.h (struct gdb_exception): Add move
8971 assignment operator.
8972 (throw_exception_sjlj): Change "exception" to const reference.
8973 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8974 (throw_exception_sjlj): Change "exception" to const reference.
8975
8976 2019-04-25 Tom Tromey <tromey@adacore.com>
8977
8978 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8979 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8980 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8981 Update.
8982 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8983 Update.
8984 * mi/mi-interp.c (mi_interp::exec): Update.
8985 * linespec.c (parse_linespec): Update.
8986 * infcall.c (run_inferior_call): Update.
8987 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8988 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8989 (gdbscm_lookup_global_symbol): Update.
8990 * guile/scm-param.c (gdbscm_parameter_value): Update.
8991 * guile/scm-frame.c (gdbscm_frame_read_register)
8992 (gdbscm_frame_read_var): Update.
8993 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8994 * exec.c (try_open_exec_file): Update.
8995 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8996 (gdb_rl_callback_handler): Update.
8997 * common/common-exceptions.h (exception_none): Don't declare.
8998 * common/common-exceptions.c (exception_none): Don't define.
8999 (struct catcher) <exception>: Update.
9000 * cli/cli-interp.c (safe_execute_command): Update.
9001 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9002
9003 2019-04-25 Ali Tamur <tamur@google.com>
9004
9005 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9006 (read_attribute_value): Likewise.
9007 (dwarf2_read_addr_index): Update comment.
9008 (read_str_index): Add DW_FORM_strx.
9009 (dwarf2_string_attr): Likewise.
9010 (dwarf2_const_value_attr): Likewise.
9011 (dump_die_shallow): Likewise.
9012 (dwarf2_fetch_constant_bytes): Likewise.
9013 (skip_form_bytes): Likewise.
9014 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9015
9016 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9017
9018 PR corefiles/11608
9019 PR corefiles/18187
9020 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9021 OFFSET. Verify if current mapping contains an ELF header.
9022 (linux_find_memory_regions_full): Adjust call to
9023 dump_mapping_p.
9024
9025 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9026 Kang Li <kanglictf@gmail.com>
9027
9028 PR gdb/21600
9029
9030 * dwarf2-frame.c (read_initial_length): Be consistent about using
9031 unsigned representation of length.
9032 (decode_frame_entry_1): Likewise. Check for wraparound of
9033 end pointer as well as buffer overflow.
9034
9035 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9036
9037 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9038 "vq".
9039
9040 2019-04-24 Tom Tromey <tromey@adacore.com>
9041
9042 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9043
9044 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9045
9046 * s12z-tdep.c (s12z_unwind_pc): Delete.
9047 (s12z_unwind_sp): Delete.
9048 (s12z_gdbarch_init): Don't register deleted functions with
9049 gdbarch.
9050
9051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * rl78-tdep.c (rl78_unwind_sp): Delete.
9054 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9055
9056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9059 (xstormy16_unwind_pc): Delete.
9060 (xstormy16_dummy_id): Delete.
9061 (xstormy16_gdbarch_init): Don't register deleted functions with
9062 gdbarch.
9063
9064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * vax-tdep.c (vax_unwind_pc): Delete.
9067 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9068
9069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * v850-tdep.c (v850_unwind_sp): Delete.
9072 (v850_unwind_pc): Delete.
9073 (v850_dummy_id): Delete.
9074 (v850_gdbarch_init): Don't register deleted functions with
9075 gdbarch.
9076
9077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9080 (tilegx_unwind_pc): Delete.
9081 (tilegx_unwind_dummy_id): Delete.
9082 (tilegx_gdbarch_init): Don't register deleted functions with
9083 gdbarch.
9084
9085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9086
9087 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9088 (tic6x_dummy_id): Delete.
9089 (tic6x_gdbarch_init): Don't register deleted functions with
9090 gdbarch.
9091
9092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * sparc-tdep.c (sparc_unwind_pc): Delete.
9095 (sparc32_gdbarch_init): Don't register deleted function with
9096 gdbarch.
9097
9098 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9099
9100 * sh-tdep.c (sh_unwind_sp): Delete.
9101 (sh_unwind_pc): Delete.
9102 (sh_dummy_id): Delete.
9103 (sh_gdbarch_init): Don't register deleted functions with
9104 gdbarch.
9105
9106 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9107
9108 * score-tdep.c (score_unwind_sp): Delete.
9109 (score_unwind_pc): Delete.
9110 (score_dummy_id): Delete.
9111 (score_gdbarch_init): Don't register deleted functions with
9112 gdbarch.
9113
9114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * rx-tdep.c (rx_unwind_pc): Delete.
9117 (rx_unwind_sp): Delete.
9118 (rx_dummy_id): Delete.
9119 (rx_gdbarch_init): Don't register deleted functions with
9120 gdbarch. Update comment.
9121
9122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9125 (rs6000_dummy_id): Delete.
9126 (rs6000_gdbarch_init): Don't register deleted functions with
9127 gdbarch.
9128
9129 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9130
9131 * or1k-tdep.c (or1k_dummy_id): Delete.
9132 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9133
9134 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9135
9136 * nios2-tdep.c (nios2_dummy_id): Delete.
9137 (nios2_unwind_sp): Delete.
9138 (nios2_gdbarch_init): Don't register deleted functions with
9139 gdbarch.
9140
9141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * nds32-tdep.c (nds32_dummy_id): Delete.
9144 (nds32_unwind_pc): Delete.
9145 (nds32_unwind_sp): Delete.
9146 (nds32_gdbarch_init): Don't register deleted functions with
9147 gdbarch.
9148
9149 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * msp430-tdep.c (msp430_unwind_pc): Delete.
9152 (msp430_unwind_sp): Delete.
9153 (msp430_dummy_id): Delete.
9154 (msp430_gdbarch_init): Don't register deleted functions with
9155 gdbarch.
9156
9157 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * moxie-tdep.c (moxie_unwind_sp): Delete.
9160 (moxie_unwind_pc): Delete.
9161 (moxie_dummy_id): Delete.
9162 (moxie_gdbarch_init): Don't register deleted functions with
9163 gdbarch.
9164
9165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9166
9167 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9168 (mn10300_unwind_pc): Delete.
9169 (mn10300_unwind_sp): Delete.
9170 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9171 mn10300_unwind_sp.
9172 (mn10300_frame_unwind_init): Don't register deleted functions with
9173 gdbarch.
9174
9175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * mep-tdep.c (mep_unwind_pc): Delete.
9178 (mep_unwind_sp): Delete.
9179 (mep_dummy_id): Delete.
9180 (mep_gdbarch_init): Don't register deleted functions with
9181 gdbarch.
9182
9183 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9186 (m68hc11_unwind_sp): Delete.
9187 (m68hc11_gdbarch_init): Don't register deleted functions with
9188 gdbarch.
9189
9190 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9191
9192 * m32r-tdep.c (m32r_unwind_sp): Delete.
9193 (m32r_unwind_pc): Delete.
9194 (m32r_dummy_id): Delete.
9195 (m32r_gdbarch_init): Don't register deleted functions with
9196 gdbarch.
9197
9198 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9199
9200 * m32c-tdep.c (m32c_unwind_pc): Delete.
9201 (m32c_unwind_sp): Delete.
9202 (m32c_dummy_id): Delete.
9203 (m32c_gdbarch_init): Don't register deleted functions with
9204 gdbarch.
9205
9206 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9207
9208 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9209 (lm32_unwind_pc): Delete.
9210 (lm32_dummy_id): Delete.
9211 (lm32_gdbarch_init): Don't register deleted functions with
9212 gdbarch.
9213
9214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9215
9216 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9217 (iq2000_unwind_pc): Delete.
9218 (iq2000_dummy_id): Delete.
9219 (iq2000_gdbarch_init): Don't register deleted functions with
9220 gdbarch.
9221
9222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 * nds32-tdep.c (nds32_type_align): Delete.
9225 (nds32_push_dummy_call): Use type_align instead.
9226
9227 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9228
9229 * arm-tdep.c (arm_type_align): Only handle vector override case.
9230 (arm_push_dummy_call): Use type_align.
9231 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9232
9233 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9234
9235 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9236 case.
9237 (pass_on_stack): Use type_align.
9238 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9239 function.
9240
9241 2019-04-23 Tom Tromey <tromey@adacore.com>
9242
9243 * dwarf2read.c (line_header::file_name_at): Remove unused
9244 overload.
9245
9246 2019-04-23 Tom de Vries <tdevries@suse.de>
9247
9248 PR gdb/24438
9249 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9250 invocation.
9251
9252
9253 2019-03-27 Ali Tamur <tamur@google.com>
9254
9255 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9256 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9257 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9258 (dwarf_expr_context::get_addr_index): Likewise
9259 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9260 (symbol_needs_eval_context::get_addr_index): Likewise
9261 (disassemble_dwarf_expression): Add DW_OP_addrx
9262 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9263 (read_cutu_die_from_dwo): Update comment
9264 (skip_one_die): Add DW_FORM_addrx
9265 (read_attribute_value): Likewise
9266 (var_decode_location): Add DW_OP_addrx
9267 (dwarf2_const_value_attr): Add DW_FORM_addrx
9268 (dump_die_shallow): Likewise
9269 (dwarf2_fetch_constant_bytes): Likewise
9270 (decode_locdesc): Add DW_OP_addrx
9271 (skip_form_bytes): Add DW_FORM_addrx
9272
9273 2019-04-22 Ali Tamur <tamur@google.com>
9274
9275 * MAINTAINERS (Write After Approval): Add self.
9276
9277 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9280 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9281 (open_symbol_file_object): Likewise.
9282 (svr4_default_sos): Add info parameter.
9283 (svr4_read_so_list): Likewise.
9284 (svr4_current_sos_direct): Adjust functions calls to pass down
9285 info.
9286 (svr4_current_sos_1): Add info parameter.
9287 (svr4_current_sos): Call get_svr4_info, pass info down to
9288 svr4_current_sos_1.
9289 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9290 get_svr4_info.
9291 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9292 get_svr4_info.
9293 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9294 to get_svr4_info.
9295 (probes_table_remove_objfile_probes): Likewise.
9296 (register_solib_event_probe): Add info parameter.
9297 (solist_update_incremental): Pass info parameter down to
9298 svr4_read_so_list.
9299 (disable_probes_interface): Add info parameter.
9300 (svr4_handle_solib_event): Pass current_program_space to
9301 get_svr4_info. Adjust disable_probes_interface cleanup.
9302 (svr4_create_probe_breakpoints): Add info parameter, pass it
9303 down to register_solib_event_probe.
9304 (svr4_create_solib_event_breakpoints): Add info parameter,
9305 pass it down to svr4_create_probe_breakpoints.
9306 (enable_break): Pass info down to
9307 svr4_create_solib_event_breakpoints.
9308 (svr4_solib_create_inferior_hook): Pass current_program_space to
9309 get_svr4_info.
9310 (svr4_clear_solib): Likewise.
9311
9312 2019-04-22 Pedro Alves <palves@redhat.com>
9313
9314 * solib-svr4.c (svr4_free_objfile_observer): New.
9315 (probe_and_action::objfile): New field.
9316 (probes_table_htab_remove_objfile_probes)
9317 (probes_table_remove_objfile_probes): New functions.
9318 (register_solib_event_probe): Add 'objfile' parameter. Store it
9319 in the new probe_and_action. Don't store the probe in 'lookup'.
9320 (svr4_create_probe_breakpoints): Pass objfile to
9321 register_solib_event_probe.
9322 (_initialize_svr4_solib): Register a free_objfile observer.
9323
9324 2019-04-19 Tom Tromey <tom@tromey.com>
9325
9326 * common/queue.h: Remove.
9327
9328 2019-04-19 Tom Tromey <tom@tromey.com>
9329
9330 * event-loop.c: Don't include "common/queue.h".
9331
9332 2019-04-19 Tom Tromey <tom@tromey.com>
9333
9334 * remote.c (remote_target): Use delete.
9335 * remote-notif.h: Include <list>, not "common/queue.h".
9336 (notif_client_p): Remove typedef.
9337 (remote_notif_state): Add constructor, destructor, initializer.
9338 <notif_queue>: Now a std::list.
9339 (remote_notif_state_xfree): Don't declare.
9340 * remote-notif.c (remote_notif_process, handle_notification)
9341 (remote_notif_state_allocate): Update.
9342 (~remote_notif_state): Rename from remote_notif_state_xfree.
9343
9344 2019-04-19 Tom Tromey <tom@tromey.com>
9345
9346 * symfile.c (reread_symbols): Update.
9347 * objfiles.c (objfile_register_static_link)
9348 (objfile_lookup_static_link): Update
9349 (~objfile) Don't delete static_links.
9350 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9351
9352 2019-04-19 Tom Tromey <tom@tromey.com>
9353
9354 * type-stack.h (struct type_stack) <insert>: Constify string.
9355 * type-stack.c (type_stack::insert): Constify string.
9356 * gdbtypes.h (lookup_template_type): Update.
9357 (address_space_name_to_int): Update.
9358 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9359 const.
9360 (lookup_template_type): Make name const.
9361 * c-exp.y: Update rules.
9362 (lex_one_token, classify_name, classify_inner_name)
9363 (c_print_token): Update.
9364 * p-exp.y: Update rules.
9365 (yylex): Update.
9366 * f-exp.y: Update rules.
9367 (yylex): Update.
9368 * d-exp.y: Update rules.
9369 (lex_one_token, classify_name, classify_inner_name): Update.
9370 * parse.c (write_dollar_variable, copy_name): Return std::string.
9371 * parser-defs.h (copy_name): Change return type.
9372 * m2-exp.y: Update rules.
9373 (yylex): Update.
9374 * go-exp.y (lex_one_token): Update.
9375 Update rules.
9376 (classify_unsafe_function, classify_packaged_name)
9377 (classify_name, yylex): Update.
9378
9379 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9380
9381 * configure.ac: add --enable-source-highlight switch.
9382 * configure: Regenerate.
9383 * top.c (print_gdb_version): plumb --enable-source-highlight
9384 status to "show configuration".
9385
9386 2019-04-19 Tom Tromey <tromey@adacore.com>
9387
9388 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9389 Check ADA_TYPE_P.
9390 (empty_record, ada_template_to_fixed_record_type_1)
9391 (template_to_static_fixed_type)
9392 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9393 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9394 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9395 macros.
9396
9397 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9398
9399 PR symtab/24423:
9400 * source.c (print_source_lines_base): Advance "iter" when a
9401 control character is seen.
9402
9403 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * inferior.h (struct infcall_suspend_state_deleter):
9406 Catch exception in destructor to avoid crash.
9407
9408 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9409
9410 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9411 close to the add_com "shell".
9412
9413 2019-04-18 Tom Tromey <tromey@adacore.com>
9414
9415 * process-stratum-target.h (class process_stratum_target)
9416 <stratum>: Add "final".
9417
9418 2019-04-17 Tom Tromey <tromey@adacore.com>
9419
9420 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9421 against nullptr before use.
9422
9423 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9424
9425 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9426
9427 2019-04-17 Jim Wilson <jimw@sifive.com>
9428 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9431 code read might fail, assume 4-byte breakpoint in that case.
9432
9433 2019-04-15 Leszek Swirski <leszeks@google.com>
9434
9435 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9436 rather than a hand-rolled POD check when checking for forced MEMORY
9437 classification.
9438
9439 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9440
9441 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9442 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9443 function.
9444 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9445 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9446 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9447 declaration.
9448
9449 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9450
9451 * aarch64-linux-nat.c
9452 (aarch64_linux_nat_target::thread_architecture): Add override.
9453 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9454 each VQ.
9455
9456 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9457
9458 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9459
9460 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9463 target types of size 96-bits, add some additional comments, and
9464 check that the builtin type we found was the correct size.
9465
9466 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9467
9468 * utils.c (prompt_for_continue): Don't restore the styling at the
9469 end, as applied_style has the wrong value. This fixes styling in
9470 long lists of file names that are interrupted by the "Continue?"
9471 prompt.
9472
9473 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9474
9475 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9476 * c-lang.c (c_language_defn): Likewise.
9477 (cplus_language_defn): Likewise.
9478 (asm_language_defn): Likewise.
9479 (minimal_language_defn): Likewise.
9480 * d-lang.c (d_language_defn): Likewise.
9481 * f-lang.c (f_language_defn): Likewise.
9482 * go-lang.c (go_language_defn): Likewise.
9483 * language.c (unknown_language_defn): Likewise.
9484 (auto_language_defn): Likewise.
9485 * language.h (struct language_defn): Remove la_magic field.
9486 (LANG_MAGIC): Delete.
9487 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9488 * objc-lang.c (objc_language_defn): Likewise.
9489 * opencl-lang.c (opencl_language_defn): Likewise.
9490 * p-lang.c (pascal_language_defn): Likewise.
9491 * rust-lang.c (rust_language_defn): Likewise.
9492
9493 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9494
9495 * riscv-tdep.c (riscv_type_align): New function.
9496 (riscv_type_alignment): Delete.
9497 (riscv_arg_location): Use 'type_align'.
9498 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9499
9500 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9501
9502 * gdbtypes.c (type_align): A struct with no non-static fields also
9503 has alignment of 1.
9504
9505 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9508 component to 0.
9509 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9510 member.
9511 (riscv_struct_info::analyse): New implementation using new
9512 analyse_inner member function.
9513 (riscv_struct_info::field_offset): New member function.
9514 (riscv_struct_info::m_offsets): New member variable.
9515 (riscv_struct_info::analyse_inner): New private member function,
9516 takes the old implementation of riscv_struct_info::analyse but
9517 extended to track field offsets.
9518 (riscv_call_arg_struct): Update the struct folding special cases
9519 to handle cases where empty C++ structs, which are non-zero
9520 length, are found.
9521 (riscv_arg_location): Initialise the length of each location, a
9522 non-zero length now indicates the location is in use.
9523 (riscv_push_dummy_call): Allow for the first location having a
9524 non-zero offset when setting up arguments.
9525 (riscv_return_value): Likewise, but for return values.
9526
9527 2019-04-11 Tom Tromey <tromey@adacore.com>
9528
9529 * utils.c (internal_vproblem): Make "msg" const.
9530
9531 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9532
9533 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9534 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9535 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9536 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9537
9538 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9539
9540 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9541 function.
9542 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9543 of amd64_collect_native_gregset.
9544 (amd64_linux_nat_target::store_registers): Likewise.
9545
9546 2019-04-10 Tom Tromey <tom@tromey.com>
9547
9548 * symtab.c (lookup_global_symbol_from_objfile)
9549 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9550 * objfiles.h (class separate_debug_iterator): New.
9551 (class separate_debug_range): New.
9552 (struct objfile) <separate_debug_objfiles>: New method.
9553 (objfile_separate_debug_iterate): Don't declare.
9554 * objfiles.c (separate_debug_iterator::operator++): Rename from
9555 objfile_separate_debug_iterate.
9556 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9557 iterator.
9558 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9559 iterator.
9560
9561 2019-04-10 Tom Tromey <tom@tromey.com>
9562
9563 * symfile.c (reread_symbols): Remove old comment.
9564 * objfiles.c (free_all_objfiles): Fix a typo.
9565
9566 2019-04-10 Tom Tromey <tom@tromey.com>
9567
9568 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9569 * minsyms.c (lookup_minimal_symbol): Use foreach.
9570 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9571 (lookup_minimal_symbol_solib_trampoline): Likewise.
9572 * symfile.c (reread_symbols): Use foreach.
9573
9574 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9575 Tom Tromey <tromey@adacore.com>
9576
9577 PR rust/24414:
9578 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9579 (rust_lex_int_test): Change "value" to be LONGEST.
9580 (rust_lex_tests): Add test for long integer literal.
9581
9582 2019-04-09 Tom Tromey <tromey@adacore.com>
9583
9584 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9585 to bool.
9586 (extended_remote_target::attach): Update.
9587 (remote_target::remote_notice_new_inferior): Update.
9588 (remote_target::add_current_inferior_and_thread): Update.
9589 * inferior.c (exit_inferior_1): Use "false".
9590 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9591
9592 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9593
9594 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9595 the "start" command.
9596
9597 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9598
9599 * python/py-inferior.c (infpy_thread_from_thread_handle):
9600 Adjust comments to reflect renaming of thread_from_thread_handle
9601 to thread_from_handle. Adjust keywords. Fix type error message.
9602 (inferior_object_methods): Add thread_from_handle. Retain
9603 thread_from_thread_handle, but mark it as deprecated.
9604
9605 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9606
9607 * gdbthread.h (find_thread_by_handle): Revise declaration.
9608 * thread.c (find_thread_by_handle): Likewise. Adjust
9609 implementation too.
9610 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9611 support for buffer objects as handles.
9612
9613 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9614
9615 * python/py-infthread.c (thpy_thread_handle): New function.
9616 (thread_object_methods): Register thpy_thread_handle.
9617
9618 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9619
9620 * gdbthread.h (thread_to_thread_handle): Declare.
9621 * thread.c (gdbtypes.h): Include.
9622 (thread_to_thread_handle): New function.
9623
9624 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9625 (target_thread_info_to_thread_handle): Declare.
9626 * target.c (target_thread_info_to_thread_handle): New function.
9627 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9628 * target-delegates.c: Regenerate.
9629
9630 * linux-thread-db.c (class thread_db_target): Add method
9631 thread_info_to_thread_handle.
9632 (thread_db_target::thread_info_to_thread_handle): Define.
9633 * remote.c (class remote_target): Add new method
9634 thread_info_to_thread_handle.
9635 (remote_target::thread_info_to_thread_handle): Define.
9636
9637 2019-04-08 Pedro Alves <palves@redhat.com>
9638
9639 * common/common-exceptions.c (throw_exception): Don't create
9640 named object to throw; throw directly.
9641 (throw_it): Likewise. Don't initialize gdb_exception::message
9642 here, with new; pass FMT and AP to the ctor instead.
9643 * common/common-exceptions.h: Include <string>.
9644 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9645 const char *, va_list)): New ctor. Use std::make_shared.
9646 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9647 errors)): Delete.
9648 (gdb_exception_error::gdb_exception_error(enum errors, const char
9649 *, va_list)): New.
9650 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9651 Add assertion.
9652 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9653 errors)): Delete.
9654 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9655 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9656 Add assertion.
9657
9658 2019-04-08 Tom Tromey <tom@tromey.com>
9659
9660 * valops.c (value_rtti_indirect_type): Replace throw_exception
9661 with throw.
9662 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9663 with throw.
9664 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9665 throw.
9666 * target.c (target_translate_tls_address): Replace throw_exception
9667 with throw.
9668 * stack.c (frame_apply_command_count): Replace throw_exception
9669 with throw.
9670 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9671 throw.
9672 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9673 with throw.
9674 * rs6000-tdep.c (rs6000_frame_cache)
9675 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9676 * remote.c: Replace throw_exception with throw.
9677 * record-full.c (record_full_message, record_full_wait_1)
9678 (record_full_restore): Replace throw_exception with throw.
9679 * record-btrace.c:
9680 (get_thread_current_frame_id, record_btrace_start_replaying)
9681 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9682 (cmd_record_btrace_start): Replace throw_exception with throw.
9683 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9684 throw.
9685 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9686 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9687 * linespec.c:
9688 (find_linespec_symbols): Replace throw_exception with throw.
9689 * infrun.c (displaced_step_prepare, resume): Replace
9690 throw_exception with throw.
9691 * infcmd.c (post_create_inferior): Replace throw_exception with
9692 throw.
9693 * inf-loop.c (inferior_event_handler): Replace throw_exception
9694 with throw.
9695 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9696 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9697 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9698 (get_prev_frame_always, get_frame_pc_if_available)
9699 (get_frame_address_in_block_if_available, get_frame_language):
9700 Replace throw_exception with throw.
9701 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9702 throw_exception with throw.
9703 * eval.c (fetch_subexp_value, evaluate_var_value)
9704 (evaluate_funcall, evaluate_subexp_standard): Replace
9705 throw_exception with throw.
9706 * dwarf2loc.c (call_site_find_chain)
9707 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9708 Replace throw_exception with throw.
9709 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9710 with throw.
9711 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9712 throw.
9713 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9714 * completer.c (complete_line_internal): Replace throw_exception
9715 with throw.
9716 * compile/compile-object-run.c (compile_object_run): Replace
9717 throw_exception with throw.
9718 * cli/cli-script.c (process_next_line): Replace throw_exception
9719 with throw.
9720 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9721 (btrace_enable, btrace_maint_update_pt_packets): Replace
9722 throw_exception with throw.
9723 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9724 throw_exception with throw.
9725 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9726 throw_exception with throw.
9727 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9728 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9729 * aarch64-tdep.c (aarch64_make_prologue_cache)
9730 (aarch64_make_stub_cache): Replace throw_exception with throw.
9731
9732 2019-04-08 Tom Tromey <tom@tromey.com>
9733
9734 * common/common-exceptions.c (throw_exception): Rename from
9735 throw_exception_cxx. Remove old copy. Make argument const.
9736 (throw_it): Create and throw exception objects directly.
9737 * common/common-exceptions.h (throw_exception): Make argument
9738 const.
9739 (struct gdb_exception_error): Add constructor.
9740 (struct gdb_exception_quit): Add constructor.
9741
9742 2019-04-08 Tom Tromey <tom@tromey.com>
9743
9744 * common/common-exceptions.h (exception_rethrow): Don't declare.
9745 (TRY_SJLJ): Update comment.
9746 (TRY, CATCH, END_CATCH): Remove.
9747 * common/common-exceptions.c (exception_rethrow): Remove.
9748
9749 2019-04-08 Tom Tromey <tom@tromey.com>
9750
9751 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9752 Remove.
9753 (gdb_exception_error): Rename from
9754 gdb_exception_RETURN_MASK_ERROR.
9755 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9756 (gdb_quit_bad_alloc): Update.
9757 * aarch64-tdep.c: Update.
9758 * ada-lang.c: Update.
9759 * ada-typeprint.c: Update.
9760 * ada-valprint.c: Update.
9761 * amd64-tdep.c: Update.
9762 * arch-utils.c: Update.
9763 * break-catch-throw.c: Update.
9764 * breakpoint.c: Update.
9765 * btrace.c: Update.
9766 * c-varobj.c: Update.
9767 * cli/cli-cmds.c: Update.
9768 * cli/cli-interp.c: Update.
9769 * cli/cli-script.c: Update.
9770 * common/common-exceptions.c: Update.
9771 * common/new-op.c: Update.
9772 * common/selftest.c: Update.
9773 * compile/compile-c-symbols.c: Update.
9774 * compile/compile-cplus-symbols.c: Update.
9775 * compile/compile-object-load.c: Update.
9776 * compile/compile-object-run.c: Update.
9777 * completer.c: Update.
9778 * corelow.c: Update.
9779 * cp-abi.c: Update.
9780 * cp-support.c: Update.
9781 * cp-valprint.c: Update.
9782 * darwin-nat.c: Update.
9783 * disasm-selftests.c: Update.
9784 * dtrace-probe.c: Update.
9785 * dwarf-index-cache.c: Update.
9786 * dwarf-index-write.c: Update.
9787 * dwarf2-frame-tailcall.c: Update.
9788 * dwarf2-frame.c: Update.
9789 * dwarf2loc.c: Update.
9790 * dwarf2read.c: Update.
9791 * eval.c: Update.
9792 * event-loop.c: Update.
9793 * event-top.c: Update.
9794 * exec.c: Update.
9795 * f-valprint.c: Update.
9796 * fbsd-tdep.c: Update.
9797 * frame-unwind.c: Update.
9798 * frame.c: Update.
9799 * gdbtypes.c: Update.
9800 * gnu-v3-abi.c: Update.
9801 * guile/guile-internal.h: Update.
9802 * guile/scm-block.c: Update.
9803 * guile/scm-breakpoint.c: Update.
9804 * guile/scm-cmd.c: Update.
9805 * guile/scm-disasm.c: Update.
9806 * guile/scm-frame.c: Update.
9807 * guile/scm-lazy-string.c: Update.
9808 * guile/scm-math.c: Update.
9809 * guile/scm-param.c: Update.
9810 * guile/scm-ports.c: Update.
9811 * guile/scm-pretty-print.c: Update.
9812 * guile/scm-symbol.c: Update.
9813 * guile/scm-symtab.c: Update.
9814 * guile/scm-type.c: Update.
9815 * guile/scm-value.c: Update.
9816 * i386-linux-tdep.c: Update.
9817 * i386-tdep.c: Update.
9818 * inf-loop.c: Update.
9819 * infcall.c: Update.
9820 * infcmd.c: Update.
9821 * infrun.c: Update.
9822 * jit.c: Update.
9823 * language.c: Update.
9824 * linespec.c: Update.
9825 * linux-fork.c: Update.
9826 * linux-nat.c: Update.
9827 * linux-tdep.c: Update.
9828 * linux-thread-db.c: Update.
9829 * main.c: Update.
9830 * mi/mi-cmd-break.c: Update.
9831 * mi/mi-cmd-stack.c: Update.
9832 * mi/mi-interp.c: Update.
9833 * mi/mi-main.c: Update.
9834 * objc-lang.c: Update.
9835 * p-valprint.c: Update.
9836 * parse.c: Update.
9837 * ppc-linux-tdep.c: Update.
9838 * printcmd.c: Update.
9839 * python/py-arch.c: Update.
9840 * python/py-breakpoint.c: Update.
9841 * python/py-cmd.c: Update.
9842 * python/py-finishbreakpoint.c: Update.
9843 * python/py-frame.c: Update.
9844 * python/py-framefilter.c: Update.
9845 * python/py-gdb-readline.c: Update.
9846 * python/py-inferior.c: Update.
9847 * python/py-infthread.c: Update.
9848 * python/py-lazy-string.c: Update.
9849 * python/py-linetable.c: Update.
9850 * python/py-objfile.c: Update.
9851 * python/py-param.c: Update.
9852 * python/py-prettyprint.c: Update.
9853 * python/py-progspace.c: Update.
9854 * python/py-record-btrace.c: Update.
9855 * python/py-record.c: Update.
9856 * python/py-symbol.c: Update.
9857 * python/py-type.c: Update.
9858 * python/py-unwind.c: Update.
9859 * python/py-utils.c: Update.
9860 * python/py-value.c: Update.
9861 * python/python.c: Update.
9862 * record-btrace.c: Update.
9863 * record-full.c: Update.
9864 * remote-fileio.c: Update.
9865 * remote.c: Update.
9866 * riscv-tdep.c: Update.
9867 * rs6000-aix-tdep.c: Update.
9868 * rs6000-tdep.c: Update.
9869 * rust-exp.y: Update.
9870 * rust-lang.c: Update.
9871 * s390-tdep.c: Update.
9872 * selftest-arch.c: Update.
9873 * solib-dsbt.c: Update.
9874 * solib-frv.c: Update.
9875 * solib-spu.c: Update.
9876 * solib-svr4.c: Update.
9877 * solib.c: Update.
9878 * sparc64-linux-tdep.c: Update.
9879 * stack.c: Update.
9880 * symfile-mem.c: Update.
9881 * symmisc.c: Update.
9882 * target.c: Update.
9883 * thread.c: Update.
9884 * top.c: Update.
9885 * tracefile-tfile.c: Update.
9886 * tui/tui.c: Update.
9887 * typeprint.c: Update.
9888 * unittests/cli-utils-selftests.c: Update.
9889 * unittests/parse-connection-spec-selftests.c: Update.
9890 * valops.c: Update.
9891 * valprint.c: Update.
9892 * value.c: Update.
9893 * varobj.c: Update.
9894 * windows-nat.c: Update.
9895 * x86-linux-nat.c: Update.
9896 * xml-support.c: Update.
9897
9898 2019-04-08 Tom Tromey <tom@tromey.com>
9899
9900 * xml-support.c: Use C++ exception handling.
9901 * x86-linux-nat.c: Use C++ exception handling.
9902 * windows-nat.c: Use C++ exception handling.
9903 * varobj.c: Use C++ exception handling.
9904 * value.c: Use C++ exception handling.
9905 * valprint.c: Use C++ exception handling.
9906 * valops.c: Use C++ exception handling.
9907 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9908 handling.
9909 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9910 * typeprint.c: Use C++ exception handling.
9911 * tui/tui.c: Use C++ exception handling.
9912 * tracefile-tfile.c: Use C++ exception handling.
9913 * top.c: Use C++ exception handling.
9914 * thread.c: Use C++ exception handling.
9915 * target.c: Use C++ exception handling.
9916 * symmisc.c: Use C++ exception handling.
9917 * symfile-mem.c: Use C++ exception handling.
9918 * stack.c: Use C++ exception handling.
9919 * sparc64-linux-tdep.c: Use C++ exception handling.
9920 * solib.c: Use C++ exception handling.
9921 * solib-svr4.c: Use C++ exception handling.
9922 * solib-spu.c: Use C++ exception handling.
9923 * solib-frv.c: Use C++ exception handling.
9924 * solib-dsbt.c: Use C++ exception handling.
9925 * selftest-arch.c: Use C++ exception handling.
9926 * s390-tdep.c: Use C++ exception handling.
9927 * rust-lang.c: Use C++ exception handling.
9928 * rust-exp.y: Use C++ exception handling.
9929 * rs6000-tdep.c: Use C++ exception handling.
9930 * rs6000-aix-tdep.c: Use C++ exception handling.
9931 * riscv-tdep.c: Use C++ exception handling.
9932 * remote.c: Use C++ exception handling.
9933 * remote-fileio.c: Use C++ exception handling.
9934 * record-full.c: Use C++ exception handling.
9935 * record-btrace.c: Use C++ exception handling.
9936 * python/python.c: Use C++ exception handling.
9937 * python/py-value.c: Use C++ exception handling.
9938 * python/py-utils.c: Use C++ exception handling.
9939 * python/py-unwind.c: Use C++ exception handling.
9940 * python/py-type.c: Use C++ exception handling.
9941 * python/py-symbol.c: Use C++ exception handling.
9942 * python/py-record.c: Use C++ exception handling.
9943 * python/py-record-btrace.c: Use C++ exception handling.
9944 * python/py-progspace.c: Use C++ exception handling.
9945 * python/py-prettyprint.c: Use C++ exception handling.
9946 * python/py-param.c: Use C++ exception handling.
9947 * python/py-objfile.c: Use C++ exception handling.
9948 * python/py-linetable.c: Use C++ exception handling.
9949 * python/py-lazy-string.c: Use C++ exception handling.
9950 * python/py-infthread.c: Use C++ exception handling.
9951 * python/py-inferior.c: Use C++ exception handling.
9952 * python/py-gdb-readline.c: Use C++ exception handling.
9953 * python/py-framefilter.c: Use C++ exception handling.
9954 * python/py-frame.c: Use C++ exception handling.
9955 * python/py-finishbreakpoint.c: Use C++ exception handling.
9956 * python/py-cmd.c: Use C++ exception handling.
9957 * python/py-breakpoint.c: Use C++ exception handling.
9958 * python/py-arch.c: Use C++ exception handling.
9959 * printcmd.c: Use C++ exception handling.
9960 * ppc-linux-tdep.c: Use C++ exception handling.
9961 * parse.c: Use C++ exception handling.
9962 * p-valprint.c: Use C++ exception handling.
9963 * objc-lang.c: Use C++ exception handling.
9964 * mi/mi-main.c: Use C++ exception handling.
9965 * mi/mi-interp.c: Use C++ exception handling.
9966 * mi/mi-cmd-stack.c: Use C++ exception handling.
9967 * mi/mi-cmd-break.c: Use C++ exception handling.
9968 * main.c: Use C++ exception handling.
9969 * linux-thread-db.c: Use C++ exception handling.
9970 * linux-tdep.c: Use C++ exception handling.
9971 * linux-nat.c: Use C++ exception handling.
9972 * linux-fork.c: Use C++ exception handling.
9973 * linespec.c: Use C++ exception handling.
9974 * language.c: Use C++ exception handling.
9975 * jit.c: Use C++ exception handling.
9976 * infrun.c: Use C++ exception handling.
9977 * infcmd.c: Use C++ exception handling.
9978 * infcall.c: Use C++ exception handling.
9979 * inf-loop.c: Use C++ exception handling.
9980 * i386-tdep.c: Use C++ exception handling.
9981 * i386-linux-tdep.c: Use C++ exception handling.
9982 * guile/scm-value.c: Use C++ exception handling.
9983 * guile/scm-type.c: Use C++ exception handling.
9984 * guile/scm-symtab.c: Use C++ exception handling.
9985 * guile/scm-symbol.c: Use C++ exception handling.
9986 * guile/scm-pretty-print.c: Use C++ exception handling.
9987 * guile/scm-ports.c: Use C++ exception handling.
9988 * guile/scm-param.c: Use C++ exception handling.
9989 * guile/scm-math.c: Use C++ exception handling.
9990 * guile/scm-lazy-string.c: Use C++ exception handling.
9991 * guile/scm-frame.c: Use C++ exception handling.
9992 * guile/scm-disasm.c: Use C++ exception handling.
9993 * guile/scm-cmd.c: Use C++ exception handling.
9994 * guile/scm-breakpoint.c: Use C++ exception handling.
9995 * guile/scm-block.c: Use C++ exception handling.
9996 * guile/guile-internal.h: Use C++ exception handling.
9997 * gnu-v3-abi.c: Use C++ exception handling.
9998 * gdbtypes.c: Use C++ exception handling.
9999 * frame.c: Use C++ exception handling.
10000 * frame-unwind.c: Use C++ exception handling.
10001 * fbsd-tdep.c: Use C++ exception handling.
10002 * f-valprint.c: Use C++ exception handling.
10003 * exec.c: Use C++ exception handling.
10004 * event-top.c: Use C++ exception handling.
10005 * event-loop.c: Use C++ exception handling.
10006 * eval.c: Use C++ exception handling.
10007 * dwarf2read.c: Use C++ exception handling.
10008 * dwarf2loc.c: Use C++ exception handling.
10009 * dwarf2-frame.c: Use C++ exception handling.
10010 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10011 * dwarf-index-write.c: Use C++ exception handling.
10012 * dwarf-index-cache.c: Use C++ exception handling.
10013 * dtrace-probe.c: Use C++ exception handling.
10014 * disasm-selftests.c: Use C++ exception handling.
10015 * darwin-nat.c: Use C++ exception handling.
10016 * cp-valprint.c: Use C++ exception handling.
10017 * cp-support.c: Use C++ exception handling.
10018 * cp-abi.c: Use C++ exception handling.
10019 * corelow.c: Use C++ exception handling.
10020 * completer.c: Use C++ exception handling.
10021 * compile/compile-object-run.c: Use C++ exception handling.
10022 * compile/compile-object-load.c: Use C++ exception handling.
10023 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10024 * compile/compile-c-symbols.c: Use C++ exception handling.
10025 * common/selftest.c: Use C++ exception handling.
10026 * common/new-op.c: Use C++ exception handling.
10027 * cli/cli-script.c: Use C++ exception handling.
10028 * cli/cli-interp.c: Use C++ exception handling.
10029 * cli/cli-cmds.c: Use C++ exception handling.
10030 * c-varobj.c: Use C++ exception handling.
10031 * btrace.c: Use C++ exception handling.
10032 * breakpoint.c: Use C++ exception handling.
10033 * break-catch-throw.c: Use C++ exception handling.
10034 * arch-utils.c: Use C++ exception handling.
10035 * amd64-tdep.c: Use C++ exception handling.
10036 * ada-valprint.c: Use C++ exception handling.
10037 * ada-typeprint.c: Use C++ exception handling.
10038 * ada-lang.c: Use C++ exception handling.
10039 * aarch64-tdep.c: Use C++ exception handling.
10040
10041 2019-04-08 Tom Tromey <tom@tromey.com>
10042
10043 * xml-support.c (gdb_xml_parser::parse): Update.
10044 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10045 * value.c (show_convenience): Update.
10046 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10047 (test_parse_flags_qcs): Update.
10048 * thread.c (thr_try_catch_cmd): Update.
10049 * target.c (target_translate_tls_address): Update.
10050 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10051 (info_frame_command_core, frame_apply_command_count): Update.
10052 * rust-exp.y (rust_lex_exception_test): Update.
10053 * riscv-tdep.c (riscv_print_one_register_info): Update.
10054 * remote.c (remote_target::enable_btrace): Update.
10055 * record-btrace.c (record_btrace_enable_warn): Update.
10056 * python/py-utils.c (gdbpy_convert_exception): Update.
10057 * printcmd.c (do_one_display, print_variable_and_value): Update.
10058 * mi/mi-main.c (mi_print_exception): Update.
10059 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10060 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10061 * linux-nat.c (linux_nat_target::attach): Update.
10062 * linux-fork.c (class scoped_switch_fork_info): Update.
10063 * infrun.c (displaced_step_prepare): Update.
10064 * infcall.c (call_function_by_hand_dummy): Update.
10065 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10066 * gnu-v3-abi.c (print_one_vtable): Update.
10067 * frame.c (get_prev_frame_always): Update.
10068 * f-valprint.c (info_common_command_for_block): Update.
10069 * exec.c (try_open_exec_file): Update.
10070 * exceptions.c (print_exception, exception_print)
10071 (exception_fprintf, exception_print_same): Update.
10072 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10073 * dwarf-index-cache.c (index_cache::store)
10074 (index_cache::lookup_gdb_index): Update.
10075 * darwin-nat.c (maybe_cache_shell): Update.
10076 * cp-valprint.c (cp_print_value_fields): Update.
10077 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10078 (gcc_cplus_symbol_address): Update.
10079 * compile/compile-c-symbols.c (gcc_convert_symbol)
10080 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10081 * common/selftest.c: Update.
10082 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10083 a std::string.
10084 (exception_try_scope_entry, exception_try_scope_exit): Don't
10085 declare.
10086 (struct exception_try_scope): Remove.
10087 (TRY): Don't use exception_try_scope.
10088 (struct gdb_exception): Add constructor, operator=.
10089 <what>: New method.
10090 (struct gdb_exception_RETURN_MASK_ALL)
10091 (struct gdb_exception_RETURN_MASK_ERROR)
10092 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10093 (struct gdb_quit_bad_alloc): Update.
10094 * common/common-exceptions.c (exception_none): Change
10095 initializer.
10096 (struct catcher) <state, exception>: Initialize inline.
10097 <prev>: Remove member.
10098 (current_catcher): Remove.
10099 (catchers): New global.
10100 (exceptions_state_mc_init): Simplify.
10101 (catcher_pop): Remove.
10102 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10103 (try_scope_depth, exception_try_scope_entry)
10104 (exception_try_scope_exit): Remove.
10105 (throw_exception_sjlj): Update.
10106 (exception_messages, exception_messages_size): Remove.
10107 (throw_it): Simplify.
10108 (gdb_exception_sliced_copy): Remove.
10109 (throw_exception_cxx): Update.
10110 * cli/cli-script.c (script_from_file): Update.
10111 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10112 Update.
10113 * ada-valprint.c (ada_val_print): Update.
10114 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10115 (create_excep_cond_exprs): Update.
10116
10117 2019-04-08 Tom Tromey <tom@tromey.com>
10118
10119 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10120 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10121 (TRY, CATCH, END_CATCH): Remove some definitions.
10122 * common/common-exceptions.c: Don't use GDB_XCPT.
10123 (catcher_list_size): Remove.
10124 (throw_exception, throw_it): Simplify.
10125
10126 2019-04-05 Tom Tromey <tom@tromey.com>
10127
10128 Revert the header-sorting patch.
10129 * ft32-tdep.c: Revert.
10130 * frv-tdep.c: Revert.
10131 * frv-linux-tdep.c: Revert.
10132 * frame.c: Revert.
10133 * frame-unwind.c: Revert.
10134 * frame-base.c: Revert.
10135 * fork-child.c: Revert.
10136 * findvar.c: Revert.
10137 * findcmd.c: Revert.
10138 * filesystem.c: Revert.
10139 * filename-seen-cache.h: Revert.
10140 * filename-seen-cache.c: Revert.
10141 * fbsd-tdep.c: Revert.
10142 * fbsd-nat.h: Revert.
10143 * fbsd-nat.c: Revert.
10144 * f-valprint.c: Revert.
10145 * f-typeprint.c: Revert.
10146 * f-lang.c: Revert.
10147 * extension.h: Revert.
10148 * extension.c: Revert.
10149 * extension-priv.h: Revert.
10150 * expprint.c: Revert.
10151 * exec.h: Revert.
10152 * exec.c: Revert.
10153 * exceptions.c: Revert.
10154 * event-top.c: Revert.
10155 * event-loop.c: Revert.
10156 * eval.c: Revert.
10157 * elfread.c: Revert.
10158 * dwarf2read.h: Revert.
10159 * dwarf2read.c: Revert.
10160 * dwarf2loc.c: Revert.
10161 * dwarf2expr.h: Revert.
10162 * dwarf2expr.c: Revert.
10163 * dwarf2-frame.c: Revert.
10164 * dwarf2-frame-tailcall.c: Revert.
10165 * dwarf-index-write.h: Revert.
10166 * dwarf-index-write.c: Revert.
10167 * dwarf-index-common.c: Revert.
10168 * dwarf-index-cache.h: Revert.
10169 * dwarf-index-cache.c: Revert.
10170 * dummy-frame.c: Revert.
10171 * dtrace-probe.c: Revert.
10172 * disasm.h: Revert.
10173 * disasm.c: Revert.
10174 * disasm-selftests.c: Revert.
10175 * dictionary.c: Revert.
10176 * dicos-tdep.c: Revert.
10177 * demangle.c: Revert.
10178 * dcache.h: Revert.
10179 * dcache.c: Revert.
10180 * darwin-nat.h: Revert.
10181 * darwin-nat.c: Revert.
10182 * darwin-nat-info.c: Revert.
10183 * d-valprint.c: Revert.
10184 * d-namespace.c: Revert.
10185 * d-lang.c: Revert.
10186 * ctf.c: Revert.
10187 * csky-tdep.c: Revert.
10188 * csky-linux-tdep.c: Revert.
10189 * cris-tdep.c: Revert.
10190 * cris-linux-tdep.c: Revert.
10191 * cp-valprint.c: Revert.
10192 * cp-support.c: Revert.
10193 * cp-namespace.c: Revert.
10194 * cp-abi.c: Revert.
10195 * corelow.c: Revert.
10196 * corefile.c: Revert.
10197 * continuations.c: Revert.
10198 * completer.h: Revert.
10199 * completer.c: Revert.
10200 * complaints.c: Revert.
10201 * coffread.c: Revert.
10202 * coff-pe-read.c: Revert.
10203 * cli-out.h: Revert.
10204 * cli-out.c: Revert.
10205 * charset.c: Revert.
10206 * c-varobj.c: Revert.
10207 * c-valprint.c: Revert.
10208 * c-typeprint.c: Revert.
10209 * c-lang.c: Revert.
10210 * buildsym.c: Revert.
10211 * buildsym-legacy.c: Revert.
10212 * build-id.h: Revert.
10213 * build-id.c: Revert.
10214 * btrace.c: Revert.
10215 * bsd-uthread.c: Revert.
10216 * breakpoint.h: Revert.
10217 * breakpoint.c: Revert.
10218 * break-catch-throw.c: Revert.
10219 * break-catch-syscall.c: Revert.
10220 * break-catch-sig.c: Revert.
10221 * blockframe.c: Revert.
10222 * block.c: Revert.
10223 * bfin-tdep.c: Revert.
10224 * bfin-linux-tdep.c: Revert.
10225 * bfd-target.c: Revert.
10226 * bcache.c: Revert.
10227 * ax-general.c: Revert.
10228 * ax-gdb.h: Revert.
10229 * ax-gdb.c: Revert.
10230 * avr-tdep.c: Revert.
10231 * auxv.c: Revert.
10232 * auto-load.c: Revert.
10233 * arm-wince-tdep.c: Revert.
10234 * arm-tdep.c: Revert.
10235 * arm-symbian-tdep.c: Revert.
10236 * arm-pikeos-tdep.c: Revert.
10237 * arm-obsd-tdep.c: Revert.
10238 * arm-nbsd-tdep.c: Revert.
10239 * arm-nbsd-nat.c: Revert.
10240 * arm-linux-tdep.c: Revert.
10241 * arm-linux-nat.c: Revert.
10242 * arm-fbsd-tdep.c: Revert.
10243 * arm-fbsd-nat.c: Revert.
10244 * arm-bsd-tdep.c: Revert.
10245 * arch-utils.c: Revert.
10246 * arc-tdep.c: Revert.
10247 * arc-newlib-tdep.c: Revert.
10248 * annotate.h: Revert.
10249 * annotate.c: Revert.
10250 * amd64-windows-tdep.c: Revert.
10251 * amd64-windows-nat.c: Revert.
10252 * amd64-tdep.c: Revert.
10253 * amd64-sol2-tdep.c: Revert.
10254 * amd64-obsd-tdep.c: Revert.
10255 * amd64-obsd-nat.c: Revert.
10256 * amd64-nbsd-tdep.c: Revert.
10257 * amd64-nbsd-nat.c: Revert.
10258 * amd64-nat.c: Revert.
10259 * amd64-linux-tdep.c: Revert.
10260 * amd64-linux-nat.c: Revert.
10261 * amd64-fbsd-tdep.c: Revert.
10262 * amd64-fbsd-nat.c: Revert.
10263 * amd64-dicos-tdep.c: Revert.
10264 * amd64-darwin-tdep.c: Revert.
10265 * amd64-bsd-nat.c: Revert.
10266 * alpha-tdep.c: Revert.
10267 * alpha-obsd-tdep.c: Revert.
10268 * alpha-nbsd-tdep.c: Revert.
10269 * alpha-mdebug-tdep.c: Revert.
10270 * alpha-linux-tdep.c: Revert.
10271 * alpha-linux-nat.c: Revert.
10272 * alpha-bsd-tdep.c: Revert.
10273 * alpha-bsd-nat.c: Revert.
10274 * aix-thread.c: Revert.
10275 * agent.c: Revert.
10276 * addrmap.c: Revert.
10277 * ada-varobj.c: Revert.
10278 * ada-valprint.c: Revert.
10279 * ada-typeprint.c: Revert.
10280 * ada-tasks.c: Revert.
10281 * ada-lang.c: Revert.
10282 * aarch64-tdep.c: Revert.
10283 * aarch64-ravenscar-thread.c: Revert.
10284 * aarch64-newlib-tdep.c: Revert.
10285 * aarch64-linux-tdep.c: Revert.
10286 * aarch64-linux-nat.c: Revert.
10287 * aarch64-fbsd-tdep.c: Revert.
10288 * aarch64-fbsd-nat.c: Revert.
10289 * aarch32-linux-nat.c: Revert.
10290
10291 2019-04-05 Tom Tromey <tom@tromey.com>
10292
10293 * ft32-tdep.c: Sort headers.
10294 * frv-tdep.c: Sort headers.
10295 * frv-linux-tdep.c: Sort headers.
10296 * frame.c: Sort headers.
10297 * frame-unwind.c: Sort headers.
10298 * frame-base.c: Sort headers.
10299 * fork-child.c: Sort headers.
10300 * findvar.c: Sort headers.
10301 * findcmd.c: Sort headers.
10302 * filesystem.c: Sort headers.
10303 * filename-seen-cache.h: Sort headers.
10304 * filename-seen-cache.c: Sort headers.
10305 * fbsd-tdep.c: Sort headers.
10306 * fbsd-nat.h: Sort headers.
10307 * fbsd-nat.c: Sort headers.
10308 * f-valprint.c: Sort headers.
10309 * f-typeprint.c: Sort headers.
10310 * f-lang.c: Sort headers.
10311 * extension.h: Sort headers.
10312 * extension.c: Sort headers.
10313 * extension-priv.h: Sort headers.
10314 * expprint.c: Sort headers.
10315 * exec.h: Sort headers.
10316 * exec.c: Sort headers.
10317 * exceptions.c: Sort headers.
10318 * event-top.c: Sort headers.
10319 * event-loop.c: Sort headers.
10320 * eval.c: Sort headers.
10321 * elfread.c: Sort headers.
10322 * dwarf2read.h: Sort headers.
10323 * dwarf2read.c: Sort headers.
10324 * dwarf2loc.c: Sort headers.
10325 * dwarf2expr.h: Sort headers.
10326 * dwarf2expr.c: Sort headers.
10327 * dwarf2-frame.c: Sort headers.
10328 * dwarf2-frame-tailcall.c: Sort headers.
10329 * dwarf-index-write.h: Sort headers.
10330 * dwarf-index-write.c: Sort headers.
10331 * dwarf-index-common.c: Sort headers.
10332 * dwarf-index-cache.h: Sort headers.
10333 * dwarf-index-cache.c: Sort headers.
10334 * dummy-frame.c: Sort headers.
10335 * dtrace-probe.c: Sort headers.
10336 * disasm.h: Sort headers.
10337 * disasm.c: Sort headers.
10338 * disasm-selftests.c: Sort headers.
10339 * dictionary.c: Sort headers.
10340 * dicos-tdep.c: Sort headers.
10341 * demangle.c: Sort headers.
10342 * dcache.h: Sort headers.
10343 * dcache.c: Sort headers.
10344 * darwin-nat.h: Sort headers.
10345 * darwin-nat.c: Sort headers.
10346 * darwin-nat-info.c: Sort headers.
10347 * d-valprint.c: Sort headers.
10348 * d-namespace.c: Sort headers.
10349 * d-lang.c: Sort headers.
10350 * ctf.c: Sort headers.
10351 * csky-tdep.c: Sort headers.
10352 * csky-linux-tdep.c: Sort headers.
10353 * cris-tdep.c: Sort headers.
10354 * cris-linux-tdep.c: Sort headers.
10355 * cp-valprint.c: Sort headers.
10356 * cp-support.c: Sort headers.
10357 * cp-namespace.c: Sort headers.
10358 * cp-abi.c: Sort headers.
10359 * corelow.c: Sort headers.
10360 * corefile.c: Sort headers.
10361 * continuations.c: Sort headers.
10362 * completer.h: Sort headers.
10363 * completer.c: Sort headers.
10364 * complaints.c: Sort headers.
10365 * coffread.c: Sort headers.
10366 * coff-pe-read.c: Sort headers.
10367 * cli-out.h: Sort headers.
10368 * cli-out.c: Sort headers.
10369 * charset.c: Sort headers.
10370 * c-varobj.c: Sort headers.
10371 * c-valprint.c: Sort headers.
10372 * c-typeprint.c: Sort headers.
10373 * c-lang.c: Sort headers.
10374 * buildsym.c: Sort headers.
10375 * buildsym-legacy.c: Sort headers.
10376 * build-id.h: Sort headers.
10377 * build-id.c: Sort headers.
10378 * btrace.c: Sort headers.
10379 * bsd-uthread.c: Sort headers.
10380 * breakpoint.h: Sort headers.
10381 * breakpoint.c: Sort headers.
10382 * break-catch-throw.c: Sort headers.
10383 * break-catch-syscall.c: Sort headers.
10384 * break-catch-sig.c: Sort headers.
10385 * blockframe.c: Sort headers.
10386 * block.c: Sort headers.
10387 * bfin-tdep.c: Sort headers.
10388 * bfin-linux-tdep.c: Sort headers.
10389 * bfd-target.c: Sort headers.
10390 * bcache.c: Sort headers.
10391 * ax-general.c: Sort headers.
10392 * ax-gdb.h: Sort headers.
10393 * ax-gdb.c: Sort headers.
10394 * avr-tdep.c: Sort headers.
10395 * auxv.c: Sort headers.
10396 * auto-load.c: Sort headers.
10397 * arm-wince-tdep.c: Sort headers.
10398 * arm-tdep.c: Sort headers.
10399 * arm-symbian-tdep.c: Sort headers.
10400 * arm-pikeos-tdep.c: Sort headers.
10401 * arm-obsd-tdep.c: Sort headers.
10402 * arm-nbsd-tdep.c: Sort headers.
10403 * arm-nbsd-nat.c: Sort headers.
10404 * arm-linux-tdep.c: Sort headers.
10405 * arm-linux-nat.c: Sort headers.
10406 * arm-fbsd-tdep.c: Sort headers.
10407 * arm-fbsd-nat.c: Sort headers.
10408 * arm-bsd-tdep.c: Sort headers.
10409 * arch-utils.c: Sort headers.
10410 * arc-tdep.c: Sort headers.
10411 * arc-newlib-tdep.c: Sort headers.
10412 * annotate.h: Sort headers.
10413 * annotate.c: Sort headers.
10414 * amd64-windows-tdep.c: Sort headers.
10415 * amd64-windows-nat.c: Sort headers.
10416 * amd64-tdep.c: Sort headers.
10417 * amd64-sol2-tdep.c: Sort headers.
10418 * amd64-obsd-tdep.c: Sort headers.
10419 * amd64-obsd-nat.c: Sort headers.
10420 * amd64-nbsd-tdep.c: Sort headers.
10421 * amd64-nbsd-nat.c: Sort headers.
10422 * amd64-nat.c: Sort headers.
10423 * amd64-linux-tdep.c: Sort headers.
10424 * amd64-linux-nat.c: Sort headers.
10425 * amd64-fbsd-tdep.c: Sort headers.
10426 * amd64-fbsd-nat.c: Sort headers.
10427 * amd64-dicos-tdep.c: Sort headers.
10428 * amd64-darwin-tdep.c: Sort headers.
10429 * amd64-bsd-nat.c: Sort headers.
10430 * alpha-tdep.c: Sort headers.
10431 * alpha-obsd-tdep.c: Sort headers.
10432 * alpha-nbsd-tdep.c: Sort headers.
10433 * alpha-mdebug-tdep.c: Sort headers.
10434 * alpha-linux-tdep.c: Sort headers.
10435 * alpha-linux-nat.c: Sort headers.
10436 * alpha-bsd-tdep.c: Sort headers.
10437 * alpha-bsd-nat.c: Sort headers.
10438 * aix-thread.c: Sort headers.
10439 * agent.c: Sort headers.
10440 * addrmap.c: Sort headers.
10441 * ada-varobj.c: Sort headers.
10442 * ada-valprint.c: Sort headers.
10443 * ada-typeprint.c: Sort headers.
10444 * ada-tasks.c: Sort headers.
10445 * ada-lang.c: Sort headers.
10446 * aarch64-tdep.c: Sort headers.
10447 * aarch64-ravenscar-thread.c: Sort headers.
10448 * aarch64-newlib-tdep.c: Sort headers.
10449 * aarch64-linux-tdep.c: Sort headers.
10450 * aarch64-linux-nat.c: Sort headers.
10451 * aarch64-fbsd-tdep.c: Sort headers.
10452 * aarch64-fbsd-nat.c: Sort headers.
10453 * aarch32-linux-nat.c: Sort headers.
10454
10455 2019-04-04 Tom Tromey <tom@tromey.com>
10456
10457 * varobj.c (varobj_create): Update.
10458 * rust-exp.y (struct rust_parser) <update_innermost_block,
10459 lookup_symbol>: New methods.
10460 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10461 Rename.
10462 (rust_parser::rust_lookup_type)
10463 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10464 * printcmd.c (display_command, do_one_display): Update.
10465 * parser-defs.h (struct parser_state) <parser_state>: Add
10466 "tracker" parameter.
10467 (block_tracker): New member.
10468 (class innermost_block_tracker) <innermost_block_tracker>: Add
10469 "types" parameter.
10470 <reset>: Remove method.
10471 (innermost_block): Don't declare.
10472 (null_post_parser): Update.
10473 * parse.c (innermost_block): Remove global.
10474 (write_dollar_variable): Update.
10475 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10476 Remove "tracker_types" parameter.
10477 (parse_expression): Add "tracker" parameter.
10478 (parse_expression_for_completion): Update.
10479 (null_post_parser): Add "tracker" parameter.
10480 * p-exp.y: Update rules.
10481 * m2-exp.y: Update rules.
10482 * language.h (struct language_defn) <la_post_parser>: Add
10483 "tracker" parameter.
10484 * go-exp.y: Update rules.
10485 * f-exp.y: Update rules.
10486 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10487 parameter.
10488 * d-exp.y: Update rules.
10489 * c-exp.y: Update rules.
10490 * breakpoint.c (set_breakpoint_condition): Create an
10491 innermost_block_tracker.
10492 (watch_command_1): Likewise.
10493 * ada-lang.c (resolve): Add "tracker" parameter.
10494 (resolve_subexp): Likewise.
10495 * ada-exp.y (write_var_from_sym): Update.
10496
10497 2019-04-04 Tom Tromey <tom@tromey.com>
10498
10499 * type-stack.h: New file.
10500 * type-stack.c: New file.
10501 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10502 type-stack.h.
10503 (insert_into_type_stack, insert_type, push_type, push_type_int)
10504 (insert_type_address_space, pop_type, pop_type_int)
10505 (pop_typelist, pop_type_stack, append_type_stack)
10506 (push_type_stack, get_type_stack, push_typelist)
10507 (follow_type_instance_flags, follow_types): Don't declare.
10508 * parse.c (type_stack): Remove global.
10509 (parse_exp_in_context): Update.
10510 (insert_into_type_stack, insert_type, push_type, push_type_int)
10511 (insert_type_address_space, pop_type, pop_type_int)
10512 (pop_typelist, pop_type_stack, append_type_stack)
10513 (push_type_stack, get_type_stack, push_typelist)
10514 (follow_type_instance_flags, follow_types): Remove (moved to
10515 type-stack.c).
10516 * f-exp.y (type_stack): New global.
10517 Update rules.
10518 (push_kind_type, f_parse): Update.
10519 * d-exp.y (type_stack): New global.
10520 Update rules.
10521 (d_parse): Update.
10522 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10523 Update rules.
10524 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10525 (HFILES_NO_SRCDIR): Add type-stack.h.
10526
10527 2019-04-04 Tom Tromey <tom@tromey.com>
10528
10529 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10530 (rust_parser::convert_ast_to_expression, rust_parse)
10531 (rust_lex_test_completion, rust_lex_tests): Update.
10532 * parser-defs.h (struct expr_completion_state): New.
10533 (struct parser_state) <parser_state>: Add completion parameter.
10534 <mark_struct_expression, mark_completion_tag>: New methods.
10535 <parse_completion, m_completion_state>: New members.
10536 (prefixify_expression, null_post_parser): Update.
10537 (mark_struct_expression, mark_completion_tag): Don't declare.
10538 * parse.c (parse_completion, expout_last_struct)
10539 (expout_tag_completion_type, expout_completion_name): Remove
10540 globals.
10541 (parser_state::mark_struct_expression)
10542 (parser_state::mark_completion_tag): Now methods.
10543 (prefixify_expression): Add last_struct parameter.
10544 (prefixify_subexp): Likewise.
10545 (parse_exp_1): Update.
10546 (parse_exp_in_context): Add cstate parameter. Update.
10547 (parse_expression_for_completion): Create an
10548 expr_completion_state.
10549 (null_post_parser): Add "completion" parameter.
10550 * p-exp.y: Update rules.
10551 (yylex): Update.
10552 * language.h (struct language_defn) <la_post_parser>: Add
10553 "completing" parameter.
10554 * go-exp.y: Update rules.
10555 (lex_one_token): Update.
10556 * expression.h (parse_completion): Don't declare.
10557 * d-exp.y: Update rules.
10558 (lex_one_token): Update rules.
10559 * c-exp.y: Update rules.
10560 (lex_one_token): Update.
10561 * ada-lang.c (resolve): Add "parse_completion" parameter.
10562 (resolve_subexp): Likewise.
10563 (ada_resolve_function): Likewise.
10564
10565 2019-04-04 Tom Tromey <tom@tromey.com>
10566
10567 * parser-defs.h (struct parser_state) <start_arglist,
10568 end_arglist>: New methods.
10569 <arglist_len, m_funcall_chain>: New members.
10570 (arglist_len, start_arglist, end_arglist): Don't declare.
10571 * parse.c (arglist_len, funcall_chain): Remove global.
10572 (start_arglist, end_arglist): Remove functions.
10573 (parse_exp_in_context): Update.
10574 * p-exp.y: Update rules.
10575 * m2-exp.y: Update rules.
10576 * go-exp.y: Update rules.
10577 * f-exp.y: Update rules.
10578 * d-exp.y: Update rules.
10579 * c-exp.y: Update rules.
10580
10581 2019-04-04 Tom Tromey <tom@tromey.com>
10582
10583 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10584 lex_operator, push_back>: New methods.
10585 Update all rules.
10586 (rust_parser::lex_hex, lex_escape): Rename and update.
10587 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10588 (rust_parser::lex_operator): Rename and update.
10589 (rust_parser::lex_number, rustyylex, rustyyerror)
10590 (rust_lex_test_init, rust_lex_test_sequence)
10591 (rust_lex_test_push_back, rust_lex_tests): Update.
10592 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10593 parameter.
10594 <lexptr, prev_lexptr>: New members.
10595 (lexptr, prev_lexptr): Don't declare.
10596 * parse.c (lexptr, prev_lexptr): Remove globals.
10597 (parse_exp_in_context): Update.
10598 * p-exp.y (yylex, yyerror): Update.
10599 * m2-exp.y (parse_number, yylex, yyerror): Update.
10600 * go-exp.y (lex_one_token, yyerror): Update.
10601 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10602 * d-exp.y (lex_one_token, yyerror): Update.
10603 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10604 (lex_one_token, yyerror): Update.
10605 * ada-lex.l (YY_INPUT): Update.
10606 (rewind_to_char): Update.
10607 * ada-exp.y (yyerror): Update.
10608
10609 2019-04-04 Tom Tromey <tom@tromey.com>
10610
10611 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10612 * parser-defs.h (struct parser_state) <parser_state>: Add new
10613 parameter.
10614 <comma_terminates>: New member.
10615 (comma_terminates): Don't declare global.
10616 * parse.c (comma_terminates): Remove global.
10617 (parse_exp_in_context): Update.
10618 * p-exp.y (yylex): Update.
10619 * m2-exp.y (yylex): Update.
10620 * go-exp.y (lex_one_token): Update.
10621 * f-exp.y (yylex): Update.
10622 * d-exp.y (lex_one_token): Update.
10623 * c-exp.y (lex_one_token): Update.
10624 * ada-lex.l: Update.
10625
10626 2019-04-04 Tom Tromey <tom@tromey.com>
10627
10628 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10629 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10630 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10631 * parser-defs.h (paren_depth): Don't declare.
10632 * parse.c (paren_depth): Remove global.
10633 (parse_exp_in_context): Update.
10634 * p-exp.y (paren_depth): New global.
10635 (pascal_parse): Initialize it.
10636 * m2-exp.y (paren_depth): New global.
10637 (m2_parse): Initialize it.
10638 * go-exp.y (paren_depth): New global.
10639 (go_parse): Initialize it.
10640 * f-exp.y (paren_depth): New global.
10641 (f_parse): Initialize it.
10642 * d-exp.y (paren_depth): New global.
10643 (d_parse): Initialize it.
10644 * c-exp.y (paren_depth): New global.
10645 (c_parse): Initialize it.
10646 * ada-lex.l (paren_depth): New global.
10647 (lexer_init): Initialize it.
10648
10649 2019-04-04 Tom Tromey <tom@tromey.com>
10650
10651 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10652 (rust_parser::convert_ast_to_type)
10653 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10654 * parser-defs.h (struct parser_state) <parser_state>: Add
10655 parameters. Initialize new members.
10656 <expression_context_block, expression_context_pc>: New members.
10657 * parse.c (expression_context_block, expression_context_pc):
10658 Remove globals.
10659 (parse_exp_in_context): Update.
10660 * p-exp.y: Update all rules.
10661 (yylex): Update.
10662 * m2-exp.y: Update all rules.
10663 (yylex): Update.
10664 * go-exp.y (yylex): Update.
10665 * f-exp.y (yylex): Update.
10666 * d-exp.y: Update all rules.
10667 (yylex): Update.
10668 * c-exp.y: Update all rules.
10669 (lex_one_token, classify_name, yylex, c_parse): Update.
10670 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10671
10672 2019-04-04 Tom Tromey <tom@tromey.com>
10673
10674 * gdbarch.h, gdbarch.c: Rebuild.
10675 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10676 * stap-probe.h:
10677 (struct stap_parse_info): Replace "parser_state" with
10678 "expr_builder".
10679 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10680 (parser_state): New class.
10681 * parse.c (expr_builder): Rename.
10682 (expr_builder::release): Rename.
10683 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10684 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10685 (write_exp_elt_longcst, write_exp_elt_floatcst)
10686 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10687 (write_exp_string_vector, write_exp_bitstring)
10688 (write_exp_msymbol, mark_struct_expression)
10689 (write_dollar_variable)
10690 (insert_type_address_space, increase_expout_size): Replace
10691 "parser_state" with "expr_builder".
10692 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10693 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10694 "parser_state" with "expr_builder".
10695
10696 2019-04-04 Tom Tromey <tom@tromey.com>
10697
10698 * rust-exp.y: Replace "parse_language" with method call.
10699 * p-exp.y:
10700 (yylex): Replace "parse_language" with method call.
10701 * m2-exp.y:
10702 (yylex): Replace "parse_language" with method call.
10703 * go-exp.y (classify_name): Replace "parse_language" with method
10704 call.
10705 * f-exp.y (yylex): Replace "parse_language" with method call.
10706 * d-exp.y (lex_one_token): Replace "parse_language" with method
10707 call.
10708 * c-exp.y:
10709 (lex_one_token, classify_name, yylex): Replace "parse_language"
10710 with method call.
10711 * ada-exp.y (find_primitive_type, type_char)
10712 (type_system_address): Replace "parse_language" with method call.
10713
10714 2019-04-04 Tom Tromey <tom@tromey.com>
10715
10716 * rust-exp.y: Replace "parse_gdbarch" with method call.
10717 * parse.c (write_dollar_variable, insert_type_address_space):
10718 Replace "parse_gdbarch" with method call.
10719 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10720 call.
10721 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10722 call.
10723 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10724 "parse_gdbarch" with method call.
10725 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10726 with method call.
10727 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10728 "parse_gdbarch" with method call.
10729 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10730 "parse_gdbarch" with method call.
10731 * c-exp.y (parse_type, parse_number, classify_name): Replace
10732 "parse_gdbarch" with method call.
10733 * ada-lex.l: Replace "parse_gdbarch" with method call.
10734 * ada-exp.y (parse_type, find_primitive_type, type_char)
10735 (type_system_address): Replace "parse_gdbarch" with method call.
10736
10737 2019-04-04 Tom Tromey <tom@tromey.com>
10738
10739 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10740 * stap-probe.c (stap_parse_argument): Update.
10741 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10742 initial_size parameter.
10743 * rust-exp.y (rust_lex_tests): Update.
10744 * parse.c (parser_state): Update.
10745 (parse_exp_in_context): Update.
10746 * parser-defs.h (struct parser_state) <parser_state>: Remove
10747 "initial_size" parameter.
10748
10749 2019-04-04 Tom Tromey <tom@tromey.com>
10750
10751 * parser-defs.h (increase_expout_size): Don't declare.
10752 * parse.c (increase_expout_size): Now static.
10753
10754 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10755
10756 * gnu-nat.c (gnu_nat_target::wait): Fix
10757 target_waitstatus_to_string call.
10758
10759 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * eval.c (evaluate_subexp_standard): Handle internal functions
10762 during Fortran function call handling.
10763
10764 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * NEWS: Mention new internal functions.
10767 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10768 (read_base_type): Use dwarf2_init_complex_target_type.
10769 * value.c (creal_internal_fn): New function.
10770 (cimag_internal_fn): New function.
10771 (_initialize_values): Register new internal functions.
10772
10773 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10774
10775 * infrun.c (stop_all_threads): If debug_infrun, always
10776 trace the wait status after wait_one, using
10777 target_waitstatus_to_string and target_pid_to_str.
10778 (handle_inferior_event): Replace various trace of
10779 wait status kind by a single trace.
10780 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10781 wait status kind image by target_waitstatus_to_string.
10782 * target/waitstatus.c (target_waitstatus_to_string): Fix
10783 obsolete comment.
10784
10785 2019-04-01 Tom Tromey <tromey@adacore.com>
10786
10787 PR symtab/23331:
10788 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10789
10790 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10791 Pedro Alves <palves@redhat.com>
10792
10793 * top.c (quit_force): Call 'finalize_values'.
10794 * value.c (finalize_values): New function.
10795 * value.h (finalize_values): Declare.
10796
10797 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10798
10799 * NEWS: Announce $_gdb_major and $_gdb_minor.
10800
10801 * top.c (init_gdb_version_vars): New function.
10802 (gdb_init): Call init_gdb_version_vars.
10803
10804 2019-03-29 Tom Tromey <tromey@adacore.com>
10805
10806 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10807 help text. Remove dead code.
10808
10809 2019-03-29 Keith Seitz <keiths@redhat.com>
10810
10811 From Siddhesh Poyarekar:
10812 * f-lang.h (f77_get_upperbound): Return LONGEST.
10813 (f77_get_lowerbound): Likewise.
10814 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10815 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10816 print them.
10817 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10818 plongest to format print it.
10819 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10820 (f77_get_upperbound): Likewise.
10821 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10822 LOWER_BOUND to LONGEST.
10823 (f77_create_arrayprint_offset_tbl): Likewise.
10824
10825 2019-03-29 Keith Seitz <keiths@redhat.com>
10826
10827 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10828 %s/pulongest for TYPE_LENGTH instead of %d in format
10829 strings.
10830 * ada-typerint.c (ada_print_type): Likewise.
10831 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10832 * compile/compile-c-support.c (generate_register_struct): Likewise.
10833 * gdbtypes.c (recursive_dump_type): Likewise.
10834 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10835 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10836 instead of %d in format strings.
10837 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10838 to std::min to ULONGEST.
10839 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10840 instead of %d in format strings.
10841 * tracepoint.c (info_scope_command): Likewise.
10842 * typeprint.c (print_offset_data::update)
10843 (print_offset_data::finish): Likewise.
10844 * xtensa-tdep.c (xtensa_store_return_value)
10845 (xtensa_push_dummy_call): Likewise.
10846
10847 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10848
10849 * windows-nat.c (display_selector): Fixed format specifications
10850 for 64-bit Cygwin.
10851
10852 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10853
10854 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10855
10856 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10857
10858 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10859 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10860 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10861 (nios2_linux_init_abi): Install it.
10862
10863 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10864
10865 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10866
10867 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10868
10869 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10870
10871 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10872 Tom Tromey <tromey@adacore.com>
10873
10874 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10875
10876 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10877
10878 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10879 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10880 method to compute the bounds of range types. Also print "[evaluated]"
10881 if the bounds' values come from a dynamic evaluation.
10882
10883 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10886 whitespace when pretty printing is on.
10887
10888 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10889
10890 * ppc-linux-nat.c: Add include.
10891
10892 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10893
10894 * NEWS: Mention AArch64 Pointer Authentication.
10895
10896 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10897
10898 * arm-linux-nat.c: Add include.
10899
10900 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10901
10902 * source-cache.c (source_cache::get_source_lines): Re-read
10903 fullname after calling open_source_file.
10904
10905 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10906
10907 * NEWS: Mention TLS support for FreeBSD.
10908
10909 2019-03-25 Tom Tromey <tromey@adacore.com>
10910
10911 * minsyms.c (BUNCH_SIZE): Update comment.
10912 (~minimal_symbol_reader): Remove old comment.
10913 (compact_minimal_symbols): Update comment.
10914 (minimal_symbol_reader::install): Remove old comment. Update
10915 other comments.
10916
10917 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10918
10919 * s390-linux-nat.c: Add include.
10920
10921 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10922
10923 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10924 Call linux_get_hwcap.
10925 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10926 Likewise.
10927 (aarch64_linux_get_hwcap): Remove function.
10928 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10929 declaration.
10930 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10931 linux_get_hwcap.
10932 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10933 * linux-tdep.c (linux_get_hwcap): Add function.
10934 (linux_get_hwcap2): Likewise.
10935 * linux-tdep.h (linux_get_hwcap): Add declaration.
10936 (linux_get_hwcap2): Likewise.
10937 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10938 (ppc_linux_get_hwcap2): Likewise.
10939 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10940 linux_get_hwcap.
10941 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10942 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10943 (ppc_linux_nat_target::read_description): Likewise.
10944 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10945 * s390-linux-nat.c: Likewise.
10946 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10947
10948 2019-03-24 Tom Tromey <tom@tromey.com>
10949
10950 * ada-lang.c (standard_lookup): Simplify initialization.
10951 (ada_lookup_symbol_nonlocal): Simplify return.
10952 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10953 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10954 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10955 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10956 initialization.
10957 * solib.c (solib_global_lookup): Simplify.
10958 * symtab.c (null_block_symbol): Remove.
10959 (symbol_cache_lookup): Simplify returns.
10960 (lookup_language_this): Simplify returns.
10961 (lookup_symbol_aux): Simplify return.
10962 (lookup_local_symbol): Simplify returns.
10963 (lookup_global_symbol_from_objfile): Simplify return.
10964 (lookup_symbol_in_objfile_symtabs)
10965 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10966 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10967 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10968 * cp-namespace.c (cp_lookup_bare_symbol)
10969 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10970 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10971 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10972 (cp_lookup_symbol_via_imports): Simplify initialization.
10973 (find_symbol_in_baseclass): Likewise.
10974 * symtab.h (null_block_symbol): Remove.
10975 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10976 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10977 (d_lookup_symbol_module): Likewise.
10978 (find_symbol_in_baseclass): Simplify initialization.
10979
10980 2019-03-24 Tom Tromey <tom@tromey.com>
10981
10982 * expression.h: Don't include symtab.h.
10983 (struct block): Forward declare.
10984
10985 2019-03-24 Tom Tromey <tom@tromey.com>
10986
10987 * c-exp.y (typebase): Remove casts.
10988 * gdbtypes.c (lookup_unsigned_typename, )
10989 (lookup_signed_typename): Remove cast.
10990 * eval.c (parse_to_comma_and_eval): Remove cast.
10991 * parse.c (write_dollar_variable): Remove cast.
10992 * block.h (struct block) <superblock>: Now const.
10993 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10994 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10995 (map_block): Make "block" const.
10996 * symfile.h (struct quick_symbol_functions)
10997 <map_matching_symbols>: Constify block argument to "callback".
10998 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10999 const.
11000 (find_pc_sect_compunit_symtab): Make "b" const.
11001 (find_symbol_at_address): Likewise.
11002 (search_symbols): Likewise.
11003 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11004 (dw2_debug_names_lookup_symbol): Likewise.
11005 (dw2_map_matching_symbols): Update.
11006 * p-valprint.c (pascal_val_print): Remove "block".
11007 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11008 (aux_add_nonlocal_symbols): Make "block" const.
11009 (resolve_subexp): Remove cast.
11010 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11011 const.
11012 (iterate_over_file_blocks): Likewise.
11013 * f-exp.y (%union) <bval>: Remove.
11014 * coffread.c (patch_opaque_types): Make "b" const.
11015 * spu-tdep.c (spu_catch_start): Make "block" const.
11016 * c-valprint.c (print_unpacked_pointer): Remove "block".
11017 * symmisc.c (dump_symtab_1): Make "b" const.
11018 (block_depth): Make "block" const.
11019 * d-exp.y (%union) <bval>: Remove.
11020 * cp-support.h (cp_lookup_rtti_type): Update.
11021 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11022 * psymtab.c (psym_lookup_symbol): Make "block" const.
11023 (maintenance_check_psymtabs): Make "b" const.
11024 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11025 (enumerate_locals, enumerate_args): Update.
11026 * python/py-symtab.c (stpy_global_block): Make "block" const.
11027 (stpy_static_block): Likewise.
11028 * inline-frame.c (block_starting_point_at): Make "new_block"
11029 const.
11030 * block.c (find_block_in_blockvector): Make return type const.
11031 (blockvector_for_pc_sect): Make "b" const.
11032 (find_block_in_blockvector): Make "b" const.
11033
11034 2019-03-23 Tom Tromey <tom@tromey.com>
11035
11036 * varobj.c (varobj_create): Update.
11037 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11038 * printcmd.c (display_command, do_one_display): Don't reset
11039 innermost_block.
11040 * parser-defs.h (enum innermost_block_tracker_type): Move to
11041 expression.h.
11042 (innermost_block): Update comment.
11043 * parse.c (parse_exp_1): Add tracker_types parameter.
11044 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11045 tracker_types parameter. Reset innermost_block.
11046 (parse_exp_in_context): Remove.
11047 (parse_expression_for_completion): Update.
11048 * objfiles.c (~objfile): Don't reset expression_context_block or
11049 innermost_block.
11050 * expression.h (enum innermost_block_tracker_type): Move from
11051 parser-defs.h.
11052 (parse_exp_1): Add tracker_types parameter.
11053 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11054 reset innermost_block.
11055
11056 2019-03-23 Tom Tromey <tom@tromey.com>
11057
11058 * objfiles.h: Include bcache.h.
11059
11060 2019-03-23 Tom Tromey <tom@tromey.com>
11061
11062 * linespec.c (get_current_search_block): Use
11063 scoped_restore_current_language.
11064 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11065
11066 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11067 Jiong Wang <jiong.wang@arm.com>
11068
11069 * aarch64-linux-tdep.c
11070 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11071 section.
11072 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11073
11074 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11075 Jiong Wang <jiong.wang@arm.com>
11076
11077 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11078 instructions.
11079 (aarch64_analyze_prologue_test): Add PACIASP test.
11080 (aarch64_prologue_prev_register): Unmask PC value.
11081
11082 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11083 Jiong Wang <jiong.wang@arm.com>
11084
11085 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11086 (aarch64_dwarf2_prev_register): Unmask PC value.
11087 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11088 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11089 DW_CFA_AARCH64_negate_ra_state.
11090 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11091
11092 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11093 Jiong Wang <jiong.wang@arm.com>
11094
11095 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11096 registers.
11097 (aarch64_pseudo_register_name): Likewise.
11098 (aarch64_pseudo_register_type): Likewise.
11099 (aarch64_pseudo_register_reggroup_p): Likewise.
11100 (aarch64_gdbarch_init): Add pauth registers.
11101 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11102 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11103 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11104 (struct gdbarch_tdep): Add regnum for ra_state.
11105
11106 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11107 Jiong Wang <jiong.wang@arm.com>
11108
11109 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11110
11111 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11112 Jiong Wang <jiong.wang@arm.com>
11113
11114 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11115 function.
11116 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11117 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11118 (aarch64_gdbarch_init): Add puth registers.
11119 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11120 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11121 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11122
11123 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11124 Jiong Wang <jiong.wang@arm.com>
11125
11126 * aarch64-linux-nat.c
11127 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11128 * aarch64-linux-tdep.c
11129 (aarch64_linux_core_read_description): Likewise.
11130 (aarch64_linux_get_hwcap): New function.
11131 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11132 (aarch64_linux_get_hwcap): New declaration.
11133
11134 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11135 Jiong Wang <jiong.wang@arm.com>
11136
11137 * aarch64-linux-nat.c
11138 (aarch64_linux_nat_target::read_description): Add pauth param.
11139 * aarch64-linux-tdep.c
11140 (aarch64_linux_core_read_description): Likewise.
11141 * aarch64-tdep.c (struct target_desc): Add in pauth.
11142 (aarch64_read_description): Add pauth param.
11143 (aarch64_gdbarch_init): Likewise.
11144 * aarch64-tdep.h (aarch64_read_description): Likewise.
11145 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11146 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11147 * features/Makefile: Add new files.
11148 * features/aarch64-pauth.c: New file.
11149 * features/aarch64-pauth.xml: New file.
11150
11151 2019-03-20 Tom Tromey <tromey@adacore.com>
11152
11153 * infrun.c (handle_inferior_event): Rename from
11154 handle_inferior_event_1. Create a scoped_value_mark.
11155 (handle_inferior_event): Remove.
11156
11157 2019-03-19 Tom Tromey <tromey@adacore.com>
11158
11159 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11160 * infrun.h (print_stop_event): Add "displays" parameter.
11161 * infrun.c (print_stop_event): Add "displays" parameter.
11162
11163 2019-03-19 Pedro Alves <palves@redhat.com>
11164
11165 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11166 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11167 to -1. Fix TABs vs spaces.
11168 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11169 * tui/tui-out.h (tui_ui_out) Add intro comments.
11170 <m_line, m_start_of_line>: In-class initialize, and add describing
11171 comment.
11172
11173 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11174
11175 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11176 variable names.
11177 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11178
11179 2019-03-18 Pedro Alves <palves@redhat.com>
11180 Eli Zaretskii <eliz@gnu.org>
11181
11182 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11183 m_line and m_start_of_line.
11184
11185 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11186
11187 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11188 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11189 it returns a newline. This fixes a regression in TU mode, whereby
11190 the next line is output on the same screen line as the user input.
11191
11192 2019-03-18 Tom Tromey <tromey@adacore.com>
11193
11194 * minsyms.c (minimal_symbol_reader::install): Remove call to
11195 obstack_blank.
11196
11197 2019-03-18 Pedro Alves <palves@redhat.com>
11198
11199 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11200 New globals.
11201 (apply_style): New, factored out from ...
11202 (apply_ansi_escape): ... this. Handle reverse video mode.
11203 (tui_set_reverse_mode): New function.
11204 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11205 * tui/tui-winsource.c (tui_show_source_line): Use
11206 tui_set_reverse_mode instead of setting A_STANDOUT.
11207 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11208 New setter methods.
11209
11210 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11211
11212 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11213 Handle tabs.
11214
11215 2019-03-18 Tom Tromey <tromey@adacore.com>
11216
11217 * ada-lang.c (empty_array): Add "high" parameter.
11218 (ada_evaluate_subexp): Update.
11219
11220 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11221
11222 * unittests/string_view-selftests.c: Define
11223 _initialize_string_view_selftests unconditionally.
11224
11225 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11226
11227 PR gdb/24350
11228 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11229
11230 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11231
11232 PR gdb/24351
11233 * windows-nat.c (display_selector): Fix format specifiers.
11234
11235 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11236
11237 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11238 tui_refill_source_window instead of tui_refresh_win, to update the
11239 current execution line. This fixes redisplay of the current line
11240 when stepping through the code with "next" or "step".
11241
11242 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11243
11244 * source-cache.c (source_cache::get_source_lines): Call
11245 find_source_lines to initialize s->nlines. This fixes vertical
11246 scrolling of TUI source window when the DOWN arrow is pressed.
11247
11248 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11249
11250 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11251 linux-thread-db.c (_initialize_thread_db): Likewise.
11252
11253 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11254
11255 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11256 wclrtoeol in tui_show_source_line". This reverts changes made in
11257 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11258
11259 2019-03-15 Tom Tromey <tom@tromey.com>
11260
11261 * symtab.h (struct minimal_symbol): Derive from
11262 general_symbol_info.
11263 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11264 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11265 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11266 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11267 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11268 (MSYMBOL_SEARCH_NAME): Update.
11269 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11270 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11271 * minsyms.c (minimal_symbol_reader::record_full): Update.
11272
11273 2019-03-15 Tom Tromey <tom@tromey.com>
11274
11275 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11276
11277 2019-03-15 Tom Tromey <tom@tromey.com>
11278
11279 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11280 unique_xmalloc_ptr.
11281 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11282 Update.
11283 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11284 (build_minimal_symbol_hash_tables)
11285 (minimal_symbol_reader::install): Update.
11286
11287 2019-03-15 Tom Tromey <tom@tromey.com>
11288
11289 * symtab.c (create_demangled_names_hash): Update.
11290 (symbol_set_names): Update.
11291 * objfiles.h (struct objfile_per_bfd_storage)
11292 <demangled_names_hash>: Now an htab_up.
11293 * objfiles.c (objfile_per_bfd_storage): Simplify.
11294
11295 2019-03-15 Tom Tromey <tom@tromey.com>
11296
11297 * objfiles.h (struct objfile_per_bfd_storage): Declare
11298 destructor.
11299 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11300 New.
11301 (get_objfile_bfd_data): Use new. Don't initialize
11302 language_of_main.
11303 (free_objfile_per_bfd_storage): Remove.
11304 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11305
11306 2019-03-15 Tom Tromey <tom@tromey.com>
11307
11308 * symfile.c (reread_symbols): Update.
11309 * objfiles.c (objfile::objfile): Update.
11310 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11311 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11312 comment.
11313 (minimal_symbol_reader::install): Update.
11314 (terminate_minimal_symbol_table): Remove.
11315 * jit.c (jit_object_close_impl): Update.
11316
11317 2019-03-15 Tom Tromey <tom@tromey.com>
11318
11319 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11320 initializations.
11321
11322 2019-03-15 Tom Tromey <tom@tromey.com>
11323
11324 * objfiles.h (struct objfile_per_bfd_storage)
11325 <demangled_hash_languages>: Now a bitset.
11326 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11327 (lookup_minimal_symbol): Update.
11328
11329 2019-03-15 Tom Tromey <tom@tromey.com>
11330
11331 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11332 Don't return the symbol.
11333 * coffread.c (record_minimal_symbol): Use record_full.
11334
11335 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11336
11337 The MS-Windows port of ncurses fails to switch to a color pair if
11338 one or both of the colors are the implicit default colors. This
11339 change records the default colors when TUI is initialized, and
11340 then specifies them explicitly when a color pair uses the default
11341 colors. This allows color styling in TUI mode on MS-Windows.
11342
11343 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11344 ncurses_norm_attr.
11345 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11346 colors in ncurses_norm_attr.
11347 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11348 "none", replace it with the default color recorded in
11349 ncurses_norm_attr.
11350
11351 2019-03-14 Tom Tromey <tromey@adacore.com>
11352
11353 * source-cache.h (class source_cache) <get_source_lines>: Return
11354 std::string.
11355 * source-cache.c (source_cache::extract_lines): Handle case where
11356 first_pos==npos. Return std::string.
11357 (source_cache::get_source_lines): Update.
11358
11359 2019-03-14 Tom Tromey <tromey@adacore.com>
11360
11361 * NEWS: Add item for "style sources" commands.
11362 * source-cache.c (source_cache::get_source_lines): Check
11363 source_styling.
11364 * cli/cli-style.c (source_styling): New global.
11365 (_initialize_cli_style): Add "style sources" commands.
11366 (show_style_sources): New function.
11367 * cli/cli-style.h (source_styling): Declare.
11368
11369 2019-03-14 Pedro Alves <palves@redhat.com>
11370 Tom Tromey <tromey@adacore.com>
11371
11372 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11373 * tui/tui-winsource.c (tui_refill_source_window): New function,
11374 from...
11375 (tui_horizontal_source_scroll): ... here. Move some logic.
11376 * cli/cli-style.c (set_style_enabled): Notify new observable.
11377 * tui/tui-hooks.c (tui_redisplay_source): New function.
11378 (tui_attach_detach_observers): Attach or detach
11379 tui_redisplay_source.
11380 * observable.h (source_styling_changed): New observable.
11381 * observable.c: Define source_styling_changed observable.
11382
11383 2019-03-13 Tom Tromey <tromey@adacore.com>
11384
11385 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11386 (i386_gnu_nat_target::store_registers): Update.
11387 * target-debug.h (target_debug_print_std_string): New macro.
11388 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11389 * windows-tdep.c (display_one_tib): Update.
11390 * tui/tui-stack.c (tui_make_status_line): Update.
11391 * top.c (print_inferior_quit_action): Update.
11392 * thread.c (thr_try_catch_cmd): Update.
11393 (add_thread_with_info): Update.
11394 (thread_target_id_str): Update.
11395 (thr_try_catch_cmd): Update.
11396 (thread_command): Update.
11397 (thread_find_command): Update.
11398 * record-btrace.c (record_btrace_target::info_record)
11399 (record_btrace_resume_thread, record_btrace_target::resume)
11400 (record_btrace_cancel_resume, record_btrace_step_thread)
11401 (record_btrace_target::wait, record_btrace_target::wait)
11402 (record_btrace_target::wait, record_btrace_target::stop): Update.
11403 * progspace.c (print_program_space): Update.
11404 * process-stratum-target.c
11405 (process_stratum_target::thread_address_space): Update.
11406 * linux-fork.c (linux_fork_mourn_inferior)
11407 (detach_checkpoint_command, info_checkpoints_command)
11408 (linux_fork_context): Update.
11409 (linux_fork_detach): Update.
11410 (class scoped_switch_fork_info): Update.
11411 (delete_checkpoint_command): Update.
11412 * infrun.c (follow_fork_inferior): Update.
11413 (follow_fork_inferior): Update.
11414 (proceed_after_vfork_done): Update.
11415 (handle_vfork_child_exec_or_exit): Update.
11416 (follow_exec): Update.
11417 (displaced_step_prepare_throw): Update.
11418 (displaced_step_restore): Update.
11419 (start_step_over): Update.
11420 (resume_1): Update.
11421 (clear_proceed_status_thread): Update.
11422 (proceed): Update.
11423 (print_target_wait_results): Update.
11424 (do_target_wait): Update.
11425 (context_switch): Update.
11426 (stop_all_threads): Update.
11427 (restart_threads): Update.
11428 (finish_step_over): Update.
11429 (handle_signal_stop): Update.
11430 (switch_back_to_stepped_thread): Update.
11431 (keep_going_pass_signal): Update.
11432 (print_exited_reason): Update.
11433 (normal_stop): Update.
11434 * inferior.c (inferior_pid_to_str): Change return type.
11435 (print_selected_inferior): Update.
11436 (add_inferior): Update.
11437 (detach_inferior): Update.
11438 * dummy-frame.c (fprint_dummy_frames): Update.
11439 * dcache.c (dcache_info_1): Update.
11440 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11441 (btrace_fetch, btrace_clear): Update.
11442 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11443 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11444 type.
11445 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11446 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11447 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11448 * gdbarch.c, gdbarch.h: Rebuild.
11449 * gdbarch.sh (core_pid_to_str): Change return type.
11450 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11451 return type.
11452 (windows_nat_target::pid_to_str): Change return type.
11453 (windows_delete_thread): Update.
11454 (windows_nat_target::attach): Update.
11455 (windows_nat_target::files_info): Update.
11456 * target-delegates.c: Rebuild.
11457 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11458 return type.
11459 (sol_thread_target::pid_to_str): Change return type.
11460 * remote.c (class remote_target) <pid_to_str>: Change return
11461 type.
11462 (remote_target::pid_to_str): Change return type.
11463 (extended_remote_target::attach, remote_target::remote_stop_ns)
11464 (remote_target::remote_notif_remove_queued_reply)
11465 (remote_target::push_stop_reply, remote_target::disable_btrace):
11466 Update.
11467 (extended_remote_target::attach): Update.
11468 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11469 type.
11470 (gdbsim_target::pid_to_str): Change return type.
11471 * ravenscar-thread.c (struct ravenscar_thread_target)
11472 <pid_to_str>: Change return type.
11473 (ravenscar_thread_target::pid_to_str): Change return type.
11474 * procfs.c (class procfs_target) <pid_to_str>: Change return
11475 type.
11476 (procfs_target::pid_to_str): Change return type.
11477 (procfs_target::attach): Update.
11478 (procfs_target::detach): Update.
11479 (procfs_target::fetch_registers): Update.
11480 (procfs_target::store_registers): Update.
11481 (procfs_target::wait): Update.
11482 (procfs_target::files_info): Update.
11483 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11484 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11485 return type.
11486 (nto_procfs_target::pid_to_str): Change return type.
11487 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11488 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11489 return type.
11490 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11491 (exit_lwp): Update.
11492 (attach_proc_task_lwp_callback, get_detach_signal)
11493 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11494 (linux_nat_target::resume, wait_lwp, stop_callback)
11495 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11496 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11497 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11498 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11499 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11500 type.
11501 (inf_ptrace_target::attach): Update.
11502 (inf_ptrace_target::files_info): Update.
11503 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11504 type.
11505 (go32_nat_target::pid_to_str): Change return type.
11506 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11507 (gnu_nat_target::wait): Update.
11508 (gnu_nat_target::wait): Update.
11509 (gnu_nat_target::resume): Update.
11510 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11511 (fbsd_nat_target::wait): Update.
11512 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11513 type.
11514 (darwin_nat_target::attach): Update.
11515 * corelow.c (class core_target) <pid_to_str>: Change return type.
11516 (core_target::pid_to_str): Change return type.
11517 * target.c (normal_pid_to_str): Change return type.
11518 (default_pid_to_str): Likewise.
11519 (target_pid_to_str): Change return type.
11520 (target_translate_tls_address): Update.
11521 (target_announce_detach): Update.
11522 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11523 return type.
11524 (bsd_uthread_target::pid_to_str): Change return type.
11525 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11526 type.
11527 (bsd_kvm_target::pid_to_str): Change return type.
11528 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11529 return type.
11530 (aix_thread_target::pid_to_str): Change return type.
11531 * target.h (struct target_ops) <pid_to_str>: Change return type.
11532 (target_pid_to_str, normal_pid_to_str): Likewise.
11533 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11534 type.
11535 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11536 type.
11537 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11538 return type.
11539 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11540 type.
11541 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11542 type.
11543 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11544 return type.
11545
11546 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11547
11548 * NEWS: Mention that the new default MI version is 3. Mention
11549 changes to the output of commands and events that deal with
11550 multi-location breakpoints.
11551 * breakpoint.c: Include "mi/mi-out.h".
11552 (print_one_breakpoint): Change output syntax if using MI version
11553 >= 3.
11554 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11555 New.
11556 (mi_multi_location_breakpoint_output_fixed): New.
11557 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11558 (mi_cmd_fix_multi_location_breakpoint_output): New.
11559 (mi_multi_location_breakpoint_output_fixed): New.
11560 * mi/mi-cmds.c (mi_cmds): Register command
11561 -fix-multi-location-breakpoint-output.
11562 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11563 interpreter "mi".
11564
11565 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11566
11567 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11568 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11569 instantiate mi_ui_out based on interpreter name.
11570 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11571 * mi/mi-main.c (mi_load_progress): Likewise.
11572
11573 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11574
11575 * NEWS: Combine separate "New targets" sections for 8.3.
11576
11577 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11578
11579 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11580 (ppcfbsd_init_abi): Install gdbarch
11581 "fetch_tls_load_module_address" and "get_thread_local_address"
11582 methods.
11583
11584 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11585
11586 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11587 (riscv_fbsd_init_abi): Install gdbarch
11588 "fetch_tls_load_module_address" and "get_thread_local_address"
11589 methods.
11590
11591 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11592
11593 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11594 (i386fbsd_init_abi): Install gdbarch
11595 "fetch_tls_load_module_address" and "get_thread_local_address"
11596 methods.
11597
11598 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11599
11600 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11601 (amd64fbsd_init_abi): Install gdbarch
11602 "fetch_tls_load_module_address" and "get_thread_local_address"
11603 methods.
11604
11605 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11606
11607 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11608 (struct fbsd_pspace_data): New type.
11609 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11610 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11611 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11612 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11613 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11614
11615 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11616
11617 * gdbtypes.c (lookup_struct_elt): New function.
11618 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11619 * gdbtypes.h (struct struct_elt): New type.
11620 (lookup_struct_elt): New prototype.
11621
11622 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11623
11624 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11625 remove disabled code block.
11626
11627 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11628
11629 * gdbarch.sh (get_thread_local_address): New method.
11630 * gdbarch.h, gdbarch.c: Regenerate.
11631 * target.c (target_translate_tls_address): Use
11632 gdbarch_get_thread_local_address if present instead of
11633 target::get_thread_local_address.
11634
11635 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11636
11637 * target.h (target::get_thread_local_address): Update comment.
11638
11639 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11640
11641 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11642 objfile->separate_debug_objfile_backlink if not NULL.
11643
11644 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11645
11646 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11647 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11648 (amd64bsd_store_inferior_registers): Likewise.
11649 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11650 Enable segment base registers.
11651 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11652 PT_GETFSBASE and PT_GETGSBASE.
11653 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11654 PT_SETGSBASE.
11655 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11656 segment base registers.
11657 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11658
11659 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11660
11661 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11662 Update calls to i386_target_description to add 'segments'
11663 parameter.
11664 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11665 add segment base registers.
11666 * arch/i386.c (i386_create_target_description): Add 'segments'
11667 parameter to enable segment base registers.
11668 * arch/i386.h (i386_create_target_description): Likewise.
11669 * features/i386/32bit-segments.xml: New file.
11670 * features/i386/32bit-segments.c: Generate.
11671 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11672 call to i386_target_description to add 'segments' parameter.
11673 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11674 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11675 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11676 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11677 if feature is present.
11678 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11679 Add 'segments' parameter to call to i386_target_description.
11680 (i386_target_description): Add 'segments' parameter to enable
11681 segment base registers.
11682 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11683 to call to i386_target_description.
11684 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11685 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11686 Define I386_NUM_REGS.
11687 (i386_target_description): Add 'segments' parameter to enable
11688 segment base registers.
11689
11690 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11691
11692 PR/24325
11693 * source-cache.c: #undef open and close, to avoid unresolved
11694 externals during linking.
11695
11696 2019-03-12 Tom Tromey <tromey@adacore.com>
11697
11698 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11699 const. Add initializers.
11700 (_initialize_remote): Don't initialize ptid globals.
11701
11702 2019-03-12 Pedro Alves <palves@redhat.com>
11703
11704 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11705
11706 2019-03-12 Pedro Alves <palves@redhat.com>
11707
11708 * cp-name-parser.y (main): Remove unused 'len' variable.
11709
11710 2019-03-12 Tom Tromey <tromey@adacore.com>
11711
11712 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11713 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11714
11715 2019-03-12 Tom Tromey <tromey@adacore.com>
11716
11717 * linux-nat.c (iterate_over_lwps): Update.
11718 (stop_callback): Remove parameter.
11719 (stop_wait_callback, detach_callback, resume_set_callback)
11720 (select_singlestep_lwp_callback, set_ignore_sigint)
11721 (status_callback, resumed_callback, resume_clear_callback)
11722 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11723 data parameter.
11724 (linux_nat_target::detach, linux_nat_target::resume)
11725 (linux_stop_and_wait_all_lwps, select_event_lwp)
11726 (linux_nat_filter_event, linux_nat_wait_1)
11727 (linux_nat_target::kill, linux_nat_target::stop)
11728 (linux_nat_target::stop): Update.
11729 (linux_nat_resume_callback): Change type.
11730 (resume_stopped_resumed_lwps, count_events_callback)
11731 (select_event_lwp_callback): Likewise.
11732 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11733 * arm-linux-nat.c (struct update_registers_data): Remove.
11734 (update_registers_callback): Change type.
11735 (arm_linux_insert_hw_breakpoint1): Update.
11736 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11737 parameter.
11738 (x86_linux_dr_set_addr): Update.
11739 (x86_linux_dr_set_control): Update.
11740 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11741 (iterate_over_lwps): Use gdb::function_view.
11742 * nat/aarch64-linux-hw-point.c (struct
11743 aarch64_dr_update_callback_param): Remove.
11744 (debug_reg_change_callback): Change type.
11745 (aarch64_notify_debug_reg_change): Update.
11746 * s390-linux-nat.c (s390_refresh_per_info): Update.
11747
11748 2019-03-11 Tom Tromey <tromey@adacore.com>
11749
11750 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11751 redundant assignment to "this_cu".
11752
11753 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11754
11755 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11756
11757 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11758
11759 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11760 from...
11761 (rank_one_type): ... this.
11762
11763 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11764
11765 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11766 from...
11767 (rank_one_type): ... this.
11768
11769 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11770
11771 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11772 from...
11773 (rank_one_type): ... this.
11774
11775 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11776
11777 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11778 from...
11779 (rank_one_type): ... this.
11780
11781 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11782
11783 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11784 from...
11785 (rank_one_type): ... this.
11786
11787 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11788
11789 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11790 from...
11791 (rank_one_type): ... this.
11792
11793 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11794
11795 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11796 from...
11797 (rank_one_type): ... this.
11798
11799 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11800
11801 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11802 from...
11803 (rank_one_type): ... this.
11804
11805 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11806
11807 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11808 from...
11809 (rank_one_type): ... this.
11810
11811 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11812
11813 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11814 from...
11815 (rank_one_type): ... this.
11816
11817 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11818
11819 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11820 from...
11821 (rank_one_type): ... this.
11822
11823 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11824
11825 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11826 from...
11827 (rank_one_type): ... this.
11828
11829 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11830
11831 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11832 inferior-events' shows the example events.
11833
11834 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11835
11836 Support styling on native MS-Windows console
11837
11838 PR/24315
11839 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11840 on MS-Windows if $TERM is not defined.
11841
11842 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11843
11844 * posix-hdep.c (gdb_console_fputs):
11845 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11846 functions.
11847 * ui-file.h (gdb_console_fputs): Add prototype.
11848
11849 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11850 back to fputs only if the former returns zero.
11851
11852 2019-03-07 Tom Tromey <tom@tromey.com>
11853
11854 * symmisc.c (print_symbol_bcache_statistics): Update.
11855 (print_objfile_statistics): Update.
11856 * symfile.c (allocate_symtab): Update.
11857 * stabsread.c: Don't include bcache.h.
11858 * psymtab.h (struct psymbol_bcache): Don't declare.
11859 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11860 (psymbol_bcache_init, psymbol_bcache_free)
11861 (psymbol_bcache_get_bcache): Don't declare.
11862 * psymtab.c (struct psymbol_bcache): Remove.
11863 (psymtab_storage::psymtab_storage): Update.
11864 (psymtab_storage::~psymtab_storage): Update.
11865 (psymbol_bcache_init, psymbol_bcache_free)
11866 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11867 (add_psymbol_to_bcache): Update.
11868 (allocate_psymtab): Update.
11869 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11870 macro_cache>: No longer pointers.
11871 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11872 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11873 * macrotab.c (macro_bcache): Update.
11874 * macroexp.c: Don't include bcache.h.
11875 * gdbtypes.c (check_types_worklist): Update.
11876 (types_deeply_equal): Remove TRY/CATCH. Update.
11877 * elfread.c (elf_symtab_read): Update.
11878 * dwarf2read.c: Don't include bcache.h.
11879 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11880 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11881 (print_bcache_statistics, bcache_memory_used): Don't declare.
11882 (struct bcache): Move from bcache.c. Add constructor, destructor,
11883 methods. Rename all data members.
11884 * bcache.c (struct bcache): Move to bcache.h.
11885 (bcache::expand_hash_table): Rename from expand_hash_table.
11886 (bcache): Remove.
11887 (bcache::insert): Rename from bcache_full.
11888 (bcache::compare): Rename from bcache_compare.
11889 (bcache_xmalloc): Remove.
11890 (bcache::~bcache): Rename from bcache_xfree.
11891 (bcache::print_statistics): Rename from print_bcache_statistics.
11892 (bcache::memory_used): Rename from bcache_memory_used.
11893
11894 2019-03-07 Pedro Alves <palves@redhat.com>
11895
11896 * infrun.c (normal_stop): Also check for
11897 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11898
11899 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11900
11901 * f-lang.c (value_from_host_double): Moved to...
11902 * value.c (value_from_host_double): ...here.
11903 * value.h (value_from_host_double): Declare.
11904 * guile/scm-math.c (vlscm_convert_typed_number): Use
11905 value_from_host_double.
11906 (vlscm_convert_number): Likewise.
11907 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11908 * python/py-value.c (convert_value_from_python): Likewise.
11909
11910 2019-03-06 Tom Tromey <tom@tromey.com>
11911
11912 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11913
11914 2019-03-06 Tom Tromey <tom@tromey.com>
11915
11916 * utils.h (free_current_contents): Don't declare.
11917 * utils.c (free_current_contents): Remove.
11918
11919 2019-03-06 Tom Tromey <tom@tromey.com>
11920
11921 * top.c (quit_force): Update.
11922 * main.c (captured_command_loop): Update.
11923 * common/new-op.c (operator new): Update.
11924 * common/common-exceptions.c (struct catcher)
11925 <save_cleanup_chain>: Remove member.
11926 (exceptions_state_mc_init): Update.
11927 (exception_try_scope_entry): Return nullptr.
11928 (exception_try_scope_exit, exception_rethrow)
11929 (throw_exception_sjlj, throw_exception_cxx): Update.
11930 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11931 (all_cleanups, do_cleanups, discard_cleanups)
11932 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11933 (restore_cleanups, restore_final_cleanups): Don't declare.
11934 (do_final_cleanups): Remove parameter.
11935 * common/cleanups.c (cleanup_chain, make_cleanup)
11936 (make_cleanup_dtor, all_cleanups, do_cleanups)
11937 (discard_my_cleanups, discard_cleanups)
11938 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11939 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11940 (null_cleanup): Remove.
11941 (do_final_cleanups): Remove parameter.
11942
11943 2019-03-06 Tom Tromey <tom@tromey.com>
11944
11945 * remote.c (remote_target::remote_parse_stop_reply): Use
11946 unique_xmalloc_ptr.
11947
11948 2019-03-06 Tom Tromey <tom@tromey.com>
11949
11950 * stabsread.c (struct stabs_field_info): Rename from field_info.
11951 <list, fnlist>: Add initializers.
11952 <obstack>: New member.
11953 (read_member_functions, read_struct_fields, read_baseclasses):
11954 Allocate on obstack. Don't use cleanups.
11955 (read_one_struct_field, read_member_functions, read_struct_fields)
11956 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11957 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11958 (read_struct_type): Update.
11959
11960 2019-03-06 Tom Tromey <tom@tromey.com>
11961
11962 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11963 * common/filestuff.h (make_cleanup_close): Don't declare.
11964 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11965 Remove.
11966
11967 2019-03-06 Tom Tromey <tom@tromey.com>
11968
11969 * solib-aix.c: Use make_scope_exit.
11970
11971 2019-03-06 Tom Tromey <tom@tromey.com>
11972
11973 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11974 Use make_scope_exit.
11975
11976 2019-03-06 Tom Tromey <tom@tromey.com>
11977
11978 * solib-svr4.c (disable_probes_interface): Remove parameter.
11979 (svr4_handle_solib_event): Use make_scope_exit.
11980
11981 2019-03-06 Tom Tromey <tom@tromey.com>
11982
11983 * remote.c (struct stop_reply_deleter): Remove.
11984 (stop_reply_up): Update.
11985 (struct stop_reply): Derive from notif_event. Don't typedef.
11986 <regcache>: Now a std::vector.
11987 (stop_reply_xfree): Remove.
11988 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11989 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11990 (remote_target::discard_pending_stop_replies): Use delete.
11991 (remote_target::remote_parse_stop_reply): Update.
11992 (remote_target::process_stop_reply): Update.
11993 * remote-notif.h (struct notif_event): Add virtual destructor.
11994 Remove "dtr" member.
11995 (struct notif_client) <alloc_event>: Return a unique_ptr.
11996 (notif_event_xfree): Don't declare.
11997 (notif_event_up): New typedef.
11998 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11999 (notif_event_xfree, do_notif_event_xfree): Remove.
12000 (remote_notif_state_xfree): Update.
12001
12002 2019-03-06 Tom Tromey <tom@tromey.com>
12003
12004 * infrun.c (displaced_step_clear_cleanup): Now a
12005 forward_scope_exit type.
12006 (displaced_step_prepare_throw): Update.
12007 (displaced_step_fixup): Update.
12008
12009 2019-03-06 Tom Tromey <tom@tromey.com>
12010
12011 * inferior.h (class inferior): Update comment.
12012 * gdbthread.h (class thread_info): Update comment.
12013
12014 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12015 Tom Tromey <tom@tromey.com>
12016
12017 * stabsread.h (struct stab_section_list): Remove.
12018 (coffstab_build_psymtabs): Update.
12019 * dbxread.c (symbuf_sections): Now a std::vector.
12020 (sect_idx): New global.
12021 (fill_symbuf): Update.
12022 (coffstab_build_psymtabs): Change type of stabsects parameter.
12023 Update.
12024 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12025 std::vector.
12026 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12027 (coff_locate_sections): Update.
12028 (coff_symfile_read): Remove cleanups. Update.
12029 (init_stringtab): Add storage parameter.
12030 (free_stringtab, free_stringtab_cleanup): Remove.
12031 (init_lineno): Add storage parameter.
12032 (free_linetab, free_linetab_cleanup): Remove.
12033
12034 2019-03-06 Pedro Alves <palves@redhat.com>
12035
12036 * linux-fork.c (fork_info::clobber_regs): Delete.
12037 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12038 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12039 comment. Adjust.
12040 (scoped_switch_fork_info::scoped_switch_fork_info)
12041 (checkpoint_command, linux_fork_context): Adjust
12042 fork_save_infrun_state calls.
12043
12044 2019-03-06 Pedro Alves <palves@redhat.com>
12045
12046 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12047 (inf_has_multiple_threads): Return 'bool' and rewrite using
12048 inferior_info::threads().
12049
12050 2019-03-06 Pedro Alves <palves@redhat.com>
12051
12052 * linux-fork.c: Include <list>.
12053 (fork_list): Now a std::list instance.
12054 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12055 (forks_exist_p, find_last_fork): Adjust.
12056 (new_fork): Delete.
12057 (one_fork_p): New.
12058 (add_fork): Adjust.
12059 (free_fork): Delete, folded into fork_info::~fork_info().
12060 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12061 Adjust.
12062 (init_fork_list): Delete.
12063 (linux_fork_killall, linux_fork_mourn_inferior)
12064 (linux_fork_detach, info_checkpoints_command): Adjust.
12065 (_initialize_linux_fork): No longer call init_fork_list.
12066
12067 2019-03-06 Pedro Alves <palves@redhat.com>
12068
12069 * linux-fork.c (new_fork): New, split out of ...
12070 (add_fork): ... this. Return void. Move "first fork" special
12071 case from here, to ...
12072 (checkpoint_command): ... here.
12073 * linux-linux.h (add_fork): Return void.
12074
12075 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12076
12077 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12078
12079 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12080 Chris January <chris.january@arm.com>
12081 David Lecomber <david.lecomber@arm.com>
12082
12083 * f-exp.y: New token, UNOP_INTRINSIC.
12084 (exp): New pattern using UNOP_INTRINSIC token.
12085 (f77_keywords): Add 'abs' keyword.
12086 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12087 (value_from_host_double): New function.
12088 (evaluate_subexp_f): Support UNOP_ABS.
12089
12090 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12091
12092 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12093 types.
12094
12095 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12096
12097 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12098 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12099 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12100
12101 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12102
12103 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12104
12105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12106 Chris January <chris.january@arm.com>
12107
12108 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12109 * f-exp.y: Define 'KIND' token.
12110 (exp): New pattern for KIND expressions.
12111 (ptype): Handle types with a kind extension.
12112 (direct_abs_decl): Extend to spot kind extensions.
12113 (f77_keywords): Add 'kind' to the list.
12114 (push_kind_type): New function.
12115 (convert_to_kind_type): New function.
12116 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12117 * parse.c (operator_length_standard): Likewise.
12118 * parser-defs.h (enum type_pieces): Add tp_kind.
12119 * std-operator.def: Add UNOP_KIND.
12120
12121 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12122
12123 * f-exp.y (f_parse): Set yydebug.
12124
12125 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12126
12127 * f-lang.c (evaluate_subexp_f): New function.
12128 (exp_descriptor_f): New global.
12129 (f_language_defn): Use exp_descriptor_f instead of
12130 exp_descriptor_standard.
12131
12132 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12133
12134 * f-exp.y (struct token): Add comments.
12135 (dot_ops): Remove uppercase versions and the end marker.
12136 (f77_keywords): Likewise.
12137 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12138 entries in the dot_ops array are case insensitive, and use
12139 strncasecmp to compare strings. Also some whitespace cleanup in
12140 this area. Similar for the f77_keywords array, except entries in
12141 this list might be case sensitive.
12142
12143 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12144
12145 * f-exp.y (struct f77_boolean_val): Add comments.
12146 (boolean_values): Remove uppercase versions, and end marker.
12147 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12148 and use strncasecmp to achieve case insensitivity. Additionally,
12149 perform whitespace cleanup around this code.
12150
12151 2019-03-06 Tom Tromey <tromey@adacore.com>
12152
12153 * remote-sim.c (gdbsim_target_open): Use result of
12154 gdb_argv::release.
12155
12156 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12157 Dirk Schubert <dirk.schubert@arm.com>
12158 Chris January <chris.january@arm.com>
12159
12160 * eval.c (evaluate_subexp_standard): Call Fortran argument
12161 wrapping logic.
12162 * f-lang.c (struct value): A value which can be passed into a
12163 Fortran function call.
12164 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12165 where appropriate.
12166 (struct type): Value ready for a Fortran function call.
12167 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12168 is needed.
12169 * f-lang.h (fortran_argument_convert): Declaration.
12170 (fortran_preserve_arg_pointer): Declaration.
12171 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12172
12173 2019-03-05 Tom Tromey <tromey@adacore.com>
12174
12175 * python/py-prettyprint.c (print_string_repr): Remove #if.
12176 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12177
12178 2019-03-05 Tom Tromey <tromey@adacore.com>
12179
12180 * target.c (the_dummy_target): Move later. Change type to
12181 "dummy_target".
12182 (initialize_targets): Don't initialize the_dummy_target.
12183
12184 2019-03-05 Tom Tromey <tromey@adacore.com>
12185
12186 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12187 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12188
12189 2019-03-05 Tom Tromey <tromey@adacore.com>
12190
12191 * windows-nat.c (windows_nat_target::attach)
12192 (windows_nat_target::detach): Don't call gdb_flush.
12193 * valprint.c (generic_val_print, val_print, val_print_string):
12194 Don't call gdb_flush.
12195 * utils.c (defaulted_query): Don't call gdb_flush.
12196 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12197 * target.c (target_announce_detach): Don't call gdb_flush.
12198 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12199 * remote.c (extended_remote_target::attach): Don't call
12200 gdb_flush.
12201 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12202 * printcmd.c (do_examine): Don't call gdb_flush.
12203 (info_display_command): Don't call gdb_flush.
12204 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12205 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12206 * memattr.c (info_mem_command): Don't call gdb_flush.
12207 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12208 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12209 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12210 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12211 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12212 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12213 (gnu_nat_target::detach): Don't call gdb_flush.
12214 * f-valprint.c (f_val_print): Don't call gdb_flush.
12215 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12216 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12217 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12218 gdb_flush.
12219 * c-valprint.c (c_val_print): Don't call gdb_flush.
12220 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12221
12222 2019-03-05 Tom Tromey <tromey@adacore.com>
12223
12224 * varobj.c (update_dynamic_varobj_children): Update.
12225 (install_default_visualizer): Use reset, not release.
12226 * value.c (set_internalvar): Update.
12227 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12228 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12229 ATTRIBUTE_UNUSED_RESULT.
12230
12231 2019-03-05 Tom Tromey <tromey@adacore.com>
12232
12233 * remote.c (class scoped_remote_fd) <release>: Add
12234 ATTRIBUTE_UNUSED_RESULT.
12235
12236 2019-03-05 Tom Tromey <tromey@adacore.com>
12237
12238 * macroexp.c (struct macro_buffer) <release>: Add
12239 ATTRIBUTE_UNUSED_RESULT.
12240
12241 2019-03-05 Tom Tromey <tromey@adacore.com>
12242
12243 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12244 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12245 ATTRIBUTE_UNUSED_RESULT.
12246
12247 2019-03-05 Tom Tromey <tromey@adacore.com>
12248
12249 * common/scoped_fd.h (class scoped_fd) <release>: Add
12250 ATTRIBUTE_UNUSED_RESULT.
12251
12252 2019-03-05 Tom Tromey <tromey@adacore.com>
12253
12254 * parser-defs.h (struct parser_state) <release>: Add
12255 ATTRIBUTE_UNUSED_RESULT.
12256
12257 2019-03-05 Tom Tromey <tromey@adacore.com>
12258
12259 * utils.h (class gdb_argv) <release>: Add
12260 ATTRIBUTE_UNUSED_RESULT.
12261 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12262
12263 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12264
12265 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12266 for-loop range, to avoid compiler warnings.
12267
12268 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12269 avoid compiler warnings about unused variables.
12270
12271 * NEWS: Mention end of support for native debugging on MS-Windows
12272 before XP.
12273
12274 PR gdb/24292
12275 * common/netstuff.c:
12276 * gdbserver/gdbreplay.c
12277 * gdbserver/remote-utils.c:
12278 * ser-tcp.c:
12279 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12280 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12281 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12282 'getaddrinfo' and 'freeaddrinfo' were not available before
12283 Windows XP, and mingw.org's MinGW headers by default define
12284 _WIN32_WINNT to 0x500.
12285
12286 2019-03-01 Gary Benson <gbenson@redhat.com>
12287
12288 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12289
12290 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12291 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12292
12293 PR gdb/8527
12294 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12295 set_sigint_trap, clear_sigint_trap.
12296
12297 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12298
12299 * target.c (target_detach): Clear the regcache and the
12300 frame cache.
12301
12302 2019-02-27 Pedro Alves <palves@redhat.com>
12303
12304 * utils.c (set_screen_size): When we cap the height/width sizes,
12305 tweak the corresponding command variable to show "unlimited":
12306
12307 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12308 Pedro Alves <palves@redhat.com>
12309
12310 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12311 before calling rl_set_screen_size.
12312
12313 2019-02-27 Tom Tromey <tromey@adacore.com>
12314
12315 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12316 define.
12317 * python/py-value.c: Remove Python 2.4 workaround.
12318 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12319 workaround.
12320 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12321 Python 2.4 workaround.
12322 * python/python-internal.h: Remove Python 2.4 comment.
12323 (Py_ssize_t): Don't define.
12324 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12325 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12326 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12327 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12328 * python/python.c (do_start_initialization): Remove Python 2.4
12329 workaround.
12330 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12331 (print_children): Remove Python 2.4 workaround.
12332 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12333 workaround.
12334 (CHARBUFFERPROC_NAME): Remove.
12335 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12336 Python 2.4 workaround.
12337
12338 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12339
12340 * NEWS: Note minimum Python version.
12341
12342 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12343
12344 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12345 code from these functions. Remove corresponding ifdefs. Use
12346 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12347 Remove gotos and target of gotos.
12348 (infpy_search_memory): Likewise.
12349
12350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12351
12352 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12353 (hppa_gdbarch_init): Don't register deleted functions with
12354 gdbarch.
12355
12356 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12357
12358 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12359 (h8300_unwind_sp): Delete.
12360 (h8300_dummy_id): Delete.
12361 (h8300_gdbarch_init): Don't register deleted functions with
12362 gdbarch.
12363
12364 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12365
12366 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12367 (ft32_unwind_pc): Delete.
12368 (ft32_unwind_sp): Delete.
12369 (ft32_gdbarch_init): Don't register deleted functions with
12370 gdbarch.
12371
12372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12375 (frv_unwind_pc): Delete.
12376 (frv_unwind_sp): Delete.
12377 (frv_gdbarch_init): Don't register deleted functions with
12378 gdbarch.
12379
12380 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12381
12382 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12383 (riscv_unwind_pc): Delete.
12384 (riscv_unwind_sp): Delete.
12385 (riscv_gdbarch_init): Don't register deleted functions with
12386 gdbarch.
12387
12388 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12389
12390 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12391 (csky_unwind_pc): Delete.
12392 (csky_unwind_sp): Delete.
12393 (csky_gdbarch_init): Don't register deleted functions with
12394 gdbarch.
12395
12396 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12397
12398 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12399 (cris_unwind_pc): Delete.
12400 (cris_unwind_sp): Delete.
12401 (cris_gdbarch_init): Don't register deleted functions with
12402 gdbarch.
12403
12404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12405
12406 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12407 (bfin_unwind_pc): Delete.
12408 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12409
12410 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12411
12412 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12413 (arm_unwind_pc): Delete.
12414 (arm_unwind_sp): Delete.
12415 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12416
12417 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12420 (arc_unwind_pc): Delete.
12421 (arc_unwind_sp): Delete.
12422 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12423
12424 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12425
12426 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12427 (alpha_unwind_pc): Delete.
12428 (alpha_gdbarch_init): Don't register deleted functions with
12429 gdbarch.
12430
12431 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12434 (aarch64_unwind_pc): Delete.
12435 (aarch64_unwind_sp): Delete.
12436 (aarch64_gdbarch_init): Don't register deleted functions with
12437 gdbarch.
12438
12439 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12440
12441 * gdbtypes.c (type_align): Don't consider static members when
12442 computing structure alignment.
12443
12444 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12445
12446 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12447 return 0 for other types.
12448 * arch-utils.c (default_type_align): Always return 0.
12449 * gdbarch.h: Regenerate.
12450 * gdbarch.sh (type_align): Extend comment.
12451 * gdbtypes.c (type_align): Add additional comments, always call
12452 gdbarch_type_align before applying the default rules.
12453 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12454 generic code will then apply a suitable default.
12455 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12456 types, return 0 for other types.
12457
12458 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12459
12460 * NEWS: Create a new section for the next release branch.
12461 Rename the section of the current branch, now that it has
12462 been cut.
12463
12464 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12465
12466 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12467 * version.in: Bump version to 8.3.50.DATE-git.
12468
12469 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * aix-thread.c (ptid_cmp): Remove unused variable.
12472 (get_signaled_thread): Likewise.
12473 (store_regs_user_thread): Likewise.
12474 (store_regs_kernel_thread): Likewise.
12475 (fetch_regs_kernel_thread): Remove shadowed variable.
12476
12477 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12478
12479 * features/riscv/32bit-cpu.xml: Add register numbers.
12480 * features/riscv/32bit-fpu.c: Regenerate.
12481 * features/riscv/32bit-fpu.xml: Add register numbers.
12482 * features/riscv/64bit-cpu.xml: Add register numbers.
12483 * features/riscv/64bit-fpu.c: Regenerate.
12484 * features/riscv/64bit-fpu.xml: Add register numbers.
12485
12486 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12487
12488 * NEWS: Mention two argument form of gdb.Value constructor.
12489 * python/py-value.c (convert_buffer_and_type_to_value): New
12490 function.
12491 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12492 Add support for handling an optional second argument. Call
12493 convert_buffer_and_type_to_value as appropriate.
12494 * python/python-internal.h (Py_buffer_deleter): New struct.
12495 (Py_buffer_up): New typedef.
12496
12497 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12498
12499 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12500 instead of releasing ownership.
12501
12502 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12503
12504 * dwarf2read.c (open_and_init_dwp_file): Call
12505 elf_numsections instead of bfd_count_sections to initialize
12506 dwp_file->num_sections.
12507
12508 2019-02-25 Tom Tromey <tromey@adacore.com>
12509
12510 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12511
12512 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12513
12514 * gcore.in: Add '--readnever' option when invoking GDB.
12515
12516 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12517
12518 * MAINTAINERS: Update my email address.
12519
12520 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12521
12522 * build-id.c (build_id_to_debug_bfd_1): New function.
12523 (build_id_to_debug_bfd): Look for separate debug file in
12524 sysroot.
12525
12526 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12527
12528 * gdbarch.sh: Update the copyright year range that is placed into
12529 generated files.
12530
12531 2019-02-22 Keith Seitz <keiths@redhat.com>
12532
12533 PR symtab/23853
12534 * linespec.c (create_sals_line_offset): Search for the default
12535 symtab's filename instead of its fullname.
12536
12537 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12538
12539 * NEWS: Update style defaults.
12540
12541 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12542
12543 * main.c (captured_main_1): Disable styling in batch mode.
12544
12545 2019-02-20 Tom Tromey <tom@tromey.com>
12546
12547 * symtab.c (symtab_symbol_info): Fix typos.
12548
12549 2019-02-20 Tom Tromey <tromey@adacore.com>
12550
12551 * findcmd.c (_initialize_mem_search): Use upper case for
12552 metasyntactic variables.
12553
12554 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12555
12556 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12557 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12558
12559 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12560
12561 * top.h (source_file_name): Change to std::string.
12562 * top.c (source_file_name): Likewise.
12563 (command_line_input): Adjust.
12564 * cli/cli-script.c (script_from_file): Adjust.
12565
12566 2019-02-19 Tom Tromey <tromey@adacore.com>
12567
12568 * ravenscar-thread.c
12569 (ravenscar_thread_target::update_thread_list): Don't call
12570 ada_build_task_list.
12571 * ada-lang.h (ada_build_task_list): Don't declare.
12572 * ada-tasks.c (struct ada_tasks_inferior_data)
12573 <task_list_valid_p>: Now bool.
12574 (read_known_tasks, ada_task_list_changed)
12575 (ada_tasks_invalidate_inferior_data): Update.
12576 (read_known_tasks_array): Return bool.
12577 (read_known_tasks_list): Likewise.
12578 (read_known_tasks): Return void.
12579 (ada_build_task_list): Now static.
12580
12581 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12582
12583 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12584 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12585
12586 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12587
12588 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12589 variant for ada_tasks_pspace_data_handle and
12590 ada_tasks_inferior_data_handle.
12591 (ada_tasks_pspace_data_cleanup): New function.
12592 (ada_tasks_inferior_data_cleanup): New function.
12593
12594 2019-02-17 Tom Tromey <tom@tromey.com>
12595
12596 * macrotab.h (macro_source_fullname): Return a std::string.
12597 * macrotab.c (macro_include, check_for_redefinition)
12598 (macro_undef, macro_lookup_definition, foreach_macro)
12599 (foreach_macro_in_scope): Update.
12600 (macro_source_fullname): Return a std::string.
12601 * macrocmd.c (show_pp_source_pos): Update.
12602
12603 2019-02-17 Tom Tromey <tom@tromey.com>
12604
12605 * macrocmd.c (show_pp_source_pos): Style the file names.
12606
12607 2019-02-17 Tom Tromey <tom@tromey.com>
12608
12609 PR tui/24197:
12610 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12611
12612 2019-02-17 Tom Tromey <tom@tromey.com>
12613
12614 * ada-lang.c (user_select_syms): Use filtered printing.
12615 * utils.c (wrap_style): New global.
12616 (desired_style): Remove.
12617 (emit_style_escape): Add stream parameter.
12618 (set_output_style, reset_terminal_style, prompt_for_continue):
12619 Update.
12620 (flush_wrap_buffer): Only flush gdb_stdout.
12621 (wrap_here): Set wrap_style.
12622 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12623 treat escape sequences as a character. Change when wrap buffer is
12624 flushed.
12625 (fputs_styled): Do not set the output style when the default is
12626 requested.
12627 * ui-style.h (struct ui_file_style) <is_default>: New method.
12628 * source.c (print_source_lines_base): Emit escape sequences in one
12629 piece.
12630
12631 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12632
12633 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12634 integers and enumeration types.
12635
12636 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12637
12638 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12639 instead of lookup_symbol_in_language
12640 (do_exact_match): New function.
12641 (ada_get_symbol_name_matcher): Return do_exact_match when
12642 doing a verbatim match.
12643
12644 2019-02-15 Tom Tromey <tromey@adacore.com>
12645
12646 * ravenscar-thread.c (ravenscar_thread_target::resume)
12647 (ravenscar_thread_target::wait): Special case wildcard requests.
12648
12649 2019-02-15 Tom Tromey <tromey@adacore.com>
12650
12651 * ravenscar-thread.c (base_ptid): Remove.
12652 (struct ravenscar_thread_target) <close>: New method.
12653 <m_base_ptid>: New member.
12654 <update_inferior_ptid, active_task, task_is_currently_active,
12655 runtime_initialized>: Declare methods.
12656 <ravenscar_thread_target>: Add constructor.
12657 (ravenscar_thread_target::task_is_currently_active)
12658 (ravenscar_thread_target::update_inferior_ptid)
12659 (ravenscar_runtime_initialized): Rename. Now methods.
12660 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12661 (ravenscar_thread_target::update_thread_list): Update.
12662 (ravenscar_thread_target::active_task): Now method.
12663 (ravenscar_thread_target::store_registers)
12664 (ravenscar_thread_target::prepare_to_store)
12665 (ravenscar_thread_target::prepare_to_store)
12666 (ravenscar_thread_target::mourn_inferior): Update.
12667 (ravenscar_inferior_created): Use "new" to create target.
12668 (ravenscar_thread_target::get_ada_task_ptid): Update.
12669 (_initialize_ravenscar): Don't initialize base_ptid.
12670 (ravenscar_ops): Remove global.
12671
12672 2019-02-15 Tom Tromey <tromey@adacore.com>
12673
12674 * target.h (push_target): Declare new overload.
12675 * target.c (push_target): New overload, taking an rvalue reference.
12676 * remote.c (remote_target::open_1): Use push_target overload.
12677 * corelow.c (core_target_open): Use push_target overload.
12678
12679 2019-02-15 Tom Tromey <tromey@adacore.com>
12680
12681 * ravenscar-thread.c (is_ravenscar_task)
12682 (ravenscar_task_is_currently_active): Return bool.
12683 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12684 (_initialize_ravenscar): Remove "(void)".
12685 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12686 Return bool.
12687
12688 2019-02-15 Tom Tromey <tromey@adacore.com>
12689
12690 * ravenscar-thread.c (ravenscar_runtime_initializer)
12691 (has_ravenscar_runtime, get_running_thread_id)
12692 (ravenscar_thread_target::resume): Fix indentation.
12693
12694 2019-02-15 Tom Tromey <tromey@adacore.com>
12695
12696 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12697 from ravenscar_arch_ops.
12698 (sparc_ravenscar_ops::fetch_registers)
12699 (sparc_ravenscar_ops::store_registers): Now methods.
12700 (sparc_ravenscar_prepare_to_store): Remove.
12701 (sparc_ravenscar_ops): Redefine.
12702 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12703 methods and destructor. Remove members.
12704 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12705 (ravenscar_thread_target::store_registers)
12706 (ravenscar_thread_target::prepare_to_store): Update.
12707 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12708 Remove.
12709 (struct ppc_ravenscar_powerpc_ops): Derive from
12710 ravenscar_arch_ops.
12711 (ppc_ravenscar_powerpc_ops::fetch_registers)
12712 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12713 (ppc_ravenscar_powerpc_ops): Redefine.
12714 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12715 (ppc_ravenscar_e500_ops::fetch_registers)
12716 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12717 (ppc_ravenscar_e500_ops): Redefine.
12718 * aarch64-ravenscar-thread.c
12719 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12720 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12721 (aarch64_ravenscar_fetch_registers)
12722 (aarch64_ravenscar_store_registers): Now methods.
12723 (aarch64_ravenscar_ops): Redefine.
12724
12725 2019-02-15 Tom Tromey <tromey@adacore.com>
12726
12727 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12728 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12729 (ravenscar_thread_target::stopped_by_watchpoint)
12730 (ravenscar_thread_target::stopped_data_address)
12731 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12732
12733 2019-02-15 Tom Tromey <tromey@adacore.com>
12734
12735 * ravenscar-thread.c: Fix some typos.
12736
12737 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12738 Tom Tromey <tromey@adacore.com>
12739
12740 * ada-lang.c (ada_exception_sal): Change addr_string to a
12741 std::string.
12742 (create_ada_exception_catchpoint): Update.
12743
12744 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12745 Tom Tromey <tromey@adacore.com>
12746
12747 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12748 (bp_location_ops): Remove.
12749 (base_breakpoint_allocate_location): Update.
12750 (free_bp_location): Update.
12751 * ada-lang.c (class ada_catchpoint_location)
12752 <ada_catchpoint_location>: Remove ops parameter.
12753 (ada_catchpoint_location_dtor): Remove.
12754 (ada_catchpoint_location_ops): Remove.
12755 (allocate_location_exception): Update.
12756 * breakpoint.h (struct bp_location_ops): Remove.
12757 (class bp_location) <bp_location>: Remove bp_location_ops
12758 parameter.
12759 <~bp_location>: Add destructor.
12760 <ops>: Remove.
12761
12762 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12763 Pedro Alves <palves@redhat.com>
12764
12765 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12766 'PATH_MAX'.
12767
12768 2019-02-14 David Michael <fedora.dm0@gmail.com>
12769 Samuel Thibault <samuel.thibault@gnu.org>
12770 Thomas Schwinge <thomas@codesourcery.com>
12771
12772 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12773 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12774
12775 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12776
12777 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12778 (check_empty): Use "const char *".
12779
12780 * gnu-nat.c (gnu_nat_target::detach): Instead of
12781 'detach_inferior (pid)' call
12782 'detach_inferior (find_inferior_pid (pid))'.
12783
12784 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12785 'nat/fork-inferior.o'.
12786 * gnu-nat.c: #include "nat/fork-inferior.h".
12787
12788 * gnu-nat.c (gnu_nat_target::detach): Instead of
12789 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12790 * gnu-nat.h: #include "inf-child.h".
12791 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12792 'i386_gnu_nat_target::fetch_registers'.
12793 (gnu_store_registers): Rename/move to
12794 'i386_gnu_nat_target::store_registers'.
12795
12796 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12797 * gnu-nat.h (mach_thread_info): New function.
12798 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12799
12800 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12801
12802 2019-02-14 Frederic Konrad <konrad@adacore.com>
12803
12804 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12805
12806 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12807
12808 * windows-nat.c (windows_add_thread): Add new parameter
12809 "main_thread_p" with default value set to false. Update
12810 function documentation as well as all callers.
12811 (windows_delete_thread): Likewise.
12812 (fake_create_process): Update call to windows_add_thread.
12813 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12814 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12815 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12816 call to windows_delete_thread.
12817
12818 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12819
12820 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12821
12822 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12823
12824 * symfile.c (find_separate_debug_file): Use canonical path of
12825 sysroot with child_path instead of gdb_sysroot if it is valid.
12826
12827 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12828
12829 * symfile.c (find_separate_debug_file): Use child_path to
12830 determine if an object file is under a sysroot.
12831
12832 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12833
12834 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12835 unittests/child-path-selftests.c.
12836 * common/pathstuff.c (child_path): New function.
12837 * common/pathstuff.h (child_path): New prototype.
12838 * unittests/child-path-selftests.c: New file.
12839
12840 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12841
12842 * symfile.c (find_separate_debug_file): Look for separate debug
12843 files in debug directories under the sysroot.
12844
12845 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12846
12847 * symtab.h (struct minimal_symbol data_p): New const method.
12848 (struct minimal_symbol text_p): Likewise.
12849 * symtab.c (output_source_filename): Use file name style
12850 to print file name.
12851 (print_symbol_info): Likewise.
12852 (print_msymbol_info): Use address style to print addresses.
12853 Use function name style to print executable text symbols.
12854 (expand_symtab_containing_pc): Use data_p.
12855 (find_pc_sect_compunit_symtab): Likewise.
12856
12857 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12858
12859 * breakpoint.c (describe_other_breakpoints): Use address style
12860 to print addresses.
12861 (say_where): Likewise.
12862
12863 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12864
12865 * ada-typeprint.c (print_func_type): Print function name
12866 style to print function name.
12867 * c-typeprint.c (c_print_type_1): Likewise.
12868
12869 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12870
12871 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12872 for execve.
12873
12874 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12875
12876 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12877 type_stack.
12878
12879 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12880
12881 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12882 TYPE_CODE_REF types.
12883
12884 2019-02-08 Jim Wilson <jimw@sifive.com>
12885
12886 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12887 (riscv_linux_fregset): New.
12888 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12889
12890 2019-02-07 Tom Tromey <tom@tromey.com>
12891
12892 * thread.c (thread_cancel_execution_command): Update.
12893 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12894 methods.
12895 (struct thread_fsm_ops): Remove.
12896 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12897 (thread_fsm_should_stop, thread_fsm_return_value)
12898 (thread_fsm_set_finished, thread_fsm_finished_p)
12899 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12900 Don't declare.
12901 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12902 * infrun.c (clear_proceed_status_thread)
12903 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12904 (print_stop_event): Update.
12905 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12906 Add constructor.
12907 (step_command_fsm_ops): Remove.
12908 (new_step_command_fsm): Remove.
12909 (step_1): Update.
12910 (step_command_fsm::should_stop): Rename from
12911 step_command_fsm_should_stop.
12912 (step_command_fsm::clean_up): Rename from
12913 step_command_fsm_clean_up.
12914 (step_command_fsm::do_async_reply_reason): Rename from
12915 step_command_fsm_async_reply_reason.
12916 (struct until_next_fsm): Inherit from thread_fsm. Add
12917 constructor.
12918 (until_next_fsm_ops): Remove.
12919 (new_until_next_fsm): Remove.
12920 (until_next_fsm::should_stop): Rename from
12921 until_next_fsm_should_stop.
12922 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12923 (until_next_fsm::do_async_reply_reason): Rename from
12924 until_next_fsm_async_reply_reason.
12925 (struct finish_command_fsm): Inherit from thread_fsm. Add
12926 constructor. Change type of breakpoint.
12927 (finish_command_fsm_ops): Remove.
12928 (new_finish_command_fsm): Remove.
12929 (finish_command_fsm::should_stop): Rename from
12930 finish_command_fsm_should_stop.
12931 (finish_command_fsm::clean_up): Rename from
12932 finish_command_fsm_clean_up.
12933 (finish_command_fsm::return_value): Rename from
12934 finish_command_fsm_return_value.
12935 (finish_command_fsm::do_async_reply_reason): Rename from
12936 finish_command_fsm_async_reply_reason.
12937 (finish_command): Update.
12938 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12939 Add constructor.
12940 (call_thread_fsm_ops): Remove.
12941 (call_thread_fsm::call_thread_fsm): Rename from
12942 new_call_thread_fsm.
12943 (call_thread_fsm::should_stop): Rename from
12944 call_thread_fsm_should_stop.
12945 (call_thread_fsm::should_notify_stop): Rename from
12946 call_thread_fsm_should_notify_stop.
12947 (run_inferior_call, call_function_by_hand_dummy): Update.
12948 * cli/cli-interp.c (should_print_stop_to_console): Update.
12949 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12950 Add constructor. Change type of location_breakpoint,
12951 caller_breakpoint.
12952 (until_break_fsm_ops): Remove.
12953 (new_until_break_fsm): Remove.
12954 (until_break_fsm::should_stop): Rename from
12955 until_break_fsm_should_stop.
12956 (until_break_fsm::clean_up): Rename from
12957 until_break_fsm_clean_up.
12958 (until_break_fsm::do_async_reply_reason): Rename from
12959 until_break_fsm_async_reply_reason.
12960 (until_break_command): Update.
12961 * thread-fsm.c: Remove.
12962 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12963
12964 2019-02-07 Tom Tromey <tom@tromey.com>
12965
12966 * yy-remap.h: Add include guard.
12967 * xtensa-tdep.h: Add include guard.
12968 * xcoffread.h: Rename include guard.
12969 * varobj-iter.h: Add include guard.
12970 * tui/tui.h: Rename include guard.
12971 * tui/tui-winsource.h: Rename include guard.
12972 * tui/tui-wingeneral.h: Rename include guard.
12973 * tui/tui-windata.h: Rename include guard.
12974 * tui/tui-win.h: Rename include guard.
12975 * tui/tui-stack.h: Rename include guard.
12976 * tui/tui-source.h: Rename include guard.
12977 * tui/tui-regs.h: Rename include guard.
12978 * tui/tui-out.h: Rename include guard.
12979 * tui/tui-layout.h: Rename include guard.
12980 * tui/tui-io.h: Rename include guard.
12981 * tui/tui-hooks.h: Rename include guard.
12982 * tui/tui-file.h: Rename include guard.
12983 * tui/tui-disasm.h: Rename include guard.
12984 * tui/tui-data.h: Rename include guard.
12985 * tui/tui-command.h: Rename include guard.
12986 * tic6x-tdep.h: Add include guard.
12987 * target/waitstatus.h: Rename include guard.
12988 * target/wait.h: Rename include guard.
12989 * target/target.h: Rename include guard.
12990 * target/resume.h: Rename include guard.
12991 * target-float.h: Rename include guard.
12992 * stabsread.h: Add include guard.
12993 * rs6000-tdep.h: Add include guard.
12994 * riscv-fbsd-tdep.h: Add include guard.
12995 * regformats/regdef.h: Rename include guard.
12996 * record.h: Rename include guard.
12997 * python/python.h: Rename include guard.
12998 * python/python-internal.h: Rename include guard.
12999 * python/py-stopevent.h: Rename include guard.
13000 * python/py-ref.h: Rename include guard.
13001 * python/py-record.h: Rename include guard.
13002 * python/py-record-full.h: Rename include guard.
13003 * python/py-record-btrace.h: Rename include guard.
13004 * python/py-instruction.h: Rename include guard.
13005 * python/py-events.h: Rename include guard.
13006 * python/py-event.h: Rename include guard.
13007 * procfs.h: Add include guard.
13008 * proc-utils.h: Add include guard.
13009 * p-lang.h: Add include guard.
13010 * or1k-tdep.h: Rename include guard.
13011 * observable.h: Rename include guard.
13012 * nto-tdep.h: Rename include guard.
13013 * nat/x86-linux.h: Rename include guard.
13014 * nat/x86-linux-dregs.h: Rename include guard.
13015 * nat/x86-gcc-cpuid.h: Add include guard.
13016 * nat/x86-dregs.h: Rename include guard.
13017 * nat/x86-cpuid.h: Rename include guard.
13018 * nat/ppc-linux.h: Rename include guard.
13019 * nat/mips-linux-watch.h: Rename include guard.
13020 * nat/linux-waitpid.h: Rename include guard.
13021 * nat/linux-ptrace.h: Rename include guard.
13022 * nat/linux-procfs.h: Rename include guard.
13023 * nat/linux-osdata.h: Rename include guard.
13024 * nat/linux-nat.h: Rename include guard.
13025 * nat/linux-namespaces.h: Rename include guard.
13026 * nat/linux-btrace.h: Rename include guard.
13027 * nat/glibc_thread_db.h: Rename include guard.
13028 * nat/gdb_thread_db.h: Rename include guard.
13029 * nat/gdb_ptrace.h: Rename include guard.
13030 * nat/fork-inferior.h: Rename include guard.
13031 * nat/amd64-linux-siginfo.h: Rename include guard.
13032 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13033 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13034 * nat/aarch64-linux.h: Rename include guard.
13035 * nat/aarch64-linux-hw-point.h: Rename include guard.
13036 * mn10300-tdep.h: Add include guard.
13037 * mips-linux-tdep.h: Add include guard.
13038 * mi/mi-parse.h: Rename include guard.
13039 * mi/mi-out.h: Rename include guard.
13040 * mi/mi-main.h: Rename include guard.
13041 * mi/mi-interp.h: Rename include guard.
13042 * mi/mi-getopt.h: Rename include guard.
13043 * mi/mi-console.h: Rename include guard.
13044 * mi/mi-common.h: Rename include guard.
13045 * mi/mi-cmds.h: Rename include guard.
13046 * mi/mi-cmd-break.h: Rename include guard.
13047 * m2-lang.h: Add include guard.
13048 * location.h: Rename include guard.
13049 * linux-record.h: Rename include guard.
13050 * linux-nat.h: Add include guard.
13051 * linux-fork.h: Add include guard.
13052 * i386-darwin-tdep.h: Rename include guard.
13053 * hppa-linux-offsets.h: Add include guard.
13054 * guile/guile.h: Rename include guard.
13055 * guile/guile-internal.h: Rename include guard.
13056 * gnu-nat.h: Rename include guard.
13057 * gdb-stabs.h: Rename include guard.
13058 * frv-tdep.h: Add include guard.
13059 * f-lang.h: Add include guard.
13060 * event-loop.h: Add include guard.
13061 * darwin-nat.h: Rename include guard.
13062 * cp-abi.h: Rename include guard.
13063 * config/sparc/nm-sol2.h: Rename include guard.
13064 * config/nm-nto.h: Rename include guard.
13065 * config/nm-linux.h: Add include guard.
13066 * config/i386/nm-i386gnu.h: Rename include guard.
13067 * config/djgpp/nl_types.h: Rename include guard.
13068 * config/djgpp/langinfo.h: Rename include guard.
13069 * compile/gcc-cp-plugin.h: Add include guard.
13070 * compile/gcc-c-plugin.h: Add include guard.
13071 * compile/compile.h: Rename include guard.
13072 * compile/compile-object-run.h: Rename include guard.
13073 * compile/compile-object-load.h: Rename include guard.
13074 * compile/compile-internal.h: Rename include guard.
13075 * compile/compile-cplus.h: Rename include guard.
13076 * compile/compile-c.h: Rename include guard.
13077 * common/xml-utils.h: Rename include guard.
13078 * common/x86-xstate.h: Rename include guard.
13079 * common/version.h: Rename include guard.
13080 * common/vec.h: Rename include guard.
13081 * common/tdesc.h: Rename include guard.
13082 * common/selftest.h: Rename include guard.
13083 * common/scoped_restore.h: Rename include guard.
13084 * common/scoped_mmap.h: Rename include guard.
13085 * common/scoped_fd.h: Rename include guard.
13086 * common/safe-iterator.h: Rename include guard.
13087 * common/run-time-clock.h: Rename include guard.
13088 * common/refcounted-object.h: Rename include guard.
13089 * common/queue.h: Rename include guard.
13090 * common/ptid.h: Rename include guard.
13091 * common/print-utils.h: Rename include guard.
13092 * common/preprocessor.h: Rename include guard.
13093 * common/pathstuff.h: Rename include guard.
13094 * common/observable.h: Rename include guard.
13095 * common/netstuff.h: Rename include guard.
13096 * common/job-control.h: Rename include guard.
13097 * common/host-defs.h: Rename include guard.
13098 * common/gdb_wait.h: Rename include guard.
13099 * common/gdb_vecs.h: Rename include guard.
13100 * common/gdb_unlinker.h: Rename include guard.
13101 * common/gdb_unique_ptr.h: Rename include guard.
13102 * common/gdb_tilde_expand.h: Rename include guard.
13103 * common/gdb_sys_time.h: Rename include guard.
13104 * common/gdb_string_view.h: Rename include guard.
13105 * common/gdb_splay_tree.h: Rename include guard.
13106 * common/gdb_setjmp.h: Rename include guard.
13107 * common/gdb_ref_ptr.h: Rename include guard.
13108 * common/gdb_optional.h: Rename include guard.
13109 * common/gdb_locale.h: Rename include guard.
13110 * common/gdb_assert.h: Rename include guard.
13111 * common/filtered-iterator.h: Rename include guard.
13112 * common/filestuff.h: Rename include guard.
13113 * common/fileio.h: Rename include guard.
13114 * common/environ.h: Rename include guard.
13115 * common/common-utils.h: Rename include guard.
13116 * common/common-types.h: Rename include guard.
13117 * common/common-regcache.h: Rename include guard.
13118 * common/common-inferior.h: Rename include guard.
13119 * common/common-gdbthread.h: Rename include guard.
13120 * common/common-exceptions.h: Rename include guard.
13121 * common/common-defs.h: Rename include guard.
13122 * common/common-debug.h: Rename include guard.
13123 * common/cleanups.h: Rename include guard.
13124 * common/buffer.h: Rename include guard.
13125 * common/btrace-common.h: Rename include guard.
13126 * common/break-common.h: Rename include guard.
13127 * cli/cli-utils.h: Rename include guard.
13128 * cli/cli-style.h: Rename include guard.
13129 * cli/cli-setshow.h: Rename include guard.
13130 * cli/cli-script.h: Rename include guard.
13131 * cli/cli-interp.h: Rename include guard.
13132 * cli/cli-decode.h: Rename include guard.
13133 * cli/cli-cmds.h: Rename include guard.
13134 * charset-list.h: Add include guard.
13135 * buildsym-legacy.h: Rename include guard.
13136 * bfin-tdep.h: Add include guard.
13137 * ax.h: Rename include guard.
13138 * arm-linux-tdep.h: Add include guard.
13139 * arm-fbsd-tdep.h: Add include guard.
13140 * arch/xtensa.h: Rename include guard.
13141 * arch/tic6x.h: Add include guard.
13142 * arch/i386.h: Add include guard.
13143 * arch/arm.h: Rename include guard.
13144 * arch/arm-linux.h: Rename include guard.
13145 * arch/arm-get-next-pcs.h: Rename include guard.
13146 * arch/amd64.h: Add include guard.
13147 * arch/aarch64-insn.h: Rename include guard.
13148 * arch-utils.h: Rename include guard.
13149 * annotate.h: Add include guard.
13150 * amd64-darwin-tdep.h: Rename include guard.
13151 * aarch64-linux-tdep.h: Add include guard.
13152 * aarch64-fbsd-tdep.h: Add include guard.
13153 * aarch32-linux-nat.h: Add include guard.
13154
13155 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13156
13157 * macrotab.c (macro_define_internal): New function that
13158 factorizes macro_define_object_internal and macro_define_function
13159 code.
13160 (macro_define_object_internal): Use macro_define_internal.
13161 (macro_define_function): Likewise.
13162
13163 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13164
13165 * macrocmd.c (extract_identifier): Return
13166 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13167 callers.
13168
13169 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13170
13171 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13172
13173 2019-02-05 Tom Tromey <tom@tromey.com>
13174
13175 * target.c (target_stack::unpush): Move assertion earlier.
13176
13177 2019-01-30 Tom Tromey <tom@tromey.com>
13178
13179 PR python/23615:
13180 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13181 (gdbpy_parse_and_eval): Likewise.
13182 * python/python-internal.h (gdbpy_allow_threads): New class.
13183
13184 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13185
13186 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13187 (aarch64_fbsd_fpregmap): Move earlier.
13188 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13189 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13190 instead of individual calls to trad_frame_set_reg_addr.
13191 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13192 earlier.
13193 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13194 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13195 instead of individual calls to trad_frame_set_reg_addr.
13196
13197 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13198
13199 * CONTRIBUTE: Replace contribution list with wiki link.
13200
13201 2019-01-25 Tom Tromey <tom@tromey.com>
13202
13203 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13204
13205 2019-01-25 Tom Tromey <tom@tromey.com>
13206
13207 * xtensa-linux-nat.c: Fix common/ includes.
13208 * xml-support.h: Fix common/ includes.
13209 * xml-support.c: Fix common/ includes.
13210 * x86-linux-nat.c: Fix common/ includes.
13211 * windows-nat.c: Fix common/ includes.
13212 * varobj.h: Fix common/ includes.
13213 * varobj.c: Fix common/ includes.
13214 * value.c: Fix common/ includes.
13215 * valops.c: Fix common/ includes.
13216 * utils.c: Fix common/ includes.
13217 * unittests/xml-utils-selftests.c: Fix common/ includes.
13218 * unittests/utils-selftests.c: Fix common/ includes.
13219 * unittests/unpack-selftests.c: Fix common/ includes.
13220 * unittests/tracepoint-selftests.c: Fix common/ includes.
13221 * unittests/style-selftests.c: Fix common/ includes.
13222 * unittests/string_view-selftests.c: Fix common/ includes.
13223 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13224 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13225 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13226 * unittests/rsp-low-selftests.c: Fix common/ includes.
13227 * unittests/parse-connection-spec-selftests.c: Fix common/
13228 includes.
13229 * unittests/optional-selftests.c: Fix common/ includes.
13230 * unittests/offset-type-selftests.c: Fix common/ includes.
13231 * unittests/observable-selftests.c: Fix common/ includes.
13232 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13233 * unittests/memrange-selftests.c: Fix common/ includes.
13234 * unittests/memory-map-selftests.c: Fix common/ includes.
13235 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13236 * unittests/function-view-selftests.c: Fix common/ includes.
13237 * unittests/environ-selftests.c: Fix common/ includes.
13238 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13239 * unittests/common-utils-selftests.c: Fix common/ includes.
13240 * unittests/cli-utils-selftests.c: Fix common/ includes.
13241 * unittests/array-view-selftests.c: Fix common/ includes.
13242 * ui-file.c: Fix common/ includes.
13243 * tui/tui-io.c: Fix common/ includes.
13244 * tracepoint.h: Fix common/ includes.
13245 * tracepoint.c: Fix common/ includes.
13246 * tracefile-tfile.c: Fix common/ includes.
13247 * top.h: Fix common/ includes.
13248 * top.c: Fix common/ includes.
13249 * thread.c: Fix common/ includes.
13250 * target/waitstatus.h: Fix common/ includes.
13251 * target/waitstatus.c: Fix common/ includes.
13252 * target.h: Fix common/ includes.
13253 * target.c: Fix common/ includes.
13254 * target-memory.c: Fix common/ includes.
13255 * target-descriptions.c: Fix common/ includes.
13256 * symtab.h: Fix common/ includes.
13257 * symfile.c: Fix common/ includes.
13258 * stap-probe.c: Fix common/ includes.
13259 * spu-linux-nat.c: Fix common/ includes.
13260 * sparc-nat.c: Fix common/ includes.
13261 * source.c: Fix common/ includes.
13262 * solib.c: Fix common/ includes.
13263 * solib-target.c: Fix common/ includes.
13264 * ser-unix.c: Fix common/ includes.
13265 * ser-tcp.c: Fix common/ includes.
13266 * ser-pipe.c: Fix common/ includes.
13267 * ser-base.c: Fix common/ includes.
13268 * selftest-arch.c: Fix common/ includes.
13269 * s12z-tdep.c: Fix common/ includes.
13270 * rust-exp.y: Fix common/ includes.
13271 * rs6000-aix-tdep.c: Fix common/ includes.
13272 * riscv-tdep.c: Fix common/ includes.
13273 * remote.c: Fix common/ includes.
13274 * remote-notif.h: Fix common/ includes.
13275 * remote-fileio.h: Fix common/ includes.
13276 * remote-fileio.c: Fix common/ includes.
13277 * regcache.h: Fix common/ includes.
13278 * regcache.c: Fix common/ includes.
13279 * record-btrace.c: Fix common/ includes.
13280 * python/python.c: Fix common/ includes.
13281 * python/py-type.c: Fix common/ includes.
13282 * python/py-inferior.c: Fix common/ includes.
13283 * progspace.h: Fix common/ includes.
13284 * producer.c: Fix common/ includes.
13285 * procfs.c: Fix common/ includes.
13286 * proc-api.c: Fix common/ includes.
13287 * printcmd.c: Fix common/ includes.
13288 * ppc-linux-nat.c: Fix common/ includes.
13289 * parser-defs.h: Fix common/ includes.
13290 * osdata.c: Fix common/ includes.
13291 * obsd-nat.c: Fix common/ includes.
13292 * nat/x86-linux.c: Fix common/ includes.
13293 * nat/x86-linux-dregs.c: Fix common/ includes.
13294 * nat/x86-dregs.h: Fix common/ includes.
13295 * nat/x86-dregs.c: Fix common/ includes.
13296 * nat/ppc-linux.c: Fix common/ includes.
13297 * nat/mips-linux-watch.h: Fix common/ includes.
13298 * nat/mips-linux-watch.c: Fix common/ includes.
13299 * nat/linux-waitpid.c: Fix common/ includes.
13300 * nat/linux-ptrace.h: Fix common/ includes.
13301 * nat/linux-ptrace.c: Fix common/ includes.
13302 * nat/linux-procfs.c: Fix common/ includes.
13303 * nat/linux-personality.c: Fix common/ includes.
13304 * nat/linux-osdata.c: Fix common/ includes.
13305 * nat/linux-namespaces.c: Fix common/ includes.
13306 * nat/linux-btrace.h: Fix common/ includes.
13307 * nat/linux-btrace.c: Fix common/ includes.
13308 * nat/fork-inferior.c: Fix common/ includes.
13309 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13310 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13311 * nat/aarch64-linux.c: Fix common/ includes.
13312 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13313 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13314 * namespace.h: Fix common/ includes.
13315 * mips-linux-tdep.c: Fix common/ includes.
13316 * minsyms.c: Fix common/ includes.
13317 * mi/mi-parse.h: Fix common/ includes.
13318 * mi/mi-main.c: Fix common/ includes.
13319 * mi/mi-cmd-env.c: Fix common/ includes.
13320 * memrange.h: Fix common/ includes.
13321 * memattr.c: Fix common/ includes.
13322 * maint.h: Fix common/ includes.
13323 * maint.c: Fix common/ includes.
13324 * main.c: Fix common/ includes.
13325 * machoread.c: Fix common/ includes.
13326 * location.c: Fix common/ includes.
13327 * linux-thread-db.c: Fix common/ includes.
13328 * linux-nat.c: Fix common/ includes.
13329 * linux-fork.c: Fix common/ includes.
13330 * inline-frame.c: Fix common/ includes.
13331 * infrun.c: Fix common/ includes.
13332 * inflow.c: Fix common/ includes.
13333 * inferior.h: Fix common/ includes.
13334 * inferior.c: Fix common/ includes.
13335 * infcmd.c: Fix common/ includes.
13336 * inf-ptrace.c: Fix common/ includes.
13337 * inf-child.c: Fix common/ includes.
13338 * ia64-linux-nat.c: Fix common/ includes.
13339 * i387-tdep.c: Fix common/ includes.
13340 * i386-tdep.c: Fix common/ includes.
13341 * i386-linux-tdep.c: Fix common/ includes.
13342 * i386-linux-nat.c: Fix common/ includes.
13343 * i386-go32-tdep.c: Fix common/ includes.
13344 * i386-fbsd-tdep.c: Fix common/ includes.
13345 * i386-fbsd-nat.c: Fix common/ includes.
13346 * guile/scm-type.c: Fix common/ includes.
13347 * guile/guile.c: Fix common/ includes.
13348 * go32-nat.c: Fix common/ includes.
13349 * gnu-nat.c: Fix common/ includes.
13350 * gdbthread.h: Fix common/ includes.
13351 * gdbarch-selftests.c: Fix common/ includes.
13352 * gdb_usleep.c: Fix common/ includes.
13353 * gdb_select.h: Fix common/ includes.
13354 * gdb_bfd.c: Fix common/ includes.
13355 * gcore.c: Fix common/ includes.
13356 * fork-child.c: Fix common/ includes.
13357 * findvar.c: Fix common/ includes.
13358 * fbsd-nat.c: Fix common/ includes.
13359 * event-top.c: Fix common/ includes.
13360 * event-loop.c: Fix common/ includes.
13361 * dwarf2read.c: Fix common/ includes.
13362 * dwarf2loc.c: Fix common/ includes.
13363 * dwarf2-frame.c: Fix common/ includes.
13364 * dwarf-index-cache.c: Fix common/ includes.
13365 * dtrace-probe.c: Fix common/ includes.
13366 * disasm-selftests.c: Fix common/ includes.
13367 * defs.h: Fix common/ includes.
13368 * csky-tdep.c: Fix common/ includes.
13369 * cp-valprint.c: Fix common/ includes.
13370 * cp-support.h: Fix common/ includes.
13371 * cp-support.c: Fix common/ includes.
13372 * corelow.c: Fix common/ includes.
13373 * completer.h: Fix common/ includes.
13374 * completer.c: Fix common/ includes.
13375 * compile/compile.c: Fix common/ includes.
13376 * compile/compile-loc2c.c: Fix common/ includes.
13377 * compile/compile-cplus-types.c: Fix common/ includes.
13378 * compile/compile-cplus-symbols.c: Fix common/ includes.
13379 * command.h: Fix common/ includes.
13380 * cli/cli-dump.c: Fix common/ includes.
13381 * cli/cli-cmds.c: Fix common/ includes.
13382 * charset.c: Fix common/ includes.
13383 * build-id.c: Fix common/ includes.
13384 * btrace.h: Fix common/ includes.
13385 * btrace.c: Fix common/ includes.
13386 * breakpoint.h: Fix common/ includes.
13387 * breakpoint.c: Fix common/ includes.
13388 * ax.h:
13389 (enum agent_op): Fix common/ includes.
13390 * ax-general.c (struct aop_map): Fix common/ includes.
13391 * ax-gdb.c: Fix common/ includes.
13392 * auxv.c: Fix common/ includes.
13393 * auto-load.c: Fix common/ includes.
13394 * arm-tdep.c: Fix common/ includes.
13395 * arch/riscv.c: Fix common/ includes.
13396 * arch/ppc-linux-common.c: Fix common/ includes.
13397 * arch/i386.c: Fix common/ includes.
13398 * arch/arm.c: Fix common/ includes.
13399 * arch/arm-linux.c: Fix common/ includes.
13400 * arch/arm-get-next-pcs.c: Fix common/ includes.
13401 * arch/amd64.c: Fix common/ includes.
13402 * arch/aarch64.c: Fix common/ includes.
13403 * arch/aarch64-insn.c: Fix common/ includes.
13404 * arch-utils.c: Fix common/ includes.
13405 * amd64-windows-tdep.c: Fix common/ includes.
13406 * amd64-tdep.c: Fix common/ includes.
13407 * amd64-sol2-tdep.c: Fix common/ includes.
13408 * amd64-obsd-tdep.c: Fix common/ includes.
13409 * amd64-nbsd-tdep.c: Fix common/ includes.
13410 * amd64-linux-tdep.c: Fix common/ includes.
13411 * amd64-linux-nat.c: Fix common/ includes.
13412 * amd64-fbsd-tdep.c: Fix common/ includes.
13413 * amd64-fbsd-nat.c: Fix common/ includes.
13414 * amd64-dicos-tdep.c: Fix common/ includes.
13415 * amd64-darwin-tdep.c: Fix common/ includes.
13416 * agent.c: Fix common/ includes.
13417 * ada-lang.h: Fix common/ includes.
13418 * ada-lang.c: Fix common/ includes.
13419 * aarch64-tdep.c: Fix common/ includes.
13420
13421 2019-01-25 Tom Tromey <tom@tromey.com>
13422
13423 * common/create-version.sh: Use common/version.h.
13424
13425 2019-01-24 Pedro Alves <palves@redhat.com>
13426
13427 * infrun.c (signal_stop, signal_print, signal_program)
13428 (signal_catch, signal_pass): Now arrays instead of pointers.
13429 (update_signals_program_target, do_target_resume)
13430 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13431 * linux-nat.c (linux_nat_target::pass_signals)
13432 (linux_nat_target::create_inferior, linux_nat_target::attach):
13433 Adjust.
13434 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13435 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13436 * procfs.c (procfs_target::pass_signals): Adjust.
13437 * record-full.c (record_full_target::resume): Adjust.
13438 * remote.c (remote_target::pass_signals)
13439 (remote_target::program_signals): Adjust.
13440 * target-debug.h (target_debug_print_signals): Now takes a
13441 gdb::array_view as parameter. Adjust.
13442 * target.h (target_ops) <pass_signals, program_signals>: Replace
13443 pointer and length parameters with gdb::array_view.
13444 (target_pass_signals, target_program_signals): Likewise.
13445 * target-delegates.c: Regenerate.
13446
13447 2019-01-24 Pedro Alves <palves@redhat.com>
13448
13449 * common/forward-scope-exit.h
13450 (forward_scope_exit::forward_scope_exit): Pass arguments to
13451 m_bind_function directly, instead of creating a std::bind and
13452 copying that.
13453
13454 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13455
13456 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13457 for static members.
13458 (pass_in_v_vfp_candidate): Likewise.
13459
13460 2019-01-23 Tom Tromey <tom@tromey.com>
13461 Pedro Alves <palves@redhat.com>
13462
13463 * regcache.c (class regcache_invalidator): Remove.
13464 (regcache::raw_write): Use make_scope_exit.
13465
13466 2019-01-23 Tom Tromey <tom@tromey.com>
13467
13468 * ui-out.h (class ui_out_emit_type): Update comment.
13469
13470 2019-01-23 Tom Tromey <tom@tromey.com>
13471
13472 * infrun.c (fetch_inferior_event): Update comment.
13473
13474 2019-01-23 Tom Tromey <tom@tromey.com>
13475 Pedro Alves <palves@redhat.com>
13476
13477 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13478 parameter.
13479 (fetch_inferior_event): Use SCOPE_EXIT.
13480
13481
13482 2019-01-23 Tom Tromey <tom@tromey.com>
13483 Pedro Alves <palves@redhat.com>
13484
13485 * infrun.c (disable_thread_events): Delete.
13486 (stop_all_threads): Use SCOPE_EXIT.
13487
13488 2019-01-23 Tom Tromey <tom@tromey.com>
13489 Pedro Alves <palves@redhat.com>
13490
13491 * symfile.c: Include forward-scope-exit.h.
13492 (clear_symtab_users_cleanup): Replace forward declaration with
13493 a FORWARD_SCOPE_EXIT.
13494 (syms_from_objfile_1): Use the forward_scope_exit and
13495 gdb::optional instead of cleanup_function.
13496 (reread_symbols): Use the forward_scope_exit instead of
13497 cleanup_function.
13498 (clear_symtab_users_cleanup): Remove function.
13499
13500 2019-01-23 Tom Tromey <tom@tromey.com>
13501 Pedro Alves <palves@redhat.com>
13502
13503 * linux-nat.c: Include scope-exit.h.
13504 (cleanup_target_stop): Remove.
13505 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13506 SCOPE_EXIT.
13507
13508 2019-01-23 Tom Tromey <tom@tromey.com>
13509 Pedro Alves <palves@redhat.com>
13510
13511 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13512 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13513
13514 2019-01-23 Tom Tromey <tom@tromey.com>
13515 Andrew Burgess <andrew.burgess@embecosm.com>
13516 Pedro Alves <palves@redhat.com>
13517
13518 * infrun.c (fetch_inferior_event): Use scope_exit.
13519 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13520 * top.c (execute_command): Use scope_exit.
13521 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13522 * utils.c (do_bpstat_clear_actions_cleanup)
13523 (make_bpstat_clear_actions_cleanup): Remove.
13524
13525 2019-01-23 Tom Tromey <tom@tromey.com>
13526 Pedro Alves <palves@redhat.com>
13527
13528 * infrun.c: Include "common/scope-exit.h"
13529 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13530 (wait_for_inferior): Use SCOPE_EXIT.
13531 (fetch_inferior_event): Use scope_exit.
13532
13533 2019-01-23 Tom Tromey <tom@tromey.com>
13534 Pedro Alves <palves@redhat.com>
13535
13536 * breakpoint.c (create_breakpoint): Remove cleanup.
13537
13538 2019-01-23 Tom Tromey <tom@tromey.com>
13539 Andrew Burgess <andrew.burgess@embecosm.com>
13540 Pedro Alves <palves@redhat.com>
13541
13542 2019-01-23 Pedro Alves <palves@redhat.com>
13543
13544 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13545
13546 2019-01-23 Pedro Alves <palves@redhat.com>
13547 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * gdbthread.h: Include "common/forward-scope-exit.h".
13550 (scoped_finish_thread_state): Redefine custom class in terms of
13551 forward_scope_exit.
13552
13553 2019-01-23 Pedro Alves <palves@redhat.com>
13554 Andrew Burgess <andrew.burgess@embecosm.com>
13555
13556 * common/forward-scope-exit.h: New file.
13557
13558 2019-01-23 Pedro Alves <palves@redhat.com>
13559 Andrew Burgess <andrew.burgess@embecosm.com>
13560 Tom Tromey <tom@tromey.com>
13561
13562 * common/scope-exit.h: New file.
13563
13564 2019-01-23 Pedro Alves <palves@redhat.com>
13565
13566 * common/preprocessor.h (ESC): Rename to ...
13567 (ESC_PARENS): ... this.
13568 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13569 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13570
13571 2019-01-23 Tom Tromey <tom@tromey.com>
13572
13573 * language.h (class scoped_switch_to_sym_language_if_auto):
13574 Initialize m_lang in both cases.
13575
13576 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13577
13578 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13579 with XCNEW.
13580
13581 2019-01-22 Tom Tromey <tom@tromey.com>
13582
13583 * corelow.c: Do not include sys/file.h.
13584
13585 2019-01-22 Tom Tromey <tom@tromey.com>
13586
13587 * tui/tui-wingeneral.h: Include gdb_curses.h.
13588
13589 2019-01-22 Tom Tromey <tom@tromey.com>
13590
13591 * source-cache.h (class source_cache) <get_source_lines,
13592 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13593
13594 2019-01-22 Tom Tromey <tom@tromey.com>
13595
13596 * remote-fileio.h (struct remote_target): Declare.
13597
13598 2019-01-22 Tom Tromey <tom@tromey.com>
13599
13600 * python/py-arch.c: Do not include py-ref.h.
13601 * python/py-bpevent.c: Do not include py-ref.h.
13602 * python/py-cmd.c: Do not include py-ref.h.
13603 * python/py-continueevent.c: Do not include py-ref.h.
13604 * python/py-event.h: Do not include py-ref.h.
13605 * python/py-evtregistry.c: Do not include py-ref.h.
13606 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13607 * python/py-frame.c: Do not include py-ref.h.
13608 * python/py-framefilter.c: Do not include py-ref.h.
13609 * python/py-function.c: Do not include py-ref.h.
13610 * python/py-infevents.c: Do not include py-ref.h.
13611 * python/py-linetable.c: Do not include py-ref.h.
13612 * python/py-objfile.c: Do not include py-ref.h.
13613 * python/py-param.c: Do not include py-ref.h.
13614 * python/py-prettyprint.c: Do not include py-ref.h.
13615 * python/py-progspace.c: Do not include py-ref.h.
13616 * python/py-symbol.c: Do not include py-ref.h.
13617 * python/py-symtab.c: Do not include py-ref.h.
13618 * python/py-type.c: Do not include py-ref.h.
13619 * python/py-unwind.c: Do not include py-ref.h.
13620 * python/py-utils.c: Do not include py-ref.h.
13621 * python/py-value.c: Do not include py-ref.h.
13622 * python/py-varobj.c: Do not include py-ref.h.
13623 * python/py-xmethods.c: Do not include py-ref.h.
13624 * python/python.c: Do not include py-ref.h.
13625 * varobj.c: Do not include py-ref.h.
13626
13627 2019-01-22 Tom Tromey <tom@tromey.com>
13628
13629 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13630 keyword for bcache.
13631
13632 2019-01-22 Tom Tromey <tom@tromey.com>
13633
13634 * compile/compile-cplus-types.c: Remove a comment by #include.
13635
13636 2019-01-22 Tom Tromey <tom@tromey.com>
13637
13638 * compile/gcc-c-plugin.h: Include compile-internal.h.
13639
13640 2019-01-22 Tom Tromey <tom@tromey.com>
13641
13642 * stabsread.c (EXTERN): Do not define.
13643 (symnum, next_symbol_text_func, processing_gcc_compilation)
13644 (within_function, global_sym_chain, global_stabs)
13645 (previous_stab_code, this_object_header_files)
13646 (n_this_object_header_files)
13647 (n_allocated_this_object_header_files): Define.
13648 * stabsread.h (EXTERN): Never define. Use "extern".
13649
13650 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13651
13652 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13653 history_value.
13654
13655 2019-01-21 Tom Tromey <tom@tromey.com>
13656
13657 * ui-out.c: Fix includes.
13658 * tui/tui-source.c: Fix includes.
13659 * target.c: Fix includes.
13660 * remote.c: Fix includes.
13661 * regcache.c: Fix includes.
13662 * python/py-block.c: Fix includes.
13663 * printcmd.c: Fix includes.
13664 * or1k-tdep.c: Fix includes.
13665 * mi/mi-main.c: Fix includes.
13666 * m32r-tdep.c: Fix includes.
13667 * csky-tdep.c: Fix includes.
13668 * compile/compile-cplus-types.c: Fix includes.
13669 * cli/cli-interp.c: Fix includes.
13670
13671 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13672
13673 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13674 for padding.
13675
13676 2019-01-16 Tom Tromey <tom@tromey.com>
13677
13678 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13679 earlier.
13680 (struct objfile) <msymbols_range>: Move from top level.
13681 <msymbols>: New method.
13682 (class objfile_msymbols): Remove.
13683 * symtab.c (default_collect_symbol_completion_matches_break_on):
13684 Update.
13685 * symmisc.c (dump_msymbols): Update.
13686 * stabsread.c (scan_file_globals): Update.
13687 * objc-lang.c (info_selectors_command, info_classes_command)
13688 (find_methods): Update.
13689 * minsyms.c (find_solib_trampoline_target): Update.
13690 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13691 * coffread.c (coff_symfile_read): Update.
13692 * ada-lang.c (ada_lookup_simple_minsym)
13693 (ada_collect_symbol_completion_matches): Update.
13694
13695 2019-01-16 Tom Tromey <tom@tromey.com>
13696
13697 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13698 type. Remove no-argument constructor.
13699 <iterator::operator++>: Simplify.
13700 <begin>: Update.
13701 <end>: Use minimal_symbol_count.
13702
13703 2019-01-16 Tom Tromey <tom@tromey.com>
13704
13705 * objfiles.h (struct objfile) <psymtabs>: New method.
13706 (class objfile_psymtabs): Remove.
13707 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13708 typedef.
13709 <range>: New method.
13710 (require_partial_symbols): Change return type.
13711 * psymtab.c (require_partial_symbols)
13712 (psym_expand_symtabs_matching): Update.
13713 * mdebugread.c (parse_partial_symbols): Update.
13714 * dbxread.c (dbx_end_psymtab): Update.
13715
13716 2019-01-15 Tom Tromey <tom@tromey.com>
13717
13718 * symtab.c (lookup_objfile_from_block)
13719 (lookup_symbol_in_objfile_symtabs)
13720 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13721 (find_line_symtab, info_sources_command)
13722 (default_collect_symbol_completion_matches_break_on)
13723 (make_source_files_completion_list): Update.
13724 * symmisc.c (print_objfile_statistics, dump_objfile)
13725 (maintenance_print_symbols, maintenance_info_symtabs)
13726 (maintenance_check_symtabs, maintenance_info_line_tables):
13727 Update.
13728 * source.c (select_source_symtab)
13729 (forget_cached_source_info_for_objfile): Update.
13730 * objfiles.h (class objfile_compunits): Remove.
13731 (struct objfile) <compunits_range>: New typedef.
13732 (compunits): New method.
13733 * objfiles.c (objfile_relocate1): Update.
13734 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13735 * maint.c (count_symtabs_and_blocks): Update.
13736 * linespec.c (iterate_over_all_matching_symtabs): Update.
13737 * cp-support.c (add_symbol_overload_list_qualified): Update.
13738 * coffread.c (coff_symtab_read): Update.
13739 * ada-lang.c (add_nonlocal_symbols)
13740 (ada_collect_symbol_completion_matches)
13741 (ada_add_global_exceptions): Update.
13742
13743 2019-01-15 Tom Tromey <tom@tromey.com>
13744
13745 * progspace.h (program_space) <objfiles_safe_range>: New
13746 typedef.
13747 <objfiles_safe>: New method.
13748 * objfiles.h (class all_objfiles_safe): Remove.
13749 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13750 * jit.c (jit_inferior_exit_hook): Update.
13751
13752 2019-01-17 Tom Tromey <tom@tromey.com>
13753
13754 * progspace.h (program_space) <objfiles_range>: New typedef.
13755 <objfiles>: New method.
13756 <objfiles_head>: Rename from objfiles.
13757 (object_files): Update.
13758 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13759 * guile/scm-pretty-print.c
13760 (ppscm_find_pretty_printer_from_objfiles): Update.
13761 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13762 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13763 Update.
13764 * python/py-progspace.c (pspy_get_objfiles): Update.
13765 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13766 Update.
13767 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13768 (objfpy_lookup_objfile_by_build_id): Update.
13769 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13770 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13771 Update.
13772 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13773 (expand_symtab_containing_pc, lookup_objfile_from_block)
13774 (lookup_static_symbol, basic_lookup_transparent_type)
13775 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13776 (find_line_symtab, info_sources_command)
13777 (default_collect_symbol_completion_matches_break_on)
13778 (make_source_files_completion_list, find_main_name): Update.
13779 * symmisc.c (print_symbol_bcache_statistics)
13780 (print_objfile_statistics, maintenance_print_symbols)
13781 (maintenance_print_msymbols, maintenance_print_objfiles)
13782 (maintenance_info_symtabs, maintenance_check_symtabs)
13783 (maintenance_expand_symtabs, maintenance_info_line_tables):
13784 Update.
13785 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13786 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13787 (map_overlay_command, unmap_overlay_command)
13788 (simple_overlay_update, expand_symtabs_matching)
13789 (map_symbol_filenames): Update.
13790 * symfile-debug.c (set_debug_symfile): Update.
13791 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13792 Update.
13793 * source.c (select_source_symtab, forget_cached_source_info):
13794 Update.
13795 * solib.c (solib_read_symbols): Update.
13796 * solib-spu.c (append_ocl_sos): Update.
13797 * psymtab.c (maintenance_print_psymbols)
13798 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13799 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13800 * printcmd.c (info_symbol_command): Update.
13801 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13802 Update.
13803 * objfiles.h (class all_objfiles): Remove.
13804 * objfiles.c (have_partial_symbols, have_full_symbols)
13805 (have_minimal_symbols, qsort_cmp, update_section_map)
13806 (shared_objfile_contains_address_p)
13807 (default_iterate_over_objfiles_in_search_order): Update.
13808 * objc-lang.c (info_selectors_command, info_classes_command)
13809 (find_methods): Update.
13810 * minsyms.c (find_solib_trampoline_target): Update.
13811 * maint.c (maintenance_info_sections)
13812 (maintenance_translate_address, count_symtabs_and_blocks):
13813 Update.
13814 * main.c (captured_main_1): Update.
13815 * linux-thread-db.c (try_thread_db_load_from_pdir)
13816 (has_libpthread): Update.
13817 * linespec.c (iterate_over_all_matching_symtabs)
13818 (search_minsyms_for_name): Update.
13819 * jit.c (jit_find_objf_with_entry_addr): Update.
13820 * hppa-tdep.c (find_unwind_entry)
13821 (hppa_lookup_stub_minimal_symbol): Update.
13822 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13823 Update.
13824 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13825 (elf_gnu_ifunc_resolve_by_got): Update.
13826 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13827 * dwarf-index-write.c (save_gdb_index_command): Update.
13828 * cp-support.c (add_symbol_overload_list_qualified): Update.
13829 * breakpoint.c (create_overlay_event_breakpoint)
13830 (create_longjmp_master_breakpoint)
13831 (create_std_terminate_master_breakpoint)
13832 (create_exception_master_breakpoint): Update.
13833 * blockframe.c (find_pc_partial_function): Update.
13834 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13835 (ada_collect_symbol_completion_matches)
13836 (ada_add_global_exceptions): Update.
13837
13838 2019-01-17 Tom Tromey <tom@tromey.com>
13839
13840 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13841 declare VEC.
13842 (solib_target_parse_libraries): Change return type.
13843 (library_list_start_segment, library_list_start_section)
13844 (library_list_end_library, library_list_start_library); Update.
13845 (solib_target_free_library_list): Remove.
13846 (solib_target_parse_libraries): Remove cleanup. Change return
13847 type.
13848 (solib_target_current_sos): Update.
13849
13850 2019-01-17 Tom Tromey <tromey@bapiya>
13851
13852 * valprint.c: Replace "the the" with "the".
13853 * symtab.c: Replace "the the" with "the".
13854 * solib.c: Replace "the the" with "the".
13855 * solib-dsbt.c: Replace "the the" with "the".
13856 * linespec.c: Replace "the the" with "the".
13857 * dwarf2loc.h: Replace "the the" with "the".
13858 * amd64-windows-tdep.c: Replace "the the" with "the".
13859 * aarch64-tdep.c: Replace "the the" with "the".
13860
13861 2019-01-16 Keith Seitz <keiths@redhat.com>
13862
13863 PR gdb/23773
13864 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13865 <builder>: Rename to ..
13866 <m_builder>: ... this and make private.
13867 (dwarf2_cu::get_builder): New method. Change all users of
13868 `builder' to use this method.
13869 (dwarf2_start_symtab): Move to ...
13870 (dwarf2_cu::start_symtab): ... here. Update all callers
13871 (setup_type_unit_groups): Move to ...
13872 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13873 callers.
13874 (dwarf2_cu::reset_builder): New method.
13875 (process_full_compunit, process_full_type_unit): Use
13876 dwarf2_cu::reset_builder.
13877 (follow_die_offset): Record the ancestor CU if it is different
13878 from the followed DIE's CU.
13879 (follow_die_sig_1): Likewise.
13880
13881 2019-01-15 Tom Tromey <tom@tromey.com>
13882
13883 * remote.c (class remote_state) <buf>: Now a char_vector.
13884 <buf_size>: Remove.
13885 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13886 parameter.
13887 (remote_target::getpkt_or_notif_sane_1)
13888 (remote_target::getpkt_sane)
13889 (remote_target::getpkt_or_notif_sane): Likewise.
13890 (class remote_target) <putpkt>: New overload.
13891 (remote_target::read_frame): Change type of "buf_p". Remove
13892 sizeof_p parameter.
13893 (packet_ok): New overload.
13894 (packet_check_result): New overload.
13895 Update all uses.
13896
13897 2019-01-14 Tom Tromey <tom@tromey.com>
13898
13899 * remote-notif.c (handle_notification, remote_notif_ack)
13900 (remote_notif_parse): Make "buf" const.
13901 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13902 const.
13903 (remote_notif_parse, remote_notif_ack, handle_notification):
13904 Likewise.
13905 * remote.c (remote_notif_stop_parse): Make "buf" const.
13906 (remote_target::remote_parse_stop_reply): Make "buf" const.
13907 (remote_notif_stop_ack): Make "buf" const.
13908
13909 2019-01-14 Tom Tromey <tom@tromey.com>
13910
13911 * remote.c (remote_console_output): Make parameter const.
13912
13913 2019-01-14 Tom Tromey <tom@tromey.com>
13914
13915 * target-debug.h (target_debug_print_signals): Constify.
13916 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13917 * procfs.c (procfs_target::pass_signals): Update.
13918 * linux-nat.c (linux_nat_target::pass_signals): Update.
13919 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13920 * target-delegates.c: Rebuild.
13921 * remote.c (remote_target::program_signals): Update.
13922 (remote_target::pass_signals): Update.
13923 * target.c (target_pass_signals): Constify argument.
13924 (target_program_signals): Likewise.
13925 * target.h (struct target_ops) <pass_signals, program_signals>:
13926 Constify argument.
13927 (target_pass_signals, target_program_signals): Constify argument.
13928
13929 2019-01-14 Tom Tromey <tom@tromey.com>
13930
13931 PR tui/28819:
13932 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13933
13934 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13935
13936 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13937 field.
13938 * rs6000-tdep.c: Include reggroups.h.
13939 (IS_V_ALIAS_PSEUDOREG): Define.
13940 (rs6000_register_name): Return names for the "vX" aliases.
13941 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13942 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13943 aliases. Call default_register_reggroup_p for all other
13944 pseudo-registers.
13945 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13946 New functions.
13947 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13948 Handle "vX" aliases.
13949 (v_alias_pseudo_register_collect): New function.
13950 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13951 (rs6000_gdbarch_init): Initialize "vX" aliases as
13952 pseudo-registers. Restore registration of
13953 rs6000_pseudo_register_reggroup_p with
13954 set_tdesc_pseudo_register_reggroup_p.
13955
13956 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13957
13958 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13959 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13960 set_gdbarch_num_pseudo_regs.
13961
13962 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13963
13964 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13965 Remove arg prefixname, add do_set and do_show.
13966 Add member functions set_list and show_list.
13967 * cli/cli-style.c (class cli_style_option): Update accordingly.
13968 (style_set_list): Move to file scope.
13969 (style_show_list): Likewise.
13970 (set_style): Call help_list.
13971 (show_style): Call cmd_show_list.
13972 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13973 Update to use the new macro.
13974
13975 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13976
13977 * ada-lang.c (_initialize_ada_language): Expand the help text
13978 for the "catch exception" command.
13979
13980 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13981
13982 * symtab.c (matching_obj_sections): Initialize obj,
13983 declare it closer to its usage.
13984
13985 2019-01-10 Tom Tromey <tom@tromey.com>
13986
13987 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13988 (basic_inf_threads_range): Remove.
13989 (inf_threads_range, inf_non_exited_threads_range)
13990 (safe_inf_threads_range): Use next_adapter.
13991
13992 2019-01-10 Keith Seitz <keiths@redhat.com>
13993
13994 PR gdb/23712
13995 PR symtab/23010
13996 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13997 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13998
13999 2019-01-10 Keith Seitz <keiths@redhat.com>
14000
14001 PR gdb/23712
14002 PR symtab/23010
14003 * dictionary.c (pending_to_vector): Remove.
14004 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14005 Remove _1 suffix, replacing functions of the same name. Update
14006 all callers.
14007 (dict_create_hashed, dict_create_hashed_expandable)
14008 (dict_create_linear, dict_create_linear_expandable, dict_free)
14009 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14010 Make functions static.
14011
14012 2019-01-10 Keith Seitz <keiths@redhat.com>
14013
14014 PR gdb/23712
14015 PR symtab/23010
14016 * dictionary.h (struct dictionary): Replace declaration with
14017 multidictionary.
14018 (dict_create_hashed, dict_create_hashed_expandable)
14019 (dict_create_linear, dict_create_linear_expandable)
14020 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14021 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14022 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14023 taking multidictionary argument.
14024 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14025 * block.h (struct block) <dict>: Change to multidictionary
14026 and rename `multidict'.
14027 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14028 symmisc.c: Update all dictionary references to multidictionary.
14029
14030 2019-01-10 Keith Seitz <keiths@redhat.com>
14031
14032 PR gdb/23712
14033 PR symtab/23010
14034 * dictionary.c: Include unordered_map.
14035 (pending_to_vector): New function.
14036 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14037 Rewrite the non-"_1" functions to take vector instead
14038 of linked list.
14039 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14040 "new" _1 versions of the same name.
14041 (multidictionary): Define.
14042 (std::hash<enum language): New definition.
14043 (collate_pending_symbols_by_language, mdict_create_hashed)
14044 (mdict_create_hashed_expandable, mdict_create_linear)
14045 (mdict_create_linear_expandable, mdict_free)
14046 (find_language_dictionary, create_new_language_dictionary)
14047 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14048 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14049 (mdict_size, mdict_empty): New functions.
14050 * dictionary.h (mdict_iterator): Define.
14051
14052 2019-01-10 Pedro Alves <palves@redhat.com>
14053
14054 * breakpoint.c (read_uploaded_action)
14055 (create_tracepoint_from_upload): Adjust to use
14056 gdb::unique_xmalloc_ptr.
14057 * ctf.c (ctf_write_uploaded_tp):
14058 (SET_ARRAY_FIELD): Use emplace_back.
14059 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14060 * tracefile-tfile.c (tfile_write_uploaded_tp):
14061 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14062 gdb::unique_xmalloc_ptr.
14063 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14064 at_string, cond_string, cmd_strings>: Replace char pointers
14065 with gdb::unique_xmalloc_ptr.
14066
14067 2019-01-10 Pedro Alves <palves@redhat.com>
14068
14069 * solib-target.c (library_list_start_library): Don't xstrdup name.
14070
14071 2019-01-10 Pedro Alves <palves@redhat.com>
14072
14073 * mdebugread.c (parse_partial_symbols): Use
14074 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14075
14076 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14077
14078 * linux-fork.c (scoped_switch_fork_info)
14079 <~scoped_switch_fork_info>: Fix incorrect variable name.
14080
14081 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14082
14083 * linux-fork.c (scoped_switch_fork_info)
14084 <scoped_switch_fork_info>: Make explicit.
14085 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14086
14087 2019-01-10 Tom Tromey <tom@tromey.com>
14088
14089 * objfiles.h (objfile::reset_psymtabs): Update.
14090 * objfiles.c (objfile::objfile): Update.
14091 * psymtab.h (psymtab_storage::obstack): Update.
14092 (psymtab_storage::m_obstack): Use gdb::optional.
14093 (class psymtab_storage): Update comment. Remove objfile
14094 parameter.
14095 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14096
14097 2019-01-10 Tom Tromey <tom@tromey.com>
14098
14099 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14100 <free_psymtabs>: Now private.
14101 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14102 (allocate_psymtab): Use new method.
14103
14104 2019-01-10 Tom Tromey <tom@tromey.com>
14105
14106 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14107 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14108 * mdebugread.c (parse_partial_symbols): Use
14109 allocate_dependencies.
14110 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14111 allocate_dependencies.
14112 (process_psymtab_comp_unit_reader)
14113 (build_type_psymtab_dependencies): Likewise.
14114 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14115
14116 2019-01-10 Tom Tromey <tom@tromey.com>
14117
14118 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14119 PSYMBOL_SET_LANGUAGE.
14120 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14121
14122 2019-01-10 Tom Tromey <tom@tromey.com>
14123
14124 * psymtab.h (psymtab_storage::obstack): New method.
14125 <m_obstack>: Rename from obstack; now private.
14126 * psymtab.c (psymtab_storage): Update.
14127 * dwarf2read.c (create_addrmap_from_index)
14128 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14129 Update.
14130
14131 2019-01-10 Tom Tromey <tom@tromey.com>
14132
14133 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14134 * objfiles.h (objfile::reset_psymtabs): New method.
14135
14136 2019-01-10 Tom Tromey <tom@tromey.com>
14137
14138 * symmisc.c (print_symbol_bcache_statistics): Update.
14139 (print_objfile_statistics): Update.
14140 * symfile.c (reread_symbols): Update.
14141 * psymtab.h (class psymtab_storage): New.
14142 * psymtab.c (psymtab_storage): New constructor.
14143 (~psymtab_storage): New destructor.
14144 (require_partial_symbols): Update.
14145 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14146 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14147 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14148 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14149 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14150 (start_psymtab_common, end_psymtab_common)
14151 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14152 (allocate_psymtab): Update.
14153 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14154 Update.
14155 (dump_psymtab_addrmap, maintenance_print_psymbols)
14156 (maintenance_check_psymtabs): Update.
14157 (class objfile_psymtabs): Move to objfiles.h.
14158 * psympriv.h (discard_psymtab): Now inline.
14159 (psymtab_discarder::psymtab_discarder): Update.
14160 (psymtab_discarder::~psymtab_discarder): Update.
14161 (ALL_OBJFILE_PSYMTABS): Rewrite.
14162 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14163 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14164 Remove fields.
14165 <partial_symtabs>: New field.
14166 (class objfile_psymtabs): Move from psymtab.h. Update.
14167 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14168 psymbol_cache.
14169 (objfile::~objfile): Don't destroy psymbol_cache.
14170 * mdebugread.c (parse_partial_symbols): Update.
14171 * dwarf2read.c (create_addrmap_from_index)
14172 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14173 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14174 (add_partial_subprogram, dwarf2_ranges_read): Update.
14175 * dwarf-index-write.c (write_address_map)
14176 (write_one_signatured_type, recursively_write_psymbols)
14177 (class debug_names, class debug_names, write_psymtabs_to_index):
14178 Update.
14179
14180 2019-01-10 Tom Tromey <tom@tromey.com>
14181
14182 * symtab.h (SYMBOL_SET_NAMES): Update.
14183 (symbol_set_names): Update.
14184 (MSYMBOL_SET_NAMES): Update.
14185 * symtab.c (symbol_set_names): Change argument to be an
14186 objfile_per_bfd_storage.
14187 * psymtab.c (add_psymbol_to_bcache): Update.
14188 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14189
14190 2019-01-10 Tom Tromey <tom@tromey.com>
14191
14192 * symtab.c (create_demangled_names_hash): Change argument to be an
14193 objfile_per_bfd_storage.
14194 (symbol_set_names): Update.
14195
14196 2019-01-10 Tom Tromey <tom@tromey.com>
14197
14198 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14199 init_psymbol_list.
14200 * psymtab.c (init_psymbol_list): Do nothing if already called.
14201 * psympriv.h (init_psymbol_list): Add comment.
14202 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14203 init_psymbol_list.
14204 * dbxread.c (dbx_symfile_read): Unconditionally call
14205 init_psymbol_list.
14206
14207 2019-01-10 Tom Tromey <tom@tromey.com>
14208
14209 * xcoffread.c (scan_xcoff_symtab): Update.
14210 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14211 "where".
14212 * mdebugread.c (parse_partial_symbols)
14213 (handle_psymbol_enumerators): Update.
14214 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14215 * dbxread.c (read_dbx_symtab): Update.
14216 * psympriv.h (psymbol_placement): New enum.
14217 (add_psymbol_to_list): Update.
14218
14219 2019-01-10 Tom Tromey <tom@tromey.com>
14220
14221 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14222 static_psymbols parameters.
14223 (scan_xcoff_symtab): Update.
14224 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14225 static_psymbols parameters.
14226 * psympriv.h (start_psymtab_common): Update.
14227 * mdebugread.c (parse_partial_symbols): Update.
14228 * dwarf2read.c (create_partial_symtab): Update.
14229 * dbxread.c (read_dbx_symtab): Update.
14230 (start_psymtab): Remove global_psymbols and static_psymbols
14231 parameters.
14232
14233 2019-01-10 Tom Tromey <tom@tromey.com>
14234
14235 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14236 * psymtab.c (allocate_psymtab): Add comment.
14237 * psympriv.h (allocate_psymtab): Add comment.
14238 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14239 initializations.
14240 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14241
14242 2019-01-10 Tom Tromey <tom@tromey.com>
14243
14244 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14245 Don't declare.
14246 * mipsread.c: Include mdebugread.h.
14247 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14248 Declare.
14249 * elfread.c: Include mdebugread.h.
14250
14251 2019-01-09 Tom Tromey <tom@tromey.com>
14252
14253 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14254 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14255 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14256 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14257 (psym_lookup_symbol, psym_find_last_source_symtab)
14258 (psym_forget_cached_source_info, psym_print_stats)
14259 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14260 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14261 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14262 (psym_find_compunit_symtab_by_address)
14263 (maintenance_print_psymbols, maintenance_info_psymtabs)
14264 (maintenance_check_psymtabs): Use ranged for.
14265 * psymtab.h (class objfile_psymtabs): New.
14266 (require_partial_symbols): Return objfile_psymtabs.
14267 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14268
14269 2019-01-09 Tom Tromey <tom@tromey.com>
14270
14271 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14272 (find_pc_mapped_section, list_overlays_command)
14273 (map_overlay_command, unmap_overlay_command)
14274 (simple_overlay_update): Use all_objfiles.
14275 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14276 * printcmd.c (info_symbol_command): Use all_objfiles.
14277 * objfiles.h (ALL_OBJSECTIONS): Remove.
14278 * maint.c (maintenance_translate_address): Use all_objfiles.
14279 * gcore.c (gcore_create_callback): Use all_objfiles.
14280 (objfile_find_memory_regions): Likewise.
14281
14282 2019-01-09 Tom Tromey <tom@tromey.com>
14283
14284 * symtab.c (find_line_symtab, info_sources_command)
14285 (make_source_files_completion_list): Use objfile_compunits.
14286 * source.c (select_source_symtab): Use objfile_compunits.
14287 * objfiles.h (struct objfile): Update comment.
14288 (ALL_OBJFILES): Remove.
14289 (ALL_FILETABS): Remove.
14290 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14291 objfile_compunits.
14292
14293 2019-01-09 Tom Tromey <tom@tromey.com>
14294
14295 * symmisc.c (print_objfile_statistics, dump_objfile)
14296 (maintenance_print_symbols): Use compunit_filetabs.
14297 * source.c (forget_cached_source_info_for_objfile): Use
14298 compunit_filetabs.
14299 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14300 (ALL_FILETABS): Use compunit_filetabs.
14301 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14302 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14303
14304 2019-01-09 Tom Tromey <tom@tromey.com>
14305
14306 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14307 (compunit_filetabs): New.
14308 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14309 compunit_filetabs.
14310 (info_sources_command, make_source_files_completion_list): Remove
14311 declaration.
14312 * symmisc.c (print_objfile_statistics, dump_objfile)
14313 (maintenance_print_symbols): Remove declaration.
14314 (maintenance_info_symtabs): Use compunit_filetabs.
14315 (maintenance_info_line_tables): Likewise.
14316 * source.c (select_source_symtab): Change local variable name.
14317 (forget_cached_source_info_for_objfile): Remove declaration.
14318 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14319 * objfiles.c (objfile_relocate1): Remove declaration.
14320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14321 declaration.
14322 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14323 * coffread.c (coff_symtab_read): Remove declaration.
14324 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14325 compunit_filetabs.
14326
14327 2019-01-09 Tom Tromey <tom@tromey.com>
14328
14329 * symtab.c (lookup_objfile_from_block)
14330 (find_pc_sect_compunit_symtab, search_symbols)
14331 (default_collect_symbol_completion_matches_break_on): Use
14332 objfile_compunits.
14333 * objfiles.h (ALL_COMPUNITS): Remove.
14334 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14335 * cp-support.c (add_symbol_overload_list_qualified): Use
14336 objfile_compunits.
14337 * ada-lang.c (ada_collect_symbol_completion_matches)
14338 (ada_add_global_exceptions): Use objfile_compunits.
14339
14340 2019-01-09 Tom Tromey <tom@tromey.com>
14341
14342 * source.c (select_source_symtab)
14343 (forget_cached_source_info_for_objfile): Remove declaration.
14344 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14345 declaration.
14346 * maint.c (count_symtabs_and_blocks): Remove declaration.
14347 * cp-support.c (add_symbol_overload_list_qualified): Remove
14348 declaration.
14349 * coffread.c (coff_symtab_read): Remove declaration.
14350 * symtab.c (lookup_symbol_in_objfile_symtabs)
14351 (basic_lookup_transparent_type_1): Use objfile_compunits.
14352 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14353 (info_sources_command, search_symbols)
14354 (default_collect_symbol_completion_matches_break_on)
14355 (make_source_files_completion_list): Remove declaration.
14356 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14357 (ada_collect_symbol_completion_matches)
14358 (ada_add_global_exceptions): Remove declaration.
14359 * linespec.c (iterate_over_all_matching_symtabs): Use
14360 objfile_compunits.
14361 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14362 (class objfile_compunits): New.
14363 (ALL_COMPUNITS): Use objfile_compunits.
14364 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14365 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14366 objfile_compunits.
14367 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14368
14369 2019-01-09 Tom Tromey <tom@tromey.com>
14370
14371 * symtab.c (search_symbols)
14372 (default_collect_symbol_completion_matches_break_on): Use
14373 objfile_msymbols.
14374 * ada-lang.c (ada_lookup_simple_minsym)
14375 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14376 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14377 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14378 objfile_msymbols.
14379 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14380 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14381 * objc-lang.c (find_methods): Use objfile_msymbols.
14382 (info_selectors_command, info_classes_command): Likewise.
14383 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14384 * objfiles.h (class objfile_msymbols): New.
14385 (ALL_OBJFILE_MSYMBOLS): Remove.
14386 (ALL_MSYMBOLS): Remove.
14387
14388 2019-01-09 Tom Tromey <tom@tromey.com>
14389
14390 * common/next-iterator.h (next_adapter): Add Iterator template
14391 parameter.
14392 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14393 (class all_objfiles_safe): New.
14394 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14395 * objfiles.c (put_objfile_before): Update comment.
14396 (add_separate_debug_objfile): Likewise.
14397 (free_all_objfiles): Use all_objfiles_safe.
14398 (objfile_purge_solibs): Likewise.
14399
14400 2019-01-09 Tom Tromey <tom@tromey.com>
14401
14402 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14403 (expand_symtab_containing_pc, lookup_static_symbol)
14404 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14405 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14406 all_objfiles.
14407 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14408 * breakpoint.c (create_overlay_event_breakpoint)
14409 (create_longjmp_master_breakpoint)
14410 (create_std_terminate_master_breakpoint)
14411 (create_exception_master_breakpoint): Use all_objfiles.
14412 * linux-thread-db.c (try_thread_db_load_from_pdir)
14413 (has_libpthread): Use all_objfiles.
14414 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14415 * linespec.c (iterate_over_all_matching_symtabs)
14416 (search_minsyms_for_name): Use all_objfiles.
14417 * maint.c (maintenance_info_sections): Use all_objfiles.
14418 * main.c (captured_main_1): Use all_objfiles.
14419 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14420 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14421 * guile/scm-pretty-print.c
14422 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14423 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14424 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14425 (maintenance_print_msymbols): Use all_objfiles.
14426 * source.c (select_source_symtab): Use all_objfiles.
14427 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14428 * symfile.c (remove_symbol_file_command)
14429 (expand_symtabs_matching, map_symbol_filenames): Use
14430 all_objfiles.
14431 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14432 all_objfiles.
14433 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14434 * objc-lang.c (find_methods): Use all_objfiles.
14435 * objfiles.c (have_partial_symbols, have_full_symbols)
14436 (have_minimal_symbols, qsort_cmp)
14437 (default_iterate_over_objfiles_in_search_order): Use
14438 all_objfiles.
14439 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14440 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14441 (maintenance_check_psymtabs): Use all_objfiles.
14442 (ALL_PSYMTABS): Remove.
14443 * compile/compile-object-run.c (do_module_cleanup): Use
14444 all_objfiles.
14445 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14446 * cp-support.c (add_symbol_overload_list_qualified): Use
14447 all_objfiles.
14448 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14449 Use all_objfiles.
14450 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14451 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14452 all_objfiles.
14453 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14454 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14455 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14456 Uses all_objfiles.
14457 * solib.c (solib_read_symbols): Use all_objfiles
14458
14459 2019-01-09 Tom Tromey <tom@tromey.com>
14460
14461 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14462 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14463 all_objfiles.
14464 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14465 * symmisc.c (print_symbol_bcache_statistics)
14466 (print_objfile_statistics, maintenance_print_objfiles)
14467 (maintenance_info_symtabs, maintenance_check_symtabs)
14468 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14469 all_objfiles.
14470 * source.c (forget_cached_source_info): Use all_objfiles.
14471 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14472 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14473 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14474 * objfiles.c (update_section_map): Use all_objfiles.
14475 (shared_objfile_contains_address_p): Likewise.
14476 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14477 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14478
14479 2019-01-09 Tom Tromey <tom@tromey.com>
14480
14481 * common/next-iterator.h: New file.
14482 * objfiles.h (class all_objfiles): New.
14483 (struct objfile_iterator): New.
14484
14485 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14486
14487 * NEWS: Move the description of the changed "frame", "select-frame",
14488 and "info frame" commands to the Changed commands section.
14489
14490 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14491
14492 * gdbtypes.c (check_stub_method_group): Remove handling of old
14493 mangling schemes.
14494 * linespec.c (find_methods): Likewise.
14495 * stabsread.c (read_member_functions): Likewise.
14496 * valops.c (search_struct_method): Likewise.
14497 (value_struct_elt_for_reference): Likewise.
14498 * NEWS: Mention this change.
14499
14500 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14501
14502 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14503 print_source_lines.
14504 * source.c (print_source_lines_base): Update line number check.
14505 (print_source_lines): New function.
14506 (source_lines_range::source_lines_range): New function.
14507 * source.h (class source_lines_range): New class.
14508 (print_source_lines): New declaration.
14509
14510 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14511
14512 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14513
14514 2019-01-08 Tom Tromey <tom@tromey.com>
14515 Simon Marchi <simon.marchi@ericsson.com>
14516
14517 PR gdb/24060
14518 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14519 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14520 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14521 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14522 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14523 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14524
14525 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14526
14527 * source.c (select_source_symtab): Move header comment to
14528 declaration in source.h.
14529 (forget_cached_source_info_for_objfile): Likewise.
14530 (forget_cached_source_info): Likewise.
14531 (identify_source_line): Likewise.
14532 * source.h (identify_source_line): Move declaration from symtab.h
14533 and add comment from source.c
14534 (print_source_lines): Likewise.
14535 (forget_cached_source_info_for_objfile): Likewise.
14536 (forget_cached_source_info): Likewise.
14537 (select_source_symtab): Likewise.
14538 (enum print_source_lines_flag): Move definition from symtab.h.
14539 * symtab.h (identify_source_line): Move declaration to source.h.
14540 (print_source_lines): Likewise.
14541 (forget_cached_source_info_for_objfile): Likewise.
14542 (forget_cached_source_info): Likewise.
14543 (select_source_symtab): Likewise.
14544 (enum print_source_lines_flag): Move definition to source.h.
14545 * tui/tui-hooks.c: Add 'source.h' include.
14546
14547 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14548
14549 * source.c (print_source_lines_base): Handle requests to print
14550 reverse line number sequences, and guard against empty lines
14551 string.
14552
14553 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14554
14555 * source.c (print_source_lines_base): Fix skip of '\r' if next
14556 character is '\n'.
14557
14558 2019-01-06 Tom Tromey <tom@tromey.com>
14559
14560 * c-exp.y (struct c_parse_state) <macro_original_text,
14561 expansion_obstack>: New member.
14562 (macro_original_text, expansion_obstack): Remove globals.
14563 (scan_macro_expansion, scanning_macro_expansion)
14564 (finished_macro_expansion): Update.
14565 (scan_macro_cleanup): Remove.
14566 (yylex, c_parse): Update.
14567
14568 2019-01-06 Tom Tromey <tom@tromey.com>
14569
14570 * c-exp.y (struct c_parse_state) <strings>: New member.
14571 (operator_stoken): Update.
14572
14573 2019-01-06 Tom Tromey <tom@tromey.com>
14574
14575 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14576 (union type_stack_elt) <typelist_val>: Now a pointer to
14577 std::vector.
14578 (type_stack_cleanup): Don't declare.
14579 (push_typelist): Update.
14580 * parse.c (pop_typelist): Return a std::vector.
14581 (push_typelist): Take a std::vector.
14582 (follow_types): Update. Do not free args.
14583 (type_stack_cleanup): Remove.
14584 * c-exp.y (struct c_parse_state): New.
14585 (cpstate): New global.
14586 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14587 (nonempty_typelist): Update.
14588 (func_mod): Create a new vector.
14589 (c_parse): Create a c_parse_state.
14590 (check_parameter_typelist): Do not delete params.
14591 (function_method): Update. Do not delete type_list.
14592
14593 2019-01-06 Tom Tromey <tom@tromey.com>
14594
14595 PR gdb/28155:
14596 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14597 check_typedef.
14598 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14599 (print_return_value): Likewise.
14600
14601 2019-01-05 Tom Tromey <tom@tromey.com>
14602
14603 * contrib/cleanup_check.py: Remove.
14604 * contrib/gcc-with-excheck: Remove.
14605 * contrib/exsummary.py: Remove.
14606 * contrib/excheck.py: Remove.
14607
14608 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14609
14610 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14611 NULL. Initialize tpprev to NULL instead of assigning it
14612 to NULL on the next statement.
14613 * windows-nat.c (windows_delete_thread): Remove check for
14614 main_thread_id before printing thread exit notifications.
14615 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14616 Remove thread ID check against main_thread_id.
14617 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14618 windows_delete_thread.
14619 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14620
14621 2019-01-04 Tom Tromey <tom@tromey.com>
14622
14623 * compile/compile.c (_initialize_compile): Use upper case for
14624 metasyntactic variables.
14625 * symmisc.c (_initialize_symmisc): Use upper case for
14626 metasyntactic variables.
14627 * psymtab.c (_initialize_psymtab): Use upper case for
14628 metasyntactic variables.
14629 * demangle.c (demangle_command): Use upper case for metasyntactic
14630 variables.
14631 (_initialize_demangler): Likewise.
14632 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14633 variables.
14634
14635 2019-01-03 Tom Tromey <tom@tromey.com>
14636
14637 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14638
14639 2019-01-03 Tom Tromey <tom@tromey.com>
14640
14641 * python/py-symtab.c (salpy_str): Update.
14642 (struct salpy_sal_object) <symtab>: Now a PyObject.
14643 (salpy_dealloc): Update.
14644 (del_objfile_sal): Use gdbpy_ref.
14645
14646 2019-01-03 Tom Tromey <tom@tromey.com>
14647
14648 * python/py-type.c (convert_field): Use new_reference. Return
14649 gdbpy_ref.
14650 (make_fielditem): Return gdbpy_ref.
14651 (typy_fields): Update.
14652 (typy_getitem): Update.
14653 (field_name): Return gdbpy_ref. Use new_reference.
14654 (typy_iterator_iternext): Update.
14655
14656 2019-01-03 Tom Tromey <tom@tromey.com>
14657
14658 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14659
14660 2019-01-03 Tom Tromey <tom@tromey.com>
14661
14662 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14663 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14664 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14665 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14666 (pspy_set_type_printers): Likewise.
14667 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14668 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14669 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14670 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14671 (objfpy_set_type_printers): Likewise.
14672
14673 2019-01-03 Tom Tromey <tom@tromey.com>
14674
14675 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14676 (gdbpy_print_stack): Use gdbpy_err_fetch.
14677 * python/python-internal.h (class gdbpy_err_fetch): New class.
14678 (class gdbpy_enter) <m_error_type, m_error_value,
14679 m_error_traceback>: Remove.
14680 <m_error>: New member.
14681 (gdbpy_exception_to_string): Don't declare.
14682 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14683 * python/py-value.c (convert_value_from_python): Use
14684 gdbpy_err_fetch.
14685 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14686 gdbpy_exception_to_string.
14687 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14688 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14689 gdbpy_err_fetch.
14690
14691 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14692
14693 * linux-nat.c (delete_lwp_cleanup): Delete.
14694 (struct lwp_deleter): New struct.
14695 (lwp_info_up): New typedef.
14696 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14697 lwp_info_up.
14698
14699 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14700
14701 * linux-fork.c (class scoped_switch_fork_info): New class.
14702 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14703
14704 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14705
14706 * valops.c (find_overload_match): Remove use of null_cleanup, and
14707 calls to do_cleanups.
14708
14709 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14710
14711 * compile/compile-cplus-types.c
14712 (compile_cplus_instance::decl_name): Handle changes to
14713 cp_func_name.
14714 * cp-support.c (cp_func_name): Update header comment, update
14715 return type.
14716 * cp-support.h (cp_func_name): Update return type in declaration.
14717 * valops.c (find_overload_match): Move temp_func local to top
14718 level of function and change its type. Use temp_func to hold and
14719 delete temporary string obtained from cp_func_name.
14720
14721 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14722
14723 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14724 gdb::char_vector, remove cleanup, and update uses of `msg`.
14725
14726 2019-01-03 Jim Wilson <jimw@sifive.com>
14727
14728 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14729
14730 2019-01-02 Tom Tromey <tom@tromey.com>
14731
14732 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14733 (tdesc_parse_xml): Remove cleanups.
14734 * target-descriptions.h (make_cleanup_free_target_description):
14735 Don't declare.
14736 (target_desc_deleter): New struct.
14737 (target_desc_up): New typedef.
14738 * target-descriptions.c (target_desc_deleter::operator()): Rename
14739 from free_target_description.
14740 (make_cleanup_free_target_description): Remove.
14741
14742 2019-01-02 Tom Tromey <tom@tromey.com>
14743
14744 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14745 constructor, destructor.
14746 (linespec_parser): Remove typedef.
14747 (~linespec_parser): Rename from linespec_parser_delete.
14748 (linespec_lex_to_end, linespec_complete_label)
14749 (linespec_complete): Update.
14750 (decode_line_full): Remove cleanups.
14751 (decode_line_1): Update.
14752
14753 2019-01-02 Tom Tromey <tom@tromey.com>
14754
14755 * python/python-internal.h (inferior_to_inferior_object): Change
14756 return type.
14757 * python/py-exitedevent.c (create_exited_event_object): Update.
14758 * python/py-inferior.c (inferior_to_inferior_object): Return
14759 gdbpy_ref.
14760 (python_new_inferior, python_inferior_deleted)
14761 (thread_to_thread_object, delete_thread_object)
14762 (build_inferior_list, gdbpy_selected_inferior): Update.
14763 * python/py-infthread.c (create_thread_object): Update. Also fail
14764 if inferior_to_inferior_object fails.
14765
14766 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14767
14768 * inferior.h (class inferior) <displaced_step_state>: New field.
14769 * infrun.h (struct displaced_step_state): Move here from
14770 infrun.c. Initialize fields, add constructor.
14771 <inf>: Remove field.
14772 <reset>: New method.
14773 * infrun.c (struct displaced_step_inferior_state): Move to
14774 infrun.h.
14775 (displaced_step_inferior_states): Remove.
14776 (get_displaced_stepping_state): Adust.
14777 (displaced_step_in_progress_any_inferior): Adjust.
14778 (displaced_step_in_progress_thread): Adjust.
14779 (displaced_step_in_progress): Adjust.
14780 (add_displaced_stepping_state): Remove.
14781 (get_displaced_step_closure_by_addr): Adjust.
14782 (remove_displaced_stepping_state): Remove.
14783 (infrun_inferior_exit): Call displaced_step_state.reset.
14784 (use_displaced_stepping): Don't check for NULL.
14785 (displaced_step_prepare_throw): Call
14786 get_displaced_stepping_state.
14787 (displaced_step_fixup): Don't check for NULL.
14788 (prepare_for_detach): Don't check for NULL.
14789
14790 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14791
14792 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14793 in case of call that did not complete.
14794
14795 2019-01-02 Andrey Utkin <autkin@undo.io>
14796
14797 * symfile.c (find_separate_debug_file): Fix search of debug files for
14798 remote debuggee.
14799
14800 2019-01-02 Tom Tromey <tom@tromey.com>
14801
14802 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14803 indentation.
14804 * python/py-frame.c (frapy_older): Remove cast.
14805 (frapy_newer): Likewise.
14806 * python/py-breakpoint.c (local_setattro): Remove cast.
14807 * python/py-arch.c (archpy_name): Remove local variable.
14808 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14809
14810 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14811
14812 * unittests/basic_string_view/element_access/char/empty.cc:
14813 Fix year range in copyright header.
14814
14815 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14816
14817 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14818 Delete.
14819 <operator==>: Update with for removed field.
14820 <hash>: Likewise.
14821 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14822 <isa_features>: ...this.
14823 <abi_features>: New field.
14824 (riscv_isa_flen): Update comment.
14825 (riscv_abi_xlen): New declaration.
14826 (riscv_abi_flen): New declaration.
14827 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14828 isa_features.
14829 (riscv_abi_xlen): New function.
14830 (riscv_isa_flen): Update to get answer from isa_features.
14831 (riscv_abi_flen): New function.
14832 (riscv_has_fp_abi): Update to get answer from abi_features.
14833 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14834 xlen and flen.
14835 (riscv_call_info) <xlen, flen>: Update comment.
14836 (riscv_call_arg_struct): Remove invalid assertions
14837 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14838 is removed.
14839 (riscv_gdbarch_init): Gather isa features and abi features
14840 separately, ensure both match on the gdbarch when reusing an old
14841 gdbarch. Relax an error check to allow 32-bit abi float to run on
14842 a target with 64-bit float hardware.
14843
14844 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14845
14846 * source.c (search_command_helper): Stop reverse search
14847 when line 1 has been searched.
14848
14849 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14850
14851 * record-full.c (record_full_base_target::close): Rewrite
14852 record_full_core_buf_list free logic.
14853
14854 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14855
14856 * break-catch-syscall.c (print_one_catch_syscall): xfree
14857 the last text.
14858
14859 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14860
14861 * top.c (print_gdb_version): Update Copyright year in version
14862 message.
14863
14864 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14865
14866 Update copyright year range in all GDB files.
14867
14868 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14869
14870 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14871
14872 For older changes see ChangeLog-2018.
14873 \f
14874 Local Variables:
14875 mode: change-log
14876 left-margin: 8
14877 fill-column: 74
14878 version-control: never
14879 coding: utf-8
14880 End:
14881