6f377f33473d12b3f53525f866993bd182e47282
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-10 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
4 (tui_highlight_win): Likewise.
5 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
6 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
7 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8 Don't set can_highlight.
9
10 2019-11-10 Tom Tromey <tom@tromey.com>
11
12 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
13 Remove unused declaration.
14
15 2019-11-08 Tom Tromey <tromey@adacore.com>
16
17 * top.c (read_command_file): Update.
18 (command_line_input): Make return type const.
19 * python/py-gdb-readline.c: Update.
20 * linespec.c (decode_line_2): Update.
21 * defs.h (command_line_input): Make return type const.
22 * cli/cli-script.c (read_next_line): Make return type const.
23 * ada-lang.c (get_selections): Update.
24
25 2019-11-06 Christian Biesinger <cbiesinger@google.com>
26
27 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
28 * mi/mi-main.c (output_cores): Likewise.
29 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
30 (linux_xfer_osdata_modules): Likewise.
31 * remote.c (register_remote_support_xml): Likewise.
32 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
33 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
34
35 2019-11-06 Tom Tromey <tom@tromey.com>
36
37 * tui/tui-interp.c: Don't include readline.h.
38 * tui/tui-hooks.c: Don't include readline.h.
39 * symmisc.c: Include tilde.h, not readline.h.
40 * symfile.c: Include tilde.h, not readline.h.
41 * source.c: Include tilde.h, not readline.h.
42 * solib.c: Include tilde.h, not readline.h.
43 * psymtab.c: Include tilde.h, not readline.h.
44 * exec.c: Include tilde.h, not readline.h.
45 * corelow.c: Include tilde.h, not readline.h.
46 * cli/cli-dump.c: Include tilde.h, not readline.h.
47 * cli/cli-cmds.c: Don't include readline.h.
48
49 2019-11-05 Tom Tromey <tom@tromey.com>
50
51 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
52 (tui_disassemble): Set addr_size.
53 (tui_disasm_window::set_contents): Use addr_size.
54
55 2019-11-05 Tom Tromey <tom@tromey.com>
56
57 * rust-lang.c (rust_language_defn): Update.
58 * python/py-value.c (valpy_string): Call c_get_string.
59 * p-lang.c (pascal_language_defn): Update.
60 * opencl-lang.c (opencl_language_defn): Update.
61 * objc-lang.c (objc_language_defn): Update.
62 * m2-lang.c (m2_language_defn): Update.
63 * language.c (unknown_language_defn, auto_language_defn): Update.
64 (default_get_string): Remove.
65 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
66 * go-lang.c (go_language_defn): Update.
67 * f-lang.c (f_language_defn): Update.
68 * d-lang.c (d_language_defn): Update.
69 * c-lang.c (c_language_defn, cplus_language_defn)
70 (asm_language_defn, minimal_language_defn): Update.
71 * ada-lang.c (ada_language_defn): Update.
72 * language.h (struct language_defn) <la_get_string>: Remove.
73 (LA_GET_STRING): Remove.
74 (default_get_string): Don't declare.
75
76 2019-11-05 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-source.h (struct tui_source_window): Inline
79 constructor. Remove destructor.
80 <style_changed, m_observable>: Move to superclass.
81 * tui/tui-winsource.h (tui_copy_source_line): Declare.
82 (struct tui_source_window_base): Move private members to end.
83 <style_changed, m_observable>: Move from tui_source_window.
84 * tui/tui-winsource.c (tui_copy_source_line): Move from
85 tui-source.c. Rename from copy_source_line. Add special handling
86 for negative line number.
87 (tui_source_window_base::style_changed): Move from
88 tui_source_window.
89 (tui_source_window_base): Register observer.
90 (~tui_source_window_base): New.
91 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
92 rename.
93 (tui_source_window::set_contents): Use tui_copy_source_line.
94 (tui_source_window::tui_source_window): Move to tui-source.h.
95 (tui_source_window::~tui_source_window): Remove.
96 (tui_source_window::style_changed): Move to superclass.
97 * tui/tui-disasm.c (tui_disassemble): Create string file with
98 styling, when possible. Add "addr_size" parameter.
99 (tui_disasm_window::set_contents): Use tui_copy_source_line.
100 Don't compute maximum size.
101 (len_without_escapes): New function
102
103 2019-11-05 Tom Tromey <tom@tromey.com>
104
105 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
106 std::string.
107 * tui/tui-winsource.c (tui_show_source_line): Update.
108 * tui/tui-source.c (tui_source_window::set_contents): Update.
109 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
110
111 2019-11-05 Christian Biesinger <cbiesinger@google.com>
112
113 * symtab.h (gdb_static_assert): Put && operator at the beginning
114 of the line instead of the end.
115
116 2019-11-04 Christian Biesinger <cbiesinger@google.com>
117
118 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
119 and sizeof (symbol).
120 * symtab.h: Add a static_assert for sizeof (partial_symbol).
121
122 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
123
124 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
125 * configure.host: Mark *-*-solaris2.10* obsolete.
126 * configure.tgt: Mark Solaris < 11 obsolete.
127 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
128 Update target triplet.
129
130 2019-11-01 Tom Tromey <tromey@adacore.com>
131
132 * utils.c (print_sys_errmsg): Simplify.
133
134 2019-11-01 Tom Tromey <tromey@adacore.com>
135
136 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
137
138 2019-11-01 Christian Biesinger <cbiesinger@google.com>
139
140 * configure: Regenerate.
141 * configure.ac: Remove check for strerror_r.
142 * gdbsupport/common.m4: Check for strerror_r.
143
144 2019-11-01 Luis Machado <luis.machado@linaro.org>
145
146 PR gdb/25124
147
148 * arm-tdep.c (arm_per_objfile): Rename to ...
149 (arm_per_bfd): ... this.
150 (arm_objfile_data_key): Rename to ...
151 (arm_bfd_data_key): ... this.
152 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
153 data.
154 (arm_record_special_symbol): Likewise.
155
156 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
159 end.
160 * c-typeprint.c (c_print_typedef): Likewise.
161 * f-typeprint.c (f_print_typedef): Likewise.
162 * m2-typeprint.c (m2_print_typedef): Likewise.
163 * p-typeprint.c (pascal_print_typedef): Likewise.
164 * rust-lang.c (rust_print_typedef): Likewise.
165 * symtab.c (print_symbol_info): Print a newline after calling
166 typedef_print.
167
168 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * symtab.c (info_module_cmdlist): New variable.
171 (info_module_command): New function.
172 (search_module_symbols): New function.
173 (info_module_subcommand): New function.
174 (struct info_modules_var_func_options): New struct.
175 (info_modules_var_func_options_defs): New variable.
176 (make_info_modules_var_func_options_def_group): New function.
177 (info_module_functions_command): New function.
178 (info_module_variables_command): New function.
179 (info_module_var_func_command_completer): New function.
180 (_initialize_symtab): Register new 'info module functions' and
181 'info module variables' commands.
182 * symtab.h (typedef symbol_search_in_module): New typedef.
183 (search_module_symbols): Declare new function.
184 * NEWS: Mention new commands.
185
186 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
189 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
190 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
191 MODULES_DOMAIN.
192 (scan_partial_symbols): Only create partial module symbols for non
193 declarations.
194 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
195 and MODULES_DOMAIN.
196 * symtab.c (search_domain_name): Likewise.
197 (search_symbols): Likewise.
198 (print_symbol_info): Likewise.
199 (symtab_symbol_info): Likewise.
200 (info_modules_command): New function.
201 (_initialize_symtab): Register 'info modules' command.
202 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
203 * NEWS: Mention new 'info modules' command.
204
205 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
206
207 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
208 and $_gdb_maint_setting_str.
209
210 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
211
212 * cli/cli-cmds.c (setting_cmd, value_from_setting)
213 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
214 (str_value_from_setting, gdb_setting_str_internal_fn)
215 (gdb_maint_setting_str_internal_fn): New functions.
216 (_initialize_cli_cmds): Define the new convenience functions.
217 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
218 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
219
220 2019-10-31 Christian Biesinger <cbiesinger@google.com>
221
222 * agent.c (set_can_use_agent): When the setting is turned on,
223 look up agent symbols if we don't have them yet.
224 (agent_new_objfile): Don't look up agent symbols when the agent
225 setting is off.
226
227 2019-10-31 Christian Biesinger <cbiesinger@google.com>
228
229 * config.in: Regenerate.
230
231 2019-10-31 Christian Biesinger <cbiesinger@google.com>
232
233 * configure: Regenerate.
234 * configure.ac: Check for strerror_r.
235 * gdbsupport/common-utils.h (safe_strerror): Change return value
236 to const char * and document that this function is now threadsafe.
237 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
238 thread_local and call strerror_r, if available.
239 * utils.c (perror_string): Update.
240 (print_sys_errmsg): Update.
241
242 2019-10-31 Luis Machado <luis.machado@linaro.org>
243
244 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
245 objfile_key.
246 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
247 objfile to fetch per-bfd data.
248 (arm_find_exidx_entry): Likewise.
249
250 2019-10-31 Christian Biesinger <cbiesinger@google.com>
251
252 * gdbsupport/agent.c (debug_agent): Change type to bool.
253 (use_agent): Likewise.
254 (all_agent_symbols_look_up): Likewise.
255 (agent_loaded_p): Change return value to bool.
256 (agent_look_up_symbols): Update.
257 (agent_capability_check): Change return value to bool.
258 * gdbsupport/agent.h (agent_loaded_p): Likewise.
259 (debug_agent): Change type to bool.
260 (use_agent): Likewise.
261 (agent_capability_check): Change return value to bool.
262
263 2019-10-30 Christian Biesinger <cbiesinger@google.com>
264
265 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
266 (build_minimal_symbol_hash_tables): Code to clear the table moved
267 to clear_minimal_symbol_hash_tables.
268 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
269 when needed.
270
271 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * infcmd.c: Remove includes.
274 * infrun.c: Remove includes.
275
276 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
279 (grow_vect): Remove declaration.
280 (ada_type_of_array): Remove declaration.
281 (ada_update_initial_language): Remove declaration.
282 (ada_fold_name): Remove declaration.
283 (ada_fill_in_ada_prototype): Remove declaration.
284 (user_select_syms): Remove declaration.
285 (get_selections): Remove declaration.
286 (ada_tag_type): Remove declaration.
287 (ada_value_tag): Remove declaration.
288 (ada_is_others_clause): Remove declaration.
289 (ada_in_variant): Remove declaration.
290 (ada_value_struct_elt): Remove declaration.
291 (ada_attribute_name): Remove declaration.
292 (ada_system_address_type): Remove declaration.
293 * ada-lang.c (ada_watch_location_expression): Make static.
294 (GROW_VECT): Move here from ada-lang.h.
295 (grow_vect): Make static.
296 (ada_update_initial_language): Make static.
297 (ada_fold_name): Make static.
298 (ada_type_of_array): Make static.
299 (encoded_ordered_before): Move up.
300 (sort_choices): Move up.
301 (print_signatures): Move up.
302 (ada_print_symbol_signature): Move up.
303 (get_selections): Move up and make static.
304 (user_select_syms): Move up and make static.
305 (ada_value_struct_elt): Move up and make static.
306 (ada_tag_type): Make static.
307 (ada_value_tag): Make static.
308 (ada_is_others_clause): Make static.
309 (ada_in_variant): Make static.
310 (ada_attribute_name): Make static.
311
312 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * ada-lang.c: Remove includes.
315 * ada-typeprint.c: Remove includes.
316 * ada-valprint.c: Remove includes.
317
318 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
319
320 * addrmap.c: Add static assertions of type size, moved from
321 _initialize_addrmap.
322 (_initialize_addrmap): Remove.
323
324 2019-10-29 Christian Biesinger <cbiesinger@google.com>
325
326 * coffread.c (record_minimal_symbol): Update.
327 (process_coff_symbol): Update.
328 * dbxread.c (read_dbx_symtab): Update.
329 * dwarf2read.c (add_partial_symbol): Update.
330 (fixup_go_packaging): Update.
331 (load_partial_dies): Update.
332 (new_symbol): Update.
333 * elfread.c (record_minimal_symbol): Change signature to use
334 gdb::string_view instead of name+len.
335 (elf_symtab_read): Update.
336 (elf_rel_plt_read): Update.
337 * mdebugread.c (parse_partial_symbols): Update.
338 (handle_psymbol_enumerators): Update.
339 (new_symbol): Update.
340 * minsyms.c (minimal_symbol_reader::record_full): Change signature
341 to use gdb::string_view instead of name+len.
342 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
343 * psympriv.h (add_psymbol_to_list): Likewise.
344 * psymtab.c (add_psymbol_to_bcache): Likewise.
345 (add_psymbol_to_list): Likewise.
346 * stabsread.c (define_symbol): Update.
347 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
348 * symtab.h (SYMBOL_SET_NAMES): Likewise.
349 (symbol_set_names): Likewise.
350 * xcoffread.c (scan_xcoff_symtab): Update.
351
352 2019-10-29 Christian Biesinger <cbiesinger@google.com>
353
354 * symtab.h (symbol_set_names): Document that copy_name must be
355 set to true for non-nullterminated strings.
356 * symtab.c (symbol_set_names): Only make a nullterminated copy of
357 linkage_name if the entry was not found and we need to demangle.
358
359 2019-10-29 Christian Biesinger <cbiesinger@google.com>
360
361 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
362 * dwarf2-frame.c (bsearch_fde_cmp): Update.
363 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
364 * gdbsupport/gdb_binary_search.h: New file.
365
366 2019-10-29 Christian Biesinger <cbiesinger@google.com>
367
368 * NEWS: Mention new --with-system-gdbinit-dir option.
369 * config.in: Regenerate.
370 * configure: Regenerate.
371 * configure.ac: Add new option --with-system-gdbinit-dir.
372 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
373 for a ".gdb" suffix.
374 * main.c (get_init_files): Change system_gdbinit argument to
375 a vector and return the files in SYSTEM_GDBINIT_DIR in
376 addition to SYSTEM_GDBINIT.
377 (captured_main_1): Update.
378 (print_gdb_help): Update.
379 * top.c (print_gdb_configuration): Also print the value of
380 SYSTEM_GDBINIT_DIR.
381
382 2019-10-28 Christian Biesinger <cbiesinger@google.com>
383
384 * gdbsupport/common-utils.h (startswith): Add an overloaded version
385 that takes gdb::string_view arguments.
386
387 2019-10-26 Tom de Vries <tdevries@suse.de>
388
389 * aarch64-linux-tdep.c: Fix typos in comments.
390 * aarch64-tdep.c: Same.
391 * ada-lang.c: Same.
392 * amd64-nat.c: Same.
393 * arc-tdep.c: Same.
394 * arch/aarch64-insn.c: Same.
395 * block.c: Same.
396 * breakpoint.h: Same.
397 * btrace.h: Same.
398 * c-varobj.c: Same.
399 * cli/cli-decode.c: Same.
400 * cli/cli-script.c: Same.
401 * cli/cli-utils.h: Same.
402 * coff-pe-read.c: Same.
403 * coffread.c: Same.
404 * compile/compile-cplus-symbols.c: Same.
405 * compile/compile-object-run.c: Same.
406 * completer.c: Same.
407 * corelow.c: Same.
408 * cp-support.c: Same.
409 * demangle.c: Same.
410 * dwarf-index-write.c: Same.
411 * dwarf2-frame.c: Same.
412 * dwarf2-frame.h: Same.
413 * eval.c: Same.
414 * frame-base.h: Same.
415 * frame.h: Same.
416 * gdbcmd.h: Same.
417 * gdbtypes.h: Same.
418 * gnu-nat.c: Same.
419 * guile/scm-objfile.c: Same.
420 * i386-tdep.c: Same.
421 * i386-tdep.h: Same.
422 * infcall.c: Same.
423 * infcall.h: Same.
424 * linux-nat.c: Same.
425 * m68k-tdep.c: Same.
426 * macroexp.c: Same.
427 * memattr.c: Same.
428 * mi/mi-cmd-disas.c: Same.
429 * mi/mi-getopt.h: Same.
430 * mi/mi-main.c: Same.
431 * minsyms.c: Same.
432 * nat/aarch64-sve-linux-sigcontext.h: Same.
433 * objfiles.h: Same.
434 * ppc-linux-nat.c: Same.
435 * ppc-linux-tdep.c: Same.
436 * ppc-tdep.h: Same.
437 * progspace.h: Same.
438 * prologue-value.h: Same.
439 * python/py-evtregistry.c: Same.
440 * python/py-instruction.h: Same.
441 * record-btrace.c: Same.
442 * record-full.c: Same.
443 * remote.c: Same.
444 * rs6000-tdep.c: Same.
445 * ser-tcp.c: Same.
446 * sol-thread.c: Same.
447 * sparc-sol2-tdep.c: Same.
448 * sparc64-tdep.c: Same.
449 * stabsread.c: Same.
450 * symfile.c: Same.
451 * symtab.h: Same.
452 * target.c: Same.
453 * tracepoint.c: Same.
454 * tui/tui-data.h: Same.
455 * tui/tui-io.c: Same.
456 * tui/tui-win.c: Same.
457 * tui/tui.c: Same.
458 * unittests/rsp-low-selftests.c: Same.
459 * user-regs.h: Same.
460 * utils.c: Same.
461 * utils.h: Same.
462 * valarith.c: Same.
463 * valops.c: Same.
464 * valprint.c: Same.
465 * valprint.h: Same.
466 * value.c: Same.
467 * value.h: Same.
468 * varobj.c: Same.
469 * x86-nat.h: Same.
470 * xtensa-tdep.c: Same.
471
472 2019-10-25 Ali Tamur <tamur@google.com>
473
474 * charset.c (find_charset_names): Reflect API change.
475
476 2019-10-25 Christian Biesinger <cbiesinger@google.com>
477
478 * symtab.c (struct demangled_name_entry): Change demangled name
479 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
480 part of the struct anymore.
481 (symbol_set_names): No longer obstack allocate + copy the demangled
482 name, just store the allocated name from bfd.
483
484 2019-10-25 Tom Tromey <tromey@adacore.com>
485
486 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
487 (bsearch_cie_cmp, add_cie): Remove.
488 (find_cie): Reimplement.
489 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
490 (dwarf2_build_frame_info): Update.
491
492 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
493
494 PR gdb/25126
495 * symfile.c (reread_symbols): Call forget_cached_source_info to
496 clear the stale source cache.
497
498 2019-10-24 Christian Biesinger <cbiesinger@google.com>
499
500 * configure: Regenerate.
501 * configure.ac: Remove code that sets python_has_threads.
502
503 2019-10-24 Christian Biesinger <cbiesinger@google.com>
504
505 * config.in: Regenerate.
506 * configure: Regenerate.
507 * configure.ac: Remove the code that uses sed to get the python
508 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
509
510 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * python/py-progspace.c (pspy_block_for_pc): Return None for all
513 error paths.
514
515 2019-10-23 Tom Tromey <tom@tromey.com>
516
517 * arc-tdep.c: Remove ".." from include.
518 * frv-tdep.c: Remove ".." from include.
519 * lm32-tdep.c: Remove ".." from include.
520 * microblaze-tdep.c: Remove ".." from include.
521 * or1k-tdep.h: Remove ".." from include.
522 * s12z-tdep.c: Remove ".." from include.
523 * Makefile.in (OPCODES_CFLAGS): Add comment.
524 (TOP_CFLAGS): New variable.
525 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
526
527 2019-10-23 Tom Tromey <tom@tromey.com>
528
529 * Makefile.in (READLINE_DIR): Update.
530
531 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532
533 * infcall.c (call_function_by_hand_dummy): Fix the function
534 comment. And extract out a code section into...
535 (reserve_stack_space): ...this new function.
536
537 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
538
539 * infcall.c (value_arg_coerce): Remove an unused parameter.
540 (call_function_by_hand_dummy): Update the call to
541 'value_arg_coerce'.
542
543 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544
545 * infcall.c (call_function_by_hand_dummy): Refactor.
546
547 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
549 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
550
551 2019-10-23 Tom Tromey <tom@tromey.com>
552
553 * configure: Rebuild.
554 * configure.ac: Don't check for sigprocmask.
555 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
556
557 2019-10-23 Tom Tromey <tom@tromey.com>
558
559 * configure: Rebuild.
560 * acinclude.m4: Use m4_include, not sinclude.
561
562 2019-10-23 Tom de Vries <tdevries@suse.de>
563
564 PR breakpoints/24687
565 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
566
567 2019-10-22 Christian Biesinger <cbiesinger@google.com>
568
569 * symtab.c (struct demangled_name_entry) <language>: Change from
570 bitfield to regular variable.
571
572 2019-10-22 Christian Biesinger <cbiesinger@google.com>
573
574 * symtab.c (struct demangled_name_entry): Add a constructor.
575 (free_demangled_name_entry): New function to call the destructor
576 for demangled_name_entry.
577 (create_demangled_names_hash): Pass free_demangled_name_entry to
578 htab_create_alloc.
579 (symbol_set_names): Call placement new for demangled_name_entry.
580 * utils.c: No longer include xxhash.h here, now that fast_hash
581 is inlined in the header.
582 * utils.h: Instead, include it here.
583
584 2019-10-22 Christian Biesinger <cbiesinger@google.com>
585
586 * Makefile.in: Link with libxxhash.
587 * config.in: Regenerate.
588 * configure: Regenerate.
589 * configure.ac: Search for libxxhash.
590 * utils.c (fast_hash): Use xxhash if present.
591
592 2019-10-22 Christian Biesinger <cbiesinger@google.com>
593
594 * utils.h (fast_hash): New function.
595 * symtab.c (hash_demangled_name_entry): Call new function
596 fast_hash.
597
598 2019-10-22 Christian Biesinger <cbiesinger@google.com>
599
600 * symtab.c (struct demangled_name_entry): Change type of mangled
601 to gdb::string_view. Also adds a constructor that takes the
602 mangled name.
603 (hash_demangled_name_entry): Update.
604 (eq_demangled_name_entry): Update.
605 (free_demangled_name_entry): New function to call the destructor
606 now that this is not a POD anymore.
607 (create_demangled_names_hash): Pass free_demangled_name_entry to
608 htab_create_alloc.
609 (symbol_set_names): Update.
610
611 2019-10-21 Ali Tamur <tamu@google.com>
612
613 * dwarf2read.c (dir_index): Change type.
614 (file_name_index): Likewise.
615 (line_header::include_dir_at): Change comment and implementation on
616 whether it is DWARF 5.
617 (line_header::is_valid_file_index): New function.
618 (line_header::file_name_at): Change comment and implementation on
619 whether it is DWARF 5.
620 (line_header::file_names): Change to private field renamed as
621 m_file_names and introduce a new accessor method.
622 (line_header::file_names_size): New method.
623 (line_header::include_dirs): Change to private field and rename as
624 m_include_dirs.
625 (dw2_get_file_names_reader): Define local var at a smaller scope and
626 reflect API change.
627 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
628 (process_structure_scope): Likewise.
629 (line_header::add_include_dir): Change message and reflect renaming.
630 (line_header::add_file_name): Likewise.
631 (read_formatted_entries): Handle DW_FORM_data16.
632 (dwarf_decode_line_header): Fix line header length calculation.
633 (psymtab_include_file_name): Change comment and API.
634 (lnp_state_machine::m_file): Update comment and reflect type change.
635 (lnp_state_machine::record_line): Reflect type change.
636 (dwarf_decode_lines): Reflect API change.
637 (file_file_name): Likewise.
638 (file_full_name): Likewise.
639
640 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
643
644 2019-10-21 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
647
648 2019-10-21 Tom Tromey <tom@tromey.com>
649
650 * configure.ac (nm.h): Conditionally create nm.h link. Subst
651 NM_H. Use AC_CONFIG_LINKS.
652 * configure: Rebuild.
653 * Makefile.in (NM_H): New variable.
654 (generated_files): Add NM_H. Remove gcore.
655 (nm.h, stamp-nmh): New targets.
656
657 2019-10-20 Tom Tromey <tom@tromey.com>
658
659 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
660 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
661 obsolete comment.
662 (put_objfile_before): Now static.
663
664 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * gdbsupport/common-utils.h (startswith): Change return type to
667 bool.
668
669 2019-10-19 Christian Biesinger <cbiesinger@google.com>
670
671 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
672 * breakpoint.c (bp_locations_compare): Rename to...
673 (bp_location_is_less_than): ...this, and change to std::sort semantics.
674 (update_global_location_list): Use std::sort instead of qsort.
675 * buildsym.c (compare_line_numbers): Rename to...
676 (lte_is_less_than): ...this, and change to std::sort semantics.
677 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
678 instead of qsort.
679 * disasm.c (compare_lines): Rename to...
680 (line_is_less_than): ...this, and change to std::sort semantics.
681 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
682 of qsort.
683 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
684 (fde_is_less_than): ...this, and change to std::sort semantics.
685 (dwarf2_build_frame_info): Call std::sort instead of qsort.
686 * mdebugread.c (compare_blocks):
687 (block_is_less_than): ...this, and change to std::sort semantics.
688 (sort_blocks): Call std::sort instead of qsort.
689 * objfiles.c (qsort_cmp): Rename to...
690 (sort_cmp): ...this, and change to std::sort semantics.
691 (update_section_map): Call std::sort instead of qsort.
692 * remote.c (compare_pnums): Remove.
693 (map_regcache_remote_table): Call std::sort instead of qsort.
694 * utils.c (compare_positive_ints): Remove.
695 * utils.h (compare_positive_ints): Remove.
696 * xcoffread.c (compare_lte): Remove.
697 (arrange_linetable): Call std::sort instead of qsort.
698
699 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
700
701 * symfile.c (init_entry_point_info): Fix typo.
702 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
703
704 2019-10-18 Tom de Vries <tdevries@suse.de>
705
706 * aarch64-tdep.c: Fix typos in comments.
707 * ada-lang.c: Same.
708 * ada-tasks.c: Same.
709 * alpha-tdep.c: Same.
710 * alpha-tdep.h: Same.
711 * amd64-nat.c: Same.
712 * amd64-windows-tdep.c: Same.
713 * arc-tdep.c: Same.
714 * arc-tdep.h: Same.
715 * arch-utils.c: Same.
716 * arm-nbsd-tdep.c: Same.
717 * arm-tdep.c: Same.
718 * ax-gdb.c: Same.
719 * blockframe.c: Same.
720 * btrace.c: Same.
721 * c-varobj.c: Same.
722 * coff-pe-read.c: Same.
723 * coffread.c: Same.
724 * cris-tdep.c: Same.
725 * darwin-nat.c: Same.
726 * dbxread.c: Same.
727 * dcache.c: Same.
728 * disasm.c: Same.
729 * dtrace-probe.c: Same.
730 * dwarf-index-write.c: Same.
731 * dwarf2-frame-tailcall.c: Same.
732 * dwarf2-frame.c: Same.
733 * dwarf2read.c: Same.
734 * eval.c: Same.
735 * exceptions.c: Same.
736 * fbsd-tdep.c: Same.
737 * findvar.c: Same.
738 * frame.c: Same.
739 * frv-tdep.c: Same.
740 * gnu-v3-abi.c: Same.
741 * go32-nat.c: Same.
742 * h8300-tdep.c: Same.
743 * hppa-tdep.c: Same.
744 * i386-linux-tdep.c: Same.
745 * i386-tdep.c: Same.
746 * ia64-libunwind-tdep.c: Same.
747 * ia64-tdep.c: Same.
748 * infcmd.c: Same.
749 * infrun.c: Same.
750 * linespec.c: Same.
751 * linux-nat.c: Same.
752 * linux-thread-db.c: Same.
753 * machoread.c: Same.
754 * mdebugread.c: Same.
755 * mep-tdep.c: Same.
756 * mn10300-tdep.c: Same.
757 * namespace.c: Same.
758 * objfiles.c: Same.
759 * opencl-lang.c: Same.
760 * or1k-tdep.c: Same.
761 * osabi.c: Same.
762 * ppc-linux-nat.c: Same.
763 * ppc-linux-tdep.c: Same.
764 * ppc-sysv-tdep.c: Same.
765 * printcmd.c: Same.
766 * procfs.c: Same.
767 * record-btrace.c: Same.
768 * record-full.c: Same.
769 * remote-fileio.c: Same.
770 * remote.c: Same.
771 * rs6000-tdep.c: Same.
772 * s12z-tdep.c: Same.
773 * score-tdep.c: Same.
774 * ser-base.c: Same.
775 * ser-go32.c: Same.
776 * skip.c: Same.
777 * sol-thread.c: Same.
778 * solib-svr4.c: Same.
779 * solib.c: Same.
780 * source.c: Same.
781 * sparc-nat.c: Same.
782 * sparc-sol2-tdep.c: Same.
783 * sparc-tdep.c: Same.
784 * sparc64-tdep.c: Same.
785 * stabsread.c: Same.
786 * stack.c: Same.
787 * symfile.c: Same.
788 * symtab.c: Same.
789 * target-descriptions.c: Same.
790 * target-float.c: Same.
791 * thread.c: Same.
792 * utils.c: Same.
793 * valops.c: Same.
794 * valprint.c: Same.
795 * value.c: Same.
796 * varobj.c: Same.
797 * windows-nat.c: Same.
798 * xcoffread.c: Same.
799 * xstormy16-tdep.c: Same.
800 * xtensa-tdep.c: Same.
801
802 2019-10-17 Tom Tromey <tromey@adacore.com>
803
804 * configure: Rebuild.
805 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
806 in AC_CONFIG_FILES invocation.
807 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
808 new-style config.status invocation.
809
810 2019-10-17 Tom de Vries <tdevries@suse.de>
811
812 * arm-nbsd-nat.c: Fix typos in comments.
813 * arm-tdep.c: Same.
814 * darwin-nat-info.c: Same.
815 * dwarf2read.c: Same.
816 * elfread.c: Same.
817 * event-top.c: Same.
818 * findvar.c: Same.
819 * gdbtypes.c: Same.
820 * hppa-tdep.c: Same.
821 * i386-tdep.c: Same.
822 * jit.c: Same.
823 * main.c: Same.
824 * mdebugread.c: Same.
825 * moxie-tdep.c: Same.
826 * nto-procfs.c: Same.
827 * osabi.c: Same.
828 * ppc-linux-tdep.c: Same.
829 * remote.c: Same.
830 * riscv-tdep.c: Same.
831 * s390-tdep.c: Same.
832 * sh-tdep.c: Same.
833 * sparc-linux-tdep.c: Same.
834 * sparc-nat.c: Same.
835 * stack.c: Same.
836 * target-descriptions.c: Same.
837 * top.c: Same.
838 * varobj.c: Same.
839
840 2019-10-16 Tom Tromey <tom@tromey.com>
841
842 * objfiles.h (struct objfile) <original_name>: Now const.
843
844 2019-10-16 Christian Biesinger <cbiesinger@google.com>
845
846 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
847 pass on to sigsetjmp's second argument.
848 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
849
850 2019-10-16 Keith Seitz <keiths@redhat.com>
851
852 PR gdb/23567
853 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
854 sections whose size is greater than the file size.
855
856 2019-10-16 Jim Wilson <jimw@sifive.com>
857
858 * riscv-tdep.c (riscv_gcc_target_options): New.
859 (riscv_gnu_triplet_regexp): New.
860 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
861 set_gdbarch_gnu_triplet_regexp.
862
863 2019-10-16 Christian Biesinger <cbiesinger@google.com>
864
865 * Makefile.in: Add xml-builtin.h.
866 * features/feature_to_c.sh: Add an include for xml-builtin.h
867 to ensure that the compiler checks that the types match.
868 * xml-builtin.h: New file.
869 * xml-support.c (fetch_xml_builtin): Add missing const.
870 * xml-support.h: Remove declaration of xml_builtins.
871
872 2019-10-16 Tom de Vries <tdevries@suse.de>
873
874 PR tdep/25096
875 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
876 (amd64_classify_aggregate): ... here.
877 (amd64_classify_aggregate_field): Handled fiels of nested structs
878 recursively.
879
880 2019-10-16 Tom de Vries <tdevries@suse.de>
881
882 PR tdep/24104
883 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
884 that handles 'theclass'.
885
886 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * linespec.c (decode_digits_ordinary): Update comment.
889 * make-target-delegates: No longer need to handle VEC case.
890 * memrange.c (normalize_mem_ranges): Update comment.
891 * namespace.c (add_using_directive): Update comment.
892 * objc-lang.c (uniquify_strings): Update comment.
893 * ppc-linux-nat.c (struct thread_points): Update comment.
894 * probe.h (find_probes_in_objfile): Update comment.
895 * target.h (enum flash_preserve_mode): Update comment.
896 * varobj.c (varobj_restrict_range): Update comment.
897 * varobj.h (varobj_list_children): Update comment.
898
899 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * Makefile.in: Remove references to vec.h and vec.c.
902 * aarch64-tdep.c: No longer include vec.h.
903 * ada-lang.c: Likewise.
904 * ada-lang.h: Likewise.
905 * arm-tdep.c: Likewise.
906 * ax.h: Likewise.
907 * breakpoint.h: Likewise.
908 * charset.c: Likewise.
909 * cp-support.h: Likewise.
910 * dtrace-probe.c: Likewise.
911 * dwarf2read.c: Likewise.
912 * extension.h: Likewise.
913 * gdb_bfd.c: Likewise.
914 * gdbsupport/gdb_vecs.h: Likewise.
915 * gdbsupport/vec.c: Remove.
916 * gdbsupport/vec.h: Remove.
917 * gdbthread.h: Likewise.
918 * guile/scm-type.c: Likewise.
919 * inline-frame.c: Likewise.
920 * machoread.c: Likewise.
921 * memattr.c: Likewise.
922 * memrange.h: Likewise.
923 * namespace.h: Likewise.
924 * nat/linux-btrace.h: Likewise.
925 * osdata.c: Likewise.
926 * parser-defs.h: Likewise.
927 * progspace.h: Likewise.
928 * python/py-type.c: Likewise.
929 * record-btrace.c: Likewise.
930 * rust-exp.y: Likewise.
931 * solib-target.c: Likewise.
932 * stap-probe.c: Likewise.
933 * target-descriptions.c: Likewise.
934 * target-memory.c: Likewise.
935 * target.h: Likewise.
936 * varobj.c: Likewise.
937 * varobj.h: Likewise.
938 * xml-support.h: Likewise.
939
940 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
943 Update for new std::vector based implementation.
944 (process_psymtab_comp_unit_reader): Likewise.
945 (scan_partial_symbols): Likewise.
946 (recursively_compute_inclusions): Likewise.
947 (compute_compunit_symtab_includes): Likewise.
948 (process_imported_unit_die): Likewise.
949 (queue_and_load_dwo_tu): Likewise.
950 (follow_die_sig_1): Likewise.
951 * gdb/dwarf2read.h: Remove DEF_VEC_P.
952 (typedef dwarf2_per_cu_ptr): Remove.
953 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
954 function.
955 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
956 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
957 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
958 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
959 std::vector.
960
961 2019-10-15 Tom Tromey <tromey@adacore.com>
962
963 * windows-nat.c (windows_nat_target::resume): Use %x when logging
964 TID.
965
966 2019-10-15 Tom Tromey <tromey@adacore.com>
967
968 * windows-nat.c (windows_nat_target::fetch_registers)
969 (windows_nat_target::store_registers): Rename "pid" to "tid".
970
971 2019-10-15 Tom Tromey <tromey@adacore.com>
972
973 * gdbarch.h, gdbarch.c: Rebuild.
974 * gdbarch.sh (gcc_target_options): Change return type to
975 std::string.
976 * compile/compile.c (get_args): Update.
977 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
978 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
979 std::string.
980 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
981 std::string.
982 * arch-utils.c (default_gcc_target_options): Return std::string.
983 * arch-utils.h (default_gcc_target_options): Return std::string.
984 * s390-tdep.c (s390_gcc_target_options): Return std::string.
985
986 2019-10-15 Christian Biesinger <cbiesinger@google.com>
987
988 * breakpoint.c (breakpoint_chain): Make static.
989 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
990 of accessing breakpoint_chain.
991
992 2019-10-15 Christian Biesinger <cbiesinger@google.com>
993
994 * breakpoint.c (iterate_over_breakpoints): Change function pointer
995 to a gdb::function_view and return value to bool.
996 * breakpoint.h (iterate_over_breakpoints): Likewise.
997 * dummy-frame.c (pop_dummy_frame_bpt): Update.
998 (pop_dummy_frame): Update.
999 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1000 (gdbscm_breakpoints): Update.
1001 * python/py-breakpoint.c (build_bp_list): Update.
1002 (gdbpy_breakpoints): Update.
1003 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1004 Update.
1005 (bpfinishpy_handle_stop): Update.
1006 (bpfinishpy_handle_exit): Update.
1007 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1008 (svr4_update_solib_event_breakpoints): Update.
1009
1010 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1011
1012 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1013 when unwrapping single-field structs.
1014
1015 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * dwarf2read.c: Remove includes.
1018
1019 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * ui-out.c (ui_out::call_do_message): Silence
1022 -Wformat-nonliteral warning.
1023
1024 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1027 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1028 include: readline/tilde.h.
1029
1030 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1031
1032 * remote.c (remote_target::get_trace_status): Remove declaration of
1033 trace_regblock_size.
1034
1035 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1036
1037 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1038 (show_user): Remove declaration of cmdlist.
1039 * cli/cli-cmds.h (max_user_call_depth): Declare.
1040 * cli/cli-script.c (execute_user_command): Remove declaration
1041 of max_user_call_depth.
1042
1043 2019-10-11 Jim Wilson <jimw@sifive.com>
1044
1045 * gdbsupport/print-utils.h (pulongest): Fix comment.
1046 (plongest): Likewise.
1047 (phex): Add missing comment, mention leading zeros.
1048 (phex_nz): Add mention of no leading zeros to comment.
1049
1050 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1051 plongest instead of unsigned long long cast.
1052
1053 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1054
1055 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1056 for external_editor_command and gdbtk_test.
1057
1058 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1059
1060 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1061 * varobj.c (varobjdebug): Move comment to...
1062 * varobj.h (varobjdebug): ...here, and declare.
1063
1064 2019-10-09 Tom Tromey <tom@tromey.com>
1065
1066 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1067 erase_data_content.
1068
1069 2019-10-09 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1072 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1073 * tui/tui-command.c (tui_cmd_window::resize)
1074 (tui_refresh_cmd_win): Update.
1075 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1076 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1077 * tui/tui-data.c (~tui_gen_win_info): Remove.
1078 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1079 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1080 (tui_redisplay_readline, tui_mld_flush)
1081 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1082 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1083 (tui_data_window::erase_data_content)
1084 (tui_data_item_window::rerender)
1085 (tui_data_item_window::refresh_window): Update.
1086 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1087 (box_win, tui_gen_win_info::make_window)
1088 (tui_gen_win_info::make_visible): Update.
1089 (tui_delete_win): Remove.
1090 * tui/tui-winsource.c
1091 (tui_source_window_base::do_erase_source_content): Update.
1092 (tui_show_source_line, tui_source_window_base::update_tab_width)
1093 (tui_source_window_base::update_exec_info): Update.
1094 * tui/tui-data.h (struct curses_deleter): New.
1095 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1096 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1097
1098 2019-10-09 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1101
1102 2019-10-09 Tom Tromey <tom@tromey.com>
1103
1104 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1105 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1106
1107 2019-10-09 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1110 window height directly.
1111 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1112 declare.
1113 * tui/tui-layout.c (tui_default_win_height): Remove.
1114 (tui_default_win_viewport_height): Remove.
1115
1116 2019-10-09 Tom Tromey <tom@tromey.com>
1117
1118 * tui/tui.h: Remove comments.
1119
1120 2019-10-09 Tom de Vries <tdevries@suse.de>
1121
1122 * python/lib/gdb/printer/bound_registers.py: Use
1123 '^builtin_type_bound128' as regexp argument for
1124 add_builtin_pretty_printer.
1125
1126 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1127
1128 * guile/guile.c (guile_extension_script_ops): Remove forward
1129 declaration and mark as static.
1130 (guile_script_ops): Likewise.
1131 (extension_language_guile): Move further down in the file so
1132 it can reference the definitions for guile_{extension_,}script_ops.
1133
1134 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1135
1136 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1137 except SORTL, DFLTCC, and KDSA.
1138
1139 2019-10-08 Tom Tromey <tromey@adacore.com>
1140
1141 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1142 (struct safe_symbol_file_add_args): Remove.
1143
1144 2019-10-08 Tom Tromey <tromey@adacore.com>
1145
1146 * windows-nat.c: Don't include buildsym-legacy.h.
1147
1148 2019-10-08 Tom Tromey <tromey@adacore.com>
1149
1150 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1151
1152 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1153
1154 * gdbtypes.c (overload_debug): Move comment to header.
1155 * gdbtypes.h (overload_debug): Declare.
1156 * valops.c: Remove declaration of overload_debug, instead
1157 include gdbtypes.h.
1158
1159 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1160
1161 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1162 through _().
1163 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1164 move comment...
1165 * language.h (lang_frame_mismatch_warn): ... here. Also add
1166 declaration.
1167 * top.c (lang_frame_mismatch_warn): Remove declaration.
1168 (check_frame_language_change): Pass lang_frame_mismatch_warn
1169 through _().
1170
1171 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1172
1173 * c-lang.h (vtbl_ptr_name): Declare.
1174 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1175 it from the header.
1176 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1177
1178 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1179
1180 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1181 gdb_static_assert.
1182
1183 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1184
1185 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1186 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1187 * ctfread.c: New file.
1188 * ctfread.h: New file.
1189 * elfread.c: Include ctfread.h.
1190 (struct elfinfo text_p): New member ctfsect.
1191 (elf_locate_sections): Mark CTF section.
1192 (elf_symfile_read): Call elfctf_build_psymtabs.
1193 * Makefile.in (LIBCTF): Add.
1194 (CLIBS): Use it.
1195 (CDEPS): Likewise.
1196 (DIST): Add ctfread.c.
1197
1198 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * ctfread.c (struct nextfield): Renamed to ...
1201 (struct ctf_nextfield): ... this.
1202 (struct field_info): Renamed to ...
1203 (strut ctf_field_info): ... this.
1204 (attach_fields_to_type): Update for renamed structures.
1205 (ctf_add_member_cb): Likewise.
1206 (ctf_add_enum_member_cb): Likewise.
1207 (process_struct_members): Likewise.
1208 (process_enum_type): Likewise.
1209
1210 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1211
1212 * tracectf.h: Rename, was ctf.h.
1213 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1214 * tracefile.c: Likewise.
1215 * tracepoint.c: Remove unused include ctf.h.
1216 * mi/mi-main.c: Likewise.
1217 * Makefile.in Replace ctf.c with tracectf.c.
1218
1219 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1220
1221 * version.in: Change version number to "9.0.50.DATE-git".
1222
1223 2019-10-03 Tom Tromey <tom@tromey.com>
1224
1225 PR rust/24976:
1226 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1227
1228 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1231 cp_search_name_hash.
1232 * NEWS: Add entry about nested function support.
1233
1234 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1235 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1238 for nested static variables when searchin VAR_DOMAIN.
1239 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1240 global scope, update comment.
1241 (add_partial_subprogram): Call add_partial_subprogram recursively
1242 for nested subroutines when processinng Fortran.
1243 (load_partial_dies): Process the child entities of a subprogram
1244 when processing Fortran.
1245 (partial_die_parent_scope): Handle building scope
1246 for Fortran nested functions.
1247 (process_die): Record that nested functions have a scope.
1248 (new_symbol): Always record Fortran subprograms on the global
1249 symbol list.
1250 (determine_prefix): How to build the prefix for Fortran
1251 subprograms.
1252
1253 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1256 have just sent the thread a SIGSTOP and are waiting for it to
1257 arrive.
1258
1259 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * btrace.c (btrace_add_pc): Remove whitespace before the template
1262 parameter in 'std::vector <...>'.
1263 (parse_xml_btrace_block): Likewise.
1264 (btrace_maint_decode_pt): Likewise.
1265 (btrace_maint_update_packets): Likewise.
1266 (btrace_maint_print_packets): Likewise.
1267 * btrace.h (struct btrace_maint_info): Likewise.
1268 * dwarf2read.c (struct type_unit_group): Likewise.
1269 (build_type_psymtabs_reader): Likewise.
1270 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1271 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1272 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1273
1274 2019-10-03 Tom de Vries <tdevries@suse.de>
1275
1276 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1277 the first line of the help text for set/show style metadata.
1278
1279 2019-10-02 Tom Tromey <tromey@adacore.com>
1280
1281 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1282 * gdbsupport/common-inferior.c: New file.
1283 * infcmd.c (startup_with_shell): Don't define.
1284 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1285 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1286 * inferior.h (startup_with_shell): Don't declare.
1287
1288 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1289
1290 * gdbsupport/gdb_assert.h: Include errors.h.
1291 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1292
1293 2019-10-02 Tom Tromey <tromey@adacore.com>
1294
1295 * NEWS: Add $_ada_exception entry.
1296 * ada-lang.c (struct ada_catchpoint): Add constructor.
1297 <m_kind>: New member.
1298 (allocate_location_exception, re_set_exception): Remove
1299 "ex" parameter.
1300 (should_stop_exception): Compute $_ada_exception.
1301 (check_status_exception, print_it_exception)
1302 (print_one_exception, print_mention_exception): Remove
1303 "ex" parameter.
1304 (allocate_location_catch_exception, re_set_catch_exception)
1305 (check_status_exception, print_it_catch_exception)
1306 (print_one_catch_exception, print_mention_catch_exception)
1307 (print_recreate_catch_exception)
1308 (allocate_location_catch_exception_unhandled)
1309 (re_set_catch_exception_unhandled)
1310 (check_status_exception, print_it_catch_exception_unhandled)
1311 (print_one_catch_exception_unhandled)
1312 (print_mention_catch_exception_unhandled)
1313 (print_recreate_catch_exception_unhandled)
1314 (allocate_location_catch_assert, re_set_catch_assert)
1315 (check_status_assert, print_it_catch_assert)
1316 (print_one_catch_assert, print_mention_catch_assert)
1317 (print_recreate_catch_assert)
1318 (allocate_location_catch_handlers, re_set_catch_handlers)
1319 (check_status_handlers, print_it_catch_handlers)
1320 (print_one_catch_handlers, print_mention_catch_handlers)
1321 (print_recreate_catch_handlers): Remove.
1322 (create_ada_exception_catchpoint): Update.
1323 (initialize_ada_catchpoint_ops): Update.
1324
1325 2019-10-02 Tom Tromey <tromey@adacore.com>
1326
1327 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1328 (create_excep_cond_exprs): Simplify exception string computation.
1329 (ada_exception_catchpoint_cond_string): Likewise.
1330
1331 2019-10-02 Tom Tromey <tromey@adacore.com>
1332
1333 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1334 * ada-lang.c (lesseq_defined_than): Handle
1335 LOC_STATIC.
1336 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1337 parameter.
1338 (dwarf2_has_info): Likewise.
1339 (new_symbol): Set maybe_copied on symbol when
1340 appropriate.
1341 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1342 parameter.
1343 <can_copy>: New member.
1344 * elfread.c (record_minimal_symbol): Set maybe_copied
1345 on symbol when appropriate.
1346 (elf_symfile_read): Update call to dwarf2_has_info.
1347 * minsyms.c (lookup_minimal_symbol_linkage): New
1348 function.
1349 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1350 * symtab.c (get_symbol_address, get_msymbol_address):
1351 New functions.
1352 * symtab.h (get_symbol_address, get_msymbol_address):
1353 Declare.
1354 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1355 maybe_copied.
1356 (struct symbol, struct minimal_symbol) <maybe_copied>:
1357 New member.
1358
1359 2019-10-02 Tom Tromey <tromey@adacore.com>
1360
1361 * source.c (struct current_source_location): New.
1362 (current_source_key): New global.
1363 (current_source_symtab, current_source_line)
1364 (current_source_pspace): Remove.
1365 (get_source_location): New function.
1366 (get_current_source_symtab_and_line)
1367 (set_default_source_symtab_and_line)
1368 (set_current_source_symtab_and_line)
1369 (clear_current_source_symtab_and_line, select_source_symtab)
1370 (info_source_command, print_source_lines_base)
1371 (info_line_command, search_command_helper, _initialize_source):
1372 Update.
1373
1374 2019-10-02 Tom Tromey <tromey@adacore.com>
1375
1376 * source.c (select_source_symtab): Don't call
1377 decode_line_with_current_source.
1378
1379 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * symtab.c (lookup_global_symbol): Search global block.
1382
1383 2019-10-02 Tom Tromey <tromey@adacore.com>
1384
1385 * coffread.c (process_coff_symbol): Update.
1386 * dwarf2read.c (var_decode_location, new_symbol): Update.
1387 * mdebugread.c (parse_symbol): Update.
1388 * objfiles.c (relocate_one_symbol): Update.
1389 * stabsread.c (define_symbol, fix_common_block)
1390 (scan_file_globals): Update.
1391 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1392 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1393 * xcoffread.c (process_xcoff_symbol): Update.
1394
1395 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1396
1397 * MAINTAINERS: Update my email address.
1398
1399 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1402 std::vector.
1403 (build_type_psymtabs_reader): Update for std::vector.
1404 (build_type_psymtab_dependencies): Likewise.
1405 * dwarf2read.h: Remove use of DEF_VEC_P.
1406 (typedef sig_type_ptr): Delete.
1407
1408 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1411 to std::vector.
1412 (btrace_maint_decode_pt): Likewise, and move allocation of the
1413 vector outside of the loop.
1414 (btrace_maint_update_packets): Update to handle change from VEC to
1415 std::vector.
1416 (btrace_maint_print_packets): Likewise.
1417 (maint_info_btrace_cmd): Likewise.
1418 * btrace.h: Remove use of DEF_VEC_O.
1419 (typedef btrace_pt_packet_s): Delete.
1420 (struct btrace_maint_info) <packets>: Change fromm VEC to
1421 std::vector.
1422 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1423
1424 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1427 make accesses into the vector constant references.
1428 (btrace_add_pc): Update for std::vector.
1429 (btrace_stitch_bts): Likewise.
1430 (parse_xml_btrace_block): Likewise.
1431 (btrace_maint_update_packets): Likewise.
1432 (btrace_maint_print_packets): Likewise.
1433 (maint_info_btrace_cmd): Likewise.
1434 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1435 std::vector.
1436 (btrace_data::empty): Likewise.
1437 (btrace_data_append): Likewise.
1438 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1439 (typedef btrace_block_s): Delete.
1440 (struct btrace_block): Add constructor.
1441 (struct btrace_data_bts) <blocks>: Change to std::vector.
1442 * nat/linux-btrace.c (perf_event_read_bts): Update for
1443 std::vector.
1444 (linux_read_bts): Likewise.
1445
1446 2019-10-01 Tom Tromey <tom@tromey.com>
1447
1448 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1449
1450 2019-10-01 Tom Tromey <tom@tromey.com>
1451
1452 * stack.c (print_frame, info_frame_command_core): Use
1453 styled_string.
1454 * linux-thread-db.c (try_thread_db_load_1)
1455 (try_thread_db_load_from_pdir_1): Use styled_string.
1456 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1457 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1458 (maybe_print_unsupported_script_warning)
1459 (maybe_print_script_not_found_warning): Use styled_string.
1460 * ada-lang.c (user_select_syms): Use styled_string.
1461
1462 2019-10-01 Tom Tromey <tom@tromey.com>
1463
1464 * p-lang.c (pascal_printstr): Use metadata style.
1465 * value.c (show_convenience): Use metadata style.
1466 * valprint.c (valprint_check_validity, val_print_optimized_out)
1467 (val_print_not_saved, val_print_unavailable)
1468 (val_print_invalid_address, generic_val_print, val_print)
1469 (value_check_printable, val_print_array_elements): Use metadata
1470 style.
1471 * ui-out.h (class ui_out) <field_fmt>: New overload.
1472 <do_field_fmt>: Add style parameter.
1473 * ui-out.c (ui_out::field_fmt): New overload.
1474 * typeprint.c (type_print_unknown_return_type)
1475 (val_print_not_allocated, val_print_not_associated): Use metadata
1476 style.
1477 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1478 parameter.
1479 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1480 * tracepoint.c (tvariables_info_1): Use metadata style.
1481 * stack.c (print_frame_arg, print_frame_info, print_frame)
1482 (info_frame_command_core): Use metadata style.
1483 * skip.c (info_skip_command): Use metadata style.
1484 * rust-lang.c (rust_print_enum): Use metadata style.
1485 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1486 metadata style.
1487 * python/py-framefilter.c (py_print_single_arg): Use metadata
1488 style.
1489 * printcmd.c (do_one_display, print_variable_and_value): Use
1490 metadata style.
1491 * p-valprint.c (pascal_val_print)
1492 (pascal_object_print_value_fields): Use metadata style.
1493 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1494 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1495 parameter.
1496 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1497 * m2-valprint.c (m2_print_long_set): Use metadata style.
1498 * m2-typeprint.c (m2_print_type): Use metadata style.
1499 * infcmd.c (print_return_value_1): Use metadata style.
1500 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1501 * f-valprint.c (info_common_command_for_block): Use metadata
1502 style.
1503 * f-typeprint.c (f_type_print_base): Use metadata style.
1504 * expprint.c (print_subexp_standard): Use metadata style.
1505 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1506 * cli/cli-style.h (class cli_style_option): Add constructor.
1507 (metadata_style): Declare.
1508 * cli/cli-style.c (metadata_style): New global.
1509 (_initialize_cli_style): Register metadata style.
1510 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1511 parameter.
1512 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1513 * c-typeprint.c (c_type_print_base_struct_union)
1514 (c_type_print_base_1): Use metadata style.
1515 * breakpoint.c (watchpoint_value_print)
1516 (print_one_breakpoint_location): Use metadata style.
1517 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1518 style.
1519 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1520 style.
1521 * ada-valprint.c (val_print_packed_array_elements, printstr)
1522 (print_field_values, ada_val_print_ref, ada_val_print): Use
1523 metadata style.
1524 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1525 style.
1526 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1527 style.
1528 * ada-lang.c (user_select_syms): Use metadata style.
1529
1530 2019-10-01 Tom Tromey <tom@tromey.com>
1531
1532 * cli/cli-cmds.c (pwd_command): Style output.
1533
1534 2019-10-01 Pedro Alves <palves@redhat.com>
1535 Tom Tromey <tom@tromey.com>
1536
1537 * symtab.c (print_symbol_info): Use %ps.
1538 (print_msymbol_info): Use %ps.
1539 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1540 * printcmd.c (print_variable_and_value): Use %ps.
1541 * macrocmd.c (show_pp_source_pos): Use %ps.
1542 * infrun.c (print_exited_reason): Use ui_out::message.
1543 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1544 (describe_other_breakpoints): Use ui_out::message and new
1545 formats.
1546 (say_where): Use new formats.
1547 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1548 and new formats.
1549
1550 2019-10-01 Pedro Alves <palves@redhat.com>
1551 Tom Tromey <tom@tromey.com>
1552
1553 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1554 (test_gdb_formats): New function.
1555 (run_tests): Call it.
1556 (test_format_specifier): Update.
1557 * utils.h (fputs_filtered): Update comment.
1558 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1559 (fputs_styled_unfiltered): Declare.
1560 * utils.c (fputs_styled_unfiltered): New function.
1561 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1562 (vfprintf_filtered): Update.
1563 (vfprintf_unfiltered, vprintf_filtered): Update.
1564 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1565 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1566 disallow_ui_out_field>: New constants.
1567 (enum class field_kind): New.
1568 (struct base_field_s, struct signed_field_s): New.
1569 (signed_field): New function.
1570 (struct string_field_s): New.
1571 (string_field): New function.
1572 (struct styled_string_s): New.
1573 (styled_string): New function.
1574 (class ui_out) <message>: Add comment.
1575 <vmessage, call_do_message>: New methods.
1576 <do_message>: Add style parameter.
1577 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1578 methods.
1579 (ui_out::message): Rewrite.
1580 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1581 parameter.
1582 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1583 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1584 gdb_extensions parameter.
1585 (class format_piece): Add parameter to constructor.
1586 (n_int_args): New field.
1587 * gdbsupport/format.c (format_pieces::format_pieces): Add
1588 gdb_extensions parameter. Handle '*'.
1589 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1590 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1591 vfprintf_styled_no_gdbfmt.
1592 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1593 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1594 unfiltered output.
1595 * ui-style.h (struct ui_file_style) <ptr>: New method.
1596
1597 2019-10-01 Tom Tromey <tom@tromey.com>
1598
1599 * unittests/format_pieces-selftests.c: Update. Add final format.
1600 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1601 empty literal pieces.
1602
1603 2019-10-01 Tom Tromey <tom@tromey.com>
1604
1605 * ui-out.h (enum class ui_out_style_kind): Remove.
1606 (class ui_out) <field_string, field_stsream, do_field_string>:
1607 Change type of "style".
1608 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1609 (ui_out::field_string): Update.
1610 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1611 of "style".
1612 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1613 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1614 * stack.c (print_frame_arg, print_frame_info, print_frame):
1615 Update.
1616 * source.c (print_source_lines_base): Update.
1617 * solib.c (info_sharedlibrary_command): Update.
1618 * skip.c (info_skip_command): Update.
1619 * record-btrace.c (btrace_call_history_src_line)
1620 (btrace_call_history): Update.
1621 * python/py-framefilter.c (py_print_frame): Update.
1622 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1623 "style".
1624 * mi/mi-out.c (mi_ui_out::do_table_header)
1625 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1626 (mi_ui_out::do_field_string): Update.
1627 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1628 Update.
1629 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1630 "style".
1631 * cli-out.c (cli_ui_out::do_table_header)
1632 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1633 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1634 (cli_ui_out::do_field_fmt): Update.
1635 * breakpoint.c (print_breakpoint_location): Update.
1636 (update_static_tracepoint): Update.
1637
1638 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1639
1640 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1641 conversion of gdb_datadir.
1642 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1643 remove not needed c_str ().
1644
1645 2019-09-30 Ali Tamur <tamur@google.com>
1646
1647 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1648 (dwarf2_string_attr): Likewise.
1649
1650 2019-09-30 Ali Tamur <tamur@google.com>
1651
1652 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1653 (process_full_type_unit): Likewise.
1654 (dump_die_shallow): Likewise.
1655 (cu_debug_loc_section): Likewise.
1656
1657 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1658
1659 * minsyms.c (compare_minimal_symbols): Rename to...
1660 (minimal_symbol_is_less_than): ...this, and adjust to STL
1661 conventions (return bool, take arguments as references)
1662 (minimal_symbol_reader::install): Call std::sort instead
1663 of qsort.
1664
1665 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1666
1667 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1668 hash and why.
1669 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1670 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1671
1672 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1675 * psympriv.h (add_psymbol_to_list): Move comment here and update
1676 it.
1677
1678 2019-09-29 Tom de Vries <tdevries@suse.de>
1679
1680 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1681 Use $tmpdir/$(basename "$output_file").dwz instead of
1682 "${output_file}.dwz".
1683
1684 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1685
1686 PR gdb/25045
1687 * hppa-linux-nat.c: Include gdbarch.h.
1688
1689 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1690
1691 * blockframe.c (find_pc_partial_function): Change return type to bool.
1692 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1693 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1694 (stub_gnu_ifunc_resolve_name): Likewise.
1695 * symtab.c (compare_filenames_for_search): Likewise.
1696 (compare_glob_filenames_for_search): Likewise.
1697 (matching_obj_sections): Likewise.
1698 (symbol_matches_domain): Likewise.
1699 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1700 (find_line_pc): Change return type to bool.
1701 (find_line_pc_range): Likewise.
1702 (producer_is_realview): Likewise.
1703 * symtab.h (symbol_matches_domain): Likewise.
1704 (find_pc_partial_function): Likewise.
1705 (find_pc_line_pc_range): Likewise.
1706 (in_gnu_ifunc_stub): Likewise.
1707 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1708 (find_line_pc): Likewise.
1709 (find_line_pc_range): Likewise.
1710 (matching_obj_sections): Likewise.
1711 (find_line_symtab): Change out parameter to bool.
1712 (producer_is_realview): Change return type to bool.
1713 (compare_filenames_for_search): Likewise.
1714 (compare_glob_filenames_for_search): Likewise.
1715
1716 2019-09-26 Tom Tromey <tom@tromey.com>
1717
1718 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1719 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1720 * gdb_usleep.h: Remove.
1721 * gdb_usleep.c: Remove.
1722 * utils.c: Don't include gdb_usleep.h.
1723
1724 2019-09-26 Tom Tromey <tromey@adacore.com>
1725
1726 * python/py-type.c (type_to_type_object): Call check_typedef
1727 for stub types.
1728
1729 2019-09-26 Tom Tromey <tom@tromey.com>
1730
1731 * utils.h (initialize_utils): Don't declare.
1732 * top.c (gdb_init): Don't call initialize_utils.
1733 * utils.c (initialize_utils): Remove. Move contents...
1734 (_initialize_utils): ... here.
1735
1736 2019-09-25 Tom Tromey <tom@tromey.com>
1737
1738 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1739 * utils.h (make_hex_string): Don't declare.
1740 * utils.c (make_hex_string): Remove.
1741
1742 2019-09-24 Tom de Vries <tdevries@suse.de>
1743
1744 PR gdb/23815
1745 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1746 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1747
1748 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1749
1750 * NEWS: Mention new simulator port for PRU.
1751
1752 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1753
1754 * ada-exp.y (write_object_remaining): Update.
1755 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1756 and eliminate the static buffer.
1757 (ada_decode_symbol): Update.
1758 (ada_la_decode): Update.
1759 (ada_sniff_from_mangled_name): Update.
1760 (is_valid_name_for_wild_match): Update.
1761 (ada_lookup_name_info::matches): Update and simplify.
1762 (name_matches_regex): Update.
1763 (ada_add_global_exceptions): Update.
1764 * ada-lang.h (ada_decode): Update signature.
1765 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1766 * dwarf-index-write.c (debug_names::insert): Update.
1767
1768 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1771 formatting.
1772
1773 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1776 Change "nonzero" to "true" in documentation.
1777
1778 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1779
1780 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1781 (_initialize_darwin_solib): Don't set
1782 darwin_so_ops.lookup_lib_global_symbol.
1783 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1784 set_gdbarch_iterate_over_objfiles_in_search_order.
1785 (elf_lookup_lib_symbol): Rename to...
1786 (svr4_iterate_over_objfiles_in_search_order): this, and update
1787 to iterate semantics.
1788 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1789 * solib.c (solib_global_lookup): Remove.
1790 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1791 (solib_global_lookup): Remove.
1792 * symtab.c (lookup_global_or_static_symbol): Remove call to
1793 solib_global_lookup.
1794
1795 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1796
1797 * NEWS: Move entries about default MI version now being
1798 version 3, and about the GDB/MI fix for multi-location
1799 breakpoints to the "since GDB 8.3" section.
1800
1801 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1802
1803 GDB 8.3.1 released.
1804
1805 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1806
1807 * NEWS: Mention that Cell/B.E. debugging support was removed.
1808 * MAINTAINERS: Remove spu target.
1809
1810 * config/djgpp/fnchange.lst: Remove entries for removed files.
1811
1812 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1813 spu-multiarch.o, and spu-tdep.o.
1814 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1815 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1816 spu-multiarch.c, and spu-tdep.c.
1817 * spu-linux-nat.c: Remove file.
1818 * spu-multiarch.c: Remove file.
1819 * spu-tdep.c: Remove file.
1820 * spu-tdep.h: Remove file.
1821 * solib-spu.c: Remove file.
1822 * solib-spu.h: Remove file.
1823
1824 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1825 * configure.nat (spu-linux): Remove.
1826 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1827 solib-multiarch.o from gdb_target_obs.
1828 (spu*-*-*): Remove.
1829
1830 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1831 feature flag.
1832 (ppc_linux_no_features): Update.
1833 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1834 Cell/B.E. support.
1835 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1836 (tdesc_powerpc_cell64l): Likewise.
1837 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1838 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1839 Cell/B.E. support.
1840 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1841 Do not include "features/rs6000/powerpc-cell32l.c" or
1842 "features/rs6000/powerpc-cell64l.c".
1843 (ppc_linux_spu_section): Remove.
1844 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1845 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1846 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1847 (ppc_linux_spe_context_lookup): Remove.
1848 (ppc_linux_spe_context_inferior_created): Remove.
1849 (ppc_linux_spe_context_solib_loaded): Remove.
1850 (ppc_linux_spe_context_solib_unloaded): Remove.
1851 (ppc_linux_spe_context): Remove.
1852 (struct ppu2spu_cache): Remove.
1853 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1854 (struct ppu2spu_data): Remove.
1855 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1856 ppu2spu_unwind): Remove.
1857 (ppc_linux_init_abi): Remove Cell/B.E. support.
1858 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1859
1860 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1861 (rs6000/powerpc-cell64l-expedite): Likewise
1862 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1863 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1864 rs6000/powerpc-cell64l.xml.
1865 * features/rs6000/powerpc-cell32l.xml: Remove.
1866 * features/rs6000/powerpc-cell64l.xml: Likewise.
1867 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1868 * features/rs6000/powerpc-cell64l.c: Likewise.
1869 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1870 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1871 * regformats/reg-spu.dat: Remove.
1872
1873 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1874 * corelow.c (struct spuid_list): Remove.
1875 (add_to_spuid_list): Remove.
1876 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1877 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1878 (remote_protocol_features): Remove associated entries.
1879 (_initialize_remote): No longer initialize them.
1880 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1881 * linux-nat.c (SPUFS_MAGIC): Remove.
1882 (linux_proc_xfer_spu): Remove.
1883 (spu_enumerate_spu_ids): Remove.
1884 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1885 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1886 (linux_make_corefile_notes): No longer call it.
1887
1888 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1889 (cooked_write_test): Likewise.
1890
1891 2019-09-20 Tom Tromey <tom@tromey.com>
1892
1893 * NEWS: Mention case-sensitivity of TUI commands.
1894 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1895 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1896 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1897
1898 2019-09-20 Tom Tromey <tom@tromey.com>
1899
1900 * tui/tui-source.c (tui_source_window::set_contents): Use
1901 make_unique_xstrdup.
1902 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1903 make_unique_xstrdup.
1904
1905 2019-09-20 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-data.c: Remove separator comments.
1908 * tui/tui-layout.c: Remove separator comments.
1909 * tui/tui-win.c: Remove separator comments.
1910 * tui/tui-wingeneral.c: Remove separator comments.
1911
1912 2019-09-20 Tom Tromey <tom@tromey.com>
1913
1914 * tui/tui.h (strcat_to_buf): Don't declare.
1915 * tui/tui.c (strcat_to_buf): Remove.
1916
1917 2019-09-20 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1920 from "fullname".
1921 * tui/tui-source.c (tui_source_window::set_contents)
1922 (tui_source_window::location_matches_p)
1923 (tui_source_window::maybe_update): Update.
1924
1925 2019-09-20 Tom Tromey <tom@tromey.com>
1926
1927 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1928 Update.
1929 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1930 prefix.
1931 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1932 (tui_data_window::line_from_reg_element_no)
1933 (tui_data_window::first_reg_element_no_inline)
1934 (tui_data_window::show_registers)
1935 (tui_data_window::show_register_group)
1936 (tui_data_window::display_registers_from)
1937 (tui_data_window::display_registers_from_line)
1938 (tui_data_window::first_data_item_displayed)
1939 (tui_data_window::delete_data_content_windows)
1940 (tui_data_window::erase_data_content)
1941 (tui_data_window::do_scroll_vertical)
1942 (tui_data_window::refresh_window)
1943 (tui_data_window::check_register_values): Update.
1944
1945 2019-09-20 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1948 (struct tui_locator_window) <full_name, proc_name>: Now
1949 std::string.
1950 * tui/tui-stack.c (tui_locator_window::make_status_line)
1951 (tui_locator_window::set_locator_fullname)
1952 (tui_locator_window::set_locator_info): Update.
1953 * tui/tui-source.c (tui_source_window::set_contents)
1954 (tui_source_window::showing_source_p): Update.
1955
1956 2019-09-20 Tom Tromey <tom@tromey.com>
1957
1958 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1959 Don't call tui_locator_win_info_ptr.
1960
1961 2019-09-20 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1964
1965 2019-09-20 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1968 height for locator.
1969 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1970 * tui/tui-layout.c (show_source_disasm_command, show_data)
1971 (show_source_or_disasm_and_command): Use 1 as height for locator.
1972
1973 2019-09-20 Tom Tromey <tom@tromey.com>
1974
1975 * tui/tui.c (tui_enable): Update.
1976 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1977 Update.
1978 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1979 Update.
1980 * tui/tui-data.c (win_resized): Now bool.
1981 (tui_win_resized): Return bool.
1982 (tui_set_win_resized_to): Accept a bool.
1983
1984 2019-09-20 Tom Tromey <tom@tromey.com>
1985
1986 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1987 Change type of "refresh_values_only".
1988 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1989 type of "refresh_values_only".
1990
1991 2019-09-20 Tom Tromey <tom@tromey.com>
1992
1993 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1994 std::string.
1995 (tui_disassemble): Add "pos" parameter.
1996 (tui_disasm_window::set_contents): Simplify.
1997
1998 2019-09-20 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-winsource.h (struct tui_source_window_base)
2001 <show_source_content>: Now private.
2002 * tui/tui-winsource.c
2003 (tui_source_window_base::show_source_content): Don't handle empty
2004 content case.
2005
2006 2019-09-20 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-layout.c (show_source_disasm_command)
2009 (show_source_or_disasm_and_command): Don't call
2010 show_source_content.
2011
2012 2019-09-20 Tom Tromey <tom@tromey.com>
2013
2014 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2015 Declare.
2016 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2017 from tui_make_status_line.
2018 (tui_locator_window::rerender): Update.
2019
2020 2019-09-20 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2023 (tui_locator_window::rerender): Update.
2024
2025 2019-09-20 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-winsource.h (struct tui_source_window_base)
2028 <~tui_source_window_base>: Don't declare.
2029 <fullname>: Remove.
2030 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2031 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2032 member.
2033 * tui/tui-source.c (tui_source_window::set_contents): Update.
2034 (tui_source_window::location_matches_p)
2035 (tui_source_window::maybe_update): Update.
2036
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-winsource.h (~tui_source_element): Remove.
2040 (tui_source_element): Update.
2041 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2042 * tui/tui-winsource.c (tui_show_source_line): Update.
2043 * tui/tui-source.c (tui_source_window::set_contents): Update.
2044 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2045
2046 2019-09-20 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2049 declare.
2050 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2051 tui_clear_source_windows_detail.
2052 * tui/tui-winsource.h (struct tui_source_window_base)
2053 <clear_detail>: Don't declare.
2054 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2055 Remove.
2056 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2057
2058 2019-09-20 Tom Tromey <tromey@adacore.com>
2059
2060 PR ada/24919:
2061 * block.c (contained_in): Fix final return value.
2062
2063 2019-09-20 Alan Modra <amodra@gmail.com>
2064
2065 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2066 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2067 (read_indirect_string_from_dwz): Use bfd accessor.
2068 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2069 * machoread.c (macho_symfile_read_all_oso): Likewise.
2070 * solib.c (solib_bfd_open): Likewise.
2071
2072 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2073
2074 * eval.c: Move declaration of overload_resolution to...
2075 * value.h: ...here.
2076
2077 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2078
2079 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2080 * arm-linux-tdep.c: Likewise.
2081 * arm-nbsd-nat.c: Likewise.
2082 * arm-tdep.h: Declare arm_apcs_32.
2083 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2084
2085 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2086
2087 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2088 * dwarf2read.h: Declare dwarf_always_disassemble.
2089
2090 2019-09-19 Tom de Vries <tdevries@suse.de>
2091
2092 PR gdb/25009
2093 * source-cache.c (source_cache::ensure): Catch exception thrown during
2094 construction of the highlighter.
2095
2096 2019-09-18 Alan Modra <amodra@gmail.com>
2097
2098 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2099 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2100 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2101 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2102 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2103 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2104 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2105 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2106 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2107 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2108 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2109 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2110 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2111 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2112 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2113 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2114 * mi/mi-interp.c: Update throughout for bfd section macro and
2115 function changes.
2116 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2117 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2118
2119 2019-09-18 Tom Tromey <tom@tromey.com>
2120
2121 * NEWS: Add entry.
2122 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2123 call rl_initialize.
2124 (tui_enable): Do not call rl_initialize.
2125
2126 2019-09-18 Christian Groessler <chris@groessler.org>
2127
2128 * alpha-linux-nat.c: Include gdbarch.h.
2129
2130 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * ui-file.c: Include cli/cli-style.h.
2133 (term_cli_styling): Remove cli_styling declaration.
2134
2135 2019-09-18 Alan Modra <amodra@gmail.com>
2136
2137 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2138 to bfd_asymbol_section.
2139
2140 2019-09-18 Alan Modra <amodra@gmail.com>
2141
2142 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2143 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2144 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2145
2146 2019-09-18 Alan Modra <amodra@gmail.com>
2147
2148 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2149 * spu-linux-nat.c (spu_bfd_open): Likewise.
2150
2151 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2152
2153 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2154 to bool to match definition in dwarf2read.c.
2155
2156 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2157
2158 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2159 (print_signatures): Likewise.
2160 (trust_pad_over_xvs): Likewise.
2161 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2162 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2163 * arm-linux-nat.c (arm_apcs_32): Likewise.
2164 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2165 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2166 * arm-tdep.c (arm_debug): Likewise.
2167 (arm_apcs_32): Likewise.
2168 * auto-load.c (debug_auto_load): Likewise.
2169 (auto_load_gdb_scripts): Likewise.
2170 (global_auto_load): Likewise.
2171 (auto_load_local_gdbinit): Likewise.
2172 (auto_load_local_gdbinit_loaded): Likewise.
2173 * auto-load.h (global_auto_load): Likewise.
2174 (auto_load_local_gdbinit): Likewise.
2175 (auto_load_local_gdbinit_loaded): Likewise.
2176 * breakpoint.c (disconnected_dprintf): Likewise.
2177 (breakpoint_proceeded): Likewise.
2178 (automatic_hardware_breakpoints): Likewise.
2179 (always_inserted_mode): Likewise.
2180 (target_exact_watchpoints): Likewise.
2181 (_initialize_breakpoint): Update.
2182 * breakpoint.h (target_exact_watchpoints): Change to bool.
2183 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2184 * cli/cli-cmds.c (trace_commands): Likewise.
2185 * cli/cli-cmds.h (trace_commands): Likewise.
2186 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2187 to bool*.
2188 * cli/cli-logging.c (logging_overwrite): Change to bool.
2189 (logging_redirect): Likewise.
2190 (debug_redirect): Likewise.
2191 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2192 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2193 to bool.
2194 <boolean_option_def>: Update.
2195 (struct flag_option_def): Change default type of Context to bool
2196 from int.
2197 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2198 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2199 (get_setshow_command_value_string): Likewise.
2200 * cli/cli-style.c (cli_styling): Change to bool.
2201 (source_styling): Likewise.
2202 * cli/cli-style.h (source_styling): Likewise.
2203 (cli_styling): Likewise.
2204 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2205 to bool.
2206 * command.h (var_types): Update comment.
2207 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2208 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2209 bool.
2210 (debug_compile_cplus_scopes): Likewise.
2211 * compile/compile-internal.h (compile_debug): Likewise.
2212 * compile/compile.c (compile_debug): Likewise.
2213 (struct compile_options) <raw>: Likewise.
2214 * cp-support.c (catch_demangler_crashes): Likewise.
2215 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2216 (usr_cmd_cris_dwarf2_cfi): Likewise.
2217 * csky-tdep.c (csky_debug): Likewise.
2218 * darwin-nat.c (enable_mach_exceptions): Likewise.
2219 * dcache.c (dcache_enabled_p): Likewise.
2220 * defs.h (info_verbose): Likewise.
2221 * demangle.c (demangle): Likewise.
2222 (asm_demangle): Likewise.
2223 * dwarf-index-cache.c (debug_index_cache): Likewise.
2224 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2225 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2226 * dwarf2read.c (check_physname): Likewise.
2227 (use_deprecated_index_sections): Likewise.
2228 (dwarf_always_disassemble): Likewise.
2229 * eval.c (overload_resolution): Likewise.
2230 * event-top.c (set_editing_cmd_var): Likewise.
2231 (exec_done_display_p): Likewise.
2232 * event-top.h (set_editing_cmd_var): Likewise.
2233 (exec_done_display_p): Likewise.
2234 * exec.c (write_files): Likewise.
2235 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2236 (debug_fbsd_nat): Likewise.
2237 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2238 Likewise.
2239 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2240 <backtrace_past_entry> Likewise.
2241 * gdb-demangle.h (demangle): Likewise.
2242 (asm_demangle): Likewise.
2243 * gdb_bfd.c (bfd_sharing): Likewise.
2244 * gdbcore.h (write_files): Likewise.
2245 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2246 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2247 * gdbthread.h (print_thread_events): Likewise.
2248 * gdbtypes.c (opaque_type_resolution): Likewise.
2249 (strict_type_checking): Likewise.
2250 * gnu-nat.c (gnu_debug_flag): Likewise.
2251 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2252 * guile/scm-param.c (pascm_variable): Add boolval.
2253 (add_setshow_generic): Update.
2254 (pascm_param_value): Update.
2255 (pascm_set_param_value_x): Update.
2256 * hppa-tdep.c (hppa_debug): Change to bool..
2257 * infcall.c (may_call_functions_p): Likewise.
2258 (coerce_float_to_double_p): Likewise.
2259 (unwind_on_signal_p): Likewise.
2260 (unwind_on_terminating_exception_p): Likewise.
2261 * infcmd.c (startup_with_shell): Likewise.
2262 * inferior.c (print_inferior_events): Likewise.
2263 * inferior.h (startup_with_shell): Likewise.
2264 (print_inferior_events): Likewise.
2265 * infrun.c (step_stop_if_no_debug): Likewise.
2266 (detach_fork): Likewise.
2267 (debug_displaced): Likewise.
2268 (disable_randomization): Likewise.
2269 (non_stop): Likewise.
2270 (non_stop_1): Likewise.
2271 (observer_mode): Likewise.
2272 (observer_mode_1): Likewise.
2273 (set_observer_mode): Update.
2274 (sched_multi): Change to bool.
2275 * infrun.h (debug_displaced): Likewise.
2276 (sched_multi): Likewise.
2277 (step_stop_if_no_debug): Likewise.
2278 (non_stop): Likewise.
2279 (disable_randomization): Likewise.
2280 * linux-tdep.c (use_coredump_filter): Likewise.
2281 (dump_excluded_mappings): Likewise.
2282 * linux-thread-db.c (auto_load_thread_db): Likewise.
2283 (check_thread_db_on_load): Likewise.
2284 * main.c (captured_main_1): Update.
2285 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2286 xx2_opt, boolean_opt>: Change to bool.
2287 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2288 * maint.c (maintenance_profile_p): Likewise.
2289 (per_command_time): Likewise.
2290 (per_command_space): Likewise.
2291 (per_command_symtab): Likewise.
2292 * memattr.c (inaccessible_by_default): Likewise.
2293 * mi/mi-main.c (mi_async): Likewise.
2294 (mi_async_1): Likewise.
2295 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2296 * nat/fork-inferior.h (startup_with_shell): Likewise.
2297 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2298 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2299 * nios2-tdep.c (nios2_debug): Likewise.
2300 * or1k-tdep.c (or1k_debug): Likewise.
2301 * parse.c (parser_debug): Likewise.
2302 * parser-defs.h (parser_debug): Likewise.
2303 * printcmd.c (print_symbol_filename): Likewise.
2304 * proc-api.c (procfs_trace): Likewise.
2305 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2306 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2307 (set_parameter_value): Update.
2308 (add_setshow_generic): Update.
2309 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2310 to bool*.
2311 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2312 int*.
2313 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2314 * record-btrace.c (record_btrace_target::store_registers): Update.
2315 * record-full.c (record_full_memory_query): Change to bool.
2316 (record_full_stop_at_limit): Likewise.
2317 * record-full.h (record_full_memory_query): Likewise.
2318 * remote-notif.c (notif_debug): Likewise.
2319 * remote-notif.h (notif_debug): Likewise.
2320 * remote.c (use_range_stepping): Likewise.
2321 (interrupt_on_connect): Likewise.
2322 (remote_break): Likewise.
2323 * ser-tcp.c (tcp_auto_retry): Likewise.
2324 * ser-unix.c (serial_hwflow): Likewise.
2325 * skip.c (debug_skip): Likewise.
2326 * solib-aix.c (solib_aix_debug): Likewise.
2327 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2328 (spu_auto_flush_cache_p): Likewise.
2329 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2330 Likewise.
2331 (struct info_print_options) <quiet>: Likewise.
2332 * symfile-debug.c (debug_symfile): Likewise.
2333 * symfile.c (auto_solib_add): Likewise.
2334 (separate_debug_file_debug): Likewise.
2335 * symfile.h (auto_solib_add): Likewise.
2336 (separate_debug_file_debug): Likewise.
2337 * symtab.c (basenames_may_differ): Likewise.
2338 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2339 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2340 (struct info_types_options) <quiet>: Likewise.
2341 * symtab.h (demangle): Likewise.
2342 (basenames_may_differ): Likewise.
2343 * target-dcache.c (stack_cache_enabled_1): Likewise.
2344 (code_cache_enabled_1): Likewise.
2345 * target.c (trust_readonly): Likewise.
2346 (may_write_registers): Likewise.
2347 (may_write_memory): Likewise.
2348 (may_insert_breakpoints): Likewise.
2349 (may_insert_tracepoints): Likewise.
2350 (may_insert_fast_tracepoints): Likewise.
2351 (may_stop): Likewise.
2352 (auto_connect_native_target): Likewise.
2353 (target_stop_and_wait): Update.
2354 (target_async_permitted): Change to bool.
2355 (target_async_permitted_1): Likewise.
2356 (may_write_registers_1): Likewise.
2357 (may_write_memory_1): Likewise.
2358 (may_insert_breakpoints_1): Likewise.
2359 (may_insert_tracepoints_1): Likewise.
2360 (may_insert_fast_tracepoints_1): Likewise.
2361 (may_stop_1): Likewise.
2362 * target.h (target_async_permitted): Likewise.
2363 (may_write_registers): Likewise.
2364 (may_write_memory): Likewise.
2365 (may_insert_breakpoints): Likewise.
2366 (may_insert_tracepoints): Likewise.
2367 (may_insert_fast_tracepoints): Likewise.
2368 (may_stop): Likewise.
2369 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2370 (make_thread_apply_all_options_def_group): Change argument from int*
2371 to bool*.
2372 (thread_apply_all_command): Update.
2373 (print_thread_events): Change to bool.
2374 * top.c (confirm): Likewise.
2375 (command_editing_p): Likewise.
2376 (history_expansion_p): Likewise.
2377 (write_history_p): Likewise.
2378 (info_verbose): Likewise.
2379 * top.h (confirm): Likewise.
2380 (history_expansion_p): Likewise.
2381 * tracepoint.c (disconnected_tracing): Likewise.
2382 (circular_trace_buffer): Likewise.
2383 * typeprint.c (print_methods): Likewise.
2384 (print_typedefs): Likewise.
2385 * utils.c (debug_timestamp): Likewise.
2386 (sevenbit_strings): Likewise.
2387 (pagination_enabled): Likewise.
2388 * utils.h (sevenbit_strings): Likewise.
2389 (pagination_enabled): Likewise.
2390 * valops.c (overload_resolution): Likewise.
2391 * valprint.h (struct value_print_options) <prettyformat_arrays,
2392 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2393 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2394 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2395 Likewise.
2396 * windows-nat.c (new_console): Likewise.
2397 (cygwin_exceptions): Likewise.
2398 (new_group): Likewise.
2399 (debug_exec): Likewise.
2400 (debug_events): Likewise.
2401 (debug_memory): Likewise.
2402 (debug_exceptions): Likewise.
2403 (useshell): Likewise.
2404 * windows-tdep.c (maint_display_all_tib): Likewise.
2405 * xml-support.c (debug_xml): Likewise.
2406
2407 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2408
2409 * source.c (prepare_path_for_appending): New function.
2410 (openp): Make use of new function.
2411 (find_and_open_source): Search for the compilation directory and
2412 source file as a relative path beneath the directory search path.
2413
2414 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * source-cache.c (source_cache::get_line_charpos): Catch
2417 exceptions and return false, this matches the behaviour documented
2418 in the header file.
2419
2420 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2421
2422 * ada-tasks.c (info_task): Remove quoting of the task's name.
2423
2424 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2425
2426 * symfile.c (auto_solib_add): Replace comment with a reference
2427 to the header file.
2428
2429 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2430
2431 * NEWS: Mention that gdb can now be compiled with Python 3
2432 on Windows.
2433
2434 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * maint.c (maint_print_section_data::maint_print_section_data):
2437 Force use of 'float log10 (float)' by casting the argument to
2438 float.
2439
2440 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * maint.c: Add 'cmath' include.
2443 (struct maint_print_section_data): New structure.
2444 (print_section_index): New function.
2445 (print_bfd_section_info): Add header comment, small whitespace
2446 cleanup, and update to call new print_section_index function.
2447 (print_objfile_section_info): Likewise.
2448 (maint_obj_section_from_bfd_section): New function.
2449 (print_bfd_section_info_maybe_relocated): New function.
2450 (maintenance_info_sections): Add header comment, always use
2451 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2452
2453 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2456 inner scope, add check that the objfile has psymtabs before
2457 checking psymtabs_addrmap.
2458 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2459
2460 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2461
2462 * NEWS: Announce that Ada task names are now shown at more places,
2463 and between quotes (except in info task output).
2464 * gdb/ada-tasks.c (task_to_str): New function.
2465 (display_current_task_id): Call task_to_str.
2466 (task_command_1): Likewise.
2467 (print_ada_task_info): In non-mi mode, Properly align headers and data
2468 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2469
2470 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2471
2472 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2473 prstatus.pr_lwp.pr_info instead of making it up.
2474
2475 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2476
2477 * auto-load.c (auto_load_expand_dir_vars): Update.
2478 * defs.h (gdb_datadir): Change to std::string.
2479 (python_libdir): Likewise.
2480 (relocate_gdb_directory): Change return type to std::string.
2481 * guile/guile.c (gdbscm_data_directory): Update.
2482 (initialize_scheme_side): Update.
2483 * jit.c (jit_reader_dir): Change to std::string.
2484 (jit_reader_load_command): Update.
2485 * main.c (gdb_datadir): Change to std::string.
2486 (python_libdir): Likewise.
2487 (set_gdb_data_directory): Update.
2488 (relocate_path): Change to return std::string.
2489 (relocate_gdb_directory): Change to return std::string.
2490 (relocate_gdbinit_path_maybe_in_datadir): Update.
2491 (captured_main_1): Update.
2492 * python/python.c (do_start_initialization): Update.
2493 * top.c (show_gdb_datadir): Update.
2494 * xml-syscall.c (xml_init_syscalls_info): Update.
2495 (init_syscalls_info): Update.
2496
2497 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2498
2499 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2500 out of get_init_files.
2501 (get_init_files): Update.
2502
2503 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2504
2505 * main.c (get_init_files): Change to use std::string.
2506 (captured_main_1): Update.
2507 (print_gdb_help): Update.
2508
2509 2019-09-11 Ali Tamur <tamur@google.com>
2510
2511 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2512 implementation.
2513
2514 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2515
2516 * dbxread.c (read_dbx_symtab): Update.
2517 * dwarf2read.c (load_partial_dies): Update.
2518 * mdebugread.c (parse_partial_symbols): Update.
2519 (handle_psymbol_enumerators): Update.
2520 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2521 * psymtab.c (add_psymbol_to_bcache): Likewise.
2522 (add_psymbol_to_list): Likewise.
2523 * symtab.c (symbol_set_names): Likewise.
2524 * symtab.h (symbol_set_names): Likewise.
2525 * xcoffread.c (scan_xcoff_symtab): Update.
2526
2527 2019-09-11 Tom Tromey <tom@tromey.com>
2528
2529 * symfile-mem.c (symbol_file_add_from_memory): Use
2530 bfd_set_filename.
2531 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2532 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2533
2534 2019-09-10 Tom Tromey <tromey@adacore.com>
2535
2536 * dwarf-index-write.c (write_psymbols): Extend error message.
2537 (debug_names::insert): Add Ada code.
2538 (debug_names::write_psymbols): Remove Ada check.
2539 (debug_names) <m_string_obstack>: New member.
2540 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2541 (gdb_index_symbol_name_matcher::matches): Remove.
2542 (mapped_index_base::find_name_components_bounds): Add "lang"
2543 parameter.
2544 (mapped_index_base::build_name_components): Also split names
2545 according to Ada syntax.
2546 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2547 type of "match_callback".
2548 (check_match, check_find_bounds_finds)
2549 (dw2_expand_symtabs_matching): Update.
2550 (dw2_debug_names_iterator): Add new constructor.
2551 (dw2_debug_names_map_matching_symbols): New function.
2552 (dw2_debug_names_expand_symtabs_matching): Update.
2553 (dwarf2_debug_names_functions): Use
2554 dw2_debug_names_map_matching_symbols.
2555
2556 2019-09-10 Tom Tromey <tromey@adacore.com>
2557
2558 * dwarf2read.c (dw2_get_file_names_reader): Add the
2559 CU's file name to the results.
2560
2561 2019-09-10 Tom Tromey <tromey@adacore.com>
2562
2563 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2564 map_matching_symbols. Update.
2565 * dwarf2read.c (dw2_map_matching_symbols): Update.
2566 * psymtab.c (match_partial_symbol): Change type; update.
2567 (psym_map_matching_symbols): Likewise.
2568 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2569 type; update.
2570 * symfile.h (struct quick_symbol_functions)
2571 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2572 Remove "match".
2573
2574 2019-09-10 Tom Tromey <tromey@adacore.com>
2575
2576 * psymtab.c (map_block): Remove.
2577 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2578 * symtab.c (iterate_over_symbols_terminated): New function.
2579 * symtab.c (iterate_over_symbols_terminated): Declare.
2580
2581 2019-09-10 Tom Tromey <tromey@adacore.com>
2582
2583 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2584 * language.h (struct language_defn) <la_iterate_over_symbols>:
2585 Return bool.
2586 * symtab.c (iterate_over_symbols): Return bool.
2587 * symtab.h (iterate_over_symbols): Return bool.
2588
2589 2019-09-10 Tom Tromey <tromey@adacore.com>
2590
2591 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2592 (add_nonlocal_symbols): Update.
2593 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2594 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2595 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2596 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2597 Change type of "callback". Remove "data".
2598
2599
2600 2019-09-09 Ali Tamur <tamur@google.com>
2601
2602 * dwarf2read.c (comp_unit_head): Update comment.
2603 (dwarf2_dwo_name): New function declaration.
2604 (dwarf_unit_type_name): New function declaration.
2605 (read_comp_unit_head): Add support for new compilation units,
2606 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2607 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2608 (currently named as "signature") in their header. Also clarify error
2609 messages.
2610 (lookup_dwo_id): New function. Returns the dwo id of the given
2611 compile unit.
2612 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2613 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2614 functions.
2615 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2616 (dwarf2_dwo_name): Get the dwo name if present.
2617 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2618 purposes.
2619
2620 2019-09-09 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2623
2624 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2625
2626 * python/python.c (do_start_initialization): Make progname_copy static,
2627 to avoid a leak report.
2628
2629 2019-09-08 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2632
2633 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2636 Change type to gdb::optional<block_enum>.
2637 (dw2_symtab_iter_init): Change block_index parameter type
2638 to gdb::optional<block_enum>.
2639 (dw2_lookup_symbol): Change block_index parameter
2640 type to block_enum.c
2641 (dw2_debug_names_lookup_symbol): Likewise.
2642 * psymtab.c (psym_lookup_symbol): Likewise.
2643 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2644 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2645 Likewise.
2646
2647 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2648
2649 * defs.h (relocate_gdb_directory): Change int to bool in
2650 signature and rename flag to relocatable.
2651 * main.c (relocate_path): Likewise.
2652 (relocate_gdb_directory): Likewise.
2653
2654 2019-09-06 Alan Modra <amodra@gmail.com>
2655
2656 * coffread.c (coff_symfile_read): Constify filename variable.
2657 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2658 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2659 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2660 * solib.c (reload_shared_libraries_1): Likewise.
2661 * symfile.c (reread_symbols): Likewise.
2662 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2663 * solib-darwin.c (darwin_bfd_open): Likewise.
2664 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2665
2666 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2669 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2670
2671 2019-09-03 Tom Tromey <tromey@adacore.com>
2672
2673 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2674 types.
2675 (has_negatives): Unbias a range type bound.
2676 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2677 * gdbtypes.c (operator==): Handle new field.
2678 (create_range_type): Add "bias" parameter.
2679 (create_static_range_type, resolve_dynamic_range): Update.
2680 * gdbtypes.h (struct range_bounds) <bias>: New member.
2681 (create_range_type): Add bias parameter.
2682 * printcmd.c (print_scalar_formatted): Unbias range types.
2683 * value.c (unpack_long): Unbias range types.
2684 (pack_long): Bias range types.
2685
2686 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2687
2688 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2689 probe arguments.
2690
2691 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2692
2693 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2694 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2695 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2696 (compile_probe_arg): Likewise.
2697 * probe.h (get_argument_count): Likewise.
2698 * solib-svr4.c (solib_event_probe_action): Likewise.
2699 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2700
2701 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2702
2703 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2704 code to here...
2705 (svr4_create_solib_event_breakpoints): ...from here.
2706
2707 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2708
2709 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2710 suffix from warning message.
2711
2712 2019-08-30 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.h (struct tui_source_window_base)
2715 <refresh_all>: Don't declare.
2716 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2717 Remove.
2718 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2719 tui_show_locator_content.
2720 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2721 declare.
2722 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2723 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2724 declare.
2725
2726 2019-08-30 Tom Tromey <tom@tromey.com>
2727
2728 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2729
2730 2019-08-30 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2733 Remove unnecessary forward declarations.
2734
2735 2019-08-30 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2738 rerender.
2739 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2740 tui_show_locator_content.
2741
2742 2019-08-30 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2745 (tui_locator_window::rerender): Rewrite using body of previous
2746 tui_show_locator_content.
2747
2748 2019-08-30 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2751 set_locator_fullname>: New methods.
2752 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2753 Rename from tui_set_locator_fullname.
2754 (tui_locator_window::set_locator_info): Rename from
2755 tui_set_locator_info. Return bool.
2756 (tui_update_locator_fullname, tui_show_frame_info): Update.
2757
2758 2019-08-30 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2761
2762 2019-08-30 Tom Tromey <tom@tromey.com>
2763
2764 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2765 call touchwin.
2766
2767 2019-08-30 Tom Tromey <tom@tromey.com>
2768
2769 * tui/tui-wingeneral.c (box_win): Assume win_info and
2770 win_info->handle cannot be NULL.
2771
2772 2019-08-30 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2775 refresh_window>: Declare.
2776 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2777 resize.
2778 (tui_data_item_window::rerender): Rename from
2779 tui_display_register.
2780 (tui_data_item_window::refresh_window): New method.
2781 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2782 no-op.
2783
2784 2019-08-30 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2787 regs_column_count, current_group>: Move later. Now private.
2788 <get_current_group>: New method.
2789 * tui/tui-regs.c (tui_reg_command): Update.
2790 * tui/tui-layout.c (tui_set_layout): Update.
2791
2792 2019-08-30 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2795 (tui_data_window::rerender): Don't call
2796 check_and_display_highlight_if_needed.
2797 (tui_data_window::refresh_all): Remove call to
2798 erase_data_content.
2799
2800 2019-08-30 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2803 (tui_data_window::display_registers_from)
2804 (tui_data_window::display_reg_element_at_line)
2805 (tui_data_window::display_registers_from_line): Remove checks of
2806 "empty".
2807
2808 2019-08-30 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2811 Don't declare.
2812 * tui/tui-regs.c (tui_data_window::show_registers): Call
2813 rerender.
2814 (tui_data_window::rerender): Rename from display_all_data.
2815 (tui_data_window::rerender): Remove old implementation.
2816
2817 2019-08-30 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2820 text.
2821 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2822
2823 2019-08-29 Bernhard Wodok <barto@gmx.net>
2824 Sergio Durigan Junior <sergiodj@redhat.com>
2825
2826 PR win32/24284
2827 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2828
2829 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2832 when searching for types.
2833
2834 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * f-lang.c (f_language_defn): Use f_print_typedef.
2837 * f-lang.h (f_print_typedef): Declare.
2838 * f-typeprint.c (f_print_typedef): Define.
2839
2840 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2841
2842 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2843
2844 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * cli/cli-utils.c (info_print_options_defs): Delete.
2847 (make_info_print_options_def_group): Delete.
2848 (extract_info_print_options): Delete.
2849 (info_print_command_completer): Delete.
2850 (info_print_args_help): Add extra parameter, and optionally
2851 include text about -n flag.
2852 * cli/cli-utils.h (struct info_print_options): Delete.
2853 (extract_info_print_options): Delete declaration.
2854 (info_print_command_completer): Delete declaration.
2855 (info_print_args_help): Add extra parameter, extend header
2856 comment.
2857 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2858 search_symbols.
2859 * stack.c (struct info_print_options): New type.
2860 (info_print_options_defs): New file scoped variable.
2861 (make_info_print_options_def_group): New static function.
2862 (info_print_command_completer): New static function.
2863 (info_locals_command): Update to use new local functions.
2864 (info_args_command): Likewise.
2865 (_initialize_stack): Add extra parameter to calls to
2866 info_print_args_help.
2867 * symtab.c (search_symbols): Add extra parameter, use this to
2868 possibly excluse non-debug symbols.
2869 (symtab_symbol_info): Add extra parameter, which is passed on to
2870 search_symbols.
2871 (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_variables_command): Update to use local functions, and pass
2876 extra parameter through to symtab_symbol_info.
2877 (info_functions_command): Likewise.
2878 (info_types_command): Pass additional argument through to
2879 symtab_symbol_info.
2880 (rbreak_command): Pass extra argument to search_symbols.
2881 (_initialize_symtab): Add extra arguments for calls to
2882 info_print_args_help, and update help text for 'info variables',
2883 'whereis', and 'info functions' commands.
2884 * symtab.h (search_symbols): Add extra argument to declaration.
2885 * NEWS: Mention new flags.
2886
2887 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2888
2889 * symtab.c (lookup_static_symbol): Call the new function (and move
2890 it down to be next to lookup_global_symbol).
2891 (struct global_sym_lookup_data): Add block_enum member and rename to...
2892 (struct global_or_static_sym_lookup_data): ...this.
2893 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2894 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2895 (lookup_symbol_global_or_static_iterator_cb): ...this.
2896 (lookup_global_or_static_symbol): New function.
2897 (lookup_global_symbol): Call new function.
2898
2899 2019-08-26 Tom de Vries <tdevries@suse.de>
2900
2901 PR c++/24852
2902 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2903 when pc_probe.prob == NULL.
2904
2905 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2908 variable symbol_linkage to symbol_linkage_.
2909
2910 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2913 represent whether the symbol is static, dynamic, or we don't
2914 know.
2915
2916 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2917
2918 * gdb/rx-tdep.c (rx_register_names): New.
2919 (rx_register_name): Delete.
2920 (rx_psw_type): Delete.
2921 (rx_fpsw_type): Delete.
2922 (rx_register_type): Delete.
2923 (rx_gdbarch_init): Convert target-descriptions.
2924 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2925 * gdb/features/Makefile: Add rx.xml.
2926 * gdb/features/rx.xml: New.
2927 * gdb/features/rx.c: Generated.
2928 * gdb/NEWS: Mention target description support.
2929
2930 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2931
2932 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2933 *slot_ptr.
2934
2935 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2936
2937 * configure.ac: Don't check for 'dlfcn.h' (moved to
2938 gdbsupport/common.m4).
2939 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2940 'gdbsupport/'.
2941 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2942 * compile/compile-c-support.c: Include
2943 'gdbsupport/gdb-dlfcn.h'.
2944 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2945 * gdb-dlfcn.c: Move to...
2946 * gdbsupport/gdb-dlfcn.c: ... here.
2947 * gdb-dlfcn.h: Move to...
2948 * gdbsupport/gdb-dlfcn.h: ... here.
2949
2950 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2951
2952 * nios2-tdep.c (struct reg_value): Improve comments. Make
2953 the offset field signed.
2954
2955 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2956
2957 * python/lib/gdb/__init__.py (_execute_file): New function.
2958 * python/python.c (python_run_simple_file): Call gdb._execute_file
2959 on Windows.
2960
2961 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2964 all uses as this was never set to anything but a zero value.
2965
2966 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2967
2968 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2969
2970 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2971
2972 * tui/tui-data.h (tui_gen_win_info): Add an =default
2973 move constructor, required by some GCC versions.
2974
2975 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2976
2977 * go32-nat.c (go32_sysinfo): Add hygon_p.
2978
2979 2019-08-20 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2982 line_from_reg_element_no, first_reg_element_no_inline,
2983 display_all_data, delete_data_content_windows,
2984 erase_data_content>: Now private.
2985
2986 2019-08-20 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2989 (tui_unhighlight_win, tui_highlight_win)
2990 (tui_win_info::make_window): Update.
2991 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2992
2993 2019-08-20 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2996 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2997 (MAX_PID_WIDTH): Move to tui-stack.c.
2998 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2999 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3000 (MAX_PID_WIDTH): Move from tui-data.h.
3001
3002 2019-08-20 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3005 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3006 (box_win): Update.
3007 (tui_gen_win_info::make_window): Rename from tui_make_window.
3008 (tui_win_info::make_window): New method.
3009 (tui_gen_win_info::make_visible): Update.
3010 * tui/tui-source.c (tui_source_window::set_contents): Update.
3011 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3012 (tui_data_window::display_registers_from): Update.
3013 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3014 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3015 Declare.
3016 <can_box>: Remove.
3017 <title>: Remove.
3018 (struct tui_win_info) <make_window>: Declare.
3019 <can_box>: Now virtual.
3020 <title>: New member.
3021 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3022 * tui/tui-command.c (tui_cmd_window::resize): Update.
3023
3024 2019-08-20 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3027 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3028 (tui_data_window::check_register_values): Update.
3029
3030 2019-08-20 Tom Tromey <tom@tromey.com>
3031
3032 * tui/tui-regs.h (struct tui_data_window): Use
3033 DISABLE_COPY_AND_ASSIGN.
3034 <regs_content>: Change type, removing unique_ptr.
3035 <tui_data_window>: Add move constructor.
3036 * tui/tui-regs.c (tui_data_window::show_registers)
3037 (tui_data_window::show_register_group)
3038 (tui_data_window::display_registers_from)
3039 (tui_data_window::display_registers_from)
3040 (tui_data_window::first_data_item_displayed)
3041 (tui_data_window::delete_data_content_windows)
3042 (tui_data_window::rerender, tui_data_window::refresh_window)
3043 (tui_data_window::check_register_values): Update.
3044
3045 2019-08-20 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3048 show_register_group>: Declare.
3049 (tui_show_register_group): Don't declare.
3050 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3051 tui_show_registers.
3052 (tui_data_window::show_register_group): Rename from
3053 tui_show_register_group.
3054 (tui_data_window::check_register_values, tui_reg_command):
3055 Update.
3056 * tui/tui-layout.c (tui_set_layout): Update.
3057
3058 2019-08-20 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3061 Declare.
3062 (tui_check_register_values): Don't declare.
3063 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3064 from tui_check_register_values.
3065 * tui/tui-hooks.c (tui_register_changed): Update.
3066
3067 2019-08-20 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-regs.c (tui_reg_layout): Move later.
3070 (tui_show_registers): Don't enable TUI mode or change layout.
3071
3072 2019-08-20 Tom Tromey <tom@tromey.com>
3073
3074 * tui/tui-regs.h (struct tui_data_item_window)
3075 <~tui_data_item_window>: Remove.
3076 <content>: Now a unique_xmalloc_ptr.
3077 * tui/tui-regs.c (tui_register_format): Return a
3078 unique_xmalloc_ptr.
3079 (tui_get_register): Update.
3080 (~tui_data_item_window): Remove.
3081 (tui_data_window::display_registers_from, tui_display_register):
3082 Update.
3083 * tui/tui-io.h (tui_expand_tabs): Update.
3084 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3085 Remove "col" parameter.
3086
3087 2019-08-20 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3090 field.
3091 * tui/tui-regs.c (~tui_data_item_window): Update.
3092
3093 2019-08-20 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3096 earlier.
3097
3098 2019-08-20 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3101
3102 2019-08-20 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-source.h (struct tui_source_window): Update.
3105 * tui/tui-regs.c (tui_show_registers): Update.
3106 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3107 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3108 (NO_REGS_STRING): Remove defines.
3109
3110 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3111
3112 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3113 unnecessary thread walk if remote doesn't support the packet.
3114
3115 2019-08-19 Tom Tromey <tromey@adacore.com>
3116
3117 * python/py-value.c (value_has_field): Fix indentation.
3118
3119 2019-08-19 Tom Tromey <tromey@adacore.com>
3120
3121 * printcmd.c (do_one_display, info_display_command): Update.
3122 * block.h (contained_in): Return bool. Add allow_nested
3123 parameter.
3124 * block.c (contained_in): Return bool. Add allow_nested
3125 parameter.
3126
3127 2019-08-19 Tom Tromey <tom@tromey.com>
3128
3129 * configure: Rebuild.
3130 * configure.ac: Disallow the combination of -static-libstdc++ and
3131 source highlight.
3132 * source-cache.c (get_language_name): Handle rust.
3133 (source_cache::get_source_lines): Ignore highlighting exceptions.
3134
3135 2019-08-16 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3138 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3139 (struct tui_source_window_base) <make_visible, refresh_window,
3140 resize>: Remove methods.
3141 <execution_info>: Remove field.
3142 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3143 (tui_show_source_line, tui_source_window_base)
3144 (~tui_source_window_base): Update.
3145 (tui_source_window_base::resize)
3146 (tui_source_window_base::make_visible)
3147 (tui_source_window_base::refresh_window): Remove.
3148 (tui_source_window_base::update_exec_info): Update.
3149 * tui/tui-source.c (tui_source_window::set_contents): Update.
3150 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3151
3152 2019-08-16 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3155 deprecated_query_hook.
3156
3157 2019-08-16 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3160 (tui_update_source_windows_with_line): Update.
3161 * tui/tui-source.h (struct tui_source_window)
3162 <show_symtab_source>: Declare.
3163 (tui_show_symtab_source): Don't declare.
3164 * tui/tui-source.c (tui_show_symtab_source): Rename from
3165 tui_show_symtab_source.
3166
3167 2019-08-16 Tom Tromey <tom@tromey.com>
3168
3169 * tui/tui-winsource.h (struct tui_source_window_base)
3170 <set_contents>: Declare.
3171 * tui/tui-winsource.c
3172 (tui_source_window_base::update_source_window_as_is): Update.
3173 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3174 Declare.
3175 (tui_set_source_content): Don't declare.
3176 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3177 tui_set_source_content.
3178 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3179 Declare.
3180 (tui_set_disassem_content): Don't declare.
3181 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3182 tui_set_disassem_content.
3183
3184 2019-08-16 Tom Tromey <tom@tromey.com>
3185
3186 * tui/tui-winsource.h (struct tui_source_window_base)
3187 <update_breakpoint_info>: Declare.
3188 (tui_update_breakpoint_info): Don't declare.
3189 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3190 (tui_update_all_breakpoint_info): Update.
3191 (tui_source_window_base::update_breakpoint_info): Rename from
3192 tui_update_breakpoint_info.
3193 (tui_source_window_base::update_exec_info): Update.
3194
3195 2019-08-16 Tom Tromey <tom@tromey.com>
3196
3197 * tui/tui-winsource.h (struct tui_source_window_base)
3198 <update_source_window>: Declare.
3199 (tui_update_source_window): Don't declare.
3200 * tui/tui-winsource.c
3201 (tui_source_window_base::update_source_window): Rename from
3202 tui_update_source_window.
3203 (tui_source_window_base::rerender): Update.
3204 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3205 * tui/tui-disasm.c (tui_show_disassem)
3206 (tui_show_disassem_and_update_source)
3207 (tui_disasm_window::maybe_update): Update.
3208
3209 2019-08-16 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <update_source_window_as_is>: Declare.
3213 (tui_update_source_window_as_is): Don't declare.
3214 * tui/tui-winsource.c (tui_update_source_window): Update
3215 (tui_source_window_base::update_source_window_as_is): Rename from
3216 tui_update_source_window_as_is.
3217 (tui_source_window_base::refill): Update.
3218 * tui/tui-source.c (tui_show_symtab_source): Update.
3219 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3220 Update.
3221
3222 2019-08-16 Tom Tromey <tom@tromey.com>
3223
3224 * tui/tui-winsource.h (tui_update_source_window)
3225 (tui_update_source_window_as_is): Remove "noerror" parameter.
3226 * tui/tui-winsource.c (tui_update_source_window)
3227 (tui_update_source_window_as_is): Remove "noerror" parameter.
3228 (tui_update_source_windows_with_addr)
3229 (tui_update_source_windows_with_line)
3230 (tui_source_window_base::rerender)
3231 (tui_source_window_base::refill): Update.
3232 * tui/tui-source.h (tui_set_source_content)
3233 (tui_show_symtab_source): Remove "noerror" parameter.
3234 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3235 parameter.
3236 (tui_show_symtab_source): Likewise.
3237 (tui_source_window::maybe_update): Update.
3238 * tui/tui-disasm.c (tui_show_disassem)
3239 (tui_show_disassem_and_update_source)
3240 (tui_disasm_window::do_scroll_vertical)
3241 (tui_disasm_window::maybe_update): Update.
3242
3243 2019-08-16 Tom Tromey <tom@tromey.com>
3244
3245 * tui/tui.c (tui_is_window_visible): Update.
3246 * tui/tui-wingeneral.c (tui_make_window)
3247 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3248 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3249 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3250 (tui_set_win_height_command, parse_scrolling_args): Update.
3251 * tui/tui-source.c (tui_source_window::style_changed): Update.
3252 * tui/tui-regs.c (tui_show_registers)
3253 (tui_data_window::first_data_item_displayed)
3254 (tui_data_window::delete_data_content_windows)
3255 (tui_check_register_values, tui_reg_command): Update.
3256 * tui/tui-disasm.c (tui_show_disassem): Update.
3257 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3258 method.
3259 <is_visible>: Remove field.
3260 * tui/tui-data.c (tui_next_win, tui_prev_win)
3261 (tui_delete_invisible_windows): Update.
3262
3263 2019-08-16 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui-winsource.h (struct tui_source_window_base)
3266 <m_has_locator>: Remove.
3267 * tui/tui-layout.c (show_source_disasm_command, show_data)
3268 (show_source_or_disasm_and_command): Update.
3269
3270 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3271
3272 * NEWS (Other MI changes): New subsection.
3273 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3274 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3275 * arch-utils.c (default_get_pc_address_flags): New function.
3276 * arch-utils.h (default_get_pc_address_flags): New declaration.
3277 * gdbarch.sh: Add get_pc_address_flags.
3278 * gdbarch.c: Regenerate.
3279 * gdbarch.h: Likewise.
3280 * stack.c (print_pc): New function.
3281 (print_frame_info) (print_frame): Call print_pc.
3282
3283 2019-08-16 Tom de Vries <tdevries@suse.de>
3284
3285 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3286 print_objfile_section_info.
3287
3288 2019-08-15 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3291 calling update_cmdwin_start_line.
3292 * tui/tui-winsource.h (struct tui_source_window_base)
3293 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3294 <rerender>: Declare.
3295 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3296 Call rerender.
3297 (tui_source_window_base::set_new_height): Remove.
3298 (tui_source_window_base::rerender): Rename from
3299 do_make_visible_with_new_height.
3300 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3301 resize method.
3302 (tui_win_info::make_invisible_and_set_new_height)
3303 (tui_win_info::make_visible_with_new_height): Remove.
3304 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3305 Declare.
3306 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3307 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3308 do_make_visible_with_new_height>: Don't declare.
3309 <rerender>: Declare.
3310 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3311 set_new_height.
3312 (tui_data_window::do_make_visible_with_new_height): Remove.
3313 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3314 call tui_show_locator_content.
3315 (tui_gen_win_info::resize): Call rerender.
3316 (show_source_or_disasm_and_command): Don't call
3317 tui_show_locator_content.
3318 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3319 method.
3320 (struct tui_win_info) <rerender>: Declare.
3321 <set_new_height, make_invisible_and_set_new_height,
3322 make_visible_with_new_height>: Don't declare.
3323 * tui/tui-data.c (tui_win_list::rerender): New method.
3324 * tui/tui-command.h (struct tui_cmd_window)
3325 <do_make_visible_with_new_height>: Don't declare.
3326 * tui/tui-command.c
3327 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3328
3329 2019-08-15 Tom Tromey <tromey@adacore.com>
3330
3331 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3332 * ada-lang.c (ada_enum_name): Likewise.
3333
3334 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3335
3336 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3337 leading underscore.
3338 (GdbOutputErrorFile): Likewise.
3339 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3340 accordingly.
3341 (execute_unwinders): Rename to have a leading underscore.
3342 (auto_load_packages): Likewise.
3343 (global scope): Adjust call to auto_load_packages accordingly.
3344 (GdbSetPythonDirectory): Likewise.
3345 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3346 instead of execute_unwinders.
3347
3348 2019-08-15 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3351 (show_data): Don't change window visibility.
3352 (tui_gen_win_info::resize): Remove special case for command
3353 window. Use wresize, when available.
3354 (show_source_or_disasm_and_command): Don't change window
3355 visibility.
3356 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3357 <make_visible>: New method.
3358 * tui/tui-command.c (tui_cmd_window::resize): New method.
3359
3360 2019-08-15 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3363 (struct tui_source_windows): New.
3364 * tui/tui-winsource.c (tui_display_main): Update.
3365 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3366 (new_height_ok, parse_scrolling_args): Update.
3367 * tui/tui-layout.c (show_layout, show_data): Update.
3368 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3369 (tui_add_to_source_windows): Don't declare.
3370 * tui/tui-data.c (source_windows, tui_source_windows)
3371 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3372
3373 2019-08-15 Tom Tromey <tom@tromey.com>
3374
3375 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3376 Rename from reset.
3377 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3378 * tui/tui-layout.c (show_source_disasm_command, show_data):
3379 Update.
3380 (tui_gen_win_info::resize): Rename.
3381 (show_source_or_disasm_and_command): Update.
3382 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3383 reset.
3384
3385 2019-08-15 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3388 * tui/tui-interp.c (tui_interp::init): Don't call
3389 tui_initialize_static_data.
3390 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3391
3392 2019-08-15 Tom Tromey <tom@tromey.com>
3393
3394 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3395 examine tui_win_list.
3396
3397 2019-08-15 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3400 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3401 tui_clear_source_content.
3402 (tui_clear_source_content): Remove.
3403 (tui_source_window_base::do_erase_source_content): Hoist call to
3404 content.clear().
3405 * tui/tui-stack.c (tui_show_frame_info): Don't call
3406 tui_clear_source_content.
3407
3408 2019-08-15 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-winsource.h (struct tui_source_window_base)
3411 <do_erase_source_content>: New method.
3412 <erase_source_content>: New method.
3413 (tui_erase_source_content): Don't declare.
3414 * tui/tui-winsource.c (tui_clear_source_content): Update.
3415 (tui_source_window_base::do_erase_source_content): Rename from
3416 tui_erase_source_content.
3417 (tui_source_window_base::show_source_content): Update.
3418 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3419 * tui/tui-source.h (struct tui_source_window)
3420 <erase_source_content>: New method.
3421 * tui/tui-disasm.h (struct tui_disasm_window)
3422 <erase_source_content>: New method.
3423
3424 2019-08-15 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3427 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3428 constructor.
3429 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3430 * tui/tui-source.c (tui_set_source_content): Update.
3431 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3432
3433 2019-08-15 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3436 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3437 tui-source.c.
3438 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3439 Declare.
3440 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3441 method.
3442 (tui_source_window::maybe_update): Update.
3443
3444 2019-08-15 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3447 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3448 tui-disasm.c.
3449 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3450 Declare.
3451 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3452 method.
3453 (tui_disasm_window::maybe_update): Update.
3454
3455 2019-08-15 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-winsource.h (struct tui_source_window_base)
3458 <maybe_update>: Declare.
3459 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3460 method.
3461 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3462 Declare.
3463 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3464 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3465 Declare.
3466 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3467
3468 2019-08-15 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3471
3472 2019-08-15 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-wingeneral.c: Include tui-stack.h.
3475 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3476 (struct tui_locator_window): Move from tui-data.h.
3477 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3478 (tui_initialize_static_data): Move from tui-data.c.
3479 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3480 (struct tui_locator_window): Move to tui-stack.c.
3481 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3482 (tui_initialize_static_data): Move to tui-stack.c.
3483
3484 2019-08-15 Tom Tromey <tom@tromey.com>
3485
3486 * tui/tui-layout.c (show_source_disasm_command)
3487 (show_source_or_disasm_and_command): Use make_visible method, not
3488 tui_make_window.
3489 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3490 Remove.
3491
3492 2019-08-15 Tom Tromey <tom@tromey.com>
3493
3494 * tui/tui-wingeneral.h (tui_make_window): Update.
3495 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3496 parameter.
3497 (tui_gen_win_info::make_visible): Update.
3498 * tui/tui-regs.c (tui_data_window::display_registers_from):
3499 Update.
3500 * tui/tui-layout.c (show_source_disasm_command)
3501 (show_source_or_disasm_and_command): Update.
3502 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3503 (enum tui_box): Remove.
3504 (struct tui_win_info) <can_box>: New method.
3505 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3506 method.
3507
3508 2019-08-15 Tom de Vries <tdevries@suse.de>
3509
3510 * linux-nat-trad.c: Include gdbarch.h.
3511
3512 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3513
3514 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3515 register sizes.
3516
3517 2019-08-14 Tom Tromey <tromey@adacore.com>
3518
3519 * darwin-nat.c: Include gdbarch.h.
3520 * darwin-nat-info.c: Include gdbarch.h.
3521
3522 2019-08-13 Tom Tromey <tom@tromey.com>
3523
3524 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3525 Remove.
3526 * tui/tui-data.c (tui_initialize_static_data): Update.
3527
3528 2019-08-13 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui-winsource.h (struct tui_exec_info_window)
3531 <~tui_exec_info_window, maybe_allocate_content, get_content,
3532 m_content>: Remove.
3533 (struct tui_source_window_base) <set_exec_info_content,
3534 show_exec_info_content>: Don't declare.
3535 * tui/tui-winsource.c
3536 (tui_exec_info_window::maybe_allocate_content): Remove.
3537 (tui_source_window_base::update_exec_info): Rename from
3538 set_exec_info_content.
3539 (tui_source_window_base::show_exec_info_content)
3540 (tui_source_window_base::update_exec_info): Remove.
3541
3542 2019-08-13 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3545 declare.
3546 * tui/tui-winsource.c (tui_update_source_window_as_is)
3547 (tui_update_source_windows_with_addr, tui_erase_source_content):
3548 Update.
3549 (tui_clear_exec_info_content): Remove.
3550
3551 2019-08-13 Tom Tromey <tom@tromey.com>
3552
3553 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3554 declare.
3555 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3556 call tui_erase_exec_info_content.
3557 (tui_clear_exec_info_content): Rename from
3558 tui_erase_exec_info_content.
3559 (tui_clear_exec_info_content): Delete.
3560
3561 2019-08-13 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-winsource.h (struct tui_source_window_base)
3564 <show_exec_info_content>: Declare.
3565 (tui_show_exec_info_content): Don't declare.
3566 * tui/tui-winsource.c
3567 (tui_source_window_base::show_exec_info_content): Rename from
3568 tui_show_exec_info_content.
3569 (tui_source_window_base::update_exec_info): Update.
3570
3571 2019-08-13 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3574 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3575 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3576 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3577 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3578 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3579 ... here.
3580
3581 2019-08-13 Tom Tromey <tom@tromey.com>
3582
3583 * tui/tui-winsource.h (struct tui_source_window_base)
3584 <update_exec_info>: Declare.
3585 (tui_update_exec_info): Don't declare.
3586 * tui/tui-winsource.c (tui_update_source_window_as_is)
3587 (tui_source_window_base::refresh_all)
3588 (tui_update_all_breakpoint_info): Update.
3589 (tui_source_window_base::update_exec_info): Rename from
3590 tui_update_exec_info.
3591 * tui/tui-stack.c (tui_show_frame_info): Update.
3592
3593 2019-08-13 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-winsource.h (struct tui_source_window_base)
3596 <set_exec_info_content>: Declare.
3597 (tui_set_exec_info_content): Don't declare.
3598 * tui/tui-winsource.c
3599 (tui_source_window_base::set_exec_info_content): Rename from
3600 tui_set_exec_info_content.
3601 (tui_update_exec_info): Update.
3602
3603 2019-08-13 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-winsource.h (struct tui_source_window_base)
3606 <show_source_content>: Declare.
3607 (tui_show_source_content): Don't declare.
3608 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3609 (tui_source_window_base::show_source_content): Rename from
3610 tui_show_source_content.
3611 (tui_source_window_base::refresh_all): Update.
3612 * tui/tui-layout.c (show_source_disasm_command)
3613 (show_source_or_disasm_and_command): Update.
3614
3615 2019-08-13 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-winsource.c (tui_erase_source_content)
3618 (tui_show_source_content, tui_source_window_base::refresh_all):
3619 Update.
3620 * tui/tui-wingeneral.h
3621 (tui_check_and_display_highlight_if_needed): Don't declare.
3622 * tui/tui-wingeneral.c
3623 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3624 check_and_display_highlight_if_needed.
3625 * tui/tui-win.c (tui_rehighlight_all)
3626 (tui_win_info::make_visible_with_new_height): Update.
3627 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3628 (tui_data_window::erase_data_content)
3629 (tui_data_window::display_all_data): Update.
3630 * tui/tui-data.h (struct tui_win_info)
3631 <check_and_display_highlight_if_needed>: Declare.
3632
3633 2019-08-13 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-win.c (tui_resize_all): Call
3636 tui_delete_invisible_windows.
3637 * tui/tui-layout.c (show_layout): Call
3638 tui_delete_invisible_windows.
3639 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3640 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3641
3642 2019-08-13 Tom Tromey <tom@tromey.com>
3643
3644 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3645 tui_add_win_to_layout.
3646
3647 2019-08-13 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3650 * tui/tui-layout.c (tui_default_win_height): Now static.
3651
3652 2019-08-13 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3655 single switch.
3656 (show_source_disasm_command, show_source_or_disasm_and_command):
3657 Don't check current layout.
3658
3659 2019-08-13 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-wingeneral.c (make_all_visible): Remove.
3662 (tui_make_all_invisible): Simplify.
3663 * tui/tui-layout.c (tui_make_all_invisible): Move from
3664 tui-wingeneral.c; simplify.
3665 (show_layout): Hoist call to tui_make_all_invisible.
3666 (show_data): Don't call tui_make_all_invisible.
3667
3668 2019-08-13 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3671 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3672
3673 2019-08-13 Tom Tromey <tom@tromey.com>
3674
3675 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3676 tui-data.c.
3677 (show_source_disasm_command, show_data)
3678 (show_source_or_disasm_and_command): Don't use
3679 tui_set_current_layout_to.
3680 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3681 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3682 tui-layout.c.
3683 (tui_set_current_layout_to): Remove.
3684
3685 2019-08-13 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-layout.c (tui_set_layout): Update.
3688 * tui/tui-data.h (struct tui_layout_def): Remove.
3689 (tui_layout_def): Don't declare.
3690 * tui/tui-data.c (layout_def): Remove.
3691 (tui_layout_def): Remove.
3692
3693 2019-08-13 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-winsource.h (struct tui_source_window_base)
3696 <clear_detail>: No longer "override".
3697 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3698 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3699 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3700 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3701 Remove.
3702 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3703
3704 2019-08-13 Tom Tromey <tromey@adacore.com>
3705
3706 * tracepoint.c: Don't include readline.h or history.h.
3707
3708 2019-08-12 Tom Tromey <tom@tromey.com>
3709
3710 * configure: Rebuild.
3711 * configure.ac: Check for readline 7.
3712 * NEWS: Mention readline 7 requirement.
3713 * README: Update.
3714
3715 2019-08-12 Tom Tromey <tom@tromey.com>
3716
3717 * mingw-hdep.c (gdb_select): Remove readline hack.
3718
3719 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3720
3721 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3722 when the function fails.
3723
3724 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3725
3726 * s390-tdep.c (s390_type_align): New function.
3727 (s390_gdbarch_init): Set it as type_align gdbarch method.
3728
3729 2019-08-09 Tom de Vries <tdevries@suse.de>
3730
3731 PR gdb/24591
3732 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3733 pc_low with relocation offset.
3734
3735 2019-08-07 Tom Tromey <tromey@adacore.com>
3736
3737 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3738 (print_frame_args): Update.
3739 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3740 Update.
3741 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3742 * frame.h (struct frame_arg): Add initializers.
3743 <error>: Now a unique_xmalloc_ptr.
3744
3745 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3746
3747 * NEWS: Expand the Pointer Authentication entry.
3748 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3749 (aarch64_frame_unmask_lr): ... to this.
3750 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3751 Call aarch64_frame_unmask_lr.
3752 * frame.c (struct frame_info): Add "masked" variable.
3753 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3754 (fprint_frame): Check for masked pc.
3755 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3756 declarations.
3757 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3758 * stack.c (print_frame): Check for masked pc.
3759
3760 2019-08-06 Tom Tromey <tom@tromey.com>
3761
3762 * stabsread.c (patch_block_stabs, read_one_struct_field)
3763 (read_enum_type): Use obstack_strndup.
3764 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3765 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3766 * dwarf2read.c (guess_full_die_structure_name)
3767 (anonymous_struct_prefix): Use obstack_strndup.
3768 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3769 * c-exp.y (yylex): Use obstack_strndup.
3770 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3771 (write_var_or_type): Use obstack_strndup.
3772
3773 2019-08-06 Tom Tromey <tom@tromey.com>
3774
3775 * symfile.c (reread_symbols): Use obstack_strdup.
3776 * stabsread.c (read_type): Use obstack_strdup.
3777 * gdb_obstack.h (obstack_strdup): New overload.
3778 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3779 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3780 (dwarf2_canonicalize_name): Use obstack_strdup.
3781 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3782 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3783 Use obstack_strdup.
3784
3785 2019-08-06 Tom Tromey <tom@tromey.com>
3786
3787 * gdb_obstack.h (obstack_strdup): Define.
3788 * gdb_obstack.c (obstack_strdup): Don't define.
3789
3790 2019-08-06 Tom Tromey <tom@tromey.com>
3791
3792 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3793 obstack_strdup.
3794 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3795 obstack_strdup.
3796 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3797 * stabsread.c (common_block_start): Use obstack_strdup.
3798 * objfiles.c (set_objfile_main_name, objfile): Use
3799 obstack_strdup.
3800 * namespace.c (add_using_directive): Use obstack_strdup.
3801 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3802 * jit.c (finalize_symtab): Use obstack_strdup.
3803 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3804 (guess_partial_die_structure_name, partial_die_info::fixup)
3805 (dwarf2_name): Use obstack_strdup.
3806 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3807 obstack_strdup.
3808 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3809 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3810 obstack_strdup.
3811 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3812
3813 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3814
3815 * unittests/help-doc-selftests.c: New file.
3816 * Makefile.in: Add the new file.
3817
3818 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3819
3820 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3821 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3822 the full first line, except when FOR_VALUE_PREFIX. In this case,
3823 the trailing '.' is not output, and the first character is uppercased.
3824 (print_help_for_command): Update call to print_doc_line.
3825 (print_doc_of_command): Likewise.
3826 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3827 * cli/cli-option.c (append_indented_doc): Do not append newline.
3828 (build_help_option): Append newline after first appended_indented_doc
3829 only if a second call is done.
3830 (build_help): Append 2 new lines before each option, except the first
3831 one.
3832 * compile/compile.c (_initialize_compile): Add new lines after
3833 %OPTIONS%, when not at the end of the help.
3834 Change help doc or code
3835 producing the help doc to respect the invariants.
3836 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3837 Also removed the new line after 'Options:', as all other commands
3838 do not put an empty line between 'Options:' and the first option.
3839 * printcmd.c (_initialize_printcmd): Likewise.
3840 * stack.c (_initialize_stack): Likewise.
3841 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3842 incorrectly telling COMMAND is optional.
3843 * ada-lang.c (_initialize_ada_language): Change help doc or code
3844 producing the help doc to respect the invariants.
3845 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3846 * breakpoint.c (_initialize_breakpoint): Likewise.
3847 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3848 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3849 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3850 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3851 _initialize_cli_style): Likewise.
3852 * corelow.c (core_target_info): Likewise.
3853 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3854 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3855 * filesystem.c (_initialize_filesystem): Likewise.
3856 * frame.c (_initialize_frame): Likewise.
3857 * gnu-nat.c (add_task_commands): Likewise.
3858 * infcall.c (_initialize_infcall): Likewise.
3859 * infcmd.c (_initialize_infcmd): Likewise.
3860 * interps.c (_initialize_interpreter): Likewise.
3861 * language.c (_initialize_language): Likewise.
3862 * linux-fork.c (_initialize_linux_fork): Likewise.
3863 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3864 * maint.c (_initialize_maint_cmds): Likewise.
3865 * memattr.c (_initialize_mem): Likewise.
3866 * printcmd.c (_initialize_printcmd): Likewise.
3867 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3868 _RegEx): Likewise.
3869 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3870 * record-btrace.c (_initialize_record_btrace): Likewise.
3871 * record-full.c (_initialize_record_full): Likewise.
3872 * record.c (_initialize_record): Likewise.
3873 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3874 * regcache.c (_initialize_regcache): Likewise.
3875 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3876 _initialize_remote): Likewise.
3877 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3878 * serial.c (_initialize_serial): Likewise.
3879 * skip.c (_initialize_step_skip): Likewise.
3880 * source.c (_initialize_source): Likewise.
3881 * stack.c (_initialize_stack): Likewise.
3882 * symfile.c (_initialize_symfile): Likewise.
3883 * symtab.c (_initialize_symtab): Likewise.
3884 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3885 * top.c (init_main): Likewise.
3886 * tracefile-tfile.c (tfile_target_info): Likewise.
3887 * tracepoint.c (_initialize_tracepoint): Likewise.
3888 * tui/tui-win.c (_initialize_tui_win): Likewise.
3889 * utils.c (add_internal_problem_command): Likewise.
3890 * valprint.c (value_print_option_defs): Likewise.
3891
3892 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3893
3894 PR build/24886
3895 * configure.ac: Drop enable-libmcheck support.
3896 * configure, config.in: Rebuild.
3897 * libmcheck.m4: Remove.
3898 * acinclude.m4: Don't include it.
3899 * Makefile.in: Don't distribute it.
3900 * top.c (print_gdb_configuration): Don't mention it.
3901
3902 2019-08-06 Tom Tromey <tom@tromey.com>
3903
3904 * utils.c (set_output_style): Sometimes pass stream to
3905 emit_style_escape.
3906 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3907 * record-btrace.c (btrace_insn_history): Update.
3908 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3909 method.
3910 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3911 Update initializers.
3912 <m_uiout>: New field.
3913 <m_di>: Move lower.
3914 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3915 Remove "uiout" parameter.
3916 (dump_insns): Update.
3917 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3918 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3919
3920 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3921
3922 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3923 (error_in_psymtab_expansion): Likewise.
3924 (lookup_symbol_via_quick_fns): Likewise.
3925 (basic_lookup_transparent_type_quick): Likewise.
3926 (basic_lookup_transparent_type_1): Likewise.
3927
3928 2019-08-06 Tom Tromey <tromey@adacore.com>
3929
3930 * source.c (last_source_error): Now bool.
3931 (print_source_lines_base): Make "noprint" bool. Only open
3932 source file when last_source_visited changes.
3933
3934 2019-08-06 Tom Tromey <tromey@adacore.com>
3935
3936 * annotate.c (annotate_source_line): Use g_source_cache.
3937 * source-cache.c (source_cache::get_plain_source_lines): Change
3938 parameters. Populate m_offset_cache.
3939 (source_cache::ensure): New method.
3940 (source_cache::get_line_charpos): New method.
3941 (extract_lines): Move lower. Change parameters.
3942 (source_cache::get_source_lines): Move lower.
3943 * source-cache.h (class source_cache): Update comment.
3944 <get_line_charpos>: New method.
3945 <get_source_lines>: Update comment.
3946 <clear>: Clear m_offset_cache.
3947 <get_plain_source_lines>: Change parameters.
3948 <ensure>: New method
3949 <m_offset_cache>: New member.
3950 * source.c (forget_cached_source_info_for_objfile): Update.
3951 (info_source_command): Use g_source_cache.
3952 (find_source_lines, open_source_file_with_line_charpos): Remove.
3953 (print_source_lines_base, search_command_helper): Use g_source_cache.
3954 * source.h (open_source_file_with_line_charpos): Don't declare.
3955 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3956 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3957 Use g_source_cache.
3958
3959 2019-08-06 Tom Tromey <tromey@adacore.com>
3960
3961 * source-cache.c (source_cache::get_plain_source_lines):
3962 Remove "first_line" and "last_line" parameters.
3963 (source_cache::get_source_lines): Cache plain text.
3964 * source-cache.h (class source_cache)
3965 <get_plain_source_lines>: Update.
3966
3967 2019-08-06 Tom Tromey <tromey@adacore.com>
3968
3969 * source-cache.c (extract_lines): No longer a method.
3970 Changed type of parameter. Include final newline.
3971 (selftests::extract_lines_test): New function.
3972 (_initialize_source_cache): Likewise.
3973 * source-cache.h (class source_cache)
3974 <extract_lines>: Don't declare.
3975
3976 2019-08-06 Tom Tromey <tromey@adacore.com>
3977
3978 * breakpoint.c (init_breakpoint_sal): Update.
3979 (breakpoint): Update.
3980 * breakpoint.h (struct breakpoint) <filter>: Now a
3981 unique_xmalloc_ptr.
3982
3983 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3984
3985 * NEWS: Mention dictionary access on blocks.
3986 * python/py-block.c (blpy_getitem): New function.
3987 (block_object_as_mapping): New struct.
3988 (block_object_type): Use new struct for tp_as_mapping field.
3989
3990 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3991
3992 * objfiles.h (objfile): Add a comment describing partial symbols.
3993
3994 2019-08-05 Tom Tromey <tromey@adacore.com>
3995
3996 * compile/compile.c (_initialize_compile): Use _(), not N_().
3997 * thread.c (_initialize_thread): Use _(), not N_().
3998 * stack.c (_initialize_stack): Use _(), not N_().
3999 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4000
4001 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * dwarf2read.c (struct dw2_symtab_iterator):
4004 <want_specific_block>: Remove.
4005 <block_index>: Change type to gdb::optional.
4006 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4007 change type of BLOCK_INDEX parameter to gdb::optional.
4008 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4009 (dw2_lookup_symbol): Don't pass argument for
4010 WANT_SPECIFIC_BLOCK.
4011 (dw2_expand_symtabs_for_function): Don't pass argument for
4012 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4013 (class dw2_debug_names_iterator)
4014 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4015 parameter, change BLOCK_INDEX type to gdb::optional.
4016 <m_want_specific_block>: Remove.
4017 <m_block_index>: Change type to gdb::optional.
4018 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4019 gdb::optional. Re-write in function of gdb::optional.
4020 (dw2_debug_names_lookup_symbol): Don't pass argument for
4021 WANT_SPECIFIC_BLOCK.
4022 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4023 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4024 BLOCK_INDEX.
4025
4026 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4027
4028 * NEWS: Mention changes to "info sources" command.
4029
4030 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4031
4032 * symtab.c (filename_partial_match_opts): New struct type.
4033 (struct output_source_filename_data): New members
4034 regexp, c_regexp, partial_match.
4035 (output_source_filename): Use new members to decide to print file.
4036 (info_sources_option_defs): New variable.
4037 (make_info_sources_options_def_group, print_info_sources_header,
4038 info_sources_command_completer):
4039 New functions.
4040 (info_sources_command): Read new optional arguments.
4041 (_initialize_symtab): Update info sources help.
4042
4043 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4044
4045 * ada-lang.c (exception_support_info_v0): Renamed from...
4046 (default_exception_support_info): ... this. Create new
4047 definition for v1.
4048 (ada_has_this_exception_support): Look up catch_handlers_sym.
4049 (ada_exception_support_info_sniffer): Try v0 after default.
4050
4051 2019-08-01 Tom Tromey <tromey@adacore.com>
4052
4053 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4054 gdbarch.h.
4055
4056 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4057
4058 * s12z-tdep.c: Fix include path for s12z-opc.h.
4059
4060 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4061
4062 * NEWS: Require GNU make 3.82.
4063
4064 2019-07-16 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4067 declare.
4068
4069 2019-07-30 Tom Tromey <tromey@adacore.com>
4070
4071 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4072
4073 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4074
4075 * printcmd.c (print_address_symbolic): Print negative offsets.
4076 (build_address_symbolic): Force signed arithmetic when computing
4077 offset.
4078
4079 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4080
4081 PR/24474: Add a function to lookup static variables.
4082 * NEWS: Mention this new function.
4083 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4084 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4085 * python/python.c (python_GdbMethods): Add new function.
4086
4087 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4088
4089 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4090 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4091 (objfpy_lookup_static_symbol): New function.
4092 (objfile_object_methods): Add new functions.
4093
4094 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4095
4096 * NEWS: Mention 'set|show print frame-info'. Mention new
4097 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4098 backtrace argument. Mention that python frame filtering code
4099 is now consistent with what 'backtrace' command prints.
4100
4101 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4102
4103 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4104 comments.
4105 (print_frame_info_auto, print_frame_info_source_line,
4106 print_frame_info_location, print_frame_info_source_and_location,
4107 print_frame_info_location_and_address, print_frame_info_short_location):
4108 New declarations.
4109 (struct frame_print_options): New member print_frame_info.
4110 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4111 * stack.h (get_user_print_what_frame_info): New declaration.
4112 (frame_show_address): New declaration.
4113 * stack.c (print_frame_arguments_choices): New value 'presence'.
4114 (print_frame_info_auto, print_frame_info_source_line,
4115 print_frame_info_location, print_frame_info_source_and_location,
4116 print_frame_info_location_and_address, print_frame_info_short_location,
4117 print_frame_info_choices, print_frame_info_print_what): New definitions.
4118 (print_frame_args): Only print dots for args if print frame-arguments
4119 is 'presence'.
4120 (frame_print_option_defs): New element for "frame-info".
4121 (get_user_print_what_frame_info): New function.
4122 (frame_show_address): Make non static. Move comment to stack.h.
4123 (print_frame_info_to_print_what): New function.
4124 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4125 to decide what to print.
4126 (backtrace_command_1): Handle the new print_frame_arguments_presence
4127 value.
4128 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4129 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4130 (py_print_frame): In non-mi mode, use LOCATION as default for
4131 print_what, similarly to frame information printed directly by
4132 backtrace command. Handle frame-info user option in non MI mode.
4133
4134 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4135
4136 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4137 Add case for debugging 32-bit target on 64-bit host. Revise
4138 comment.
4139
4140 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4141
4142 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4143 instead of find_function_entry_range_from_pc.
4144
4145 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4146
4147 * stack.c (find_frame_funname): Remove code which preferred
4148 minsym over symtab sym in "certain pathological cases".
4149
4150 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4151 parameter. Change type of "do_demangle" to bool.
4152 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4153 Pass suitable "prefer_sym_over_minsym" flag to
4154 build_address_symbolic(). Don't output "+" for negative offsets.
4155 * printcmd.c (print_address_symbolic): Update invocation of
4156 build_address_symbolic to include a "prefer_sym_over_minsym"
4157 flag.
4158 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4159 Restrict cases in which use of minimal symbol is preferred to that
4160 of a found symbol. Update comments.
4161
4162 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4163 for entry pc when entry pc is out of range for that FDE.
4164
4165 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4166
4167 PR gdb/24839:
4168 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4169 type.
4170
4171 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4172
4173 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4174 this function's Python signature.
4175
4176
4177 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4178
4179 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4180 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4181 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4182 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4183 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4184
4185
4186 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4187
4188 * h8300-tdep.c (h8300_register_name_common): New.
4189 h8300_register_name): Use h8300_register_name_common.
4190 (h8300s_register_name): Likewise.
4191 (h8300sx_register_name): Likewise.
4192 (h8300h_register_nam): New.
4193 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4194
4195
4196 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4197
4198 * arm-tdep.c (arm_skip_cmse_entry): New function.
4199 (arm_is_sgstubs_section): New function.
4200 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4201
4202 2019-07-22 Tom Tromey <tom@tromey.com>
4203
4204 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4205 Don't self-assign.
4206
4207 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4210 type_print.
4211
4212 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4215 so that GDB doesn't match any msymbols when searching in the
4216 TYPES_DOMAIN.
4217 (print_symbol_info): Print using typedef_print or type_print based
4218 on the type of the symbol. Add updated FIXME comment moved from...
4219 (_initialize_symtab): ... move and update FIXME comment to above.
4220
4221 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * NEWS: Mention adding -q option to "info types".
4224 * symtab.c (struct info_types_options): New struct.
4225 (info_types_options_defs): New variable.
4226 (make_info_types_options_def_group): New function.
4227 (info_types_command): Use gdb::option framework to parse options.
4228 (info_types_command_completer): New function.
4229 (_initialize_symtab): Extend the help text on "info types" and
4230 register command completer.
4231
4232 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4233
4234 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4235 (lookup_symbol_in_objfile): Change int to block_enum and add a
4236 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4237
4238 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4239
4240 * MAINTAINERS (Write After Approval): Add self.
4241
4242 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4245 instruction to the dummy code region.
4246
4247 2019-07-19 Tom Tromey <tromey@adacore.com>
4248
4249 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4250 (ARGSUSED, PARAMS, __func__): Remove rules.
4251
4252 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4253
4254 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4255 * features/arm/arm-with-iwmmxt.c: Remove.
4256 * features/arm/arm-with-iwmmxt.xml: Remove.
4257 * features/arm/arm-with-m-fpa-layout.c: Remove.
4258 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4259 * features/arm/arm-with-m-vfp-d16.c: Remove.
4260 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4261 * features/arm/arm-with-m.c: Remove.
4262 * features/arm/arm-with-m.xml: Remove.
4263 * features/arm/arm-with-neon.c: Remove.
4264 * features/arm/arm-with-neon.xml: Remove.
4265 * features/arm/arm-with-vfpv2.c: Remove.
4266 * features/arm/arm-with-vfpv2.xml: Remove.
4267 * features/arm/arm-with-vfpv3.c: Remove.
4268 * features/arm/arm-with-vfpv3.xml: Remove.
4269
4270 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4271
4272 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4273
4274 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4275
4276 * arch/aarch32.c (aarch32_create_target_description): Create
4277 target descriptions using features.
4278 * arch/arm.c (arm_create_target_description)
4279 (arm_create_mprofile_target_description): Likewise.
4280 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4281
4282 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4283
4284 * Makefile.in: Add new files.
4285 * aarch32-tdep.c: New file.
4286 * aarch32-tdep.h: New file.
4287 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4288 Call aarch32_read_description.
4289 * arch/aarch32.c: New file.
4290 * arch/aarch32.h: New file.
4291 * arch/arm.c (arm_create_target_description)
4292 (arm_create_mprofile_target_description): New function.
4293 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4294 (arm_create_target_description)
4295 (arm_create_mprofile_target_description): New declaration.
4296 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4297 read_description functions.
4298 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4299 Likewise.
4300 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4301 * arm-tdep.c (tdesc_arm_list): New variable.
4302 (arm_register_g_packet_guesses): Call create description functions.
4303 (arm_read_description) (arm_read_mprofile_description): New
4304 function.
4305 * arm-tdep.h (arm_read_description)
4306 (arm_read_mprofile_description): Add declaration.
4307 * configure.tgt: Add new files.
4308
4309 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4310
4311 * top.c (new_ui_command): Open specified terminal just once.
4312
4313 2019-07-18 Tom Tromey <tromey@adacore.com>
4314
4315 * symtab.c (main_name): Constify return type.
4316 * symfile.c (set_initial_language): Update.
4317 * symtab.h (main_name): Constify return type.
4318
4319 2019-07-17 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-winsource.c (tui_update_source_window)
4322 (tui_update_source_window_as_is)
4323 (tui_update_source_windows_with_line): Remove return.
4324 * tui/tui-disasm.c (tui_show_disassem)
4325 (tui_show_disassem_and_update_source): Remove return.
4326 * tui/tui.c (tui_reset): Remove return.
4327 * tui/tui-wingeneral.c
4328 (tui_check_and_display_highlight_if_needed): Remove return.
4329
4330 2019-07-17 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4333
4334 2019-07-17 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-winsource.h (struct tui_exec_info_window)
4337 (struct tui_source_window_base): Move from tui-data.h.
4338 * tui/tui-winsource.c: Move many method definitions from
4339 elsewhere. Remove "structuring" comments.
4340 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4341 (tui_source_window_base::refresh_window): Move to
4342 tui-winsource.c.
4343 * tui/tui-win.c (tui_source_window_base::refresh_all)
4344 (tui_source_window_base::update_tab_width)
4345 (tui_source_window_base::set_new_height)
4346 (tui_source_window_base::do_make_visible_with_new_height): Move to
4347 tui-winsource.c.
4348 * tui/tui-source.h: Update.
4349 * tui/tui-source.c (tui_source_window_base::reset): Move to
4350 tui-winsource.c.
4351 * tui/tui-disasm.h: Update.
4352 * tui/tui-data.h (struct tui_exec_info_window): Move to
4353 tui-winsource.h.
4354 (struct tui_source_window_base): Likewise.
4355 * tui/tui-data.c (tui_source_window_base::clear_detail)
4356 (tui_source_window_base, ~tui_source_window_base): Move to
4357 tui-winsource.c.
4358
4359 2019-07-17 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-win.c (tui_resize_all)
4362 (tui_source_window_base::update_tab_width)
4363 (tui_adjust_win_heights): Update.
4364 (tui_win_info::make_invisible_and_set_new_height): Rename from
4365 make_invisible_and_set_new_height.
4366 * tui/tui-data.h (struct tui_win_info)
4367 <make_invisible_and_set_new_height>: New method.
4368
4369 2019-07-17 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui.c: Update.
4372 * tui/tui-source.h (struct tui_source_window): Move from
4373 tui-data.h.
4374 * tui/tui-layout.c: Update.
4375 * tui/tui-disasm.c: Update.
4376 * tui/tui-data.h (struct tui_source_window): Move to
4377 tui-source.h.
4378
4379 2019-07-17 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4382 tui-data.h.
4383 * tui/tui-data.h (struct tui_disasm_window): Move to
4384 tui-disasm.h.
4385
4386 2019-07-17 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-regs.h (struct tui_data_item_window): Move from
4389 tui-data.h.
4390 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4391 * tui/tui-data.h (struct tui_data_item_window): Move to
4392 tui-regs.h.
4393 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4394
4395 2019-07-17 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui.c: Update.
4398 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4399 (tui_cmd_window::max_height): Move to tui-command.c.
4400 * tui/tui-layout.c: Update.
4401 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4402 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4403 tui-command.c.
4404 * tui/tui-command.h (struct tui_cmd_window): Move from
4405 tui-data.h.
4406 * tui/tui-command.c: Remove "structuring" comments.
4407 (tui_cmd_window::clear_detail)
4408 (tui_cmd_window::do_make_visible_with_new_height)
4409 (tui_cmd_window::max_height): Move from elsewhere.
4410
4411 2019-07-17 Tom Tromey <tom@tromey.com>
4412
4413 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4414 Now static.
4415 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4416 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4417
4418 2019-07-17 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui.c: Update.
4421 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4422 tui-regs.c.
4423 * tui/tui-windata.h: Remove file.
4424 * tui/tui-windata.c: Remove file.
4425 * tui/tui-win.c (tui_data_window::set_new_height)
4426 (tui_data_window::do_make_visible_with_new_height): Move to
4427 tui-regs.c.
4428 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4429 * tui/tui-regs.c: Remove "structuring" comments.
4430 (tui_data_window::first_data_item_displayed)
4431 (tui_data_window::delete_data_content_windows)
4432 (tui_data_window::erase_data_content)
4433 (tui_data_window::display_all_data)
4434 (tui_data_window::refresh_all)
4435 (tui_data_window::do_scroll_vertical)
4436 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4437 (tui_data_window::do_make_visible_with_new_height)
4438 (tui_data_window::refresh_window): Move from elsewhere.
4439 (_initialize_tui_regs): Move to end of file.
4440 * tui/tui-layout.c: Update.
4441 * tui/tui-hooks.c: Update.
4442 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4443 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4444 tui-regs.c.
4445 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4446
4447 2019-07-17 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4450 seen.
4451
4452 2019-07-17 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-win.c (tui_source_window_base::set_new_height)
4455 (tui_source_window_base::do_make_visible_with_new_height): Use
4456 m_has_locator field directly.
4457 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4458 method.
4459 (struct tui_source_window_base) <has_locator>: Likewise.
4460
4461 2019-07-17 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4464 Don't declare.
4465 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4466 Remove.
4467 * tui/tui-win.c (tui_source_window_base::set_new_height)
4468 (tui_source_window_base::set_new_height)
4469 (make_invisible_and_set_new_height)
4470 (tui_source_window_base::do_make_visible_with_new_height)
4471 (tui_source_window_base::do_make_visible_with_new_height):
4472 Update.
4473 * tui/tui-layout.c (show_source_disasm_command, show_data)
4474 (show_source_or_disasm_and_command): Update.
4475 * tui/tui-layout.c (show_layout): Update.
4476
4477 2019-07-17 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-layout.c (make_data_window): Remove.
4480 (show_data): Unify creation and re-initialization cases.
4481
4482 2019-07-17 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-layout.c (make_source_window, make_disasm_window):
4485 Remove.
4486 (show_data): Unify creation and re-initialization cases.
4487
4488 2019-07-17 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-layout.c (make_command_window): Remove.
4491 (show_source_disasm_command, show_source_or_disasm_and_command):
4492 Unify creation and re-initialization cases.
4493
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4497 creation and re-initialization cases.
4498
4499 2019-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-regs.c (tui_get_register): Return void.
4502
4503 2019-07-17 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4506 Simplify.
4507
4508 2019-07-17 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4511 resetting.
4512
4513 2019-07-17 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4516 * tui/tui-regs.c (tui_reg_layout): New function.
4517 (tui_show_registers, tui_reg_command): Use it.
4518 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4519 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4520 parameters.
4521 (tui_layout_command): Remove.
4522
4523 2019-07-17 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-layout.h (tui/tui-layout): Return void.
4526 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4527
4528 2019-07-17 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-layout.c (show_source_disasm_command, show_data):
4531 Update.
4532 (reset_locator): Remove.
4533 (show_source_or_disasm_and_command): Update.
4534
4535 2019-07-17 Tom Tromey <tom@tromey.com>
4536
4537 * tui/tui-source.c (tui_source_window_base::reset): Remove
4538 win_type parameter.
4539 * tui/tui-layout.c (make_command_window, make_source_window)
4540 (make_disasm_window, make_data_window)
4541 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4542 (reset_locator, show_source_or_disasm_and_command): Update.
4543 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4544 win_type parameter.
4545 (struct tui_source_window_base) <reset>: Likewise.
4546
4547 2019-07-17 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui-layout.c (show_source_disasm_command): Use
4550 reset_locator.
4551 (reset_locator): New function.
4552 (init_and_make_win): Remove.
4553 (show_source_or_disasm_and_command): Use reset_locator.
4554
4555 2019-07-17 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4558 condition.
4559 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4560 Remove condition.
4561 * tui/tui-source.c (tui_source_window_base::reset): New method.
4562 * tui/tui-layout.c (make_command_window): Don't call
4563 init_and_make_win.
4564 (make_source_window, make_disasm_window): Don't call
4565 make_source_or_disasm_window.
4566 (make_data_window): Don't call init_and_make_win. Change calling
4567 convention.
4568 (show_source_disasm_command, show_data): Simplify.
4569 (make_source_or_disasm_window): Remove.
4570 (show_source_or_disasm_and_command): Simplify.
4571 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4572 (struct tui_source_window_base) <reset>: Likewise.
4573 <execution_info>: Remove initializer.
4574 * tui/tui-data.c (tui_source_window_base): Initialize
4575 execution_info.
4576
4577 2019-07-17 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4580 variable.
4581
4582 2019-07-17 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui.c (tui_rl_other_window): Update.
4585 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4586 superclass method first. Always iterate over regs_content.
4587 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4588 method.
4589 * tui/tui-win.c (tui_set_focus_command): Update.
4590
4591 2019-07-17 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-win.c (tui_set_focus_command): Rename from
4594 tui_set_focus. Call tui_enable.
4595 (tui_set_focus_command): Remove.
4596
4597 2019-07-17 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4600 refresh_window.
4601 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4602 touchwin.
4603 (tui_data_window::refresh_window): Call refresh_window on data
4604 items. Always call superclass refresh_window.
4605 (tui_win_info::refresh): Remove.
4606 (tui_source_window_base::refresh_window): Update.
4607 (tui_refresh_all): Update.
4608 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4609 refresh_window.
4610 (show_source_or_disasm_and_command): Likewise.
4611 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4612 (struct tui_source_window_base) <refresh>: Likewise.
4613
4614 2019-07-17 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-winsource.c (tui_clear_source_content)
4617 (tui_show_source_content): Update.
4618 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4619 whether content is empty.
4620 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4621 Remove.
4622
4623 2019-07-17 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4626 window's contents.
4627 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4628 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4629
4630 2019-07-17 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4633 (struct tui_data_item_window): Update.
4634
4635 2019-07-17 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4638 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4639 defines.
4640
4641 2019-07-17 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-winsource.h (tui_erase_source_content)
4644 (tui_clear_source_content): Remove "display_prompt" parameter.
4645 * tui/tui-winsource.c (tui_update_source_window_as_is)
4646 (tui_update_source_windows_with_addr): Update.
4647 (tui_clear_source_content): Remove "display_prompt" parameter.
4648 (tui_erase_source_content): Likewise. Simplify.
4649 (tui_show_source_content): Update.
4650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4651 * tui/tui-stack.c (tui_show_frame_info): Update.
4652 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4653 Remove defines.
4654
4655 2019-07-17 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4658 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4659 parameter.
4660 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4661 parameter.
4662
4663 2019-07-17 Tom Tromey <tom@tromey.com>
4664
4665 * tui/tui-winsource.c (tui_clear_source_content)
4666 (tui_show_source_content, tui_show_exec_info_content)
4667 (tui_clear_exec_info_content): Update.
4668 * tui/tui-stack.c (tui_show_locator_content): Update.
4669 (tui_show_frame_info): Update.
4670 * tui/tui-source.h (tui_source_window): Don't declare.
4671 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4672 from tui_source_is_displayed.
4673 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4674 Remove field.
4675 (struct tui_source_window_base) <content_in_use>: New field. Now
4676 bool.
4677 (struct tui_source_window) <showing_source_p>: New method.
4678 (TUI_SRC_WIN): Change cast.
4679 * tui/tui-data.c (tui_initialize_static_data): Update.
4680
4681 2019-07-17 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4684 location_matches_p.
4685 * tui/tui-source.c (tui_source_window::location_matches_p): New
4686 method.
4687 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4688 method.
4689 * tui/tui-data.h (struct tui_source_window_base)
4690 <location_matches_p>: New method.
4691 (struct tui_source_window, struct tui_disasm_window)
4692 <location_matches_p>: Likewise.
4693
4694 2019-07-17 Tom Tromey <tom@tromey.com>
4695
4696 * tui/tui-win.c (tui_set_win_height_command): Rename from
4697 tui_set_win_height.
4698 (tui_set_win_height_command): Remove.
4699
4700 2019-07-17 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-source.c (tui_source_window): New constructor. Add
4703 observer.
4704 (~tui_source_window): New destructor.
4705 (tui_source_window::style_changed): New method.
4706 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4707 (tui_attach_detach_observers): Update.
4708 * tui/tui-data.h (struct tui_source_window): Make constructor not
4709 inline. Add destructor.
4710 (struct tui_source_window) <style_changed>: New method.
4711 <m_observable>: New member.
4712
4713 2019-07-17 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4716 * tui/tui-win.c (tui_resize_all): Fix typo.
4717
4718 2019-07-17 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4721 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4722 (tui_refresh_all): Remove "list" parameter. Use foreach.
4723 * tui/tui-win.c (window_name_completer): Use foreach.
4724 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4725 (update_tab_width): Likewise.
4726 * tui/tui-layout.c (show_layout): Update.
4727 * tui/tui-data.h (class tui_window_iterator): New.
4728 (struct all_tui_windows): New.
4729 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4730
4731 2019-07-17 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4734 parameter. Don't reference globals.
4735 (tui_reg_command): Update.
4736
4737 2019-07-17 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-regs.c (tui_show_registers): Simplify.
4740
4741 2019-07-17 Tom Tromey <tom@tromey.com>
4742
4743 * tui/tui-regs.c (tui_show_registers): Update.
4744 (tui_show_register_group): Add win_info parameter.
4745
4746 2019-07-17 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4749 Rename from tui_display_reg_element_at_line.
4750 (tui_data_window::display_registers_from_line): Update.
4751 * tui/tui-data.h (struct tui_data_window)
4752 <display_reg_element_at_line>: New method.
4753
4754 2019-07-17 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-regs.h (tui_display_registers_from)
4757 (tui_display_registers_from_line): Don't declare.
4758 * tui/tui-windata.c (tui_data_window::display_all_data)
4759 (tui_data_window::refresh_all)
4760 (tui_data_window::do_scroll_vertical): Update.
4761 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4762 from tui_display_registers_from.
4763 (tui_display_reg_element_at_line): Update.
4764 (tui_data_window::display_registers_from_line): Rename from
4765 tui_display_registers_from_line.
4766 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4767 display_registers_from_line>: New methods.
4768
4769 2019-07-17 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4772 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4773 from tui_erase_data_content.
4774 (tui_data_window::display_all_data)
4775 (tui_data_window::refresh_all)
4776 (tui_data_window::do_scroll_vertical): Update.
4777 * tui/tui-regs.c (tui_show_registers): Update.
4778 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4779 New method.
4780
4781 2019-07-17 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4784 declare.
4785 * tui/tui-windata.c
4786 (tui_data_window::delete_data_content_windows): Rename from
4787 tui_delete_data_content_windows.
4788 (tui_data_window::display_all_data)
4789 (tui_data_window::do_scroll_vertical): Update.
4790 * tui/tui-data.h (struct tui_data_window)
4791 <delete_data_content_windows>: New method.
4792
4793 2019-07-17 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4796 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4797
4798 2019-07-17 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4801 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4802 from tui_display_all_data.
4803 * tui/tui-win.c
4804 (tui_data_window::do_make_visible_with_new_height): Update.
4805 * tui/tui-regs.c (tui_show_registers): Update.
4806 * tui/tui-layout.c (tui_set_layout): Update.
4807 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4808 method.
4809
4810 2019-07-17 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4813 * tui/tui-windata.c (tui_display_data_from): Remove.
4814 (tui_data_window::refresh_all): Update.
4815
4816 2019-07-17 Tom Tromey <tom@tromey.com>
4817
4818 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4819 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4820 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4821 tui_display_registers_from_line.
4822 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4823 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4824 "force_display" parameter.
4825
4826 2019-07-17 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4829 declare.
4830 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4831 Rename from tui_first_reg_element_no_inline.
4832 (tui_display_reg_element_at_line)
4833 (tui_display_registers_from_line): Update.
4834 * tui/tui-data.h (struct tui_data_window)
4835 <first_reg_element_no_inline>: New method.
4836
4837 2019-07-17 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-windata.c (tui_display_data_from)
4840 (tui_data_window::do_scroll_vertical): Update.
4841 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4842 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4843 Rename from tui_line_from_reg_element_no.
4844 (tui_display_registers_from_line): Update.
4845 * tui/tui-data.h (struct tui_data_window)
4846 <line_from_reg_element_no>: New method.
4847
4848 2019-07-17 Tom Tromey <tom@tromey.com>
4849
4850 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4851 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4852 tui_last_regs_line_no.
4853 (tui_display_reg_element_at_line)
4854 (tui_display_registers_from_line): Update.
4855 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4856 method.
4857
4858 2019-07-17 Tom Tromey <tom@tromey.com>
4859
4860 PR tui/24722:
4861 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4862 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4863 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4864 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4865 (tui_update_breakpoint_info): Likewise.
4866 * tui/tui-hooks.c (tui_event_create_breakpoint)
4867 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4868 Update.
4869
4870 2019-07-17 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4873
4874 2019-07-17 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-winsource.c (tui_update_source_window_as_is)
4877 (tui_update_source_windows_with_addr): Update.
4878 * tui/tui-source.h (tui_set_source_content)
4879 (tui_show_symtab_source): Add "win_info" parameter.
4880 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4881 parameter.
4882 (tui_show_symtab_source): Likewise.
4883
4884 2019-07-17 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-wingeneral.c
4887 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4888
4889 2019-07-17 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4892 (struct tui_cmd_window) <can_scroll>: New method.
4893 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4894 method.
4895
4896 2019-07-17 Tom Tromey <tromey@adacore.com>
4897
4898 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4899 do_field_signed>: Rename. Change type of "value".
4900 * ui-out.c (ui_out::field_signed): Rename from field_int.
4901 Change type of "value".
4902 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4903 type of "value".
4904 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4905 do_field_int. Change type of "value".
4906 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4907 do_field_int. Change type of "value".
4908 * tracepoint.c (trace_status_mi, tfind_1)
4909 (print_one_static_tracepoint_marker): Update.
4910 * thread.c (print_thread_info_1, print_selected_thread_frame):
4911 Update.
4912 * stack.c (print_frame, print_frame_info): Update.
4913 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4914 Update.
4915 * source.c (print_source_lines_base): Update.
4916 * skip.c (info_skip_command): Update.
4917 * record-btrace.c (btrace_ui_out_decode_error)
4918 (btrace_call_history_src_line): Update.
4919 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4920 Update.
4921 * progspace.c (print_program_space): Update.
4922 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4923 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4924 do_field_int. Change type of "value".
4925 * mi/mi-out.c (mi_ui_out::do_table_begin)
4926 (mi_ui_out::do_table_header): Update.
4927 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4928 type of "value".
4929 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4930 (mi_cmd_data_list_changed_registers, output_register)
4931 (mi_cmd_data_read_memory, mi_load_progress)
4932 (mi_cmd_trace_frame_collected): Update.
4933 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4934 Update.
4935 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4936 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4937 (mi_cmd_var_list_children, varobj_update_one): Update.
4938 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4939 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4940 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4941 * inferior.c (print_inferior): Update.
4942 * gdb_bfd.c (print_one_bfd): Update.
4943 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4944 Update.
4945 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4946 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4947 do_field_int. Change type of "value".
4948 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4949 do_field_int. Change type of "value".
4950 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4951 (print_one_breakpoint_location, print_it_catch_fork)
4952 (print_one_catch_fork, print_it_catch_vfork)
4953 (print_one_catch_vfork, print_it_catch_solib)
4954 (print_it_catch_exec, print_it_ranged_breakpoint)
4955 (print_mention_watchpoint, print_mention_masked_watchpoint)
4956 (bkpt_print_it, update_static_tracepoint): Update.
4957 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4958 * break-catch-syscall.c (print_it_catch_syscall): Update.
4959 * ada-tasks.c (print_ada_task_info): Update.
4960 * ada-lang.c (print_it_exception, print_mention_exception):
4961 Update.
4962
4963 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 PR breakpoints/24541
4966 * gdbarch.c: Regenerate.
4967 * gdbarch.h: Regenerate.
4968 * gdbarch.sh: Adjust return type and parameter types for
4969 'stap_adjust_register'.
4970 (i386_stap_adjust_register): Adjust signature and return new
4971 register name.
4972 * stap-probe.c (stap_parse_register_operand): Adjust use of
4973 'gdbarch_stap_adjust_register'.
4974
4975 2019-07-17 Tom Tromey <tromey@adacore.com>
4976
4977 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4978 declare VEC.
4979 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4980 std::vector.
4981 (struct s390_process_info): Add initializers.
4982 (s390_add_process): Use new.
4983 (s390_linux_nat_target::low_forget_process): Use delete.
4984 (s390_linux_nat_target::low_new_fork)
4985 (s390_linux_nat_target::stopped_by_watchpoint)
4986 (s390_linux_nat_target::low_prepare_to_resume)
4987 (s390_linux_nat_target::insert_watchpoint)
4988 (s390_linux_nat_target::insert_hw_breakpoint)
4989 (s390_linux_nat_target::remove_watchpoint)
4990 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4991
4992 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4993
4994 * aarch64-fbsd-nat.c: Include regcache.h.
4995 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4996 argument.
4997 (aarch64_fbsd_nat_target::fetch_registers)
4998 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4999 variable.
5000 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5001
5002 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5003
5004 * fbsd-nat.c: Include gdbarch.h.
5005
5006 2019-07-15 Tom Tromey <tromey@adacore.com>
5007
5008 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5009
5010 2019-07-15 Tom Tromey <tromey@adacore.com>
5011
5012 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5013 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5014 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5015 * cli-out.c (cli_ui_out::do_field_int): New method.
5016 * ui-out.c (ui_out::field_unsigned): New method.
5017 * symfile.c (generic_load): Use field_unsigned.
5018 (print_transfer_performance): Likewise.
5019 * record-btrace.c (ui_out_field_uint): Remove.
5020 (btrace_call_history_insn_range, btrace_call_history): Use
5021 field_unsigned.
5022 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5023 field_unsigned.
5024 * ui-out.h (class ui_out) <field_unsigned>: New method.
5025 <do_field_unsigned>: Likewise.
5026
5027 2019-07-15 Tom Tromey <tromey@adacore.com>
5028
5029 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5030 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5031 * target.c (flash_erase_command): Use field_string.
5032 * infrun.c (print_signal_received_reason): Use field_string.
5033 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5034 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5035 field_string.
5036 * ada-tasks.c (print_ada_task_info): Use field_string.
5037
5038 2019-07-15 Tom Tromey <tromey@adacore.com>
5039
5040 * target.c (flash_erase_command): Use field_core_addr.
5041 * symfile.c (generic_load): Use field_core_addr.
5042 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5043 Use field_core_addr.
5044 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5045 field_core_addr.
5046
5047 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5050 value if its desired type is smaller than a CORE_ADDR and signed.
5051
5052 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5053
5054 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5055 of changes to field names, and use new is_reference field to
5056 decide if a property is a reference or not.
5057 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5058 field.
5059 (struct dwarf2_property_baton): Update header comment, rename
5060 'referenced_type' to 'property_type' and update comments.
5061 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5062 default property type, store in property baton, update to take
5063 accound of renamed field.
5064 (read_func_scope): Update call to attr_to_dynamic_prop.
5065 (read_array_type): Likewise.
5066 (dwarf2_per_cu_addr_sized_int_type): New function.
5067 (read_subrange_index_type): Move type finding code to
5068 dwarf2_per_cu_addr_sized_int_type.
5069 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5070 (dwarf2_per_cu_addr_type): New function.
5071 (set_die_type): Update calls to attr_to_dynamic_prop.
5072
5073 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * dwarf2read.c (read_subrange_index_type): New function.
5076 (read_subrange_type): Move code into new function and call it.
5077 * gdbtypes.c (create_range_type): Add some asserts.
5078
5079 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5082 update return statements.
5083 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5084 declaration, and update comment to match.
5085 * gdbtypes.c (resolve_dynamic_array): Update call to
5086 dwarf2_evaluate_property to match new return type.
5087
5088 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 * valarith.c (value_subscripted_rvalue): Change lowerbound
5091 parameter type from int to LONGEST.
5092 * value.h (value_subscripted_rvalue): Likewise in declaration.
5093
5094 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5095
5096 * cli/cli-utils.c (info_print_command_completer): New function.
5097 * cli/cli-utils.h: Add 'completer.h' include, and forward
5098 declaration for 'struct cmd_list_element'.
5099 (info_print_command_completer): Declare.
5100 * stack.c (_initialize_stack): Add completer for 'info locals' and
5101 'info args'.
5102 * symtab.c (_initialize_symtab): Add completer for 'info
5103 variables' and 'info functions'.
5104 * NEWS: Mention completion for additional info commands.
5105
5106 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * cli/cli-utils.c (extract_info_print_args): Delete.
5109 (extract_arg_maybe_quoted): Delete.
5110 (info_print_options_defs): New variable.
5111 (make_info_print_options_def_group): New function.
5112 (extract_info_print_options): Define new function.
5113 * cli/cli-utils.h (extract_info_print_args): Delete.
5114 (struct info_print_options): New structure.
5115 (extract_info_print_options): Declare new function.
5116 * stack.c (info_locals_command): Update to use new
5117 extract_info_print_options, also add a header comment.
5118 (info_args_command): Likewise.
5119 * symtab.c (info_variables_command): Likewise.
5120 (info_functions_command): Likewise.
5121
5122 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5125 to extract string arguments.
5126 * common/common-utils.c (extract_string_maybe_quoted): New function.
5127 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5128
5129 2019-07-11 Tom Tromey <tromey@adacore.com>
5130
5131 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5132 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5133 * top.h (gdbinit): Don't declare.
5134 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5135 into...
5136 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5137 * top.c (gdb_init): Don't call init_cli_cmds.
5138 (gdbinit): Remove.
5139 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5140
5141 2019-07-11 Tom Tromey <tromey@adacore.com>
5142
5143 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5144 after it has been moved.
5145
5146 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5147
5148 * valops.c (value_must_coerce_to_target): Change return type to
5149 bool.
5150 * value.h (value_must_coerce_to_target): Likewise.
5151
5152 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * breakpoint.c (is_hardware_watchpoint): Remove
5155 forward-declaration.
5156 (is_masked_watchpoint): Change return type to bool.
5157 (is_tracepoint): Likewise.
5158 (is_breakpoint): Likewise.
5159 (is_hardware_watchpoint): Likewise.
5160 (is_watchpoint): Likewise.
5161 (is_no_memory_software_watchpoint): Likewise.
5162 (is_catchpoint): Likewise.
5163 (breakpoint_1): Make FILTER parameter's return type bool.
5164 is_masked_watchpoint): Change return type to bool.
5165 (save_breakpoints): Make FILTER parameter's return type bool.
5166 * breakpoint.h (is_breakpoint): Change return type to bool.
5167 (is_watchpoint): Likewise.
5168 (is_catchpoint): Likewise.
5169 (is_tracepoint): Likewise.
5170
5171 2019-07-10 Tom Tromey <tom@tromey.com>
5172
5173 * defs.h: Don't include gdbarch.h.
5174 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5175 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5176 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5177 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5178 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5179 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5180 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5181 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5182 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5183 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5184 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5185 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5186 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5187 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5188 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5189 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5190 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5191 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5192 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5193 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5194 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5195 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5196 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5197 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5198 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5199 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5200 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5201
5202 2019-07-10 Tom Tromey <tromey@adacore.com>
5203
5204 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5205 * breakpoint.c (init_ada_exception_breakpoint): Register as
5206 bp_catchpoint.
5207 (print_one_breakpoint_location, print_one_breakpoint): Use
5208 is_ada_exception_catchpoint.
5209 * ada-lang.c (class ada_catchpoint_location): Pass
5210 bp_loc_software_breakpoint to bp_location constructor.
5211 (is_ada_exception_catchpoint): New function.
5212
5213 2019-07-10 Tom Tromey <tromey@adacore.com>
5214
5215 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5216 VEC.
5217 (struct arm_exidx_entry): New method operator<.
5218 (struct arm_exidx_data) <section_maps>: Change type.
5219 (arm_exidx_data_free): Remove.
5220 (arm_exidx_data_key): Change type. Move lower.
5221 (arm_exidx_new_objfile): Update.
5222 (arm_compare_exidx_entries): Remove.
5223 (arm_find_exidx_entry, _initialize_arm_tdep)
5224
5225 2019-07-10 Tom Tromey <tromey@adacore.com>
5226
5227 * solib-spu.c (ocl_program_data_key): Change type.
5228 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5229 Update.
5230
5231 2019-07-10 Tom Tromey <tromey@adacore.com>
5232
5233 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5234 (struct solib_aix_inferior_data) <library_list>: Change type.
5235 (solib_aix_inferior_data_handle): Change type.
5236 (get_solib_aix_inferior_data): Update.
5237 (solib_aix_free_library_list): Remove.
5238 (library_list_start_library): Update.
5239 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5240 return type.
5241 (solib_aix_get_library_list)
5242 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5243 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5244
5245 2019-07-10 Tom Tromey <tromey@adacore.com>
5246
5247 * solib-dsbt.c (struct dsbt_info): Add initializers.
5248 (solib_dsbt_pspace_data): Change type.
5249 (dsbt_pspace_data_cleanup): Remove.
5250 (get_dsbt_info, _initialize_dsbt_solib): Update.
5251
5252 2019-07-10 Tom Tromey <tromey@adacore.com>
5253
5254 * spu-tdep.c (spu_overlay_data): Change type.
5255 (spu_get_overlay_table, spu_overlay_new_objfile)
5256 (_initialize_spu_tdep): Update.
5257
5258 2019-07-10 Tom Tromey <tromey@adacore.com>
5259
5260 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5261 destructor.
5262 (dbx_objfile_data_key): Change type and declare later.
5263 (DBX_SYMFILE_INFO): Rewrite.
5264 * dbxread.c (dbx_objfile_data_key): Change type.
5265 (dbx_symfile_init): Update.
5266 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5267 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5268 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5269
5270 2019-07-10 Tom Tromey <tromey@adacore.com>
5271
5272 * jit.c (jit_program_space_key): Change type. Move lower.
5273 (get_jit_program_space_data): Update.
5274 (jit_program_space_data_cleanup): Remove.
5275 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5276 Update.
5277 (struct jit_program_space_data): Add initializers.
5278
5279 2019-07-10 Tom Tromey <tromey@adacore.com>
5280
5281 * solib-darwin.c (struct darwin_info): Add initializers.
5282 (solib_darwin_pspace_data): Change type.
5283 (darwin_pspace_data_cleanup): Remove.
5284 (get_darwin_info, _initialize_darwin_solib): Update.
5285
5286 2019-07-10 Tom Tromey <tromey@adacore.com>
5287
5288 * remote-sim.c (struct sim_inferior_data): Add initializers,
5289 constructor, and destructor.
5290 (sim_inferior_data_key): Change type. Move lower.
5291 (check_for_duplicate_sim_descriptor): Update.
5292 (get_sim_inferior_data): Use new. Update.
5293 (~sim_inferior_data_cleanup): Rename from
5294 sim_inferior_data_cleanup. Simplify.
5295 (gdbsim_close_inferior, simulator_command)
5296 (sim_command_completer, _initialize_remote_sim): Update.
5297 (next_pid, INITIAL_PID): Move earlier.
5298
5299 2019-07-10 Tom Tromey <tromey@adacore.com>
5300
5301 * python/python-internal.h (create_thread_object): Return
5302 gdbpy_ref.
5303 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5304 * python/py-inferior.c (struct threadlist_entry): Add
5305 constructor.
5306 <thread_obj>: Now a gdbpy_ref.
5307 (thread_to_thread_object): Update.
5308 (add_thread_object): Use new.
5309 (delete_thread_object): Use delete.
5310 (infpy_threads): Update.
5311 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5312 GIL.
5313
5314 2019-07-10 Tom Tromey <tromey@adacore.com>
5315
5316 * valops.c (value_cast): Specialize error message for Ada.
5317
5318 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5319
5320 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5321
5322 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5323
5324 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5325 bpstat_should_step): Return bool, adjust comments.
5326 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5327 bpstat_should_step): Likewise.
5328
5329 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5330
5331 * features/Makefile: Use feature target descriptions for Arm.
5332 * features/arm/arm-core.c: Generate new file.
5333 * features/arm/arm-fpa.c: Likewise.
5334 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5335 * features/arm/arm-m-profile.c: Likewise.
5336 * features/arm/arm-vfpv2.c: Likewise.
5337 * features/arm/arm-vfpv3.c: Likewise.
5338 * features/arm/xscale-iwmmxt.c: Likewise.
5339 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5340
5341 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5342
5343 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5344 ptrace earlier.
5345
5346 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5347
5348 * features/aarch64-pauth.c: Regenerate.
5349
5350 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5353 bool.
5354 (bpstat_what): Use false instead of 0.
5355
5356 2019-07-09 Pedro Alves <palves@redhat.com>
5357
5358 * break-catch-throw.c (is_exception_catchpoint): New.
5359 * breakpoint.c (print_one_breakpoint_location): New parameter
5360 'raw_loc'. Handle it. Use
5361 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5362 looking at the breakpoint's type.
5363 (print_one_breakpoint): If handling "maint info breakpoints", also
5364 print locations of exception catchpoints.
5365 * breakpoint.h (is_exception_catchpoint): Declare.
5366
5367 2019-07-09 Pedro Alves <palves@redhat.com>
5368
5369 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5370 "addr" field.
5371 (allocate_location_exception_catchpoint): New.
5372 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5373 (initialize_throw_catchpoint_ops): Install
5374 allocate_location_exception_catchpoint as allocate_location
5375 method.
5376 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5377 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5378 bp_loc_other.
5379 (breakpoint_address_is_meaningful): Delete.
5380 (bl_address_is_meaningful): New.
5381 (breakpoint_locations_match): Adjust comment.
5382 (bp_location_from_bp_type): New, factored out of...
5383 (bp_location::bp_location(breakpoint *)): ... this.
5384 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5385 factored out of...
5386 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5387 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5388 breakpoint_address_is_meaningful.
5389 (bp_locations_compare): Adjust comment.
5390 (update_global_location_list): Use bl_address_is_meaningful
5391 instead of breakpoint_address_is_meaningful.
5392 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5393 explicit.
5394 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5395 * python/py-breakpoint.c (bppy_get_location): No longer check
5396 whether location is null.
5397
5398 2019-07-09 Pedro Alves <palves@redhat.com>
5399
5400 PR c++/15468
5401 * breakpoint.c (print_one_breakpoint_location): Remove
5402 single-location assert.
5403
5404 2019-07-09 Tom Tromey <tom@tromey.com>
5405
5406 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5407 * configure: Rebuild.
5408 * configure.ac: Change common to gdbsupport.
5409 * gdbsupport: Rename from common.
5410 * acinclude.m4: Change common to gdbsupport.
5411 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5412 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5413 gdbsupport.
5414 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5415 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5416 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5417 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5418 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5419 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5420 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5421 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5422 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5423 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5424 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5425 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5426 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5427 coff-pe-read.c, command.h, compile/compile-c-support.c,
5428 compile/compile-c.h, compile/compile-cplus-symbols.c,
5429 compile/compile-cplus-types.c, compile/compile-cplus.h,
5430 compile/compile-loc2c.c, compile/compile.c, completer.c,
5431 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5432 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5433 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5434 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5435 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5436 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5437 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5438 features/aarch64-core.c, features/aarch64-fpu.c,
5439 features/aarch64-pauth.c, features/aarch64-sve.c,
5440 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5441 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5442 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5443 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5444 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5445 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5446 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5447 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5448 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5449 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5450 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5451 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5452 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5453 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5454 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5455 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5456 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5457 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5458 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5459 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5460 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5461 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5462 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5463 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5464 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5465 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5466 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5467 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5468 minsyms.c, mips-linux-tdep.c, namespace.h,
5469 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5470 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5471 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5472 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5473 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5474 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5475 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5476 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5477 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5478 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5479 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5480 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5481 procfs.c, producer.c, progspace.h, psymtab.h,
5482 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5483 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5484 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5485 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5486 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5487 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5488 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5489 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5490 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5491 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5492 target-memory.c, target.c, target.h, target/waitstatus.c,
5493 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5494 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5495 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5496 unittests/array-view-selftests.c,
5497 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5498 unittests/common-utils-selftests.c,
5499 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5500 unittests/format_pieces-selftests.c,
5501 unittests/function-view-selftests.c,
5502 unittests/lookup_name_info-selftests.c,
5503 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5504 unittests/mkdir-recursive-selftests.c,
5505 unittests/observable-selftests.c,
5506 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5507 unittests/parse-connection-spec-selftests.c,
5508 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5509 unittests/scoped_fd-selftests.c,
5510 unittests/scoped_mmap-selftests.c,
5511 unittests/scoped_restore-selftests.c,
5512 unittests/string_view-selftests.c, unittests/style-selftests.c,
5513 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5514 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5515 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5516 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5517 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5518 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5519
5520 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5523 bool value.
5524 (decode_digits_ordinary): Set explicit_line field in sal.
5525 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5526 symtab_and_line that was set on an explicit line number in
5527 assembler code. Do always update the recorded symtab and line if
5528 we do skip the prologue.
5529
5530 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * breakpoint.c (set_breakpoint_location_function): Remove
5533 explicit_loc parameter.
5534 (momentary_breakpoint_from_master): Update call to
5535 set_breakpoint_location_function.
5536 (add_location_to_breakpoint): Likewise.
5537
5538 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5541 required features based on default bfd type when no specific bfd
5542 is present.
5543
5544 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5545
5546 * NEWS: Mention that GDB printf and eval commands can now print
5547 C-style and Ada-style convenience var strings without
5548 calling the inferior.
5549 * printcmd.c (printf_c_string): Locally print GDB internal var
5550 instead of transiting via the inferior.
5551 (printf_wide_c_string): Likewise.
5552
5553 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5554
5555 PR breakpoints/25011
5556 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5557
5558 2019-07-04 Tom Tromey <tom@tromey.com>
5559
5560 PR tui/24724:
5561 * tui/tui-winsource.c (tui_clear_source_content): Update.
5562 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5563 (tui_update_breakpoint_info): Update.
5564 (tui_set_exec_info_content): Update.
5565 * tui/tui-source.c (tui_set_source_content_nil): Update.
5566 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5567 has_break.
5568 * tui/tui-data.h (enum tui_bp_flag): New.
5569 (tui_bp_flags): New enum flags type.
5570 (struct tui_source_element) <break_mode>: Change type. Rename
5571 from has_break.
5572 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5573 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5574 constants.
5575 * tui/tui-winsource.h: Fix comment.
5576
5577 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5578
5579 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5580 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5581 (store_fpregs_to_thread)
5582 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5583 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5584 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5585 (IWMMXT_REGS_SIZE): Add define.
5586 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5587 (fetch_vfp_regs, store_vfp_regs)
5588 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5589 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5590
5591 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5592
5593 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5594 defines.
5595 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5596 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5597 (ARM_INT_REGISTER_SIZE): ...to this.
5598 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5599 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5600 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5601 (arm_linux_collect_gregset, supply_nwfpe_register)
5602 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5603 defines.
5604 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5605 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5606 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5607 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5608 (arm_return_in_memory, arm_store_return_value)
5609 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5610 (arm_record_ld_st_multiple): Likewise.
5611 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5612 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5613
5614 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5615
5616 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5617 AARCH64_DISPLACED_MODIFIED_INSNS.
5618 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5619 (aarch64_displaced_step_copy_insn): Likewise.
5620 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5621 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5622 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5623 ARM_DISPLACED_MODIFIED_INSNS.
5624 * arm-tdep.c (arm_gdbarch_init): Likewise.
5625 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5626 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5627 (struct arm_displaced_step_closure): Use
5628 ARM_DISPLACED_MODIFIED_INSNS.
5629
5630 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5631
5632 * features/Makefile: Remove unused xml files.
5633 * features/aarch64.xml: Remove.
5634 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5635 * features/i386/amd64-avx-avx512.xml: Remove.
5636 * features/i386/amd64-avx-linux.xml: Remove.
5637 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5638 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5639 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5640 * features/i386/amd64-avx-mpx.xml: Remove.
5641 * features/i386/amd64-avx.xml: Remove.
5642 * features/i386/amd64-linux.xml: Remove.
5643 * features/i386/amd64-mpx-linux.xml: Remove.
5644 * features/i386/amd64-mpx.xml: Remove.
5645 * features/i386/amd64.xml: Remove.
5646 * features/i386/i386-avx-avx512-linux.xml: Remove.
5647 * features/i386/i386-avx-avx512.xml: Remove.
5648 * features/i386/i386-avx-linux.xml: Remove.
5649 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5650 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5651 * features/i386/i386-avx-mpx-linux.xml: Remove.
5652 * features/i386/i386-avx-mpx.xml: Remove.
5653 * features/i386/i386-avx.xml: Remove.
5654 * features/i386/i386-linux.xml: Remove.
5655 * features/i386/i386-mmx-linux.xml: Remove.
5656 * features/i386/i386-mmx.xml: Remove.
5657 * features/i386/i386-mpx-linux.xml: Remove.
5658 * features/i386/i386-mpx.xml: Remove.
5659 * features/i386/i386.xml: Remove.
5660 * features/i386/x32-avx-avx512-linux.xml: Remove.
5661 * features/i386/x32-avx-linux.xml: Remove.
5662 * features/i386/x32-linux.xml: Remove.
5663
5664 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5665
5666 * regformats/aarch64.dat: Remove.
5667 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5668 * regformats/i386/amd64-avx-linux.dat: Remove.
5669 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5670 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5671 * regformats/i386/amd64-linux.dat: Remove.
5672 * regformats/i386/amd64-mpx-linux.dat: Remove.
5673 * regformats/i386/amd64.dat: Remove.
5674 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5675 * regformats/i386/i386-avx-linux.dat: Remove.
5676 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5677 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5678 * regformats/i386/i386-linux.dat: Remove.
5679 * regformats/i386/i386-mmx-linux.dat: Remove.
5680 * regformats/i386/i386-mpx-linux.dat: Remove.
5681 * regformats/i386/i386.dat: Remove.
5682 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5683 * regformats/i386/x32-avx-linux.dat: Remove.
5684 * regformats/i386/x32-linux.dat: Remove.
5685
5686 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5687
5688 * aarch64-tdep.c: Remove xml self tests.
5689 * amd64-linux-tdep.c: Likewise.
5690 * amd64-tdep.c: Likewise.
5691 * i386-linux-tdep.c: Likewise.
5692 * i386-tdep.c: Likewise.
5693
5694 2019-07-03 Pedro Alves <palves@redhat.com>
5695
5696 PR cli/24732
5697 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5698 (pipe_cmd_option_defs): New.
5699 (make_pipe_cmd_options_def_group): New.
5700 (pipe_command): Use gdb::option::process_options.
5701 (pipe_command_completer): New function.
5702 (_initialize_cli_cmds): Install completer for "pipe" command.
5703
5704 2019-07-03 Pedro Alves <palves@redhat.com>
5705
5706 * cli/cli-option.c (union option_value) <string>: New field.
5707 (struct option_def_and_value): Add ctor, move ctor, dtor and
5708 use DISABLE_COPY_AND_ASSIGN.
5709 (option_def_and_value::clear_value): New.
5710 (parse_option, save_option_value_in_ctx, get_val_type_str)
5711 (add_setshow_cmds_for_options): Handle var_string.
5712 * cli-option.h (union option_def::var_address) <string>: New
5713 field.
5714 (struct string_option_def): New.
5715 * maint-test-options.c (struct test_options_opts): Add default
5716 ctor and use DISABLE_COPY_AND_ASSIGN.
5717 <string_opt>: New field.
5718 (test_options_opts::~test_options_opts): New.
5719 (test_options_opts::dump): Also dump "-string".
5720 (test_options_option_defs): Install "string.
5721
5722 2019-07-03 Pedro Alves <palves@redhat.com>
5723
5724 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5725 option_value with a null enumeration.
5726 (complete_options): Save the option values in the context.
5727 (save_option_value_in_ctx): New, factored out from ...
5728 (process_options): ... here.
5729 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5730 of the function.
5731 * maint-test-options.c (test_options_opts::dump): New, factored
5732 out from ...
5733 (maintenance_test_options_command_mode): ... here.
5734 (maintenance_test_options_command_completion_result): Delete.
5735 (maintenance_test_options_command_completion_text): Update
5736 comment.
5737 (maintenance_show_test_options_completion_result): Change
5738 prototype. Just print
5739 maintenance_test_options_command_completion_text.
5740 (save_completion_result): New.
5741 (maintenance_test_options_completer_mode): Pass options context to
5742 complete_options, and then save a dump.
5743 (_initialize_maint_test_options): Use add_cmd to install "maint
5744 show test-options-completion-result".
5745
5746 2019-07-03 Pedro Alves <palves@redhat.com>
5747
5748 * NEWS (New commands): Mention "with" and "maint with".
5749 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5750 (with_command, with_command_completer): New.
5751 (pipe_command): Adjust to new repeat_previous
5752 interface.
5753 (_initialize_cli_cmds): Install the "with" command and its "w"
5754 alias.
5755 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5756 declarations.
5757 * cli/cli-setshow.c (parse_cli_var_uinteger)
5758 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5759 argument strings for all var_types.
5760 (get_setshow_command_value_string): New, factored out from ...
5761 (do_show_command): ... this.
5762 * cli/cli-setshow.h: Include <string>.
5763 (get_setshow_command_value_string): Declare.
5764 * command.h (repeat_previous): Now returns const char *. Adjust
5765 comment.
5766 * maint.c: Include "cli/cli-cmds.h".
5767 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5768 (_initialize_maint_cmds): Register the "maintenance with" command.
5769 * top.c (repeat_previous): Move bits from pipe_command here:
5770 Return the saved command line, if any; error out if there's no
5771 command to relaunch.
5772
5773 2019-07-03 Pedro Alves <palves@redhat.com>
5774
5775 * NEWS (New commands): Mention "maint set/show test-settings"
5776 instead of "maint test-settings".
5777 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5778 (maintenance_test_settings_set_list): Rename to ...
5779 (maintenance_set_test_settings_list): ... this.
5780 (maintenance_test_settings_show_list): Rename to ...
5781 (maintenance_show_test_settings_list): ... this.
5782 (maintenance_test_settings_cmd): Delete.
5783 (maintenance_test_settings_set_cmd): ...
5784 (maintenance_set_test_settings_cmd): ... this.
5785 (maintenance_test_settings_show_cmd): ...
5786 (maintenance_show_test_settings_cmd): ... this.
5787 (maintenance_test_settings_show_value_cmd):
5788 (maintenance_show_test_settings_value_cmd): ... this.
5789 (_initialize_maint_test_settings): No longer install the "maint
5790 test-settings" prefix command. Rename "maint test-settings set"
5791 to "maint set test-settings", and "maint test-settings show" to
5792 "maint show test-settings". Adjust all subcommands.
5793
5794 2019-07-03 Pedro Alves <palves@redhat.com>
5795
5796 * maint-test-settings.c: Fix file's intro comment. Replace all
5797 references to "test-options" with references to "test-settings",
5798 in comments.
5799
5800 2019-07-03 Pedro Alves <palves@redhat.com>
5801
5802 * maint-test-settings.c (maintenance_test_settings_xxx)
5803 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5804 New.
5805 (maintenance_test_settings_enums): Use them.
5806 (maintenance_test_settings_enum): Default to
5807 maintenance_test_settings_xxx.
5808 (_initialize_maint_test_settings): Initialize
5809 MAINTENANCE_TEST_SETTINGS_FILENAME.
5810
5811 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * breakpoint.h (remove_breakpoints_inf): Change return type to
5814 void, move function documentation here.
5815 * breakpoint.c (remove_breakpoints_inf): Change return type to
5816 void, move function documentation to header.
5817
5818 2019-07-02 Pedro Alves <palves@redhat.com>
5819
5820 * NEWS (Completion improvements): Mention "info threads".
5821 * thread.c (struct info_threads_opts, info_threads_option_defs)
5822 (make_info_threads_options_def_group): New.
5823 (info_threads_command): Use gdb::option::process_options.
5824 (info_threads_command_completer): New.
5825 (_initialize_thread): Use gdb::option::build_help to build the
5826 help text for "info threads".
5827
5828 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * defs.h (generic_load): Move from here...
5831 * symfile.h (generic_load): ... to here. Rename name parameter
5832 to args.
5833 * symfile.c (generic_load): Add comment.
5834
5835 2019-07-01 Tom Tromey <tromey@adacore.com>
5836
5837 * dwarf2read.c
5838 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5839 declaration of without_params. Fix formatting.
5840
5841 2019-07-01 Tom Tromey <tromey@adacore.com>
5842
5843 * ada-exp.y (find_primitive_type): Update.
5844 * ada-lang.h (ada_lookup_symbol): Update.
5845 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5846 parameter.
5847 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5848
5849 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5850
5851 PR breakpoints/24541
5852 * gdbarch.c: Regenerate.
5853 * gdbarch.h: Regenerate.
5854 * gdbarch.sh: Add 'stap_adjust_register'.
5855 * i386-tdep.c: Include '<unordered_set>'.
5856 (i386_stap_adjust_register): New function.
5857 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5858 * stap-probe.c (stap_parse_register_operand): Call
5859 'gdbarch_stap_adjust_register'.
5860
5861 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5862
5863 PR python/24742
5864 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5865 * python/python.c (do_start_initialization): Use 'xmalloc'
5866 instead of 'PyMem_Malloc'.
5867
5868 2019-06-28 Tom Tromey <tromey@adacore.com>
5869
5870 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5871 for Ada.
5872
5873 2019-06-27 Tom Tromey <tromey@adacore.com>
5874
5875 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5876 objfile_key.
5877 (arm_find_mapping_symbol, arm_record_special_symbol)
5878 (_initialize_arm_tdep): Update.
5879 (arm_objfile_data_free): Remove.
5880
5881 2019-06-27 Tom Tromey <tromey@adacore.com>
5882
5883 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5884 to cp_print_static_field.
5885
5886 2019-06-26 Tom Tromey <tromey@adacore.com>
5887
5888 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5889 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5890 declare.
5891
5892 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5893
5894 * features/aarch64-core.c (create_feature_aarch64_core):
5895 Regenerate.
5896 * features/aarch64-core.xml: Add cpsr flags.
5897
5898 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5899
5900 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5901 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5902
5903 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5906 field.
5907 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5908 use.
5909 (arm_record_special_symbol): Don't insert new symbol in sorted
5910 position, push it at the end.
5911
5912 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5915 (arm_mapping_symbol_s): Remove.
5916 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5917 (arm_mapping_symbol_vec): New typedef.
5918 (struct arm_per_objfile): Add constructor.
5919 <section_maps>: Change type to
5920 std::unique_ptr<arm_mapping_symbol_vec[]>.
5921 (arm_compare_mapping_symbols): Remove.
5922 (arm_find_mapping_symbol): Adjust to section_maps type change.
5923 (arm_objfile_data_free): Call delete on arm_per_objfile.
5924 (arm_record_special_symbol): Adjust to section_maps type change.
5925 Allocate arm_per_objfile with new.
5926
5927 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5928
5929 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5930 with the command prefix.
5931
5932 2019-06-25 Tom Tromey <tom@tromey.com>
5933
5934 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5935 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5936
5937 2019-06-25 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5940 type.
5941 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5942 protected.
5943
5944 2019-06-25 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-winsource.c
5947 (tui_source_window_base::set_is_exec_point_at): Add check against
5948 LOA_ADDRESS.
5949
5950 2019-06-25 Tom Tromey <tom@tromey.com>
5951
5952 * tui/tui-source.c (tui_set_source_content): Don't check before
5953 xfree.
5954 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5955
5956 2019-06-25 Tom Tromey <tom@tromey.com>
5957
5958 * tui/tui-winsource.h (tui_update_source_window_as_is)
5959 (tui_alloc_source_buffer, tui_line_is_displayed)
5960 (tui_addr_is_displayed): Change type of win_info.
5961 * tui/tui-winsource.c (tui_update_source_window_as_is)
5962 (tui_clear_source_content, tui_show_source_line)
5963 (tui_show_source_content, tui_source_window_base::refill)
5964 (tui_source_window_base::set_is_exec_point_at)
5965 (tui_source_window_base::set_is_exec_point_at)
5966 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5967 (tui_alloc_source_buffer, tui_line_is_displayed)
5968 (tui_addr_is_displayed): Change type of win_info. Update.
5969 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5970 (tui_source_window_base::do_make_visible_with_new_height):
5971 Update.
5972 * tui/tui-source.c (tui_set_source_content)
5973 (tui_set_source_content_nil)
5974 (tui_source_window::do_scroll_vertical): Update.
5975 * tui/tui-layout.c (show_layout): Update.
5976 * tui/tui-disasm.c (tui_set_disassem_content)
5977 (tui_disasm_window::do_scroll_vertical): Update.
5978 * tui/tui-data.h (tui_win_content): Remove.
5979 (struct tui_gen_win_info) <content, content_size>: Remove.
5980 (struct tui_source_element): Add initializers and destructor.
5981 (union tui_which_element, struct tui_win_element): Remove.
5982 (struct tui_source_window_base) <content>: New field.
5983 (struct tui_data_window): Remove destructor.
5984 (tui_alloc_content, tui_free_win_content)
5985 (tui_free_all_source_wins_content): Don't declare.
5986 * tui/tui-data.c (tui_initialize_static_data): Update.
5987 (init_content_element, tui_alloc_content): Remove.
5988 (~tui_gen_win_info): Update.
5989 (~tui_data_window, tui_free_all_source_wins_content)
5990 (tui_free_win_content, free_content, free_content_elements):
5991 Remove.
5992
5993 2019-06-25 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-winsource.h (tui_clear_source_content)
5996 (tui_erase_source_content, tui_show_source_content): Change type
5997 of win_info.
5998 * tui/tui-winsource.c (tui_clear_source_content)
5999 (tui_erase_source_content, tui_show_source_content): Change type
6000 of win_info.
6001 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6002 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6003 win_info.
6004 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6005 win_info.
6006 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6007
6008 2019-06-25 Tom Tromey <tom@tromey.com>
6009
6010 * tui/tui-winsource.c (tui_clear_source_content)
6011 (tui_source_window_base::set_is_exec_point_at): Update.
6012 * tui/tui-source.c (tui_set_source_content_nil): Update.
6013 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6014 a bool.
6015 * tui/tui-data.c (init_content_element): Update.
6016
6017 2019-06-25 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6020 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6021 * tui/tui-layout.c (init_and_make_win): Update.
6022 * tui/tui.h (enum tui_win_type): Update.
6023 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6024 tui_win_is_auxillary.
6025 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6026 tui_win_is_auxillary.
6027
6028 2019-06-25 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6031 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6032 (tui_delete_data_content_windows, tui_display_all_data)
6033 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6034 Update.
6035 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6036 * tui/tui-regs.c (tui_last_regs_line_no)
6037 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6038 (tui_show_registers): Update.
6039 (tui_show_register_group): Return void. Update.
6040 (tui_display_registers_from, tui_display_reg_element_at_line)
6041 (tui_display_registers_from_line, tui_check_register_values):
6042 Update.
6043 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6044 member.
6045 (struct tui_data_window) <regs_content>: Now a std::vector.
6046 <regs_content_count>: Remove.
6047 (tui_add_content_elements, tui_free_data_content): Don't declare.
6048 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6049 (init_content_element): Remove DATA_WIN case. Add assert.
6050 (tui_add_content_elements): Remove.
6051 (tui_data_window): Update.
6052 (tui_free_data_content): Remove.
6053 (free_content_elements): Remove DATA_WIN case.
6054
6055 2019-06-25 Tom Tromey <tom@tromey.com>
6056
6057 * tui/tui-data.c (tui_data_item_window): Update.
6058 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6059 * tui/tui-windata.c (tui_display_all_data)
6060 (tui_display_data_from_line): Update.
6061 (tui_check_data_values): Remove.
6062 * tui/tui-regs.c (tui_show_register_group)
6063 (tui_display_reg_element_at_line): Update.
6064 * tui/tui-hooks.c (tui_register_changed)
6065 (tui_refresh_frame_and_register_information): Call
6066 tui_check_register_values.
6067 * tui/tui-data.h (struct tui_data_window) <data_content,
6068 data_content_count, data_type>: Remove.
6069 (enum tui_data_type): Remove.
6070
6071 * tui/tui-data.c (tui_data_window::clear_detail)
6072 (~tui_data_window): Update.
6073
6074 2019-06-25 Tom Tromey <tom@tromey.com>
6075
6076 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6077 declare.
6078 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6079 Rename from tui_first_data_item_displayed. Update.
6080 (tui_data_window::refresh_all)
6081 (tui_data_window::do_scroll_vertical): Update.
6082 * tui/tui-data.h (struct tui_data_window)
6083 <first_data_item_displayed>: Declare new method.
6084
6085 2019-06-25 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6088 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6089 contents...
6090 (tui_initialize_static_data): ...here.
6091
6092 2019-06-25 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6095 (tui_display_registers_from, tui_check_register_values): Update.
6096 (tui_display_register): Remove win_info parameter; update.
6097 (tui_get_register): Change type of parameters.
6098 * tui/tui-data.h (struct tui_data_element): Remove.
6099 (union tui_which_element) <data>: Remove.
6100 <data_window>: Change type.
6101 (struct tui_data_item_window): New.
6102 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6103 case. Add assert.
6104 (~tui_data_item_window): New destructor.
6105 (free_content_elements): Remove DATA_ITEM_WIN case.
6106
6107 2019-06-25 Tom Tromey <tom@tromey.com>
6108
6109 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6110 Remove.
6111
6112 2019-06-25 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui-data.h (struct tui_command_element): Remove.
6115 (union tui_which_element) <command>: Remove.
6116 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6117 assert.
6118 (free_content_elements): Remove CMD_WIN case.
6119
6120 2019-06-25 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui-layout.c (tui_set_layout): Update.
6123 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6124 * tui/tui-data.c (layout_def): Update.
6125
6126 2019-06-25 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6129 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6130 (tui_source_window_base::set_new_height): Update.
6131 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6132 Update.
6133 (tui_set_locator_fullname, tui_set_locator_info)
6134 (tui_show_frame_info): Update.
6135 * tui/tui-source.c (tui_set_source_content)
6136 (tui_source_is_displayed): Update.
6137 * tui/tui-layout.c (show_source_disasm_command, show_data)
6138 (show_source_or_disasm_and_command): Update.
6139 * tui/tui-disasm.c (tui_set_disassem_content)
6140 (tui_get_begin_asm_address): Update.
6141 * tui/tui-data.h (struct tui_locator_element): Remove.
6142 (union tui_which_element) <locator>: Remove.
6143 (struct tui_locator_window): New.
6144 (tui_locator_win_info_ptr): Change return type.
6145 * tui/tui-data.c (_locator): Change type.
6146 (tui_locator_win_info_ptr): Change return type.
6147 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6148 (tui_alloc_content): Add assert.
6149
6150 2019-06-25 Tom Tromey <tom@tromey.com>
6151
6152 * tui/tui-winsource.c
6153 (tui_exec_info_window::maybe_allocate_content): New method.
6154 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6155 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6156 (make_source_or_disasm_window): Add cast.
6157 * tui/tui-data.h (union tui_which_element) <simple_string>:
6158 Remove.
6159 (struct tui_source_info): New.
6160 (struct tui_source_window_base) <execution_info>: Change type.
6161 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6162 case, and add assert.
6163 (tui_alloc_content): Add assert.
6164
6165 2019-06-25 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6168 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6169 * tui/tui-data.c (tui_alloc_win_info): Remove.
6170
6171 2019-06-25 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6174 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6175 can_highlight.
6176
6177 2019-06-25 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6180 make_visible_with_new_height method.
6181 (tui_win_info::make_visible_with_new_height): New method.
6182 (tui_source_window_base::do_make_visible_with_new_height)
6183 (tui_data_window::do_make_visible_with_new_height)
6184 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6185 (make_visible_with_new_height): Remove.
6186 (tui_resize_all, tui_adjust_win_heights): Use
6187 make_visible_with_new_height method.
6188 * tui/tui-data.h (struct tui_win_info)
6189 <do_make_visible_with_new_height, make_visible_with_new_height>:
6190 New methods.
6191 (struct tui_source_window_base, struct tui_data_window)
6192 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6193 methods.
6194
6195 2019-06-25 Tom Tromey <tom@tromey.com>
6196
6197 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6198 method.
6199 (update_tab_width): Call update_tab_width method.
6200 * tui/tui-data.h (struct tui_win_info)
6201 (struct tui_source_window_base) <update_tab_width>: New methods.
6202
6203 2019-06-25 Tom Tromey <tom@tromey.com>
6204
6205 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6206 parameter.
6207 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6208 parameter.
6209 (tui_gen_win_info::make_visible): Update.
6210 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6211 parameter.
6212 * tui/tui-data.h (enum tui_box): New enum.
6213 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6214
6215 2019-06-25 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6218 init_and_make_win for EXEC_INFO_WIN.
6219 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6220 longer inline.
6221 (struct tui_win_info) <~tui_win_info>: Inline.
6222 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6223 Don't declare.
6224 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6225 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6226 Remove.
6227 (tui_initialize_static_data): Update.
6228 (~tui_gen_win_info): Handle more cleanup here.
6229 (~tui_source_window_base): Delete "execution_info".
6230 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6231
6232 2019-06-25 Tom Tromey <tom@tromey.com>
6233
6234 * tui/tui-layout.c (make_command_window): Don't set
6235 can_highlight.
6236 (show_source_disasm_command): Call the reset method.
6237 (show_data): Don't set can_highlight. Call the reset method.
6238 (tui_gen_win_info::reset): Rename from init_gen_win_info
6239 (init_and_make_win): Simplify. Return tui_gen_win_info.
6240 (show_source_or_disasm_and_command): Call the reset method.
6241 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6242 (struct tui_cmd_window): Set can_highlight.
6243
6244 2019-06-25 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6247 from make_visible.
6248 (tui_make_visible, tui_make_invisible): Rewrite.
6249 (tui_win_info::make_visible): Remove.
6250 (tui_source_window_base::make_visible): Update.
6251 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6252 method. Moved from...
6253 (struct tui_win_info) <make_visible>: ...here.
6254
6255 2019-06-25 Tom Tromey <tom@tromey.com>
6256
6257 * tui/tui-winsource.c
6258 (tui_source_window_base::do_scroll_horizontal): Remove direction
6259 parameter.
6260 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6261 direction parameter.
6262 * tui/tui-win.c (tui_win_info::forward_scroll)
6263 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6264 (tui_win_info::right_scroll): Update.
6265 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6266 direction parameter.
6267 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6268 direction parameter.
6269 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6270 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6271 Remove direction parameter.
6272 (struct tui_source_window_base, struct tui_source_window)
6273 (struct tui_disasm_window, struct tui_data_window)
6274 (struct tui_cmd_window): Update.
6275
6276 2019-06-25 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-winsource.h (tui_set_exec_info_content)
6279 (tui_show_exec_info_content, tui_erase_exec_info_content)
6280 (tui_clear_exec_info_content, tui_update_exec_info): Change
6281 argument to tui_source_window_base.
6282 * tui/tui-winsource.c (tui_set_exec_info_content)
6283 (tui_show_exec_info_content, tui_erase_exec_info_content)
6284 (tui_clear_exec_info_content, tui_update_exec_info): Change
6285 argument to tui_source_window_base.
6286
6287 2019-06-25 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6290 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6291
6292 2019-06-25 Tom Tromey <tom@tromey.com>
6293
6294 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6295 check.
6296
6297 2019-06-25 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6300 type to void.
6301 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6302 type to void.
6303 * tui/tui-source.c (tui_set_source_content): Update.
6304 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6305
6306 2019-06-25 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-win.c (window_name_completer, tui_set_focus)
6309 (tui_all_windows_info): Use name method.
6310 * tui/tui-data.h (struct tui_gen_win_info)
6311 (struct tui_source_window, struct tui_disasm_window)
6312 (struct tui_data_window, struct tui_cmd_window) <name>: New
6313 method.
6314 (tui_win_name): Don't declare.
6315 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6316 (tui_win_name): Remove.
6317
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-winsource.h (tui_update_source_window)
6321 (tui_update_source_window_as_is): Change parameter type.
6322 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6323 to be a tui_source_window_base.
6324 (tui_update_source_window_as_is): Likewise.
6325 * tui/tui-win.c (make_visible_with_new_height): Update.
6326
6327 2019-06-25 Tom Tromey <tom@tromey.com>
6328
6329 * tui/tui-winsource.c (tui_erase_source_content)
6330 (tui_show_source_content, tui_show_exec_info_content)
6331 (tui_erase_exec_info_content): Use refresh_window method.
6332 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6333 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6334 from tui_refresh_win.
6335 (tui_data_window::refresh_window): New method.
6336 (tui_win_info::refresh, tui_source_window_base::refresh)
6337 (tui_refresh_all): Use refresh_window method.
6338 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6339 method.
6340 * tui/tui-regs.c (tui_display_register): Call refresh_window
6341 method.
6342 * tui/tui-layout.c (show_source_disasm_command)
6343 (show_source_or_disasm_and_command): Call refresh_window method.
6344 * tui/tui-data.h (struct tui_gen_win_info)
6345 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6346 New method.
6347
6348 2019-06-25 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui.c (tui_rl_other_window, tui_enable)
6351 (tui_is_window_visible, tui_get_command_dimension): Update.
6352 * tui/tui-winsource.c (tui_update_source_window_as_is)
6353 (tui_clear_source_content, tui_erase_source_content)
6354 (tui_show_source_line, tui_source_window_base::refill)
6355 (tui_source_window_base::do_scroll_horizontal)
6356 (tui_source_window_base::set_is_exec_point_at)
6357 (tui_update_breakpoint_info, tui_set_exec_info_content)
6358 (tui_alloc_source_buffer, tui_line_is_displayed)
6359 (tui_addr_is_displayed): Update.
6360 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6361 (tui_check_and_display_highlight_if_needed)
6362 (tui_win_info::make_visible, tui_win_info::refresh)
6363 (tui_refresh_all): Update.
6364 * tui/tui-windata.c (tui_first_data_item_displayed)
6365 (tui_delete_data_content_windows, tui_erase_data_content)
6366 (tui_display_all_data, tui_data_window::refresh_all)
6367 (tui_check_data_values): Update.
6368 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6369 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6370 (tui_win_info::backward_scroll, tui_refresh_all_win)
6371 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6372 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6373 (tui_source_window_base::set_new_height)
6374 (tui_data_window::set_new_height)
6375 (make_invisible_and_set_new_height)
6376 (make_visible_with_new_height, new_height_ok)
6377 (parse_scrolling_args): Update.
6378 * tui/tui-stack.c (tui_show_frame_info): Update.
6379 * tui/tui-source.c (tui_set_source_content)
6380 (tui_set_source_content_nil, tui_source_is_displayed)
6381 (tui_source_window::do_scroll_vertical): Update.
6382 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6383 (tui_display_registers_from, tui_display_reg_element_at_line)
6384 (tui_check_register_values, tui_reg_command): Update.
6385 * tui/tui-layout.c (tui_default_win_height)
6386 (show_source_disasm_command, show_data, init_and_make_win)
6387 (show_source_or_disasm_and_command): Update.
6388 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6389 (tui_redisplay_readline, tui_mld_flush)
6390 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6391 (tui_getc): Update.
6392 * tui/tui-disasm.c (tui_set_disassem_content)
6393 (tui_disasm_window::do_scroll_vertical): Update.
6394 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6395 Now virtual.
6396 (struct tui_win_info): Derive from tui_gen_win_info.
6397 <~tui_win_info>: Mark as override.
6398 <generic>: Remove member.
6399 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6400 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6401 (~tui_data_window, ~tui_win_info)
6402 (tui_free_all_source_wins_content): Update.
6403 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6404
6405 2019-06-25 Tom Tromey <tom@tromey.com>
6406
6407 * tui/tui-layout.c (init_and_make_win): Use new.
6408 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6409 destructor, initializers.
6410 (tui_alloc_generic_win_info): Don't declare.
6411 * tui/tui-data.c (_locator): Add argument to constructor.
6412 (source_win, disasm_win): New globals.
6413 (exec_info): Remove.
6414 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6415 Update.
6416 (tui_alloc_generic_win_info): Remove.
6417 (init_content_element): Use new.
6418 (tui_win_info::tui_win_info): Update.
6419 (free_content_elements) <case DATA_WIN>: Use delete.
6420
6421 2019-06-25 Tom Tromey <tom@tromey.com>
6422
6423 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6424 * tui/tui-windata.c (tui_first_data_item_displayed)
6425 (tui_delete_data_content_windows): Update.
6426 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6427 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6428 (tui_display_registers_from, tui_check_register_values): Update.
6429 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6430 pointer.
6431 * tui/tui-data.c (init_content_element): Update. Allocate the new
6432 window.
6433 (tui_free_data_content): Update.
6434 (free_content_elements) <case DATA_WIN>: Free the window.
6435
6436 2019-06-25 Tom Tromey <tom@tromey.com>
6437
6438 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6439 Update.
6440 * tui/tui-layout.c (make_command_window)
6441 (show_source_disasm_command, show_data, init_and_make_win)
6442 (show_source_or_disasm_and_command): Update.
6443 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6444 method.
6445 <can_highight, is_highlighted>: Now bool.
6446 (tui_set_win_highlight): Don't declare.
6447 * tui/tui-data.c (tui_set_win_highlight): Remove.
6448
6449 2019-06-25 Tom Tromey <tom@tromey.com>
6450
6451 * tui/tui-wingeneral.c (make_visible): Remove check of window
6452 type.
6453
6454 2019-06-25 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-win.c (tui_win_info::max_height)
6457 (tui_cmd_window::max_height): New methods.
6458 (new_height_ok): Call max_height.
6459 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6460 <max_height>: New method.
6461
6462 2019-06-25 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui-win.c (tui_source_window_base::set_new_height)
6465 (tui_data_window::set_new_height): New methods.
6466 (make_invisible_and_set_new_height): Call set_new_height method.
6467 * tui/tui-data.h (struct tui_win_info)
6468 (struct tui_source_window_base, struct tui_data_window)
6469 <set_new_height>: New method.
6470
6471 2019-06-25 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6474 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6475 tui_refresh_data_win.
6476 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6477 method.
6478 (tui_refresh_all_win): Call the refresh_all method.
6479 (tui_set_focus): Likewise.
6480 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6481 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6482 Likewise.
6483
6484 2019-06-25 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui-winsource.h (tui_refill_source_window)
6487 (tui_set_is_exec_point_at): Don't declare.
6488 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6489 (tui_source_window_base::refill): Rename from
6490 tui_refill_source_window.
6491 (tui_source_window_base::do_scroll_horizontal): Update.
6492 (tui_source_window_base::set_is_exec_point_at): Rename from
6493 tui_set_is_exec_point_at.
6494 (tui_update_all_breakpoint_info): Update.
6495 * tui/tui-stack.c (tui_show_frame_info): Update.
6496 * tui/tui-layout.c (show_data): Add cast.
6497 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6498 * tui/tui-data.h (struct tui_source_window_base) <refill,
6499 set_is_exec_point_at>: New methods.
6500 (tui_source_windows, tui_add_to_source_windows): Update types.
6501 (tui_add_to_source_windows): Remove redundant declaration.
6502 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6503 (tui_source_windows): Change return type.
6504 (tui_clear_source_windows_detail): Update.
6505 (tui_add_to_source_windows): Change type of parameter.
6506 (tui_free_all_source_wins_content): Update.
6507
6508 2019-06-25 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-wingeneral.c (tui_win_info::refresh)
6511 (tui_source_window_base::refresh): New methods.
6512 (tui_refresh_all): Call the refresh method.
6513 * tui/tui-data.h (struct tui_win_info)
6514 (struct tui_source_window_base) <refresh>: New method.
6515
6516 2019-06-25 Tom Tromey <tom@tromey.com>
6517
6518 * tui/tui.h (tui_is_window_visible): Return bool.
6519 * tui/tui.c (tui_is_window_visible): Return bool.
6520 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6521 (tui_make_visible, tui_make_invisible)
6522 (tui_win_info::make_visible)
6523 (tui_source_window_base::make_visible, make_all_visible)
6524 (tui_make_all_visible, tui_make_all_invisible): Update.
6525 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6526 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6527 bool.
6528 (struct tui_win_info, struct tui_source_window_base)
6529 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6530 * tui/tui-data.c (tui_init_generic_part): Update.
6531
6532 2019-06-25 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6535 (tui_source_window_base::make_visible): New methods.
6536 (make_all_visible): Make method call.
6537 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6538 (struct tui_source_window_base, struct tui_cmd_window): Override
6539 make_visible.
6540 (tui_win_is_source_type): Don't declare.
6541 * tui/tui-data.c (tui_win_is_source_type): Remove.
6542
6543 2019-06-25 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6546 NULL check.
6547
6548 2019-06-25 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6551 Inline constructor. Add initializers for members.
6552 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6553 constructors; now inline in class.
6554
6555 2019-06-25 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-regs.c (tui_show_registers): Update.
6558 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6559 bool.
6560 * tui/tui-data.c (tui_data_window::clear_detail)
6561 (tui_data_window): Update.
6562
6563 2019-06-25 Tom Tromey <tom@tromey.com>
6564
6565 * tui/tui-windata.c (tui_display_all_data)
6566 (tui_display_data_from_line, tui_display_data_from)
6567 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6568 Update.
6569 * tui/tui-regs.c (tui_last_regs_line_no)
6570 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6571 (tui_show_registers, tui_show_register_group)
6572 (tui_display_registers_from, tui_display_reg_element_at_line)
6573 (tui_display_registers_from_line, tui_check_register_values)
6574 (tui_reg_next, tui_reg_prev): Update.
6575 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6576 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6577 tui_data_window.
6578 (struct tui_win_info) <detail>: Remove. Add new fields from
6579 tui_data_info.
6580 (TUI_DATA_WIN): Add cast.
6581 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6582 (~tui_data_window): Simplify.
6583
6584 2019-06-25 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-layout.c (show_source_disasm_command)
6587 (show_source_or_disasm_and_command): Update.
6588 * tui/tui-io.c (update_cmdwin_start_line)
6589 (tui_redisplay_readline): Update.
6590 * tui/tui-data.h (struct tui_command_info): Remove.
6591 (struct tui_win_info) <detail>: Remove command_info member.
6592 (struct tui_data_window) <start_line>: New member, from
6593 tui_command_info.
6594 (TUI_CMD_WIN): Add casts.
6595
6596 2019-06-25 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-winsource.c (tui_update_source_window)
6599 (tui_refill_source_window)
6600 (tui_source_window_base::do_scroll_horizontal)
6601 (tui_update_breakpoint_info, tui_set_exec_info_content)
6602 (tui_show_exec_info_content, tui_erase_exec_info_content)
6603 (tui_clear_exec_info_content): Update.
6604 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6605 Update.
6606 * tui/tui-win.c (make_invisible_and_set_new_height)
6607 (make_visible_with_new_height): Update.
6608 * tui/tui-source.c (tui_set_source_content)
6609 (tui_show_symtab_source): Update.
6610 * tui/tui-layout.c (extract_display_start_addr)
6611 (show_source_disasm_command, show_data)
6612 (make_source_or_disasm_window)
6613 (show_source_or_disasm_and_command): Update.
6614 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6615 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6616 "gdbarch".
6617 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6618 to tui_source_window_base.
6619 (struct tui_win_info) <detail>: Remove source_info member.
6620 (struct tui_source_window_base) <has_locator>: Inline.
6621 Move contents from tui_source_info; rename has_locator member to
6622 m_has_locator.
6623 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6624 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6625 header file.
6626 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6627 Simplify.
6628 (tui_free_all_source_wins_content): Cast to
6629 tui_source_window_base.
6630
6631 2019-06-25 Tom Tromey <tom@tromey.com>
6632
6633 * tui/tui-win.c (make_invisible_and_set_new_height)
6634 (make_visible_with_new_height): Call has_locator method.
6635 * tui/tui-layout.c (show_source_disasm_command, show_data)
6636 (show_source_or_disasm_and_command): Update for bool change.
6637 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6638 (tui_win_info) <has_locator>: New method.
6639 (struct tui_source_window_base) <has_locator>: New method.
6640 (tui_win_has_locator): Don't declare.
6641 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6642 from tui_win_has_locator.
6643 (tui_source_window_base): Use false, not FALSE.
6644
6645 2019-06-25 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6648 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6649 clear_detail method directly.
6650 (tui_clear_win_detail): Remove.
6651
6652 2019-06-25 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6655 "this", not TUI_DISASM_WIN.
6656
6657 2019-06-25 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6660 declare.
6661 * tui/tui-winsource.c
6662 (tui_source_window_base::do_scroll_horizontal): Rename from
6663 tui_horizontal_source_scroll.
6664 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6665 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6666 from tui_vertical_data_scroll.
6667 * tui/tui-win.h (tui_scroll): Don't declare.
6668 * tui/tui-win.c (tui_win_info::forward_scroll)
6669 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6670 (tui_win_info::right_scroll): Rename and update.
6671 (tui_scroll_forward_command, tui_scroll_backward_command)
6672 (tui_scroll_left_command, tui_scroll_right_command): Update.
6673 (tui_scroll): Remove.
6674 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6675 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6676 from tui_vertical_source_scroll.
6677 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6678 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6679 from tui_vertical_disassem_scroll.
6680 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6681 do_scroll_horizontal>: New methods.
6682 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6683 Likewise.
6684 (struct tui_source_window_base): Add do_scroll_horizontal.
6685 (struct tui_source_window, struct tui_disasm_window): Add
6686 do_scroll_vertical.
6687 (struct tui_data_window, struct tui_cmd_window): Add
6688 do_scroll_horizontal and do_scroll_vertical.
6689 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6690
6691 2019-06-25 Tom Tromey <tom@tromey.com>
6692
6693 * tui/tui-data.h (struct tui_source_window_base): New struct.
6694 (struct tui_source_window): Derive from tui_source_window_base.
6695 (struct tui_disasm_window): New struct.
6696 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6697 from tui_source_window::clear_detail.
6698 (tui_source_window_base): Rename from tui_source_window.
6699 (~tui_source_window_base): Rename from ~tui_source_window.
6700 (tui_alloc_win_info): Create a tui_disasm_window.
6701
6702 2019-06-25 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-data.h (struct tui_source_window)
6705 (struct tui_data_window): Declare destructors.
6706 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6707 destructors.
6708 (tui_win_info): Simplify.
6709
6710 2019-06-25 Tom Tromey <tom@tromey.com>
6711
6712 * tui/tui-winsource.c (tui_display_main)
6713 (tui_update_source_windows_with_addr)
6714 (tui_update_all_breakpoint_info): Update.
6715 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6716 (new_height_ok, parse_scrolling_args): Update.
6717 * tui/tui-stack.c (tui_show_frame_info): Update.
6718 * tui/tui-data.h (struct tui_list): Remove.
6719 (tui_source_windows): Return a reference to a std::vector.
6720 * tui/tui-data.c (source_windows): Now a std::vector.
6721 (tui_source_windows): Change return type.
6722 (tui_clear_source_windows): Rewrite.
6723 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6724 (tui_free_all_source_wins_content): Rewrite.
6725
6726 2019-06-25 Tom Tromey <tom@tromey.com>
6727
6728 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6729 (struct tui_data_window, struct tui_cmd_window): Declare
6730 clear_detail method.
6731 * tui/tui-data.c (tui_source_window::clear_detail)
6732 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6733 methods.
6734 (tui_clear_win_detail): Simplify.
6735
6736 2019-06-25 Tom Tromey <tom@tromey.com>
6737
6738 * tui/tui-layout.c (make_source_window, make_disasm_window)
6739 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6740 Return the new window.
6741 (show_source_disasm_command, show_data)
6742 (show_source_or_disasm_and_command): Update.
6743
6744 2019-06-25 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6747 parameter. Return the new window.
6748 (show_source_disasm_command): Update and remove NULL check.
6749 (show_source_or_disasm_and_command): Update.
6750
6751 2019-06-25 Tom Tromey <tom@tromey.com>
6752
6753 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6754
6755 2019-06-25 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-data.h (struct tui_win_info): Make constructor
6758 protected. Make destructor virtual. Add initializers.
6759 (tui_source_window, tui_data_window, tui_cmd_window): New
6760 classes.
6761 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6762 constructor. Add "type" parameter.
6763 (tui_source_window, tui_data_window, tui_cmd_window): New
6764 constructors.
6765 (tui_alloc_win_info): Instantiate the appropriate subclass.
6766
6767 2019-06-25 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-win.c (tui_resize_all): Use delete.
6770 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6771 destructor.
6772 (tui_free_window): Don't declare.
6773 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6774 Update.
6775
6776 2019-06-25 Tom Tromey <tom@tromey.com>
6777
6778 * tui/tui-data.h (struct tui_win_info): Add constructor.
6779 * tui/tui-data.c (tui_alloc_win_info): Use new.
6780 (tui_free_window): Use delete.
6781
6782 2019-06-22 Tom Tromey <tom@tromey.com>
6783
6784 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6785 declare.
6786 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6787
6788 2019-06-22 Tom Tromey <tom@tromey.com>
6789
6790 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6791 declare.
6792 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6793
6794 2019-06-22 Tom de Vries <tdevries@suse.de>
6795
6796 * dwarf2read.c (create_addrmap_from_aranges)
6797 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6798 instead of '%zu'.
6799
6800 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6801
6802 * dwarf2read.h (dwarf2_section_info_def): Remove.
6803 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6804 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6805 std::vector<dwarf2_section_info>.
6806 (struct dwo_file) <~dwo_file>: Remove.
6807 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6808 types field.
6809 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6810 (dwarf2_read_debug_names): Likewise.
6811 (create_debug_types_hash_table): Change parameter type to
6812 array_view, adjust code accordingly.
6813 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6814 (partial_die_info::fixup): Likewise.
6815 (determine_prefix): Likewise.
6816 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6817
6818 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6821 gdb_bfd_ref_ptr.
6822 <~dwo_file>: Remove call to gdb_bfd_unref.
6823 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6824 gdb_bfd_ref_ptr::get.
6825
6826 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6827
6828 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6829 type to htab_up.
6830 * dwarf2read.c (struct dwo_file): Initialize fields.
6831 <~dwo_file>: New.
6832 (free_dwo_file): Remove, move content to ~dwo_file.
6833 (struct dwo_file_deleter): Remove.
6834 (dwo_file_up>: Remove custom deleter.
6835 (free_dwo_files): Remove.
6836 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6837 dwo_files.
6838 (process_skeletonless_type_units): Call unique_ptr::get.
6839 (allocate_dwo_file_hash_table): Add deleter to created hash
6840 table. Change return type to htab_up.
6841 (lookup_dwo_file_slot): Don't memset dwo_file, call
6842 unique_ptr::get.
6843 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6844 (create_dwo_unit_in_dwp_v2): Likewise.
6845 (open_and_init_dwo_file): Likewise.
6846 (free_dwo_file_from_slot): Remove.
6847
6848 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6849
6850 * dwarf2read.h (struct dwarf2_section_info) <readin,
6851 is_virtual>: Change type to bool.
6852 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6853 true instead of 1.
6854
6855 2019-06-19 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-data.h (tui_init_content_element): Don't declare.
6858
6859 2019-06-19 Tom Tromey <tom@tromey.com>
6860
6861 * tui/tui-data.h (tui_init_win_info): Don't declare.
6862
6863 2019-06-19 Tom de Vries <tdevries@suse.de>
6864
6865 * dwarf2read.h (abstract_to_concrete): Change type to
6866 std::unordered_map<sect_offset, std::vector<sect_offset>,
6867 gdb::hash_enum<sect_offset>>.
6868
6869 2019-06-19 Tom Tromey <tromey@adacore.com>
6870
6871 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6872 EVAL_AVOID_SIDE_EFFECTS specially.
6873
6874 2019-06-19 Tom Tromey <tromey@adacore.com>
6875
6876 * source-cache.c (highlighter): New global.
6877 (source_cache::get_source_lines): Create a highlighter on demand.
6878
6879 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6880
6881 * defs.h (deprecated_interactive_hook): Delete declaration.
6882 * interps.c (clear_interpreter_hooks): Remove use of
6883 deprecated_interactive_hook.
6884 * top.c (deprecated_interactive_hook): Delete definition.
6885 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6886
6887 2019-06-18 Tom de Vries <tdevries@suse.de>
6888
6889 PR gdb/24515
6890 * dwarf2read.h (abstract_to_concrete): Change type from
6891 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6892 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6893 * dwarf2read.c (read_variable): Update.
6894 (dwarf2_fetch_die_loc_sect_off): Update.
6895
6896 2019-06-17 Tom de Vries <tdevries@suse.de>
6897
6898 PR gdb/24617
6899 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6900 accessing parent[parent_len - 1].
6901
6902 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6903
6904 PR gdb/24364
6905 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6906 call dtrace_process_dof with NULL dof.
6907
6908 2019-06-16 Tom de Vries <tdevries@suse.de>
6909
6910 PR gdb/24445
6911 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6912
6913 2019-06-16 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6916 (make_all_visible): Use address of member.
6917
6918 2019-06-16 Tom Tromey <tom@tromey.com>
6919
6920 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6921 (tui_free_window, free_content, free_content_elements): Remove
6922 unnecessary cast.
6923 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6924 cast.
6925 * tui/tui-regs.c (tui_show_register_group)
6926 (tui_display_registers_from, tui_display_reg_element_at_line):
6927 Remove unnecessary cast.
6928
6929 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * linux-nat.c (normal_mask): Delete.
6932 (_initialize_linux_nat): Don't initialise normal_mask.
6933
6934 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6935
6936 PR gdb/24445
6937 * dwarf-index-write.h (write_psymtabs_to_index): Add
6938 dwz_basename parameter.
6939 * dwarf-index-write.c (write_gdbindex): Move file writing to
6940 write_gdbindex_1. Change return type void.
6941 (assert_file_size): Move up, remove filename parameter.
6942 (write_gdbindex_1): New function.
6943 (write_debug_names): Change return type to void, call
6944 assert_file_size.
6945 (struct index_wip_file): New struct.
6946 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6947 file logic to index_wip_file. Write index for dwz file if
6948 needed.
6949 (save_gdb_index_command): Pass basename of dwz file, if present.
6950 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6951 build-id of dwz file, if present.
6952 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6953 (dwarf2_get_dwz_file): Likewise.
6954 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6955 (dwarf2_get_dwz_file): Likewise.
6956
6957 2019-06-16 Tom Tromey <tom@tromey.com>
6958
6959 * coffread.c (process_coff_symbol): Use xstrdup.
6960 * value.c (create_internalvar): Use xstrdup.
6961
6962 2019-06-16 Tom Tromey <tom@tromey.com>
6963
6964 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6965 * breakpoint.c (stopin_command, stopat_command)
6966 (until_break_command, decode_location_default): Remove unnecessary
6967 cast.
6968 * utils.c (subset_compare): Remove unnecessary cast.
6969 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6970 cast.
6971 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6972 cast.
6973 * infcmd.c (path_command): Remove unnecessary cast.
6974 * coffread.c (decode_type): Remove unnecessary cast.
6975 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6976 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6977 * tui/tui-stack.c (tui_show_locator_content)
6978 (tui_show_frame_info): Remove unnecessary cast.
6979 * tui/tui-win.c (tui_scroll_forward_command)
6980 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6981 (parse_scrolling_args): Remove unnecessary cast.
6982 * tui/tui-data.c (init_win_info, tui_del_window)
6983 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6984 (free_content_elements): Remove unnecessary cast.
6985 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6986 unnecessary cast.
6987 * tui/tui-source.c (tui_set_source_content)
6988 (tui_vertical_source_scroll): Remove unnecessary cast.
6989 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6990 cast.
6991 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6992 * tui/tui-regs.c (tui_display_registers_from)
6993 (tui_display_register): Remove unnecessary cast.
6994 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6995 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6996 (make_visible): Remove unnecessary cast.
6997 * tui/tui-winsource.c (tui_erase_source_content)
6998 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6999 unnecessary cast.
7000 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7001 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7002 * stabsread.c (read_type, read_array_type, read_range_type):
7003 Remove unnecessary cast.
7004 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7005 (parse_symbol, parse_type, upgrade_type, parse_external)
7006 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7007 unnecessary cast.
7008 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7009
7010 2019-06-16 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-data.c (tui_alloc_generic_win_info)
7013 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7014 checks.
7015
7016 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7017 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * f-typeprint.c (f_print_type): Don't return early for not
7020 associated or not allocated types.
7021 (f_type_print_varspec_suffix): Add print_rank parameter and print
7022 ranks of array types in case they dangling.
7023 (f_type_print_base): Add print_rank parameter.
7024
7025 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 * NEWS: Mention new MI commands.
7028 * break-catch-throw.c (enum exception_event_kind): Move to
7029 breakpoint.h.
7030 (print_mention_exception_catchpoint): Output text as a single
7031 message.
7032 (catch_exception_command_1): Rename to...
7033 (catch_exception_event): ...this, make non-static, update header
7034 command, and change some parameter types.
7035 (catch_catch_command): Update for changes to
7036 catch_exception_command_1.
7037 (catch_throw_command): Likewise.
7038 (catch_rethrow_command): Likewise.
7039 * breakpoint.c (enum exception_event_kind): Delete.
7040 * breakpoint.h (enum exception_event_kind): Moved here from
7041 break-catch-throw.c.
7042 (catch_exception_event): Declare.
7043 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7044 (mi_cmd_catch_throw): New function.
7045 (mi_cmd_catch_rethrow): New function.
7046 (mi_cmd_catch_catch): New function.
7047 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7048 'catch-catch' entries.
7049 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7050 (mi_cmd_catch_rethrow): Declare.
7051 (mi_cmd_catch_catch): Declare.
7052
7053 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7054
7055 * annotate.c (annotate_source_line): Change return type to void,
7056 update implementation to match.
7057 * annotate.h (annotate_source_line): Change return type to void,
7058 update header comment.
7059 * stack.c (print_frame_info): Don't change what frame information
7060 is printed based on whether annotations are on or not.
7061
7062 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7065 (annotate_source): Make static.
7066 (annotate_source_line): Moved from source.c and renamed from
7067 identify_source_line. Update the return type.
7068 * annotate.h (annotate_source): Delete declaration.
7069 (annotate_source_line): Declaration moved from source.h, and
7070 renamed from identify_source_line. Return type updated.
7071 * source.c (identify_source_line): Moved to annotate.c and renamed
7072 to annotate_source_line.
7073 (info_line_command): Remove check of annotation_level.
7074 * source.h (identify_source_line): Move declaration to annotate.h
7075 and rename to annotate_source_line.
7076 * stack.c: Add 'annotate.h' include.
7077 (print_frame_info): Remove check of annotation_level before
7078 calling annotate_source_line.
7079
7080 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * source-cache.c (source_cache::get_plain_source_lines): Use
7083 open_source_file_with_line_charpos instead of just
7084 open_source_file, remove call to find_source_lines.
7085 (source_cache::get_source_lines): Likewise.
7086 * source.c (find_source_lines): Make static.
7087 (get_filename_and_charpos): Renamed into...
7088 (open_source_file_with_line_charpos): ..this along with changes to
7089 return a scoped_fd, and some other minor clean ups.
7090 (identify_source_line): Use open_source_file_with_line_charpos.
7091 (search_command_helper): Use open_source_file_with_line_charpos
7092 instead of just open_source_file, remove call to
7093 find_source_lines.
7094 * source.h (open_source_file_with_line_charpos): Declare new
7095 function.
7096 (find_source_lines): Delete declaration.
7097
7098 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * source.c (get_filename_and_charpos): Remove fullname
7101 parameter.
7102 (identify_source_line): Update call to get_filename_and_charpos.
7103
7104 2019-06-14 Tom Tromey <tromey@adacore.com>
7105
7106 PR gdb/24502:
7107 * ui-style.h (skip_ansi_escape): Update comment.
7108 * ui-file.h (class no_terminal_escape_file): New class.
7109 * ui-file.c (no_terminal_escape_file::write)
7110 (no_terminal_escape_file::puts): New methods.
7111 * cli/cli-logging.c (handle_redirections): Use
7112 no_terminal_escape_file.
7113
7114 2019-06-14 Tom Tromey <tromey@adacore.com>
7115
7116 * NEWS: Move convenience variable news above Python news.
7117
7118 2019-06-14 Tom Tromey <tom@tromey.com>
7119
7120 * gnulib: Move directory to top-level.
7121 * configure.ac: Don't configure gnulib.
7122 * configure: Rebuild.
7123 * common/common-defs.h: Use new path to gnulib.
7124 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7125 (GNULIB_H): Remove.
7126 (INCGNU): Look in new gnulib location.
7127 (HFILES_NO_SRCDIR): Remove gnulib files.
7128 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7129 (generated_files): Remove GNULIB_H.
7130 ($(LIBGNU), all-lib): Remove targets.
7131 (distclean): Don't mention GNULIB_BUILDDIR.
7132 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7133
7134 2019-06-14 Tom Tromey <tromey@adacore.com>
7135
7136 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7137 Warn if symbol file does not provide any symbols.
7138
7139 2019-06-14 Tom Tromey <tromey@adacore.com>
7140
7141 * source.c (find_and_open_source): Respect basenames_may_differ.
7142
7143 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * annotate.c (annotate_breakpoints_invalid): Make use of
7146 scoped_restore_terminal_state.
7147 (annotate_frames_invalid): Likewise.
7148
7149 2019-06-14 Tom Tromey <tromey@adacore.com>
7150
7151 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7152 allow assignment to an internalvar.
7153
7154 2019-06-14 Tom Tromey <tromey@adacore.com>
7155
7156 * ada-lex.l: Allow "_" in attribute names.
7157
7158 2019-06-14 Tom Tromey <tromey@adacore.com>
7159
7160 PR gdb/24653:
7161 * regcache.c (registers_changed): Don't call alloca.
7162 * top.c (execute_command): Don't call alloca.
7163
7164 2019-06-13 Pedro Alves <palves@redhat.com>
7165
7166 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7167 'expression'. When parsing an expression, error out if there's
7168 junk after "unlimited".
7169 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7170 (do_set_command): Adjust calls to is_unlimited_literal.
7171
7172 2019-06-13 Pedro Alves <palves@redhat.com>
7173
7174 * compile/compile.c (make_compile_options_def_group): Add braces
7175 around array_view initializer.
7176 * thread.c (make_thread_apply_all_options_def_group)
7177 (make_thread_apply_all_options_def_group): Likewise.
7178
7179 2019-06-13 Pedro Alves <palves@redhat.com>
7180
7181 * NEWS (New commands): Mention "maint test-options
7182 require-delimiter", "maint test-options unknown-is-error", "maint
7183 test-options unknown-is-operand" and "maint show
7184 test-options-completion-result".
7185 (New command options, command completion): New section.
7186 (Completion improvements): New section.
7187 Mention that you can abbreviate "unlimited".
7188
7189 2019-06-13 Pedro Alves <palves@redhat.com>
7190
7191 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7192 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7193 * unittests/cli-utils-selftests.c (test_parse_flags)
7194 (test_parse_flags_qcs): Delete.
7195 (test_cli_utils): Don't call deleted functions.
7196
7197 2019-06-13 Pedro Alves <palves@redhat.com>
7198
7199 * thread.c: Include "cli/cli-option.h".
7200 (tp_array_compar_ascending): Global.
7201 (tp_array_compar): Delete function.
7202 (tp_array_compar_ascending, tp_array_compar_descending): New
7203 functions.
7204 (ascending_option_def, qcs_flag_option_def)
7205 (thr_qcs_flags_option_defs)
7206 (make_thread_apply_all_options_def_group)
7207 (make_thread_apply_options_def_group): New.
7208 (thread_apply_all_command): Use gdb::option::process_options.
7209 (thread_apply_command_completer)
7210 (thread_apply_all_command_completer): New.
7211 (thread_apply_command): Use gdb::option::process_options.
7212 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7213 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7214 to generate help text of "thread apply". Adjust "taas"'s help.
7215 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7216 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7217
7218 2019-06-13 Pedro Alves <palves@redhat.com>
7219
7220 * thread.c (thread_apply_command): Check for invalid TID with
7221 isdigit instead of !isalpha.
7222
7223 2019-06-13 Pedro Alves <palves@redhat.com>
7224
7225 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7226 (validate_flags_qcs): New.
7227 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7228 (validate_flags_qcs): Declare.
7229 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7230 (make_frame_apply_options_def_group): New.
7231 (frame_apply_command_count): Process options with
7232 gdb::option::process_options.
7233 (frame_apply_completer): New.
7234 (frame_apply_level_completer, frame_apply_all_completer)
7235 (frame_apply_completer): New.
7236 (_initialize_stack): Update help of "frame apply", "frame apply
7237 level", "frame apply all" and "faas" to mention supported options
7238 and install command completers.
7239 * stack.h (frame_apply_all_completer): Declare.
7240 * thread.c: Include "stack.h".
7241 (tfaas_command): Add "--".
7242 (_initialize_thread): Update help "tfaas" to mention supported
7243 options and install command completer.
7244
7245 2019-06-13 Pedro Alves <palves@redhat.com>
7246
7247 * completer.c (complete_nested_command_line): New.
7248 (gdb_completion_word_break_characters_throw): Add assertion.
7249 * completer.h (complete_nested_command_line): Declare.
7250
7251 2019-06-13 Pedro Alves <palves@redhat.com>
7252
7253 * stack.c (parse_backtrace_qualifiers): New.
7254 (backtrace_command): Use it.
7255 (backtrace_command_completer): Complete on qualifiers.
7256
7257 2019-06-13 Pedro Alves <palves@redhat.com>
7258
7259 * frame.c: Include "cli/cli-option.h.
7260 (user_set_backtrace_options): New.
7261 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7262 Delete.
7263 (get_prev_frame): Adjust.
7264 (boolean_option_def, uinteger_option_def)
7265 (set_backtrace_option_defs): New.
7266 (_initialize_frame): Adjust and use
7267 gdb::option::add_setshow_cmds_for_options to install "set
7268 backtrace past-main" and "set backtrace past-entry".
7269 * frame.h: Include "cli/cli-option.h".
7270 (struct frame_print_options): Forward declare.
7271 (print_frame_arguments_all, print_frame_arguments_scalars)
7272 (print_frame_arguments_none): Declare.
7273 (print_entry_values): Delete declaration.
7274 (struct frame_print_options, user_frame_print_options): New.
7275 (struct set_backtrace_options): New.
7276 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7277 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7278 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7279 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7280 (list_args_or_locals): Add frame_print_options parameter.
7281 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7282 * python/py-framefilter.c (enumerate_args): Pass down
7283 USER_FRAME_PRINT_OPTIONS.
7284 * stack.c: Include "cli/cli-option.h".
7285 (print_frame_arguments_all, print_frame_arguments_scalars)
7286 (print_frame_arguments_none): Declare.
7287 (print_raw_frame_arguments, print_entry_values): Delete.
7288 (user_frame_print_options): New.
7289 (boolean_option_def, enum_option_def, frame_print_option_defs):
7290 New.
7291 (struct backtrace_cmd_options): New.
7292 (bt_flag_option_def): New.
7293 (backtrace_command_option_defs): New.
7294 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7295 (print_frame_arg, read_frame_arg, print_frame_args)
7296 (print_frame_info, print_frame): Add frame_print_options parameter
7297 and use it.
7298 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7299 (backtrace_command_1): Add frame_print_options and
7300 backtrace_cmd_options parameters and use them.
7301 (make_backtrace_options_def_group): New.
7302 (backtrace_command): Process command options with
7303 gdb::option::process_options.
7304 (backtrace_command_completer): New.
7305 (_initialize_stack): Extend "backtrace"'s help to mention
7306 supported options. Install completer for "backtrace".
7307 Install some settings commands with add_setshow_cmds_for_options.
7308
7309 2019-06-13 Pedro Alves <palves@redhat.com>
7310
7311 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7312 and that "set/show print raw frame-arguments" are now deprecated.
7313
7314 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7315 command.
7316 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7317 * stack.c (_initialize_stack): Install "set/show print
7318 raw-frame-arguments", and deprecate "set/show print raw
7319 frame-arguments".
7320 * valprint.c (_initialize_valprint): Deprecate "set/show print
7321 raw".
7322
7323 2019-06-13 Pedro Alves <palves@redhat.com>
7324
7325 * compile/compile.c (struct compile_options): New.
7326 (compile_flag_option_def, compile_command_option_defs)
7327 (make_compile_options_def_group): New.
7328 (compile_file_command): Handle options with
7329 gdb::option::process_options.
7330 (compile_file_command_completer): New function.
7331 (compile_code_command): Handle options with
7332 gdb::option::process_options.
7333 (compile_code_command_completer): New function.
7334 (_initialize_compiler): Install completers for "compile code" and
7335 "compile file". Mention available options in "compile code" and
7336 "compile code"'s help.
7337 * completer.c (advance_to_completion_word): New, factored out from
7338 ...
7339 (advance_to_expression_complete_word_point): ... this.
7340 (advance_to_filename_complete_word_point): New.
7341 * completer.h (advance_to_filename_complete_word_point): New
7342 declaration.
7343
7344 2019-06-13 Pedro Alves <palves@redhat.com>
7345
7346 * compile/compile.c: Include "cli/cli-option.h".
7347 (compile_print_value): Scope data pointer is now a
7348 value_print_options pointer; adjust.
7349 (compile_print_command): Process options. Scope data pointer is
7350 now a value_print_options pointer; adjust.
7351 (_initialize_compile): Update "compile print"'s help to include
7352 supported options. Install a completer for "compile print".
7353 * cp-valprint.c (show_vtblprint, show_objectprint)
7354 (show_static_field_print): Delete.
7355 (_initialize_cp_valprint): Don't install "set print
7356 static-members", "set print vtbl", "set print object" here.
7357 * printcmd.c: Include "cli/cli-option.h" and
7358 "common/gdb_optional.h".
7359 (print_command_parse_format): Rework to fill in a
7360 value_print_options instead of a format_data.
7361 (print_value): Change parameter type from format_data pointer to
7362 value_print_options reference. Adjust.
7363 (print_command_1): Process options. Adjust to pass down a
7364 value_print_options.
7365 (print_command_completer): New.
7366 (_initialize_printcmd): Install print_command_completer as
7367 handle_brkchars completer for the "print" command. Update
7368 "print"'s help to include supported options.
7369 * valprint.c: Include "cli/cli-option.h".
7370 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7371 here from cp-valprint.c.
7372 (boolean_option_def, uinteger_option_def)
7373 (value_print_option_defs, make_value_print_options_def_group):
7374 New. Use gdb::option::add_setshow_cmds_for_options to install
7375 "set print elements", "set print null-stop", "set print repeats",
7376 "set print pretty", "set print union", "set print array", "set
7377 print address", "set print symbol", "set print array-indexes".
7378 * valprint.h: Include <string> and "cli/cli-option.h".
7379 (make_value_print_options_def_group): Declare.
7380 (print_value): Change parameter type from format_data pointer to
7381 value_print_options reference.
7382 (print_command_completer): Declare.
7383
7384 2019-06-13 Pedro Alves <palves@redhat.com>
7385
7386 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7387 (COMMON_SFILES): Add maint-test-settings.c.
7388 * cli/cli-decode.c (boolean_enums): New global, factored out from
7389 ...
7390 (add_setshow_boolean_cmd): ... here.
7391 * cli/cli-decode.h (boolean_enums): Declare.
7392 * cli/cli-option.c: New file.
7393 * cli/cli-option.h: New file.
7394 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7395 factored out from ...
7396 (parse_cli_boolean_value(const char *)): ... this.
7397 (is_unlimited_literal): Change parameter type to pointer to
7398 pointer. Adjust and advance ARG pointer.
7399 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7400 (parse_cli_var_enum): New, factored out from ...
7401 (do_set_command): ... this. Adjust.
7402 * cli/cli-setshow.h (parse_cli_boolean_value)
7403 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7404 (parse_cli_var_enum): Declare.
7405 * cli/cli-utils.c: Include "cli/cli-option.h".
7406 (get_ulongest): New.
7407 * cli/cli-utils.h (get_ulongest): Declare.
7408 (check_for_argument): New overloads.
7409 * maint-test-options.c: New file.
7410
7411 2019-06-13 Pedro Alves <palves@redhat.com>
7412
7413 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7414 parse a range if "-" is at the end of the string.
7415
7416 2019-06-13 Pedro Alves <palves@redhat.com>
7417
7418 * cli/cli-setshow.c (parse_auto_binary_operation)
7419 (parse_cli_boolean_value): Don't allow "o".
7420
7421 2019-06-13 Pedro Alves <palves@redhat.com>
7422
7423 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7424 * NEWS: Mention maint test-settings KIND.
7425 * maint-test-settings.c: New file.
7426
7427 2019-06-13 Pedro Alves <palves@redhat.com>
7428
7429 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7430 completer.
7431 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7432 "set" completers.
7433
7434 2019-06-13 Pedro Alves <palves@redhat.com>
7435
7436 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7437 after item.
7438
7439 2019-06-13 Pedro Alves <palves@redhat.com>
7440
7441 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7442
7443 2019-06-13 Pedro Alves <palves@redhat.com>
7444
7445 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7446 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7447 call.
7448 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7449 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7450 calls.
7451 (check_for_argument): Skip spaces after argument.
7452
7453 2019-06-13 Pedro Alves <palves@redhat.com>
7454
7455 * thread.c (thread_apply_command): Adjust TID parsing.
7456 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7457 detected before end of string.
7458 (tid_is_in_list): Error out if LIST is invalid.
7459
7460 2019-06-13 Pedro Alves <palves@redhat.com>
7461
7462 * completer.c (complete_line_internal_1): Rewind completion word
7463 point.
7464 (completion_tracker::advance_custom_word_point_by): Change
7465 parameter type to int.
7466 * completer.h (completion_tracker::advance_custom_word_point_by):
7467 Likewise.
7468
7469 2019-06-13 Pedro Alves <palves@redhat.com>
7470
7471 * completer.c (advance_to_completion_word): Handle delimiters.
7472
7473 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7474
7475 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7476
7477 2019-06-11 Tom Tromey <tom@tromey.com>
7478
7479 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7480 (xmalloc_failed): Move to alloc.c.
7481 * alloc.c: New file.
7482 * Makefile.in (COMMON_SFILES): Add alloc.c.
7483
7484 2019-06-11 Tom Tromey <tom@tromey.com>
7485
7486 * nat/linux-waitpid.c: Don't include server.h.
7487 (linux_debug): Remove.
7488 (my_waitpid): Update.
7489
7490 2019-06-11 Tom Tromey <tromey@adacore.com>
7491
7492 * infcall.c (_initialize_infcall): Remove trailing newline from
7493 help.
7494 * user-regs.c (_initialize_user_regs): Remove trailing newline
7495 from help.
7496 * typeprint.c (_initialize_typeprint): Remove trailing newline
7497 from help.
7498 * reverse.c (_initialize_reverse): Remove trailing newlines from
7499 help.
7500 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7501 from help.
7502 * language.c (add_set_language_command): Remove trailing newline
7503 from help.
7504 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7505 help.
7506 * disasm.c (_initialize_disasm): Remove trailing newline from
7507 help.
7508 * top.c (init_main): Remove trailing newline from help.
7509 * interps.c (_initialize_interpreter): Remove trailing newline
7510 from help.
7511 * btrace.c (_initialize_btrace): Remove trailing newlines from
7512 help.
7513 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7514 from help.
7515 * python/python.c (_initialize_python): Remove trailing newline
7516 from help.
7517 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7518 help.
7519 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7520 from help. Reformat some text.
7521 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7522 from help.
7523 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7524 newline from help.
7525
7526 2019-06-11 Tom Tromey <tromey@adacore.com>
7527
7528 * darwin-nat.c (darwin_decode_exception_message)
7529 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7530
7531 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7532
7533 * valops.c (value_slice): Check for not allocated or not
7534 associated values.
7535
7536 2019-06-10 Tom de Vries <tdevries@suse.de>
7537
7538 PR gdb/24618
7539 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7540 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7541 invalid.
7542
7543 2019-06-10 Tom de Vries <tdevries@suse.de>
7544
7545 PR gdb/24611
7546 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7547 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7548
7549 2019-06-10 Tom de Vries <tdevries@suse.de>
7550
7551 PR symtab/24545
7552 * symtab.c (struct demangled_name_entry): Add language field.
7553 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7554 static minimal symbol". Set and use language field.
7555
7556 2019-06-10 Tom Tromey <tromey@adacore.com>
7557
7558 * ada-lang.c (_initialize_ada_language): Update help text.
7559
7560 2019-06-10 Tom Tromey <tromey@adacore.com>
7561
7562 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7563 with a newline.
7564 * guile/guile.c (handle_boot_error): Don't end warning with a
7565 newline.
7566 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7567 warning with a newline.
7568 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7569 newline.
7570 (s12z_frame_cache): Likewise.
7571 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7572 a newline.
7573 * solib-svr4.c (disable_probes_interface): Don't end warning with
7574 a newline.
7575 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7576 newline.
7577 * python/python.c (do_finish_initialization): Don't end warning
7578 with a newline.
7579
7580 2019-06-10 Tom Tromey <tom@tromey.com>
7581
7582 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7583 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7584 gdbpy_enter.
7585
7586 2019-06-10 Tom Tromey <tromey@adacore.com>
7587
7588 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7589 data.
7590 (elf_new_init): Don't call stabsread_new_init.
7591 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7592 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7593 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7594
7595 2019-06-10 Tom de Vries <tdevries@suse.de>
7596
7597 PR symtab/16264
7598 PR symtab/24517
7599 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7600
7601 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7602
7603 * source.c (find_and_open_source): Also rewrite relative file
7604 names.
7605
7606 2019-04-26 Amos Bird <amosbird@gmail.com>
7607
7608 * annotate.c (annotate_thread_exited): Add "thread-exited"
7609 annotation.
7610
7611 2019-06-06 Tom Tromey <tromey@adacore.com>
7612
7613 * maint.h (class scoped_command_stats): Use
7614 DISABLE_COPY_AND_ASSIGN.
7615 <print_time>: New method.
7616 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7617 print_time.
7618 (scoped_command_stats::print_time): New method.
7619
7620 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7623 instructions of lengths 6 or 8 bytes.
7624
7625 2019-06-04 Pedro Alves <palves@redhat.com>
7626
7627 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7628
7629 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7630 * breakpoint.c (condition_completer): Likewise.
7631 * cli/cli-dump.c (scan_expression): Likewise.
7632 * common/filestuff.c (mkdir_recursive): Likewise.
7633 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7634 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7635 (gdb_abspath): Likewise.
7636 * compile/compile-cplus-types.c
7637 (compile_cplus_instance::decl_name): Likewise.
7638 * completer.c (complete_explicit_location):
7639 (signal_completer, reg_or_group_completer_1): Likewise.
7640 * cp-support.c (cp_remove_params_if_any): Likewise.
7641 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7642 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7643 * infcmd.c (strip_bg_char): Likewise.
7644 * linespec.c (copy_token_string): Likewise.
7645 * mi/mi-main.c (output_cores): Likewise.
7646 * psymtab.c (psymtab_search_name):
7647 * symfile.c (test_set_ext_lang_command): Likewise.
7648 * target.c (target_fileio_read_stralloc): Likewise.
7649 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7650 * value.c (complete_internalvar): Likewise.
7651
7652 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7653
7654 Add objfile property to gdb.Type.
7655 * NEWS: Mention Python API addition.
7656 * python/py-type.c (typy_get_objfile): New method.
7657
7658 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7659
7660 * NEWS: Mention the new set|show style [title|highlight].
7661 Mention changes to "show style", "help" and "apropos".
7662
7663 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7664
7665 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7666 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7667 instead of print_help_for_command.
7668 (print_doc_of_command): New function.
7669 (help_list): Add 'apropos -v word' suggestion.
7670 (print_help_for_command): Style the command name using title style.
7671 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7672 (_initialize_cli_cmds): Describe -v in apropos_command help.
7673
7674 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7675
7676 * cli/cli-style.h (cli_style_option): Add name in constructor,
7677 add m_name class member, add constructor with intensity,
7678 add name class function.
7679 (cli_style_option::add_setshow_commands): Remove name argument.
7680 (highlight_style, title_style): New styles.
7681 * cli/cli-style.c (do_show): New function that shows a style
7682 characteristic styling the style name with itself.
7683 (set_style_name): New function.
7684 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7685 Update all callers according to the changes in cli/cli-style.h.
7686 * utils.h (fputs_highlighted): New function.
7687 * utils.c (fputs_highlighted): Likewise.
7688
7689 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7690
7691 * NEWS: Mention new pipe command and new convenience variables.
7692
7693 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7694
7695 * cli/cli-cmds.c (pipe_command): New function.
7696 (_initialize_cli_cmds): Call add_com for pipe_command.
7697 Define | as an alias for pipe.
7698 (exit_status_set_internal_vars): New function.
7699 (shell_escape): Call exit_status_set_internal_vars.
7700 cli/cli-decode.c (find_command_name_length): Recognize | as
7701 a single character command.
7702
7703 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7704
7705 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7706 top.c (execute_command_to_ui_file): New function, mostly a copy
7707 of execute_command_to_string.
7708 (execute_command_to_string): Implement by calling
7709 execute_command_to_ui_file.
7710
7711 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7712
7713 * top.h (saved_command_line): Remove declaration.
7714 * top.c (previous_saved_command_line, previous_repeat_arguments):
7715 New variables.
7716 (saved_command_line): Make static, define together with other
7717 'repeat variables'.
7718 (dont_repeat): Clear repeat_arguments.
7719 (repeat_previous, get_saved_command_line, save_command_line):
7720 New functions.
7721 (gdb_init): Initialize saved_command_line
7722 and previous_saved_command_line.
7723 * main.c (captured_main_1): Remove saved_command_line initialization.
7724 * event-top.c (handle_line_of_input): Update to use
7725 the new 'repeat' related functions instead of direct access to
7726 saved_command_line.
7727 * command.h (repeat_previous, get_saved_command_line,
7728 save_command_line): New declarations.
7729 (dont_repeat): Add comment.
7730
7731 2019-05-30 Tom Tromey <tromey@adacore.com>
7732
7733 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7734 Fix comment.
7735 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7736
7737 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7738
7739 PR cli/24587
7740 * completer.c (complete): Initialize variable word.
7741
7742 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7743
7744 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7745 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7746 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7747 'body' is NULL to the outter 'if', protecting the '!is_define'
7748 situation as well.
7749
7750 2019-05-29 Tom Tromey <tromey@adacore.com>
7751
7752 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7753 (dwarf_unknown): New function.
7754 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7755 (dwarf_type_encoding_name): Use dwarf_unknown.
7756
7757 2019-05-29 Tom Tromey <tromey@adacore.com>
7758
7759 PR c++/20020:
7760 * cp-valprint.c (cp_print_value_fields): Call
7761 cp_print_static_field inside "try".
7762
7763 2019-05-29 Tom Tromey <tromey@adacore.com>
7764
7765 * inflow.c (struct terminal_info): Add default operator=.
7766 * configure: Rebuild.
7767 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7768 -Wdeprecated-copy-dtor, -Wredundant-move.
7769
7770 2019-05-29 Tom Tromey <tromey@adacore.com>
7771
7772 * NEWS: Add entry.
7773 * infcmd.c (print_return_value_1): Handle finish_print
7774 option.
7775 (show_print_finish): New function.
7776 (_initialize_infcmd): Add "set/show print finish" commands.
7777 * valprint.c (user_print_options): Initialize new member.
7778 * valprint.h (struct value_print_options) <finish_print>: New
7779 member.
7780
7781 2019-05-28 Tom Tromey <tromey@adacore.com>
7782
7783 * ada-lang.c (ada_remove_Xbn_suffix)
7784 (find_old_style_renaming_symbol)
7785 (parse_old_style_renaming): Remove.
7786 (ada_find_renaming_symbol): Don't call
7787 find_old_style_renaming_symbol.
7788 (ada_is_renaming_symbol): Rename from
7789 ada_find_renaming_symbol. Remove "block" parameter. Return
7790 bool. Now static.
7791 (ada_read_var_value): Update and simplify.
7792 * ada-exp.y (write_var_or_type): Remove old code.
7793
7794 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7795
7796 PR gdb/25010
7797 * event-top.c: Remove include comment.
7798 * inflow.c (class scoped_ignore_sigttou): Move from here...
7799 * inflow.h (class scoped_ignore_sigttou): ...to here.
7800 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7801 * top.c: Remove include comment.
7802
7803 2019-05-27 Tom Tromey <tom@tromey.com>
7804
7805 * NEWS: Fix typo.
7806
7807 2019-05-22 Tom Tromey <tromey@adacore.com>
7808
7809 * target.c (target_follow_exec): Constify parameter.
7810 * target-delegates.c: Rebuild.
7811 * remote.c (remote_target::follow_exec): Constify parameter.
7812 * infrun.c (follow_exec): Constify parameter.
7813 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7814 (target_follow_exec): Likewise.
7815
7816 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7817
7818 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7819 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7820
7821 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7822
7823 * NEWS: Add debugredirect and testsuite sections.
7824
7825 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7826
7827 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7828 target descriptions using exclusively floating point register name
7829 aliases.
7830
7831 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 PR gdb/18644:
7834 * f-lang.c (build_fortran_types): Handle the case where
7835 gdbarch_floatformat_for_type returns a nullptr.
7836
7837 2019-05-21 Tom de Vries <tdevries@suse.de>
7838
7839 PR cli/24587
7840 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7841
7842 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 PR gdb/18644:
7845 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7846 16-byte floats.
7847 * i386-tdep.c (i386_floatformat_for_type): Use
7848 floatformats_ia64_quad for the 16-byte floating point component
7849 within a fortran 32-byte complex number.
7850
7851 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7854 delete default constructor.
7855 (find_partial_die): Update to return const struct.
7856 (partial_die_parent_scope): Move variable declaration into scope
7857 of its use and change its type to auto.
7858 (guess_partial_die_structure_name): Likewise.
7859 (partial_die_info::fixup): Likewise.
7860
7861 2019-05-17 Tom Tromey <tromey@adacore.com>
7862
7863 * source.c (find_and_open_source): Remove cast.
7864
7865 2019-05-17 Tom Tromey <tromey@adacore.com>
7866
7867 * annotate.c (annotate_source): Make "filename" const.
7868 * annotate.h (annotate_source): Use const.
7869
7870 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7871
7872 * disasm.c (set_disassembler_options): Send errors to stderr.
7873
7874 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7875
7876 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7877 (cli_interp_base::set_logging): Check debug_redirect.
7878 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7879 * cli/cli-logging.c (debug_redirect): Add static variable.
7880 (pop_output_files): Add default param.
7881 (handle_redirections): Print debug setting.
7882 (show_logging_command): Likewise.
7883 (_initialize_cli_logging): Add debugredirect command.
7884 * interps.c (current_interp_set_logging): Add debug_redirect
7885 parameter.
7886 * interps.h (set_logging): Add debug_redirect parameter.
7887 (current_interp_set_logging): Likewise.
7888 * mi/mi-common.h: Likewise.
7889 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7890
7891 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7892 Tom Tromey <tromey@adacore.com>
7893
7894 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7895 directly.
7896 * cli/cli-interp.h (make_logging_output): Remove declaration.
7897 * cli/cli-logging.c (make_logging_output): Remove function.
7898 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7899 directly.
7900 * ui-file.c (tee_file::tee_file): Remove bools.
7901 (tee_file::~tee_file): Remove deletes.
7902 * ui-file.h (tee_file): Remove bools.
7903
7904 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7905
7906 * mi/mi-cmds.h (mi_cmd_complete): New function.
7907 * mi/mi-main.c (mi_cmd_complete): Likewise.
7908 * mi/mi-cmds.c: Define new MI command -complete.
7909 * NEWS: Mention new -complete command.
7910
7911 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7912
7913 * completer.h (complete): New function.
7914 * completer.c (complete): Likewise.
7915 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7916 function defined in completer.h.
7917
7918 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7919
7920 * MAINTAINERS (Write After Approval): Add myself.
7921
7922 2019-05-17 Tom de Vries <tdevries@suse.de>
7923
7924 PR gdb/24094
7925 * dwarf2read.c (struct cu_partial_die_info): New struct.
7926 (find_partial_die): Return cu_partial_die_info.
7927 (partial_die_parent_scope, guess_partial_die_structure_name)
7928 (partial_die_info::fixup): Handle new return type of find_partial_die.
7929
7930 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7931
7932 PR breakpoints/24541
7933 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7934 "std::string", simplifying the algorithm.
7935
7936 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7937
7938 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7939 (stap_static_probe_ops::get_probes): Likewise.
7940
7941 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7942
7943 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7944 '-')" and "else if".
7945 (stap_parse_single_operand): Join checks for
7946 "gdbarch_stap_parse_special_token_p" and
7947 "gdbarch_stap_parse_special_token" in the same "if" statement.
7948 Invert check when verifying for operation on register
7949 displacement.
7950
7951 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7952
7953 * stap-probe.c (stap_get_opcode): Update comment.
7954 (stap_get_expected_argument_type): Likewise.
7955 (handle_stap_probe): Likewise.
7956
7957 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7958
7959 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7960 return type to 'bool'. Adjust comment. Use 'bool' when
7961 appropriate.
7962 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7963 * stap-probe.c (stap_parse_argument_1): Likewise.
7964 (stap_is_operator): Likewise.
7965 (stap_is_generic_prefix): Likewise.
7966 (stap_is_register_prefix): Likewise.
7967 (stap_is_register_indirection_prefix): Likewise.
7968 (stap_is_integer_prefix): Likewise.
7969 (stap_generic_check_suffix): Likewise.
7970 (stap_check_integer_suffix): Likewise.
7971 (stap_check_register_suffix): Likewise.
7972 (stap_check_register_indirection_suffix): Likewise.
7973 (stap_parse_register_operand): Likewise.
7974 (stap_parse_single_operand): Likewise.
7975 (stap_parse_argument_1): Likewise.
7976 (stap_probe::get_argument_count): Likewise.
7977 (stap_is_operator): Likewise.
7978
7979 2019-05-16 Tom Tromey <tromey@adacore.com>
7980
7981 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7982 keyword to foreach.
7983
7984 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * linux-thread-db.c (try_thread_db_load_1): Change return type
7987 to bool.
7988 (try_thread_db_load): Likewise.
7989 (try_thread_db_load_from_pdir_1): Likewise.
7990 (try_thread_db_load_from_pdir): Likewise.
7991 (try_thread_db_load_from_sdir): Likewise.
7992 (try_thread_db_load_from_dir): Likewise.
7993 (thread_db_load_search): Likewise.
7994 (has_libpthread): Likewise.
7995 (thread_db_load): Likewise.
7996
7997 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7998
7999 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8000 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8001 NULL, and complain/return if that's the case.
8002
8003 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8004
8005 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8006 (advance, posn, abstract_read_memory): New functions.
8007 [struct mem_read_abstraction]: New struct.
8008 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8009
8010 2019-05-14 Tom Tromey <tromey@adacore.com>
8011
8012 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8013 value is not lval_memory.
8014
8015 2019-05-14 Tom Tromey <tromey@adacore.com>
8016
8017 * solib.c (info_sharedlibrary_command): Style the file name.
8018
8019 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8020
8021 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8022 (aarch64_vnv_type): Likewise.
8023 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8024 * common/tdesc.c: Likewise.
8025 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8026 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8027 * features/aarch64-fpu.xml: Add ieee half view.
8028 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8029 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8030 * gdbtypes.h (struct builtin_type): Likewise.
8031 (struct objfile_type): Likewise.
8032
8033 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8034
8035 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8036 typo.
8037 * location.h (string_to_event_location): Likewise.
8038
8039 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8040
8041 GDB 8.3 released.
8042
8043 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8046 New variable declaration.
8047 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8048 New variable.
8049 (print_one_breakpoint): Use ui_out::test_flags and new global
8050 variable to compute use_fixed_output.
8051 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8052 Remove.
8053 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8054 (mi_multi_location_breakpoint_output_fixed): Remove.
8055 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8056 new variable.
8057 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8058 fix_multi_location_breakpoint_output flag if version >= 3.
8059 * ui-out.h (enum ui_out_flag)
8060 <fix_multi_location_breakpoint_output>: New enumerator.
8061
8062 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8065
8066 2019-05-10 Tom Tromey <tromey@adacore.com>
8067
8068 * ada-lang.c (catch_ada_completer): New function.
8069 (_initialize_ada_language): Use it.
8070
8071 2019-05-10 Tom Tromey <tromey@adacore.com>
8072
8073 * thread.c (print_thread_info): Make "requested_threads" const.
8074 * gdbthread.h (print_thread_info): Make "requested_threads"
8075 const.
8076 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8077 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8078
8079 2019-05-08 Tom Tromey <tom@tromey.com>
8080
8081 * gdbtypes.c (objfile_type_data): Change type.
8082 (objfile_type, _initialize_gdbtypes): Update.
8083
8084 2019-05-08 Tom Tromey <tom@tromey.com>
8085
8086 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8087 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8088 (_initialize_dwarf2_frame): Update.
8089
8090 2019-05-08 Tom Tromey <tom@tromey.com>
8091
8092 * objc-lang.c (objc_objfile_data): Change type.
8093 (find_methods): Update.
8094 (_initialize_objc_lang): Remove.
8095
8096 2019-05-08 Tom Tromey <tom@tromey.com>
8097
8098 * stabsread.c (rs6000_builtin_type_data): Change type.
8099 (rs6000_builtin_type, _initialize_stabsread): Update.
8100
8101 2019-05-08 Tom Tromey <tom@tromey.com>
8102
8103 * mips-tdep.c (mips_pdr_data): Remove.
8104 (_initialize_mips_tdep): Update.
8105
8106 2019-05-08 Tom Tromey <tom@tromey.com>
8107
8108 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8109 (hppa_init_objfile_priv_data, read_unwind_info)
8110 (find_unwind_entry, _initialize_hppa_tdep): Update.
8111
8112 2019-05-08 Tom Tromey <tom@tromey.com>
8113
8114 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8115 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8116 on obstack.
8117 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8118
8119 2019-05-08 Tom Tromey <tom@tromey.com>
8120
8121 * mdebugread.c (basic_type_data): Change type.
8122 (basic_type, _initialize_mdebugread): Update.
8123
8124 2019-05-08 Tom Tromey <tom@tromey.com>
8125
8126 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8127
8128 2019-05-08 Tom Tromey <tom@tromey.com>
8129
8130 * nto-tdep.c (nto_inferior_data_reg): Change type.
8131 (nto_inferior_data): Update.
8132 (nto_inferior_data_cleanup, nto_new_inferior_data)
8133 (_initialize_nto_tdep): Remove.
8134 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8135
8136 2019-05-08 Tom Tromey <tom@tromey.com>
8137
8138 * ada-lang.c (struct ada_inferior_data): Add initializers.
8139 (ada_inferior_data): Change type.
8140 (ada_inferior_data_cleanup): Remove.
8141 (get_ada_inferior_data, ada_inferior_exit)
8142 (struct ada_pspace_data): Add initializers, destructor.
8143 (ada_pspace_data_handle): Change type.
8144 (get_ada_pspace_data): Update.
8145 (ada_pspace_data_cleanup): Remove.
8146
8147 2019-05-08 Tom Tromey <tom@tromey.com>
8148
8149 * coffread.c (struct coff_symfile_info): Add initializers.
8150 (coff_objfile_data_key): Move lower. Change type.
8151 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8152 Update.
8153 (coff_free_info): Remove.
8154
8155 2019-05-08 Tom Tromey <tom@tromey.com>
8156
8157 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8158 (fbsd_pspace_data_handle): Move lower. Change type.
8159 (get_fbsd_pspace_data): Update.
8160 (fbsd_pspace_data_cleanup): Remove.
8161 (_initialize_fbsd_tdep): Update.
8162
8163 2019-05-08 Tom Tromey <tom@tromey.com>
8164
8165 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8166 (get_ada_tasks_pspace_data): Update.
8167 (ada_tasks_pspace_data_cleanup): Remove.
8168 (_initialize_tasks): Update.
8169 (ada_tasks_inferior_data_handle): Change type.
8170 (get_ada_tasks_inferior_data): Update.
8171 (ada_tasks_inferior_data_cleanup): Remove.
8172 (struct ada_tasks_pspace_data): Add initializers.
8173
8174 2019-05-08 Tom Tromey <tom@tromey.com>
8175
8176 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8177 * symfile-debug.c (debug_sym_get_probes): Change type.
8178 * stap-probe.c (handle_stap_probe):
8179 (stap_static_probe_ops::get_probes): Change type.
8180 * probe.h (class static_probe_ops) <get_probes>: Change type.
8181 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8182 (parse_probes_in_pspace): Update.
8183 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8184 Update.
8185 (any_static_probe_ops::get_probes): Change type.
8186 * elfread.c (elfread_data): New typedef.
8187 (probe_key): Change type.
8188 (elf_get_probes): Likewise. Update.
8189 (probe_key_free): Remove.
8190 (_initialize_elfread): Update.
8191 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8192 Change type.
8193 (dtrace_process_dof_probe, dtrace_process_dof)
8194 (dtrace_static_probe_ops::get_probe): Change type.
8195
8196 2019-05-08 Tom Tromey <tom@tromey.com>
8197
8198 * xcoffread.c (struct xcoff_symfile_info): Rename from
8199 coff_symfile_info. Add initializers.
8200 (xcoff_objfile_data_key): Move lower. Change type.
8201 (XCOFF_DATA): Rewrite.
8202 (xcoff_free_info): Remove.
8203 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8204 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8205 (xcoff_initial_scan): Update.
8206
8207 2019-05-08 Tom Tromey <tom@tromey.com>
8208
8209 * solib-svr4.c (struct svr4_info): Add initializers and
8210 destructor.
8211 <probes_table>: Now an htab_up.
8212 (solib_svr4_pspace_data): Change type.
8213 (free_probes_table): Simplify.
8214 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8215 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8216 (probes_table_remove_objfile_probes, register_solib_event_probe)
8217 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8218 (_initialize_svr4_solib): Update.
8219
8220 2019-05-08 Tom Tromey <tom@tromey.com>
8221
8222 * remote.c (remote_pspace_data): Change type.
8223 (remote_pspace_data_cleanup): Remove.
8224 (get_remote_exec_file, set_pspace_remote_exec_file)
8225 (_initialize_remote): Update.
8226
8227 2019-05-08 Tom Tromey <tom@tromey.com>
8228
8229 * breakpoint.c (breakpoint_objfile_key): Change type.
8230 (get_breakpoint_objfile_data): Update.
8231 (free_breakpoint_objfile_data): Remove.
8232 (_initialize_breakpoint): Update.
8233
8234 2019-05-08 Tom Tromey <tom@tromey.com>
8235
8236 * linux-tdep.c (struct linux_info): Add initializers.
8237 (linux_inferior_data): Move. Change type.
8238 (invalidate_linux_cache_inf): Update.
8239 (linux_inferior_data_cleanup): Remove.
8240 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8241
8242 2019-05-08 Tom Tromey <tom@tromey.com>
8243
8244 * auxv.c (auxv_inferior_data): Move. Change type.
8245 (auxv_inferior_data_cleanup): Remove.
8246 (invalidate_auxv_cache_inf): Rewrite.
8247 (get_auxv_inferior_data, _initialize_auxv): Update.
8248
8249 2019-05-08 Tom Tromey <tom@tromey.com>
8250
8251 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8252 (symfile_debug_objfile_data_key): Change type.
8253 (symfile_debug_installed, debug_qf_has_symbols)
8254 (debug_qf_find_last_source_symtab)
8255 (debug_qf_forget_cached_source_info)
8256 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8257 (debug_qf_print_stats, debug_qf_dump)
8258 (debug_qf_expand_symtabs_for_function)
8259 (debug_qf_expand_all_symtabs)
8260 (debug_qf_expand_symtabs_with_fullname)
8261 (debug_qf_map_matching_symbols)
8262 (debug_qf_expand_symtabs_matching)
8263 (debug_qf_find_pc_sect_compunit_symtab)
8264 (debug_qf_map_symbol_filenames)
8265 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8266 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8267 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8268 (debug_sym_read_linetable, debug_sym_relocate): Update.
8269 (symfile_debug_free_objfile): Remove.
8270 (install_symfile_debug_logging, _initialize_symfile_debug):
8271 Update.
8272
8273 2019-05-08 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8276 allocate_on_obstack.
8277 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8278 (get_dwarf2_per_objfile): Update.
8279 (set_dwarf2_per_objfile): Remove.
8280 (dwarf2_has_info, dwarf2_get_section_info): Update.
8281 (dwarf2_free_objfile): Remove.
8282 (_initialize_dwarf2_read): Update.
8283
8284 2019-05-08 Tom Tromey <tom@tromey.com>
8285
8286 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8287 initializers.
8288 <unsupported_script_warning_printed,
8289 script_not_found_warning_printed>: Now bool.
8290 (auto_load_pspace_data): Change type.
8291 (~auto_load_pspace_info): Rename from
8292 auto_load_pspace_data_cleanup.
8293 (get_auto_load_pspace_data, init_loaded_scripts_info)
8294 (clear_section_scripts, maybe_print_unsupported_script_warning)
8295 (maybe_print_script_not_found_warning, _initialize_auto_load):
8296 Update.
8297
8298 2019-05-08 Tom Tromey <tom@tromey.com>
8299
8300 * objfiles.c (objfile_pspace_info): Add destructor and
8301 initializers.
8302 (objfiles_pspace_data): Change type.
8303 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8304 (get_objfile_pspace_data): Update.
8305 (objfiles_bfd_data): Change type.
8306 (get_objfile_bfd_data): Update.
8307 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8308
8309 2019-05-08 Tom Tromey <tom@tromey.com>
8310
8311 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8312 Change type.
8313 (get_catch_syscall_inferior_data): Update.
8314 (catch_syscall_inferior_data_cleanup): Remove.
8315 (_initialize_break_catch_syscall): Update.
8316
8317 2019-05-08 Tom Tromey <tom@tromey.com>
8318
8319 * inflow.c (struct terminal_info): Add destructor and
8320 initializers.
8321 (inflow_inferior_data): Change type.
8322 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8323 (get_inflow_inferior_data, inflow_inferior_exit)
8324 (swap_terminal_info, _initialize_inflow): Update.
8325
8326 2019-05-08 Tom Tromey <tom@tromey.com>
8327
8328 * target-dcache.c (target_dcache_cleanup): Remove.
8329 (target_dcache_aspace_key): Change type.
8330 (target_dcache_init_p, target_dcache_invalidate)
8331 (target_dcache_get, target_dcache_get_or_init)
8332 (_initialize_target_dcache): Update.
8333 * dcache.h (struct dcache_deleter): New.
8334
8335 2019-05-08 Tom Tromey <tom@tromey.com>
8336
8337 * symtab.c (struct symbol_cache): Add destructor and
8338 initializers.
8339 (symbol_cache_key): Move. Change type.
8340 (make_symbol_cache, free_symbol_cache): Remove.
8341 (get_symbol_cache): Update.
8342 (symbol_cache_cleanup): Remove.
8343 (ALL_PSPACES, symbol_cache_flush)
8344 (maintenance_print_symbol_cache)
8345 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8346 Update.
8347
8348 2019-05-08 Tom Tromey <tom@tromey.com>
8349
8350 * symtab.c (struct main_info): Add destructor and initializers.
8351 (main_progspace_key): Move. Change type.
8352 (get_main_info): Update.
8353 (main_info_cleanup): Remove.
8354 (_initialize_symtab): Update.
8355
8356 2019-05-08 Tom Tromey <tom@tromey.com>
8357
8358 * registry.h (DECLARE_REGISTRY): Define the _key class.
8359
8360 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * NEWS: Merge two 'New commands' sections.
8363
8364 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8365
8366 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8367 parameter and use Ada language definition instead.
8368 (ada_val_print_ptr): Remove unused language parameter.
8369 (ada_val_print_num): Remove language parameter and use Ada language
8370 definition instead.
8371 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8372 parameter.
8373 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8374 parameter and use Ada language definition instead.
8375 (ada_val_print_1): Update all ada_val_print_xxx calls.
8376 Remove language parameter.
8377 (ada_val_print): Update ada_val_print_1 call.
8378
8379 2019-05-08 Tom Tromey <tromey@adacore.com>
8380
8381 * remote.c (remote_hw_watchpoint_limit)
8382 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8383 Now static.
8384
8385 2019-05-08 Tom Tromey <tromey@adacore.com>
8386
8387 * maint.c (_initialize_maint_cmds): Move initialization code to
8388 remote.c.
8389 (watchdog, show_watchdog): Move to remote.c.
8390 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8391 "watchdog" static.
8392 (_initialize_remote): Move initialization code from maint.c.
8393 * defs.h (watchdog): Don't declare.
8394
8395 2019-05-08 Tom Tromey <tromey@adacore.com>
8396
8397 * tui/tui-interp.c: Include main.h.
8398 * interps.c: Include main.h.
8399 * main.h (interpreter_p): Declare.
8400 * defs.h (interpreter_p): Don't declare.
8401
8402 2019-05-08 Tom Tromey <tromey@adacore.com>
8403
8404 * dwarf2loc.c: Include dwarf2read.h.
8405 * defs.h (read_unsigned_leb128): Don't declare.
8406 * dwarf2read.h (read_unsigned_leb128): Declare.
8407
8408 2019-05-08 Tom Tromey <tromey@adacore.com>
8409
8410 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8411 method.
8412
8413 2019-05-08 Tom Tromey <tromey@adacore.com>
8414
8415 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8416 when no wrap column is set.
8417
8418 2019-05-08 Tom Tromey <tromey@adacore.com>
8419
8420 * c-lang.c (c_get_string): Handle non-C-style arrays.
8421
8422 2019-05-08 Tom Tromey <tromey@adacore.com>
8423
8424 * typeprint.c (print_offset_data::update): Print the bit offset,
8425 not the number of bits remaining.
8426
8427 2019-05-08 Tom Tromey <tromey@adacore.com>
8428
8429 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8430 padding at end of comment.
8431
8432 2019-05-08 Tom Tromey <tromey@adacore.com>
8433
8434 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8435 Compare main types.
8436
8437 2019-05-06 Tom Tromey <tom@tromey.com>
8438
8439 * common/scoped_mmap.c: Include common-defs.h.
8440 * common/scoped_mmap.h: Don't include config.h.
8441
8442 2019-05-04 Tom Tromey <tom@tromey.com>
8443
8444 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8445 (struct aarch64_call_info): Add initializers.
8446 <si>: Now a std::vector.
8447 (pass_on_stack, aarch64_push_dummy_call): Update.
8448
8449 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8450 Tom Tromey <tom@tromey.com>
8451
8452 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8453 (ppc_threads): Now a std::vector. Now static.
8454 (hwdebug_find_thread_points_by_tid)
8455 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8456 Update.
8457
8458 2019-05-04 Tom Tromey <tom@tromey.com>
8459
8460 * arc-tdep.c (arc_tdesc_init): Return bool.
8461
8462 2019-05-04 Tom Tromey <tom@tromey.com>
8463
8464 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8465 Use gdb_assert_not_reached.
8466
8467 2019-05-04 Tom Tromey <tom@tromey.com>
8468
8469 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8470 "false".
8471
8472 2019-05-04 Tom Tromey <tom@tromey.com>
8473
8474 * arc-tdep.c (arc_tdesc_init): Use bool.
8475
8476 2019-05-04 Tom Tromey <tom@tromey.com>
8477
8478 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8479
8480 2019-05-04 Tom Tromey <tom@tromey.com>
8481
8482 * cli/cli-cmds.c (valid_command_p): Return bool.
8483
8484 2019-05-04 Tom Tromey <tom@tromey.com>
8485
8486 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8487 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8488
8489 2019-05-04 Raul Tambre <raul@tambre.ee>
8490
8491 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8492 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8493 operator for comparison.
8494
8495 2019-05-04 Tom Tromey <tom@tromey.com>
8496
8497 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8498 (lookup_partial_symbol, print_partial_symbols)
8499 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8500 (psymbol_compare): Update.
8501 (add_psymbol_to_bcache): Clear the entire psymbol.
8502 (maintenance_check_psymtabs): Update.
8503 * psympriv.h (struct partial_symbol): Don't derive from
8504 general_symbol_info.
8505 <obj_section, unrelocated_address, address,
8506 set_unrelocated_address>: Update.
8507 <ginfo>: New member.
8508 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8509 (debug_names::write_psymbols): Update.
8510
8511 2019-05-04 Tom de Vries <tdevries@suse.de>
8512
8513 * contrib/cc-with-tweaks.sh: Support -n arg.
8514
8515 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8516
8517 * corelow.c (core_target::detach): Ensure frame cache and
8518 register caches are cleared.
8519 inferior.c (exit_inferior_1): Likewise.
8520
8521 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8522 Tom Tromey <tom@tromey.com>
8523
8524 * dictionary.c (collate_pending_symbols_by_language): Remove
8525 "struct" from foreach.
8526 * symtab.c (lookup_global_symbol_from_objfile)
8527 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8528 foreach.
8529 * ser-tcp.c (net_open): Remove "struct" from foreach.
8530 * objfiles.c (objfile_relocate, objfile_rebase)
8531 (objfile_has_symbols): Remove "struct" from foreach.
8532 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8533 from foreach.
8534 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8535 foreach.
8536 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8537 "struct" from foreach.
8538 * ada-lang.c (create_excep_cond_exprs)
8539 (ada_exception_catchpoint_cond_string): Remove "struct" from
8540 foreach.
8541
8542 2019-05-03 Tom Tromey <tromey@adacore.com>
8543
8544 * ada-exp.y (convert_char_literal): Check suffix of each
8545 enumerator.
8546
8547 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8548
8549 PR ada/21406:
8550 * ada-exp.y (yywrap): Don't define.
8551 * ada-lex.l (%option): Add noyywrap
8552 (yywrap): Remove.
8553
8554 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8555
8556 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8557 _WIN32_WINNT to the XP level, unless already defined to a higher
8558 level.
8559
8560 * unittests/parse-connection-spec-selftests.c:
8561 * ser-tcp.c:
8562 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8563 override.
8564
8565 * symfile.c (find_separate_debug_file): Remove colon from the
8566 drive spec of DOS/Windows file names of the target, so that the
8567 file name produced from DEBUGDIR and the target's directory will
8568 be valid on DOS/Windows systems.
8569
8570 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8571
8572 * rust-lang.c (val_print_struct): Handle printing structures
8573 containing strings.
8574
8575 2019-05-02 Tom Tromey <tromey@adacore.com>
8576
8577 * valarith.c (_initialize_valarith): Remove.
8578
8579 2019-05-01 Tom Tromey <tromey@adacore.com>
8580
8581 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8582 bitfields.
8583
8584 2019-05-01 Tom Tromey <tromey@adacore.com>
8585
8586 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8587 for big-endian copies.
8588
8589 2019-04-30 Ali Tamur <tamur@google.com>
8590 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8591 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8592 (read_3_bytes): New function.
8593
8594 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8595
8596 * windows-nat.c (main_thread_id): Delete.
8597 (handle_output_debug_string): Replace main_thread_id by
8598 current_event.dwThreadId.
8599 (fake_create_process): Likewise.
8600 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8601 Do not set main_thread_id.
8602 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8603 current_event.dwThreadId.
8604 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8605
8606 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8607
8608 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8609 Use current_event.dwThreadId instead of main_thread_id.
8610
8611 2019-04-30 Tom Tromey <tromey@adacore.com>
8612
8613 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8614 (create_excep_cond_exprs): Iterate over program spaces.
8615 (ada_exception_catchpoint_cond_string): Examine all minimal
8616 symbols for exception types.
8617
8618 2019-04-30 Tom Tromey <tromey@adacore.com>
8619
8620 PR c++/24470:
8621 * dwarf2read.c (process_structure_scope): Handle case where type
8622 has template parameters but no symbol was created.
8623
8624 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8625 Chris January <chris.january@arm.com>
8626
8627 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8628 qualifier.
8629 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8630
8631 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8632
8633 * f-typeprint.c (f_print_type): Update rules for printing
8634 whitespace.
8635 (f_type_print_varspec_suffix): Likewise.
8636
8637 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8638 Chris January <chris.january@arm.com>
8639
8640 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8641 function arguments.
8642
8643 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * f-lang.c (build_fortran_types): Change name of void type to
8646 lower case.
8647 * f-typeprint.c (f_type_print_base): Print the name of the void
8648 type, rather than a fixed string.
8649 * f-valprint.c (f_decorations): Use lower case void string.
8650
8651 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8652 Chris January <chris.january@arm.com>
8653
8654 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8655 types for Fortran.
8656
8657 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8658 Chris January <chris.january@arm.com>
8659 David Lecomber <david.lecomber@arm.com>
8660
8661 * f-exp.y (BINOP_INTRINSIC): New token.
8662 (exp): New parser rule handling BINOP_INTRINSIC.
8663 (f77_keywords): Add new builtin procedures.
8664 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8665 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8666 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8667 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8668 (print_unop_subexp_f): New function.
8669 (print_binop_subexp_f): New function.
8670 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8671 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8672 (dump_subexp_body_f): Likewise.
8673 (operator_check_f): Likewise.
8674 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8675 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8676
8677 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8680 UNOP_KIND.
8681 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8682 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8683 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8684 (operator_length_f): New fuction.
8685 (print_subexp_f): New function.
8686 (op_name_f): New function.
8687 (dump_subexp_body_f): New function.
8688 (operator_check_f): New function.
8689 (exp_descriptor_f): Replace standard expression handling functions
8690 with new functions.
8691 * gdb/fortran-operator.def: New file.
8692 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8693 * gdb/std-operator.def: Remove UNOP_KIND.
8694
8695 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8696
8697 * std-operator.def: Remove unbalanced, stray double quote
8698 character.
8699
8700 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8701 Chris January <chris.january@arm.com>
8702 Daniel Everett <daniel.everett@arm.com>
8703 Nick Forrington <nick.forrington@arm.com>
8704 Richard Bunt <richard.bunt@arm.com>
8705
8706 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8707 of depth when printing anonymous structs or unions.
8708 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8709 Don't print either the top-level value, or the children if the
8710 max-depth is exceeded.
8711 (ppscm_print_children): When printing the key of a map, allow one
8712 extra level of depth.
8713 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8714 print either the top-level value, or the children if the max-depth
8715 is exceeded.
8716 (print_children): When printing the key of a map, allow one extra
8717 level of depth.
8718 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8719 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8720 (user_print_options): Initialise max_depth field.
8721 (val_print_scalar_or_string_type_p): New function.
8722 (val_print): Check to see if the max depth has been reached.
8723 (val_print_check_max_depth): Define new function.
8724 (show_print_max_depth): New function.
8725 (_initialize_valprint): Add 'print max-depth' option.
8726 * valprint.h (struct value_print_options) <max_depth>: New field.
8727 (val_print_check_max_depth): Declare new function.
8728 * NEWS: Document new feature.
8729
8730 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * ada-lang.c (ada_language_defn): Initialise new field.
8733 * c-lang.c (c_is_string_type_p): New function.
8734 (c_language_defn): Initialise new field.
8735 (cplus_language_defn): Initialise new field.
8736 (asm_language_defn): Initialise new field.
8737 (minimal_language_defn): Initialise new field.
8738 * c-lang.h (c_is_string_type_p): Declare new function.
8739 * d-lang.c (d_language_defn): Initialise new field.
8740 * f-lang.c (f_is_string_type_p): New function.
8741 (f_language_defn): Initialise new field.
8742 * go-lang.c (go_is_string_type_p): New function.
8743 (go_language_defn): Initialise new field.
8744 * language.c (default_is_string_type_p): New function.
8745 (unknown_language_defn): Initialise new field.
8746 (auto_language_defn): Initialise new field.
8747 * language.h (struct language_defn) <la_is_string_type_p>: New
8748 member variable.
8749 (default_is_string_type_p): Declare new function.
8750 * m2-lang.c (m2_language_defn): Initialise new field.
8751 * objc-lang.c (objc_language_defn): Initialise new field.
8752 * opencl-lang.c (opencl_language_defn): Initialise new field.
8753 * p-lang.c (pascal_is_string_type_p): New function.
8754 (pascal_language_defn): Initialise new field.
8755 * rust-lang.c (rust_is_string_type_p): New function.
8756 (rust_language_defn): Initialise new field.
8757
8758 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8759
8760 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8761 New field.
8762 * ada-lang.c (ada_language_defn): Initialise new field.
8763 * c-lang.c (c_language_defn): Likewise.
8764 (cplus_language_defn): Likewise.
8765 (asm_language_defn): Likewise.
8766 (minimal_language_defn): Likewise.
8767 * d-lang.c (d_language_defn): Likewise.
8768 * f-lang.c (f_language_defn): Likewise.
8769 * go-lang.c (go_language_defn): Likewise.
8770 * language.c (unknown_language_defn): Likewise.
8771 (auto_language_defn): Likewise.
8772 * m2-lang.c (m2_language_defn): Likewise.
8773 * objc-lang.c (objc_language_defn): Likewise.
8774 * opencl-lang.c (opencl_language_defn): Likewise.
8775 * p-lang.c (pascal_language_defn): Likewise.
8776 * rust-lang.c (rust_language_defn): Likewise.
8777
8778 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 * ada-lang.c (ada_is_character_type): Change return type to bool.
8781 (ada_is_string_type): Likewise.
8782 * ada-lang.h (ada_is_character_type): Update declaration
8783 (ada_is_string_type): Likewise.
8784
8785 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8786
8787 Support style in 'frame|thread apply'
8788
8789 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8790 * record.c (record_start, record_stop): Update callers of
8791 execute_command_to_string with false.
8792 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8793 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8794 methods.
8795 (class string_file): New constructor with term_out parameter.
8796 Override methods term_out and can_emit_style_escape. New member
8797 term_out.
8798 (class stdio_file): Override can_emit_style_escape.
8799 (class tee_file): Override term_out and can_emit_style_escape.
8800 * utils.h (can_emit_style_escape): Remove.
8801 * utils.c (can_emit_style_escape): Likewise.
8802 Update all callers of can_emit_style_escape (SOMESTREAM) to
8803 SOMESTREAM->can_emit_style_escape.
8804 * source-cache.c (source_cache::get_source_lines): Likewise.
8805 * stack.c (frame_apply_command_count): Call execute_command_to_string
8806 passing the term_out characteristic of the current gdb_stdout.
8807 * thread.c (thr_try_catch_cmd): Likewise.
8808 * top.c (execute_command_to_string): pass term_out parameter
8809 to construct the string_file for the command output.
8810 * ui-file.c (term_cli_styling): New function (most code moved
8811 from utils.c can_emit_style_escape).
8812 (string_file::string_file, string_file::can_emit_style_escape,
8813 stdio_file::can_emit_style_escape, tee_file::term_out,
8814 tee_file::can_emit_style_escape): New functions.
8815
8816 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8817
8818 * NEWS: Mention the new set|show may-call-functions.
8819 * infcall.c (may_call_functions_p): New variable.
8820 (show_may_call_functions_p): New function.
8821 (call_function_by_hand_dummy): Throws an error if not
8822 may-call-functions.
8823 (_initialize_infcall): Call add_setshow_boolean_cmd for
8824 may-call-functions.
8825
8826 2019-04-25 Keith Seitz <keiths@redhat.com>
8827
8828 PR c++/24367
8829 * cp-support.c (inspect_type): Don't attempt substitutions
8830 of symbol with the same name.
8831
8832 2019-04-25 Tom Tromey <tromey@adacore.com>
8833
8834 PR gdb/24475:
8835 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8836 static.
8837
8838 2019-04-25 Tom Tromey <tromey@adacore.com>
8839
8840 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8841 rvalue reference.
8842 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8843 (gdb_xml_parser::parse): Use std::move.
8844 * python/python-internal.h (gdbpy_convert_exception): Take a const
8845 reference.
8846 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8847 std::move.
8848 * python/py-utils.c (gdbpy_convert_exception): Take a const
8849 reference.
8850 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8851 Use std::move.
8852 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8853 Use std::move.
8854 * mi/mi-main.c (mi_print_exception): Take a const reference.
8855 * main.c (handle_command_errors): Take a const reference.
8856 * linespec.c (parse_linespec): Use std::move.
8857 * infcall.c (run_inferior_call): Use std::move.
8858 (call_function_by_hand_dummy): Use std::move.
8859 * exec.c (try_open_exec_file): Use std::move.
8860 * exceptions.h (exception_print, exception_fprintf)
8861 (exception_print_same): Update.
8862 * exceptions.c (print_exception, exception_print)
8863 (exception_fprintf, exception_print_same): Change parameters to
8864 const reference.
8865 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8866 * common/new-op.c: Use std::move.
8867 * common/common-exceptions.h (struct gdb_exception): Add move
8868 constructor.
8869 (struct gdb_exception_error, struct gdb_exception_quit, struct
8870 gdb_quit_bad_alloc): Change constructor to move constructor.
8871 (throw_exception): Change parameter to rvalue reference.
8872 * common/common-exceptions.c (throw_exception): Take rvalue
8873 reference.
8874 * cli/cli-interp.c (safe_execute_command): Use std::move.
8875 * breakpoint.c (insert_bp_location, location_to_sals): Use
8876 std::move.
8877
8878 2019-04-25 Tom Tromey <tromey@adacore.com>
8879
8880 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8881 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8882 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8883 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8884 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8885 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8886 guile/scm-value.c: Use unpack.
8887 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8888 gdbscm_gdb_exception.
8889 (gdbscm_throw_gdb_exception): Likewise.
8890 (struct gdbscm_gdb_exception): New.
8891 (unpack): New function.
8892 (gdbscm_wrap): Use unpack.
8893
8894 2019-04-25 Tom Tromey <tromey@adacore.com>
8895
8896 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8897 (gdb_rl_callback_handler): Use std::move.
8898 * common/common-exceptions.h (struct gdb_exception): Add move
8899 assignment operator.
8900 (throw_exception_sjlj): Change "exception" to const reference.
8901 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8902 (throw_exception_sjlj): Change "exception" to const reference.
8903
8904 2019-04-25 Tom Tromey <tromey@adacore.com>
8905
8906 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8907 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8908 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8909 Update.
8910 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8911 Update.
8912 * mi/mi-interp.c (mi_interp::exec): Update.
8913 * linespec.c (parse_linespec): Update.
8914 * infcall.c (run_inferior_call): Update.
8915 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8916 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8917 (gdbscm_lookup_global_symbol): Update.
8918 * guile/scm-param.c (gdbscm_parameter_value): Update.
8919 * guile/scm-frame.c (gdbscm_frame_read_register)
8920 (gdbscm_frame_read_var): Update.
8921 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8922 * exec.c (try_open_exec_file): Update.
8923 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8924 (gdb_rl_callback_handler): Update.
8925 * common/common-exceptions.h (exception_none): Don't declare.
8926 * common/common-exceptions.c (exception_none): Don't define.
8927 (struct catcher) <exception>: Update.
8928 * cli/cli-interp.c (safe_execute_command): Update.
8929 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8930
8931 2019-04-25 Ali Tamur <tamur@google.com>
8932
8933 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8934 (read_attribute_value): Likewise.
8935 (dwarf2_read_addr_index): Update comment.
8936 (read_str_index): Add DW_FORM_strx.
8937 (dwarf2_string_attr): Likewise.
8938 (dwarf2_const_value_attr): Likewise.
8939 (dump_die_shallow): Likewise.
8940 (dwarf2_fetch_constant_bytes): Likewise.
8941 (skip_form_bytes): Likewise.
8942 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8943
8944 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8945
8946 PR corefiles/11608
8947 PR corefiles/18187
8948 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8949 OFFSET. Verify if current mapping contains an ELF header.
8950 (linux_find_memory_regions_full): Adjust call to
8951 dump_mapping_p.
8952
8953 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8954 Kang Li <kanglictf@gmail.com>
8955
8956 PR gdb/21600
8957
8958 * dwarf2-frame.c (read_initial_length): Be consistent about using
8959 unsigned representation of length.
8960 (decode_frame_entry_1): Likewise. Check for wraparound of
8961 end pointer as well as buffer overflow.
8962
8963 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8964
8965 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8966 "vq".
8967
8968 2019-04-24 Tom Tromey <tromey@adacore.com>
8969
8970 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8971
8972 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8973
8974 * s12z-tdep.c (s12z_unwind_pc): Delete.
8975 (s12z_unwind_sp): Delete.
8976 (s12z_gdbarch_init): Don't register deleted functions with
8977 gdbarch.
8978
8979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8980
8981 * rl78-tdep.c (rl78_unwind_sp): Delete.
8982 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8983
8984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8987 (xstormy16_unwind_pc): Delete.
8988 (xstormy16_dummy_id): Delete.
8989 (xstormy16_gdbarch_init): Don't register deleted functions with
8990 gdbarch.
8991
8992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 * vax-tdep.c (vax_unwind_pc): Delete.
8995 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8996
8997 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8998
8999 * v850-tdep.c (v850_unwind_sp): Delete.
9000 (v850_unwind_pc): Delete.
9001 (v850_dummy_id): Delete.
9002 (v850_gdbarch_init): Don't register deleted functions with
9003 gdbarch.
9004
9005 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9008 (tilegx_unwind_pc): Delete.
9009 (tilegx_unwind_dummy_id): Delete.
9010 (tilegx_gdbarch_init): Don't register deleted functions with
9011 gdbarch.
9012
9013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9014
9015 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9016 (tic6x_dummy_id): Delete.
9017 (tic6x_gdbarch_init): Don't register deleted functions with
9018 gdbarch.
9019
9020 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * sparc-tdep.c (sparc_unwind_pc): Delete.
9023 (sparc32_gdbarch_init): Don't register deleted function with
9024 gdbarch.
9025
9026 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9027
9028 * sh-tdep.c (sh_unwind_sp): Delete.
9029 (sh_unwind_pc): Delete.
9030 (sh_dummy_id): Delete.
9031 (sh_gdbarch_init): Don't register deleted functions with
9032 gdbarch.
9033
9034 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9035
9036 * score-tdep.c (score_unwind_sp): Delete.
9037 (score_unwind_pc): Delete.
9038 (score_dummy_id): Delete.
9039 (score_gdbarch_init): Don't register deleted functions with
9040 gdbarch.
9041
9042 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * rx-tdep.c (rx_unwind_pc): Delete.
9045 (rx_unwind_sp): Delete.
9046 (rx_dummy_id): Delete.
9047 (rx_gdbarch_init): Don't register deleted functions with
9048 gdbarch. Update comment.
9049
9050 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9053 (rs6000_dummy_id): Delete.
9054 (rs6000_gdbarch_init): Don't register deleted functions with
9055 gdbarch.
9056
9057 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9058
9059 * or1k-tdep.c (or1k_dummy_id): Delete.
9060 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9061
9062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * nios2-tdep.c (nios2_dummy_id): Delete.
9065 (nios2_unwind_sp): Delete.
9066 (nios2_gdbarch_init): Don't register deleted functions with
9067 gdbarch.
9068
9069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * nds32-tdep.c (nds32_dummy_id): Delete.
9072 (nds32_unwind_pc): Delete.
9073 (nds32_unwind_sp): Delete.
9074 (nds32_gdbarch_init): Don't register deleted functions with
9075 gdbarch.
9076
9077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * msp430-tdep.c (msp430_unwind_pc): Delete.
9080 (msp430_unwind_sp): Delete.
9081 (msp430_dummy_id): Delete.
9082 (msp430_gdbarch_init): Don't register deleted functions with
9083 gdbarch.
9084
9085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9086
9087 * moxie-tdep.c (moxie_unwind_sp): Delete.
9088 (moxie_unwind_pc): Delete.
9089 (moxie_dummy_id): Delete.
9090 (moxie_gdbarch_init): Don't register deleted functions with
9091 gdbarch.
9092
9093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9094
9095 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9096 (mn10300_unwind_pc): Delete.
9097 (mn10300_unwind_sp): Delete.
9098 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9099 mn10300_unwind_sp.
9100 (mn10300_frame_unwind_init): Don't register deleted functions with
9101 gdbarch.
9102
9103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * mep-tdep.c (mep_unwind_pc): Delete.
9106 (mep_unwind_sp): Delete.
9107 (mep_dummy_id): Delete.
9108 (mep_gdbarch_init): Don't register deleted functions with
9109 gdbarch.
9110
9111 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9112
9113 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9114 (m68hc11_unwind_sp): Delete.
9115 (m68hc11_gdbarch_init): Don't register deleted functions with
9116 gdbarch.
9117
9118 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9119
9120 * m32r-tdep.c (m32r_unwind_sp): Delete.
9121 (m32r_unwind_pc): Delete.
9122 (m32r_dummy_id): Delete.
9123 (m32r_gdbarch_init): Don't register deleted functions with
9124 gdbarch.
9125
9126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * m32c-tdep.c (m32c_unwind_pc): Delete.
9129 (m32c_unwind_sp): Delete.
9130 (m32c_dummy_id): Delete.
9131 (m32c_gdbarch_init): Don't register deleted functions with
9132 gdbarch.
9133
9134 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9135
9136 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9137 (lm32_unwind_pc): Delete.
9138 (lm32_dummy_id): Delete.
9139 (lm32_gdbarch_init): Don't register deleted functions with
9140 gdbarch.
9141
9142 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9143
9144 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9145 (iq2000_unwind_pc): Delete.
9146 (iq2000_dummy_id): Delete.
9147 (iq2000_gdbarch_init): Don't register deleted functions with
9148 gdbarch.
9149
9150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 * nds32-tdep.c (nds32_type_align): Delete.
9153 (nds32_push_dummy_call): Use type_align instead.
9154
9155 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9156
9157 * arm-tdep.c (arm_type_align): Only handle vector override case.
9158 (arm_push_dummy_call): Use type_align.
9159 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9160
9161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9164 case.
9165 (pass_on_stack): Use type_align.
9166 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9167 function.
9168
9169 2019-04-23 Tom Tromey <tromey@adacore.com>
9170
9171 * dwarf2read.c (line_header::file_name_at): Remove unused
9172 overload.
9173
9174 2019-04-23 Tom de Vries <tdevries@suse.de>
9175
9176 PR gdb/24438
9177 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9178 invocation.
9179
9180
9181 2019-03-27 Ali Tamur <tamur@google.com>
9182
9183 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9184 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9185 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9186 (dwarf_expr_context::get_addr_index): Likewise
9187 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9188 (symbol_needs_eval_context::get_addr_index): Likewise
9189 (disassemble_dwarf_expression): Add DW_OP_addrx
9190 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9191 (read_cutu_die_from_dwo): Update comment
9192 (skip_one_die): Add DW_FORM_addrx
9193 (read_attribute_value): Likewise
9194 (var_decode_location): Add DW_OP_addrx
9195 (dwarf2_const_value_attr): Add DW_FORM_addrx
9196 (dump_die_shallow): Likewise
9197 (dwarf2_fetch_constant_bytes): Likewise
9198 (decode_locdesc): Add DW_OP_addrx
9199 (skip_form_bytes): Add DW_FORM_addrx
9200
9201 2019-04-22 Ali Tamur <tamur@google.com>
9202
9203 * MAINTAINERS (Write After Approval): Add self.
9204
9205 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9208 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9209 (open_symbol_file_object): Likewise.
9210 (svr4_default_sos): Add info parameter.
9211 (svr4_read_so_list): Likewise.
9212 (svr4_current_sos_direct): Adjust functions calls to pass down
9213 info.
9214 (svr4_current_sos_1): Add info parameter.
9215 (svr4_current_sos): Call get_svr4_info, pass info down to
9216 svr4_current_sos_1.
9217 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9218 get_svr4_info.
9219 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9220 get_svr4_info.
9221 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9222 to get_svr4_info.
9223 (probes_table_remove_objfile_probes): Likewise.
9224 (register_solib_event_probe): Add info parameter.
9225 (solist_update_incremental): Pass info parameter down to
9226 svr4_read_so_list.
9227 (disable_probes_interface): Add info parameter.
9228 (svr4_handle_solib_event): Pass current_program_space to
9229 get_svr4_info. Adjust disable_probes_interface cleanup.
9230 (svr4_create_probe_breakpoints): Add info parameter, pass it
9231 down to register_solib_event_probe.
9232 (svr4_create_solib_event_breakpoints): Add info parameter,
9233 pass it down to svr4_create_probe_breakpoints.
9234 (enable_break): Pass info down to
9235 svr4_create_solib_event_breakpoints.
9236 (svr4_solib_create_inferior_hook): Pass current_program_space to
9237 get_svr4_info.
9238 (svr4_clear_solib): Likewise.
9239
9240 2019-04-22 Pedro Alves <palves@redhat.com>
9241
9242 * solib-svr4.c (svr4_free_objfile_observer): New.
9243 (probe_and_action::objfile): New field.
9244 (probes_table_htab_remove_objfile_probes)
9245 (probes_table_remove_objfile_probes): New functions.
9246 (register_solib_event_probe): Add 'objfile' parameter. Store it
9247 in the new probe_and_action. Don't store the probe in 'lookup'.
9248 (svr4_create_probe_breakpoints): Pass objfile to
9249 register_solib_event_probe.
9250 (_initialize_svr4_solib): Register a free_objfile observer.
9251
9252 2019-04-19 Tom Tromey <tom@tromey.com>
9253
9254 * common/queue.h: Remove.
9255
9256 2019-04-19 Tom Tromey <tom@tromey.com>
9257
9258 * event-loop.c: Don't include "common/queue.h".
9259
9260 2019-04-19 Tom Tromey <tom@tromey.com>
9261
9262 * remote.c (remote_target): Use delete.
9263 * remote-notif.h: Include <list>, not "common/queue.h".
9264 (notif_client_p): Remove typedef.
9265 (remote_notif_state): Add constructor, destructor, initializer.
9266 <notif_queue>: Now a std::list.
9267 (remote_notif_state_xfree): Don't declare.
9268 * remote-notif.c (remote_notif_process, handle_notification)
9269 (remote_notif_state_allocate): Update.
9270 (~remote_notif_state): Rename from remote_notif_state_xfree.
9271
9272 2019-04-19 Tom Tromey <tom@tromey.com>
9273
9274 * symfile.c (reread_symbols): Update.
9275 * objfiles.c (objfile_register_static_link)
9276 (objfile_lookup_static_link): Update
9277 (~objfile) Don't delete static_links.
9278 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9279
9280 2019-04-19 Tom Tromey <tom@tromey.com>
9281
9282 * type-stack.h (struct type_stack) <insert>: Constify string.
9283 * type-stack.c (type_stack::insert): Constify string.
9284 * gdbtypes.h (lookup_template_type): Update.
9285 (address_space_name_to_int): Update.
9286 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9287 const.
9288 (lookup_template_type): Make name const.
9289 * c-exp.y: Update rules.
9290 (lex_one_token, classify_name, classify_inner_name)
9291 (c_print_token): Update.
9292 * p-exp.y: Update rules.
9293 (yylex): Update.
9294 * f-exp.y: Update rules.
9295 (yylex): Update.
9296 * d-exp.y: Update rules.
9297 (lex_one_token, classify_name, classify_inner_name): Update.
9298 * parse.c (write_dollar_variable, copy_name): Return std::string.
9299 * parser-defs.h (copy_name): Change return type.
9300 * m2-exp.y: Update rules.
9301 (yylex): Update.
9302 * go-exp.y (lex_one_token): Update.
9303 Update rules.
9304 (classify_unsafe_function, classify_packaged_name)
9305 (classify_name, yylex): Update.
9306
9307 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9308
9309 * configure.ac: add --enable-source-highlight switch.
9310 * configure: Regenerate.
9311 * top.c (print_gdb_version): plumb --enable-source-highlight
9312 status to "show configuration".
9313
9314 2019-04-19 Tom Tromey <tromey@adacore.com>
9315
9316 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9317 Check ADA_TYPE_P.
9318 (empty_record, ada_template_to_fixed_record_type_1)
9319 (template_to_static_fixed_type)
9320 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9321 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9322 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9323 macros.
9324
9325 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9326
9327 PR symtab/24423:
9328 * source.c (print_source_lines_base): Advance "iter" when a
9329 control character is seen.
9330
9331 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9332
9333 * inferior.h (struct infcall_suspend_state_deleter):
9334 Catch exception in destructor to avoid crash.
9335
9336 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9337
9338 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9339 close to the add_com "shell".
9340
9341 2019-04-18 Tom Tromey <tromey@adacore.com>
9342
9343 * process-stratum-target.h (class process_stratum_target)
9344 <stratum>: Add "final".
9345
9346 2019-04-17 Tom Tromey <tromey@adacore.com>
9347
9348 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9349 against nullptr before use.
9350
9351 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9352
9353 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9354
9355 2019-04-17 Jim Wilson <jimw@sifive.com>
9356 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9359 code read might fail, assume 4-byte breakpoint in that case.
9360
9361 2019-04-15 Leszek Swirski <leszeks@google.com>
9362
9363 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9364 rather than a hand-rolled POD check when checking for forced MEMORY
9365 classification.
9366
9367 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9368
9369 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9370 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9371 function.
9372 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9373 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9374 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9375 declaration.
9376
9377 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9378
9379 * aarch64-linux-nat.c
9380 (aarch64_linux_nat_target::thread_architecture): Add override.
9381 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9382 each VQ.
9383
9384 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9385
9386 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9387
9388 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9389
9390 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9391 target types of size 96-bits, add some additional comments, and
9392 check that the builtin type we found was the correct size.
9393
9394 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9395
9396 * utils.c (prompt_for_continue): Don't restore the styling at the
9397 end, as applied_style has the wrong value. This fixes styling in
9398 long lists of file names that are interrupted by the "Continue?"
9399 prompt.
9400
9401 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9404 * c-lang.c (c_language_defn): Likewise.
9405 (cplus_language_defn): Likewise.
9406 (asm_language_defn): Likewise.
9407 (minimal_language_defn): Likewise.
9408 * d-lang.c (d_language_defn): Likewise.
9409 * f-lang.c (f_language_defn): Likewise.
9410 * go-lang.c (go_language_defn): Likewise.
9411 * language.c (unknown_language_defn): Likewise.
9412 (auto_language_defn): Likewise.
9413 * language.h (struct language_defn): Remove la_magic field.
9414 (LANG_MAGIC): Delete.
9415 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9416 * objc-lang.c (objc_language_defn): Likewise.
9417 * opencl-lang.c (opencl_language_defn): Likewise.
9418 * p-lang.c (pascal_language_defn): Likewise.
9419 * rust-lang.c (rust_language_defn): Likewise.
9420
9421 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * riscv-tdep.c (riscv_type_align): New function.
9424 (riscv_type_alignment): Delete.
9425 (riscv_arg_location): Use 'type_align'.
9426 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9427
9428 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * gdbtypes.c (type_align): A struct with no non-static fields also
9431 has alignment of 1.
9432
9433 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9436 component to 0.
9437 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9438 member.
9439 (riscv_struct_info::analyse): New implementation using new
9440 analyse_inner member function.
9441 (riscv_struct_info::field_offset): New member function.
9442 (riscv_struct_info::m_offsets): New member variable.
9443 (riscv_struct_info::analyse_inner): New private member function,
9444 takes the old implementation of riscv_struct_info::analyse but
9445 extended to track field offsets.
9446 (riscv_call_arg_struct): Update the struct folding special cases
9447 to handle cases where empty C++ structs, which are non-zero
9448 length, are found.
9449 (riscv_arg_location): Initialise the length of each location, a
9450 non-zero length now indicates the location is in use.
9451 (riscv_push_dummy_call): Allow for the first location having a
9452 non-zero offset when setting up arguments.
9453 (riscv_return_value): Likewise, but for return values.
9454
9455 2019-04-11 Tom Tromey <tromey@adacore.com>
9456
9457 * utils.c (internal_vproblem): Make "msg" const.
9458
9459 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9460
9461 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9462 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9463 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9464 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9465
9466 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9467
9468 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9469 function.
9470 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9471 of amd64_collect_native_gregset.
9472 (amd64_linux_nat_target::store_registers): Likewise.
9473
9474 2019-04-10 Tom Tromey <tom@tromey.com>
9475
9476 * symtab.c (lookup_global_symbol_from_objfile)
9477 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9478 * objfiles.h (class separate_debug_iterator): New.
9479 (class separate_debug_range): New.
9480 (struct objfile) <separate_debug_objfiles>: New method.
9481 (objfile_separate_debug_iterate): Don't declare.
9482 * objfiles.c (separate_debug_iterator::operator++): Rename from
9483 objfile_separate_debug_iterate.
9484 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9485 iterator.
9486 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9487 iterator.
9488
9489 2019-04-10 Tom Tromey <tom@tromey.com>
9490
9491 * symfile.c (reread_symbols): Remove old comment.
9492 * objfiles.c (free_all_objfiles): Fix a typo.
9493
9494 2019-04-10 Tom Tromey <tom@tromey.com>
9495
9496 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9497 * minsyms.c (lookup_minimal_symbol): Use foreach.
9498 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9499 (lookup_minimal_symbol_solib_trampoline): Likewise.
9500 * symfile.c (reread_symbols): Use foreach.
9501
9502 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9503 Tom Tromey <tromey@adacore.com>
9504
9505 PR rust/24414:
9506 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9507 (rust_lex_int_test): Change "value" to be LONGEST.
9508 (rust_lex_tests): Add test for long integer literal.
9509
9510 2019-04-09 Tom Tromey <tromey@adacore.com>
9511
9512 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9513 to bool.
9514 (extended_remote_target::attach): Update.
9515 (remote_target::remote_notice_new_inferior): Update.
9516 (remote_target::add_current_inferior_and_thread): Update.
9517 * inferior.c (exit_inferior_1): Use "false".
9518 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9519
9520 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9523 the "start" command.
9524
9525 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9526
9527 * python/py-inferior.c (infpy_thread_from_thread_handle):
9528 Adjust comments to reflect renaming of thread_from_thread_handle
9529 to thread_from_handle. Adjust keywords. Fix type error message.
9530 (inferior_object_methods): Add thread_from_handle. Retain
9531 thread_from_thread_handle, but mark it as deprecated.
9532
9533 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9534
9535 * gdbthread.h (find_thread_by_handle): Revise declaration.
9536 * thread.c (find_thread_by_handle): Likewise. Adjust
9537 implementation too.
9538 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9539 support for buffer objects as handles.
9540
9541 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9542
9543 * python/py-infthread.c (thpy_thread_handle): New function.
9544 (thread_object_methods): Register thpy_thread_handle.
9545
9546 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9547
9548 * gdbthread.h (thread_to_thread_handle): Declare.
9549 * thread.c (gdbtypes.h): Include.
9550 (thread_to_thread_handle): New function.
9551
9552 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9553 (target_thread_info_to_thread_handle): Declare.
9554 * target.c (target_thread_info_to_thread_handle): New function.
9555 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9556 * target-delegates.c: Regenerate.
9557
9558 * linux-thread-db.c (class thread_db_target): Add method
9559 thread_info_to_thread_handle.
9560 (thread_db_target::thread_info_to_thread_handle): Define.
9561 * remote.c (class remote_target): Add new method
9562 thread_info_to_thread_handle.
9563 (remote_target::thread_info_to_thread_handle): Define.
9564
9565 2019-04-08 Pedro Alves <palves@redhat.com>
9566
9567 * common/common-exceptions.c (throw_exception): Don't create
9568 named object to throw; throw directly.
9569 (throw_it): Likewise. Don't initialize gdb_exception::message
9570 here, with new; pass FMT and AP to the ctor instead.
9571 * common/common-exceptions.h: Include <string>.
9572 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9573 const char *, va_list)): New ctor. Use std::make_shared.
9574 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9575 errors)): Delete.
9576 (gdb_exception_error::gdb_exception_error(enum errors, const char
9577 *, va_list)): New.
9578 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9579 Add assertion.
9580 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9581 errors)): Delete.
9582 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9583 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9584 Add assertion.
9585
9586 2019-04-08 Tom Tromey <tom@tromey.com>
9587
9588 * valops.c (value_rtti_indirect_type): Replace throw_exception
9589 with throw.
9590 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9591 with throw.
9592 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9593 throw.
9594 * target.c (target_translate_tls_address): Replace throw_exception
9595 with throw.
9596 * stack.c (frame_apply_command_count): Replace throw_exception
9597 with throw.
9598 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9599 throw.
9600 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9601 with throw.
9602 * rs6000-tdep.c (rs6000_frame_cache)
9603 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9604 * remote.c: Replace throw_exception with throw.
9605 * record-full.c (record_full_message, record_full_wait_1)
9606 (record_full_restore): Replace throw_exception with throw.
9607 * record-btrace.c:
9608 (get_thread_current_frame_id, record_btrace_start_replaying)
9609 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9610 (cmd_record_btrace_start): Replace throw_exception with throw.
9611 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9612 throw.
9613 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9614 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9615 * linespec.c:
9616 (find_linespec_symbols): Replace throw_exception with throw.
9617 * infrun.c (displaced_step_prepare, resume): Replace
9618 throw_exception with throw.
9619 * infcmd.c (post_create_inferior): Replace throw_exception with
9620 throw.
9621 * inf-loop.c (inferior_event_handler): Replace throw_exception
9622 with throw.
9623 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9624 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9625 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9626 (get_prev_frame_always, get_frame_pc_if_available)
9627 (get_frame_address_in_block_if_available, get_frame_language):
9628 Replace throw_exception with throw.
9629 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9630 throw_exception with throw.
9631 * eval.c (fetch_subexp_value, evaluate_var_value)
9632 (evaluate_funcall, evaluate_subexp_standard): Replace
9633 throw_exception with throw.
9634 * dwarf2loc.c (call_site_find_chain)
9635 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9636 Replace throw_exception with throw.
9637 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9638 with throw.
9639 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9640 throw.
9641 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9642 * completer.c (complete_line_internal): Replace throw_exception
9643 with throw.
9644 * compile/compile-object-run.c (compile_object_run): Replace
9645 throw_exception with throw.
9646 * cli/cli-script.c (process_next_line): Replace throw_exception
9647 with throw.
9648 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9649 (btrace_enable, btrace_maint_update_pt_packets): Replace
9650 throw_exception with throw.
9651 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9652 throw_exception with throw.
9653 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9654 throw_exception with throw.
9655 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9656 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9657 * aarch64-tdep.c (aarch64_make_prologue_cache)
9658 (aarch64_make_stub_cache): Replace throw_exception with throw.
9659
9660 2019-04-08 Tom Tromey <tom@tromey.com>
9661
9662 * common/common-exceptions.c (throw_exception): Rename from
9663 throw_exception_cxx. Remove old copy. Make argument const.
9664 (throw_it): Create and throw exception objects directly.
9665 * common/common-exceptions.h (throw_exception): Make argument
9666 const.
9667 (struct gdb_exception_error): Add constructor.
9668 (struct gdb_exception_quit): Add constructor.
9669
9670 2019-04-08 Tom Tromey <tom@tromey.com>
9671
9672 * common/common-exceptions.h (exception_rethrow): Don't declare.
9673 (TRY_SJLJ): Update comment.
9674 (TRY, CATCH, END_CATCH): Remove.
9675 * common/common-exceptions.c (exception_rethrow): Remove.
9676
9677 2019-04-08 Tom Tromey <tom@tromey.com>
9678
9679 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9680 Remove.
9681 (gdb_exception_error): Rename from
9682 gdb_exception_RETURN_MASK_ERROR.
9683 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9684 (gdb_quit_bad_alloc): Update.
9685 * aarch64-tdep.c: Update.
9686 * ada-lang.c: Update.
9687 * ada-typeprint.c: Update.
9688 * ada-valprint.c: Update.
9689 * amd64-tdep.c: Update.
9690 * arch-utils.c: Update.
9691 * break-catch-throw.c: Update.
9692 * breakpoint.c: Update.
9693 * btrace.c: Update.
9694 * c-varobj.c: Update.
9695 * cli/cli-cmds.c: Update.
9696 * cli/cli-interp.c: Update.
9697 * cli/cli-script.c: Update.
9698 * common/common-exceptions.c: Update.
9699 * common/new-op.c: Update.
9700 * common/selftest.c: Update.
9701 * compile/compile-c-symbols.c: Update.
9702 * compile/compile-cplus-symbols.c: Update.
9703 * compile/compile-object-load.c: Update.
9704 * compile/compile-object-run.c: Update.
9705 * completer.c: Update.
9706 * corelow.c: Update.
9707 * cp-abi.c: Update.
9708 * cp-support.c: Update.
9709 * cp-valprint.c: Update.
9710 * darwin-nat.c: Update.
9711 * disasm-selftests.c: Update.
9712 * dtrace-probe.c: Update.
9713 * dwarf-index-cache.c: Update.
9714 * dwarf-index-write.c: Update.
9715 * dwarf2-frame-tailcall.c: Update.
9716 * dwarf2-frame.c: Update.
9717 * dwarf2loc.c: Update.
9718 * dwarf2read.c: Update.
9719 * eval.c: Update.
9720 * event-loop.c: Update.
9721 * event-top.c: Update.
9722 * exec.c: Update.
9723 * f-valprint.c: Update.
9724 * fbsd-tdep.c: Update.
9725 * frame-unwind.c: Update.
9726 * frame.c: Update.
9727 * gdbtypes.c: Update.
9728 * gnu-v3-abi.c: Update.
9729 * guile/guile-internal.h: Update.
9730 * guile/scm-block.c: Update.
9731 * guile/scm-breakpoint.c: Update.
9732 * guile/scm-cmd.c: Update.
9733 * guile/scm-disasm.c: Update.
9734 * guile/scm-frame.c: Update.
9735 * guile/scm-lazy-string.c: Update.
9736 * guile/scm-math.c: Update.
9737 * guile/scm-param.c: Update.
9738 * guile/scm-ports.c: Update.
9739 * guile/scm-pretty-print.c: Update.
9740 * guile/scm-symbol.c: Update.
9741 * guile/scm-symtab.c: Update.
9742 * guile/scm-type.c: Update.
9743 * guile/scm-value.c: Update.
9744 * i386-linux-tdep.c: Update.
9745 * i386-tdep.c: Update.
9746 * inf-loop.c: Update.
9747 * infcall.c: Update.
9748 * infcmd.c: Update.
9749 * infrun.c: Update.
9750 * jit.c: Update.
9751 * language.c: Update.
9752 * linespec.c: Update.
9753 * linux-fork.c: Update.
9754 * linux-nat.c: Update.
9755 * linux-tdep.c: Update.
9756 * linux-thread-db.c: Update.
9757 * main.c: Update.
9758 * mi/mi-cmd-break.c: Update.
9759 * mi/mi-cmd-stack.c: Update.
9760 * mi/mi-interp.c: Update.
9761 * mi/mi-main.c: Update.
9762 * objc-lang.c: Update.
9763 * p-valprint.c: Update.
9764 * parse.c: Update.
9765 * ppc-linux-tdep.c: Update.
9766 * printcmd.c: Update.
9767 * python/py-arch.c: Update.
9768 * python/py-breakpoint.c: Update.
9769 * python/py-cmd.c: Update.
9770 * python/py-finishbreakpoint.c: Update.
9771 * python/py-frame.c: Update.
9772 * python/py-framefilter.c: Update.
9773 * python/py-gdb-readline.c: Update.
9774 * python/py-inferior.c: Update.
9775 * python/py-infthread.c: Update.
9776 * python/py-lazy-string.c: Update.
9777 * python/py-linetable.c: Update.
9778 * python/py-objfile.c: Update.
9779 * python/py-param.c: Update.
9780 * python/py-prettyprint.c: Update.
9781 * python/py-progspace.c: Update.
9782 * python/py-record-btrace.c: Update.
9783 * python/py-record.c: Update.
9784 * python/py-symbol.c: Update.
9785 * python/py-type.c: Update.
9786 * python/py-unwind.c: Update.
9787 * python/py-utils.c: Update.
9788 * python/py-value.c: Update.
9789 * python/python.c: Update.
9790 * record-btrace.c: Update.
9791 * record-full.c: Update.
9792 * remote-fileio.c: Update.
9793 * remote.c: Update.
9794 * riscv-tdep.c: Update.
9795 * rs6000-aix-tdep.c: Update.
9796 * rs6000-tdep.c: Update.
9797 * rust-exp.y: Update.
9798 * rust-lang.c: Update.
9799 * s390-tdep.c: Update.
9800 * selftest-arch.c: Update.
9801 * solib-dsbt.c: Update.
9802 * solib-frv.c: Update.
9803 * solib-spu.c: Update.
9804 * solib-svr4.c: Update.
9805 * solib.c: Update.
9806 * sparc64-linux-tdep.c: Update.
9807 * stack.c: Update.
9808 * symfile-mem.c: Update.
9809 * symmisc.c: Update.
9810 * target.c: Update.
9811 * thread.c: Update.
9812 * top.c: Update.
9813 * tracefile-tfile.c: Update.
9814 * tui/tui.c: Update.
9815 * typeprint.c: Update.
9816 * unittests/cli-utils-selftests.c: Update.
9817 * unittests/parse-connection-spec-selftests.c: Update.
9818 * valops.c: Update.
9819 * valprint.c: Update.
9820 * value.c: Update.
9821 * varobj.c: Update.
9822 * windows-nat.c: Update.
9823 * x86-linux-nat.c: Update.
9824 * xml-support.c: Update.
9825
9826 2019-04-08 Tom Tromey <tom@tromey.com>
9827
9828 * xml-support.c: Use C++ exception handling.
9829 * x86-linux-nat.c: Use C++ exception handling.
9830 * windows-nat.c: Use C++ exception handling.
9831 * varobj.c: Use C++ exception handling.
9832 * value.c: Use C++ exception handling.
9833 * valprint.c: Use C++ exception handling.
9834 * valops.c: Use C++ exception handling.
9835 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9836 handling.
9837 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9838 * typeprint.c: Use C++ exception handling.
9839 * tui/tui.c: Use C++ exception handling.
9840 * tracefile-tfile.c: Use C++ exception handling.
9841 * top.c: Use C++ exception handling.
9842 * thread.c: Use C++ exception handling.
9843 * target.c: Use C++ exception handling.
9844 * symmisc.c: Use C++ exception handling.
9845 * symfile-mem.c: Use C++ exception handling.
9846 * stack.c: Use C++ exception handling.
9847 * sparc64-linux-tdep.c: Use C++ exception handling.
9848 * solib.c: Use C++ exception handling.
9849 * solib-svr4.c: Use C++ exception handling.
9850 * solib-spu.c: Use C++ exception handling.
9851 * solib-frv.c: Use C++ exception handling.
9852 * solib-dsbt.c: Use C++ exception handling.
9853 * selftest-arch.c: Use C++ exception handling.
9854 * s390-tdep.c: Use C++ exception handling.
9855 * rust-lang.c: Use C++ exception handling.
9856 * rust-exp.y: Use C++ exception handling.
9857 * rs6000-tdep.c: Use C++ exception handling.
9858 * rs6000-aix-tdep.c: Use C++ exception handling.
9859 * riscv-tdep.c: Use C++ exception handling.
9860 * remote.c: Use C++ exception handling.
9861 * remote-fileio.c: Use C++ exception handling.
9862 * record-full.c: Use C++ exception handling.
9863 * record-btrace.c: Use C++ exception handling.
9864 * python/python.c: Use C++ exception handling.
9865 * python/py-value.c: Use C++ exception handling.
9866 * python/py-utils.c: Use C++ exception handling.
9867 * python/py-unwind.c: Use C++ exception handling.
9868 * python/py-type.c: Use C++ exception handling.
9869 * python/py-symbol.c: Use C++ exception handling.
9870 * python/py-record.c: Use C++ exception handling.
9871 * python/py-record-btrace.c: Use C++ exception handling.
9872 * python/py-progspace.c: Use C++ exception handling.
9873 * python/py-prettyprint.c: Use C++ exception handling.
9874 * python/py-param.c: Use C++ exception handling.
9875 * python/py-objfile.c: Use C++ exception handling.
9876 * python/py-linetable.c: Use C++ exception handling.
9877 * python/py-lazy-string.c: Use C++ exception handling.
9878 * python/py-infthread.c: Use C++ exception handling.
9879 * python/py-inferior.c: Use C++ exception handling.
9880 * python/py-gdb-readline.c: Use C++ exception handling.
9881 * python/py-framefilter.c: Use C++ exception handling.
9882 * python/py-frame.c: Use C++ exception handling.
9883 * python/py-finishbreakpoint.c: Use C++ exception handling.
9884 * python/py-cmd.c: Use C++ exception handling.
9885 * python/py-breakpoint.c: Use C++ exception handling.
9886 * python/py-arch.c: Use C++ exception handling.
9887 * printcmd.c: Use C++ exception handling.
9888 * ppc-linux-tdep.c: Use C++ exception handling.
9889 * parse.c: Use C++ exception handling.
9890 * p-valprint.c: Use C++ exception handling.
9891 * objc-lang.c: Use C++ exception handling.
9892 * mi/mi-main.c: Use C++ exception handling.
9893 * mi/mi-interp.c: Use C++ exception handling.
9894 * mi/mi-cmd-stack.c: Use C++ exception handling.
9895 * mi/mi-cmd-break.c: Use C++ exception handling.
9896 * main.c: Use C++ exception handling.
9897 * linux-thread-db.c: Use C++ exception handling.
9898 * linux-tdep.c: Use C++ exception handling.
9899 * linux-nat.c: Use C++ exception handling.
9900 * linux-fork.c: Use C++ exception handling.
9901 * linespec.c: Use C++ exception handling.
9902 * language.c: Use C++ exception handling.
9903 * jit.c: Use C++ exception handling.
9904 * infrun.c: Use C++ exception handling.
9905 * infcmd.c: Use C++ exception handling.
9906 * infcall.c: Use C++ exception handling.
9907 * inf-loop.c: Use C++ exception handling.
9908 * i386-tdep.c: Use C++ exception handling.
9909 * i386-linux-tdep.c: Use C++ exception handling.
9910 * guile/scm-value.c: Use C++ exception handling.
9911 * guile/scm-type.c: Use C++ exception handling.
9912 * guile/scm-symtab.c: Use C++ exception handling.
9913 * guile/scm-symbol.c: Use C++ exception handling.
9914 * guile/scm-pretty-print.c: Use C++ exception handling.
9915 * guile/scm-ports.c: Use C++ exception handling.
9916 * guile/scm-param.c: Use C++ exception handling.
9917 * guile/scm-math.c: Use C++ exception handling.
9918 * guile/scm-lazy-string.c: Use C++ exception handling.
9919 * guile/scm-frame.c: Use C++ exception handling.
9920 * guile/scm-disasm.c: Use C++ exception handling.
9921 * guile/scm-cmd.c: Use C++ exception handling.
9922 * guile/scm-breakpoint.c: Use C++ exception handling.
9923 * guile/scm-block.c: Use C++ exception handling.
9924 * guile/guile-internal.h: Use C++ exception handling.
9925 * gnu-v3-abi.c: Use C++ exception handling.
9926 * gdbtypes.c: Use C++ exception handling.
9927 * frame.c: Use C++ exception handling.
9928 * frame-unwind.c: Use C++ exception handling.
9929 * fbsd-tdep.c: Use C++ exception handling.
9930 * f-valprint.c: Use C++ exception handling.
9931 * exec.c: Use C++ exception handling.
9932 * event-top.c: Use C++ exception handling.
9933 * event-loop.c: Use C++ exception handling.
9934 * eval.c: Use C++ exception handling.
9935 * dwarf2read.c: Use C++ exception handling.
9936 * dwarf2loc.c: Use C++ exception handling.
9937 * dwarf2-frame.c: Use C++ exception handling.
9938 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9939 * dwarf-index-write.c: Use C++ exception handling.
9940 * dwarf-index-cache.c: Use C++ exception handling.
9941 * dtrace-probe.c: Use C++ exception handling.
9942 * disasm-selftests.c: Use C++ exception handling.
9943 * darwin-nat.c: Use C++ exception handling.
9944 * cp-valprint.c: Use C++ exception handling.
9945 * cp-support.c: Use C++ exception handling.
9946 * cp-abi.c: Use C++ exception handling.
9947 * corelow.c: Use C++ exception handling.
9948 * completer.c: Use C++ exception handling.
9949 * compile/compile-object-run.c: Use C++ exception handling.
9950 * compile/compile-object-load.c: Use C++ exception handling.
9951 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9952 * compile/compile-c-symbols.c: Use C++ exception handling.
9953 * common/selftest.c: Use C++ exception handling.
9954 * common/new-op.c: Use C++ exception handling.
9955 * cli/cli-script.c: Use C++ exception handling.
9956 * cli/cli-interp.c: Use C++ exception handling.
9957 * cli/cli-cmds.c: Use C++ exception handling.
9958 * c-varobj.c: Use C++ exception handling.
9959 * btrace.c: Use C++ exception handling.
9960 * breakpoint.c: Use C++ exception handling.
9961 * break-catch-throw.c: Use C++ exception handling.
9962 * arch-utils.c: Use C++ exception handling.
9963 * amd64-tdep.c: Use C++ exception handling.
9964 * ada-valprint.c: Use C++ exception handling.
9965 * ada-typeprint.c: Use C++ exception handling.
9966 * ada-lang.c: Use C++ exception handling.
9967 * aarch64-tdep.c: Use C++ exception handling.
9968
9969 2019-04-08 Tom Tromey <tom@tromey.com>
9970
9971 * xml-support.c (gdb_xml_parser::parse): Update.
9972 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9973 * value.c (show_convenience): Update.
9974 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9975 (test_parse_flags_qcs): Update.
9976 * thread.c (thr_try_catch_cmd): Update.
9977 * target.c (target_translate_tls_address): Update.
9978 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9979 (info_frame_command_core, frame_apply_command_count): Update.
9980 * rust-exp.y (rust_lex_exception_test): Update.
9981 * riscv-tdep.c (riscv_print_one_register_info): Update.
9982 * remote.c (remote_target::enable_btrace): Update.
9983 * record-btrace.c (record_btrace_enable_warn): Update.
9984 * python/py-utils.c (gdbpy_convert_exception): Update.
9985 * printcmd.c (do_one_display, print_variable_and_value): Update.
9986 * mi/mi-main.c (mi_print_exception): Update.
9987 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9988 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9989 * linux-nat.c (linux_nat_target::attach): Update.
9990 * linux-fork.c (class scoped_switch_fork_info): Update.
9991 * infrun.c (displaced_step_prepare): Update.
9992 * infcall.c (call_function_by_hand_dummy): Update.
9993 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9994 * gnu-v3-abi.c (print_one_vtable): Update.
9995 * frame.c (get_prev_frame_always): Update.
9996 * f-valprint.c (info_common_command_for_block): Update.
9997 * exec.c (try_open_exec_file): Update.
9998 * exceptions.c (print_exception, exception_print)
9999 (exception_fprintf, exception_print_same): Update.
10000 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10001 * dwarf-index-cache.c (index_cache::store)
10002 (index_cache::lookup_gdb_index): Update.
10003 * darwin-nat.c (maybe_cache_shell): Update.
10004 * cp-valprint.c (cp_print_value_fields): Update.
10005 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10006 (gcc_cplus_symbol_address): Update.
10007 * compile/compile-c-symbols.c (gcc_convert_symbol)
10008 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10009 * common/selftest.c: Update.
10010 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10011 a std::string.
10012 (exception_try_scope_entry, exception_try_scope_exit): Don't
10013 declare.
10014 (struct exception_try_scope): Remove.
10015 (TRY): Don't use exception_try_scope.
10016 (struct gdb_exception): Add constructor, operator=.
10017 <what>: New method.
10018 (struct gdb_exception_RETURN_MASK_ALL)
10019 (struct gdb_exception_RETURN_MASK_ERROR)
10020 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10021 (struct gdb_quit_bad_alloc): Update.
10022 * common/common-exceptions.c (exception_none): Change
10023 initializer.
10024 (struct catcher) <state, exception>: Initialize inline.
10025 <prev>: Remove member.
10026 (current_catcher): Remove.
10027 (catchers): New global.
10028 (exceptions_state_mc_init): Simplify.
10029 (catcher_pop): Remove.
10030 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10031 (try_scope_depth, exception_try_scope_entry)
10032 (exception_try_scope_exit): Remove.
10033 (throw_exception_sjlj): Update.
10034 (exception_messages, exception_messages_size): Remove.
10035 (throw_it): Simplify.
10036 (gdb_exception_sliced_copy): Remove.
10037 (throw_exception_cxx): Update.
10038 * cli/cli-script.c (script_from_file): Update.
10039 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10040 Update.
10041 * ada-valprint.c (ada_val_print): Update.
10042 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10043 (create_excep_cond_exprs): Update.
10044
10045 2019-04-08 Tom Tromey <tom@tromey.com>
10046
10047 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10048 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10049 (TRY, CATCH, END_CATCH): Remove some definitions.
10050 * common/common-exceptions.c: Don't use GDB_XCPT.
10051 (catcher_list_size): Remove.
10052 (throw_exception, throw_it): Simplify.
10053
10054 2019-04-05 Tom Tromey <tom@tromey.com>
10055
10056 Revert the header-sorting patch.
10057 * ft32-tdep.c: Revert.
10058 * frv-tdep.c: Revert.
10059 * frv-linux-tdep.c: Revert.
10060 * frame.c: Revert.
10061 * frame-unwind.c: Revert.
10062 * frame-base.c: Revert.
10063 * fork-child.c: Revert.
10064 * findvar.c: Revert.
10065 * findcmd.c: Revert.
10066 * filesystem.c: Revert.
10067 * filename-seen-cache.h: Revert.
10068 * filename-seen-cache.c: Revert.
10069 * fbsd-tdep.c: Revert.
10070 * fbsd-nat.h: Revert.
10071 * fbsd-nat.c: Revert.
10072 * f-valprint.c: Revert.
10073 * f-typeprint.c: Revert.
10074 * f-lang.c: Revert.
10075 * extension.h: Revert.
10076 * extension.c: Revert.
10077 * extension-priv.h: Revert.
10078 * expprint.c: Revert.
10079 * exec.h: Revert.
10080 * exec.c: Revert.
10081 * exceptions.c: Revert.
10082 * event-top.c: Revert.
10083 * event-loop.c: Revert.
10084 * eval.c: Revert.
10085 * elfread.c: Revert.
10086 * dwarf2read.h: Revert.
10087 * dwarf2read.c: Revert.
10088 * dwarf2loc.c: Revert.
10089 * dwarf2expr.h: Revert.
10090 * dwarf2expr.c: Revert.
10091 * dwarf2-frame.c: Revert.
10092 * dwarf2-frame-tailcall.c: Revert.
10093 * dwarf-index-write.h: Revert.
10094 * dwarf-index-write.c: Revert.
10095 * dwarf-index-common.c: Revert.
10096 * dwarf-index-cache.h: Revert.
10097 * dwarf-index-cache.c: Revert.
10098 * dummy-frame.c: Revert.
10099 * dtrace-probe.c: Revert.
10100 * disasm.h: Revert.
10101 * disasm.c: Revert.
10102 * disasm-selftests.c: Revert.
10103 * dictionary.c: Revert.
10104 * dicos-tdep.c: Revert.
10105 * demangle.c: Revert.
10106 * dcache.h: Revert.
10107 * dcache.c: Revert.
10108 * darwin-nat.h: Revert.
10109 * darwin-nat.c: Revert.
10110 * darwin-nat-info.c: Revert.
10111 * d-valprint.c: Revert.
10112 * d-namespace.c: Revert.
10113 * d-lang.c: Revert.
10114 * ctf.c: Revert.
10115 * csky-tdep.c: Revert.
10116 * csky-linux-tdep.c: Revert.
10117 * cris-tdep.c: Revert.
10118 * cris-linux-tdep.c: Revert.
10119 * cp-valprint.c: Revert.
10120 * cp-support.c: Revert.
10121 * cp-namespace.c: Revert.
10122 * cp-abi.c: Revert.
10123 * corelow.c: Revert.
10124 * corefile.c: Revert.
10125 * continuations.c: Revert.
10126 * completer.h: Revert.
10127 * completer.c: Revert.
10128 * complaints.c: Revert.
10129 * coffread.c: Revert.
10130 * coff-pe-read.c: Revert.
10131 * cli-out.h: Revert.
10132 * cli-out.c: Revert.
10133 * charset.c: Revert.
10134 * c-varobj.c: Revert.
10135 * c-valprint.c: Revert.
10136 * c-typeprint.c: Revert.
10137 * c-lang.c: Revert.
10138 * buildsym.c: Revert.
10139 * buildsym-legacy.c: Revert.
10140 * build-id.h: Revert.
10141 * build-id.c: Revert.
10142 * btrace.c: Revert.
10143 * bsd-uthread.c: Revert.
10144 * breakpoint.h: Revert.
10145 * breakpoint.c: Revert.
10146 * break-catch-throw.c: Revert.
10147 * break-catch-syscall.c: Revert.
10148 * break-catch-sig.c: Revert.
10149 * blockframe.c: Revert.
10150 * block.c: Revert.
10151 * bfin-tdep.c: Revert.
10152 * bfin-linux-tdep.c: Revert.
10153 * bfd-target.c: Revert.
10154 * bcache.c: Revert.
10155 * ax-general.c: Revert.
10156 * ax-gdb.h: Revert.
10157 * ax-gdb.c: Revert.
10158 * avr-tdep.c: Revert.
10159 * auxv.c: Revert.
10160 * auto-load.c: Revert.
10161 * arm-wince-tdep.c: Revert.
10162 * arm-tdep.c: Revert.
10163 * arm-symbian-tdep.c: Revert.
10164 * arm-pikeos-tdep.c: Revert.
10165 * arm-obsd-tdep.c: Revert.
10166 * arm-nbsd-tdep.c: Revert.
10167 * arm-nbsd-nat.c: Revert.
10168 * arm-linux-tdep.c: Revert.
10169 * arm-linux-nat.c: Revert.
10170 * arm-fbsd-tdep.c: Revert.
10171 * arm-fbsd-nat.c: Revert.
10172 * arm-bsd-tdep.c: Revert.
10173 * arch-utils.c: Revert.
10174 * arc-tdep.c: Revert.
10175 * arc-newlib-tdep.c: Revert.
10176 * annotate.h: Revert.
10177 * annotate.c: Revert.
10178 * amd64-windows-tdep.c: Revert.
10179 * amd64-windows-nat.c: Revert.
10180 * amd64-tdep.c: Revert.
10181 * amd64-sol2-tdep.c: Revert.
10182 * amd64-obsd-tdep.c: Revert.
10183 * amd64-obsd-nat.c: Revert.
10184 * amd64-nbsd-tdep.c: Revert.
10185 * amd64-nbsd-nat.c: Revert.
10186 * amd64-nat.c: Revert.
10187 * amd64-linux-tdep.c: Revert.
10188 * amd64-linux-nat.c: Revert.
10189 * amd64-fbsd-tdep.c: Revert.
10190 * amd64-fbsd-nat.c: Revert.
10191 * amd64-dicos-tdep.c: Revert.
10192 * amd64-darwin-tdep.c: Revert.
10193 * amd64-bsd-nat.c: Revert.
10194 * alpha-tdep.c: Revert.
10195 * alpha-obsd-tdep.c: Revert.
10196 * alpha-nbsd-tdep.c: Revert.
10197 * alpha-mdebug-tdep.c: Revert.
10198 * alpha-linux-tdep.c: Revert.
10199 * alpha-linux-nat.c: Revert.
10200 * alpha-bsd-tdep.c: Revert.
10201 * alpha-bsd-nat.c: Revert.
10202 * aix-thread.c: Revert.
10203 * agent.c: Revert.
10204 * addrmap.c: Revert.
10205 * ada-varobj.c: Revert.
10206 * ada-valprint.c: Revert.
10207 * ada-typeprint.c: Revert.
10208 * ada-tasks.c: Revert.
10209 * ada-lang.c: Revert.
10210 * aarch64-tdep.c: Revert.
10211 * aarch64-ravenscar-thread.c: Revert.
10212 * aarch64-newlib-tdep.c: Revert.
10213 * aarch64-linux-tdep.c: Revert.
10214 * aarch64-linux-nat.c: Revert.
10215 * aarch64-fbsd-tdep.c: Revert.
10216 * aarch64-fbsd-nat.c: Revert.
10217 * aarch32-linux-nat.c: Revert.
10218
10219 2019-04-05 Tom Tromey <tom@tromey.com>
10220
10221 * ft32-tdep.c: Sort headers.
10222 * frv-tdep.c: Sort headers.
10223 * frv-linux-tdep.c: Sort headers.
10224 * frame.c: Sort headers.
10225 * frame-unwind.c: Sort headers.
10226 * frame-base.c: Sort headers.
10227 * fork-child.c: Sort headers.
10228 * findvar.c: Sort headers.
10229 * findcmd.c: Sort headers.
10230 * filesystem.c: Sort headers.
10231 * filename-seen-cache.h: Sort headers.
10232 * filename-seen-cache.c: Sort headers.
10233 * fbsd-tdep.c: Sort headers.
10234 * fbsd-nat.h: Sort headers.
10235 * fbsd-nat.c: Sort headers.
10236 * f-valprint.c: Sort headers.
10237 * f-typeprint.c: Sort headers.
10238 * f-lang.c: Sort headers.
10239 * extension.h: Sort headers.
10240 * extension.c: Sort headers.
10241 * extension-priv.h: Sort headers.
10242 * expprint.c: Sort headers.
10243 * exec.h: Sort headers.
10244 * exec.c: Sort headers.
10245 * exceptions.c: Sort headers.
10246 * event-top.c: Sort headers.
10247 * event-loop.c: Sort headers.
10248 * eval.c: Sort headers.
10249 * elfread.c: Sort headers.
10250 * dwarf2read.h: Sort headers.
10251 * dwarf2read.c: Sort headers.
10252 * dwarf2loc.c: Sort headers.
10253 * dwarf2expr.h: Sort headers.
10254 * dwarf2expr.c: Sort headers.
10255 * dwarf2-frame.c: Sort headers.
10256 * dwarf2-frame-tailcall.c: Sort headers.
10257 * dwarf-index-write.h: Sort headers.
10258 * dwarf-index-write.c: Sort headers.
10259 * dwarf-index-common.c: Sort headers.
10260 * dwarf-index-cache.h: Sort headers.
10261 * dwarf-index-cache.c: Sort headers.
10262 * dummy-frame.c: Sort headers.
10263 * dtrace-probe.c: Sort headers.
10264 * disasm.h: Sort headers.
10265 * disasm.c: Sort headers.
10266 * disasm-selftests.c: Sort headers.
10267 * dictionary.c: Sort headers.
10268 * dicos-tdep.c: Sort headers.
10269 * demangle.c: Sort headers.
10270 * dcache.h: Sort headers.
10271 * dcache.c: Sort headers.
10272 * darwin-nat.h: Sort headers.
10273 * darwin-nat.c: Sort headers.
10274 * darwin-nat-info.c: Sort headers.
10275 * d-valprint.c: Sort headers.
10276 * d-namespace.c: Sort headers.
10277 * d-lang.c: Sort headers.
10278 * ctf.c: Sort headers.
10279 * csky-tdep.c: Sort headers.
10280 * csky-linux-tdep.c: Sort headers.
10281 * cris-tdep.c: Sort headers.
10282 * cris-linux-tdep.c: Sort headers.
10283 * cp-valprint.c: Sort headers.
10284 * cp-support.c: Sort headers.
10285 * cp-namespace.c: Sort headers.
10286 * cp-abi.c: Sort headers.
10287 * corelow.c: Sort headers.
10288 * corefile.c: Sort headers.
10289 * continuations.c: Sort headers.
10290 * completer.h: Sort headers.
10291 * completer.c: Sort headers.
10292 * complaints.c: Sort headers.
10293 * coffread.c: Sort headers.
10294 * coff-pe-read.c: Sort headers.
10295 * cli-out.h: Sort headers.
10296 * cli-out.c: Sort headers.
10297 * charset.c: Sort headers.
10298 * c-varobj.c: Sort headers.
10299 * c-valprint.c: Sort headers.
10300 * c-typeprint.c: Sort headers.
10301 * c-lang.c: Sort headers.
10302 * buildsym.c: Sort headers.
10303 * buildsym-legacy.c: Sort headers.
10304 * build-id.h: Sort headers.
10305 * build-id.c: Sort headers.
10306 * btrace.c: Sort headers.
10307 * bsd-uthread.c: Sort headers.
10308 * breakpoint.h: Sort headers.
10309 * breakpoint.c: Sort headers.
10310 * break-catch-throw.c: Sort headers.
10311 * break-catch-syscall.c: Sort headers.
10312 * break-catch-sig.c: Sort headers.
10313 * blockframe.c: Sort headers.
10314 * block.c: Sort headers.
10315 * bfin-tdep.c: Sort headers.
10316 * bfin-linux-tdep.c: Sort headers.
10317 * bfd-target.c: Sort headers.
10318 * bcache.c: Sort headers.
10319 * ax-general.c: Sort headers.
10320 * ax-gdb.h: Sort headers.
10321 * ax-gdb.c: Sort headers.
10322 * avr-tdep.c: Sort headers.
10323 * auxv.c: Sort headers.
10324 * auto-load.c: Sort headers.
10325 * arm-wince-tdep.c: Sort headers.
10326 * arm-tdep.c: Sort headers.
10327 * arm-symbian-tdep.c: Sort headers.
10328 * arm-pikeos-tdep.c: Sort headers.
10329 * arm-obsd-tdep.c: Sort headers.
10330 * arm-nbsd-tdep.c: Sort headers.
10331 * arm-nbsd-nat.c: Sort headers.
10332 * arm-linux-tdep.c: Sort headers.
10333 * arm-linux-nat.c: Sort headers.
10334 * arm-fbsd-tdep.c: Sort headers.
10335 * arm-fbsd-nat.c: Sort headers.
10336 * arm-bsd-tdep.c: Sort headers.
10337 * arch-utils.c: Sort headers.
10338 * arc-tdep.c: Sort headers.
10339 * arc-newlib-tdep.c: Sort headers.
10340 * annotate.h: Sort headers.
10341 * annotate.c: Sort headers.
10342 * amd64-windows-tdep.c: Sort headers.
10343 * amd64-windows-nat.c: Sort headers.
10344 * amd64-tdep.c: Sort headers.
10345 * amd64-sol2-tdep.c: Sort headers.
10346 * amd64-obsd-tdep.c: Sort headers.
10347 * amd64-obsd-nat.c: Sort headers.
10348 * amd64-nbsd-tdep.c: Sort headers.
10349 * amd64-nbsd-nat.c: Sort headers.
10350 * amd64-nat.c: Sort headers.
10351 * amd64-linux-tdep.c: Sort headers.
10352 * amd64-linux-nat.c: Sort headers.
10353 * amd64-fbsd-tdep.c: Sort headers.
10354 * amd64-fbsd-nat.c: Sort headers.
10355 * amd64-dicos-tdep.c: Sort headers.
10356 * amd64-darwin-tdep.c: Sort headers.
10357 * amd64-bsd-nat.c: Sort headers.
10358 * alpha-tdep.c: Sort headers.
10359 * alpha-obsd-tdep.c: Sort headers.
10360 * alpha-nbsd-tdep.c: Sort headers.
10361 * alpha-mdebug-tdep.c: Sort headers.
10362 * alpha-linux-tdep.c: Sort headers.
10363 * alpha-linux-nat.c: Sort headers.
10364 * alpha-bsd-tdep.c: Sort headers.
10365 * alpha-bsd-nat.c: Sort headers.
10366 * aix-thread.c: Sort headers.
10367 * agent.c: Sort headers.
10368 * addrmap.c: Sort headers.
10369 * ada-varobj.c: Sort headers.
10370 * ada-valprint.c: Sort headers.
10371 * ada-typeprint.c: Sort headers.
10372 * ada-tasks.c: Sort headers.
10373 * ada-lang.c: Sort headers.
10374 * aarch64-tdep.c: Sort headers.
10375 * aarch64-ravenscar-thread.c: Sort headers.
10376 * aarch64-newlib-tdep.c: Sort headers.
10377 * aarch64-linux-tdep.c: Sort headers.
10378 * aarch64-linux-nat.c: Sort headers.
10379 * aarch64-fbsd-tdep.c: Sort headers.
10380 * aarch64-fbsd-nat.c: Sort headers.
10381 * aarch32-linux-nat.c: Sort headers.
10382
10383 2019-04-04 Tom Tromey <tom@tromey.com>
10384
10385 * varobj.c (varobj_create): Update.
10386 * rust-exp.y (struct rust_parser) <update_innermost_block,
10387 lookup_symbol>: New methods.
10388 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10389 Rename.
10390 (rust_parser::rust_lookup_type)
10391 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10392 * printcmd.c (display_command, do_one_display): Update.
10393 * parser-defs.h (struct parser_state) <parser_state>: Add
10394 "tracker" parameter.
10395 (block_tracker): New member.
10396 (class innermost_block_tracker) <innermost_block_tracker>: Add
10397 "types" parameter.
10398 <reset>: Remove method.
10399 (innermost_block): Don't declare.
10400 (null_post_parser): Update.
10401 * parse.c (innermost_block): Remove global.
10402 (write_dollar_variable): Update.
10403 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10404 Remove "tracker_types" parameter.
10405 (parse_expression): Add "tracker" parameter.
10406 (parse_expression_for_completion): Update.
10407 (null_post_parser): Add "tracker" parameter.
10408 * p-exp.y: Update rules.
10409 * m2-exp.y: Update rules.
10410 * language.h (struct language_defn) <la_post_parser>: Add
10411 "tracker" parameter.
10412 * go-exp.y: Update rules.
10413 * f-exp.y: Update rules.
10414 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10415 parameter.
10416 * d-exp.y: Update rules.
10417 * c-exp.y: Update rules.
10418 * breakpoint.c (set_breakpoint_condition): Create an
10419 innermost_block_tracker.
10420 (watch_command_1): Likewise.
10421 * ada-lang.c (resolve): Add "tracker" parameter.
10422 (resolve_subexp): Likewise.
10423 * ada-exp.y (write_var_from_sym): Update.
10424
10425 2019-04-04 Tom Tromey <tom@tromey.com>
10426
10427 * type-stack.h: New file.
10428 * type-stack.c: New file.
10429 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10430 type-stack.h.
10431 (insert_into_type_stack, insert_type, push_type, push_type_int)
10432 (insert_type_address_space, pop_type, pop_type_int)
10433 (pop_typelist, pop_type_stack, append_type_stack)
10434 (push_type_stack, get_type_stack, push_typelist)
10435 (follow_type_instance_flags, follow_types): Don't declare.
10436 * parse.c (type_stack): Remove global.
10437 (parse_exp_in_context): Update.
10438 (insert_into_type_stack, insert_type, push_type, push_type_int)
10439 (insert_type_address_space, pop_type, pop_type_int)
10440 (pop_typelist, pop_type_stack, append_type_stack)
10441 (push_type_stack, get_type_stack, push_typelist)
10442 (follow_type_instance_flags, follow_types): Remove (moved to
10443 type-stack.c).
10444 * f-exp.y (type_stack): New global.
10445 Update rules.
10446 (push_kind_type, f_parse): Update.
10447 * d-exp.y (type_stack): New global.
10448 Update rules.
10449 (d_parse): Update.
10450 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10451 Update rules.
10452 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10453 (HFILES_NO_SRCDIR): Add type-stack.h.
10454
10455 2019-04-04 Tom Tromey <tom@tromey.com>
10456
10457 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10458 (rust_parser::convert_ast_to_expression, rust_parse)
10459 (rust_lex_test_completion, rust_lex_tests): Update.
10460 * parser-defs.h (struct expr_completion_state): New.
10461 (struct parser_state) <parser_state>: Add completion parameter.
10462 <mark_struct_expression, mark_completion_tag>: New methods.
10463 <parse_completion, m_completion_state>: New members.
10464 (prefixify_expression, null_post_parser): Update.
10465 (mark_struct_expression, mark_completion_tag): Don't declare.
10466 * parse.c (parse_completion, expout_last_struct)
10467 (expout_tag_completion_type, expout_completion_name): Remove
10468 globals.
10469 (parser_state::mark_struct_expression)
10470 (parser_state::mark_completion_tag): Now methods.
10471 (prefixify_expression): Add last_struct parameter.
10472 (prefixify_subexp): Likewise.
10473 (parse_exp_1): Update.
10474 (parse_exp_in_context): Add cstate parameter. Update.
10475 (parse_expression_for_completion): Create an
10476 expr_completion_state.
10477 (null_post_parser): Add "completion" parameter.
10478 * p-exp.y: Update rules.
10479 (yylex): Update.
10480 * language.h (struct language_defn) <la_post_parser>: Add
10481 "completing" parameter.
10482 * go-exp.y: Update rules.
10483 (lex_one_token): Update.
10484 * expression.h (parse_completion): Don't declare.
10485 * d-exp.y: Update rules.
10486 (lex_one_token): Update rules.
10487 * c-exp.y: Update rules.
10488 (lex_one_token): Update.
10489 * ada-lang.c (resolve): Add "parse_completion" parameter.
10490 (resolve_subexp): Likewise.
10491 (ada_resolve_function): Likewise.
10492
10493 2019-04-04 Tom Tromey <tom@tromey.com>
10494
10495 * parser-defs.h (struct parser_state) <start_arglist,
10496 end_arglist>: New methods.
10497 <arglist_len, m_funcall_chain>: New members.
10498 (arglist_len, start_arglist, end_arglist): Don't declare.
10499 * parse.c (arglist_len, funcall_chain): Remove global.
10500 (start_arglist, end_arglist): Remove functions.
10501 (parse_exp_in_context): Update.
10502 * p-exp.y: Update rules.
10503 * m2-exp.y: Update rules.
10504 * go-exp.y: Update rules.
10505 * f-exp.y: Update rules.
10506 * d-exp.y: Update rules.
10507 * c-exp.y: Update rules.
10508
10509 2019-04-04 Tom Tromey <tom@tromey.com>
10510
10511 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10512 lex_operator, push_back>: New methods.
10513 Update all rules.
10514 (rust_parser::lex_hex, lex_escape): Rename and update.
10515 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10516 (rust_parser::lex_operator): Rename and update.
10517 (rust_parser::lex_number, rustyylex, rustyyerror)
10518 (rust_lex_test_init, rust_lex_test_sequence)
10519 (rust_lex_test_push_back, rust_lex_tests): Update.
10520 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10521 parameter.
10522 <lexptr, prev_lexptr>: New members.
10523 (lexptr, prev_lexptr): Don't declare.
10524 * parse.c (lexptr, prev_lexptr): Remove globals.
10525 (parse_exp_in_context): Update.
10526 * p-exp.y (yylex, yyerror): Update.
10527 * m2-exp.y (parse_number, yylex, yyerror): Update.
10528 * go-exp.y (lex_one_token, yyerror): Update.
10529 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10530 * d-exp.y (lex_one_token, yyerror): Update.
10531 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10532 (lex_one_token, yyerror): Update.
10533 * ada-lex.l (YY_INPUT): Update.
10534 (rewind_to_char): Update.
10535 * ada-exp.y (yyerror): Update.
10536
10537 2019-04-04 Tom Tromey <tom@tromey.com>
10538
10539 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10540 * parser-defs.h (struct parser_state) <parser_state>: Add new
10541 parameter.
10542 <comma_terminates>: New member.
10543 (comma_terminates): Don't declare global.
10544 * parse.c (comma_terminates): Remove global.
10545 (parse_exp_in_context): Update.
10546 * p-exp.y (yylex): Update.
10547 * m2-exp.y (yylex): Update.
10548 * go-exp.y (lex_one_token): Update.
10549 * f-exp.y (yylex): Update.
10550 * d-exp.y (lex_one_token): Update.
10551 * c-exp.y (lex_one_token): Update.
10552 * ada-lex.l: Update.
10553
10554 2019-04-04 Tom Tromey <tom@tromey.com>
10555
10556 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10557 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10558 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10559 * parser-defs.h (paren_depth): Don't declare.
10560 * parse.c (paren_depth): Remove global.
10561 (parse_exp_in_context): Update.
10562 * p-exp.y (paren_depth): New global.
10563 (pascal_parse): Initialize it.
10564 * m2-exp.y (paren_depth): New global.
10565 (m2_parse): Initialize it.
10566 * go-exp.y (paren_depth): New global.
10567 (go_parse): Initialize it.
10568 * f-exp.y (paren_depth): New global.
10569 (f_parse): Initialize it.
10570 * d-exp.y (paren_depth): New global.
10571 (d_parse): Initialize it.
10572 * c-exp.y (paren_depth): New global.
10573 (c_parse): Initialize it.
10574 * ada-lex.l (paren_depth): New global.
10575 (lexer_init): Initialize it.
10576
10577 2019-04-04 Tom Tromey <tom@tromey.com>
10578
10579 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10580 (rust_parser::convert_ast_to_type)
10581 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10582 * parser-defs.h (struct parser_state) <parser_state>: Add
10583 parameters. Initialize new members.
10584 <expression_context_block, expression_context_pc>: New members.
10585 * parse.c (expression_context_block, expression_context_pc):
10586 Remove globals.
10587 (parse_exp_in_context): Update.
10588 * p-exp.y: Update all rules.
10589 (yylex): Update.
10590 * m2-exp.y: Update all rules.
10591 (yylex): Update.
10592 * go-exp.y (yylex): Update.
10593 * f-exp.y (yylex): Update.
10594 * d-exp.y: Update all rules.
10595 (yylex): Update.
10596 * c-exp.y: Update all rules.
10597 (lex_one_token, classify_name, yylex, c_parse): Update.
10598 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10599
10600 2019-04-04 Tom Tromey <tom@tromey.com>
10601
10602 * gdbarch.h, gdbarch.c: Rebuild.
10603 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10604 * stap-probe.h:
10605 (struct stap_parse_info): Replace "parser_state" with
10606 "expr_builder".
10607 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10608 (parser_state): New class.
10609 * parse.c (expr_builder): Rename.
10610 (expr_builder::release): Rename.
10611 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10612 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10613 (write_exp_elt_longcst, write_exp_elt_floatcst)
10614 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10615 (write_exp_string_vector, write_exp_bitstring)
10616 (write_exp_msymbol, mark_struct_expression)
10617 (write_dollar_variable)
10618 (insert_type_address_space, increase_expout_size): Replace
10619 "parser_state" with "expr_builder".
10620 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10621 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10622 "parser_state" with "expr_builder".
10623
10624 2019-04-04 Tom Tromey <tom@tromey.com>
10625
10626 * rust-exp.y: Replace "parse_language" with method call.
10627 * p-exp.y:
10628 (yylex): Replace "parse_language" with method call.
10629 * m2-exp.y:
10630 (yylex): Replace "parse_language" with method call.
10631 * go-exp.y (classify_name): Replace "parse_language" with method
10632 call.
10633 * f-exp.y (yylex): Replace "parse_language" with method call.
10634 * d-exp.y (lex_one_token): Replace "parse_language" with method
10635 call.
10636 * c-exp.y:
10637 (lex_one_token, classify_name, yylex): Replace "parse_language"
10638 with method call.
10639 * ada-exp.y (find_primitive_type, type_char)
10640 (type_system_address): Replace "parse_language" with method call.
10641
10642 2019-04-04 Tom Tromey <tom@tromey.com>
10643
10644 * rust-exp.y: Replace "parse_gdbarch" with method call.
10645 * parse.c (write_dollar_variable, insert_type_address_space):
10646 Replace "parse_gdbarch" with method call.
10647 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10648 call.
10649 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10650 call.
10651 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10652 "parse_gdbarch" with method call.
10653 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10654 with method call.
10655 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10656 "parse_gdbarch" with method call.
10657 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10658 "parse_gdbarch" with method call.
10659 * c-exp.y (parse_type, parse_number, classify_name): Replace
10660 "parse_gdbarch" with method call.
10661 * ada-lex.l: Replace "parse_gdbarch" with method call.
10662 * ada-exp.y (parse_type, find_primitive_type, type_char)
10663 (type_system_address): Replace "parse_gdbarch" with method call.
10664
10665 2019-04-04 Tom Tromey <tom@tromey.com>
10666
10667 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10668 * stap-probe.c (stap_parse_argument): Update.
10669 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10670 initial_size parameter.
10671 * rust-exp.y (rust_lex_tests): Update.
10672 * parse.c (parser_state): Update.
10673 (parse_exp_in_context): Update.
10674 * parser-defs.h (struct parser_state) <parser_state>: Remove
10675 "initial_size" parameter.
10676
10677 2019-04-04 Tom Tromey <tom@tromey.com>
10678
10679 * parser-defs.h (increase_expout_size): Don't declare.
10680 * parse.c (increase_expout_size): Now static.
10681
10682 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10683
10684 * gnu-nat.c (gnu_nat_target::wait): Fix
10685 target_waitstatus_to_string call.
10686
10687 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10688
10689 * eval.c (evaluate_subexp_standard): Handle internal functions
10690 during Fortran function call handling.
10691
10692 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10693
10694 * NEWS: Mention new internal functions.
10695 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10696 (read_base_type): Use dwarf2_init_complex_target_type.
10697 * value.c (creal_internal_fn): New function.
10698 (cimag_internal_fn): New function.
10699 (_initialize_values): Register new internal functions.
10700
10701 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10702
10703 * infrun.c (stop_all_threads): If debug_infrun, always
10704 trace the wait status after wait_one, using
10705 target_waitstatus_to_string and target_pid_to_str.
10706 (handle_inferior_event): Replace various trace of
10707 wait status kind by a single trace.
10708 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10709 wait status kind image by target_waitstatus_to_string.
10710 * target/waitstatus.c (target_waitstatus_to_string): Fix
10711 obsolete comment.
10712
10713 2019-04-01 Tom Tromey <tromey@adacore.com>
10714
10715 PR symtab/23331:
10716 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10717
10718 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10719 Pedro Alves <palves@redhat.com>
10720
10721 * top.c (quit_force): Call 'finalize_values'.
10722 * value.c (finalize_values): New function.
10723 * value.h (finalize_values): Declare.
10724
10725 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10726
10727 * NEWS: Announce $_gdb_major and $_gdb_minor.
10728
10729 * top.c (init_gdb_version_vars): New function.
10730 (gdb_init): Call init_gdb_version_vars.
10731
10732 2019-03-29 Tom Tromey <tromey@adacore.com>
10733
10734 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10735 help text. Remove dead code.
10736
10737 2019-03-29 Keith Seitz <keiths@redhat.com>
10738
10739 From Siddhesh Poyarekar:
10740 * f-lang.h (f77_get_upperbound): Return LONGEST.
10741 (f77_get_lowerbound): Likewise.
10742 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10743 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10744 print them.
10745 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10746 plongest to format print it.
10747 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10748 (f77_get_upperbound): Likewise.
10749 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10750 LOWER_BOUND to LONGEST.
10751 (f77_create_arrayprint_offset_tbl): Likewise.
10752
10753 2019-03-29 Keith Seitz <keiths@redhat.com>
10754
10755 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10756 %s/pulongest for TYPE_LENGTH instead of %d in format
10757 strings.
10758 * ada-typerint.c (ada_print_type): Likewise.
10759 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10760 * compile/compile-c-support.c (generate_register_struct): Likewise.
10761 * gdbtypes.c (recursive_dump_type): Likewise.
10762 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10763 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10764 instead of %d in format strings.
10765 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10766 to std::min to ULONGEST.
10767 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10768 instead of %d in format strings.
10769 * tracepoint.c (info_scope_command): Likewise.
10770 * typeprint.c (print_offset_data::update)
10771 (print_offset_data::finish): Likewise.
10772 * xtensa-tdep.c (xtensa_store_return_value)
10773 (xtensa_push_dummy_call): Likewise.
10774
10775 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10776
10777 * windows-nat.c (display_selector): Fixed format specifications
10778 for 64-bit Cygwin.
10779
10780 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10781
10782 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10783
10784 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10785
10786 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10787 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10788 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10789 (nios2_linux_init_abi): Install it.
10790
10791 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10792
10793 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10794
10795 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10796
10797 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10798
10799 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10800 Tom Tromey <tromey@adacore.com>
10801
10802 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10803
10804 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10805
10806 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10807 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10808 method to compute the bounds of range types. Also print "[evaluated]"
10809 if the bounds' values come from a dynamic evaluation.
10810
10811 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10814 whitespace when pretty printing is on.
10815
10816 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10817
10818 * ppc-linux-nat.c: Add include.
10819
10820 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10821
10822 * NEWS: Mention AArch64 Pointer Authentication.
10823
10824 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10825
10826 * arm-linux-nat.c: Add include.
10827
10828 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10829
10830 * source-cache.c (source_cache::get_source_lines): Re-read
10831 fullname after calling open_source_file.
10832
10833 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10834
10835 * NEWS: Mention TLS support for FreeBSD.
10836
10837 2019-03-25 Tom Tromey <tromey@adacore.com>
10838
10839 * minsyms.c (BUNCH_SIZE): Update comment.
10840 (~minimal_symbol_reader): Remove old comment.
10841 (compact_minimal_symbols): Update comment.
10842 (minimal_symbol_reader::install): Remove old comment. Update
10843 other comments.
10844
10845 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10846
10847 * s390-linux-nat.c: Add include.
10848
10849 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10850
10851 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10852 Call linux_get_hwcap.
10853 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10854 Likewise.
10855 (aarch64_linux_get_hwcap): Remove function.
10856 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10857 declaration.
10858 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10859 linux_get_hwcap.
10860 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10861 * linux-tdep.c (linux_get_hwcap): Add function.
10862 (linux_get_hwcap2): Likewise.
10863 * linux-tdep.h (linux_get_hwcap): Add declaration.
10864 (linux_get_hwcap2): Likewise.
10865 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10866 (ppc_linux_get_hwcap2): Likewise.
10867 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10868 linux_get_hwcap.
10869 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10870 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10871 (ppc_linux_nat_target::read_description): Likewise.
10872 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10873 * s390-linux-nat.c: Likewise.
10874 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10875
10876 2019-03-24 Tom Tromey <tom@tromey.com>
10877
10878 * ada-lang.c (standard_lookup): Simplify initialization.
10879 (ada_lookup_symbol_nonlocal): Simplify return.
10880 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10881 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10882 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10883 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10884 initialization.
10885 * solib.c (solib_global_lookup): Simplify.
10886 * symtab.c (null_block_symbol): Remove.
10887 (symbol_cache_lookup): Simplify returns.
10888 (lookup_language_this): Simplify returns.
10889 (lookup_symbol_aux): Simplify return.
10890 (lookup_local_symbol): Simplify returns.
10891 (lookup_global_symbol_from_objfile): Simplify return.
10892 (lookup_symbol_in_objfile_symtabs)
10893 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10894 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10895 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10896 * cp-namespace.c (cp_lookup_bare_symbol)
10897 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10898 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10899 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10900 (cp_lookup_symbol_via_imports): Simplify initialization.
10901 (find_symbol_in_baseclass): Likewise.
10902 * symtab.h (null_block_symbol): Remove.
10903 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10904 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10905 (d_lookup_symbol_module): Likewise.
10906 (find_symbol_in_baseclass): Simplify initialization.
10907
10908 2019-03-24 Tom Tromey <tom@tromey.com>
10909
10910 * expression.h: Don't include symtab.h.
10911 (struct block): Forward declare.
10912
10913 2019-03-24 Tom Tromey <tom@tromey.com>
10914
10915 * c-exp.y (typebase): Remove casts.
10916 * gdbtypes.c (lookup_unsigned_typename, )
10917 (lookup_signed_typename): Remove cast.
10918 * eval.c (parse_to_comma_and_eval): Remove cast.
10919 * parse.c (write_dollar_variable): Remove cast.
10920 * block.h (struct block) <superblock>: Now const.
10921 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10922 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10923 (map_block): Make "block" const.
10924 * symfile.h (struct quick_symbol_functions)
10925 <map_matching_symbols>: Constify block argument to "callback".
10926 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10927 const.
10928 (find_pc_sect_compunit_symtab): Make "b" const.
10929 (find_symbol_at_address): Likewise.
10930 (search_symbols): Likewise.
10931 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10932 (dw2_debug_names_lookup_symbol): Likewise.
10933 (dw2_map_matching_symbols): Update.
10934 * p-valprint.c (pascal_val_print): Remove "block".
10935 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10936 (aux_add_nonlocal_symbols): Make "block" const.
10937 (resolve_subexp): Remove cast.
10938 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10939 const.
10940 (iterate_over_file_blocks): Likewise.
10941 * f-exp.y (%union) <bval>: Remove.
10942 * coffread.c (patch_opaque_types): Make "b" const.
10943 * spu-tdep.c (spu_catch_start): Make "block" const.
10944 * c-valprint.c (print_unpacked_pointer): Remove "block".
10945 * symmisc.c (dump_symtab_1): Make "b" const.
10946 (block_depth): Make "block" const.
10947 * d-exp.y (%union) <bval>: Remove.
10948 * cp-support.h (cp_lookup_rtti_type): Update.
10949 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10950 * psymtab.c (psym_lookup_symbol): Make "block" const.
10951 (maintenance_check_psymtabs): Make "b" const.
10952 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10953 (enumerate_locals, enumerate_args): Update.
10954 * python/py-symtab.c (stpy_global_block): Make "block" const.
10955 (stpy_static_block): Likewise.
10956 * inline-frame.c (block_starting_point_at): Make "new_block"
10957 const.
10958 * block.c (find_block_in_blockvector): Make return type const.
10959 (blockvector_for_pc_sect): Make "b" const.
10960 (find_block_in_blockvector): Make "b" const.
10961
10962 2019-03-23 Tom Tromey <tom@tromey.com>
10963
10964 * varobj.c (varobj_create): Update.
10965 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10966 * printcmd.c (display_command, do_one_display): Don't reset
10967 innermost_block.
10968 * parser-defs.h (enum innermost_block_tracker_type): Move to
10969 expression.h.
10970 (innermost_block): Update comment.
10971 * parse.c (parse_exp_1): Add tracker_types parameter.
10972 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10973 tracker_types parameter. Reset innermost_block.
10974 (parse_exp_in_context): Remove.
10975 (parse_expression_for_completion): Update.
10976 * objfiles.c (~objfile): Don't reset expression_context_block or
10977 innermost_block.
10978 * expression.h (enum innermost_block_tracker_type): Move from
10979 parser-defs.h.
10980 (parse_exp_1): Add tracker_types parameter.
10981 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10982 reset innermost_block.
10983
10984 2019-03-23 Tom Tromey <tom@tromey.com>
10985
10986 * objfiles.h: Include bcache.h.
10987
10988 2019-03-23 Tom Tromey <tom@tromey.com>
10989
10990 * linespec.c (get_current_search_block): Use
10991 scoped_restore_current_language.
10992 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10993
10994 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10995 Jiong Wang <jiong.wang@arm.com>
10996
10997 * aarch64-linux-tdep.c
10998 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10999 section.
11000 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11001
11002 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11003 Jiong Wang <jiong.wang@arm.com>
11004
11005 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11006 instructions.
11007 (aarch64_analyze_prologue_test): Add PACIASP test.
11008 (aarch64_prologue_prev_register): Unmask PC value.
11009
11010 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11011 Jiong Wang <jiong.wang@arm.com>
11012
11013 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11014 (aarch64_dwarf2_prev_register): Unmask PC value.
11015 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11016 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11017 DW_CFA_AARCH64_negate_ra_state.
11018 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11019
11020 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11021 Jiong Wang <jiong.wang@arm.com>
11022
11023 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11024 registers.
11025 (aarch64_pseudo_register_name): Likewise.
11026 (aarch64_pseudo_register_type): Likewise.
11027 (aarch64_pseudo_register_reggroup_p): Likewise.
11028 (aarch64_gdbarch_init): Add pauth registers.
11029 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11030 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11031 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11032 (struct gdbarch_tdep): Add regnum for ra_state.
11033
11034 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11035 Jiong Wang <jiong.wang@arm.com>
11036
11037 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11038
11039 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11040 Jiong Wang <jiong.wang@arm.com>
11041
11042 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11043 function.
11044 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11045 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11046 (aarch64_gdbarch_init): Add puth registers.
11047 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11048 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11049 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11050
11051 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11052 Jiong Wang <jiong.wang@arm.com>
11053
11054 * aarch64-linux-nat.c
11055 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11056 * aarch64-linux-tdep.c
11057 (aarch64_linux_core_read_description): Likewise.
11058 (aarch64_linux_get_hwcap): New function.
11059 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11060 (aarch64_linux_get_hwcap): New declaration.
11061
11062 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11063 Jiong Wang <jiong.wang@arm.com>
11064
11065 * aarch64-linux-nat.c
11066 (aarch64_linux_nat_target::read_description): Add pauth param.
11067 * aarch64-linux-tdep.c
11068 (aarch64_linux_core_read_description): Likewise.
11069 * aarch64-tdep.c (struct target_desc): Add in pauth.
11070 (aarch64_read_description): Add pauth param.
11071 (aarch64_gdbarch_init): Likewise.
11072 * aarch64-tdep.h (aarch64_read_description): Likewise.
11073 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11074 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11075 * features/Makefile: Add new files.
11076 * features/aarch64-pauth.c: New file.
11077 * features/aarch64-pauth.xml: New file.
11078
11079 2019-03-20 Tom Tromey <tromey@adacore.com>
11080
11081 * infrun.c (handle_inferior_event): Rename from
11082 handle_inferior_event_1. Create a scoped_value_mark.
11083 (handle_inferior_event): Remove.
11084
11085 2019-03-19 Tom Tromey <tromey@adacore.com>
11086
11087 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11088 * infrun.h (print_stop_event): Add "displays" parameter.
11089 * infrun.c (print_stop_event): Add "displays" parameter.
11090
11091 2019-03-19 Pedro Alves <palves@redhat.com>
11092
11093 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11094 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11095 to -1. Fix TABs vs spaces.
11096 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11097 * tui/tui-out.h (tui_ui_out) Add intro comments.
11098 <m_line, m_start_of_line>: In-class initialize, and add describing
11099 comment.
11100
11101 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11102
11103 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11104 variable names.
11105 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11106
11107 2019-03-18 Pedro Alves <palves@redhat.com>
11108 Eli Zaretskii <eliz@gnu.org>
11109
11110 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11111 m_line and m_start_of_line.
11112
11113 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11114
11115 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11116 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11117 it returns a newline. This fixes a regression in TU mode, whereby
11118 the next line is output on the same screen line as the user input.
11119
11120 2019-03-18 Tom Tromey <tromey@adacore.com>
11121
11122 * minsyms.c (minimal_symbol_reader::install): Remove call to
11123 obstack_blank.
11124
11125 2019-03-18 Pedro Alves <palves@redhat.com>
11126
11127 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11128 New globals.
11129 (apply_style): New, factored out from ...
11130 (apply_ansi_escape): ... this. Handle reverse video mode.
11131 (tui_set_reverse_mode): New function.
11132 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11133 * tui/tui-winsource.c (tui_show_source_line): Use
11134 tui_set_reverse_mode instead of setting A_STANDOUT.
11135 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11136 New setter methods.
11137
11138 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11139
11140 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11141 Handle tabs.
11142
11143 2019-03-18 Tom Tromey <tromey@adacore.com>
11144
11145 * ada-lang.c (empty_array): Add "high" parameter.
11146 (ada_evaluate_subexp): Update.
11147
11148 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11149
11150 * unittests/string_view-selftests.c: Define
11151 _initialize_string_view_selftests unconditionally.
11152
11153 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11154
11155 PR gdb/24350
11156 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11157
11158 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11159
11160 PR gdb/24351
11161 * windows-nat.c (display_selector): Fix format specifiers.
11162
11163 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11164
11165 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11166 tui_refill_source_window instead of tui_refresh_win, to update the
11167 current execution line. This fixes redisplay of the current line
11168 when stepping through the code with "next" or "step".
11169
11170 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11171
11172 * source-cache.c (source_cache::get_source_lines): Call
11173 find_source_lines to initialize s->nlines. This fixes vertical
11174 scrolling of TUI source window when the DOWN arrow is pressed.
11175
11176 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11177
11178 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11179 linux-thread-db.c (_initialize_thread_db): Likewise.
11180
11181 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11182
11183 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11184 wclrtoeol in tui_show_source_line". This reverts changes made in
11185 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11186
11187 2019-03-15 Tom Tromey <tom@tromey.com>
11188
11189 * symtab.h (struct minimal_symbol): Derive from
11190 general_symbol_info.
11191 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11192 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11193 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11194 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11195 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11196 (MSYMBOL_SEARCH_NAME): Update.
11197 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11198 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11199 * minsyms.c (minimal_symbol_reader::record_full): Update.
11200
11201 2019-03-15 Tom Tromey <tom@tromey.com>
11202
11203 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11204
11205 2019-03-15 Tom Tromey <tom@tromey.com>
11206
11207 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11208 unique_xmalloc_ptr.
11209 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11210 Update.
11211 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11212 (build_minimal_symbol_hash_tables)
11213 (minimal_symbol_reader::install): Update.
11214
11215 2019-03-15 Tom Tromey <tom@tromey.com>
11216
11217 * symtab.c (create_demangled_names_hash): Update.
11218 (symbol_set_names): Update.
11219 * objfiles.h (struct objfile_per_bfd_storage)
11220 <demangled_names_hash>: Now an htab_up.
11221 * objfiles.c (objfile_per_bfd_storage): Simplify.
11222
11223 2019-03-15 Tom Tromey <tom@tromey.com>
11224
11225 * objfiles.h (struct objfile_per_bfd_storage): Declare
11226 destructor.
11227 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11228 New.
11229 (get_objfile_bfd_data): Use new. Don't initialize
11230 language_of_main.
11231 (free_objfile_per_bfd_storage): Remove.
11232 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11233
11234 2019-03-15 Tom Tromey <tom@tromey.com>
11235
11236 * symfile.c (reread_symbols): Update.
11237 * objfiles.c (objfile::objfile): Update.
11238 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11239 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11240 comment.
11241 (minimal_symbol_reader::install): Update.
11242 (terminate_minimal_symbol_table): Remove.
11243 * jit.c (jit_object_close_impl): Update.
11244
11245 2019-03-15 Tom Tromey <tom@tromey.com>
11246
11247 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11248 initializations.
11249
11250 2019-03-15 Tom Tromey <tom@tromey.com>
11251
11252 * objfiles.h (struct objfile_per_bfd_storage)
11253 <demangled_hash_languages>: Now a bitset.
11254 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11255 (lookup_minimal_symbol): Update.
11256
11257 2019-03-15 Tom Tromey <tom@tromey.com>
11258
11259 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11260 Don't return the symbol.
11261 * coffread.c (record_minimal_symbol): Use record_full.
11262
11263 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11264
11265 The MS-Windows port of ncurses fails to switch to a color pair if
11266 one or both of the colors are the implicit default colors. This
11267 change records the default colors when TUI is initialized, and
11268 then specifies them explicitly when a color pair uses the default
11269 colors. This allows color styling in TUI mode on MS-Windows.
11270
11271 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11272 ncurses_norm_attr.
11273 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11274 colors in ncurses_norm_attr.
11275 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11276 "none", replace it with the default color recorded in
11277 ncurses_norm_attr.
11278
11279 2019-03-14 Tom Tromey <tromey@adacore.com>
11280
11281 * source-cache.h (class source_cache) <get_source_lines>: Return
11282 std::string.
11283 * source-cache.c (source_cache::extract_lines): Handle case where
11284 first_pos==npos. Return std::string.
11285 (source_cache::get_source_lines): Update.
11286
11287 2019-03-14 Tom Tromey <tromey@adacore.com>
11288
11289 * NEWS: Add item for "style sources" commands.
11290 * source-cache.c (source_cache::get_source_lines): Check
11291 source_styling.
11292 * cli/cli-style.c (source_styling): New global.
11293 (_initialize_cli_style): Add "style sources" commands.
11294 (show_style_sources): New function.
11295 * cli/cli-style.h (source_styling): Declare.
11296
11297 2019-03-14 Pedro Alves <palves@redhat.com>
11298 Tom Tromey <tromey@adacore.com>
11299
11300 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11301 * tui/tui-winsource.c (tui_refill_source_window): New function,
11302 from...
11303 (tui_horizontal_source_scroll): ... here. Move some logic.
11304 * cli/cli-style.c (set_style_enabled): Notify new observable.
11305 * tui/tui-hooks.c (tui_redisplay_source): New function.
11306 (tui_attach_detach_observers): Attach or detach
11307 tui_redisplay_source.
11308 * observable.h (source_styling_changed): New observable.
11309 * observable.c: Define source_styling_changed observable.
11310
11311 2019-03-13 Tom Tromey <tromey@adacore.com>
11312
11313 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11314 (i386_gnu_nat_target::store_registers): Update.
11315 * target-debug.h (target_debug_print_std_string): New macro.
11316 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11317 * windows-tdep.c (display_one_tib): Update.
11318 * tui/tui-stack.c (tui_make_status_line): Update.
11319 * top.c (print_inferior_quit_action): Update.
11320 * thread.c (thr_try_catch_cmd): Update.
11321 (add_thread_with_info): Update.
11322 (thread_target_id_str): Update.
11323 (thr_try_catch_cmd): Update.
11324 (thread_command): Update.
11325 (thread_find_command): Update.
11326 * record-btrace.c (record_btrace_target::info_record)
11327 (record_btrace_resume_thread, record_btrace_target::resume)
11328 (record_btrace_cancel_resume, record_btrace_step_thread)
11329 (record_btrace_target::wait, record_btrace_target::wait)
11330 (record_btrace_target::wait, record_btrace_target::stop): Update.
11331 * progspace.c (print_program_space): Update.
11332 * process-stratum-target.c
11333 (process_stratum_target::thread_address_space): Update.
11334 * linux-fork.c (linux_fork_mourn_inferior)
11335 (detach_checkpoint_command, info_checkpoints_command)
11336 (linux_fork_context): Update.
11337 (linux_fork_detach): Update.
11338 (class scoped_switch_fork_info): Update.
11339 (delete_checkpoint_command): Update.
11340 * infrun.c (follow_fork_inferior): Update.
11341 (follow_fork_inferior): Update.
11342 (proceed_after_vfork_done): Update.
11343 (handle_vfork_child_exec_or_exit): Update.
11344 (follow_exec): Update.
11345 (displaced_step_prepare_throw): Update.
11346 (displaced_step_restore): Update.
11347 (start_step_over): Update.
11348 (resume_1): Update.
11349 (clear_proceed_status_thread): Update.
11350 (proceed): Update.
11351 (print_target_wait_results): Update.
11352 (do_target_wait): Update.
11353 (context_switch): Update.
11354 (stop_all_threads): Update.
11355 (restart_threads): Update.
11356 (finish_step_over): Update.
11357 (handle_signal_stop): Update.
11358 (switch_back_to_stepped_thread): Update.
11359 (keep_going_pass_signal): Update.
11360 (print_exited_reason): Update.
11361 (normal_stop): Update.
11362 * inferior.c (inferior_pid_to_str): Change return type.
11363 (print_selected_inferior): Update.
11364 (add_inferior): Update.
11365 (detach_inferior): Update.
11366 * dummy-frame.c (fprint_dummy_frames): Update.
11367 * dcache.c (dcache_info_1): Update.
11368 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11369 (btrace_fetch, btrace_clear): Update.
11370 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11371 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11372 type.
11373 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11374 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11375 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11376 * gdbarch.c, gdbarch.h: Rebuild.
11377 * gdbarch.sh (core_pid_to_str): Change return type.
11378 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11379 return type.
11380 (windows_nat_target::pid_to_str): Change return type.
11381 (windows_delete_thread): Update.
11382 (windows_nat_target::attach): Update.
11383 (windows_nat_target::files_info): Update.
11384 * target-delegates.c: Rebuild.
11385 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11386 return type.
11387 (sol_thread_target::pid_to_str): Change return type.
11388 * remote.c (class remote_target) <pid_to_str>: Change return
11389 type.
11390 (remote_target::pid_to_str): Change return type.
11391 (extended_remote_target::attach, remote_target::remote_stop_ns)
11392 (remote_target::remote_notif_remove_queued_reply)
11393 (remote_target::push_stop_reply, remote_target::disable_btrace):
11394 Update.
11395 (extended_remote_target::attach): Update.
11396 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11397 type.
11398 (gdbsim_target::pid_to_str): Change return type.
11399 * ravenscar-thread.c (struct ravenscar_thread_target)
11400 <pid_to_str>: Change return type.
11401 (ravenscar_thread_target::pid_to_str): Change return type.
11402 * procfs.c (class procfs_target) <pid_to_str>: Change return
11403 type.
11404 (procfs_target::pid_to_str): Change return type.
11405 (procfs_target::attach): Update.
11406 (procfs_target::detach): Update.
11407 (procfs_target::fetch_registers): Update.
11408 (procfs_target::store_registers): Update.
11409 (procfs_target::wait): Update.
11410 (procfs_target::files_info): Update.
11411 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11412 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11413 return type.
11414 (nto_procfs_target::pid_to_str): Change return type.
11415 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11416 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11417 return type.
11418 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11419 (exit_lwp): Update.
11420 (attach_proc_task_lwp_callback, get_detach_signal)
11421 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11422 (linux_nat_target::resume, wait_lwp, stop_callback)
11423 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11424 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11425 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11426 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11427 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11428 type.
11429 (inf_ptrace_target::attach): Update.
11430 (inf_ptrace_target::files_info): Update.
11431 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11432 type.
11433 (go32_nat_target::pid_to_str): Change return type.
11434 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11435 (gnu_nat_target::wait): Update.
11436 (gnu_nat_target::wait): Update.
11437 (gnu_nat_target::resume): Update.
11438 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11439 (fbsd_nat_target::wait): Update.
11440 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11441 type.
11442 (darwin_nat_target::attach): Update.
11443 * corelow.c (class core_target) <pid_to_str>: Change return type.
11444 (core_target::pid_to_str): Change return type.
11445 * target.c (normal_pid_to_str): Change return type.
11446 (default_pid_to_str): Likewise.
11447 (target_pid_to_str): Change return type.
11448 (target_translate_tls_address): Update.
11449 (target_announce_detach): Update.
11450 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11451 return type.
11452 (bsd_uthread_target::pid_to_str): Change return type.
11453 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11454 type.
11455 (bsd_kvm_target::pid_to_str): Change return type.
11456 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11457 return type.
11458 (aix_thread_target::pid_to_str): Change return type.
11459 * target.h (struct target_ops) <pid_to_str>: Change return type.
11460 (target_pid_to_str, normal_pid_to_str): Likewise.
11461 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11462 type.
11463 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11464 type.
11465 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11466 return type.
11467 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11468 type.
11469 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11470 type.
11471 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11472 return type.
11473
11474 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11475
11476 * NEWS: Mention that the new default MI version is 3. Mention
11477 changes to the output of commands and events that deal with
11478 multi-location breakpoints.
11479 * breakpoint.c: Include "mi/mi-out.h".
11480 (print_one_breakpoint): Change output syntax if using MI version
11481 >= 3.
11482 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11483 New.
11484 (mi_multi_location_breakpoint_output_fixed): New.
11485 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11486 (mi_cmd_fix_multi_location_breakpoint_output): New.
11487 (mi_multi_location_breakpoint_output_fixed): New.
11488 * mi/mi-cmds.c (mi_cmds): Register command
11489 -fix-multi-location-breakpoint-output.
11490 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11491 interpreter "mi".
11492
11493 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11494
11495 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11496 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11497 instantiate mi_ui_out based on interpreter name.
11498 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11499 * mi/mi-main.c (mi_load_progress): Likewise.
11500
11501 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11502
11503 * NEWS: Combine separate "New targets" sections for 8.3.
11504
11505 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11506
11507 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11508 (ppcfbsd_init_abi): Install gdbarch
11509 "fetch_tls_load_module_address" and "get_thread_local_address"
11510 methods.
11511
11512 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11513
11514 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11515 (riscv_fbsd_init_abi): Install gdbarch
11516 "fetch_tls_load_module_address" and "get_thread_local_address"
11517 methods.
11518
11519 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11520
11521 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11522 (i386fbsd_init_abi): Install gdbarch
11523 "fetch_tls_load_module_address" and "get_thread_local_address"
11524 methods.
11525
11526 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11527
11528 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11529 (amd64fbsd_init_abi): Install gdbarch
11530 "fetch_tls_load_module_address" and "get_thread_local_address"
11531 methods.
11532
11533 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11534
11535 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11536 (struct fbsd_pspace_data): New type.
11537 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11538 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11539 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11540 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11541 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11542
11543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11544
11545 * gdbtypes.c (lookup_struct_elt): New function.
11546 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11547 * gdbtypes.h (struct struct_elt): New type.
11548 (lookup_struct_elt): New prototype.
11549
11550 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11551
11552 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11553 remove disabled code block.
11554
11555 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11556
11557 * gdbarch.sh (get_thread_local_address): New method.
11558 * gdbarch.h, gdbarch.c: Regenerate.
11559 * target.c (target_translate_tls_address): Use
11560 gdbarch_get_thread_local_address if present instead of
11561 target::get_thread_local_address.
11562
11563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11564
11565 * target.h (target::get_thread_local_address): Update comment.
11566
11567 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11568
11569 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11570 objfile->separate_debug_objfile_backlink if not NULL.
11571
11572 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11573
11574 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11575 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11576 (amd64bsd_store_inferior_registers): Likewise.
11577 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11578 Enable segment base registers.
11579 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11580 PT_GETFSBASE and PT_GETGSBASE.
11581 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11582 PT_SETGSBASE.
11583 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11584 segment base registers.
11585 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11586
11587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11588
11589 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11590 Update calls to i386_target_description to add 'segments'
11591 parameter.
11592 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11593 add segment base registers.
11594 * arch/i386.c (i386_create_target_description): Add 'segments'
11595 parameter to enable segment base registers.
11596 * arch/i386.h (i386_create_target_description): Likewise.
11597 * features/i386/32bit-segments.xml: New file.
11598 * features/i386/32bit-segments.c: Generate.
11599 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11600 call to i386_target_description to add 'segments' parameter.
11601 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11602 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11603 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11604 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11605 if feature is present.
11606 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11607 Add 'segments' parameter to call to i386_target_description.
11608 (i386_target_description): Add 'segments' parameter to enable
11609 segment base registers.
11610 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11611 to call to i386_target_description.
11612 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11613 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11614 Define I386_NUM_REGS.
11615 (i386_target_description): Add 'segments' parameter to enable
11616 segment base registers.
11617
11618 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11619
11620 PR/24325
11621 * source-cache.c: #undef open and close, to avoid unresolved
11622 externals during linking.
11623
11624 2019-03-12 Tom Tromey <tromey@adacore.com>
11625
11626 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11627 const. Add initializers.
11628 (_initialize_remote): Don't initialize ptid globals.
11629
11630 2019-03-12 Pedro Alves <palves@redhat.com>
11631
11632 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11633
11634 2019-03-12 Pedro Alves <palves@redhat.com>
11635
11636 * cp-name-parser.y (main): Remove unused 'len' variable.
11637
11638 2019-03-12 Tom Tromey <tromey@adacore.com>
11639
11640 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11641 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11642
11643 2019-03-12 Tom Tromey <tromey@adacore.com>
11644
11645 * linux-nat.c (iterate_over_lwps): Update.
11646 (stop_callback): Remove parameter.
11647 (stop_wait_callback, detach_callback, resume_set_callback)
11648 (select_singlestep_lwp_callback, set_ignore_sigint)
11649 (status_callback, resumed_callback, resume_clear_callback)
11650 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11651 data parameter.
11652 (linux_nat_target::detach, linux_nat_target::resume)
11653 (linux_stop_and_wait_all_lwps, select_event_lwp)
11654 (linux_nat_filter_event, linux_nat_wait_1)
11655 (linux_nat_target::kill, linux_nat_target::stop)
11656 (linux_nat_target::stop): Update.
11657 (linux_nat_resume_callback): Change type.
11658 (resume_stopped_resumed_lwps, count_events_callback)
11659 (select_event_lwp_callback): Likewise.
11660 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11661 * arm-linux-nat.c (struct update_registers_data): Remove.
11662 (update_registers_callback): Change type.
11663 (arm_linux_insert_hw_breakpoint1): Update.
11664 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11665 parameter.
11666 (x86_linux_dr_set_addr): Update.
11667 (x86_linux_dr_set_control): Update.
11668 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11669 (iterate_over_lwps): Use gdb::function_view.
11670 * nat/aarch64-linux-hw-point.c (struct
11671 aarch64_dr_update_callback_param): Remove.
11672 (debug_reg_change_callback): Change type.
11673 (aarch64_notify_debug_reg_change): Update.
11674 * s390-linux-nat.c (s390_refresh_per_info): Update.
11675
11676 2019-03-11 Tom Tromey <tromey@adacore.com>
11677
11678 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11679 redundant assignment to "this_cu".
11680
11681 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11684
11685 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11688 from...
11689 (rank_one_type): ... this.
11690
11691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11694 from...
11695 (rank_one_type): ... this.
11696
11697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11698
11699 * gdbtypes.c (rank_one_type_parm_complex): 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_float): 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_bool): 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_range): 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_char): 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_enum): 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_int): 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_func): 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_array): 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_ptr): New function extracted
11754 from...
11755 (rank_one_type): ... this.
11756
11757 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11758
11759 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11760 inferior-events' shows the example events.
11761
11762 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11763
11764 Support styling on native MS-Windows console
11765
11766 PR/24315
11767 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11768 on MS-Windows if $TERM is not defined.
11769
11770 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11771
11772 * posix-hdep.c (gdb_console_fputs):
11773 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11774 functions.
11775 * ui-file.h (gdb_console_fputs): Add prototype.
11776
11777 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11778 back to fputs only if the former returns zero.
11779
11780 2019-03-07 Tom Tromey <tom@tromey.com>
11781
11782 * symmisc.c (print_symbol_bcache_statistics): Update.
11783 (print_objfile_statistics): Update.
11784 * symfile.c (allocate_symtab): Update.
11785 * stabsread.c: Don't include bcache.h.
11786 * psymtab.h (struct psymbol_bcache): Don't declare.
11787 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11788 (psymbol_bcache_init, psymbol_bcache_free)
11789 (psymbol_bcache_get_bcache): Don't declare.
11790 * psymtab.c (struct psymbol_bcache): Remove.
11791 (psymtab_storage::psymtab_storage): Update.
11792 (psymtab_storage::~psymtab_storage): Update.
11793 (psymbol_bcache_init, psymbol_bcache_free)
11794 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11795 (add_psymbol_to_bcache): Update.
11796 (allocate_psymtab): Update.
11797 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11798 macro_cache>: No longer pointers.
11799 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11800 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11801 * macrotab.c (macro_bcache): Update.
11802 * macroexp.c: Don't include bcache.h.
11803 * gdbtypes.c (check_types_worklist): Update.
11804 (types_deeply_equal): Remove TRY/CATCH. Update.
11805 * elfread.c (elf_symtab_read): Update.
11806 * dwarf2read.c: Don't include bcache.h.
11807 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11808 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11809 (print_bcache_statistics, bcache_memory_used): Don't declare.
11810 (struct bcache): Move from bcache.c. Add constructor, destructor,
11811 methods. Rename all data members.
11812 * bcache.c (struct bcache): Move to bcache.h.
11813 (bcache::expand_hash_table): Rename from expand_hash_table.
11814 (bcache): Remove.
11815 (bcache::insert): Rename from bcache_full.
11816 (bcache::compare): Rename from bcache_compare.
11817 (bcache_xmalloc): Remove.
11818 (bcache::~bcache): Rename from bcache_xfree.
11819 (bcache::print_statistics): Rename from print_bcache_statistics.
11820 (bcache::memory_used): Rename from bcache_memory_used.
11821
11822 2019-03-07 Pedro Alves <palves@redhat.com>
11823
11824 * infrun.c (normal_stop): Also check for
11825 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11826
11827 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11828
11829 * f-lang.c (value_from_host_double): Moved to...
11830 * value.c (value_from_host_double): ...here.
11831 * value.h (value_from_host_double): Declare.
11832 * guile/scm-math.c (vlscm_convert_typed_number): Use
11833 value_from_host_double.
11834 (vlscm_convert_number): Likewise.
11835 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11836 * python/py-value.c (convert_value_from_python): Likewise.
11837
11838 2019-03-06 Tom Tromey <tom@tromey.com>
11839
11840 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11841
11842 2019-03-06 Tom Tromey <tom@tromey.com>
11843
11844 * utils.h (free_current_contents): Don't declare.
11845 * utils.c (free_current_contents): Remove.
11846
11847 2019-03-06 Tom Tromey <tom@tromey.com>
11848
11849 * top.c (quit_force): Update.
11850 * main.c (captured_command_loop): Update.
11851 * common/new-op.c (operator new): Update.
11852 * common/common-exceptions.c (struct catcher)
11853 <save_cleanup_chain>: Remove member.
11854 (exceptions_state_mc_init): Update.
11855 (exception_try_scope_entry): Return nullptr.
11856 (exception_try_scope_exit, exception_rethrow)
11857 (throw_exception_sjlj, throw_exception_cxx): Update.
11858 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11859 (all_cleanups, do_cleanups, discard_cleanups)
11860 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11861 (restore_cleanups, restore_final_cleanups): Don't declare.
11862 (do_final_cleanups): Remove parameter.
11863 * common/cleanups.c (cleanup_chain, make_cleanup)
11864 (make_cleanup_dtor, all_cleanups, do_cleanups)
11865 (discard_my_cleanups, discard_cleanups)
11866 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11867 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11868 (null_cleanup): Remove.
11869 (do_final_cleanups): Remove parameter.
11870
11871 2019-03-06 Tom Tromey <tom@tromey.com>
11872
11873 * remote.c (remote_target::remote_parse_stop_reply): Use
11874 unique_xmalloc_ptr.
11875
11876 2019-03-06 Tom Tromey <tom@tromey.com>
11877
11878 * stabsread.c (struct stabs_field_info): Rename from field_info.
11879 <list, fnlist>: Add initializers.
11880 <obstack>: New member.
11881 (read_member_functions, read_struct_fields, read_baseclasses):
11882 Allocate on obstack. Don't use cleanups.
11883 (read_one_struct_field, read_member_functions, read_struct_fields)
11884 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11885 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11886 (read_struct_type): Update.
11887
11888 2019-03-06 Tom Tromey <tom@tromey.com>
11889
11890 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11891 * common/filestuff.h (make_cleanup_close): Don't declare.
11892 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11893 Remove.
11894
11895 2019-03-06 Tom Tromey <tom@tromey.com>
11896
11897 * solib-aix.c: Use make_scope_exit.
11898
11899 2019-03-06 Tom Tromey <tom@tromey.com>
11900
11901 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11902 Use make_scope_exit.
11903
11904 2019-03-06 Tom Tromey <tom@tromey.com>
11905
11906 * solib-svr4.c (disable_probes_interface): Remove parameter.
11907 (svr4_handle_solib_event): Use make_scope_exit.
11908
11909 2019-03-06 Tom Tromey <tom@tromey.com>
11910
11911 * remote.c (struct stop_reply_deleter): Remove.
11912 (stop_reply_up): Update.
11913 (struct stop_reply): Derive from notif_event. Don't typedef.
11914 <regcache>: Now a std::vector.
11915 (stop_reply_xfree): Remove.
11916 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11917 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11918 (remote_target::discard_pending_stop_replies): Use delete.
11919 (remote_target::remote_parse_stop_reply): Update.
11920 (remote_target::process_stop_reply): Update.
11921 * remote-notif.h (struct notif_event): Add virtual destructor.
11922 Remove "dtr" member.
11923 (struct notif_client) <alloc_event>: Return a unique_ptr.
11924 (notif_event_xfree): Don't declare.
11925 (notif_event_up): New typedef.
11926 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11927 (notif_event_xfree, do_notif_event_xfree): Remove.
11928 (remote_notif_state_xfree): Update.
11929
11930 2019-03-06 Tom Tromey <tom@tromey.com>
11931
11932 * infrun.c (displaced_step_clear_cleanup): Now a
11933 forward_scope_exit type.
11934 (displaced_step_prepare_throw): Update.
11935 (displaced_step_fixup): Update.
11936
11937 2019-03-06 Tom Tromey <tom@tromey.com>
11938
11939 * inferior.h (class inferior): Update comment.
11940 * gdbthread.h (class thread_info): Update comment.
11941
11942 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11943 Tom Tromey <tom@tromey.com>
11944
11945 * stabsread.h (struct stab_section_list): Remove.
11946 (coffstab_build_psymtabs): Update.
11947 * dbxread.c (symbuf_sections): Now a std::vector.
11948 (sect_idx): New global.
11949 (fill_symbuf): Update.
11950 (coffstab_build_psymtabs): Change type of stabsects parameter.
11951 Update.
11952 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11953 std::vector.
11954 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11955 (coff_locate_sections): Update.
11956 (coff_symfile_read): Remove cleanups. Update.
11957 (init_stringtab): Add storage parameter.
11958 (free_stringtab, free_stringtab_cleanup): Remove.
11959 (init_lineno): Add storage parameter.
11960 (free_linetab, free_linetab_cleanup): Remove.
11961
11962 2019-03-06 Pedro Alves <palves@redhat.com>
11963
11964 * linux-fork.c (fork_info::clobber_regs): Delete.
11965 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11966 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11967 comment. Adjust.
11968 (scoped_switch_fork_info::scoped_switch_fork_info)
11969 (checkpoint_command, linux_fork_context): Adjust
11970 fork_save_infrun_state calls.
11971
11972 2019-03-06 Pedro Alves <palves@redhat.com>
11973
11974 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11975 (inf_has_multiple_threads): Return 'bool' and rewrite using
11976 inferior_info::threads().
11977
11978 2019-03-06 Pedro Alves <palves@redhat.com>
11979
11980 * linux-fork.c: Include <list>.
11981 (fork_list): Now a std::list instance.
11982 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11983 (forks_exist_p, find_last_fork): Adjust.
11984 (new_fork): Delete.
11985 (one_fork_p): New.
11986 (add_fork): Adjust.
11987 (free_fork): Delete, folded into fork_info::~fork_info().
11988 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11989 Adjust.
11990 (init_fork_list): Delete.
11991 (linux_fork_killall, linux_fork_mourn_inferior)
11992 (linux_fork_detach, info_checkpoints_command): Adjust.
11993 (_initialize_linux_fork): No longer call init_fork_list.
11994
11995 2019-03-06 Pedro Alves <palves@redhat.com>
11996
11997 * linux-fork.c (new_fork): New, split out of ...
11998 (add_fork): ... this. Return void. Move "first fork" special
11999 case from here, to ...
12000 (checkpoint_command): ... here.
12001 * linux-linux.h (add_fork): Return void.
12002
12003 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12004
12005 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12006
12007 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12008 Chris January <chris.january@arm.com>
12009 David Lecomber <david.lecomber@arm.com>
12010
12011 * f-exp.y: New token, UNOP_INTRINSIC.
12012 (exp): New pattern using UNOP_INTRINSIC token.
12013 (f77_keywords): Add 'abs' keyword.
12014 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12015 (value_from_host_double): New function.
12016 (evaluate_subexp_f): Support UNOP_ABS.
12017
12018 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12019
12020 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12021 types.
12022
12023 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12024
12025 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12026 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12027 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12028
12029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12030
12031 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12032
12033 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12034 Chris January <chris.january@arm.com>
12035
12036 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12037 * f-exp.y: Define 'KIND' token.
12038 (exp): New pattern for KIND expressions.
12039 (ptype): Handle types with a kind extension.
12040 (direct_abs_decl): Extend to spot kind extensions.
12041 (f77_keywords): Add 'kind' to the list.
12042 (push_kind_type): New function.
12043 (convert_to_kind_type): New function.
12044 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12045 * parse.c (operator_length_standard): Likewise.
12046 * parser-defs.h (enum type_pieces): Add tp_kind.
12047 * std-operator.def: Add UNOP_KIND.
12048
12049 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12050
12051 * f-exp.y (f_parse): Set yydebug.
12052
12053 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12054
12055 * f-lang.c (evaluate_subexp_f): New function.
12056 (exp_descriptor_f): New global.
12057 (f_language_defn): Use exp_descriptor_f instead of
12058 exp_descriptor_standard.
12059
12060 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12061
12062 * f-exp.y (struct token): Add comments.
12063 (dot_ops): Remove uppercase versions and the end marker.
12064 (f77_keywords): Likewise.
12065 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12066 entries in the dot_ops array are case insensitive, and use
12067 strncasecmp to compare strings. Also some whitespace cleanup in
12068 this area. Similar for the f77_keywords array, except entries in
12069 this list might be case sensitive.
12070
12071 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12072
12073 * f-exp.y (struct f77_boolean_val): Add comments.
12074 (boolean_values): Remove uppercase versions, and end marker.
12075 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12076 and use strncasecmp to achieve case insensitivity. Additionally,
12077 perform whitespace cleanup around this code.
12078
12079 2019-03-06 Tom Tromey <tromey@adacore.com>
12080
12081 * remote-sim.c (gdbsim_target_open): Use result of
12082 gdb_argv::release.
12083
12084 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12085 Dirk Schubert <dirk.schubert@arm.com>
12086 Chris January <chris.january@arm.com>
12087
12088 * eval.c (evaluate_subexp_standard): Call Fortran argument
12089 wrapping logic.
12090 * f-lang.c (struct value): A value which can be passed into a
12091 Fortran function call.
12092 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12093 where appropriate.
12094 (struct type): Value ready for a Fortran function call.
12095 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12096 is needed.
12097 * f-lang.h (fortran_argument_convert): Declaration.
12098 (fortran_preserve_arg_pointer): Declaration.
12099 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12100
12101 2019-03-05 Tom Tromey <tromey@adacore.com>
12102
12103 * python/py-prettyprint.c (print_string_repr): Remove #if.
12104 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12105
12106 2019-03-05 Tom Tromey <tromey@adacore.com>
12107
12108 * target.c (the_dummy_target): Move later. Change type to
12109 "dummy_target".
12110 (initialize_targets): Don't initialize the_dummy_target.
12111
12112 2019-03-05 Tom Tromey <tromey@adacore.com>
12113
12114 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12115 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12116
12117 2019-03-05 Tom Tromey <tromey@adacore.com>
12118
12119 * windows-nat.c (windows_nat_target::attach)
12120 (windows_nat_target::detach): Don't call gdb_flush.
12121 * valprint.c (generic_val_print, val_print, val_print_string):
12122 Don't call gdb_flush.
12123 * utils.c (defaulted_query): Don't call gdb_flush.
12124 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12125 * target.c (target_announce_detach): Don't call gdb_flush.
12126 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12127 * remote.c (extended_remote_target::attach): Don't call
12128 gdb_flush.
12129 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12130 * printcmd.c (do_examine): Don't call gdb_flush.
12131 (info_display_command): Don't call gdb_flush.
12132 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12133 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12134 * memattr.c (info_mem_command): Don't call gdb_flush.
12135 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12136 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12137 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12138 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12139 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12140 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12141 (gnu_nat_target::detach): Don't call gdb_flush.
12142 * f-valprint.c (f_val_print): Don't call gdb_flush.
12143 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12144 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12145 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12146 gdb_flush.
12147 * c-valprint.c (c_val_print): Don't call gdb_flush.
12148 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12149
12150 2019-03-05 Tom Tromey <tromey@adacore.com>
12151
12152 * varobj.c (update_dynamic_varobj_children): Update.
12153 (install_default_visualizer): Use reset, not release.
12154 * value.c (set_internalvar): Update.
12155 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12156 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12157 ATTRIBUTE_UNUSED_RESULT.
12158
12159 2019-03-05 Tom Tromey <tromey@adacore.com>
12160
12161 * remote.c (class scoped_remote_fd) <release>: Add
12162 ATTRIBUTE_UNUSED_RESULT.
12163
12164 2019-03-05 Tom Tromey <tromey@adacore.com>
12165
12166 * macroexp.c (struct macro_buffer) <release>: Add
12167 ATTRIBUTE_UNUSED_RESULT.
12168
12169 2019-03-05 Tom Tromey <tromey@adacore.com>
12170
12171 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12172 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12173 ATTRIBUTE_UNUSED_RESULT.
12174
12175 2019-03-05 Tom Tromey <tromey@adacore.com>
12176
12177 * common/scoped_fd.h (class scoped_fd) <release>: Add
12178 ATTRIBUTE_UNUSED_RESULT.
12179
12180 2019-03-05 Tom Tromey <tromey@adacore.com>
12181
12182 * parser-defs.h (struct parser_state) <release>: Add
12183 ATTRIBUTE_UNUSED_RESULT.
12184
12185 2019-03-05 Tom Tromey <tromey@adacore.com>
12186
12187 * utils.h (class gdb_argv) <release>: Add
12188 ATTRIBUTE_UNUSED_RESULT.
12189 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12190
12191 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12192
12193 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12194 for-loop range, to avoid compiler warnings.
12195
12196 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12197 avoid compiler warnings about unused variables.
12198
12199 * NEWS: Mention end of support for native debugging on MS-Windows
12200 before XP.
12201
12202 PR gdb/24292
12203 * common/netstuff.c:
12204 * gdbserver/gdbreplay.c
12205 * gdbserver/remote-utils.c:
12206 * ser-tcp.c:
12207 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12208 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12209 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12210 'getaddrinfo' and 'freeaddrinfo' were not available before
12211 Windows XP, and mingw.org's MinGW headers by default define
12212 _WIN32_WINNT to 0x500.
12213
12214 2019-03-01 Gary Benson <gbenson@redhat.com>
12215
12216 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12217
12218 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12219 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12220
12221 PR gdb/8527
12222 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12223 set_sigint_trap, clear_sigint_trap.
12224
12225 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12226
12227 * target.c (target_detach): Clear the regcache and the
12228 frame cache.
12229
12230 2019-02-27 Pedro Alves <palves@redhat.com>
12231
12232 * utils.c (set_screen_size): When we cap the height/width sizes,
12233 tweak the corresponding command variable to show "unlimited":
12234
12235 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12236 Pedro Alves <palves@redhat.com>
12237
12238 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12239 before calling rl_set_screen_size.
12240
12241 2019-02-27 Tom Tromey <tromey@adacore.com>
12242
12243 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12244 define.
12245 * python/py-value.c: Remove Python 2.4 workaround.
12246 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12247 workaround.
12248 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12249 Python 2.4 workaround.
12250 * python/python-internal.h: Remove Python 2.4 comment.
12251 (Py_ssize_t): Don't define.
12252 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12253 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12254 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12255 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12256 * python/python.c (do_start_initialization): Remove Python 2.4
12257 workaround.
12258 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12259 (print_children): Remove Python 2.4 workaround.
12260 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12261 workaround.
12262 (CHARBUFFERPROC_NAME): Remove.
12263 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12264 Python 2.4 workaround.
12265
12266 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12267
12268 * NEWS: Note minimum Python version.
12269
12270 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12271
12272 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12273 code from these functions. Remove corresponding ifdefs. Use
12274 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12275 Remove gotos and target of gotos.
12276 (infpy_search_memory): Likewise.
12277
12278 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12279
12280 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12281 (hppa_gdbarch_init): Don't register deleted functions with
12282 gdbarch.
12283
12284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12285
12286 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12287 (h8300_unwind_sp): Delete.
12288 (h8300_dummy_id): Delete.
12289 (h8300_gdbarch_init): Don't register deleted functions with
12290 gdbarch.
12291
12292 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12293
12294 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12295 (ft32_unwind_pc): Delete.
12296 (ft32_unwind_sp): Delete.
12297 (ft32_gdbarch_init): Don't register deleted functions with
12298 gdbarch.
12299
12300 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12301
12302 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12303 (frv_unwind_pc): Delete.
12304 (frv_unwind_sp): Delete.
12305 (frv_gdbarch_init): Don't register deleted functions with
12306 gdbarch.
12307
12308 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12309
12310 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12311 (riscv_unwind_pc): Delete.
12312 (riscv_unwind_sp): Delete.
12313 (riscv_gdbarch_init): Don't register deleted functions with
12314 gdbarch.
12315
12316 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12317
12318 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12319 (csky_unwind_pc): Delete.
12320 (csky_unwind_sp): Delete.
12321 (csky_gdbarch_init): Don't register deleted functions with
12322 gdbarch.
12323
12324 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12325
12326 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12327 (cris_unwind_pc): Delete.
12328 (cris_unwind_sp): Delete.
12329 (cris_gdbarch_init): Don't register deleted functions with
12330 gdbarch.
12331
12332 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12333
12334 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12335 (bfin_unwind_pc): Delete.
12336 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12337
12338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12339
12340 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12341 (arm_unwind_pc): Delete.
12342 (arm_unwind_sp): Delete.
12343 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12344
12345 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12346
12347 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12348 (arc_unwind_pc): Delete.
12349 (arc_unwind_sp): Delete.
12350 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12351
12352 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12353
12354 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12355 (alpha_unwind_pc): Delete.
12356 (alpha_gdbarch_init): Don't register deleted functions with
12357 gdbarch.
12358
12359 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12360
12361 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12362 (aarch64_unwind_pc): Delete.
12363 (aarch64_unwind_sp): Delete.
12364 (aarch64_gdbarch_init): Don't register deleted functions with
12365 gdbarch.
12366
12367 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12368
12369 * gdbtypes.c (type_align): Don't consider static members when
12370 computing structure alignment.
12371
12372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12375 return 0 for other types.
12376 * arch-utils.c (default_type_align): Always return 0.
12377 * gdbarch.h: Regenerate.
12378 * gdbarch.sh (type_align): Extend comment.
12379 * gdbtypes.c (type_align): Add additional comments, always call
12380 gdbarch_type_align before applying the default rules.
12381 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12382 generic code will then apply a suitable default.
12383 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12384 types, return 0 for other types.
12385
12386 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12387
12388 * NEWS: Create a new section for the next release branch.
12389 Rename the section of the current branch, now that it has
12390 been cut.
12391
12392 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12393
12394 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12395 * version.in: Bump version to 8.3.50.DATE-git.
12396
12397 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12398
12399 * aix-thread.c (ptid_cmp): Remove unused variable.
12400 (get_signaled_thread): Likewise.
12401 (store_regs_user_thread): Likewise.
12402 (store_regs_kernel_thread): Likewise.
12403 (fetch_regs_kernel_thread): Remove shadowed variable.
12404
12405 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12406
12407 * features/riscv/32bit-cpu.xml: Add register numbers.
12408 * features/riscv/32bit-fpu.c: Regenerate.
12409 * features/riscv/32bit-fpu.xml: Add register numbers.
12410 * features/riscv/64bit-cpu.xml: Add register numbers.
12411 * features/riscv/64bit-fpu.c: Regenerate.
12412 * features/riscv/64bit-fpu.xml: Add register numbers.
12413
12414 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12415
12416 * NEWS: Mention two argument form of gdb.Value constructor.
12417 * python/py-value.c (convert_buffer_and_type_to_value): New
12418 function.
12419 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12420 Add support for handling an optional second argument. Call
12421 convert_buffer_and_type_to_value as appropriate.
12422 * python/python-internal.h (Py_buffer_deleter): New struct.
12423 (Py_buffer_up): New typedef.
12424
12425 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12426
12427 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12428 instead of releasing ownership.
12429
12430 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12431
12432 * dwarf2read.c (open_and_init_dwp_file): Call
12433 elf_numsections instead of bfd_count_sections to initialize
12434 dwp_file->num_sections.
12435
12436 2019-02-25 Tom Tromey <tromey@adacore.com>
12437
12438 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12439
12440 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12441
12442 * gcore.in: Add '--readnever' option when invoking GDB.
12443
12444 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12445
12446 * MAINTAINERS: Update my email address.
12447
12448 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12449
12450 * build-id.c (build_id_to_debug_bfd_1): New function.
12451 (build_id_to_debug_bfd): Look for separate debug file in
12452 sysroot.
12453
12454 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12455
12456 * gdbarch.sh: Update the copyright year range that is placed into
12457 generated files.
12458
12459 2019-02-22 Keith Seitz <keiths@redhat.com>
12460
12461 PR symtab/23853
12462 * linespec.c (create_sals_line_offset): Search for the default
12463 symtab's filename instead of its fullname.
12464
12465 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12466
12467 * NEWS: Update style defaults.
12468
12469 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12470
12471 * main.c (captured_main_1): Disable styling in batch mode.
12472
12473 2019-02-20 Tom Tromey <tom@tromey.com>
12474
12475 * symtab.c (symtab_symbol_info): Fix typos.
12476
12477 2019-02-20 Tom Tromey <tromey@adacore.com>
12478
12479 * findcmd.c (_initialize_mem_search): Use upper case for
12480 metasyntactic variables.
12481
12482 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12483
12484 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12485 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12486
12487 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12488
12489 * top.h (source_file_name): Change to std::string.
12490 * top.c (source_file_name): Likewise.
12491 (command_line_input): Adjust.
12492 * cli/cli-script.c (script_from_file): Adjust.
12493
12494 2019-02-19 Tom Tromey <tromey@adacore.com>
12495
12496 * ravenscar-thread.c
12497 (ravenscar_thread_target::update_thread_list): Don't call
12498 ada_build_task_list.
12499 * ada-lang.h (ada_build_task_list): Don't declare.
12500 * ada-tasks.c (struct ada_tasks_inferior_data)
12501 <task_list_valid_p>: Now bool.
12502 (read_known_tasks, ada_task_list_changed)
12503 (ada_tasks_invalidate_inferior_data): Update.
12504 (read_known_tasks_array): Return bool.
12505 (read_known_tasks_list): Likewise.
12506 (read_known_tasks): Return void.
12507 (ada_build_task_list): Now static.
12508
12509 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12510
12511 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12512 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12513
12514 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12515
12516 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12517 variant for ada_tasks_pspace_data_handle and
12518 ada_tasks_inferior_data_handle.
12519 (ada_tasks_pspace_data_cleanup): New function.
12520 (ada_tasks_inferior_data_cleanup): New function.
12521
12522 2019-02-17 Tom Tromey <tom@tromey.com>
12523
12524 * macrotab.h (macro_source_fullname): Return a std::string.
12525 * macrotab.c (macro_include, check_for_redefinition)
12526 (macro_undef, macro_lookup_definition, foreach_macro)
12527 (foreach_macro_in_scope): Update.
12528 (macro_source_fullname): Return a std::string.
12529 * macrocmd.c (show_pp_source_pos): Update.
12530
12531 2019-02-17 Tom Tromey <tom@tromey.com>
12532
12533 * macrocmd.c (show_pp_source_pos): Style the file names.
12534
12535 2019-02-17 Tom Tromey <tom@tromey.com>
12536
12537 PR tui/24197:
12538 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12539
12540 2019-02-17 Tom Tromey <tom@tromey.com>
12541
12542 * ada-lang.c (user_select_syms): Use filtered printing.
12543 * utils.c (wrap_style): New global.
12544 (desired_style): Remove.
12545 (emit_style_escape): Add stream parameter.
12546 (set_output_style, reset_terminal_style, prompt_for_continue):
12547 Update.
12548 (flush_wrap_buffer): Only flush gdb_stdout.
12549 (wrap_here): Set wrap_style.
12550 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12551 treat escape sequences as a character. Change when wrap buffer is
12552 flushed.
12553 (fputs_styled): Do not set the output style when the default is
12554 requested.
12555 * ui-style.h (struct ui_file_style) <is_default>: New method.
12556 * source.c (print_source_lines_base): Emit escape sequences in one
12557 piece.
12558
12559 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12560
12561 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12562 integers and enumeration types.
12563
12564 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12565
12566 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12567 instead of lookup_symbol_in_language
12568 (do_exact_match): New function.
12569 (ada_get_symbol_name_matcher): Return do_exact_match when
12570 doing a verbatim match.
12571
12572 2019-02-15 Tom Tromey <tromey@adacore.com>
12573
12574 * ravenscar-thread.c (ravenscar_thread_target::resume)
12575 (ravenscar_thread_target::wait): Special case wildcard requests.
12576
12577 2019-02-15 Tom Tromey <tromey@adacore.com>
12578
12579 * ravenscar-thread.c (base_ptid): Remove.
12580 (struct ravenscar_thread_target) <close>: New method.
12581 <m_base_ptid>: New member.
12582 <update_inferior_ptid, active_task, task_is_currently_active,
12583 runtime_initialized>: Declare methods.
12584 <ravenscar_thread_target>: Add constructor.
12585 (ravenscar_thread_target::task_is_currently_active)
12586 (ravenscar_thread_target::update_inferior_ptid)
12587 (ravenscar_runtime_initialized): Rename. Now methods.
12588 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12589 (ravenscar_thread_target::update_thread_list): Update.
12590 (ravenscar_thread_target::active_task): Now method.
12591 (ravenscar_thread_target::store_registers)
12592 (ravenscar_thread_target::prepare_to_store)
12593 (ravenscar_thread_target::prepare_to_store)
12594 (ravenscar_thread_target::mourn_inferior): Update.
12595 (ravenscar_inferior_created): Use "new" to create target.
12596 (ravenscar_thread_target::get_ada_task_ptid): Update.
12597 (_initialize_ravenscar): Don't initialize base_ptid.
12598 (ravenscar_ops): Remove global.
12599
12600 2019-02-15 Tom Tromey <tromey@adacore.com>
12601
12602 * target.h (push_target): Declare new overload.
12603 * target.c (push_target): New overload, taking an rvalue reference.
12604 * remote.c (remote_target::open_1): Use push_target overload.
12605 * corelow.c (core_target_open): Use push_target overload.
12606
12607 2019-02-15 Tom Tromey <tromey@adacore.com>
12608
12609 * ravenscar-thread.c (is_ravenscar_task)
12610 (ravenscar_task_is_currently_active): Return bool.
12611 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12612 (_initialize_ravenscar): Remove "(void)".
12613 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12614 Return bool.
12615
12616 2019-02-15 Tom Tromey <tromey@adacore.com>
12617
12618 * ravenscar-thread.c (ravenscar_runtime_initializer)
12619 (has_ravenscar_runtime, get_running_thread_id)
12620 (ravenscar_thread_target::resume): Fix indentation.
12621
12622 2019-02-15 Tom Tromey <tromey@adacore.com>
12623
12624 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12625 from ravenscar_arch_ops.
12626 (sparc_ravenscar_ops::fetch_registers)
12627 (sparc_ravenscar_ops::store_registers): Now methods.
12628 (sparc_ravenscar_prepare_to_store): Remove.
12629 (sparc_ravenscar_ops): Redefine.
12630 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12631 methods and destructor. Remove members.
12632 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12633 (ravenscar_thread_target::store_registers)
12634 (ravenscar_thread_target::prepare_to_store): Update.
12635 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12636 Remove.
12637 (struct ppc_ravenscar_powerpc_ops): Derive from
12638 ravenscar_arch_ops.
12639 (ppc_ravenscar_powerpc_ops::fetch_registers)
12640 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12641 (ppc_ravenscar_powerpc_ops): Redefine.
12642 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12643 (ppc_ravenscar_e500_ops::fetch_registers)
12644 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12645 (ppc_ravenscar_e500_ops): Redefine.
12646 * aarch64-ravenscar-thread.c
12647 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12648 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12649 (aarch64_ravenscar_fetch_registers)
12650 (aarch64_ravenscar_store_registers): Now methods.
12651 (aarch64_ravenscar_ops): Redefine.
12652
12653 2019-02-15 Tom Tromey <tromey@adacore.com>
12654
12655 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12656 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12657 (ravenscar_thread_target::stopped_by_watchpoint)
12658 (ravenscar_thread_target::stopped_data_address)
12659 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12660
12661 2019-02-15 Tom Tromey <tromey@adacore.com>
12662
12663 * ravenscar-thread.c: Fix some typos.
12664
12665 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12666 Tom Tromey <tromey@adacore.com>
12667
12668 * ada-lang.c (ada_exception_sal): Change addr_string to a
12669 std::string.
12670 (create_ada_exception_catchpoint): Update.
12671
12672 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12673 Tom Tromey <tromey@adacore.com>
12674
12675 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12676 (bp_location_ops): Remove.
12677 (base_breakpoint_allocate_location): Update.
12678 (free_bp_location): Update.
12679 * ada-lang.c (class ada_catchpoint_location)
12680 <ada_catchpoint_location>: Remove ops parameter.
12681 (ada_catchpoint_location_dtor): Remove.
12682 (ada_catchpoint_location_ops): Remove.
12683 (allocate_location_exception): Update.
12684 * breakpoint.h (struct bp_location_ops): Remove.
12685 (class bp_location) <bp_location>: Remove bp_location_ops
12686 parameter.
12687 <~bp_location>: Add destructor.
12688 <ops>: Remove.
12689
12690 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12691 Pedro Alves <palves@redhat.com>
12692
12693 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12694 'PATH_MAX'.
12695
12696 2019-02-14 David Michael <fedora.dm0@gmail.com>
12697 Samuel Thibault <samuel.thibault@gnu.org>
12698 Thomas Schwinge <thomas@codesourcery.com>
12699
12700 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12701 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12702
12703 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12704
12705 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12706 (check_empty): Use "const char *".
12707
12708 * gnu-nat.c (gnu_nat_target::detach): Instead of
12709 'detach_inferior (pid)' call
12710 'detach_inferior (find_inferior_pid (pid))'.
12711
12712 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12713 'nat/fork-inferior.o'.
12714 * gnu-nat.c: #include "nat/fork-inferior.h".
12715
12716 * gnu-nat.c (gnu_nat_target::detach): Instead of
12717 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12718 * gnu-nat.h: #include "inf-child.h".
12719 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12720 'i386_gnu_nat_target::fetch_registers'.
12721 (gnu_store_registers): Rename/move to
12722 'i386_gnu_nat_target::store_registers'.
12723
12724 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12725 * gnu-nat.h (mach_thread_info): New function.
12726 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12727
12728 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12729
12730 2019-02-14 Frederic Konrad <konrad@adacore.com>
12731
12732 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12733
12734 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12735
12736 * windows-nat.c (windows_add_thread): Add new parameter
12737 "main_thread_p" with default value set to false. Update
12738 function documentation as well as all callers.
12739 (windows_delete_thread): Likewise.
12740 (fake_create_process): Update call to windows_add_thread.
12741 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12742 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12743 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12744 call to windows_delete_thread.
12745
12746 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12747
12748 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12749
12750 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12751
12752 * symfile.c (find_separate_debug_file): Use canonical path of
12753 sysroot with child_path instead of gdb_sysroot if it is valid.
12754
12755 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12756
12757 * symfile.c (find_separate_debug_file): Use child_path to
12758 determine if an object file is under a sysroot.
12759
12760 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12761
12762 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12763 unittests/child-path-selftests.c.
12764 * common/pathstuff.c (child_path): New function.
12765 * common/pathstuff.h (child_path): New prototype.
12766 * unittests/child-path-selftests.c: New file.
12767
12768 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12769
12770 * symfile.c (find_separate_debug_file): Look for separate debug
12771 files in debug directories under the sysroot.
12772
12773 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12774
12775 * symtab.h (struct minimal_symbol data_p): New const method.
12776 (struct minimal_symbol text_p): Likewise.
12777 * symtab.c (output_source_filename): Use file name style
12778 to print file name.
12779 (print_symbol_info): Likewise.
12780 (print_msymbol_info): Use address style to print addresses.
12781 Use function name style to print executable text symbols.
12782 (expand_symtab_containing_pc): Use data_p.
12783 (find_pc_sect_compunit_symtab): Likewise.
12784
12785 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12786
12787 * breakpoint.c (describe_other_breakpoints): Use address style
12788 to print addresses.
12789 (say_where): Likewise.
12790
12791 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12792
12793 * ada-typeprint.c (print_func_type): Print function name
12794 style to print function name.
12795 * c-typeprint.c (c_print_type_1): Likewise.
12796
12797 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12798
12799 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12800 for execve.
12801
12802 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12803
12804 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12805 type_stack.
12806
12807 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12808
12809 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12810 TYPE_CODE_REF types.
12811
12812 2019-02-08 Jim Wilson <jimw@sifive.com>
12813
12814 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12815 (riscv_linux_fregset): New.
12816 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12817
12818 2019-02-07 Tom Tromey <tom@tromey.com>
12819
12820 * thread.c (thread_cancel_execution_command): Update.
12821 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12822 methods.
12823 (struct thread_fsm_ops): Remove.
12824 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12825 (thread_fsm_should_stop, thread_fsm_return_value)
12826 (thread_fsm_set_finished, thread_fsm_finished_p)
12827 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12828 Don't declare.
12829 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12830 * infrun.c (clear_proceed_status_thread)
12831 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12832 (print_stop_event): Update.
12833 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12834 Add constructor.
12835 (step_command_fsm_ops): Remove.
12836 (new_step_command_fsm): Remove.
12837 (step_1): Update.
12838 (step_command_fsm::should_stop): Rename from
12839 step_command_fsm_should_stop.
12840 (step_command_fsm::clean_up): Rename from
12841 step_command_fsm_clean_up.
12842 (step_command_fsm::do_async_reply_reason): Rename from
12843 step_command_fsm_async_reply_reason.
12844 (struct until_next_fsm): Inherit from thread_fsm. Add
12845 constructor.
12846 (until_next_fsm_ops): Remove.
12847 (new_until_next_fsm): Remove.
12848 (until_next_fsm::should_stop): Rename from
12849 until_next_fsm_should_stop.
12850 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12851 (until_next_fsm::do_async_reply_reason): Rename from
12852 until_next_fsm_async_reply_reason.
12853 (struct finish_command_fsm): Inherit from thread_fsm. Add
12854 constructor. Change type of breakpoint.
12855 (finish_command_fsm_ops): Remove.
12856 (new_finish_command_fsm): Remove.
12857 (finish_command_fsm::should_stop): Rename from
12858 finish_command_fsm_should_stop.
12859 (finish_command_fsm::clean_up): Rename from
12860 finish_command_fsm_clean_up.
12861 (finish_command_fsm::return_value): Rename from
12862 finish_command_fsm_return_value.
12863 (finish_command_fsm::do_async_reply_reason): Rename from
12864 finish_command_fsm_async_reply_reason.
12865 (finish_command): Update.
12866 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12867 Add constructor.
12868 (call_thread_fsm_ops): Remove.
12869 (call_thread_fsm::call_thread_fsm): Rename from
12870 new_call_thread_fsm.
12871 (call_thread_fsm::should_stop): Rename from
12872 call_thread_fsm_should_stop.
12873 (call_thread_fsm::should_notify_stop): Rename from
12874 call_thread_fsm_should_notify_stop.
12875 (run_inferior_call, call_function_by_hand_dummy): Update.
12876 * cli/cli-interp.c (should_print_stop_to_console): Update.
12877 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12878 Add constructor. Change type of location_breakpoint,
12879 caller_breakpoint.
12880 (until_break_fsm_ops): Remove.
12881 (new_until_break_fsm): Remove.
12882 (until_break_fsm::should_stop): Rename from
12883 until_break_fsm_should_stop.
12884 (until_break_fsm::clean_up): Rename from
12885 until_break_fsm_clean_up.
12886 (until_break_fsm::do_async_reply_reason): Rename from
12887 until_break_fsm_async_reply_reason.
12888 (until_break_command): Update.
12889 * thread-fsm.c: Remove.
12890 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12891
12892 2019-02-07 Tom Tromey <tom@tromey.com>
12893
12894 * yy-remap.h: Add include guard.
12895 * xtensa-tdep.h: Add include guard.
12896 * xcoffread.h: Rename include guard.
12897 * varobj-iter.h: Add include guard.
12898 * tui/tui.h: Rename include guard.
12899 * tui/tui-winsource.h: Rename include guard.
12900 * tui/tui-wingeneral.h: Rename include guard.
12901 * tui/tui-windata.h: Rename include guard.
12902 * tui/tui-win.h: Rename include guard.
12903 * tui/tui-stack.h: Rename include guard.
12904 * tui/tui-source.h: Rename include guard.
12905 * tui/tui-regs.h: Rename include guard.
12906 * tui/tui-out.h: Rename include guard.
12907 * tui/tui-layout.h: Rename include guard.
12908 * tui/tui-io.h: Rename include guard.
12909 * tui/tui-hooks.h: Rename include guard.
12910 * tui/tui-file.h: Rename include guard.
12911 * tui/tui-disasm.h: Rename include guard.
12912 * tui/tui-data.h: Rename include guard.
12913 * tui/tui-command.h: Rename include guard.
12914 * tic6x-tdep.h: Add include guard.
12915 * target/waitstatus.h: Rename include guard.
12916 * target/wait.h: Rename include guard.
12917 * target/target.h: Rename include guard.
12918 * target/resume.h: Rename include guard.
12919 * target-float.h: Rename include guard.
12920 * stabsread.h: Add include guard.
12921 * rs6000-tdep.h: Add include guard.
12922 * riscv-fbsd-tdep.h: Add include guard.
12923 * regformats/regdef.h: Rename include guard.
12924 * record.h: Rename include guard.
12925 * python/python.h: Rename include guard.
12926 * python/python-internal.h: Rename include guard.
12927 * python/py-stopevent.h: Rename include guard.
12928 * python/py-ref.h: Rename include guard.
12929 * python/py-record.h: Rename include guard.
12930 * python/py-record-full.h: Rename include guard.
12931 * python/py-record-btrace.h: Rename include guard.
12932 * python/py-instruction.h: Rename include guard.
12933 * python/py-events.h: Rename include guard.
12934 * python/py-event.h: Rename include guard.
12935 * procfs.h: Add include guard.
12936 * proc-utils.h: Add include guard.
12937 * p-lang.h: Add include guard.
12938 * or1k-tdep.h: Rename include guard.
12939 * observable.h: Rename include guard.
12940 * nto-tdep.h: Rename include guard.
12941 * nat/x86-linux.h: Rename include guard.
12942 * nat/x86-linux-dregs.h: Rename include guard.
12943 * nat/x86-gcc-cpuid.h: Add include guard.
12944 * nat/x86-dregs.h: Rename include guard.
12945 * nat/x86-cpuid.h: Rename include guard.
12946 * nat/ppc-linux.h: Rename include guard.
12947 * nat/mips-linux-watch.h: Rename include guard.
12948 * nat/linux-waitpid.h: Rename include guard.
12949 * nat/linux-ptrace.h: Rename include guard.
12950 * nat/linux-procfs.h: Rename include guard.
12951 * nat/linux-osdata.h: Rename include guard.
12952 * nat/linux-nat.h: Rename include guard.
12953 * nat/linux-namespaces.h: Rename include guard.
12954 * nat/linux-btrace.h: Rename include guard.
12955 * nat/glibc_thread_db.h: Rename include guard.
12956 * nat/gdb_thread_db.h: Rename include guard.
12957 * nat/gdb_ptrace.h: Rename include guard.
12958 * nat/fork-inferior.h: Rename include guard.
12959 * nat/amd64-linux-siginfo.h: Rename include guard.
12960 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12961 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12962 * nat/aarch64-linux.h: Rename include guard.
12963 * nat/aarch64-linux-hw-point.h: Rename include guard.
12964 * mn10300-tdep.h: Add include guard.
12965 * mips-linux-tdep.h: Add include guard.
12966 * mi/mi-parse.h: Rename include guard.
12967 * mi/mi-out.h: Rename include guard.
12968 * mi/mi-main.h: Rename include guard.
12969 * mi/mi-interp.h: Rename include guard.
12970 * mi/mi-getopt.h: Rename include guard.
12971 * mi/mi-console.h: Rename include guard.
12972 * mi/mi-common.h: Rename include guard.
12973 * mi/mi-cmds.h: Rename include guard.
12974 * mi/mi-cmd-break.h: Rename include guard.
12975 * m2-lang.h: Add include guard.
12976 * location.h: Rename include guard.
12977 * linux-record.h: Rename include guard.
12978 * linux-nat.h: Add include guard.
12979 * linux-fork.h: Add include guard.
12980 * i386-darwin-tdep.h: Rename include guard.
12981 * hppa-linux-offsets.h: Add include guard.
12982 * guile/guile.h: Rename include guard.
12983 * guile/guile-internal.h: Rename include guard.
12984 * gnu-nat.h: Rename include guard.
12985 * gdb-stabs.h: Rename include guard.
12986 * frv-tdep.h: Add include guard.
12987 * f-lang.h: Add include guard.
12988 * event-loop.h: Add include guard.
12989 * darwin-nat.h: Rename include guard.
12990 * cp-abi.h: Rename include guard.
12991 * config/sparc/nm-sol2.h: Rename include guard.
12992 * config/nm-nto.h: Rename include guard.
12993 * config/nm-linux.h: Add include guard.
12994 * config/i386/nm-i386gnu.h: Rename include guard.
12995 * config/djgpp/nl_types.h: Rename include guard.
12996 * config/djgpp/langinfo.h: Rename include guard.
12997 * compile/gcc-cp-plugin.h: Add include guard.
12998 * compile/gcc-c-plugin.h: Add include guard.
12999 * compile/compile.h: Rename include guard.
13000 * compile/compile-object-run.h: Rename include guard.
13001 * compile/compile-object-load.h: Rename include guard.
13002 * compile/compile-internal.h: Rename include guard.
13003 * compile/compile-cplus.h: Rename include guard.
13004 * compile/compile-c.h: Rename include guard.
13005 * common/xml-utils.h: Rename include guard.
13006 * common/x86-xstate.h: Rename include guard.
13007 * common/version.h: Rename include guard.
13008 * common/vec.h: Rename include guard.
13009 * common/tdesc.h: Rename include guard.
13010 * common/selftest.h: Rename include guard.
13011 * common/scoped_restore.h: Rename include guard.
13012 * common/scoped_mmap.h: Rename include guard.
13013 * common/scoped_fd.h: Rename include guard.
13014 * common/safe-iterator.h: Rename include guard.
13015 * common/run-time-clock.h: Rename include guard.
13016 * common/refcounted-object.h: Rename include guard.
13017 * common/queue.h: Rename include guard.
13018 * common/ptid.h: Rename include guard.
13019 * common/print-utils.h: Rename include guard.
13020 * common/preprocessor.h: Rename include guard.
13021 * common/pathstuff.h: Rename include guard.
13022 * common/observable.h: Rename include guard.
13023 * common/netstuff.h: Rename include guard.
13024 * common/job-control.h: Rename include guard.
13025 * common/host-defs.h: Rename include guard.
13026 * common/gdb_wait.h: Rename include guard.
13027 * common/gdb_vecs.h: Rename include guard.
13028 * common/gdb_unlinker.h: Rename include guard.
13029 * common/gdb_unique_ptr.h: Rename include guard.
13030 * common/gdb_tilde_expand.h: Rename include guard.
13031 * common/gdb_sys_time.h: Rename include guard.
13032 * common/gdb_string_view.h: Rename include guard.
13033 * common/gdb_splay_tree.h: Rename include guard.
13034 * common/gdb_setjmp.h: Rename include guard.
13035 * common/gdb_ref_ptr.h: Rename include guard.
13036 * common/gdb_optional.h: Rename include guard.
13037 * common/gdb_locale.h: Rename include guard.
13038 * common/gdb_assert.h: Rename include guard.
13039 * common/filtered-iterator.h: Rename include guard.
13040 * common/filestuff.h: Rename include guard.
13041 * common/fileio.h: Rename include guard.
13042 * common/environ.h: Rename include guard.
13043 * common/common-utils.h: Rename include guard.
13044 * common/common-types.h: Rename include guard.
13045 * common/common-regcache.h: Rename include guard.
13046 * common/common-inferior.h: Rename include guard.
13047 * common/common-gdbthread.h: Rename include guard.
13048 * common/common-exceptions.h: Rename include guard.
13049 * common/common-defs.h: Rename include guard.
13050 * common/common-debug.h: Rename include guard.
13051 * common/cleanups.h: Rename include guard.
13052 * common/buffer.h: Rename include guard.
13053 * common/btrace-common.h: Rename include guard.
13054 * common/break-common.h: Rename include guard.
13055 * cli/cli-utils.h: Rename include guard.
13056 * cli/cli-style.h: Rename include guard.
13057 * cli/cli-setshow.h: Rename include guard.
13058 * cli/cli-script.h: Rename include guard.
13059 * cli/cli-interp.h: Rename include guard.
13060 * cli/cli-decode.h: Rename include guard.
13061 * cli/cli-cmds.h: Rename include guard.
13062 * charset-list.h: Add include guard.
13063 * buildsym-legacy.h: Rename include guard.
13064 * bfin-tdep.h: Add include guard.
13065 * ax.h: Rename include guard.
13066 * arm-linux-tdep.h: Add include guard.
13067 * arm-fbsd-tdep.h: Add include guard.
13068 * arch/xtensa.h: Rename include guard.
13069 * arch/tic6x.h: Add include guard.
13070 * arch/i386.h: Add include guard.
13071 * arch/arm.h: Rename include guard.
13072 * arch/arm-linux.h: Rename include guard.
13073 * arch/arm-get-next-pcs.h: Rename include guard.
13074 * arch/amd64.h: Add include guard.
13075 * arch/aarch64-insn.h: Rename include guard.
13076 * arch-utils.h: Rename include guard.
13077 * annotate.h: Add include guard.
13078 * amd64-darwin-tdep.h: Rename include guard.
13079 * aarch64-linux-tdep.h: Add include guard.
13080 * aarch64-fbsd-tdep.h: Add include guard.
13081 * aarch32-linux-nat.h: Add include guard.
13082
13083 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13084
13085 * macrotab.c (macro_define_internal): New function that
13086 factorizes macro_define_object_internal and macro_define_function
13087 code.
13088 (macro_define_object_internal): Use macro_define_internal.
13089 (macro_define_function): Likewise.
13090
13091 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13092
13093 * macrocmd.c (extract_identifier): Return
13094 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13095 callers.
13096
13097 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13098
13099 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13100
13101 2019-02-05 Tom Tromey <tom@tromey.com>
13102
13103 * target.c (target_stack::unpush): Move assertion earlier.
13104
13105 2019-01-30 Tom Tromey <tom@tromey.com>
13106
13107 PR python/23615:
13108 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13109 (gdbpy_parse_and_eval): Likewise.
13110 * python/python-internal.h (gdbpy_allow_threads): New class.
13111
13112 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13113
13114 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13115 (aarch64_fbsd_fpregmap): Move earlier.
13116 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13117 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13118 instead of individual calls to trad_frame_set_reg_addr.
13119 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13120 earlier.
13121 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13122 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13123 instead of individual calls to trad_frame_set_reg_addr.
13124
13125 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13126
13127 * CONTRIBUTE: Replace contribution list with wiki link.
13128
13129 2019-01-25 Tom Tromey <tom@tromey.com>
13130
13131 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13132
13133 2019-01-25 Tom Tromey <tom@tromey.com>
13134
13135 * xtensa-linux-nat.c: Fix common/ includes.
13136 * xml-support.h: Fix common/ includes.
13137 * xml-support.c: Fix common/ includes.
13138 * x86-linux-nat.c: Fix common/ includes.
13139 * windows-nat.c: Fix common/ includes.
13140 * varobj.h: Fix common/ includes.
13141 * varobj.c: Fix common/ includes.
13142 * value.c: Fix common/ includes.
13143 * valops.c: Fix common/ includes.
13144 * utils.c: Fix common/ includes.
13145 * unittests/xml-utils-selftests.c: Fix common/ includes.
13146 * unittests/utils-selftests.c: Fix common/ includes.
13147 * unittests/unpack-selftests.c: Fix common/ includes.
13148 * unittests/tracepoint-selftests.c: Fix common/ includes.
13149 * unittests/style-selftests.c: Fix common/ includes.
13150 * unittests/string_view-selftests.c: Fix common/ includes.
13151 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13152 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13153 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13154 * unittests/rsp-low-selftests.c: Fix common/ includes.
13155 * unittests/parse-connection-spec-selftests.c: Fix common/
13156 includes.
13157 * unittests/optional-selftests.c: Fix common/ includes.
13158 * unittests/offset-type-selftests.c: Fix common/ includes.
13159 * unittests/observable-selftests.c: Fix common/ includes.
13160 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13161 * unittests/memrange-selftests.c: Fix common/ includes.
13162 * unittests/memory-map-selftests.c: Fix common/ includes.
13163 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13164 * unittests/function-view-selftests.c: Fix common/ includes.
13165 * unittests/environ-selftests.c: Fix common/ includes.
13166 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13167 * unittests/common-utils-selftests.c: Fix common/ includes.
13168 * unittests/cli-utils-selftests.c: Fix common/ includes.
13169 * unittests/array-view-selftests.c: Fix common/ includes.
13170 * ui-file.c: Fix common/ includes.
13171 * tui/tui-io.c: Fix common/ includes.
13172 * tracepoint.h: Fix common/ includes.
13173 * tracepoint.c: Fix common/ includes.
13174 * tracefile-tfile.c: Fix common/ includes.
13175 * top.h: Fix common/ includes.
13176 * top.c: Fix common/ includes.
13177 * thread.c: Fix common/ includes.
13178 * target/waitstatus.h: Fix common/ includes.
13179 * target/waitstatus.c: Fix common/ includes.
13180 * target.h: Fix common/ includes.
13181 * target.c: Fix common/ includes.
13182 * target-memory.c: Fix common/ includes.
13183 * target-descriptions.c: Fix common/ includes.
13184 * symtab.h: Fix common/ includes.
13185 * symfile.c: Fix common/ includes.
13186 * stap-probe.c: Fix common/ includes.
13187 * spu-linux-nat.c: Fix common/ includes.
13188 * sparc-nat.c: Fix common/ includes.
13189 * source.c: Fix common/ includes.
13190 * solib.c: Fix common/ includes.
13191 * solib-target.c: Fix common/ includes.
13192 * ser-unix.c: Fix common/ includes.
13193 * ser-tcp.c: Fix common/ includes.
13194 * ser-pipe.c: Fix common/ includes.
13195 * ser-base.c: Fix common/ includes.
13196 * selftest-arch.c: Fix common/ includes.
13197 * s12z-tdep.c: Fix common/ includes.
13198 * rust-exp.y: Fix common/ includes.
13199 * rs6000-aix-tdep.c: Fix common/ includes.
13200 * riscv-tdep.c: Fix common/ includes.
13201 * remote.c: Fix common/ includes.
13202 * remote-notif.h: Fix common/ includes.
13203 * remote-fileio.h: Fix common/ includes.
13204 * remote-fileio.c: Fix common/ includes.
13205 * regcache.h: Fix common/ includes.
13206 * regcache.c: Fix common/ includes.
13207 * record-btrace.c: Fix common/ includes.
13208 * python/python.c: Fix common/ includes.
13209 * python/py-type.c: Fix common/ includes.
13210 * python/py-inferior.c: Fix common/ includes.
13211 * progspace.h: Fix common/ includes.
13212 * producer.c: Fix common/ includes.
13213 * procfs.c: Fix common/ includes.
13214 * proc-api.c: Fix common/ includes.
13215 * printcmd.c: Fix common/ includes.
13216 * ppc-linux-nat.c: Fix common/ includes.
13217 * parser-defs.h: Fix common/ includes.
13218 * osdata.c: Fix common/ includes.
13219 * obsd-nat.c: Fix common/ includes.
13220 * nat/x86-linux.c: Fix common/ includes.
13221 * nat/x86-linux-dregs.c: Fix common/ includes.
13222 * nat/x86-dregs.h: Fix common/ includes.
13223 * nat/x86-dregs.c: Fix common/ includes.
13224 * nat/ppc-linux.c: Fix common/ includes.
13225 * nat/mips-linux-watch.h: Fix common/ includes.
13226 * nat/mips-linux-watch.c: Fix common/ includes.
13227 * nat/linux-waitpid.c: Fix common/ includes.
13228 * nat/linux-ptrace.h: Fix common/ includes.
13229 * nat/linux-ptrace.c: Fix common/ includes.
13230 * nat/linux-procfs.c: Fix common/ includes.
13231 * nat/linux-personality.c: Fix common/ includes.
13232 * nat/linux-osdata.c: Fix common/ includes.
13233 * nat/linux-namespaces.c: Fix common/ includes.
13234 * nat/linux-btrace.h: Fix common/ includes.
13235 * nat/linux-btrace.c: Fix common/ includes.
13236 * nat/fork-inferior.c: Fix common/ includes.
13237 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13238 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13239 * nat/aarch64-linux.c: Fix common/ includes.
13240 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13241 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13242 * namespace.h: Fix common/ includes.
13243 * mips-linux-tdep.c: Fix common/ includes.
13244 * minsyms.c: Fix common/ includes.
13245 * mi/mi-parse.h: Fix common/ includes.
13246 * mi/mi-main.c: Fix common/ includes.
13247 * mi/mi-cmd-env.c: Fix common/ includes.
13248 * memrange.h: Fix common/ includes.
13249 * memattr.c: Fix common/ includes.
13250 * maint.h: Fix common/ includes.
13251 * maint.c: Fix common/ includes.
13252 * main.c: Fix common/ includes.
13253 * machoread.c: Fix common/ includes.
13254 * location.c: Fix common/ includes.
13255 * linux-thread-db.c: Fix common/ includes.
13256 * linux-nat.c: Fix common/ includes.
13257 * linux-fork.c: Fix common/ includes.
13258 * inline-frame.c: Fix common/ includes.
13259 * infrun.c: Fix common/ includes.
13260 * inflow.c: Fix common/ includes.
13261 * inferior.h: Fix common/ includes.
13262 * inferior.c: Fix common/ includes.
13263 * infcmd.c: Fix common/ includes.
13264 * inf-ptrace.c: Fix common/ includes.
13265 * inf-child.c: Fix common/ includes.
13266 * ia64-linux-nat.c: Fix common/ includes.
13267 * i387-tdep.c: Fix common/ includes.
13268 * i386-tdep.c: Fix common/ includes.
13269 * i386-linux-tdep.c: Fix common/ includes.
13270 * i386-linux-nat.c: Fix common/ includes.
13271 * i386-go32-tdep.c: Fix common/ includes.
13272 * i386-fbsd-tdep.c: Fix common/ includes.
13273 * i386-fbsd-nat.c: Fix common/ includes.
13274 * guile/scm-type.c: Fix common/ includes.
13275 * guile/guile.c: Fix common/ includes.
13276 * go32-nat.c: Fix common/ includes.
13277 * gnu-nat.c: Fix common/ includes.
13278 * gdbthread.h: Fix common/ includes.
13279 * gdbarch-selftests.c: Fix common/ includes.
13280 * gdb_usleep.c: Fix common/ includes.
13281 * gdb_select.h: Fix common/ includes.
13282 * gdb_bfd.c: Fix common/ includes.
13283 * gcore.c: Fix common/ includes.
13284 * fork-child.c: Fix common/ includes.
13285 * findvar.c: Fix common/ includes.
13286 * fbsd-nat.c: Fix common/ includes.
13287 * event-top.c: Fix common/ includes.
13288 * event-loop.c: Fix common/ includes.
13289 * dwarf2read.c: Fix common/ includes.
13290 * dwarf2loc.c: Fix common/ includes.
13291 * dwarf2-frame.c: Fix common/ includes.
13292 * dwarf-index-cache.c: Fix common/ includes.
13293 * dtrace-probe.c: Fix common/ includes.
13294 * disasm-selftests.c: Fix common/ includes.
13295 * defs.h: Fix common/ includes.
13296 * csky-tdep.c: Fix common/ includes.
13297 * cp-valprint.c: Fix common/ includes.
13298 * cp-support.h: Fix common/ includes.
13299 * cp-support.c: Fix common/ includes.
13300 * corelow.c: Fix common/ includes.
13301 * completer.h: Fix common/ includes.
13302 * completer.c: Fix common/ includes.
13303 * compile/compile.c: Fix common/ includes.
13304 * compile/compile-loc2c.c: Fix common/ includes.
13305 * compile/compile-cplus-types.c: Fix common/ includes.
13306 * compile/compile-cplus-symbols.c: Fix common/ includes.
13307 * command.h: Fix common/ includes.
13308 * cli/cli-dump.c: Fix common/ includes.
13309 * cli/cli-cmds.c: Fix common/ includes.
13310 * charset.c: Fix common/ includes.
13311 * build-id.c: Fix common/ includes.
13312 * btrace.h: Fix common/ includes.
13313 * btrace.c: Fix common/ includes.
13314 * breakpoint.h: Fix common/ includes.
13315 * breakpoint.c: Fix common/ includes.
13316 * ax.h:
13317 (enum agent_op): Fix common/ includes.
13318 * ax-general.c (struct aop_map): Fix common/ includes.
13319 * ax-gdb.c: Fix common/ includes.
13320 * auxv.c: Fix common/ includes.
13321 * auto-load.c: Fix common/ includes.
13322 * arm-tdep.c: Fix common/ includes.
13323 * arch/riscv.c: Fix common/ includes.
13324 * arch/ppc-linux-common.c: Fix common/ includes.
13325 * arch/i386.c: Fix common/ includes.
13326 * arch/arm.c: Fix common/ includes.
13327 * arch/arm-linux.c: Fix common/ includes.
13328 * arch/arm-get-next-pcs.c: Fix common/ includes.
13329 * arch/amd64.c: Fix common/ includes.
13330 * arch/aarch64.c: Fix common/ includes.
13331 * arch/aarch64-insn.c: Fix common/ includes.
13332 * arch-utils.c: Fix common/ includes.
13333 * amd64-windows-tdep.c: Fix common/ includes.
13334 * amd64-tdep.c: Fix common/ includes.
13335 * amd64-sol2-tdep.c: Fix common/ includes.
13336 * amd64-obsd-tdep.c: Fix common/ includes.
13337 * amd64-nbsd-tdep.c: Fix common/ includes.
13338 * amd64-linux-tdep.c: Fix common/ includes.
13339 * amd64-linux-nat.c: Fix common/ includes.
13340 * amd64-fbsd-tdep.c: Fix common/ includes.
13341 * amd64-fbsd-nat.c: Fix common/ includes.
13342 * amd64-dicos-tdep.c: Fix common/ includes.
13343 * amd64-darwin-tdep.c: Fix common/ includes.
13344 * agent.c: Fix common/ includes.
13345 * ada-lang.h: Fix common/ includes.
13346 * ada-lang.c: Fix common/ includes.
13347 * aarch64-tdep.c: Fix common/ includes.
13348
13349 2019-01-25 Tom Tromey <tom@tromey.com>
13350
13351 * common/create-version.sh: Use common/version.h.
13352
13353 2019-01-24 Pedro Alves <palves@redhat.com>
13354
13355 * infrun.c (signal_stop, signal_print, signal_program)
13356 (signal_catch, signal_pass): Now arrays instead of pointers.
13357 (update_signals_program_target, do_target_resume)
13358 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13359 * linux-nat.c (linux_nat_target::pass_signals)
13360 (linux_nat_target::create_inferior, linux_nat_target::attach):
13361 Adjust.
13362 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13363 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13364 * procfs.c (procfs_target::pass_signals): Adjust.
13365 * record-full.c (record_full_target::resume): Adjust.
13366 * remote.c (remote_target::pass_signals)
13367 (remote_target::program_signals): Adjust.
13368 * target-debug.h (target_debug_print_signals): Now takes a
13369 gdb::array_view as parameter. Adjust.
13370 * target.h (target_ops) <pass_signals, program_signals>: Replace
13371 pointer and length parameters with gdb::array_view.
13372 (target_pass_signals, target_program_signals): Likewise.
13373 * target-delegates.c: Regenerate.
13374
13375 2019-01-24 Pedro Alves <palves@redhat.com>
13376
13377 * common/forward-scope-exit.h
13378 (forward_scope_exit::forward_scope_exit): Pass arguments to
13379 m_bind_function directly, instead of creating a std::bind and
13380 copying that.
13381
13382 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13383
13384 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13385 for static members.
13386 (pass_in_v_vfp_candidate): Likewise.
13387
13388 2019-01-23 Tom Tromey <tom@tromey.com>
13389 Pedro Alves <palves@redhat.com>
13390
13391 * regcache.c (class regcache_invalidator): Remove.
13392 (regcache::raw_write): Use make_scope_exit.
13393
13394 2019-01-23 Tom Tromey <tom@tromey.com>
13395
13396 * ui-out.h (class ui_out_emit_type): Update comment.
13397
13398 2019-01-23 Tom Tromey <tom@tromey.com>
13399
13400 * infrun.c (fetch_inferior_event): Update comment.
13401
13402 2019-01-23 Tom Tromey <tom@tromey.com>
13403 Pedro Alves <palves@redhat.com>
13404
13405 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13406 parameter.
13407 (fetch_inferior_event): Use SCOPE_EXIT.
13408
13409
13410 2019-01-23 Tom Tromey <tom@tromey.com>
13411 Pedro Alves <palves@redhat.com>
13412
13413 * infrun.c (disable_thread_events): Delete.
13414 (stop_all_threads): Use SCOPE_EXIT.
13415
13416 2019-01-23 Tom Tromey <tom@tromey.com>
13417 Pedro Alves <palves@redhat.com>
13418
13419 * symfile.c: Include forward-scope-exit.h.
13420 (clear_symtab_users_cleanup): Replace forward declaration with
13421 a FORWARD_SCOPE_EXIT.
13422 (syms_from_objfile_1): Use the forward_scope_exit and
13423 gdb::optional instead of cleanup_function.
13424 (reread_symbols): Use the forward_scope_exit instead of
13425 cleanup_function.
13426 (clear_symtab_users_cleanup): Remove function.
13427
13428 2019-01-23 Tom Tromey <tom@tromey.com>
13429 Pedro Alves <palves@redhat.com>
13430
13431 * linux-nat.c: Include scope-exit.h.
13432 (cleanup_target_stop): Remove.
13433 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13434 SCOPE_EXIT.
13435
13436 2019-01-23 Tom Tromey <tom@tromey.com>
13437 Pedro Alves <palves@redhat.com>
13438
13439 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13440 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13441
13442 2019-01-23 Tom Tromey <tom@tromey.com>
13443 Andrew Burgess <andrew.burgess@embecosm.com>
13444 Pedro Alves <palves@redhat.com>
13445
13446 * infrun.c (fetch_inferior_event): Use scope_exit.
13447 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13448 * top.c (execute_command): Use scope_exit.
13449 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13450 * utils.c (do_bpstat_clear_actions_cleanup)
13451 (make_bpstat_clear_actions_cleanup): Remove.
13452
13453 2019-01-23 Tom Tromey <tom@tromey.com>
13454 Pedro Alves <palves@redhat.com>
13455
13456 * infrun.c: Include "common/scope-exit.h"
13457 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13458 (wait_for_inferior): Use SCOPE_EXIT.
13459 (fetch_inferior_event): Use scope_exit.
13460
13461 2019-01-23 Tom Tromey <tom@tromey.com>
13462 Pedro Alves <palves@redhat.com>
13463
13464 * breakpoint.c (create_breakpoint): Remove cleanup.
13465
13466 2019-01-23 Tom Tromey <tom@tromey.com>
13467 Andrew Burgess <andrew.burgess@embecosm.com>
13468 Pedro Alves <palves@redhat.com>
13469
13470 2019-01-23 Pedro Alves <palves@redhat.com>
13471
13472 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13473
13474 2019-01-23 Pedro Alves <palves@redhat.com>
13475 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * gdbthread.h: Include "common/forward-scope-exit.h".
13478 (scoped_finish_thread_state): Redefine custom class in terms of
13479 forward_scope_exit.
13480
13481 2019-01-23 Pedro Alves <palves@redhat.com>
13482 Andrew Burgess <andrew.burgess@embecosm.com>
13483
13484 * common/forward-scope-exit.h: New file.
13485
13486 2019-01-23 Pedro Alves <palves@redhat.com>
13487 Andrew Burgess <andrew.burgess@embecosm.com>
13488 Tom Tromey <tom@tromey.com>
13489
13490 * common/scope-exit.h: New file.
13491
13492 2019-01-23 Pedro Alves <palves@redhat.com>
13493
13494 * common/preprocessor.h (ESC): Rename to ...
13495 (ESC_PARENS): ... this.
13496 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13497 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13498
13499 2019-01-23 Tom Tromey <tom@tromey.com>
13500
13501 * language.h (class scoped_switch_to_sym_language_if_auto):
13502 Initialize m_lang in both cases.
13503
13504 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13505
13506 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13507 with XCNEW.
13508
13509 2019-01-22 Tom Tromey <tom@tromey.com>
13510
13511 * corelow.c: Do not include sys/file.h.
13512
13513 2019-01-22 Tom Tromey <tom@tromey.com>
13514
13515 * tui/tui-wingeneral.h: Include gdb_curses.h.
13516
13517 2019-01-22 Tom Tromey <tom@tromey.com>
13518
13519 * source-cache.h (class source_cache) <get_source_lines,
13520 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13521
13522 2019-01-22 Tom Tromey <tom@tromey.com>
13523
13524 * remote-fileio.h (struct remote_target): Declare.
13525
13526 2019-01-22 Tom Tromey <tom@tromey.com>
13527
13528 * python/py-arch.c: Do not include py-ref.h.
13529 * python/py-bpevent.c: Do not include py-ref.h.
13530 * python/py-cmd.c: Do not include py-ref.h.
13531 * python/py-continueevent.c: Do not include py-ref.h.
13532 * python/py-event.h: Do not include py-ref.h.
13533 * python/py-evtregistry.c: Do not include py-ref.h.
13534 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13535 * python/py-frame.c: Do not include py-ref.h.
13536 * python/py-framefilter.c: Do not include py-ref.h.
13537 * python/py-function.c: Do not include py-ref.h.
13538 * python/py-infevents.c: Do not include py-ref.h.
13539 * python/py-linetable.c: Do not include py-ref.h.
13540 * python/py-objfile.c: Do not include py-ref.h.
13541 * python/py-param.c: Do not include py-ref.h.
13542 * python/py-prettyprint.c: Do not include py-ref.h.
13543 * python/py-progspace.c: Do not include py-ref.h.
13544 * python/py-symbol.c: Do not include py-ref.h.
13545 * python/py-symtab.c: Do not include py-ref.h.
13546 * python/py-type.c: Do not include py-ref.h.
13547 * python/py-unwind.c: Do not include py-ref.h.
13548 * python/py-utils.c: Do not include py-ref.h.
13549 * python/py-value.c: Do not include py-ref.h.
13550 * python/py-varobj.c: Do not include py-ref.h.
13551 * python/py-xmethods.c: Do not include py-ref.h.
13552 * python/python.c: Do not include py-ref.h.
13553 * varobj.c: Do not include py-ref.h.
13554
13555 2019-01-22 Tom Tromey <tom@tromey.com>
13556
13557 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13558 keyword for bcache.
13559
13560 2019-01-22 Tom Tromey <tom@tromey.com>
13561
13562 * compile/compile-cplus-types.c: Remove a comment by #include.
13563
13564 2019-01-22 Tom Tromey <tom@tromey.com>
13565
13566 * compile/gcc-c-plugin.h: Include compile-internal.h.
13567
13568 2019-01-22 Tom Tromey <tom@tromey.com>
13569
13570 * stabsread.c (EXTERN): Do not define.
13571 (symnum, next_symbol_text_func, processing_gcc_compilation)
13572 (within_function, global_sym_chain, global_stabs)
13573 (previous_stab_code, this_object_header_files)
13574 (n_this_object_header_files)
13575 (n_allocated_this_object_header_files): Define.
13576 * stabsread.h (EXTERN): Never define. Use "extern".
13577
13578 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13579
13580 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13581 history_value.
13582
13583 2019-01-21 Tom Tromey <tom@tromey.com>
13584
13585 * ui-out.c: Fix includes.
13586 * tui/tui-source.c: Fix includes.
13587 * target.c: Fix includes.
13588 * remote.c: Fix includes.
13589 * regcache.c: Fix includes.
13590 * python/py-block.c: Fix includes.
13591 * printcmd.c: Fix includes.
13592 * or1k-tdep.c: Fix includes.
13593 * mi/mi-main.c: Fix includes.
13594 * m32r-tdep.c: Fix includes.
13595 * csky-tdep.c: Fix includes.
13596 * compile/compile-cplus-types.c: Fix includes.
13597 * cli/cli-interp.c: Fix includes.
13598
13599 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13600
13601 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13602 for padding.
13603
13604 2019-01-16 Tom Tromey <tom@tromey.com>
13605
13606 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13607 earlier.
13608 (struct objfile) <msymbols_range>: Move from top level.
13609 <msymbols>: New method.
13610 (class objfile_msymbols): Remove.
13611 * symtab.c (default_collect_symbol_completion_matches_break_on):
13612 Update.
13613 * symmisc.c (dump_msymbols): Update.
13614 * stabsread.c (scan_file_globals): Update.
13615 * objc-lang.c (info_selectors_command, info_classes_command)
13616 (find_methods): Update.
13617 * minsyms.c (find_solib_trampoline_target): Update.
13618 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13619 * coffread.c (coff_symfile_read): Update.
13620 * ada-lang.c (ada_lookup_simple_minsym)
13621 (ada_collect_symbol_completion_matches): Update.
13622
13623 2019-01-16 Tom Tromey <tom@tromey.com>
13624
13625 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13626 type. Remove no-argument constructor.
13627 <iterator::operator++>: Simplify.
13628 <begin>: Update.
13629 <end>: Use minimal_symbol_count.
13630
13631 2019-01-16 Tom Tromey <tom@tromey.com>
13632
13633 * objfiles.h (struct objfile) <psymtabs>: New method.
13634 (class objfile_psymtabs): Remove.
13635 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13636 typedef.
13637 <range>: New method.
13638 (require_partial_symbols): Change return type.
13639 * psymtab.c (require_partial_symbols)
13640 (psym_expand_symtabs_matching): Update.
13641 * mdebugread.c (parse_partial_symbols): Update.
13642 * dbxread.c (dbx_end_psymtab): Update.
13643
13644 2019-01-15 Tom Tromey <tom@tromey.com>
13645
13646 * symtab.c (lookup_objfile_from_block)
13647 (lookup_symbol_in_objfile_symtabs)
13648 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13649 (find_line_symtab, info_sources_command)
13650 (default_collect_symbol_completion_matches_break_on)
13651 (make_source_files_completion_list): Update.
13652 * symmisc.c (print_objfile_statistics, dump_objfile)
13653 (maintenance_print_symbols, maintenance_info_symtabs)
13654 (maintenance_check_symtabs, maintenance_info_line_tables):
13655 Update.
13656 * source.c (select_source_symtab)
13657 (forget_cached_source_info_for_objfile): Update.
13658 * objfiles.h (class objfile_compunits): Remove.
13659 (struct objfile) <compunits_range>: New typedef.
13660 (compunits): New method.
13661 * objfiles.c (objfile_relocate1): Update.
13662 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13663 * maint.c (count_symtabs_and_blocks): Update.
13664 * linespec.c (iterate_over_all_matching_symtabs): Update.
13665 * cp-support.c (add_symbol_overload_list_qualified): Update.
13666 * coffread.c (coff_symtab_read): Update.
13667 * ada-lang.c (add_nonlocal_symbols)
13668 (ada_collect_symbol_completion_matches)
13669 (ada_add_global_exceptions): Update.
13670
13671 2019-01-15 Tom Tromey <tom@tromey.com>
13672
13673 * progspace.h (program_space) <objfiles_safe_range>: New
13674 typedef.
13675 <objfiles_safe>: New method.
13676 * objfiles.h (class all_objfiles_safe): Remove.
13677 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13678 * jit.c (jit_inferior_exit_hook): Update.
13679
13680 2019-01-17 Tom Tromey <tom@tromey.com>
13681
13682 * progspace.h (program_space) <objfiles_range>: New typedef.
13683 <objfiles>: New method.
13684 <objfiles_head>: Rename from objfiles.
13685 (object_files): Update.
13686 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13687 * guile/scm-pretty-print.c
13688 (ppscm_find_pretty_printer_from_objfiles): Update.
13689 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13690 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13691 Update.
13692 * python/py-progspace.c (pspy_get_objfiles): Update.
13693 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13694 Update.
13695 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13696 (objfpy_lookup_objfile_by_build_id): Update.
13697 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13698 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13699 Update.
13700 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13701 (expand_symtab_containing_pc, lookup_objfile_from_block)
13702 (lookup_static_symbol, basic_lookup_transparent_type)
13703 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13704 (find_line_symtab, info_sources_command)
13705 (default_collect_symbol_completion_matches_break_on)
13706 (make_source_files_completion_list, find_main_name): Update.
13707 * symmisc.c (print_symbol_bcache_statistics)
13708 (print_objfile_statistics, maintenance_print_symbols)
13709 (maintenance_print_msymbols, maintenance_print_objfiles)
13710 (maintenance_info_symtabs, maintenance_check_symtabs)
13711 (maintenance_expand_symtabs, maintenance_info_line_tables):
13712 Update.
13713 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13714 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13715 (map_overlay_command, unmap_overlay_command)
13716 (simple_overlay_update, expand_symtabs_matching)
13717 (map_symbol_filenames): Update.
13718 * symfile-debug.c (set_debug_symfile): Update.
13719 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13720 Update.
13721 * source.c (select_source_symtab, forget_cached_source_info):
13722 Update.
13723 * solib.c (solib_read_symbols): Update.
13724 * solib-spu.c (append_ocl_sos): Update.
13725 * psymtab.c (maintenance_print_psymbols)
13726 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13727 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13728 * printcmd.c (info_symbol_command): Update.
13729 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13730 Update.
13731 * objfiles.h (class all_objfiles): Remove.
13732 * objfiles.c (have_partial_symbols, have_full_symbols)
13733 (have_minimal_symbols, qsort_cmp, update_section_map)
13734 (shared_objfile_contains_address_p)
13735 (default_iterate_over_objfiles_in_search_order): Update.
13736 * objc-lang.c (info_selectors_command, info_classes_command)
13737 (find_methods): Update.
13738 * minsyms.c (find_solib_trampoline_target): Update.
13739 * maint.c (maintenance_info_sections)
13740 (maintenance_translate_address, count_symtabs_and_blocks):
13741 Update.
13742 * main.c (captured_main_1): Update.
13743 * linux-thread-db.c (try_thread_db_load_from_pdir)
13744 (has_libpthread): Update.
13745 * linespec.c (iterate_over_all_matching_symtabs)
13746 (search_minsyms_for_name): Update.
13747 * jit.c (jit_find_objf_with_entry_addr): Update.
13748 * hppa-tdep.c (find_unwind_entry)
13749 (hppa_lookup_stub_minimal_symbol): Update.
13750 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13751 Update.
13752 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13753 (elf_gnu_ifunc_resolve_by_got): Update.
13754 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13755 * dwarf-index-write.c (save_gdb_index_command): Update.
13756 * cp-support.c (add_symbol_overload_list_qualified): Update.
13757 * breakpoint.c (create_overlay_event_breakpoint)
13758 (create_longjmp_master_breakpoint)
13759 (create_std_terminate_master_breakpoint)
13760 (create_exception_master_breakpoint): Update.
13761 * blockframe.c (find_pc_partial_function): Update.
13762 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13763 (ada_collect_symbol_completion_matches)
13764 (ada_add_global_exceptions): Update.
13765
13766 2019-01-17 Tom Tromey <tom@tromey.com>
13767
13768 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13769 declare VEC.
13770 (solib_target_parse_libraries): Change return type.
13771 (library_list_start_segment, library_list_start_section)
13772 (library_list_end_library, library_list_start_library); Update.
13773 (solib_target_free_library_list): Remove.
13774 (solib_target_parse_libraries): Remove cleanup. Change return
13775 type.
13776 (solib_target_current_sos): Update.
13777
13778 2019-01-17 Tom Tromey <tromey@bapiya>
13779
13780 * valprint.c: Replace "the the" with "the".
13781 * symtab.c: Replace "the the" with "the".
13782 * solib.c: Replace "the the" with "the".
13783 * solib-dsbt.c: Replace "the the" with "the".
13784 * linespec.c: Replace "the the" with "the".
13785 * dwarf2loc.h: Replace "the the" with "the".
13786 * amd64-windows-tdep.c: Replace "the the" with "the".
13787 * aarch64-tdep.c: Replace "the the" with "the".
13788
13789 2019-01-16 Keith Seitz <keiths@redhat.com>
13790
13791 PR gdb/23773
13792 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13793 <builder>: Rename to ..
13794 <m_builder>: ... this and make private.
13795 (dwarf2_cu::get_builder): New method. Change all users of
13796 `builder' to use this method.
13797 (dwarf2_start_symtab): Move to ...
13798 (dwarf2_cu::start_symtab): ... here. Update all callers
13799 (setup_type_unit_groups): Move to ...
13800 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13801 callers.
13802 (dwarf2_cu::reset_builder): New method.
13803 (process_full_compunit, process_full_type_unit): Use
13804 dwarf2_cu::reset_builder.
13805 (follow_die_offset): Record the ancestor CU if it is different
13806 from the followed DIE's CU.
13807 (follow_die_sig_1): Likewise.
13808
13809 2019-01-15 Tom Tromey <tom@tromey.com>
13810
13811 * remote.c (class remote_state) <buf>: Now a char_vector.
13812 <buf_size>: Remove.
13813 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13814 parameter.
13815 (remote_target::getpkt_or_notif_sane_1)
13816 (remote_target::getpkt_sane)
13817 (remote_target::getpkt_or_notif_sane): Likewise.
13818 (class remote_target) <putpkt>: New overload.
13819 (remote_target::read_frame): Change type of "buf_p". Remove
13820 sizeof_p parameter.
13821 (packet_ok): New overload.
13822 (packet_check_result): New overload.
13823 Update all uses.
13824
13825 2019-01-14 Tom Tromey <tom@tromey.com>
13826
13827 * remote-notif.c (handle_notification, remote_notif_ack)
13828 (remote_notif_parse): Make "buf" const.
13829 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13830 const.
13831 (remote_notif_parse, remote_notif_ack, handle_notification):
13832 Likewise.
13833 * remote.c (remote_notif_stop_parse): Make "buf" const.
13834 (remote_target::remote_parse_stop_reply): Make "buf" const.
13835 (remote_notif_stop_ack): Make "buf" const.
13836
13837 2019-01-14 Tom Tromey <tom@tromey.com>
13838
13839 * remote.c (remote_console_output): Make parameter const.
13840
13841 2019-01-14 Tom Tromey <tom@tromey.com>
13842
13843 * target-debug.h (target_debug_print_signals): Constify.
13844 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13845 * procfs.c (procfs_target::pass_signals): Update.
13846 * linux-nat.c (linux_nat_target::pass_signals): Update.
13847 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13848 * target-delegates.c: Rebuild.
13849 * remote.c (remote_target::program_signals): Update.
13850 (remote_target::pass_signals): Update.
13851 * target.c (target_pass_signals): Constify argument.
13852 (target_program_signals): Likewise.
13853 * target.h (struct target_ops) <pass_signals, program_signals>:
13854 Constify argument.
13855 (target_pass_signals, target_program_signals): Constify argument.
13856
13857 2019-01-14 Tom Tromey <tom@tromey.com>
13858
13859 PR tui/28819:
13860 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13861
13862 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13863
13864 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13865 field.
13866 * rs6000-tdep.c: Include reggroups.h.
13867 (IS_V_ALIAS_PSEUDOREG): Define.
13868 (rs6000_register_name): Return names for the "vX" aliases.
13869 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13870 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13871 aliases. Call default_register_reggroup_p for all other
13872 pseudo-registers.
13873 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13874 New functions.
13875 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13876 Handle "vX" aliases.
13877 (v_alias_pseudo_register_collect): New function.
13878 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13879 (rs6000_gdbarch_init): Initialize "vX" aliases as
13880 pseudo-registers. Restore registration of
13881 rs6000_pseudo_register_reggroup_p with
13882 set_tdesc_pseudo_register_reggroup_p.
13883
13884 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13885
13886 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13887 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13888 set_gdbarch_num_pseudo_regs.
13889
13890 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13891
13892 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13893 Remove arg prefixname, add do_set and do_show.
13894 Add member functions set_list and show_list.
13895 * cli/cli-style.c (class cli_style_option): Update accordingly.
13896 (style_set_list): Move to file scope.
13897 (style_show_list): Likewise.
13898 (set_style): Call help_list.
13899 (show_style): Call cmd_show_list.
13900 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13901 Update to use the new macro.
13902
13903 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13904
13905 * ada-lang.c (_initialize_ada_language): Expand the help text
13906 for the "catch exception" command.
13907
13908 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13909
13910 * symtab.c (matching_obj_sections): Initialize obj,
13911 declare it closer to its usage.
13912
13913 2019-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13916 (basic_inf_threads_range): Remove.
13917 (inf_threads_range, inf_non_exited_threads_range)
13918 (safe_inf_threads_range): Use next_adapter.
13919
13920 2019-01-10 Keith Seitz <keiths@redhat.com>
13921
13922 PR gdb/23712
13923 PR symtab/23010
13924 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13925 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13926
13927 2019-01-10 Keith Seitz <keiths@redhat.com>
13928
13929 PR gdb/23712
13930 PR symtab/23010
13931 * dictionary.c (pending_to_vector): Remove.
13932 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13933 Remove _1 suffix, replacing functions of the same name. Update
13934 all callers.
13935 (dict_create_hashed, dict_create_hashed_expandable)
13936 (dict_create_linear, dict_create_linear_expandable, dict_free)
13937 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13938 Make functions static.
13939
13940 2019-01-10 Keith Seitz <keiths@redhat.com>
13941
13942 PR gdb/23712
13943 PR symtab/23010
13944 * dictionary.h (struct dictionary): Replace declaration with
13945 multidictionary.
13946 (dict_create_hashed, dict_create_hashed_expandable)
13947 (dict_create_linear, dict_create_linear_expandable)
13948 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13949 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13950 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13951 taking multidictionary argument.
13952 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13953 * block.h (struct block) <dict>: Change to multidictionary
13954 and rename `multidict'.
13955 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13956 symmisc.c: Update all dictionary references to multidictionary.
13957
13958 2019-01-10 Keith Seitz <keiths@redhat.com>
13959
13960 PR gdb/23712
13961 PR symtab/23010
13962 * dictionary.c: Include unordered_map.
13963 (pending_to_vector): New function.
13964 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13965 Rewrite the non-"_1" functions to take vector instead
13966 of linked list.
13967 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13968 "new" _1 versions of the same name.
13969 (multidictionary): Define.
13970 (std::hash<enum language): New definition.
13971 (collate_pending_symbols_by_language, mdict_create_hashed)
13972 (mdict_create_hashed_expandable, mdict_create_linear)
13973 (mdict_create_linear_expandable, mdict_free)
13974 (find_language_dictionary, create_new_language_dictionary)
13975 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13976 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13977 (mdict_size, mdict_empty): New functions.
13978 * dictionary.h (mdict_iterator): Define.
13979
13980 2019-01-10 Pedro Alves <palves@redhat.com>
13981
13982 * breakpoint.c (read_uploaded_action)
13983 (create_tracepoint_from_upload): Adjust to use
13984 gdb::unique_xmalloc_ptr.
13985 * ctf.c (ctf_write_uploaded_tp):
13986 (SET_ARRAY_FIELD): Use emplace_back.
13987 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13988 * tracefile-tfile.c (tfile_write_uploaded_tp):
13989 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13990 gdb::unique_xmalloc_ptr.
13991 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13992 at_string, cond_string, cmd_strings>: Replace char pointers
13993 with gdb::unique_xmalloc_ptr.
13994
13995 2019-01-10 Pedro Alves <palves@redhat.com>
13996
13997 * solib-target.c (library_list_start_library): Don't xstrdup name.
13998
13999 2019-01-10 Pedro Alves <palves@redhat.com>
14000
14001 * mdebugread.c (parse_partial_symbols): Use
14002 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14003
14004 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * linux-fork.c (scoped_switch_fork_info)
14007 <~scoped_switch_fork_info>: Fix incorrect variable name.
14008
14009 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14010
14011 * linux-fork.c (scoped_switch_fork_info)
14012 <scoped_switch_fork_info>: Make explicit.
14013 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14014
14015 2019-01-10 Tom Tromey <tom@tromey.com>
14016
14017 * objfiles.h (objfile::reset_psymtabs): Update.
14018 * objfiles.c (objfile::objfile): Update.
14019 * psymtab.h (psymtab_storage::obstack): Update.
14020 (psymtab_storage::m_obstack): Use gdb::optional.
14021 (class psymtab_storage): Update comment. Remove objfile
14022 parameter.
14023 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14024
14025 2019-01-10 Tom Tromey <tom@tromey.com>
14026
14027 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14028 <free_psymtabs>: Now private.
14029 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14030 (allocate_psymtab): Use new method.
14031
14032 2019-01-10 Tom Tromey <tom@tromey.com>
14033
14034 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14035 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14036 * mdebugread.c (parse_partial_symbols): Use
14037 allocate_dependencies.
14038 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14039 allocate_dependencies.
14040 (process_psymtab_comp_unit_reader)
14041 (build_type_psymtab_dependencies): Likewise.
14042 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14043
14044 2019-01-10 Tom Tromey <tom@tromey.com>
14045
14046 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14047 PSYMBOL_SET_LANGUAGE.
14048 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14049
14050 2019-01-10 Tom Tromey <tom@tromey.com>
14051
14052 * psymtab.h (psymtab_storage::obstack): New method.
14053 <m_obstack>: Rename from obstack; now private.
14054 * psymtab.c (psymtab_storage): Update.
14055 * dwarf2read.c (create_addrmap_from_index)
14056 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14057 Update.
14058
14059 2019-01-10 Tom Tromey <tom@tromey.com>
14060
14061 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14062 * objfiles.h (objfile::reset_psymtabs): New method.
14063
14064 2019-01-10 Tom Tromey <tom@tromey.com>
14065
14066 * symmisc.c (print_symbol_bcache_statistics): Update.
14067 (print_objfile_statistics): Update.
14068 * symfile.c (reread_symbols): Update.
14069 * psymtab.h (class psymtab_storage): New.
14070 * psymtab.c (psymtab_storage): New constructor.
14071 (~psymtab_storage): New destructor.
14072 (require_partial_symbols): Update.
14073 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14074 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14075 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14076 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14077 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14078 (start_psymtab_common, end_psymtab_common)
14079 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14080 (allocate_psymtab): Update.
14081 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14082 Update.
14083 (dump_psymtab_addrmap, maintenance_print_psymbols)
14084 (maintenance_check_psymtabs): Update.
14085 (class objfile_psymtabs): Move to objfiles.h.
14086 * psympriv.h (discard_psymtab): Now inline.
14087 (psymtab_discarder::psymtab_discarder): Update.
14088 (psymtab_discarder::~psymtab_discarder): Update.
14089 (ALL_OBJFILE_PSYMTABS): Rewrite.
14090 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14091 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14092 Remove fields.
14093 <partial_symtabs>: New field.
14094 (class objfile_psymtabs): Move from psymtab.h. Update.
14095 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14096 psymbol_cache.
14097 (objfile::~objfile): Don't destroy psymbol_cache.
14098 * mdebugread.c (parse_partial_symbols): Update.
14099 * dwarf2read.c (create_addrmap_from_index)
14100 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14101 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14102 (add_partial_subprogram, dwarf2_ranges_read): Update.
14103 * dwarf-index-write.c (write_address_map)
14104 (write_one_signatured_type, recursively_write_psymbols)
14105 (class debug_names, class debug_names, write_psymtabs_to_index):
14106 Update.
14107
14108 2019-01-10 Tom Tromey <tom@tromey.com>
14109
14110 * symtab.h (SYMBOL_SET_NAMES): Update.
14111 (symbol_set_names): Update.
14112 (MSYMBOL_SET_NAMES): Update.
14113 * symtab.c (symbol_set_names): Change argument to be an
14114 objfile_per_bfd_storage.
14115 * psymtab.c (add_psymbol_to_bcache): Update.
14116 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14117
14118 2019-01-10 Tom Tromey <tom@tromey.com>
14119
14120 * symtab.c (create_demangled_names_hash): Change argument to be an
14121 objfile_per_bfd_storage.
14122 (symbol_set_names): Update.
14123
14124 2019-01-10 Tom Tromey <tom@tromey.com>
14125
14126 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14127 init_psymbol_list.
14128 * psymtab.c (init_psymbol_list): Do nothing if already called.
14129 * psympriv.h (init_psymbol_list): Add comment.
14130 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14131 init_psymbol_list.
14132 * dbxread.c (dbx_symfile_read): Unconditionally call
14133 init_psymbol_list.
14134
14135 2019-01-10 Tom Tromey <tom@tromey.com>
14136
14137 * xcoffread.c (scan_xcoff_symtab): Update.
14138 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14139 "where".
14140 * mdebugread.c (parse_partial_symbols)
14141 (handle_psymbol_enumerators): Update.
14142 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14143 * dbxread.c (read_dbx_symtab): Update.
14144 * psympriv.h (psymbol_placement): New enum.
14145 (add_psymbol_to_list): Update.
14146
14147 2019-01-10 Tom Tromey <tom@tromey.com>
14148
14149 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14150 static_psymbols parameters.
14151 (scan_xcoff_symtab): Update.
14152 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14153 static_psymbols parameters.
14154 * psympriv.h (start_psymtab_common): Update.
14155 * mdebugread.c (parse_partial_symbols): Update.
14156 * dwarf2read.c (create_partial_symtab): Update.
14157 * dbxread.c (read_dbx_symtab): Update.
14158 (start_psymtab): Remove global_psymbols and static_psymbols
14159 parameters.
14160
14161 2019-01-10 Tom Tromey <tom@tromey.com>
14162
14163 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14164 * psymtab.c (allocate_psymtab): Add comment.
14165 * psympriv.h (allocate_psymtab): Add comment.
14166 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14167 initializations.
14168 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14169
14170 2019-01-10 Tom Tromey <tom@tromey.com>
14171
14172 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14173 Don't declare.
14174 * mipsread.c: Include mdebugread.h.
14175 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14176 Declare.
14177 * elfread.c: Include mdebugread.h.
14178
14179 2019-01-09 Tom Tromey <tom@tromey.com>
14180
14181 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14182 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14183 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14184 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14185 (psym_lookup_symbol, psym_find_last_source_symtab)
14186 (psym_forget_cached_source_info, psym_print_stats)
14187 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14188 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14189 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14190 (psym_find_compunit_symtab_by_address)
14191 (maintenance_print_psymbols, maintenance_info_psymtabs)
14192 (maintenance_check_psymtabs): Use ranged for.
14193 * psymtab.h (class objfile_psymtabs): New.
14194 (require_partial_symbols): Return objfile_psymtabs.
14195 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14196
14197 2019-01-09 Tom Tromey <tom@tromey.com>
14198
14199 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14200 (find_pc_mapped_section, list_overlays_command)
14201 (map_overlay_command, unmap_overlay_command)
14202 (simple_overlay_update): Use all_objfiles.
14203 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14204 * printcmd.c (info_symbol_command): Use all_objfiles.
14205 * objfiles.h (ALL_OBJSECTIONS): Remove.
14206 * maint.c (maintenance_translate_address): Use all_objfiles.
14207 * gcore.c (gcore_create_callback): Use all_objfiles.
14208 (objfile_find_memory_regions): Likewise.
14209
14210 2019-01-09 Tom Tromey <tom@tromey.com>
14211
14212 * symtab.c (find_line_symtab, info_sources_command)
14213 (make_source_files_completion_list): Use objfile_compunits.
14214 * source.c (select_source_symtab): Use objfile_compunits.
14215 * objfiles.h (struct objfile): Update comment.
14216 (ALL_OBJFILES): Remove.
14217 (ALL_FILETABS): Remove.
14218 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14219 objfile_compunits.
14220
14221 2019-01-09 Tom Tromey <tom@tromey.com>
14222
14223 * symmisc.c (print_objfile_statistics, dump_objfile)
14224 (maintenance_print_symbols): Use compunit_filetabs.
14225 * source.c (forget_cached_source_info_for_objfile): Use
14226 compunit_filetabs.
14227 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14228 (ALL_FILETABS): Use compunit_filetabs.
14229 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14230 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14231
14232 2019-01-09 Tom Tromey <tom@tromey.com>
14233
14234 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14235 (compunit_filetabs): New.
14236 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14237 compunit_filetabs.
14238 (info_sources_command, make_source_files_completion_list): Remove
14239 declaration.
14240 * symmisc.c (print_objfile_statistics, dump_objfile)
14241 (maintenance_print_symbols): Remove declaration.
14242 (maintenance_info_symtabs): Use compunit_filetabs.
14243 (maintenance_info_line_tables): Likewise.
14244 * source.c (select_source_symtab): Change local variable name.
14245 (forget_cached_source_info_for_objfile): Remove declaration.
14246 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14247 * objfiles.c (objfile_relocate1): Remove declaration.
14248 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14249 declaration.
14250 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14251 * coffread.c (coff_symtab_read): Remove declaration.
14252 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14253 compunit_filetabs.
14254
14255 2019-01-09 Tom Tromey <tom@tromey.com>
14256
14257 * symtab.c (lookup_objfile_from_block)
14258 (find_pc_sect_compunit_symtab, search_symbols)
14259 (default_collect_symbol_completion_matches_break_on): Use
14260 objfile_compunits.
14261 * objfiles.h (ALL_COMPUNITS): Remove.
14262 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14263 * cp-support.c (add_symbol_overload_list_qualified): Use
14264 objfile_compunits.
14265 * ada-lang.c (ada_collect_symbol_completion_matches)
14266 (ada_add_global_exceptions): Use objfile_compunits.
14267
14268 2019-01-09 Tom Tromey <tom@tromey.com>
14269
14270 * source.c (select_source_symtab)
14271 (forget_cached_source_info_for_objfile): Remove declaration.
14272 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14273 declaration.
14274 * maint.c (count_symtabs_and_blocks): Remove declaration.
14275 * cp-support.c (add_symbol_overload_list_qualified): Remove
14276 declaration.
14277 * coffread.c (coff_symtab_read): Remove declaration.
14278 * symtab.c (lookup_symbol_in_objfile_symtabs)
14279 (basic_lookup_transparent_type_1): Use objfile_compunits.
14280 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14281 (info_sources_command, search_symbols)
14282 (default_collect_symbol_completion_matches_break_on)
14283 (make_source_files_completion_list): Remove declaration.
14284 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14285 (ada_collect_symbol_completion_matches)
14286 (ada_add_global_exceptions): Remove declaration.
14287 * linespec.c (iterate_over_all_matching_symtabs): Use
14288 objfile_compunits.
14289 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14290 (class objfile_compunits): New.
14291 (ALL_COMPUNITS): Use objfile_compunits.
14292 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14293 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14294 objfile_compunits.
14295 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14296
14297 2019-01-09 Tom Tromey <tom@tromey.com>
14298
14299 * symtab.c (search_symbols)
14300 (default_collect_symbol_completion_matches_break_on): Use
14301 objfile_msymbols.
14302 * ada-lang.c (ada_lookup_simple_minsym)
14303 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14304 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14305 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14306 objfile_msymbols.
14307 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14308 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14309 * objc-lang.c (find_methods): Use objfile_msymbols.
14310 (info_selectors_command, info_classes_command): Likewise.
14311 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14312 * objfiles.h (class objfile_msymbols): New.
14313 (ALL_OBJFILE_MSYMBOLS): Remove.
14314 (ALL_MSYMBOLS): Remove.
14315
14316 2019-01-09 Tom Tromey <tom@tromey.com>
14317
14318 * common/next-iterator.h (next_adapter): Add Iterator template
14319 parameter.
14320 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14321 (class all_objfiles_safe): New.
14322 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14323 * objfiles.c (put_objfile_before): Update comment.
14324 (add_separate_debug_objfile): Likewise.
14325 (free_all_objfiles): Use all_objfiles_safe.
14326 (objfile_purge_solibs): Likewise.
14327
14328 2019-01-09 Tom Tromey <tom@tromey.com>
14329
14330 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14331 (expand_symtab_containing_pc, lookup_static_symbol)
14332 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14333 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14334 all_objfiles.
14335 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14336 * breakpoint.c (create_overlay_event_breakpoint)
14337 (create_longjmp_master_breakpoint)
14338 (create_std_terminate_master_breakpoint)
14339 (create_exception_master_breakpoint): Use all_objfiles.
14340 * linux-thread-db.c (try_thread_db_load_from_pdir)
14341 (has_libpthread): Use all_objfiles.
14342 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14343 * linespec.c (iterate_over_all_matching_symtabs)
14344 (search_minsyms_for_name): Use all_objfiles.
14345 * maint.c (maintenance_info_sections): Use all_objfiles.
14346 * main.c (captured_main_1): Use all_objfiles.
14347 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14348 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14349 * guile/scm-pretty-print.c
14350 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14351 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14352 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14353 (maintenance_print_msymbols): Use all_objfiles.
14354 * source.c (select_source_symtab): Use all_objfiles.
14355 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14356 * symfile.c (remove_symbol_file_command)
14357 (expand_symtabs_matching, map_symbol_filenames): Use
14358 all_objfiles.
14359 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14360 all_objfiles.
14361 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14362 * objc-lang.c (find_methods): Use all_objfiles.
14363 * objfiles.c (have_partial_symbols, have_full_symbols)
14364 (have_minimal_symbols, qsort_cmp)
14365 (default_iterate_over_objfiles_in_search_order): Use
14366 all_objfiles.
14367 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14368 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14369 (maintenance_check_psymtabs): Use all_objfiles.
14370 (ALL_PSYMTABS): Remove.
14371 * compile/compile-object-run.c (do_module_cleanup): Use
14372 all_objfiles.
14373 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14374 * cp-support.c (add_symbol_overload_list_qualified): Use
14375 all_objfiles.
14376 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14377 Use all_objfiles.
14378 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14379 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14380 all_objfiles.
14381 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14382 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14383 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14384 Uses all_objfiles.
14385 * solib.c (solib_read_symbols): Use all_objfiles
14386
14387 2019-01-09 Tom Tromey <tom@tromey.com>
14388
14389 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14390 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14391 all_objfiles.
14392 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14393 * symmisc.c (print_symbol_bcache_statistics)
14394 (print_objfile_statistics, maintenance_print_objfiles)
14395 (maintenance_info_symtabs, maintenance_check_symtabs)
14396 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14397 all_objfiles.
14398 * source.c (forget_cached_source_info): Use all_objfiles.
14399 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14400 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14401 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14402 * objfiles.c (update_section_map): Use all_objfiles.
14403 (shared_objfile_contains_address_p): Likewise.
14404 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14405 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14406
14407 2019-01-09 Tom Tromey <tom@tromey.com>
14408
14409 * common/next-iterator.h: New file.
14410 * objfiles.h (class all_objfiles): New.
14411 (struct objfile_iterator): New.
14412
14413 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14414
14415 * NEWS: Move the description of the changed "frame", "select-frame",
14416 and "info frame" commands to the Changed commands section.
14417
14418 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14419
14420 * gdbtypes.c (check_stub_method_group): Remove handling of old
14421 mangling schemes.
14422 * linespec.c (find_methods): Likewise.
14423 * stabsread.c (read_member_functions): Likewise.
14424 * valops.c (search_struct_method): Likewise.
14425 (value_struct_elt_for_reference): Likewise.
14426 * NEWS: Mention this change.
14427
14428 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14429
14430 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14431 print_source_lines.
14432 * source.c (print_source_lines_base): Update line number check.
14433 (print_source_lines): New function.
14434 (source_lines_range::source_lines_range): New function.
14435 * source.h (class source_lines_range): New class.
14436 (print_source_lines): New declaration.
14437
14438 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14439
14440 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14441
14442 2019-01-08 Tom Tromey <tom@tromey.com>
14443 Simon Marchi <simon.marchi@ericsson.com>
14444
14445 PR gdb/24060
14446 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14447 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14448 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14449 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14450 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14451 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14452
14453 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14454
14455 * source.c (select_source_symtab): Move header comment to
14456 declaration in source.h.
14457 (forget_cached_source_info_for_objfile): Likewise.
14458 (forget_cached_source_info): Likewise.
14459 (identify_source_line): Likewise.
14460 * source.h (identify_source_line): Move declaration from symtab.h
14461 and add comment from source.c
14462 (print_source_lines): Likewise.
14463 (forget_cached_source_info_for_objfile): Likewise.
14464 (forget_cached_source_info): Likewise.
14465 (select_source_symtab): Likewise.
14466 (enum print_source_lines_flag): Move definition from symtab.h.
14467 * symtab.h (identify_source_line): Move declaration to source.h.
14468 (print_source_lines): Likewise.
14469 (forget_cached_source_info_for_objfile): Likewise.
14470 (forget_cached_source_info): Likewise.
14471 (select_source_symtab): Likewise.
14472 (enum print_source_lines_flag): Move definition to source.h.
14473 * tui/tui-hooks.c: Add 'source.h' include.
14474
14475 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14476
14477 * source.c (print_source_lines_base): Handle requests to print
14478 reverse line number sequences, and guard against empty lines
14479 string.
14480
14481 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14482
14483 * source.c (print_source_lines_base): Fix skip of '\r' if next
14484 character is '\n'.
14485
14486 2019-01-06 Tom Tromey <tom@tromey.com>
14487
14488 * c-exp.y (struct c_parse_state) <macro_original_text,
14489 expansion_obstack>: New member.
14490 (macro_original_text, expansion_obstack): Remove globals.
14491 (scan_macro_expansion, scanning_macro_expansion)
14492 (finished_macro_expansion): Update.
14493 (scan_macro_cleanup): Remove.
14494 (yylex, c_parse): Update.
14495
14496 2019-01-06 Tom Tromey <tom@tromey.com>
14497
14498 * c-exp.y (struct c_parse_state) <strings>: New member.
14499 (operator_stoken): Update.
14500
14501 2019-01-06 Tom Tromey <tom@tromey.com>
14502
14503 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14504 (union type_stack_elt) <typelist_val>: Now a pointer to
14505 std::vector.
14506 (type_stack_cleanup): Don't declare.
14507 (push_typelist): Update.
14508 * parse.c (pop_typelist): Return a std::vector.
14509 (push_typelist): Take a std::vector.
14510 (follow_types): Update. Do not free args.
14511 (type_stack_cleanup): Remove.
14512 * c-exp.y (struct c_parse_state): New.
14513 (cpstate): New global.
14514 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14515 (nonempty_typelist): Update.
14516 (func_mod): Create a new vector.
14517 (c_parse): Create a c_parse_state.
14518 (check_parameter_typelist): Do not delete params.
14519 (function_method): Update. Do not delete type_list.
14520
14521 2019-01-06 Tom Tromey <tom@tromey.com>
14522
14523 PR gdb/28155:
14524 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14525 check_typedef.
14526 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14527 (print_return_value): Likewise.
14528
14529 2019-01-05 Tom Tromey <tom@tromey.com>
14530
14531 * contrib/cleanup_check.py: Remove.
14532 * contrib/gcc-with-excheck: Remove.
14533 * contrib/exsummary.py: Remove.
14534 * contrib/excheck.py: Remove.
14535
14536 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14537
14538 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14539 NULL. Initialize tpprev to NULL instead of assigning it
14540 to NULL on the next statement.
14541 * windows-nat.c (windows_delete_thread): Remove check for
14542 main_thread_id before printing thread exit notifications.
14543 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14544 Remove thread ID check against main_thread_id.
14545 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14546 windows_delete_thread.
14547 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14548
14549 2019-01-04 Tom Tromey <tom@tromey.com>
14550
14551 * compile/compile.c (_initialize_compile): Use upper case for
14552 metasyntactic variables.
14553 * symmisc.c (_initialize_symmisc): Use upper case for
14554 metasyntactic variables.
14555 * psymtab.c (_initialize_psymtab): Use upper case for
14556 metasyntactic variables.
14557 * demangle.c (demangle_command): Use upper case for metasyntactic
14558 variables.
14559 (_initialize_demangler): Likewise.
14560 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14561 variables.
14562
14563 2019-01-03 Tom Tromey <tom@tromey.com>
14564
14565 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14566
14567 2019-01-03 Tom Tromey <tom@tromey.com>
14568
14569 * python/py-symtab.c (salpy_str): Update.
14570 (struct salpy_sal_object) <symtab>: Now a PyObject.
14571 (salpy_dealloc): Update.
14572 (del_objfile_sal): Use gdbpy_ref.
14573
14574 2019-01-03 Tom Tromey <tom@tromey.com>
14575
14576 * python/py-type.c (convert_field): Use new_reference. Return
14577 gdbpy_ref.
14578 (make_fielditem): Return gdbpy_ref.
14579 (typy_fields): Update.
14580 (typy_getitem): Update.
14581 (field_name): Return gdbpy_ref. Use new_reference.
14582 (typy_iterator_iternext): Update.
14583
14584 2019-01-03 Tom Tromey <tom@tromey.com>
14585
14586 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14587
14588 2019-01-03 Tom Tromey <tom@tromey.com>
14589
14590 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14591 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14592 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14593 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14594 (pspy_set_type_printers): Likewise.
14595 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14596 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14597 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14598 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14599 (objfpy_set_type_printers): Likewise.
14600
14601 2019-01-03 Tom Tromey <tom@tromey.com>
14602
14603 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14604 (gdbpy_print_stack): Use gdbpy_err_fetch.
14605 * python/python-internal.h (class gdbpy_err_fetch): New class.
14606 (class gdbpy_enter) <m_error_type, m_error_value,
14607 m_error_traceback>: Remove.
14608 <m_error>: New member.
14609 (gdbpy_exception_to_string): Don't declare.
14610 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14611 * python/py-value.c (convert_value_from_python): Use
14612 gdbpy_err_fetch.
14613 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14614 gdbpy_exception_to_string.
14615 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14616 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14617 gdbpy_err_fetch.
14618
14619 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14620
14621 * linux-nat.c (delete_lwp_cleanup): Delete.
14622 (struct lwp_deleter): New struct.
14623 (lwp_info_up): New typedef.
14624 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14625 lwp_info_up.
14626
14627 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14628
14629 * linux-fork.c (class scoped_switch_fork_info): New class.
14630 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14631
14632 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14633
14634 * valops.c (find_overload_match): Remove use of null_cleanup, and
14635 calls to do_cleanups.
14636
14637 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14638
14639 * compile/compile-cplus-types.c
14640 (compile_cplus_instance::decl_name): Handle changes to
14641 cp_func_name.
14642 * cp-support.c (cp_func_name): Update header comment, update
14643 return type.
14644 * cp-support.h (cp_func_name): Update return type in declaration.
14645 * valops.c (find_overload_match): Move temp_func local to top
14646 level of function and change its type. Use temp_func to hold and
14647 delete temporary string obtained from cp_func_name.
14648
14649 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14650
14651 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14652 gdb::char_vector, remove cleanup, and update uses of `msg`.
14653
14654 2019-01-03 Jim Wilson <jimw@sifive.com>
14655
14656 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14657
14658 2019-01-02 Tom Tromey <tom@tromey.com>
14659
14660 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14661 (tdesc_parse_xml): Remove cleanups.
14662 * target-descriptions.h (make_cleanup_free_target_description):
14663 Don't declare.
14664 (target_desc_deleter): New struct.
14665 (target_desc_up): New typedef.
14666 * target-descriptions.c (target_desc_deleter::operator()): Rename
14667 from free_target_description.
14668 (make_cleanup_free_target_description): Remove.
14669
14670 2019-01-02 Tom Tromey <tom@tromey.com>
14671
14672 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14673 constructor, destructor.
14674 (linespec_parser): Remove typedef.
14675 (~linespec_parser): Rename from linespec_parser_delete.
14676 (linespec_lex_to_end, linespec_complete_label)
14677 (linespec_complete): Update.
14678 (decode_line_full): Remove cleanups.
14679 (decode_line_1): Update.
14680
14681 2019-01-02 Tom Tromey <tom@tromey.com>
14682
14683 * python/python-internal.h (inferior_to_inferior_object): Change
14684 return type.
14685 * python/py-exitedevent.c (create_exited_event_object): Update.
14686 * python/py-inferior.c (inferior_to_inferior_object): Return
14687 gdbpy_ref.
14688 (python_new_inferior, python_inferior_deleted)
14689 (thread_to_thread_object, delete_thread_object)
14690 (build_inferior_list, gdbpy_selected_inferior): Update.
14691 * python/py-infthread.c (create_thread_object): Update. Also fail
14692 if inferior_to_inferior_object fails.
14693
14694 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14695
14696 * inferior.h (class inferior) <displaced_step_state>: New field.
14697 * infrun.h (struct displaced_step_state): Move here from
14698 infrun.c. Initialize fields, add constructor.
14699 <inf>: Remove field.
14700 <reset>: New method.
14701 * infrun.c (struct displaced_step_inferior_state): Move to
14702 infrun.h.
14703 (displaced_step_inferior_states): Remove.
14704 (get_displaced_stepping_state): Adust.
14705 (displaced_step_in_progress_any_inferior): Adjust.
14706 (displaced_step_in_progress_thread): Adjust.
14707 (displaced_step_in_progress): Adjust.
14708 (add_displaced_stepping_state): Remove.
14709 (get_displaced_step_closure_by_addr): Adjust.
14710 (remove_displaced_stepping_state): Remove.
14711 (infrun_inferior_exit): Call displaced_step_state.reset.
14712 (use_displaced_stepping): Don't check for NULL.
14713 (displaced_step_prepare_throw): Call
14714 get_displaced_stepping_state.
14715 (displaced_step_fixup): Don't check for NULL.
14716 (prepare_for_detach): Don't check for NULL.
14717
14718 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14719
14720 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14721 in case of call that did not complete.
14722
14723 2019-01-02 Andrey Utkin <autkin@undo.io>
14724
14725 * symfile.c (find_separate_debug_file): Fix search of debug files for
14726 remote debuggee.
14727
14728 2019-01-02 Tom Tromey <tom@tromey.com>
14729
14730 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14731 indentation.
14732 * python/py-frame.c (frapy_older): Remove cast.
14733 (frapy_newer): Likewise.
14734 * python/py-breakpoint.c (local_setattro): Remove cast.
14735 * python/py-arch.c (archpy_name): Remove local variable.
14736 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14737
14738 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14739
14740 * unittests/basic_string_view/element_access/char/empty.cc:
14741 Fix year range in copyright header.
14742
14743 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14744
14745 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14746 Delete.
14747 <operator==>: Update with for removed field.
14748 <hash>: Likewise.
14749 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14750 <isa_features>: ...this.
14751 <abi_features>: New field.
14752 (riscv_isa_flen): Update comment.
14753 (riscv_abi_xlen): New declaration.
14754 (riscv_abi_flen): New declaration.
14755 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14756 isa_features.
14757 (riscv_abi_xlen): New function.
14758 (riscv_isa_flen): Update to get answer from isa_features.
14759 (riscv_abi_flen): New function.
14760 (riscv_has_fp_abi): Update to get answer from abi_features.
14761 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14762 xlen and flen.
14763 (riscv_call_info) <xlen, flen>: Update comment.
14764 (riscv_call_arg_struct): Remove invalid assertions
14765 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14766 is removed.
14767 (riscv_gdbarch_init): Gather isa features and abi features
14768 separately, ensure both match on the gdbarch when reusing an old
14769 gdbarch. Relax an error check to allow 32-bit abi float to run on
14770 a target with 64-bit float hardware.
14771
14772 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14773
14774 * source.c (search_command_helper): Stop reverse search
14775 when line 1 has been searched.
14776
14777 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14778
14779 * record-full.c (record_full_base_target::close): Rewrite
14780 record_full_core_buf_list free logic.
14781
14782 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14783
14784 * break-catch-syscall.c (print_one_catch_syscall): xfree
14785 the last text.
14786
14787 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14788
14789 * top.c (print_gdb_version): Update Copyright year in version
14790 message.
14791
14792 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14793
14794 Update copyright year range in all GDB files.
14795
14796 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14797
14798 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14799
14800 For older changes see ChangeLog-2018.
14801 \f
14802 Local Variables:
14803 mode: change-log
14804 left-margin: 8
14805 fill-column: 74
14806 version-control: never
14807 coding: utf-8
14808 End:
14809
This page took 0.350474 seconds and 3 git commands to generate.