gdb: Convert frame_show_address to return a bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * stack.c (frame_show_address): Convert return type to bool.
4 * stack.h (frame_show_address): Likewise, and update header
5 comment.
6
7 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
10 * unittests/vec-utils-selftests.c: New file.
11 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
12
13 2019-11-10 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
16 (tui_highlight_win): Likewise.
17 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
18 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
19 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
20 Don't set can_highlight.
21
22 2019-11-10 Tom Tromey <tom@tromey.com>
23
24 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
25 Remove unused declaration.
26
27 2019-11-08 Tom Tromey <tromey@adacore.com>
28
29 * top.c (read_command_file): Update.
30 (command_line_input): Make return type const.
31 * python/py-gdb-readline.c: Update.
32 * linespec.c (decode_line_2): Update.
33 * defs.h (command_line_input): Make return type const.
34 * cli/cli-script.c (read_next_line): Make return type const.
35 * ada-lang.c (get_selections): Update.
36
37 2019-11-06 Christian Biesinger <cbiesinger@google.com>
38
39 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
40 * mi/mi-main.c (output_cores): Likewise.
41 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
42 (linux_xfer_osdata_modules): Likewise.
43 * remote.c (register_remote_support_xml): Likewise.
44 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
45 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
46
47 2019-11-06 Tom Tromey <tom@tromey.com>
48
49 * tui/tui-interp.c: Don't include readline.h.
50 * tui/tui-hooks.c: Don't include readline.h.
51 * symmisc.c: Include tilde.h, not readline.h.
52 * symfile.c: Include tilde.h, not readline.h.
53 * source.c: Include tilde.h, not readline.h.
54 * solib.c: Include tilde.h, not readline.h.
55 * psymtab.c: Include tilde.h, not readline.h.
56 * exec.c: Include tilde.h, not readline.h.
57 * corelow.c: Include tilde.h, not readline.h.
58 * cli/cli-dump.c: Include tilde.h, not readline.h.
59 * cli/cli-cmds.c: Don't include readline.h.
60
61 2019-11-05 Tom Tromey <tom@tromey.com>
62
63 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
64 (tui_disassemble): Set addr_size.
65 (tui_disasm_window::set_contents): Use addr_size.
66
67 2019-11-05 Tom Tromey <tom@tromey.com>
68
69 * rust-lang.c (rust_language_defn): Update.
70 * python/py-value.c (valpy_string): Call c_get_string.
71 * p-lang.c (pascal_language_defn): Update.
72 * opencl-lang.c (opencl_language_defn): Update.
73 * objc-lang.c (objc_language_defn): Update.
74 * m2-lang.c (m2_language_defn): Update.
75 * language.c (unknown_language_defn, auto_language_defn): Update.
76 (default_get_string): Remove.
77 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
78 * go-lang.c (go_language_defn): Update.
79 * f-lang.c (f_language_defn): Update.
80 * d-lang.c (d_language_defn): Update.
81 * c-lang.c (c_language_defn, cplus_language_defn)
82 (asm_language_defn, minimal_language_defn): Update.
83 * ada-lang.c (ada_language_defn): Update.
84 * language.h (struct language_defn) <la_get_string>: Remove.
85 (LA_GET_STRING): Remove.
86 (default_get_string): Don't declare.
87
88 2019-11-05 Tom Tromey <tom@tromey.com>
89
90 * tui/tui-source.h (struct tui_source_window): Inline
91 constructor. Remove destructor.
92 <style_changed, m_observable>: Move to superclass.
93 * tui/tui-winsource.h (tui_copy_source_line): Declare.
94 (struct tui_source_window_base): Move private members to end.
95 <style_changed, m_observable>: Move from tui_source_window.
96 * tui/tui-winsource.c (tui_copy_source_line): Move from
97 tui-source.c. Rename from copy_source_line. Add special handling
98 for negative line number.
99 (tui_source_window_base::style_changed): Move from
100 tui_source_window.
101 (tui_source_window_base): Register observer.
102 (~tui_source_window_base): New.
103 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
104 rename.
105 (tui_source_window::set_contents): Use tui_copy_source_line.
106 (tui_source_window::tui_source_window): Move to tui-source.h.
107 (tui_source_window::~tui_source_window): Remove.
108 (tui_source_window::style_changed): Move to superclass.
109 * tui/tui-disasm.c (tui_disassemble): Create string file with
110 styling, when possible. Add "addr_size" parameter.
111 (tui_disasm_window::set_contents): Use tui_copy_source_line.
112 Don't compute maximum size.
113 (len_without_escapes): New function
114
115 2019-11-05 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
118 std::string.
119 * tui/tui-winsource.c (tui_show_source_line): Update.
120 * tui/tui-source.c (tui_source_window::set_contents): Update.
121 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
122
123 2019-11-05 Christian Biesinger <cbiesinger@google.com>
124
125 * symtab.h (gdb_static_assert): Put && operator at the beginning
126 of the line instead of the end.
127
128 2019-11-04 Christian Biesinger <cbiesinger@google.com>
129
130 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
131 and sizeof (symbol).
132 * symtab.h: Add a static_assert for sizeof (partial_symbol).
133
134 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135
136 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
137 * configure.host: Mark *-*-solaris2.10* obsolete.
138 * configure.tgt: Mark Solaris < 11 obsolete.
139 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
140 Update target triplet.
141
142 2019-11-01 Tom Tromey <tromey@adacore.com>
143
144 * utils.c (print_sys_errmsg): Simplify.
145
146 2019-11-01 Tom Tromey <tromey@adacore.com>
147
148 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
149
150 2019-11-01 Christian Biesinger <cbiesinger@google.com>
151
152 * configure: Regenerate.
153 * configure.ac: Remove check for strerror_r.
154 * gdbsupport/common.m4: Check for strerror_r.
155
156 2019-11-01 Luis Machado <luis.machado@linaro.org>
157
158 PR gdb/25124
159
160 * arm-tdep.c (arm_per_objfile): Rename to ...
161 (arm_per_bfd): ... this.
162 (arm_objfile_data_key): Rename to ...
163 (arm_bfd_data_key): ... this.
164 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
165 data.
166 (arm_record_special_symbol): Likewise.
167
168 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
171 end.
172 * c-typeprint.c (c_print_typedef): Likewise.
173 * f-typeprint.c (f_print_typedef): Likewise.
174 * m2-typeprint.c (m2_print_typedef): Likewise.
175 * p-typeprint.c (pascal_print_typedef): Likewise.
176 * rust-lang.c (rust_print_typedef): Likewise.
177 * symtab.c (print_symbol_info): Print a newline after calling
178 typedef_print.
179
180 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * symtab.c (info_module_cmdlist): New variable.
183 (info_module_command): New function.
184 (search_module_symbols): New function.
185 (info_module_subcommand): New function.
186 (struct info_modules_var_func_options): New struct.
187 (info_modules_var_func_options_defs): New variable.
188 (make_info_modules_var_func_options_def_group): New function.
189 (info_module_functions_command): New function.
190 (info_module_variables_command): New function.
191 (info_module_var_func_command_completer): New function.
192 (_initialize_symtab): Register new 'info module functions' and
193 'info module variables' commands.
194 * symtab.h (typedef symbol_search_in_module): New typedef.
195 (search_module_symbols): Declare new function.
196 * NEWS: Mention new commands.
197
198 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
201 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
202 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
203 MODULES_DOMAIN.
204 (scan_partial_symbols): Only create partial module symbols for non
205 declarations.
206 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
207 and MODULES_DOMAIN.
208 * symtab.c (search_domain_name): Likewise.
209 (search_symbols): Likewise.
210 (print_symbol_info): Likewise.
211 (symtab_symbol_info): Likewise.
212 (info_modules_command): New function.
213 (_initialize_symtab): Register 'info modules' command.
214 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
215 * NEWS: Mention new 'info modules' command.
216
217 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
218
219 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
220 and $_gdb_maint_setting_str.
221
222 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
223
224 * cli/cli-cmds.c (setting_cmd, value_from_setting)
225 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
226 (str_value_from_setting, gdb_setting_str_internal_fn)
227 (gdb_maint_setting_str_internal_fn): New functions.
228 (_initialize_cli_cmds): Define the new convenience functions.
229 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
230 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
231
232 2019-10-31 Christian Biesinger <cbiesinger@google.com>
233
234 * agent.c (set_can_use_agent): When the setting is turned on,
235 look up agent symbols if we don't have them yet.
236 (agent_new_objfile): Don't look up agent symbols when the agent
237 setting is off.
238
239 2019-10-31 Christian Biesinger <cbiesinger@google.com>
240
241 * config.in: Regenerate.
242
243 2019-10-31 Christian Biesinger <cbiesinger@google.com>
244
245 * configure: Regenerate.
246 * configure.ac: Check for strerror_r.
247 * gdbsupport/common-utils.h (safe_strerror): Change return value
248 to const char * and document that this function is now threadsafe.
249 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
250 thread_local and call strerror_r, if available.
251 * utils.c (perror_string): Update.
252 (print_sys_errmsg): Update.
253
254 2019-10-31 Luis Machado <luis.machado@linaro.org>
255
256 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
257 objfile_key.
258 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
259 objfile to fetch per-bfd data.
260 (arm_find_exidx_entry): Likewise.
261
262 2019-10-31 Christian Biesinger <cbiesinger@google.com>
263
264 * gdbsupport/agent.c (debug_agent): Change type to bool.
265 (use_agent): Likewise.
266 (all_agent_symbols_look_up): Likewise.
267 (agent_loaded_p): Change return value to bool.
268 (agent_look_up_symbols): Update.
269 (agent_capability_check): Change return value to bool.
270 * gdbsupport/agent.h (agent_loaded_p): Likewise.
271 (debug_agent): Change type to bool.
272 (use_agent): Likewise.
273 (agent_capability_check): Change return value to bool.
274
275 2019-10-30 Christian Biesinger <cbiesinger@google.com>
276
277 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
278 (build_minimal_symbol_hash_tables): Code to clear the table moved
279 to clear_minimal_symbol_hash_tables.
280 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
281 when needed.
282
283 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * infcmd.c: Remove includes.
286 * infrun.c: Remove includes.
287
288 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
291 (grow_vect): Remove declaration.
292 (ada_type_of_array): Remove declaration.
293 (ada_update_initial_language): Remove declaration.
294 (ada_fold_name): Remove declaration.
295 (ada_fill_in_ada_prototype): Remove declaration.
296 (user_select_syms): Remove declaration.
297 (get_selections): Remove declaration.
298 (ada_tag_type): Remove declaration.
299 (ada_value_tag): Remove declaration.
300 (ada_is_others_clause): Remove declaration.
301 (ada_in_variant): Remove declaration.
302 (ada_value_struct_elt): Remove declaration.
303 (ada_attribute_name): Remove declaration.
304 (ada_system_address_type): Remove declaration.
305 * ada-lang.c (ada_watch_location_expression): Make static.
306 (GROW_VECT): Move here from ada-lang.h.
307 (grow_vect): Make static.
308 (ada_update_initial_language): Make static.
309 (ada_fold_name): Make static.
310 (ada_type_of_array): Make static.
311 (encoded_ordered_before): Move up.
312 (sort_choices): Move up.
313 (print_signatures): Move up.
314 (ada_print_symbol_signature): Move up.
315 (get_selections): Move up and make static.
316 (user_select_syms): Move up and make static.
317 (ada_value_struct_elt): Move up and make static.
318 (ada_tag_type): Make static.
319 (ada_value_tag): Make static.
320 (ada_is_others_clause): Make static.
321 (ada_in_variant): Make static.
322 (ada_attribute_name): Make static.
323
324 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * ada-lang.c: Remove includes.
327 * ada-typeprint.c: Remove includes.
328 * ada-valprint.c: Remove includes.
329
330 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
331
332 * addrmap.c: Add static assertions of type size, moved from
333 _initialize_addrmap.
334 (_initialize_addrmap): Remove.
335
336 2019-10-29 Christian Biesinger <cbiesinger@google.com>
337
338 * coffread.c (record_minimal_symbol): Update.
339 (process_coff_symbol): Update.
340 * dbxread.c (read_dbx_symtab): Update.
341 * dwarf2read.c (add_partial_symbol): Update.
342 (fixup_go_packaging): Update.
343 (load_partial_dies): Update.
344 (new_symbol): Update.
345 * elfread.c (record_minimal_symbol): Change signature to use
346 gdb::string_view instead of name+len.
347 (elf_symtab_read): Update.
348 (elf_rel_plt_read): Update.
349 * mdebugread.c (parse_partial_symbols): Update.
350 (handle_psymbol_enumerators): Update.
351 (new_symbol): Update.
352 * minsyms.c (minimal_symbol_reader::record_full): Change signature
353 to use gdb::string_view instead of name+len.
354 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
355 * psympriv.h (add_psymbol_to_list): Likewise.
356 * psymtab.c (add_psymbol_to_bcache): Likewise.
357 (add_psymbol_to_list): Likewise.
358 * stabsread.c (define_symbol): Update.
359 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
360 * symtab.h (SYMBOL_SET_NAMES): Likewise.
361 (symbol_set_names): Likewise.
362 * xcoffread.c (scan_xcoff_symtab): Update.
363
364 2019-10-29 Christian Biesinger <cbiesinger@google.com>
365
366 * symtab.h (symbol_set_names): Document that copy_name must be
367 set to true for non-nullterminated strings.
368 * symtab.c (symbol_set_names): Only make a nullterminated copy of
369 linkage_name if the entry was not found and we need to demangle.
370
371 2019-10-29 Christian Biesinger <cbiesinger@google.com>
372
373 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
374 * dwarf2-frame.c (bsearch_fde_cmp): Update.
375 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
376 * gdbsupport/gdb_binary_search.h: New file.
377
378 2019-10-29 Christian Biesinger <cbiesinger@google.com>
379
380 * NEWS: Mention new --with-system-gdbinit-dir option.
381 * config.in: Regenerate.
382 * configure: Regenerate.
383 * configure.ac: Add new option --with-system-gdbinit-dir.
384 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
385 for a ".gdb" suffix.
386 * main.c (get_init_files): Change system_gdbinit argument to
387 a vector and return the files in SYSTEM_GDBINIT_DIR in
388 addition to SYSTEM_GDBINIT.
389 (captured_main_1): Update.
390 (print_gdb_help): Update.
391 * top.c (print_gdb_configuration): Also print the value of
392 SYSTEM_GDBINIT_DIR.
393
394 2019-10-28 Christian Biesinger <cbiesinger@google.com>
395
396 * gdbsupport/common-utils.h (startswith): Add an overloaded version
397 that takes gdb::string_view arguments.
398
399 2019-10-26 Tom de Vries <tdevries@suse.de>
400
401 * aarch64-linux-tdep.c: Fix typos in comments.
402 * aarch64-tdep.c: Same.
403 * ada-lang.c: Same.
404 * amd64-nat.c: Same.
405 * arc-tdep.c: Same.
406 * arch/aarch64-insn.c: Same.
407 * block.c: Same.
408 * breakpoint.h: Same.
409 * btrace.h: Same.
410 * c-varobj.c: Same.
411 * cli/cli-decode.c: Same.
412 * cli/cli-script.c: Same.
413 * cli/cli-utils.h: Same.
414 * coff-pe-read.c: Same.
415 * coffread.c: Same.
416 * compile/compile-cplus-symbols.c: Same.
417 * compile/compile-object-run.c: Same.
418 * completer.c: Same.
419 * corelow.c: Same.
420 * cp-support.c: Same.
421 * demangle.c: Same.
422 * dwarf-index-write.c: Same.
423 * dwarf2-frame.c: Same.
424 * dwarf2-frame.h: Same.
425 * eval.c: Same.
426 * frame-base.h: Same.
427 * frame.h: Same.
428 * gdbcmd.h: Same.
429 * gdbtypes.h: Same.
430 * gnu-nat.c: Same.
431 * guile/scm-objfile.c: Same.
432 * i386-tdep.c: Same.
433 * i386-tdep.h: Same.
434 * infcall.c: Same.
435 * infcall.h: Same.
436 * linux-nat.c: Same.
437 * m68k-tdep.c: Same.
438 * macroexp.c: Same.
439 * memattr.c: Same.
440 * mi/mi-cmd-disas.c: Same.
441 * mi/mi-getopt.h: Same.
442 * mi/mi-main.c: Same.
443 * minsyms.c: Same.
444 * nat/aarch64-sve-linux-sigcontext.h: Same.
445 * objfiles.h: Same.
446 * ppc-linux-nat.c: Same.
447 * ppc-linux-tdep.c: Same.
448 * ppc-tdep.h: Same.
449 * progspace.h: Same.
450 * prologue-value.h: Same.
451 * python/py-evtregistry.c: Same.
452 * python/py-instruction.h: Same.
453 * record-btrace.c: Same.
454 * record-full.c: Same.
455 * remote.c: Same.
456 * rs6000-tdep.c: Same.
457 * ser-tcp.c: Same.
458 * sol-thread.c: Same.
459 * sparc-sol2-tdep.c: Same.
460 * sparc64-tdep.c: Same.
461 * stabsread.c: Same.
462 * symfile.c: Same.
463 * symtab.h: Same.
464 * target.c: Same.
465 * tracepoint.c: Same.
466 * tui/tui-data.h: Same.
467 * tui/tui-io.c: Same.
468 * tui/tui-win.c: Same.
469 * tui/tui.c: Same.
470 * unittests/rsp-low-selftests.c: Same.
471 * user-regs.h: Same.
472 * utils.c: Same.
473 * utils.h: Same.
474 * valarith.c: Same.
475 * valops.c: Same.
476 * valprint.c: Same.
477 * valprint.h: Same.
478 * value.c: Same.
479 * value.h: Same.
480 * varobj.c: Same.
481 * x86-nat.h: Same.
482 * xtensa-tdep.c: Same.
483
484 2019-10-25 Ali Tamur <tamur@google.com>
485
486 * charset.c (find_charset_names): Reflect API change.
487
488 2019-10-25 Christian Biesinger <cbiesinger@google.com>
489
490 * symtab.c (struct demangled_name_entry): Change demangled name
491 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
492 part of the struct anymore.
493 (symbol_set_names): No longer obstack allocate + copy the demangled
494 name, just store the allocated name from bfd.
495
496 2019-10-25 Tom Tromey <tromey@adacore.com>
497
498 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
499 (bsearch_cie_cmp, add_cie): Remove.
500 (find_cie): Reimplement.
501 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
502 (dwarf2_build_frame_info): Update.
503
504 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
505
506 PR gdb/25126
507 * symfile.c (reread_symbols): Call forget_cached_source_info to
508 clear the stale source cache.
509
510 2019-10-24 Christian Biesinger <cbiesinger@google.com>
511
512 * configure: Regenerate.
513 * configure.ac: Remove code that sets python_has_threads.
514
515 2019-10-24 Christian Biesinger <cbiesinger@google.com>
516
517 * config.in: Regenerate.
518 * configure: Regenerate.
519 * configure.ac: Remove the code that uses sed to get the python
520 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
521
522 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 * python/py-progspace.c (pspy_block_for_pc): Return None for all
525 error paths.
526
527 2019-10-23 Tom Tromey <tom@tromey.com>
528
529 * arc-tdep.c: Remove ".." from include.
530 * frv-tdep.c: Remove ".." from include.
531 * lm32-tdep.c: Remove ".." from include.
532 * microblaze-tdep.c: Remove ".." from include.
533 * or1k-tdep.h: Remove ".." from include.
534 * s12z-tdep.c: Remove ".." from include.
535 * Makefile.in (OPCODES_CFLAGS): Add comment.
536 (TOP_CFLAGS): New variable.
537 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
538
539 2019-10-23 Tom Tromey <tom@tromey.com>
540
541 * Makefile.in (READLINE_DIR): Update.
542
543 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544
545 * infcall.c (call_function_by_hand_dummy): Fix the function
546 comment. And extract out a code section into...
547 (reserve_stack_space): ...this new function.
548
549 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
550
551 * infcall.c (value_arg_coerce): Remove an unused parameter.
552 (call_function_by_hand_dummy): Update the call to
553 'value_arg_coerce'.
554
555 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
556
557 * infcall.c (call_function_by_hand_dummy): Refactor.
558
559 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
560
561 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
562
563 2019-10-23 Tom Tromey <tom@tromey.com>
564
565 * configure: Rebuild.
566 * configure.ac: Don't check for sigprocmask.
567 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
568
569 2019-10-23 Tom Tromey <tom@tromey.com>
570
571 * configure: Rebuild.
572 * acinclude.m4: Use m4_include, not sinclude.
573
574 2019-10-23 Tom de Vries <tdevries@suse.de>
575
576 PR breakpoints/24687
577 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
578
579 2019-10-22 Christian Biesinger <cbiesinger@google.com>
580
581 * symtab.c (struct demangled_name_entry) <language>: Change from
582 bitfield to regular variable.
583
584 2019-10-22 Christian Biesinger <cbiesinger@google.com>
585
586 * symtab.c (struct demangled_name_entry): Add a constructor.
587 (free_demangled_name_entry): New function to call the destructor
588 for demangled_name_entry.
589 (create_demangled_names_hash): Pass free_demangled_name_entry to
590 htab_create_alloc.
591 (symbol_set_names): Call placement new for demangled_name_entry.
592 * utils.c: No longer include xxhash.h here, now that fast_hash
593 is inlined in the header.
594 * utils.h: Instead, include it here.
595
596 2019-10-22 Christian Biesinger <cbiesinger@google.com>
597
598 * Makefile.in: Link with libxxhash.
599 * config.in: Regenerate.
600 * configure: Regenerate.
601 * configure.ac: Search for libxxhash.
602 * utils.c (fast_hash): Use xxhash if present.
603
604 2019-10-22 Christian Biesinger <cbiesinger@google.com>
605
606 * utils.h (fast_hash): New function.
607 * symtab.c (hash_demangled_name_entry): Call new function
608 fast_hash.
609
610 2019-10-22 Christian Biesinger <cbiesinger@google.com>
611
612 * symtab.c (struct demangled_name_entry): Change type of mangled
613 to gdb::string_view. Also adds a constructor that takes the
614 mangled name.
615 (hash_demangled_name_entry): Update.
616 (eq_demangled_name_entry): Update.
617 (free_demangled_name_entry): New function to call the destructor
618 now that this is not a POD anymore.
619 (create_demangled_names_hash): Pass free_demangled_name_entry to
620 htab_create_alloc.
621 (symbol_set_names): Update.
622
623 2019-10-21 Ali Tamur <tamu@google.com>
624
625 * dwarf2read.c (dir_index): Change type.
626 (file_name_index): Likewise.
627 (line_header::include_dir_at): Change comment and implementation on
628 whether it is DWARF 5.
629 (line_header::is_valid_file_index): New function.
630 (line_header::file_name_at): Change comment and implementation on
631 whether it is DWARF 5.
632 (line_header::file_names): Change to private field renamed as
633 m_file_names and introduce a new accessor method.
634 (line_header::file_names_size): New method.
635 (line_header::include_dirs): Change to private field and rename as
636 m_include_dirs.
637 (dw2_get_file_names_reader): Define local var at a smaller scope and
638 reflect API change.
639 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
640 (process_structure_scope): Likewise.
641 (line_header::add_include_dir): Change message and reflect renaming.
642 (line_header::add_file_name): Likewise.
643 (read_formatted_entries): Handle DW_FORM_data16.
644 (dwarf_decode_line_header): Fix line header length calculation.
645 (psymtab_include_file_name): Change comment and API.
646 (lnp_state_machine::m_file): Update comment and reflect type change.
647 (lnp_state_machine::record_line): Reflect type change.
648 (dwarf_decode_lines): Reflect API change.
649 (file_file_name): Likewise.
650 (file_full_name): Likewise.
651
652 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
655
656 2019-10-21 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
659
660 2019-10-21 Tom Tromey <tom@tromey.com>
661
662 * configure.ac (nm.h): Conditionally create nm.h link. Subst
663 NM_H. Use AC_CONFIG_LINKS.
664 * configure: Rebuild.
665 * Makefile.in (NM_H): New variable.
666 (generated_files): Add NM_H. Remove gcore.
667 (nm.h, stamp-nmh): New targets.
668
669 2019-10-20 Tom Tromey <tom@tromey.com>
670
671 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
672 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
673 obsolete comment.
674 (put_objfile_before): Now static.
675
676 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * gdbsupport/common-utils.h (startswith): Change return type to
679 bool.
680
681 2019-10-19 Christian Biesinger <cbiesinger@google.com>
682
683 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
684 * breakpoint.c (bp_locations_compare): Rename to...
685 (bp_location_is_less_than): ...this, and change to std::sort semantics.
686 (update_global_location_list): Use std::sort instead of qsort.
687 * buildsym.c (compare_line_numbers): Rename to...
688 (lte_is_less_than): ...this, and change to std::sort semantics.
689 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
690 instead of qsort.
691 * disasm.c (compare_lines): Rename to...
692 (line_is_less_than): ...this, and change to std::sort semantics.
693 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
694 of qsort.
695 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
696 (fde_is_less_than): ...this, and change to std::sort semantics.
697 (dwarf2_build_frame_info): Call std::sort instead of qsort.
698 * mdebugread.c (compare_blocks):
699 (block_is_less_than): ...this, and change to std::sort semantics.
700 (sort_blocks): Call std::sort instead of qsort.
701 * objfiles.c (qsort_cmp): Rename to...
702 (sort_cmp): ...this, and change to std::sort semantics.
703 (update_section_map): Call std::sort instead of qsort.
704 * remote.c (compare_pnums): Remove.
705 (map_regcache_remote_table): Call std::sort instead of qsort.
706 * utils.c (compare_positive_ints): Remove.
707 * utils.h (compare_positive_ints): Remove.
708 * xcoffread.c (compare_lte): Remove.
709 (arrange_linetable): Call std::sort instead of qsort.
710
711 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
712
713 * symfile.c (init_entry_point_info): Fix typo.
714 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
715
716 2019-10-18 Tom de Vries <tdevries@suse.de>
717
718 * aarch64-tdep.c: Fix typos in comments.
719 * ada-lang.c: Same.
720 * ada-tasks.c: Same.
721 * alpha-tdep.c: Same.
722 * alpha-tdep.h: Same.
723 * amd64-nat.c: Same.
724 * amd64-windows-tdep.c: Same.
725 * arc-tdep.c: Same.
726 * arc-tdep.h: Same.
727 * arch-utils.c: Same.
728 * arm-nbsd-tdep.c: Same.
729 * arm-tdep.c: Same.
730 * ax-gdb.c: Same.
731 * blockframe.c: Same.
732 * btrace.c: Same.
733 * c-varobj.c: Same.
734 * coff-pe-read.c: Same.
735 * coffread.c: Same.
736 * cris-tdep.c: Same.
737 * darwin-nat.c: Same.
738 * dbxread.c: Same.
739 * dcache.c: Same.
740 * disasm.c: Same.
741 * dtrace-probe.c: Same.
742 * dwarf-index-write.c: Same.
743 * dwarf2-frame-tailcall.c: Same.
744 * dwarf2-frame.c: Same.
745 * dwarf2read.c: Same.
746 * eval.c: Same.
747 * exceptions.c: Same.
748 * fbsd-tdep.c: Same.
749 * findvar.c: Same.
750 * frame.c: Same.
751 * frv-tdep.c: Same.
752 * gnu-v3-abi.c: Same.
753 * go32-nat.c: Same.
754 * h8300-tdep.c: Same.
755 * hppa-tdep.c: Same.
756 * i386-linux-tdep.c: Same.
757 * i386-tdep.c: Same.
758 * ia64-libunwind-tdep.c: Same.
759 * ia64-tdep.c: Same.
760 * infcmd.c: Same.
761 * infrun.c: Same.
762 * linespec.c: Same.
763 * linux-nat.c: Same.
764 * linux-thread-db.c: Same.
765 * machoread.c: Same.
766 * mdebugread.c: Same.
767 * mep-tdep.c: Same.
768 * mn10300-tdep.c: Same.
769 * namespace.c: Same.
770 * objfiles.c: Same.
771 * opencl-lang.c: Same.
772 * or1k-tdep.c: Same.
773 * osabi.c: Same.
774 * ppc-linux-nat.c: Same.
775 * ppc-linux-tdep.c: Same.
776 * ppc-sysv-tdep.c: Same.
777 * printcmd.c: Same.
778 * procfs.c: Same.
779 * record-btrace.c: Same.
780 * record-full.c: Same.
781 * remote-fileio.c: Same.
782 * remote.c: Same.
783 * rs6000-tdep.c: Same.
784 * s12z-tdep.c: Same.
785 * score-tdep.c: Same.
786 * ser-base.c: Same.
787 * ser-go32.c: Same.
788 * skip.c: Same.
789 * sol-thread.c: Same.
790 * solib-svr4.c: Same.
791 * solib.c: Same.
792 * source.c: Same.
793 * sparc-nat.c: Same.
794 * sparc-sol2-tdep.c: Same.
795 * sparc-tdep.c: Same.
796 * sparc64-tdep.c: Same.
797 * stabsread.c: Same.
798 * stack.c: Same.
799 * symfile.c: Same.
800 * symtab.c: Same.
801 * target-descriptions.c: Same.
802 * target-float.c: Same.
803 * thread.c: Same.
804 * utils.c: Same.
805 * valops.c: Same.
806 * valprint.c: Same.
807 * value.c: Same.
808 * varobj.c: Same.
809 * windows-nat.c: Same.
810 * xcoffread.c: Same.
811 * xstormy16-tdep.c: Same.
812 * xtensa-tdep.c: Same.
813
814 2019-10-17 Tom Tromey <tromey@adacore.com>
815
816 * configure: Rebuild.
817 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
818 in AC_CONFIG_FILES invocation.
819 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
820 new-style config.status invocation.
821
822 2019-10-17 Tom de Vries <tdevries@suse.de>
823
824 * arm-nbsd-nat.c: Fix typos in comments.
825 * arm-tdep.c: Same.
826 * darwin-nat-info.c: Same.
827 * dwarf2read.c: Same.
828 * elfread.c: Same.
829 * event-top.c: Same.
830 * findvar.c: Same.
831 * gdbtypes.c: Same.
832 * hppa-tdep.c: Same.
833 * i386-tdep.c: Same.
834 * jit.c: Same.
835 * main.c: Same.
836 * mdebugread.c: Same.
837 * moxie-tdep.c: Same.
838 * nto-procfs.c: Same.
839 * osabi.c: Same.
840 * ppc-linux-tdep.c: Same.
841 * remote.c: Same.
842 * riscv-tdep.c: Same.
843 * s390-tdep.c: Same.
844 * sh-tdep.c: Same.
845 * sparc-linux-tdep.c: Same.
846 * sparc-nat.c: Same.
847 * stack.c: Same.
848 * target-descriptions.c: Same.
849 * top.c: Same.
850 * varobj.c: Same.
851
852 2019-10-16 Tom Tromey <tom@tromey.com>
853
854 * objfiles.h (struct objfile) <original_name>: Now const.
855
856 2019-10-16 Christian Biesinger <cbiesinger@google.com>
857
858 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
859 pass on to sigsetjmp's second argument.
860 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
861
862 2019-10-16 Keith Seitz <keiths@redhat.com>
863
864 PR gdb/23567
865 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
866 sections whose size is greater than the file size.
867
868 2019-10-16 Jim Wilson <jimw@sifive.com>
869
870 * riscv-tdep.c (riscv_gcc_target_options): New.
871 (riscv_gnu_triplet_regexp): New.
872 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
873 set_gdbarch_gnu_triplet_regexp.
874
875 2019-10-16 Christian Biesinger <cbiesinger@google.com>
876
877 * Makefile.in: Add xml-builtin.h.
878 * features/feature_to_c.sh: Add an include for xml-builtin.h
879 to ensure that the compiler checks that the types match.
880 * xml-builtin.h: New file.
881 * xml-support.c (fetch_xml_builtin): Add missing const.
882 * xml-support.h: Remove declaration of xml_builtins.
883
884 2019-10-16 Tom de Vries <tdevries@suse.de>
885
886 PR tdep/25096
887 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
888 (amd64_classify_aggregate): ... here.
889 (amd64_classify_aggregate_field): Handled fiels of nested structs
890 recursively.
891
892 2019-10-16 Tom de Vries <tdevries@suse.de>
893
894 PR tdep/24104
895 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
896 that handles 'theclass'.
897
898 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * linespec.c (decode_digits_ordinary): Update comment.
901 * make-target-delegates: No longer need to handle VEC case.
902 * memrange.c (normalize_mem_ranges): Update comment.
903 * namespace.c (add_using_directive): Update comment.
904 * objc-lang.c (uniquify_strings): Update comment.
905 * ppc-linux-nat.c (struct thread_points): Update comment.
906 * probe.h (find_probes_in_objfile): Update comment.
907 * target.h (enum flash_preserve_mode): Update comment.
908 * varobj.c (varobj_restrict_range): Update comment.
909 * varobj.h (varobj_list_children): Update comment.
910
911 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * Makefile.in: Remove references to vec.h and vec.c.
914 * aarch64-tdep.c: No longer include vec.h.
915 * ada-lang.c: Likewise.
916 * ada-lang.h: Likewise.
917 * arm-tdep.c: Likewise.
918 * ax.h: Likewise.
919 * breakpoint.h: Likewise.
920 * charset.c: Likewise.
921 * cp-support.h: Likewise.
922 * dtrace-probe.c: Likewise.
923 * dwarf2read.c: Likewise.
924 * extension.h: Likewise.
925 * gdb_bfd.c: Likewise.
926 * gdbsupport/gdb_vecs.h: Likewise.
927 * gdbsupport/vec.c: Remove.
928 * gdbsupport/vec.h: Remove.
929 * gdbthread.h: Likewise.
930 * guile/scm-type.c: Likewise.
931 * inline-frame.c: Likewise.
932 * machoread.c: Likewise.
933 * memattr.c: Likewise.
934 * memrange.h: Likewise.
935 * namespace.h: Likewise.
936 * nat/linux-btrace.h: Likewise.
937 * osdata.c: Likewise.
938 * parser-defs.h: Likewise.
939 * progspace.h: Likewise.
940 * python/py-type.c: Likewise.
941 * record-btrace.c: Likewise.
942 * rust-exp.y: Likewise.
943 * solib-target.c: Likewise.
944 * stap-probe.c: Likewise.
945 * target-descriptions.c: Likewise.
946 * target-memory.c: Likewise.
947 * target.h: Likewise.
948 * varobj.c: Likewise.
949 * varobj.h: Likewise.
950 * xml-support.h: Likewise.
951
952 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
955 Update for new std::vector based implementation.
956 (process_psymtab_comp_unit_reader): Likewise.
957 (scan_partial_symbols): Likewise.
958 (recursively_compute_inclusions): Likewise.
959 (compute_compunit_symtab_includes): Likewise.
960 (process_imported_unit_die): Likewise.
961 (queue_and_load_dwo_tu): Likewise.
962 (follow_die_sig_1): Likewise.
963 * gdb/dwarf2read.h: Remove DEF_VEC_P.
964 (typedef dwarf2_per_cu_ptr): Remove.
965 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
966 function.
967 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
968 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
969 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
970 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
971 std::vector.
972
973 2019-10-15 Tom Tromey <tromey@adacore.com>
974
975 * windows-nat.c (windows_nat_target::resume): Use %x when logging
976 TID.
977
978 2019-10-15 Tom Tromey <tromey@adacore.com>
979
980 * windows-nat.c (windows_nat_target::fetch_registers)
981 (windows_nat_target::store_registers): Rename "pid" to "tid".
982
983 2019-10-15 Tom Tromey <tromey@adacore.com>
984
985 * gdbarch.h, gdbarch.c: Rebuild.
986 * gdbarch.sh (gcc_target_options): Change return type to
987 std::string.
988 * compile/compile.c (get_args): Update.
989 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
990 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
991 std::string.
992 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
993 std::string.
994 * arch-utils.c (default_gcc_target_options): Return std::string.
995 * arch-utils.h (default_gcc_target_options): Return std::string.
996 * s390-tdep.c (s390_gcc_target_options): Return std::string.
997
998 2019-10-15 Christian Biesinger <cbiesinger@google.com>
999
1000 * breakpoint.c (breakpoint_chain): Make static.
1001 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1002 of accessing breakpoint_chain.
1003
1004 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1005
1006 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1007 to a gdb::function_view and return value to bool.
1008 * breakpoint.h (iterate_over_breakpoints): Likewise.
1009 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1010 (pop_dummy_frame): Update.
1011 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1012 (gdbscm_breakpoints): Update.
1013 * python/py-breakpoint.c (build_bp_list): Update.
1014 (gdbpy_breakpoints): Update.
1015 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1016 Update.
1017 (bpfinishpy_handle_stop): Update.
1018 (bpfinishpy_handle_exit): Update.
1019 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1020 (svr4_update_solib_event_breakpoints): Update.
1021
1022 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1023
1024 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1025 when unwrapping single-field structs.
1026
1027 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * dwarf2read.c: Remove includes.
1030
1031 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * ui-out.c (ui_out::call_do_message): Silence
1034 -Wformat-nonliteral warning.
1035
1036 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1039 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1040 include: readline/tilde.h.
1041
1042 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1043
1044 * remote.c (remote_target::get_trace_status): Remove declaration of
1045 trace_regblock_size.
1046
1047 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1048
1049 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1050 (show_user): Remove declaration of cmdlist.
1051 * cli/cli-cmds.h (max_user_call_depth): Declare.
1052 * cli/cli-script.c (execute_user_command): Remove declaration
1053 of max_user_call_depth.
1054
1055 2019-10-11 Jim Wilson <jimw@sifive.com>
1056
1057 * gdbsupport/print-utils.h (pulongest): Fix comment.
1058 (plongest): Likewise.
1059 (phex): Add missing comment, mention leading zeros.
1060 (phex_nz): Add mention of no leading zeros to comment.
1061
1062 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1063 plongest instead of unsigned long long cast.
1064
1065 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1066
1067 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1068 for external_editor_command and gdbtk_test.
1069
1070 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1071
1072 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1073 * varobj.c (varobjdebug): Move comment to...
1074 * varobj.h (varobjdebug): ...here, and declare.
1075
1076 2019-10-09 Tom Tromey <tom@tromey.com>
1077
1078 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1079 erase_data_content.
1080
1081 2019-10-09 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1084 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1085 * tui/tui-command.c (tui_cmd_window::resize)
1086 (tui_refresh_cmd_win): Update.
1087 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1088 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1089 * tui/tui-data.c (~tui_gen_win_info): Remove.
1090 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1091 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1092 (tui_redisplay_readline, tui_mld_flush)
1093 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1094 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1095 (tui_data_window::erase_data_content)
1096 (tui_data_item_window::rerender)
1097 (tui_data_item_window::refresh_window): Update.
1098 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1099 (box_win, tui_gen_win_info::make_window)
1100 (tui_gen_win_info::make_visible): Update.
1101 (tui_delete_win): Remove.
1102 * tui/tui-winsource.c
1103 (tui_source_window_base::do_erase_source_content): Update.
1104 (tui_show_source_line, tui_source_window_base::update_tab_width)
1105 (tui_source_window_base::update_exec_info): Update.
1106 * tui/tui-data.h (struct curses_deleter): New.
1107 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1108 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1109
1110 2019-10-09 Tom Tromey <tom@tromey.com>
1111
1112 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1113
1114 2019-10-09 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1117 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1118
1119 2019-10-09 Tom Tromey <tom@tromey.com>
1120
1121 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1122 window height directly.
1123 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1124 declare.
1125 * tui/tui-layout.c (tui_default_win_height): Remove.
1126 (tui_default_win_viewport_height): Remove.
1127
1128 2019-10-09 Tom Tromey <tom@tromey.com>
1129
1130 * tui/tui.h: Remove comments.
1131
1132 2019-10-09 Tom de Vries <tdevries@suse.de>
1133
1134 * python/lib/gdb/printer/bound_registers.py: Use
1135 '^builtin_type_bound128' as regexp argument for
1136 add_builtin_pretty_printer.
1137
1138 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1139
1140 * guile/guile.c (guile_extension_script_ops): Remove forward
1141 declaration and mark as static.
1142 (guile_script_ops): Likewise.
1143 (extension_language_guile): Move further down in the file so
1144 it can reference the definitions for guile_{extension_,}script_ops.
1145
1146 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1147
1148 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1149 except SORTL, DFLTCC, and KDSA.
1150
1151 2019-10-08 Tom Tromey <tromey@adacore.com>
1152
1153 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1154 (struct safe_symbol_file_add_args): Remove.
1155
1156 2019-10-08 Tom Tromey <tromey@adacore.com>
1157
1158 * windows-nat.c: Don't include buildsym-legacy.h.
1159
1160 2019-10-08 Tom Tromey <tromey@adacore.com>
1161
1162 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1163
1164 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1165
1166 * gdbtypes.c (overload_debug): Move comment to header.
1167 * gdbtypes.h (overload_debug): Declare.
1168 * valops.c: Remove declaration of overload_debug, instead
1169 include gdbtypes.h.
1170
1171 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1172
1173 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1174 through _().
1175 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1176 move comment...
1177 * language.h (lang_frame_mismatch_warn): ... here. Also add
1178 declaration.
1179 * top.c (lang_frame_mismatch_warn): Remove declaration.
1180 (check_frame_language_change): Pass lang_frame_mismatch_warn
1181 through _().
1182
1183 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1184
1185 * c-lang.h (vtbl_ptr_name): Declare.
1186 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1187 it from the header.
1188 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1189
1190 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1191
1192 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1193 gdb_static_assert.
1194
1195 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1196
1197 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1198 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1199 * ctfread.c: New file.
1200 * ctfread.h: New file.
1201 * elfread.c: Include ctfread.h.
1202 (struct elfinfo text_p): New member ctfsect.
1203 (elf_locate_sections): Mark CTF section.
1204 (elf_symfile_read): Call elfctf_build_psymtabs.
1205 * Makefile.in (LIBCTF): Add.
1206 (CLIBS): Use it.
1207 (CDEPS): Likewise.
1208 (DIST): Add ctfread.c.
1209
1210 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * ctfread.c (struct nextfield): Renamed to ...
1213 (struct ctf_nextfield): ... this.
1214 (struct field_info): Renamed to ...
1215 (strut ctf_field_info): ... this.
1216 (attach_fields_to_type): Update for renamed structures.
1217 (ctf_add_member_cb): Likewise.
1218 (ctf_add_enum_member_cb): Likewise.
1219 (process_struct_members): Likewise.
1220 (process_enum_type): Likewise.
1221
1222 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1223
1224 * tracectf.h: Rename, was ctf.h.
1225 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1226 * tracefile.c: Likewise.
1227 * tracepoint.c: Remove unused include ctf.h.
1228 * mi/mi-main.c: Likewise.
1229 * Makefile.in Replace ctf.c with tracectf.c.
1230
1231 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1232
1233 * version.in: Change version number to "9.0.50.DATE-git".
1234
1235 2019-10-03 Tom Tromey <tom@tromey.com>
1236
1237 PR rust/24976:
1238 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1239
1240 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1243 cp_search_name_hash.
1244 * NEWS: Add entry about nested function support.
1245
1246 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1247 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1250 for nested static variables when searchin VAR_DOMAIN.
1251 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1252 global scope, update comment.
1253 (add_partial_subprogram): Call add_partial_subprogram recursively
1254 for nested subroutines when processinng Fortran.
1255 (load_partial_dies): Process the child entities of a subprogram
1256 when processing Fortran.
1257 (partial_die_parent_scope): Handle building scope
1258 for Fortran nested functions.
1259 (process_die): Record that nested functions have a scope.
1260 (new_symbol): Always record Fortran subprograms on the global
1261 symbol list.
1262 (determine_prefix): How to build the prefix for Fortran
1263 subprograms.
1264
1265 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1268 have just sent the thread a SIGSTOP and are waiting for it to
1269 arrive.
1270
1271 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * btrace.c (btrace_add_pc): Remove whitespace before the template
1274 parameter in 'std::vector <...>'.
1275 (parse_xml_btrace_block): Likewise.
1276 (btrace_maint_decode_pt): Likewise.
1277 (btrace_maint_update_packets): Likewise.
1278 (btrace_maint_print_packets): Likewise.
1279 * btrace.h (struct btrace_maint_info): Likewise.
1280 * dwarf2read.c (struct type_unit_group): Likewise.
1281 (build_type_psymtabs_reader): Likewise.
1282 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1283 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1284 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1285
1286 2019-10-03 Tom de Vries <tdevries@suse.de>
1287
1288 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1289 the first line of the help text for set/show style metadata.
1290
1291 2019-10-02 Tom Tromey <tromey@adacore.com>
1292
1293 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1294 * gdbsupport/common-inferior.c: New file.
1295 * infcmd.c (startup_with_shell): Don't define.
1296 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1297 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1298 * inferior.h (startup_with_shell): Don't declare.
1299
1300 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1301
1302 * gdbsupport/gdb_assert.h: Include errors.h.
1303 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1304
1305 2019-10-02 Tom Tromey <tromey@adacore.com>
1306
1307 * NEWS: Add $_ada_exception entry.
1308 * ada-lang.c (struct ada_catchpoint): Add constructor.
1309 <m_kind>: New member.
1310 (allocate_location_exception, re_set_exception): Remove
1311 "ex" parameter.
1312 (should_stop_exception): Compute $_ada_exception.
1313 (check_status_exception, print_it_exception)
1314 (print_one_exception, print_mention_exception): Remove
1315 "ex" parameter.
1316 (allocate_location_catch_exception, re_set_catch_exception)
1317 (check_status_exception, print_it_catch_exception)
1318 (print_one_catch_exception, print_mention_catch_exception)
1319 (print_recreate_catch_exception)
1320 (allocate_location_catch_exception_unhandled)
1321 (re_set_catch_exception_unhandled)
1322 (check_status_exception, print_it_catch_exception_unhandled)
1323 (print_one_catch_exception_unhandled)
1324 (print_mention_catch_exception_unhandled)
1325 (print_recreate_catch_exception_unhandled)
1326 (allocate_location_catch_assert, re_set_catch_assert)
1327 (check_status_assert, print_it_catch_assert)
1328 (print_one_catch_assert, print_mention_catch_assert)
1329 (print_recreate_catch_assert)
1330 (allocate_location_catch_handlers, re_set_catch_handlers)
1331 (check_status_handlers, print_it_catch_handlers)
1332 (print_one_catch_handlers, print_mention_catch_handlers)
1333 (print_recreate_catch_handlers): Remove.
1334 (create_ada_exception_catchpoint): Update.
1335 (initialize_ada_catchpoint_ops): Update.
1336
1337 2019-10-02 Tom Tromey <tromey@adacore.com>
1338
1339 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1340 (create_excep_cond_exprs): Simplify exception string computation.
1341 (ada_exception_catchpoint_cond_string): Likewise.
1342
1343 2019-10-02 Tom Tromey <tromey@adacore.com>
1344
1345 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1346 * ada-lang.c (lesseq_defined_than): Handle
1347 LOC_STATIC.
1348 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1349 parameter.
1350 (dwarf2_has_info): Likewise.
1351 (new_symbol): Set maybe_copied on symbol when
1352 appropriate.
1353 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1354 parameter.
1355 <can_copy>: New member.
1356 * elfread.c (record_minimal_symbol): Set maybe_copied
1357 on symbol when appropriate.
1358 (elf_symfile_read): Update call to dwarf2_has_info.
1359 * minsyms.c (lookup_minimal_symbol_linkage): New
1360 function.
1361 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1362 * symtab.c (get_symbol_address, get_msymbol_address):
1363 New functions.
1364 * symtab.h (get_symbol_address, get_msymbol_address):
1365 Declare.
1366 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1367 maybe_copied.
1368 (struct symbol, struct minimal_symbol) <maybe_copied>:
1369 New member.
1370
1371 2019-10-02 Tom Tromey <tromey@adacore.com>
1372
1373 * source.c (struct current_source_location): New.
1374 (current_source_key): New global.
1375 (current_source_symtab, current_source_line)
1376 (current_source_pspace): Remove.
1377 (get_source_location): New function.
1378 (get_current_source_symtab_and_line)
1379 (set_default_source_symtab_and_line)
1380 (set_current_source_symtab_and_line)
1381 (clear_current_source_symtab_and_line, select_source_symtab)
1382 (info_source_command, print_source_lines_base)
1383 (info_line_command, search_command_helper, _initialize_source):
1384 Update.
1385
1386 2019-10-02 Tom Tromey <tromey@adacore.com>
1387
1388 * source.c (select_source_symtab): Don't call
1389 decode_line_with_current_source.
1390
1391 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * symtab.c (lookup_global_symbol): Search global block.
1394
1395 2019-10-02 Tom Tromey <tromey@adacore.com>
1396
1397 * coffread.c (process_coff_symbol): Update.
1398 * dwarf2read.c (var_decode_location, new_symbol): Update.
1399 * mdebugread.c (parse_symbol): Update.
1400 * objfiles.c (relocate_one_symbol): Update.
1401 * stabsread.c (define_symbol, fix_common_block)
1402 (scan_file_globals): Update.
1403 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1404 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1405 * xcoffread.c (process_xcoff_symbol): Update.
1406
1407 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1408
1409 * MAINTAINERS: Update my email address.
1410
1411 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1414 std::vector.
1415 (build_type_psymtabs_reader): Update for std::vector.
1416 (build_type_psymtab_dependencies): Likewise.
1417 * dwarf2read.h: Remove use of DEF_VEC_P.
1418 (typedef sig_type_ptr): Delete.
1419
1420 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1423 to std::vector.
1424 (btrace_maint_decode_pt): Likewise, and move allocation of the
1425 vector outside of the loop.
1426 (btrace_maint_update_packets): Update to handle change from VEC to
1427 std::vector.
1428 (btrace_maint_print_packets): Likewise.
1429 (maint_info_btrace_cmd): Likewise.
1430 * btrace.h: Remove use of DEF_VEC_O.
1431 (typedef btrace_pt_packet_s): Delete.
1432 (struct btrace_maint_info) <packets>: Change fromm VEC to
1433 std::vector.
1434 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1435
1436 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1439 make accesses into the vector constant references.
1440 (btrace_add_pc): Update for std::vector.
1441 (btrace_stitch_bts): Likewise.
1442 (parse_xml_btrace_block): Likewise.
1443 (btrace_maint_update_packets): Likewise.
1444 (btrace_maint_print_packets): Likewise.
1445 (maint_info_btrace_cmd): Likewise.
1446 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1447 std::vector.
1448 (btrace_data::empty): Likewise.
1449 (btrace_data_append): Likewise.
1450 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1451 (typedef btrace_block_s): Delete.
1452 (struct btrace_block): Add constructor.
1453 (struct btrace_data_bts) <blocks>: Change to std::vector.
1454 * nat/linux-btrace.c (perf_event_read_bts): Update for
1455 std::vector.
1456 (linux_read_bts): Likewise.
1457
1458 2019-10-01 Tom Tromey <tom@tromey.com>
1459
1460 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1461
1462 2019-10-01 Tom Tromey <tom@tromey.com>
1463
1464 * stack.c (print_frame, info_frame_command_core): Use
1465 styled_string.
1466 * linux-thread-db.c (try_thread_db_load_1)
1467 (try_thread_db_load_from_pdir_1): Use styled_string.
1468 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1469 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1470 (maybe_print_unsupported_script_warning)
1471 (maybe_print_script_not_found_warning): Use styled_string.
1472 * ada-lang.c (user_select_syms): Use styled_string.
1473
1474 2019-10-01 Tom Tromey <tom@tromey.com>
1475
1476 * p-lang.c (pascal_printstr): Use metadata style.
1477 * value.c (show_convenience): Use metadata style.
1478 * valprint.c (valprint_check_validity, val_print_optimized_out)
1479 (val_print_not_saved, val_print_unavailable)
1480 (val_print_invalid_address, generic_val_print, val_print)
1481 (value_check_printable, val_print_array_elements): Use metadata
1482 style.
1483 * ui-out.h (class ui_out) <field_fmt>: New overload.
1484 <do_field_fmt>: Add style parameter.
1485 * ui-out.c (ui_out::field_fmt): New overload.
1486 * typeprint.c (type_print_unknown_return_type)
1487 (val_print_not_allocated, val_print_not_associated): Use metadata
1488 style.
1489 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1490 parameter.
1491 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1492 * tracepoint.c (tvariables_info_1): Use metadata style.
1493 * stack.c (print_frame_arg, print_frame_info, print_frame)
1494 (info_frame_command_core): Use metadata style.
1495 * skip.c (info_skip_command): Use metadata style.
1496 * rust-lang.c (rust_print_enum): Use metadata style.
1497 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1498 metadata style.
1499 * python/py-framefilter.c (py_print_single_arg): Use metadata
1500 style.
1501 * printcmd.c (do_one_display, print_variable_and_value): Use
1502 metadata style.
1503 * p-valprint.c (pascal_val_print)
1504 (pascal_object_print_value_fields): Use metadata style.
1505 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1506 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1507 parameter.
1508 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1509 * m2-valprint.c (m2_print_long_set): Use metadata style.
1510 * m2-typeprint.c (m2_print_type): Use metadata style.
1511 * infcmd.c (print_return_value_1): Use metadata style.
1512 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1513 * f-valprint.c (info_common_command_for_block): Use metadata
1514 style.
1515 * f-typeprint.c (f_type_print_base): Use metadata style.
1516 * expprint.c (print_subexp_standard): Use metadata style.
1517 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1518 * cli/cli-style.h (class cli_style_option): Add constructor.
1519 (metadata_style): Declare.
1520 * cli/cli-style.c (metadata_style): New global.
1521 (_initialize_cli_style): Register metadata style.
1522 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1523 parameter.
1524 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1525 * c-typeprint.c (c_type_print_base_struct_union)
1526 (c_type_print_base_1): Use metadata style.
1527 * breakpoint.c (watchpoint_value_print)
1528 (print_one_breakpoint_location): Use metadata style.
1529 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1530 style.
1531 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1532 style.
1533 * ada-valprint.c (val_print_packed_array_elements, printstr)
1534 (print_field_values, ada_val_print_ref, ada_val_print): Use
1535 metadata style.
1536 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1537 style.
1538 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1539 style.
1540 * ada-lang.c (user_select_syms): Use metadata style.
1541
1542 2019-10-01 Tom Tromey <tom@tromey.com>
1543
1544 * cli/cli-cmds.c (pwd_command): Style output.
1545
1546 2019-10-01 Pedro Alves <palves@redhat.com>
1547 Tom Tromey <tom@tromey.com>
1548
1549 * symtab.c (print_symbol_info): Use %ps.
1550 (print_msymbol_info): Use %ps.
1551 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1552 * printcmd.c (print_variable_and_value): Use %ps.
1553 * macrocmd.c (show_pp_source_pos): Use %ps.
1554 * infrun.c (print_exited_reason): Use ui_out::message.
1555 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1556 (describe_other_breakpoints): Use ui_out::message and new
1557 formats.
1558 (say_where): Use new formats.
1559 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1560 and new formats.
1561
1562 2019-10-01 Pedro Alves <palves@redhat.com>
1563 Tom Tromey <tom@tromey.com>
1564
1565 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1566 (test_gdb_formats): New function.
1567 (run_tests): Call it.
1568 (test_format_specifier): Update.
1569 * utils.h (fputs_filtered): Update comment.
1570 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1571 (fputs_styled_unfiltered): Declare.
1572 * utils.c (fputs_styled_unfiltered): New function.
1573 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1574 (vfprintf_filtered): Update.
1575 (vfprintf_unfiltered, vprintf_filtered): Update.
1576 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1577 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1578 disallow_ui_out_field>: New constants.
1579 (enum class field_kind): New.
1580 (struct base_field_s, struct signed_field_s): New.
1581 (signed_field): New function.
1582 (struct string_field_s): New.
1583 (string_field): New function.
1584 (struct styled_string_s): New.
1585 (styled_string): New function.
1586 (class ui_out) <message>: Add comment.
1587 <vmessage, call_do_message>: New methods.
1588 <do_message>: Add style parameter.
1589 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1590 methods.
1591 (ui_out::message): Rewrite.
1592 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1593 parameter.
1594 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1595 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1596 gdb_extensions parameter.
1597 (class format_piece): Add parameter to constructor.
1598 (n_int_args): New field.
1599 * gdbsupport/format.c (format_pieces::format_pieces): Add
1600 gdb_extensions parameter. Handle '*'.
1601 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1602 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1603 vfprintf_styled_no_gdbfmt.
1604 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1605 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1606 unfiltered output.
1607 * ui-style.h (struct ui_file_style) <ptr>: New method.
1608
1609 2019-10-01 Tom Tromey <tom@tromey.com>
1610
1611 * unittests/format_pieces-selftests.c: Update. Add final format.
1612 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1613 empty literal pieces.
1614
1615 2019-10-01 Tom Tromey <tom@tromey.com>
1616
1617 * ui-out.h (enum class ui_out_style_kind): Remove.
1618 (class ui_out) <field_string, field_stsream, do_field_string>:
1619 Change type of "style".
1620 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1621 (ui_out::field_string): Update.
1622 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1623 of "style".
1624 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1625 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1626 * stack.c (print_frame_arg, print_frame_info, print_frame):
1627 Update.
1628 * source.c (print_source_lines_base): Update.
1629 * solib.c (info_sharedlibrary_command): Update.
1630 * skip.c (info_skip_command): Update.
1631 * record-btrace.c (btrace_call_history_src_line)
1632 (btrace_call_history): Update.
1633 * python/py-framefilter.c (py_print_frame): Update.
1634 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1635 "style".
1636 * mi/mi-out.c (mi_ui_out::do_table_header)
1637 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1638 (mi_ui_out::do_field_string): Update.
1639 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1640 Update.
1641 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1642 "style".
1643 * cli-out.c (cli_ui_out::do_table_header)
1644 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1645 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1646 (cli_ui_out::do_field_fmt): Update.
1647 * breakpoint.c (print_breakpoint_location): Update.
1648 (update_static_tracepoint): Update.
1649
1650 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1651
1652 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1653 conversion of gdb_datadir.
1654 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1655 remove not needed c_str ().
1656
1657 2019-09-30 Ali Tamur <tamur@google.com>
1658
1659 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1660 (dwarf2_string_attr): Likewise.
1661
1662 2019-09-30 Ali Tamur <tamur@google.com>
1663
1664 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1665 (process_full_type_unit): Likewise.
1666 (dump_die_shallow): Likewise.
1667 (cu_debug_loc_section): Likewise.
1668
1669 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1670
1671 * minsyms.c (compare_minimal_symbols): Rename to...
1672 (minimal_symbol_is_less_than): ...this, and adjust to STL
1673 conventions (return bool, take arguments as references)
1674 (minimal_symbol_reader::install): Call std::sort instead
1675 of qsort.
1676
1677 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1678
1679 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1680 hash and why.
1681 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1682 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1683
1684 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1685
1686 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1687 * psympriv.h (add_psymbol_to_list): Move comment here and update
1688 it.
1689
1690 2019-09-29 Tom de Vries <tdevries@suse.de>
1691
1692 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1693 Use $tmpdir/$(basename "$output_file").dwz instead of
1694 "${output_file}.dwz".
1695
1696 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1697
1698 PR gdb/25045
1699 * hppa-linux-nat.c: Include gdbarch.h.
1700
1701 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1702
1703 * blockframe.c (find_pc_partial_function): Change return type to bool.
1704 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1705 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1706 (stub_gnu_ifunc_resolve_name): Likewise.
1707 * symtab.c (compare_filenames_for_search): Likewise.
1708 (compare_glob_filenames_for_search): Likewise.
1709 (matching_obj_sections): Likewise.
1710 (symbol_matches_domain): Likewise.
1711 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1712 (find_line_pc): Change return type to bool.
1713 (find_line_pc_range): Likewise.
1714 (producer_is_realview): Likewise.
1715 * symtab.h (symbol_matches_domain): Likewise.
1716 (find_pc_partial_function): Likewise.
1717 (find_pc_line_pc_range): Likewise.
1718 (in_gnu_ifunc_stub): Likewise.
1719 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1720 (find_line_pc): Likewise.
1721 (find_line_pc_range): Likewise.
1722 (matching_obj_sections): Likewise.
1723 (find_line_symtab): Change out parameter to bool.
1724 (producer_is_realview): Change return type to bool.
1725 (compare_filenames_for_search): Likewise.
1726 (compare_glob_filenames_for_search): Likewise.
1727
1728 2019-09-26 Tom Tromey <tom@tromey.com>
1729
1730 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1731 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1732 * gdb_usleep.h: Remove.
1733 * gdb_usleep.c: Remove.
1734 * utils.c: Don't include gdb_usleep.h.
1735
1736 2019-09-26 Tom Tromey <tromey@adacore.com>
1737
1738 * python/py-type.c (type_to_type_object): Call check_typedef
1739 for stub types.
1740
1741 2019-09-26 Tom Tromey <tom@tromey.com>
1742
1743 * utils.h (initialize_utils): Don't declare.
1744 * top.c (gdb_init): Don't call initialize_utils.
1745 * utils.c (initialize_utils): Remove. Move contents...
1746 (_initialize_utils): ... here.
1747
1748 2019-09-25 Tom Tromey <tom@tromey.com>
1749
1750 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1751 * utils.h (make_hex_string): Don't declare.
1752 * utils.c (make_hex_string): Remove.
1753
1754 2019-09-24 Tom de Vries <tdevries@suse.de>
1755
1756 PR gdb/23815
1757 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1758 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1759
1760 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1761
1762 * NEWS: Mention new simulator port for PRU.
1763
1764 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1765
1766 * ada-exp.y (write_object_remaining): Update.
1767 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1768 and eliminate the static buffer.
1769 (ada_decode_symbol): Update.
1770 (ada_la_decode): Update.
1771 (ada_sniff_from_mangled_name): Update.
1772 (is_valid_name_for_wild_match): Update.
1773 (ada_lookup_name_info::matches): Update and simplify.
1774 (name_matches_regex): Update.
1775 (ada_add_global_exceptions): Update.
1776 * ada-lang.h (ada_decode): Update signature.
1777 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1778 * dwarf-index-write.c (debug_names::insert): Update.
1779
1780 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1781
1782 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1783 formatting.
1784
1785 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1786
1787 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1788 Change "nonzero" to "true" in documentation.
1789
1790 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1791
1792 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1793 (_initialize_darwin_solib): Don't set
1794 darwin_so_ops.lookup_lib_global_symbol.
1795 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1796 set_gdbarch_iterate_over_objfiles_in_search_order.
1797 (elf_lookup_lib_symbol): Rename to...
1798 (svr4_iterate_over_objfiles_in_search_order): this, and update
1799 to iterate semantics.
1800 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1801 * solib.c (solib_global_lookup): Remove.
1802 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1803 (solib_global_lookup): Remove.
1804 * symtab.c (lookup_global_or_static_symbol): Remove call to
1805 solib_global_lookup.
1806
1807 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1808
1809 * NEWS: Move entries about default MI version now being
1810 version 3, and about the GDB/MI fix for multi-location
1811 breakpoints to the "since GDB 8.3" section.
1812
1813 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1814
1815 GDB 8.3.1 released.
1816
1817 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1818
1819 * NEWS: Mention that Cell/B.E. debugging support was removed.
1820 * MAINTAINERS: Remove spu target.
1821
1822 * config/djgpp/fnchange.lst: Remove entries for removed files.
1823
1824 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1825 spu-multiarch.o, and spu-tdep.o.
1826 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1827 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1828 spu-multiarch.c, and spu-tdep.c.
1829 * spu-linux-nat.c: Remove file.
1830 * spu-multiarch.c: Remove file.
1831 * spu-tdep.c: Remove file.
1832 * spu-tdep.h: Remove file.
1833 * solib-spu.c: Remove file.
1834 * solib-spu.h: Remove file.
1835
1836 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1837 * configure.nat (spu-linux): Remove.
1838 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1839 solib-multiarch.o from gdb_target_obs.
1840 (spu*-*-*): Remove.
1841
1842 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1843 feature flag.
1844 (ppc_linux_no_features): Update.
1845 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1846 Cell/B.E. support.
1847 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1848 (tdesc_powerpc_cell64l): Likewise.
1849 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1850 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1851 Cell/B.E. support.
1852 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1853 Do not include "features/rs6000/powerpc-cell32l.c" or
1854 "features/rs6000/powerpc-cell64l.c".
1855 (ppc_linux_spu_section): Remove.
1856 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1857 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1858 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1859 (ppc_linux_spe_context_lookup): Remove.
1860 (ppc_linux_spe_context_inferior_created): Remove.
1861 (ppc_linux_spe_context_solib_loaded): Remove.
1862 (ppc_linux_spe_context_solib_unloaded): Remove.
1863 (ppc_linux_spe_context): Remove.
1864 (struct ppu2spu_cache): Remove.
1865 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1866 (struct ppu2spu_data): Remove.
1867 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1868 ppu2spu_unwind): Remove.
1869 (ppc_linux_init_abi): Remove Cell/B.E. support.
1870 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1871
1872 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1873 (rs6000/powerpc-cell64l-expedite): Likewise
1874 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1875 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1876 rs6000/powerpc-cell64l.xml.
1877 * features/rs6000/powerpc-cell32l.xml: Remove.
1878 * features/rs6000/powerpc-cell64l.xml: Likewise.
1879 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1880 * features/rs6000/powerpc-cell64l.c: Likewise.
1881 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1882 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1883 * regformats/reg-spu.dat: Remove.
1884
1885 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1886 * corelow.c (struct spuid_list): Remove.
1887 (add_to_spuid_list): Remove.
1888 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1889 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1890 (remote_protocol_features): Remove associated entries.
1891 (_initialize_remote): No longer initialize them.
1892 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1893 * linux-nat.c (SPUFS_MAGIC): Remove.
1894 (linux_proc_xfer_spu): Remove.
1895 (spu_enumerate_spu_ids): Remove.
1896 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1897 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1898 (linux_make_corefile_notes): No longer call it.
1899
1900 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1901 (cooked_write_test): Likewise.
1902
1903 2019-09-20 Tom Tromey <tom@tromey.com>
1904
1905 * NEWS: Mention case-sensitivity of TUI commands.
1906 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1907 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1908 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1909
1910 2019-09-20 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-source.c (tui_source_window::set_contents): Use
1913 make_unique_xstrdup.
1914 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1915 make_unique_xstrdup.
1916
1917 2019-09-20 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-data.c: Remove separator comments.
1920 * tui/tui-layout.c: Remove separator comments.
1921 * tui/tui-win.c: Remove separator comments.
1922 * tui/tui-wingeneral.c: Remove separator comments.
1923
1924 2019-09-20 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui.h (strcat_to_buf): Don't declare.
1927 * tui/tui.c (strcat_to_buf): Remove.
1928
1929 2019-09-20 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1932 from "fullname".
1933 * tui/tui-source.c (tui_source_window::set_contents)
1934 (tui_source_window::location_matches_p)
1935 (tui_source_window::maybe_update): Update.
1936
1937 2019-09-20 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1940 Update.
1941 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1942 prefix.
1943 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1944 (tui_data_window::line_from_reg_element_no)
1945 (tui_data_window::first_reg_element_no_inline)
1946 (tui_data_window::show_registers)
1947 (tui_data_window::show_register_group)
1948 (tui_data_window::display_registers_from)
1949 (tui_data_window::display_registers_from_line)
1950 (tui_data_window::first_data_item_displayed)
1951 (tui_data_window::delete_data_content_windows)
1952 (tui_data_window::erase_data_content)
1953 (tui_data_window::do_scroll_vertical)
1954 (tui_data_window::refresh_window)
1955 (tui_data_window::check_register_values): Update.
1956
1957 2019-09-20 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1960 (struct tui_locator_window) <full_name, proc_name>: Now
1961 std::string.
1962 * tui/tui-stack.c (tui_locator_window::make_status_line)
1963 (tui_locator_window::set_locator_fullname)
1964 (tui_locator_window::set_locator_info): Update.
1965 * tui/tui-source.c (tui_source_window::set_contents)
1966 (tui_source_window::showing_source_p): Update.
1967
1968 2019-09-20 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1971 Don't call tui_locator_win_info_ptr.
1972
1973 2019-09-20 Tom Tromey <tom@tromey.com>
1974
1975 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1976
1977 2019-09-20 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1980 height for locator.
1981 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1982 * tui/tui-layout.c (show_source_disasm_command, show_data)
1983 (show_source_or_disasm_and_command): Use 1 as height for locator.
1984
1985 2019-09-20 Tom Tromey <tom@tromey.com>
1986
1987 * tui/tui.c (tui_enable): Update.
1988 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1989 Update.
1990 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1991 Update.
1992 * tui/tui-data.c (win_resized): Now bool.
1993 (tui_win_resized): Return bool.
1994 (tui_set_win_resized_to): Accept a bool.
1995
1996 2019-09-20 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1999 Change type of "refresh_values_only".
2000 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2001 type of "refresh_values_only".
2002
2003 2019-09-20 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2006 std::string.
2007 (tui_disassemble): Add "pos" parameter.
2008 (tui_disasm_window::set_contents): Simplify.
2009
2010 2019-09-20 Tom Tromey <tom@tromey.com>
2011
2012 * tui/tui-winsource.h (struct tui_source_window_base)
2013 <show_source_content>: Now private.
2014 * tui/tui-winsource.c
2015 (tui_source_window_base::show_source_content): Don't handle empty
2016 content case.
2017
2018 2019-09-20 Tom Tromey <tom@tromey.com>
2019
2020 * tui/tui-layout.c (show_source_disasm_command)
2021 (show_source_or_disasm_and_command): Don't call
2022 show_source_content.
2023
2024 2019-09-20 Tom Tromey <tom@tromey.com>
2025
2026 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2027 Declare.
2028 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2029 from tui_make_status_line.
2030 (tui_locator_window::rerender): Update.
2031
2032 2019-09-20 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2035 (tui_locator_window::rerender): Update.
2036
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-winsource.h (struct tui_source_window_base)
2040 <~tui_source_window_base>: Don't declare.
2041 <fullname>: Remove.
2042 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2043 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2044 member.
2045 * tui/tui-source.c (tui_source_window::set_contents): Update.
2046 (tui_source_window::location_matches_p)
2047 (tui_source_window::maybe_update): Update.
2048
2049 2019-09-20 Tom Tromey <tom@tromey.com>
2050
2051 * tui/tui-winsource.h (~tui_source_element): Remove.
2052 (tui_source_element): Update.
2053 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2054 * tui/tui-winsource.c (tui_show_source_line): Update.
2055 * tui/tui-source.c (tui_source_window::set_contents): Update.
2056 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2057
2058 2019-09-20 Tom Tromey <tom@tromey.com>
2059
2060 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2061 declare.
2062 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2063 tui_clear_source_windows_detail.
2064 * tui/tui-winsource.h (struct tui_source_window_base)
2065 <clear_detail>: Don't declare.
2066 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2067 Remove.
2068 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2069
2070 2019-09-20 Tom Tromey <tromey@adacore.com>
2071
2072 PR ada/24919:
2073 * block.c (contained_in): Fix final return value.
2074
2075 2019-09-20 Alan Modra <amodra@gmail.com>
2076
2077 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2078 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2079 (read_indirect_string_from_dwz): Use bfd accessor.
2080 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2081 * machoread.c (macho_symfile_read_all_oso): Likewise.
2082 * solib.c (solib_bfd_open): Likewise.
2083
2084 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2085
2086 * eval.c: Move declaration of overload_resolution to...
2087 * value.h: ...here.
2088
2089 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2090
2091 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2092 * arm-linux-tdep.c: Likewise.
2093 * arm-nbsd-nat.c: Likewise.
2094 * arm-tdep.h: Declare arm_apcs_32.
2095 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2096
2097 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2098
2099 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2100 * dwarf2read.h: Declare dwarf_always_disassemble.
2101
2102 2019-09-19 Tom de Vries <tdevries@suse.de>
2103
2104 PR gdb/25009
2105 * source-cache.c (source_cache::ensure): Catch exception thrown during
2106 construction of the highlighter.
2107
2108 2019-09-18 Alan Modra <amodra@gmail.com>
2109
2110 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2111 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2112 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2113 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2114 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2115 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2116 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2117 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2118 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2119 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2120 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2121 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2122 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2123 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2124 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2125 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2126 * mi/mi-interp.c: Update throughout for bfd section macro and
2127 function changes.
2128 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2129 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2130
2131 2019-09-18 Tom Tromey <tom@tromey.com>
2132
2133 * NEWS: Add entry.
2134 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2135 call rl_initialize.
2136 (tui_enable): Do not call rl_initialize.
2137
2138 2019-09-18 Christian Groessler <chris@groessler.org>
2139
2140 * alpha-linux-nat.c: Include gdbarch.h.
2141
2142 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * ui-file.c: Include cli/cli-style.h.
2145 (term_cli_styling): Remove cli_styling declaration.
2146
2147 2019-09-18 Alan Modra <amodra@gmail.com>
2148
2149 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2150 to bfd_asymbol_section.
2151
2152 2019-09-18 Alan Modra <amodra@gmail.com>
2153
2154 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2155 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2156 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2157
2158 2019-09-18 Alan Modra <amodra@gmail.com>
2159
2160 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2161 * spu-linux-nat.c (spu_bfd_open): Likewise.
2162
2163 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2164
2165 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2166 to bool to match definition in dwarf2read.c.
2167
2168 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2169
2170 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2171 (print_signatures): Likewise.
2172 (trust_pad_over_xvs): Likewise.
2173 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2174 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2175 * arm-linux-nat.c (arm_apcs_32): Likewise.
2176 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2177 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2178 * arm-tdep.c (arm_debug): Likewise.
2179 (arm_apcs_32): Likewise.
2180 * auto-load.c (debug_auto_load): Likewise.
2181 (auto_load_gdb_scripts): Likewise.
2182 (global_auto_load): Likewise.
2183 (auto_load_local_gdbinit): Likewise.
2184 (auto_load_local_gdbinit_loaded): Likewise.
2185 * auto-load.h (global_auto_load): Likewise.
2186 (auto_load_local_gdbinit): Likewise.
2187 (auto_load_local_gdbinit_loaded): Likewise.
2188 * breakpoint.c (disconnected_dprintf): Likewise.
2189 (breakpoint_proceeded): Likewise.
2190 (automatic_hardware_breakpoints): Likewise.
2191 (always_inserted_mode): Likewise.
2192 (target_exact_watchpoints): Likewise.
2193 (_initialize_breakpoint): Update.
2194 * breakpoint.h (target_exact_watchpoints): Change to bool.
2195 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2196 * cli/cli-cmds.c (trace_commands): Likewise.
2197 * cli/cli-cmds.h (trace_commands): Likewise.
2198 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2199 to bool*.
2200 * cli/cli-logging.c (logging_overwrite): Change to bool.
2201 (logging_redirect): Likewise.
2202 (debug_redirect): Likewise.
2203 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2204 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2205 to bool.
2206 <boolean_option_def>: Update.
2207 (struct flag_option_def): Change default type of Context to bool
2208 from int.
2209 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2210 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2211 (get_setshow_command_value_string): Likewise.
2212 * cli/cli-style.c (cli_styling): Change to bool.
2213 (source_styling): Likewise.
2214 * cli/cli-style.h (source_styling): Likewise.
2215 (cli_styling): Likewise.
2216 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2217 to bool.
2218 * command.h (var_types): Update comment.
2219 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2220 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2221 bool.
2222 (debug_compile_cplus_scopes): Likewise.
2223 * compile/compile-internal.h (compile_debug): Likewise.
2224 * compile/compile.c (compile_debug): Likewise.
2225 (struct compile_options) <raw>: Likewise.
2226 * cp-support.c (catch_demangler_crashes): Likewise.
2227 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2228 (usr_cmd_cris_dwarf2_cfi): Likewise.
2229 * csky-tdep.c (csky_debug): Likewise.
2230 * darwin-nat.c (enable_mach_exceptions): Likewise.
2231 * dcache.c (dcache_enabled_p): Likewise.
2232 * defs.h (info_verbose): Likewise.
2233 * demangle.c (demangle): Likewise.
2234 (asm_demangle): Likewise.
2235 * dwarf-index-cache.c (debug_index_cache): Likewise.
2236 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2237 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2238 * dwarf2read.c (check_physname): Likewise.
2239 (use_deprecated_index_sections): Likewise.
2240 (dwarf_always_disassemble): Likewise.
2241 * eval.c (overload_resolution): Likewise.
2242 * event-top.c (set_editing_cmd_var): Likewise.
2243 (exec_done_display_p): Likewise.
2244 * event-top.h (set_editing_cmd_var): Likewise.
2245 (exec_done_display_p): Likewise.
2246 * exec.c (write_files): Likewise.
2247 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2248 (debug_fbsd_nat): Likewise.
2249 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2250 Likewise.
2251 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2252 <backtrace_past_entry> Likewise.
2253 * gdb-demangle.h (demangle): Likewise.
2254 (asm_demangle): Likewise.
2255 * gdb_bfd.c (bfd_sharing): Likewise.
2256 * gdbcore.h (write_files): Likewise.
2257 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2258 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2259 * gdbthread.h (print_thread_events): Likewise.
2260 * gdbtypes.c (opaque_type_resolution): Likewise.
2261 (strict_type_checking): Likewise.
2262 * gnu-nat.c (gnu_debug_flag): Likewise.
2263 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2264 * guile/scm-param.c (pascm_variable): Add boolval.
2265 (add_setshow_generic): Update.
2266 (pascm_param_value): Update.
2267 (pascm_set_param_value_x): Update.
2268 * hppa-tdep.c (hppa_debug): Change to bool..
2269 * infcall.c (may_call_functions_p): Likewise.
2270 (coerce_float_to_double_p): Likewise.
2271 (unwind_on_signal_p): Likewise.
2272 (unwind_on_terminating_exception_p): Likewise.
2273 * infcmd.c (startup_with_shell): Likewise.
2274 * inferior.c (print_inferior_events): Likewise.
2275 * inferior.h (startup_with_shell): Likewise.
2276 (print_inferior_events): Likewise.
2277 * infrun.c (step_stop_if_no_debug): Likewise.
2278 (detach_fork): Likewise.
2279 (debug_displaced): Likewise.
2280 (disable_randomization): Likewise.
2281 (non_stop): Likewise.
2282 (non_stop_1): Likewise.
2283 (observer_mode): Likewise.
2284 (observer_mode_1): Likewise.
2285 (set_observer_mode): Update.
2286 (sched_multi): Change to bool.
2287 * infrun.h (debug_displaced): Likewise.
2288 (sched_multi): Likewise.
2289 (step_stop_if_no_debug): Likewise.
2290 (non_stop): Likewise.
2291 (disable_randomization): Likewise.
2292 * linux-tdep.c (use_coredump_filter): Likewise.
2293 (dump_excluded_mappings): Likewise.
2294 * linux-thread-db.c (auto_load_thread_db): Likewise.
2295 (check_thread_db_on_load): Likewise.
2296 * main.c (captured_main_1): Update.
2297 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2298 xx2_opt, boolean_opt>: Change to bool.
2299 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2300 * maint.c (maintenance_profile_p): Likewise.
2301 (per_command_time): Likewise.
2302 (per_command_space): Likewise.
2303 (per_command_symtab): Likewise.
2304 * memattr.c (inaccessible_by_default): Likewise.
2305 * mi/mi-main.c (mi_async): Likewise.
2306 (mi_async_1): Likewise.
2307 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2308 * nat/fork-inferior.h (startup_with_shell): Likewise.
2309 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2310 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2311 * nios2-tdep.c (nios2_debug): Likewise.
2312 * or1k-tdep.c (or1k_debug): Likewise.
2313 * parse.c (parser_debug): Likewise.
2314 * parser-defs.h (parser_debug): Likewise.
2315 * printcmd.c (print_symbol_filename): Likewise.
2316 * proc-api.c (procfs_trace): Likewise.
2317 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2318 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2319 (set_parameter_value): Update.
2320 (add_setshow_generic): Update.
2321 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2322 to bool*.
2323 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2324 int*.
2325 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2326 * record-btrace.c (record_btrace_target::store_registers): Update.
2327 * record-full.c (record_full_memory_query): Change to bool.
2328 (record_full_stop_at_limit): Likewise.
2329 * record-full.h (record_full_memory_query): Likewise.
2330 * remote-notif.c (notif_debug): Likewise.
2331 * remote-notif.h (notif_debug): Likewise.
2332 * remote.c (use_range_stepping): Likewise.
2333 (interrupt_on_connect): Likewise.
2334 (remote_break): Likewise.
2335 * ser-tcp.c (tcp_auto_retry): Likewise.
2336 * ser-unix.c (serial_hwflow): Likewise.
2337 * skip.c (debug_skip): Likewise.
2338 * solib-aix.c (solib_aix_debug): Likewise.
2339 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2340 (spu_auto_flush_cache_p): Likewise.
2341 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2342 Likewise.
2343 (struct info_print_options) <quiet>: Likewise.
2344 * symfile-debug.c (debug_symfile): Likewise.
2345 * symfile.c (auto_solib_add): Likewise.
2346 (separate_debug_file_debug): Likewise.
2347 * symfile.h (auto_solib_add): Likewise.
2348 (separate_debug_file_debug): Likewise.
2349 * symtab.c (basenames_may_differ): Likewise.
2350 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2351 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2352 (struct info_types_options) <quiet>: Likewise.
2353 * symtab.h (demangle): Likewise.
2354 (basenames_may_differ): Likewise.
2355 * target-dcache.c (stack_cache_enabled_1): Likewise.
2356 (code_cache_enabled_1): Likewise.
2357 * target.c (trust_readonly): Likewise.
2358 (may_write_registers): Likewise.
2359 (may_write_memory): Likewise.
2360 (may_insert_breakpoints): Likewise.
2361 (may_insert_tracepoints): Likewise.
2362 (may_insert_fast_tracepoints): Likewise.
2363 (may_stop): Likewise.
2364 (auto_connect_native_target): Likewise.
2365 (target_stop_and_wait): Update.
2366 (target_async_permitted): Change to bool.
2367 (target_async_permitted_1): Likewise.
2368 (may_write_registers_1): Likewise.
2369 (may_write_memory_1): Likewise.
2370 (may_insert_breakpoints_1): Likewise.
2371 (may_insert_tracepoints_1): Likewise.
2372 (may_insert_fast_tracepoints_1): Likewise.
2373 (may_stop_1): Likewise.
2374 * target.h (target_async_permitted): Likewise.
2375 (may_write_registers): Likewise.
2376 (may_write_memory): Likewise.
2377 (may_insert_breakpoints): Likewise.
2378 (may_insert_tracepoints): Likewise.
2379 (may_insert_fast_tracepoints): Likewise.
2380 (may_stop): Likewise.
2381 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2382 (make_thread_apply_all_options_def_group): Change argument from int*
2383 to bool*.
2384 (thread_apply_all_command): Update.
2385 (print_thread_events): Change to bool.
2386 * top.c (confirm): Likewise.
2387 (command_editing_p): Likewise.
2388 (history_expansion_p): Likewise.
2389 (write_history_p): Likewise.
2390 (info_verbose): Likewise.
2391 * top.h (confirm): Likewise.
2392 (history_expansion_p): Likewise.
2393 * tracepoint.c (disconnected_tracing): Likewise.
2394 (circular_trace_buffer): Likewise.
2395 * typeprint.c (print_methods): Likewise.
2396 (print_typedefs): Likewise.
2397 * utils.c (debug_timestamp): Likewise.
2398 (sevenbit_strings): Likewise.
2399 (pagination_enabled): Likewise.
2400 * utils.h (sevenbit_strings): Likewise.
2401 (pagination_enabled): Likewise.
2402 * valops.c (overload_resolution): Likewise.
2403 * valprint.h (struct value_print_options) <prettyformat_arrays,
2404 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2405 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2406 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2407 Likewise.
2408 * windows-nat.c (new_console): Likewise.
2409 (cygwin_exceptions): Likewise.
2410 (new_group): Likewise.
2411 (debug_exec): Likewise.
2412 (debug_events): Likewise.
2413 (debug_memory): Likewise.
2414 (debug_exceptions): Likewise.
2415 (useshell): Likewise.
2416 * windows-tdep.c (maint_display_all_tib): Likewise.
2417 * xml-support.c (debug_xml): Likewise.
2418
2419 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2420
2421 * source.c (prepare_path_for_appending): New function.
2422 (openp): Make use of new function.
2423 (find_and_open_source): Search for the compilation directory and
2424 source file as a relative path beneath the directory search path.
2425
2426 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * source-cache.c (source_cache::get_line_charpos): Catch
2429 exceptions and return false, this matches the behaviour documented
2430 in the header file.
2431
2432 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2433
2434 * ada-tasks.c (info_task): Remove quoting of the task's name.
2435
2436 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2437
2438 * symfile.c (auto_solib_add): Replace comment with a reference
2439 to the header file.
2440
2441 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2442
2443 * NEWS: Mention that gdb can now be compiled with Python 3
2444 on Windows.
2445
2446 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * maint.c (maint_print_section_data::maint_print_section_data):
2449 Force use of 'float log10 (float)' by casting the argument to
2450 float.
2451
2452 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * maint.c: Add 'cmath' include.
2455 (struct maint_print_section_data): New structure.
2456 (print_section_index): New function.
2457 (print_bfd_section_info): Add header comment, small whitespace
2458 cleanup, and update to call new print_section_index function.
2459 (print_objfile_section_info): Likewise.
2460 (maint_obj_section_from_bfd_section): New function.
2461 (print_bfd_section_info_maybe_relocated): New function.
2462 (maintenance_info_sections): Add header comment, always use
2463 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2464
2465 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2468 inner scope, add check that the objfile has psymtabs before
2469 checking psymtabs_addrmap.
2470 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2471
2472 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2473
2474 * NEWS: Announce that Ada task names are now shown at more places,
2475 and between quotes (except in info task output).
2476 * gdb/ada-tasks.c (task_to_str): New function.
2477 (display_current_task_id): Call task_to_str.
2478 (task_command_1): Likewise.
2479 (print_ada_task_info): In non-mi mode, Properly align headers and data
2480 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2481
2482 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2483
2484 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2485 prstatus.pr_lwp.pr_info instead of making it up.
2486
2487 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2488
2489 * auto-load.c (auto_load_expand_dir_vars): Update.
2490 * defs.h (gdb_datadir): Change to std::string.
2491 (python_libdir): Likewise.
2492 (relocate_gdb_directory): Change return type to std::string.
2493 * guile/guile.c (gdbscm_data_directory): Update.
2494 (initialize_scheme_side): Update.
2495 * jit.c (jit_reader_dir): Change to std::string.
2496 (jit_reader_load_command): Update.
2497 * main.c (gdb_datadir): Change to std::string.
2498 (python_libdir): Likewise.
2499 (set_gdb_data_directory): Update.
2500 (relocate_path): Change to return std::string.
2501 (relocate_gdb_directory): Change to return std::string.
2502 (relocate_gdbinit_path_maybe_in_datadir): Update.
2503 (captured_main_1): Update.
2504 * python/python.c (do_start_initialization): Update.
2505 * top.c (show_gdb_datadir): Update.
2506 * xml-syscall.c (xml_init_syscalls_info): Update.
2507 (init_syscalls_info): Update.
2508
2509 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2510
2511 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2512 out of get_init_files.
2513 (get_init_files): Update.
2514
2515 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2516
2517 * main.c (get_init_files): Change to use std::string.
2518 (captured_main_1): Update.
2519 (print_gdb_help): Update.
2520
2521 2019-09-11 Ali Tamur <tamur@google.com>
2522
2523 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2524 implementation.
2525
2526 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2527
2528 * dbxread.c (read_dbx_symtab): Update.
2529 * dwarf2read.c (load_partial_dies): Update.
2530 * mdebugread.c (parse_partial_symbols): Update.
2531 (handle_psymbol_enumerators): Update.
2532 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2533 * psymtab.c (add_psymbol_to_bcache): Likewise.
2534 (add_psymbol_to_list): Likewise.
2535 * symtab.c (symbol_set_names): Likewise.
2536 * symtab.h (symbol_set_names): Likewise.
2537 * xcoffread.c (scan_xcoff_symtab): Update.
2538
2539 2019-09-11 Tom Tromey <tom@tromey.com>
2540
2541 * symfile-mem.c (symbol_file_add_from_memory): Use
2542 bfd_set_filename.
2543 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2544 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2545
2546 2019-09-10 Tom Tromey <tromey@adacore.com>
2547
2548 * dwarf-index-write.c (write_psymbols): Extend error message.
2549 (debug_names::insert): Add Ada code.
2550 (debug_names::write_psymbols): Remove Ada check.
2551 (debug_names) <m_string_obstack>: New member.
2552 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2553 (gdb_index_symbol_name_matcher::matches): Remove.
2554 (mapped_index_base::find_name_components_bounds): Add "lang"
2555 parameter.
2556 (mapped_index_base::build_name_components): Also split names
2557 according to Ada syntax.
2558 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2559 type of "match_callback".
2560 (check_match, check_find_bounds_finds)
2561 (dw2_expand_symtabs_matching): Update.
2562 (dw2_debug_names_iterator): Add new constructor.
2563 (dw2_debug_names_map_matching_symbols): New function.
2564 (dw2_debug_names_expand_symtabs_matching): Update.
2565 (dwarf2_debug_names_functions): Use
2566 dw2_debug_names_map_matching_symbols.
2567
2568 2019-09-10 Tom Tromey <tromey@adacore.com>
2569
2570 * dwarf2read.c (dw2_get_file_names_reader): Add the
2571 CU's file name to the results.
2572
2573 2019-09-10 Tom Tromey <tromey@adacore.com>
2574
2575 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2576 map_matching_symbols. Update.
2577 * dwarf2read.c (dw2_map_matching_symbols): Update.
2578 * psymtab.c (match_partial_symbol): Change type; update.
2579 (psym_map_matching_symbols): Likewise.
2580 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2581 type; update.
2582 * symfile.h (struct quick_symbol_functions)
2583 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2584 Remove "match".
2585
2586 2019-09-10 Tom Tromey <tromey@adacore.com>
2587
2588 * psymtab.c (map_block): Remove.
2589 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2590 * symtab.c (iterate_over_symbols_terminated): New function.
2591 * symtab.c (iterate_over_symbols_terminated): Declare.
2592
2593 2019-09-10 Tom Tromey <tromey@adacore.com>
2594
2595 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2596 * language.h (struct language_defn) <la_iterate_over_symbols>:
2597 Return bool.
2598 * symtab.c (iterate_over_symbols): Return bool.
2599 * symtab.h (iterate_over_symbols): Return bool.
2600
2601 2019-09-10 Tom Tromey <tromey@adacore.com>
2602
2603 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2604 (add_nonlocal_symbols): Update.
2605 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2606 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2607 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2608 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2609 Change type of "callback". Remove "data".
2610
2611
2612 2019-09-09 Ali Tamur <tamur@google.com>
2613
2614 * dwarf2read.c (comp_unit_head): Update comment.
2615 (dwarf2_dwo_name): New function declaration.
2616 (dwarf_unit_type_name): New function declaration.
2617 (read_comp_unit_head): Add support for new compilation units,
2618 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2619 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2620 (currently named as "signature") in their header. Also clarify error
2621 messages.
2622 (lookup_dwo_id): New function. Returns the dwo id of the given
2623 compile unit.
2624 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2625 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2626 functions.
2627 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2628 (dwarf2_dwo_name): Get the dwo name if present.
2629 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2630 purposes.
2631
2632 2019-09-09 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2635
2636 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2637
2638 * python/python.c (do_start_initialization): Make progname_copy static,
2639 to avoid a leak report.
2640
2641 2019-09-08 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2644
2645 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2646
2647 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2648 Change type to gdb::optional<block_enum>.
2649 (dw2_symtab_iter_init): Change block_index parameter type
2650 to gdb::optional<block_enum>.
2651 (dw2_lookup_symbol): Change block_index parameter
2652 type to block_enum.c
2653 (dw2_debug_names_lookup_symbol): Likewise.
2654 * psymtab.c (psym_lookup_symbol): Likewise.
2655 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2656 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2657 Likewise.
2658
2659 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2660
2661 * defs.h (relocate_gdb_directory): Change int to bool in
2662 signature and rename flag to relocatable.
2663 * main.c (relocate_path): Likewise.
2664 (relocate_gdb_directory): Likewise.
2665
2666 2019-09-06 Alan Modra <amodra@gmail.com>
2667
2668 * coffread.c (coff_symfile_read): Constify filename variable.
2669 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2670 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2671 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2672 * solib.c (reload_shared_libraries_1): Likewise.
2673 * symfile.c (reread_symbols): Likewise.
2674 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2675 * solib-darwin.c (darwin_bfd_open): Likewise.
2676 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2677
2678 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2681 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2682
2683 2019-09-03 Tom Tromey <tromey@adacore.com>
2684
2685 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2686 types.
2687 (has_negatives): Unbias a range type bound.
2688 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2689 * gdbtypes.c (operator==): Handle new field.
2690 (create_range_type): Add "bias" parameter.
2691 (create_static_range_type, resolve_dynamic_range): Update.
2692 * gdbtypes.h (struct range_bounds) <bias>: New member.
2693 (create_range_type): Add bias parameter.
2694 * printcmd.c (print_scalar_formatted): Unbias range types.
2695 * value.c (unpack_long): Unbias range types.
2696 (pack_long): Bias range types.
2697
2698 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2699
2700 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2701 probe arguments.
2702
2703 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2704
2705 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2706 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2707 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2708 (compile_probe_arg): Likewise.
2709 * probe.h (get_argument_count): Likewise.
2710 * solib-svr4.c (solib_event_probe_action): Likewise.
2711 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2712
2713 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2714
2715 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2716 code to here...
2717 (svr4_create_solib_event_breakpoints): ...from here.
2718
2719 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2720
2721 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2722 suffix from warning message.
2723
2724 2019-08-30 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-winsource.h (struct tui_source_window_base)
2727 <refresh_all>: Don't declare.
2728 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2729 Remove.
2730 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2731 tui_show_locator_content.
2732 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2733 declare.
2734 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2735 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2736 declare.
2737
2738 2019-08-30 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2741
2742 2019-08-30 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2745 Remove unnecessary forward declarations.
2746
2747 2019-08-30 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2750 rerender.
2751 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2752 tui_show_locator_content.
2753
2754 2019-08-30 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2757 (tui_locator_window::rerender): Rewrite using body of previous
2758 tui_show_locator_content.
2759
2760 2019-08-30 Tom Tromey <tom@tromey.com>
2761
2762 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2763 set_locator_fullname>: New methods.
2764 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2765 Rename from tui_set_locator_fullname.
2766 (tui_locator_window::set_locator_info): Rename from
2767 tui_set_locator_info. Return bool.
2768 (tui_update_locator_fullname, tui_show_frame_info): Update.
2769
2770 2019-08-30 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2773
2774 2019-08-30 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2777 call touchwin.
2778
2779 2019-08-30 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-wingeneral.c (box_win): Assume win_info and
2782 win_info->handle cannot be NULL.
2783
2784 2019-08-30 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2787 refresh_window>: Declare.
2788 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2789 resize.
2790 (tui_data_item_window::rerender): Rename from
2791 tui_display_register.
2792 (tui_data_item_window::refresh_window): New method.
2793 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2794 no-op.
2795
2796 2019-08-30 Tom Tromey <tom@tromey.com>
2797
2798 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2799 regs_column_count, current_group>: Move later. Now private.
2800 <get_current_group>: New method.
2801 * tui/tui-regs.c (tui_reg_command): Update.
2802 * tui/tui-layout.c (tui_set_layout): Update.
2803
2804 2019-08-30 Tom Tromey <tom@tromey.com>
2805
2806 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2807 (tui_data_window::rerender): Don't call
2808 check_and_display_highlight_if_needed.
2809 (tui_data_window::refresh_all): Remove call to
2810 erase_data_content.
2811
2812 2019-08-30 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2815 (tui_data_window::display_registers_from)
2816 (tui_data_window::display_reg_element_at_line)
2817 (tui_data_window::display_registers_from_line): Remove checks of
2818 "empty".
2819
2820 2019-08-30 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2823 Don't declare.
2824 * tui/tui-regs.c (tui_data_window::show_registers): Call
2825 rerender.
2826 (tui_data_window::rerender): Rename from display_all_data.
2827 (tui_data_window::rerender): Remove old implementation.
2828
2829 2019-08-30 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2832 text.
2833 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2834
2835 2019-08-29 Bernhard Wodok <barto@gmx.net>
2836 Sergio Durigan Junior <sergiodj@redhat.com>
2837
2838 PR win32/24284
2839 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2840
2841 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2842
2843 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2844 when searching for types.
2845
2846 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * f-lang.c (f_language_defn): Use f_print_typedef.
2849 * f-lang.h (f_print_typedef): Declare.
2850 * f-typeprint.c (f_print_typedef): Define.
2851
2852 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2853
2854 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2855
2856 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2857
2858 * cli/cli-utils.c (info_print_options_defs): Delete.
2859 (make_info_print_options_def_group): Delete.
2860 (extract_info_print_options): Delete.
2861 (info_print_command_completer): Delete.
2862 (info_print_args_help): Add extra parameter, and optionally
2863 include text about -n flag.
2864 * cli/cli-utils.h (struct info_print_options): Delete.
2865 (extract_info_print_options): Delete declaration.
2866 (info_print_command_completer): Delete declaration.
2867 (info_print_args_help): Add extra parameter, extend header
2868 comment.
2869 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2870 search_symbols.
2871 * stack.c (struct info_print_options): New type.
2872 (info_print_options_defs): New file scoped variable.
2873 (make_info_print_options_def_group): New static function.
2874 (info_print_command_completer): New static function.
2875 (info_locals_command): Update to use new local functions.
2876 (info_args_command): Likewise.
2877 (_initialize_stack): Add extra parameter to calls to
2878 info_print_args_help.
2879 * symtab.c (search_symbols): Add extra parameter, use this to
2880 possibly excluse non-debug symbols.
2881 (symtab_symbol_info): Add extra parameter, which is passed on to
2882 search_symbols.
2883 (struct info_print_options): New type.
2884 (info_print_options_defs): New file scoped variable.
2885 (make_info_print_options_def_group): New static function.
2886 (info_print_command_completer): New static function.
2887 (info_variables_command): Update to use local functions, and pass
2888 extra parameter through to symtab_symbol_info.
2889 (info_functions_command): Likewise.
2890 (info_types_command): Pass additional argument through to
2891 symtab_symbol_info.
2892 (rbreak_command): Pass extra argument to search_symbols.
2893 (_initialize_symtab): Add extra arguments for calls to
2894 info_print_args_help, and update help text for 'info variables',
2895 'whereis', and 'info functions' commands.
2896 * symtab.h (search_symbols): Add extra argument to declaration.
2897 * NEWS: Mention new flags.
2898
2899 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2900
2901 * symtab.c (lookup_static_symbol): Call the new function (and move
2902 it down to be next to lookup_global_symbol).
2903 (struct global_sym_lookup_data): Add block_enum member and rename to...
2904 (struct global_or_static_sym_lookup_data): ...this.
2905 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2906 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2907 (lookup_symbol_global_or_static_iterator_cb): ...this.
2908 (lookup_global_or_static_symbol): New function.
2909 (lookup_global_symbol): Call new function.
2910
2911 2019-08-26 Tom de Vries <tdevries@suse.de>
2912
2913 PR c++/24852
2914 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2915 when pc_probe.prob == NULL.
2916
2917 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2920 variable symbol_linkage to symbol_linkage_.
2921
2922 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2925 represent whether the symbol is static, dynamic, or we don't
2926 know.
2927
2928 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2929
2930 * gdb/rx-tdep.c (rx_register_names): New.
2931 (rx_register_name): Delete.
2932 (rx_psw_type): Delete.
2933 (rx_fpsw_type): Delete.
2934 (rx_register_type): Delete.
2935 (rx_gdbarch_init): Convert target-descriptions.
2936 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2937 * gdb/features/Makefile: Add rx.xml.
2938 * gdb/features/rx.xml: New.
2939 * gdb/features/rx.c: Generated.
2940 * gdb/NEWS: Mention target description support.
2941
2942 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2943
2944 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2945 *slot_ptr.
2946
2947 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2948
2949 * configure.ac: Don't check for 'dlfcn.h' (moved to
2950 gdbsupport/common.m4).
2951 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2952 'gdbsupport/'.
2953 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2954 * compile/compile-c-support.c: Include
2955 'gdbsupport/gdb-dlfcn.h'.
2956 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2957 * gdb-dlfcn.c: Move to...
2958 * gdbsupport/gdb-dlfcn.c: ... here.
2959 * gdb-dlfcn.h: Move to...
2960 * gdbsupport/gdb-dlfcn.h: ... here.
2961
2962 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2963
2964 * nios2-tdep.c (struct reg_value): Improve comments. Make
2965 the offset field signed.
2966
2967 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2968
2969 * python/lib/gdb/__init__.py (_execute_file): New function.
2970 * python/python.c (python_run_simple_file): Call gdb._execute_file
2971 on Windows.
2972
2973 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2974
2975 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2976 all uses as this was never set to anything but a zero value.
2977
2978 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2979
2980 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2981
2982 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2983
2984 * tui/tui-data.h (tui_gen_win_info): Add an =default
2985 move constructor, required by some GCC versions.
2986
2987 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2988
2989 * go32-nat.c (go32_sysinfo): Add hygon_p.
2990
2991 2019-08-20 Tom Tromey <tom@tromey.com>
2992
2993 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2994 line_from_reg_element_no, first_reg_element_no_inline,
2995 display_all_data, delete_data_content_windows,
2996 erase_data_content>: Now private.
2997
2998 2019-08-20 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3001 (tui_unhighlight_win, tui_highlight_win)
3002 (tui_win_info::make_window): Update.
3003 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3004
3005 2019-08-20 Tom Tromey <tom@tromey.com>
3006
3007 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3008 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3009 (MAX_PID_WIDTH): Move to tui-stack.c.
3010 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3011 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3012 (MAX_PID_WIDTH): Move from tui-data.h.
3013
3014 2019-08-20 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3017 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3018 (box_win): Update.
3019 (tui_gen_win_info::make_window): Rename from tui_make_window.
3020 (tui_win_info::make_window): New method.
3021 (tui_gen_win_info::make_visible): Update.
3022 * tui/tui-source.c (tui_source_window::set_contents): Update.
3023 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3024 (tui_data_window::display_registers_from): Update.
3025 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3026 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3027 Declare.
3028 <can_box>: Remove.
3029 <title>: Remove.
3030 (struct tui_win_info) <make_window>: Declare.
3031 <can_box>: Now virtual.
3032 <title>: New member.
3033 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3034 * tui/tui-command.c (tui_cmd_window::resize): Update.
3035
3036 2019-08-20 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3039 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3040 (tui_data_window::check_register_values): Update.
3041
3042 2019-08-20 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-regs.h (struct tui_data_window): Use
3045 DISABLE_COPY_AND_ASSIGN.
3046 <regs_content>: Change type, removing unique_ptr.
3047 <tui_data_window>: Add move constructor.
3048 * tui/tui-regs.c (tui_data_window::show_registers)
3049 (tui_data_window::show_register_group)
3050 (tui_data_window::display_registers_from)
3051 (tui_data_window::display_registers_from)
3052 (tui_data_window::first_data_item_displayed)
3053 (tui_data_window::delete_data_content_windows)
3054 (tui_data_window::rerender, tui_data_window::refresh_window)
3055 (tui_data_window::check_register_values): Update.
3056
3057 2019-08-20 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3060 show_register_group>: Declare.
3061 (tui_show_register_group): Don't declare.
3062 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3063 tui_show_registers.
3064 (tui_data_window::show_register_group): Rename from
3065 tui_show_register_group.
3066 (tui_data_window::check_register_values, tui_reg_command):
3067 Update.
3068 * tui/tui-layout.c (tui_set_layout): Update.
3069
3070 2019-08-20 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3073 Declare.
3074 (tui_check_register_values): Don't declare.
3075 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3076 from tui_check_register_values.
3077 * tui/tui-hooks.c (tui_register_changed): Update.
3078
3079 2019-08-20 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-regs.c (tui_reg_layout): Move later.
3082 (tui_show_registers): Don't enable TUI mode or change layout.
3083
3084 2019-08-20 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-regs.h (struct tui_data_item_window)
3087 <~tui_data_item_window>: Remove.
3088 <content>: Now a unique_xmalloc_ptr.
3089 * tui/tui-regs.c (tui_register_format): Return a
3090 unique_xmalloc_ptr.
3091 (tui_get_register): Update.
3092 (~tui_data_item_window): Remove.
3093 (tui_data_window::display_registers_from, tui_display_register):
3094 Update.
3095 * tui/tui-io.h (tui_expand_tabs): Update.
3096 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3097 Remove "col" parameter.
3098
3099 2019-08-20 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3102 field.
3103 * tui/tui-regs.c (~tui_data_item_window): Update.
3104
3105 2019-08-20 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3108 earlier.
3109
3110 2019-08-20 Tom Tromey <tom@tromey.com>
3111
3112 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3113
3114 2019-08-20 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-source.h (struct tui_source_window): Update.
3117 * tui/tui-regs.c (tui_show_registers): Update.
3118 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3119 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3120 (NO_REGS_STRING): Remove defines.
3121
3122 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3123
3124 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3125 unnecessary thread walk if remote doesn't support the packet.
3126
3127 2019-08-19 Tom Tromey <tromey@adacore.com>
3128
3129 * python/py-value.c (value_has_field): Fix indentation.
3130
3131 2019-08-19 Tom Tromey <tromey@adacore.com>
3132
3133 * printcmd.c (do_one_display, info_display_command): Update.
3134 * block.h (contained_in): Return bool. Add allow_nested
3135 parameter.
3136 * block.c (contained_in): Return bool. Add allow_nested
3137 parameter.
3138
3139 2019-08-19 Tom Tromey <tom@tromey.com>
3140
3141 * configure: Rebuild.
3142 * configure.ac: Disallow the combination of -static-libstdc++ and
3143 source highlight.
3144 * source-cache.c (get_language_name): Handle rust.
3145 (source_cache::get_source_lines): Ignore highlighting exceptions.
3146
3147 2019-08-16 Tom Tromey <tom@tromey.com>
3148
3149 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3150 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3151 (struct tui_source_window_base) <make_visible, refresh_window,
3152 resize>: Remove methods.
3153 <execution_info>: Remove field.
3154 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3155 (tui_show_source_line, tui_source_window_base)
3156 (~tui_source_window_base): Update.
3157 (tui_source_window_base::resize)
3158 (tui_source_window_base::make_visible)
3159 (tui_source_window_base::refresh_window): Remove.
3160 (tui_source_window_base::update_exec_info): Update.
3161 * tui/tui-source.c (tui_source_window::set_contents): Update.
3162 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3163
3164 2019-08-16 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3167 deprecated_query_hook.
3168
3169 2019-08-16 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3172 (tui_update_source_windows_with_line): Update.
3173 * tui/tui-source.h (struct tui_source_window)
3174 <show_symtab_source>: Declare.
3175 (tui_show_symtab_source): Don't declare.
3176 * tui/tui-source.c (tui_show_symtab_source): Rename from
3177 tui_show_symtab_source.
3178
3179 2019-08-16 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-winsource.h (struct tui_source_window_base)
3182 <set_contents>: Declare.
3183 * tui/tui-winsource.c
3184 (tui_source_window_base::update_source_window_as_is): Update.
3185 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3186 Declare.
3187 (tui_set_source_content): Don't declare.
3188 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3189 tui_set_source_content.
3190 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3191 Declare.
3192 (tui_set_disassem_content): Don't declare.
3193 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3194 tui_set_disassem_content.
3195
3196 2019-08-16 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-winsource.h (struct tui_source_window_base)
3199 <update_breakpoint_info>: Declare.
3200 (tui_update_breakpoint_info): Don't declare.
3201 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3202 (tui_update_all_breakpoint_info): Update.
3203 (tui_source_window_base::update_breakpoint_info): Rename from
3204 tui_update_breakpoint_info.
3205 (tui_source_window_base::update_exec_info): Update.
3206
3207 2019-08-16 Tom Tromey <tom@tromey.com>
3208
3209 * tui/tui-winsource.h (struct tui_source_window_base)
3210 <update_source_window>: Declare.
3211 (tui_update_source_window): Don't declare.
3212 * tui/tui-winsource.c
3213 (tui_source_window_base::update_source_window): Rename from
3214 tui_update_source_window.
3215 (tui_source_window_base::rerender): Update.
3216 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3217 * tui/tui-disasm.c (tui_show_disassem)
3218 (tui_show_disassem_and_update_source)
3219 (tui_disasm_window::maybe_update): Update.
3220
3221 2019-08-16 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-winsource.h (struct tui_source_window_base)
3224 <update_source_window_as_is>: Declare.
3225 (tui_update_source_window_as_is): Don't declare.
3226 * tui/tui-winsource.c (tui_update_source_window): Update
3227 (tui_source_window_base::update_source_window_as_is): Rename from
3228 tui_update_source_window_as_is.
3229 (tui_source_window_base::refill): Update.
3230 * tui/tui-source.c (tui_show_symtab_source): Update.
3231 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3232 Update.
3233
3234 2019-08-16 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-winsource.h (tui_update_source_window)
3237 (tui_update_source_window_as_is): Remove "noerror" parameter.
3238 * tui/tui-winsource.c (tui_update_source_window)
3239 (tui_update_source_window_as_is): Remove "noerror" parameter.
3240 (tui_update_source_windows_with_addr)
3241 (tui_update_source_windows_with_line)
3242 (tui_source_window_base::rerender)
3243 (tui_source_window_base::refill): Update.
3244 * tui/tui-source.h (tui_set_source_content)
3245 (tui_show_symtab_source): Remove "noerror" parameter.
3246 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3247 parameter.
3248 (tui_show_symtab_source): Likewise.
3249 (tui_source_window::maybe_update): Update.
3250 * tui/tui-disasm.c (tui_show_disassem)
3251 (tui_show_disassem_and_update_source)
3252 (tui_disasm_window::do_scroll_vertical)
3253 (tui_disasm_window::maybe_update): Update.
3254
3255 2019-08-16 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui.c (tui_is_window_visible): Update.
3258 * tui/tui-wingeneral.c (tui_make_window)
3259 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3260 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3261 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3262 (tui_set_win_height_command, parse_scrolling_args): Update.
3263 * tui/tui-source.c (tui_source_window::style_changed): Update.
3264 * tui/tui-regs.c (tui_show_registers)
3265 (tui_data_window::first_data_item_displayed)
3266 (tui_data_window::delete_data_content_windows)
3267 (tui_check_register_values, tui_reg_command): Update.
3268 * tui/tui-disasm.c (tui_show_disassem): Update.
3269 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3270 method.
3271 <is_visible>: Remove field.
3272 * tui/tui-data.c (tui_next_win, tui_prev_win)
3273 (tui_delete_invisible_windows): Update.
3274
3275 2019-08-16 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-winsource.h (struct tui_source_window_base)
3278 <m_has_locator>: Remove.
3279 * tui/tui-layout.c (show_source_disasm_command, show_data)
3280 (show_source_or_disasm_and_command): Update.
3281
3282 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3283
3284 * NEWS (Other MI changes): New subsection.
3285 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3286 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3287 * arch-utils.c (default_get_pc_address_flags): New function.
3288 * arch-utils.h (default_get_pc_address_flags): New declaration.
3289 * gdbarch.sh: Add get_pc_address_flags.
3290 * gdbarch.c: Regenerate.
3291 * gdbarch.h: Likewise.
3292 * stack.c (print_pc): New function.
3293 (print_frame_info) (print_frame): Call print_pc.
3294
3295 2019-08-16 Tom de Vries <tdevries@suse.de>
3296
3297 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3298 print_objfile_section_info.
3299
3300 2019-08-15 Tom Tromey <tom@tromey.com>
3301
3302 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3303 calling update_cmdwin_start_line.
3304 * tui/tui-winsource.h (struct tui_source_window_base)
3305 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3306 <rerender>: Declare.
3307 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3308 Call rerender.
3309 (tui_source_window_base::set_new_height): Remove.
3310 (tui_source_window_base::rerender): Rename from
3311 do_make_visible_with_new_height.
3312 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3313 resize method.
3314 (tui_win_info::make_invisible_and_set_new_height)
3315 (tui_win_info::make_visible_with_new_height): Remove.
3316 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3317 Declare.
3318 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3319 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3320 do_make_visible_with_new_height>: Don't declare.
3321 <rerender>: Declare.
3322 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3323 set_new_height.
3324 (tui_data_window::do_make_visible_with_new_height): Remove.
3325 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3326 call tui_show_locator_content.
3327 (tui_gen_win_info::resize): Call rerender.
3328 (show_source_or_disasm_and_command): Don't call
3329 tui_show_locator_content.
3330 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3331 method.
3332 (struct tui_win_info) <rerender>: Declare.
3333 <set_new_height, make_invisible_and_set_new_height,
3334 make_visible_with_new_height>: Don't declare.
3335 * tui/tui-data.c (tui_win_list::rerender): New method.
3336 * tui/tui-command.h (struct tui_cmd_window)
3337 <do_make_visible_with_new_height>: Don't declare.
3338 * tui/tui-command.c
3339 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3340
3341 2019-08-15 Tom Tromey <tromey@adacore.com>
3342
3343 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3344 * ada-lang.c (ada_enum_name): Likewise.
3345
3346 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3347
3348 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3349 leading underscore.
3350 (GdbOutputErrorFile): Likewise.
3351 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3352 accordingly.
3353 (execute_unwinders): Rename to have a leading underscore.
3354 (auto_load_packages): Likewise.
3355 (global scope): Adjust call to auto_load_packages accordingly.
3356 (GdbSetPythonDirectory): Likewise.
3357 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3358 instead of execute_unwinders.
3359
3360 2019-08-15 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3363 (show_data): Don't change window visibility.
3364 (tui_gen_win_info::resize): Remove special case for command
3365 window. Use wresize, when available.
3366 (show_source_or_disasm_and_command): Don't change window
3367 visibility.
3368 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3369 <make_visible>: New method.
3370 * tui/tui-command.c (tui_cmd_window::resize): New method.
3371
3372 2019-08-15 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3375 (struct tui_source_windows): New.
3376 * tui/tui-winsource.c (tui_display_main): Update.
3377 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3378 (new_height_ok, parse_scrolling_args): Update.
3379 * tui/tui-layout.c (show_layout, show_data): Update.
3380 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3381 (tui_add_to_source_windows): Don't declare.
3382 * tui/tui-data.c (source_windows, tui_source_windows)
3383 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3384
3385 2019-08-15 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3388 Rename from reset.
3389 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3390 * tui/tui-layout.c (show_source_disasm_command, show_data):
3391 Update.
3392 (tui_gen_win_info::resize): Rename.
3393 (show_source_or_disasm_and_command): Update.
3394 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3395 reset.
3396
3397 2019-08-15 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3400 * tui/tui-interp.c (tui_interp::init): Don't call
3401 tui_initialize_static_data.
3402 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3403
3404 2019-08-15 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3407 examine tui_win_list.
3408
3409 2019-08-15 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3412 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3413 tui_clear_source_content.
3414 (tui_clear_source_content): Remove.
3415 (tui_source_window_base::do_erase_source_content): Hoist call to
3416 content.clear().
3417 * tui/tui-stack.c (tui_show_frame_info): Don't call
3418 tui_clear_source_content.
3419
3420 2019-08-15 Tom Tromey <tom@tromey.com>
3421
3422 * tui/tui-winsource.h (struct tui_source_window_base)
3423 <do_erase_source_content>: New method.
3424 <erase_source_content>: New method.
3425 (tui_erase_source_content): Don't declare.
3426 * tui/tui-winsource.c (tui_clear_source_content): Update.
3427 (tui_source_window_base::do_erase_source_content): Rename from
3428 tui_erase_source_content.
3429 (tui_source_window_base::show_source_content): Update.
3430 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3431 * tui/tui-source.h (struct tui_source_window)
3432 <erase_source_content>: New method.
3433 * tui/tui-disasm.h (struct tui_disasm_window)
3434 <erase_source_content>: New method.
3435
3436 2019-08-15 Tom Tromey <tom@tromey.com>
3437
3438 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3439 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3440 constructor.
3441 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3442 * tui/tui-source.c (tui_set_source_content): Update.
3443 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3444
3445 2019-08-15 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3448 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3449 tui-source.c.
3450 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3451 Declare.
3452 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3453 method.
3454 (tui_source_window::maybe_update): Update.
3455
3456 2019-08-15 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3459 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3460 tui-disasm.c.
3461 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3462 Declare.
3463 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3464 method.
3465 (tui_disasm_window::maybe_update): Update.
3466
3467 2019-08-15 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-winsource.h (struct tui_source_window_base)
3470 <maybe_update>: Declare.
3471 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3472 method.
3473 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3474 Declare.
3475 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3476 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3477 Declare.
3478 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3479
3480 2019-08-15 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3483
3484 2019-08-15 Tom Tromey <tom@tromey.com>
3485
3486 * tui/tui-wingeneral.c: Include tui-stack.h.
3487 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3488 (struct tui_locator_window): Move from tui-data.h.
3489 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3490 (tui_initialize_static_data): Move from tui-data.c.
3491 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3492 (struct tui_locator_window): Move to tui-stack.c.
3493 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3494 (tui_initialize_static_data): Move to tui-stack.c.
3495
3496 2019-08-15 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-layout.c (show_source_disasm_command)
3499 (show_source_or_disasm_and_command): Use make_visible method, not
3500 tui_make_window.
3501 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3502 Remove.
3503
3504 2019-08-15 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-wingeneral.h (tui_make_window): Update.
3507 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3508 parameter.
3509 (tui_gen_win_info::make_visible): Update.
3510 * tui/tui-regs.c (tui_data_window::display_registers_from):
3511 Update.
3512 * tui/tui-layout.c (show_source_disasm_command)
3513 (show_source_or_disasm_and_command): Update.
3514 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3515 (enum tui_box): Remove.
3516 (struct tui_win_info) <can_box>: New method.
3517 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3518 method.
3519
3520 2019-08-15 Tom de Vries <tdevries@suse.de>
3521
3522 * linux-nat-trad.c: Include gdbarch.h.
3523
3524 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3525
3526 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3527 register sizes.
3528
3529 2019-08-14 Tom Tromey <tromey@adacore.com>
3530
3531 * darwin-nat.c: Include gdbarch.h.
3532 * darwin-nat-info.c: Include gdbarch.h.
3533
3534 2019-08-13 Tom Tromey <tom@tromey.com>
3535
3536 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3537 Remove.
3538 * tui/tui-data.c (tui_initialize_static_data): Update.
3539
3540 2019-08-13 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-winsource.h (struct tui_exec_info_window)
3543 <~tui_exec_info_window, maybe_allocate_content, get_content,
3544 m_content>: Remove.
3545 (struct tui_source_window_base) <set_exec_info_content,
3546 show_exec_info_content>: Don't declare.
3547 * tui/tui-winsource.c
3548 (tui_exec_info_window::maybe_allocate_content): Remove.
3549 (tui_source_window_base::update_exec_info): Rename from
3550 set_exec_info_content.
3551 (tui_source_window_base::show_exec_info_content)
3552 (tui_source_window_base::update_exec_info): Remove.
3553
3554 2019-08-13 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3557 declare.
3558 * tui/tui-winsource.c (tui_update_source_window_as_is)
3559 (tui_update_source_windows_with_addr, tui_erase_source_content):
3560 Update.
3561 (tui_clear_exec_info_content): Remove.
3562
3563 2019-08-13 Tom Tromey <tom@tromey.com>
3564
3565 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3566 declare.
3567 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3568 call tui_erase_exec_info_content.
3569 (tui_clear_exec_info_content): Rename from
3570 tui_erase_exec_info_content.
3571 (tui_clear_exec_info_content): Delete.
3572
3573 2019-08-13 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-winsource.h (struct tui_source_window_base)
3576 <show_exec_info_content>: Declare.
3577 (tui_show_exec_info_content): Don't declare.
3578 * tui/tui-winsource.c
3579 (tui_source_window_base::show_exec_info_content): Rename from
3580 tui_show_exec_info_content.
3581 (tui_source_window_base::update_exec_info): Update.
3582
3583 2019-08-13 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3586 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3587 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3588 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3589 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3590 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3591 ... here.
3592
3593 2019-08-13 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-winsource.h (struct tui_source_window_base)
3596 <update_exec_info>: Declare.
3597 (tui_update_exec_info): Don't declare.
3598 * tui/tui-winsource.c (tui_update_source_window_as_is)
3599 (tui_source_window_base::refresh_all)
3600 (tui_update_all_breakpoint_info): Update.
3601 (tui_source_window_base::update_exec_info): Rename from
3602 tui_update_exec_info.
3603 * tui/tui-stack.c (tui_show_frame_info): Update.
3604
3605 2019-08-13 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-winsource.h (struct tui_source_window_base)
3608 <set_exec_info_content>: Declare.
3609 (tui_set_exec_info_content): Don't declare.
3610 * tui/tui-winsource.c
3611 (tui_source_window_base::set_exec_info_content): Rename from
3612 tui_set_exec_info_content.
3613 (tui_update_exec_info): Update.
3614
3615 2019-08-13 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-winsource.h (struct tui_source_window_base)
3618 <show_source_content>: Declare.
3619 (tui_show_source_content): Don't declare.
3620 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3621 (tui_source_window_base::show_source_content): Rename from
3622 tui_show_source_content.
3623 (tui_source_window_base::refresh_all): Update.
3624 * tui/tui-layout.c (show_source_disasm_command)
3625 (show_source_or_disasm_and_command): Update.
3626
3627 2019-08-13 Tom Tromey <tom@tromey.com>
3628
3629 * tui/tui-winsource.c (tui_erase_source_content)
3630 (tui_show_source_content, tui_source_window_base::refresh_all):
3631 Update.
3632 * tui/tui-wingeneral.h
3633 (tui_check_and_display_highlight_if_needed): Don't declare.
3634 * tui/tui-wingeneral.c
3635 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3636 check_and_display_highlight_if_needed.
3637 * tui/tui-win.c (tui_rehighlight_all)
3638 (tui_win_info::make_visible_with_new_height): Update.
3639 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3640 (tui_data_window::erase_data_content)
3641 (tui_data_window::display_all_data): Update.
3642 * tui/tui-data.h (struct tui_win_info)
3643 <check_and_display_highlight_if_needed>: Declare.
3644
3645 2019-08-13 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-win.c (tui_resize_all): Call
3648 tui_delete_invisible_windows.
3649 * tui/tui-layout.c (show_layout): Call
3650 tui_delete_invisible_windows.
3651 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3652 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3653
3654 2019-08-13 Tom Tromey <tom@tromey.com>
3655
3656 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3657 tui_add_win_to_layout.
3658
3659 2019-08-13 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3662 * tui/tui-layout.c (tui_default_win_height): Now static.
3663
3664 2019-08-13 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3667 single switch.
3668 (show_source_disasm_command, show_source_or_disasm_and_command):
3669 Don't check current layout.
3670
3671 2019-08-13 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-wingeneral.c (make_all_visible): Remove.
3674 (tui_make_all_invisible): Simplify.
3675 * tui/tui-layout.c (tui_make_all_invisible): Move from
3676 tui-wingeneral.c; simplify.
3677 (show_layout): Hoist call to tui_make_all_invisible.
3678 (show_data): Don't call tui_make_all_invisible.
3679
3680 2019-08-13 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3683 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3684
3685 2019-08-13 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3688 tui-data.c.
3689 (show_source_disasm_command, show_data)
3690 (show_source_or_disasm_and_command): Don't use
3691 tui_set_current_layout_to.
3692 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3693 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3694 tui-layout.c.
3695 (tui_set_current_layout_to): Remove.
3696
3697 2019-08-13 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-layout.c (tui_set_layout): Update.
3700 * tui/tui-data.h (struct tui_layout_def): Remove.
3701 (tui_layout_def): Don't declare.
3702 * tui/tui-data.c (layout_def): Remove.
3703 (tui_layout_def): Remove.
3704
3705 2019-08-13 Tom Tromey <tom@tromey.com>
3706
3707 * tui/tui-winsource.h (struct tui_source_window_base)
3708 <clear_detail>: No longer "override".
3709 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3710 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3711 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3712 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3713 Remove.
3714 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3715
3716 2019-08-13 Tom Tromey <tromey@adacore.com>
3717
3718 * tracepoint.c: Don't include readline.h or history.h.
3719
3720 2019-08-12 Tom Tromey <tom@tromey.com>
3721
3722 * configure: Rebuild.
3723 * configure.ac: Check for readline 7.
3724 * NEWS: Mention readline 7 requirement.
3725 * README: Update.
3726
3727 2019-08-12 Tom Tromey <tom@tromey.com>
3728
3729 * mingw-hdep.c (gdb_select): Remove readline hack.
3730
3731 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3732
3733 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3734 when the function fails.
3735
3736 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3737
3738 * s390-tdep.c (s390_type_align): New function.
3739 (s390_gdbarch_init): Set it as type_align gdbarch method.
3740
3741 2019-08-09 Tom de Vries <tdevries@suse.de>
3742
3743 PR gdb/24591
3744 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3745 pc_low with relocation offset.
3746
3747 2019-08-07 Tom Tromey <tromey@adacore.com>
3748
3749 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3750 (print_frame_args): Update.
3751 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3752 Update.
3753 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3754 * frame.h (struct frame_arg): Add initializers.
3755 <error>: Now a unique_xmalloc_ptr.
3756
3757 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3758
3759 * NEWS: Expand the Pointer Authentication entry.
3760 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3761 (aarch64_frame_unmask_lr): ... to this.
3762 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3763 Call aarch64_frame_unmask_lr.
3764 * frame.c (struct frame_info): Add "masked" variable.
3765 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3766 (fprint_frame): Check for masked pc.
3767 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3768 declarations.
3769 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3770 * stack.c (print_frame): Check for masked pc.
3771
3772 2019-08-06 Tom Tromey <tom@tromey.com>
3773
3774 * stabsread.c (patch_block_stabs, read_one_struct_field)
3775 (read_enum_type): Use obstack_strndup.
3776 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3777 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3778 * dwarf2read.c (guess_full_die_structure_name)
3779 (anonymous_struct_prefix): Use obstack_strndup.
3780 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3781 * c-exp.y (yylex): Use obstack_strndup.
3782 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3783 (write_var_or_type): Use obstack_strndup.
3784
3785 2019-08-06 Tom Tromey <tom@tromey.com>
3786
3787 * symfile.c (reread_symbols): Use obstack_strdup.
3788 * stabsread.c (read_type): Use obstack_strdup.
3789 * gdb_obstack.h (obstack_strdup): New overload.
3790 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3791 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3792 (dwarf2_canonicalize_name): Use obstack_strdup.
3793 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3794 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3795 Use obstack_strdup.
3796
3797 2019-08-06 Tom Tromey <tom@tromey.com>
3798
3799 * gdb_obstack.h (obstack_strdup): Define.
3800 * gdb_obstack.c (obstack_strdup): Don't define.
3801
3802 2019-08-06 Tom Tromey <tom@tromey.com>
3803
3804 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3805 obstack_strdup.
3806 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3807 obstack_strdup.
3808 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3809 * stabsread.c (common_block_start): Use obstack_strdup.
3810 * objfiles.c (set_objfile_main_name, objfile): Use
3811 obstack_strdup.
3812 * namespace.c (add_using_directive): Use obstack_strdup.
3813 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3814 * jit.c (finalize_symtab): Use obstack_strdup.
3815 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3816 (guess_partial_die_structure_name, partial_die_info::fixup)
3817 (dwarf2_name): Use obstack_strdup.
3818 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3819 obstack_strdup.
3820 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3821 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3822 obstack_strdup.
3823 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3824
3825 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3826
3827 * unittests/help-doc-selftests.c: New file.
3828 * Makefile.in: Add the new file.
3829
3830 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3831
3832 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3833 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3834 the full first line, except when FOR_VALUE_PREFIX. In this case,
3835 the trailing '.' is not output, and the first character is uppercased.
3836 (print_help_for_command): Update call to print_doc_line.
3837 (print_doc_of_command): Likewise.
3838 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3839 * cli/cli-option.c (append_indented_doc): Do not append newline.
3840 (build_help_option): Append newline after first appended_indented_doc
3841 only if a second call is done.
3842 (build_help): Append 2 new lines before each option, except the first
3843 one.
3844 * compile/compile.c (_initialize_compile): Add new lines after
3845 %OPTIONS%, when not at the end of the help.
3846 Change help doc or code
3847 producing the help doc to respect the invariants.
3848 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3849 Also removed the new line after 'Options:', as all other commands
3850 do not put an empty line between 'Options:' and the first option.
3851 * printcmd.c (_initialize_printcmd): Likewise.
3852 * stack.c (_initialize_stack): Likewise.
3853 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3854 incorrectly telling COMMAND is optional.
3855 * ada-lang.c (_initialize_ada_language): Change help doc or code
3856 producing the help doc to respect the invariants.
3857 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3858 * breakpoint.c (_initialize_breakpoint): Likewise.
3859 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3860 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3861 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3862 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3863 _initialize_cli_style): Likewise.
3864 * corelow.c (core_target_info): Likewise.
3865 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3866 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3867 * filesystem.c (_initialize_filesystem): Likewise.
3868 * frame.c (_initialize_frame): Likewise.
3869 * gnu-nat.c (add_task_commands): Likewise.
3870 * infcall.c (_initialize_infcall): Likewise.
3871 * infcmd.c (_initialize_infcmd): Likewise.
3872 * interps.c (_initialize_interpreter): Likewise.
3873 * language.c (_initialize_language): Likewise.
3874 * linux-fork.c (_initialize_linux_fork): Likewise.
3875 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3876 * maint.c (_initialize_maint_cmds): Likewise.
3877 * memattr.c (_initialize_mem): Likewise.
3878 * printcmd.c (_initialize_printcmd): Likewise.
3879 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3880 _RegEx): Likewise.
3881 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3882 * record-btrace.c (_initialize_record_btrace): Likewise.
3883 * record-full.c (_initialize_record_full): Likewise.
3884 * record.c (_initialize_record): Likewise.
3885 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3886 * regcache.c (_initialize_regcache): Likewise.
3887 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3888 _initialize_remote): Likewise.
3889 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3890 * serial.c (_initialize_serial): Likewise.
3891 * skip.c (_initialize_step_skip): Likewise.
3892 * source.c (_initialize_source): Likewise.
3893 * stack.c (_initialize_stack): Likewise.
3894 * symfile.c (_initialize_symfile): Likewise.
3895 * symtab.c (_initialize_symtab): Likewise.
3896 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3897 * top.c (init_main): Likewise.
3898 * tracefile-tfile.c (tfile_target_info): Likewise.
3899 * tracepoint.c (_initialize_tracepoint): Likewise.
3900 * tui/tui-win.c (_initialize_tui_win): Likewise.
3901 * utils.c (add_internal_problem_command): Likewise.
3902 * valprint.c (value_print_option_defs): Likewise.
3903
3904 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3905
3906 PR build/24886
3907 * configure.ac: Drop enable-libmcheck support.
3908 * configure, config.in: Rebuild.
3909 * libmcheck.m4: Remove.
3910 * acinclude.m4: Don't include it.
3911 * Makefile.in: Don't distribute it.
3912 * top.c (print_gdb_configuration): Don't mention it.
3913
3914 2019-08-06 Tom Tromey <tom@tromey.com>
3915
3916 * utils.c (set_output_style): Sometimes pass stream to
3917 emit_style_escape.
3918 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3919 * record-btrace.c (btrace_insn_history): Update.
3920 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3921 method.
3922 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3923 Update initializers.
3924 <m_uiout>: New field.
3925 <m_di>: Move lower.
3926 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3927 Remove "uiout" parameter.
3928 (dump_insns): Update.
3929 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3930 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3931
3932 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3933
3934 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3935 (error_in_psymtab_expansion): Likewise.
3936 (lookup_symbol_via_quick_fns): Likewise.
3937 (basic_lookup_transparent_type_quick): Likewise.
3938 (basic_lookup_transparent_type_1): Likewise.
3939
3940 2019-08-06 Tom Tromey <tromey@adacore.com>
3941
3942 * source.c (last_source_error): Now bool.
3943 (print_source_lines_base): Make "noprint" bool. Only open
3944 source file when last_source_visited changes.
3945
3946 2019-08-06 Tom Tromey <tromey@adacore.com>
3947
3948 * annotate.c (annotate_source_line): Use g_source_cache.
3949 * source-cache.c (source_cache::get_plain_source_lines): Change
3950 parameters. Populate m_offset_cache.
3951 (source_cache::ensure): New method.
3952 (source_cache::get_line_charpos): New method.
3953 (extract_lines): Move lower. Change parameters.
3954 (source_cache::get_source_lines): Move lower.
3955 * source-cache.h (class source_cache): Update comment.
3956 <get_line_charpos>: New method.
3957 <get_source_lines>: Update comment.
3958 <clear>: Clear m_offset_cache.
3959 <get_plain_source_lines>: Change parameters.
3960 <ensure>: New method
3961 <m_offset_cache>: New member.
3962 * source.c (forget_cached_source_info_for_objfile): Update.
3963 (info_source_command): Use g_source_cache.
3964 (find_source_lines, open_source_file_with_line_charpos): Remove.
3965 (print_source_lines_base, search_command_helper): Use g_source_cache.
3966 * source.h (open_source_file_with_line_charpos): Don't declare.
3967 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3968 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3969 Use g_source_cache.
3970
3971 2019-08-06 Tom Tromey <tromey@adacore.com>
3972
3973 * source-cache.c (source_cache::get_plain_source_lines):
3974 Remove "first_line" and "last_line" parameters.
3975 (source_cache::get_source_lines): Cache plain text.
3976 * source-cache.h (class source_cache)
3977 <get_plain_source_lines>: Update.
3978
3979 2019-08-06 Tom Tromey <tromey@adacore.com>
3980
3981 * source-cache.c (extract_lines): No longer a method.
3982 Changed type of parameter. Include final newline.
3983 (selftests::extract_lines_test): New function.
3984 (_initialize_source_cache): Likewise.
3985 * source-cache.h (class source_cache)
3986 <extract_lines>: Don't declare.
3987
3988 2019-08-06 Tom Tromey <tromey@adacore.com>
3989
3990 * breakpoint.c (init_breakpoint_sal): Update.
3991 (breakpoint): Update.
3992 * breakpoint.h (struct breakpoint) <filter>: Now a
3993 unique_xmalloc_ptr.
3994
3995 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3996
3997 * NEWS: Mention dictionary access on blocks.
3998 * python/py-block.c (blpy_getitem): New function.
3999 (block_object_as_mapping): New struct.
4000 (block_object_type): Use new struct for tp_as_mapping field.
4001
4002 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4003
4004 * objfiles.h (objfile): Add a comment describing partial symbols.
4005
4006 2019-08-05 Tom Tromey <tromey@adacore.com>
4007
4008 * compile/compile.c (_initialize_compile): Use _(), not N_().
4009 * thread.c (_initialize_thread): Use _(), not N_().
4010 * stack.c (_initialize_stack): Use _(), not N_().
4011 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4012
4013 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * dwarf2read.c (struct dw2_symtab_iterator):
4016 <want_specific_block>: Remove.
4017 <block_index>: Change type to gdb::optional.
4018 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4019 change type of BLOCK_INDEX parameter to gdb::optional.
4020 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4021 (dw2_lookup_symbol): Don't pass argument for
4022 WANT_SPECIFIC_BLOCK.
4023 (dw2_expand_symtabs_for_function): Don't pass argument for
4024 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4025 (class dw2_debug_names_iterator)
4026 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4027 parameter, change BLOCK_INDEX type to gdb::optional.
4028 <m_want_specific_block>: Remove.
4029 <m_block_index>: Change type to gdb::optional.
4030 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4031 gdb::optional. Re-write in function of gdb::optional.
4032 (dw2_debug_names_lookup_symbol): Don't pass argument for
4033 WANT_SPECIFIC_BLOCK.
4034 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4035 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4036 BLOCK_INDEX.
4037
4038 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4039
4040 * NEWS: Mention changes to "info sources" command.
4041
4042 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4043
4044 * symtab.c (filename_partial_match_opts): New struct type.
4045 (struct output_source_filename_data): New members
4046 regexp, c_regexp, partial_match.
4047 (output_source_filename): Use new members to decide to print file.
4048 (info_sources_option_defs): New variable.
4049 (make_info_sources_options_def_group, print_info_sources_header,
4050 info_sources_command_completer):
4051 New functions.
4052 (info_sources_command): Read new optional arguments.
4053 (_initialize_symtab): Update info sources help.
4054
4055 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4056
4057 * ada-lang.c (exception_support_info_v0): Renamed from...
4058 (default_exception_support_info): ... this. Create new
4059 definition for v1.
4060 (ada_has_this_exception_support): Look up catch_handlers_sym.
4061 (ada_exception_support_info_sniffer): Try v0 after default.
4062
4063 2019-08-01 Tom Tromey <tromey@adacore.com>
4064
4065 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4066 gdbarch.h.
4067
4068 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4069
4070 * s12z-tdep.c: Fix include path for s12z-opc.h.
4071
4072 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4073
4074 * NEWS: Require GNU make 3.82.
4075
4076 2019-07-16 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4079 declare.
4080
4081 2019-07-30 Tom Tromey <tromey@adacore.com>
4082
4083 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4084
4085 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4086
4087 * printcmd.c (print_address_symbolic): Print negative offsets.
4088 (build_address_symbolic): Force signed arithmetic when computing
4089 offset.
4090
4091 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4092
4093 PR/24474: Add a function to lookup static variables.
4094 * NEWS: Mention this new function.
4095 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4096 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4097 * python/python.c (python_GdbMethods): Add new function.
4098
4099 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4100
4101 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4102 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4103 (objfpy_lookup_static_symbol): New function.
4104 (objfile_object_methods): Add new functions.
4105
4106 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4107
4108 * NEWS: Mention 'set|show print frame-info'. Mention new
4109 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4110 backtrace argument. Mention that python frame filtering code
4111 is now consistent with what 'backtrace' command prints.
4112
4113 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4114
4115 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4116 comments.
4117 (print_frame_info_auto, print_frame_info_source_line,
4118 print_frame_info_location, print_frame_info_source_and_location,
4119 print_frame_info_location_and_address, print_frame_info_short_location):
4120 New declarations.
4121 (struct frame_print_options): New member print_frame_info.
4122 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4123 * stack.h (get_user_print_what_frame_info): New declaration.
4124 (frame_show_address): New declaration.
4125 * stack.c (print_frame_arguments_choices): New value 'presence'.
4126 (print_frame_info_auto, print_frame_info_source_line,
4127 print_frame_info_location, print_frame_info_source_and_location,
4128 print_frame_info_location_and_address, print_frame_info_short_location,
4129 print_frame_info_choices, print_frame_info_print_what): New definitions.
4130 (print_frame_args): Only print dots for args if print frame-arguments
4131 is 'presence'.
4132 (frame_print_option_defs): New element for "frame-info".
4133 (get_user_print_what_frame_info): New function.
4134 (frame_show_address): Make non static. Move comment to stack.h.
4135 (print_frame_info_to_print_what): New function.
4136 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4137 to decide what to print.
4138 (backtrace_command_1): Handle the new print_frame_arguments_presence
4139 value.
4140 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4141 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4142 (py_print_frame): In non-mi mode, use LOCATION as default for
4143 print_what, similarly to frame information printed directly by
4144 backtrace command. Handle frame-info user option in non MI mode.
4145
4146 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4147
4148 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4149 Add case for debugging 32-bit target on 64-bit host. Revise
4150 comment.
4151
4152 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4153
4154 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4155 instead of find_function_entry_range_from_pc.
4156
4157 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4158
4159 * stack.c (find_frame_funname): Remove code which preferred
4160 minsym over symtab sym in "certain pathological cases".
4161
4162 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4163 parameter. Change type of "do_demangle" to bool.
4164 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4165 Pass suitable "prefer_sym_over_minsym" flag to
4166 build_address_symbolic(). Don't output "+" for negative offsets.
4167 * printcmd.c (print_address_symbolic): Update invocation of
4168 build_address_symbolic to include a "prefer_sym_over_minsym"
4169 flag.
4170 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4171 Restrict cases in which use of minimal symbol is preferred to that
4172 of a found symbol. Update comments.
4173
4174 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4175 for entry pc when entry pc is out of range for that FDE.
4176
4177 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4178
4179 PR gdb/24839:
4180 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4181 type.
4182
4183 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4184
4185 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4186 this function's Python signature.
4187
4188
4189 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4190
4191 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4192 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4193 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4194 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4195 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4196
4197
4198 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4199
4200 * h8300-tdep.c (h8300_register_name_common): New.
4201 h8300_register_name): Use h8300_register_name_common.
4202 (h8300s_register_name): Likewise.
4203 (h8300sx_register_name): Likewise.
4204 (h8300h_register_nam): New.
4205 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4206
4207
4208 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4209
4210 * arm-tdep.c (arm_skip_cmse_entry): New function.
4211 (arm_is_sgstubs_section): New function.
4212 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4213
4214 2019-07-22 Tom Tromey <tom@tromey.com>
4215
4216 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4217 Don't self-assign.
4218
4219 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4220
4221 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4222 type_print.
4223
4224 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4227 so that GDB doesn't match any msymbols when searching in the
4228 TYPES_DOMAIN.
4229 (print_symbol_info): Print using typedef_print or type_print based
4230 on the type of the symbol. Add updated FIXME comment moved from...
4231 (_initialize_symtab): ... move and update FIXME comment to above.
4232
4233 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * NEWS: Mention adding -q option to "info types".
4236 * symtab.c (struct info_types_options): New struct.
4237 (info_types_options_defs): New variable.
4238 (make_info_types_options_def_group): New function.
4239 (info_types_command): Use gdb::option framework to parse options.
4240 (info_types_command_completer): New function.
4241 (_initialize_symtab): Extend the help text on "info types" and
4242 register command completer.
4243
4244 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4245
4246 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4247 (lookup_symbol_in_objfile): Change int to block_enum and add a
4248 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4249
4250 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4251
4252 * MAINTAINERS (Write After Approval): Add self.
4253
4254 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4257 instruction to the dummy code region.
4258
4259 2019-07-19 Tom Tromey <tromey@adacore.com>
4260
4261 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4262 (ARGSUSED, PARAMS, __func__): Remove rules.
4263
4264 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4265
4266 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4267 * features/arm/arm-with-iwmmxt.c: Remove.
4268 * features/arm/arm-with-iwmmxt.xml: Remove.
4269 * features/arm/arm-with-m-fpa-layout.c: Remove.
4270 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4271 * features/arm/arm-with-m-vfp-d16.c: Remove.
4272 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4273 * features/arm/arm-with-m.c: Remove.
4274 * features/arm/arm-with-m.xml: Remove.
4275 * features/arm/arm-with-neon.c: Remove.
4276 * features/arm/arm-with-neon.xml: Remove.
4277 * features/arm/arm-with-vfpv2.c: Remove.
4278 * features/arm/arm-with-vfpv2.xml: Remove.
4279 * features/arm/arm-with-vfpv3.c: Remove.
4280 * features/arm/arm-with-vfpv3.xml: Remove.
4281
4282 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4283
4284 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4285
4286 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4287
4288 * arch/aarch32.c (aarch32_create_target_description): Create
4289 target descriptions using features.
4290 * arch/arm.c (arm_create_target_description)
4291 (arm_create_mprofile_target_description): Likewise.
4292 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4293
4294 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4295
4296 * Makefile.in: Add new files.
4297 * aarch32-tdep.c: New file.
4298 * aarch32-tdep.h: New file.
4299 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4300 Call aarch32_read_description.
4301 * arch/aarch32.c: New file.
4302 * arch/aarch32.h: New file.
4303 * arch/arm.c (arm_create_target_description)
4304 (arm_create_mprofile_target_description): New function.
4305 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4306 (arm_create_target_description)
4307 (arm_create_mprofile_target_description): New declaration.
4308 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4309 read_description functions.
4310 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4311 Likewise.
4312 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4313 * arm-tdep.c (tdesc_arm_list): New variable.
4314 (arm_register_g_packet_guesses): Call create description functions.
4315 (arm_read_description) (arm_read_mprofile_description): New
4316 function.
4317 * arm-tdep.h (arm_read_description)
4318 (arm_read_mprofile_description): Add declaration.
4319 * configure.tgt: Add new files.
4320
4321 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4322
4323 * top.c (new_ui_command): Open specified terminal just once.
4324
4325 2019-07-18 Tom Tromey <tromey@adacore.com>
4326
4327 * symtab.c (main_name): Constify return type.
4328 * symfile.c (set_initial_language): Update.
4329 * symtab.h (main_name): Constify return type.
4330
4331 2019-07-17 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-winsource.c (tui_update_source_window)
4334 (tui_update_source_window_as_is)
4335 (tui_update_source_windows_with_line): Remove return.
4336 * tui/tui-disasm.c (tui_show_disassem)
4337 (tui_show_disassem_and_update_source): Remove return.
4338 * tui/tui.c (tui_reset): Remove return.
4339 * tui/tui-wingeneral.c
4340 (tui_check_and_display_highlight_if_needed): Remove return.
4341
4342 2019-07-17 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4345
4346 2019-07-17 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-winsource.h (struct tui_exec_info_window)
4349 (struct tui_source_window_base): Move from tui-data.h.
4350 * tui/tui-winsource.c: Move many method definitions from
4351 elsewhere. Remove "structuring" comments.
4352 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4353 (tui_source_window_base::refresh_window): Move to
4354 tui-winsource.c.
4355 * tui/tui-win.c (tui_source_window_base::refresh_all)
4356 (tui_source_window_base::update_tab_width)
4357 (tui_source_window_base::set_new_height)
4358 (tui_source_window_base::do_make_visible_with_new_height): Move to
4359 tui-winsource.c.
4360 * tui/tui-source.h: Update.
4361 * tui/tui-source.c (tui_source_window_base::reset): Move to
4362 tui-winsource.c.
4363 * tui/tui-disasm.h: Update.
4364 * tui/tui-data.h (struct tui_exec_info_window): Move to
4365 tui-winsource.h.
4366 (struct tui_source_window_base): Likewise.
4367 * tui/tui-data.c (tui_source_window_base::clear_detail)
4368 (tui_source_window_base, ~tui_source_window_base): Move to
4369 tui-winsource.c.
4370
4371 2019-07-17 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui-win.c (tui_resize_all)
4374 (tui_source_window_base::update_tab_width)
4375 (tui_adjust_win_heights): Update.
4376 (tui_win_info::make_invisible_and_set_new_height): Rename from
4377 make_invisible_and_set_new_height.
4378 * tui/tui-data.h (struct tui_win_info)
4379 <make_invisible_and_set_new_height>: New method.
4380
4381 2019-07-17 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui.c: Update.
4384 * tui/tui-source.h (struct tui_source_window): Move from
4385 tui-data.h.
4386 * tui/tui-layout.c: Update.
4387 * tui/tui-disasm.c: Update.
4388 * tui/tui-data.h (struct tui_source_window): Move to
4389 tui-source.h.
4390
4391 2019-07-17 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4394 tui-data.h.
4395 * tui/tui-data.h (struct tui_disasm_window): Move to
4396 tui-disasm.h.
4397
4398 2019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-regs.h (struct tui_data_item_window): Move from
4401 tui-data.h.
4402 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4403 * tui/tui-data.h (struct tui_data_item_window): Move to
4404 tui-regs.h.
4405 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4406
4407 2019-07-17 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui.c: Update.
4410 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4411 (tui_cmd_window::max_height): Move to tui-command.c.
4412 * tui/tui-layout.c: Update.
4413 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4414 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4415 tui-command.c.
4416 * tui/tui-command.h (struct tui_cmd_window): Move from
4417 tui-data.h.
4418 * tui/tui-command.c: Remove "structuring" comments.
4419 (tui_cmd_window::clear_detail)
4420 (tui_cmd_window::do_make_visible_with_new_height)
4421 (tui_cmd_window::max_height): Move from elsewhere.
4422
4423 2019-07-17 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4426 Now static.
4427 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4428 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4429
4430 2019-07-17 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui.c: Update.
4433 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4434 tui-regs.c.
4435 * tui/tui-windata.h: Remove file.
4436 * tui/tui-windata.c: Remove file.
4437 * tui/tui-win.c (tui_data_window::set_new_height)
4438 (tui_data_window::do_make_visible_with_new_height): Move to
4439 tui-regs.c.
4440 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4441 * tui/tui-regs.c: Remove "structuring" comments.
4442 (tui_data_window::first_data_item_displayed)
4443 (tui_data_window::delete_data_content_windows)
4444 (tui_data_window::erase_data_content)
4445 (tui_data_window::display_all_data)
4446 (tui_data_window::refresh_all)
4447 (tui_data_window::do_scroll_vertical)
4448 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4449 (tui_data_window::do_make_visible_with_new_height)
4450 (tui_data_window::refresh_window): Move from elsewhere.
4451 (_initialize_tui_regs): Move to end of file.
4452 * tui/tui-layout.c: Update.
4453 * tui/tui-hooks.c: Update.
4454 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4455 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4456 tui-regs.c.
4457 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4458
4459 2019-07-17 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4462 seen.
4463
4464 2019-07-17 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-win.c (tui_source_window_base::set_new_height)
4467 (tui_source_window_base::do_make_visible_with_new_height): Use
4468 m_has_locator field directly.
4469 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4470 method.
4471 (struct tui_source_window_base) <has_locator>: Likewise.
4472
4473 2019-07-17 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4476 Don't declare.
4477 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4478 Remove.
4479 * tui/tui-win.c (tui_source_window_base::set_new_height)
4480 (tui_source_window_base::set_new_height)
4481 (make_invisible_and_set_new_height)
4482 (tui_source_window_base::do_make_visible_with_new_height)
4483 (tui_source_window_base::do_make_visible_with_new_height):
4484 Update.
4485 * tui/tui-layout.c (show_source_disasm_command, show_data)
4486 (show_source_or_disasm_and_command): Update.
4487 * tui/tui-layout.c (show_layout): Update.
4488
4489 2019-07-17 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-layout.c (make_data_window): Remove.
4492 (show_data): Unify creation and re-initialization cases.
4493
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-layout.c (make_source_window, make_disasm_window):
4497 Remove.
4498 (show_data): Unify creation and re-initialization cases.
4499
4500 2019-07-17 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-layout.c (make_command_window): Remove.
4503 (show_source_disasm_command, show_source_or_disasm_and_command):
4504 Unify creation and re-initialization cases.
4505
4506 2019-07-17 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4509 creation and re-initialization cases.
4510
4511 2019-07-17 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-regs.c (tui_get_register): Return void.
4514
4515 2019-07-17 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4518 Simplify.
4519
4520 2019-07-17 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4523 resetting.
4524
4525 2019-07-17 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4528 * tui/tui-regs.c (tui_reg_layout): New function.
4529 (tui_show_registers, tui_reg_command): Use it.
4530 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4531 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4532 parameters.
4533 (tui_layout_command): Remove.
4534
4535 2019-07-17 Tom Tromey <tom@tromey.com>
4536
4537 * tui/tui-layout.h (tui/tui-layout): Return void.
4538 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4539
4540 2019-07-17 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-layout.c (show_source_disasm_command, show_data):
4543 Update.
4544 (reset_locator): Remove.
4545 (show_source_or_disasm_and_command): Update.
4546
4547 2019-07-17 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui-source.c (tui_source_window_base::reset): Remove
4550 win_type parameter.
4551 * tui/tui-layout.c (make_command_window, make_source_window)
4552 (make_disasm_window, make_data_window)
4553 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4554 (reset_locator, show_source_or_disasm_and_command): Update.
4555 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4556 win_type parameter.
4557 (struct tui_source_window_base) <reset>: Likewise.
4558
4559 2019-07-17 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-layout.c (show_source_disasm_command): Use
4562 reset_locator.
4563 (reset_locator): New function.
4564 (init_and_make_win): Remove.
4565 (show_source_or_disasm_and_command): Use reset_locator.
4566
4567 2019-07-17 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4570 condition.
4571 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4572 Remove condition.
4573 * tui/tui-source.c (tui_source_window_base::reset): New method.
4574 * tui/tui-layout.c (make_command_window): Don't call
4575 init_and_make_win.
4576 (make_source_window, make_disasm_window): Don't call
4577 make_source_or_disasm_window.
4578 (make_data_window): Don't call init_and_make_win. Change calling
4579 convention.
4580 (show_source_disasm_command, show_data): Simplify.
4581 (make_source_or_disasm_window): Remove.
4582 (show_source_or_disasm_and_command): Simplify.
4583 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4584 (struct tui_source_window_base) <reset>: Likewise.
4585 <execution_info>: Remove initializer.
4586 * tui/tui-data.c (tui_source_window_base): Initialize
4587 execution_info.
4588
4589 2019-07-17 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4592 variable.
4593
4594 2019-07-17 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui.c (tui_rl_other_window): Update.
4597 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4598 superclass method first. Always iterate over regs_content.
4599 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4600 method.
4601 * tui/tui-win.c (tui_set_focus_command): Update.
4602
4603 2019-07-17 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-win.c (tui_set_focus_command): Rename from
4606 tui_set_focus. Call tui_enable.
4607 (tui_set_focus_command): Remove.
4608
4609 2019-07-17 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4612 refresh_window.
4613 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4614 touchwin.
4615 (tui_data_window::refresh_window): Call refresh_window on data
4616 items. Always call superclass refresh_window.
4617 (tui_win_info::refresh): Remove.
4618 (tui_source_window_base::refresh_window): Update.
4619 (tui_refresh_all): Update.
4620 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4621 refresh_window.
4622 (show_source_or_disasm_and_command): Likewise.
4623 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4624 (struct tui_source_window_base) <refresh>: Likewise.
4625
4626 2019-07-17 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui-winsource.c (tui_clear_source_content)
4629 (tui_show_source_content): Update.
4630 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4631 whether content is empty.
4632 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4633 Remove.
4634
4635 2019-07-17 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4638 window's contents.
4639 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4640 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4641
4642 2019-07-17 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4645 (struct tui_data_item_window): Update.
4646
4647 2019-07-17 Tom Tromey <tom@tromey.com>
4648
4649 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4650 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4651 defines.
4652
4653 2019-07-17 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-winsource.h (tui_erase_source_content)
4656 (tui_clear_source_content): Remove "display_prompt" parameter.
4657 * tui/tui-winsource.c (tui_update_source_window_as_is)
4658 (tui_update_source_windows_with_addr): Update.
4659 (tui_clear_source_content): Remove "display_prompt" parameter.
4660 (tui_erase_source_content): Likewise. Simplify.
4661 (tui_show_source_content): Update.
4662 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4663 * tui/tui-stack.c (tui_show_frame_info): Update.
4664 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4665 Remove defines.
4666
4667 2019-07-17 Tom Tromey <tom@tromey.com>
4668
4669 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4670 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4671 parameter.
4672 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4673 parameter.
4674
4675 2019-07-17 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-winsource.c (tui_clear_source_content)
4678 (tui_show_source_content, tui_show_exec_info_content)
4679 (tui_clear_exec_info_content): Update.
4680 * tui/tui-stack.c (tui_show_locator_content): Update.
4681 (tui_show_frame_info): Update.
4682 * tui/tui-source.h (tui_source_window): Don't declare.
4683 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4684 from tui_source_is_displayed.
4685 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4686 Remove field.
4687 (struct tui_source_window_base) <content_in_use>: New field. Now
4688 bool.
4689 (struct tui_source_window) <showing_source_p>: New method.
4690 (TUI_SRC_WIN): Change cast.
4691 * tui/tui-data.c (tui_initialize_static_data): Update.
4692
4693 2019-07-17 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4696 location_matches_p.
4697 * tui/tui-source.c (tui_source_window::location_matches_p): New
4698 method.
4699 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4700 method.
4701 * tui/tui-data.h (struct tui_source_window_base)
4702 <location_matches_p>: New method.
4703 (struct tui_source_window, struct tui_disasm_window)
4704 <location_matches_p>: Likewise.
4705
4706 2019-07-17 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-win.c (tui_set_win_height_command): Rename from
4709 tui_set_win_height.
4710 (tui_set_win_height_command): Remove.
4711
4712 2019-07-17 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-source.c (tui_source_window): New constructor. Add
4715 observer.
4716 (~tui_source_window): New destructor.
4717 (tui_source_window::style_changed): New method.
4718 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4719 (tui_attach_detach_observers): Update.
4720 * tui/tui-data.h (struct tui_source_window): Make constructor not
4721 inline. Add destructor.
4722 (struct tui_source_window) <style_changed>: New method.
4723 <m_observable>: New member.
4724
4725 2019-07-17 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4728 * tui/tui-win.c (tui_resize_all): Fix typo.
4729
4730 2019-07-17 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4733 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4734 (tui_refresh_all): Remove "list" parameter. Use foreach.
4735 * tui/tui-win.c (window_name_completer): Use foreach.
4736 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4737 (update_tab_width): Likewise.
4738 * tui/tui-layout.c (show_layout): Update.
4739 * tui/tui-data.h (class tui_window_iterator): New.
4740 (struct all_tui_windows): New.
4741 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4742
4743 2019-07-17 Tom Tromey <tom@tromey.com>
4744
4745 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4746 parameter. Don't reference globals.
4747 (tui_reg_command): Update.
4748
4749 2019-07-17 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-regs.c (tui_show_registers): Simplify.
4752
4753 2019-07-17 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-regs.c (tui_show_registers): Update.
4756 (tui_show_register_group): Add win_info parameter.
4757
4758 2019-07-17 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4761 Rename from tui_display_reg_element_at_line.
4762 (tui_data_window::display_registers_from_line): Update.
4763 * tui/tui-data.h (struct tui_data_window)
4764 <display_reg_element_at_line>: New method.
4765
4766 2019-07-17 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-regs.h (tui_display_registers_from)
4769 (tui_display_registers_from_line): Don't declare.
4770 * tui/tui-windata.c (tui_data_window::display_all_data)
4771 (tui_data_window::refresh_all)
4772 (tui_data_window::do_scroll_vertical): Update.
4773 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4774 from tui_display_registers_from.
4775 (tui_display_reg_element_at_line): Update.
4776 (tui_data_window::display_registers_from_line): Rename from
4777 tui_display_registers_from_line.
4778 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4779 display_registers_from_line>: New methods.
4780
4781 2019-07-17 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4784 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4785 from tui_erase_data_content.
4786 (tui_data_window::display_all_data)
4787 (tui_data_window::refresh_all)
4788 (tui_data_window::do_scroll_vertical): Update.
4789 * tui/tui-regs.c (tui_show_registers): Update.
4790 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4791 New method.
4792
4793 2019-07-17 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4796 declare.
4797 * tui/tui-windata.c
4798 (tui_data_window::delete_data_content_windows): Rename from
4799 tui_delete_data_content_windows.
4800 (tui_data_window::display_all_data)
4801 (tui_data_window::do_scroll_vertical): Update.
4802 * tui/tui-data.h (struct tui_data_window)
4803 <delete_data_content_windows>: New method.
4804
4805 2019-07-17 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4808 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4809
4810 2019-07-17 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4813 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4814 from tui_display_all_data.
4815 * tui/tui-win.c
4816 (tui_data_window::do_make_visible_with_new_height): Update.
4817 * tui/tui-regs.c (tui_show_registers): Update.
4818 * tui/tui-layout.c (tui_set_layout): Update.
4819 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4820 method.
4821
4822 2019-07-17 Tom Tromey <tom@tromey.com>
4823
4824 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4825 * tui/tui-windata.c (tui_display_data_from): Remove.
4826 (tui_data_window::refresh_all): Update.
4827
4828 2019-07-17 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4831 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4832 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4833 tui_display_registers_from_line.
4834 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4835 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4836 "force_display" parameter.
4837
4838 2019-07-17 Tom Tromey <tom@tromey.com>
4839
4840 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4841 declare.
4842 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4843 Rename from tui_first_reg_element_no_inline.
4844 (tui_display_reg_element_at_line)
4845 (tui_display_registers_from_line): Update.
4846 * tui/tui-data.h (struct tui_data_window)
4847 <first_reg_element_no_inline>: New method.
4848
4849 2019-07-17 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-windata.c (tui_display_data_from)
4852 (tui_data_window::do_scroll_vertical): Update.
4853 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4854 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4855 Rename from tui_line_from_reg_element_no.
4856 (tui_display_registers_from_line): Update.
4857 * tui/tui-data.h (struct tui_data_window)
4858 <line_from_reg_element_no>: New method.
4859
4860 2019-07-17 Tom Tromey <tom@tromey.com>
4861
4862 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4863 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4864 tui_last_regs_line_no.
4865 (tui_display_reg_element_at_line)
4866 (tui_display_registers_from_line): Update.
4867 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4868 method.
4869
4870 2019-07-17 Tom Tromey <tom@tromey.com>
4871
4872 PR tui/24722:
4873 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4874 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4875 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4876 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4877 (tui_update_breakpoint_info): Likewise.
4878 * tui/tui-hooks.c (tui_event_create_breakpoint)
4879 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4880 Update.
4881
4882 2019-07-17 Tom Tromey <tom@tromey.com>
4883
4884 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4885
4886 2019-07-17 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-winsource.c (tui_update_source_window_as_is)
4889 (tui_update_source_windows_with_addr): Update.
4890 * tui/tui-source.h (tui_set_source_content)
4891 (tui_show_symtab_source): Add "win_info" parameter.
4892 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4893 parameter.
4894 (tui_show_symtab_source): Likewise.
4895
4896 2019-07-17 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-wingeneral.c
4899 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4900
4901 2019-07-17 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4904 (struct tui_cmd_window) <can_scroll>: New method.
4905 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4906 method.
4907
4908 2019-07-17 Tom Tromey <tromey@adacore.com>
4909
4910 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4911 do_field_signed>: Rename. Change type of "value".
4912 * ui-out.c (ui_out::field_signed): Rename from field_int.
4913 Change type of "value".
4914 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4915 type of "value".
4916 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4917 do_field_int. Change type of "value".
4918 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4919 do_field_int. Change type of "value".
4920 * tracepoint.c (trace_status_mi, tfind_1)
4921 (print_one_static_tracepoint_marker): Update.
4922 * thread.c (print_thread_info_1, print_selected_thread_frame):
4923 Update.
4924 * stack.c (print_frame, print_frame_info): Update.
4925 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4926 Update.
4927 * source.c (print_source_lines_base): Update.
4928 * skip.c (info_skip_command): Update.
4929 * record-btrace.c (btrace_ui_out_decode_error)
4930 (btrace_call_history_src_line): Update.
4931 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4932 Update.
4933 * progspace.c (print_program_space): Update.
4934 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4935 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4936 do_field_int. Change type of "value".
4937 * mi/mi-out.c (mi_ui_out::do_table_begin)
4938 (mi_ui_out::do_table_header): Update.
4939 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4940 type of "value".
4941 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4942 (mi_cmd_data_list_changed_registers, output_register)
4943 (mi_cmd_data_read_memory, mi_load_progress)
4944 (mi_cmd_trace_frame_collected): Update.
4945 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4946 Update.
4947 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4948 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4949 (mi_cmd_var_list_children, varobj_update_one): Update.
4950 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4951 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4952 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4953 * inferior.c (print_inferior): Update.
4954 * gdb_bfd.c (print_one_bfd): Update.
4955 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4956 Update.
4957 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4958 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4959 do_field_int. Change type of "value".
4960 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4961 do_field_int. Change type of "value".
4962 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4963 (print_one_breakpoint_location, print_it_catch_fork)
4964 (print_one_catch_fork, print_it_catch_vfork)
4965 (print_one_catch_vfork, print_it_catch_solib)
4966 (print_it_catch_exec, print_it_ranged_breakpoint)
4967 (print_mention_watchpoint, print_mention_masked_watchpoint)
4968 (bkpt_print_it, update_static_tracepoint): Update.
4969 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4970 * break-catch-syscall.c (print_it_catch_syscall): Update.
4971 * ada-tasks.c (print_ada_task_info): Update.
4972 * ada-lang.c (print_it_exception, print_mention_exception):
4973 Update.
4974
4975 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4976
4977 PR breakpoints/24541
4978 * gdbarch.c: Regenerate.
4979 * gdbarch.h: Regenerate.
4980 * gdbarch.sh: Adjust return type and parameter types for
4981 'stap_adjust_register'.
4982 (i386_stap_adjust_register): Adjust signature and return new
4983 register name.
4984 * stap-probe.c (stap_parse_register_operand): Adjust use of
4985 'gdbarch_stap_adjust_register'.
4986
4987 2019-07-17 Tom Tromey <tromey@adacore.com>
4988
4989 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4990 declare VEC.
4991 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4992 std::vector.
4993 (struct s390_process_info): Add initializers.
4994 (s390_add_process): Use new.
4995 (s390_linux_nat_target::low_forget_process): Use delete.
4996 (s390_linux_nat_target::low_new_fork)
4997 (s390_linux_nat_target::stopped_by_watchpoint)
4998 (s390_linux_nat_target::low_prepare_to_resume)
4999 (s390_linux_nat_target::insert_watchpoint)
5000 (s390_linux_nat_target::insert_hw_breakpoint)
5001 (s390_linux_nat_target::remove_watchpoint)
5002 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5003
5004 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5005
5006 * aarch64-fbsd-nat.c: Include regcache.h.
5007 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5008 argument.
5009 (aarch64_fbsd_nat_target::fetch_registers)
5010 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5011 variable.
5012 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5013
5014 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5015
5016 * fbsd-nat.c: Include gdbarch.h.
5017
5018 2019-07-15 Tom Tromey <tromey@adacore.com>
5019
5020 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5021
5022 2019-07-15 Tom Tromey <tromey@adacore.com>
5023
5024 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5025 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5026 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5027 * cli-out.c (cli_ui_out::do_field_int): New method.
5028 * ui-out.c (ui_out::field_unsigned): New method.
5029 * symfile.c (generic_load): Use field_unsigned.
5030 (print_transfer_performance): Likewise.
5031 * record-btrace.c (ui_out_field_uint): Remove.
5032 (btrace_call_history_insn_range, btrace_call_history): Use
5033 field_unsigned.
5034 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5035 field_unsigned.
5036 * ui-out.h (class ui_out) <field_unsigned>: New method.
5037 <do_field_unsigned>: Likewise.
5038
5039 2019-07-15 Tom Tromey <tromey@adacore.com>
5040
5041 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5042 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5043 * target.c (flash_erase_command): Use field_string.
5044 * infrun.c (print_signal_received_reason): Use field_string.
5045 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5046 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5047 field_string.
5048 * ada-tasks.c (print_ada_task_info): Use field_string.
5049
5050 2019-07-15 Tom Tromey <tromey@adacore.com>
5051
5052 * target.c (flash_erase_command): Use field_core_addr.
5053 * symfile.c (generic_load): Use field_core_addr.
5054 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5055 Use field_core_addr.
5056 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5057 field_core_addr.
5058
5059 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5060
5061 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5062 value if its desired type is smaller than a CORE_ADDR and signed.
5063
5064 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5067 of changes to field names, and use new is_reference field to
5068 decide if a property is a reference or not.
5069 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5070 field.
5071 (struct dwarf2_property_baton): Update header comment, rename
5072 'referenced_type' to 'property_type' and update comments.
5073 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5074 default property type, store in property baton, update to take
5075 accound of renamed field.
5076 (read_func_scope): Update call to attr_to_dynamic_prop.
5077 (read_array_type): Likewise.
5078 (dwarf2_per_cu_addr_sized_int_type): New function.
5079 (read_subrange_index_type): Move type finding code to
5080 dwarf2_per_cu_addr_sized_int_type.
5081 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5082 (dwarf2_per_cu_addr_type): New function.
5083 (set_die_type): Update calls to attr_to_dynamic_prop.
5084
5085 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 * dwarf2read.c (read_subrange_index_type): New function.
5088 (read_subrange_type): Move code into new function and call it.
5089 * gdbtypes.c (create_range_type): Add some asserts.
5090
5091 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5094 update return statements.
5095 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5096 declaration, and update comment to match.
5097 * gdbtypes.c (resolve_dynamic_array): Update call to
5098 dwarf2_evaluate_property to match new return type.
5099
5100 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * valarith.c (value_subscripted_rvalue): Change lowerbound
5103 parameter type from int to LONGEST.
5104 * value.h (value_subscripted_rvalue): Likewise in declaration.
5105
5106 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * cli/cli-utils.c (info_print_command_completer): New function.
5109 * cli/cli-utils.h: Add 'completer.h' include, and forward
5110 declaration for 'struct cmd_list_element'.
5111 (info_print_command_completer): Declare.
5112 * stack.c (_initialize_stack): Add completer for 'info locals' and
5113 'info args'.
5114 * symtab.c (_initialize_symtab): Add completer for 'info
5115 variables' and 'info functions'.
5116 * NEWS: Mention completion for additional info commands.
5117
5118 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * cli/cli-utils.c (extract_info_print_args): Delete.
5121 (extract_arg_maybe_quoted): Delete.
5122 (info_print_options_defs): New variable.
5123 (make_info_print_options_def_group): New function.
5124 (extract_info_print_options): Define new function.
5125 * cli/cli-utils.h (extract_info_print_args): Delete.
5126 (struct info_print_options): New structure.
5127 (extract_info_print_options): Declare new function.
5128 * stack.c (info_locals_command): Update to use new
5129 extract_info_print_options, also add a header comment.
5130 (info_args_command): Likewise.
5131 * symtab.c (info_variables_command): Likewise.
5132 (info_functions_command): Likewise.
5133
5134 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5137 to extract string arguments.
5138 * common/common-utils.c (extract_string_maybe_quoted): New function.
5139 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5140
5141 2019-07-11 Tom Tromey <tromey@adacore.com>
5142
5143 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5144 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5145 * top.h (gdbinit): Don't declare.
5146 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5147 into...
5148 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5149 * top.c (gdb_init): Don't call init_cli_cmds.
5150 (gdbinit): Remove.
5151 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5152
5153 2019-07-11 Tom Tromey <tromey@adacore.com>
5154
5155 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5156 after it has been moved.
5157
5158 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * valops.c (value_must_coerce_to_target): Change return type to
5161 bool.
5162 * value.h (value_must_coerce_to_target): Likewise.
5163
5164 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * breakpoint.c (is_hardware_watchpoint): Remove
5167 forward-declaration.
5168 (is_masked_watchpoint): Change return type to bool.
5169 (is_tracepoint): Likewise.
5170 (is_breakpoint): Likewise.
5171 (is_hardware_watchpoint): Likewise.
5172 (is_watchpoint): Likewise.
5173 (is_no_memory_software_watchpoint): Likewise.
5174 (is_catchpoint): Likewise.
5175 (breakpoint_1): Make FILTER parameter's return type bool.
5176 is_masked_watchpoint): Change return type to bool.
5177 (save_breakpoints): Make FILTER parameter's return type bool.
5178 * breakpoint.h (is_breakpoint): Change return type to bool.
5179 (is_watchpoint): Likewise.
5180 (is_catchpoint): Likewise.
5181 (is_tracepoint): Likewise.
5182
5183 2019-07-10 Tom Tromey <tom@tromey.com>
5184
5185 * defs.h: Don't include gdbarch.h.
5186 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5187 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5188 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5189 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5190 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5191 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5192 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5193 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5194 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5195 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5196 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5197 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5198 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5199 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5200 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5201 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5202 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5203 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5204 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5205 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5206 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5207 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5208 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5209 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5210 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5211 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5212 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5213
5214 2019-07-10 Tom Tromey <tromey@adacore.com>
5215
5216 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5217 * breakpoint.c (init_ada_exception_breakpoint): Register as
5218 bp_catchpoint.
5219 (print_one_breakpoint_location, print_one_breakpoint): Use
5220 is_ada_exception_catchpoint.
5221 * ada-lang.c (class ada_catchpoint_location): Pass
5222 bp_loc_software_breakpoint to bp_location constructor.
5223 (is_ada_exception_catchpoint): New function.
5224
5225 2019-07-10 Tom Tromey <tromey@adacore.com>
5226
5227 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5228 VEC.
5229 (struct arm_exidx_entry): New method operator<.
5230 (struct arm_exidx_data) <section_maps>: Change type.
5231 (arm_exidx_data_free): Remove.
5232 (arm_exidx_data_key): Change type. Move lower.
5233 (arm_exidx_new_objfile): Update.
5234 (arm_compare_exidx_entries): Remove.
5235 (arm_find_exidx_entry, _initialize_arm_tdep)
5236
5237 2019-07-10 Tom Tromey <tromey@adacore.com>
5238
5239 * solib-spu.c (ocl_program_data_key): Change type.
5240 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5241 Update.
5242
5243 2019-07-10 Tom Tromey <tromey@adacore.com>
5244
5245 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5246 (struct solib_aix_inferior_data) <library_list>: Change type.
5247 (solib_aix_inferior_data_handle): Change type.
5248 (get_solib_aix_inferior_data): Update.
5249 (solib_aix_free_library_list): Remove.
5250 (library_list_start_library): Update.
5251 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5252 return type.
5253 (solib_aix_get_library_list)
5254 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5255 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5256
5257 2019-07-10 Tom Tromey <tromey@adacore.com>
5258
5259 * solib-dsbt.c (struct dsbt_info): Add initializers.
5260 (solib_dsbt_pspace_data): Change type.
5261 (dsbt_pspace_data_cleanup): Remove.
5262 (get_dsbt_info, _initialize_dsbt_solib): Update.
5263
5264 2019-07-10 Tom Tromey <tromey@adacore.com>
5265
5266 * spu-tdep.c (spu_overlay_data): Change type.
5267 (spu_get_overlay_table, spu_overlay_new_objfile)
5268 (_initialize_spu_tdep): Update.
5269
5270 2019-07-10 Tom Tromey <tromey@adacore.com>
5271
5272 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5273 destructor.
5274 (dbx_objfile_data_key): Change type and declare later.
5275 (DBX_SYMFILE_INFO): Rewrite.
5276 * dbxread.c (dbx_objfile_data_key): Change type.
5277 (dbx_symfile_init): Update.
5278 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5279 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5280 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5281
5282 2019-07-10 Tom Tromey <tromey@adacore.com>
5283
5284 * jit.c (jit_program_space_key): Change type. Move lower.
5285 (get_jit_program_space_data): Update.
5286 (jit_program_space_data_cleanup): Remove.
5287 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5288 Update.
5289 (struct jit_program_space_data): Add initializers.
5290
5291 2019-07-10 Tom Tromey <tromey@adacore.com>
5292
5293 * solib-darwin.c (struct darwin_info): Add initializers.
5294 (solib_darwin_pspace_data): Change type.
5295 (darwin_pspace_data_cleanup): Remove.
5296 (get_darwin_info, _initialize_darwin_solib): Update.
5297
5298 2019-07-10 Tom Tromey <tromey@adacore.com>
5299
5300 * remote-sim.c (struct sim_inferior_data): Add initializers,
5301 constructor, and destructor.
5302 (sim_inferior_data_key): Change type. Move lower.
5303 (check_for_duplicate_sim_descriptor): Update.
5304 (get_sim_inferior_data): Use new. Update.
5305 (~sim_inferior_data_cleanup): Rename from
5306 sim_inferior_data_cleanup. Simplify.
5307 (gdbsim_close_inferior, simulator_command)
5308 (sim_command_completer, _initialize_remote_sim): Update.
5309 (next_pid, INITIAL_PID): Move earlier.
5310
5311 2019-07-10 Tom Tromey <tromey@adacore.com>
5312
5313 * python/python-internal.h (create_thread_object): Return
5314 gdbpy_ref.
5315 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5316 * python/py-inferior.c (struct threadlist_entry): Add
5317 constructor.
5318 <thread_obj>: Now a gdbpy_ref.
5319 (thread_to_thread_object): Update.
5320 (add_thread_object): Use new.
5321 (delete_thread_object): Use delete.
5322 (infpy_threads): Update.
5323 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5324 GIL.
5325
5326 2019-07-10 Tom Tromey <tromey@adacore.com>
5327
5328 * valops.c (value_cast): Specialize error message for Ada.
5329
5330 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5333
5334 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5335
5336 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5337 bpstat_should_step): Return bool, adjust comments.
5338 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5339 bpstat_should_step): Likewise.
5340
5341 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5342
5343 * features/Makefile: Use feature target descriptions for Arm.
5344 * features/arm/arm-core.c: Generate new file.
5345 * features/arm/arm-fpa.c: Likewise.
5346 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5347 * features/arm/arm-m-profile.c: Likewise.
5348 * features/arm/arm-vfpv2.c: Likewise.
5349 * features/arm/arm-vfpv3.c: Likewise.
5350 * features/arm/xscale-iwmmxt.c: Likewise.
5351 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5352
5353 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5354
5355 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5356 ptrace earlier.
5357
5358 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5359
5360 * features/aarch64-pauth.c: Regenerate.
5361
5362 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5365 bool.
5366 (bpstat_what): Use false instead of 0.
5367
5368 2019-07-09 Pedro Alves <palves@redhat.com>
5369
5370 * break-catch-throw.c (is_exception_catchpoint): New.
5371 * breakpoint.c (print_one_breakpoint_location): New parameter
5372 'raw_loc'. Handle it. Use
5373 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5374 looking at the breakpoint's type.
5375 (print_one_breakpoint): If handling "maint info breakpoints", also
5376 print locations of exception catchpoints.
5377 * breakpoint.h (is_exception_catchpoint): Declare.
5378
5379 2019-07-09 Pedro Alves <palves@redhat.com>
5380
5381 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5382 "addr" field.
5383 (allocate_location_exception_catchpoint): New.
5384 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5385 (initialize_throw_catchpoint_ops): Install
5386 allocate_location_exception_catchpoint as allocate_location
5387 method.
5388 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5389 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5390 bp_loc_other.
5391 (breakpoint_address_is_meaningful): Delete.
5392 (bl_address_is_meaningful): New.
5393 (breakpoint_locations_match): Adjust comment.
5394 (bp_location_from_bp_type): New, factored out of...
5395 (bp_location::bp_location(breakpoint *)): ... this.
5396 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5397 factored out of...
5398 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5399 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5400 breakpoint_address_is_meaningful.
5401 (bp_locations_compare): Adjust comment.
5402 (update_global_location_list): Use bl_address_is_meaningful
5403 instead of breakpoint_address_is_meaningful.
5404 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5405 explicit.
5406 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5407 * python/py-breakpoint.c (bppy_get_location): No longer check
5408 whether location is null.
5409
5410 2019-07-09 Pedro Alves <palves@redhat.com>
5411
5412 PR c++/15468
5413 * breakpoint.c (print_one_breakpoint_location): Remove
5414 single-location assert.
5415
5416 2019-07-09 Tom Tromey <tom@tromey.com>
5417
5418 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5419 * configure: Rebuild.
5420 * configure.ac: Change common to gdbsupport.
5421 * gdbsupport: Rename from common.
5422 * acinclude.m4: Change common to gdbsupport.
5423 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5424 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5425 gdbsupport.
5426 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5427 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5428 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5429 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5430 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5431 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5432 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5433 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5434 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5435 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5436 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5437 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5438 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5439 coff-pe-read.c, command.h, compile/compile-c-support.c,
5440 compile/compile-c.h, compile/compile-cplus-symbols.c,
5441 compile/compile-cplus-types.c, compile/compile-cplus.h,
5442 compile/compile-loc2c.c, compile/compile.c, completer.c,
5443 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5444 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5445 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5446 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5447 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5448 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5449 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5450 features/aarch64-core.c, features/aarch64-fpu.c,
5451 features/aarch64-pauth.c, features/aarch64-sve.c,
5452 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5453 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5454 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5455 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5456 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5457 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5458 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5459 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5460 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5461 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5462 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5463 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5464 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5465 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5466 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5467 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5468 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5469 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5470 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5471 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5472 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5473 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5474 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5475 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5476 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5477 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5478 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5479 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5480 minsyms.c, mips-linux-tdep.c, namespace.h,
5481 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5482 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5483 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5484 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5485 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5486 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5487 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5488 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5489 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5490 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5491 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5492 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5493 procfs.c, producer.c, progspace.h, psymtab.h,
5494 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5495 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5496 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5497 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5498 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5499 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5500 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5501 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5502 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5503 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5504 target-memory.c, target.c, target.h, target/waitstatus.c,
5505 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5506 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5507 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5508 unittests/array-view-selftests.c,
5509 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5510 unittests/common-utils-selftests.c,
5511 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5512 unittests/format_pieces-selftests.c,
5513 unittests/function-view-selftests.c,
5514 unittests/lookup_name_info-selftests.c,
5515 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5516 unittests/mkdir-recursive-selftests.c,
5517 unittests/observable-selftests.c,
5518 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5519 unittests/parse-connection-spec-selftests.c,
5520 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5521 unittests/scoped_fd-selftests.c,
5522 unittests/scoped_mmap-selftests.c,
5523 unittests/scoped_restore-selftests.c,
5524 unittests/string_view-selftests.c, unittests/style-selftests.c,
5525 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5526 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5527 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5528 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5529 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5530 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5531
5532 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5535 bool value.
5536 (decode_digits_ordinary): Set explicit_line field in sal.
5537 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5538 symtab_and_line that was set on an explicit line number in
5539 assembler code. Do always update the recorded symtab and line if
5540 we do skip the prologue.
5541
5542 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5543
5544 * breakpoint.c (set_breakpoint_location_function): Remove
5545 explicit_loc parameter.
5546 (momentary_breakpoint_from_master): Update call to
5547 set_breakpoint_location_function.
5548 (add_location_to_breakpoint): Likewise.
5549
5550 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5551
5552 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5553 required features based on default bfd type when no specific bfd
5554 is present.
5555
5556 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5557
5558 * NEWS: Mention that GDB printf and eval commands can now print
5559 C-style and Ada-style convenience var strings without
5560 calling the inferior.
5561 * printcmd.c (printf_c_string): Locally print GDB internal var
5562 instead of transiting via the inferior.
5563 (printf_wide_c_string): Likewise.
5564
5565 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5566
5567 PR breakpoints/25011
5568 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5569
5570 2019-07-04 Tom Tromey <tom@tromey.com>
5571
5572 PR tui/24724:
5573 * tui/tui-winsource.c (tui_clear_source_content): Update.
5574 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5575 (tui_update_breakpoint_info): Update.
5576 (tui_set_exec_info_content): Update.
5577 * tui/tui-source.c (tui_set_source_content_nil): Update.
5578 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5579 has_break.
5580 * tui/tui-data.h (enum tui_bp_flag): New.
5581 (tui_bp_flags): New enum flags type.
5582 (struct tui_source_element) <break_mode>: Change type. Rename
5583 from has_break.
5584 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5585 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5586 constants.
5587 * tui/tui-winsource.h: Fix comment.
5588
5589 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5590
5591 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5592 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5593 (store_fpregs_to_thread)
5594 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5595 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5596 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5597 (IWMMXT_REGS_SIZE): Add define.
5598 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5599 (fetch_vfp_regs, store_vfp_regs)
5600 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5601 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5602
5603 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5604
5605 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5606 defines.
5607 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5608 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5609 (ARM_INT_REGISTER_SIZE): ...to this.
5610 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5611 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5612 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5613 (arm_linux_collect_gregset, supply_nwfpe_register)
5614 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5615 defines.
5616 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5617 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5618 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5619 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5620 (arm_return_in_memory, arm_store_return_value)
5621 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5622 (arm_record_ld_st_multiple): Likewise.
5623 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5624 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5625
5626 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5627
5628 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5629 AARCH64_DISPLACED_MODIFIED_INSNS.
5630 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5631 (aarch64_displaced_step_copy_insn): Likewise.
5632 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5633 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5634 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5635 ARM_DISPLACED_MODIFIED_INSNS.
5636 * arm-tdep.c (arm_gdbarch_init): Likewise.
5637 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5638 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5639 (struct arm_displaced_step_closure): Use
5640 ARM_DISPLACED_MODIFIED_INSNS.
5641
5642 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5643
5644 * features/Makefile: Remove unused xml files.
5645 * features/aarch64.xml: Remove.
5646 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5647 * features/i386/amd64-avx-avx512.xml: Remove.
5648 * features/i386/amd64-avx-linux.xml: Remove.
5649 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5650 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5651 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5652 * features/i386/amd64-avx-mpx.xml: Remove.
5653 * features/i386/amd64-avx.xml: Remove.
5654 * features/i386/amd64-linux.xml: Remove.
5655 * features/i386/amd64-mpx-linux.xml: Remove.
5656 * features/i386/amd64-mpx.xml: Remove.
5657 * features/i386/amd64.xml: Remove.
5658 * features/i386/i386-avx-avx512-linux.xml: Remove.
5659 * features/i386/i386-avx-avx512.xml: Remove.
5660 * features/i386/i386-avx-linux.xml: Remove.
5661 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5662 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5663 * features/i386/i386-avx-mpx-linux.xml: Remove.
5664 * features/i386/i386-avx-mpx.xml: Remove.
5665 * features/i386/i386-avx.xml: Remove.
5666 * features/i386/i386-linux.xml: Remove.
5667 * features/i386/i386-mmx-linux.xml: Remove.
5668 * features/i386/i386-mmx.xml: Remove.
5669 * features/i386/i386-mpx-linux.xml: Remove.
5670 * features/i386/i386-mpx.xml: Remove.
5671 * features/i386/i386.xml: Remove.
5672 * features/i386/x32-avx-avx512-linux.xml: Remove.
5673 * features/i386/x32-avx-linux.xml: Remove.
5674 * features/i386/x32-linux.xml: Remove.
5675
5676 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5677
5678 * regformats/aarch64.dat: Remove.
5679 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5680 * regformats/i386/amd64-avx-linux.dat: Remove.
5681 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5682 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5683 * regformats/i386/amd64-linux.dat: Remove.
5684 * regformats/i386/amd64-mpx-linux.dat: Remove.
5685 * regformats/i386/amd64.dat: Remove.
5686 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5687 * regformats/i386/i386-avx-linux.dat: Remove.
5688 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5689 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5690 * regformats/i386/i386-linux.dat: Remove.
5691 * regformats/i386/i386-mmx-linux.dat: Remove.
5692 * regformats/i386/i386-mpx-linux.dat: Remove.
5693 * regformats/i386/i386.dat: Remove.
5694 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5695 * regformats/i386/x32-avx-linux.dat: Remove.
5696 * regformats/i386/x32-linux.dat: Remove.
5697
5698 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5699
5700 * aarch64-tdep.c: Remove xml self tests.
5701 * amd64-linux-tdep.c: Likewise.
5702 * amd64-tdep.c: Likewise.
5703 * i386-linux-tdep.c: Likewise.
5704 * i386-tdep.c: Likewise.
5705
5706 2019-07-03 Pedro Alves <palves@redhat.com>
5707
5708 PR cli/24732
5709 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5710 (pipe_cmd_option_defs): New.
5711 (make_pipe_cmd_options_def_group): New.
5712 (pipe_command): Use gdb::option::process_options.
5713 (pipe_command_completer): New function.
5714 (_initialize_cli_cmds): Install completer for "pipe" command.
5715
5716 2019-07-03 Pedro Alves <palves@redhat.com>
5717
5718 * cli/cli-option.c (union option_value) <string>: New field.
5719 (struct option_def_and_value): Add ctor, move ctor, dtor and
5720 use DISABLE_COPY_AND_ASSIGN.
5721 (option_def_and_value::clear_value): New.
5722 (parse_option, save_option_value_in_ctx, get_val_type_str)
5723 (add_setshow_cmds_for_options): Handle var_string.
5724 * cli-option.h (union option_def::var_address) <string>: New
5725 field.
5726 (struct string_option_def): New.
5727 * maint-test-options.c (struct test_options_opts): Add default
5728 ctor and use DISABLE_COPY_AND_ASSIGN.
5729 <string_opt>: New field.
5730 (test_options_opts::~test_options_opts): New.
5731 (test_options_opts::dump): Also dump "-string".
5732 (test_options_option_defs): Install "string.
5733
5734 2019-07-03 Pedro Alves <palves@redhat.com>
5735
5736 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5737 option_value with a null enumeration.
5738 (complete_options): Save the option values in the context.
5739 (save_option_value_in_ctx): New, factored out from ...
5740 (process_options): ... here.
5741 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5742 of the function.
5743 * maint-test-options.c (test_options_opts::dump): New, factored
5744 out from ...
5745 (maintenance_test_options_command_mode): ... here.
5746 (maintenance_test_options_command_completion_result): Delete.
5747 (maintenance_test_options_command_completion_text): Update
5748 comment.
5749 (maintenance_show_test_options_completion_result): Change
5750 prototype. Just print
5751 maintenance_test_options_command_completion_text.
5752 (save_completion_result): New.
5753 (maintenance_test_options_completer_mode): Pass options context to
5754 complete_options, and then save a dump.
5755 (_initialize_maint_test_options): Use add_cmd to install "maint
5756 show test-options-completion-result".
5757
5758 2019-07-03 Pedro Alves <palves@redhat.com>
5759
5760 * NEWS (New commands): Mention "with" and "maint with".
5761 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5762 (with_command, with_command_completer): New.
5763 (pipe_command): Adjust to new repeat_previous
5764 interface.
5765 (_initialize_cli_cmds): Install the "with" command and its "w"
5766 alias.
5767 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5768 declarations.
5769 * cli/cli-setshow.c (parse_cli_var_uinteger)
5770 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5771 argument strings for all var_types.
5772 (get_setshow_command_value_string): New, factored out from ...
5773 (do_show_command): ... this.
5774 * cli/cli-setshow.h: Include <string>.
5775 (get_setshow_command_value_string): Declare.
5776 * command.h (repeat_previous): Now returns const char *. Adjust
5777 comment.
5778 * maint.c: Include "cli/cli-cmds.h".
5779 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5780 (_initialize_maint_cmds): Register the "maintenance with" command.
5781 * top.c (repeat_previous): Move bits from pipe_command here:
5782 Return the saved command line, if any; error out if there's no
5783 command to relaunch.
5784
5785 2019-07-03 Pedro Alves <palves@redhat.com>
5786
5787 * NEWS (New commands): Mention "maint set/show test-settings"
5788 instead of "maint test-settings".
5789 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5790 (maintenance_test_settings_set_list): Rename to ...
5791 (maintenance_set_test_settings_list): ... this.
5792 (maintenance_test_settings_show_list): Rename to ...
5793 (maintenance_show_test_settings_list): ... this.
5794 (maintenance_test_settings_cmd): Delete.
5795 (maintenance_test_settings_set_cmd): ...
5796 (maintenance_set_test_settings_cmd): ... this.
5797 (maintenance_test_settings_show_cmd): ...
5798 (maintenance_show_test_settings_cmd): ... this.
5799 (maintenance_test_settings_show_value_cmd):
5800 (maintenance_show_test_settings_value_cmd): ... this.
5801 (_initialize_maint_test_settings): No longer install the "maint
5802 test-settings" prefix command. Rename "maint test-settings set"
5803 to "maint set test-settings", and "maint test-settings show" to
5804 "maint show test-settings". Adjust all subcommands.
5805
5806 2019-07-03 Pedro Alves <palves@redhat.com>
5807
5808 * maint-test-settings.c: Fix file's intro comment. Replace all
5809 references to "test-options" with references to "test-settings",
5810 in comments.
5811
5812 2019-07-03 Pedro Alves <palves@redhat.com>
5813
5814 * maint-test-settings.c (maintenance_test_settings_xxx)
5815 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5816 New.
5817 (maintenance_test_settings_enums): Use them.
5818 (maintenance_test_settings_enum): Default to
5819 maintenance_test_settings_xxx.
5820 (_initialize_maint_test_settings): Initialize
5821 MAINTENANCE_TEST_SETTINGS_FILENAME.
5822
5823 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * breakpoint.h (remove_breakpoints_inf): Change return type to
5826 void, move function documentation here.
5827 * breakpoint.c (remove_breakpoints_inf): Change return type to
5828 void, move function documentation to header.
5829
5830 2019-07-02 Pedro Alves <palves@redhat.com>
5831
5832 * NEWS (Completion improvements): Mention "info threads".
5833 * thread.c (struct info_threads_opts, info_threads_option_defs)
5834 (make_info_threads_options_def_group): New.
5835 (info_threads_command): Use gdb::option::process_options.
5836 (info_threads_command_completer): New.
5837 (_initialize_thread): Use gdb::option::build_help to build the
5838 help text for "info threads".
5839
5840 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * defs.h (generic_load): Move from here...
5843 * symfile.h (generic_load): ... to here. Rename name parameter
5844 to args.
5845 * symfile.c (generic_load): Add comment.
5846
5847 2019-07-01 Tom Tromey <tromey@adacore.com>
5848
5849 * dwarf2read.c
5850 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5851 declaration of without_params. Fix formatting.
5852
5853 2019-07-01 Tom Tromey <tromey@adacore.com>
5854
5855 * ada-exp.y (find_primitive_type): Update.
5856 * ada-lang.h (ada_lookup_symbol): Update.
5857 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5858 parameter.
5859 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5860
5861 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5862
5863 PR breakpoints/24541
5864 * gdbarch.c: Regenerate.
5865 * gdbarch.h: Regenerate.
5866 * gdbarch.sh: Add 'stap_adjust_register'.
5867 * i386-tdep.c: Include '<unordered_set>'.
5868 (i386_stap_adjust_register): New function.
5869 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5870 * stap-probe.c (stap_parse_register_operand): Call
5871 'gdbarch_stap_adjust_register'.
5872
5873 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5874
5875 PR python/24742
5876 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5877 * python/python.c (do_start_initialization): Use 'xmalloc'
5878 instead of 'PyMem_Malloc'.
5879
5880 2019-06-28 Tom Tromey <tromey@adacore.com>
5881
5882 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5883 for Ada.
5884
5885 2019-06-27 Tom Tromey <tromey@adacore.com>
5886
5887 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5888 objfile_key.
5889 (arm_find_mapping_symbol, arm_record_special_symbol)
5890 (_initialize_arm_tdep): Update.
5891 (arm_objfile_data_free): Remove.
5892
5893 2019-06-27 Tom Tromey <tromey@adacore.com>
5894
5895 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5896 to cp_print_static_field.
5897
5898 2019-06-26 Tom Tromey <tromey@adacore.com>
5899
5900 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5901 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5902 declare.
5903
5904 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5905
5906 * features/aarch64-core.c (create_feature_aarch64_core):
5907 Regenerate.
5908 * features/aarch64-core.xml: Add cpsr flags.
5909
5910 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5911
5912 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5913 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5914
5915 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5918 field.
5919 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5920 use.
5921 (arm_record_special_symbol): Don't insert new symbol in sorted
5922 position, push it at the end.
5923
5924 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5925
5926 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5927 (arm_mapping_symbol_s): Remove.
5928 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5929 (arm_mapping_symbol_vec): New typedef.
5930 (struct arm_per_objfile): Add constructor.
5931 <section_maps>: Change type to
5932 std::unique_ptr<arm_mapping_symbol_vec[]>.
5933 (arm_compare_mapping_symbols): Remove.
5934 (arm_find_mapping_symbol): Adjust to section_maps type change.
5935 (arm_objfile_data_free): Call delete on arm_per_objfile.
5936 (arm_record_special_symbol): Adjust to section_maps type change.
5937 Allocate arm_per_objfile with new.
5938
5939 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5940
5941 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5942 with the command prefix.
5943
5944 2019-06-25 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5947 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5948
5949 2019-06-25 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5952 type.
5953 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5954 protected.
5955
5956 2019-06-25 Tom Tromey <tom@tromey.com>
5957
5958 * tui/tui-winsource.c
5959 (tui_source_window_base::set_is_exec_point_at): Add check against
5960 LOA_ADDRESS.
5961
5962 2019-06-25 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-source.c (tui_set_source_content): Don't check before
5965 xfree.
5966 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5967
5968 2019-06-25 Tom Tromey <tom@tromey.com>
5969
5970 * tui/tui-winsource.h (tui_update_source_window_as_is)
5971 (tui_alloc_source_buffer, tui_line_is_displayed)
5972 (tui_addr_is_displayed): Change type of win_info.
5973 * tui/tui-winsource.c (tui_update_source_window_as_is)
5974 (tui_clear_source_content, tui_show_source_line)
5975 (tui_show_source_content, tui_source_window_base::refill)
5976 (tui_source_window_base::set_is_exec_point_at)
5977 (tui_source_window_base::set_is_exec_point_at)
5978 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5979 (tui_alloc_source_buffer, tui_line_is_displayed)
5980 (tui_addr_is_displayed): Change type of win_info. Update.
5981 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5982 (tui_source_window_base::do_make_visible_with_new_height):
5983 Update.
5984 * tui/tui-source.c (tui_set_source_content)
5985 (tui_set_source_content_nil)
5986 (tui_source_window::do_scroll_vertical): Update.
5987 * tui/tui-layout.c (show_layout): Update.
5988 * tui/tui-disasm.c (tui_set_disassem_content)
5989 (tui_disasm_window::do_scroll_vertical): Update.
5990 * tui/tui-data.h (tui_win_content): Remove.
5991 (struct tui_gen_win_info) <content, content_size>: Remove.
5992 (struct tui_source_element): Add initializers and destructor.
5993 (union tui_which_element, struct tui_win_element): Remove.
5994 (struct tui_source_window_base) <content>: New field.
5995 (struct tui_data_window): Remove destructor.
5996 (tui_alloc_content, tui_free_win_content)
5997 (tui_free_all_source_wins_content): Don't declare.
5998 * tui/tui-data.c (tui_initialize_static_data): Update.
5999 (init_content_element, tui_alloc_content): Remove.
6000 (~tui_gen_win_info): Update.
6001 (~tui_data_window, tui_free_all_source_wins_content)
6002 (tui_free_win_content, free_content, free_content_elements):
6003 Remove.
6004
6005 2019-06-25 Tom Tromey <tom@tromey.com>
6006
6007 * tui/tui-winsource.h (tui_clear_source_content)
6008 (tui_erase_source_content, tui_show_source_content): Change type
6009 of win_info.
6010 * tui/tui-winsource.c (tui_clear_source_content)
6011 (tui_erase_source_content, tui_show_source_content): Change type
6012 of win_info.
6013 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6014 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6015 win_info.
6016 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6017 win_info.
6018 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6019
6020 2019-06-25 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-winsource.c (tui_clear_source_content)
6023 (tui_source_window_base::set_is_exec_point_at): Update.
6024 * tui/tui-source.c (tui_set_source_content_nil): Update.
6025 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6026 a bool.
6027 * tui/tui-data.c (init_content_element): Update.
6028
6029 2019-06-25 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6032 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6033 * tui/tui-layout.c (init_and_make_win): Update.
6034 * tui/tui.h (enum tui_win_type): Update.
6035 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6036 tui_win_is_auxillary.
6037 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6038 tui_win_is_auxillary.
6039
6040 2019-06-25 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6043 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6044 (tui_delete_data_content_windows, tui_display_all_data)
6045 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6046 Update.
6047 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6048 * tui/tui-regs.c (tui_last_regs_line_no)
6049 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6050 (tui_show_registers): Update.
6051 (tui_show_register_group): Return void. Update.
6052 (tui_display_registers_from, tui_display_reg_element_at_line)
6053 (tui_display_registers_from_line, tui_check_register_values):
6054 Update.
6055 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6056 member.
6057 (struct tui_data_window) <regs_content>: Now a std::vector.
6058 <regs_content_count>: Remove.
6059 (tui_add_content_elements, tui_free_data_content): Don't declare.
6060 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6061 (init_content_element): Remove DATA_WIN case. Add assert.
6062 (tui_add_content_elements): Remove.
6063 (tui_data_window): Update.
6064 (tui_free_data_content): Remove.
6065 (free_content_elements): Remove DATA_WIN case.
6066
6067 2019-06-25 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-data.c (tui_data_item_window): Update.
6070 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6071 * tui/tui-windata.c (tui_display_all_data)
6072 (tui_display_data_from_line): Update.
6073 (tui_check_data_values): Remove.
6074 * tui/tui-regs.c (tui_show_register_group)
6075 (tui_display_reg_element_at_line): Update.
6076 * tui/tui-hooks.c (tui_register_changed)
6077 (tui_refresh_frame_and_register_information): Call
6078 tui_check_register_values.
6079 * tui/tui-data.h (struct tui_data_window) <data_content,
6080 data_content_count, data_type>: Remove.
6081 (enum tui_data_type): Remove.
6082
6083 * tui/tui-data.c (tui_data_window::clear_detail)
6084 (~tui_data_window): Update.
6085
6086 2019-06-25 Tom Tromey <tom@tromey.com>
6087
6088 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6089 declare.
6090 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6091 Rename from tui_first_data_item_displayed. Update.
6092 (tui_data_window::refresh_all)
6093 (tui_data_window::do_scroll_vertical): Update.
6094 * tui/tui-data.h (struct tui_data_window)
6095 <first_data_item_displayed>: Declare new method.
6096
6097 2019-06-25 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6100 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6101 contents...
6102 (tui_initialize_static_data): ...here.
6103
6104 2019-06-25 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6107 (tui_display_registers_from, tui_check_register_values): Update.
6108 (tui_display_register): Remove win_info parameter; update.
6109 (tui_get_register): Change type of parameters.
6110 * tui/tui-data.h (struct tui_data_element): Remove.
6111 (union tui_which_element) <data>: Remove.
6112 <data_window>: Change type.
6113 (struct tui_data_item_window): New.
6114 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6115 case. Add assert.
6116 (~tui_data_item_window): New destructor.
6117 (free_content_elements): Remove DATA_ITEM_WIN case.
6118
6119 2019-06-25 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6122 Remove.
6123
6124 2019-06-25 Tom Tromey <tom@tromey.com>
6125
6126 * tui/tui-data.h (struct tui_command_element): Remove.
6127 (union tui_which_element) <command>: Remove.
6128 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6129 assert.
6130 (free_content_elements): Remove CMD_WIN case.
6131
6132 2019-06-25 Tom Tromey <tom@tromey.com>
6133
6134 * tui/tui-layout.c (tui_set_layout): Update.
6135 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6136 * tui/tui-data.c (layout_def): Update.
6137
6138 2019-06-25 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6141 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6142 (tui_source_window_base::set_new_height): Update.
6143 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6144 Update.
6145 (tui_set_locator_fullname, tui_set_locator_info)
6146 (tui_show_frame_info): Update.
6147 * tui/tui-source.c (tui_set_source_content)
6148 (tui_source_is_displayed): Update.
6149 * tui/tui-layout.c (show_source_disasm_command, show_data)
6150 (show_source_or_disasm_and_command): Update.
6151 * tui/tui-disasm.c (tui_set_disassem_content)
6152 (tui_get_begin_asm_address): Update.
6153 * tui/tui-data.h (struct tui_locator_element): Remove.
6154 (union tui_which_element) <locator>: Remove.
6155 (struct tui_locator_window): New.
6156 (tui_locator_win_info_ptr): Change return type.
6157 * tui/tui-data.c (_locator): Change type.
6158 (tui_locator_win_info_ptr): Change return type.
6159 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6160 (tui_alloc_content): Add assert.
6161
6162 2019-06-25 Tom Tromey <tom@tromey.com>
6163
6164 * tui/tui-winsource.c
6165 (tui_exec_info_window::maybe_allocate_content): New method.
6166 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6167 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6168 (make_source_or_disasm_window): Add cast.
6169 * tui/tui-data.h (union tui_which_element) <simple_string>:
6170 Remove.
6171 (struct tui_source_info): New.
6172 (struct tui_source_window_base) <execution_info>: Change type.
6173 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6174 case, and add assert.
6175 (tui_alloc_content): Add assert.
6176
6177 2019-06-25 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6180 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6181 * tui/tui-data.c (tui_alloc_win_info): Remove.
6182
6183 2019-06-25 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6186 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6187 can_highlight.
6188
6189 2019-06-25 Tom Tromey <tom@tromey.com>
6190
6191 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6192 make_visible_with_new_height method.
6193 (tui_win_info::make_visible_with_new_height): New method.
6194 (tui_source_window_base::do_make_visible_with_new_height)
6195 (tui_data_window::do_make_visible_with_new_height)
6196 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6197 (make_visible_with_new_height): Remove.
6198 (tui_resize_all, tui_adjust_win_heights): Use
6199 make_visible_with_new_height method.
6200 * tui/tui-data.h (struct tui_win_info)
6201 <do_make_visible_with_new_height, make_visible_with_new_height>:
6202 New methods.
6203 (struct tui_source_window_base, struct tui_data_window)
6204 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6205 methods.
6206
6207 2019-06-25 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6210 method.
6211 (update_tab_width): Call update_tab_width method.
6212 * tui/tui-data.h (struct tui_win_info)
6213 (struct tui_source_window_base) <update_tab_width>: New methods.
6214
6215 2019-06-25 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6218 parameter.
6219 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6220 parameter.
6221 (tui_gen_win_info::make_visible): Update.
6222 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6223 parameter.
6224 * tui/tui-data.h (enum tui_box): New enum.
6225 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6226
6227 2019-06-25 Tom Tromey <tom@tromey.com>
6228
6229 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6230 init_and_make_win for EXEC_INFO_WIN.
6231 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6232 longer inline.
6233 (struct tui_win_info) <~tui_win_info>: Inline.
6234 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6235 Don't declare.
6236 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6237 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6238 Remove.
6239 (tui_initialize_static_data): Update.
6240 (~tui_gen_win_info): Handle more cleanup here.
6241 (~tui_source_window_base): Delete "execution_info".
6242 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6243
6244 2019-06-25 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-layout.c (make_command_window): Don't set
6247 can_highlight.
6248 (show_source_disasm_command): Call the reset method.
6249 (show_data): Don't set can_highlight. Call the reset method.
6250 (tui_gen_win_info::reset): Rename from init_gen_win_info
6251 (init_and_make_win): Simplify. Return tui_gen_win_info.
6252 (show_source_or_disasm_and_command): Call the reset method.
6253 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6254 (struct tui_cmd_window): Set can_highlight.
6255
6256 2019-06-25 Tom Tromey <tom@tromey.com>
6257
6258 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6259 from make_visible.
6260 (tui_make_visible, tui_make_invisible): Rewrite.
6261 (tui_win_info::make_visible): Remove.
6262 (tui_source_window_base::make_visible): Update.
6263 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6264 method. Moved from...
6265 (struct tui_win_info) <make_visible>: ...here.
6266
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-winsource.c
6270 (tui_source_window_base::do_scroll_horizontal): Remove direction
6271 parameter.
6272 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6273 direction parameter.
6274 * tui/tui-win.c (tui_win_info::forward_scroll)
6275 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6276 (tui_win_info::right_scroll): Update.
6277 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6278 direction parameter.
6279 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6280 direction parameter.
6281 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6282 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6283 Remove direction parameter.
6284 (struct tui_source_window_base, struct tui_source_window)
6285 (struct tui_disasm_window, struct tui_data_window)
6286 (struct tui_cmd_window): Update.
6287
6288 2019-06-25 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-winsource.h (tui_set_exec_info_content)
6291 (tui_show_exec_info_content, tui_erase_exec_info_content)
6292 (tui_clear_exec_info_content, tui_update_exec_info): Change
6293 argument to tui_source_window_base.
6294 * tui/tui-winsource.c (tui_set_exec_info_content)
6295 (tui_show_exec_info_content, tui_erase_exec_info_content)
6296 (tui_clear_exec_info_content, tui_update_exec_info): Change
6297 argument to tui_source_window_base.
6298
6299 2019-06-25 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6302 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6303
6304 2019-06-25 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6307 check.
6308
6309 2019-06-25 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6312 type to void.
6313 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6314 type to void.
6315 * tui/tui-source.c (tui_set_source_content): Update.
6316 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6317
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-win.c (window_name_completer, tui_set_focus)
6321 (tui_all_windows_info): Use name method.
6322 * tui/tui-data.h (struct tui_gen_win_info)
6323 (struct tui_source_window, struct tui_disasm_window)
6324 (struct tui_data_window, struct tui_cmd_window) <name>: New
6325 method.
6326 (tui_win_name): Don't declare.
6327 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6328 (tui_win_name): Remove.
6329
6330 2019-06-25 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-winsource.h (tui_update_source_window)
6333 (tui_update_source_window_as_is): Change parameter type.
6334 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6335 to be a tui_source_window_base.
6336 (tui_update_source_window_as_is): Likewise.
6337 * tui/tui-win.c (make_visible_with_new_height): Update.
6338
6339 2019-06-25 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-winsource.c (tui_erase_source_content)
6342 (tui_show_source_content, tui_show_exec_info_content)
6343 (tui_erase_exec_info_content): Use refresh_window method.
6344 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6345 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6346 from tui_refresh_win.
6347 (tui_data_window::refresh_window): New method.
6348 (tui_win_info::refresh, tui_source_window_base::refresh)
6349 (tui_refresh_all): Use refresh_window method.
6350 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6351 method.
6352 * tui/tui-regs.c (tui_display_register): Call refresh_window
6353 method.
6354 * tui/tui-layout.c (show_source_disasm_command)
6355 (show_source_or_disasm_and_command): Call refresh_window method.
6356 * tui/tui-data.h (struct tui_gen_win_info)
6357 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6358 New method.
6359
6360 2019-06-25 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui.c (tui_rl_other_window, tui_enable)
6363 (tui_is_window_visible, tui_get_command_dimension): Update.
6364 * tui/tui-winsource.c (tui_update_source_window_as_is)
6365 (tui_clear_source_content, tui_erase_source_content)
6366 (tui_show_source_line, tui_source_window_base::refill)
6367 (tui_source_window_base::do_scroll_horizontal)
6368 (tui_source_window_base::set_is_exec_point_at)
6369 (tui_update_breakpoint_info, tui_set_exec_info_content)
6370 (tui_alloc_source_buffer, tui_line_is_displayed)
6371 (tui_addr_is_displayed): Update.
6372 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6373 (tui_check_and_display_highlight_if_needed)
6374 (tui_win_info::make_visible, tui_win_info::refresh)
6375 (tui_refresh_all): Update.
6376 * tui/tui-windata.c (tui_first_data_item_displayed)
6377 (tui_delete_data_content_windows, tui_erase_data_content)
6378 (tui_display_all_data, tui_data_window::refresh_all)
6379 (tui_check_data_values): Update.
6380 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6381 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6382 (tui_win_info::backward_scroll, tui_refresh_all_win)
6383 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6384 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6385 (tui_source_window_base::set_new_height)
6386 (tui_data_window::set_new_height)
6387 (make_invisible_and_set_new_height)
6388 (make_visible_with_new_height, new_height_ok)
6389 (parse_scrolling_args): Update.
6390 * tui/tui-stack.c (tui_show_frame_info): Update.
6391 * tui/tui-source.c (tui_set_source_content)
6392 (tui_set_source_content_nil, tui_source_is_displayed)
6393 (tui_source_window::do_scroll_vertical): Update.
6394 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6395 (tui_display_registers_from, tui_display_reg_element_at_line)
6396 (tui_check_register_values, tui_reg_command): Update.
6397 * tui/tui-layout.c (tui_default_win_height)
6398 (show_source_disasm_command, show_data, init_and_make_win)
6399 (show_source_or_disasm_and_command): Update.
6400 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6401 (tui_redisplay_readline, tui_mld_flush)
6402 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6403 (tui_getc): Update.
6404 * tui/tui-disasm.c (tui_set_disassem_content)
6405 (tui_disasm_window::do_scroll_vertical): Update.
6406 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6407 Now virtual.
6408 (struct tui_win_info): Derive from tui_gen_win_info.
6409 <~tui_win_info>: Mark as override.
6410 <generic>: Remove member.
6411 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6412 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6413 (~tui_data_window, ~tui_win_info)
6414 (tui_free_all_source_wins_content): Update.
6415 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6416
6417 2019-06-25 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-layout.c (init_and_make_win): Use new.
6420 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6421 destructor, initializers.
6422 (tui_alloc_generic_win_info): Don't declare.
6423 * tui/tui-data.c (_locator): Add argument to constructor.
6424 (source_win, disasm_win): New globals.
6425 (exec_info): Remove.
6426 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6427 Update.
6428 (tui_alloc_generic_win_info): Remove.
6429 (init_content_element): Use new.
6430 (tui_win_info::tui_win_info): Update.
6431 (free_content_elements) <case DATA_WIN>: Use delete.
6432
6433 2019-06-25 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6436 * tui/tui-windata.c (tui_first_data_item_displayed)
6437 (tui_delete_data_content_windows): Update.
6438 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6439 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6440 (tui_display_registers_from, tui_check_register_values): Update.
6441 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6442 pointer.
6443 * tui/tui-data.c (init_content_element): Update. Allocate the new
6444 window.
6445 (tui_free_data_content): Update.
6446 (free_content_elements) <case DATA_WIN>: Free the window.
6447
6448 2019-06-25 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6451 Update.
6452 * tui/tui-layout.c (make_command_window)
6453 (show_source_disasm_command, show_data, init_and_make_win)
6454 (show_source_or_disasm_and_command): Update.
6455 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6456 method.
6457 <can_highight, is_highlighted>: Now bool.
6458 (tui_set_win_highlight): Don't declare.
6459 * tui/tui-data.c (tui_set_win_highlight): Remove.
6460
6461 2019-06-25 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-wingeneral.c (make_visible): Remove check of window
6464 type.
6465
6466 2019-06-25 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-win.c (tui_win_info::max_height)
6469 (tui_cmd_window::max_height): New methods.
6470 (new_height_ok): Call max_height.
6471 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6472 <max_height>: New method.
6473
6474 2019-06-25 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-win.c (tui_source_window_base::set_new_height)
6477 (tui_data_window::set_new_height): New methods.
6478 (make_invisible_and_set_new_height): Call set_new_height method.
6479 * tui/tui-data.h (struct tui_win_info)
6480 (struct tui_source_window_base, struct tui_data_window)
6481 <set_new_height>: New method.
6482
6483 2019-06-25 Tom Tromey <tom@tromey.com>
6484
6485 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6486 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6487 tui_refresh_data_win.
6488 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6489 method.
6490 (tui_refresh_all_win): Call the refresh_all method.
6491 (tui_set_focus): Likewise.
6492 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6493 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6494 Likewise.
6495
6496 2019-06-25 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-winsource.h (tui_refill_source_window)
6499 (tui_set_is_exec_point_at): Don't declare.
6500 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6501 (tui_source_window_base::refill): Rename from
6502 tui_refill_source_window.
6503 (tui_source_window_base::do_scroll_horizontal): Update.
6504 (tui_source_window_base::set_is_exec_point_at): Rename from
6505 tui_set_is_exec_point_at.
6506 (tui_update_all_breakpoint_info): Update.
6507 * tui/tui-stack.c (tui_show_frame_info): Update.
6508 * tui/tui-layout.c (show_data): Add cast.
6509 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6510 * tui/tui-data.h (struct tui_source_window_base) <refill,
6511 set_is_exec_point_at>: New methods.
6512 (tui_source_windows, tui_add_to_source_windows): Update types.
6513 (tui_add_to_source_windows): Remove redundant declaration.
6514 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6515 (tui_source_windows): Change return type.
6516 (tui_clear_source_windows_detail): Update.
6517 (tui_add_to_source_windows): Change type of parameter.
6518 (tui_free_all_source_wins_content): Update.
6519
6520 2019-06-25 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-wingeneral.c (tui_win_info::refresh)
6523 (tui_source_window_base::refresh): New methods.
6524 (tui_refresh_all): Call the refresh method.
6525 * tui/tui-data.h (struct tui_win_info)
6526 (struct tui_source_window_base) <refresh>: New method.
6527
6528 2019-06-25 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui.h (tui_is_window_visible): Return bool.
6531 * tui/tui.c (tui_is_window_visible): Return bool.
6532 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6533 (tui_make_visible, tui_make_invisible)
6534 (tui_win_info::make_visible)
6535 (tui_source_window_base::make_visible, make_all_visible)
6536 (tui_make_all_visible, tui_make_all_invisible): Update.
6537 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6538 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6539 bool.
6540 (struct tui_win_info, struct tui_source_window_base)
6541 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6542 * tui/tui-data.c (tui_init_generic_part): Update.
6543
6544 2019-06-25 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6547 (tui_source_window_base::make_visible): New methods.
6548 (make_all_visible): Make method call.
6549 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6550 (struct tui_source_window_base, struct tui_cmd_window): Override
6551 make_visible.
6552 (tui_win_is_source_type): Don't declare.
6553 * tui/tui-data.c (tui_win_is_source_type): Remove.
6554
6555 2019-06-25 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6558 NULL check.
6559
6560 2019-06-25 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6563 Inline constructor. Add initializers for members.
6564 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6565 constructors; now inline in class.
6566
6567 2019-06-25 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-regs.c (tui_show_registers): Update.
6570 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6571 bool.
6572 * tui/tui-data.c (tui_data_window::clear_detail)
6573 (tui_data_window): Update.
6574
6575 2019-06-25 Tom Tromey <tom@tromey.com>
6576
6577 * tui/tui-windata.c (tui_display_all_data)
6578 (tui_display_data_from_line, tui_display_data_from)
6579 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6580 Update.
6581 * tui/tui-regs.c (tui_last_regs_line_no)
6582 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6583 (tui_show_registers, tui_show_register_group)
6584 (tui_display_registers_from, tui_display_reg_element_at_line)
6585 (tui_display_registers_from_line, tui_check_register_values)
6586 (tui_reg_next, tui_reg_prev): Update.
6587 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6588 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6589 tui_data_window.
6590 (struct tui_win_info) <detail>: Remove. Add new fields from
6591 tui_data_info.
6592 (TUI_DATA_WIN): Add cast.
6593 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6594 (~tui_data_window): Simplify.
6595
6596 2019-06-25 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-layout.c (show_source_disasm_command)
6599 (show_source_or_disasm_and_command): Update.
6600 * tui/tui-io.c (update_cmdwin_start_line)
6601 (tui_redisplay_readline): Update.
6602 * tui/tui-data.h (struct tui_command_info): Remove.
6603 (struct tui_win_info) <detail>: Remove command_info member.
6604 (struct tui_data_window) <start_line>: New member, from
6605 tui_command_info.
6606 (TUI_CMD_WIN): Add casts.
6607
6608 2019-06-25 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-winsource.c (tui_update_source_window)
6611 (tui_refill_source_window)
6612 (tui_source_window_base::do_scroll_horizontal)
6613 (tui_update_breakpoint_info, tui_set_exec_info_content)
6614 (tui_show_exec_info_content, tui_erase_exec_info_content)
6615 (tui_clear_exec_info_content): Update.
6616 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6617 Update.
6618 * tui/tui-win.c (make_invisible_and_set_new_height)
6619 (make_visible_with_new_height): Update.
6620 * tui/tui-source.c (tui_set_source_content)
6621 (tui_show_symtab_source): Update.
6622 * tui/tui-layout.c (extract_display_start_addr)
6623 (show_source_disasm_command, show_data)
6624 (make_source_or_disasm_window)
6625 (show_source_or_disasm_and_command): Update.
6626 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6627 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6628 "gdbarch".
6629 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6630 to tui_source_window_base.
6631 (struct tui_win_info) <detail>: Remove source_info member.
6632 (struct tui_source_window_base) <has_locator>: Inline.
6633 Move contents from tui_source_info; rename has_locator member to
6634 m_has_locator.
6635 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6636 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6637 header file.
6638 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6639 Simplify.
6640 (tui_free_all_source_wins_content): Cast to
6641 tui_source_window_base.
6642
6643 2019-06-25 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-win.c (make_invisible_and_set_new_height)
6646 (make_visible_with_new_height): Call has_locator method.
6647 * tui/tui-layout.c (show_source_disasm_command, show_data)
6648 (show_source_or_disasm_and_command): Update for bool change.
6649 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6650 (tui_win_info) <has_locator>: New method.
6651 (struct tui_source_window_base) <has_locator>: New method.
6652 (tui_win_has_locator): Don't declare.
6653 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6654 from tui_win_has_locator.
6655 (tui_source_window_base): Use false, not FALSE.
6656
6657 2019-06-25 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6660 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6661 clear_detail method directly.
6662 (tui_clear_win_detail): Remove.
6663
6664 2019-06-25 Tom Tromey <tom@tromey.com>
6665
6666 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6667 "this", not TUI_DISASM_WIN.
6668
6669 2019-06-25 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6672 declare.
6673 * tui/tui-winsource.c
6674 (tui_source_window_base::do_scroll_horizontal): Rename from
6675 tui_horizontal_source_scroll.
6676 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6677 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6678 from tui_vertical_data_scroll.
6679 * tui/tui-win.h (tui_scroll): Don't declare.
6680 * tui/tui-win.c (tui_win_info::forward_scroll)
6681 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6682 (tui_win_info::right_scroll): Rename and update.
6683 (tui_scroll_forward_command, tui_scroll_backward_command)
6684 (tui_scroll_left_command, tui_scroll_right_command): Update.
6685 (tui_scroll): Remove.
6686 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6687 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6688 from tui_vertical_source_scroll.
6689 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6690 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6691 from tui_vertical_disassem_scroll.
6692 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6693 do_scroll_horizontal>: New methods.
6694 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6695 Likewise.
6696 (struct tui_source_window_base): Add do_scroll_horizontal.
6697 (struct tui_source_window, struct tui_disasm_window): Add
6698 do_scroll_vertical.
6699 (struct tui_data_window, struct tui_cmd_window): Add
6700 do_scroll_horizontal and do_scroll_vertical.
6701 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6702
6703 2019-06-25 Tom Tromey <tom@tromey.com>
6704
6705 * tui/tui-data.h (struct tui_source_window_base): New struct.
6706 (struct tui_source_window): Derive from tui_source_window_base.
6707 (struct tui_disasm_window): New struct.
6708 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6709 from tui_source_window::clear_detail.
6710 (tui_source_window_base): Rename from tui_source_window.
6711 (~tui_source_window_base): Rename from ~tui_source_window.
6712 (tui_alloc_win_info): Create a tui_disasm_window.
6713
6714 2019-06-25 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-data.h (struct tui_source_window)
6717 (struct tui_data_window): Declare destructors.
6718 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6719 destructors.
6720 (tui_win_info): Simplify.
6721
6722 2019-06-25 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-winsource.c (tui_display_main)
6725 (tui_update_source_windows_with_addr)
6726 (tui_update_all_breakpoint_info): Update.
6727 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6728 (new_height_ok, parse_scrolling_args): Update.
6729 * tui/tui-stack.c (tui_show_frame_info): Update.
6730 * tui/tui-data.h (struct tui_list): Remove.
6731 (tui_source_windows): Return a reference to a std::vector.
6732 * tui/tui-data.c (source_windows): Now a std::vector.
6733 (tui_source_windows): Change return type.
6734 (tui_clear_source_windows): Rewrite.
6735 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6736 (tui_free_all_source_wins_content): Rewrite.
6737
6738 2019-06-25 Tom Tromey <tom@tromey.com>
6739
6740 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6741 (struct tui_data_window, struct tui_cmd_window): Declare
6742 clear_detail method.
6743 * tui/tui-data.c (tui_source_window::clear_detail)
6744 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6745 methods.
6746 (tui_clear_win_detail): Simplify.
6747
6748 2019-06-25 Tom Tromey <tom@tromey.com>
6749
6750 * tui/tui-layout.c (make_source_window, make_disasm_window)
6751 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6752 Return the new window.
6753 (show_source_disasm_command, show_data)
6754 (show_source_or_disasm_and_command): Update.
6755
6756 2019-06-25 Tom Tromey <tom@tromey.com>
6757
6758 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6759 parameter. Return the new window.
6760 (show_source_disasm_command): Update and remove NULL check.
6761 (show_source_or_disasm_and_command): Update.
6762
6763 2019-06-25 Tom Tromey <tom@tromey.com>
6764
6765 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6766
6767 2019-06-25 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-data.h (struct tui_win_info): Make constructor
6770 protected. Make destructor virtual. Add initializers.
6771 (tui_source_window, tui_data_window, tui_cmd_window): New
6772 classes.
6773 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6774 constructor. Add "type" parameter.
6775 (tui_source_window, tui_data_window, tui_cmd_window): New
6776 constructors.
6777 (tui_alloc_win_info): Instantiate the appropriate subclass.
6778
6779 2019-06-25 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui-win.c (tui_resize_all): Use delete.
6782 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6783 destructor.
6784 (tui_free_window): Don't declare.
6785 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6786 Update.
6787
6788 2019-06-25 Tom Tromey <tom@tromey.com>
6789
6790 * tui/tui-data.h (struct tui_win_info): Add constructor.
6791 * tui/tui-data.c (tui_alloc_win_info): Use new.
6792 (tui_free_window): Use delete.
6793
6794 2019-06-22 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6797 declare.
6798 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6799
6800 2019-06-22 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6803 declare.
6804 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6805
6806 2019-06-22 Tom de Vries <tdevries@suse.de>
6807
6808 * dwarf2read.c (create_addrmap_from_aranges)
6809 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6810 instead of '%zu'.
6811
6812 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6813
6814 * dwarf2read.h (dwarf2_section_info_def): Remove.
6815 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6816 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6817 std::vector<dwarf2_section_info>.
6818 (struct dwo_file) <~dwo_file>: Remove.
6819 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6820 types field.
6821 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6822 (dwarf2_read_debug_names): Likewise.
6823 (create_debug_types_hash_table): Change parameter type to
6824 array_view, adjust code accordingly.
6825 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6826 (partial_die_info::fixup): Likewise.
6827 (determine_prefix): Likewise.
6828 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6829
6830 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6831
6832 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6833 gdb_bfd_ref_ptr.
6834 <~dwo_file>: Remove call to gdb_bfd_unref.
6835 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6836 gdb_bfd_ref_ptr::get.
6837
6838 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6839
6840 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6841 type to htab_up.
6842 * dwarf2read.c (struct dwo_file): Initialize fields.
6843 <~dwo_file>: New.
6844 (free_dwo_file): Remove, move content to ~dwo_file.
6845 (struct dwo_file_deleter): Remove.
6846 (dwo_file_up>: Remove custom deleter.
6847 (free_dwo_files): Remove.
6848 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6849 dwo_files.
6850 (process_skeletonless_type_units): Call unique_ptr::get.
6851 (allocate_dwo_file_hash_table): Add deleter to created hash
6852 table. Change return type to htab_up.
6853 (lookup_dwo_file_slot): Don't memset dwo_file, call
6854 unique_ptr::get.
6855 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6856 (create_dwo_unit_in_dwp_v2): Likewise.
6857 (open_and_init_dwo_file): Likewise.
6858 (free_dwo_file_from_slot): Remove.
6859
6860 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * dwarf2read.h (struct dwarf2_section_info) <readin,
6863 is_virtual>: Change type to bool.
6864 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6865 true instead of 1.
6866
6867 2019-06-19 Tom Tromey <tom@tromey.com>
6868
6869 * tui/tui-data.h (tui_init_content_element): Don't declare.
6870
6871 2019-06-19 Tom Tromey <tom@tromey.com>
6872
6873 * tui/tui-data.h (tui_init_win_info): Don't declare.
6874
6875 2019-06-19 Tom de Vries <tdevries@suse.de>
6876
6877 * dwarf2read.h (abstract_to_concrete): Change type to
6878 std::unordered_map<sect_offset, std::vector<sect_offset>,
6879 gdb::hash_enum<sect_offset>>.
6880
6881 2019-06-19 Tom Tromey <tromey@adacore.com>
6882
6883 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6884 EVAL_AVOID_SIDE_EFFECTS specially.
6885
6886 2019-06-19 Tom Tromey <tromey@adacore.com>
6887
6888 * source-cache.c (highlighter): New global.
6889 (source_cache::get_source_lines): Create a highlighter on demand.
6890
6891 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6892
6893 * defs.h (deprecated_interactive_hook): Delete declaration.
6894 * interps.c (clear_interpreter_hooks): Remove use of
6895 deprecated_interactive_hook.
6896 * top.c (deprecated_interactive_hook): Delete definition.
6897 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6898
6899 2019-06-18 Tom de Vries <tdevries@suse.de>
6900
6901 PR gdb/24515
6902 * dwarf2read.h (abstract_to_concrete): Change type from
6903 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6904 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6905 * dwarf2read.c (read_variable): Update.
6906 (dwarf2_fetch_die_loc_sect_off): Update.
6907
6908 2019-06-17 Tom de Vries <tdevries@suse.de>
6909
6910 PR gdb/24617
6911 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6912 accessing parent[parent_len - 1].
6913
6914 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6915
6916 PR gdb/24364
6917 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6918 call dtrace_process_dof with NULL dof.
6919
6920 2019-06-16 Tom de Vries <tdevries@suse.de>
6921
6922 PR gdb/24445
6923 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6924
6925 2019-06-16 Tom Tromey <tom@tromey.com>
6926
6927 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6928 (make_all_visible): Use address of member.
6929
6930 2019-06-16 Tom Tromey <tom@tromey.com>
6931
6932 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6933 (tui_free_window, free_content, free_content_elements): Remove
6934 unnecessary cast.
6935 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6936 cast.
6937 * tui/tui-regs.c (tui_show_register_group)
6938 (tui_display_registers_from, tui_display_reg_element_at_line):
6939 Remove unnecessary cast.
6940
6941 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * linux-nat.c (normal_mask): Delete.
6944 (_initialize_linux_nat): Don't initialise normal_mask.
6945
6946 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6947
6948 PR gdb/24445
6949 * dwarf-index-write.h (write_psymtabs_to_index): Add
6950 dwz_basename parameter.
6951 * dwarf-index-write.c (write_gdbindex): Move file writing to
6952 write_gdbindex_1. Change return type void.
6953 (assert_file_size): Move up, remove filename parameter.
6954 (write_gdbindex_1): New function.
6955 (write_debug_names): Change return type to void, call
6956 assert_file_size.
6957 (struct index_wip_file): New struct.
6958 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6959 file logic to index_wip_file. Write index for dwz file if
6960 needed.
6961 (save_gdb_index_command): Pass basename of dwz file, if present.
6962 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6963 build-id of dwz file, if present.
6964 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6965 (dwarf2_get_dwz_file): Likewise.
6966 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6967 (dwarf2_get_dwz_file): Likewise.
6968
6969 2019-06-16 Tom Tromey <tom@tromey.com>
6970
6971 * coffread.c (process_coff_symbol): Use xstrdup.
6972 * value.c (create_internalvar): Use xstrdup.
6973
6974 2019-06-16 Tom Tromey <tom@tromey.com>
6975
6976 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6977 * breakpoint.c (stopin_command, stopat_command)
6978 (until_break_command, decode_location_default): Remove unnecessary
6979 cast.
6980 * utils.c (subset_compare): Remove unnecessary cast.
6981 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6982 cast.
6983 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6984 cast.
6985 * infcmd.c (path_command): Remove unnecessary cast.
6986 * coffread.c (decode_type): Remove unnecessary cast.
6987 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6988 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6989 * tui/tui-stack.c (tui_show_locator_content)
6990 (tui_show_frame_info): Remove unnecessary cast.
6991 * tui/tui-win.c (tui_scroll_forward_command)
6992 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6993 (parse_scrolling_args): Remove unnecessary cast.
6994 * tui/tui-data.c (init_win_info, tui_del_window)
6995 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6996 (free_content_elements): Remove unnecessary cast.
6997 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6998 unnecessary cast.
6999 * tui/tui-source.c (tui_set_source_content)
7000 (tui_vertical_source_scroll): Remove unnecessary cast.
7001 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7002 cast.
7003 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7004 * tui/tui-regs.c (tui_display_registers_from)
7005 (tui_display_register): Remove unnecessary cast.
7006 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7007 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7008 (make_visible): Remove unnecessary cast.
7009 * tui/tui-winsource.c (tui_erase_source_content)
7010 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7011 unnecessary cast.
7012 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7013 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7014 * stabsread.c (read_type, read_array_type, read_range_type):
7015 Remove unnecessary cast.
7016 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7017 (parse_symbol, parse_type, upgrade_type, parse_external)
7018 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7019 unnecessary cast.
7020 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7021
7022 2019-06-16 Tom Tromey <tom@tromey.com>
7023
7024 * tui/tui-data.c (tui_alloc_generic_win_info)
7025 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7026 checks.
7027
7028 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7029 Andrew Burgess <andrew.burgess@embecosm.com>
7030
7031 * f-typeprint.c (f_print_type): Don't return early for not
7032 associated or not allocated types.
7033 (f_type_print_varspec_suffix): Add print_rank parameter and print
7034 ranks of array types in case they dangling.
7035 (f_type_print_base): Add print_rank parameter.
7036
7037 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * NEWS: Mention new MI commands.
7040 * break-catch-throw.c (enum exception_event_kind): Move to
7041 breakpoint.h.
7042 (print_mention_exception_catchpoint): Output text as a single
7043 message.
7044 (catch_exception_command_1): Rename to...
7045 (catch_exception_event): ...this, make non-static, update header
7046 command, and change some parameter types.
7047 (catch_catch_command): Update for changes to
7048 catch_exception_command_1.
7049 (catch_throw_command): Likewise.
7050 (catch_rethrow_command): Likewise.
7051 * breakpoint.c (enum exception_event_kind): Delete.
7052 * breakpoint.h (enum exception_event_kind): Moved here from
7053 break-catch-throw.c.
7054 (catch_exception_event): Declare.
7055 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7056 (mi_cmd_catch_throw): New function.
7057 (mi_cmd_catch_rethrow): New function.
7058 (mi_cmd_catch_catch): New function.
7059 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7060 'catch-catch' entries.
7061 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7062 (mi_cmd_catch_rethrow): Declare.
7063 (mi_cmd_catch_catch): Declare.
7064
7065 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * annotate.c (annotate_source_line): Change return type to void,
7068 update implementation to match.
7069 * annotate.h (annotate_source_line): Change return type to void,
7070 update header comment.
7071 * stack.c (print_frame_info): Don't change what frame information
7072 is printed based on whether annotations are on or not.
7073
7074 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7077 (annotate_source): Make static.
7078 (annotate_source_line): Moved from source.c and renamed from
7079 identify_source_line. Update the return type.
7080 * annotate.h (annotate_source): Delete declaration.
7081 (annotate_source_line): Declaration moved from source.h, and
7082 renamed from identify_source_line. Return type updated.
7083 * source.c (identify_source_line): Moved to annotate.c and renamed
7084 to annotate_source_line.
7085 (info_line_command): Remove check of annotation_level.
7086 * source.h (identify_source_line): Move declaration to annotate.h
7087 and rename to annotate_source_line.
7088 * stack.c: Add 'annotate.h' include.
7089 (print_frame_info): Remove check of annotation_level before
7090 calling annotate_source_line.
7091
7092 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7093
7094 * source-cache.c (source_cache::get_plain_source_lines): Use
7095 open_source_file_with_line_charpos instead of just
7096 open_source_file, remove call to find_source_lines.
7097 (source_cache::get_source_lines): Likewise.
7098 * source.c (find_source_lines): Make static.
7099 (get_filename_and_charpos): Renamed into...
7100 (open_source_file_with_line_charpos): ..this along with changes to
7101 return a scoped_fd, and some other minor clean ups.
7102 (identify_source_line): Use open_source_file_with_line_charpos.
7103 (search_command_helper): Use open_source_file_with_line_charpos
7104 instead of just open_source_file, remove call to
7105 find_source_lines.
7106 * source.h (open_source_file_with_line_charpos): Declare new
7107 function.
7108 (find_source_lines): Delete declaration.
7109
7110 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * source.c (get_filename_and_charpos): Remove fullname
7113 parameter.
7114 (identify_source_line): Update call to get_filename_and_charpos.
7115
7116 2019-06-14 Tom Tromey <tromey@adacore.com>
7117
7118 PR gdb/24502:
7119 * ui-style.h (skip_ansi_escape): Update comment.
7120 * ui-file.h (class no_terminal_escape_file): New class.
7121 * ui-file.c (no_terminal_escape_file::write)
7122 (no_terminal_escape_file::puts): New methods.
7123 * cli/cli-logging.c (handle_redirections): Use
7124 no_terminal_escape_file.
7125
7126 2019-06-14 Tom Tromey <tromey@adacore.com>
7127
7128 * NEWS: Move convenience variable news above Python news.
7129
7130 2019-06-14 Tom Tromey <tom@tromey.com>
7131
7132 * gnulib: Move directory to top-level.
7133 * configure.ac: Don't configure gnulib.
7134 * configure: Rebuild.
7135 * common/common-defs.h: Use new path to gnulib.
7136 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7137 (GNULIB_H): Remove.
7138 (INCGNU): Look in new gnulib location.
7139 (HFILES_NO_SRCDIR): Remove gnulib files.
7140 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7141 (generated_files): Remove GNULIB_H.
7142 ($(LIBGNU), all-lib): Remove targets.
7143 (distclean): Don't mention GNULIB_BUILDDIR.
7144 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7145
7146 2019-06-14 Tom Tromey <tromey@adacore.com>
7147
7148 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7149 Warn if symbol file does not provide any symbols.
7150
7151 2019-06-14 Tom Tromey <tromey@adacore.com>
7152
7153 * source.c (find_and_open_source): Respect basenames_may_differ.
7154
7155 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * annotate.c (annotate_breakpoints_invalid): Make use of
7158 scoped_restore_terminal_state.
7159 (annotate_frames_invalid): Likewise.
7160
7161 2019-06-14 Tom Tromey <tromey@adacore.com>
7162
7163 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7164 allow assignment to an internalvar.
7165
7166 2019-06-14 Tom Tromey <tromey@adacore.com>
7167
7168 * ada-lex.l: Allow "_" in attribute names.
7169
7170 2019-06-14 Tom Tromey <tromey@adacore.com>
7171
7172 PR gdb/24653:
7173 * regcache.c (registers_changed): Don't call alloca.
7174 * top.c (execute_command): Don't call alloca.
7175
7176 2019-06-13 Pedro Alves <palves@redhat.com>
7177
7178 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7179 'expression'. When parsing an expression, error out if there's
7180 junk after "unlimited".
7181 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7182 (do_set_command): Adjust calls to is_unlimited_literal.
7183
7184 2019-06-13 Pedro Alves <palves@redhat.com>
7185
7186 * compile/compile.c (make_compile_options_def_group): Add braces
7187 around array_view initializer.
7188 * thread.c (make_thread_apply_all_options_def_group)
7189 (make_thread_apply_all_options_def_group): Likewise.
7190
7191 2019-06-13 Pedro Alves <palves@redhat.com>
7192
7193 * NEWS (New commands): Mention "maint test-options
7194 require-delimiter", "maint test-options unknown-is-error", "maint
7195 test-options unknown-is-operand" and "maint show
7196 test-options-completion-result".
7197 (New command options, command completion): New section.
7198 (Completion improvements): New section.
7199 Mention that you can abbreviate "unlimited".
7200
7201 2019-06-13 Pedro Alves <palves@redhat.com>
7202
7203 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7204 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7205 * unittests/cli-utils-selftests.c (test_parse_flags)
7206 (test_parse_flags_qcs): Delete.
7207 (test_cli_utils): Don't call deleted functions.
7208
7209 2019-06-13 Pedro Alves <palves@redhat.com>
7210
7211 * thread.c: Include "cli/cli-option.h".
7212 (tp_array_compar_ascending): Global.
7213 (tp_array_compar): Delete function.
7214 (tp_array_compar_ascending, tp_array_compar_descending): New
7215 functions.
7216 (ascending_option_def, qcs_flag_option_def)
7217 (thr_qcs_flags_option_defs)
7218 (make_thread_apply_all_options_def_group)
7219 (make_thread_apply_options_def_group): New.
7220 (thread_apply_all_command): Use gdb::option::process_options.
7221 (thread_apply_command_completer)
7222 (thread_apply_all_command_completer): New.
7223 (thread_apply_command): Use gdb::option::process_options.
7224 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7225 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7226 to generate help text of "thread apply". Adjust "taas"'s help.
7227 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7228 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7229
7230 2019-06-13 Pedro Alves <palves@redhat.com>
7231
7232 * thread.c (thread_apply_command): Check for invalid TID with
7233 isdigit instead of !isalpha.
7234
7235 2019-06-13 Pedro Alves <palves@redhat.com>
7236
7237 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7238 (validate_flags_qcs): New.
7239 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7240 (validate_flags_qcs): Declare.
7241 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7242 (make_frame_apply_options_def_group): New.
7243 (frame_apply_command_count): Process options with
7244 gdb::option::process_options.
7245 (frame_apply_completer): New.
7246 (frame_apply_level_completer, frame_apply_all_completer)
7247 (frame_apply_completer): New.
7248 (_initialize_stack): Update help of "frame apply", "frame apply
7249 level", "frame apply all" and "faas" to mention supported options
7250 and install command completers.
7251 * stack.h (frame_apply_all_completer): Declare.
7252 * thread.c: Include "stack.h".
7253 (tfaas_command): Add "--".
7254 (_initialize_thread): Update help "tfaas" to mention supported
7255 options and install command completer.
7256
7257 2019-06-13 Pedro Alves <palves@redhat.com>
7258
7259 * completer.c (complete_nested_command_line): New.
7260 (gdb_completion_word_break_characters_throw): Add assertion.
7261 * completer.h (complete_nested_command_line): Declare.
7262
7263 2019-06-13 Pedro Alves <palves@redhat.com>
7264
7265 * stack.c (parse_backtrace_qualifiers): New.
7266 (backtrace_command): Use it.
7267 (backtrace_command_completer): Complete on qualifiers.
7268
7269 2019-06-13 Pedro Alves <palves@redhat.com>
7270
7271 * frame.c: Include "cli/cli-option.h.
7272 (user_set_backtrace_options): New.
7273 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7274 Delete.
7275 (get_prev_frame): Adjust.
7276 (boolean_option_def, uinteger_option_def)
7277 (set_backtrace_option_defs): New.
7278 (_initialize_frame): Adjust and use
7279 gdb::option::add_setshow_cmds_for_options to install "set
7280 backtrace past-main" and "set backtrace past-entry".
7281 * frame.h: Include "cli/cli-option.h".
7282 (struct frame_print_options): Forward declare.
7283 (print_frame_arguments_all, print_frame_arguments_scalars)
7284 (print_frame_arguments_none): Declare.
7285 (print_entry_values): Delete declaration.
7286 (struct frame_print_options, user_frame_print_options): New.
7287 (struct set_backtrace_options): New.
7288 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7289 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7290 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7291 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7292 (list_args_or_locals): Add frame_print_options parameter.
7293 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7294 * python/py-framefilter.c (enumerate_args): Pass down
7295 USER_FRAME_PRINT_OPTIONS.
7296 * stack.c: Include "cli/cli-option.h".
7297 (print_frame_arguments_all, print_frame_arguments_scalars)
7298 (print_frame_arguments_none): Declare.
7299 (print_raw_frame_arguments, print_entry_values): Delete.
7300 (user_frame_print_options): New.
7301 (boolean_option_def, enum_option_def, frame_print_option_defs):
7302 New.
7303 (struct backtrace_cmd_options): New.
7304 (bt_flag_option_def): New.
7305 (backtrace_command_option_defs): New.
7306 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7307 (print_frame_arg, read_frame_arg, print_frame_args)
7308 (print_frame_info, print_frame): Add frame_print_options parameter
7309 and use it.
7310 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7311 (backtrace_command_1): Add frame_print_options and
7312 backtrace_cmd_options parameters and use them.
7313 (make_backtrace_options_def_group): New.
7314 (backtrace_command): Process command options with
7315 gdb::option::process_options.
7316 (backtrace_command_completer): New.
7317 (_initialize_stack): Extend "backtrace"'s help to mention
7318 supported options. Install completer for "backtrace".
7319 Install some settings commands with add_setshow_cmds_for_options.
7320
7321 2019-06-13 Pedro Alves <palves@redhat.com>
7322
7323 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7324 and that "set/show print raw frame-arguments" are now deprecated.
7325
7326 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7327 command.
7328 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7329 * stack.c (_initialize_stack): Install "set/show print
7330 raw-frame-arguments", and deprecate "set/show print raw
7331 frame-arguments".
7332 * valprint.c (_initialize_valprint): Deprecate "set/show print
7333 raw".
7334
7335 2019-06-13 Pedro Alves <palves@redhat.com>
7336
7337 * compile/compile.c (struct compile_options): New.
7338 (compile_flag_option_def, compile_command_option_defs)
7339 (make_compile_options_def_group): New.
7340 (compile_file_command): Handle options with
7341 gdb::option::process_options.
7342 (compile_file_command_completer): New function.
7343 (compile_code_command): Handle options with
7344 gdb::option::process_options.
7345 (compile_code_command_completer): New function.
7346 (_initialize_compiler): Install completers for "compile code" and
7347 "compile file". Mention available options in "compile code" and
7348 "compile code"'s help.
7349 * completer.c (advance_to_completion_word): New, factored out from
7350 ...
7351 (advance_to_expression_complete_word_point): ... this.
7352 (advance_to_filename_complete_word_point): New.
7353 * completer.h (advance_to_filename_complete_word_point): New
7354 declaration.
7355
7356 2019-06-13 Pedro Alves <palves@redhat.com>
7357
7358 * compile/compile.c: Include "cli/cli-option.h".
7359 (compile_print_value): Scope data pointer is now a
7360 value_print_options pointer; adjust.
7361 (compile_print_command): Process options. Scope data pointer is
7362 now a value_print_options pointer; adjust.
7363 (_initialize_compile): Update "compile print"'s help to include
7364 supported options. Install a completer for "compile print".
7365 * cp-valprint.c (show_vtblprint, show_objectprint)
7366 (show_static_field_print): Delete.
7367 (_initialize_cp_valprint): Don't install "set print
7368 static-members", "set print vtbl", "set print object" here.
7369 * printcmd.c: Include "cli/cli-option.h" and
7370 "common/gdb_optional.h".
7371 (print_command_parse_format): Rework to fill in a
7372 value_print_options instead of a format_data.
7373 (print_value): Change parameter type from format_data pointer to
7374 value_print_options reference. Adjust.
7375 (print_command_1): Process options. Adjust to pass down a
7376 value_print_options.
7377 (print_command_completer): New.
7378 (_initialize_printcmd): Install print_command_completer as
7379 handle_brkchars completer for the "print" command. Update
7380 "print"'s help to include supported options.
7381 * valprint.c: Include "cli/cli-option.h".
7382 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7383 here from cp-valprint.c.
7384 (boolean_option_def, uinteger_option_def)
7385 (value_print_option_defs, make_value_print_options_def_group):
7386 New. Use gdb::option::add_setshow_cmds_for_options to install
7387 "set print elements", "set print null-stop", "set print repeats",
7388 "set print pretty", "set print union", "set print array", "set
7389 print address", "set print symbol", "set print array-indexes".
7390 * valprint.h: Include <string> and "cli/cli-option.h".
7391 (make_value_print_options_def_group): Declare.
7392 (print_value): Change parameter type from format_data pointer to
7393 value_print_options reference.
7394 (print_command_completer): Declare.
7395
7396 2019-06-13 Pedro Alves <palves@redhat.com>
7397
7398 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7399 (COMMON_SFILES): Add maint-test-settings.c.
7400 * cli/cli-decode.c (boolean_enums): New global, factored out from
7401 ...
7402 (add_setshow_boolean_cmd): ... here.
7403 * cli/cli-decode.h (boolean_enums): Declare.
7404 * cli/cli-option.c: New file.
7405 * cli/cli-option.h: New file.
7406 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7407 factored out from ...
7408 (parse_cli_boolean_value(const char *)): ... this.
7409 (is_unlimited_literal): Change parameter type to pointer to
7410 pointer. Adjust and advance ARG pointer.
7411 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7412 (parse_cli_var_enum): New, factored out from ...
7413 (do_set_command): ... this. Adjust.
7414 * cli/cli-setshow.h (parse_cli_boolean_value)
7415 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7416 (parse_cli_var_enum): Declare.
7417 * cli/cli-utils.c: Include "cli/cli-option.h".
7418 (get_ulongest): New.
7419 * cli/cli-utils.h (get_ulongest): Declare.
7420 (check_for_argument): New overloads.
7421 * maint-test-options.c: New file.
7422
7423 2019-06-13 Pedro Alves <palves@redhat.com>
7424
7425 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7426 parse a range if "-" is at the end of the string.
7427
7428 2019-06-13 Pedro Alves <palves@redhat.com>
7429
7430 * cli/cli-setshow.c (parse_auto_binary_operation)
7431 (parse_cli_boolean_value): Don't allow "o".
7432
7433 2019-06-13 Pedro Alves <palves@redhat.com>
7434
7435 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7436 * NEWS: Mention maint test-settings KIND.
7437 * maint-test-settings.c: New file.
7438
7439 2019-06-13 Pedro Alves <palves@redhat.com>
7440
7441 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7442 completer.
7443 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7444 "set" completers.
7445
7446 2019-06-13 Pedro Alves <palves@redhat.com>
7447
7448 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7449 after item.
7450
7451 2019-06-13 Pedro Alves <palves@redhat.com>
7452
7453 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7454
7455 2019-06-13 Pedro Alves <palves@redhat.com>
7456
7457 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7458 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7459 call.
7460 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7461 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7462 calls.
7463 (check_for_argument): Skip spaces after argument.
7464
7465 2019-06-13 Pedro Alves <palves@redhat.com>
7466
7467 * thread.c (thread_apply_command): Adjust TID parsing.
7468 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7469 detected before end of string.
7470 (tid_is_in_list): Error out if LIST is invalid.
7471
7472 2019-06-13 Pedro Alves <palves@redhat.com>
7473
7474 * completer.c (complete_line_internal_1): Rewind completion word
7475 point.
7476 (completion_tracker::advance_custom_word_point_by): Change
7477 parameter type to int.
7478 * completer.h (completion_tracker::advance_custom_word_point_by):
7479 Likewise.
7480
7481 2019-06-13 Pedro Alves <palves@redhat.com>
7482
7483 * completer.c (advance_to_completion_word): Handle delimiters.
7484
7485 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7486
7487 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7488
7489 2019-06-11 Tom Tromey <tom@tromey.com>
7490
7491 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7492 (xmalloc_failed): Move to alloc.c.
7493 * alloc.c: New file.
7494 * Makefile.in (COMMON_SFILES): Add alloc.c.
7495
7496 2019-06-11 Tom Tromey <tom@tromey.com>
7497
7498 * nat/linux-waitpid.c: Don't include server.h.
7499 (linux_debug): Remove.
7500 (my_waitpid): Update.
7501
7502 2019-06-11 Tom Tromey <tromey@adacore.com>
7503
7504 * infcall.c (_initialize_infcall): Remove trailing newline from
7505 help.
7506 * user-regs.c (_initialize_user_regs): Remove trailing newline
7507 from help.
7508 * typeprint.c (_initialize_typeprint): Remove trailing newline
7509 from help.
7510 * reverse.c (_initialize_reverse): Remove trailing newlines from
7511 help.
7512 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7513 from help.
7514 * language.c (add_set_language_command): Remove trailing newline
7515 from help.
7516 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7517 help.
7518 * disasm.c (_initialize_disasm): Remove trailing newline from
7519 help.
7520 * top.c (init_main): Remove trailing newline from help.
7521 * interps.c (_initialize_interpreter): Remove trailing newline
7522 from help.
7523 * btrace.c (_initialize_btrace): Remove trailing newlines from
7524 help.
7525 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7526 from help.
7527 * python/python.c (_initialize_python): Remove trailing newline
7528 from help.
7529 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7530 help.
7531 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7532 from help. Reformat some text.
7533 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7534 from help.
7535 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7536 newline from help.
7537
7538 2019-06-11 Tom Tromey <tromey@adacore.com>
7539
7540 * darwin-nat.c (darwin_decode_exception_message)
7541 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7542
7543 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7544
7545 * valops.c (value_slice): Check for not allocated or not
7546 associated values.
7547
7548 2019-06-10 Tom de Vries <tdevries@suse.de>
7549
7550 PR gdb/24618
7551 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7552 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7553 invalid.
7554
7555 2019-06-10 Tom de Vries <tdevries@suse.de>
7556
7557 PR gdb/24611
7558 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7559 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7560
7561 2019-06-10 Tom de Vries <tdevries@suse.de>
7562
7563 PR symtab/24545
7564 * symtab.c (struct demangled_name_entry): Add language field.
7565 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7566 static minimal symbol". Set and use language field.
7567
7568 2019-06-10 Tom Tromey <tromey@adacore.com>
7569
7570 * ada-lang.c (_initialize_ada_language): Update help text.
7571
7572 2019-06-10 Tom Tromey <tromey@adacore.com>
7573
7574 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7575 with a newline.
7576 * guile/guile.c (handle_boot_error): Don't end warning with a
7577 newline.
7578 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7579 warning with a newline.
7580 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7581 newline.
7582 (s12z_frame_cache): Likewise.
7583 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7584 a newline.
7585 * solib-svr4.c (disable_probes_interface): Don't end warning with
7586 a newline.
7587 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7588 newline.
7589 * python/python.c (do_finish_initialization): Don't end warning
7590 with a newline.
7591
7592 2019-06-10 Tom Tromey <tom@tromey.com>
7593
7594 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7595 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7596 gdbpy_enter.
7597
7598 2019-06-10 Tom Tromey <tromey@adacore.com>
7599
7600 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7601 data.
7602 (elf_new_init): Don't call stabsread_new_init.
7603 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7604 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7605 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7606
7607 2019-06-10 Tom de Vries <tdevries@suse.de>
7608
7609 PR symtab/16264
7610 PR symtab/24517
7611 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7612
7613 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7614
7615 * source.c (find_and_open_source): Also rewrite relative file
7616 names.
7617
7618 2019-04-26 Amos Bird <amosbird@gmail.com>
7619
7620 * annotate.c (annotate_thread_exited): Add "thread-exited"
7621 annotation.
7622
7623 2019-06-06 Tom Tromey <tromey@adacore.com>
7624
7625 * maint.h (class scoped_command_stats): Use
7626 DISABLE_COPY_AND_ASSIGN.
7627 <print_time>: New method.
7628 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7629 print_time.
7630 (scoped_command_stats::print_time): New method.
7631
7632 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7633
7634 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7635 instructions of lengths 6 or 8 bytes.
7636
7637 2019-06-04 Pedro Alves <palves@redhat.com>
7638
7639 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7640
7641 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7642 * breakpoint.c (condition_completer): Likewise.
7643 * cli/cli-dump.c (scan_expression): Likewise.
7644 * common/filestuff.c (mkdir_recursive): Likewise.
7645 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7646 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7647 (gdb_abspath): Likewise.
7648 * compile/compile-cplus-types.c
7649 (compile_cplus_instance::decl_name): Likewise.
7650 * completer.c (complete_explicit_location):
7651 (signal_completer, reg_or_group_completer_1): Likewise.
7652 * cp-support.c (cp_remove_params_if_any): Likewise.
7653 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7654 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7655 * infcmd.c (strip_bg_char): Likewise.
7656 * linespec.c (copy_token_string): Likewise.
7657 * mi/mi-main.c (output_cores): Likewise.
7658 * psymtab.c (psymtab_search_name):
7659 * symfile.c (test_set_ext_lang_command): Likewise.
7660 * target.c (target_fileio_read_stralloc): Likewise.
7661 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7662 * value.c (complete_internalvar): Likewise.
7663
7664 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7665
7666 Add objfile property to gdb.Type.
7667 * NEWS: Mention Python API addition.
7668 * python/py-type.c (typy_get_objfile): New method.
7669
7670 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7671
7672 * NEWS: Mention the new set|show style [title|highlight].
7673 Mention changes to "show style", "help" and "apropos".
7674
7675 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7676
7677 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7678 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7679 instead of print_help_for_command.
7680 (print_doc_of_command): New function.
7681 (help_list): Add 'apropos -v word' suggestion.
7682 (print_help_for_command): Style the command name using title style.
7683 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7684 (_initialize_cli_cmds): Describe -v in apropos_command help.
7685
7686 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7687
7688 * cli/cli-style.h (cli_style_option): Add name in constructor,
7689 add m_name class member, add constructor with intensity,
7690 add name class function.
7691 (cli_style_option::add_setshow_commands): Remove name argument.
7692 (highlight_style, title_style): New styles.
7693 * cli/cli-style.c (do_show): New function that shows a style
7694 characteristic styling the style name with itself.
7695 (set_style_name): New function.
7696 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7697 Update all callers according to the changes in cli/cli-style.h.
7698 * utils.h (fputs_highlighted): New function.
7699 * utils.c (fputs_highlighted): Likewise.
7700
7701 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7702
7703 * NEWS: Mention new pipe command and new convenience variables.
7704
7705 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7706
7707 * cli/cli-cmds.c (pipe_command): New function.
7708 (_initialize_cli_cmds): Call add_com for pipe_command.
7709 Define | as an alias for pipe.
7710 (exit_status_set_internal_vars): New function.
7711 (shell_escape): Call exit_status_set_internal_vars.
7712 cli/cli-decode.c (find_command_name_length): Recognize | as
7713 a single character command.
7714
7715 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7716
7717 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7718 top.c (execute_command_to_ui_file): New function, mostly a copy
7719 of execute_command_to_string.
7720 (execute_command_to_string): Implement by calling
7721 execute_command_to_ui_file.
7722
7723 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7724
7725 * top.h (saved_command_line): Remove declaration.
7726 * top.c (previous_saved_command_line, previous_repeat_arguments):
7727 New variables.
7728 (saved_command_line): Make static, define together with other
7729 'repeat variables'.
7730 (dont_repeat): Clear repeat_arguments.
7731 (repeat_previous, get_saved_command_line, save_command_line):
7732 New functions.
7733 (gdb_init): Initialize saved_command_line
7734 and previous_saved_command_line.
7735 * main.c (captured_main_1): Remove saved_command_line initialization.
7736 * event-top.c (handle_line_of_input): Update to use
7737 the new 'repeat' related functions instead of direct access to
7738 saved_command_line.
7739 * command.h (repeat_previous, get_saved_command_line,
7740 save_command_line): New declarations.
7741 (dont_repeat): Add comment.
7742
7743 2019-05-30 Tom Tromey <tromey@adacore.com>
7744
7745 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7746 Fix comment.
7747 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7748
7749 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7750
7751 PR cli/24587
7752 * completer.c (complete): Initialize variable word.
7753
7754 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7755
7756 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7757 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7758 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7759 'body' is NULL to the outter 'if', protecting the '!is_define'
7760 situation as well.
7761
7762 2019-05-29 Tom Tromey <tromey@adacore.com>
7763
7764 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7765 (dwarf_unknown): New function.
7766 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7767 (dwarf_type_encoding_name): Use dwarf_unknown.
7768
7769 2019-05-29 Tom Tromey <tromey@adacore.com>
7770
7771 PR c++/20020:
7772 * cp-valprint.c (cp_print_value_fields): Call
7773 cp_print_static_field inside "try".
7774
7775 2019-05-29 Tom Tromey <tromey@adacore.com>
7776
7777 * inflow.c (struct terminal_info): Add default operator=.
7778 * configure: Rebuild.
7779 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7780 -Wdeprecated-copy-dtor, -Wredundant-move.
7781
7782 2019-05-29 Tom Tromey <tromey@adacore.com>
7783
7784 * NEWS: Add entry.
7785 * infcmd.c (print_return_value_1): Handle finish_print
7786 option.
7787 (show_print_finish): New function.
7788 (_initialize_infcmd): Add "set/show print finish" commands.
7789 * valprint.c (user_print_options): Initialize new member.
7790 * valprint.h (struct value_print_options) <finish_print>: New
7791 member.
7792
7793 2019-05-28 Tom Tromey <tromey@adacore.com>
7794
7795 * ada-lang.c (ada_remove_Xbn_suffix)
7796 (find_old_style_renaming_symbol)
7797 (parse_old_style_renaming): Remove.
7798 (ada_find_renaming_symbol): Don't call
7799 find_old_style_renaming_symbol.
7800 (ada_is_renaming_symbol): Rename from
7801 ada_find_renaming_symbol. Remove "block" parameter. Return
7802 bool. Now static.
7803 (ada_read_var_value): Update and simplify.
7804 * ada-exp.y (write_var_or_type): Remove old code.
7805
7806 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7807
7808 PR gdb/25010
7809 * event-top.c: Remove include comment.
7810 * inflow.c (class scoped_ignore_sigttou): Move from here...
7811 * inflow.h (class scoped_ignore_sigttou): ...to here.
7812 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7813 * top.c: Remove include comment.
7814
7815 2019-05-27 Tom Tromey <tom@tromey.com>
7816
7817 * NEWS: Fix typo.
7818
7819 2019-05-22 Tom Tromey <tromey@adacore.com>
7820
7821 * target.c (target_follow_exec): Constify parameter.
7822 * target-delegates.c: Rebuild.
7823 * remote.c (remote_target::follow_exec): Constify parameter.
7824 * infrun.c (follow_exec): Constify parameter.
7825 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7826 (target_follow_exec): Likewise.
7827
7828 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7829
7830 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7831 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7832
7833 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7834
7835 * NEWS: Add debugredirect and testsuite sections.
7836
7837 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7838
7839 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7840 target descriptions using exclusively floating point register name
7841 aliases.
7842
7843 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 PR gdb/18644:
7846 * f-lang.c (build_fortran_types): Handle the case where
7847 gdbarch_floatformat_for_type returns a nullptr.
7848
7849 2019-05-21 Tom de Vries <tdevries@suse.de>
7850
7851 PR cli/24587
7852 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7853
7854 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 PR gdb/18644:
7857 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7858 16-byte floats.
7859 * i386-tdep.c (i386_floatformat_for_type): Use
7860 floatformats_ia64_quad for the 16-byte floating point component
7861 within a fortran 32-byte complex number.
7862
7863 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7864
7865 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7866 delete default constructor.
7867 (find_partial_die): Update to return const struct.
7868 (partial_die_parent_scope): Move variable declaration into scope
7869 of its use and change its type to auto.
7870 (guess_partial_die_structure_name): Likewise.
7871 (partial_die_info::fixup): Likewise.
7872
7873 2019-05-17 Tom Tromey <tromey@adacore.com>
7874
7875 * source.c (find_and_open_source): Remove cast.
7876
7877 2019-05-17 Tom Tromey <tromey@adacore.com>
7878
7879 * annotate.c (annotate_source): Make "filename" const.
7880 * annotate.h (annotate_source): Use const.
7881
7882 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7883
7884 * disasm.c (set_disassembler_options): Send errors to stderr.
7885
7886 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7887
7888 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7889 (cli_interp_base::set_logging): Check debug_redirect.
7890 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7891 * cli/cli-logging.c (debug_redirect): Add static variable.
7892 (pop_output_files): Add default param.
7893 (handle_redirections): Print debug setting.
7894 (show_logging_command): Likewise.
7895 (_initialize_cli_logging): Add debugredirect command.
7896 * interps.c (current_interp_set_logging): Add debug_redirect
7897 parameter.
7898 * interps.h (set_logging): Add debug_redirect parameter.
7899 (current_interp_set_logging): Likewise.
7900 * mi/mi-common.h: Likewise.
7901 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7902
7903 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7904 Tom Tromey <tromey@adacore.com>
7905
7906 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7907 directly.
7908 * cli/cli-interp.h (make_logging_output): Remove declaration.
7909 * cli/cli-logging.c (make_logging_output): Remove function.
7910 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7911 directly.
7912 * ui-file.c (tee_file::tee_file): Remove bools.
7913 (tee_file::~tee_file): Remove deletes.
7914 * ui-file.h (tee_file): Remove bools.
7915
7916 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7917
7918 * mi/mi-cmds.h (mi_cmd_complete): New function.
7919 * mi/mi-main.c (mi_cmd_complete): Likewise.
7920 * mi/mi-cmds.c: Define new MI command -complete.
7921 * NEWS: Mention new -complete command.
7922
7923 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7924
7925 * completer.h (complete): New function.
7926 * completer.c (complete): Likewise.
7927 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7928 function defined in completer.h.
7929
7930 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7931
7932 * MAINTAINERS (Write After Approval): Add myself.
7933
7934 2019-05-17 Tom de Vries <tdevries@suse.de>
7935
7936 PR gdb/24094
7937 * dwarf2read.c (struct cu_partial_die_info): New struct.
7938 (find_partial_die): Return cu_partial_die_info.
7939 (partial_die_parent_scope, guess_partial_die_structure_name)
7940 (partial_die_info::fixup): Handle new return type of find_partial_die.
7941
7942 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7943
7944 PR breakpoints/24541
7945 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7946 "std::string", simplifying the algorithm.
7947
7948 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7949
7950 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7951 (stap_static_probe_ops::get_probes): Likewise.
7952
7953 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7954
7955 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7956 '-')" and "else if".
7957 (stap_parse_single_operand): Join checks for
7958 "gdbarch_stap_parse_special_token_p" and
7959 "gdbarch_stap_parse_special_token" in the same "if" statement.
7960 Invert check when verifying for operation on register
7961 displacement.
7962
7963 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7964
7965 * stap-probe.c (stap_get_opcode): Update comment.
7966 (stap_get_expected_argument_type): Likewise.
7967 (handle_stap_probe): Likewise.
7968
7969 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7970
7971 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7972 return type to 'bool'. Adjust comment. Use 'bool' when
7973 appropriate.
7974 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7975 * stap-probe.c (stap_parse_argument_1): Likewise.
7976 (stap_is_operator): Likewise.
7977 (stap_is_generic_prefix): Likewise.
7978 (stap_is_register_prefix): Likewise.
7979 (stap_is_register_indirection_prefix): Likewise.
7980 (stap_is_integer_prefix): Likewise.
7981 (stap_generic_check_suffix): Likewise.
7982 (stap_check_integer_suffix): Likewise.
7983 (stap_check_register_suffix): Likewise.
7984 (stap_check_register_indirection_suffix): Likewise.
7985 (stap_parse_register_operand): Likewise.
7986 (stap_parse_single_operand): Likewise.
7987 (stap_parse_argument_1): Likewise.
7988 (stap_probe::get_argument_count): Likewise.
7989 (stap_is_operator): Likewise.
7990
7991 2019-05-16 Tom Tromey <tromey@adacore.com>
7992
7993 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7994 keyword to foreach.
7995
7996 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * linux-thread-db.c (try_thread_db_load_1): Change return type
7999 to bool.
8000 (try_thread_db_load): Likewise.
8001 (try_thread_db_load_from_pdir_1): Likewise.
8002 (try_thread_db_load_from_pdir): Likewise.
8003 (try_thread_db_load_from_sdir): Likewise.
8004 (try_thread_db_load_from_dir): Likewise.
8005 (thread_db_load_search): Likewise.
8006 (has_libpthread): Likewise.
8007 (thread_db_load): Likewise.
8008
8009 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8010
8011 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8012 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8013 NULL, and complain/return if that's the case.
8014
8015 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8016
8017 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8018 (advance, posn, abstract_read_memory): New functions.
8019 [struct mem_read_abstraction]: New struct.
8020 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8021
8022 2019-05-14 Tom Tromey <tromey@adacore.com>
8023
8024 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8025 value is not lval_memory.
8026
8027 2019-05-14 Tom Tromey <tromey@adacore.com>
8028
8029 * solib.c (info_sharedlibrary_command): Style the file name.
8030
8031 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8032
8033 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8034 (aarch64_vnv_type): Likewise.
8035 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8036 * common/tdesc.c: Likewise.
8037 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8038 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8039 * features/aarch64-fpu.xml: Add ieee half view.
8040 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8041 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8042 * gdbtypes.h (struct builtin_type): Likewise.
8043 (struct objfile_type): Likewise.
8044
8045 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8046
8047 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8048 typo.
8049 * location.h (string_to_event_location): Likewise.
8050
8051 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8052
8053 GDB 8.3 released.
8054
8055 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8056
8057 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8058 New variable declaration.
8059 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8060 New variable.
8061 (print_one_breakpoint): Use ui_out::test_flags and new global
8062 variable to compute use_fixed_output.
8063 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8064 Remove.
8065 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8066 (mi_multi_location_breakpoint_output_fixed): Remove.
8067 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8068 new variable.
8069 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8070 fix_multi_location_breakpoint_output flag if version >= 3.
8071 * ui-out.h (enum ui_out_flag)
8072 <fix_multi_location_breakpoint_output>: New enumerator.
8073
8074 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8077
8078 2019-05-10 Tom Tromey <tromey@adacore.com>
8079
8080 * ada-lang.c (catch_ada_completer): New function.
8081 (_initialize_ada_language): Use it.
8082
8083 2019-05-10 Tom Tromey <tromey@adacore.com>
8084
8085 * thread.c (print_thread_info): Make "requested_threads" const.
8086 * gdbthread.h (print_thread_info): Make "requested_threads"
8087 const.
8088 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8089 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8090
8091 2019-05-08 Tom Tromey <tom@tromey.com>
8092
8093 * gdbtypes.c (objfile_type_data): Change type.
8094 (objfile_type, _initialize_gdbtypes): Update.
8095
8096 2019-05-08 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8099 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8100 (_initialize_dwarf2_frame): Update.
8101
8102 2019-05-08 Tom Tromey <tom@tromey.com>
8103
8104 * objc-lang.c (objc_objfile_data): Change type.
8105 (find_methods): Update.
8106 (_initialize_objc_lang): Remove.
8107
8108 2019-05-08 Tom Tromey <tom@tromey.com>
8109
8110 * stabsread.c (rs6000_builtin_type_data): Change type.
8111 (rs6000_builtin_type, _initialize_stabsread): Update.
8112
8113 2019-05-08 Tom Tromey <tom@tromey.com>
8114
8115 * mips-tdep.c (mips_pdr_data): Remove.
8116 (_initialize_mips_tdep): Update.
8117
8118 2019-05-08 Tom Tromey <tom@tromey.com>
8119
8120 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8121 (hppa_init_objfile_priv_data, read_unwind_info)
8122 (find_unwind_entry, _initialize_hppa_tdep): Update.
8123
8124 2019-05-08 Tom Tromey <tom@tromey.com>
8125
8126 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8127 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8128 on obstack.
8129 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8130
8131 2019-05-08 Tom Tromey <tom@tromey.com>
8132
8133 * mdebugread.c (basic_type_data): Change type.
8134 (basic_type, _initialize_mdebugread): Update.
8135
8136 2019-05-08 Tom Tromey <tom@tromey.com>
8137
8138 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8139
8140 2019-05-08 Tom Tromey <tom@tromey.com>
8141
8142 * nto-tdep.c (nto_inferior_data_reg): Change type.
8143 (nto_inferior_data): Update.
8144 (nto_inferior_data_cleanup, nto_new_inferior_data)
8145 (_initialize_nto_tdep): Remove.
8146 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8147
8148 2019-05-08 Tom Tromey <tom@tromey.com>
8149
8150 * ada-lang.c (struct ada_inferior_data): Add initializers.
8151 (ada_inferior_data): Change type.
8152 (ada_inferior_data_cleanup): Remove.
8153 (get_ada_inferior_data, ada_inferior_exit)
8154 (struct ada_pspace_data): Add initializers, destructor.
8155 (ada_pspace_data_handle): Change type.
8156 (get_ada_pspace_data): Update.
8157 (ada_pspace_data_cleanup): Remove.
8158
8159 2019-05-08 Tom Tromey <tom@tromey.com>
8160
8161 * coffread.c (struct coff_symfile_info): Add initializers.
8162 (coff_objfile_data_key): Move lower. Change type.
8163 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8164 Update.
8165 (coff_free_info): Remove.
8166
8167 2019-05-08 Tom Tromey <tom@tromey.com>
8168
8169 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8170 (fbsd_pspace_data_handle): Move lower. Change type.
8171 (get_fbsd_pspace_data): Update.
8172 (fbsd_pspace_data_cleanup): Remove.
8173 (_initialize_fbsd_tdep): Update.
8174
8175 2019-05-08 Tom Tromey <tom@tromey.com>
8176
8177 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8178 (get_ada_tasks_pspace_data): Update.
8179 (ada_tasks_pspace_data_cleanup): Remove.
8180 (_initialize_tasks): Update.
8181 (ada_tasks_inferior_data_handle): Change type.
8182 (get_ada_tasks_inferior_data): Update.
8183 (ada_tasks_inferior_data_cleanup): Remove.
8184 (struct ada_tasks_pspace_data): Add initializers.
8185
8186 2019-05-08 Tom Tromey <tom@tromey.com>
8187
8188 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8189 * symfile-debug.c (debug_sym_get_probes): Change type.
8190 * stap-probe.c (handle_stap_probe):
8191 (stap_static_probe_ops::get_probes): Change type.
8192 * probe.h (class static_probe_ops) <get_probes>: Change type.
8193 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8194 (parse_probes_in_pspace): Update.
8195 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8196 Update.
8197 (any_static_probe_ops::get_probes): Change type.
8198 * elfread.c (elfread_data): New typedef.
8199 (probe_key): Change type.
8200 (elf_get_probes): Likewise. Update.
8201 (probe_key_free): Remove.
8202 (_initialize_elfread): Update.
8203 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8204 Change type.
8205 (dtrace_process_dof_probe, dtrace_process_dof)
8206 (dtrace_static_probe_ops::get_probe): Change type.
8207
8208 2019-05-08 Tom Tromey <tom@tromey.com>
8209
8210 * xcoffread.c (struct xcoff_symfile_info): Rename from
8211 coff_symfile_info. Add initializers.
8212 (xcoff_objfile_data_key): Move lower. Change type.
8213 (XCOFF_DATA): Rewrite.
8214 (xcoff_free_info): Remove.
8215 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8216 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8217 (xcoff_initial_scan): Update.
8218
8219 2019-05-08 Tom Tromey <tom@tromey.com>
8220
8221 * solib-svr4.c (struct svr4_info): Add initializers and
8222 destructor.
8223 <probes_table>: Now an htab_up.
8224 (solib_svr4_pspace_data): Change type.
8225 (free_probes_table): Simplify.
8226 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8227 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8228 (probes_table_remove_objfile_probes, register_solib_event_probe)
8229 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8230 (_initialize_svr4_solib): Update.
8231
8232 2019-05-08 Tom Tromey <tom@tromey.com>
8233
8234 * remote.c (remote_pspace_data): Change type.
8235 (remote_pspace_data_cleanup): Remove.
8236 (get_remote_exec_file, set_pspace_remote_exec_file)
8237 (_initialize_remote): Update.
8238
8239 2019-05-08 Tom Tromey <tom@tromey.com>
8240
8241 * breakpoint.c (breakpoint_objfile_key): Change type.
8242 (get_breakpoint_objfile_data): Update.
8243 (free_breakpoint_objfile_data): Remove.
8244 (_initialize_breakpoint): Update.
8245
8246 2019-05-08 Tom Tromey <tom@tromey.com>
8247
8248 * linux-tdep.c (struct linux_info): Add initializers.
8249 (linux_inferior_data): Move. Change type.
8250 (invalidate_linux_cache_inf): Update.
8251 (linux_inferior_data_cleanup): Remove.
8252 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8253
8254 2019-05-08 Tom Tromey <tom@tromey.com>
8255
8256 * auxv.c (auxv_inferior_data): Move. Change type.
8257 (auxv_inferior_data_cleanup): Remove.
8258 (invalidate_auxv_cache_inf): Rewrite.
8259 (get_auxv_inferior_data, _initialize_auxv): Update.
8260
8261 2019-05-08 Tom Tromey <tom@tromey.com>
8262
8263 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8264 (symfile_debug_objfile_data_key): Change type.
8265 (symfile_debug_installed, debug_qf_has_symbols)
8266 (debug_qf_find_last_source_symtab)
8267 (debug_qf_forget_cached_source_info)
8268 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8269 (debug_qf_print_stats, debug_qf_dump)
8270 (debug_qf_expand_symtabs_for_function)
8271 (debug_qf_expand_all_symtabs)
8272 (debug_qf_expand_symtabs_with_fullname)
8273 (debug_qf_map_matching_symbols)
8274 (debug_qf_expand_symtabs_matching)
8275 (debug_qf_find_pc_sect_compunit_symtab)
8276 (debug_qf_map_symbol_filenames)
8277 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8278 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8279 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8280 (debug_sym_read_linetable, debug_sym_relocate): Update.
8281 (symfile_debug_free_objfile): Remove.
8282 (install_symfile_debug_logging, _initialize_symfile_debug):
8283 Update.
8284
8285 2019-05-08 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8288 allocate_on_obstack.
8289 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8290 (get_dwarf2_per_objfile): Update.
8291 (set_dwarf2_per_objfile): Remove.
8292 (dwarf2_has_info, dwarf2_get_section_info): Update.
8293 (dwarf2_free_objfile): Remove.
8294 (_initialize_dwarf2_read): Update.
8295
8296 2019-05-08 Tom Tromey <tom@tromey.com>
8297
8298 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8299 initializers.
8300 <unsupported_script_warning_printed,
8301 script_not_found_warning_printed>: Now bool.
8302 (auto_load_pspace_data): Change type.
8303 (~auto_load_pspace_info): Rename from
8304 auto_load_pspace_data_cleanup.
8305 (get_auto_load_pspace_data, init_loaded_scripts_info)
8306 (clear_section_scripts, maybe_print_unsupported_script_warning)
8307 (maybe_print_script_not_found_warning, _initialize_auto_load):
8308 Update.
8309
8310 2019-05-08 Tom Tromey <tom@tromey.com>
8311
8312 * objfiles.c (objfile_pspace_info): Add destructor and
8313 initializers.
8314 (objfiles_pspace_data): Change type.
8315 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8316 (get_objfile_pspace_data): Update.
8317 (objfiles_bfd_data): Change type.
8318 (get_objfile_bfd_data): Update.
8319 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8320
8321 2019-05-08 Tom Tromey <tom@tromey.com>
8322
8323 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8324 Change type.
8325 (get_catch_syscall_inferior_data): Update.
8326 (catch_syscall_inferior_data_cleanup): Remove.
8327 (_initialize_break_catch_syscall): Update.
8328
8329 2019-05-08 Tom Tromey <tom@tromey.com>
8330
8331 * inflow.c (struct terminal_info): Add destructor and
8332 initializers.
8333 (inflow_inferior_data): Change type.
8334 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8335 (get_inflow_inferior_data, inflow_inferior_exit)
8336 (swap_terminal_info, _initialize_inflow): Update.
8337
8338 2019-05-08 Tom Tromey <tom@tromey.com>
8339
8340 * target-dcache.c (target_dcache_cleanup): Remove.
8341 (target_dcache_aspace_key): Change type.
8342 (target_dcache_init_p, target_dcache_invalidate)
8343 (target_dcache_get, target_dcache_get_or_init)
8344 (_initialize_target_dcache): Update.
8345 * dcache.h (struct dcache_deleter): New.
8346
8347 2019-05-08 Tom Tromey <tom@tromey.com>
8348
8349 * symtab.c (struct symbol_cache): Add destructor and
8350 initializers.
8351 (symbol_cache_key): Move. Change type.
8352 (make_symbol_cache, free_symbol_cache): Remove.
8353 (get_symbol_cache): Update.
8354 (symbol_cache_cleanup): Remove.
8355 (ALL_PSPACES, symbol_cache_flush)
8356 (maintenance_print_symbol_cache)
8357 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8358 Update.
8359
8360 2019-05-08 Tom Tromey <tom@tromey.com>
8361
8362 * symtab.c (struct main_info): Add destructor and initializers.
8363 (main_progspace_key): Move. Change type.
8364 (get_main_info): Update.
8365 (main_info_cleanup): Remove.
8366 (_initialize_symtab): Update.
8367
8368 2019-05-08 Tom Tromey <tom@tromey.com>
8369
8370 * registry.h (DECLARE_REGISTRY): Define the _key class.
8371
8372 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8373
8374 * NEWS: Merge two 'New commands' sections.
8375
8376 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8377
8378 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8379 parameter and use Ada language definition instead.
8380 (ada_val_print_ptr): Remove unused language parameter.
8381 (ada_val_print_num): Remove language parameter and use Ada language
8382 definition instead.
8383 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8384 parameter.
8385 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8386 parameter and use Ada language definition instead.
8387 (ada_val_print_1): Update all ada_val_print_xxx calls.
8388 Remove language parameter.
8389 (ada_val_print): Update ada_val_print_1 call.
8390
8391 2019-05-08 Tom Tromey <tromey@adacore.com>
8392
8393 * remote.c (remote_hw_watchpoint_limit)
8394 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8395 Now static.
8396
8397 2019-05-08 Tom Tromey <tromey@adacore.com>
8398
8399 * maint.c (_initialize_maint_cmds): Move initialization code to
8400 remote.c.
8401 (watchdog, show_watchdog): Move to remote.c.
8402 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8403 "watchdog" static.
8404 (_initialize_remote): Move initialization code from maint.c.
8405 * defs.h (watchdog): Don't declare.
8406
8407 2019-05-08 Tom Tromey <tromey@adacore.com>
8408
8409 * tui/tui-interp.c: Include main.h.
8410 * interps.c: Include main.h.
8411 * main.h (interpreter_p): Declare.
8412 * defs.h (interpreter_p): Don't declare.
8413
8414 2019-05-08 Tom Tromey <tromey@adacore.com>
8415
8416 * dwarf2loc.c: Include dwarf2read.h.
8417 * defs.h (read_unsigned_leb128): Don't declare.
8418 * dwarf2read.h (read_unsigned_leb128): Declare.
8419
8420 2019-05-08 Tom Tromey <tromey@adacore.com>
8421
8422 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8423 method.
8424
8425 2019-05-08 Tom Tromey <tromey@adacore.com>
8426
8427 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8428 when no wrap column is set.
8429
8430 2019-05-08 Tom Tromey <tromey@adacore.com>
8431
8432 * c-lang.c (c_get_string): Handle non-C-style arrays.
8433
8434 2019-05-08 Tom Tromey <tromey@adacore.com>
8435
8436 * typeprint.c (print_offset_data::update): Print the bit offset,
8437 not the number of bits remaining.
8438
8439 2019-05-08 Tom Tromey <tromey@adacore.com>
8440
8441 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8442 padding at end of comment.
8443
8444 2019-05-08 Tom Tromey <tromey@adacore.com>
8445
8446 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8447 Compare main types.
8448
8449 2019-05-06 Tom Tromey <tom@tromey.com>
8450
8451 * common/scoped_mmap.c: Include common-defs.h.
8452 * common/scoped_mmap.h: Don't include config.h.
8453
8454 2019-05-04 Tom Tromey <tom@tromey.com>
8455
8456 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8457 (struct aarch64_call_info): Add initializers.
8458 <si>: Now a std::vector.
8459 (pass_on_stack, aarch64_push_dummy_call): Update.
8460
8461 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8462 Tom Tromey <tom@tromey.com>
8463
8464 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8465 (ppc_threads): Now a std::vector. Now static.
8466 (hwdebug_find_thread_points_by_tid)
8467 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8468 Update.
8469
8470 2019-05-04 Tom Tromey <tom@tromey.com>
8471
8472 * arc-tdep.c (arc_tdesc_init): Return bool.
8473
8474 2019-05-04 Tom Tromey <tom@tromey.com>
8475
8476 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8477 Use gdb_assert_not_reached.
8478
8479 2019-05-04 Tom Tromey <tom@tromey.com>
8480
8481 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8482 "false".
8483
8484 2019-05-04 Tom Tromey <tom@tromey.com>
8485
8486 * arc-tdep.c (arc_tdesc_init): Use bool.
8487
8488 2019-05-04 Tom Tromey <tom@tromey.com>
8489
8490 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8491
8492 2019-05-04 Tom Tromey <tom@tromey.com>
8493
8494 * cli/cli-cmds.c (valid_command_p): Return bool.
8495
8496 2019-05-04 Tom Tromey <tom@tromey.com>
8497
8498 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8499 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8500
8501 2019-05-04 Raul Tambre <raul@tambre.ee>
8502
8503 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8504 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8505 operator for comparison.
8506
8507 2019-05-04 Tom Tromey <tom@tromey.com>
8508
8509 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8510 (lookup_partial_symbol, print_partial_symbols)
8511 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8512 (psymbol_compare): Update.
8513 (add_psymbol_to_bcache): Clear the entire psymbol.
8514 (maintenance_check_psymtabs): Update.
8515 * psympriv.h (struct partial_symbol): Don't derive from
8516 general_symbol_info.
8517 <obj_section, unrelocated_address, address,
8518 set_unrelocated_address>: Update.
8519 <ginfo>: New member.
8520 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8521 (debug_names::write_psymbols): Update.
8522
8523 2019-05-04 Tom de Vries <tdevries@suse.de>
8524
8525 * contrib/cc-with-tweaks.sh: Support -n arg.
8526
8527 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8528
8529 * corelow.c (core_target::detach): Ensure frame cache and
8530 register caches are cleared.
8531 inferior.c (exit_inferior_1): Likewise.
8532
8533 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8534 Tom Tromey <tom@tromey.com>
8535
8536 * dictionary.c (collate_pending_symbols_by_language): Remove
8537 "struct" from foreach.
8538 * symtab.c (lookup_global_symbol_from_objfile)
8539 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8540 foreach.
8541 * ser-tcp.c (net_open): Remove "struct" from foreach.
8542 * objfiles.c (objfile_relocate, objfile_rebase)
8543 (objfile_has_symbols): Remove "struct" from foreach.
8544 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8545 from foreach.
8546 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8547 foreach.
8548 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8549 "struct" from foreach.
8550 * ada-lang.c (create_excep_cond_exprs)
8551 (ada_exception_catchpoint_cond_string): Remove "struct" from
8552 foreach.
8553
8554 2019-05-03 Tom Tromey <tromey@adacore.com>
8555
8556 * ada-exp.y (convert_char_literal): Check suffix of each
8557 enumerator.
8558
8559 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8560
8561 PR ada/21406:
8562 * ada-exp.y (yywrap): Don't define.
8563 * ada-lex.l (%option): Add noyywrap
8564 (yywrap): Remove.
8565
8566 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8567
8568 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8569 _WIN32_WINNT to the XP level, unless already defined to a higher
8570 level.
8571
8572 * unittests/parse-connection-spec-selftests.c:
8573 * ser-tcp.c:
8574 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8575 override.
8576
8577 * symfile.c (find_separate_debug_file): Remove colon from the
8578 drive spec of DOS/Windows file names of the target, so that the
8579 file name produced from DEBUGDIR and the target's directory will
8580 be valid on DOS/Windows systems.
8581
8582 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * rust-lang.c (val_print_struct): Handle printing structures
8585 containing strings.
8586
8587 2019-05-02 Tom Tromey <tromey@adacore.com>
8588
8589 * valarith.c (_initialize_valarith): Remove.
8590
8591 2019-05-01 Tom Tromey <tromey@adacore.com>
8592
8593 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8594 bitfields.
8595
8596 2019-05-01 Tom Tromey <tromey@adacore.com>
8597
8598 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8599 for big-endian copies.
8600
8601 2019-04-30 Ali Tamur <tamur@google.com>
8602 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8603 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8604 (read_3_bytes): New function.
8605
8606 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8607
8608 * windows-nat.c (main_thread_id): Delete.
8609 (handle_output_debug_string): Replace main_thread_id by
8610 current_event.dwThreadId.
8611 (fake_create_process): Likewise.
8612 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8613 Do not set main_thread_id.
8614 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8615 current_event.dwThreadId.
8616 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8617
8618 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8619
8620 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8621 Use current_event.dwThreadId instead of main_thread_id.
8622
8623 2019-04-30 Tom Tromey <tromey@adacore.com>
8624
8625 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8626 (create_excep_cond_exprs): Iterate over program spaces.
8627 (ada_exception_catchpoint_cond_string): Examine all minimal
8628 symbols for exception types.
8629
8630 2019-04-30 Tom Tromey <tromey@adacore.com>
8631
8632 PR c++/24470:
8633 * dwarf2read.c (process_structure_scope): Handle case where type
8634 has template parameters but no symbol was created.
8635
8636 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8637 Chris January <chris.january@arm.com>
8638
8639 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8640 qualifier.
8641 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8642
8643 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * f-typeprint.c (f_print_type): Update rules for printing
8646 whitespace.
8647 (f_type_print_varspec_suffix): Likewise.
8648
8649 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8650 Chris January <chris.january@arm.com>
8651
8652 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8653 function arguments.
8654
8655 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8656
8657 * f-lang.c (build_fortran_types): Change name of void type to
8658 lower case.
8659 * f-typeprint.c (f_type_print_base): Print the name of the void
8660 type, rather than a fixed string.
8661 * f-valprint.c (f_decorations): Use lower case void string.
8662
8663 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8664 Chris January <chris.january@arm.com>
8665
8666 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8667 types for Fortran.
8668
8669 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8670 Chris January <chris.january@arm.com>
8671 David Lecomber <david.lecomber@arm.com>
8672
8673 * f-exp.y (BINOP_INTRINSIC): New token.
8674 (exp): New parser rule handling BINOP_INTRINSIC.
8675 (f77_keywords): Add new builtin procedures.
8676 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8677 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8678 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8679 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8680 (print_unop_subexp_f): New function.
8681 (print_binop_subexp_f): New function.
8682 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8683 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8684 (dump_subexp_body_f): Likewise.
8685 (operator_check_f): Likewise.
8686 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8687 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8688
8689 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8692 UNOP_KIND.
8693 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8694 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8695 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8696 (operator_length_f): New fuction.
8697 (print_subexp_f): New function.
8698 (op_name_f): New function.
8699 (dump_subexp_body_f): New function.
8700 (operator_check_f): New function.
8701 (exp_descriptor_f): Replace standard expression handling functions
8702 with new functions.
8703 * gdb/fortran-operator.def: New file.
8704 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8705 * gdb/std-operator.def: Remove UNOP_KIND.
8706
8707 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * std-operator.def: Remove unbalanced, stray double quote
8710 character.
8711
8712 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8713 Chris January <chris.january@arm.com>
8714 Daniel Everett <daniel.everett@arm.com>
8715 Nick Forrington <nick.forrington@arm.com>
8716 Richard Bunt <richard.bunt@arm.com>
8717
8718 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8719 of depth when printing anonymous structs or unions.
8720 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8721 Don't print either the top-level value, or the children if the
8722 max-depth is exceeded.
8723 (ppscm_print_children): When printing the key of a map, allow one
8724 extra level of depth.
8725 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8726 print either the top-level value, or the children if the max-depth
8727 is exceeded.
8728 (print_children): When printing the key of a map, allow one extra
8729 level of depth.
8730 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8731 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8732 (user_print_options): Initialise max_depth field.
8733 (val_print_scalar_or_string_type_p): New function.
8734 (val_print): Check to see if the max depth has been reached.
8735 (val_print_check_max_depth): Define new function.
8736 (show_print_max_depth): New function.
8737 (_initialize_valprint): Add 'print max-depth' option.
8738 * valprint.h (struct value_print_options) <max_depth>: New field.
8739 (val_print_check_max_depth): Declare new function.
8740 * NEWS: Document new feature.
8741
8742 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * ada-lang.c (ada_language_defn): Initialise new field.
8745 * c-lang.c (c_is_string_type_p): New function.
8746 (c_language_defn): Initialise new field.
8747 (cplus_language_defn): Initialise new field.
8748 (asm_language_defn): Initialise new field.
8749 (minimal_language_defn): Initialise new field.
8750 * c-lang.h (c_is_string_type_p): Declare new function.
8751 * d-lang.c (d_language_defn): Initialise new field.
8752 * f-lang.c (f_is_string_type_p): New function.
8753 (f_language_defn): Initialise new field.
8754 * go-lang.c (go_is_string_type_p): New function.
8755 (go_language_defn): Initialise new field.
8756 * language.c (default_is_string_type_p): New function.
8757 (unknown_language_defn): Initialise new field.
8758 (auto_language_defn): Initialise new field.
8759 * language.h (struct language_defn) <la_is_string_type_p>: New
8760 member variable.
8761 (default_is_string_type_p): Declare new function.
8762 * m2-lang.c (m2_language_defn): Initialise new field.
8763 * objc-lang.c (objc_language_defn): Initialise new field.
8764 * opencl-lang.c (opencl_language_defn): Initialise new field.
8765 * p-lang.c (pascal_is_string_type_p): New function.
8766 (pascal_language_defn): Initialise new field.
8767 * rust-lang.c (rust_is_string_type_p): New function.
8768 (rust_language_defn): Initialise new field.
8769
8770 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8773 New field.
8774 * ada-lang.c (ada_language_defn): Initialise new field.
8775 * c-lang.c (c_language_defn): Likewise.
8776 (cplus_language_defn): Likewise.
8777 (asm_language_defn): Likewise.
8778 (minimal_language_defn): Likewise.
8779 * d-lang.c (d_language_defn): Likewise.
8780 * f-lang.c (f_language_defn): Likewise.
8781 * go-lang.c (go_language_defn): Likewise.
8782 * language.c (unknown_language_defn): Likewise.
8783 (auto_language_defn): Likewise.
8784 * m2-lang.c (m2_language_defn): Likewise.
8785 * objc-lang.c (objc_language_defn): Likewise.
8786 * opencl-lang.c (opencl_language_defn): Likewise.
8787 * p-lang.c (pascal_language_defn): Likewise.
8788 * rust-lang.c (rust_language_defn): Likewise.
8789
8790 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * ada-lang.c (ada_is_character_type): Change return type to bool.
8793 (ada_is_string_type): Likewise.
8794 * ada-lang.h (ada_is_character_type): Update declaration
8795 (ada_is_string_type): Likewise.
8796
8797 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8798
8799 Support style in 'frame|thread apply'
8800
8801 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8802 * record.c (record_start, record_stop): Update callers of
8803 execute_command_to_string with false.
8804 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8805 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8806 methods.
8807 (class string_file): New constructor with term_out parameter.
8808 Override methods term_out and can_emit_style_escape. New member
8809 term_out.
8810 (class stdio_file): Override can_emit_style_escape.
8811 (class tee_file): Override term_out and can_emit_style_escape.
8812 * utils.h (can_emit_style_escape): Remove.
8813 * utils.c (can_emit_style_escape): Likewise.
8814 Update all callers of can_emit_style_escape (SOMESTREAM) to
8815 SOMESTREAM->can_emit_style_escape.
8816 * source-cache.c (source_cache::get_source_lines): Likewise.
8817 * stack.c (frame_apply_command_count): Call execute_command_to_string
8818 passing the term_out characteristic of the current gdb_stdout.
8819 * thread.c (thr_try_catch_cmd): Likewise.
8820 * top.c (execute_command_to_string): pass term_out parameter
8821 to construct the string_file for the command output.
8822 * ui-file.c (term_cli_styling): New function (most code moved
8823 from utils.c can_emit_style_escape).
8824 (string_file::string_file, string_file::can_emit_style_escape,
8825 stdio_file::can_emit_style_escape, tee_file::term_out,
8826 tee_file::can_emit_style_escape): New functions.
8827
8828 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8829
8830 * NEWS: Mention the new set|show may-call-functions.
8831 * infcall.c (may_call_functions_p): New variable.
8832 (show_may_call_functions_p): New function.
8833 (call_function_by_hand_dummy): Throws an error if not
8834 may-call-functions.
8835 (_initialize_infcall): Call add_setshow_boolean_cmd for
8836 may-call-functions.
8837
8838 2019-04-25 Keith Seitz <keiths@redhat.com>
8839
8840 PR c++/24367
8841 * cp-support.c (inspect_type): Don't attempt substitutions
8842 of symbol with the same name.
8843
8844 2019-04-25 Tom Tromey <tromey@adacore.com>
8845
8846 PR gdb/24475:
8847 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8848 static.
8849
8850 2019-04-25 Tom Tromey <tromey@adacore.com>
8851
8852 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8853 rvalue reference.
8854 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8855 (gdb_xml_parser::parse): Use std::move.
8856 * python/python-internal.h (gdbpy_convert_exception): Take a const
8857 reference.
8858 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8859 std::move.
8860 * python/py-utils.c (gdbpy_convert_exception): Take a const
8861 reference.
8862 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8863 Use std::move.
8864 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8865 Use std::move.
8866 * mi/mi-main.c (mi_print_exception): Take a const reference.
8867 * main.c (handle_command_errors): Take a const reference.
8868 * linespec.c (parse_linespec): Use std::move.
8869 * infcall.c (run_inferior_call): Use std::move.
8870 (call_function_by_hand_dummy): Use std::move.
8871 * exec.c (try_open_exec_file): Use std::move.
8872 * exceptions.h (exception_print, exception_fprintf)
8873 (exception_print_same): Update.
8874 * exceptions.c (print_exception, exception_print)
8875 (exception_fprintf, exception_print_same): Change parameters to
8876 const reference.
8877 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8878 * common/new-op.c: Use std::move.
8879 * common/common-exceptions.h (struct gdb_exception): Add move
8880 constructor.
8881 (struct gdb_exception_error, struct gdb_exception_quit, struct
8882 gdb_quit_bad_alloc): Change constructor to move constructor.
8883 (throw_exception): Change parameter to rvalue reference.
8884 * common/common-exceptions.c (throw_exception): Take rvalue
8885 reference.
8886 * cli/cli-interp.c (safe_execute_command): Use std::move.
8887 * breakpoint.c (insert_bp_location, location_to_sals): Use
8888 std::move.
8889
8890 2019-04-25 Tom Tromey <tromey@adacore.com>
8891
8892 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8893 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8894 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8895 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8896 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8897 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8898 guile/scm-value.c: Use unpack.
8899 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8900 gdbscm_gdb_exception.
8901 (gdbscm_throw_gdb_exception): Likewise.
8902 (struct gdbscm_gdb_exception): New.
8903 (unpack): New function.
8904 (gdbscm_wrap): Use unpack.
8905
8906 2019-04-25 Tom Tromey <tromey@adacore.com>
8907
8908 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8909 (gdb_rl_callback_handler): Use std::move.
8910 * common/common-exceptions.h (struct gdb_exception): Add move
8911 assignment operator.
8912 (throw_exception_sjlj): Change "exception" to const reference.
8913 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8914 (throw_exception_sjlj): Change "exception" to const reference.
8915
8916 2019-04-25 Tom Tromey <tromey@adacore.com>
8917
8918 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8919 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8920 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8921 Update.
8922 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8923 Update.
8924 * mi/mi-interp.c (mi_interp::exec): Update.
8925 * linespec.c (parse_linespec): Update.
8926 * infcall.c (run_inferior_call): Update.
8927 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8928 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8929 (gdbscm_lookup_global_symbol): Update.
8930 * guile/scm-param.c (gdbscm_parameter_value): Update.
8931 * guile/scm-frame.c (gdbscm_frame_read_register)
8932 (gdbscm_frame_read_var): Update.
8933 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8934 * exec.c (try_open_exec_file): Update.
8935 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8936 (gdb_rl_callback_handler): Update.
8937 * common/common-exceptions.h (exception_none): Don't declare.
8938 * common/common-exceptions.c (exception_none): Don't define.
8939 (struct catcher) <exception>: Update.
8940 * cli/cli-interp.c (safe_execute_command): Update.
8941 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8942
8943 2019-04-25 Ali Tamur <tamur@google.com>
8944
8945 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8946 (read_attribute_value): Likewise.
8947 (dwarf2_read_addr_index): Update comment.
8948 (read_str_index): Add DW_FORM_strx.
8949 (dwarf2_string_attr): Likewise.
8950 (dwarf2_const_value_attr): Likewise.
8951 (dump_die_shallow): Likewise.
8952 (dwarf2_fetch_constant_bytes): Likewise.
8953 (skip_form_bytes): Likewise.
8954 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8955
8956 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8957
8958 PR corefiles/11608
8959 PR corefiles/18187
8960 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8961 OFFSET. Verify if current mapping contains an ELF header.
8962 (linux_find_memory_regions_full): Adjust call to
8963 dump_mapping_p.
8964
8965 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8966 Kang Li <kanglictf@gmail.com>
8967
8968 PR gdb/21600
8969
8970 * dwarf2-frame.c (read_initial_length): Be consistent about using
8971 unsigned representation of length.
8972 (decode_frame_entry_1): Likewise. Check for wraparound of
8973 end pointer as well as buffer overflow.
8974
8975 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8976
8977 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8978 "vq".
8979
8980 2019-04-24 Tom Tromey <tromey@adacore.com>
8981
8982 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8983
8984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * s12z-tdep.c (s12z_unwind_pc): Delete.
8987 (s12z_unwind_sp): Delete.
8988 (s12z_gdbarch_init): Don't register deleted functions with
8989 gdbarch.
8990
8991 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * rl78-tdep.c (rl78_unwind_sp): Delete.
8994 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8995
8996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8999 (xstormy16_unwind_pc): Delete.
9000 (xstormy16_dummy_id): Delete.
9001 (xstormy16_gdbarch_init): Don't register deleted functions with
9002 gdbarch.
9003
9004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9005
9006 * vax-tdep.c (vax_unwind_pc): Delete.
9007 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9008
9009 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9010
9011 * v850-tdep.c (v850_unwind_sp): Delete.
9012 (v850_unwind_pc): Delete.
9013 (v850_dummy_id): Delete.
9014 (v850_gdbarch_init): Don't register deleted functions with
9015 gdbarch.
9016
9017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9020 (tilegx_unwind_pc): Delete.
9021 (tilegx_unwind_dummy_id): Delete.
9022 (tilegx_gdbarch_init): Don't register deleted functions with
9023 gdbarch.
9024
9025 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9028 (tic6x_dummy_id): Delete.
9029 (tic6x_gdbarch_init): Don't register deleted functions with
9030 gdbarch.
9031
9032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9033
9034 * sparc-tdep.c (sparc_unwind_pc): Delete.
9035 (sparc32_gdbarch_init): Don't register deleted function with
9036 gdbarch.
9037
9038 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * sh-tdep.c (sh_unwind_sp): Delete.
9041 (sh_unwind_pc): Delete.
9042 (sh_dummy_id): Delete.
9043 (sh_gdbarch_init): Don't register deleted functions with
9044 gdbarch.
9045
9046 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * score-tdep.c (score_unwind_sp): Delete.
9049 (score_unwind_pc): Delete.
9050 (score_dummy_id): Delete.
9051 (score_gdbarch_init): Don't register deleted functions with
9052 gdbarch.
9053
9054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * rx-tdep.c (rx_unwind_pc): Delete.
9057 (rx_unwind_sp): Delete.
9058 (rx_dummy_id): Delete.
9059 (rx_gdbarch_init): Don't register deleted functions with
9060 gdbarch. Update comment.
9061
9062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9065 (rs6000_dummy_id): Delete.
9066 (rs6000_gdbarch_init): Don't register deleted functions with
9067 gdbarch.
9068
9069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * or1k-tdep.c (or1k_dummy_id): Delete.
9072 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9073
9074 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * nios2-tdep.c (nios2_dummy_id): Delete.
9077 (nios2_unwind_sp): Delete.
9078 (nios2_gdbarch_init): Don't register deleted functions with
9079 gdbarch.
9080
9081 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * nds32-tdep.c (nds32_dummy_id): Delete.
9084 (nds32_unwind_pc): Delete.
9085 (nds32_unwind_sp): Delete.
9086 (nds32_gdbarch_init): Don't register deleted functions with
9087 gdbarch.
9088
9089 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9090
9091 * msp430-tdep.c (msp430_unwind_pc): Delete.
9092 (msp430_unwind_sp): Delete.
9093 (msp430_dummy_id): Delete.
9094 (msp430_gdbarch_init): Don't register deleted functions with
9095 gdbarch.
9096
9097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9098
9099 * moxie-tdep.c (moxie_unwind_sp): Delete.
9100 (moxie_unwind_pc): Delete.
9101 (moxie_dummy_id): Delete.
9102 (moxie_gdbarch_init): Don't register deleted functions with
9103 gdbarch.
9104
9105 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9106
9107 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9108 (mn10300_unwind_pc): Delete.
9109 (mn10300_unwind_sp): Delete.
9110 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9111 mn10300_unwind_sp.
9112 (mn10300_frame_unwind_init): Don't register deleted functions with
9113 gdbarch.
9114
9115 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9116
9117 * mep-tdep.c (mep_unwind_pc): Delete.
9118 (mep_unwind_sp): Delete.
9119 (mep_dummy_id): Delete.
9120 (mep_gdbarch_init): Don't register deleted functions with
9121 gdbarch.
9122
9123 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9124
9125 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9126 (m68hc11_unwind_sp): Delete.
9127 (m68hc11_gdbarch_init): Don't register deleted functions with
9128 gdbarch.
9129
9130 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * m32r-tdep.c (m32r_unwind_sp): Delete.
9133 (m32r_unwind_pc): Delete.
9134 (m32r_dummy_id): Delete.
9135 (m32r_gdbarch_init): Don't register deleted functions with
9136 gdbarch.
9137
9138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9139
9140 * m32c-tdep.c (m32c_unwind_pc): Delete.
9141 (m32c_unwind_sp): Delete.
9142 (m32c_dummy_id): Delete.
9143 (m32c_gdbarch_init): Don't register deleted functions with
9144 gdbarch.
9145
9146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9147
9148 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9149 (lm32_unwind_pc): Delete.
9150 (lm32_dummy_id): Delete.
9151 (lm32_gdbarch_init): Don't register deleted functions with
9152 gdbarch.
9153
9154 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9155
9156 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9157 (iq2000_unwind_pc): Delete.
9158 (iq2000_dummy_id): Delete.
9159 (iq2000_gdbarch_init): Don't register deleted functions with
9160 gdbarch.
9161
9162 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9163
9164 * nds32-tdep.c (nds32_type_align): Delete.
9165 (nds32_push_dummy_call): Use type_align instead.
9166
9167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9168
9169 * arm-tdep.c (arm_type_align): Only handle vector override case.
9170 (arm_push_dummy_call): Use type_align.
9171 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9172
9173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9176 case.
9177 (pass_on_stack): Use type_align.
9178 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9179 function.
9180
9181 2019-04-23 Tom Tromey <tromey@adacore.com>
9182
9183 * dwarf2read.c (line_header::file_name_at): Remove unused
9184 overload.
9185
9186 2019-04-23 Tom de Vries <tdevries@suse.de>
9187
9188 PR gdb/24438
9189 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9190 invocation.
9191
9192
9193 2019-03-27 Ali Tamur <tamur@google.com>
9194
9195 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9196 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9197 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9198 (dwarf_expr_context::get_addr_index): Likewise
9199 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9200 (symbol_needs_eval_context::get_addr_index): Likewise
9201 (disassemble_dwarf_expression): Add DW_OP_addrx
9202 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9203 (read_cutu_die_from_dwo): Update comment
9204 (skip_one_die): Add DW_FORM_addrx
9205 (read_attribute_value): Likewise
9206 (var_decode_location): Add DW_OP_addrx
9207 (dwarf2_const_value_attr): Add DW_FORM_addrx
9208 (dump_die_shallow): Likewise
9209 (dwarf2_fetch_constant_bytes): Likewise
9210 (decode_locdesc): Add DW_OP_addrx
9211 (skip_form_bytes): Add DW_FORM_addrx
9212
9213 2019-04-22 Ali Tamur <tamur@google.com>
9214
9215 * MAINTAINERS (Write After Approval): Add self.
9216
9217 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9218
9219 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9220 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9221 (open_symbol_file_object): Likewise.
9222 (svr4_default_sos): Add info parameter.
9223 (svr4_read_so_list): Likewise.
9224 (svr4_current_sos_direct): Adjust functions calls to pass down
9225 info.
9226 (svr4_current_sos_1): Add info parameter.
9227 (svr4_current_sos): Call get_svr4_info, pass info down to
9228 svr4_current_sos_1.
9229 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9230 get_svr4_info.
9231 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9232 get_svr4_info.
9233 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9234 to get_svr4_info.
9235 (probes_table_remove_objfile_probes): Likewise.
9236 (register_solib_event_probe): Add info parameter.
9237 (solist_update_incremental): Pass info parameter down to
9238 svr4_read_so_list.
9239 (disable_probes_interface): Add info parameter.
9240 (svr4_handle_solib_event): Pass current_program_space to
9241 get_svr4_info. Adjust disable_probes_interface cleanup.
9242 (svr4_create_probe_breakpoints): Add info parameter, pass it
9243 down to register_solib_event_probe.
9244 (svr4_create_solib_event_breakpoints): Add info parameter,
9245 pass it down to svr4_create_probe_breakpoints.
9246 (enable_break): Pass info down to
9247 svr4_create_solib_event_breakpoints.
9248 (svr4_solib_create_inferior_hook): Pass current_program_space to
9249 get_svr4_info.
9250 (svr4_clear_solib): Likewise.
9251
9252 2019-04-22 Pedro Alves <palves@redhat.com>
9253
9254 * solib-svr4.c (svr4_free_objfile_observer): New.
9255 (probe_and_action::objfile): New field.
9256 (probes_table_htab_remove_objfile_probes)
9257 (probes_table_remove_objfile_probes): New functions.
9258 (register_solib_event_probe): Add 'objfile' parameter. Store it
9259 in the new probe_and_action. Don't store the probe in 'lookup'.
9260 (svr4_create_probe_breakpoints): Pass objfile to
9261 register_solib_event_probe.
9262 (_initialize_svr4_solib): Register a free_objfile observer.
9263
9264 2019-04-19 Tom Tromey <tom@tromey.com>
9265
9266 * common/queue.h: Remove.
9267
9268 2019-04-19 Tom Tromey <tom@tromey.com>
9269
9270 * event-loop.c: Don't include "common/queue.h".
9271
9272 2019-04-19 Tom Tromey <tom@tromey.com>
9273
9274 * remote.c (remote_target): Use delete.
9275 * remote-notif.h: Include <list>, not "common/queue.h".
9276 (notif_client_p): Remove typedef.
9277 (remote_notif_state): Add constructor, destructor, initializer.
9278 <notif_queue>: Now a std::list.
9279 (remote_notif_state_xfree): Don't declare.
9280 * remote-notif.c (remote_notif_process, handle_notification)
9281 (remote_notif_state_allocate): Update.
9282 (~remote_notif_state): Rename from remote_notif_state_xfree.
9283
9284 2019-04-19 Tom Tromey <tom@tromey.com>
9285
9286 * symfile.c (reread_symbols): Update.
9287 * objfiles.c (objfile_register_static_link)
9288 (objfile_lookup_static_link): Update
9289 (~objfile) Don't delete static_links.
9290 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9291
9292 2019-04-19 Tom Tromey <tom@tromey.com>
9293
9294 * type-stack.h (struct type_stack) <insert>: Constify string.
9295 * type-stack.c (type_stack::insert): Constify string.
9296 * gdbtypes.h (lookup_template_type): Update.
9297 (address_space_name_to_int): Update.
9298 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9299 const.
9300 (lookup_template_type): Make name const.
9301 * c-exp.y: Update rules.
9302 (lex_one_token, classify_name, classify_inner_name)
9303 (c_print_token): Update.
9304 * p-exp.y: Update rules.
9305 (yylex): Update.
9306 * f-exp.y: Update rules.
9307 (yylex): Update.
9308 * d-exp.y: Update rules.
9309 (lex_one_token, classify_name, classify_inner_name): Update.
9310 * parse.c (write_dollar_variable, copy_name): Return std::string.
9311 * parser-defs.h (copy_name): Change return type.
9312 * m2-exp.y: Update rules.
9313 (yylex): Update.
9314 * go-exp.y (lex_one_token): Update.
9315 Update rules.
9316 (classify_unsafe_function, classify_packaged_name)
9317 (classify_name, yylex): Update.
9318
9319 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9320
9321 * configure.ac: add --enable-source-highlight switch.
9322 * configure: Regenerate.
9323 * top.c (print_gdb_version): plumb --enable-source-highlight
9324 status to "show configuration".
9325
9326 2019-04-19 Tom Tromey <tromey@adacore.com>
9327
9328 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9329 Check ADA_TYPE_P.
9330 (empty_record, ada_template_to_fixed_record_type_1)
9331 (template_to_static_fixed_type)
9332 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9333 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9334 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9335 macros.
9336
9337 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9338
9339 PR symtab/24423:
9340 * source.c (print_source_lines_base): Advance "iter" when a
9341 control character is seen.
9342
9343 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9344
9345 * inferior.h (struct infcall_suspend_state_deleter):
9346 Catch exception in destructor to avoid crash.
9347
9348 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9349
9350 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9351 close to the add_com "shell".
9352
9353 2019-04-18 Tom Tromey <tromey@adacore.com>
9354
9355 * process-stratum-target.h (class process_stratum_target)
9356 <stratum>: Add "final".
9357
9358 2019-04-17 Tom Tromey <tromey@adacore.com>
9359
9360 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9361 against nullptr before use.
9362
9363 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9364
9365 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9366
9367 2019-04-17 Jim Wilson <jimw@sifive.com>
9368 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9371 code read might fail, assume 4-byte breakpoint in that case.
9372
9373 2019-04-15 Leszek Swirski <leszeks@google.com>
9374
9375 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9376 rather than a hand-rolled POD check when checking for forced MEMORY
9377 classification.
9378
9379 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9380
9381 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9382 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9383 function.
9384 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9385 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9386 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9387 declaration.
9388
9389 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9390
9391 * aarch64-linux-nat.c
9392 (aarch64_linux_nat_target::thread_architecture): Add override.
9393 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9394 each VQ.
9395
9396 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9397
9398 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9399
9400 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9403 target types of size 96-bits, add some additional comments, and
9404 check that the builtin type we found was the correct size.
9405
9406 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9407
9408 * utils.c (prompt_for_continue): Don't restore the styling at the
9409 end, as applied_style has the wrong value. This fixes styling in
9410 long lists of file names that are interrupted by the "Continue?"
9411 prompt.
9412
9413 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9416 * c-lang.c (c_language_defn): Likewise.
9417 (cplus_language_defn): Likewise.
9418 (asm_language_defn): Likewise.
9419 (minimal_language_defn): Likewise.
9420 * d-lang.c (d_language_defn): Likewise.
9421 * f-lang.c (f_language_defn): Likewise.
9422 * go-lang.c (go_language_defn): Likewise.
9423 * language.c (unknown_language_defn): Likewise.
9424 (auto_language_defn): Likewise.
9425 * language.h (struct language_defn): Remove la_magic field.
9426 (LANG_MAGIC): Delete.
9427 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9428 * objc-lang.c (objc_language_defn): Likewise.
9429 * opencl-lang.c (opencl_language_defn): Likewise.
9430 * p-lang.c (pascal_language_defn): Likewise.
9431 * rust-lang.c (rust_language_defn): Likewise.
9432
9433 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * riscv-tdep.c (riscv_type_align): New function.
9436 (riscv_type_alignment): Delete.
9437 (riscv_arg_location): Use 'type_align'.
9438 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9439
9440 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9441
9442 * gdbtypes.c (type_align): A struct with no non-static fields also
9443 has alignment of 1.
9444
9445 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9446
9447 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9448 component to 0.
9449 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9450 member.
9451 (riscv_struct_info::analyse): New implementation using new
9452 analyse_inner member function.
9453 (riscv_struct_info::field_offset): New member function.
9454 (riscv_struct_info::m_offsets): New member variable.
9455 (riscv_struct_info::analyse_inner): New private member function,
9456 takes the old implementation of riscv_struct_info::analyse but
9457 extended to track field offsets.
9458 (riscv_call_arg_struct): Update the struct folding special cases
9459 to handle cases where empty C++ structs, which are non-zero
9460 length, are found.
9461 (riscv_arg_location): Initialise the length of each location, a
9462 non-zero length now indicates the location is in use.
9463 (riscv_push_dummy_call): Allow for the first location having a
9464 non-zero offset when setting up arguments.
9465 (riscv_return_value): Likewise, but for return values.
9466
9467 2019-04-11 Tom Tromey <tromey@adacore.com>
9468
9469 * utils.c (internal_vproblem): Make "msg" const.
9470
9471 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9472
9473 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9474 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9475 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9476 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9477
9478 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9479
9480 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9481 function.
9482 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9483 of amd64_collect_native_gregset.
9484 (amd64_linux_nat_target::store_registers): Likewise.
9485
9486 2019-04-10 Tom Tromey <tom@tromey.com>
9487
9488 * symtab.c (lookup_global_symbol_from_objfile)
9489 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9490 * objfiles.h (class separate_debug_iterator): New.
9491 (class separate_debug_range): New.
9492 (struct objfile) <separate_debug_objfiles>: New method.
9493 (objfile_separate_debug_iterate): Don't declare.
9494 * objfiles.c (separate_debug_iterator::operator++): Rename from
9495 objfile_separate_debug_iterate.
9496 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9497 iterator.
9498 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9499 iterator.
9500
9501 2019-04-10 Tom Tromey <tom@tromey.com>
9502
9503 * symfile.c (reread_symbols): Remove old comment.
9504 * objfiles.c (free_all_objfiles): Fix a typo.
9505
9506 2019-04-10 Tom Tromey <tom@tromey.com>
9507
9508 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9509 * minsyms.c (lookup_minimal_symbol): Use foreach.
9510 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9511 (lookup_minimal_symbol_solib_trampoline): Likewise.
9512 * symfile.c (reread_symbols): Use foreach.
9513
9514 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9515 Tom Tromey <tromey@adacore.com>
9516
9517 PR rust/24414:
9518 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9519 (rust_lex_int_test): Change "value" to be LONGEST.
9520 (rust_lex_tests): Add test for long integer literal.
9521
9522 2019-04-09 Tom Tromey <tromey@adacore.com>
9523
9524 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9525 to bool.
9526 (extended_remote_target::attach): Update.
9527 (remote_target::remote_notice_new_inferior): Update.
9528 (remote_target::add_current_inferior_and_thread): Update.
9529 * inferior.c (exit_inferior_1): Use "false".
9530 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9531
9532 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9535 the "start" command.
9536
9537 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9538
9539 * python/py-inferior.c (infpy_thread_from_thread_handle):
9540 Adjust comments to reflect renaming of thread_from_thread_handle
9541 to thread_from_handle. Adjust keywords. Fix type error message.
9542 (inferior_object_methods): Add thread_from_handle. Retain
9543 thread_from_thread_handle, but mark it as deprecated.
9544
9545 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9546
9547 * gdbthread.h (find_thread_by_handle): Revise declaration.
9548 * thread.c (find_thread_by_handle): Likewise. Adjust
9549 implementation too.
9550 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9551 support for buffer objects as handles.
9552
9553 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9554
9555 * python/py-infthread.c (thpy_thread_handle): New function.
9556 (thread_object_methods): Register thpy_thread_handle.
9557
9558 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9559
9560 * gdbthread.h (thread_to_thread_handle): Declare.
9561 * thread.c (gdbtypes.h): Include.
9562 (thread_to_thread_handle): New function.
9563
9564 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9565 (target_thread_info_to_thread_handle): Declare.
9566 * target.c (target_thread_info_to_thread_handle): New function.
9567 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9568 * target-delegates.c: Regenerate.
9569
9570 * linux-thread-db.c (class thread_db_target): Add method
9571 thread_info_to_thread_handle.
9572 (thread_db_target::thread_info_to_thread_handle): Define.
9573 * remote.c (class remote_target): Add new method
9574 thread_info_to_thread_handle.
9575 (remote_target::thread_info_to_thread_handle): Define.
9576
9577 2019-04-08 Pedro Alves <palves@redhat.com>
9578
9579 * common/common-exceptions.c (throw_exception): Don't create
9580 named object to throw; throw directly.
9581 (throw_it): Likewise. Don't initialize gdb_exception::message
9582 here, with new; pass FMT and AP to the ctor instead.
9583 * common/common-exceptions.h: Include <string>.
9584 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9585 const char *, va_list)): New ctor. Use std::make_shared.
9586 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9587 errors)): Delete.
9588 (gdb_exception_error::gdb_exception_error(enum errors, const char
9589 *, va_list)): New.
9590 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9591 Add assertion.
9592 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9593 errors)): Delete.
9594 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9595 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9596 Add assertion.
9597
9598 2019-04-08 Tom Tromey <tom@tromey.com>
9599
9600 * valops.c (value_rtti_indirect_type): Replace throw_exception
9601 with throw.
9602 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9603 with throw.
9604 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9605 throw.
9606 * target.c (target_translate_tls_address): Replace throw_exception
9607 with throw.
9608 * stack.c (frame_apply_command_count): Replace throw_exception
9609 with throw.
9610 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9611 throw.
9612 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9613 with throw.
9614 * rs6000-tdep.c (rs6000_frame_cache)
9615 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9616 * remote.c: Replace throw_exception with throw.
9617 * record-full.c (record_full_message, record_full_wait_1)
9618 (record_full_restore): Replace throw_exception with throw.
9619 * record-btrace.c:
9620 (get_thread_current_frame_id, record_btrace_start_replaying)
9621 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9622 (cmd_record_btrace_start): Replace throw_exception with throw.
9623 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9624 throw.
9625 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9626 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9627 * linespec.c:
9628 (find_linespec_symbols): Replace throw_exception with throw.
9629 * infrun.c (displaced_step_prepare, resume): Replace
9630 throw_exception with throw.
9631 * infcmd.c (post_create_inferior): Replace throw_exception with
9632 throw.
9633 * inf-loop.c (inferior_event_handler): Replace throw_exception
9634 with throw.
9635 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9636 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9637 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9638 (get_prev_frame_always, get_frame_pc_if_available)
9639 (get_frame_address_in_block_if_available, get_frame_language):
9640 Replace throw_exception with throw.
9641 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9642 throw_exception with throw.
9643 * eval.c (fetch_subexp_value, evaluate_var_value)
9644 (evaluate_funcall, evaluate_subexp_standard): Replace
9645 throw_exception with throw.
9646 * dwarf2loc.c (call_site_find_chain)
9647 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9648 Replace throw_exception with throw.
9649 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9650 with throw.
9651 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9652 throw.
9653 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9654 * completer.c (complete_line_internal): Replace throw_exception
9655 with throw.
9656 * compile/compile-object-run.c (compile_object_run): Replace
9657 throw_exception with throw.
9658 * cli/cli-script.c (process_next_line): Replace throw_exception
9659 with throw.
9660 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9661 (btrace_enable, btrace_maint_update_pt_packets): Replace
9662 throw_exception with throw.
9663 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9664 throw_exception with throw.
9665 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9666 throw_exception with throw.
9667 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9668 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9669 * aarch64-tdep.c (aarch64_make_prologue_cache)
9670 (aarch64_make_stub_cache): Replace throw_exception with throw.
9671
9672 2019-04-08 Tom Tromey <tom@tromey.com>
9673
9674 * common/common-exceptions.c (throw_exception): Rename from
9675 throw_exception_cxx. Remove old copy. Make argument const.
9676 (throw_it): Create and throw exception objects directly.
9677 * common/common-exceptions.h (throw_exception): Make argument
9678 const.
9679 (struct gdb_exception_error): Add constructor.
9680 (struct gdb_exception_quit): Add constructor.
9681
9682 2019-04-08 Tom Tromey <tom@tromey.com>
9683
9684 * common/common-exceptions.h (exception_rethrow): Don't declare.
9685 (TRY_SJLJ): Update comment.
9686 (TRY, CATCH, END_CATCH): Remove.
9687 * common/common-exceptions.c (exception_rethrow): Remove.
9688
9689 2019-04-08 Tom Tromey <tom@tromey.com>
9690
9691 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9692 Remove.
9693 (gdb_exception_error): Rename from
9694 gdb_exception_RETURN_MASK_ERROR.
9695 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9696 (gdb_quit_bad_alloc): Update.
9697 * aarch64-tdep.c: Update.
9698 * ada-lang.c: Update.
9699 * ada-typeprint.c: Update.
9700 * ada-valprint.c: Update.
9701 * amd64-tdep.c: Update.
9702 * arch-utils.c: Update.
9703 * break-catch-throw.c: Update.
9704 * breakpoint.c: Update.
9705 * btrace.c: Update.
9706 * c-varobj.c: Update.
9707 * cli/cli-cmds.c: Update.
9708 * cli/cli-interp.c: Update.
9709 * cli/cli-script.c: Update.
9710 * common/common-exceptions.c: Update.
9711 * common/new-op.c: Update.
9712 * common/selftest.c: Update.
9713 * compile/compile-c-symbols.c: Update.
9714 * compile/compile-cplus-symbols.c: Update.
9715 * compile/compile-object-load.c: Update.
9716 * compile/compile-object-run.c: Update.
9717 * completer.c: Update.
9718 * corelow.c: Update.
9719 * cp-abi.c: Update.
9720 * cp-support.c: Update.
9721 * cp-valprint.c: Update.
9722 * darwin-nat.c: Update.
9723 * disasm-selftests.c: Update.
9724 * dtrace-probe.c: Update.
9725 * dwarf-index-cache.c: Update.
9726 * dwarf-index-write.c: Update.
9727 * dwarf2-frame-tailcall.c: Update.
9728 * dwarf2-frame.c: Update.
9729 * dwarf2loc.c: Update.
9730 * dwarf2read.c: Update.
9731 * eval.c: Update.
9732 * event-loop.c: Update.
9733 * event-top.c: Update.
9734 * exec.c: Update.
9735 * f-valprint.c: Update.
9736 * fbsd-tdep.c: Update.
9737 * frame-unwind.c: Update.
9738 * frame.c: Update.
9739 * gdbtypes.c: Update.
9740 * gnu-v3-abi.c: Update.
9741 * guile/guile-internal.h: Update.
9742 * guile/scm-block.c: Update.
9743 * guile/scm-breakpoint.c: Update.
9744 * guile/scm-cmd.c: Update.
9745 * guile/scm-disasm.c: Update.
9746 * guile/scm-frame.c: Update.
9747 * guile/scm-lazy-string.c: Update.
9748 * guile/scm-math.c: Update.
9749 * guile/scm-param.c: Update.
9750 * guile/scm-ports.c: Update.
9751 * guile/scm-pretty-print.c: Update.
9752 * guile/scm-symbol.c: Update.
9753 * guile/scm-symtab.c: Update.
9754 * guile/scm-type.c: Update.
9755 * guile/scm-value.c: Update.
9756 * i386-linux-tdep.c: Update.
9757 * i386-tdep.c: Update.
9758 * inf-loop.c: Update.
9759 * infcall.c: Update.
9760 * infcmd.c: Update.
9761 * infrun.c: Update.
9762 * jit.c: Update.
9763 * language.c: Update.
9764 * linespec.c: Update.
9765 * linux-fork.c: Update.
9766 * linux-nat.c: Update.
9767 * linux-tdep.c: Update.
9768 * linux-thread-db.c: Update.
9769 * main.c: Update.
9770 * mi/mi-cmd-break.c: Update.
9771 * mi/mi-cmd-stack.c: Update.
9772 * mi/mi-interp.c: Update.
9773 * mi/mi-main.c: Update.
9774 * objc-lang.c: Update.
9775 * p-valprint.c: Update.
9776 * parse.c: Update.
9777 * ppc-linux-tdep.c: Update.
9778 * printcmd.c: Update.
9779 * python/py-arch.c: Update.
9780 * python/py-breakpoint.c: Update.
9781 * python/py-cmd.c: Update.
9782 * python/py-finishbreakpoint.c: Update.
9783 * python/py-frame.c: Update.
9784 * python/py-framefilter.c: Update.
9785 * python/py-gdb-readline.c: Update.
9786 * python/py-inferior.c: Update.
9787 * python/py-infthread.c: Update.
9788 * python/py-lazy-string.c: Update.
9789 * python/py-linetable.c: Update.
9790 * python/py-objfile.c: Update.
9791 * python/py-param.c: Update.
9792 * python/py-prettyprint.c: Update.
9793 * python/py-progspace.c: Update.
9794 * python/py-record-btrace.c: Update.
9795 * python/py-record.c: Update.
9796 * python/py-symbol.c: Update.
9797 * python/py-type.c: Update.
9798 * python/py-unwind.c: Update.
9799 * python/py-utils.c: Update.
9800 * python/py-value.c: Update.
9801 * python/python.c: Update.
9802 * record-btrace.c: Update.
9803 * record-full.c: Update.
9804 * remote-fileio.c: Update.
9805 * remote.c: Update.
9806 * riscv-tdep.c: Update.
9807 * rs6000-aix-tdep.c: Update.
9808 * rs6000-tdep.c: Update.
9809 * rust-exp.y: Update.
9810 * rust-lang.c: Update.
9811 * s390-tdep.c: Update.
9812 * selftest-arch.c: Update.
9813 * solib-dsbt.c: Update.
9814 * solib-frv.c: Update.
9815 * solib-spu.c: Update.
9816 * solib-svr4.c: Update.
9817 * solib.c: Update.
9818 * sparc64-linux-tdep.c: Update.
9819 * stack.c: Update.
9820 * symfile-mem.c: Update.
9821 * symmisc.c: Update.
9822 * target.c: Update.
9823 * thread.c: Update.
9824 * top.c: Update.
9825 * tracefile-tfile.c: Update.
9826 * tui/tui.c: Update.
9827 * typeprint.c: Update.
9828 * unittests/cli-utils-selftests.c: Update.
9829 * unittests/parse-connection-spec-selftests.c: Update.
9830 * valops.c: Update.
9831 * valprint.c: Update.
9832 * value.c: Update.
9833 * varobj.c: Update.
9834 * windows-nat.c: Update.
9835 * x86-linux-nat.c: Update.
9836 * xml-support.c: Update.
9837
9838 2019-04-08 Tom Tromey <tom@tromey.com>
9839
9840 * xml-support.c: Use C++ exception handling.
9841 * x86-linux-nat.c: Use C++ exception handling.
9842 * windows-nat.c: Use C++ exception handling.
9843 * varobj.c: Use C++ exception handling.
9844 * value.c: Use C++ exception handling.
9845 * valprint.c: Use C++ exception handling.
9846 * valops.c: Use C++ exception handling.
9847 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9848 handling.
9849 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9850 * typeprint.c: Use C++ exception handling.
9851 * tui/tui.c: Use C++ exception handling.
9852 * tracefile-tfile.c: Use C++ exception handling.
9853 * top.c: Use C++ exception handling.
9854 * thread.c: Use C++ exception handling.
9855 * target.c: Use C++ exception handling.
9856 * symmisc.c: Use C++ exception handling.
9857 * symfile-mem.c: Use C++ exception handling.
9858 * stack.c: Use C++ exception handling.
9859 * sparc64-linux-tdep.c: Use C++ exception handling.
9860 * solib.c: Use C++ exception handling.
9861 * solib-svr4.c: Use C++ exception handling.
9862 * solib-spu.c: Use C++ exception handling.
9863 * solib-frv.c: Use C++ exception handling.
9864 * solib-dsbt.c: Use C++ exception handling.
9865 * selftest-arch.c: Use C++ exception handling.
9866 * s390-tdep.c: Use C++ exception handling.
9867 * rust-lang.c: Use C++ exception handling.
9868 * rust-exp.y: Use C++ exception handling.
9869 * rs6000-tdep.c: Use C++ exception handling.
9870 * rs6000-aix-tdep.c: Use C++ exception handling.
9871 * riscv-tdep.c: Use C++ exception handling.
9872 * remote.c: Use C++ exception handling.
9873 * remote-fileio.c: Use C++ exception handling.
9874 * record-full.c: Use C++ exception handling.
9875 * record-btrace.c: Use C++ exception handling.
9876 * python/python.c: Use C++ exception handling.
9877 * python/py-value.c: Use C++ exception handling.
9878 * python/py-utils.c: Use C++ exception handling.
9879 * python/py-unwind.c: Use C++ exception handling.
9880 * python/py-type.c: Use C++ exception handling.
9881 * python/py-symbol.c: Use C++ exception handling.
9882 * python/py-record.c: Use C++ exception handling.
9883 * python/py-record-btrace.c: Use C++ exception handling.
9884 * python/py-progspace.c: Use C++ exception handling.
9885 * python/py-prettyprint.c: Use C++ exception handling.
9886 * python/py-param.c: Use C++ exception handling.
9887 * python/py-objfile.c: Use C++ exception handling.
9888 * python/py-linetable.c: Use C++ exception handling.
9889 * python/py-lazy-string.c: Use C++ exception handling.
9890 * python/py-infthread.c: Use C++ exception handling.
9891 * python/py-inferior.c: Use C++ exception handling.
9892 * python/py-gdb-readline.c: Use C++ exception handling.
9893 * python/py-framefilter.c: Use C++ exception handling.
9894 * python/py-frame.c: Use C++ exception handling.
9895 * python/py-finishbreakpoint.c: Use C++ exception handling.
9896 * python/py-cmd.c: Use C++ exception handling.
9897 * python/py-breakpoint.c: Use C++ exception handling.
9898 * python/py-arch.c: Use C++ exception handling.
9899 * printcmd.c: Use C++ exception handling.
9900 * ppc-linux-tdep.c: Use C++ exception handling.
9901 * parse.c: Use C++ exception handling.
9902 * p-valprint.c: Use C++ exception handling.
9903 * objc-lang.c: Use C++ exception handling.
9904 * mi/mi-main.c: Use C++ exception handling.
9905 * mi/mi-interp.c: Use C++ exception handling.
9906 * mi/mi-cmd-stack.c: Use C++ exception handling.
9907 * mi/mi-cmd-break.c: Use C++ exception handling.
9908 * main.c: Use C++ exception handling.
9909 * linux-thread-db.c: Use C++ exception handling.
9910 * linux-tdep.c: Use C++ exception handling.
9911 * linux-nat.c: Use C++ exception handling.
9912 * linux-fork.c: Use C++ exception handling.
9913 * linespec.c: Use C++ exception handling.
9914 * language.c: Use C++ exception handling.
9915 * jit.c: Use C++ exception handling.
9916 * infrun.c: Use C++ exception handling.
9917 * infcmd.c: Use C++ exception handling.
9918 * infcall.c: Use C++ exception handling.
9919 * inf-loop.c: Use C++ exception handling.
9920 * i386-tdep.c: Use C++ exception handling.
9921 * i386-linux-tdep.c: Use C++ exception handling.
9922 * guile/scm-value.c: Use C++ exception handling.
9923 * guile/scm-type.c: Use C++ exception handling.
9924 * guile/scm-symtab.c: Use C++ exception handling.
9925 * guile/scm-symbol.c: Use C++ exception handling.
9926 * guile/scm-pretty-print.c: Use C++ exception handling.
9927 * guile/scm-ports.c: Use C++ exception handling.
9928 * guile/scm-param.c: Use C++ exception handling.
9929 * guile/scm-math.c: Use C++ exception handling.
9930 * guile/scm-lazy-string.c: Use C++ exception handling.
9931 * guile/scm-frame.c: Use C++ exception handling.
9932 * guile/scm-disasm.c: Use C++ exception handling.
9933 * guile/scm-cmd.c: Use C++ exception handling.
9934 * guile/scm-breakpoint.c: Use C++ exception handling.
9935 * guile/scm-block.c: Use C++ exception handling.
9936 * guile/guile-internal.h: Use C++ exception handling.
9937 * gnu-v3-abi.c: Use C++ exception handling.
9938 * gdbtypes.c: Use C++ exception handling.
9939 * frame.c: Use C++ exception handling.
9940 * frame-unwind.c: Use C++ exception handling.
9941 * fbsd-tdep.c: Use C++ exception handling.
9942 * f-valprint.c: Use C++ exception handling.
9943 * exec.c: Use C++ exception handling.
9944 * event-top.c: Use C++ exception handling.
9945 * event-loop.c: Use C++ exception handling.
9946 * eval.c: Use C++ exception handling.
9947 * dwarf2read.c: Use C++ exception handling.
9948 * dwarf2loc.c: Use C++ exception handling.
9949 * dwarf2-frame.c: Use C++ exception handling.
9950 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9951 * dwarf-index-write.c: Use C++ exception handling.
9952 * dwarf-index-cache.c: Use C++ exception handling.
9953 * dtrace-probe.c: Use C++ exception handling.
9954 * disasm-selftests.c: Use C++ exception handling.
9955 * darwin-nat.c: Use C++ exception handling.
9956 * cp-valprint.c: Use C++ exception handling.
9957 * cp-support.c: Use C++ exception handling.
9958 * cp-abi.c: Use C++ exception handling.
9959 * corelow.c: Use C++ exception handling.
9960 * completer.c: Use C++ exception handling.
9961 * compile/compile-object-run.c: Use C++ exception handling.
9962 * compile/compile-object-load.c: Use C++ exception handling.
9963 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9964 * compile/compile-c-symbols.c: Use C++ exception handling.
9965 * common/selftest.c: Use C++ exception handling.
9966 * common/new-op.c: Use C++ exception handling.
9967 * cli/cli-script.c: Use C++ exception handling.
9968 * cli/cli-interp.c: Use C++ exception handling.
9969 * cli/cli-cmds.c: Use C++ exception handling.
9970 * c-varobj.c: Use C++ exception handling.
9971 * btrace.c: Use C++ exception handling.
9972 * breakpoint.c: Use C++ exception handling.
9973 * break-catch-throw.c: Use C++ exception handling.
9974 * arch-utils.c: Use C++ exception handling.
9975 * amd64-tdep.c: Use C++ exception handling.
9976 * ada-valprint.c: Use C++ exception handling.
9977 * ada-typeprint.c: Use C++ exception handling.
9978 * ada-lang.c: Use C++ exception handling.
9979 * aarch64-tdep.c: Use C++ exception handling.
9980
9981 2019-04-08 Tom Tromey <tom@tromey.com>
9982
9983 * xml-support.c (gdb_xml_parser::parse): Update.
9984 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9985 * value.c (show_convenience): Update.
9986 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9987 (test_parse_flags_qcs): Update.
9988 * thread.c (thr_try_catch_cmd): Update.
9989 * target.c (target_translate_tls_address): Update.
9990 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9991 (info_frame_command_core, frame_apply_command_count): Update.
9992 * rust-exp.y (rust_lex_exception_test): Update.
9993 * riscv-tdep.c (riscv_print_one_register_info): Update.
9994 * remote.c (remote_target::enable_btrace): Update.
9995 * record-btrace.c (record_btrace_enable_warn): Update.
9996 * python/py-utils.c (gdbpy_convert_exception): Update.
9997 * printcmd.c (do_one_display, print_variable_and_value): Update.
9998 * mi/mi-main.c (mi_print_exception): Update.
9999 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10000 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10001 * linux-nat.c (linux_nat_target::attach): Update.
10002 * linux-fork.c (class scoped_switch_fork_info): Update.
10003 * infrun.c (displaced_step_prepare): Update.
10004 * infcall.c (call_function_by_hand_dummy): Update.
10005 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10006 * gnu-v3-abi.c (print_one_vtable): Update.
10007 * frame.c (get_prev_frame_always): Update.
10008 * f-valprint.c (info_common_command_for_block): Update.
10009 * exec.c (try_open_exec_file): Update.
10010 * exceptions.c (print_exception, exception_print)
10011 (exception_fprintf, exception_print_same): Update.
10012 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10013 * dwarf-index-cache.c (index_cache::store)
10014 (index_cache::lookup_gdb_index): Update.
10015 * darwin-nat.c (maybe_cache_shell): Update.
10016 * cp-valprint.c (cp_print_value_fields): Update.
10017 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10018 (gcc_cplus_symbol_address): Update.
10019 * compile/compile-c-symbols.c (gcc_convert_symbol)
10020 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10021 * common/selftest.c: Update.
10022 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10023 a std::string.
10024 (exception_try_scope_entry, exception_try_scope_exit): Don't
10025 declare.
10026 (struct exception_try_scope): Remove.
10027 (TRY): Don't use exception_try_scope.
10028 (struct gdb_exception): Add constructor, operator=.
10029 <what>: New method.
10030 (struct gdb_exception_RETURN_MASK_ALL)
10031 (struct gdb_exception_RETURN_MASK_ERROR)
10032 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10033 (struct gdb_quit_bad_alloc): Update.
10034 * common/common-exceptions.c (exception_none): Change
10035 initializer.
10036 (struct catcher) <state, exception>: Initialize inline.
10037 <prev>: Remove member.
10038 (current_catcher): Remove.
10039 (catchers): New global.
10040 (exceptions_state_mc_init): Simplify.
10041 (catcher_pop): Remove.
10042 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10043 (try_scope_depth, exception_try_scope_entry)
10044 (exception_try_scope_exit): Remove.
10045 (throw_exception_sjlj): Update.
10046 (exception_messages, exception_messages_size): Remove.
10047 (throw_it): Simplify.
10048 (gdb_exception_sliced_copy): Remove.
10049 (throw_exception_cxx): Update.
10050 * cli/cli-script.c (script_from_file): Update.
10051 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10052 Update.
10053 * ada-valprint.c (ada_val_print): Update.
10054 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10055 (create_excep_cond_exprs): Update.
10056
10057 2019-04-08 Tom Tromey <tom@tromey.com>
10058
10059 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10060 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10061 (TRY, CATCH, END_CATCH): Remove some definitions.
10062 * common/common-exceptions.c: Don't use GDB_XCPT.
10063 (catcher_list_size): Remove.
10064 (throw_exception, throw_it): Simplify.
10065
10066 2019-04-05 Tom Tromey <tom@tromey.com>
10067
10068 Revert the header-sorting patch.
10069 * ft32-tdep.c: Revert.
10070 * frv-tdep.c: Revert.
10071 * frv-linux-tdep.c: Revert.
10072 * frame.c: Revert.
10073 * frame-unwind.c: Revert.
10074 * frame-base.c: Revert.
10075 * fork-child.c: Revert.
10076 * findvar.c: Revert.
10077 * findcmd.c: Revert.
10078 * filesystem.c: Revert.
10079 * filename-seen-cache.h: Revert.
10080 * filename-seen-cache.c: Revert.
10081 * fbsd-tdep.c: Revert.
10082 * fbsd-nat.h: Revert.
10083 * fbsd-nat.c: Revert.
10084 * f-valprint.c: Revert.
10085 * f-typeprint.c: Revert.
10086 * f-lang.c: Revert.
10087 * extension.h: Revert.
10088 * extension.c: Revert.
10089 * extension-priv.h: Revert.
10090 * expprint.c: Revert.
10091 * exec.h: Revert.
10092 * exec.c: Revert.
10093 * exceptions.c: Revert.
10094 * event-top.c: Revert.
10095 * event-loop.c: Revert.
10096 * eval.c: Revert.
10097 * elfread.c: Revert.
10098 * dwarf2read.h: Revert.
10099 * dwarf2read.c: Revert.
10100 * dwarf2loc.c: Revert.
10101 * dwarf2expr.h: Revert.
10102 * dwarf2expr.c: Revert.
10103 * dwarf2-frame.c: Revert.
10104 * dwarf2-frame-tailcall.c: Revert.
10105 * dwarf-index-write.h: Revert.
10106 * dwarf-index-write.c: Revert.
10107 * dwarf-index-common.c: Revert.
10108 * dwarf-index-cache.h: Revert.
10109 * dwarf-index-cache.c: Revert.
10110 * dummy-frame.c: Revert.
10111 * dtrace-probe.c: Revert.
10112 * disasm.h: Revert.
10113 * disasm.c: Revert.
10114 * disasm-selftests.c: Revert.
10115 * dictionary.c: Revert.
10116 * dicos-tdep.c: Revert.
10117 * demangle.c: Revert.
10118 * dcache.h: Revert.
10119 * dcache.c: Revert.
10120 * darwin-nat.h: Revert.
10121 * darwin-nat.c: Revert.
10122 * darwin-nat-info.c: Revert.
10123 * d-valprint.c: Revert.
10124 * d-namespace.c: Revert.
10125 * d-lang.c: Revert.
10126 * ctf.c: Revert.
10127 * csky-tdep.c: Revert.
10128 * csky-linux-tdep.c: Revert.
10129 * cris-tdep.c: Revert.
10130 * cris-linux-tdep.c: Revert.
10131 * cp-valprint.c: Revert.
10132 * cp-support.c: Revert.
10133 * cp-namespace.c: Revert.
10134 * cp-abi.c: Revert.
10135 * corelow.c: Revert.
10136 * corefile.c: Revert.
10137 * continuations.c: Revert.
10138 * completer.h: Revert.
10139 * completer.c: Revert.
10140 * complaints.c: Revert.
10141 * coffread.c: Revert.
10142 * coff-pe-read.c: Revert.
10143 * cli-out.h: Revert.
10144 * cli-out.c: Revert.
10145 * charset.c: Revert.
10146 * c-varobj.c: Revert.
10147 * c-valprint.c: Revert.
10148 * c-typeprint.c: Revert.
10149 * c-lang.c: Revert.
10150 * buildsym.c: Revert.
10151 * buildsym-legacy.c: Revert.
10152 * build-id.h: Revert.
10153 * build-id.c: Revert.
10154 * btrace.c: Revert.
10155 * bsd-uthread.c: Revert.
10156 * breakpoint.h: Revert.
10157 * breakpoint.c: Revert.
10158 * break-catch-throw.c: Revert.
10159 * break-catch-syscall.c: Revert.
10160 * break-catch-sig.c: Revert.
10161 * blockframe.c: Revert.
10162 * block.c: Revert.
10163 * bfin-tdep.c: Revert.
10164 * bfin-linux-tdep.c: Revert.
10165 * bfd-target.c: Revert.
10166 * bcache.c: Revert.
10167 * ax-general.c: Revert.
10168 * ax-gdb.h: Revert.
10169 * ax-gdb.c: Revert.
10170 * avr-tdep.c: Revert.
10171 * auxv.c: Revert.
10172 * auto-load.c: Revert.
10173 * arm-wince-tdep.c: Revert.
10174 * arm-tdep.c: Revert.
10175 * arm-symbian-tdep.c: Revert.
10176 * arm-pikeos-tdep.c: Revert.
10177 * arm-obsd-tdep.c: Revert.
10178 * arm-nbsd-tdep.c: Revert.
10179 * arm-nbsd-nat.c: Revert.
10180 * arm-linux-tdep.c: Revert.
10181 * arm-linux-nat.c: Revert.
10182 * arm-fbsd-tdep.c: Revert.
10183 * arm-fbsd-nat.c: Revert.
10184 * arm-bsd-tdep.c: Revert.
10185 * arch-utils.c: Revert.
10186 * arc-tdep.c: Revert.
10187 * arc-newlib-tdep.c: Revert.
10188 * annotate.h: Revert.
10189 * annotate.c: Revert.
10190 * amd64-windows-tdep.c: Revert.
10191 * amd64-windows-nat.c: Revert.
10192 * amd64-tdep.c: Revert.
10193 * amd64-sol2-tdep.c: Revert.
10194 * amd64-obsd-tdep.c: Revert.
10195 * amd64-obsd-nat.c: Revert.
10196 * amd64-nbsd-tdep.c: Revert.
10197 * amd64-nbsd-nat.c: Revert.
10198 * amd64-nat.c: Revert.
10199 * amd64-linux-tdep.c: Revert.
10200 * amd64-linux-nat.c: Revert.
10201 * amd64-fbsd-tdep.c: Revert.
10202 * amd64-fbsd-nat.c: Revert.
10203 * amd64-dicos-tdep.c: Revert.
10204 * amd64-darwin-tdep.c: Revert.
10205 * amd64-bsd-nat.c: Revert.
10206 * alpha-tdep.c: Revert.
10207 * alpha-obsd-tdep.c: Revert.
10208 * alpha-nbsd-tdep.c: Revert.
10209 * alpha-mdebug-tdep.c: Revert.
10210 * alpha-linux-tdep.c: Revert.
10211 * alpha-linux-nat.c: Revert.
10212 * alpha-bsd-tdep.c: Revert.
10213 * alpha-bsd-nat.c: Revert.
10214 * aix-thread.c: Revert.
10215 * agent.c: Revert.
10216 * addrmap.c: Revert.
10217 * ada-varobj.c: Revert.
10218 * ada-valprint.c: Revert.
10219 * ada-typeprint.c: Revert.
10220 * ada-tasks.c: Revert.
10221 * ada-lang.c: Revert.
10222 * aarch64-tdep.c: Revert.
10223 * aarch64-ravenscar-thread.c: Revert.
10224 * aarch64-newlib-tdep.c: Revert.
10225 * aarch64-linux-tdep.c: Revert.
10226 * aarch64-linux-nat.c: Revert.
10227 * aarch64-fbsd-tdep.c: Revert.
10228 * aarch64-fbsd-nat.c: Revert.
10229 * aarch32-linux-nat.c: Revert.
10230
10231 2019-04-05 Tom Tromey <tom@tromey.com>
10232
10233 * ft32-tdep.c: Sort headers.
10234 * frv-tdep.c: Sort headers.
10235 * frv-linux-tdep.c: Sort headers.
10236 * frame.c: Sort headers.
10237 * frame-unwind.c: Sort headers.
10238 * frame-base.c: Sort headers.
10239 * fork-child.c: Sort headers.
10240 * findvar.c: Sort headers.
10241 * findcmd.c: Sort headers.
10242 * filesystem.c: Sort headers.
10243 * filename-seen-cache.h: Sort headers.
10244 * filename-seen-cache.c: Sort headers.
10245 * fbsd-tdep.c: Sort headers.
10246 * fbsd-nat.h: Sort headers.
10247 * fbsd-nat.c: Sort headers.
10248 * f-valprint.c: Sort headers.
10249 * f-typeprint.c: Sort headers.
10250 * f-lang.c: Sort headers.
10251 * extension.h: Sort headers.
10252 * extension.c: Sort headers.
10253 * extension-priv.h: Sort headers.
10254 * expprint.c: Sort headers.
10255 * exec.h: Sort headers.
10256 * exec.c: Sort headers.
10257 * exceptions.c: Sort headers.
10258 * event-top.c: Sort headers.
10259 * event-loop.c: Sort headers.
10260 * eval.c: Sort headers.
10261 * elfread.c: Sort headers.
10262 * dwarf2read.h: Sort headers.
10263 * dwarf2read.c: Sort headers.
10264 * dwarf2loc.c: Sort headers.
10265 * dwarf2expr.h: Sort headers.
10266 * dwarf2expr.c: Sort headers.
10267 * dwarf2-frame.c: Sort headers.
10268 * dwarf2-frame-tailcall.c: Sort headers.
10269 * dwarf-index-write.h: Sort headers.
10270 * dwarf-index-write.c: Sort headers.
10271 * dwarf-index-common.c: Sort headers.
10272 * dwarf-index-cache.h: Sort headers.
10273 * dwarf-index-cache.c: Sort headers.
10274 * dummy-frame.c: Sort headers.
10275 * dtrace-probe.c: Sort headers.
10276 * disasm.h: Sort headers.
10277 * disasm.c: Sort headers.
10278 * disasm-selftests.c: Sort headers.
10279 * dictionary.c: Sort headers.
10280 * dicos-tdep.c: Sort headers.
10281 * demangle.c: Sort headers.
10282 * dcache.h: Sort headers.
10283 * dcache.c: Sort headers.
10284 * darwin-nat.h: Sort headers.
10285 * darwin-nat.c: Sort headers.
10286 * darwin-nat-info.c: Sort headers.
10287 * d-valprint.c: Sort headers.
10288 * d-namespace.c: Sort headers.
10289 * d-lang.c: Sort headers.
10290 * ctf.c: Sort headers.
10291 * csky-tdep.c: Sort headers.
10292 * csky-linux-tdep.c: Sort headers.
10293 * cris-tdep.c: Sort headers.
10294 * cris-linux-tdep.c: Sort headers.
10295 * cp-valprint.c: Sort headers.
10296 * cp-support.c: Sort headers.
10297 * cp-namespace.c: Sort headers.
10298 * cp-abi.c: Sort headers.
10299 * corelow.c: Sort headers.
10300 * corefile.c: Sort headers.
10301 * continuations.c: Sort headers.
10302 * completer.h: Sort headers.
10303 * completer.c: Sort headers.
10304 * complaints.c: Sort headers.
10305 * coffread.c: Sort headers.
10306 * coff-pe-read.c: Sort headers.
10307 * cli-out.h: Sort headers.
10308 * cli-out.c: Sort headers.
10309 * charset.c: Sort headers.
10310 * c-varobj.c: Sort headers.
10311 * c-valprint.c: Sort headers.
10312 * c-typeprint.c: Sort headers.
10313 * c-lang.c: Sort headers.
10314 * buildsym.c: Sort headers.
10315 * buildsym-legacy.c: Sort headers.
10316 * build-id.h: Sort headers.
10317 * build-id.c: Sort headers.
10318 * btrace.c: Sort headers.
10319 * bsd-uthread.c: Sort headers.
10320 * breakpoint.h: Sort headers.
10321 * breakpoint.c: Sort headers.
10322 * break-catch-throw.c: Sort headers.
10323 * break-catch-syscall.c: Sort headers.
10324 * break-catch-sig.c: Sort headers.
10325 * blockframe.c: Sort headers.
10326 * block.c: Sort headers.
10327 * bfin-tdep.c: Sort headers.
10328 * bfin-linux-tdep.c: Sort headers.
10329 * bfd-target.c: Sort headers.
10330 * bcache.c: Sort headers.
10331 * ax-general.c: Sort headers.
10332 * ax-gdb.h: Sort headers.
10333 * ax-gdb.c: Sort headers.
10334 * avr-tdep.c: Sort headers.
10335 * auxv.c: Sort headers.
10336 * auto-load.c: Sort headers.
10337 * arm-wince-tdep.c: Sort headers.
10338 * arm-tdep.c: Sort headers.
10339 * arm-symbian-tdep.c: Sort headers.
10340 * arm-pikeos-tdep.c: Sort headers.
10341 * arm-obsd-tdep.c: Sort headers.
10342 * arm-nbsd-tdep.c: Sort headers.
10343 * arm-nbsd-nat.c: Sort headers.
10344 * arm-linux-tdep.c: Sort headers.
10345 * arm-linux-nat.c: Sort headers.
10346 * arm-fbsd-tdep.c: Sort headers.
10347 * arm-fbsd-nat.c: Sort headers.
10348 * arm-bsd-tdep.c: Sort headers.
10349 * arch-utils.c: Sort headers.
10350 * arc-tdep.c: Sort headers.
10351 * arc-newlib-tdep.c: Sort headers.
10352 * annotate.h: Sort headers.
10353 * annotate.c: Sort headers.
10354 * amd64-windows-tdep.c: Sort headers.
10355 * amd64-windows-nat.c: Sort headers.
10356 * amd64-tdep.c: Sort headers.
10357 * amd64-sol2-tdep.c: Sort headers.
10358 * amd64-obsd-tdep.c: Sort headers.
10359 * amd64-obsd-nat.c: Sort headers.
10360 * amd64-nbsd-tdep.c: Sort headers.
10361 * amd64-nbsd-nat.c: Sort headers.
10362 * amd64-nat.c: Sort headers.
10363 * amd64-linux-tdep.c: Sort headers.
10364 * amd64-linux-nat.c: Sort headers.
10365 * amd64-fbsd-tdep.c: Sort headers.
10366 * amd64-fbsd-nat.c: Sort headers.
10367 * amd64-dicos-tdep.c: Sort headers.
10368 * amd64-darwin-tdep.c: Sort headers.
10369 * amd64-bsd-nat.c: Sort headers.
10370 * alpha-tdep.c: Sort headers.
10371 * alpha-obsd-tdep.c: Sort headers.
10372 * alpha-nbsd-tdep.c: Sort headers.
10373 * alpha-mdebug-tdep.c: Sort headers.
10374 * alpha-linux-tdep.c: Sort headers.
10375 * alpha-linux-nat.c: Sort headers.
10376 * alpha-bsd-tdep.c: Sort headers.
10377 * alpha-bsd-nat.c: Sort headers.
10378 * aix-thread.c: Sort headers.
10379 * agent.c: Sort headers.
10380 * addrmap.c: Sort headers.
10381 * ada-varobj.c: Sort headers.
10382 * ada-valprint.c: Sort headers.
10383 * ada-typeprint.c: Sort headers.
10384 * ada-tasks.c: Sort headers.
10385 * ada-lang.c: Sort headers.
10386 * aarch64-tdep.c: Sort headers.
10387 * aarch64-ravenscar-thread.c: Sort headers.
10388 * aarch64-newlib-tdep.c: Sort headers.
10389 * aarch64-linux-tdep.c: Sort headers.
10390 * aarch64-linux-nat.c: Sort headers.
10391 * aarch64-fbsd-tdep.c: Sort headers.
10392 * aarch64-fbsd-nat.c: Sort headers.
10393 * aarch32-linux-nat.c: Sort headers.
10394
10395 2019-04-04 Tom Tromey <tom@tromey.com>
10396
10397 * varobj.c (varobj_create): Update.
10398 * rust-exp.y (struct rust_parser) <update_innermost_block,
10399 lookup_symbol>: New methods.
10400 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10401 Rename.
10402 (rust_parser::rust_lookup_type)
10403 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10404 * printcmd.c (display_command, do_one_display): Update.
10405 * parser-defs.h (struct parser_state) <parser_state>: Add
10406 "tracker" parameter.
10407 (block_tracker): New member.
10408 (class innermost_block_tracker) <innermost_block_tracker>: Add
10409 "types" parameter.
10410 <reset>: Remove method.
10411 (innermost_block): Don't declare.
10412 (null_post_parser): Update.
10413 * parse.c (innermost_block): Remove global.
10414 (write_dollar_variable): Update.
10415 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10416 Remove "tracker_types" parameter.
10417 (parse_expression): Add "tracker" parameter.
10418 (parse_expression_for_completion): Update.
10419 (null_post_parser): Add "tracker" parameter.
10420 * p-exp.y: Update rules.
10421 * m2-exp.y: Update rules.
10422 * language.h (struct language_defn) <la_post_parser>: Add
10423 "tracker" parameter.
10424 * go-exp.y: Update rules.
10425 * f-exp.y: Update rules.
10426 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10427 parameter.
10428 * d-exp.y: Update rules.
10429 * c-exp.y: Update rules.
10430 * breakpoint.c (set_breakpoint_condition): Create an
10431 innermost_block_tracker.
10432 (watch_command_1): Likewise.
10433 * ada-lang.c (resolve): Add "tracker" parameter.
10434 (resolve_subexp): Likewise.
10435 * ada-exp.y (write_var_from_sym): Update.
10436
10437 2019-04-04 Tom Tromey <tom@tromey.com>
10438
10439 * type-stack.h: New file.
10440 * type-stack.c: New file.
10441 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10442 type-stack.h.
10443 (insert_into_type_stack, insert_type, push_type, push_type_int)
10444 (insert_type_address_space, pop_type, pop_type_int)
10445 (pop_typelist, pop_type_stack, append_type_stack)
10446 (push_type_stack, get_type_stack, push_typelist)
10447 (follow_type_instance_flags, follow_types): Don't declare.
10448 * parse.c (type_stack): Remove global.
10449 (parse_exp_in_context): Update.
10450 (insert_into_type_stack, insert_type, push_type, push_type_int)
10451 (insert_type_address_space, pop_type, pop_type_int)
10452 (pop_typelist, pop_type_stack, append_type_stack)
10453 (push_type_stack, get_type_stack, push_typelist)
10454 (follow_type_instance_flags, follow_types): Remove (moved to
10455 type-stack.c).
10456 * f-exp.y (type_stack): New global.
10457 Update rules.
10458 (push_kind_type, f_parse): Update.
10459 * d-exp.y (type_stack): New global.
10460 Update rules.
10461 (d_parse): Update.
10462 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10463 Update rules.
10464 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10465 (HFILES_NO_SRCDIR): Add type-stack.h.
10466
10467 2019-04-04 Tom Tromey <tom@tromey.com>
10468
10469 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10470 (rust_parser::convert_ast_to_expression, rust_parse)
10471 (rust_lex_test_completion, rust_lex_tests): Update.
10472 * parser-defs.h (struct expr_completion_state): New.
10473 (struct parser_state) <parser_state>: Add completion parameter.
10474 <mark_struct_expression, mark_completion_tag>: New methods.
10475 <parse_completion, m_completion_state>: New members.
10476 (prefixify_expression, null_post_parser): Update.
10477 (mark_struct_expression, mark_completion_tag): Don't declare.
10478 * parse.c (parse_completion, expout_last_struct)
10479 (expout_tag_completion_type, expout_completion_name): Remove
10480 globals.
10481 (parser_state::mark_struct_expression)
10482 (parser_state::mark_completion_tag): Now methods.
10483 (prefixify_expression): Add last_struct parameter.
10484 (prefixify_subexp): Likewise.
10485 (parse_exp_1): Update.
10486 (parse_exp_in_context): Add cstate parameter. Update.
10487 (parse_expression_for_completion): Create an
10488 expr_completion_state.
10489 (null_post_parser): Add "completion" parameter.
10490 * p-exp.y: Update rules.
10491 (yylex): Update.
10492 * language.h (struct language_defn) <la_post_parser>: Add
10493 "completing" parameter.
10494 * go-exp.y: Update rules.
10495 (lex_one_token): Update.
10496 * expression.h (parse_completion): Don't declare.
10497 * d-exp.y: Update rules.
10498 (lex_one_token): Update rules.
10499 * c-exp.y: Update rules.
10500 (lex_one_token): Update.
10501 * ada-lang.c (resolve): Add "parse_completion" parameter.
10502 (resolve_subexp): Likewise.
10503 (ada_resolve_function): Likewise.
10504
10505 2019-04-04 Tom Tromey <tom@tromey.com>
10506
10507 * parser-defs.h (struct parser_state) <start_arglist,
10508 end_arglist>: New methods.
10509 <arglist_len, m_funcall_chain>: New members.
10510 (arglist_len, start_arglist, end_arglist): Don't declare.
10511 * parse.c (arglist_len, funcall_chain): Remove global.
10512 (start_arglist, end_arglist): Remove functions.
10513 (parse_exp_in_context): Update.
10514 * p-exp.y: Update rules.
10515 * m2-exp.y: Update rules.
10516 * go-exp.y: Update rules.
10517 * f-exp.y: Update rules.
10518 * d-exp.y: Update rules.
10519 * c-exp.y: Update rules.
10520
10521 2019-04-04 Tom Tromey <tom@tromey.com>
10522
10523 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10524 lex_operator, push_back>: New methods.
10525 Update all rules.
10526 (rust_parser::lex_hex, lex_escape): Rename and update.
10527 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10528 (rust_parser::lex_operator): Rename and update.
10529 (rust_parser::lex_number, rustyylex, rustyyerror)
10530 (rust_lex_test_init, rust_lex_test_sequence)
10531 (rust_lex_test_push_back, rust_lex_tests): Update.
10532 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10533 parameter.
10534 <lexptr, prev_lexptr>: New members.
10535 (lexptr, prev_lexptr): Don't declare.
10536 * parse.c (lexptr, prev_lexptr): Remove globals.
10537 (parse_exp_in_context): Update.
10538 * p-exp.y (yylex, yyerror): Update.
10539 * m2-exp.y (parse_number, yylex, yyerror): Update.
10540 * go-exp.y (lex_one_token, yyerror): Update.
10541 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10542 * d-exp.y (lex_one_token, yyerror): Update.
10543 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10544 (lex_one_token, yyerror): Update.
10545 * ada-lex.l (YY_INPUT): Update.
10546 (rewind_to_char): Update.
10547 * ada-exp.y (yyerror): Update.
10548
10549 2019-04-04 Tom Tromey <tom@tromey.com>
10550
10551 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10552 * parser-defs.h (struct parser_state) <parser_state>: Add new
10553 parameter.
10554 <comma_terminates>: New member.
10555 (comma_terminates): Don't declare global.
10556 * parse.c (comma_terminates): Remove global.
10557 (parse_exp_in_context): Update.
10558 * p-exp.y (yylex): Update.
10559 * m2-exp.y (yylex): Update.
10560 * go-exp.y (lex_one_token): Update.
10561 * f-exp.y (yylex): Update.
10562 * d-exp.y (lex_one_token): Update.
10563 * c-exp.y (lex_one_token): Update.
10564 * ada-lex.l: Update.
10565
10566 2019-04-04 Tom Tromey <tom@tromey.com>
10567
10568 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10569 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10570 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10571 * parser-defs.h (paren_depth): Don't declare.
10572 * parse.c (paren_depth): Remove global.
10573 (parse_exp_in_context): Update.
10574 * p-exp.y (paren_depth): New global.
10575 (pascal_parse): Initialize it.
10576 * m2-exp.y (paren_depth): New global.
10577 (m2_parse): Initialize it.
10578 * go-exp.y (paren_depth): New global.
10579 (go_parse): Initialize it.
10580 * f-exp.y (paren_depth): New global.
10581 (f_parse): Initialize it.
10582 * d-exp.y (paren_depth): New global.
10583 (d_parse): Initialize it.
10584 * c-exp.y (paren_depth): New global.
10585 (c_parse): Initialize it.
10586 * ada-lex.l (paren_depth): New global.
10587 (lexer_init): Initialize it.
10588
10589 2019-04-04 Tom Tromey <tom@tromey.com>
10590
10591 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10592 (rust_parser::convert_ast_to_type)
10593 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10594 * parser-defs.h (struct parser_state) <parser_state>: Add
10595 parameters. Initialize new members.
10596 <expression_context_block, expression_context_pc>: New members.
10597 * parse.c (expression_context_block, expression_context_pc):
10598 Remove globals.
10599 (parse_exp_in_context): Update.
10600 * p-exp.y: Update all rules.
10601 (yylex): Update.
10602 * m2-exp.y: Update all rules.
10603 (yylex): Update.
10604 * go-exp.y (yylex): Update.
10605 * f-exp.y (yylex): Update.
10606 * d-exp.y: Update all rules.
10607 (yylex): Update.
10608 * c-exp.y: Update all rules.
10609 (lex_one_token, classify_name, yylex, c_parse): Update.
10610 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10611
10612 2019-04-04 Tom Tromey <tom@tromey.com>
10613
10614 * gdbarch.h, gdbarch.c: Rebuild.
10615 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10616 * stap-probe.h:
10617 (struct stap_parse_info): Replace "parser_state" with
10618 "expr_builder".
10619 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10620 (parser_state): New class.
10621 * parse.c (expr_builder): Rename.
10622 (expr_builder::release): Rename.
10623 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10624 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10625 (write_exp_elt_longcst, write_exp_elt_floatcst)
10626 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10627 (write_exp_string_vector, write_exp_bitstring)
10628 (write_exp_msymbol, mark_struct_expression)
10629 (write_dollar_variable)
10630 (insert_type_address_space, increase_expout_size): Replace
10631 "parser_state" with "expr_builder".
10632 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10633 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10634 "parser_state" with "expr_builder".
10635
10636 2019-04-04 Tom Tromey <tom@tromey.com>
10637
10638 * rust-exp.y: Replace "parse_language" with method call.
10639 * p-exp.y:
10640 (yylex): Replace "parse_language" with method call.
10641 * m2-exp.y:
10642 (yylex): Replace "parse_language" with method call.
10643 * go-exp.y (classify_name): Replace "parse_language" with method
10644 call.
10645 * f-exp.y (yylex): Replace "parse_language" with method call.
10646 * d-exp.y (lex_one_token): Replace "parse_language" with method
10647 call.
10648 * c-exp.y:
10649 (lex_one_token, classify_name, yylex): Replace "parse_language"
10650 with method call.
10651 * ada-exp.y (find_primitive_type, type_char)
10652 (type_system_address): Replace "parse_language" with method call.
10653
10654 2019-04-04 Tom Tromey <tom@tromey.com>
10655
10656 * rust-exp.y: Replace "parse_gdbarch" with method call.
10657 * parse.c (write_dollar_variable, insert_type_address_space):
10658 Replace "parse_gdbarch" with method call.
10659 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10660 call.
10661 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10662 call.
10663 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10664 "parse_gdbarch" with method call.
10665 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10666 with method call.
10667 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10668 "parse_gdbarch" with method call.
10669 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10670 "parse_gdbarch" with method call.
10671 * c-exp.y (parse_type, parse_number, classify_name): Replace
10672 "parse_gdbarch" with method call.
10673 * ada-lex.l: Replace "parse_gdbarch" with method call.
10674 * ada-exp.y (parse_type, find_primitive_type, type_char)
10675 (type_system_address): Replace "parse_gdbarch" with method call.
10676
10677 2019-04-04 Tom Tromey <tom@tromey.com>
10678
10679 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10680 * stap-probe.c (stap_parse_argument): Update.
10681 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10682 initial_size parameter.
10683 * rust-exp.y (rust_lex_tests): Update.
10684 * parse.c (parser_state): Update.
10685 (parse_exp_in_context): Update.
10686 * parser-defs.h (struct parser_state) <parser_state>: Remove
10687 "initial_size" parameter.
10688
10689 2019-04-04 Tom Tromey <tom@tromey.com>
10690
10691 * parser-defs.h (increase_expout_size): Don't declare.
10692 * parse.c (increase_expout_size): Now static.
10693
10694 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10695
10696 * gnu-nat.c (gnu_nat_target::wait): Fix
10697 target_waitstatus_to_string call.
10698
10699 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * eval.c (evaluate_subexp_standard): Handle internal functions
10702 during Fortran function call handling.
10703
10704 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10705
10706 * NEWS: Mention new internal functions.
10707 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10708 (read_base_type): Use dwarf2_init_complex_target_type.
10709 * value.c (creal_internal_fn): New function.
10710 (cimag_internal_fn): New function.
10711 (_initialize_values): Register new internal functions.
10712
10713 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10714
10715 * infrun.c (stop_all_threads): If debug_infrun, always
10716 trace the wait status after wait_one, using
10717 target_waitstatus_to_string and target_pid_to_str.
10718 (handle_inferior_event): Replace various trace of
10719 wait status kind by a single trace.
10720 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10721 wait status kind image by target_waitstatus_to_string.
10722 * target/waitstatus.c (target_waitstatus_to_string): Fix
10723 obsolete comment.
10724
10725 2019-04-01 Tom Tromey <tromey@adacore.com>
10726
10727 PR symtab/23331:
10728 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10729
10730 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10731 Pedro Alves <palves@redhat.com>
10732
10733 * top.c (quit_force): Call 'finalize_values'.
10734 * value.c (finalize_values): New function.
10735 * value.h (finalize_values): Declare.
10736
10737 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10738
10739 * NEWS: Announce $_gdb_major and $_gdb_minor.
10740
10741 * top.c (init_gdb_version_vars): New function.
10742 (gdb_init): Call init_gdb_version_vars.
10743
10744 2019-03-29 Tom Tromey <tromey@adacore.com>
10745
10746 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10747 help text. Remove dead code.
10748
10749 2019-03-29 Keith Seitz <keiths@redhat.com>
10750
10751 From Siddhesh Poyarekar:
10752 * f-lang.h (f77_get_upperbound): Return LONGEST.
10753 (f77_get_lowerbound): Likewise.
10754 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10755 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10756 print them.
10757 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10758 plongest to format print it.
10759 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10760 (f77_get_upperbound): Likewise.
10761 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10762 LOWER_BOUND to LONGEST.
10763 (f77_create_arrayprint_offset_tbl): Likewise.
10764
10765 2019-03-29 Keith Seitz <keiths@redhat.com>
10766
10767 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10768 %s/pulongest for TYPE_LENGTH instead of %d in format
10769 strings.
10770 * ada-typerint.c (ada_print_type): Likewise.
10771 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10772 * compile/compile-c-support.c (generate_register_struct): Likewise.
10773 * gdbtypes.c (recursive_dump_type): Likewise.
10774 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10775 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10776 instead of %d in format strings.
10777 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10778 to std::min to ULONGEST.
10779 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10780 instead of %d in format strings.
10781 * tracepoint.c (info_scope_command): Likewise.
10782 * typeprint.c (print_offset_data::update)
10783 (print_offset_data::finish): Likewise.
10784 * xtensa-tdep.c (xtensa_store_return_value)
10785 (xtensa_push_dummy_call): Likewise.
10786
10787 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10788
10789 * windows-nat.c (display_selector): Fixed format specifications
10790 for 64-bit Cygwin.
10791
10792 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10793
10794 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10795
10796 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10797
10798 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10799 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10800 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10801 (nios2_linux_init_abi): Install it.
10802
10803 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10804
10805 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10806
10807 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10808
10809 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10810
10811 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10812 Tom Tromey <tromey@adacore.com>
10813
10814 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10815
10816 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10817
10818 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10819 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10820 method to compute the bounds of range types. Also print "[evaluated]"
10821 if the bounds' values come from a dynamic evaluation.
10822
10823 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10826 whitespace when pretty printing is on.
10827
10828 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10829
10830 * ppc-linux-nat.c: Add include.
10831
10832 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10833
10834 * NEWS: Mention AArch64 Pointer Authentication.
10835
10836 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10837
10838 * arm-linux-nat.c: Add include.
10839
10840 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10841
10842 * source-cache.c (source_cache::get_source_lines): Re-read
10843 fullname after calling open_source_file.
10844
10845 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10846
10847 * NEWS: Mention TLS support for FreeBSD.
10848
10849 2019-03-25 Tom Tromey <tromey@adacore.com>
10850
10851 * minsyms.c (BUNCH_SIZE): Update comment.
10852 (~minimal_symbol_reader): Remove old comment.
10853 (compact_minimal_symbols): Update comment.
10854 (minimal_symbol_reader::install): Remove old comment. Update
10855 other comments.
10856
10857 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10858
10859 * s390-linux-nat.c: Add include.
10860
10861 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10862
10863 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10864 Call linux_get_hwcap.
10865 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10866 Likewise.
10867 (aarch64_linux_get_hwcap): Remove function.
10868 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10869 declaration.
10870 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10871 linux_get_hwcap.
10872 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10873 * linux-tdep.c (linux_get_hwcap): Add function.
10874 (linux_get_hwcap2): Likewise.
10875 * linux-tdep.h (linux_get_hwcap): Add declaration.
10876 (linux_get_hwcap2): Likewise.
10877 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10878 (ppc_linux_get_hwcap2): Likewise.
10879 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10880 linux_get_hwcap.
10881 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10882 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10883 (ppc_linux_nat_target::read_description): Likewise.
10884 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10885 * s390-linux-nat.c: Likewise.
10886 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10887
10888 2019-03-24 Tom Tromey <tom@tromey.com>
10889
10890 * ada-lang.c (standard_lookup): Simplify initialization.
10891 (ada_lookup_symbol_nonlocal): Simplify return.
10892 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10893 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10894 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10895 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10896 initialization.
10897 * solib.c (solib_global_lookup): Simplify.
10898 * symtab.c (null_block_symbol): Remove.
10899 (symbol_cache_lookup): Simplify returns.
10900 (lookup_language_this): Simplify returns.
10901 (lookup_symbol_aux): Simplify return.
10902 (lookup_local_symbol): Simplify returns.
10903 (lookup_global_symbol_from_objfile): Simplify return.
10904 (lookup_symbol_in_objfile_symtabs)
10905 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10906 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10907 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10908 * cp-namespace.c (cp_lookup_bare_symbol)
10909 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10910 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10911 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10912 (cp_lookup_symbol_via_imports): Simplify initialization.
10913 (find_symbol_in_baseclass): Likewise.
10914 * symtab.h (null_block_symbol): Remove.
10915 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10916 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10917 (d_lookup_symbol_module): Likewise.
10918 (find_symbol_in_baseclass): Simplify initialization.
10919
10920 2019-03-24 Tom Tromey <tom@tromey.com>
10921
10922 * expression.h: Don't include symtab.h.
10923 (struct block): Forward declare.
10924
10925 2019-03-24 Tom Tromey <tom@tromey.com>
10926
10927 * c-exp.y (typebase): Remove casts.
10928 * gdbtypes.c (lookup_unsigned_typename, )
10929 (lookup_signed_typename): Remove cast.
10930 * eval.c (parse_to_comma_and_eval): Remove cast.
10931 * parse.c (write_dollar_variable): Remove cast.
10932 * block.h (struct block) <superblock>: Now const.
10933 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10934 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10935 (map_block): Make "block" const.
10936 * symfile.h (struct quick_symbol_functions)
10937 <map_matching_symbols>: Constify block argument to "callback".
10938 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10939 const.
10940 (find_pc_sect_compunit_symtab): Make "b" const.
10941 (find_symbol_at_address): Likewise.
10942 (search_symbols): Likewise.
10943 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10944 (dw2_debug_names_lookup_symbol): Likewise.
10945 (dw2_map_matching_symbols): Update.
10946 * p-valprint.c (pascal_val_print): Remove "block".
10947 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10948 (aux_add_nonlocal_symbols): Make "block" const.
10949 (resolve_subexp): Remove cast.
10950 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10951 const.
10952 (iterate_over_file_blocks): Likewise.
10953 * f-exp.y (%union) <bval>: Remove.
10954 * coffread.c (patch_opaque_types): Make "b" const.
10955 * spu-tdep.c (spu_catch_start): Make "block" const.
10956 * c-valprint.c (print_unpacked_pointer): Remove "block".
10957 * symmisc.c (dump_symtab_1): Make "b" const.
10958 (block_depth): Make "block" const.
10959 * d-exp.y (%union) <bval>: Remove.
10960 * cp-support.h (cp_lookup_rtti_type): Update.
10961 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10962 * psymtab.c (psym_lookup_symbol): Make "block" const.
10963 (maintenance_check_psymtabs): Make "b" const.
10964 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10965 (enumerate_locals, enumerate_args): Update.
10966 * python/py-symtab.c (stpy_global_block): Make "block" const.
10967 (stpy_static_block): Likewise.
10968 * inline-frame.c (block_starting_point_at): Make "new_block"
10969 const.
10970 * block.c (find_block_in_blockvector): Make return type const.
10971 (blockvector_for_pc_sect): Make "b" const.
10972 (find_block_in_blockvector): Make "b" const.
10973
10974 2019-03-23 Tom Tromey <tom@tromey.com>
10975
10976 * varobj.c (varobj_create): Update.
10977 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10978 * printcmd.c (display_command, do_one_display): Don't reset
10979 innermost_block.
10980 * parser-defs.h (enum innermost_block_tracker_type): Move to
10981 expression.h.
10982 (innermost_block): Update comment.
10983 * parse.c (parse_exp_1): Add tracker_types parameter.
10984 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10985 tracker_types parameter. Reset innermost_block.
10986 (parse_exp_in_context): Remove.
10987 (parse_expression_for_completion): Update.
10988 * objfiles.c (~objfile): Don't reset expression_context_block or
10989 innermost_block.
10990 * expression.h (enum innermost_block_tracker_type): Move from
10991 parser-defs.h.
10992 (parse_exp_1): Add tracker_types parameter.
10993 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10994 reset innermost_block.
10995
10996 2019-03-23 Tom Tromey <tom@tromey.com>
10997
10998 * objfiles.h: Include bcache.h.
10999
11000 2019-03-23 Tom Tromey <tom@tromey.com>
11001
11002 * linespec.c (get_current_search_block): Use
11003 scoped_restore_current_language.
11004 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11005
11006 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11007 Jiong Wang <jiong.wang@arm.com>
11008
11009 * aarch64-linux-tdep.c
11010 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11011 section.
11012 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11013
11014 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11015 Jiong Wang <jiong.wang@arm.com>
11016
11017 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11018 instructions.
11019 (aarch64_analyze_prologue_test): Add PACIASP test.
11020 (aarch64_prologue_prev_register): Unmask PC value.
11021
11022 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11023 Jiong Wang <jiong.wang@arm.com>
11024
11025 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11026 (aarch64_dwarf2_prev_register): Unmask PC value.
11027 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11028 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11029 DW_CFA_AARCH64_negate_ra_state.
11030 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11031
11032 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11033 Jiong Wang <jiong.wang@arm.com>
11034
11035 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11036 registers.
11037 (aarch64_pseudo_register_name): Likewise.
11038 (aarch64_pseudo_register_type): Likewise.
11039 (aarch64_pseudo_register_reggroup_p): Likewise.
11040 (aarch64_gdbarch_init): Add pauth registers.
11041 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11042 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11043 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11044 (struct gdbarch_tdep): Add regnum for ra_state.
11045
11046 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11047 Jiong Wang <jiong.wang@arm.com>
11048
11049 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11050
11051 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11052 Jiong Wang <jiong.wang@arm.com>
11053
11054 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11055 function.
11056 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11057 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11058 (aarch64_gdbarch_init): Add puth registers.
11059 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11060 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11061 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11062
11063 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11064 Jiong Wang <jiong.wang@arm.com>
11065
11066 * aarch64-linux-nat.c
11067 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11068 * aarch64-linux-tdep.c
11069 (aarch64_linux_core_read_description): Likewise.
11070 (aarch64_linux_get_hwcap): New function.
11071 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11072 (aarch64_linux_get_hwcap): New declaration.
11073
11074 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11075 Jiong Wang <jiong.wang@arm.com>
11076
11077 * aarch64-linux-nat.c
11078 (aarch64_linux_nat_target::read_description): Add pauth param.
11079 * aarch64-linux-tdep.c
11080 (aarch64_linux_core_read_description): Likewise.
11081 * aarch64-tdep.c (struct target_desc): Add in pauth.
11082 (aarch64_read_description): Add pauth param.
11083 (aarch64_gdbarch_init): Likewise.
11084 * aarch64-tdep.h (aarch64_read_description): Likewise.
11085 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11086 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11087 * features/Makefile: Add new files.
11088 * features/aarch64-pauth.c: New file.
11089 * features/aarch64-pauth.xml: New file.
11090
11091 2019-03-20 Tom Tromey <tromey@adacore.com>
11092
11093 * infrun.c (handle_inferior_event): Rename from
11094 handle_inferior_event_1. Create a scoped_value_mark.
11095 (handle_inferior_event): Remove.
11096
11097 2019-03-19 Tom Tromey <tromey@adacore.com>
11098
11099 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11100 * infrun.h (print_stop_event): Add "displays" parameter.
11101 * infrun.c (print_stop_event): Add "displays" parameter.
11102
11103 2019-03-19 Pedro Alves <palves@redhat.com>
11104
11105 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11106 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11107 to -1. Fix TABs vs spaces.
11108 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11109 * tui/tui-out.h (tui_ui_out) Add intro comments.
11110 <m_line, m_start_of_line>: In-class initialize, and add describing
11111 comment.
11112
11113 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11114
11115 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11116 variable names.
11117 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11118
11119 2019-03-18 Pedro Alves <palves@redhat.com>
11120 Eli Zaretskii <eliz@gnu.org>
11121
11122 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11123 m_line and m_start_of_line.
11124
11125 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11126
11127 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11128 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11129 it returns a newline. This fixes a regression in TU mode, whereby
11130 the next line is output on the same screen line as the user input.
11131
11132 2019-03-18 Tom Tromey <tromey@adacore.com>
11133
11134 * minsyms.c (minimal_symbol_reader::install): Remove call to
11135 obstack_blank.
11136
11137 2019-03-18 Pedro Alves <palves@redhat.com>
11138
11139 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11140 New globals.
11141 (apply_style): New, factored out from ...
11142 (apply_ansi_escape): ... this. Handle reverse video mode.
11143 (tui_set_reverse_mode): New function.
11144 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11145 * tui/tui-winsource.c (tui_show_source_line): Use
11146 tui_set_reverse_mode instead of setting A_STANDOUT.
11147 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11148 New setter methods.
11149
11150 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11151
11152 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11153 Handle tabs.
11154
11155 2019-03-18 Tom Tromey <tromey@adacore.com>
11156
11157 * ada-lang.c (empty_array): Add "high" parameter.
11158 (ada_evaluate_subexp): Update.
11159
11160 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11161
11162 * unittests/string_view-selftests.c: Define
11163 _initialize_string_view_selftests unconditionally.
11164
11165 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11166
11167 PR gdb/24350
11168 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11169
11170 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11171
11172 PR gdb/24351
11173 * windows-nat.c (display_selector): Fix format specifiers.
11174
11175 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11176
11177 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11178 tui_refill_source_window instead of tui_refresh_win, to update the
11179 current execution line. This fixes redisplay of the current line
11180 when stepping through the code with "next" or "step".
11181
11182 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11183
11184 * source-cache.c (source_cache::get_source_lines): Call
11185 find_source_lines to initialize s->nlines. This fixes vertical
11186 scrolling of TUI source window when the DOWN arrow is pressed.
11187
11188 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11189
11190 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11191 linux-thread-db.c (_initialize_thread_db): Likewise.
11192
11193 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11194
11195 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11196 wclrtoeol in tui_show_source_line". This reverts changes made in
11197 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11198
11199 2019-03-15 Tom Tromey <tom@tromey.com>
11200
11201 * symtab.h (struct minimal_symbol): Derive from
11202 general_symbol_info.
11203 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11204 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11205 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11206 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11207 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11208 (MSYMBOL_SEARCH_NAME): Update.
11209 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11210 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11211 * minsyms.c (minimal_symbol_reader::record_full): Update.
11212
11213 2019-03-15 Tom Tromey <tom@tromey.com>
11214
11215 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11216
11217 2019-03-15 Tom Tromey <tom@tromey.com>
11218
11219 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11220 unique_xmalloc_ptr.
11221 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11222 Update.
11223 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11224 (build_minimal_symbol_hash_tables)
11225 (minimal_symbol_reader::install): Update.
11226
11227 2019-03-15 Tom Tromey <tom@tromey.com>
11228
11229 * symtab.c (create_demangled_names_hash): Update.
11230 (symbol_set_names): Update.
11231 * objfiles.h (struct objfile_per_bfd_storage)
11232 <demangled_names_hash>: Now an htab_up.
11233 * objfiles.c (objfile_per_bfd_storage): Simplify.
11234
11235 2019-03-15 Tom Tromey <tom@tromey.com>
11236
11237 * objfiles.h (struct objfile_per_bfd_storage): Declare
11238 destructor.
11239 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11240 New.
11241 (get_objfile_bfd_data): Use new. Don't initialize
11242 language_of_main.
11243 (free_objfile_per_bfd_storage): Remove.
11244 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11245
11246 2019-03-15 Tom Tromey <tom@tromey.com>
11247
11248 * symfile.c (reread_symbols): Update.
11249 * objfiles.c (objfile::objfile): Update.
11250 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11251 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11252 comment.
11253 (minimal_symbol_reader::install): Update.
11254 (terminate_minimal_symbol_table): Remove.
11255 * jit.c (jit_object_close_impl): Update.
11256
11257 2019-03-15 Tom Tromey <tom@tromey.com>
11258
11259 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11260 initializations.
11261
11262 2019-03-15 Tom Tromey <tom@tromey.com>
11263
11264 * objfiles.h (struct objfile_per_bfd_storage)
11265 <demangled_hash_languages>: Now a bitset.
11266 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11267 (lookup_minimal_symbol): Update.
11268
11269 2019-03-15 Tom Tromey <tom@tromey.com>
11270
11271 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11272 Don't return the symbol.
11273 * coffread.c (record_minimal_symbol): Use record_full.
11274
11275 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11276
11277 The MS-Windows port of ncurses fails to switch to a color pair if
11278 one or both of the colors are the implicit default colors. This
11279 change records the default colors when TUI is initialized, and
11280 then specifies them explicitly when a color pair uses the default
11281 colors. This allows color styling in TUI mode on MS-Windows.
11282
11283 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11284 ncurses_norm_attr.
11285 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11286 colors in ncurses_norm_attr.
11287 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11288 "none", replace it with the default color recorded in
11289 ncurses_norm_attr.
11290
11291 2019-03-14 Tom Tromey <tromey@adacore.com>
11292
11293 * source-cache.h (class source_cache) <get_source_lines>: Return
11294 std::string.
11295 * source-cache.c (source_cache::extract_lines): Handle case where
11296 first_pos==npos. Return std::string.
11297 (source_cache::get_source_lines): Update.
11298
11299 2019-03-14 Tom Tromey <tromey@adacore.com>
11300
11301 * NEWS: Add item for "style sources" commands.
11302 * source-cache.c (source_cache::get_source_lines): Check
11303 source_styling.
11304 * cli/cli-style.c (source_styling): New global.
11305 (_initialize_cli_style): Add "style sources" commands.
11306 (show_style_sources): New function.
11307 * cli/cli-style.h (source_styling): Declare.
11308
11309 2019-03-14 Pedro Alves <palves@redhat.com>
11310 Tom Tromey <tromey@adacore.com>
11311
11312 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11313 * tui/tui-winsource.c (tui_refill_source_window): New function,
11314 from...
11315 (tui_horizontal_source_scroll): ... here. Move some logic.
11316 * cli/cli-style.c (set_style_enabled): Notify new observable.
11317 * tui/tui-hooks.c (tui_redisplay_source): New function.
11318 (tui_attach_detach_observers): Attach or detach
11319 tui_redisplay_source.
11320 * observable.h (source_styling_changed): New observable.
11321 * observable.c: Define source_styling_changed observable.
11322
11323 2019-03-13 Tom Tromey <tromey@adacore.com>
11324
11325 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11326 (i386_gnu_nat_target::store_registers): Update.
11327 * target-debug.h (target_debug_print_std_string): New macro.
11328 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11329 * windows-tdep.c (display_one_tib): Update.
11330 * tui/tui-stack.c (tui_make_status_line): Update.
11331 * top.c (print_inferior_quit_action): Update.
11332 * thread.c (thr_try_catch_cmd): Update.
11333 (add_thread_with_info): Update.
11334 (thread_target_id_str): Update.
11335 (thr_try_catch_cmd): Update.
11336 (thread_command): Update.
11337 (thread_find_command): Update.
11338 * record-btrace.c (record_btrace_target::info_record)
11339 (record_btrace_resume_thread, record_btrace_target::resume)
11340 (record_btrace_cancel_resume, record_btrace_step_thread)
11341 (record_btrace_target::wait, record_btrace_target::wait)
11342 (record_btrace_target::wait, record_btrace_target::stop): Update.
11343 * progspace.c (print_program_space): Update.
11344 * process-stratum-target.c
11345 (process_stratum_target::thread_address_space): Update.
11346 * linux-fork.c (linux_fork_mourn_inferior)
11347 (detach_checkpoint_command, info_checkpoints_command)
11348 (linux_fork_context): Update.
11349 (linux_fork_detach): Update.
11350 (class scoped_switch_fork_info): Update.
11351 (delete_checkpoint_command): Update.
11352 * infrun.c (follow_fork_inferior): Update.
11353 (follow_fork_inferior): Update.
11354 (proceed_after_vfork_done): Update.
11355 (handle_vfork_child_exec_or_exit): Update.
11356 (follow_exec): Update.
11357 (displaced_step_prepare_throw): Update.
11358 (displaced_step_restore): Update.
11359 (start_step_over): Update.
11360 (resume_1): Update.
11361 (clear_proceed_status_thread): Update.
11362 (proceed): Update.
11363 (print_target_wait_results): Update.
11364 (do_target_wait): Update.
11365 (context_switch): Update.
11366 (stop_all_threads): Update.
11367 (restart_threads): Update.
11368 (finish_step_over): Update.
11369 (handle_signal_stop): Update.
11370 (switch_back_to_stepped_thread): Update.
11371 (keep_going_pass_signal): Update.
11372 (print_exited_reason): Update.
11373 (normal_stop): Update.
11374 * inferior.c (inferior_pid_to_str): Change return type.
11375 (print_selected_inferior): Update.
11376 (add_inferior): Update.
11377 (detach_inferior): Update.
11378 * dummy-frame.c (fprint_dummy_frames): Update.
11379 * dcache.c (dcache_info_1): Update.
11380 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11381 (btrace_fetch, btrace_clear): Update.
11382 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11383 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11384 type.
11385 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11386 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11387 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11388 * gdbarch.c, gdbarch.h: Rebuild.
11389 * gdbarch.sh (core_pid_to_str): Change return type.
11390 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11391 return type.
11392 (windows_nat_target::pid_to_str): Change return type.
11393 (windows_delete_thread): Update.
11394 (windows_nat_target::attach): Update.
11395 (windows_nat_target::files_info): Update.
11396 * target-delegates.c: Rebuild.
11397 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11398 return type.
11399 (sol_thread_target::pid_to_str): Change return type.
11400 * remote.c (class remote_target) <pid_to_str>: Change return
11401 type.
11402 (remote_target::pid_to_str): Change return type.
11403 (extended_remote_target::attach, remote_target::remote_stop_ns)
11404 (remote_target::remote_notif_remove_queued_reply)
11405 (remote_target::push_stop_reply, remote_target::disable_btrace):
11406 Update.
11407 (extended_remote_target::attach): Update.
11408 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11409 type.
11410 (gdbsim_target::pid_to_str): Change return type.
11411 * ravenscar-thread.c (struct ravenscar_thread_target)
11412 <pid_to_str>: Change return type.
11413 (ravenscar_thread_target::pid_to_str): Change return type.
11414 * procfs.c (class procfs_target) <pid_to_str>: Change return
11415 type.
11416 (procfs_target::pid_to_str): Change return type.
11417 (procfs_target::attach): Update.
11418 (procfs_target::detach): Update.
11419 (procfs_target::fetch_registers): Update.
11420 (procfs_target::store_registers): Update.
11421 (procfs_target::wait): Update.
11422 (procfs_target::files_info): Update.
11423 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11424 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11425 return type.
11426 (nto_procfs_target::pid_to_str): Change return type.
11427 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11428 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11429 return type.
11430 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11431 (exit_lwp): Update.
11432 (attach_proc_task_lwp_callback, get_detach_signal)
11433 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11434 (linux_nat_target::resume, wait_lwp, stop_callback)
11435 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11436 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11437 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11438 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11439 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11440 type.
11441 (inf_ptrace_target::attach): Update.
11442 (inf_ptrace_target::files_info): Update.
11443 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11444 type.
11445 (go32_nat_target::pid_to_str): Change return type.
11446 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11447 (gnu_nat_target::wait): Update.
11448 (gnu_nat_target::wait): Update.
11449 (gnu_nat_target::resume): Update.
11450 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11451 (fbsd_nat_target::wait): Update.
11452 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11453 type.
11454 (darwin_nat_target::attach): Update.
11455 * corelow.c (class core_target) <pid_to_str>: Change return type.
11456 (core_target::pid_to_str): Change return type.
11457 * target.c (normal_pid_to_str): Change return type.
11458 (default_pid_to_str): Likewise.
11459 (target_pid_to_str): Change return type.
11460 (target_translate_tls_address): Update.
11461 (target_announce_detach): Update.
11462 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11463 return type.
11464 (bsd_uthread_target::pid_to_str): Change return type.
11465 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11466 type.
11467 (bsd_kvm_target::pid_to_str): Change return type.
11468 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11469 return type.
11470 (aix_thread_target::pid_to_str): Change return type.
11471 * target.h (struct target_ops) <pid_to_str>: Change return type.
11472 (target_pid_to_str, normal_pid_to_str): Likewise.
11473 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11474 type.
11475 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11476 type.
11477 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11478 return type.
11479 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11480 type.
11481 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11482 type.
11483 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11484 return type.
11485
11486 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11487
11488 * NEWS: Mention that the new default MI version is 3. Mention
11489 changes to the output of commands and events that deal with
11490 multi-location breakpoints.
11491 * breakpoint.c: Include "mi/mi-out.h".
11492 (print_one_breakpoint): Change output syntax if using MI version
11493 >= 3.
11494 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11495 New.
11496 (mi_multi_location_breakpoint_output_fixed): New.
11497 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11498 (mi_cmd_fix_multi_location_breakpoint_output): New.
11499 (mi_multi_location_breakpoint_output_fixed): New.
11500 * mi/mi-cmds.c (mi_cmds): Register command
11501 -fix-multi-location-breakpoint-output.
11502 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11503 interpreter "mi".
11504
11505 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11506
11507 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11508 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11509 instantiate mi_ui_out based on interpreter name.
11510 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11511 * mi/mi-main.c (mi_load_progress): Likewise.
11512
11513 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11514
11515 * NEWS: Combine separate "New targets" sections for 8.3.
11516
11517 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11518
11519 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11520 (ppcfbsd_init_abi): Install gdbarch
11521 "fetch_tls_load_module_address" and "get_thread_local_address"
11522 methods.
11523
11524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11525
11526 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11527 (riscv_fbsd_init_abi): Install gdbarch
11528 "fetch_tls_load_module_address" and "get_thread_local_address"
11529 methods.
11530
11531 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11532
11533 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11534 (i386fbsd_init_abi): Install gdbarch
11535 "fetch_tls_load_module_address" and "get_thread_local_address"
11536 methods.
11537
11538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11539
11540 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11541 (amd64fbsd_init_abi): Install gdbarch
11542 "fetch_tls_load_module_address" and "get_thread_local_address"
11543 methods.
11544
11545 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11546
11547 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11548 (struct fbsd_pspace_data): New type.
11549 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11550 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11551 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11552 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11553 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11554
11555 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11556
11557 * gdbtypes.c (lookup_struct_elt): New function.
11558 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11559 * gdbtypes.h (struct struct_elt): New type.
11560 (lookup_struct_elt): New prototype.
11561
11562 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11563
11564 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11565 remove disabled code block.
11566
11567 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11568
11569 * gdbarch.sh (get_thread_local_address): New method.
11570 * gdbarch.h, gdbarch.c: Regenerate.
11571 * target.c (target_translate_tls_address): Use
11572 gdbarch_get_thread_local_address if present instead of
11573 target::get_thread_local_address.
11574
11575 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11576
11577 * target.h (target::get_thread_local_address): Update comment.
11578
11579 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11580
11581 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11582 objfile->separate_debug_objfile_backlink if not NULL.
11583
11584 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11585
11586 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11587 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11588 (amd64bsd_store_inferior_registers): Likewise.
11589 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11590 Enable segment base registers.
11591 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11592 PT_GETFSBASE and PT_GETGSBASE.
11593 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11594 PT_SETGSBASE.
11595 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11596 segment base registers.
11597 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11598
11599 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11600
11601 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11602 Update calls to i386_target_description to add 'segments'
11603 parameter.
11604 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11605 add segment base registers.
11606 * arch/i386.c (i386_create_target_description): Add 'segments'
11607 parameter to enable segment base registers.
11608 * arch/i386.h (i386_create_target_description): Likewise.
11609 * features/i386/32bit-segments.xml: New file.
11610 * features/i386/32bit-segments.c: Generate.
11611 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11612 call to i386_target_description to add 'segments' parameter.
11613 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11614 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11615 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11616 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11617 if feature is present.
11618 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11619 Add 'segments' parameter to call to i386_target_description.
11620 (i386_target_description): Add 'segments' parameter to enable
11621 segment base registers.
11622 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11623 to call to i386_target_description.
11624 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11625 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11626 Define I386_NUM_REGS.
11627 (i386_target_description): Add 'segments' parameter to enable
11628 segment base registers.
11629
11630 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11631
11632 PR/24325
11633 * source-cache.c: #undef open and close, to avoid unresolved
11634 externals during linking.
11635
11636 2019-03-12 Tom Tromey <tromey@adacore.com>
11637
11638 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11639 const. Add initializers.
11640 (_initialize_remote): Don't initialize ptid globals.
11641
11642 2019-03-12 Pedro Alves <palves@redhat.com>
11643
11644 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11645
11646 2019-03-12 Pedro Alves <palves@redhat.com>
11647
11648 * cp-name-parser.y (main): Remove unused 'len' variable.
11649
11650 2019-03-12 Tom Tromey <tromey@adacore.com>
11651
11652 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11653 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11654
11655 2019-03-12 Tom Tromey <tromey@adacore.com>
11656
11657 * linux-nat.c (iterate_over_lwps): Update.
11658 (stop_callback): Remove parameter.
11659 (stop_wait_callback, detach_callback, resume_set_callback)
11660 (select_singlestep_lwp_callback, set_ignore_sigint)
11661 (status_callback, resumed_callback, resume_clear_callback)
11662 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11663 data parameter.
11664 (linux_nat_target::detach, linux_nat_target::resume)
11665 (linux_stop_and_wait_all_lwps, select_event_lwp)
11666 (linux_nat_filter_event, linux_nat_wait_1)
11667 (linux_nat_target::kill, linux_nat_target::stop)
11668 (linux_nat_target::stop): Update.
11669 (linux_nat_resume_callback): Change type.
11670 (resume_stopped_resumed_lwps, count_events_callback)
11671 (select_event_lwp_callback): Likewise.
11672 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11673 * arm-linux-nat.c (struct update_registers_data): Remove.
11674 (update_registers_callback): Change type.
11675 (arm_linux_insert_hw_breakpoint1): Update.
11676 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11677 parameter.
11678 (x86_linux_dr_set_addr): Update.
11679 (x86_linux_dr_set_control): Update.
11680 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11681 (iterate_over_lwps): Use gdb::function_view.
11682 * nat/aarch64-linux-hw-point.c (struct
11683 aarch64_dr_update_callback_param): Remove.
11684 (debug_reg_change_callback): Change type.
11685 (aarch64_notify_debug_reg_change): Update.
11686 * s390-linux-nat.c (s390_refresh_per_info): Update.
11687
11688 2019-03-11 Tom Tromey <tromey@adacore.com>
11689
11690 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11691 redundant assignment to "this_cu".
11692
11693 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11694
11695 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11696
11697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11698
11699 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11700 from...
11701 (rank_one_type): ... this.
11702
11703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11704
11705 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11706 from...
11707 (rank_one_type): ... this.
11708
11709 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11710
11711 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11712 from...
11713 (rank_one_type): ... this.
11714
11715 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11718 from...
11719 (rank_one_type): ... this.
11720
11721 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11722
11723 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11724 from...
11725 (rank_one_type): ... this.
11726
11727 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11728
11729 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11730 from...
11731 (rank_one_type): ... this.
11732
11733 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11734
11735 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11736 from...
11737 (rank_one_type): ... this.
11738
11739 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11742 from...
11743 (rank_one_type): ... this.
11744
11745 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11746
11747 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11748 from...
11749 (rank_one_type): ... this.
11750
11751 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11752
11753 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11754 from...
11755 (rank_one_type): ... this.
11756
11757 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11758
11759 * gdbtypes.c (rank_one_type_parm_array): 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_ptr): New function extracted
11766 from...
11767 (rank_one_type): ... this.
11768
11769 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11770
11771 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11772 inferior-events' shows the example events.
11773
11774 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11775
11776 Support styling on native MS-Windows console
11777
11778 PR/24315
11779 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11780 on MS-Windows if $TERM is not defined.
11781
11782 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11783
11784 * posix-hdep.c (gdb_console_fputs):
11785 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11786 functions.
11787 * ui-file.h (gdb_console_fputs): Add prototype.
11788
11789 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11790 back to fputs only if the former returns zero.
11791
11792 2019-03-07 Tom Tromey <tom@tromey.com>
11793
11794 * symmisc.c (print_symbol_bcache_statistics): Update.
11795 (print_objfile_statistics): Update.
11796 * symfile.c (allocate_symtab): Update.
11797 * stabsread.c: Don't include bcache.h.
11798 * psymtab.h (struct psymbol_bcache): Don't declare.
11799 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11800 (psymbol_bcache_init, psymbol_bcache_free)
11801 (psymbol_bcache_get_bcache): Don't declare.
11802 * psymtab.c (struct psymbol_bcache): Remove.
11803 (psymtab_storage::psymtab_storage): Update.
11804 (psymtab_storage::~psymtab_storage): Update.
11805 (psymbol_bcache_init, psymbol_bcache_free)
11806 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11807 (add_psymbol_to_bcache): Update.
11808 (allocate_psymtab): Update.
11809 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11810 macro_cache>: No longer pointers.
11811 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11812 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11813 * macrotab.c (macro_bcache): Update.
11814 * macroexp.c: Don't include bcache.h.
11815 * gdbtypes.c (check_types_worklist): Update.
11816 (types_deeply_equal): Remove TRY/CATCH. Update.
11817 * elfread.c (elf_symtab_read): Update.
11818 * dwarf2read.c: Don't include bcache.h.
11819 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11820 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11821 (print_bcache_statistics, bcache_memory_used): Don't declare.
11822 (struct bcache): Move from bcache.c. Add constructor, destructor,
11823 methods. Rename all data members.
11824 * bcache.c (struct bcache): Move to bcache.h.
11825 (bcache::expand_hash_table): Rename from expand_hash_table.
11826 (bcache): Remove.
11827 (bcache::insert): Rename from bcache_full.
11828 (bcache::compare): Rename from bcache_compare.
11829 (bcache_xmalloc): Remove.
11830 (bcache::~bcache): Rename from bcache_xfree.
11831 (bcache::print_statistics): Rename from print_bcache_statistics.
11832 (bcache::memory_used): Rename from bcache_memory_used.
11833
11834 2019-03-07 Pedro Alves <palves@redhat.com>
11835
11836 * infrun.c (normal_stop): Also check for
11837 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11838
11839 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11840
11841 * f-lang.c (value_from_host_double): Moved to...
11842 * value.c (value_from_host_double): ...here.
11843 * value.h (value_from_host_double): Declare.
11844 * guile/scm-math.c (vlscm_convert_typed_number): Use
11845 value_from_host_double.
11846 (vlscm_convert_number): Likewise.
11847 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11848 * python/py-value.c (convert_value_from_python): Likewise.
11849
11850 2019-03-06 Tom Tromey <tom@tromey.com>
11851
11852 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11853
11854 2019-03-06 Tom Tromey <tom@tromey.com>
11855
11856 * utils.h (free_current_contents): Don't declare.
11857 * utils.c (free_current_contents): Remove.
11858
11859 2019-03-06 Tom Tromey <tom@tromey.com>
11860
11861 * top.c (quit_force): Update.
11862 * main.c (captured_command_loop): Update.
11863 * common/new-op.c (operator new): Update.
11864 * common/common-exceptions.c (struct catcher)
11865 <save_cleanup_chain>: Remove member.
11866 (exceptions_state_mc_init): Update.
11867 (exception_try_scope_entry): Return nullptr.
11868 (exception_try_scope_exit, exception_rethrow)
11869 (throw_exception_sjlj, throw_exception_cxx): Update.
11870 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11871 (all_cleanups, do_cleanups, discard_cleanups)
11872 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11873 (restore_cleanups, restore_final_cleanups): Don't declare.
11874 (do_final_cleanups): Remove parameter.
11875 * common/cleanups.c (cleanup_chain, make_cleanup)
11876 (make_cleanup_dtor, all_cleanups, do_cleanups)
11877 (discard_my_cleanups, discard_cleanups)
11878 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11879 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11880 (null_cleanup): Remove.
11881 (do_final_cleanups): Remove parameter.
11882
11883 2019-03-06 Tom Tromey <tom@tromey.com>
11884
11885 * remote.c (remote_target::remote_parse_stop_reply): Use
11886 unique_xmalloc_ptr.
11887
11888 2019-03-06 Tom Tromey <tom@tromey.com>
11889
11890 * stabsread.c (struct stabs_field_info): Rename from field_info.
11891 <list, fnlist>: Add initializers.
11892 <obstack>: New member.
11893 (read_member_functions, read_struct_fields, read_baseclasses):
11894 Allocate on obstack. Don't use cleanups.
11895 (read_one_struct_field, read_member_functions, read_struct_fields)
11896 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11897 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11898 (read_struct_type): Update.
11899
11900 2019-03-06 Tom Tromey <tom@tromey.com>
11901
11902 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11903 * common/filestuff.h (make_cleanup_close): Don't declare.
11904 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11905 Remove.
11906
11907 2019-03-06 Tom Tromey <tom@tromey.com>
11908
11909 * solib-aix.c: Use make_scope_exit.
11910
11911 2019-03-06 Tom Tromey <tom@tromey.com>
11912
11913 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11914 Use make_scope_exit.
11915
11916 2019-03-06 Tom Tromey <tom@tromey.com>
11917
11918 * solib-svr4.c (disable_probes_interface): Remove parameter.
11919 (svr4_handle_solib_event): Use make_scope_exit.
11920
11921 2019-03-06 Tom Tromey <tom@tromey.com>
11922
11923 * remote.c (struct stop_reply_deleter): Remove.
11924 (stop_reply_up): Update.
11925 (struct stop_reply): Derive from notif_event. Don't typedef.
11926 <regcache>: Now a std::vector.
11927 (stop_reply_xfree): Remove.
11928 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11929 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11930 (remote_target::discard_pending_stop_replies): Use delete.
11931 (remote_target::remote_parse_stop_reply): Update.
11932 (remote_target::process_stop_reply): Update.
11933 * remote-notif.h (struct notif_event): Add virtual destructor.
11934 Remove "dtr" member.
11935 (struct notif_client) <alloc_event>: Return a unique_ptr.
11936 (notif_event_xfree): Don't declare.
11937 (notif_event_up): New typedef.
11938 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11939 (notif_event_xfree, do_notif_event_xfree): Remove.
11940 (remote_notif_state_xfree): Update.
11941
11942 2019-03-06 Tom Tromey <tom@tromey.com>
11943
11944 * infrun.c (displaced_step_clear_cleanup): Now a
11945 forward_scope_exit type.
11946 (displaced_step_prepare_throw): Update.
11947 (displaced_step_fixup): Update.
11948
11949 2019-03-06 Tom Tromey <tom@tromey.com>
11950
11951 * inferior.h (class inferior): Update comment.
11952 * gdbthread.h (class thread_info): Update comment.
11953
11954 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11955 Tom Tromey <tom@tromey.com>
11956
11957 * stabsread.h (struct stab_section_list): Remove.
11958 (coffstab_build_psymtabs): Update.
11959 * dbxread.c (symbuf_sections): Now a std::vector.
11960 (sect_idx): New global.
11961 (fill_symbuf): Update.
11962 (coffstab_build_psymtabs): Change type of stabsects parameter.
11963 Update.
11964 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11965 std::vector.
11966 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11967 (coff_locate_sections): Update.
11968 (coff_symfile_read): Remove cleanups. Update.
11969 (init_stringtab): Add storage parameter.
11970 (free_stringtab, free_stringtab_cleanup): Remove.
11971 (init_lineno): Add storage parameter.
11972 (free_linetab, free_linetab_cleanup): Remove.
11973
11974 2019-03-06 Pedro Alves <palves@redhat.com>
11975
11976 * linux-fork.c (fork_info::clobber_regs): Delete.
11977 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11978 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11979 comment. Adjust.
11980 (scoped_switch_fork_info::scoped_switch_fork_info)
11981 (checkpoint_command, linux_fork_context): Adjust
11982 fork_save_infrun_state calls.
11983
11984 2019-03-06 Pedro Alves <palves@redhat.com>
11985
11986 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11987 (inf_has_multiple_threads): Return 'bool' and rewrite using
11988 inferior_info::threads().
11989
11990 2019-03-06 Pedro Alves <palves@redhat.com>
11991
11992 * linux-fork.c: Include <list>.
11993 (fork_list): Now a std::list instance.
11994 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11995 (forks_exist_p, find_last_fork): Adjust.
11996 (new_fork): Delete.
11997 (one_fork_p): New.
11998 (add_fork): Adjust.
11999 (free_fork): Delete, folded into fork_info::~fork_info().
12000 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12001 Adjust.
12002 (init_fork_list): Delete.
12003 (linux_fork_killall, linux_fork_mourn_inferior)
12004 (linux_fork_detach, info_checkpoints_command): Adjust.
12005 (_initialize_linux_fork): No longer call init_fork_list.
12006
12007 2019-03-06 Pedro Alves <palves@redhat.com>
12008
12009 * linux-fork.c (new_fork): New, split out of ...
12010 (add_fork): ... this. Return void. Move "first fork" special
12011 case from here, to ...
12012 (checkpoint_command): ... here.
12013 * linux-linux.h (add_fork): Return void.
12014
12015 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12016
12017 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12018
12019 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12020 Chris January <chris.january@arm.com>
12021 David Lecomber <david.lecomber@arm.com>
12022
12023 * f-exp.y: New token, UNOP_INTRINSIC.
12024 (exp): New pattern using UNOP_INTRINSIC token.
12025 (f77_keywords): Add 'abs' keyword.
12026 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12027 (value_from_host_double): New function.
12028 (evaluate_subexp_f): Support UNOP_ABS.
12029
12030 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12031
12032 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12033 types.
12034
12035 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12036
12037 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12038 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12039 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12040
12041 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12042
12043 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12044
12045 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12046 Chris January <chris.january@arm.com>
12047
12048 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12049 * f-exp.y: Define 'KIND' token.
12050 (exp): New pattern for KIND expressions.
12051 (ptype): Handle types with a kind extension.
12052 (direct_abs_decl): Extend to spot kind extensions.
12053 (f77_keywords): Add 'kind' to the list.
12054 (push_kind_type): New function.
12055 (convert_to_kind_type): New function.
12056 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12057 * parse.c (operator_length_standard): Likewise.
12058 * parser-defs.h (enum type_pieces): Add tp_kind.
12059 * std-operator.def: Add UNOP_KIND.
12060
12061 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12062
12063 * f-exp.y (f_parse): Set yydebug.
12064
12065 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12066
12067 * f-lang.c (evaluate_subexp_f): New function.
12068 (exp_descriptor_f): New global.
12069 (f_language_defn): Use exp_descriptor_f instead of
12070 exp_descriptor_standard.
12071
12072 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12073
12074 * f-exp.y (struct token): Add comments.
12075 (dot_ops): Remove uppercase versions and the end marker.
12076 (f77_keywords): Likewise.
12077 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12078 entries in the dot_ops array are case insensitive, and use
12079 strncasecmp to compare strings. Also some whitespace cleanup in
12080 this area. Similar for the f77_keywords array, except entries in
12081 this list might be case sensitive.
12082
12083 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12084
12085 * f-exp.y (struct f77_boolean_val): Add comments.
12086 (boolean_values): Remove uppercase versions, and end marker.
12087 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12088 and use strncasecmp to achieve case insensitivity. Additionally,
12089 perform whitespace cleanup around this code.
12090
12091 2019-03-06 Tom Tromey <tromey@adacore.com>
12092
12093 * remote-sim.c (gdbsim_target_open): Use result of
12094 gdb_argv::release.
12095
12096 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12097 Dirk Schubert <dirk.schubert@arm.com>
12098 Chris January <chris.january@arm.com>
12099
12100 * eval.c (evaluate_subexp_standard): Call Fortran argument
12101 wrapping logic.
12102 * f-lang.c (struct value): A value which can be passed into a
12103 Fortran function call.
12104 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12105 where appropriate.
12106 (struct type): Value ready for a Fortran function call.
12107 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12108 is needed.
12109 * f-lang.h (fortran_argument_convert): Declaration.
12110 (fortran_preserve_arg_pointer): Declaration.
12111 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12112
12113 2019-03-05 Tom Tromey <tromey@adacore.com>
12114
12115 * python/py-prettyprint.c (print_string_repr): Remove #if.
12116 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12117
12118 2019-03-05 Tom Tromey <tromey@adacore.com>
12119
12120 * target.c (the_dummy_target): Move later. Change type to
12121 "dummy_target".
12122 (initialize_targets): Don't initialize the_dummy_target.
12123
12124 2019-03-05 Tom Tromey <tromey@adacore.com>
12125
12126 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12127 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12128
12129 2019-03-05 Tom Tromey <tromey@adacore.com>
12130
12131 * windows-nat.c (windows_nat_target::attach)
12132 (windows_nat_target::detach): Don't call gdb_flush.
12133 * valprint.c (generic_val_print, val_print, val_print_string):
12134 Don't call gdb_flush.
12135 * utils.c (defaulted_query): Don't call gdb_flush.
12136 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12137 * target.c (target_announce_detach): Don't call gdb_flush.
12138 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12139 * remote.c (extended_remote_target::attach): Don't call
12140 gdb_flush.
12141 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12142 * printcmd.c (do_examine): Don't call gdb_flush.
12143 (info_display_command): Don't call gdb_flush.
12144 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12145 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12146 * memattr.c (info_mem_command): Don't call gdb_flush.
12147 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12148 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12149 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12150 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12151 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12152 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12153 (gnu_nat_target::detach): Don't call gdb_flush.
12154 * f-valprint.c (f_val_print): Don't call gdb_flush.
12155 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12156 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12157 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12158 gdb_flush.
12159 * c-valprint.c (c_val_print): Don't call gdb_flush.
12160 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12161
12162 2019-03-05 Tom Tromey <tromey@adacore.com>
12163
12164 * varobj.c (update_dynamic_varobj_children): Update.
12165 (install_default_visualizer): Use reset, not release.
12166 * value.c (set_internalvar): Update.
12167 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12168 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12169 ATTRIBUTE_UNUSED_RESULT.
12170
12171 2019-03-05 Tom Tromey <tromey@adacore.com>
12172
12173 * remote.c (class scoped_remote_fd) <release>: Add
12174 ATTRIBUTE_UNUSED_RESULT.
12175
12176 2019-03-05 Tom Tromey <tromey@adacore.com>
12177
12178 * macroexp.c (struct macro_buffer) <release>: Add
12179 ATTRIBUTE_UNUSED_RESULT.
12180
12181 2019-03-05 Tom Tromey <tromey@adacore.com>
12182
12183 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12184 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12185 ATTRIBUTE_UNUSED_RESULT.
12186
12187 2019-03-05 Tom Tromey <tromey@adacore.com>
12188
12189 * common/scoped_fd.h (class scoped_fd) <release>: Add
12190 ATTRIBUTE_UNUSED_RESULT.
12191
12192 2019-03-05 Tom Tromey <tromey@adacore.com>
12193
12194 * parser-defs.h (struct parser_state) <release>: Add
12195 ATTRIBUTE_UNUSED_RESULT.
12196
12197 2019-03-05 Tom Tromey <tromey@adacore.com>
12198
12199 * utils.h (class gdb_argv) <release>: Add
12200 ATTRIBUTE_UNUSED_RESULT.
12201 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12202
12203 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12204
12205 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12206 for-loop range, to avoid compiler warnings.
12207
12208 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12209 avoid compiler warnings about unused variables.
12210
12211 * NEWS: Mention end of support for native debugging on MS-Windows
12212 before XP.
12213
12214 PR gdb/24292
12215 * common/netstuff.c:
12216 * gdbserver/gdbreplay.c
12217 * gdbserver/remote-utils.c:
12218 * ser-tcp.c:
12219 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12220 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12221 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12222 'getaddrinfo' and 'freeaddrinfo' were not available before
12223 Windows XP, and mingw.org's MinGW headers by default define
12224 _WIN32_WINNT to 0x500.
12225
12226 2019-03-01 Gary Benson <gbenson@redhat.com>
12227
12228 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12229
12230 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12231 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12232
12233 PR gdb/8527
12234 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12235 set_sigint_trap, clear_sigint_trap.
12236
12237 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12238
12239 * target.c (target_detach): Clear the regcache and the
12240 frame cache.
12241
12242 2019-02-27 Pedro Alves <palves@redhat.com>
12243
12244 * utils.c (set_screen_size): When we cap the height/width sizes,
12245 tweak the corresponding command variable to show "unlimited":
12246
12247 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12248 Pedro Alves <palves@redhat.com>
12249
12250 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12251 before calling rl_set_screen_size.
12252
12253 2019-02-27 Tom Tromey <tromey@adacore.com>
12254
12255 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12256 define.
12257 * python/py-value.c: Remove Python 2.4 workaround.
12258 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12259 workaround.
12260 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12261 Python 2.4 workaround.
12262 * python/python-internal.h: Remove Python 2.4 comment.
12263 (Py_ssize_t): Don't define.
12264 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12265 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12266 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12267 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12268 * python/python.c (do_start_initialization): Remove Python 2.4
12269 workaround.
12270 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12271 (print_children): Remove Python 2.4 workaround.
12272 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12273 workaround.
12274 (CHARBUFFERPROC_NAME): Remove.
12275 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12276 Python 2.4 workaround.
12277
12278 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12279
12280 * NEWS: Note minimum Python version.
12281
12282 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12283
12284 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12285 code from these functions. Remove corresponding ifdefs. Use
12286 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12287 Remove gotos and target of gotos.
12288 (infpy_search_memory): Likewise.
12289
12290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12293 (hppa_gdbarch_init): Don't register deleted functions with
12294 gdbarch.
12295
12296 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12297
12298 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12299 (h8300_unwind_sp): Delete.
12300 (h8300_dummy_id): Delete.
12301 (h8300_gdbarch_init): Don't register deleted functions with
12302 gdbarch.
12303
12304 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12305
12306 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12307 (ft32_unwind_pc): Delete.
12308 (ft32_unwind_sp): Delete.
12309 (ft32_gdbarch_init): Don't register deleted functions with
12310 gdbarch.
12311
12312 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12313
12314 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12315 (frv_unwind_pc): Delete.
12316 (frv_unwind_sp): Delete.
12317 (frv_gdbarch_init): Don't register deleted functions with
12318 gdbarch.
12319
12320 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12321
12322 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12323 (riscv_unwind_pc): Delete.
12324 (riscv_unwind_sp): Delete.
12325 (riscv_gdbarch_init): Don't register deleted functions with
12326 gdbarch.
12327
12328 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12329
12330 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12331 (csky_unwind_pc): Delete.
12332 (csky_unwind_sp): Delete.
12333 (csky_gdbarch_init): Don't register deleted functions with
12334 gdbarch.
12335
12336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12337
12338 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12339 (cris_unwind_pc): Delete.
12340 (cris_unwind_sp): Delete.
12341 (cris_gdbarch_init): Don't register deleted functions with
12342 gdbarch.
12343
12344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12345
12346 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12347 (bfin_unwind_pc): Delete.
12348 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12349
12350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12351
12352 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12353 (arm_unwind_pc): Delete.
12354 (arm_unwind_sp): Delete.
12355 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12356
12357 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12358
12359 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12360 (arc_unwind_pc): Delete.
12361 (arc_unwind_sp): Delete.
12362 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12363
12364 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12365
12366 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12367 (alpha_unwind_pc): Delete.
12368 (alpha_gdbarch_init): Don't register deleted functions with
12369 gdbarch.
12370
12371 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12372
12373 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12374 (aarch64_unwind_pc): Delete.
12375 (aarch64_unwind_sp): Delete.
12376 (aarch64_gdbarch_init): Don't register deleted functions with
12377 gdbarch.
12378
12379 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12380
12381 * gdbtypes.c (type_align): Don't consider static members when
12382 computing structure alignment.
12383
12384 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12385
12386 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12387 return 0 for other types.
12388 * arch-utils.c (default_type_align): Always return 0.
12389 * gdbarch.h: Regenerate.
12390 * gdbarch.sh (type_align): Extend comment.
12391 * gdbtypes.c (type_align): Add additional comments, always call
12392 gdbarch_type_align before applying the default rules.
12393 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12394 generic code will then apply a suitable default.
12395 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12396 types, return 0 for other types.
12397
12398 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12399
12400 * NEWS: Create a new section for the next release branch.
12401 Rename the section of the current branch, now that it has
12402 been cut.
12403
12404 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12405
12406 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12407 * version.in: Bump version to 8.3.50.DATE-git.
12408
12409 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12410
12411 * aix-thread.c (ptid_cmp): Remove unused variable.
12412 (get_signaled_thread): Likewise.
12413 (store_regs_user_thread): Likewise.
12414 (store_regs_kernel_thread): Likewise.
12415 (fetch_regs_kernel_thread): Remove shadowed variable.
12416
12417 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12418
12419 * features/riscv/32bit-cpu.xml: Add register numbers.
12420 * features/riscv/32bit-fpu.c: Regenerate.
12421 * features/riscv/32bit-fpu.xml: Add register numbers.
12422 * features/riscv/64bit-cpu.xml: Add register numbers.
12423 * features/riscv/64bit-fpu.c: Regenerate.
12424 * features/riscv/64bit-fpu.xml: Add register numbers.
12425
12426 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12427
12428 * NEWS: Mention two argument form of gdb.Value constructor.
12429 * python/py-value.c (convert_buffer_and_type_to_value): New
12430 function.
12431 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12432 Add support for handling an optional second argument. Call
12433 convert_buffer_and_type_to_value as appropriate.
12434 * python/python-internal.h (Py_buffer_deleter): New struct.
12435 (Py_buffer_up): New typedef.
12436
12437 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12438
12439 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12440 instead of releasing ownership.
12441
12442 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12443
12444 * dwarf2read.c (open_and_init_dwp_file): Call
12445 elf_numsections instead of bfd_count_sections to initialize
12446 dwp_file->num_sections.
12447
12448 2019-02-25 Tom Tromey <tromey@adacore.com>
12449
12450 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12451
12452 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12453
12454 * gcore.in: Add '--readnever' option when invoking GDB.
12455
12456 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12457
12458 * MAINTAINERS: Update my email address.
12459
12460 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12461
12462 * build-id.c (build_id_to_debug_bfd_1): New function.
12463 (build_id_to_debug_bfd): Look for separate debug file in
12464 sysroot.
12465
12466 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12467
12468 * gdbarch.sh: Update the copyright year range that is placed into
12469 generated files.
12470
12471 2019-02-22 Keith Seitz <keiths@redhat.com>
12472
12473 PR symtab/23853
12474 * linespec.c (create_sals_line_offset): Search for the default
12475 symtab's filename instead of its fullname.
12476
12477 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12478
12479 * NEWS: Update style defaults.
12480
12481 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12482
12483 * main.c (captured_main_1): Disable styling in batch mode.
12484
12485 2019-02-20 Tom Tromey <tom@tromey.com>
12486
12487 * symtab.c (symtab_symbol_info): Fix typos.
12488
12489 2019-02-20 Tom Tromey <tromey@adacore.com>
12490
12491 * findcmd.c (_initialize_mem_search): Use upper case for
12492 metasyntactic variables.
12493
12494 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12495
12496 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12497 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12498
12499 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12500
12501 * top.h (source_file_name): Change to std::string.
12502 * top.c (source_file_name): Likewise.
12503 (command_line_input): Adjust.
12504 * cli/cli-script.c (script_from_file): Adjust.
12505
12506 2019-02-19 Tom Tromey <tromey@adacore.com>
12507
12508 * ravenscar-thread.c
12509 (ravenscar_thread_target::update_thread_list): Don't call
12510 ada_build_task_list.
12511 * ada-lang.h (ada_build_task_list): Don't declare.
12512 * ada-tasks.c (struct ada_tasks_inferior_data)
12513 <task_list_valid_p>: Now bool.
12514 (read_known_tasks, ada_task_list_changed)
12515 (ada_tasks_invalidate_inferior_data): Update.
12516 (read_known_tasks_array): Return bool.
12517 (read_known_tasks_list): Likewise.
12518 (read_known_tasks): Return void.
12519 (ada_build_task_list): Now static.
12520
12521 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12522
12523 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12524 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12525
12526 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12527
12528 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12529 variant for ada_tasks_pspace_data_handle and
12530 ada_tasks_inferior_data_handle.
12531 (ada_tasks_pspace_data_cleanup): New function.
12532 (ada_tasks_inferior_data_cleanup): New function.
12533
12534 2019-02-17 Tom Tromey <tom@tromey.com>
12535
12536 * macrotab.h (macro_source_fullname): Return a std::string.
12537 * macrotab.c (macro_include, check_for_redefinition)
12538 (macro_undef, macro_lookup_definition, foreach_macro)
12539 (foreach_macro_in_scope): Update.
12540 (macro_source_fullname): Return a std::string.
12541 * macrocmd.c (show_pp_source_pos): Update.
12542
12543 2019-02-17 Tom Tromey <tom@tromey.com>
12544
12545 * macrocmd.c (show_pp_source_pos): Style the file names.
12546
12547 2019-02-17 Tom Tromey <tom@tromey.com>
12548
12549 PR tui/24197:
12550 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12551
12552 2019-02-17 Tom Tromey <tom@tromey.com>
12553
12554 * ada-lang.c (user_select_syms): Use filtered printing.
12555 * utils.c (wrap_style): New global.
12556 (desired_style): Remove.
12557 (emit_style_escape): Add stream parameter.
12558 (set_output_style, reset_terminal_style, prompt_for_continue):
12559 Update.
12560 (flush_wrap_buffer): Only flush gdb_stdout.
12561 (wrap_here): Set wrap_style.
12562 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12563 treat escape sequences as a character. Change when wrap buffer is
12564 flushed.
12565 (fputs_styled): Do not set the output style when the default is
12566 requested.
12567 * ui-style.h (struct ui_file_style) <is_default>: New method.
12568 * source.c (print_source_lines_base): Emit escape sequences in one
12569 piece.
12570
12571 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12572
12573 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12574 integers and enumeration types.
12575
12576 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12577
12578 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12579 instead of lookup_symbol_in_language
12580 (do_exact_match): New function.
12581 (ada_get_symbol_name_matcher): Return do_exact_match when
12582 doing a verbatim match.
12583
12584 2019-02-15 Tom Tromey <tromey@adacore.com>
12585
12586 * ravenscar-thread.c (ravenscar_thread_target::resume)
12587 (ravenscar_thread_target::wait): Special case wildcard requests.
12588
12589 2019-02-15 Tom Tromey <tromey@adacore.com>
12590
12591 * ravenscar-thread.c (base_ptid): Remove.
12592 (struct ravenscar_thread_target) <close>: New method.
12593 <m_base_ptid>: New member.
12594 <update_inferior_ptid, active_task, task_is_currently_active,
12595 runtime_initialized>: Declare methods.
12596 <ravenscar_thread_target>: Add constructor.
12597 (ravenscar_thread_target::task_is_currently_active)
12598 (ravenscar_thread_target::update_inferior_ptid)
12599 (ravenscar_runtime_initialized): Rename. Now methods.
12600 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12601 (ravenscar_thread_target::update_thread_list): Update.
12602 (ravenscar_thread_target::active_task): Now method.
12603 (ravenscar_thread_target::store_registers)
12604 (ravenscar_thread_target::prepare_to_store)
12605 (ravenscar_thread_target::prepare_to_store)
12606 (ravenscar_thread_target::mourn_inferior): Update.
12607 (ravenscar_inferior_created): Use "new" to create target.
12608 (ravenscar_thread_target::get_ada_task_ptid): Update.
12609 (_initialize_ravenscar): Don't initialize base_ptid.
12610 (ravenscar_ops): Remove global.
12611
12612 2019-02-15 Tom Tromey <tromey@adacore.com>
12613
12614 * target.h (push_target): Declare new overload.
12615 * target.c (push_target): New overload, taking an rvalue reference.
12616 * remote.c (remote_target::open_1): Use push_target overload.
12617 * corelow.c (core_target_open): Use push_target overload.
12618
12619 2019-02-15 Tom Tromey <tromey@adacore.com>
12620
12621 * ravenscar-thread.c (is_ravenscar_task)
12622 (ravenscar_task_is_currently_active): Return bool.
12623 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12624 (_initialize_ravenscar): Remove "(void)".
12625 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12626 Return bool.
12627
12628 2019-02-15 Tom Tromey <tromey@adacore.com>
12629
12630 * ravenscar-thread.c (ravenscar_runtime_initializer)
12631 (has_ravenscar_runtime, get_running_thread_id)
12632 (ravenscar_thread_target::resume): Fix indentation.
12633
12634 2019-02-15 Tom Tromey <tromey@adacore.com>
12635
12636 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12637 from ravenscar_arch_ops.
12638 (sparc_ravenscar_ops::fetch_registers)
12639 (sparc_ravenscar_ops::store_registers): Now methods.
12640 (sparc_ravenscar_prepare_to_store): Remove.
12641 (sparc_ravenscar_ops): Redefine.
12642 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12643 methods and destructor. Remove members.
12644 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12645 (ravenscar_thread_target::store_registers)
12646 (ravenscar_thread_target::prepare_to_store): Update.
12647 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12648 Remove.
12649 (struct ppc_ravenscar_powerpc_ops): Derive from
12650 ravenscar_arch_ops.
12651 (ppc_ravenscar_powerpc_ops::fetch_registers)
12652 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12653 (ppc_ravenscar_powerpc_ops): Redefine.
12654 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12655 (ppc_ravenscar_e500_ops::fetch_registers)
12656 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12657 (ppc_ravenscar_e500_ops): Redefine.
12658 * aarch64-ravenscar-thread.c
12659 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12660 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12661 (aarch64_ravenscar_fetch_registers)
12662 (aarch64_ravenscar_store_registers): Now methods.
12663 (aarch64_ravenscar_ops): Redefine.
12664
12665 2019-02-15 Tom Tromey <tromey@adacore.com>
12666
12667 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12668 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12669 (ravenscar_thread_target::stopped_by_watchpoint)
12670 (ravenscar_thread_target::stopped_data_address)
12671 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12672
12673 2019-02-15 Tom Tromey <tromey@adacore.com>
12674
12675 * ravenscar-thread.c: Fix some typos.
12676
12677 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12678 Tom Tromey <tromey@adacore.com>
12679
12680 * ada-lang.c (ada_exception_sal): Change addr_string to a
12681 std::string.
12682 (create_ada_exception_catchpoint): Update.
12683
12684 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12685 Tom Tromey <tromey@adacore.com>
12686
12687 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12688 (bp_location_ops): Remove.
12689 (base_breakpoint_allocate_location): Update.
12690 (free_bp_location): Update.
12691 * ada-lang.c (class ada_catchpoint_location)
12692 <ada_catchpoint_location>: Remove ops parameter.
12693 (ada_catchpoint_location_dtor): Remove.
12694 (ada_catchpoint_location_ops): Remove.
12695 (allocate_location_exception): Update.
12696 * breakpoint.h (struct bp_location_ops): Remove.
12697 (class bp_location) <bp_location>: Remove bp_location_ops
12698 parameter.
12699 <~bp_location>: Add destructor.
12700 <ops>: Remove.
12701
12702 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12703 Pedro Alves <palves@redhat.com>
12704
12705 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12706 'PATH_MAX'.
12707
12708 2019-02-14 David Michael <fedora.dm0@gmail.com>
12709 Samuel Thibault <samuel.thibault@gnu.org>
12710 Thomas Schwinge <thomas@codesourcery.com>
12711
12712 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12713 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12714
12715 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12716
12717 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12718 (check_empty): Use "const char *".
12719
12720 * gnu-nat.c (gnu_nat_target::detach): Instead of
12721 'detach_inferior (pid)' call
12722 'detach_inferior (find_inferior_pid (pid))'.
12723
12724 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12725 'nat/fork-inferior.o'.
12726 * gnu-nat.c: #include "nat/fork-inferior.h".
12727
12728 * gnu-nat.c (gnu_nat_target::detach): Instead of
12729 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12730 * gnu-nat.h: #include "inf-child.h".
12731 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12732 'i386_gnu_nat_target::fetch_registers'.
12733 (gnu_store_registers): Rename/move to
12734 'i386_gnu_nat_target::store_registers'.
12735
12736 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12737 * gnu-nat.h (mach_thread_info): New function.
12738 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12739
12740 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12741
12742 2019-02-14 Frederic Konrad <konrad@adacore.com>
12743
12744 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12745
12746 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12747
12748 * windows-nat.c (windows_add_thread): Add new parameter
12749 "main_thread_p" with default value set to false. Update
12750 function documentation as well as all callers.
12751 (windows_delete_thread): Likewise.
12752 (fake_create_process): Update call to windows_add_thread.
12753 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12754 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12755 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12756 call to windows_delete_thread.
12757
12758 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12759
12760 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12761
12762 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12763
12764 * symfile.c (find_separate_debug_file): Use canonical path of
12765 sysroot with child_path instead of gdb_sysroot if it is valid.
12766
12767 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12768
12769 * symfile.c (find_separate_debug_file): Use child_path to
12770 determine if an object file is under a sysroot.
12771
12772 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12773
12774 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12775 unittests/child-path-selftests.c.
12776 * common/pathstuff.c (child_path): New function.
12777 * common/pathstuff.h (child_path): New prototype.
12778 * unittests/child-path-selftests.c: New file.
12779
12780 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12781
12782 * symfile.c (find_separate_debug_file): Look for separate debug
12783 files in debug directories under the sysroot.
12784
12785 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12786
12787 * symtab.h (struct minimal_symbol data_p): New const method.
12788 (struct minimal_symbol text_p): Likewise.
12789 * symtab.c (output_source_filename): Use file name style
12790 to print file name.
12791 (print_symbol_info): Likewise.
12792 (print_msymbol_info): Use address style to print addresses.
12793 Use function name style to print executable text symbols.
12794 (expand_symtab_containing_pc): Use data_p.
12795 (find_pc_sect_compunit_symtab): Likewise.
12796
12797 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12798
12799 * breakpoint.c (describe_other_breakpoints): Use address style
12800 to print addresses.
12801 (say_where): Likewise.
12802
12803 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12804
12805 * ada-typeprint.c (print_func_type): Print function name
12806 style to print function name.
12807 * c-typeprint.c (c_print_type_1): Likewise.
12808
12809 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12810
12811 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12812 for execve.
12813
12814 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12815
12816 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12817 type_stack.
12818
12819 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12820
12821 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12822 TYPE_CODE_REF types.
12823
12824 2019-02-08 Jim Wilson <jimw@sifive.com>
12825
12826 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12827 (riscv_linux_fregset): New.
12828 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12829
12830 2019-02-07 Tom Tromey <tom@tromey.com>
12831
12832 * thread.c (thread_cancel_execution_command): Update.
12833 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12834 methods.
12835 (struct thread_fsm_ops): Remove.
12836 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12837 (thread_fsm_should_stop, thread_fsm_return_value)
12838 (thread_fsm_set_finished, thread_fsm_finished_p)
12839 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12840 Don't declare.
12841 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12842 * infrun.c (clear_proceed_status_thread)
12843 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12844 (print_stop_event): Update.
12845 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12846 Add constructor.
12847 (step_command_fsm_ops): Remove.
12848 (new_step_command_fsm): Remove.
12849 (step_1): Update.
12850 (step_command_fsm::should_stop): Rename from
12851 step_command_fsm_should_stop.
12852 (step_command_fsm::clean_up): Rename from
12853 step_command_fsm_clean_up.
12854 (step_command_fsm::do_async_reply_reason): Rename from
12855 step_command_fsm_async_reply_reason.
12856 (struct until_next_fsm): Inherit from thread_fsm. Add
12857 constructor.
12858 (until_next_fsm_ops): Remove.
12859 (new_until_next_fsm): Remove.
12860 (until_next_fsm::should_stop): Rename from
12861 until_next_fsm_should_stop.
12862 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12863 (until_next_fsm::do_async_reply_reason): Rename from
12864 until_next_fsm_async_reply_reason.
12865 (struct finish_command_fsm): Inherit from thread_fsm. Add
12866 constructor. Change type of breakpoint.
12867 (finish_command_fsm_ops): Remove.
12868 (new_finish_command_fsm): Remove.
12869 (finish_command_fsm::should_stop): Rename from
12870 finish_command_fsm_should_stop.
12871 (finish_command_fsm::clean_up): Rename from
12872 finish_command_fsm_clean_up.
12873 (finish_command_fsm::return_value): Rename from
12874 finish_command_fsm_return_value.
12875 (finish_command_fsm::do_async_reply_reason): Rename from
12876 finish_command_fsm_async_reply_reason.
12877 (finish_command): Update.
12878 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12879 Add constructor.
12880 (call_thread_fsm_ops): Remove.
12881 (call_thread_fsm::call_thread_fsm): Rename from
12882 new_call_thread_fsm.
12883 (call_thread_fsm::should_stop): Rename from
12884 call_thread_fsm_should_stop.
12885 (call_thread_fsm::should_notify_stop): Rename from
12886 call_thread_fsm_should_notify_stop.
12887 (run_inferior_call, call_function_by_hand_dummy): Update.
12888 * cli/cli-interp.c (should_print_stop_to_console): Update.
12889 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12890 Add constructor. Change type of location_breakpoint,
12891 caller_breakpoint.
12892 (until_break_fsm_ops): Remove.
12893 (new_until_break_fsm): Remove.
12894 (until_break_fsm::should_stop): Rename from
12895 until_break_fsm_should_stop.
12896 (until_break_fsm::clean_up): Rename from
12897 until_break_fsm_clean_up.
12898 (until_break_fsm::do_async_reply_reason): Rename from
12899 until_break_fsm_async_reply_reason.
12900 (until_break_command): Update.
12901 * thread-fsm.c: Remove.
12902 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12903
12904 2019-02-07 Tom Tromey <tom@tromey.com>
12905
12906 * yy-remap.h: Add include guard.
12907 * xtensa-tdep.h: Add include guard.
12908 * xcoffread.h: Rename include guard.
12909 * varobj-iter.h: Add include guard.
12910 * tui/tui.h: Rename include guard.
12911 * tui/tui-winsource.h: Rename include guard.
12912 * tui/tui-wingeneral.h: Rename include guard.
12913 * tui/tui-windata.h: Rename include guard.
12914 * tui/tui-win.h: Rename include guard.
12915 * tui/tui-stack.h: Rename include guard.
12916 * tui/tui-source.h: Rename include guard.
12917 * tui/tui-regs.h: Rename include guard.
12918 * tui/tui-out.h: Rename include guard.
12919 * tui/tui-layout.h: Rename include guard.
12920 * tui/tui-io.h: Rename include guard.
12921 * tui/tui-hooks.h: Rename include guard.
12922 * tui/tui-file.h: Rename include guard.
12923 * tui/tui-disasm.h: Rename include guard.
12924 * tui/tui-data.h: Rename include guard.
12925 * tui/tui-command.h: Rename include guard.
12926 * tic6x-tdep.h: Add include guard.
12927 * target/waitstatus.h: Rename include guard.
12928 * target/wait.h: Rename include guard.
12929 * target/target.h: Rename include guard.
12930 * target/resume.h: Rename include guard.
12931 * target-float.h: Rename include guard.
12932 * stabsread.h: Add include guard.
12933 * rs6000-tdep.h: Add include guard.
12934 * riscv-fbsd-tdep.h: Add include guard.
12935 * regformats/regdef.h: Rename include guard.
12936 * record.h: Rename include guard.
12937 * python/python.h: Rename include guard.
12938 * python/python-internal.h: Rename include guard.
12939 * python/py-stopevent.h: Rename include guard.
12940 * python/py-ref.h: Rename include guard.
12941 * python/py-record.h: Rename include guard.
12942 * python/py-record-full.h: Rename include guard.
12943 * python/py-record-btrace.h: Rename include guard.
12944 * python/py-instruction.h: Rename include guard.
12945 * python/py-events.h: Rename include guard.
12946 * python/py-event.h: Rename include guard.
12947 * procfs.h: Add include guard.
12948 * proc-utils.h: Add include guard.
12949 * p-lang.h: Add include guard.
12950 * or1k-tdep.h: Rename include guard.
12951 * observable.h: Rename include guard.
12952 * nto-tdep.h: Rename include guard.
12953 * nat/x86-linux.h: Rename include guard.
12954 * nat/x86-linux-dregs.h: Rename include guard.
12955 * nat/x86-gcc-cpuid.h: Add include guard.
12956 * nat/x86-dregs.h: Rename include guard.
12957 * nat/x86-cpuid.h: Rename include guard.
12958 * nat/ppc-linux.h: Rename include guard.
12959 * nat/mips-linux-watch.h: Rename include guard.
12960 * nat/linux-waitpid.h: Rename include guard.
12961 * nat/linux-ptrace.h: Rename include guard.
12962 * nat/linux-procfs.h: Rename include guard.
12963 * nat/linux-osdata.h: Rename include guard.
12964 * nat/linux-nat.h: Rename include guard.
12965 * nat/linux-namespaces.h: Rename include guard.
12966 * nat/linux-btrace.h: Rename include guard.
12967 * nat/glibc_thread_db.h: Rename include guard.
12968 * nat/gdb_thread_db.h: Rename include guard.
12969 * nat/gdb_ptrace.h: Rename include guard.
12970 * nat/fork-inferior.h: Rename include guard.
12971 * nat/amd64-linux-siginfo.h: Rename include guard.
12972 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12973 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12974 * nat/aarch64-linux.h: Rename include guard.
12975 * nat/aarch64-linux-hw-point.h: Rename include guard.
12976 * mn10300-tdep.h: Add include guard.
12977 * mips-linux-tdep.h: Add include guard.
12978 * mi/mi-parse.h: Rename include guard.
12979 * mi/mi-out.h: Rename include guard.
12980 * mi/mi-main.h: Rename include guard.
12981 * mi/mi-interp.h: Rename include guard.
12982 * mi/mi-getopt.h: Rename include guard.
12983 * mi/mi-console.h: Rename include guard.
12984 * mi/mi-common.h: Rename include guard.
12985 * mi/mi-cmds.h: Rename include guard.
12986 * mi/mi-cmd-break.h: Rename include guard.
12987 * m2-lang.h: Add include guard.
12988 * location.h: Rename include guard.
12989 * linux-record.h: Rename include guard.
12990 * linux-nat.h: Add include guard.
12991 * linux-fork.h: Add include guard.
12992 * i386-darwin-tdep.h: Rename include guard.
12993 * hppa-linux-offsets.h: Add include guard.
12994 * guile/guile.h: Rename include guard.
12995 * guile/guile-internal.h: Rename include guard.
12996 * gnu-nat.h: Rename include guard.
12997 * gdb-stabs.h: Rename include guard.
12998 * frv-tdep.h: Add include guard.
12999 * f-lang.h: Add include guard.
13000 * event-loop.h: Add include guard.
13001 * darwin-nat.h: Rename include guard.
13002 * cp-abi.h: Rename include guard.
13003 * config/sparc/nm-sol2.h: Rename include guard.
13004 * config/nm-nto.h: Rename include guard.
13005 * config/nm-linux.h: Add include guard.
13006 * config/i386/nm-i386gnu.h: Rename include guard.
13007 * config/djgpp/nl_types.h: Rename include guard.
13008 * config/djgpp/langinfo.h: Rename include guard.
13009 * compile/gcc-cp-plugin.h: Add include guard.
13010 * compile/gcc-c-plugin.h: Add include guard.
13011 * compile/compile.h: Rename include guard.
13012 * compile/compile-object-run.h: Rename include guard.
13013 * compile/compile-object-load.h: Rename include guard.
13014 * compile/compile-internal.h: Rename include guard.
13015 * compile/compile-cplus.h: Rename include guard.
13016 * compile/compile-c.h: Rename include guard.
13017 * common/xml-utils.h: Rename include guard.
13018 * common/x86-xstate.h: Rename include guard.
13019 * common/version.h: Rename include guard.
13020 * common/vec.h: Rename include guard.
13021 * common/tdesc.h: Rename include guard.
13022 * common/selftest.h: Rename include guard.
13023 * common/scoped_restore.h: Rename include guard.
13024 * common/scoped_mmap.h: Rename include guard.
13025 * common/scoped_fd.h: Rename include guard.
13026 * common/safe-iterator.h: Rename include guard.
13027 * common/run-time-clock.h: Rename include guard.
13028 * common/refcounted-object.h: Rename include guard.
13029 * common/queue.h: Rename include guard.
13030 * common/ptid.h: Rename include guard.
13031 * common/print-utils.h: Rename include guard.
13032 * common/preprocessor.h: Rename include guard.
13033 * common/pathstuff.h: Rename include guard.
13034 * common/observable.h: Rename include guard.
13035 * common/netstuff.h: Rename include guard.
13036 * common/job-control.h: Rename include guard.
13037 * common/host-defs.h: Rename include guard.
13038 * common/gdb_wait.h: Rename include guard.
13039 * common/gdb_vecs.h: Rename include guard.
13040 * common/gdb_unlinker.h: Rename include guard.
13041 * common/gdb_unique_ptr.h: Rename include guard.
13042 * common/gdb_tilde_expand.h: Rename include guard.
13043 * common/gdb_sys_time.h: Rename include guard.
13044 * common/gdb_string_view.h: Rename include guard.
13045 * common/gdb_splay_tree.h: Rename include guard.
13046 * common/gdb_setjmp.h: Rename include guard.
13047 * common/gdb_ref_ptr.h: Rename include guard.
13048 * common/gdb_optional.h: Rename include guard.
13049 * common/gdb_locale.h: Rename include guard.
13050 * common/gdb_assert.h: Rename include guard.
13051 * common/filtered-iterator.h: Rename include guard.
13052 * common/filestuff.h: Rename include guard.
13053 * common/fileio.h: Rename include guard.
13054 * common/environ.h: Rename include guard.
13055 * common/common-utils.h: Rename include guard.
13056 * common/common-types.h: Rename include guard.
13057 * common/common-regcache.h: Rename include guard.
13058 * common/common-inferior.h: Rename include guard.
13059 * common/common-gdbthread.h: Rename include guard.
13060 * common/common-exceptions.h: Rename include guard.
13061 * common/common-defs.h: Rename include guard.
13062 * common/common-debug.h: Rename include guard.
13063 * common/cleanups.h: Rename include guard.
13064 * common/buffer.h: Rename include guard.
13065 * common/btrace-common.h: Rename include guard.
13066 * common/break-common.h: Rename include guard.
13067 * cli/cli-utils.h: Rename include guard.
13068 * cli/cli-style.h: Rename include guard.
13069 * cli/cli-setshow.h: Rename include guard.
13070 * cli/cli-script.h: Rename include guard.
13071 * cli/cli-interp.h: Rename include guard.
13072 * cli/cli-decode.h: Rename include guard.
13073 * cli/cli-cmds.h: Rename include guard.
13074 * charset-list.h: Add include guard.
13075 * buildsym-legacy.h: Rename include guard.
13076 * bfin-tdep.h: Add include guard.
13077 * ax.h: Rename include guard.
13078 * arm-linux-tdep.h: Add include guard.
13079 * arm-fbsd-tdep.h: Add include guard.
13080 * arch/xtensa.h: Rename include guard.
13081 * arch/tic6x.h: Add include guard.
13082 * arch/i386.h: Add include guard.
13083 * arch/arm.h: Rename include guard.
13084 * arch/arm-linux.h: Rename include guard.
13085 * arch/arm-get-next-pcs.h: Rename include guard.
13086 * arch/amd64.h: Add include guard.
13087 * arch/aarch64-insn.h: Rename include guard.
13088 * arch-utils.h: Rename include guard.
13089 * annotate.h: Add include guard.
13090 * amd64-darwin-tdep.h: Rename include guard.
13091 * aarch64-linux-tdep.h: Add include guard.
13092 * aarch64-fbsd-tdep.h: Add include guard.
13093 * aarch32-linux-nat.h: Add include guard.
13094
13095 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13096
13097 * macrotab.c (macro_define_internal): New function that
13098 factorizes macro_define_object_internal and macro_define_function
13099 code.
13100 (macro_define_object_internal): Use macro_define_internal.
13101 (macro_define_function): Likewise.
13102
13103 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13104
13105 * macrocmd.c (extract_identifier): Return
13106 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13107 callers.
13108
13109 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13110
13111 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13112
13113 2019-02-05 Tom Tromey <tom@tromey.com>
13114
13115 * target.c (target_stack::unpush): Move assertion earlier.
13116
13117 2019-01-30 Tom Tromey <tom@tromey.com>
13118
13119 PR python/23615:
13120 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13121 (gdbpy_parse_and_eval): Likewise.
13122 * python/python-internal.h (gdbpy_allow_threads): New class.
13123
13124 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13125
13126 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13127 (aarch64_fbsd_fpregmap): Move earlier.
13128 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13129 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13130 instead of individual calls to trad_frame_set_reg_addr.
13131 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13132 earlier.
13133 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13134 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13135 instead of individual calls to trad_frame_set_reg_addr.
13136
13137 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13138
13139 * CONTRIBUTE: Replace contribution list with wiki link.
13140
13141 2019-01-25 Tom Tromey <tom@tromey.com>
13142
13143 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13144
13145 2019-01-25 Tom Tromey <tom@tromey.com>
13146
13147 * xtensa-linux-nat.c: Fix common/ includes.
13148 * xml-support.h: Fix common/ includes.
13149 * xml-support.c: Fix common/ includes.
13150 * x86-linux-nat.c: Fix common/ includes.
13151 * windows-nat.c: Fix common/ includes.
13152 * varobj.h: Fix common/ includes.
13153 * varobj.c: Fix common/ includes.
13154 * value.c: Fix common/ includes.
13155 * valops.c: Fix common/ includes.
13156 * utils.c: Fix common/ includes.
13157 * unittests/xml-utils-selftests.c: Fix common/ includes.
13158 * unittests/utils-selftests.c: Fix common/ includes.
13159 * unittests/unpack-selftests.c: Fix common/ includes.
13160 * unittests/tracepoint-selftests.c: Fix common/ includes.
13161 * unittests/style-selftests.c: Fix common/ includes.
13162 * unittests/string_view-selftests.c: Fix common/ includes.
13163 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13164 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13165 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13166 * unittests/rsp-low-selftests.c: Fix common/ includes.
13167 * unittests/parse-connection-spec-selftests.c: Fix common/
13168 includes.
13169 * unittests/optional-selftests.c: Fix common/ includes.
13170 * unittests/offset-type-selftests.c: Fix common/ includes.
13171 * unittests/observable-selftests.c: Fix common/ includes.
13172 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13173 * unittests/memrange-selftests.c: Fix common/ includes.
13174 * unittests/memory-map-selftests.c: Fix common/ includes.
13175 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13176 * unittests/function-view-selftests.c: Fix common/ includes.
13177 * unittests/environ-selftests.c: Fix common/ includes.
13178 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13179 * unittests/common-utils-selftests.c: Fix common/ includes.
13180 * unittests/cli-utils-selftests.c: Fix common/ includes.
13181 * unittests/array-view-selftests.c: Fix common/ includes.
13182 * ui-file.c: Fix common/ includes.
13183 * tui/tui-io.c: Fix common/ includes.
13184 * tracepoint.h: Fix common/ includes.
13185 * tracepoint.c: Fix common/ includes.
13186 * tracefile-tfile.c: Fix common/ includes.
13187 * top.h: Fix common/ includes.
13188 * top.c: Fix common/ includes.
13189 * thread.c: Fix common/ includes.
13190 * target/waitstatus.h: Fix common/ includes.
13191 * target/waitstatus.c: Fix common/ includes.
13192 * target.h: Fix common/ includes.
13193 * target.c: Fix common/ includes.
13194 * target-memory.c: Fix common/ includes.
13195 * target-descriptions.c: Fix common/ includes.
13196 * symtab.h: Fix common/ includes.
13197 * symfile.c: Fix common/ includes.
13198 * stap-probe.c: Fix common/ includes.
13199 * spu-linux-nat.c: Fix common/ includes.
13200 * sparc-nat.c: Fix common/ includes.
13201 * source.c: Fix common/ includes.
13202 * solib.c: Fix common/ includes.
13203 * solib-target.c: Fix common/ includes.
13204 * ser-unix.c: Fix common/ includes.
13205 * ser-tcp.c: Fix common/ includes.
13206 * ser-pipe.c: Fix common/ includes.
13207 * ser-base.c: Fix common/ includes.
13208 * selftest-arch.c: Fix common/ includes.
13209 * s12z-tdep.c: Fix common/ includes.
13210 * rust-exp.y: Fix common/ includes.
13211 * rs6000-aix-tdep.c: Fix common/ includes.
13212 * riscv-tdep.c: Fix common/ includes.
13213 * remote.c: Fix common/ includes.
13214 * remote-notif.h: Fix common/ includes.
13215 * remote-fileio.h: Fix common/ includes.
13216 * remote-fileio.c: Fix common/ includes.
13217 * regcache.h: Fix common/ includes.
13218 * regcache.c: Fix common/ includes.
13219 * record-btrace.c: Fix common/ includes.
13220 * python/python.c: Fix common/ includes.
13221 * python/py-type.c: Fix common/ includes.
13222 * python/py-inferior.c: Fix common/ includes.
13223 * progspace.h: Fix common/ includes.
13224 * producer.c: Fix common/ includes.
13225 * procfs.c: Fix common/ includes.
13226 * proc-api.c: Fix common/ includes.
13227 * printcmd.c: Fix common/ includes.
13228 * ppc-linux-nat.c: Fix common/ includes.
13229 * parser-defs.h: Fix common/ includes.
13230 * osdata.c: Fix common/ includes.
13231 * obsd-nat.c: Fix common/ includes.
13232 * nat/x86-linux.c: Fix common/ includes.
13233 * nat/x86-linux-dregs.c: Fix common/ includes.
13234 * nat/x86-dregs.h: Fix common/ includes.
13235 * nat/x86-dregs.c: Fix common/ includes.
13236 * nat/ppc-linux.c: Fix common/ includes.
13237 * nat/mips-linux-watch.h: Fix common/ includes.
13238 * nat/mips-linux-watch.c: Fix common/ includes.
13239 * nat/linux-waitpid.c: Fix common/ includes.
13240 * nat/linux-ptrace.h: Fix common/ includes.
13241 * nat/linux-ptrace.c: Fix common/ includes.
13242 * nat/linux-procfs.c: Fix common/ includes.
13243 * nat/linux-personality.c: Fix common/ includes.
13244 * nat/linux-osdata.c: Fix common/ includes.
13245 * nat/linux-namespaces.c: Fix common/ includes.
13246 * nat/linux-btrace.h: Fix common/ includes.
13247 * nat/linux-btrace.c: Fix common/ includes.
13248 * nat/fork-inferior.c: Fix common/ includes.
13249 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13250 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13251 * nat/aarch64-linux.c: Fix common/ includes.
13252 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13253 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13254 * namespace.h: Fix common/ includes.
13255 * mips-linux-tdep.c: Fix common/ includes.
13256 * minsyms.c: Fix common/ includes.
13257 * mi/mi-parse.h: Fix common/ includes.
13258 * mi/mi-main.c: Fix common/ includes.
13259 * mi/mi-cmd-env.c: Fix common/ includes.
13260 * memrange.h: Fix common/ includes.
13261 * memattr.c: Fix common/ includes.
13262 * maint.h: Fix common/ includes.
13263 * maint.c: Fix common/ includes.
13264 * main.c: Fix common/ includes.
13265 * machoread.c: Fix common/ includes.
13266 * location.c: Fix common/ includes.
13267 * linux-thread-db.c: Fix common/ includes.
13268 * linux-nat.c: Fix common/ includes.
13269 * linux-fork.c: Fix common/ includes.
13270 * inline-frame.c: Fix common/ includes.
13271 * infrun.c: Fix common/ includes.
13272 * inflow.c: Fix common/ includes.
13273 * inferior.h: Fix common/ includes.
13274 * inferior.c: Fix common/ includes.
13275 * infcmd.c: Fix common/ includes.
13276 * inf-ptrace.c: Fix common/ includes.
13277 * inf-child.c: Fix common/ includes.
13278 * ia64-linux-nat.c: Fix common/ includes.
13279 * i387-tdep.c: Fix common/ includes.
13280 * i386-tdep.c: Fix common/ includes.
13281 * i386-linux-tdep.c: Fix common/ includes.
13282 * i386-linux-nat.c: Fix common/ includes.
13283 * i386-go32-tdep.c: Fix common/ includes.
13284 * i386-fbsd-tdep.c: Fix common/ includes.
13285 * i386-fbsd-nat.c: Fix common/ includes.
13286 * guile/scm-type.c: Fix common/ includes.
13287 * guile/guile.c: Fix common/ includes.
13288 * go32-nat.c: Fix common/ includes.
13289 * gnu-nat.c: Fix common/ includes.
13290 * gdbthread.h: Fix common/ includes.
13291 * gdbarch-selftests.c: Fix common/ includes.
13292 * gdb_usleep.c: Fix common/ includes.
13293 * gdb_select.h: Fix common/ includes.
13294 * gdb_bfd.c: Fix common/ includes.
13295 * gcore.c: Fix common/ includes.
13296 * fork-child.c: Fix common/ includes.
13297 * findvar.c: Fix common/ includes.
13298 * fbsd-nat.c: Fix common/ includes.
13299 * event-top.c: Fix common/ includes.
13300 * event-loop.c: Fix common/ includes.
13301 * dwarf2read.c: Fix common/ includes.
13302 * dwarf2loc.c: Fix common/ includes.
13303 * dwarf2-frame.c: Fix common/ includes.
13304 * dwarf-index-cache.c: Fix common/ includes.
13305 * dtrace-probe.c: Fix common/ includes.
13306 * disasm-selftests.c: Fix common/ includes.
13307 * defs.h: Fix common/ includes.
13308 * csky-tdep.c: Fix common/ includes.
13309 * cp-valprint.c: Fix common/ includes.
13310 * cp-support.h: Fix common/ includes.
13311 * cp-support.c: Fix common/ includes.
13312 * corelow.c: Fix common/ includes.
13313 * completer.h: Fix common/ includes.
13314 * completer.c: Fix common/ includes.
13315 * compile/compile.c: Fix common/ includes.
13316 * compile/compile-loc2c.c: Fix common/ includes.
13317 * compile/compile-cplus-types.c: Fix common/ includes.
13318 * compile/compile-cplus-symbols.c: Fix common/ includes.
13319 * command.h: Fix common/ includes.
13320 * cli/cli-dump.c: Fix common/ includes.
13321 * cli/cli-cmds.c: Fix common/ includes.
13322 * charset.c: Fix common/ includes.
13323 * build-id.c: Fix common/ includes.
13324 * btrace.h: Fix common/ includes.
13325 * btrace.c: Fix common/ includes.
13326 * breakpoint.h: Fix common/ includes.
13327 * breakpoint.c: Fix common/ includes.
13328 * ax.h:
13329 (enum agent_op): Fix common/ includes.
13330 * ax-general.c (struct aop_map): Fix common/ includes.
13331 * ax-gdb.c: Fix common/ includes.
13332 * auxv.c: Fix common/ includes.
13333 * auto-load.c: Fix common/ includes.
13334 * arm-tdep.c: Fix common/ includes.
13335 * arch/riscv.c: Fix common/ includes.
13336 * arch/ppc-linux-common.c: Fix common/ includes.
13337 * arch/i386.c: Fix common/ includes.
13338 * arch/arm.c: Fix common/ includes.
13339 * arch/arm-linux.c: Fix common/ includes.
13340 * arch/arm-get-next-pcs.c: Fix common/ includes.
13341 * arch/amd64.c: Fix common/ includes.
13342 * arch/aarch64.c: Fix common/ includes.
13343 * arch/aarch64-insn.c: Fix common/ includes.
13344 * arch-utils.c: Fix common/ includes.
13345 * amd64-windows-tdep.c: Fix common/ includes.
13346 * amd64-tdep.c: Fix common/ includes.
13347 * amd64-sol2-tdep.c: Fix common/ includes.
13348 * amd64-obsd-tdep.c: Fix common/ includes.
13349 * amd64-nbsd-tdep.c: Fix common/ includes.
13350 * amd64-linux-tdep.c: Fix common/ includes.
13351 * amd64-linux-nat.c: Fix common/ includes.
13352 * amd64-fbsd-tdep.c: Fix common/ includes.
13353 * amd64-fbsd-nat.c: Fix common/ includes.
13354 * amd64-dicos-tdep.c: Fix common/ includes.
13355 * amd64-darwin-tdep.c: Fix common/ includes.
13356 * agent.c: Fix common/ includes.
13357 * ada-lang.h: Fix common/ includes.
13358 * ada-lang.c: Fix common/ includes.
13359 * aarch64-tdep.c: Fix common/ includes.
13360
13361 2019-01-25 Tom Tromey <tom@tromey.com>
13362
13363 * common/create-version.sh: Use common/version.h.
13364
13365 2019-01-24 Pedro Alves <palves@redhat.com>
13366
13367 * infrun.c (signal_stop, signal_print, signal_program)
13368 (signal_catch, signal_pass): Now arrays instead of pointers.
13369 (update_signals_program_target, do_target_resume)
13370 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13371 * linux-nat.c (linux_nat_target::pass_signals)
13372 (linux_nat_target::create_inferior, linux_nat_target::attach):
13373 Adjust.
13374 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13375 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13376 * procfs.c (procfs_target::pass_signals): Adjust.
13377 * record-full.c (record_full_target::resume): Adjust.
13378 * remote.c (remote_target::pass_signals)
13379 (remote_target::program_signals): Adjust.
13380 * target-debug.h (target_debug_print_signals): Now takes a
13381 gdb::array_view as parameter. Adjust.
13382 * target.h (target_ops) <pass_signals, program_signals>: Replace
13383 pointer and length parameters with gdb::array_view.
13384 (target_pass_signals, target_program_signals): Likewise.
13385 * target-delegates.c: Regenerate.
13386
13387 2019-01-24 Pedro Alves <palves@redhat.com>
13388
13389 * common/forward-scope-exit.h
13390 (forward_scope_exit::forward_scope_exit): Pass arguments to
13391 m_bind_function directly, instead of creating a std::bind and
13392 copying that.
13393
13394 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13395
13396 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13397 for static members.
13398 (pass_in_v_vfp_candidate): Likewise.
13399
13400 2019-01-23 Tom Tromey <tom@tromey.com>
13401 Pedro Alves <palves@redhat.com>
13402
13403 * regcache.c (class regcache_invalidator): Remove.
13404 (regcache::raw_write): Use make_scope_exit.
13405
13406 2019-01-23 Tom Tromey <tom@tromey.com>
13407
13408 * ui-out.h (class ui_out_emit_type): Update comment.
13409
13410 2019-01-23 Tom Tromey <tom@tromey.com>
13411
13412 * infrun.c (fetch_inferior_event): Update comment.
13413
13414 2019-01-23 Tom Tromey <tom@tromey.com>
13415 Pedro Alves <palves@redhat.com>
13416
13417 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13418 parameter.
13419 (fetch_inferior_event): Use SCOPE_EXIT.
13420
13421
13422 2019-01-23 Tom Tromey <tom@tromey.com>
13423 Pedro Alves <palves@redhat.com>
13424
13425 * infrun.c (disable_thread_events): Delete.
13426 (stop_all_threads): Use SCOPE_EXIT.
13427
13428 2019-01-23 Tom Tromey <tom@tromey.com>
13429 Pedro Alves <palves@redhat.com>
13430
13431 * symfile.c: Include forward-scope-exit.h.
13432 (clear_symtab_users_cleanup): Replace forward declaration with
13433 a FORWARD_SCOPE_EXIT.
13434 (syms_from_objfile_1): Use the forward_scope_exit and
13435 gdb::optional instead of cleanup_function.
13436 (reread_symbols): Use the forward_scope_exit instead of
13437 cleanup_function.
13438 (clear_symtab_users_cleanup): Remove function.
13439
13440 2019-01-23 Tom Tromey <tom@tromey.com>
13441 Pedro Alves <palves@redhat.com>
13442
13443 * linux-nat.c: Include scope-exit.h.
13444 (cleanup_target_stop): Remove.
13445 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13446 SCOPE_EXIT.
13447
13448 2019-01-23 Tom Tromey <tom@tromey.com>
13449 Pedro Alves <palves@redhat.com>
13450
13451 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13452 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13453
13454 2019-01-23 Tom Tromey <tom@tromey.com>
13455 Andrew Burgess <andrew.burgess@embecosm.com>
13456 Pedro Alves <palves@redhat.com>
13457
13458 * infrun.c (fetch_inferior_event): Use scope_exit.
13459 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13460 * top.c (execute_command): Use scope_exit.
13461 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13462 * utils.c (do_bpstat_clear_actions_cleanup)
13463 (make_bpstat_clear_actions_cleanup): Remove.
13464
13465 2019-01-23 Tom Tromey <tom@tromey.com>
13466 Pedro Alves <palves@redhat.com>
13467
13468 * infrun.c: Include "common/scope-exit.h"
13469 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13470 (wait_for_inferior): Use SCOPE_EXIT.
13471 (fetch_inferior_event): Use scope_exit.
13472
13473 2019-01-23 Tom Tromey <tom@tromey.com>
13474 Pedro Alves <palves@redhat.com>
13475
13476 * breakpoint.c (create_breakpoint): Remove cleanup.
13477
13478 2019-01-23 Tom Tromey <tom@tromey.com>
13479 Andrew Burgess <andrew.burgess@embecosm.com>
13480 Pedro Alves <palves@redhat.com>
13481
13482 2019-01-23 Pedro Alves <palves@redhat.com>
13483
13484 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13485
13486 2019-01-23 Pedro Alves <palves@redhat.com>
13487 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * gdbthread.h: Include "common/forward-scope-exit.h".
13490 (scoped_finish_thread_state): Redefine custom class in terms of
13491 forward_scope_exit.
13492
13493 2019-01-23 Pedro Alves <palves@redhat.com>
13494 Andrew Burgess <andrew.burgess@embecosm.com>
13495
13496 * common/forward-scope-exit.h: New file.
13497
13498 2019-01-23 Pedro Alves <palves@redhat.com>
13499 Andrew Burgess <andrew.burgess@embecosm.com>
13500 Tom Tromey <tom@tromey.com>
13501
13502 * common/scope-exit.h: New file.
13503
13504 2019-01-23 Pedro Alves <palves@redhat.com>
13505
13506 * common/preprocessor.h (ESC): Rename to ...
13507 (ESC_PARENS): ... this.
13508 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13509 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13510
13511 2019-01-23 Tom Tromey <tom@tromey.com>
13512
13513 * language.h (class scoped_switch_to_sym_language_if_auto):
13514 Initialize m_lang in both cases.
13515
13516 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13517
13518 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13519 with XCNEW.
13520
13521 2019-01-22 Tom Tromey <tom@tromey.com>
13522
13523 * corelow.c: Do not include sys/file.h.
13524
13525 2019-01-22 Tom Tromey <tom@tromey.com>
13526
13527 * tui/tui-wingeneral.h: Include gdb_curses.h.
13528
13529 2019-01-22 Tom Tromey <tom@tromey.com>
13530
13531 * source-cache.h (class source_cache) <get_source_lines,
13532 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13533
13534 2019-01-22 Tom Tromey <tom@tromey.com>
13535
13536 * remote-fileio.h (struct remote_target): Declare.
13537
13538 2019-01-22 Tom Tromey <tom@tromey.com>
13539
13540 * python/py-arch.c: Do not include py-ref.h.
13541 * python/py-bpevent.c: Do not include py-ref.h.
13542 * python/py-cmd.c: Do not include py-ref.h.
13543 * python/py-continueevent.c: Do not include py-ref.h.
13544 * python/py-event.h: Do not include py-ref.h.
13545 * python/py-evtregistry.c: Do not include py-ref.h.
13546 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13547 * python/py-frame.c: Do not include py-ref.h.
13548 * python/py-framefilter.c: Do not include py-ref.h.
13549 * python/py-function.c: Do not include py-ref.h.
13550 * python/py-infevents.c: Do not include py-ref.h.
13551 * python/py-linetable.c: Do not include py-ref.h.
13552 * python/py-objfile.c: Do not include py-ref.h.
13553 * python/py-param.c: Do not include py-ref.h.
13554 * python/py-prettyprint.c: Do not include py-ref.h.
13555 * python/py-progspace.c: Do not include py-ref.h.
13556 * python/py-symbol.c: Do not include py-ref.h.
13557 * python/py-symtab.c: Do not include py-ref.h.
13558 * python/py-type.c: Do not include py-ref.h.
13559 * python/py-unwind.c: Do not include py-ref.h.
13560 * python/py-utils.c: Do not include py-ref.h.
13561 * python/py-value.c: Do not include py-ref.h.
13562 * python/py-varobj.c: Do not include py-ref.h.
13563 * python/py-xmethods.c: Do not include py-ref.h.
13564 * python/python.c: Do not include py-ref.h.
13565 * varobj.c: Do not include py-ref.h.
13566
13567 2019-01-22 Tom Tromey <tom@tromey.com>
13568
13569 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13570 keyword for bcache.
13571
13572 2019-01-22 Tom Tromey <tom@tromey.com>
13573
13574 * compile/compile-cplus-types.c: Remove a comment by #include.
13575
13576 2019-01-22 Tom Tromey <tom@tromey.com>
13577
13578 * compile/gcc-c-plugin.h: Include compile-internal.h.
13579
13580 2019-01-22 Tom Tromey <tom@tromey.com>
13581
13582 * stabsread.c (EXTERN): Do not define.
13583 (symnum, next_symbol_text_func, processing_gcc_compilation)
13584 (within_function, global_sym_chain, global_stabs)
13585 (previous_stab_code, this_object_header_files)
13586 (n_this_object_header_files)
13587 (n_allocated_this_object_header_files): Define.
13588 * stabsread.h (EXTERN): Never define. Use "extern".
13589
13590 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13591
13592 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13593 history_value.
13594
13595 2019-01-21 Tom Tromey <tom@tromey.com>
13596
13597 * ui-out.c: Fix includes.
13598 * tui/tui-source.c: Fix includes.
13599 * target.c: Fix includes.
13600 * remote.c: Fix includes.
13601 * regcache.c: Fix includes.
13602 * python/py-block.c: Fix includes.
13603 * printcmd.c: Fix includes.
13604 * or1k-tdep.c: Fix includes.
13605 * mi/mi-main.c: Fix includes.
13606 * m32r-tdep.c: Fix includes.
13607 * csky-tdep.c: Fix includes.
13608 * compile/compile-cplus-types.c: Fix includes.
13609 * cli/cli-interp.c: Fix includes.
13610
13611 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13612
13613 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13614 for padding.
13615
13616 2019-01-16 Tom Tromey <tom@tromey.com>
13617
13618 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13619 earlier.
13620 (struct objfile) <msymbols_range>: Move from top level.
13621 <msymbols>: New method.
13622 (class objfile_msymbols): Remove.
13623 * symtab.c (default_collect_symbol_completion_matches_break_on):
13624 Update.
13625 * symmisc.c (dump_msymbols): Update.
13626 * stabsread.c (scan_file_globals): Update.
13627 * objc-lang.c (info_selectors_command, info_classes_command)
13628 (find_methods): Update.
13629 * minsyms.c (find_solib_trampoline_target): Update.
13630 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13631 * coffread.c (coff_symfile_read): Update.
13632 * ada-lang.c (ada_lookup_simple_minsym)
13633 (ada_collect_symbol_completion_matches): Update.
13634
13635 2019-01-16 Tom Tromey <tom@tromey.com>
13636
13637 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13638 type. Remove no-argument constructor.
13639 <iterator::operator++>: Simplify.
13640 <begin>: Update.
13641 <end>: Use minimal_symbol_count.
13642
13643 2019-01-16 Tom Tromey <tom@tromey.com>
13644
13645 * objfiles.h (struct objfile) <psymtabs>: New method.
13646 (class objfile_psymtabs): Remove.
13647 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13648 typedef.
13649 <range>: New method.
13650 (require_partial_symbols): Change return type.
13651 * psymtab.c (require_partial_symbols)
13652 (psym_expand_symtabs_matching): Update.
13653 * mdebugread.c (parse_partial_symbols): Update.
13654 * dbxread.c (dbx_end_psymtab): Update.
13655
13656 2019-01-15 Tom Tromey <tom@tromey.com>
13657
13658 * symtab.c (lookup_objfile_from_block)
13659 (lookup_symbol_in_objfile_symtabs)
13660 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13661 (find_line_symtab, info_sources_command)
13662 (default_collect_symbol_completion_matches_break_on)
13663 (make_source_files_completion_list): Update.
13664 * symmisc.c (print_objfile_statistics, dump_objfile)
13665 (maintenance_print_symbols, maintenance_info_symtabs)
13666 (maintenance_check_symtabs, maintenance_info_line_tables):
13667 Update.
13668 * source.c (select_source_symtab)
13669 (forget_cached_source_info_for_objfile): Update.
13670 * objfiles.h (class objfile_compunits): Remove.
13671 (struct objfile) <compunits_range>: New typedef.
13672 (compunits): New method.
13673 * objfiles.c (objfile_relocate1): Update.
13674 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13675 * maint.c (count_symtabs_and_blocks): Update.
13676 * linespec.c (iterate_over_all_matching_symtabs): Update.
13677 * cp-support.c (add_symbol_overload_list_qualified): Update.
13678 * coffread.c (coff_symtab_read): Update.
13679 * ada-lang.c (add_nonlocal_symbols)
13680 (ada_collect_symbol_completion_matches)
13681 (ada_add_global_exceptions): Update.
13682
13683 2019-01-15 Tom Tromey <tom@tromey.com>
13684
13685 * progspace.h (program_space) <objfiles_safe_range>: New
13686 typedef.
13687 <objfiles_safe>: New method.
13688 * objfiles.h (class all_objfiles_safe): Remove.
13689 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13690 * jit.c (jit_inferior_exit_hook): Update.
13691
13692 2019-01-17 Tom Tromey <tom@tromey.com>
13693
13694 * progspace.h (program_space) <objfiles_range>: New typedef.
13695 <objfiles>: New method.
13696 <objfiles_head>: Rename from objfiles.
13697 (object_files): Update.
13698 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13699 * guile/scm-pretty-print.c
13700 (ppscm_find_pretty_printer_from_objfiles): Update.
13701 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13702 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13703 Update.
13704 * python/py-progspace.c (pspy_get_objfiles): Update.
13705 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13706 Update.
13707 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13708 (objfpy_lookup_objfile_by_build_id): Update.
13709 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13710 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13711 Update.
13712 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13713 (expand_symtab_containing_pc, lookup_objfile_from_block)
13714 (lookup_static_symbol, basic_lookup_transparent_type)
13715 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13716 (find_line_symtab, info_sources_command)
13717 (default_collect_symbol_completion_matches_break_on)
13718 (make_source_files_completion_list, find_main_name): Update.
13719 * symmisc.c (print_symbol_bcache_statistics)
13720 (print_objfile_statistics, maintenance_print_symbols)
13721 (maintenance_print_msymbols, maintenance_print_objfiles)
13722 (maintenance_info_symtabs, maintenance_check_symtabs)
13723 (maintenance_expand_symtabs, maintenance_info_line_tables):
13724 Update.
13725 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13726 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13727 (map_overlay_command, unmap_overlay_command)
13728 (simple_overlay_update, expand_symtabs_matching)
13729 (map_symbol_filenames): Update.
13730 * symfile-debug.c (set_debug_symfile): Update.
13731 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13732 Update.
13733 * source.c (select_source_symtab, forget_cached_source_info):
13734 Update.
13735 * solib.c (solib_read_symbols): Update.
13736 * solib-spu.c (append_ocl_sos): Update.
13737 * psymtab.c (maintenance_print_psymbols)
13738 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13739 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13740 * printcmd.c (info_symbol_command): Update.
13741 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13742 Update.
13743 * objfiles.h (class all_objfiles): Remove.
13744 * objfiles.c (have_partial_symbols, have_full_symbols)
13745 (have_minimal_symbols, qsort_cmp, update_section_map)
13746 (shared_objfile_contains_address_p)
13747 (default_iterate_over_objfiles_in_search_order): Update.
13748 * objc-lang.c (info_selectors_command, info_classes_command)
13749 (find_methods): Update.
13750 * minsyms.c (find_solib_trampoline_target): Update.
13751 * maint.c (maintenance_info_sections)
13752 (maintenance_translate_address, count_symtabs_and_blocks):
13753 Update.
13754 * main.c (captured_main_1): Update.
13755 * linux-thread-db.c (try_thread_db_load_from_pdir)
13756 (has_libpthread): Update.
13757 * linespec.c (iterate_over_all_matching_symtabs)
13758 (search_minsyms_for_name): Update.
13759 * jit.c (jit_find_objf_with_entry_addr): Update.
13760 * hppa-tdep.c (find_unwind_entry)
13761 (hppa_lookup_stub_minimal_symbol): Update.
13762 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13763 Update.
13764 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13765 (elf_gnu_ifunc_resolve_by_got): Update.
13766 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13767 * dwarf-index-write.c (save_gdb_index_command): Update.
13768 * cp-support.c (add_symbol_overload_list_qualified): Update.
13769 * breakpoint.c (create_overlay_event_breakpoint)
13770 (create_longjmp_master_breakpoint)
13771 (create_std_terminate_master_breakpoint)
13772 (create_exception_master_breakpoint): Update.
13773 * blockframe.c (find_pc_partial_function): Update.
13774 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13775 (ada_collect_symbol_completion_matches)
13776 (ada_add_global_exceptions): Update.
13777
13778 2019-01-17 Tom Tromey <tom@tromey.com>
13779
13780 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13781 declare VEC.
13782 (solib_target_parse_libraries): Change return type.
13783 (library_list_start_segment, library_list_start_section)
13784 (library_list_end_library, library_list_start_library); Update.
13785 (solib_target_free_library_list): Remove.
13786 (solib_target_parse_libraries): Remove cleanup. Change return
13787 type.
13788 (solib_target_current_sos): Update.
13789
13790 2019-01-17 Tom Tromey <tromey@bapiya>
13791
13792 * valprint.c: Replace "the the" with "the".
13793 * symtab.c: Replace "the the" with "the".
13794 * solib.c: Replace "the the" with "the".
13795 * solib-dsbt.c: Replace "the the" with "the".
13796 * linespec.c: Replace "the the" with "the".
13797 * dwarf2loc.h: Replace "the the" with "the".
13798 * amd64-windows-tdep.c: Replace "the the" with "the".
13799 * aarch64-tdep.c: Replace "the the" with "the".
13800
13801 2019-01-16 Keith Seitz <keiths@redhat.com>
13802
13803 PR gdb/23773
13804 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13805 <builder>: Rename to ..
13806 <m_builder>: ... this and make private.
13807 (dwarf2_cu::get_builder): New method. Change all users of
13808 `builder' to use this method.
13809 (dwarf2_start_symtab): Move to ...
13810 (dwarf2_cu::start_symtab): ... here. Update all callers
13811 (setup_type_unit_groups): Move to ...
13812 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13813 callers.
13814 (dwarf2_cu::reset_builder): New method.
13815 (process_full_compunit, process_full_type_unit): Use
13816 dwarf2_cu::reset_builder.
13817 (follow_die_offset): Record the ancestor CU if it is different
13818 from the followed DIE's CU.
13819 (follow_die_sig_1): Likewise.
13820
13821 2019-01-15 Tom Tromey <tom@tromey.com>
13822
13823 * remote.c (class remote_state) <buf>: Now a char_vector.
13824 <buf_size>: Remove.
13825 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13826 parameter.
13827 (remote_target::getpkt_or_notif_sane_1)
13828 (remote_target::getpkt_sane)
13829 (remote_target::getpkt_or_notif_sane): Likewise.
13830 (class remote_target) <putpkt>: New overload.
13831 (remote_target::read_frame): Change type of "buf_p". Remove
13832 sizeof_p parameter.
13833 (packet_ok): New overload.
13834 (packet_check_result): New overload.
13835 Update all uses.
13836
13837 2019-01-14 Tom Tromey <tom@tromey.com>
13838
13839 * remote-notif.c (handle_notification, remote_notif_ack)
13840 (remote_notif_parse): Make "buf" const.
13841 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13842 const.
13843 (remote_notif_parse, remote_notif_ack, handle_notification):
13844 Likewise.
13845 * remote.c (remote_notif_stop_parse): Make "buf" const.
13846 (remote_target::remote_parse_stop_reply): Make "buf" const.
13847 (remote_notif_stop_ack): Make "buf" const.
13848
13849 2019-01-14 Tom Tromey <tom@tromey.com>
13850
13851 * remote.c (remote_console_output): Make parameter const.
13852
13853 2019-01-14 Tom Tromey <tom@tromey.com>
13854
13855 * target-debug.h (target_debug_print_signals): Constify.
13856 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13857 * procfs.c (procfs_target::pass_signals): Update.
13858 * linux-nat.c (linux_nat_target::pass_signals): Update.
13859 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13860 * target-delegates.c: Rebuild.
13861 * remote.c (remote_target::program_signals): Update.
13862 (remote_target::pass_signals): Update.
13863 * target.c (target_pass_signals): Constify argument.
13864 (target_program_signals): Likewise.
13865 * target.h (struct target_ops) <pass_signals, program_signals>:
13866 Constify argument.
13867 (target_pass_signals, target_program_signals): Constify argument.
13868
13869 2019-01-14 Tom Tromey <tom@tromey.com>
13870
13871 PR tui/28819:
13872 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13873
13874 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13875
13876 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13877 field.
13878 * rs6000-tdep.c: Include reggroups.h.
13879 (IS_V_ALIAS_PSEUDOREG): Define.
13880 (rs6000_register_name): Return names for the "vX" aliases.
13881 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13882 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13883 aliases. Call default_register_reggroup_p for all other
13884 pseudo-registers.
13885 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13886 New functions.
13887 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13888 Handle "vX" aliases.
13889 (v_alias_pseudo_register_collect): New function.
13890 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13891 (rs6000_gdbarch_init): Initialize "vX" aliases as
13892 pseudo-registers. Restore registration of
13893 rs6000_pseudo_register_reggroup_p with
13894 set_tdesc_pseudo_register_reggroup_p.
13895
13896 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13897
13898 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13899 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13900 set_gdbarch_num_pseudo_regs.
13901
13902 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13903
13904 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13905 Remove arg prefixname, add do_set and do_show.
13906 Add member functions set_list and show_list.
13907 * cli/cli-style.c (class cli_style_option): Update accordingly.
13908 (style_set_list): Move to file scope.
13909 (style_show_list): Likewise.
13910 (set_style): Call help_list.
13911 (show_style): Call cmd_show_list.
13912 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13913 Update to use the new macro.
13914
13915 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13916
13917 * ada-lang.c (_initialize_ada_language): Expand the help text
13918 for the "catch exception" command.
13919
13920 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13921
13922 * symtab.c (matching_obj_sections): Initialize obj,
13923 declare it closer to its usage.
13924
13925 2019-01-10 Tom Tromey <tom@tromey.com>
13926
13927 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13928 (basic_inf_threads_range): Remove.
13929 (inf_threads_range, inf_non_exited_threads_range)
13930 (safe_inf_threads_range): Use next_adapter.
13931
13932 2019-01-10 Keith Seitz <keiths@redhat.com>
13933
13934 PR gdb/23712
13935 PR symtab/23010
13936 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13937 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13938
13939 2019-01-10 Keith Seitz <keiths@redhat.com>
13940
13941 PR gdb/23712
13942 PR symtab/23010
13943 * dictionary.c (pending_to_vector): Remove.
13944 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13945 Remove _1 suffix, replacing functions of the same name. Update
13946 all callers.
13947 (dict_create_hashed, dict_create_hashed_expandable)
13948 (dict_create_linear, dict_create_linear_expandable, dict_free)
13949 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13950 Make functions static.
13951
13952 2019-01-10 Keith Seitz <keiths@redhat.com>
13953
13954 PR gdb/23712
13955 PR symtab/23010
13956 * dictionary.h (struct dictionary): Replace declaration with
13957 multidictionary.
13958 (dict_create_hashed, dict_create_hashed_expandable)
13959 (dict_create_linear, dict_create_linear_expandable)
13960 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13961 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13962 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13963 taking multidictionary argument.
13964 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13965 * block.h (struct block) <dict>: Change to multidictionary
13966 and rename `multidict'.
13967 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13968 symmisc.c: Update all dictionary references to multidictionary.
13969
13970 2019-01-10 Keith Seitz <keiths@redhat.com>
13971
13972 PR gdb/23712
13973 PR symtab/23010
13974 * dictionary.c: Include unordered_map.
13975 (pending_to_vector): New function.
13976 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13977 Rewrite the non-"_1" functions to take vector instead
13978 of linked list.
13979 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13980 "new" _1 versions of the same name.
13981 (multidictionary): Define.
13982 (std::hash<enum language): New definition.
13983 (collate_pending_symbols_by_language, mdict_create_hashed)
13984 (mdict_create_hashed_expandable, mdict_create_linear)
13985 (mdict_create_linear_expandable, mdict_free)
13986 (find_language_dictionary, create_new_language_dictionary)
13987 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13988 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13989 (mdict_size, mdict_empty): New functions.
13990 * dictionary.h (mdict_iterator): Define.
13991
13992 2019-01-10 Pedro Alves <palves@redhat.com>
13993
13994 * breakpoint.c (read_uploaded_action)
13995 (create_tracepoint_from_upload): Adjust to use
13996 gdb::unique_xmalloc_ptr.
13997 * ctf.c (ctf_write_uploaded_tp):
13998 (SET_ARRAY_FIELD): Use emplace_back.
13999 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14000 * tracefile-tfile.c (tfile_write_uploaded_tp):
14001 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14002 gdb::unique_xmalloc_ptr.
14003 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14004 at_string, cond_string, cmd_strings>: Replace char pointers
14005 with gdb::unique_xmalloc_ptr.
14006
14007 2019-01-10 Pedro Alves <palves@redhat.com>
14008
14009 * solib-target.c (library_list_start_library): Don't xstrdup name.
14010
14011 2019-01-10 Pedro Alves <palves@redhat.com>
14012
14013 * mdebugread.c (parse_partial_symbols): Use
14014 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14015
14016 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14017
14018 * linux-fork.c (scoped_switch_fork_info)
14019 <~scoped_switch_fork_info>: Fix incorrect variable name.
14020
14021 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14022
14023 * linux-fork.c (scoped_switch_fork_info)
14024 <scoped_switch_fork_info>: Make explicit.
14025 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14026
14027 2019-01-10 Tom Tromey <tom@tromey.com>
14028
14029 * objfiles.h (objfile::reset_psymtabs): Update.
14030 * objfiles.c (objfile::objfile): Update.
14031 * psymtab.h (psymtab_storage::obstack): Update.
14032 (psymtab_storage::m_obstack): Use gdb::optional.
14033 (class psymtab_storage): Update comment. Remove objfile
14034 parameter.
14035 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14036
14037 2019-01-10 Tom Tromey <tom@tromey.com>
14038
14039 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14040 <free_psymtabs>: Now private.
14041 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14042 (allocate_psymtab): Use new method.
14043
14044 2019-01-10 Tom Tromey <tom@tromey.com>
14045
14046 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14047 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14048 * mdebugread.c (parse_partial_symbols): Use
14049 allocate_dependencies.
14050 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14051 allocate_dependencies.
14052 (process_psymtab_comp_unit_reader)
14053 (build_type_psymtab_dependencies): Likewise.
14054 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14055
14056 2019-01-10 Tom Tromey <tom@tromey.com>
14057
14058 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14059 PSYMBOL_SET_LANGUAGE.
14060 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14061
14062 2019-01-10 Tom Tromey <tom@tromey.com>
14063
14064 * psymtab.h (psymtab_storage::obstack): New method.
14065 <m_obstack>: Rename from obstack; now private.
14066 * psymtab.c (psymtab_storage): Update.
14067 * dwarf2read.c (create_addrmap_from_index)
14068 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14069 Update.
14070
14071 2019-01-10 Tom Tromey <tom@tromey.com>
14072
14073 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14074 * objfiles.h (objfile::reset_psymtabs): New method.
14075
14076 2019-01-10 Tom Tromey <tom@tromey.com>
14077
14078 * symmisc.c (print_symbol_bcache_statistics): Update.
14079 (print_objfile_statistics): Update.
14080 * symfile.c (reread_symbols): Update.
14081 * psymtab.h (class psymtab_storage): New.
14082 * psymtab.c (psymtab_storage): New constructor.
14083 (~psymtab_storage): New destructor.
14084 (require_partial_symbols): Update.
14085 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14086 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14087 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14088 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14089 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14090 (start_psymtab_common, end_psymtab_common)
14091 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14092 (allocate_psymtab): Update.
14093 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14094 Update.
14095 (dump_psymtab_addrmap, maintenance_print_psymbols)
14096 (maintenance_check_psymtabs): Update.
14097 (class objfile_psymtabs): Move to objfiles.h.
14098 * psympriv.h (discard_psymtab): Now inline.
14099 (psymtab_discarder::psymtab_discarder): Update.
14100 (psymtab_discarder::~psymtab_discarder): Update.
14101 (ALL_OBJFILE_PSYMTABS): Rewrite.
14102 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14103 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14104 Remove fields.
14105 <partial_symtabs>: New field.
14106 (class objfile_psymtabs): Move from psymtab.h. Update.
14107 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14108 psymbol_cache.
14109 (objfile::~objfile): Don't destroy psymbol_cache.
14110 * mdebugread.c (parse_partial_symbols): Update.
14111 * dwarf2read.c (create_addrmap_from_index)
14112 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14113 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14114 (add_partial_subprogram, dwarf2_ranges_read): Update.
14115 * dwarf-index-write.c (write_address_map)
14116 (write_one_signatured_type, recursively_write_psymbols)
14117 (class debug_names, class debug_names, write_psymtabs_to_index):
14118 Update.
14119
14120 2019-01-10 Tom Tromey <tom@tromey.com>
14121
14122 * symtab.h (SYMBOL_SET_NAMES): Update.
14123 (symbol_set_names): Update.
14124 (MSYMBOL_SET_NAMES): Update.
14125 * symtab.c (symbol_set_names): Change argument to be an
14126 objfile_per_bfd_storage.
14127 * psymtab.c (add_psymbol_to_bcache): Update.
14128 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14129
14130 2019-01-10 Tom Tromey <tom@tromey.com>
14131
14132 * symtab.c (create_demangled_names_hash): Change argument to be an
14133 objfile_per_bfd_storage.
14134 (symbol_set_names): Update.
14135
14136 2019-01-10 Tom Tromey <tom@tromey.com>
14137
14138 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14139 init_psymbol_list.
14140 * psymtab.c (init_psymbol_list): Do nothing if already called.
14141 * psympriv.h (init_psymbol_list): Add comment.
14142 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14143 init_psymbol_list.
14144 * dbxread.c (dbx_symfile_read): Unconditionally call
14145 init_psymbol_list.
14146
14147 2019-01-10 Tom Tromey <tom@tromey.com>
14148
14149 * xcoffread.c (scan_xcoff_symtab): Update.
14150 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14151 "where".
14152 * mdebugread.c (parse_partial_symbols)
14153 (handle_psymbol_enumerators): Update.
14154 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14155 * dbxread.c (read_dbx_symtab): Update.
14156 * psympriv.h (psymbol_placement): New enum.
14157 (add_psymbol_to_list): Update.
14158
14159 2019-01-10 Tom Tromey <tom@tromey.com>
14160
14161 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14162 static_psymbols parameters.
14163 (scan_xcoff_symtab): Update.
14164 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14165 static_psymbols parameters.
14166 * psympriv.h (start_psymtab_common): Update.
14167 * mdebugread.c (parse_partial_symbols): Update.
14168 * dwarf2read.c (create_partial_symtab): Update.
14169 * dbxread.c (read_dbx_symtab): Update.
14170 (start_psymtab): Remove global_psymbols and static_psymbols
14171 parameters.
14172
14173 2019-01-10 Tom Tromey <tom@tromey.com>
14174
14175 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14176 * psymtab.c (allocate_psymtab): Add comment.
14177 * psympriv.h (allocate_psymtab): Add comment.
14178 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14179 initializations.
14180 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14181
14182 2019-01-10 Tom Tromey <tom@tromey.com>
14183
14184 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14185 Don't declare.
14186 * mipsread.c: Include mdebugread.h.
14187 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14188 Declare.
14189 * elfread.c: Include mdebugread.h.
14190
14191 2019-01-09 Tom Tromey <tom@tromey.com>
14192
14193 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14194 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14195 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14196 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14197 (psym_lookup_symbol, psym_find_last_source_symtab)
14198 (psym_forget_cached_source_info, psym_print_stats)
14199 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14200 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14201 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14202 (psym_find_compunit_symtab_by_address)
14203 (maintenance_print_psymbols, maintenance_info_psymtabs)
14204 (maintenance_check_psymtabs): Use ranged for.
14205 * psymtab.h (class objfile_psymtabs): New.
14206 (require_partial_symbols): Return objfile_psymtabs.
14207 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14208
14209 2019-01-09 Tom Tromey <tom@tromey.com>
14210
14211 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14212 (find_pc_mapped_section, list_overlays_command)
14213 (map_overlay_command, unmap_overlay_command)
14214 (simple_overlay_update): Use all_objfiles.
14215 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14216 * printcmd.c (info_symbol_command): Use all_objfiles.
14217 * objfiles.h (ALL_OBJSECTIONS): Remove.
14218 * maint.c (maintenance_translate_address): Use all_objfiles.
14219 * gcore.c (gcore_create_callback): Use all_objfiles.
14220 (objfile_find_memory_regions): Likewise.
14221
14222 2019-01-09 Tom Tromey <tom@tromey.com>
14223
14224 * symtab.c (find_line_symtab, info_sources_command)
14225 (make_source_files_completion_list): Use objfile_compunits.
14226 * source.c (select_source_symtab): Use objfile_compunits.
14227 * objfiles.h (struct objfile): Update comment.
14228 (ALL_OBJFILES): Remove.
14229 (ALL_FILETABS): Remove.
14230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14231 objfile_compunits.
14232
14233 2019-01-09 Tom Tromey <tom@tromey.com>
14234
14235 * symmisc.c (print_objfile_statistics, dump_objfile)
14236 (maintenance_print_symbols): Use compunit_filetabs.
14237 * source.c (forget_cached_source_info_for_objfile): Use
14238 compunit_filetabs.
14239 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14240 (ALL_FILETABS): Use compunit_filetabs.
14241 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14242 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14243
14244 2019-01-09 Tom Tromey <tom@tromey.com>
14245
14246 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14247 (compunit_filetabs): New.
14248 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14249 compunit_filetabs.
14250 (info_sources_command, make_source_files_completion_list): Remove
14251 declaration.
14252 * symmisc.c (print_objfile_statistics, dump_objfile)
14253 (maintenance_print_symbols): Remove declaration.
14254 (maintenance_info_symtabs): Use compunit_filetabs.
14255 (maintenance_info_line_tables): Likewise.
14256 * source.c (select_source_symtab): Change local variable name.
14257 (forget_cached_source_info_for_objfile): Remove declaration.
14258 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14259 * objfiles.c (objfile_relocate1): Remove declaration.
14260 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14261 declaration.
14262 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14263 * coffread.c (coff_symtab_read): Remove declaration.
14264 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14265 compunit_filetabs.
14266
14267 2019-01-09 Tom Tromey <tom@tromey.com>
14268
14269 * symtab.c (lookup_objfile_from_block)
14270 (find_pc_sect_compunit_symtab, search_symbols)
14271 (default_collect_symbol_completion_matches_break_on): Use
14272 objfile_compunits.
14273 * objfiles.h (ALL_COMPUNITS): Remove.
14274 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14275 * cp-support.c (add_symbol_overload_list_qualified): Use
14276 objfile_compunits.
14277 * ada-lang.c (ada_collect_symbol_completion_matches)
14278 (ada_add_global_exceptions): Use objfile_compunits.
14279
14280 2019-01-09 Tom Tromey <tom@tromey.com>
14281
14282 * source.c (select_source_symtab)
14283 (forget_cached_source_info_for_objfile): Remove declaration.
14284 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14285 declaration.
14286 * maint.c (count_symtabs_and_blocks): Remove declaration.
14287 * cp-support.c (add_symbol_overload_list_qualified): Remove
14288 declaration.
14289 * coffread.c (coff_symtab_read): Remove declaration.
14290 * symtab.c (lookup_symbol_in_objfile_symtabs)
14291 (basic_lookup_transparent_type_1): Use objfile_compunits.
14292 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14293 (info_sources_command, search_symbols)
14294 (default_collect_symbol_completion_matches_break_on)
14295 (make_source_files_completion_list): Remove declaration.
14296 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14297 (ada_collect_symbol_completion_matches)
14298 (ada_add_global_exceptions): Remove declaration.
14299 * linespec.c (iterate_over_all_matching_symtabs): Use
14300 objfile_compunits.
14301 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14302 (class objfile_compunits): New.
14303 (ALL_COMPUNITS): Use objfile_compunits.
14304 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14305 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14306 objfile_compunits.
14307 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14308
14309 2019-01-09 Tom Tromey <tom@tromey.com>
14310
14311 * symtab.c (search_symbols)
14312 (default_collect_symbol_completion_matches_break_on): Use
14313 objfile_msymbols.
14314 * ada-lang.c (ada_lookup_simple_minsym)
14315 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14316 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14317 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14318 objfile_msymbols.
14319 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14320 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14321 * objc-lang.c (find_methods): Use objfile_msymbols.
14322 (info_selectors_command, info_classes_command): Likewise.
14323 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14324 * objfiles.h (class objfile_msymbols): New.
14325 (ALL_OBJFILE_MSYMBOLS): Remove.
14326 (ALL_MSYMBOLS): Remove.
14327
14328 2019-01-09 Tom Tromey <tom@tromey.com>
14329
14330 * common/next-iterator.h (next_adapter): Add Iterator template
14331 parameter.
14332 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14333 (class all_objfiles_safe): New.
14334 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14335 * objfiles.c (put_objfile_before): Update comment.
14336 (add_separate_debug_objfile): Likewise.
14337 (free_all_objfiles): Use all_objfiles_safe.
14338 (objfile_purge_solibs): Likewise.
14339
14340 2019-01-09 Tom Tromey <tom@tromey.com>
14341
14342 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14343 (expand_symtab_containing_pc, lookup_static_symbol)
14344 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14345 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14346 all_objfiles.
14347 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14348 * breakpoint.c (create_overlay_event_breakpoint)
14349 (create_longjmp_master_breakpoint)
14350 (create_std_terminate_master_breakpoint)
14351 (create_exception_master_breakpoint): Use all_objfiles.
14352 * linux-thread-db.c (try_thread_db_load_from_pdir)
14353 (has_libpthread): Use all_objfiles.
14354 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14355 * linespec.c (iterate_over_all_matching_symtabs)
14356 (search_minsyms_for_name): Use all_objfiles.
14357 * maint.c (maintenance_info_sections): Use all_objfiles.
14358 * main.c (captured_main_1): Use all_objfiles.
14359 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14360 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14361 * guile/scm-pretty-print.c
14362 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14363 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14364 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14365 (maintenance_print_msymbols): Use all_objfiles.
14366 * source.c (select_source_symtab): Use all_objfiles.
14367 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14368 * symfile.c (remove_symbol_file_command)
14369 (expand_symtabs_matching, map_symbol_filenames): Use
14370 all_objfiles.
14371 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14372 all_objfiles.
14373 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14374 * objc-lang.c (find_methods): Use all_objfiles.
14375 * objfiles.c (have_partial_symbols, have_full_symbols)
14376 (have_minimal_symbols, qsort_cmp)
14377 (default_iterate_over_objfiles_in_search_order): Use
14378 all_objfiles.
14379 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14380 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14381 (maintenance_check_psymtabs): Use all_objfiles.
14382 (ALL_PSYMTABS): Remove.
14383 * compile/compile-object-run.c (do_module_cleanup): Use
14384 all_objfiles.
14385 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14386 * cp-support.c (add_symbol_overload_list_qualified): Use
14387 all_objfiles.
14388 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14389 Use all_objfiles.
14390 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14391 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14392 all_objfiles.
14393 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14394 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14395 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14396 Uses all_objfiles.
14397 * solib.c (solib_read_symbols): Use all_objfiles
14398
14399 2019-01-09 Tom Tromey <tom@tromey.com>
14400
14401 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14402 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14403 all_objfiles.
14404 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14405 * symmisc.c (print_symbol_bcache_statistics)
14406 (print_objfile_statistics, maintenance_print_objfiles)
14407 (maintenance_info_symtabs, maintenance_check_symtabs)
14408 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14409 all_objfiles.
14410 * source.c (forget_cached_source_info): Use all_objfiles.
14411 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14412 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14413 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14414 * objfiles.c (update_section_map): Use all_objfiles.
14415 (shared_objfile_contains_address_p): Likewise.
14416 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14417 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14418
14419 2019-01-09 Tom Tromey <tom@tromey.com>
14420
14421 * common/next-iterator.h: New file.
14422 * objfiles.h (class all_objfiles): New.
14423 (struct objfile_iterator): New.
14424
14425 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14426
14427 * NEWS: Move the description of the changed "frame", "select-frame",
14428 and "info frame" commands to the Changed commands section.
14429
14430 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14431
14432 * gdbtypes.c (check_stub_method_group): Remove handling of old
14433 mangling schemes.
14434 * linespec.c (find_methods): Likewise.
14435 * stabsread.c (read_member_functions): Likewise.
14436 * valops.c (search_struct_method): Likewise.
14437 (value_struct_elt_for_reference): Likewise.
14438 * NEWS: Mention this change.
14439
14440 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14441
14442 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14443 print_source_lines.
14444 * source.c (print_source_lines_base): Update line number check.
14445 (print_source_lines): New function.
14446 (source_lines_range::source_lines_range): New function.
14447 * source.h (class source_lines_range): New class.
14448 (print_source_lines): New declaration.
14449
14450 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14451
14452 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14453
14454 2019-01-08 Tom Tromey <tom@tromey.com>
14455 Simon Marchi <simon.marchi@ericsson.com>
14456
14457 PR gdb/24060
14458 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14459 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14460 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14461 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14462 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14463 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14464
14465 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14466
14467 * source.c (select_source_symtab): Move header comment to
14468 declaration in source.h.
14469 (forget_cached_source_info_for_objfile): Likewise.
14470 (forget_cached_source_info): Likewise.
14471 (identify_source_line): Likewise.
14472 * source.h (identify_source_line): Move declaration from symtab.h
14473 and add comment from source.c
14474 (print_source_lines): Likewise.
14475 (forget_cached_source_info_for_objfile): Likewise.
14476 (forget_cached_source_info): Likewise.
14477 (select_source_symtab): Likewise.
14478 (enum print_source_lines_flag): Move definition from symtab.h.
14479 * symtab.h (identify_source_line): Move declaration to source.h.
14480 (print_source_lines): Likewise.
14481 (forget_cached_source_info_for_objfile): Likewise.
14482 (forget_cached_source_info): Likewise.
14483 (select_source_symtab): Likewise.
14484 (enum print_source_lines_flag): Move definition to source.h.
14485 * tui/tui-hooks.c: Add 'source.h' include.
14486
14487 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14488
14489 * source.c (print_source_lines_base): Handle requests to print
14490 reverse line number sequences, and guard against empty lines
14491 string.
14492
14493 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14494
14495 * source.c (print_source_lines_base): Fix skip of '\r' if next
14496 character is '\n'.
14497
14498 2019-01-06 Tom Tromey <tom@tromey.com>
14499
14500 * c-exp.y (struct c_parse_state) <macro_original_text,
14501 expansion_obstack>: New member.
14502 (macro_original_text, expansion_obstack): Remove globals.
14503 (scan_macro_expansion, scanning_macro_expansion)
14504 (finished_macro_expansion): Update.
14505 (scan_macro_cleanup): Remove.
14506 (yylex, c_parse): Update.
14507
14508 2019-01-06 Tom Tromey <tom@tromey.com>
14509
14510 * c-exp.y (struct c_parse_state) <strings>: New member.
14511 (operator_stoken): Update.
14512
14513 2019-01-06 Tom Tromey <tom@tromey.com>
14514
14515 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14516 (union type_stack_elt) <typelist_val>: Now a pointer to
14517 std::vector.
14518 (type_stack_cleanup): Don't declare.
14519 (push_typelist): Update.
14520 * parse.c (pop_typelist): Return a std::vector.
14521 (push_typelist): Take a std::vector.
14522 (follow_types): Update. Do not free args.
14523 (type_stack_cleanup): Remove.
14524 * c-exp.y (struct c_parse_state): New.
14525 (cpstate): New global.
14526 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14527 (nonempty_typelist): Update.
14528 (func_mod): Create a new vector.
14529 (c_parse): Create a c_parse_state.
14530 (check_parameter_typelist): Do not delete params.
14531 (function_method): Update. Do not delete type_list.
14532
14533 2019-01-06 Tom Tromey <tom@tromey.com>
14534
14535 PR gdb/28155:
14536 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14537 check_typedef.
14538 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14539 (print_return_value): Likewise.
14540
14541 2019-01-05 Tom Tromey <tom@tromey.com>
14542
14543 * contrib/cleanup_check.py: Remove.
14544 * contrib/gcc-with-excheck: Remove.
14545 * contrib/exsummary.py: Remove.
14546 * contrib/excheck.py: Remove.
14547
14548 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14549
14550 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14551 NULL. Initialize tpprev to NULL instead of assigning it
14552 to NULL on the next statement.
14553 * windows-nat.c (windows_delete_thread): Remove check for
14554 main_thread_id before printing thread exit notifications.
14555 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14556 Remove thread ID check against main_thread_id.
14557 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14558 windows_delete_thread.
14559 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14560
14561 2019-01-04 Tom Tromey <tom@tromey.com>
14562
14563 * compile/compile.c (_initialize_compile): Use upper case for
14564 metasyntactic variables.
14565 * symmisc.c (_initialize_symmisc): Use upper case for
14566 metasyntactic variables.
14567 * psymtab.c (_initialize_psymtab): Use upper case for
14568 metasyntactic variables.
14569 * demangle.c (demangle_command): Use upper case for metasyntactic
14570 variables.
14571 (_initialize_demangler): Likewise.
14572 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14573 variables.
14574
14575 2019-01-03 Tom Tromey <tom@tromey.com>
14576
14577 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14578
14579 2019-01-03 Tom Tromey <tom@tromey.com>
14580
14581 * python/py-symtab.c (salpy_str): Update.
14582 (struct salpy_sal_object) <symtab>: Now a PyObject.
14583 (salpy_dealloc): Update.
14584 (del_objfile_sal): Use gdbpy_ref.
14585
14586 2019-01-03 Tom Tromey <tom@tromey.com>
14587
14588 * python/py-type.c (convert_field): Use new_reference. Return
14589 gdbpy_ref.
14590 (make_fielditem): Return gdbpy_ref.
14591 (typy_fields): Update.
14592 (typy_getitem): Update.
14593 (field_name): Return gdbpy_ref. Use new_reference.
14594 (typy_iterator_iternext): Update.
14595
14596 2019-01-03 Tom Tromey <tom@tromey.com>
14597
14598 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14599
14600 2019-01-03 Tom Tromey <tom@tromey.com>
14601
14602 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14603 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14604 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14605 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14606 (pspy_set_type_printers): Likewise.
14607 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14608 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14609 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14610 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14611 (objfpy_set_type_printers): Likewise.
14612
14613 2019-01-03 Tom Tromey <tom@tromey.com>
14614
14615 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14616 (gdbpy_print_stack): Use gdbpy_err_fetch.
14617 * python/python-internal.h (class gdbpy_err_fetch): New class.
14618 (class gdbpy_enter) <m_error_type, m_error_value,
14619 m_error_traceback>: Remove.
14620 <m_error>: New member.
14621 (gdbpy_exception_to_string): Don't declare.
14622 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14623 * python/py-value.c (convert_value_from_python): Use
14624 gdbpy_err_fetch.
14625 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14626 gdbpy_exception_to_string.
14627 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14628 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14629 gdbpy_err_fetch.
14630
14631 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14632
14633 * linux-nat.c (delete_lwp_cleanup): Delete.
14634 (struct lwp_deleter): New struct.
14635 (lwp_info_up): New typedef.
14636 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14637 lwp_info_up.
14638
14639 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14640
14641 * linux-fork.c (class scoped_switch_fork_info): New class.
14642 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14643
14644 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14645
14646 * valops.c (find_overload_match): Remove use of null_cleanup, and
14647 calls to do_cleanups.
14648
14649 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14650
14651 * compile/compile-cplus-types.c
14652 (compile_cplus_instance::decl_name): Handle changes to
14653 cp_func_name.
14654 * cp-support.c (cp_func_name): Update header comment, update
14655 return type.
14656 * cp-support.h (cp_func_name): Update return type in declaration.
14657 * valops.c (find_overload_match): Move temp_func local to top
14658 level of function and change its type. Use temp_func to hold and
14659 delete temporary string obtained from cp_func_name.
14660
14661 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14662
14663 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14664 gdb::char_vector, remove cleanup, and update uses of `msg`.
14665
14666 2019-01-03 Jim Wilson <jimw@sifive.com>
14667
14668 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14669
14670 2019-01-02 Tom Tromey <tom@tromey.com>
14671
14672 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14673 (tdesc_parse_xml): Remove cleanups.
14674 * target-descriptions.h (make_cleanup_free_target_description):
14675 Don't declare.
14676 (target_desc_deleter): New struct.
14677 (target_desc_up): New typedef.
14678 * target-descriptions.c (target_desc_deleter::operator()): Rename
14679 from free_target_description.
14680 (make_cleanup_free_target_description): Remove.
14681
14682 2019-01-02 Tom Tromey <tom@tromey.com>
14683
14684 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14685 constructor, destructor.
14686 (linespec_parser): Remove typedef.
14687 (~linespec_parser): Rename from linespec_parser_delete.
14688 (linespec_lex_to_end, linespec_complete_label)
14689 (linespec_complete): Update.
14690 (decode_line_full): Remove cleanups.
14691 (decode_line_1): Update.
14692
14693 2019-01-02 Tom Tromey <tom@tromey.com>
14694
14695 * python/python-internal.h (inferior_to_inferior_object): Change
14696 return type.
14697 * python/py-exitedevent.c (create_exited_event_object): Update.
14698 * python/py-inferior.c (inferior_to_inferior_object): Return
14699 gdbpy_ref.
14700 (python_new_inferior, python_inferior_deleted)
14701 (thread_to_thread_object, delete_thread_object)
14702 (build_inferior_list, gdbpy_selected_inferior): Update.
14703 * python/py-infthread.c (create_thread_object): Update. Also fail
14704 if inferior_to_inferior_object fails.
14705
14706 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14707
14708 * inferior.h (class inferior) <displaced_step_state>: New field.
14709 * infrun.h (struct displaced_step_state): Move here from
14710 infrun.c. Initialize fields, add constructor.
14711 <inf>: Remove field.
14712 <reset>: New method.
14713 * infrun.c (struct displaced_step_inferior_state): Move to
14714 infrun.h.
14715 (displaced_step_inferior_states): Remove.
14716 (get_displaced_stepping_state): Adust.
14717 (displaced_step_in_progress_any_inferior): Adjust.
14718 (displaced_step_in_progress_thread): Adjust.
14719 (displaced_step_in_progress): Adjust.
14720 (add_displaced_stepping_state): Remove.
14721 (get_displaced_step_closure_by_addr): Adjust.
14722 (remove_displaced_stepping_state): Remove.
14723 (infrun_inferior_exit): Call displaced_step_state.reset.
14724 (use_displaced_stepping): Don't check for NULL.
14725 (displaced_step_prepare_throw): Call
14726 get_displaced_stepping_state.
14727 (displaced_step_fixup): Don't check for NULL.
14728 (prepare_for_detach): Don't check for NULL.
14729
14730 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14731
14732 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14733 in case of call that did not complete.
14734
14735 2019-01-02 Andrey Utkin <autkin@undo.io>
14736
14737 * symfile.c (find_separate_debug_file): Fix search of debug files for
14738 remote debuggee.
14739
14740 2019-01-02 Tom Tromey <tom@tromey.com>
14741
14742 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14743 indentation.
14744 * python/py-frame.c (frapy_older): Remove cast.
14745 (frapy_newer): Likewise.
14746 * python/py-breakpoint.c (local_setattro): Remove cast.
14747 * python/py-arch.c (archpy_name): Remove local variable.
14748 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14749
14750 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14751
14752 * unittests/basic_string_view/element_access/char/empty.cc:
14753 Fix year range in copyright header.
14754
14755 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14756
14757 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14758 Delete.
14759 <operator==>: Update with for removed field.
14760 <hash>: Likewise.
14761 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14762 <isa_features>: ...this.
14763 <abi_features>: New field.
14764 (riscv_isa_flen): Update comment.
14765 (riscv_abi_xlen): New declaration.
14766 (riscv_abi_flen): New declaration.
14767 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14768 isa_features.
14769 (riscv_abi_xlen): New function.
14770 (riscv_isa_flen): Update to get answer from isa_features.
14771 (riscv_abi_flen): New function.
14772 (riscv_has_fp_abi): Update to get answer from abi_features.
14773 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14774 xlen and flen.
14775 (riscv_call_info) <xlen, flen>: Update comment.
14776 (riscv_call_arg_struct): Remove invalid assertions
14777 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14778 is removed.
14779 (riscv_gdbarch_init): Gather isa features and abi features
14780 separately, ensure both match on the gdbarch when reusing an old
14781 gdbarch. Relax an error check to allow 32-bit abi float to run on
14782 a target with 64-bit float hardware.
14783
14784 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14785
14786 * source.c (search_command_helper): Stop reverse search
14787 when line 1 has been searched.
14788
14789 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14790
14791 * record-full.c (record_full_base_target::close): Rewrite
14792 record_full_core_buf_list free logic.
14793
14794 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14795
14796 * break-catch-syscall.c (print_one_catch_syscall): xfree
14797 the last text.
14798
14799 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14800
14801 * top.c (print_gdb_version): Update Copyright year in version
14802 message.
14803
14804 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14805
14806 Update copyright year range in all GDB files.
14807
14808 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14809
14810 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14811
14812 For older changes see ChangeLog-2018.
14813 \f
14814 Local Variables:
14815 mode: change-log
14816 left-margin: 8
14817 fill-column: 74
14818 version-control: never
14819 coding: utf-8
14820 End:
14821
This page took 0.351161 seconds and 5 git commands to generate.