bac7f4419e06d6c541596cfcb8d523bc2d78ca03
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-10 Tom Tromey <tom@tromey.com>
2
3 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
4 Remove unused declaration.
5
6 2019-11-08 Tom Tromey <tromey@adacore.com>
7
8 * top.c (read_command_file): Update.
9 (command_line_input): Make return type const.
10 * python/py-gdb-readline.c: Update.
11 * linespec.c (decode_line_2): Update.
12 * defs.h (command_line_input): Make return type const.
13 * cli/cli-script.c (read_next_line): Make return type const.
14 * ada-lang.c (get_selections): Update.
15
16 2019-11-06 Christian Biesinger <cbiesinger@google.com>
17
18 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
19 * mi/mi-main.c (output_cores): Likewise.
20 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
21 (linux_xfer_osdata_modules): Likewise.
22 * remote.c (register_remote_support_xml): Likewise.
23 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
24 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
25
26 2019-11-06 Tom Tromey <tom@tromey.com>
27
28 * tui/tui-interp.c: Don't include readline.h.
29 * tui/tui-hooks.c: Don't include readline.h.
30 * symmisc.c: Include tilde.h, not readline.h.
31 * symfile.c: Include tilde.h, not readline.h.
32 * source.c: Include tilde.h, not readline.h.
33 * solib.c: Include tilde.h, not readline.h.
34 * psymtab.c: Include tilde.h, not readline.h.
35 * exec.c: Include tilde.h, not readline.h.
36 * corelow.c: Include tilde.h, not readline.h.
37 * cli/cli-dump.c: Include tilde.h, not readline.h.
38 * cli/cli-cmds.c: Don't include readline.h.
39
40 2019-11-05 Tom Tromey <tom@tromey.com>
41
42 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
43 (tui_disassemble): Set addr_size.
44 (tui_disasm_window::set_contents): Use addr_size.
45
46 2019-11-05 Tom Tromey <tom@tromey.com>
47
48 * rust-lang.c (rust_language_defn): Update.
49 * python/py-value.c (valpy_string): Call c_get_string.
50 * p-lang.c (pascal_language_defn): Update.
51 * opencl-lang.c (opencl_language_defn): Update.
52 * objc-lang.c (objc_language_defn): Update.
53 * m2-lang.c (m2_language_defn): Update.
54 * language.c (unknown_language_defn, auto_language_defn): Update.
55 (default_get_string): Remove.
56 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
57 * go-lang.c (go_language_defn): Update.
58 * f-lang.c (f_language_defn): Update.
59 * d-lang.c (d_language_defn): Update.
60 * c-lang.c (c_language_defn, cplus_language_defn)
61 (asm_language_defn, minimal_language_defn): Update.
62 * ada-lang.c (ada_language_defn): Update.
63 * language.h (struct language_defn) <la_get_string>: Remove.
64 (LA_GET_STRING): Remove.
65 (default_get_string): Don't declare.
66
67 2019-11-05 Tom Tromey <tom@tromey.com>
68
69 * tui/tui-source.h (struct tui_source_window): Inline
70 constructor. Remove destructor.
71 <style_changed, m_observable>: Move to superclass.
72 * tui/tui-winsource.h (tui_copy_source_line): Declare.
73 (struct tui_source_window_base): Move private members to end.
74 <style_changed, m_observable>: Move from tui_source_window.
75 * tui/tui-winsource.c (tui_copy_source_line): Move from
76 tui-source.c. Rename from copy_source_line. Add special handling
77 for negative line number.
78 (tui_source_window_base::style_changed): Move from
79 tui_source_window.
80 (tui_source_window_base): Register observer.
81 (~tui_source_window_base): New.
82 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
83 rename.
84 (tui_source_window::set_contents): Use tui_copy_source_line.
85 (tui_source_window::tui_source_window): Move to tui-source.h.
86 (tui_source_window::~tui_source_window): Remove.
87 (tui_source_window::style_changed): Move to superclass.
88 * tui/tui-disasm.c (tui_disassemble): Create string file with
89 styling, when possible. Add "addr_size" parameter.
90 (tui_disasm_window::set_contents): Use tui_copy_source_line.
91 Don't compute maximum size.
92 (len_without_escapes): New function
93
94 2019-11-05 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
97 std::string.
98 * tui/tui-winsource.c (tui_show_source_line): Update.
99 * tui/tui-source.c (tui_source_window::set_contents): Update.
100 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
101
102 2019-11-05 Christian Biesinger <cbiesinger@google.com>
103
104 * symtab.h (gdb_static_assert): Put && operator at the beginning
105 of the line instead of the end.
106
107 2019-11-04 Christian Biesinger <cbiesinger@google.com>
108
109 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
110 and sizeof (symbol).
111 * symtab.h: Add a static_assert for sizeof (partial_symbol).
112
113 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
114
115 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
116 * configure.host: Mark *-*-solaris2.10* obsolete.
117 * configure.tgt: Mark Solaris < 11 obsolete.
118 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
119 Update target triplet.
120
121 2019-11-01 Tom Tromey <tromey@adacore.com>
122
123 * utils.c (print_sys_errmsg): Simplify.
124
125 2019-11-01 Tom Tromey <tromey@adacore.com>
126
127 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
128
129 2019-11-01 Christian Biesinger <cbiesinger@google.com>
130
131 * configure: Regenerate.
132 * configure.ac: Remove check for strerror_r.
133 * gdbsupport/common.m4: Check for strerror_r.
134
135 2019-11-01 Luis Machado <luis.machado@linaro.org>
136
137 PR gdb/25124
138
139 * arm-tdep.c (arm_per_objfile): Rename to ...
140 (arm_per_bfd): ... this.
141 (arm_objfile_data_key): Rename to ...
142 (arm_bfd_data_key): ... this.
143 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
144 data.
145 (arm_record_special_symbol): Likewise.
146
147 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
150 end.
151 * c-typeprint.c (c_print_typedef): Likewise.
152 * f-typeprint.c (f_print_typedef): Likewise.
153 * m2-typeprint.c (m2_print_typedef): Likewise.
154 * p-typeprint.c (pascal_print_typedef): Likewise.
155 * rust-lang.c (rust_print_typedef): Likewise.
156 * symtab.c (print_symbol_info): Print a newline after calling
157 typedef_print.
158
159 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * symtab.c (info_module_cmdlist): New variable.
162 (info_module_command): New function.
163 (search_module_symbols): New function.
164 (info_module_subcommand): New function.
165 (struct info_modules_var_func_options): New struct.
166 (info_modules_var_func_options_defs): New variable.
167 (make_info_modules_var_func_options_def_group): New function.
168 (info_module_functions_command): New function.
169 (info_module_variables_command): New function.
170 (info_module_var_func_command_completer): New function.
171 (_initialize_symtab): Register new 'info module functions' and
172 'info module variables' commands.
173 * symtab.h (typedef symbol_search_in_module): New typedef.
174 (search_module_symbols): Declare new function.
175 * NEWS: Mention new commands.
176
177 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
180 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
181 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
182 MODULES_DOMAIN.
183 (scan_partial_symbols): Only create partial module symbols for non
184 declarations.
185 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
186 and MODULES_DOMAIN.
187 * symtab.c (search_domain_name): Likewise.
188 (search_symbols): Likewise.
189 (print_symbol_info): Likewise.
190 (symtab_symbol_info): Likewise.
191 (info_modules_command): New function.
192 (_initialize_symtab): Register 'info modules' command.
193 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
194 * NEWS: Mention new 'info modules' command.
195
196 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
197
198 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
199 and $_gdb_maint_setting_str.
200
201 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
202
203 * cli/cli-cmds.c (setting_cmd, value_from_setting)
204 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
205 (str_value_from_setting, gdb_setting_str_internal_fn)
206 (gdb_maint_setting_str_internal_fn): New functions.
207 (_initialize_cli_cmds): Define the new convenience functions.
208 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
209 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
210
211 2019-10-31 Christian Biesinger <cbiesinger@google.com>
212
213 * agent.c (set_can_use_agent): When the setting is turned on,
214 look up agent symbols if we don't have them yet.
215 (agent_new_objfile): Don't look up agent symbols when the agent
216 setting is off.
217
218 2019-10-31 Christian Biesinger <cbiesinger@google.com>
219
220 * config.in: Regenerate.
221
222 2019-10-31 Christian Biesinger <cbiesinger@google.com>
223
224 * configure: Regenerate.
225 * configure.ac: Check for strerror_r.
226 * gdbsupport/common-utils.h (safe_strerror): Change return value
227 to const char * and document that this function is now threadsafe.
228 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
229 thread_local and call strerror_r, if available.
230 * utils.c (perror_string): Update.
231 (print_sys_errmsg): Update.
232
233 2019-10-31 Luis Machado <luis.machado@linaro.org>
234
235 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
236 objfile_key.
237 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
238 objfile to fetch per-bfd data.
239 (arm_find_exidx_entry): Likewise.
240
241 2019-10-31 Christian Biesinger <cbiesinger@google.com>
242
243 * gdbsupport/agent.c (debug_agent): Change type to bool.
244 (use_agent): Likewise.
245 (all_agent_symbols_look_up): Likewise.
246 (agent_loaded_p): Change return value to bool.
247 (agent_look_up_symbols): Update.
248 (agent_capability_check): Change return value to bool.
249 * gdbsupport/agent.h (agent_loaded_p): Likewise.
250 (debug_agent): Change type to bool.
251 (use_agent): Likewise.
252 (agent_capability_check): Change return value to bool.
253
254 2019-10-30 Christian Biesinger <cbiesinger@google.com>
255
256 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
257 (build_minimal_symbol_hash_tables): Code to clear the table moved
258 to clear_minimal_symbol_hash_tables.
259 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
260 when needed.
261
262 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * infcmd.c: Remove includes.
265 * infrun.c: Remove includes.
266
267 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
270 (grow_vect): Remove declaration.
271 (ada_type_of_array): Remove declaration.
272 (ada_update_initial_language): Remove declaration.
273 (ada_fold_name): Remove declaration.
274 (ada_fill_in_ada_prototype): Remove declaration.
275 (user_select_syms): Remove declaration.
276 (get_selections): Remove declaration.
277 (ada_tag_type): Remove declaration.
278 (ada_value_tag): Remove declaration.
279 (ada_is_others_clause): Remove declaration.
280 (ada_in_variant): Remove declaration.
281 (ada_value_struct_elt): Remove declaration.
282 (ada_attribute_name): Remove declaration.
283 (ada_system_address_type): Remove declaration.
284 * ada-lang.c (ada_watch_location_expression): Make static.
285 (GROW_VECT): Move here from ada-lang.h.
286 (grow_vect): Make static.
287 (ada_update_initial_language): Make static.
288 (ada_fold_name): Make static.
289 (ada_type_of_array): Make static.
290 (encoded_ordered_before): Move up.
291 (sort_choices): Move up.
292 (print_signatures): Move up.
293 (ada_print_symbol_signature): Move up.
294 (get_selections): Move up and make static.
295 (user_select_syms): Move up and make static.
296 (ada_value_struct_elt): Move up and make static.
297 (ada_tag_type): Make static.
298 (ada_value_tag): Make static.
299 (ada_is_others_clause): Make static.
300 (ada_in_variant): Make static.
301 (ada_attribute_name): Make static.
302
303 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * ada-lang.c: Remove includes.
306 * ada-typeprint.c: Remove includes.
307 * ada-valprint.c: Remove includes.
308
309 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
310
311 * addrmap.c: Add static assertions of type size, moved from
312 _initialize_addrmap.
313 (_initialize_addrmap): Remove.
314
315 2019-10-29 Christian Biesinger <cbiesinger@google.com>
316
317 * coffread.c (record_minimal_symbol): Update.
318 (process_coff_symbol): Update.
319 * dbxread.c (read_dbx_symtab): Update.
320 * dwarf2read.c (add_partial_symbol): Update.
321 (fixup_go_packaging): Update.
322 (load_partial_dies): Update.
323 (new_symbol): Update.
324 * elfread.c (record_minimal_symbol): Change signature to use
325 gdb::string_view instead of name+len.
326 (elf_symtab_read): Update.
327 (elf_rel_plt_read): Update.
328 * mdebugread.c (parse_partial_symbols): Update.
329 (handle_psymbol_enumerators): Update.
330 (new_symbol): Update.
331 * minsyms.c (minimal_symbol_reader::record_full): Change signature
332 to use gdb::string_view instead of name+len.
333 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
334 * psympriv.h (add_psymbol_to_list): Likewise.
335 * psymtab.c (add_psymbol_to_bcache): Likewise.
336 (add_psymbol_to_list): Likewise.
337 * stabsread.c (define_symbol): Update.
338 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
339 * symtab.h (SYMBOL_SET_NAMES): Likewise.
340 (symbol_set_names): Likewise.
341 * xcoffread.c (scan_xcoff_symtab): Update.
342
343 2019-10-29 Christian Biesinger <cbiesinger@google.com>
344
345 * symtab.h (symbol_set_names): Document that copy_name must be
346 set to true for non-nullterminated strings.
347 * symtab.c (symbol_set_names): Only make a nullterminated copy of
348 linkage_name if the entry was not found and we need to demangle.
349
350 2019-10-29 Christian Biesinger <cbiesinger@google.com>
351
352 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
353 * dwarf2-frame.c (bsearch_fde_cmp): Update.
354 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
355 * gdbsupport/gdb_binary_search.h: New file.
356
357 2019-10-29 Christian Biesinger <cbiesinger@google.com>
358
359 * NEWS: Mention new --with-system-gdbinit-dir option.
360 * config.in: Regenerate.
361 * configure: Regenerate.
362 * configure.ac: Add new option --with-system-gdbinit-dir.
363 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
364 for a ".gdb" suffix.
365 * main.c (get_init_files): Change system_gdbinit argument to
366 a vector and return the files in SYSTEM_GDBINIT_DIR in
367 addition to SYSTEM_GDBINIT.
368 (captured_main_1): Update.
369 (print_gdb_help): Update.
370 * top.c (print_gdb_configuration): Also print the value of
371 SYSTEM_GDBINIT_DIR.
372
373 2019-10-28 Christian Biesinger <cbiesinger@google.com>
374
375 * gdbsupport/common-utils.h (startswith): Add an overloaded version
376 that takes gdb::string_view arguments.
377
378 2019-10-26 Tom de Vries <tdevries@suse.de>
379
380 * aarch64-linux-tdep.c: Fix typos in comments.
381 * aarch64-tdep.c: Same.
382 * ada-lang.c: Same.
383 * amd64-nat.c: Same.
384 * arc-tdep.c: Same.
385 * arch/aarch64-insn.c: Same.
386 * block.c: Same.
387 * breakpoint.h: Same.
388 * btrace.h: Same.
389 * c-varobj.c: Same.
390 * cli/cli-decode.c: Same.
391 * cli/cli-script.c: Same.
392 * cli/cli-utils.h: Same.
393 * coff-pe-read.c: Same.
394 * coffread.c: Same.
395 * compile/compile-cplus-symbols.c: Same.
396 * compile/compile-object-run.c: Same.
397 * completer.c: Same.
398 * corelow.c: Same.
399 * cp-support.c: Same.
400 * demangle.c: Same.
401 * dwarf-index-write.c: Same.
402 * dwarf2-frame.c: Same.
403 * dwarf2-frame.h: Same.
404 * eval.c: Same.
405 * frame-base.h: Same.
406 * frame.h: Same.
407 * gdbcmd.h: Same.
408 * gdbtypes.h: Same.
409 * gnu-nat.c: Same.
410 * guile/scm-objfile.c: Same.
411 * i386-tdep.c: Same.
412 * i386-tdep.h: Same.
413 * infcall.c: Same.
414 * infcall.h: Same.
415 * linux-nat.c: Same.
416 * m68k-tdep.c: Same.
417 * macroexp.c: Same.
418 * memattr.c: Same.
419 * mi/mi-cmd-disas.c: Same.
420 * mi/mi-getopt.h: Same.
421 * mi/mi-main.c: Same.
422 * minsyms.c: Same.
423 * nat/aarch64-sve-linux-sigcontext.h: Same.
424 * objfiles.h: Same.
425 * ppc-linux-nat.c: Same.
426 * ppc-linux-tdep.c: Same.
427 * ppc-tdep.h: Same.
428 * progspace.h: Same.
429 * prologue-value.h: Same.
430 * python/py-evtregistry.c: Same.
431 * python/py-instruction.h: Same.
432 * record-btrace.c: Same.
433 * record-full.c: Same.
434 * remote.c: Same.
435 * rs6000-tdep.c: Same.
436 * ser-tcp.c: Same.
437 * sol-thread.c: Same.
438 * sparc-sol2-tdep.c: Same.
439 * sparc64-tdep.c: Same.
440 * stabsread.c: Same.
441 * symfile.c: Same.
442 * symtab.h: Same.
443 * target.c: Same.
444 * tracepoint.c: Same.
445 * tui/tui-data.h: Same.
446 * tui/tui-io.c: Same.
447 * tui/tui-win.c: Same.
448 * tui/tui.c: Same.
449 * unittests/rsp-low-selftests.c: Same.
450 * user-regs.h: Same.
451 * utils.c: Same.
452 * utils.h: Same.
453 * valarith.c: Same.
454 * valops.c: Same.
455 * valprint.c: Same.
456 * valprint.h: Same.
457 * value.c: Same.
458 * value.h: Same.
459 * varobj.c: Same.
460 * x86-nat.h: Same.
461 * xtensa-tdep.c: Same.
462
463 2019-10-25 Ali Tamur <tamur@google.com>
464
465 * charset.c (find_charset_names): Reflect API change.
466
467 2019-10-25 Christian Biesinger <cbiesinger@google.com>
468
469 * symtab.c (struct demangled_name_entry): Change demangled name
470 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
471 part of the struct anymore.
472 (symbol_set_names): No longer obstack allocate + copy the demangled
473 name, just store the allocated name from bfd.
474
475 2019-10-25 Tom Tromey <tromey@adacore.com>
476
477 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
478 (bsearch_cie_cmp, add_cie): Remove.
479 (find_cie): Reimplement.
480 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
481 (dwarf2_build_frame_info): Update.
482
483 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
484
485 PR gdb/25126
486 * symfile.c (reread_symbols): Call forget_cached_source_info to
487 clear the stale source cache.
488
489 2019-10-24 Christian Biesinger <cbiesinger@google.com>
490
491 * configure: Regenerate.
492 * configure.ac: Remove code that sets python_has_threads.
493
494 2019-10-24 Christian Biesinger <cbiesinger@google.com>
495
496 * config.in: Regenerate.
497 * configure: Regenerate.
498 * configure.ac: Remove the code that uses sed to get the python
499 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
500
501 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * python/py-progspace.c (pspy_block_for_pc): Return None for all
504 error paths.
505
506 2019-10-23 Tom Tromey <tom@tromey.com>
507
508 * arc-tdep.c: Remove ".." from include.
509 * frv-tdep.c: Remove ".." from include.
510 * lm32-tdep.c: Remove ".." from include.
511 * microblaze-tdep.c: Remove ".." from include.
512 * or1k-tdep.h: Remove ".." from include.
513 * s12z-tdep.c: Remove ".." from include.
514 * Makefile.in (OPCODES_CFLAGS): Add comment.
515 (TOP_CFLAGS): New variable.
516 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
517
518 2019-10-23 Tom Tromey <tom@tromey.com>
519
520 * Makefile.in (READLINE_DIR): Update.
521
522 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * infcall.c (call_function_by_hand_dummy): Fix the function
525 comment. And extract out a code section into...
526 (reserve_stack_space): ...this new function.
527
528 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
529
530 * infcall.c (value_arg_coerce): Remove an unused parameter.
531 (call_function_by_hand_dummy): Update the call to
532 'value_arg_coerce'.
533
534 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
535
536 * infcall.c (call_function_by_hand_dummy): Refactor.
537
538 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
539
540 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
541
542 2019-10-23 Tom Tromey <tom@tromey.com>
543
544 * configure: Rebuild.
545 * configure.ac: Don't check for sigprocmask.
546 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
547
548 2019-10-23 Tom Tromey <tom@tromey.com>
549
550 * configure: Rebuild.
551 * acinclude.m4: Use m4_include, not sinclude.
552
553 2019-10-23 Tom de Vries <tdevries@suse.de>
554
555 PR breakpoints/24687
556 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
557
558 2019-10-22 Christian Biesinger <cbiesinger@google.com>
559
560 * symtab.c (struct demangled_name_entry) <language>: Change from
561 bitfield to regular variable.
562
563 2019-10-22 Christian Biesinger <cbiesinger@google.com>
564
565 * symtab.c (struct demangled_name_entry): Add a constructor.
566 (free_demangled_name_entry): New function to call the destructor
567 for demangled_name_entry.
568 (create_demangled_names_hash): Pass free_demangled_name_entry to
569 htab_create_alloc.
570 (symbol_set_names): Call placement new for demangled_name_entry.
571 * utils.c: No longer include xxhash.h here, now that fast_hash
572 is inlined in the header.
573 * utils.h: Instead, include it here.
574
575 2019-10-22 Christian Biesinger <cbiesinger@google.com>
576
577 * Makefile.in: Link with libxxhash.
578 * config.in: Regenerate.
579 * configure: Regenerate.
580 * configure.ac: Search for libxxhash.
581 * utils.c (fast_hash): Use xxhash if present.
582
583 2019-10-22 Christian Biesinger <cbiesinger@google.com>
584
585 * utils.h (fast_hash): New function.
586 * symtab.c (hash_demangled_name_entry): Call new function
587 fast_hash.
588
589 2019-10-22 Christian Biesinger <cbiesinger@google.com>
590
591 * symtab.c (struct demangled_name_entry): Change type of mangled
592 to gdb::string_view. Also adds a constructor that takes the
593 mangled name.
594 (hash_demangled_name_entry): Update.
595 (eq_demangled_name_entry): Update.
596 (free_demangled_name_entry): New function to call the destructor
597 now that this is not a POD anymore.
598 (create_demangled_names_hash): Pass free_demangled_name_entry to
599 htab_create_alloc.
600 (symbol_set_names): Update.
601
602 2019-10-21 Ali Tamur <tamu@google.com>
603
604 * dwarf2read.c (dir_index): Change type.
605 (file_name_index): Likewise.
606 (line_header::include_dir_at): Change comment and implementation on
607 whether it is DWARF 5.
608 (line_header::is_valid_file_index): New function.
609 (line_header::file_name_at): Change comment and implementation on
610 whether it is DWARF 5.
611 (line_header::file_names): Change to private field renamed as
612 m_file_names and introduce a new accessor method.
613 (line_header::file_names_size): New method.
614 (line_header::include_dirs): Change to private field and rename as
615 m_include_dirs.
616 (dw2_get_file_names_reader): Define local var at a smaller scope and
617 reflect API change.
618 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
619 (process_structure_scope): Likewise.
620 (line_header::add_include_dir): Change message and reflect renaming.
621 (line_header::add_file_name): Likewise.
622 (read_formatted_entries): Handle DW_FORM_data16.
623 (dwarf_decode_line_header): Fix line header length calculation.
624 (psymtab_include_file_name): Change comment and API.
625 (lnp_state_machine::m_file): Update comment and reflect type change.
626 (lnp_state_machine::record_line): Reflect type change.
627 (dwarf_decode_lines): Reflect API change.
628 (file_file_name): Likewise.
629 (file_full_name): Likewise.
630
631 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
634
635 2019-10-21 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
638
639 2019-10-21 Tom Tromey <tom@tromey.com>
640
641 * configure.ac (nm.h): Conditionally create nm.h link. Subst
642 NM_H. Use AC_CONFIG_LINKS.
643 * configure: Rebuild.
644 * Makefile.in (NM_H): New variable.
645 (generated_files): Add NM_H. Remove gcore.
646 (nm.h, stamp-nmh): New targets.
647
648 2019-10-20 Tom Tromey <tom@tromey.com>
649
650 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
651 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
652 obsolete comment.
653 (put_objfile_before): Now static.
654
655 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * gdbsupport/common-utils.h (startswith): Change return type to
658 bool.
659
660 2019-10-19 Christian Biesinger <cbiesinger@google.com>
661
662 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
663 * breakpoint.c (bp_locations_compare): Rename to...
664 (bp_location_is_less_than): ...this, and change to std::sort semantics.
665 (update_global_location_list): Use std::sort instead of qsort.
666 * buildsym.c (compare_line_numbers): Rename to...
667 (lte_is_less_than): ...this, and change to std::sort semantics.
668 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
669 instead of qsort.
670 * disasm.c (compare_lines): Rename to...
671 (line_is_less_than): ...this, and change to std::sort semantics.
672 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
673 of qsort.
674 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
675 (fde_is_less_than): ...this, and change to std::sort semantics.
676 (dwarf2_build_frame_info): Call std::sort instead of qsort.
677 * mdebugread.c (compare_blocks):
678 (block_is_less_than): ...this, and change to std::sort semantics.
679 (sort_blocks): Call std::sort instead of qsort.
680 * objfiles.c (qsort_cmp): Rename to...
681 (sort_cmp): ...this, and change to std::sort semantics.
682 (update_section_map): Call std::sort instead of qsort.
683 * remote.c (compare_pnums): Remove.
684 (map_regcache_remote_table): Call std::sort instead of qsort.
685 * utils.c (compare_positive_ints): Remove.
686 * utils.h (compare_positive_ints): Remove.
687 * xcoffread.c (compare_lte): Remove.
688 (arrange_linetable): Call std::sort instead of qsort.
689
690 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
691
692 * symfile.c (init_entry_point_info): Fix typo.
693 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
694
695 2019-10-18 Tom de Vries <tdevries@suse.de>
696
697 * aarch64-tdep.c: Fix typos in comments.
698 * ada-lang.c: Same.
699 * ada-tasks.c: Same.
700 * alpha-tdep.c: Same.
701 * alpha-tdep.h: Same.
702 * amd64-nat.c: Same.
703 * amd64-windows-tdep.c: Same.
704 * arc-tdep.c: Same.
705 * arc-tdep.h: Same.
706 * arch-utils.c: Same.
707 * arm-nbsd-tdep.c: Same.
708 * arm-tdep.c: Same.
709 * ax-gdb.c: Same.
710 * blockframe.c: Same.
711 * btrace.c: Same.
712 * c-varobj.c: Same.
713 * coff-pe-read.c: Same.
714 * coffread.c: Same.
715 * cris-tdep.c: Same.
716 * darwin-nat.c: Same.
717 * dbxread.c: Same.
718 * dcache.c: Same.
719 * disasm.c: Same.
720 * dtrace-probe.c: Same.
721 * dwarf-index-write.c: Same.
722 * dwarf2-frame-tailcall.c: Same.
723 * dwarf2-frame.c: Same.
724 * dwarf2read.c: Same.
725 * eval.c: Same.
726 * exceptions.c: Same.
727 * fbsd-tdep.c: Same.
728 * findvar.c: Same.
729 * frame.c: Same.
730 * frv-tdep.c: Same.
731 * gnu-v3-abi.c: Same.
732 * go32-nat.c: Same.
733 * h8300-tdep.c: Same.
734 * hppa-tdep.c: Same.
735 * i386-linux-tdep.c: Same.
736 * i386-tdep.c: Same.
737 * ia64-libunwind-tdep.c: Same.
738 * ia64-tdep.c: Same.
739 * infcmd.c: Same.
740 * infrun.c: Same.
741 * linespec.c: Same.
742 * linux-nat.c: Same.
743 * linux-thread-db.c: Same.
744 * machoread.c: Same.
745 * mdebugread.c: Same.
746 * mep-tdep.c: Same.
747 * mn10300-tdep.c: Same.
748 * namespace.c: Same.
749 * objfiles.c: Same.
750 * opencl-lang.c: Same.
751 * or1k-tdep.c: Same.
752 * osabi.c: Same.
753 * ppc-linux-nat.c: Same.
754 * ppc-linux-tdep.c: Same.
755 * ppc-sysv-tdep.c: Same.
756 * printcmd.c: Same.
757 * procfs.c: Same.
758 * record-btrace.c: Same.
759 * record-full.c: Same.
760 * remote-fileio.c: Same.
761 * remote.c: Same.
762 * rs6000-tdep.c: Same.
763 * s12z-tdep.c: Same.
764 * score-tdep.c: Same.
765 * ser-base.c: Same.
766 * ser-go32.c: Same.
767 * skip.c: Same.
768 * sol-thread.c: Same.
769 * solib-svr4.c: Same.
770 * solib.c: Same.
771 * source.c: Same.
772 * sparc-nat.c: Same.
773 * sparc-sol2-tdep.c: Same.
774 * sparc-tdep.c: Same.
775 * sparc64-tdep.c: Same.
776 * stabsread.c: Same.
777 * stack.c: Same.
778 * symfile.c: Same.
779 * symtab.c: Same.
780 * target-descriptions.c: Same.
781 * target-float.c: Same.
782 * thread.c: Same.
783 * utils.c: Same.
784 * valops.c: Same.
785 * valprint.c: Same.
786 * value.c: Same.
787 * varobj.c: Same.
788 * windows-nat.c: Same.
789 * xcoffread.c: Same.
790 * xstormy16-tdep.c: Same.
791 * xtensa-tdep.c: Same.
792
793 2019-10-17 Tom Tromey <tromey@adacore.com>
794
795 * configure: Rebuild.
796 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
797 in AC_CONFIG_FILES invocation.
798 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
799 new-style config.status invocation.
800
801 2019-10-17 Tom de Vries <tdevries@suse.de>
802
803 * arm-nbsd-nat.c: Fix typos in comments.
804 * arm-tdep.c: Same.
805 * darwin-nat-info.c: Same.
806 * dwarf2read.c: Same.
807 * elfread.c: Same.
808 * event-top.c: Same.
809 * findvar.c: Same.
810 * gdbtypes.c: Same.
811 * hppa-tdep.c: Same.
812 * i386-tdep.c: Same.
813 * jit.c: Same.
814 * main.c: Same.
815 * mdebugread.c: Same.
816 * moxie-tdep.c: Same.
817 * nto-procfs.c: Same.
818 * osabi.c: Same.
819 * ppc-linux-tdep.c: Same.
820 * remote.c: Same.
821 * riscv-tdep.c: Same.
822 * s390-tdep.c: Same.
823 * sh-tdep.c: Same.
824 * sparc-linux-tdep.c: Same.
825 * sparc-nat.c: Same.
826 * stack.c: Same.
827 * target-descriptions.c: Same.
828 * top.c: Same.
829 * varobj.c: Same.
830
831 2019-10-16 Tom Tromey <tom@tromey.com>
832
833 * objfiles.h (struct objfile) <original_name>: Now const.
834
835 2019-10-16 Christian Biesinger <cbiesinger@google.com>
836
837 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
838 pass on to sigsetjmp's second argument.
839 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
840
841 2019-10-16 Keith Seitz <keiths@redhat.com>
842
843 PR gdb/23567
844 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
845 sections whose size is greater than the file size.
846
847 2019-10-16 Jim Wilson <jimw@sifive.com>
848
849 * riscv-tdep.c (riscv_gcc_target_options): New.
850 (riscv_gnu_triplet_regexp): New.
851 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
852 set_gdbarch_gnu_triplet_regexp.
853
854 2019-10-16 Christian Biesinger <cbiesinger@google.com>
855
856 * Makefile.in: Add xml-builtin.h.
857 * features/feature_to_c.sh: Add an include for xml-builtin.h
858 to ensure that the compiler checks that the types match.
859 * xml-builtin.h: New file.
860 * xml-support.c (fetch_xml_builtin): Add missing const.
861 * xml-support.h: Remove declaration of xml_builtins.
862
863 2019-10-16 Tom de Vries <tdevries@suse.de>
864
865 PR tdep/25096
866 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
867 (amd64_classify_aggregate): ... here.
868 (amd64_classify_aggregate_field): Handled fiels of nested structs
869 recursively.
870
871 2019-10-16 Tom de Vries <tdevries@suse.de>
872
873 PR tdep/24104
874 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
875 that handles 'theclass'.
876
877 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * linespec.c (decode_digits_ordinary): Update comment.
880 * make-target-delegates: No longer need to handle VEC case.
881 * memrange.c (normalize_mem_ranges): Update comment.
882 * namespace.c (add_using_directive): Update comment.
883 * objc-lang.c (uniquify_strings): Update comment.
884 * ppc-linux-nat.c (struct thread_points): Update comment.
885 * probe.h (find_probes_in_objfile): Update comment.
886 * target.h (enum flash_preserve_mode): Update comment.
887 * varobj.c (varobj_restrict_range): Update comment.
888 * varobj.h (varobj_list_children): Update comment.
889
890 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * Makefile.in: Remove references to vec.h and vec.c.
893 * aarch64-tdep.c: No longer include vec.h.
894 * ada-lang.c: Likewise.
895 * ada-lang.h: Likewise.
896 * arm-tdep.c: Likewise.
897 * ax.h: Likewise.
898 * breakpoint.h: Likewise.
899 * charset.c: Likewise.
900 * cp-support.h: Likewise.
901 * dtrace-probe.c: Likewise.
902 * dwarf2read.c: Likewise.
903 * extension.h: Likewise.
904 * gdb_bfd.c: Likewise.
905 * gdbsupport/gdb_vecs.h: Likewise.
906 * gdbsupport/vec.c: Remove.
907 * gdbsupport/vec.h: Remove.
908 * gdbthread.h: Likewise.
909 * guile/scm-type.c: Likewise.
910 * inline-frame.c: Likewise.
911 * machoread.c: Likewise.
912 * memattr.c: Likewise.
913 * memrange.h: Likewise.
914 * namespace.h: Likewise.
915 * nat/linux-btrace.h: Likewise.
916 * osdata.c: Likewise.
917 * parser-defs.h: Likewise.
918 * progspace.h: Likewise.
919 * python/py-type.c: Likewise.
920 * record-btrace.c: Likewise.
921 * rust-exp.y: Likewise.
922 * solib-target.c: Likewise.
923 * stap-probe.c: Likewise.
924 * target-descriptions.c: Likewise.
925 * target-memory.c: Likewise.
926 * target.h: Likewise.
927 * varobj.c: Likewise.
928 * varobj.h: Likewise.
929 * xml-support.h: Likewise.
930
931 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
934 Update for new std::vector based implementation.
935 (process_psymtab_comp_unit_reader): Likewise.
936 (scan_partial_symbols): Likewise.
937 (recursively_compute_inclusions): Likewise.
938 (compute_compunit_symtab_includes): Likewise.
939 (process_imported_unit_die): Likewise.
940 (queue_and_load_dwo_tu): Likewise.
941 (follow_die_sig_1): Likewise.
942 * gdb/dwarf2read.h: Remove DEF_VEC_P.
943 (typedef dwarf2_per_cu_ptr): Remove.
944 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
945 function.
946 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
947 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
948 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
949 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
950 std::vector.
951
952 2019-10-15 Tom Tromey <tromey@adacore.com>
953
954 * windows-nat.c (windows_nat_target::resume): Use %x when logging
955 TID.
956
957 2019-10-15 Tom Tromey <tromey@adacore.com>
958
959 * windows-nat.c (windows_nat_target::fetch_registers)
960 (windows_nat_target::store_registers): Rename "pid" to "tid".
961
962 2019-10-15 Tom Tromey <tromey@adacore.com>
963
964 * gdbarch.h, gdbarch.c: Rebuild.
965 * gdbarch.sh (gcc_target_options): Change return type to
966 std::string.
967 * compile/compile.c (get_args): Update.
968 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
969 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
970 std::string.
971 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
972 std::string.
973 * arch-utils.c (default_gcc_target_options): Return std::string.
974 * arch-utils.h (default_gcc_target_options): Return std::string.
975 * s390-tdep.c (s390_gcc_target_options): Return std::string.
976
977 2019-10-15 Christian Biesinger <cbiesinger@google.com>
978
979 * breakpoint.c (breakpoint_chain): Make static.
980 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
981 of accessing breakpoint_chain.
982
983 2019-10-15 Christian Biesinger <cbiesinger@google.com>
984
985 * breakpoint.c (iterate_over_breakpoints): Change function pointer
986 to a gdb::function_view and return value to bool.
987 * breakpoint.h (iterate_over_breakpoints): Likewise.
988 * dummy-frame.c (pop_dummy_frame_bpt): Update.
989 (pop_dummy_frame): Update.
990 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
991 (gdbscm_breakpoints): Update.
992 * python/py-breakpoint.c (build_bp_list): Update.
993 (gdbpy_breakpoints): Update.
994 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
995 Update.
996 (bpfinishpy_handle_stop): Update.
997 (bpfinishpy_handle_exit): Update.
998 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
999 (svr4_update_solib_event_breakpoints): Update.
1000
1001 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1002
1003 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1004 when unwrapping single-field structs.
1005
1006 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * dwarf2read.c: Remove includes.
1009
1010 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * ui-out.c (ui_out::call_do_message): Silence
1013 -Wformat-nonliteral warning.
1014
1015 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1018 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1019 include: readline/tilde.h.
1020
1021 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1022
1023 * remote.c (remote_target::get_trace_status): Remove declaration of
1024 trace_regblock_size.
1025
1026 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1027
1028 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1029 (show_user): Remove declaration of cmdlist.
1030 * cli/cli-cmds.h (max_user_call_depth): Declare.
1031 * cli/cli-script.c (execute_user_command): Remove declaration
1032 of max_user_call_depth.
1033
1034 2019-10-11 Jim Wilson <jimw@sifive.com>
1035
1036 * gdbsupport/print-utils.h (pulongest): Fix comment.
1037 (plongest): Likewise.
1038 (phex): Add missing comment, mention leading zeros.
1039 (phex_nz): Add mention of no leading zeros to comment.
1040
1041 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1042 plongest instead of unsigned long long cast.
1043
1044 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1045
1046 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1047 for external_editor_command and gdbtk_test.
1048
1049 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1050
1051 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1052 * varobj.c (varobjdebug): Move comment to...
1053 * varobj.h (varobjdebug): ...here, and declare.
1054
1055 2019-10-09 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1058 erase_data_content.
1059
1060 2019-10-09 Tom Tromey <tom@tromey.com>
1061
1062 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1063 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1064 * tui/tui-command.c (tui_cmd_window::resize)
1065 (tui_refresh_cmd_win): Update.
1066 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1067 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1068 * tui/tui-data.c (~tui_gen_win_info): Remove.
1069 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1070 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1071 (tui_redisplay_readline, tui_mld_flush)
1072 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1073 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1074 (tui_data_window::erase_data_content)
1075 (tui_data_item_window::rerender)
1076 (tui_data_item_window::refresh_window): Update.
1077 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1078 (box_win, tui_gen_win_info::make_window)
1079 (tui_gen_win_info::make_visible): Update.
1080 (tui_delete_win): Remove.
1081 * tui/tui-winsource.c
1082 (tui_source_window_base::do_erase_source_content): Update.
1083 (tui_show_source_line, tui_source_window_base::update_tab_width)
1084 (tui_source_window_base::update_exec_info): Update.
1085 * tui/tui-data.h (struct curses_deleter): New.
1086 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1087 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1088
1089 2019-10-09 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1092
1093 2019-10-09 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1096 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1097
1098 2019-10-09 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1101 window height directly.
1102 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1103 declare.
1104 * tui/tui-layout.c (tui_default_win_height): Remove.
1105 (tui_default_win_viewport_height): Remove.
1106
1107 2019-10-09 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui.h: Remove comments.
1110
1111 2019-10-09 Tom de Vries <tdevries@suse.de>
1112
1113 * python/lib/gdb/printer/bound_registers.py: Use
1114 '^builtin_type_bound128' as regexp argument for
1115 add_builtin_pretty_printer.
1116
1117 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1118
1119 * guile/guile.c (guile_extension_script_ops): Remove forward
1120 declaration and mark as static.
1121 (guile_script_ops): Likewise.
1122 (extension_language_guile): Move further down in the file so
1123 it can reference the definitions for guile_{extension_,}script_ops.
1124
1125 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1126
1127 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1128 except SORTL, DFLTCC, and KDSA.
1129
1130 2019-10-08 Tom Tromey <tromey@adacore.com>
1131
1132 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1133 (struct safe_symbol_file_add_args): Remove.
1134
1135 2019-10-08 Tom Tromey <tromey@adacore.com>
1136
1137 * windows-nat.c: Don't include buildsym-legacy.h.
1138
1139 2019-10-08 Tom Tromey <tromey@adacore.com>
1140
1141 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1142
1143 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1144
1145 * gdbtypes.c (overload_debug): Move comment to header.
1146 * gdbtypes.h (overload_debug): Declare.
1147 * valops.c: Remove declaration of overload_debug, instead
1148 include gdbtypes.h.
1149
1150 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1151
1152 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1153 through _().
1154 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1155 move comment...
1156 * language.h (lang_frame_mismatch_warn): ... here. Also add
1157 declaration.
1158 * top.c (lang_frame_mismatch_warn): Remove declaration.
1159 (check_frame_language_change): Pass lang_frame_mismatch_warn
1160 through _().
1161
1162 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1163
1164 * c-lang.h (vtbl_ptr_name): Declare.
1165 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1166 it from the header.
1167 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1168
1169 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1170
1171 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1172 gdb_static_assert.
1173
1174 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1175
1176 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1177 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1178 * ctfread.c: New file.
1179 * ctfread.h: New file.
1180 * elfread.c: Include ctfread.h.
1181 (struct elfinfo text_p): New member ctfsect.
1182 (elf_locate_sections): Mark CTF section.
1183 (elf_symfile_read): Call elfctf_build_psymtabs.
1184 * Makefile.in (LIBCTF): Add.
1185 (CLIBS): Use it.
1186 (CDEPS): Likewise.
1187 (DIST): Add ctfread.c.
1188
1189 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * ctfread.c (struct nextfield): Renamed to ...
1192 (struct ctf_nextfield): ... this.
1193 (struct field_info): Renamed to ...
1194 (strut ctf_field_info): ... this.
1195 (attach_fields_to_type): Update for renamed structures.
1196 (ctf_add_member_cb): Likewise.
1197 (ctf_add_enum_member_cb): Likewise.
1198 (process_struct_members): Likewise.
1199 (process_enum_type): Likewise.
1200
1201 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1202
1203 * tracectf.h: Rename, was ctf.h.
1204 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1205 * tracefile.c: Likewise.
1206 * tracepoint.c: Remove unused include ctf.h.
1207 * mi/mi-main.c: Likewise.
1208 * Makefile.in Replace ctf.c with tracectf.c.
1209
1210 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1211
1212 * version.in: Change version number to "9.0.50.DATE-git".
1213
1214 2019-10-03 Tom Tromey <tom@tromey.com>
1215
1216 PR rust/24976:
1217 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1218
1219 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1222 cp_search_name_hash.
1223 * NEWS: Add entry about nested function support.
1224
1225 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1226 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1229 for nested static variables when searchin VAR_DOMAIN.
1230 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1231 global scope, update comment.
1232 (add_partial_subprogram): Call add_partial_subprogram recursively
1233 for nested subroutines when processinng Fortran.
1234 (load_partial_dies): Process the child entities of a subprogram
1235 when processing Fortran.
1236 (partial_die_parent_scope): Handle building scope
1237 for Fortran nested functions.
1238 (process_die): Record that nested functions have a scope.
1239 (new_symbol): Always record Fortran subprograms on the global
1240 symbol list.
1241 (determine_prefix): How to build the prefix for Fortran
1242 subprograms.
1243
1244 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1247 have just sent the thread a SIGSTOP and are waiting for it to
1248 arrive.
1249
1250 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * btrace.c (btrace_add_pc): Remove whitespace before the template
1253 parameter in 'std::vector <...>'.
1254 (parse_xml_btrace_block): Likewise.
1255 (btrace_maint_decode_pt): Likewise.
1256 (btrace_maint_update_packets): Likewise.
1257 (btrace_maint_print_packets): Likewise.
1258 * btrace.h (struct btrace_maint_info): Likewise.
1259 * dwarf2read.c (struct type_unit_group): Likewise.
1260 (build_type_psymtabs_reader): Likewise.
1261 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1262 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1263 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1264
1265 2019-10-03 Tom de Vries <tdevries@suse.de>
1266
1267 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1268 the first line of the help text for set/show style metadata.
1269
1270 2019-10-02 Tom Tromey <tromey@adacore.com>
1271
1272 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1273 * gdbsupport/common-inferior.c: New file.
1274 * infcmd.c (startup_with_shell): Don't define.
1275 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1276 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1277 * inferior.h (startup_with_shell): Don't declare.
1278
1279 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1280
1281 * gdbsupport/gdb_assert.h: Include errors.h.
1282 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1283
1284 2019-10-02 Tom Tromey <tromey@adacore.com>
1285
1286 * NEWS: Add $_ada_exception entry.
1287 * ada-lang.c (struct ada_catchpoint): Add constructor.
1288 <m_kind>: New member.
1289 (allocate_location_exception, re_set_exception): Remove
1290 "ex" parameter.
1291 (should_stop_exception): Compute $_ada_exception.
1292 (check_status_exception, print_it_exception)
1293 (print_one_exception, print_mention_exception): Remove
1294 "ex" parameter.
1295 (allocate_location_catch_exception, re_set_catch_exception)
1296 (check_status_exception, print_it_catch_exception)
1297 (print_one_catch_exception, print_mention_catch_exception)
1298 (print_recreate_catch_exception)
1299 (allocate_location_catch_exception_unhandled)
1300 (re_set_catch_exception_unhandled)
1301 (check_status_exception, print_it_catch_exception_unhandled)
1302 (print_one_catch_exception_unhandled)
1303 (print_mention_catch_exception_unhandled)
1304 (print_recreate_catch_exception_unhandled)
1305 (allocate_location_catch_assert, re_set_catch_assert)
1306 (check_status_assert, print_it_catch_assert)
1307 (print_one_catch_assert, print_mention_catch_assert)
1308 (print_recreate_catch_assert)
1309 (allocate_location_catch_handlers, re_set_catch_handlers)
1310 (check_status_handlers, print_it_catch_handlers)
1311 (print_one_catch_handlers, print_mention_catch_handlers)
1312 (print_recreate_catch_handlers): Remove.
1313 (create_ada_exception_catchpoint): Update.
1314 (initialize_ada_catchpoint_ops): Update.
1315
1316 2019-10-02 Tom Tromey <tromey@adacore.com>
1317
1318 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1319 (create_excep_cond_exprs): Simplify exception string computation.
1320 (ada_exception_catchpoint_cond_string): Likewise.
1321
1322 2019-10-02 Tom Tromey <tromey@adacore.com>
1323
1324 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1325 * ada-lang.c (lesseq_defined_than): Handle
1326 LOC_STATIC.
1327 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1328 parameter.
1329 (dwarf2_has_info): Likewise.
1330 (new_symbol): Set maybe_copied on symbol when
1331 appropriate.
1332 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1333 parameter.
1334 <can_copy>: New member.
1335 * elfread.c (record_minimal_symbol): Set maybe_copied
1336 on symbol when appropriate.
1337 (elf_symfile_read): Update call to dwarf2_has_info.
1338 * minsyms.c (lookup_minimal_symbol_linkage): New
1339 function.
1340 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1341 * symtab.c (get_symbol_address, get_msymbol_address):
1342 New functions.
1343 * symtab.h (get_symbol_address, get_msymbol_address):
1344 Declare.
1345 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1346 maybe_copied.
1347 (struct symbol, struct minimal_symbol) <maybe_copied>:
1348 New member.
1349
1350 2019-10-02 Tom Tromey <tromey@adacore.com>
1351
1352 * source.c (struct current_source_location): New.
1353 (current_source_key): New global.
1354 (current_source_symtab, current_source_line)
1355 (current_source_pspace): Remove.
1356 (get_source_location): New function.
1357 (get_current_source_symtab_and_line)
1358 (set_default_source_symtab_and_line)
1359 (set_current_source_symtab_and_line)
1360 (clear_current_source_symtab_and_line, select_source_symtab)
1361 (info_source_command, print_source_lines_base)
1362 (info_line_command, search_command_helper, _initialize_source):
1363 Update.
1364
1365 2019-10-02 Tom Tromey <tromey@adacore.com>
1366
1367 * source.c (select_source_symtab): Don't call
1368 decode_line_with_current_source.
1369
1370 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * symtab.c (lookup_global_symbol): Search global block.
1373
1374 2019-10-02 Tom Tromey <tromey@adacore.com>
1375
1376 * coffread.c (process_coff_symbol): Update.
1377 * dwarf2read.c (var_decode_location, new_symbol): Update.
1378 * mdebugread.c (parse_symbol): Update.
1379 * objfiles.c (relocate_one_symbol): Update.
1380 * stabsread.c (define_symbol, fix_common_block)
1381 (scan_file_globals): Update.
1382 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1383 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1384 * xcoffread.c (process_xcoff_symbol): Update.
1385
1386 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1387
1388 * MAINTAINERS: Update my email address.
1389
1390 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1393 std::vector.
1394 (build_type_psymtabs_reader): Update for std::vector.
1395 (build_type_psymtab_dependencies): Likewise.
1396 * dwarf2read.h: Remove use of DEF_VEC_P.
1397 (typedef sig_type_ptr): Delete.
1398
1399 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1402 to std::vector.
1403 (btrace_maint_decode_pt): Likewise, and move allocation of the
1404 vector outside of the loop.
1405 (btrace_maint_update_packets): Update to handle change from VEC to
1406 std::vector.
1407 (btrace_maint_print_packets): Likewise.
1408 (maint_info_btrace_cmd): Likewise.
1409 * btrace.h: Remove use of DEF_VEC_O.
1410 (typedef btrace_pt_packet_s): Delete.
1411 (struct btrace_maint_info) <packets>: Change fromm VEC to
1412 std::vector.
1413 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1414
1415 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1418 make accesses into the vector constant references.
1419 (btrace_add_pc): Update for std::vector.
1420 (btrace_stitch_bts): Likewise.
1421 (parse_xml_btrace_block): Likewise.
1422 (btrace_maint_update_packets): Likewise.
1423 (btrace_maint_print_packets): Likewise.
1424 (maint_info_btrace_cmd): Likewise.
1425 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1426 std::vector.
1427 (btrace_data::empty): Likewise.
1428 (btrace_data_append): Likewise.
1429 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1430 (typedef btrace_block_s): Delete.
1431 (struct btrace_block): Add constructor.
1432 (struct btrace_data_bts) <blocks>: Change to std::vector.
1433 * nat/linux-btrace.c (perf_event_read_bts): Update for
1434 std::vector.
1435 (linux_read_bts): Likewise.
1436
1437 2019-10-01 Tom Tromey <tom@tromey.com>
1438
1439 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1440
1441 2019-10-01 Tom Tromey <tom@tromey.com>
1442
1443 * stack.c (print_frame, info_frame_command_core): Use
1444 styled_string.
1445 * linux-thread-db.c (try_thread_db_load_1)
1446 (try_thread_db_load_from_pdir_1): Use styled_string.
1447 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1448 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1449 (maybe_print_unsupported_script_warning)
1450 (maybe_print_script_not_found_warning): Use styled_string.
1451 * ada-lang.c (user_select_syms): Use styled_string.
1452
1453 2019-10-01 Tom Tromey <tom@tromey.com>
1454
1455 * p-lang.c (pascal_printstr): Use metadata style.
1456 * value.c (show_convenience): Use metadata style.
1457 * valprint.c (valprint_check_validity, val_print_optimized_out)
1458 (val_print_not_saved, val_print_unavailable)
1459 (val_print_invalid_address, generic_val_print, val_print)
1460 (value_check_printable, val_print_array_elements): Use metadata
1461 style.
1462 * ui-out.h (class ui_out) <field_fmt>: New overload.
1463 <do_field_fmt>: Add style parameter.
1464 * ui-out.c (ui_out::field_fmt): New overload.
1465 * typeprint.c (type_print_unknown_return_type)
1466 (val_print_not_allocated, val_print_not_associated): Use metadata
1467 style.
1468 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1469 parameter.
1470 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1471 * tracepoint.c (tvariables_info_1): Use metadata style.
1472 * stack.c (print_frame_arg, print_frame_info, print_frame)
1473 (info_frame_command_core): Use metadata style.
1474 * skip.c (info_skip_command): Use metadata style.
1475 * rust-lang.c (rust_print_enum): Use metadata style.
1476 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1477 metadata style.
1478 * python/py-framefilter.c (py_print_single_arg): Use metadata
1479 style.
1480 * printcmd.c (do_one_display, print_variable_and_value): Use
1481 metadata style.
1482 * p-valprint.c (pascal_val_print)
1483 (pascal_object_print_value_fields): Use metadata style.
1484 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1485 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1486 parameter.
1487 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1488 * m2-valprint.c (m2_print_long_set): Use metadata style.
1489 * m2-typeprint.c (m2_print_type): Use metadata style.
1490 * infcmd.c (print_return_value_1): Use metadata style.
1491 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1492 * f-valprint.c (info_common_command_for_block): Use metadata
1493 style.
1494 * f-typeprint.c (f_type_print_base): Use metadata style.
1495 * expprint.c (print_subexp_standard): Use metadata style.
1496 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1497 * cli/cli-style.h (class cli_style_option): Add constructor.
1498 (metadata_style): Declare.
1499 * cli/cli-style.c (metadata_style): New global.
1500 (_initialize_cli_style): Register metadata style.
1501 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1502 parameter.
1503 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1504 * c-typeprint.c (c_type_print_base_struct_union)
1505 (c_type_print_base_1): Use metadata style.
1506 * breakpoint.c (watchpoint_value_print)
1507 (print_one_breakpoint_location): Use metadata style.
1508 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1509 style.
1510 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1511 style.
1512 * ada-valprint.c (val_print_packed_array_elements, printstr)
1513 (print_field_values, ada_val_print_ref, ada_val_print): Use
1514 metadata style.
1515 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1516 style.
1517 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1518 style.
1519 * ada-lang.c (user_select_syms): Use metadata style.
1520
1521 2019-10-01 Tom Tromey <tom@tromey.com>
1522
1523 * cli/cli-cmds.c (pwd_command): Style output.
1524
1525 2019-10-01 Pedro Alves <palves@redhat.com>
1526 Tom Tromey <tom@tromey.com>
1527
1528 * symtab.c (print_symbol_info): Use %ps.
1529 (print_msymbol_info): Use %ps.
1530 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1531 * printcmd.c (print_variable_and_value): Use %ps.
1532 * macrocmd.c (show_pp_source_pos): Use %ps.
1533 * infrun.c (print_exited_reason): Use ui_out::message.
1534 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1535 (describe_other_breakpoints): Use ui_out::message and new
1536 formats.
1537 (say_where): Use new formats.
1538 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1539 and new formats.
1540
1541 2019-10-01 Pedro Alves <palves@redhat.com>
1542 Tom Tromey <tom@tromey.com>
1543
1544 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1545 (test_gdb_formats): New function.
1546 (run_tests): Call it.
1547 (test_format_specifier): Update.
1548 * utils.h (fputs_filtered): Update comment.
1549 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1550 (fputs_styled_unfiltered): Declare.
1551 * utils.c (fputs_styled_unfiltered): New function.
1552 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1553 (vfprintf_filtered): Update.
1554 (vfprintf_unfiltered, vprintf_filtered): Update.
1555 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1556 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1557 disallow_ui_out_field>: New constants.
1558 (enum class field_kind): New.
1559 (struct base_field_s, struct signed_field_s): New.
1560 (signed_field): New function.
1561 (struct string_field_s): New.
1562 (string_field): New function.
1563 (struct styled_string_s): New.
1564 (styled_string): New function.
1565 (class ui_out) <message>: Add comment.
1566 <vmessage, call_do_message>: New methods.
1567 <do_message>: Add style parameter.
1568 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1569 methods.
1570 (ui_out::message): Rewrite.
1571 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1572 parameter.
1573 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1574 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1575 gdb_extensions parameter.
1576 (class format_piece): Add parameter to constructor.
1577 (n_int_args): New field.
1578 * gdbsupport/format.c (format_pieces::format_pieces): Add
1579 gdb_extensions parameter. Handle '*'.
1580 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1581 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1582 vfprintf_styled_no_gdbfmt.
1583 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1584 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1585 unfiltered output.
1586 * ui-style.h (struct ui_file_style) <ptr>: New method.
1587
1588 2019-10-01 Tom Tromey <tom@tromey.com>
1589
1590 * unittests/format_pieces-selftests.c: Update. Add final format.
1591 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1592 empty literal pieces.
1593
1594 2019-10-01 Tom Tromey <tom@tromey.com>
1595
1596 * ui-out.h (enum class ui_out_style_kind): Remove.
1597 (class ui_out) <field_string, field_stsream, do_field_string>:
1598 Change type of "style".
1599 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1600 (ui_out::field_string): Update.
1601 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1602 of "style".
1603 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1604 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1605 * stack.c (print_frame_arg, print_frame_info, print_frame):
1606 Update.
1607 * source.c (print_source_lines_base): Update.
1608 * solib.c (info_sharedlibrary_command): Update.
1609 * skip.c (info_skip_command): Update.
1610 * record-btrace.c (btrace_call_history_src_line)
1611 (btrace_call_history): Update.
1612 * python/py-framefilter.c (py_print_frame): Update.
1613 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1614 "style".
1615 * mi/mi-out.c (mi_ui_out::do_table_header)
1616 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1617 (mi_ui_out::do_field_string): Update.
1618 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1619 Update.
1620 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1621 "style".
1622 * cli-out.c (cli_ui_out::do_table_header)
1623 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1624 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1625 (cli_ui_out::do_field_fmt): Update.
1626 * breakpoint.c (print_breakpoint_location): Update.
1627 (update_static_tracepoint): Update.
1628
1629 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1630
1631 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1632 conversion of gdb_datadir.
1633 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1634 remove not needed c_str ().
1635
1636 2019-09-30 Ali Tamur <tamur@google.com>
1637
1638 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1639 (dwarf2_string_attr): Likewise.
1640
1641 2019-09-30 Ali Tamur <tamur@google.com>
1642
1643 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1644 (process_full_type_unit): Likewise.
1645 (dump_die_shallow): Likewise.
1646 (cu_debug_loc_section): Likewise.
1647
1648 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1649
1650 * minsyms.c (compare_minimal_symbols): Rename to...
1651 (minimal_symbol_is_less_than): ...this, and adjust to STL
1652 conventions (return bool, take arguments as references)
1653 (minimal_symbol_reader::install): Call std::sort instead
1654 of qsort.
1655
1656 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1657
1658 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1659 hash and why.
1660 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1661 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1662
1663 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1666 * psympriv.h (add_psymbol_to_list): Move comment here and update
1667 it.
1668
1669 2019-09-29 Tom de Vries <tdevries@suse.de>
1670
1671 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1672 Use $tmpdir/$(basename "$output_file").dwz instead of
1673 "${output_file}.dwz".
1674
1675 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 PR gdb/25045
1678 * hppa-linux-nat.c: Include gdbarch.h.
1679
1680 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1681
1682 * blockframe.c (find_pc_partial_function): Change return type to bool.
1683 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1684 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1685 (stub_gnu_ifunc_resolve_name): Likewise.
1686 * symtab.c (compare_filenames_for_search): Likewise.
1687 (compare_glob_filenames_for_search): Likewise.
1688 (matching_obj_sections): Likewise.
1689 (symbol_matches_domain): Likewise.
1690 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1691 (find_line_pc): Change return type to bool.
1692 (find_line_pc_range): Likewise.
1693 (producer_is_realview): Likewise.
1694 * symtab.h (symbol_matches_domain): Likewise.
1695 (find_pc_partial_function): Likewise.
1696 (find_pc_line_pc_range): Likewise.
1697 (in_gnu_ifunc_stub): Likewise.
1698 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1699 (find_line_pc): Likewise.
1700 (find_line_pc_range): Likewise.
1701 (matching_obj_sections): Likewise.
1702 (find_line_symtab): Change out parameter to bool.
1703 (producer_is_realview): Change return type to bool.
1704 (compare_filenames_for_search): Likewise.
1705 (compare_glob_filenames_for_search): Likewise.
1706
1707 2019-09-26 Tom Tromey <tom@tromey.com>
1708
1709 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1710 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1711 * gdb_usleep.h: Remove.
1712 * gdb_usleep.c: Remove.
1713 * utils.c: Don't include gdb_usleep.h.
1714
1715 2019-09-26 Tom Tromey <tromey@adacore.com>
1716
1717 * python/py-type.c (type_to_type_object): Call check_typedef
1718 for stub types.
1719
1720 2019-09-26 Tom Tromey <tom@tromey.com>
1721
1722 * utils.h (initialize_utils): Don't declare.
1723 * top.c (gdb_init): Don't call initialize_utils.
1724 * utils.c (initialize_utils): Remove. Move contents...
1725 (_initialize_utils): ... here.
1726
1727 2019-09-25 Tom Tromey <tom@tromey.com>
1728
1729 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1730 * utils.h (make_hex_string): Don't declare.
1731 * utils.c (make_hex_string): Remove.
1732
1733 2019-09-24 Tom de Vries <tdevries@suse.de>
1734
1735 PR gdb/23815
1736 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1737 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1738
1739 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1740
1741 * NEWS: Mention new simulator port for PRU.
1742
1743 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1744
1745 * ada-exp.y (write_object_remaining): Update.
1746 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1747 and eliminate the static buffer.
1748 (ada_decode_symbol): Update.
1749 (ada_la_decode): Update.
1750 (ada_sniff_from_mangled_name): Update.
1751 (is_valid_name_for_wild_match): Update.
1752 (ada_lookup_name_info::matches): Update and simplify.
1753 (name_matches_regex): Update.
1754 (ada_add_global_exceptions): Update.
1755 * ada-lang.h (ada_decode): Update signature.
1756 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1757 * dwarf-index-write.c (debug_names::insert): Update.
1758
1759 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1762 formatting.
1763
1764 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1767 Change "nonzero" to "true" in documentation.
1768
1769 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1770
1771 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1772 (_initialize_darwin_solib): Don't set
1773 darwin_so_ops.lookup_lib_global_symbol.
1774 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1775 set_gdbarch_iterate_over_objfiles_in_search_order.
1776 (elf_lookup_lib_symbol): Rename to...
1777 (svr4_iterate_over_objfiles_in_search_order): this, and update
1778 to iterate semantics.
1779 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1780 * solib.c (solib_global_lookup): Remove.
1781 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1782 (solib_global_lookup): Remove.
1783 * symtab.c (lookup_global_or_static_symbol): Remove call to
1784 solib_global_lookup.
1785
1786 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1787
1788 * NEWS: Move entries about default MI version now being
1789 version 3, and about the GDB/MI fix for multi-location
1790 breakpoints to the "since GDB 8.3" section.
1791
1792 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1793
1794 GDB 8.3.1 released.
1795
1796 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1797
1798 * NEWS: Mention that Cell/B.E. debugging support was removed.
1799 * MAINTAINERS: Remove spu target.
1800
1801 * config/djgpp/fnchange.lst: Remove entries for removed files.
1802
1803 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1804 spu-multiarch.o, and spu-tdep.o.
1805 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1806 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1807 spu-multiarch.c, and spu-tdep.c.
1808 * spu-linux-nat.c: Remove file.
1809 * spu-multiarch.c: Remove file.
1810 * spu-tdep.c: Remove file.
1811 * spu-tdep.h: Remove file.
1812 * solib-spu.c: Remove file.
1813 * solib-spu.h: Remove file.
1814
1815 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1816 * configure.nat (spu-linux): Remove.
1817 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1818 solib-multiarch.o from gdb_target_obs.
1819 (spu*-*-*): Remove.
1820
1821 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1822 feature flag.
1823 (ppc_linux_no_features): Update.
1824 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1825 Cell/B.E. support.
1826 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1827 (tdesc_powerpc_cell64l): Likewise.
1828 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1829 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1830 Cell/B.E. support.
1831 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1832 Do not include "features/rs6000/powerpc-cell32l.c" or
1833 "features/rs6000/powerpc-cell64l.c".
1834 (ppc_linux_spu_section): Remove.
1835 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1836 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1837 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1838 (ppc_linux_spe_context_lookup): Remove.
1839 (ppc_linux_spe_context_inferior_created): Remove.
1840 (ppc_linux_spe_context_solib_loaded): Remove.
1841 (ppc_linux_spe_context_solib_unloaded): Remove.
1842 (ppc_linux_spe_context): Remove.
1843 (struct ppu2spu_cache): Remove.
1844 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1845 (struct ppu2spu_data): Remove.
1846 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1847 ppu2spu_unwind): Remove.
1848 (ppc_linux_init_abi): Remove Cell/B.E. support.
1849 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1850
1851 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1852 (rs6000/powerpc-cell64l-expedite): Likewise
1853 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1854 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1855 rs6000/powerpc-cell64l.xml.
1856 * features/rs6000/powerpc-cell32l.xml: Remove.
1857 * features/rs6000/powerpc-cell64l.xml: Likewise.
1858 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1859 * features/rs6000/powerpc-cell64l.c: Likewise.
1860 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1861 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1862 * regformats/reg-spu.dat: Remove.
1863
1864 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1865 * corelow.c (struct spuid_list): Remove.
1866 (add_to_spuid_list): Remove.
1867 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1868 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1869 (remote_protocol_features): Remove associated entries.
1870 (_initialize_remote): No longer initialize them.
1871 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1872 * linux-nat.c (SPUFS_MAGIC): Remove.
1873 (linux_proc_xfer_spu): Remove.
1874 (spu_enumerate_spu_ids): Remove.
1875 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1876 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1877 (linux_make_corefile_notes): No longer call it.
1878
1879 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1880 (cooked_write_test): Likewise.
1881
1882 2019-09-20 Tom Tromey <tom@tromey.com>
1883
1884 * NEWS: Mention case-sensitivity of TUI commands.
1885 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1886 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1887 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1888
1889 2019-09-20 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-source.c (tui_source_window::set_contents): Use
1892 make_unique_xstrdup.
1893 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1894 make_unique_xstrdup.
1895
1896 2019-09-20 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-data.c: Remove separator comments.
1899 * tui/tui-layout.c: Remove separator comments.
1900 * tui/tui-win.c: Remove separator comments.
1901 * tui/tui-wingeneral.c: Remove separator comments.
1902
1903 2019-09-20 Tom Tromey <tom@tromey.com>
1904
1905 * tui/tui.h (strcat_to_buf): Don't declare.
1906 * tui/tui.c (strcat_to_buf): Remove.
1907
1908 2019-09-20 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1911 from "fullname".
1912 * tui/tui-source.c (tui_source_window::set_contents)
1913 (tui_source_window::location_matches_p)
1914 (tui_source_window::maybe_update): Update.
1915
1916 2019-09-20 Tom Tromey <tom@tromey.com>
1917
1918 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1919 Update.
1920 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1921 prefix.
1922 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1923 (tui_data_window::line_from_reg_element_no)
1924 (tui_data_window::first_reg_element_no_inline)
1925 (tui_data_window::show_registers)
1926 (tui_data_window::show_register_group)
1927 (tui_data_window::display_registers_from)
1928 (tui_data_window::display_registers_from_line)
1929 (tui_data_window::first_data_item_displayed)
1930 (tui_data_window::delete_data_content_windows)
1931 (tui_data_window::erase_data_content)
1932 (tui_data_window::do_scroll_vertical)
1933 (tui_data_window::refresh_window)
1934 (tui_data_window::check_register_values): Update.
1935
1936 2019-09-20 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1939 (struct tui_locator_window) <full_name, proc_name>: Now
1940 std::string.
1941 * tui/tui-stack.c (tui_locator_window::make_status_line)
1942 (tui_locator_window::set_locator_fullname)
1943 (tui_locator_window::set_locator_info): Update.
1944 * tui/tui-source.c (tui_source_window::set_contents)
1945 (tui_source_window::showing_source_p): Update.
1946
1947 2019-09-20 Tom Tromey <tom@tromey.com>
1948
1949 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1950 Don't call tui_locator_win_info_ptr.
1951
1952 2019-09-20 Tom Tromey <tom@tromey.com>
1953
1954 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1955
1956 2019-09-20 Tom Tromey <tom@tromey.com>
1957
1958 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1959 height for locator.
1960 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1961 * tui/tui-layout.c (show_source_disasm_command, show_data)
1962 (show_source_or_disasm_and_command): Use 1 as height for locator.
1963
1964 2019-09-20 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui.c (tui_enable): Update.
1967 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1968 Update.
1969 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1970 Update.
1971 * tui/tui-data.c (win_resized): Now bool.
1972 (tui_win_resized): Return bool.
1973 (tui_set_win_resized_to): Accept a bool.
1974
1975 2019-09-20 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1978 Change type of "refresh_values_only".
1979 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1980 type of "refresh_values_only".
1981
1982 2019-09-20 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1985 std::string.
1986 (tui_disassemble): Add "pos" parameter.
1987 (tui_disasm_window::set_contents): Simplify.
1988
1989 2019-09-20 Tom Tromey <tom@tromey.com>
1990
1991 * tui/tui-winsource.h (struct tui_source_window_base)
1992 <show_source_content>: Now private.
1993 * tui/tui-winsource.c
1994 (tui_source_window_base::show_source_content): Don't handle empty
1995 content case.
1996
1997 2019-09-20 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-layout.c (show_source_disasm_command)
2000 (show_source_or_disasm_and_command): Don't call
2001 show_source_content.
2002
2003 2019-09-20 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2006 Declare.
2007 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2008 from tui_make_status_line.
2009 (tui_locator_window::rerender): Update.
2010
2011 2019-09-20 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2014 (tui_locator_window::rerender): Update.
2015
2016 2019-09-20 Tom Tromey <tom@tromey.com>
2017
2018 * tui/tui-winsource.h (struct tui_source_window_base)
2019 <~tui_source_window_base>: Don't declare.
2020 <fullname>: Remove.
2021 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2022 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2023 member.
2024 * tui/tui-source.c (tui_source_window::set_contents): Update.
2025 (tui_source_window::location_matches_p)
2026 (tui_source_window::maybe_update): Update.
2027
2028 2019-09-20 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-winsource.h (~tui_source_element): Remove.
2031 (tui_source_element): Update.
2032 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2033 * tui/tui-winsource.c (tui_show_source_line): Update.
2034 * tui/tui-source.c (tui_source_window::set_contents): Update.
2035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2036
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2038
2039 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2040 declare.
2041 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2042 tui_clear_source_windows_detail.
2043 * tui/tui-winsource.h (struct tui_source_window_base)
2044 <clear_detail>: Don't declare.
2045 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2046 Remove.
2047 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2048
2049 2019-09-20 Tom Tromey <tromey@adacore.com>
2050
2051 PR ada/24919:
2052 * block.c (contained_in): Fix final return value.
2053
2054 2019-09-20 Alan Modra <amodra@gmail.com>
2055
2056 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2057 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2058 (read_indirect_string_from_dwz): Use bfd accessor.
2059 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2060 * machoread.c (macho_symfile_read_all_oso): Likewise.
2061 * solib.c (solib_bfd_open): Likewise.
2062
2063 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2064
2065 * eval.c: Move declaration of overload_resolution to...
2066 * value.h: ...here.
2067
2068 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2069
2070 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2071 * arm-linux-tdep.c: Likewise.
2072 * arm-nbsd-nat.c: Likewise.
2073 * arm-tdep.h: Declare arm_apcs_32.
2074 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2075
2076 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2077
2078 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2079 * dwarf2read.h: Declare dwarf_always_disassemble.
2080
2081 2019-09-19 Tom de Vries <tdevries@suse.de>
2082
2083 PR gdb/25009
2084 * source-cache.c (source_cache::ensure): Catch exception thrown during
2085 construction of the highlighter.
2086
2087 2019-09-18 Alan Modra <amodra@gmail.com>
2088
2089 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2090 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2091 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2092 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2093 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2094 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2095 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2096 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2097 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2098 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2099 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2100 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2101 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2102 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2103 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2104 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2105 * mi/mi-interp.c: Update throughout for bfd section macro and
2106 function changes.
2107 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2108 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2109
2110 2019-09-18 Tom Tromey <tom@tromey.com>
2111
2112 * NEWS: Add entry.
2113 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2114 call rl_initialize.
2115 (tui_enable): Do not call rl_initialize.
2116
2117 2019-09-18 Christian Groessler <chris@groessler.org>
2118
2119 * alpha-linux-nat.c: Include gdbarch.h.
2120
2121 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2122
2123 * ui-file.c: Include cli/cli-style.h.
2124 (term_cli_styling): Remove cli_styling declaration.
2125
2126 2019-09-18 Alan Modra <amodra@gmail.com>
2127
2128 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2129 to bfd_asymbol_section.
2130
2131 2019-09-18 Alan Modra <amodra@gmail.com>
2132
2133 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2134 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2135 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2136
2137 2019-09-18 Alan Modra <amodra@gmail.com>
2138
2139 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2140 * spu-linux-nat.c (spu_bfd_open): Likewise.
2141
2142 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2143
2144 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2145 to bool to match definition in dwarf2read.c.
2146
2147 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2148
2149 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2150 (print_signatures): Likewise.
2151 (trust_pad_over_xvs): Likewise.
2152 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2153 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2154 * arm-linux-nat.c (arm_apcs_32): Likewise.
2155 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2156 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2157 * arm-tdep.c (arm_debug): Likewise.
2158 (arm_apcs_32): Likewise.
2159 * auto-load.c (debug_auto_load): Likewise.
2160 (auto_load_gdb_scripts): Likewise.
2161 (global_auto_load): Likewise.
2162 (auto_load_local_gdbinit): Likewise.
2163 (auto_load_local_gdbinit_loaded): Likewise.
2164 * auto-load.h (global_auto_load): Likewise.
2165 (auto_load_local_gdbinit): Likewise.
2166 (auto_load_local_gdbinit_loaded): Likewise.
2167 * breakpoint.c (disconnected_dprintf): Likewise.
2168 (breakpoint_proceeded): Likewise.
2169 (automatic_hardware_breakpoints): Likewise.
2170 (always_inserted_mode): Likewise.
2171 (target_exact_watchpoints): Likewise.
2172 (_initialize_breakpoint): Update.
2173 * breakpoint.h (target_exact_watchpoints): Change to bool.
2174 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2175 * cli/cli-cmds.c (trace_commands): Likewise.
2176 * cli/cli-cmds.h (trace_commands): Likewise.
2177 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2178 to bool*.
2179 * cli/cli-logging.c (logging_overwrite): Change to bool.
2180 (logging_redirect): Likewise.
2181 (debug_redirect): Likewise.
2182 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2183 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2184 to bool.
2185 <boolean_option_def>: Update.
2186 (struct flag_option_def): Change default type of Context to bool
2187 from int.
2188 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2189 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2190 (get_setshow_command_value_string): Likewise.
2191 * cli/cli-style.c (cli_styling): Change to bool.
2192 (source_styling): Likewise.
2193 * cli/cli-style.h (source_styling): Likewise.
2194 (cli_styling): Likewise.
2195 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2196 to bool.
2197 * command.h (var_types): Update comment.
2198 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2199 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2200 bool.
2201 (debug_compile_cplus_scopes): Likewise.
2202 * compile/compile-internal.h (compile_debug): Likewise.
2203 * compile/compile.c (compile_debug): Likewise.
2204 (struct compile_options) <raw>: Likewise.
2205 * cp-support.c (catch_demangler_crashes): Likewise.
2206 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2207 (usr_cmd_cris_dwarf2_cfi): Likewise.
2208 * csky-tdep.c (csky_debug): Likewise.
2209 * darwin-nat.c (enable_mach_exceptions): Likewise.
2210 * dcache.c (dcache_enabled_p): Likewise.
2211 * defs.h (info_verbose): Likewise.
2212 * demangle.c (demangle): Likewise.
2213 (asm_demangle): Likewise.
2214 * dwarf-index-cache.c (debug_index_cache): Likewise.
2215 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2216 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2217 * dwarf2read.c (check_physname): Likewise.
2218 (use_deprecated_index_sections): Likewise.
2219 (dwarf_always_disassemble): Likewise.
2220 * eval.c (overload_resolution): Likewise.
2221 * event-top.c (set_editing_cmd_var): Likewise.
2222 (exec_done_display_p): Likewise.
2223 * event-top.h (set_editing_cmd_var): Likewise.
2224 (exec_done_display_p): Likewise.
2225 * exec.c (write_files): Likewise.
2226 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2227 (debug_fbsd_nat): Likewise.
2228 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2229 Likewise.
2230 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2231 <backtrace_past_entry> Likewise.
2232 * gdb-demangle.h (demangle): Likewise.
2233 (asm_demangle): Likewise.
2234 * gdb_bfd.c (bfd_sharing): Likewise.
2235 * gdbcore.h (write_files): Likewise.
2236 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2237 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2238 * gdbthread.h (print_thread_events): Likewise.
2239 * gdbtypes.c (opaque_type_resolution): Likewise.
2240 (strict_type_checking): Likewise.
2241 * gnu-nat.c (gnu_debug_flag): Likewise.
2242 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2243 * guile/scm-param.c (pascm_variable): Add boolval.
2244 (add_setshow_generic): Update.
2245 (pascm_param_value): Update.
2246 (pascm_set_param_value_x): Update.
2247 * hppa-tdep.c (hppa_debug): Change to bool..
2248 * infcall.c (may_call_functions_p): Likewise.
2249 (coerce_float_to_double_p): Likewise.
2250 (unwind_on_signal_p): Likewise.
2251 (unwind_on_terminating_exception_p): Likewise.
2252 * infcmd.c (startup_with_shell): Likewise.
2253 * inferior.c (print_inferior_events): Likewise.
2254 * inferior.h (startup_with_shell): Likewise.
2255 (print_inferior_events): Likewise.
2256 * infrun.c (step_stop_if_no_debug): Likewise.
2257 (detach_fork): Likewise.
2258 (debug_displaced): Likewise.
2259 (disable_randomization): Likewise.
2260 (non_stop): Likewise.
2261 (non_stop_1): Likewise.
2262 (observer_mode): Likewise.
2263 (observer_mode_1): Likewise.
2264 (set_observer_mode): Update.
2265 (sched_multi): Change to bool.
2266 * infrun.h (debug_displaced): Likewise.
2267 (sched_multi): Likewise.
2268 (step_stop_if_no_debug): Likewise.
2269 (non_stop): Likewise.
2270 (disable_randomization): Likewise.
2271 * linux-tdep.c (use_coredump_filter): Likewise.
2272 (dump_excluded_mappings): Likewise.
2273 * linux-thread-db.c (auto_load_thread_db): Likewise.
2274 (check_thread_db_on_load): Likewise.
2275 * main.c (captured_main_1): Update.
2276 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2277 xx2_opt, boolean_opt>: Change to bool.
2278 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2279 * maint.c (maintenance_profile_p): Likewise.
2280 (per_command_time): Likewise.
2281 (per_command_space): Likewise.
2282 (per_command_symtab): Likewise.
2283 * memattr.c (inaccessible_by_default): Likewise.
2284 * mi/mi-main.c (mi_async): Likewise.
2285 (mi_async_1): Likewise.
2286 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2287 * nat/fork-inferior.h (startup_with_shell): Likewise.
2288 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2289 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2290 * nios2-tdep.c (nios2_debug): Likewise.
2291 * or1k-tdep.c (or1k_debug): Likewise.
2292 * parse.c (parser_debug): Likewise.
2293 * parser-defs.h (parser_debug): Likewise.
2294 * printcmd.c (print_symbol_filename): Likewise.
2295 * proc-api.c (procfs_trace): Likewise.
2296 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2297 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2298 (set_parameter_value): Update.
2299 (add_setshow_generic): Update.
2300 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2301 to bool*.
2302 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2303 int*.
2304 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2305 * record-btrace.c (record_btrace_target::store_registers): Update.
2306 * record-full.c (record_full_memory_query): Change to bool.
2307 (record_full_stop_at_limit): Likewise.
2308 * record-full.h (record_full_memory_query): Likewise.
2309 * remote-notif.c (notif_debug): Likewise.
2310 * remote-notif.h (notif_debug): Likewise.
2311 * remote.c (use_range_stepping): Likewise.
2312 (interrupt_on_connect): Likewise.
2313 (remote_break): Likewise.
2314 * ser-tcp.c (tcp_auto_retry): Likewise.
2315 * ser-unix.c (serial_hwflow): Likewise.
2316 * skip.c (debug_skip): Likewise.
2317 * solib-aix.c (solib_aix_debug): Likewise.
2318 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2319 (spu_auto_flush_cache_p): Likewise.
2320 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2321 Likewise.
2322 (struct info_print_options) <quiet>: Likewise.
2323 * symfile-debug.c (debug_symfile): Likewise.
2324 * symfile.c (auto_solib_add): Likewise.
2325 (separate_debug_file_debug): Likewise.
2326 * symfile.h (auto_solib_add): Likewise.
2327 (separate_debug_file_debug): Likewise.
2328 * symtab.c (basenames_may_differ): Likewise.
2329 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2330 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2331 (struct info_types_options) <quiet>: Likewise.
2332 * symtab.h (demangle): Likewise.
2333 (basenames_may_differ): Likewise.
2334 * target-dcache.c (stack_cache_enabled_1): Likewise.
2335 (code_cache_enabled_1): Likewise.
2336 * target.c (trust_readonly): Likewise.
2337 (may_write_registers): Likewise.
2338 (may_write_memory): Likewise.
2339 (may_insert_breakpoints): Likewise.
2340 (may_insert_tracepoints): Likewise.
2341 (may_insert_fast_tracepoints): Likewise.
2342 (may_stop): Likewise.
2343 (auto_connect_native_target): Likewise.
2344 (target_stop_and_wait): Update.
2345 (target_async_permitted): Change to bool.
2346 (target_async_permitted_1): Likewise.
2347 (may_write_registers_1): Likewise.
2348 (may_write_memory_1): Likewise.
2349 (may_insert_breakpoints_1): Likewise.
2350 (may_insert_tracepoints_1): Likewise.
2351 (may_insert_fast_tracepoints_1): Likewise.
2352 (may_stop_1): Likewise.
2353 * target.h (target_async_permitted): Likewise.
2354 (may_write_registers): Likewise.
2355 (may_write_memory): Likewise.
2356 (may_insert_breakpoints): Likewise.
2357 (may_insert_tracepoints): Likewise.
2358 (may_insert_fast_tracepoints): Likewise.
2359 (may_stop): Likewise.
2360 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2361 (make_thread_apply_all_options_def_group): Change argument from int*
2362 to bool*.
2363 (thread_apply_all_command): Update.
2364 (print_thread_events): Change to bool.
2365 * top.c (confirm): Likewise.
2366 (command_editing_p): Likewise.
2367 (history_expansion_p): Likewise.
2368 (write_history_p): Likewise.
2369 (info_verbose): Likewise.
2370 * top.h (confirm): Likewise.
2371 (history_expansion_p): Likewise.
2372 * tracepoint.c (disconnected_tracing): Likewise.
2373 (circular_trace_buffer): Likewise.
2374 * typeprint.c (print_methods): Likewise.
2375 (print_typedefs): Likewise.
2376 * utils.c (debug_timestamp): Likewise.
2377 (sevenbit_strings): Likewise.
2378 (pagination_enabled): Likewise.
2379 * utils.h (sevenbit_strings): Likewise.
2380 (pagination_enabled): Likewise.
2381 * valops.c (overload_resolution): Likewise.
2382 * valprint.h (struct value_print_options) <prettyformat_arrays,
2383 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2384 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2385 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2386 Likewise.
2387 * windows-nat.c (new_console): Likewise.
2388 (cygwin_exceptions): Likewise.
2389 (new_group): Likewise.
2390 (debug_exec): Likewise.
2391 (debug_events): Likewise.
2392 (debug_memory): Likewise.
2393 (debug_exceptions): Likewise.
2394 (useshell): Likewise.
2395 * windows-tdep.c (maint_display_all_tib): Likewise.
2396 * xml-support.c (debug_xml): Likewise.
2397
2398 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2399
2400 * source.c (prepare_path_for_appending): New function.
2401 (openp): Make use of new function.
2402 (find_and_open_source): Search for the compilation directory and
2403 source file as a relative path beneath the directory search path.
2404
2405 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2406
2407 * source-cache.c (source_cache::get_line_charpos): Catch
2408 exceptions and return false, this matches the behaviour documented
2409 in the header file.
2410
2411 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2412
2413 * ada-tasks.c (info_task): Remove quoting of the task's name.
2414
2415 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2416
2417 * symfile.c (auto_solib_add): Replace comment with a reference
2418 to the header file.
2419
2420 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2421
2422 * NEWS: Mention that gdb can now be compiled with Python 3
2423 on Windows.
2424
2425 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2426
2427 * maint.c (maint_print_section_data::maint_print_section_data):
2428 Force use of 'float log10 (float)' by casting the argument to
2429 float.
2430
2431 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * maint.c: Add 'cmath' include.
2434 (struct maint_print_section_data): New structure.
2435 (print_section_index): New function.
2436 (print_bfd_section_info): Add header comment, small whitespace
2437 cleanup, and update to call new print_section_index function.
2438 (print_objfile_section_info): Likewise.
2439 (maint_obj_section_from_bfd_section): New function.
2440 (print_bfd_section_info_maybe_relocated): New function.
2441 (maintenance_info_sections): Add header comment, always use
2442 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2443
2444 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2447 inner scope, add check that the objfile has psymtabs before
2448 checking psymtabs_addrmap.
2449 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2450
2451 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2452
2453 * NEWS: Announce that Ada task names are now shown at more places,
2454 and between quotes (except in info task output).
2455 * gdb/ada-tasks.c (task_to_str): New function.
2456 (display_current_task_id): Call task_to_str.
2457 (task_command_1): Likewise.
2458 (print_ada_task_info): In non-mi mode, Properly align headers and data
2459 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2460
2461 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2462
2463 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2464 prstatus.pr_lwp.pr_info instead of making it up.
2465
2466 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2467
2468 * auto-load.c (auto_load_expand_dir_vars): Update.
2469 * defs.h (gdb_datadir): Change to std::string.
2470 (python_libdir): Likewise.
2471 (relocate_gdb_directory): Change return type to std::string.
2472 * guile/guile.c (gdbscm_data_directory): Update.
2473 (initialize_scheme_side): Update.
2474 * jit.c (jit_reader_dir): Change to std::string.
2475 (jit_reader_load_command): Update.
2476 * main.c (gdb_datadir): Change to std::string.
2477 (python_libdir): Likewise.
2478 (set_gdb_data_directory): Update.
2479 (relocate_path): Change to return std::string.
2480 (relocate_gdb_directory): Change to return std::string.
2481 (relocate_gdbinit_path_maybe_in_datadir): Update.
2482 (captured_main_1): Update.
2483 * python/python.c (do_start_initialization): Update.
2484 * top.c (show_gdb_datadir): Update.
2485 * xml-syscall.c (xml_init_syscalls_info): Update.
2486 (init_syscalls_info): Update.
2487
2488 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2489
2490 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2491 out of get_init_files.
2492 (get_init_files): Update.
2493
2494 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2495
2496 * main.c (get_init_files): Change to use std::string.
2497 (captured_main_1): Update.
2498 (print_gdb_help): Update.
2499
2500 2019-09-11 Ali Tamur <tamur@google.com>
2501
2502 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2503 implementation.
2504
2505 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2506
2507 * dbxread.c (read_dbx_symtab): Update.
2508 * dwarf2read.c (load_partial_dies): Update.
2509 * mdebugread.c (parse_partial_symbols): Update.
2510 (handle_psymbol_enumerators): Update.
2511 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2512 * psymtab.c (add_psymbol_to_bcache): Likewise.
2513 (add_psymbol_to_list): Likewise.
2514 * symtab.c (symbol_set_names): Likewise.
2515 * symtab.h (symbol_set_names): Likewise.
2516 * xcoffread.c (scan_xcoff_symtab): Update.
2517
2518 2019-09-11 Tom Tromey <tom@tromey.com>
2519
2520 * symfile-mem.c (symbol_file_add_from_memory): Use
2521 bfd_set_filename.
2522 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2523 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2524
2525 2019-09-10 Tom Tromey <tromey@adacore.com>
2526
2527 * dwarf-index-write.c (write_psymbols): Extend error message.
2528 (debug_names::insert): Add Ada code.
2529 (debug_names::write_psymbols): Remove Ada check.
2530 (debug_names) <m_string_obstack>: New member.
2531 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2532 (gdb_index_symbol_name_matcher::matches): Remove.
2533 (mapped_index_base::find_name_components_bounds): Add "lang"
2534 parameter.
2535 (mapped_index_base::build_name_components): Also split names
2536 according to Ada syntax.
2537 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2538 type of "match_callback".
2539 (check_match, check_find_bounds_finds)
2540 (dw2_expand_symtabs_matching): Update.
2541 (dw2_debug_names_iterator): Add new constructor.
2542 (dw2_debug_names_map_matching_symbols): New function.
2543 (dw2_debug_names_expand_symtabs_matching): Update.
2544 (dwarf2_debug_names_functions): Use
2545 dw2_debug_names_map_matching_symbols.
2546
2547 2019-09-10 Tom Tromey <tromey@adacore.com>
2548
2549 * dwarf2read.c (dw2_get_file_names_reader): Add the
2550 CU's file name to the results.
2551
2552 2019-09-10 Tom Tromey <tromey@adacore.com>
2553
2554 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2555 map_matching_symbols. Update.
2556 * dwarf2read.c (dw2_map_matching_symbols): Update.
2557 * psymtab.c (match_partial_symbol): Change type; update.
2558 (psym_map_matching_symbols): Likewise.
2559 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2560 type; update.
2561 * symfile.h (struct quick_symbol_functions)
2562 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2563 Remove "match".
2564
2565 2019-09-10 Tom Tromey <tromey@adacore.com>
2566
2567 * psymtab.c (map_block): Remove.
2568 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2569 * symtab.c (iterate_over_symbols_terminated): New function.
2570 * symtab.c (iterate_over_symbols_terminated): Declare.
2571
2572 2019-09-10 Tom Tromey <tromey@adacore.com>
2573
2574 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2575 * language.h (struct language_defn) <la_iterate_over_symbols>:
2576 Return bool.
2577 * symtab.c (iterate_over_symbols): Return bool.
2578 * symtab.h (iterate_over_symbols): Return bool.
2579
2580 2019-09-10 Tom Tromey <tromey@adacore.com>
2581
2582 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2583 (add_nonlocal_symbols): Update.
2584 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2585 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2586 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2587 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2588 Change type of "callback". Remove "data".
2589
2590
2591 2019-09-09 Ali Tamur <tamur@google.com>
2592
2593 * dwarf2read.c (comp_unit_head): Update comment.
2594 (dwarf2_dwo_name): New function declaration.
2595 (dwarf_unit_type_name): New function declaration.
2596 (read_comp_unit_head): Add support for new compilation units,
2597 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2598 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2599 (currently named as "signature") in their header. Also clarify error
2600 messages.
2601 (lookup_dwo_id): New function. Returns the dwo id of the given
2602 compile unit.
2603 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2604 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2605 functions.
2606 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2607 (dwarf2_dwo_name): Get the dwo name if present.
2608 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2609 purposes.
2610
2611 2019-09-09 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2614
2615 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2616
2617 * python/python.c (do_start_initialization): Make progname_copy static,
2618 to avoid a leak report.
2619
2620 2019-09-08 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2623
2624 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2627 Change type to gdb::optional<block_enum>.
2628 (dw2_symtab_iter_init): Change block_index parameter type
2629 to gdb::optional<block_enum>.
2630 (dw2_lookup_symbol): Change block_index parameter
2631 type to block_enum.c
2632 (dw2_debug_names_lookup_symbol): Likewise.
2633 * psymtab.c (psym_lookup_symbol): Likewise.
2634 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2635 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2636 Likewise.
2637
2638 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2639
2640 * defs.h (relocate_gdb_directory): Change int to bool in
2641 signature and rename flag to relocatable.
2642 * main.c (relocate_path): Likewise.
2643 (relocate_gdb_directory): Likewise.
2644
2645 2019-09-06 Alan Modra <amodra@gmail.com>
2646
2647 * coffread.c (coff_symfile_read): Constify filename variable.
2648 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2649 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2650 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2651 * solib.c (reload_shared_libraries_1): Likewise.
2652 * symfile.c (reread_symbols): Likewise.
2653 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2654 * solib-darwin.c (darwin_bfd_open): Likewise.
2655 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2656
2657 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2660 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2661
2662 2019-09-03 Tom Tromey <tromey@adacore.com>
2663
2664 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2665 types.
2666 (has_negatives): Unbias a range type bound.
2667 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2668 * gdbtypes.c (operator==): Handle new field.
2669 (create_range_type): Add "bias" parameter.
2670 (create_static_range_type, resolve_dynamic_range): Update.
2671 * gdbtypes.h (struct range_bounds) <bias>: New member.
2672 (create_range_type): Add bias parameter.
2673 * printcmd.c (print_scalar_formatted): Unbias range types.
2674 * value.c (unpack_long): Unbias range types.
2675 (pack_long): Bias range types.
2676
2677 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2678
2679 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2680 probe arguments.
2681
2682 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2683
2684 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2685 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2686 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2687 (compile_probe_arg): Likewise.
2688 * probe.h (get_argument_count): Likewise.
2689 * solib-svr4.c (solib_event_probe_action): Likewise.
2690 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2691
2692 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2693
2694 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2695 code to here...
2696 (svr4_create_solib_event_breakpoints): ...from here.
2697
2698 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2699
2700 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2701 suffix from warning message.
2702
2703 2019-08-30 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-winsource.h (struct tui_source_window_base)
2706 <refresh_all>: Don't declare.
2707 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2708 Remove.
2709 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2710 tui_show_locator_content.
2711 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2712 declare.
2713 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2714 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2715 declare.
2716
2717 2019-08-30 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2720
2721 2019-08-30 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2724 Remove unnecessary forward declarations.
2725
2726 2019-08-30 Tom Tromey <tom@tromey.com>
2727
2728 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2729 rerender.
2730 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2731 tui_show_locator_content.
2732
2733 2019-08-30 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2736 (tui_locator_window::rerender): Rewrite using body of previous
2737 tui_show_locator_content.
2738
2739 2019-08-30 Tom Tromey <tom@tromey.com>
2740
2741 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2742 set_locator_fullname>: New methods.
2743 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2744 Rename from tui_set_locator_fullname.
2745 (tui_locator_window::set_locator_info): Rename from
2746 tui_set_locator_info. Return bool.
2747 (tui_update_locator_fullname, tui_show_frame_info): Update.
2748
2749 2019-08-30 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2752
2753 2019-08-30 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2756 call touchwin.
2757
2758 2019-08-30 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-wingeneral.c (box_win): Assume win_info and
2761 win_info->handle cannot be NULL.
2762
2763 2019-08-30 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2766 refresh_window>: Declare.
2767 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2768 resize.
2769 (tui_data_item_window::rerender): Rename from
2770 tui_display_register.
2771 (tui_data_item_window::refresh_window): New method.
2772 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2773 no-op.
2774
2775 2019-08-30 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2778 regs_column_count, current_group>: Move later. Now private.
2779 <get_current_group>: New method.
2780 * tui/tui-regs.c (tui_reg_command): Update.
2781 * tui/tui-layout.c (tui_set_layout): Update.
2782
2783 2019-08-30 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2786 (tui_data_window::rerender): Don't call
2787 check_and_display_highlight_if_needed.
2788 (tui_data_window::refresh_all): Remove call to
2789 erase_data_content.
2790
2791 2019-08-30 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2794 (tui_data_window::display_registers_from)
2795 (tui_data_window::display_reg_element_at_line)
2796 (tui_data_window::display_registers_from_line): Remove checks of
2797 "empty".
2798
2799 2019-08-30 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2802 Don't declare.
2803 * tui/tui-regs.c (tui_data_window::show_registers): Call
2804 rerender.
2805 (tui_data_window::rerender): Rename from display_all_data.
2806 (tui_data_window::rerender): Remove old implementation.
2807
2808 2019-08-30 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2811 text.
2812 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2813
2814 2019-08-29 Bernhard Wodok <barto@gmx.net>
2815 Sergio Durigan Junior <sergiodj@redhat.com>
2816
2817 PR win32/24284
2818 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2819
2820 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2823 when searching for types.
2824
2825 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2826
2827 * f-lang.c (f_language_defn): Use f_print_typedef.
2828 * f-lang.h (f_print_typedef): Declare.
2829 * f-typeprint.c (f_print_typedef): Define.
2830
2831 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2832
2833 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2834
2835 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2836
2837 * cli/cli-utils.c (info_print_options_defs): Delete.
2838 (make_info_print_options_def_group): Delete.
2839 (extract_info_print_options): Delete.
2840 (info_print_command_completer): Delete.
2841 (info_print_args_help): Add extra parameter, and optionally
2842 include text about -n flag.
2843 * cli/cli-utils.h (struct info_print_options): Delete.
2844 (extract_info_print_options): Delete declaration.
2845 (info_print_command_completer): Delete declaration.
2846 (info_print_args_help): Add extra parameter, extend header
2847 comment.
2848 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2849 search_symbols.
2850 * stack.c (struct info_print_options): New type.
2851 (info_print_options_defs): New file scoped variable.
2852 (make_info_print_options_def_group): New static function.
2853 (info_print_command_completer): New static function.
2854 (info_locals_command): Update to use new local functions.
2855 (info_args_command): Likewise.
2856 (_initialize_stack): Add extra parameter to calls to
2857 info_print_args_help.
2858 * symtab.c (search_symbols): Add extra parameter, use this to
2859 possibly excluse non-debug symbols.
2860 (symtab_symbol_info): Add extra parameter, which is passed on to
2861 search_symbols.
2862 (struct info_print_options): New type.
2863 (info_print_options_defs): New file scoped variable.
2864 (make_info_print_options_def_group): New static function.
2865 (info_print_command_completer): New static function.
2866 (info_variables_command): Update to use local functions, and pass
2867 extra parameter through to symtab_symbol_info.
2868 (info_functions_command): Likewise.
2869 (info_types_command): Pass additional argument through to
2870 symtab_symbol_info.
2871 (rbreak_command): Pass extra argument to search_symbols.
2872 (_initialize_symtab): Add extra arguments for calls to
2873 info_print_args_help, and update help text for 'info variables',
2874 'whereis', and 'info functions' commands.
2875 * symtab.h (search_symbols): Add extra argument to declaration.
2876 * NEWS: Mention new flags.
2877
2878 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2879
2880 * symtab.c (lookup_static_symbol): Call the new function (and move
2881 it down to be next to lookup_global_symbol).
2882 (struct global_sym_lookup_data): Add block_enum member and rename to...
2883 (struct global_or_static_sym_lookup_data): ...this.
2884 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2885 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2886 (lookup_symbol_global_or_static_iterator_cb): ...this.
2887 (lookup_global_or_static_symbol): New function.
2888 (lookup_global_symbol): Call new function.
2889
2890 2019-08-26 Tom de Vries <tdevries@suse.de>
2891
2892 PR c++/24852
2893 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2894 when pc_probe.prob == NULL.
2895
2896 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2899 variable symbol_linkage to symbol_linkage_.
2900
2901 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2904 represent whether the symbol is static, dynamic, or we don't
2905 know.
2906
2907 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2908
2909 * gdb/rx-tdep.c (rx_register_names): New.
2910 (rx_register_name): Delete.
2911 (rx_psw_type): Delete.
2912 (rx_fpsw_type): Delete.
2913 (rx_register_type): Delete.
2914 (rx_gdbarch_init): Convert target-descriptions.
2915 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2916 * gdb/features/Makefile: Add rx.xml.
2917 * gdb/features/rx.xml: New.
2918 * gdb/features/rx.c: Generated.
2919 * gdb/NEWS: Mention target description support.
2920
2921 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2922
2923 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2924 *slot_ptr.
2925
2926 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2927
2928 * configure.ac: Don't check for 'dlfcn.h' (moved to
2929 gdbsupport/common.m4).
2930 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2931 'gdbsupport/'.
2932 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2933 * compile/compile-c-support.c: Include
2934 'gdbsupport/gdb-dlfcn.h'.
2935 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2936 * gdb-dlfcn.c: Move to...
2937 * gdbsupport/gdb-dlfcn.c: ... here.
2938 * gdb-dlfcn.h: Move to...
2939 * gdbsupport/gdb-dlfcn.h: ... here.
2940
2941 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2942
2943 * nios2-tdep.c (struct reg_value): Improve comments. Make
2944 the offset field signed.
2945
2946 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2947
2948 * python/lib/gdb/__init__.py (_execute_file): New function.
2949 * python/python.c (python_run_simple_file): Call gdb._execute_file
2950 on Windows.
2951
2952 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2955 all uses as this was never set to anything but a zero value.
2956
2957 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2958
2959 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2960
2961 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2962
2963 * tui/tui-data.h (tui_gen_win_info): Add an =default
2964 move constructor, required by some GCC versions.
2965
2966 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2967
2968 * go32-nat.c (go32_sysinfo): Add hygon_p.
2969
2970 2019-08-20 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2973 line_from_reg_element_no, first_reg_element_no_inline,
2974 display_all_data, delete_data_content_windows,
2975 erase_data_content>: Now private.
2976
2977 2019-08-20 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2980 (tui_unhighlight_win, tui_highlight_win)
2981 (tui_win_info::make_window): Update.
2982 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2983
2984 2019-08-20 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2987 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2988 (MAX_PID_WIDTH): Move to tui-stack.c.
2989 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2990 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2991 (MAX_PID_WIDTH): Move from tui-data.h.
2992
2993 2019-08-20 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2996 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2997 (box_win): Update.
2998 (tui_gen_win_info::make_window): Rename from tui_make_window.
2999 (tui_win_info::make_window): New method.
3000 (tui_gen_win_info::make_visible): Update.
3001 * tui/tui-source.c (tui_source_window::set_contents): Update.
3002 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3003 (tui_data_window::display_registers_from): Update.
3004 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3005 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3006 Declare.
3007 <can_box>: Remove.
3008 <title>: Remove.
3009 (struct tui_win_info) <make_window>: Declare.
3010 <can_box>: Now virtual.
3011 <title>: New member.
3012 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3013 * tui/tui-command.c (tui_cmd_window::resize): Update.
3014
3015 2019-08-20 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3018 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3019 (tui_data_window::check_register_values): Update.
3020
3021 2019-08-20 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-regs.h (struct tui_data_window): Use
3024 DISABLE_COPY_AND_ASSIGN.
3025 <regs_content>: Change type, removing unique_ptr.
3026 <tui_data_window>: Add move constructor.
3027 * tui/tui-regs.c (tui_data_window::show_registers)
3028 (tui_data_window::show_register_group)
3029 (tui_data_window::display_registers_from)
3030 (tui_data_window::display_registers_from)
3031 (tui_data_window::first_data_item_displayed)
3032 (tui_data_window::delete_data_content_windows)
3033 (tui_data_window::rerender, tui_data_window::refresh_window)
3034 (tui_data_window::check_register_values): Update.
3035
3036 2019-08-20 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3039 show_register_group>: Declare.
3040 (tui_show_register_group): Don't declare.
3041 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3042 tui_show_registers.
3043 (tui_data_window::show_register_group): Rename from
3044 tui_show_register_group.
3045 (tui_data_window::check_register_values, tui_reg_command):
3046 Update.
3047 * tui/tui-layout.c (tui_set_layout): Update.
3048
3049 2019-08-20 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3052 Declare.
3053 (tui_check_register_values): Don't declare.
3054 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3055 from tui_check_register_values.
3056 * tui/tui-hooks.c (tui_register_changed): Update.
3057
3058 2019-08-20 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-regs.c (tui_reg_layout): Move later.
3061 (tui_show_registers): Don't enable TUI mode or change layout.
3062
3063 2019-08-20 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-regs.h (struct tui_data_item_window)
3066 <~tui_data_item_window>: Remove.
3067 <content>: Now a unique_xmalloc_ptr.
3068 * tui/tui-regs.c (tui_register_format): Return a
3069 unique_xmalloc_ptr.
3070 (tui_get_register): Update.
3071 (~tui_data_item_window): Remove.
3072 (tui_data_window::display_registers_from, tui_display_register):
3073 Update.
3074 * tui/tui-io.h (tui_expand_tabs): Update.
3075 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3076 Remove "col" parameter.
3077
3078 2019-08-20 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3081 field.
3082 * tui/tui-regs.c (~tui_data_item_window): Update.
3083
3084 2019-08-20 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3087 earlier.
3088
3089 2019-08-20 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3092
3093 2019-08-20 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-source.h (struct tui_source_window): Update.
3096 * tui/tui-regs.c (tui_show_registers): Update.
3097 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3098 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3099 (NO_REGS_STRING): Remove defines.
3100
3101 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3102
3103 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3104 unnecessary thread walk if remote doesn't support the packet.
3105
3106 2019-08-19 Tom Tromey <tromey@adacore.com>
3107
3108 * python/py-value.c (value_has_field): Fix indentation.
3109
3110 2019-08-19 Tom Tromey <tromey@adacore.com>
3111
3112 * printcmd.c (do_one_display, info_display_command): Update.
3113 * block.h (contained_in): Return bool. Add allow_nested
3114 parameter.
3115 * block.c (contained_in): Return bool. Add allow_nested
3116 parameter.
3117
3118 2019-08-19 Tom Tromey <tom@tromey.com>
3119
3120 * configure: Rebuild.
3121 * configure.ac: Disallow the combination of -static-libstdc++ and
3122 source highlight.
3123 * source-cache.c (get_language_name): Handle rust.
3124 (source_cache::get_source_lines): Ignore highlighting exceptions.
3125
3126 2019-08-16 Tom Tromey <tom@tromey.com>
3127
3128 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3129 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3130 (struct tui_source_window_base) <make_visible, refresh_window,
3131 resize>: Remove methods.
3132 <execution_info>: Remove field.
3133 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3134 (tui_show_source_line, tui_source_window_base)
3135 (~tui_source_window_base): Update.
3136 (tui_source_window_base::resize)
3137 (tui_source_window_base::make_visible)
3138 (tui_source_window_base::refresh_window): Remove.
3139 (tui_source_window_base::update_exec_info): Update.
3140 * tui/tui-source.c (tui_source_window::set_contents): Update.
3141 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3142
3143 2019-08-16 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3146 deprecated_query_hook.
3147
3148 2019-08-16 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3151 (tui_update_source_windows_with_line): Update.
3152 * tui/tui-source.h (struct tui_source_window)
3153 <show_symtab_source>: Declare.
3154 (tui_show_symtab_source): Don't declare.
3155 * tui/tui-source.c (tui_show_symtab_source): Rename from
3156 tui_show_symtab_source.
3157
3158 2019-08-16 Tom Tromey <tom@tromey.com>
3159
3160 * tui/tui-winsource.h (struct tui_source_window_base)
3161 <set_contents>: Declare.
3162 * tui/tui-winsource.c
3163 (tui_source_window_base::update_source_window_as_is): Update.
3164 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3165 Declare.
3166 (tui_set_source_content): Don't declare.
3167 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3168 tui_set_source_content.
3169 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3170 Declare.
3171 (tui_set_disassem_content): Don't declare.
3172 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3173 tui_set_disassem_content.
3174
3175 2019-08-16 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <update_breakpoint_info>: Declare.
3179 (tui_update_breakpoint_info): Don't declare.
3180 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3181 (tui_update_all_breakpoint_info): Update.
3182 (tui_source_window_base::update_breakpoint_info): Rename from
3183 tui_update_breakpoint_info.
3184 (tui_source_window_base::update_exec_info): Update.
3185
3186 2019-08-16 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-winsource.h (struct tui_source_window_base)
3189 <update_source_window>: Declare.
3190 (tui_update_source_window): Don't declare.
3191 * tui/tui-winsource.c
3192 (tui_source_window_base::update_source_window): Rename from
3193 tui_update_source_window.
3194 (tui_source_window_base::rerender): Update.
3195 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3196 * tui/tui-disasm.c (tui_show_disassem)
3197 (tui_show_disassem_and_update_source)
3198 (tui_disasm_window::maybe_update): Update.
3199
3200 2019-08-16 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-winsource.h (struct tui_source_window_base)
3203 <update_source_window_as_is>: Declare.
3204 (tui_update_source_window_as_is): Don't declare.
3205 * tui/tui-winsource.c (tui_update_source_window): Update
3206 (tui_source_window_base::update_source_window_as_is): Rename from
3207 tui_update_source_window_as_is.
3208 (tui_source_window_base::refill): Update.
3209 * tui/tui-source.c (tui_show_symtab_source): Update.
3210 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3211 Update.
3212
3213 2019-08-16 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-winsource.h (tui_update_source_window)
3216 (tui_update_source_window_as_is): Remove "noerror" parameter.
3217 * tui/tui-winsource.c (tui_update_source_window)
3218 (tui_update_source_window_as_is): Remove "noerror" parameter.
3219 (tui_update_source_windows_with_addr)
3220 (tui_update_source_windows_with_line)
3221 (tui_source_window_base::rerender)
3222 (tui_source_window_base::refill): Update.
3223 * tui/tui-source.h (tui_set_source_content)
3224 (tui_show_symtab_source): Remove "noerror" parameter.
3225 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3226 parameter.
3227 (tui_show_symtab_source): Likewise.
3228 (tui_source_window::maybe_update): Update.
3229 * tui/tui-disasm.c (tui_show_disassem)
3230 (tui_show_disassem_and_update_source)
3231 (tui_disasm_window::do_scroll_vertical)
3232 (tui_disasm_window::maybe_update): Update.
3233
3234 2019-08-16 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui.c (tui_is_window_visible): Update.
3237 * tui/tui-wingeneral.c (tui_make_window)
3238 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3239 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3240 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3241 (tui_set_win_height_command, parse_scrolling_args): Update.
3242 * tui/tui-source.c (tui_source_window::style_changed): Update.
3243 * tui/tui-regs.c (tui_show_registers)
3244 (tui_data_window::first_data_item_displayed)
3245 (tui_data_window::delete_data_content_windows)
3246 (tui_check_register_values, tui_reg_command): Update.
3247 * tui/tui-disasm.c (tui_show_disassem): Update.
3248 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3249 method.
3250 <is_visible>: Remove field.
3251 * tui/tui-data.c (tui_next_win, tui_prev_win)
3252 (tui_delete_invisible_windows): Update.
3253
3254 2019-08-16 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-winsource.h (struct tui_source_window_base)
3257 <m_has_locator>: Remove.
3258 * tui/tui-layout.c (show_source_disasm_command, show_data)
3259 (show_source_or_disasm_and_command): Update.
3260
3261 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3262
3263 * NEWS (Other MI changes): New subsection.
3264 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3265 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3266 * arch-utils.c (default_get_pc_address_flags): New function.
3267 * arch-utils.h (default_get_pc_address_flags): New declaration.
3268 * gdbarch.sh: Add get_pc_address_flags.
3269 * gdbarch.c: Regenerate.
3270 * gdbarch.h: Likewise.
3271 * stack.c (print_pc): New function.
3272 (print_frame_info) (print_frame): Call print_pc.
3273
3274 2019-08-16 Tom de Vries <tdevries@suse.de>
3275
3276 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3277 print_objfile_section_info.
3278
3279 2019-08-15 Tom Tromey <tom@tromey.com>
3280
3281 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3282 calling update_cmdwin_start_line.
3283 * tui/tui-winsource.h (struct tui_source_window_base)
3284 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3285 <rerender>: Declare.
3286 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3287 Call rerender.
3288 (tui_source_window_base::set_new_height): Remove.
3289 (tui_source_window_base::rerender): Rename from
3290 do_make_visible_with_new_height.
3291 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3292 resize method.
3293 (tui_win_info::make_invisible_and_set_new_height)
3294 (tui_win_info::make_visible_with_new_height): Remove.
3295 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3296 Declare.
3297 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3298 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3299 do_make_visible_with_new_height>: Don't declare.
3300 <rerender>: Declare.
3301 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3302 set_new_height.
3303 (tui_data_window::do_make_visible_with_new_height): Remove.
3304 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3305 call tui_show_locator_content.
3306 (tui_gen_win_info::resize): Call rerender.
3307 (show_source_or_disasm_and_command): Don't call
3308 tui_show_locator_content.
3309 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3310 method.
3311 (struct tui_win_info) <rerender>: Declare.
3312 <set_new_height, make_invisible_and_set_new_height,
3313 make_visible_with_new_height>: Don't declare.
3314 * tui/tui-data.c (tui_win_list::rerender): New method.
3315 * tui/tui-command.h (struct tui_cmd_window)
3316 <do_make_visible_with_new_height>: Don't declare.
3317 * tui/tui-command.c
3318 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3319
3320 2019-08-15 Tom Tromey <tromey@adacore.com>
3321
3322 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3323 * ada-lang.c (ada_enum_name): Likewise.
3324
3325 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3326
3327 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3328 leading underscore.
3329 (GdbOutputErrorFile): Likewise.
3330 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3331 accordingly.
3332 (execute_unwinders): Rename to have a leading underscore.
3333 (auto_load_packages): Likewise.
3334 (global scope): Adjust call to auto_load_packages accordingly.
3335 (GdbSetPythonDirectory): Likewise.
3336 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3337 instead of execute_unwinders.
3338
3339 2019-08-15 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3342 (show_data): Don't change window visibility.
3343 (tui_gen_win_info::resize): Remove special case for command
3344 window. Use wresize, when available.
3345 (show_source_or_disasm_and_command): Don't change window
3346 visibility.
3347 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3348 <make_visible>: New method.
3349 * tui/tui-command.c (tui_cmd_window::resize): New method.
3350
3351 2019-08-15 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3354 (struct tui_source_windows): New.
3355 * tui/tui-winsource.c (tui_display_main): Update.
3356 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3357 (new_height_ok, parse_scrolling_args): Update.
3358 * tui/tui-layout.c (show_layout, show_data): Update.
3359 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3360 (tui_add_to_source_windows): Don't declare.
3361 * tui/tui-data.c (source_windows, tui_source_windows)
3362 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3363
3364 2019-08-15 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3367 Rename from reset.
3368 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3369 * tui/tui-layout.c (show_source_disasm_command, show_data):
3370 Update.
3371 (tui_gen_win_info::resize): Rename.
3372 (show_source_or_disasm_and_command): Update.
3373 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3374 reset.
3375
3376 2019-08-15 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3379 * tui/tui-interp.c (tui_interp::init): Don't call
3380 tui_initialize_static_data.
3381 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3382
3383 2019-08-15 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3386 examine tui_win_list.
3387
3388 2019-08-15 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3391 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3392 tui_clear_source_content.
3393 (tui_clear_source_content): Remove.
3394 (tui_source_window_base::do_erase_source_content): Hoist call to
3395 content.clear().
3396 * tui/tui-stack.c (tui_show_frame_info): Don't call
3397 tui_clear_source_content.
3398
3399 2019-08-15 Tom Tromey <tom@tromey.com>
3400
3401 * tui/tui-winsource.h (struct tui_source_window_base)
3402 <do_erase_source_content>: New method.
3403 <erase_source_content>: New method.
3404 (tui_erase_source_content): Don't declare.
3405 * tui/tui-winsource.c (tui_clear_source_content): Update.
3406 (tui_source_window_base::do_erase_source_content): Rename from
3407 tui_erase_source_content.
3408 (tui_source_window_base::show_source_content): Update.
3409 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3410 * tui/tui-source.h (struct tui_source_window)
3411 <erase_source_content>: New method.
3412 * tui/tui-disasm.h (struct tui_disasm_window)
3413 <erase_source_content>: New method.
3414
3415 2019-08-15 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3418 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3419 constructor.
3420 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3421 * tui/tui-source.c (tui_set_source_content): Update.
3422 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3423
3424 2019-08-15 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3427 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3428 tui-source.c.
3429 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3430 Declare.
3431 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3432 method.
3433 (tui_source_window::maybe_update): Update.
3434
3435 2019-08-15 Tom Tromey <tom@tromey.com>
3436
3437 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3438 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3439 tui-disasm.c.
3440 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3441 Declare.
3442 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3443 method.
3444 (tui_disasm_window::maybe_update): Update.
3445
3446 2019-08-15 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-winsource.h (struct tui_source_window_base)
3449 <maybe_update>: Declare.
3450 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3451 method.
3452 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3453 Declare.
3454 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3455 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3456 Declare.
3457 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3458
3459 2019-08-15 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3462
3463 2019-08-15 Tom Tromey <tom@tromey.com>
3464
3465 * tui/tui-wingeneral.c: Include tui-stack.h.
3466 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3467 (struct tui_locator_window): Move from tui-data.h.
3468 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3469 (tui_initialize_static_data): Move from tui-data.c.
3470 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3471 (struct tui_locator_window): Move to tui-stack.c.
3472 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3473 (tui_initialize_static_data): Move to tui-stack.c.
3474
3475 2019-08-15 Tom Tromey <tom@tromey.com>
3476
3477 * tui/tui-layout.c (show_source_disasm_command)
3478 (show_source_or_disasm_and_command): Use make_visible method, not
3479 tui_make_window.
3480 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3481 Remove.
3482
3483 2019-08-15 Tom Tromey <tom@tromey.com>
3484
3485 * tui/tui-wingeneral.h (tui_make_window): Update.
3486 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3487 parameter.
3488 (tui_gen_win_info::make_visible): Update.
3489 * tui/tui-regs.c (tui_data_window::display_registers_from):
3490 Update.
3491 * tui/tui-layout.c (show_source_disasm_command)
3492 (show_source_or_disasm_and_command): Update.
3493 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3494 (enum tui_box): Remove.
3495 (struct tui_win_info) <can_box>: New method.
3496 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3497 method.
3498
3499 2019-08-15 Tom de Vries <tdevries@suse.de>
3500
3501 * linux-nat-trad.c: Include gdbarch.h.
3502
3503 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3504
3505 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3506 register sizes.
3507
3508 2019-08-14 Tom Tromey <tromey@adacore.com>
3509
3510 * darwin-nat.c: Include gdbarch.h.
3511 * darwin-nat-info.c: Include gdbarch.h.
3512
3513 2019-08-13 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3516 Remove.
3517 * tui/tui-data.c (tui_initialize_static_data): Update.
3518
3519 2019-08-13 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-winsource.h (struct tui_exec_info_window)
3522 <~tui_exec_info_window, maybe_allocate_content, get_content,
3523 m_content>: Remove.
3524 (struct tui_source_window_base) <set_exec_info_content,
3525 show_exec_info_content>: Don't declare.
3526 * tui/tui-winsource.c
3527 (tui_exec_info_window::maybe_allocate_content): Remove.
3528 (tui_source_window_base::update_exec_info): Rename from
3529 set_exec_info_content.
3530 (tui_source_window_base::show_exec_info_content)
3531 (tui_source_window_base::update_exec_info): Remove.
3532
3533 2019-08-13 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3536 declare.
3537 * tui/tui-winsource.c (tui_update_source_window_as_is)
3538 (tui_update_source_windows_with_addr, tui_erase_source_content):
3539 Update.
3540 (tui_clear_exec_info_content): Remove.
3541
3542 2019-08-13 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3545 declare.
3546 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3547 call tui_erase_exec_info_content.
3548 (tui_clear_exec_info_content): Rename from
3549 tui_erase_exec_info_content.
3550 (tui_clear_exec_info_content): Delete.
3551
3552 2019-08-13 Tom Tromey <tom@tromey.com>
3553
3554 * tui/tui-winsource.h (struct tui_source_window_base)
3555 <show_exec_info_content>: Declare.
3556 (tui_show_exec_info_content): Don't declare.
3557 * tui/tui-winsource.c
3558 (tui_source_window_base::show_exec_info_content): Rename from
3559 tui_show_exec_info_content.
3560 (tui_source_window_base::update_exec_info): Update.
3561
3562 2019-08-13 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3565 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3566 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3567 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3568 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3569 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3570 ... here.
3571
3572 2019-08-13 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-winsource.h (struct tui_source_window_base)
3575 <update_exec_info>: Declare.
3576 (tui_update_exec_info): Don't declare.
3577 * tui/tui-winsource.c (tui_update_source_window_as_is)
3578 (tui_source_window_base::refresh_all)
3579 (tui_update_all_breakpoint_info): Update.
3580 (tui_source_window_base::update_exec_info): Rename from
3581 tui_update_exec_info.
3582 * tui/tui-stack.c (tui_show_frame_info): Update.
3583
3584 2019-08-13 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-winsource.h (struct tui_source_window_base)
3587 <set_exec_info_content>: Declare.
3588 (tui_set_exec_info_content): Don't declare.
3589 * tui/tui-winsource.c
3590 (tui_source_window_base::set_exec_info_content): Rename from
3591 tui_set_exec_info_content.
3592 (tui_update_exec_info): Update.
3593
3594 2019-08-13 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-winsource.h (struct tui_source_window_base)
3597 <show_source_content>: Declare.
3598 (tui_show_source_content): Don't declare.
3599 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3600 (tui_source_window_base::show_source_content): Rename from
3601 tui_show_source_content.
3602 (tui_source_window_base::refresh_all): Update.
3603 * tui/tui-layout.c (show_source_disasm_command)
3604 (show_source_or_disasm_and_command): Update.
3605
3606 2019-08-13 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui-winsource.c (tui_erase_source_content)
3609 (tui_show_source_content, tui_source_window_base::refresh_all):
3610 Update.
3611 * tui/tui-wingeneral.h
3612 (tui_check_and_display_highlight_if_needed): Don't declare.
3613 * tui/tui-wingeneral.c
3614 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3615 check_and_display_highlight_if_needed.
3616 * tui/tui-win.c (tui_rehighlight_all)
3617 (tui_win_info::make_visible_with_new_height): Update.
3618 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3619 (tui_data_window::erase_data_content)
3620 (tui_data_window::display_all_data): Update.
3621 * tui/tui-data.h (struct tui_win_info)
3622 <check_and_display_highlight_if_needed>: Declare.
3623
3624 2019-08-13 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-win.c (tui_resize_all): Call
3627 tui_delete_invisible_windows.
3628 * tui/tui-layout.c (show_layout): Call
3629 tui_delete_invisible_windows.
3630 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3631 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3632
3633 2019-08-13 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3636 tui_add_win_to_layout.
3637
3638 2019-08-13 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3641 * tui/tui-layout.c (tui_default_win_height): Now static.
3642
3643 2019-08-13 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3646 single switch.
3647 (show_source_disasm_command, show_source_or_disasm_and_command):
3648 Don't check current layout.
3649
3650 2019-08-13 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-wingeneral.c (make_all_visible): Remove.
3653 (tui_make_all_invisible): Simplify.
3654 * tui/tui-layout.c (tui_make_all_invisible): Move from
3655 tui-wingeneral.c; simplify.
3656 (show_layout): Hoist call to tui_make_all_invisible.
3657 (show_data): Don't call tui_make_all_invisible.
3658
3659 2019-08-13 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3662 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3663
3664 2019-08-13 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3667 tui-data.c.
3668 (show_source_disasm_command, show_data)
3669 (show_source_or_disasm_and_command): Don't use
3670 tui_set_current_layout_to.
3671 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3672 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3673 tui-layout.c.
3674 (tui_set_current_layout_to): Remove.
3675
3676 2019-08-13 Tom Tromey <tom@tromey.com>
3677
3678 * tui/tui-layout.c (tui_set_layout): Update.
3679 * tui/tui-data.h (struct tui_layout_def): Remove.
3680 (tui_layout_def): Don't declare.
3681 * tui/tui-data.c (layout_def): Remove.
3682 (tui_layout_def): Remove.
3683
3684 2019-08-13 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-winsource.h (struct tui_source_window_base)
3687 <clear_detail>: No longer "override".
3688 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3689 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3690 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3691 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3692 Remove.
3693 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3694
3695 2019-08-13 Tom Tromey <tromey@adacore.com>
3696
3697 * tracepoint.c: Don't include readline.h or history.h.
3698
3699 2019-08-12 Tom Tromey <tom@tromey.com>
3700
3701 * configure: Rebuild.
3702 * configure.ac: Check for readline 7.
3703 * NEWS: Mention readline 7 requirement.
3704 * README: Update.
3705
3706 2019-08-12 Tom Tromey <tom@tromey.com>
3707
3708 * mingw-hdep.c (gdb_select): Remove readline hack.
3709
3710 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3711
3712 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3713 when the function fails.
3714
3715 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3716
3717 * s390-tdep.c (s390_type_align): New function.
3718 (s390_gdbarch_init): Set it as type_align gdbarch method.
3719
3720 2019-08-09 Tom de Vries <tdevries@suse.de>
3721
3722 PR gdb/24591
3723 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3724 pc_low with relocation offset.
3725
3726 2019-08-07 Tom Tromey <tromey@adacore.com>
3727
3728 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3729 (print_frame_args): Update.
3730 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3731 Update.
3732 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3733 * frame.h (struct frame_arg): Add initializers.
3734 <error>: Now a unique_xmalloc_ptr.
3735
3736 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3737
3738 * NEWS: Expand the Pointer Authentication entry.
3739 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3740 (aarch64_frame_unmask_lr): ... to this.
3741 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3742 Call aarch64_frame_unmask_lr.
3743 * frame.c (struct frame_info): Add "masked" variable.
3744 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3745 (fprint_frame): Check for masked pc.
3746 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3747 declarations.
3748 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3749 * stack.c (print_frame): Check for masked pc.
3750
3751 2019-08-06 Tom Tromey <tom@tromey.com>
3752
3753 * stabsread.c (patch_block_stabs, read_one_struct_field)
3754 (read_enum_type): Use obstack_strndup.
3755 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3756 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3757 * dwarf2read.c (guess_full_die_structure_name)
3758 (anonymous_struct_prefix): Use obstack_strndup.
3759 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3760 * c-exp.y (yylex): Use obstack_strndup.
3761 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3762 (write_var_or_type): Use obstack_strndup.
3763
3764 2019-08-06 Tom Tromey <tom@tromey.com>
3765
3766 * symfile.c (reread_symbols): Use obstack_strdup.
3767 * stabsread.c (read_type): Use obstack_strdup.
3768 * gdb_obstack.h (obstack_strdup): New overload.
3769 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3770 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3771 (dwarf2_canonicalize_name): Use obstack_strdup.
3772 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3773 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3774 Use obstack_strdup.
3775
3776 2019-08-06 Tom Tromey <tom@tromey.com>
3777
3778 * gdb_obstack.h (obstack_strdup): Define.
3779 * gdb_obstack.c (obstack_strdup): Don't define.
3780
3781 2019-08-06 Tom Tromey <tom@tromey.com>
3782
3783 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3784 obstack_strdup.
3785 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3786 obstack_strdup.
3787 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3788 * stabsread.c (common_block_start): Use obstack_strdup.
3789 * objfiles.c (set_objfile_main_name, objfile): Use
3790 obstack_strdup.
3791 * namespace.c (add_using_directive): Use obstack_strdup.
3792 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3793 * jit.c (finalize_symtab): Use obstack_strdup.
3794 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3795 (guess_partial_die_structure_name, partial_die_info::fixup)
3796 (dwarf2_name): Use obstack_strdup.
3797 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3798 obstack_strdup.
3799 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3800 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3801 obstack_strdup.
3802 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3803
3804 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3805
3806 * unittests/help-doc-selftests.c: New file.
3807 * Makefile.in: Add the new file.
3808
3809 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3810
3811 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3812 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3813 the full first line, except when FOR_VALUE_PREFIX. In this case,
3814 the trailing '.' is not output, and the first character is uppercased.
3815 (print_help_for_command): Update call to print_doc_line.
3816 (print_doc_of_command): Likewise.
3817 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3818 * cli/cli-option.c (append_indented_doc): Do not append newline.
3819 (build_help_option): Append newline after first appended_indented_doc
3820 only if a second call is done.
3821 (build_help): Append 2 new lines before each option, except the first
3822 one.
3823 * compile/compile.c (_initialize_compile): Add new lines after
3824 %OPTIONS%, when not at the end of the help.
3825 Change help doc or code
3826 producing the help doc to respect the invariants.
3827 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3828 Also removed the new line after 'Options:', as all other commands
3829 do not put an empty line between 'Options:' and the first option.
3830 * printcmd.c (_initialize_printcmd): Likewise.
3831 * stack.c (_initialize_stack): Likewise.
3832 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3833 incorrectly telling COMMAND is optional.
3834 * ada-lang.c (_initialize_ada_language): Change help doc or code
3835 producing the help doc to respect the invariants.
3836 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3837 * breakpoint.c (_initialize_breakpoint): Likewise.
3838 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3839 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3840 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3841 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3842 _initialize_cli_style): Likewise.
3843 * corelow.c (core_target_info): Likewise.
3844 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3845 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3846 * filesystem.c (_initialize_filesystem): Likewise.
3847 * frame.c (_initialize_frame): Likewise.
3848 * gnu-nat.c (add_task_commands): Likewise.
3849 * infcall.c (_initialize_infcall): Likewise.
3850 * infcmd.c (_initialize_infcmd): Likewise.
3851 * interps.c (_initialize_interpreter): Likewise.
3852 * language.c (_initialize_language): Likewise.
3853 * linux-fork.c (_initialize_linux_fork): Likewise.
3854 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3855 * maint.c (_initialize_maint_cmds): Likewise.
3856 * memattr.c (_initialize_mem): Likewise.
3857 * printcmd.c (_initialize_printcmd): Likewise.
3858 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3859 _RegEx): Likewise.
3860 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3861 * record-btrace.c (_initialize_record_btrace): Likewise.
3862 * record-full.c (_initialize_record_full): Likewise.
3863 * record.c (_initialize_record): Likewise.
3864 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3865 * regcache.c (_initialize_regcache): Likewise.
3866 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3867 _initialize_remote): Likewise.
3868 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3869 * serial.c (_initialize_serial): Likewise.
3870 * skip.c (_initialize_step_skip): Likewise.
3871 * source.c (_initialize_source): Likewise.
3872 * stack.c (_initialize_stack): Likewise.
3873 * symfile.c (_initialize_symfile): Likewise.
3874 * symtab.c (_initialize_symtab): Likewise.
3875 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3876 * top.c (init_main): Likewise.
3877 * tracefile-tfile.c (tfile_target_info): Likewise.
3878 * tracepoint.c (_initialize_tracepoint): Likewise.
3879 * tui/tui-win.c (_initialize_tui_win): Likewise.
3880 * utils.c (add_internal_problem_command): Likewise.
3881 * valprint.c (value_print_option_defs): Likewise.
3882
3883 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3884
3885 PR build/24886
3886 * configure.ac: Drop enable-libmcheck support.
3887 * configure, config.in: Rebuild.
3888 * libmcheck.m4: Remove.
3889 * acinclude.m4: Don't include it.
3890 * Makefile.in: Don't distribute it.
3891 * top.c (print_gdb_configuration): Don't mention it.
3892
3893 2019-08-06 Tom Tromey <tom@tromey.com>
3894
3895 * utils.c (set_output_style): Sometimes pass stream to
3896 emit_style_escape.
3897 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3898 * record-btrace.c (btrace_insn_history): Update.
3899 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3900 method.
3901 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3902 Update initializers.
3903 <m_uiout>: New field.
3904 <m_di>: Move lower.
3905 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3906 Remove "uiout" parameter.
3907 (dump_insns): Update.
3908 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3909 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3910
3911 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3912
3913 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3914 (error_in_psymtab_expansion): Likewise.
3915 (lookup_symbol_via_quick_fns): Likewise.
3916 (basic_lookup_transparent_type_quick): Likewise.
3917 (basic_lookup_transparent_type_1): Likewise.
3918
3919 2019-08-06 Tom Tromey <tromey@adacore.com>
3920
3921 * source.c (last_source_error): Now bool.
3922 (print_source_lines_base): Make "noprint" bool. Only open
3923 source file when last_source_visited changes.
3924
3925 2019-08-06 Tom Tromey <tromey@adacore.com>
3926
3927 * annotate.c (annotate_source_line): Use g_source_cache.
3928 * source-cache.c (source_cache::get_plain_source_lines): Change
3929 parameters. Populate m_offset_cache.
3930 (source_cache::ensure): New method.
3931 (source_cache::get_line_charpos): New method.
3932 (extract_lines): Move lower. Change parameters.
3933 (source_cache::get_source_lines): Move lower.
3934 * source-cache.h (class source_cache): Update comment.
3935 <get_line_charpos>: New method.
3936 <get_source_lines>: Update comment.
3937 <clear>: Clear m_offset_cache.
3938 <get_plain_source_lines>: Change parameters.
3939 <ensure>: New method
3940 <m_offset_cache>: New member.
3941 * source.c (forget_cached_source_info_for_objfile): Update.
3942 (info_source_command): Use g_source_cache.
3943 (find_source_lines, open_source_file_with_line_charpos): Remove.
3944 (print_source_lines_base, search_command_helper): Use g_source_cache.
3945 * source.h (open_source_file_with_line_charpos): Don't declare.
3946 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3947 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3948 Use g_source_cache.
3949
3950 2019-08-06 Tom Tromey <tromey@adacore.com>
3951
3952 * source-cache.c (source_cache::get_plain_source_lines):
3953 Remove "first_line" and "last_line" parameters.
3954 (source_cache::get_source_lines): Cache plain text.
3955 * source-cache.h (class source_cache)
3956 <get_plain_source_lines>: Update.
3957
3958 2019-08-06 Tom Tromey <tromey@adacore.com>
3959
3960 * source-cache.c (extract_lines): No longer a method.
3961 Changed type of parameter. Include final newline.
3962 (selftests::extract_lines_test): New function.
3963 (_initialize_source_cache): Likewise.
3964 * source-cache.h (class source_cache)
3965 <extract_lines>: Don't declare.
3966
3967 2019-08-06 Tom Tromey <tromey@adacore.com>
3968
3969 * breakpoint.c (init_breakpoint_sal): Update.
3970 (breakpoint): Update.
3971 * breakpoint.h (struct breakpoint) <filter>: Now a
3972 unique_xmalloc_ptr.
3973
3974 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3975
3976 * NEWS: Mention dictionary access on blocks.
3977 * python/py-block.c (blpy_getitem): New function.
3978 (block_object_as_mapping): New struct.
3979 (block_object_type): Use new struct for tp_as_mapping field.
3980
3981 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3982
3983 * objfiles.h (objfile): Add a comment describing partial symbols.
3984
3985 2019-08-05 Tom Tromey <tromey@adacore.com>
3986
3987 * compile/compile.c (_initialize_compile): Use _(), not N_().
3988 * thread.c (_initialize_thread): Use _(), not N_().
3989 * stack.c (_initialize_stack): Use _(), not N_().
3990 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3991
3992 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3993
3994 * dwarf2read.c (struct dw2_symtab_iterator):
3995 <want_specific_block>: Remove.
3996 <block_index>: Change type to gdb::optional.
3997 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3998 change type of BLOCK_INDEX parameter to gdb::optional.
3999 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4000 (dw2_lookup_symbol): Don't pass argument for
4001 WANT_SPECIFIC_BLOCK.
4002 (dw2_expand_symtabs_for_function): Don't pass argument for
4003 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4004 (class dw2_debug_names_iterator)
4005 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4006 parameter, change BLOCK_INDEX type to gdb::optional.
4007 <m_want_specific_block>: Remove.
4008 <m_block_index>: Change type to gdb::optional.
4009 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4010 gdb::optional. Re-write in function of gdb::optional.
4011 (dw2_debug_names_lookup_symbol): Don't pass argument for
4012 WANT_SPECIFIC_BLOCK.
4013 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4014 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4015 BLOCK_INDEX.
4016
4017 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4018
4019 * NEWS: Mention changes to "info sources" command.
4020
4021 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4022
4023 * symtab.c (filename_partial_match_opts): New struct type.
4024 (struct output_source_filename_data): New members
4025 regexp, c_regexp, partial_match.
4026 (output_source_filename): Use new members to decide to print file.
4027 (info_sources_option_defs): New variable.
4028 (make_info_sources_options_def_group, print_info_sources_header,
4029 info_sources_command_completer):
4030 New functions.
4031 (info_sources_command): Read new optional arguments.
4032 (_initialize_symtab): Update info sources help.
4033
4034 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4035
4036 * ada-lang.c (exception_support_info_v0): Renamed from...
4037 (default_exception_support_info): ... this. Create new
4038 definition for v1.
4039 (ada_has_this_exception_support): Look up catch_handlers_sym.
4040 (ada_exception_support_info_sniffer): Try v0 after default.
4041
4042 2019-08-01 Tom Tromey <tromey@adacore.com>
4043
4044 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4045 gdbarch.h.
4046
4047 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4048
4049 * s12z-tdep.c: Fix include path for s12z-opc.h.
4050
4051 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4052
4053 * NEWS: Require GNU make 3.82.
4054
4055 2019-07-16 Tom Tromey <tom@tromey.com>
4056
4057 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4058 declare.
4059
4060 2019-07-30 Tom Tromey <tromey@adacore.com>
4061
4062 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4063
4064 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4065
4066 * printcmd.c (print_address_symbolic): Print negative offsets.
4067 (build_address_symbolic): Force signed arithmetic when computing
4068 offset.
4069
4070 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4071
4072 PR/24474: Add a function to lookup static variables.
4073 * NEWS: Mention this new function.
4074 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4075 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4076 * python/python.c (python_GdbMethods): Add new function.
4077
4078 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4079
4080 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4081 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4082 (objfpy_lookup_static_symbol): New function.
4083 (objfile_object_methods): Add new functions.
4084
4085 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4086
4087 * NEWS: Mention 'set|show print frame-info'. Mention new
4088 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4089 backtrace argument. Mention that python frame filtering code
4090 is now consistent with what 'backtrace' command prints.
4091
4092 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4093
4094 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4095 comments.
4096 (print_frame_info_auto, print_frame_info_source_line,
4097 print_frame_info_location, print_frame_info_source_and_location,
4098 print_frame_info_location_and_address, print_frame_info_short_location):
4099 New declarations.
4100 (struct frame_print_options): New member print_frame_info.
4101 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4102 * stack.h (get_user_print_what_frame_info): New declaration.
4103 (frame_show_address): New declaration.
4104 * stack.c (print_frame_arguments_choices): New value 'presence'.
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 print_frame_info_choices, print_frame_info_print_what): New definitions.
4109 (print_frame_args): Only print dots for args if print frame-arguments
4110 is 'presence'.
4111 (frame_print_option_defs): New element for "frame-info".
4112 (get_user_print_what_frame_info): New function.
4113 (frame_show_address): Make non static. Move comment to stack.h.
4114 (print_frame_info_to_print_what): New function.
4115 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4116 to decide what to print.
4117 (backtrace_command_1): Handle the new print_frame_arguments_presence
4118 value.
4119 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4120 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4121 (py_print_frame): In non-mi mode, use LOCATION as default for
4122 print_what, similarly to frame information printed directly by
4123 backtrace command. Handle frame-info user option in non MI mode.
4124
4125 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4126
4127 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4128 Add case for debugging 32-bit target on 64-bit host. Revise
4129 comment.
4130
4131 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4132
4133 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4134 instead of find_function_entry_range_from_pc.
4135
4136 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4137
4138 * stack.c (find_frame_funname): Remove code which preferred
4139 minsym over symtab sym in "certain pathological cases".
4140
4141 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4142 parameter. Change type of "do_demangle" to bool.
4143 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4144 Pass suitable "prefer_sym_over_minsym" flag to
4145 build_address_symbolic(). Don't output "+" for negative offsets.
4146 * printcmd.c (print_address_symbolic): Update invocation of
4147 build_address_symbolic to include a "prefer_sym_over_minsym"
4148 flag.
4149 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4150 Restrict cases in which use of minimal symbol is preferred to that
4151 of a found symbol. Update comments.
4152
4153 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4154 for entry pc when entry pc is out of range for that FDE.
4155
4156 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4157
4158 PR gdb/24839:
4159 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4160 type.
4161
4162 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4163
4164 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4165 this function's Python signature.
4166
4167
4168 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4169
4170 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4171 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4172 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4173 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4174 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4175
4176
4177 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4178
4179 * h8300-tdep.c (h8300_register_name_common): New.
4180 h8300_register_name): Use h8300_register_name_common.
4181 (h8300s_register_name): Likewise.
4182 (h8300sx_register_name): Likewise.
4183 (h8300h_register_nam): New.
4184 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4185
4186
4187 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4188
4189 * arm-tdep.c (arm_skip_cmse_entry): New function.
4190 (arm_is_sgstubs_section): New function.
4191 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4192
4193 2019-07-22 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4196 Don't self-assign.
4197
4198 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4201 type_print.
4202
4203 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4206 so that GDB doesn't match any msymbols when searching in the
4207 TYPES_DOMAIN.
4208 (print_symbol_info): Print using typedef_print or type_print based
4209 on the type of the symbol. Add updated FIXME comment moved from...
4210 (_initialize_symtab): ... move and update FIXME comment to above.
4211
4212 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 * NEWS: Mention adding -q option to "info types".
4215 * symtab.c (struct info_types_options): New struct.
4216 (info_types_options_defs): New variable.
4217 (make_info_types_options_def_group): New function.
4218 (info_types_command): Use gdb::option framework to parse options.
4219 (info_types_command_completer): New function.
4220 (_initialize_symtab): Extend the help text on "info types" and
4221 register command completer.
4222
4223 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4224
4225 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4226 (lookup_symbol_in_objfile): Change int to block_enum and add a
4227 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4228
4229 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4230
4231 * MAINTAINERS (Write After Approval): Add self.
4232
4233 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4236 instruction to the dummy code region.
4237
4238 2019-07-19 Tom Tromey <tromey@adacore.com>
4239
4240 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4241 (ARGSUSED, PARAMS, __func__): Remove rules.
4242
4243 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4244
4245 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4246 * features/arm/arm-with-iwmmxt.c: Remove.
4247 * features/arm/arm-with-iwmmxt.xml: Remove.
4248 * features/arm/arm-with-m-fpa-layout.c: Remove.
4249 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4250 * features/arm/arm-with-m-vfp-d16.c: Remove.
4251 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4252 * features/arm/arm-with-m.c: Remove.
4253 * features/arm/arm-with-m.xml: Remove.
4254 * features/arm/arm-with-neon.c: Remove.
4255 * features/arm/arm-with-neon.xml: Remove.
4256 * features/arm/arm-with-vfpv2.c: Remove.
4257 * features/arm/arm-with-vfpv2.xml: Remove.
4258 * features/arm/arm-with-vfpv3.c: Remove.
4259 * features/arm/arm-with-vfpv3.xml: Remove.
4260
4261 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4262
4263 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4264
4265 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4266
4267 * arch/aarch32.c (aarch32_create_target_description): Create
4268 target descriptions using features.
4269 * arch/arm.c (arm_create_target_description)
4270 (arm_create_mprofile_target_description): Likewise.
4271 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4272
4273 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4274
4275 * Makefile.in: Add new files.
4276 * aarch32-tdep.c: New file.
4277 * aarch32-tdep.h: New file.
4278 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4279 Call aarch32_read_description.
4280 * arch/aarch32.c: New file.
4281 * arch/aarch32.h: New file.
4282 * arch/arm.c (arm_create_target_description)
4283 (arm_create_mprofile_target_description): New function.
4284 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4285 (arm_create_target_description)
4286 (arm_create_mprofile_target_description): New declaration.
4287 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4288 read_description functions.
4289 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4290 Likewise.
4291 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4292 * arm-tdep.c (tdesc_arm_list): New variable.
4293 (arm_register_g_packet_guesses): Call create description functions.
4294 (arm_read_description) (arm_read_mprofile_description): New
4295 function.
4296 * arm-tdep.h (arm_read_description)
4297 (arm_read_mprofile_description): Add declaration.
4298 * configure.tgt: Add new files.
4299
4300 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4301
4302 * top.c (new_ui_command): Open specified terminal just once.
4303
4304 2019-07-18 Tom Tromey <tromey@adacore.com>
4305
4306 * symtab.c (main_name): Constify return type.
4307 * symfile.c (set_initial_language): Update.
4308 * symtab.h (main_name): Constify return type.
4309
4310 2019-07-17 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-winsource.c (tui_update_source_window)
4313 (tui_update_source_window_as_is)
4314 (tui_update_source_windows_with_line): Remove return.
4315 * tui/tui-disasm.c (tui_show_disassem)
4316 (tui_show_disassem_and_update_source): Remove return.
4317 * tui/tui.c (tui_reset): Remove return.
4318 * tui/tui-wingeneral.c
4319 (tui_check_and_display_highlight_if_needed): Remove return.
4320
4321 2019-07-17 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4324
4325 2019-07-17 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-winsource.h (struct tui_exec_info_window)
4328 (struct tui_source_window_base): Move from tui-data.h.
4329 * tui/tui-winsource.c: Move many method definitions from
4330 elsewhere. Remove "structuring" comments.
4331 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4332 (tui_source_window_base::refresh_window): Move to
4333 tui-winsource.c.
4334 * tui/tui-win.c (tui_source_window_base::refresh_all)
4335 (tui_source_window_base::update_tab_width)
4336 (tui_source_window_base::set_new_height)
4337 (tui_source_window_base::do_make_visible_with_new_height): Move to
4338 tui-winsource.c.
4339 * tui/tui-source.h: Update.
4340 * tui/tui-source.c (tui_source_window_base::reset): Move to
4341 tui-winsource.c.
4342 * tui/tui-disasm.h: Update.
4343 * tui/tui-data.h (struct tui_exec_info_window): Move to
4344 tui-winsource.h.
4345 (struct tui_source_window_base): Likewise.
4346 * tui/tui-data.c (tui_source_window_base::clear_detail)
4347 (tui_source_window_base, ~tui_source_window_base): Move to
4348 tui-winsource.c.
4349
4350 2019-07-17 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-win.c (tui_resize_all)
4353 (tui_source_window_base::update_tab_width)
4354 (tui_adjust_win_heights): Update.
4355 (tui_win_info::make_invisible_and_set_new_height): Rename from
4356 make_invisible_and_set_new_height.
4357 * tui/tui-data.h (struct tui_win_info)
4358 <make_invisible_and_set_new_height>: New method.
4359
4360 2019-07-17 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui.c: Update.
4363 * tui/tui-source.h (struct tui_source_window): Move from
4364 tui-data.h.
4365 * tui/tui-layout.c: Update.
4366 * tui/tui-disasm.c: Update.
4367 * tui/tui-data.h (struct tui_source_window): Move to
4368 tui-source.h.
4369
4370 2019-07-17 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4373 tui-data.h.
4374 * tui/tui-data.h (struct tui_disasm_window): Move to
4375 tui-disasm.h.
4376
4377 2019-07-17 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-regs.h (struct tui_data_item_window): Move from
4380 tui-data.h.
4381 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4382 * tui/tui-data.h (struct tui_data_item_window): Move to
4383 tui-regs.h.
4384 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4385
4386 2019-07-17 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui.c: Update.
4389 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4390 (tui_cmd_window::max_height): Move to tui-command.c.
4391 * tui/tui-layout.c: Update.
4392 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4393 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4394 tui-command.c.
4395 * tui/tui-command.h (struct tui_cmd_window): Move from
4396 tui-data.h.
4397 * tui/tui-command.c: Remove "structuring" comments.
4398 (tui_cmd_window::clear_detail)
4399 (tui_cmd_window::do_make_visible_with_new_height)
4400 (tui_cmd_window::max_height): Move from elsewhere.
4401
4402 2019-07-17 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4405 Now static.
4406 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4407 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4408
4409 2019-07-17 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui.c: Update.
4412 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4413 tui-regs.c.
4414 * tui/tui-windata.h: Remove file.
4415 * tui/tui-windata.c: Remove file.
4416 * tui/tui-win.c (tui_data_window::set_new_height)
4417 (tui_data_window::do_make_visible_with_new_height): Move to
4418 tui-regs.c.
4419 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4420 * tui/tui-regs.c: Remove "structuring" comments.
4421 (tui_data_window::first_data_item_displayed)
4422 (tui_data_window::delete_data_content_windows)
4423 (tui_data_window::erase_data_content)
4424 (tui_data_window::display_all_data)
4425 (tui_data_window::refresh_all)
4426 (tui_data_window::do_scroll_vertical)
4427 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4428 (tui_data_window::do_make_visible_with_new_height)
4429 (tui_data_window::refresh_window): Move from elsewhere.
4430 (_initialize_tui_regs): Move to end of file.
4431 * tui/tui-layout.c: Update.
4432 * tui/tui-hooks.c: Update.
4433 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4434 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4435 tui-regs.c.
4436 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4437
4438 2019-07-17 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4441 seen.
4442
4443 2019-07-17 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-win.c (tui_source_window_base::set_new_height)
4446 (tui_source_window_base::do_make_visible_with_new_height): Use
4447 m_has_locator field directly.
4448 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4449 method.
4450 (struct tui_source_window_base) <has_locator>: Likewise.
4451
4452 2019-07-17 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4455 Don't declare.
4456 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4457 Remove.
4458 * tui/tui-win.c (tui_source_window_base::set_new_height)
4459 (tui_source_window_base::set_new_height)
4460 (make_invisible_and_set_new_height)
4461 (tui_source_window_base::do_make_visible_with_new_height)
4462 (tui_source_window_base::do_make_visible_with_new_height):
4463 Update.
4464 * tui/tui-layout.c (show_source_disasm_command, show_data)
4465 (show_source_or_disasm_and_command): Update.
4466 * tui/tui-layout.c (show_layout): Update.
4467
4468 2019-07-17 Tom Tromey <tom@tromey.com>
4469
4470 * tui/tui-layout.c (make_data_window): Remove.
4471 (show_data): Unify creation and re-initialization cases.
4472
4473 2019-07-17 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-layout.c (make_source_window, make_disasm_window):
4476 Remove.
4477 (show_data): Unify creation and re-initialization cases.
4478
4479 2019-07-17 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-layout.c (make_command_window): Remove.
4482 (show_source_disasm_command, show_source_or_disasm_and_command):
4483 Unify creation and re-initialization cases.
4484
4485 2019-07-17 Tom Tromey <tom@tromey.com>
4486
4487 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4488 creation and re-initialization cases.
4489
4490 2019-07-17 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-regs.c (tui_get_register): Return void.
4493
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4497 Simplify.
4498
4499 2019-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4502 resetting.
4503
4504 2019-07-17 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4507 * tui/tui-regs.c (tui_reg_layout): New function.
4508 (tui_show_registers, tui_reg_command): Use it.
4509 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4510 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4511 parameters.
4512 (tui_layout_command): Remove.
4513
4514 2019-07-17 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-layout.h (tui/tui-layout): Return void.
4517 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4518
4519 2019-07-17 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-layout.c (show_source_disasm_command, show_data):
4522 Update.
4523 (reset_locator): Remove.
4524 (show_source_or_disasm_and_command): Update.
4525
4526 2019-07-17 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-source.c (tui_source_window_base::reset): Remove
4529 win_type parameter.
4530 * tui/tui-layout.c (make_command_window, make_source_window)
4531 (make_disasm_window, make_data_window)
4532 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4533 (reset_locator, show_source_or_disasm_and_command): Update.
4534 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4535 win_type parameter.
4536 (struct tui_source_window_base) <reset>: Likewise.
4537
4538 2019-07-17 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-layout.c (show_source_disasm_command): Use
4541 reset_locator.
4542 (reset_locator): New function.
4543 (init_and_make_win): Remove.
4544 (show_source_or_disasm_and_command): Use reset_locator.
4545
4546 2019-07-17 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4549 condition.
4550 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4551 Remove condition.
4552 * tui/tui-source.c (tui_source_window_base::reset): New method.
4553 * tui/tui-layout.c (make_command_window): Don't call
4554 init_and_make_win.
4555 (make_source_window, make_disasm_window): Don't call
4556 make_source_or_disasm_window.
4557 (make_data_window): Don't call init_and_make_win. Change calling
4558 convention.
4559 (show_source_disasm_command, show_data): Simplify.
4560 (make_source_or_disasm_window): Remove.
4561 (show_source_or_disasm_and_command): Simplify.
4562 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4563 (struct tui_source_window_base) <reset>: Likewise.
4564 <execution_info>: Remove initializer.
4565 * tui/tui-data.c (tui_source_window_base): Initialize
4566 execution_info.
4567
4568 2019-07-17 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4571 variable.
4572
4573 2019-07-17 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui.c (tui_rl_other_window): Update.
4576 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4577 superclass method first. Always iterate over regs_content.
4578 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4579 method.
4580 * tui/tui-win.c (tui_set_focus_command): Update.
4581
4582 2019-07-17 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui-win.c (tui_set_focus_command): Rename from
4585 tui_set_focus. Call tui_enable.
4586 (tui_set_focus_command): Remove.
4587
4588 2019-07-17 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4591 refresh_window.
4592 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4593 touchwin.
4594 (tui_data_window::refresh_window): Call refresh_window on data
4595 items. Always call superclass refresh_window.
4596 (tui_win_info::refresh): Remove.
4597 (tui_source_window_base::refresh_window): Update.
4598 (tui_refresh_all): Update.
4599 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4600 refresh_window.
4601 (show_source_or_disasm_and_command): Likewise.
4602 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4603 (struct tui_source_window_base) <refresh>: Likewise.
4604
4605 2019-07-17 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-winsource.c (tui_clear_source_content)
4608 (tui_show_source_content): Update.
4609 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4610 whether content is empty.
4611 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4612 Remove.
4613
4614 2019-07-17 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4617 window's contents.
4618 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4619 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4620
4621 2019-07-17 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4624 (struct tui_data_item_window): Update.
4625
4626 2019-07-17 Tom Tromey <tom@tromey.com>
4627
4628 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4629 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4630 defines.
4631
4632 2019-07-17 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-winsource.h (tui_erase_source_content)
4635 (tui_clear_source_content): Remove "display_prompt" parameter.
4636 * tui/tui-winsource.c (tui_update_source_window_as_is)
4637 (tui_update_source_windows_with_addr): Update.
4638 (tui_clear_source_content): Remove "display_prompt" parameter.
4639 (tui_erase_source_content): Likewise. Simplify.
4640 (tui_show_source_content): Update.
4641 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4642 * tui/tui-stack.c (tui_show_frame_info): Update.
4643 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4644 Remove defines.
4645
4646 2019-07-17 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4649 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4650 parameter.
4651 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4652 parameter.
4653
4654 2019-07-17 Tom Tromey <tom@tromey.com>
4655
4656 * tui/tui-winsource.c (tui_clear_source_content)
4657 (tui_show_source_content, tui_show_exec_info_content)
4658 (tui_clear_exec_info_content): Update.
4659 * tui/tui-stack.c (tui_show_locator_content): Update.
4660 (tui_show_frame_info): Update.
4661 * tui/tui-source.h (tui_source_window): Don't declare.
4662 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4663 from tui_source_is_displayed.
4664 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4665 Remove field.
4666 (struct tui_source_window_base) <content_in_use>: New field. Now
4667 bool.
4668 (struct tui_source_window) <showing_source_p>: New method.
4669 (TUI_SRC_WIN): Change cast.
4670 * tui/tui-data.c (tui_initialize_static_data): Update.
4671
4672 2019-07-17 Tom Tromey <tom@tromey.com>
4673
4674 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4675 location_matches_p.
4676 * tui/tui-source.c (tui_source_window::location_matches_p): New
4677 method.
4678 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4679 method.
4680 * tui/tui-data.h (struct tui_source_window_base)
4681 <location_matches_p>: New method.
4682 (struct tui_source_window, struct tui_disasm_window)
4683 <location_matches_p>: Likewise.
4684
4685 2019-07-17 Tom Tromey <tom@tromey.com>
4686
4687 * tui/tui-win.c (tui_set_win_height_command): Rename from
4688 tui_set_win_height.
4689 (tui_set_win_height_command): Remove.
4690
4691 2019-07-17 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-source.c (tui_source_window): New constructor. Add
4694 observer.
4695 (~tui_source_window): New destructor.
4696 (tui_source_window::style_changed): New method.
4697 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4698 (tui_attach_detach_observers): Update.
4699 * tui/tui-data.h (struct tui_source_window): Make constructor not
4700 inline. Add destructor.
4701 (struct tui_source_window) <style_changed>: New method.
4702 <m_observable>: New member.
4703
4704 2019-07-17 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4707 * tui/tui-win.c (tui_resize_all): Fix typo.
4708
4709 2019-07-17 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4712 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4713 (tui_refresh_all): Remove "list" parameter. Use foreach.
4714 * tui/tui-win.c (window_name_completer): Use foreach.
4715 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4716 (update_tab_width): Likewise.
4717 * tui/tui-layout.c (show_layout): Update.
4718 * tui/tui-data.h (class tui_window_iterator): New.
4719 (struct all_tui_windows): New.
4720 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4721
4722 2019-07-17 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4725 parameter. Don't reference globals.
4726 (tui_reg_command): Update.
4727
4728 2019-07-17 Tom Tromey <tom@tromey.com>
4729
4730 * tui/tui-regs.c (tui_show_registers): Simplify.
4731
4732 2019-07-17 Tom Tromey <tom@tromey.com>
4733
4734 * tui/tui-regs.c (tui_show_registers): Update.
4735 (tui_show_register_group): Add win_info parameter.
4736
4737 2019-07-17 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4740 Rename from tui_display_reg_element_at_line.
4741 (tui_data_window::display_registers_from_line): Update.
4742 * tui/tui-data.h (struct tui_data_window)
4743 <display_reg_element_at_line>: New method.
4744
4745 2019-07-17 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-regs.h (tui_display_registers_from)
4748 (tui_display_registers_from_line): Don't declare.
4749 * tui/tui-windata.c (tui_data_window::display_all_data)
4750 (tui_data_window::refresh_all)
4751 (tui_data_window::do_scroll_vertical): Update.
4752 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4753 from tui_display_registers_from.
4754 (tui_display_reg_element_at_line): Update.
4755 (tui_data_window::display_registers_from_line): Rename from
4756 tui_display_registers_from_line.
4757 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4758 display_registers_from_line>: New methods.
4759
4760 2019-07-17 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4763 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4764 from tui_erase_data_content.
4765 (tui_data_window::display_all_data)
4766 (tui_data_window::refresh_all)
4767 (tui_data_window::do_scroll_vertical): Update.
4768 * tui/tui-regs.c (tui_show_registers): Update.
4769 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4770 New method.
4771
4772 2019-07-17 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4775 declare.
4776 * tui/tui-windata.c
4777 (tui_data_window::delete_data_content_windows): Rename from
4778 tui_delete_data_content_windows.
4779 (tui_data_window::display_all_data)
4780 (tui_data_window::do_scroll_vertical): Update.
4781 * tui/tui-data.h (struct tui_data_window)
4782 <delete_data_content_windows>: New method.
4783
4784 2019-07-17 Tom Tromey <tom@tromey.com>
4785
4786 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4787 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4788
4789 2019-07-17 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4792 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4793 from tui_display_all_data.
4794 * tui/tui-win.c
4795 (tui_data_window::do_make_visible_with_new_height): Update.
4796 * tui/tui-regs.c (tui_show_registers): Update.
4797 * tui/tui-layout.c (tui_set_layout): Update.
4798 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4799 method.
4800
4801 2019-07-17 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4804 * tui/tui-windata.c (tui_display_data_from): Remove.
4805 (tui_data_window::refresh_all): Update.
4806
4807 2019-07-17 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4810 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4811 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4812 tui_display_registers_from_line.
4813 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4814 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4815 "force_display" parameter.
4816
4817 2019-07-17 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4820 declare.
4821 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4822 Rename from tui_first_reg_element_no_inline.
4823 (tui_display_reg_element_at_line)
4824 (tui_display_registers_from_line): Update.
4825 * tui/tui-data.h (struct tui_data_window)
4826 <first_reg_element_no_inline>: New method.
4827
4828 2019-07-17 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-windata.c (tui_display_data_from)
4831 (tui_data_window::do_scroll_vertical): Update.
4832 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4833 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4834 Rename from tui_line_from_reg_element_no.
4835 (tui_display_registers_from_line): Update.
4836 * tui/tui-data.h (struct tui_data_window)
4837 <line_from_reg_element_no>: New method.
4838
4839 2019-07-17 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4842 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4843 tui_last_regs_line_no.
4844 (tui_display_reg_element_at_line)
4845 (tui_display_registers_from_line): Update.
4846 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4847 method.
4848
4849 2019-07-17 Tom Tromey <tom@tromey.com>
4850
4851 PR tui/24722:
4852 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4853 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4854 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4855 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4856 (tui_update_breakpoint_info): Likewise.
4857 * tui/tui-hooks.c (tui_event_create_breakpoint)
4858 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4859 Update.
4860
4861 2019-07-17 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4864
4865 2019-07-17 Tom Tromey <tom@tromey.com>
4866
4867 * tui/tui-winsource.c (tui_update_source_window_as_is)
4868 (tui_update_source_windows_with_addr): Update.
4869 * tui/tui-source.h (tui_set_source_content)
4870 (tui_show_symtab_source): Add "win_info" parameter.
4871 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4872 parameter.
4873 (tui_show_symtab_source): Likewise.
4874
4875 2019-07-17 Tom Tromey <tom@tromey.com>
4876
4877 * tui/tui-wingeneral.c
4878 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4879
4880 2019-07-17 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4883 (struct tui_cmd_window) <can_scroll>: New method.
4884 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4885 method.
4886
4887 2019-07-17 Tom Tromey <tromey@adacore.com>
4888
4889 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4890 do_field_signed>: Rename. Change type of "value".
4891 * ui-out.c (ui_out::field_signed): Rename from field_int.
4892 Change type of "value".
4893 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4894 type of "value".
4895 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4896 do_field_int. Change type of "value".
4897 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4898 do_field_int. Change type of "value".
4899 * tracepoint.c (trace_status_mi, tfind_1)
4900 (print_one_static_tracepoint_marker): Update.
4901 * thread.c (print_thread_info_1, print_selected_thread_frame):
4902 Update.
4903 * stack.c (print_frame, print_frame_info): Update.
4904 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4905 Update.
4906 * source.c (print_source_lines_base): Update.
4907 * skip.c (info_skip_command): Update.
4908 * record-btrace.c (btrace_ui_out_decode_error)
4909 (btrace_call_history_src_line): Update.
4910 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4911 Update.
4912 * progspace.c (print_program_space): Update.
4913 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4914 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4915 do_field_int. Change type of "value".
4916 * mi/mi-out.c (mi_ui_out::do_table_begin)
4917 (mi_ui_out::do_table_header): Update.
4918 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4919 type of "value".
4920 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4921 (mi_cmd_data_list_changed_registers, output_register)
4922 (mi_cmd_data_read_memory, mi_load_progress)
4923 (mi_cmd_trace_frame_collected): Update.
4924 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4925 Update.
4926 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4927 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4928 (mi_cmd_var_list_children, varobj_update_one): Update.
4929 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4930 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4931 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4932 * inferior.c (print_inferior): Update.
4933 * gdb_bfd.c (print_one_bfd): Update.
4934 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4935 Update.
4936 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4937 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4938 do_field_int. Change type of "value".
4939 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4940 do_field_int. Change type of "value".
4941 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4942 (print_one_breakpoint_location, print_it_catch_fork)
4943 (print_one_catch_fork, print_it_catch_vfork)
4944 (print_one_catch_vfork, print_it_catch_solib)
4945 (print_it_catch_exec, print_it_ranged_breakpoint)
4946 (print_mention_watchpoint, print_mention_masked_watchpoint)
4947 (bkpt_print_it, update_static_tracepoint): Update.
4948 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4949 * break-catch-syscall.c (print_it_catch_syscall): Update.
4950 * ada-tasks.c (print_ada_task_info): Update.
4951 * ada-lang.c (print_it_exception, print_mention_exception):
4952 Update.
4953
4954 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 PR breakpoints/24541
4957 * gdbarch.c: Regenerate.
4958 * gdbarch.h: Regenerate.
4959 * gdbarch.sh: Adjust return type and parameter types for
4960 'stap_adjust_register'.
4961 (i386_stap_adjust_register): Adjust signature and return new
4962 register name.
4963 * stap-probe.c (stap_parse_register_operand): Adjust use of
4964 'gdbarch_stap_adjust_register'.
4965
4966 2019-07-17 Tom Tromey <tromey@adacore.com>
4967
4968 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4969 declare VEC.
4970 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4971 std::vector.
4972 (struct s390_process_info): Add initializers.
4973 (s390_add_process): Use new.
4974 (s390_linux_nat_target::low_forget_process): Use delete.
4975 (s390_linux_nat_target::low_new_fork)
4976 (s390_linux_nat_target::stopped_by_watchpoint)
4977 (s390_linux_nat_target::low_prepare_to_resume)
4978 (s390_linux_nat_target::insert_watchpoint)
4979 (s390_linux_nat_target::insert_hw_breakpoint)
4980 (s390_linux_nat_target::remove_watchpoint)
4981 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4982
4983 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4984
4985 * aarch64-fbsd-nat.c: Include regcache.h.
4986 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4987 argument.
4988 (aarch64_fbsd_nat_target::fetch_registers)
4989 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4990 variable.
4991 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4992
4993 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4994
4995 * fbsd-nat.c: Include gdbarch.h.
4996
4997 2019-07-15 Tom Tromey <tromey@adacore.com>
4998
4999 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5000
5001 2019-07-15 Tom Tromey <tromey@adacore.com>
5002
5003 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5004 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5005 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5006 * cli-out.c (cli_ui_out::do_field_int): New method.
5007 * ui-out.c (ui_out::field_unsigned): New method.
5008 * symfile.c (generic_load): Use field_unsigned.
5009 (print_transfer_performance): Likewise.
5010 * record-btrace.c (ui_out_field_uint): Remove.
5011 (btrace_call_history_insn_range, btrace_call_history): Use
5012 field_unsigned.
5013 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5014 field_unsigned.
5015 * ui-out.h (class ui_out) <field_unsigned>: New method.
5016 <do_field_unsigned>: Likewise.
5017
5018 2019-07-15 Tom Tromey <tromey@adacore.com>
5019
5020 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5021 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5022 * target.c (flash_erase_command): Use field_string.
5023 * infrun.c (print_signal_received_reason): Use field_string.
5024 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5025 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5026 field_string.
5027 * ada-tasks.c (print_ada_task_info): Use field_string.
5028
5029 2019-07-15 Tom Tromey <tromey@adacore.com>
5030
5031 * target.c (flash_erase_command): Use field_core_addr.
5032 * symfile.c (generic_load): Use field_core_addr.
5033 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5034 Use field_core_addr.
5035 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5036 field_core_addr.
5037
5038 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5041 value if its desired type is smaller than a CORE_ADDR and signed.
5042
5043 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5044
5045 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5046 of changes to field names, and use new is_reference field to
5047 decide if a property is a reference or not.
5048 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5049 field.
5050 (struct dwarf2_property_baton): Update header comment, rename
5051 'referenced_type' to 'property_type' and update comments.
5052 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5053 default property type, store in property baton, update to take
5054 accound of renamed field.
5055 (read_func_scope): Update call to attr_to_dynamic_prop.
5056 (read_array_type): Likewise.
5057 (dwarf2_per_cu_addr_sized_int_type): New function.
5058 (read_subrange_index_type): Move type finding code to
5059 dwarf2_per_cu_addr_sized_int_type.
5060 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5061 (dwarf2_per_cu_addr_type): New function.
5062 (set_die_type): Update calls to attr_to_dynamic_prop.
5063
5064 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * dwarf2read.c (read_subrange_index_type): New function.
5067 (read_subrange_type): Move code into new function and call it.
5068 * gdbtypes.c (create_range_type): Add some asserts.
5069
5070 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5073 update return statements.
5074 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5075 declaration, and update comment to match.
5076 * gdbtypes.c (resolve_dynamic_array): Update call to
5077 dwarf2_evaluate_property to match new return type.
5078
5079 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * valarith.c (value_subscripted_rvalue): Change lowerbound
5082 parameter type from int to LONGEST.
5083 * value.h (value_subscripted_rvalue): Likewise in declaration.
5084
5085 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 * cli/cli-utils.c (info_print_command_completer): New function.
5088 * cli/cli-utils.h: Add 'completer.h' include, and forward
5089 declaration for 'struct cmd_list_element'.
5090 (info_print_command_completer): Declare.
5091 * stack.c (_initialize_stack): Add completer for 'info locals' and
5092 'info args'.
5093 * symtab.c (_initialize_symtab): Add completer for 'info
5094 variables' and 'info functions'.
5095 * NEWS: Mention completion for additional info commands.
5096
5097 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * cli/cli-utils.c (extract_info_print_args): Delete.
5100 (extract_arg_maybe_quoted): Delete.
5101 (info_print_options_defs): New variable.
5102 (make_info_print_options_def_group): New function.
5103 (extract_info_print_options): Define new function.
5104 * cli/cli-utils.h (extract_info_print_args): Delete.
5105 (struct info_print_options): New structure.
5106 (extract_info_print_options): Declare new function.
5107 * stack.c (info_locals_command): Update to use new
5108 extract_info_print_options, also add a header comment.
5109 (info_args_command): Likewise.
5110 * symtab.c (info_variables_command): Likewise.
5111 (info_functions_command): Likewise.
5112
5113 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5116 to extract string arguments.
5117 * common/common-utils.c (extract_string_maybe_quoted): New function.
5118 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5119
5120 2019-07-11 Tom Tromey <tromey@adacore.com>
5121
5122 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5123 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5124 * top.h (gdbinit): Don't declare.
5125 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5126 into...
5127 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5128 * top.c (gdb_init): Don't call init_cli_cmds.
5129 (gdbinit): Remove.
5130 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5131
5132 2019-07-11 Tom Tromey <tromey@adacore.com>
5133
5134 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5135 after it has been moved.
5136
5137 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * valops.c (value_must_coerce_to_target): Change return type to
5140 bool.
5141 * value.h (value_must_coerce_to_target): Likewise.
5142
5143 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5144
5145 * breakpoint.c (is_hardware_watchpoint): Remove
5146 forward-declaration.
5147 (is_masked_watchpoint): Change return type to bool.
5148 (is_tracepoint): Likewise.
5149 (is_breakpoint): Likewise.
5150 (is_hardware_watchpoint): Likewise.
5151 (is_watchpoint): Likewise.
5152 (is_no_memory_software_watchpoint): Likewise.
5153 (is_catchpoint): Likewise.
5154 (breakpoint_1): Make FILTER parameter's return type bool.
5155 is_masked_watchpoint): Change return type to bool.
5156 (save_breakpoints): Make FILTER parameter's return type bool.
5157 * breakpoint.h (is_breakpoint): Change return type to bool.
5158 (is_watchpoint): Likewise.
5159 (is_catchpoint): Likewise.
5160 (is_tracepoint): Likewise.
5161
5162 2019-07-10 Tom Tromey <tom@tromey.com>
5163
5164 * defs.h: Don't include gdbarch.h.
5165 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5166 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5167 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5168 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5169 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5170 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5171 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5172 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5173 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5174 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5175 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5176 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5177 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5178 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5179 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5180 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5181 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5182 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5183 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5184 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5185 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5186 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5187 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5188 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5189 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5190 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5191 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5192
5193 2019-07-10 Tom Tromey <tromey@adacore.com>
5194
5195 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5196 * breakpoint.c (init_ada_exception_breakpoint): Register as
5197 bp_catchpoint.
5198 (print_one_breakpoint_location, print_one_breakpoint): Use
5199 is_ada_exception_catchpoint.
5200 * ada-lang.c (class ada_catchpoint_location): Pass
5201 bp_loc_software_breakpoint to bp_location constructor.
5202 (is_ada_exception_catchpoint): New function.
5203
5204 2019-07-10 Tom Tromey <tromey@adacore.com>
5205
5206 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5207 VEC.
5208 (struct arm_exidx_entry): New method operator<.
5209 (struct arm_exidx_data) <section_maps>: Change type.
5210 (arm_exidx_data_free): Remove.
5211 (arm_exidx_data_key): Change type. Move lower.
5212 (arm_exidx_new_objfile): Update.
5213 (arm_compare_exidx_entries): Remove.
5214 (arm_find_exidx_entry, _initialize_arm_tdep)
5215
5216 2019-07-10 Tom Tromey <tromey@adacore.com>
5217
5218 * solib-spu.c (ocl_program_data_key): Change type.
5219 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5220 Update.
5221
5222 2019-07-10 Tom Tromey <tromey@adacore.com>
5223
5224 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5225 (struct solib_aix_inferior_data) <library_list>: Change type.
5226 (solib_aix_inferior_data_handle): Change type.
5227 (get_solib_aix_inferior_data): Update.
5228 (solib_aix_free_library_list): Remove.
5229 (library_list_start_library): Update.
5230 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5231 return type.
5232 (solib_aix_get_library_list)
5233 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5234 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5235
5236 2019-07-10 Tom Tromey <tromey@adacore.com>
5237
5238 * solib-dsbt.c (struct dsbt_info): Add initializers.
5239 (solib_dsbt_pspace_data): Change type.
5240 (dsbt_pspace_data_cleanup): Remove.
5241 (get_dsbt_info, _initialize_dsbt_solib): Update.
5242
5243 2019-07-10 Tom Tromey <tromey@adacore.com>
5244
5245 * spu-tdep.c (spu_overlay_data): Change type.
5246 (spu_get_overlay_table, spu_overlay_new_objfile)
5247 (_initialize_spu_tdep): Update.
5248
5249 2019-07-10 Tom Tromey <tromey@adacore.com>
5250
5251 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5252 destructor.
5253 (dbx_objfile_data_key): Change type and declare later.
5254 (DBX_SYMFILE_INFO): Rewrite.
5255 * dbxread.c (dbx_objfile_data_key): Change type.
5256 (dbx_symfile_init): Update.
5257 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5258 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5259 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5260
5261 2019-07-10 Tom Tromey <tromey@adacore.com>
5262
5263 * jit.c (jit_program_space_key): Change type. Move lower.
5264 (get_jit_program_space_data): Update.
5265 (jit_program_space_data_cleanup): Remove.
5266 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5267 Update.
5268 (struct jit_program_space_data): Add initializers.
5269
5270 2019-07-10 Tom Tromey <tromey@adacore.com>
5271
5272 * solib-darwin.c (struct darwin_info): Add initializers.
5273 (solib_darwin_pspace_data): Change type.
5274 (darwin_pspace_data_cleanup): Remove.
5275 (get_darwin_info, _initialize_darwin_solib): Update.
5276
5277 2019-07-10 Tom Tromey <tromey@adacore.com>
5278
5279 * remote-sim.c (struct sim_inferior_data): Add initializers,
5280 constructor, and destructor.
5281 (sim_inferior_data_key): Change type. Move lower.
5282 (check_for_duplicate_sim_descriptor): Update.
5283 (get_sim_inferior_data): Use new. Update.
5284 (~sim_inferior_data_cleanup): Rename from
5285 sim_inferior_data_cleanup. Simplify.
5286 (gdbsim_close_inferior, simulator_command)
5287 (sim_command_completer, _initialize_remote_sim): Update.
5288 (next_pid, INITIAL_PID): Move earlier.
5289
5290 2019-07-10 Tom Tromey <tromey@adacore.com>
5291
5292 * python/python-internal.h (create_thread_object): Return
5293 gdbpy_ref.
5294 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5295 * python/py-inferior.c (struct threadlist_entry): Add
5296 constructor.
5297 <thread_obj>: Now a gdbpy_ref.
5298 (thread_to_thread_object): Update.
5299 (add_thread_object): Use new.
5300 (delete_thread_object): Use delete.
5301 (infpy_threads): Update.
5302 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5303 GIL.
5304
5305 2019-07-10 Tom Tromey <tromey@adacore.com>
5306
5307 * valops.c (value_cast): Specialize error message for Ada.
5308
5309 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5312
5313 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5314
5315 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5316 bpstat_should_step): Return bool, adjust comments.
5317 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5318 bpstat_should_step): Likewise.
5319
5320 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5321
5322 * features/Makefile: Use feature target descriptions for Arm.
5323 * features/arm/arm-core.c: Generate new file.
5324 * features/arm/arm-fpa.c: Likewise.
5325 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5326 * features/arm/arm-m-profile.c: Likewise.
5327 * features/arm/arm-vfpv2.c: Likewise.
5328 * features/arm/arm-vfpv3.c: Likewise.
5329 * features/arm/xscale-iwmmxt.c: Likewise.
5330 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5331
5332 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5333
5334 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5335 ptrace earlier.
5336
5337 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5338
5339 * features/aarch64-pauth.c: Regenerate.
5340
5341 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5344 bool.
5345 (bpstat_what): Use false instead of 0.
5346
5347 2019-07-09 Pedro Alves <palves@redhat.com>
5348
5349 * break-catch-throw.c (is_exception_catchpoint): New.
5350 * breakpoint.c (print_one_breakpoint_location): New parameter
5351 'raw_loc'. Handle it. Use
5352 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5353 looking at the breakpoint's type.
5354 (print_one_breakpoint): If handling "maint info breakpoints", also
5355 print locations of exception catchpoints.
5356 * breakpoint.h (is_exception_catchpoint): Declare.
5357
5358 2019-07-09 Pedro Alves <palves@redhat.com>
5359
5360 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5361 "addr" field.
5362 (allocate_location_exception_catchpoint): New.
5363 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5364 (initialize_throw_catchpoint_ops): Install
5365 allocate_location_exception_catchpoint as allocate_location
5366 method.
5367 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5368 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5369 bp_loc_other.
5370 (breakpoint_address_is_meaningful): Delete.
5371 (bl_address_is_meaningful): New.
5372 (breakpoint_locations_match): Adjust comment.
5373 (bp_location_from_bp_type): New, factored out of...
5374 (bp_location::bp_location(breakpoint *)): ... this.
5375 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5376 factored out of...
5377 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5378 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5379 breakpoint_address_is_meaningful.
5380 (bp_locations_compare): Adjust comment.
5381 (update_global_location_list): Use bl_address_is_meaningful
5382 instead of breakpoint_address_is_meaningful.
5383 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5384 explicit.
5385 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5386 * python/py-breakpoint.c (bppy_get_location): No longer check
5387 whether location is null.
5388
5389 2019-07-09 Pedro Alves <palves@redhat.com>
5390
5391 PR c++/15468
5392 * breakpoint.c (print_one_breakpoint_location): Remove
5393 single-location assert.
5394
5395 2019-07-09 Tom Tromey <tom@tromey.com>
5396
5397 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5398 * configure: Rebuild.
5399 * configure.ac: Change common to gdbsupport.
5400 * gdbsupport: Rename from common.
5401 * acinclude.m4: Change common to gdbsupport.
5402 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5403 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5404 gdbsupport.
5405 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5406 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5407 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5408 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5409 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5410 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5411 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5412 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5413 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5414 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5415 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5416 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5417 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5418 coff-pe-read.c, command.h, compile/compile-c-support.c,
5419 compile/compile-c.h, compile/compile-cplus-symbols.c,
5420 compile/compile-cplus-types.c, compile/compile-cplus.h,
5421 compile/compile-loc2c.c, compile/compile.c, completer.c,
5422 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5423 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5424 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5425 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5426 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5427 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5428 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5429 features/aarch64-core.c, features/aarch64-fpu.c,
5430 features/aarch64-pauth.c, features/aarch64-sve.c,
5431 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5432 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5433 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5434 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5435 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5436 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5437 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5438 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5439 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5440 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5441 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5442 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5443 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5444 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5445 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5446 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5447 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5448 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5449 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5450 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5451 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5452 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5453 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5454 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5455 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5456 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5457 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5458 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5459 minsyms.c, mips-linux-tdep.c, namespace.h,
5460 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5461 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5462 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5463 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5464 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5465 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5466 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5467 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5468 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5469 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5470 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5471 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5472 procfs.c, producer.c, progspace.h, psymtab.h,
5473 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5474 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5475 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5476 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5477 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5478 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5479 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5480 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5481 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5482 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5483 target-memory.c, target.c, target.h, target/waitstatus.c,
5484 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5485 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5486 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5487 unittests/array-view-selftests.c,
5488 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5489 unittests/common-utils-selftests.c,
5490 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5491 unittests/format_pieces-selftests.c,
5492 unittests/function-view-selftests.c,
5493 unittests/lookup_name_info-selftests.c,
5494 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5495 unittests/mkdir-recursive-selftests.c,
5496 unittests/observable-selftests.c,
5497 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5498 unittests/parse-connection-spec-selftests.c,
5499 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5500 unittests/scoped_fd-selftests.c,
5501 unittests/scoped_mmap-selftests.c,
5502 unittests/scoped_restore-selftests.c,
5503 unittests/string_view-selftests.c, unittests/style-selftests.c,
5504 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5505 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5506 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5507 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5508 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5509 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5510
5511 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5512
5513 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5514 bool value.
5515 (decode_digits_ordinary): Set explicit_line field in sal.
5516 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5517 symtab_and_line that was set on an explicit line number in
5518 assembler code. Do always update the recorded symtab and line if
5519 we do skip the prologue.
5520
5521 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5522
5523 * breakpoint.c (set_breakpoint_location_function): Remove
5524 explicit_loc parameter.
5525 (momentary_breakpoint_from_master): Update call to
5526 set_breakpoint_location_function.
5527 (add_location_to_breakpoint): Likewise.
5528
5529 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5532 required features based on default bfd type when no specific bfd
5533 is present.
5534
5535 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5536
5537 * NEWS: Mention that GDB printf and eval commands can now print
5538 C-style and Ada-style convenience var strings without
5539 calling the inferior.
5540 * printcmd.c (printf_c_string): Locally print GDB internal var
5541 instead of transiting via the inferior.
5542 (printf_wide_c_string): Likewise.
5543
5544 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5545
5546 PR breakpoints/25011
5547 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5548
5549 2019-07-04 Tom Tromey <tom@tromey.com>
5550
5551 PR tui/24724:
5552 * tui/tui-winsource.c (tui_clear_source_content): Update.
5553 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5554 (tui_update_breakpoint_info): Update.
5555 (tui_set_exec_info_content): Update.
5556 * tui/tui-source.c (tui_set_source_content_nil): Update.
5557 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5558 has_break.
5559 * tui/tui-data.h (enum tui_bp_flag): New.
5560 (tui_bp_flags): New enum flags type.
5561 (struct tui_source_element) <break_mode>: Change type. Rename
5562 from has_break.
5563 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5564 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5565 constants.
5566 * tui/tui-winsource.h: Fix comment.
5567
5568 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5569
5570 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5571 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5572 (store_fpregs_to_thread)
5573 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5574 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5575 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5576 (IWMMXT_REGS_SIZE): Add define.
5577 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5578 (fetch_vfp_regs, store_vfp_regs)
5579 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5580 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5581
5582 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5583
5584 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5585 defines.
5586 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5587 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5588 (ARM_INT_REGISTER_SIZE): ...to this.
5589 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5590 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5591 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5592 (arm_linux_collect_gregset, supply_nwfpe_register)
5593 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5594 defines.
5595 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5596 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5597 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5598 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5599 (arm_return_in_memory, arm_store_return_value)
5600 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5601 (arm_record_ld_st_multiple): Likewise.
5602 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5603 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5604
5605 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5606
5607 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5608 AARCH64_DISPLACED_MODIFIED_INSNS.
5609 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5610 (aarch64_displaced_step_copy_insn): Likewise.
5611 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5612 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5613 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5614 ARM_DISPLACED_MODIFIED_INSNS.
5615 * arm-tdep.c (arm_gdbarch_init): Likewise.
5616 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5617 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5618 (struct arm_displaced_step_closure): Use
5619 ARM_DISPLACED_MODIFIED_INSNS.
5620
5621 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5622
5623 * features/Makefile: Remove unused xml files.
5624 * features/aarch64.xml: Remove.
5625 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5626 * features/i386/amd64-avx-avx512.xml: Remove.
5627 * features/i386/amd64-avx-linux.xml: Remove.
5628 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5629 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5630 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5631 * features/i386/amd64-avx-mpx.xml: Remove.
5632 * features/i386/amd64-avx.xml: Remove.
5633 * features/i386/amd64-linux.xml: Remove.
5634 * features/i386/amd64-mpx-linux.xml: Remove.
5635 * features/i386/amd64-mpx.xml: Remove.
5636 * features/i386/amd64.xml: Remove.
5637 * features/i386/i386-avx-avx512-linux.xml: Remove.
5638 * features/i386/i386-avx-avx512.xml: Remove.
5639 * features/i386/i386-avx-linux.xml: Remove.
5640 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5641 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5642 * features/i386/i386-avx-mpx-linux.xml: Remove.
5643 * features/i386/i386-avx-mpx.xml: Remove.
5644 * features/i386/i386-avx.xml: Remove.
5645 * features/i386/i386-linux.xml: Remove.
5646 * features/i386/i386-mmx-linux.xml: Remove.
5647 * features/i386/i386-mmx.xml: Remove.
5648 * features/i386/i386-mpx-linux.xml: Remove.
5649 * features/i386/i386-mpx.xml: Remove.
5650 * features/i386/i386.xml: Remove.
5651 * features/i386/x32-avx-avx512-linux.xml: Remove.
5652 * features/i386/x32-avx-linux.xml: Remove.
5653 * features/i386/x32-linux.xml: Remove.
5654
5655 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5656
5657 * regformats/aarch64.dat: Remove.
5658 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5659 * regformats/i386/amd64-avx-linux.dat: Remove.
5660 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5661 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5662 * regformats/i386/amd64-linux.dat: Remove.
5663 * regformats/i386/amd64-mpx-linux.dat: Remove.
5664 * regformats/i386/amd64.dat: Remove.
5665 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5666 * regformats/i386/i386-avx-linux.dat: Remove.
5667 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5668 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5669 * regformats/i386/i386-linux.dat: Remove.
5670 * regformats/i386/i386-mmx-linux.dat: Remove.
5671 * regformats/i386/i386-mpx-linux.dat: Remove.
5672 * regformats/i386/i386.dat: Remove.
5673 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5674 * regformats/i386/x32-avx-linux.dat: Remove.
5675 * regformats/i386/x32-linux.dat: Remove.
5676
5677 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5678
5679 * aarch64-tdep.c: Remove xml self tests.
5680 * amd64-linux-tdep.c: Likewise.
5681 * amd64-tdep.c: Likewise.
5682 * i386-linux-tdep.c: Likewise.
5683 * i386-tdep.c: Likewise.
5684
5685 2019-07-03 Pedro Alves <palves@redhat.com>
5686
5687 PR cli/24732
5688 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5689 (pipe_cmd_option_defs): New.
5690 (make_pipe_cmd_options_def_group): New.
5691 (pipe_command): Use gdb::option::process_options.
5692 (pipe_command_completer): New function.
5693 (_initialize_cli_cmds): Install completer for "pipe" command.
5694
5695 2019-07-03 Pedro Alves <palves@redhat.com>
5696
5697 * cli/cli-option.c (union option_value) <string>: New field.
5698 (struct option_def_and_value): Add ctor, move ctor, dtor and
5699 use DISABLE_COPY_AND_ASSIGN.
5700 (option_def_and_value::clear_value): New.
5701 (parse_option, save_option_value_in_ctx, get_val_type_str)
5702 (add_setshow_cmds_for_options): Handle var_string.
5703 * cli-option.h (union option_def::var_address) <string>: New
5704 field.
5705 (struct string_option_def): New.
5706 * maint-test-options.c (struct test_options_opts): Add default
5707 ctor and use DISABLE_COPY_AND_ASSIGN.
5708 <string_opt>: New field.
5709 (test_options_opts::~test_options_opts): New.
5710 (test_options_opts::dump): Also dump "-string".
5711 (test_options_option_defs): Install "string.
5712
5713 2019-07-03 Pedro Alves <palves@redhat.com>
5714
5715 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5716 option_value with a null enumeration.
5717 (complete_options): Save the option values in the context.
5718 (save_option_value_in_ctx): New, factored out from ...
5719 (process_options): ... here.
5720 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5721 of the function.
5722 * maint-test-options.c (test_options_opts::dump): New, factored
5723 out from ...
5724 (maintenance_test_options_command_mode): ... here.
5725 (maintenance_test_options_command_completion_result): Delete.
5726 (maintenance_test_options_command_completion_text): Update
5727 comment.
5728 (maintenance_show_test_options_completion_result): Change
5729 prototype. Just print
5730 maintenance_test_options_command_completion_text.
5731 (save_completion_result): New.
5732 (maintenance_test_options_completer_mode): Pass options context to
5733 complete_options, and then save a dump.
5734 (_initialize_maint_test_options): Use add_cmd to install "maint
5735 show test-options-completion-result".
5736
5737 2019-07-03 Pedro Alves <palves@redhat.com>
5738
5739 * NEWS (New commands): Mention "with" and "maint with".
5740 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5741 (with_command, with_command_completer): New.
5742 (pipe_command): Adjust to new repeat_previous
5743 interface.
5744 (_initialize_cli_cmds): Install the "with" command and its "w"
5745 alias.
5746 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5747 declarations.
5748 * cli/cli-setshow.c (parse_cli_var_uinteger)
5749 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5750 argument strings for all var_types.
5751 (get_setshow_command_value_string): New, factored out from ...
5752 (do_show_command): ... this.
5753 * cli/cli-setshow.h: Include <string>.
5754 (get_setshow_command_value_string): Declare.
5755 * command.h (repeat_previous): Now returns const char *. Adjust
5756 comment.
5757 * maint.c: Include "cli/cli-cmds.h".
5758 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5759 (_initialize_maint_cmds): Register the "maintenance with" command.
5760 * top.c (repeat_previous): Move bits from pipe_command here:
5761 Return the saved command line, if any; error out if there's no
5762 command to relaunch.
5763
5764 2019-07-03 Pedro Alves <palves@redhat.com>
5765
5766 * NEWS (New commands): Mention "maint set/show test-settings"
5767 instead of "maint test-settings".
5768 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5769 (maintenance_test_settings_set_list): Rename to ...
5770 (maintenance_set_test_settings_list): ... this.
5771 (maintenance_test_settings_show_list): Rename to ...
5772 (maintenance_show_test_settings_list): ... this.
5773 (maintenance_test_settings_cmd): Delete.
5774 (maintenance_test_settings_set_cmd): ...
5775 (maintenance_set_test_settings_cmd): ... this.
5776 (maintenance_test_settings_show_cmd): ...
5777 (maintenance_show_test_settings_cmd): ... this.
5778 (maintenance_test_settings_show_value_cmd):
5779 (maintenance_show_test_settings_value_cmd): ... this.
5780 (_initialize_maint_test_settings): No longer install the "maint
5781 test-settings" prefix command. Rename "maint test-settings set"
5782 to "maint set test-settings", and "maint test-settings show" to
5783 "maint show test-settings". Adjust all subcommands.
5784
5785 2019-07-03 Pedro Alves <palves@redhat.com>
5786
5787 * maint-test-settings.c: Fix file's intro comment. Replace all
5788 references to "test-options" with references to "test-settings",
5789 in comments.
5790
5791 2019-07-03 Pedro Alves <palves@redhat.com>
5792
5793 * maint-test-settings.c (maintenance_test_settings_xxx)
5794 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5795 New.
5796 (maintenance_test_settings_enums): Use them.
5797 (maintenance_test_settings_enum): Default to
5798 maintenance_test_settings_xxx.
5799 (_initialize_maint_test_settings): Initialize
5800 MAINTENANCE_TEST_SETTINGS_FILENAME.
5801
5802 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * breakpoint.h (remove_breakpoints_inf): Change return type to
5805 void, move function documentation here.
5806 * breakpoint.c (remove_breakpoints_inf): Change return type to
5807 void, move function documentation to header.
5808
5809 2019-07-02 Pedro Alves <palves@redhat.com>
5810
5811 * NEWS (Completion improvements): Mention "info threads".
5812 * thread.c (struct info_threads_opts, info_threads_option_defs)
5813 (make_info_threads_options_def_group): New.
5814 (info_threads_command): Use gdb::option::process_options.
5815 (info_threads_command_completer): New.
5816 (_initialize_thread): Use gdb::option::build_help to build the
5817 help text for "info threads".
5818
5819 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5820
5821 * defs.h (generic_load): Move from here...
5822 * symfile.h (generic_load): ... to here. Rename name parameter
5823 to args.
5824 * symfile.c (generic_load): Add comment.
5825
5826 2019-07-01 Tom Tromey <tromey@adacore.com>
5827
5828 * dwarf2read.c
5829 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5830 declaration of without_params. Fix formatting.
5831
5832 2019-07-01 Tom Tromey <tromey@adacore.com>
5833
5834 * ada-exp.y (find_primitive_type): Update.
5835 * ada-lang.h (ada_lookup_symbol): Update.
5836 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5837 parameter.
5838 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5839
5840 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5841
5842 PR breakpoints/24541
5843 * gdbarch.c: Regenerate.
5844 * gdbarch.h: Regenerate.
5845 * gdbarch.sh: Add 'stap_adjust_register'.
5846 * i386-tdep.c: Include '<unordered_set>'.
5847 (i386_stap_adjust_register): New function.
5848 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5849 * stap-probe.c (stap_parse_register_operand): Call
5850 'gdbarch_stap_adjust_register'.
5851
5852 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5853
5854 PR python/24742
5855 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5856 * python/python.c (do_start_initialization): Use 'xmalloc'
5857 instead of 'PyMem_Malloc'.
5858
5859 2019-06-28 Tom Tromey <tromey@adacore.com>
5860
5861 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5862 for Ada.
5863
5864 2019-06-27 Tom Tromey <tromey@adacore.com>
5865
5866 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5867 objfile_key.
5868 (arm_find_mapping_symbol, arm_record_special_symbol)
5869 (_initialize_arm_tdep): Update.
5870 (arm_objfile_data_free): Remove.
5871
5872 2019-06-27 Tom Tromey <tromey@adacore.com>
5873
5874 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5875 to cp_print_static_field.
5876
5877 2019-06-26 Tom Tromey <tromey@adacore.com>
5878
5879 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5880 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5881 declare.
5882
5883 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5884
5885 * features/aarch64-core.c (create_feature_aarch64_core):
5886 Regenerate.
5887 * features/aarch64-core.xml: Add cpsr flags.
5888
5889 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5890
5891 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5892 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5893
5894 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5897 field.
5898 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5899 use.
5900 (arm_record_special_symbol): Don't insert new symbol in sorted
5901 position, push it at the end.
5902
5903 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5904
5905 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5906 (arm_mapping_symbol_s): Remove.
5907 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5908 (arm_mapping_symbol_vec): New typedef.
5909 (struct arm_per_objfile): Add constructor.
5910 <section_maps>: Change type to
5911 std::unique_ptr<arm_mapping_symbol_vec[]>.
5912 (arm_compare_mapping_symbols): Remove.
5913 (arm_find_mapping_symbol): Adjust to section_maps type change.
5914 (arm_objfile_data_free): Call delete on arm_per_objfile.
5915 (arm_record_special_symbol): Adjust to section_maps type change.
5916 Allocate arm_per_objfile with new.
5917
5918 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5919
5920 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5921 with the command prefix.
5922
5923 2019-06-25 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5926 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5927
5928 2019-06-25 Tom Tromey <tom@tromey.com>
5929
5930 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5931 type.
5932 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5933 protected.
5934
5935 2019-06-25 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-winsource.c
5938 (tui_source_window_base::set_is_exec_point_at): Add check against
5939 LOA_ADDRESS.
5940
5941 2019-06-25 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-source.c (tui_set_source_content): Don't check before
5944 xfree.
5945 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5946
5947 2019-06-25 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-winsource.h (tui_update_source_window_as_is)
5950 (tui_alloc_source_buffer, tui_line_is_displayed)
5951 (tui_addr_is_displayed): Change type of win_info.
5952 * tui/tui-winsource.c (tui_update_source_window_as_is)
5953 (tui_clear_source_content, tui_show_source_line)
5954 (tui_show_source_content, tui_source_window_base::refill)
5955 (tui_source_window_base::set_is_exec_point_at)
5956 (tui_source_window_base::set_is_exec_point_at)
5957 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5958 (tui_alloc_source_buffer, tui_line_is_displayed)
5959 (tui_addr_is_displayed): Change type of win_info. Update.
5960 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5961 (tui_source_window_base::do_make_visible_with_new_height):
5962 Update.
5963 * tui/tui-source.c (tui_set_source_content)
5964 (tui_set_source_content_nil)
5965 (tui_source_window::do_scroll_vertical): Update.
5966 * tui/tui-layout.c (show_layout): Update.
5967 * tui/tui-disasm.c (tui_set_disassem_content)
5968 (tui_disasm_window::do_scroll_vertical): Update.
5969 * tui/tui-data.h (tui_win_content): Remove.
5970 (struct tui_gen_win_info) <content, content_size>: Remove.
5971 (struct tui_source_element): Add initializers and destructor.
5972 (union tui_which_element, struct tui_win_element): Remove.
5973 (struct tui_source_window_base) <content>: New field.
5974 (struct tui_data_window): Remove destructor.
5975 (tui_alloc_content, tui_free_win_content)
5976 (tui_free_all_source_wins_content): Don't declare.
5977 * tui/tui-data.c (tui_initialize_static_data): Update.
5978 (init_content_element, tui_alloc_content): Remove.
5979 (~tui_gen_win_info): Update.
5980 (~tui_data_window, tui_free_all_source_wins_content)
5981 (tui_free_win_content, free_content, free_content_elements):
5982 Remove.
5983
5984 2019-06-25 Tom Tromey <tom@tromey.com>
5985
5986 * tui/tui-winsource.h (tui_clear_source_content)
5987 (tui_erase_source_content, tui_show_source_content): Change type
5988 of win_info.
5989 * tui/tui-winsource.c (tui_clear_source_content)
5990 (tui_erase_source_content, tui_show_source_content): Change type
5991 of win_info.
5992 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5993 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5994 win_info.
5995 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5996 win_info.
5997 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5998
5999 2019-06-25 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-winsource.c (tui_clear_source_content)
6002 (tui_source_window_base::set_is_exec_point_at): Update.
6003 * tui/tui-source.c (tui_set_source_content_nil): Update.
6004 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6005 a bool.
6006 * tui/tui-data.c (init_content_element): Update.
6007
6008 2019-06-25 Tom Tromey <tom@tromey.com>
6009
6010 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6011 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6012 * tui/tui-layout.c (init_and_make_win): Update.
6013 * tui/tui.h (enum tui_win_type): Update.
6014 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6015 tui_win_is_auxillary.
6016 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6017 tui_win_is_auxillary.
6018
6019 2019-06-25 Tom Tromey <tom@tromey.com>
6020
6021 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6022 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6023 (tui_delete_data_content_windows, tui_display_all_data)
6024 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6025 Update.
6026 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6027 * tui/tui-regs.c (tui_last_regs_line_no)
6028 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6029 (tui_show_registers): Update.
6030 (tui_show_register_group): Return void. Update.
6031 (tui_display_registers_from, tui_display_reg_element_at_line)
6032 (tui_display_registers_from_line, tui_check_register_values):
6033 Update.
6034 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6035 member.
6036 (struct tui_data_window) <regs_content>: Now a std::vector.
6037 <regs_content_count>: Remove.
6038 (tui_add_content_elements, tui_free_data_content): Don't declare.
6039 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6040 (init_content_element): Remove DATA_WIN case. Add assert.
6041 (tui_add_content_elements): Remove.
6042 (tui_data_window): Update.
6043 (tui_free_data_content): Remove.
6044 (free_content_elements): Remove DATA_WIN case.
6045
6046 2019-06-25 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-data.c (tui_data_item_window): Update.
6049 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6050 * tui/tui-windata.c (tui_display_all_data)
6051 (tui_display_data_from_line): Update.
6052 (tui_check_data_values): Remove.
6053 * tui/tui-regs.c (tui_show_register_group)
6054 (tui_display_reg_element_at_line): Update.
6055 * tui/tui-hooks.c (tui_register_changed)
6056 (tui_refresh_frame_and_register_information): Call
6057 tui_check_register_values.
6058 * tui/tui-data.h (struct tui_data_window) <data_content,
6059 data_content_count, data_type>: Remove.
6060 (enum tui_data_type): Remove.
6061
6062 * tui/tui-data.c (tui_data_window::clear_detail)
6063 (~tui_data_window): Update.
6064
6065 2019-06-25 Tom Tromey <tom@tromey.com>
6066
6067 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6068 declare.
6069 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6070 Rename from tui_first_data_item_displayed. Update.
6071 (tui_data_window::refresh_all)
6072 (tui_data_window::do_scroll_vertical): Update.
6073 * tui/tui-data.h (struct tui_data_window)
6074 <first_data_item_displayed>: Declare new method.
6075
6076 2019-06-25 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6079 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6080 contents...
6081 (tui_initialize_static_data): ...here.
6082
6083 2019-06-25 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6086 (tui_display_registers_from, tui_check_register_values): Update.
6087 (tui_display_register): Remove win_info parameter; update.
6088 (tui_get_register): Change type of parameters.
6089 * tui/tui-data.h (struct tui_data_element): Remove.
6090 (union tui_which_element) <data>: Remove.
6091 <data_window>: Change type.
6092 (struct tui_data_item_window): New.
6093 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6094 case. Add assert.
6095 (~tui_data_item_window): New destructor.
6096 (free_content_elements): Remove DATA_ITEM_WIN case.
6097
6098 2019-06-25 Tom Tromey <tom@tromey.com>
6099
6100 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6101 Remove.
6102
6103 2019-06-25 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-data.h (struct tui_command_element): Remove.
6106 (union tui_which_element) <command>: Remove.
6107 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6108 assert.
6109 (free_content_elements): Remove CMD_WIN case.
6110
6111 2019-06-25 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-layout.c (tui_set_layout): Update.
6114 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6115 * tui/tui-data.c (layout_def): Update.
6116
6117 2019-06-25 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6120 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6121 (tui_source_window_base::set_new_height): Update.
6122 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6123 Update.
6124 (tui_set_locator_fullname, tui_set_locator_info)
6125 (tui_show_frame_info): Update.
6126 * tui/tui-source.c (tui_set_source_content)
6127 (tui_source_is_displayed): Update.
6128 * tui/tui-layout.c (show_source_disasm_command, show_data)
6129 (show_source_or_disasm_and_command): Update.
6130 * tui/tui-disasm.c (tui_set_disassem_content)
6131 (tui_get_begin_asm_address): Update.
6132 * tui/tui-data.h (struct tui_locator_element): Remove.
6133 (union tui_which_element) <locator>: Remove.
6134 (struct tui_locator_window): New.
6135 (tui_locator_win_info_ptr): Change return type.
6136 * tui/tui-data.c (_locator): Change type.
6137 (tui_locator_win_info_ptr): Change return type.
6138 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6139 (tui_alloc_content): Add assert.
6140
6141 2019-06-25 Tom Tromey <tom@tromey.com>
6142
6143 * tui/tui-winsource.c
6144 (tui_exec_info_window::maybe_allocate_content): New method.
6145 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6146 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6147 (make_source_or_disasm_window): Add cast.
6148 * tui/tui-data.h (union tui_which_element) <simple_string>:
6149 Remove.
6150 (struct tui_source_info): New.
6151 (struct tui_source_window_base) <execution_info>: Change type.
6152 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6153 case, and add assert.
6154 (tui_alloc_content): Add assert.
6155
6156 2019-06-25 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6159 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6160 * tui/tui-data.c (tui_alloc_win_info): Remove.
6161
6162 2019-06-25 Tom Tromey <tom@tromey.com>
6163
6164 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6165 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6166 can_highlight.
6167
6168 2019-06-25 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6171 make_visible_with_new_height method.
6172 (tui_win_info::make_visible_with_new_height): New method.
6173 (tui_source_window_base::do_make_visible_with_new_height)
6174 (tui_data_window::do_make_visible_with_new_height)
6175 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6176 (make_visible_with_new_height): Remove.
6177 (tui_resize_all, tui_adjust_win_heights): Use
6178 make_visible_with_new_height method.
6179 * tui/tui-data.h (struct tui_win_info)
6180 <do_make_visible_with_new_height, make_visible_with_new_height>:
6181 New methods.
6182 (struct tui_source_window_base, struct tui_data_window)
6183 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6184 methods.
6185
6186 2019-06-25 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6189 method.
6190 (update_tab_width): Call update_tab_width method.
6191 * tui/tui-data.h (struct tui_win_info)
6192 (struct tui_source_window_base) <update_tab_width>: New methods.
6193
6194 2019-06-25 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6197 parameter.
6198 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6199 parameter.
6200 (tui_gen_win_info::make_visible): Update.
6201 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6202 parameter.
6203 * tui/tui-data.h (enum tui_box): New enum.
6204 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6205
6206 2019-06-25 Tom Tromey <tom@tromey.com>
6207
6208 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6209 init_and_make_win for EXEC_INFO_WIN.
6210 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6211 longer inline.
6212 (struct tui_win_info) <~tui_win_info>: Inline.
6213 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6214 Don't declare.
6215 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6216 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6217 Remove.
6218 (tui_initialize_static_data): Update.
6219 (~tui_gen_win_info): Handle more cleanup here.
6220 (~tui_source_window_base): Delete "execution_info".
6221 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6222
6223 2019-06-25 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-layout.c (make_command_window): Don't set
6226 can_highlight.
6227 (show_source_disasm_command): Call the reset method.
6228 (show_data): Don't set can_highlight. Call the reset method.
6229 (tui_gen_win_info::reset): Rename from init_gen_win_info
6230 (init_and_make_win): Simplify. Return tui_gen_win_info.
6231 (show_source_or_disasm_and_command): Call the reset method.
6232 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6233 (struct tui_cmd_window): Set can_highlight.
6234
6235 2019-06-25 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6238 from make_visible.
6239 (tui_make_visible, tui_make_invisible): Rewrite.
6240 (tui_win_info::make_visible): Remove.
6241 (tui_source_window_base::make_visible): Update.
6242 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6243 method. Moved from...
6244 (struct tui_win_info) <make_visible>: ...here.
6245
6246 2019-06-25 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-winsource.c
6249 (tui_source_window_base::do_scroll_horizontal): Remove direction
6250 parameter.
6251 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6252 direction parameter.
6253 * tui/tui-win.c (tui_win_info::forward_scroll)
6254 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6255 (tui_win_info::right_scroll): Update.
6256 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6257 direction parameter.
6258 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6259 direction parameter.
6260 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6261 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6262 Remove direction parameter.
6263 (struct tui_source_window_base, struct tui_source_window)
6264 (struct tui_disasm_window, struct tui_data_window)
6265 (struct tui_cmd_window): Update.
6266
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-winsource.h (tui_set_exec_info_content)
6270 (tui_show_exec_info_content, tui_erase_exec_info_content)
6271 (tui_clear_exec_info_content, tui_update_exec_info): Change
6272 argument to tui_source_window_base.
6273 * tui/tui-winsource.c (tui_set_exec_info_content)
6274 (tui_show_exec_info_content, tui_erase_exec_info_content)
6275 (tui_clear_exec_info_content, tui_update_exec_info): Change
6276 argument to tui_source_window_base.
6277
6278 2019-06-25 Tom Tromey <tom@tromey.com>
6279
6280 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6281 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6282
6283 2019-06-25 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6286 check.
6287
6288 2019-06-25 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6291 type to void.
6292 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6293 type to void.
6294 * tui/tui-source.c (tui_set_source_content): Update.
6295 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6296
6297 2019-06-25 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-win.c (window_name_completer, tui_set_focus)
6300 (tui_all_windows_info): Use name method.
6301 * tui/tui-data.h (struct tui_gen_win_info)
6302 (struct tui_source_window, struct tui_disasm_window)
6303 (struct tui_data_window, struct tui_cmd_window) <name>: New
6304 method.
6305 (tui_win_name): Don't declare.
6306 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6307 (tui_win_name): Remove.
6308
6309 2019-06-25 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-winsource.h (tui_update_source_window)
6312 (tui_update_source_window_as_is): Change parameter type.
6313 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6314 to be a tui_source_window_base.
6315 (tui_update_source_window_as_is): Likewise.
6316 * tui/tui-win.c (make_visible_with_new_height): Update.
6317
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-winsource.c (tui_erase_source_content)
6321 (tui_show_source_content, tui_show_exec_info_content)
6322 (tui_erase_exec_info_content): Use refresh_window method.
6323 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6324 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6325 from tui_refresh_win.
6326 (tui_data_window::refresh_window): New method.
6327 (tui_win_info::refresh, tui_source_window_base::refresh)
6328 (tui_refresh_all): Use refresh_window method.
6329 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6330 method.
6331 * tui/tui-regs.c (tui_display_register): Call refresh_window
6332 method.
6333 * tui/tui-layout.c (show_source_disasm_command)
6334 (show_source_or_disasm_and_command): Call refresh_window method.
6335 * tui/tui-data.h (struct tui_gen_win_info)
6336 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6337 New method.
6338
6339 2019-06-25 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui.c (tui_rl_other_window, tui_enable)
6342 (tui_is_window_visible, tui_get_command_dimension): Update.
6343 * tui/tui-winsource.c (tui_update_source_window_as_is)
6344 (tui_clear_source_content, tui_erase_source_content)
6345 (tui_show_source_line, tui_source_window_base::refill)
6346 (tui_source_window_base::do_scroll_horizontal)
6347 (tui_source_window_base::set_is_exec_point_at)
6348 (tui_update_breakpoint_info, tui_set_exec_info_content)
6349 (tui_alloc_source_buffer, tui_line_is_displayed)
6350 (tui_addr_is_displayed): Update.
6351 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6352 (tui_check_and_display_highlight_if_needed)
6353 (tui_win_info::make_visible, tui_win_info::refresh)
6354 (tui_refresh_all): Update.
6355 * tui/tui-windata.c (tui_first_data_item_displayed)
6356 (tui_delete_data_content_windows, tui_erase_data_content)
6357 (tui_display_all_data, tui_data_window::refresh_all)
6358 (tui_check_data_values): Update.
6359 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6360 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6361 (tui_win_info::backward_scroll, tui_refresh_all_win)
6362 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6363 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6364 (tui_source_window_base::set_new_height)
6365 (tui_data_window::set_new_height)
6366 (make_invisible_and_set_new_height)
6367 (make_visible_with_new_height, new_height_ok)
6368 (parse_scrolling_args): Update.
6369 * tui/tui-stack.c (tui_show_frame_info): Update.
6370 * tui/tui-source.c (tui_set_source_content)
6371 (tui_set_source_content_nil, tui_source_is_displayed)
6372 (tui_source_window::do_scroll_vertical): Update.
6373 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6374 (tui_display_registers_from, tui_display_reg_element_at_line)
6375 (tui_check_register_values, tui_reg_command): Update.
6376 * tui/tui-layout.c (tui_default_win_height)
6377 (show_source_disasm_command, show_data, init_and_make_win)
6378 (show_source_or_disasm_and_command): Update.
6379 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6380 (tui_redisplay_readline, tui_mld_flush)
6381 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6382 (tui_getc): Update.
6383 * tui/tui-disasm.c (tui_set_disassem_content)
6384 (tui_disasm_window::do_scroll_vertical): Update.
6385 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6386 Now virtual.
6387 (struct tui_win_info): Derive from tui_gen_win_info.
6388 <~tui_win_info>: Mark as override.
6389 <generic>: Remove member.
6390 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6391 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6392 (~tui_data_window, ~tui_win_info)
6393 (tui_free_all_source_wins_content): Update.
6394 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6395
6396 2019-06-25 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-layout.c (init_and_make_win): Use new.
6399 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6400 destructor, initializers.
6401 (tui_alloc_generic_win_info): Don't declare.
6402 * tui/tui-data.c (_locator): Add argument to constructor.
6403 (source_win, disasm_win): New globals.
6404 (exec_info): Remove.
6405 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6406 Update.
6407 (tui_alloc_generic_win_info): Remove.
6408 (init_content_element): Use new.
6409 (tui_win_info::tui_win_info): Update.
6410 (free_content_elements) <case DATA_WIN>: Use delete.
6411
6412 2019-06-25 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6415 * tui/tui-windata.c (tui_first_data_item_displayed)
6416 (tui_delete_data_content_windows): Update.
6417 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6418 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6419 (tui_display_registers_from, tui_check_register_values): Update.
6420 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6421 pointer.
6422 * tui/tui-data.c (init_content_element): Update. Allocate the new
6423 window.
6424 (tui_free_data_content): Update.
6425 (free_content_elements) <case DATA_WIN>: Free the window.
6426
6427 2019-06-25 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6430 Update.
6431 * tui/tui-layout.c (make_command_window)
6432 (show_source_disasm_command, show_data, init_and_make_win)
6433 (show_source_or_disasm_and_command): Update.
6434 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6435 method.
6436 <can_highight, is_highlighted>: Now bool.
6437 (tui_set_win_highlight): Don't declare.
6438 * tui/tui-data.c (tui_set_win_highlight): Remove.
6439
6440 2019-06-25 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-wingeneral.c (make_visible): Remove check of window
6443 type.
6444
6445 2019-06-25 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-win.c (tui_win_info::max_height)
6448 (tui_cmd_window::max_height): New methods.
6449 (new_height_ok): Call max_height.
6450 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6451 <max_height>: New method.
6452
6453 2019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-win.c (tui_source_window_base::set_new_height)
6456 (tui_data_window::set_new_height): New methods.
6457 (make_invisible_and_set_new_height): Call set_new_height method.
6458 * tui/tui-data.h (struct tui_win_info)
6459 (struct tui_source_window_base, struct tui_data_window)
6460 <set_new_height>: New method.
6461
6462 2019-06-25 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6465 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6466 tui_refresh_data_win.
6467 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6468 method.
6469 (tui_refresh_all_win): Call the refresh_all method.
6470 (tui_set_focus): Likewise.
6471 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6472 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6473 Likewise.
6474
6475 2019-06-25 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-winsource.h (tui_refill_source_window)
6478 (tui_set_is_exec_point_at): Don't declare.
6479 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6480 (tui_source_window_base::refill): Rename from
6481 tui_refill_source_window.
6482 (tui_source_window_base::do_scroll_horizontal): Update.
6483 (tui_source_window_base::set_is_exec_point_at): Rename from
6484 tui_set_is_exec_point_at.
6485 (tui_update_all_breakpoint_info): Update.
6486 * tui/tui-stack.c (tui_show_frame_info): Update.
6487 * tui/tui-layout.c (show_data): Add cast.
6488 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6489 * tui/tui-data.h (struct tui_source_window_base) <refill,
6490 set_is_exec_point_at>: New methods.
6491 (tui_source_windows, tui_add_to_source_windows): Update types.
6492 (tui_add_to_source_windows): Remove redundant declaration.
6493 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6494 (tui_source_windows): Change return type.
6495 (tui_clear_source_windows_detail): Update.
6496 (tui_add_to_source_windows): Change type of parameter.
6497 (tui_free_all_source_wins_content): Update.
6498
6499 2019-06-25 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-wingeneral.c (tui_win_info::refresh)
6502 (tui_source_window_base::refresh): New methods.
6503 (tui_refresh_all): Call the refresh method.
6504 * tui/tui-data.h (struct tui_win_info)
6505 (struct tui_source_window_base) <refresh>: New method.
6506
6507 2019-06-25 Tom Tromey <tom@tromey.com>
6508
6509 * tui/tui.h (tui_is_window_visible): Return bool.
6510 * tui/tui.c (tui_is_window_visible): Return bool.
6511 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6512 (tui_make_visible, tui_make_invisible)
6513 (tui_win_info::make_visible)
6514 (tui_source_window_base::make_visible, make_all_visible)
6515 (tui_make_all_visible, tui_make_all_invisible): Update.
6516 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6517 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6518 bool.
6519 (struct tui_win_info, struct tui_source_window_base)
6520 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6521 * tui/tui-data.c (tui_init_generic_part): Update.
6522
6523 2019-06-25 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6526 (tui_source_window_base::make_visible): New methods.
6527 (make_all_visible): Make method call.
6528 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6529 (struct tui_source_window_base, struct tui_cmd_window): Override
6530 make_visible.
6531 (tui_win_is_source_type): Don't declare.
6532 * tui/tui-data.c (tui_win_is_source_type): Remove.
6533
6534 2019-06-25 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6537 NULL check.
6538
6539 2019-06-25 Tom Tromey <tom@tromey.com>
6540
6541 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6542 Inline constructor. Add initializers for members.
6543 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6544 constructors; now inline in class.
6545
6546 2019-06-25 Tom Tromey <tom@tromey.com>
6547
6548 * tui/tui-regs.c (tui_show_registers): Update.
6549 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6550 bool.
6551 * tui/tui-data.c (tui_data_window::clear_detail)
6552 (tui_data_window): Update.
6553
6554 2019-06-25 Tom Tromey <tom@tromey.com>
6555
6556 * tui/tui-windata.c (tui_display_all_data)
6557 (tui_display_data_from_line, tui_display_data_from)
6558 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6559 Update.
6560 * tui/tui-regs.c (tui_last_regs_line_no)
6561 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6562 (tui_show_registers, tui_show_register_group)
6563 (tui_display_registers_from, tui_display_reg_element_at_line)
6564 (tui_display_registers_from_line, tui_check_register_values)
6565 (tui_reg_next, tui_reg_prev): Update.
6566 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6567 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6568 tui_data_window.
6569 (struct tui_win_info) <detail>: Remove. Add new fields from
6570 tui_data_info.
6571 (TUI_DATA_WIN): Add cast.
6572 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6573 (~tui_data_window): Simplify.
6574
6575 2019-06-25 Tom Tromey <tom@tromey.com>
6576
6577 * tui/tui-layout.c (show_source_disasm_command)
6578 (show_source_or_disasm_and_command): Update.
6579 * tui/tui-io.c (update_cmdwin_start_line)
6580 (tui_redisplay_readline): Update.
6581 * tui/tui-data.h (struct tui_command_info): Remove.
6582 (struct tui_win_info) <detail>: Remove command_info member.
6583 (struct tui_data_window) <start_line>: New member, from
6584 tui_command_info.
6585 (TUI_CMD_WIN): Add casts.
6586
6587 2019-06-25 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-winsource.c (tui_update_source_window)
6590 (tui_refill_source_window)
6591 (tui_source_window_base::do_scroll_horizontal)
6592 (tui_update_breakpoint_info, tui_set_exec_info_content)
6593 (tui_show_exec_info_content, tui_erase_exec_info_content)
6594 (tui_clear_exec_info_content): Update.
6595 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6596 Update.
6597 * tui/tui-win.c (make_invisible_and_set_new_height)
6598 (make_visible_with_new_height): Update.
6599 * tui/tui-source.c (tui_set_source_content)
6600 (tui_show_symtab_source): Update.
6601 * tui/tui-layout.c (extract_display_start_addr)
6602 (show_source_disasm_command, show_data)
6603 (make_source_or_disasm_window)
6604 (show_source_or_disasm_and_command): Update.
6605 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6606 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6607 "gdbarch".
6608 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6609 to tui_source_window_base.
6610 (struct tui_win_info) <detail>: Remove source_info member.
6611 (struct tui_source_window_base) <has_locator>: Inline.
6612 Move contents from tui_source_info; rename has_locator member to
6613 m_has_locator.
6614 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6615 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6616 header file.
6617 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6618 Simplify.
6619 (tui_free_all_source_wins_content): Cast to
6620 tui_source_window_base.
6621
6622 2019-06-25 Tom Tromey <tom@tromey.com>
6623
6624 * tui/tui-win.c (make_invisible_and_set_new_height)
6625 (make_visible_with_new_height): Call has_locator method.
6626 * tui/tui-layout.c (show_source_disasm_command, show_data)
6627 (show_source_or_disasm_and_command): Update for bool change.
6628 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6629 (tui_win_info) <has_locator>: New method.
6630 (struct tui_source_window_base) <has_locator>: New method.
6631 (tui_win_has_locator): Don't declare.
6632 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6633 from tui_win_has_locator.
6634 (tui_source_window_base): Use false, not FALSE.
6635
6636 2019-06-25 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6639 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6640 clear_detail method directly.
6641 (tui_clear_win_detail): Remove.
6642
6643 2019-06-25 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6646 "this", not TUI_DISASM_WIN.
6647
6648 2019-06-25 Tom Tromey <tom@tromey.com>
6649
6650 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6651 declare.
6652 * tui/tui-winsource.c
6653 (tui_source_window_base::do_scroll_horizontal): Rename from
6654 tui_horizontal_source_scroll.
6655 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6656 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6657 from tui_vertical_data_scroll.
6658 * tui/tui-win.h (tui_scroll): Don't declare.
6659 * tui/tui-win.c (tui_win_info::forward_scroll)
6660 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6661 (tui_win_info::right_scroll): Rename and update.
6662 (tui_scroll_forward_command, tui_scroll_backward_command)
6663 (tui_scroll_left_command, tui_scroll_right_command): Update.
6664 (tui_scroll): Remove.
6665 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6666 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6667 from tui_vertical_source_scroll.
6668 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6669 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6670 from tui_vertical_disassem_scroll.
6671 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6672 do_scroll_horizontal>: New methods.
6673 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6674 Likewise.
6675 (struct tui_source_window_base): Add do_scroll_horizontal.
6676 (struct tui_source_window, struct tui_disasm_window): Add
6677 do_scroll_vertical.
6678 (struct tui_data_window, struct tui_cmd_window): Add
6679 do_scroll_horizontal and do_scroll_vertical.
6680 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6681
6682 2019-06-25 Tom Tromey <tom@tromey.com>
6683
6684 * tui/tui-data.h (struct tui_source_window_base): New struct.
6685 (struct tui_source_window): Derive from tui_source_window_base.
6686 (struct tui_disasm_window): New struct.
6687 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6688 from tui_source_window::clear_detail.
6689 (tui_source_window_base): Rename from tui_source_window.
6690 (~tui_source_window_base): Rename from ~tui_source_window.
6691 (tui_alloc_win_info): Create a tui_disasm_window.
6692
6693 2019-06-25 Tom Tromey <tom@tromey.com>
6694
6695 * tui/tui-data.h (struct tui_source_window)
6696 (struct tui_data_window): Declare destructors.
6697 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6698 destructors.
6699 (tui_win_info): Simplify.
6700
6701 2019-06-25 Tom Tromey <tom@tromey.com>
6702
6703 * tui/tui-winsource.c (tui_display_main)
6704 (tui_update_source_windows_with_addr)
6705 (tui_update_all_breakpoint_info): Update.
6706 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6707 (new_height_ok, parse_scrolling_args): Update.
6708 * tui/tui-stack.c (tui_show_frame_info): Update.
6709 * tui/tui-data.h (struct tui_list): Remove.
6710 (tui_source_windows): Return a reference to a std::vector.
6711 * tui/tui-data.c (source_windows): Now a std::vector.
6712 (tui_source_windows): Change return type.
6713 (tui_clear_source_windows): Rewrite.
6714 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6715 (tui_free_all_source_wins_content): Rewrite.
6716
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6720 (struct tui_data_window, struct tui_cmd_window): Declare
6721 clear_detail method.
6722 * tui/tui-data.c (tui_source_window::clear_detail)
6723 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6724 methods.
6725 (tui_clear_win_detail): Simplify.
6726
6727 2019-06-25 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-layout.c (make_source_window, make_disasm_window)
6730 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6731 Return the new window.
6732 (show_source_disasm_command, show_data)
6733 (show_source_or_disasm_and_command): Update.
6734
6735 2019-06-25 Tom Tromey <tom@tromey.com>
6736
6737 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6738 parameter. Return the new window.
6739 (show_source_disasm_command): Update and remove NULL check.
6740 (show_source_or_disasm_and_command): Update.
6741
6742 2019-06-25 Tom Tromey <tom@tromey.com>
6743
6744 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6745
6746 2019-06-25 Tom Tromey <tom@tromey.com>
6747
6748 * tui/tui-data.h (struct tui_win_info): Make constructor
6749 protected. Make destructor virtual. Add initializers.
6750 (tui_source_window, tui_data_window, tui_cmd_window): New
6751 classes.
6752 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6753 constructor. Add "type" parameter.
6754 (tui_source_window, tui_data_window, tui_cmd_window): New
6755 constructors.
6756 (tui_alloc_win_info): Instantiate the appropriate subclass.
6757
6758 2019-06-25 Tom Tromey <tom@tromey.com>
6759
6760 * tui/tui-win.c (tui_resize_all): Use delete.
6761 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6762 destructor.
6763 (tui_free_window): Don't declare.
6764 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6765 Update.
6766
6767 2019-06-25 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-data.h (struct tui_win_info): Add constructor.
6770 * tui/tui-data.c (tui_alloc_win_info): Use new.
6771 (tui_free_window): Use delete.
6772
6773 2019-06-22 Tom Tromey <tom@tromey.com>
6774
6775 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6776 declare.
6777 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6778
6779 2019-06-22 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6782 declare.
6783 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6784
6785 2019-06-22 Tom de Vries <tdevries@suse.de>
6786
6787 * dwarf2read.c (create_addrmap_from_aranges)
6788 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6789 instead of '%zu'.
6790
6791 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * dwarf2read.h (dwarf2_section_info_def): Remove.
6794 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6795 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6796 std::vector<dwarf2_section_info>.
6797 (struct dwo_file) <~dwo_file>: Remove.
6798 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6799 types field.
6800 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6801 (dwarf2_read_debug_names): Likewise.
6802 (create_debug_types_hash_table): Change parameter type to
6803 array_view, adjust code accordingly.
6804 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6805 (partial_die_info::fixup): Likewise.
6806 (determine_prefix): Likewise.
6807 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6808
6809 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6812 gdb_bfd_ref_ptr.
6813 <~dwo_file>: Remove call to gdb_bfd_unref.
6814 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6815 gdb_bfd_ref_ptr::get.
6816
6817 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6818
6819 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6820 type to htab_up.
6821 * dwarf2read.c (struct dwo_file): Initialize fields.
6822 <~dwo_file>: New.
6823 (free_dwo_file): Remove, move content to ~dwo_file.
6824 (struct dwo_file_deleter): Remove.
6825 (dwo_file_up>: Remove custom deleter.
6826 (free_dwo_files): Remove.
6827 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6828 dwo_files.
6829 (process_skeletonless_type_units): Call unique_ptr::get.
6830 (allocate_dwo_file_hash_table): Add deleter to created hash
6831 table. Change return type to htab_up.
6832 (lookup_dwo_file_slot): Don't memset dwo_file, call
6833 unique_ptr::get.
6834 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6835 (create_dwo_unit_in_dwp_v2): Likewise.
6836 (open_and_init_dwo_file): Likewise.
6837 (free_dwo_file_from_slot): Remove.
6838
6839 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * dwarf2read.h (struct dwarf2_section_info) <readin,
6842 is_virtual>: Change type to bool.
6843 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6844 true instead of 1.
6845
6846 2019-06-19 Tom Tromey <tom@tromey.com>
6847
6848 * tui/tui-data.h (tui_init_content_element): Don't declare.
6849
6850 2019-06-19 Tom Tromey <tom@tromey.com>
6851
6852 * tui/tui-data.h (tui_init_win_info): Don't declare.
6853
6854 2019-06-19 Tom de Vries <tdevries@suse.de>
6855
6856 * dwarf2read.h (abstract_to_concrete): Change type to
6857 std::unordered_map<sect_offset, std::vector<sect_offset>,
6858 gdb::hash_enum<sect_offset>>.
6859
6860 2019-06-19 Tom Tromey <tromey@adacore.com>
6861
6862 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6863 EVAL_AVOID_SIDE_EFFECTS specially.
6864
6865 2019-06-19 Tom Tromey <tromey@adacore.com>
6866
6867 * source-cache.c (highlighter): New global.
6868 (source_cache::get_source_lines): Create a highlighter on demand.
6869
6870 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6871
6872 * defs.h (deprecated_interactive_hook): Delete declaration.
6873 * interps.c (clear_interpreter_hooks): Remove use of
6874 deprecated_interactive_hook.
6875 * top.c (deprecated_interactive_hook): Delete definition.
6876 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6877
6878 2019-06-18 Tom de Vries <tdevries@suse.de>
6879
6880 PR gdb/24515
6881 * dwarf2read.h (abstract_to_concrete): Change type from
6882 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6883 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6884 * dwarf2read.c (read_variable): Update.
6885 (dwarf2_fetch_die_loc_sect_off): Update.
6886
6887 2019-06-17 Tom de Vries <tdevries@suse.de>
6888
6889 PR gdb/24617
6890 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6891 accessing parent[parent_len - 1].
6892
6893 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6894
6895 PR gdb/24364
6896 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6897 call dtrace_process_dof with NULL dof.
6898
6899 2019-06-16 Tom de Vries <tdevries@suse.de>
6900
6901 PR gdb/24445
6902 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6903
6904 2019-06-16 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6907 (make_all_visible): Use address of member.
6908
6909 2019-06-16 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6912 (tui_free_window, free_content, free_content_elements): Remove
6913 unnecessary cast.
6914 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6915 cast.
6916 * tui/tui-regs.c (tui_show_register_group)
6917 (tui_display_registers_from, tui_display_reg_element_at_line):
6918 Remove unnecessary cast.
6919
6920 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * linux-nat.c (normal_mask): Delete.
6923 (_initialize_linux_nat): Don't initialise normal_mask.
6924
6925 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6926
6927 PR gdb/24445
6928 * dwarf-index-write.h (write_psymtabs_to_index): Add
6929 dwz_basename parameter.
6930 * dwarf-index-write.c (write_gdbindex): Move file writing to
6931 write_gdbindex_1. Change return type void.
6932 (assert_file_size): Move up, remove filename parameter.
6933 (write_gdbindex_1): New function.
6934 (write_debug_names): Change return type to void, call
6935 assert_file_size.
6936 (struct index_wip_file): New struct.
6937 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6938 file logic to index_wip_file. Write index for dwz file if
6939 needed.
6940 (save_gdb_index_command): Pass basename of dwz file, if present.
6941 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6942 build-id of dwz file, if present.
6943 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6944 (dwarf2_get_dwz_file): Likewise.
6945 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6946 (dwarf2_get_dwz_file): Likewise.
6947
6948 2019-06-16 Tom Tromey <tom@tromey.com>
6949
6950 * coffread.c (process_coff_symbol): Use xstrdup.
6951 * value.c (create_internalvar): Use xstrdup.
6952
6953 2019-06-16 Tom Tromey <tom@tromey.com>
6954
6955 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6956 * breakpoint.c (stopin_command, stopat_command)
6957 (until_break_command, decode_location_default): Remove unnecessary
6958 cast.
6959 * utils.c (subset_compare): Remove unnecessary cast.
6960 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6961 cast.
6962 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6963 cast.
6964 * infcmd.c (path_command): Remove unnecessary cast.
6965 * coffread.c (decode_type): Remove unnecessary cast.
6966 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6967 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6968 * tui/tui-stack.c (tui_show_locator_content)
6969 (tui_show_frame_info): Remove unnecessary cast.
6970 * tui/tui-win.c (tui_scroll_forward_command)
6971 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6972 (parse_scrolling_args): Remove unnecessary cast.
6973 * tui/tui-data.c (init_win_info, tui_del_window)
6974 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6975 (free_content_elements): Remove unnecessary cast.
6976 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6977 unnecessary cast.
6978 * tui/tui-source.c (tui_set_source_content)
6979 (tui_vertical_source_scroll): Remove unnecessary cast.
6980 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6981 cast.
6982 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6983 * tui/tui-regs.c (tui_display_registers_from)
6984 (tui_display_register): Remove unnecessary cast.
6985 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6986 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6987 (make_visible): Remove unnecessary cast.
6988 * tui/tui-winsource.c (tui_erase_source_content)
6989 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6990 unnecessary cast.
6991 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6992 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6993 * stabsread.c (read_type, read_array_type, read_range_type):
6994 Remove unnecessary cast.
6995 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6996 (parse_symbol, parse_type, upgrade_type, parse_external)
6997 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6998 unnecessary cast.
6999 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7000
7001 2019-06-16 Tom Tromey <tom@tromey.com>
7002
7003 * tui/tui-data.c (tui_alloc_generic_win_info)
7004 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7005 checks.
7006
7007 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7008 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * f-typeprint.c (f_print_type): Don't return early for not
7011 associated or not allocated types.
7012 (f_type_print_varspec_suffix): Add print_rank parameter and print
7013 ranks of array types in case they dangling.
7014 (f_type_print_base): Add print_rank parameter.
7015
7016 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7017
7018 * NEWS: Mention new MI commands.
7019 * break-catch-throw.c (enum exception_event_kind): Move to
7020 breakpoint.h.
7021 (print_mention_exception_catchpoint): Output text as a single
7022 message.
7023 (catch_exception_command_1): Rename to...
7024 (catch_exception_event): ...this, make non-static, update header
7025 command, and change some parameter types.
7026 (catch_catch_command): Update for changes to
7027 catch_exception_command_1.
7028 (catch_throw_command): Likewise.
7029 (catch_rethrow_command): Likewise.
7030 * breakpoint.c (enum exception_event_kind): Delete.
7031 * breakpoint.h (enum exception_event_kind): Moved here from
7032 break-catch-throw.c.
7033 (catch_exception_event): Declare.
7034 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7035 (mi_cmd_catch_throw): New function.
7036 (mi_cmd_catch_rethrow): New function.
7037 (mi_cmd_catch_catch): New function.
7038 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7039 'catch-catch' entries.
7040 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7041 (mi_cmd_catch_rethrow): Declare.
7042 (mi_cmd_catch_catch): Declare.
7043
7044 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * annotate.c (annotate_source_line): Change return type to void,
7047 update implementation to match.
7048 * annotate.h (annotate_source_line): Change return type to void,
7049 update header comment.
7050 * stack.c (print_frame_info): Don't change what frame information
7051 is printed based on whether annotations are on or not.
7052
7053 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7054
7055 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7056 (annotate_source): Make static.
7057 (annotate_source_line): Moved from source.c and renamed from
7058 identify_source_line. Update the return type.
7059 * annotate.h (annotate_source): Delete declaration.
7060 (annotate_source_line): Declaration moved from source.h, and
7061 renamed from identify_source_line. Return type updated.
7062 * source.c (identify_source_line): Moved to annotate.c and renamed
7063 to annotate_source_line.
7064 (info_line_command): Remove check of annotation_level.
7065 * source.h (identify_source_line): Move declaration to annotate.h
7066 and rename to annotate_source_line.
7067 * stack.c: Add 'annotate.h' include.
7068 (print_frame_info): Remove check of annotation_level before
7069 calling annotate_source_line.
7070
7071 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * source-cache.c (source_cache::get_plain_source_lines): Use
7074 open_source_file_with_line_charpos instead of just
7075 open_source_file, remove call to find_source_lines.
7076 (source_cache::get_source_lines): Likewise.
7077 * source.c (find_source_lines): Make static.
7078 (get_filename_and_charpos): Renamed into...
7079 (open_source_file_with_line_charpos): ..this along with changes to
7080 return a scoped_fd, and some other minor clean ups.
7081 (identify_source_line): Use open_source_file_with_line_charpos.
7082 (search_command_helper): Use open_source_file_with_line_charpos
7083 instead of just open_source_file, remove call to
7084 find_source_lines.
7085 * source.h (open_source_file_with_line_charpos): Declare new
7086 function.
7087 (find_source_lines): Delete declaration.
7088
7089 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7090
7091 * source.c (get_filename_and_charpos): Remove fullname
7092 parameter.
7093 (identify_source_line): Update call to get_filename_and_charpos.
7094
7095 2019-06-14 Tom Tromey <tromey@adacore.com>
7096
7097 PR gdb/24502:
7098 * ui-style.h (skip_ansi_escape): Update comment.
7099 * ui-file.h (class no_terminal_escape_file): New class.
7100 * ui-file.c (no_terminal_escape_file::write)
7101 (no_terminal_escape_file::puts): New methods.
7102 * cli/cli-logging.c (handle_redirections): Use
7103 no_terminal_escape_file.
7104
7105 2019-06-14 Tom Tromey <tromey@adacore.com>
7106
7107 * NEWS: Move convenience variable news above Python news.
7108
7109 2019-06-14 Tom Tromey <tom@tromey.com>
7110
7111 * gnulib: Move directory to top-level.
7112 * configure.ac: Don't configure gnulib.
7113 * configure: Rebuild.
7114 * common/common-defs.h: Use new path to gnulib.
7115 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7116 (GNULIB_H): Remove.
7117 (INCGNU): Look in new gnulib location.
7118 (HFILES_NO_SRCDIR): Remove gnulib files.
7119 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7120 (generated_files): Remove GNULIB_H.
7121 ($(LIBGNU), all-lib): Remove targets.
7122 (distclean): Don't mention GNULIB_BUILDDIR.
7123 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7124
7125 2019-06-14 Tom Tromey <tromey@adacore.com>
7126
7127 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7128 Warn if symbol file does not provide any symbols.
7129
7130 2019-06-14 Tom Tromey <tromey@adacore.com>
7131
7132 * source.c (find_and_open_source): Respect basenames_may_differ.
7133
7134 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * annotate.c (annotate_breakpoints_invalid): Make use of
7137 scoped_restore_terminal_state.
7138 (annotate_frames_invalid): Likewise.
7139
7140 2019-06-14 Tom Tromey <tromey@adacore.com>
7141
7142 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7143 allow assignment to an internalvar.
7144
7145 2019-06-14 Tom Tromey <tromey@adacore.com>
7146
7147 * ada-lex.l: Allow "_" in attribute names.
7148
7149 2019-06-14 Tom Tromey <tromey@adacore.com>
7150
7151 PR gdb/24653:
7152 * regcache.c (registers_changed): Don't call alloca.
7153 * top.c (execute_command): Don't call alloca.
7154
7155 2019-06-13 Pedro Alves <palves@redhat.com>
7156
7157 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7158 'expression'. When parsing an expression, error out if there's
7159 junk after "unlimited".
7160 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7161 (do_set_command): Adjust calls to is_unlimited_literal.
7162
7163 2019-06-13 Pedro Alves <palves@redhat.com>
7164
7165 * compile/compile.c (make_compile_options_def_group): Add braces
7166 around array_view initializer.
7167 * thread.c (make_thread_apply_all_options_def_group)
7168 (make_thread_apply_all_options_def_group): Likewise.
7169
7170 2019-06-13 Pedro Alves <palves@redhat.com>
7171
7172 * NEWS (New commands): Mention "maint test-options
7173 require-delimiter", "maint test-options unknown-is-error", "maint
7174 test-options unknown-is-operand" and "maint show
7175 test-options-completion-result".
7176 (New command options, command completion): New section.
7177 (Completion improvements): New section.
7178 Mention that you can abbreviate "unlimited".
7179
7180 2019-06-13 Pedro Alves <palves@redhat.com>
7181
7182 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7183 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7184 * unittests/cli-utils-selftests.c (test_parse_flags)
7185 (test_parse_flags_qcs): Delete.
7186 (test_cli_utils): Don't call deleted functions.
7187
7188 2019-06-13 Pedro Alves <palves@redhat.com>
7189
7190 * thread.c: Include "cli/cli-option.h".
7191 (tp_array_compar_ascending): Global.
7192 (tp_array_compar): Delete function.
7193 (tp_array_compar_ascending, tp_array_compar_descending): New
7194 functions.
7195 (ascending_option_def, qcs_flag_option_def)
7196 (thr_qcs_flags_option_defs)
7197 (make_thread_apply_all_options_def_group)
7198 (make_thread_apply_options_def_group): New.
7199 (thread_apply_all_command): Use gdb::option::process_options.
7200 (thread_apply_command_completer)
7201 (thread_apply_all_command_completer): New.
7202 (thread_apply_command): Use gdb::option::process_options.
7203 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7204 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7205 to generate help text of "thread apply". Adjust "taas"'s help.
7206 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7207 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7208
7209 2019-06-13 Pedro Alves <palves@redhat.com>
7210
7211 * thread.c (thread_apply_command): Check for invalid TID with
7212 isdigit instead of !isalpha.
7213
7214 2019-06-13 Pedro Alves <palves@redhat.com>
7215
7216 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7217 (validate_flags_qcs): New.
7218 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7219 (validate_flags_qcs): Declare.
7220 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7221 (make_frame_apply_options_def_group): New.
7222 (frame_apply_command_count): Process options with
7223 gdb::option::process_options.
7224 (frame_apply_completer): New.
7225 (frame_apply_level_completer, frame_apply_all_completer)
7226 (frame_apply_completer): New.
7227 (_initialize_stack): Update help of "frame apply", "frame apply
7228 level", "frame apply all" and "faas" to mention supported options
7229 and install command completers.
7230 * stack.h (frame_apply_all_completer): Declare.
7231 * thread.c: Include "stack.h".
7232 (tfaas_command): Add "--".
7233 (_initialize_thread): Update help "tfaas" to mention supported
7234 options and install command completer.
7235
7236 2019-06-13 Pedro Alves <palves@redhat.com>
7237
7238 * completer.c (complete_nested_command_line): New.
7239 (gdb_completion_word_break_characters_throw): Add assertion.
7240 * completer.h (complete_nested_command_line): Declare.
7241
7242 2019-06-13 Pedro Alves <palves@redhat.com>
7243
7244 * stack.c (parse_backtrace_qualifiers): New.
7245 (backtrace_command): Use it.
7246 (backtrace_command_completer): Complete on qualifiers.
7247
7248 2019-06-13 Pedro Alves <palves@redhat.com>
7249
7250 * frame.c: Include "cli/cli-option.h.
7251 (user_set_backtrace_options): New.
7252 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7253 Delete.
7254 (get_prev_frame): Adjust.
7255 (boolean_option_def, uinteger_option_def)
7256 (set_backtrace_option_defs): New.
7257 (_initialize_frame): Adjust and use
7258 gdb::option::add_setshow_cmds_for_options to install "set
7259 backtrace past-main" and "set backtrace past-entry".
7260 * frame.h: Include "cli/cli-option.h".
7261 (struct frame_print_options): Forward declare.
7262 (print_frame_arguments_all, print_frame_arguments_scalars)
7263 (print_frame_arguments_none): Declare.
7264 (print_entry_values): Delete declaration.
7265 (struct frame_print_options, user_frame_print_options): New.
7266 (struct set_backtrace_options): New.
7267 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7268 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7269 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7270 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7271 (list_args_or_locals): Add frame_print_options parameter.
7272 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7273 * python/py-framefilter.c (enumerate_args): Pass down
7274 USER_FRAME_PRINT_OPTIONS.
7275 * stack.c: Include "cli/cli-option.h".
7276 (print_frame_arguments_all, print_frame_arguments_scalars)
7277 (print_frame_arguments_none): Declare.
7278 (print_raw_frame_arguments, print_entry_values): Delete.
7279 (user_frame_print_options): New.
7280 (boolean_option_def, enum_option_def, frame_print_option_defs):
7281 New.
7282 (struct backtrace_cmd_options): New.
7283 (bt_flag_option_def): New.
7284 (backtrace_command_option_defs): New.
7285 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7286 (print_frame_arg, read_frame_arg, print_frame_args)
7287 (print_frame_info, print_frame): Add frame_print_options parameter
7288 and use it.
7289 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7290 (backtrace_command_1): Add frame_print_options and
7291 backtrace_cmd_options parameters and use them.
7292 (make_backtrace_options_def_group): New.
7293 (backtrace_command): Process command options with
7294 gdb::option::process_options.
7295 (backtrace_command_completer): New.
7296 (_initialize_stack): Extend "backtrace"'s help to mention
7297 supported options. Install completer for "backtrace".
7298 Install some settings commands with add_setshow_cmds_for_options.
7299
7300 2019-06-13 Pedro Alves <palves@redhat.com>
7301
7302 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7303 and that "set/show print raw frame-arguments" are now deprecated.
7304
7305 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7306 command.
7307 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7308 * stack.c (_initialize_stack): Install "set/show print
7309 raw-frame-arguments", and deprecate "set/show print raw
7310 frame-arguments".
7311 * valprint.c (_initialize_valprint): Deprecate "set/show print
7312 raw".
7313
7314 2019-06-13 Pedro Alves <palves@redhat.com>
7315
7316 * compile/compile.c (struct compile_options): New.
7317 (compile_flag_option_def, compile_command_option_defs)
7318 (make_compile_options_def_group): New.
7319 (compile_file_command): Handle options with
7320 gdb::option::process_options.
7321 (compile_file_command_completer): New function.
7322 (compile_code_command): Handle options with
7323 gdb::option::process_options.
7324 (compile_code_command_completer): New function.
7325 (_initialize_compiler): Install completers for "compile code" and
7326 "compile file". Mention available options in "compile code" and
7327 "compile code"'s help.
7328 * completer.c (advance_to_completion_word): New, factored out from
7329 ...
7330 (advance_to_expression_complete_word_point): ... this.
7331 (advance_to_filename_complete_word_point): New.
7332 * completer.h (advance_to_filename_complete_word_point): New
7333 declaration.
7334
7335 2019-06-13 Pedro Alves <palves@redhat.com>
7336
7337 * compile/compile.c: Include "cli/cli-option.h".
7338 (compile_print_value): Scope data pointer is now a
7339 value_print_options pointer; adjust.
7340 (compile_print_command): Process options. Scope data pointer is
7341 now a value_print_options pointer; adjust.
7342 (_initialize_compile): Update "compile print"'s help to include
7343 supported options. Install a completer for "compile print".
7344 * cp-valprint.c (show_vtblprint, show_objectprint)
7345 (show_static_field_print): Delete.
7346 (_initialize_cp_valprint): Don't install "set print
7347 static-members", "set print vtbl", "set print object" here.
7348 * printcmd.c: Include "cli/cli-option.h" and
7349 "common/gdb_optional.h".
7350 (print_command_parse_format): Rework to fill in a
7351 value_print_options instead of a format_data.
7352 (print_value): Change parameter type from format_data pointer to
7353 value_print_options reference. Adjust.
7354 (print_command_1): Process options. Adjust to pass down a
7355 value_print_options.
7356 (print_command_completer): New.
7357 (_initialize_printcmd): Install print_command_completer as
7358 handle_brkchars completer for the "print" command. Update
7359 "print"'s help to include supported options.
7360 * valprint.c: Include "cli/cli-option.h".
7361 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7362 here from cp-valprint.c.
7363 (boolean_option_def, uinteger_option_def)
7364 (value_print_option_defs, make_value_print_options_def_group):
7365 New. Use gdb::option::add_setshow_cmds_for_options to install
7366 "set print elements", "set print null-stop", "set print repeats",
7367 "set print pretty", "set print union", "set print array", "set
7368 print address", "set print symbol", "set print array-indexes".
7369 * valprint.h: Include <string> and "cli/cli-option.h".
7370 (make_value_print_options_def_group): Declare.
7371 (print_value): Change parameter type from format_data pointer to
7372 value_print_options reference.
7373 (print_command_completer): Declare.
7374
7375 2019-06-13 Pedro Alves <palves@redhat.com>
7376
7377 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7378 (COMMON_SFILES): Add maint-test-settings.c.
7379 * cli/cli-decode.c (boolean_enums): New global, factored out from
7380 ...
7381 (add_setshow_boolean_cmd): ... here.
7382 * cli/cli-decode.h (boolean_enums): Declare.
7383 * cli/cli-option.c: New file.
7384 * cli/cli-option.h: New file.
7385 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7386 factored out from ...
7387 (parse_cli_boolean_value(const char *)): ... this.
7388 (is_unlimited_literal): Change parameter type to pointer to
7389 pointer. Adjust and advance ARG pointer.
7390 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7391 (parse_cli_var_enum): New, factored out from ...
7392 (do_set_command): ... this. Adjust.
7393 * cli/cli-setshow.h (parse_cli_boolean_value)
7394 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7395 (parse_cli_var_enum): Declare.
7396 * cli/cli-utils.c: Include "cli/cli-option.h".
7397 (get_ulongest): New.
7398 * cli/cli-utils.h (get_ulongest): Declare.
7399 (check_for_argument): New overloads.
7400 * maint-test-options.c: New file.
7401
7402 2019-06-13 Pedro Alves <palves@redhat.com>
7403
7404 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7405 parse a range if "-" is at the end of the string.
7406
7407 2019-06-13 Pedro Alves <palves@redhat.com>
7408
7409 * cli/cli-setshow.c (parse_auto_binary_operation)
7410 (parse_cli_boolean_value): Don't allow "o".
7411
7412 2019-06-13 Pedro Alves <palves@redhat.com>
7413
7414 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7415 * NEWS: Mention maint test-settings KIND.
7416 * maint-test-settings.c: New file.
7417
7418 2019-06-13 Pedro Alves <palves@redhat.com>
7419
7420 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7421 completer.
7422 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7423 "set" completers.
7424
7425 2019-06-13 Pedro Alves <palves@redhat.com>
7426
7427 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7428 after item.
7429
7430 2019-06-13 Pedro Alves <palves@redhat.com>
7431
7432 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7433
7434 2019-06-13 Pedro Alves <palves@redhat.com>
7435
7436 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7437 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7438 call.
7439 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7440 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7441 calls.
7442 (check_for_argument): Skip spaces after argument.
7443
7444 2019-06-13 Pedro Alves <palves@redhat.com>
7445
7446 * thread.c (thread_apply_command): Adjust TID parsing.
7447 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7448 detected before end of string.
7449 (tid_is_in_list): Error out if LIST is invalid.
7450
7451 2019-06-13 Pedro Alves <palves@redhat.com>
7452
7453 * completer.c (complete_line_internal_1): Rewind completion word
7454 point.
7455 (completion_tracker::advance_custom_word_point_by): Change
7456 parameter type to int.
7457 * completer.h (completion_tracker::advance_custom_word_point_by):
7458 Likewise.
7459
7460 2019-06-13 Pedro Alves <palves@redhat.com>
7461
7462 * completer.c (advance_to_completion_word): Handle delimiters.
7463
7464 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7465
7466 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7467
7468 2019-06-11 Tom Tromey <tom@tromey.com>
7469
7470 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7471 (xmalloc_failed): Move to alloc.c.
7472 * alloc.c: New file.
7473 * Makefile.in (COMMON_SFILES): Add alloc.c.
7474
7475 2019-06-11 Tom Tromey <tom@tromey.com>
7476
7477 * nat/linux-waitpid.c: Don't include server.h.
7478 (linux_debug): Remove.
7479 (my_waitpid): Update.
7480
7481 2019-06-11 Tom Tromey <tromey@adacore.com>
7482
7483 * infcall.c (_initialize_infcall): Remove trailing newline from
7484 help.
7485 * user-regs.c (_initialize_user_regs): Remove trailing newline
7486 from help.
7487 * typeprint.c (_initialize_typeprint): Remove trailing newline
7488 from help.
7489 * reverse.c (_initialize_reverse): Remove trailing newlines from
7490 help.
7491 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7492 from help.
7493 * language.c (add_set_language_command): Remove trailing newline
7494 from help.
7495 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7496 help.
7497 * disasm.c (_initialize_disasm): Remove trailing newline from
7498 help.
7499 * top.c (init_main): Remove trailing newline from help.
7500 * interps.c (_initialize_interpreter): Remove trailing newline
7501 from help.
7502 * btrace.c (_initialize_btrace): Remove trailing newlines from
7503 help.
7504 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7505 from help.
7506 * python/python.c (_initialize_python): Remove trailing newline
7507 from help.
7508 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7509 help.
7510 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7511 from help. Reformat some text.
7512 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7513 from help.
7514 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7515 newline from help.
7516
7517 2019-06-11 Tom Tromey <tromey@adacore.com>
7518
7519 * darwin-nat.c (darwin_decode_exception_message)
7520 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7521
7522 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * valops.c (value_slice): Check for not allocated or not
7525 associated values.
7526
7527 2019-06-10 Tom de Vries <tdevries@suse.de>
7528
7529 PR gdb/24618
7530 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7531 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7532 invalid.
7533
7534 2019-06-10 Tom de Vries <tdevries@suse.de>
7535
7536 PR gdb/24611
7537 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7538 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7539
7540 2019-06-10 Tom de Vries <tdevries@suse.de>
7541
7542 PR symtab/24545
7543 * symtab.c (struct demangled_name_entry): Add language field.
7544 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7545 static minimal symbol". Set and use language field.
7546
7547 2019-06-10 Tom Tromey <tromey@adacore.com>
7548
7549 * ada-lang.c (_initialize_ada_language): Update help text.
7550
7551 2019-06-10 Tom Tromey <tromey@adacore.com>
7552
7553 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7554 with a newline.
7555 * guile/guile.c (handle_boot_error): Don't end warning with a
7556 newline.
7557 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7558 warning with a newline.
7559 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7560 newline.
7561 (s12z_frame_cache): Likewise.
7562 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7563 a newline.
7564 * solib-svr4.c (disable_probes_interface): Don't end warning with
7565 a newline.
7566 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7567 newline.
7568 * python/python.c (do_finish_initialization): Don't end warning
7569 with a newline.
7570
7571 2019-06-10 Tom Tromey <tom@tromey.com>
7572
7573 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7574 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7575 gdbpy_enter.
7576
7577 2019-06-10 Tom Tromey <tromey@adacore.com>
7578
7579 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7580 data.
7581 (elf_new_init): Don't call stabsread_new_init.
7582 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7583 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7584 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7585
7586 2019-06-10 Tom de Vries <tdevries@suse.de>
7587
7588 PR symtab/16264
7589 PR symtab/24517
7590 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7591
7592 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7593
7594 * source.c (find_and_open_source): Also rewrite relative file
7595 names.
7596
7597 2019-04-26 Amos Bird <amosbird@gmail.com>
7598
7599 * annotate.c (annotate_thread_exited): Add "thread-exited"
7600 annotation.
7601
7602 2019-06-06 Tom Tromey <tromey@adacore.com>
7603
7604 * maint.h (class scoped_command_stats): Use
7605 DISABLE_COPY_AND_ASSIGN.
7606 <print_time>: New method.
7607 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7608 print_time.
7609 (scoped_command_stats::print_time): New method.
7610
7611 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7614 instructions of lengths 6 or 8 bytes.
7615
7616 2019-06-04 Pedro Alves <palves@redhat.com>
7617
7618 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7619
7620 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7621 * breakpoint.c (condition_completer): Likewise.
7622 * cli/cli-dump.c (scan_expression): Likewise.
7623 * common/filestuff.c (mkdir_recursive): Likewise.
7624 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7625 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7626 (gdb_abspath): Likewise.
7627 * compile/compile-cplus-types.c
7628 (compile_cplus_instance::decl_name): Likewise.
7629 * completer.c (complete_explicit_location):
7630 (signal_completer, reg_or_group_completer_1): Likewise.
7631 * cp-support.c (cp_remove_params_if_any): Likewise.
7632 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7633 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7634 * infcmd.c (strip_bg_char): Likewise.
7635 * linespec.c (copy_token_string): Likewise.
7636 * mi/mi-main.c (output_cores): Likewise.
7637 * psymtab.c (psymtab_search_name):
7638 * symfile.c (test_set_ext_lang_command): Likewise.
7639 * target.c (target_fileio_read_stralloc): Likewise.
7640 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7641 * value.c (complete_internalvar): Likewise.
7642
7643 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7644
7645 Add objfile property to gdb.Type.
7646 * NEWS: Mention Python API addition.
7647 * python/py-type.c (typy_get_objfile): New method.
7648
7649 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7650
7651 * NEWS: Mention the new set|show style [title|highlight].
7652 Mention changes to "show style", "help" and "apropos".
7653
7654 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7655
7656 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7657 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7658 instead of print_help_for_command.
7659 (print_doc_of_command): New function.
7660 (help_list): Add 'apropos -v word' suggestion.
7661 (print_help_for_command): Style the command name using title style.
7662 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7663 (_initialize_cli_cmds): Describe -v in apropos_command help.
7664
7665 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7666
7667 * cli/cli-style.h (cli_style_option): Add name in constructor,
7668 add m_name class member, add constructor with intensity,
7669 add name class function.
7670 (cli_style_option::add_setshow_commands): Remove name argument.
7671 (highlight_style, title_style): New styles.
7672 * cli/cli-style.c (do_show): New function that shows a style
7673 characteristic styling the style name with itself.
7674 (set_style_name): New function.
7675 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7676 Update all callers according to the changes in cli/cli-style.h.
7677 * utils.h (fputs_highlighted): New function.
7678 * utils.c (fputs_highlighted): Likewise.
7679
7680 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7681
7682 * NEWS: Mention new pipe command and new convenience variables.
7683
7684 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7685
7686 * cli/cli-cmds.c (pipe_command): New function.
7687 (_initialize_cli_cmds): Call add_com for pipe_command.
7688 Define | as an alias for pipe.
7689 (exit_status_set_internal_vars): New function.
7690 (shell_escape): Call exit_status_set_internal_vars.
7691 cli/cli-decode.c (find_command_name_length): Recognize | as
7692 a single character command.
7693
7694 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7695
7696 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7697 top.c (execute_command_to_ui_file): New function, mostly a copy
7698 of execute_command_to_string.
7699 (execute_command_to_string): Implement by calling
7700 execute_command_to_ui_file.
7701
7702 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7703
7704 * top.h (saved_command_line): Remove declaration.
7705 * top.c (previous_saved_command_line, previous_repeat_arguments):
7706 New variables.
7707 (saved_command_line): Make static, define together with other
7708 'repeat variables'.
7709 (dont_repeat): Clear repeat_arguments.
7710 (repeat_previous, get_saved_command_line, save_command_line):
7711 New functions.
7712 (gdb_init): Initialize saved_command_line
7713 and previous_saved_command_line.
7714 * main.c (captured_main_1): Remove saved_command_line initialization.
7715 * event-top.c (handle_line_of_input): Update to use
7716 the new 'repeat' related functions instead of direct access to
7717 saved_command_line.
7718 * command.h (repeat_previous, get_saved_command_line,
7719 save_command_line): New declarations.
7720 (dont_repeat): Add comment.
7721
7722 2019-05-30 Tom Tromey <tromey@adacore.com>
7723
7724 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7725 Fix comment.
7726 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7727
7728 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7729
7730 PR cli/24587
7731 * completer.c (complete): Initialize variable word.
7732
7733 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7734
7735 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7736 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7737 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7738 'body' is NULL to the outter 'if', protecting the '!is_define'
7739 situation as well.
7740
7741 2019-05-29 Tom Tromey <tromey@adacore.com>
7742
7743 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7744 (dwarf_unknown): New function.
7745 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7746 (dwarf_type_encoding_name): Use dwarf_unknown.
7747
7748 2019-05-29 Tom Tromey <tromey@adacore.com>
7749
7750 PR c++/20020:
7751 * cp-valprint.c (cp_print_value_fields): Call
7752 cp_print_static_field inside "try".
7753
7754 2019-05-29 Tom Tromey <tromey@adacore.com>
7755
7756 * inflow.c (struct terminal_info): Add default operator=.
7757 * configure: Rebuild.
7758 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7759 -Wdeprecated-copy-dtor, -Wredundant-move.
7760
7761 2019-05-29 Tom Tromey <tromey@adacore.com>
7762
7763 * NEWS: Add entry.
7764 * infcmd.c (print_return_value_1): Handle finish_print
7765 option.
7766 (show_print_finish): New function.
7767 (_initialize_infcmd): Add "set/show print finish" commands.
7768 * valprint.c (user_print_options): Initialize new member.
7769 * valprint.h (struct value_print_options) <finish_print>: New
7770 member.
7771
7772 2019-05-28 Tom Tromey <tromey@adacore.com>
7773
7774 * ada-lang.c (ada_remove_Xbn_suffix)
7775 (find_old_style_renaming_symbol)
7776 (parse_old_style_renaming): Remove.
7777 (ada_find_renaming_symbol): Don't call
7778 find_old_style_renaming_symbol.
7779 (ada_is_renaming_symbol): Rename from
7780 ada_find_renaming_symbol. Remove "block" parameter. Return
7781 bool. Now static.
7782 (ada_read_var_value): Update and simplify.
7783 * ada-exp.y (write_var_or_type): Remove old code.
7784
7785 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7786
7787 PR gdb/25010
7788 * event-top.c: Remove include comment.
7789 * inflow.c (class scoped_ignore_sigttou): Move from here...
7790 * inflow.h (class scoped_ignore_sigttou): ...to here.
7791 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7792 * top.c: Remove include comment.
7793
7794 2019-05-27 Tom Tromey <tom@tromey.com>
7795
7796 * NEWS: Fix typo.
7797
7798 2019-05-22 Tom Tromey <tromey@adacore.com>
7799
7800 * target.c (target_follow_exec): Constify parameter.
7801 * target-delegates.c: Rebuild.
7802 * remote.c (remote_target::follow_exec): Constify parameter.
7803 * infrun.c (follow_exec): Constify parameter.
7804 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7805 (target_follow_exec): Likewise.
7806
7807 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7808
7809 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7810 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7811
7812 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7813
7814 * NEWS: Add debugredirect and testsuite sections.
7815
7816 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7817
7818 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7819 target descriptions using exclusively floating point register name
7820 aliases.
7821
7822 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7823
7824 PR gdb/18644:
7825 * f-lang.c (build_fortran_types): Handle the case where
7826 gdbarch_floatformat_for_type returns a nullptr.
7827
7828 2019-05-21 Tom de Vries <tdevries@suse.de>
7829
7830 PR cli/24587
7831 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7832
7833 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 PR gdb/18644:
7836 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7837 16-byte floats.
7838 * i386-tdep.c (i386_floatformat_for_type): Use
7839 floatformats_ia64_quad for the 16-byte floating point component
7840 within a fortran 32-byte complex number.
7841
7842 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7845 delete default constructor.
7846 (find_partial_die): Update to return const struct.
7847 (partial_die_parent_scope): Move variable declaration into scope
7848 of its use and change its type to auto.
7849 (guess_partial_die_structure_name): Likewise.
7850 (partial_die_info::fixup): Likewise.
7851
7852 2019-05-17 Tom Tromey <tromey@adacore.com>
7853
7854 * source.c (find_and_open_source): Remove cast.
7855
7856 2019-05-17 Tom Tromey <tromey@adacore.com>
7857
7858 * annotate.c (annotate_source): Make "filename" const.
7859 * annotate.h (annotate_source): Use const.
7860
7861 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7862
7863 * disasm.c (set_disassembler_options): Send errors to stderr.
7864
7865 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7866
7867 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7868 (cli_interp_base::set_logging): Check debug_redirect.
7869 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7870 * cli/cli-logging.c (debug_redirect): Add static variable.
7871 (pop_output_files): Add default param.
7872 (handle_redirections): Print debug setting.
7873 (show_logging_command): Likewise.
7874 (_initialize_cli_logging): Add debugredirect command.
7875 * interps.c (current_interp_set_logging): Add debug_redirect
7876 parameter.
7877 * interps.h (set_logging): Add debug_redirect parameter.
7878 (current_interp_set_logging): Likewise.
7879 * mi/mi-common.h: Likewise.
7880 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7881
7882 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7883 Tom Tromey <tromey@adacore.com>
7884
7885 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7886 directly.
7887 * cli/cli-interp.h (make_logging_output): Remove declaration.
7888 * cli/cli-logging.c (make_logging_output): Remove function.
7889 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7890 directly.
7891 * ui-file.c (tee_file::tee_file): Remove bools.
7892 (tee_file::~tee_file): Remove deletes.
7893 * ui-file.h (tee_file): Remove bools.
7894
7895 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7896
7897 * mi/mi-cmds.h (mi_cmd_complete): New function.
7898 * mi/mi-main.c (mi_cmd_complete): Likewise.
7899 * mi/mi-cmds.c: Define new MI command -complete.
7900 * NEWS: Mention new -complete command.
7901
7902 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7903
7904 * completer.h (complete): New function.
7905 * completer.c (complete): Likewise.
7906 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7907 function defined in completer.h.
7908
7909 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7910
7911 * MAINTAINERS (Write After Approval): Add myself.
7912
7913 2019-05-17 Tom de Vries <tdevries@suse.de>
7914
7915 PR gdb/24094
7916 * dwarf2read.c (struct cu_partial_die_info): New struct.
7917 (find_partial_die): Return cu_partial_die_info.
7918 (partial_die_parent_scope, guess_partial_die_structure_name)
7919 (partial_die_info::fixup): Handle new return type of find_partial_die.
7920
7921 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7922
7923 PR breakpoints/24541
7924 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7925 "std::string", simplifying the algorithm.
7926
7927 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7928
7929 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7930 (stap_static_probe_ops::get_probes): Likewise.
7931
7932 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7935 '-')" and "else if".
7936 (stap_parse_single_operand): Join checks for
7937 "gdbarch_stap_parse_special_token_p" and
7938 "gdbarch_stap_parse_special_token" in the same "if" statement.
7939 Invert check when verifying for operation on register
7940 displacement.
7941
7942 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7943
7944 * stap-probe.c (stap_get_opcode): Update comment.
7945 (stap_get_expected_argument_type): Likewise.
7946 (handle_stap_probe): Likewise.
7947
7948 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7949
7950 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7951 return type to 'bool'. Adjust comment. Use 'bool' when
7952 appropriate.
7953 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7954 * stap-probe.c (stap_parse_argument_1): Likewise.
7955 (stap_is_operator): Likewise.
7956 (stap_is_generic_prefix): Likewise.
7957 (stap_is_register_prefix): Likewise.
7958 (stap_is_register_indirection_prefix): Likewise.
7959 (stap_is_integer_prefix): Likewise.
7960 (stap_generic_check_suffix): Likewise.
7961 (stap_check_integer_suffix): Likewise.
7962 (stap_check_register_suffix): Likewise.
7963 (stap_check_register_indirection_suffix): Likewise.
7964 (stap_parse_register_operand): Likewise.
7965 (stap_parse_single_operand): Likewise.
7966 (stap_parse_argument_1): Likewise.
7967 (stap_probe::get_argument_count): Likewise.
7968 (stap_is_operator): Likewise.
7969
7970 2019-05-16 Tom Tromey <tromey@adacore.com>
7971
7972 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7973 keyword to foreach.
7974
7975 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * linux-thread-db.c (try_thread_db_load_1): Change return type
7978 to bool.
7979 (try_thread_db_load): Likewise.
7980 (try_thread_db_load_from_pdir_1): Likewise.
7981 (try_thread_db_load_from_pdir): Likewise.
7982 (try_thread_db_load_from_sdir): Likewise.
7983 (try_thread_db_load_from_dir): Likewise.
7984 (thread_db_load_search): Likewise.
7985 (has_libpthread): Likewise.
7986 (thread_db_load): Likewise.
7987
7988 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7989
7990 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7991 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7992 NULL, and complain/return if that's the case.
7993
7994 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7995
7996 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7997 (advance, posn, abstract_read_memory): New functions.
7998 [struct mem_read_abstraction]: New struct.
7999 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8000
8001 2019-05-14 Tom Tromey <tromey@adacore.com>
8002
8003 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8004 value is not lval_memory.
8005
8006 2019-05-14 Tom Tromey <tromey@adacore.com>
8007
8008 * solib.c (info_sharedlibrary_command): Style the file name.
8009
8010 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8011
8012 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8013 (aarch64_vnv_type): Likewise.
8014 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8015 * common/tdesc.c: Likewise.
8016 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8017 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8018 * features/aarch64-fpu.xml: Add ieee half view.
8019 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8020 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8021 * gdbtypes.h (struct builtin_type): Likewise.
8022 (struct objfile_type): Likewise.
8023
8024 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8025
8026 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8027 typo.
8028 * location.h (string_to_event_location): Likewise.
8029
8030 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8031
8032 GDB 8.3 released.
8033
8034 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8037 New variable declaration.
8038 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8039 New variable.
8040 (print_one_breakpoint): Use ui_out::test_flags and new global
8041 variable to compute use_fixed_output.
8042 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8043 Remove.
8044 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8045 (mi_multi_location_breakpoint_output_fixed): Remove.
8046 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8047 new variable.
8048 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8049 fix_multi_location_breakpoint_output flag if version >= 3.
8050 * ui-out.h (enum ui_out_flag)
8051 <fix_multi_location_breakpoint_output>: New enumerator.
8052
8053 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8056
8057 2019-05-10 Tom Tromey <tromey@adacore.com>
8058
8059 * ada-lang.c (catch_ada_completer): New function.
8060 (_initialize_ada_language): Use it.
8061
8062 2019-05-10 Tom Tromey <tromey@adacore.com>
8063
8064 * thread.c (print_thread_info): Make "requested_threads" const.
8065 * gdbthread.h (print_thread_info): Make "requested_threads"
8066 const.
8067 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8068 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8069
8070 2019-05-08 Tom Tromey <tom@tromey.com>
8071
8072 * gdbtypes.c (objfile_type_data): Change type.
8073 (objfile_type, _initialize_gdbtypes): Update.
8074
8075 2019-05-08 Tom Tromey <tom@tromey.com>
8076
8077 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8078 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8079 (_initialize_dwarf2_frame): Update.
8080
8081 2019-05-08 Tom Tromey <tom@tromey.com>
8082
8083 * objc-lang.c (objc_objfile_data): Change type.
8084 (find_methods): Update.
8085 (_initialize_objc_lang): Remove.
8086
8087 2019-05-08 Tom Tromey <tom@tromey.com>
8088
8089 * stabsread.c (rs6000_builtin_type_data): Change type.
8090 (rs6000_builtin_type, _initialize_stabsread): Update.
8091
8092 2019-05-08 Tom Tromey <tom@tromey.com>
8093
8094 * mips-tdep.c (mips_pdr_data): Remove.
8095 (_initialize_mips_tdep): Update.
8096
8097 2019-05-08 Tom Tromey <tom@tromey.com>
8098
8099 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8100 (hppa_init_objfile_priv_data, read_unwind_info)
8101 (find_unwind_entry, _initialize_hppa_tdep): Update.
8102
8103 2019-05-08 Tom Tromey <tom@tromey.com>
8104
8105 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8106 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8107 on obstack.
8108 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8109
8110 2019-05-08 Tom Tromey <tom@tromey.com>
8111
8112 * mdebugread.c (basic_type_data): Change type.
8113 (basic_type, _initialize_mdebugread): Update.
8114
8115 2019-05-08 Tom Tromey <tom@tromey.com>
8116
8117 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8118
8119 2019-05-08 Tom Tromey <tom@tromey.com>
8120
8121 * nto-tdep.c (nto_inferior_data_reg): Change type.
8122 (nto_inferior_data): Update.
8123 (nto_inferior_data_cleanup, nto_new_inferior_data)
8124 (_initialize_nto_tdep): Remove.
8125 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8126
8127 2019-05-08 Tom Tromey <tom@tromey.com>
8128
8129 * ada-lang.c (struct ada_inferior_data): Add initializers.
8130 (ada_inferior_data): Change type.
8131 (ada_inferior_data_cleanup): Remove.
8132 (get_ada_inferior_data, ada_inferior_exit)
8133 (struct ada_pspace_data): Add initializers, destructor.
8134 (ada_pspace_data_handle): Change type.
8135 (get_ada_pspace_data): Update.
8136 (ada_pspace_data_cleanup): Remove.
8137
8138 2019-05-08 Tom Tromey <tom@tromey.com>
8139
8140 * coffread.c (struct coff_symfile_info): Add initializers.
8141 (coff_objfile_data_key): Move lower. Change type.
8142 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8143 Update.
8144 (coff_free_info): Remove.
8145
8146 2019-05-08 Tom Tromey <tom@tromey.com>
8147
8148 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8149 (fbsd_pspace_data_handle): Move lower. Change type.
8150 (get_fbsd_pspace_data): Update.
8151 (fbsd_pspace_data_cleanup): Remove.
8152 (_initialize_fbsd_tdep): Update.
8153
8154 2019-05-08 Tom Tromey <tom@tromey.com>
8155
8156 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8157 (get_ada_tasks_pspace_data): Update.
8158 (ada_tasks_pspace_data_cleanup): Remove.
8159 (_initialize_tasks): Update.
8160 (ada_tasks_inferior_data_handle): Change type.
8161 (get_ada_tasks_inferior_data): Update.
8162 (ada_tasks_inferior_data_cleanup): Remove.
8163 (struct ada_tasks_pspace_data): Add initializers.
8164
8165 2019-05-08 Tom Tromey <tom@tromey.com>
8166
8167 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8168 * symfile-debug.c (debug_sym_get_probes): Change type.
8169 * stap-probe.c (handle_stap_probe):
8170 (stap_static_probe_ops::get_probes): Change type.
8171 * probe.h (class static_probe_ops) <get_probes>: Change type.
8172 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8173 (parse_probes_in_pspace): Update.
8174 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8175 Update.
8176 (any_static_probe_ops::get_probes): Change type.
8177 * elfread.c (elfread_data): New typedef.
8178 (probe_key): Change type.
8179 (elf_get_probes): Likewise. Update.
8180 (probe_key_free): Remove.
8181 (_initialize_elfread): Update.
8182 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8183 Change type.
8184 (dtrace_process_dof_probe, dtrace_process_dof)
8185 (dtrace_static_probe_ops::get_probe): Change type.
8186
8187 2019-05-08 Tom Tromey <tom@tromey.com>
8188
8189 * xcoffread.c (struct xcoff_symfile_info): Rename from
8190 coff_symfile_info. Add initializers.
8191 (xcoff_objfile_data_key): Move lower. Change type.
8192 (XCOFF_DATA): Rewrite.
8193 (xcoff_free_info): Remove.
8194 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8195 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8196 (xcoff_initial_scan): Update.
8197
8198 2019-05-08 Tom Tromey <tom@tromey.com>
8199
8200 * solib-svr4.c (struct svr4_info): Add initializers and
8201 destructor.
8202 <probes_table>: Now an htab_up.
8203 (solib_svr4_pspace_data): Change type.
8204 (free_probes_table): Simplify.
8205 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8206 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8207 (probes_table_remove_objfile_probes, register_solib_event_probe)
8208 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8209 (_initialize_svr4_solib): Update.
8210
8211 2019-05-08 Tom Tromey <tom@tromey.com>
8212
8213 * remote.c (remote_pspace_data): Change type.
8214 (remote_pspace_data_cleanup): Remove.
8215 (get_remote_exec_file, set_pspace_remote_exec_file)
8216 (_initialize_remote): Update.
8217
8218 2019-05-08 Tom Tromey <tom@tromey.com>
8219
8220 * breakpoint.c (breakpoint_objfile_key): Change type.
8221 (get_breakpoint_objfile_data): Update.
8222 (free_breakpoint_objfile_data): Remove.
8223 (_initialize_breakpoint): Update.
8224
8225 2019-05-08 Tom Tromey <tom@tromey.com>
8226
8227 * linux-tdep.c (struct linux_info): Add initializers.
8228 (linux_inferior_data): Move. Change type.
8229 (invalidate_linux_cache_inf): Update.
8230 (linux_inferior_data_cleanup): Remove.
8231 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8232
8233 2019-05-08 Tom Tromey <tom@tromey.com>
8234
8235 * auxv.c (auxv_inferior_data): Move. Change type.
8236 (auxv_inferior_data_cleanup): Remove.
8237 (invalidate_auxv_cache_inf): Rewrite.
8238 (get_auxv_inferior_data, _initialize_auxv): Update.
8239
8240 2019-05-08 Tom Tromey <tom@tromey.com>
8241
8242 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8243 (symfile_debug_objfile_data_key): Change type.
8244 (symfile_debug_installed, debug_qf_has_symbols)
8245 (debug_qf_find_last_source_symtab)
8246 (debug_qf_forget_cached_source_info)
8247 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8248 (debug_qf_print_stats, debug_qf_dump)
8249 (debug_qf_expand_symtabs_for_function)
8250 (debug_qf_expand_all_symtabs)
8251 (debug_qf_expand_symtabs_with_fullname)
8252 (debug_qf_map_matching_symbols)
8253 (debug_qf_expand_symtabs_matching)
8254 (debug_qf_find_pc_sect_compunit_symtab)
8255 (debug_qf_map_symbol_filenames)
8256 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8257 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8258 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8259 (debug_sym_read_linetable, debug_sym_relocate): Update.
8260 (symfile_debug_free_objfile): Remove.
8261 (install_symfile_debug_logging, _initialize_symfile_debug):
8262 Update.
8263
8264 2019-05-08 Tom Tromey <tom@tromey.com>
8265
8266 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8267 allocate_on_obstack.
8268 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8269 (get_dwarf2_per_objfile): Update.
8270 (set_dwarf2_per_objfile): Remove.
8271 (dwarf2_has_info, dwarf2_get_section_info): Update.
8272 (dwarf2_free_objfile): Remove.
8273 (_initialize_dwarf2_read): Update.
8274
8275 2019-05-08 Tom Tromey <tom@tromey.com>
8276
8277 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8278 initializers.
8279 <unsupported_script_warning_printed,
8280 script_not_found_warning_printed>: Now bool.
8281 (auto_load_pspace_data): Change type.
8282 (~auto_load_pspace_info): Rename from
8283 auto_load_pspace_data_cleanup.
8284 (get_auto_load_pspace_data, init_loaded_scripts_info)
8285 (clear_section_scripts, maybe_print_unsupported_script_warning)
8286 (maybe_print_script_not_found_warning, _initialize_auto_load):
8287 Update.
8288
8289 2019-05-08 Tom Tromey <tom@tromey.com>
8290
8291 * objfiles.c (objfile_pspace_info): Add destructor and
8292 initializers.
8293 (objfiles_pspace_data): Change type.
8294 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8295 (get_objfile_pspace_data): Update.
8296 (objfiles_bfd_data): Change type.
8297 (get_objfile_bfd_data): Update.
8298 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8299
8300 2019-05-08 Tom Tromey <tom@tromey.com>
8301
8302 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8303 Change type.
8304 (get_catch_syscall_inferior_data): Update.
8305 (catch_syscall_inferior_data_cleanup): Remove.
8306 (_initialize_break_catch_syscall): Update.
8307
8308 2019-05-08 Tom Tromey <tom@tromey.com>
8309
8310 * inflow.c (struct terminal_info): Add destructor and
8311 initializers.
8312 (inflow_inferior_data): Change type.
8313 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8314 (get_inflow_inferior_data, inflow_inferior_exit)
8315 (swap_terminal_info, _initialize_inflow): Update.
8316
8317 2019-05-08 Tom Tromey <tom@tromey.com>
8318
8319 * target-dcache.c (target_dcache_cleanup): Remove.
8320 (target_dcache_aspace_key): Change type.
8321 (target_dcache_init_p, target_dcache_invalidate)
8322 (target_dcache_get, target_dcache_get_or_init)
8323 (_initialize_target_dcache): Update.
8324 * dcache.h (struct dcache_deleter): New.
8325
8326 2019-05-08 Tom Tromey <tom@tromey.com>
8327
8328 * symtab.c (struct symbol_cache): Add destructor and
8329 initializers.
8330 (symbol_cache_key): Move. Change type.
8331 (make_symbol_cache, free_symbol_cache): Remove.
8332 (get_symbol_cache): Update.
8333 (symbol_cache_cleanup): Remove.
8334 (ALL_PSPACES, symbol_cache_flush)
8335 (maintenance_print_symbol_cache)
8336 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8337 Update.
8338
8339 2019-05-08 Tom Tromey <tom@tromey.com>
8340
8341 * symtab.c (struct main_info): Add destructor and initializers.
8342 (main_progspace_key): Move. Change type.
8343 (get_main_info): Update.
8344 (main_info_cleanup): Remove.
8345 (_initialize_symtab): Update.
8346
8347 2019-05-08 Tom Tromey <tom@tromey.com>
8348
8349 * registry.h (DECLARE_REGISTRY): Define the _key class.
8350
8351 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8352
8353 * NEWS: Merge two 'New commands' sections.
8354
8355 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8356
8357 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8358 parameter and use Ada language definition instead.
8359 (ada_val_print_ptr): Remove unused language parameter.
8360 (ada_val_print_num): Remove language parameter and use Ada language
8361 definition instead.
8362 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8363 parameter.
8364 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8365 parameter and use Ada language definition instead.
8366 (ada_val_print_1): Update all ada_val_print_xxx calls.
8367 Remove language parameter.
8368 (ada_val_print): Update ada_val_print_1 call.
8369
8370 2019-05-08 Tom Tromey <tromey@adacore.com>
8371
8372 * remote.c (remote_hw_watchpoint_limit)
8373 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8374 Now static.
8375
8376 2019-05-08 Tom Tromey <tromey@adacore.com>
8377
8378 * maint.c (_initialize_maint_cmds): Move initialization code to
8379 remote.c.
8380 (watchdog, show_watchdog): Move to remote.c.
8381 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8382 "watchdog" static.
8383 (_initialize_remote): Move initialization code from maint.c.
8384 * defs.h (watchdog): Don't declare.
8385
8386 2019-05-08 Tom Tromey <tromey@adacore.com>
8387
8388 * tui/tui-interp.c: Include main.h.
8389 * interps.c: Include main.h.
8390 * main.h (interpreter_p): Declare.
8391 * defs.h (interpreter_p): Don't declare.
8392
8393 2019-05-08 Tom Tromey <tromey@adacore.com>
8394
8395 * dwarf2loc.c: Include dwarf2read.h.
8396 * defs.h (read_unsigned_leb128): Don't declare.
8397 * dwarf2read.h (read_unsigned_leb128): Declare.
8398
8399 2019-05-08 Tom Tromey <tromey@adacore.com>
8400
8401 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8402 method.
8403
8404 2019-05-08 Tom Tromey <tromey@adacore.com>
8405
8406 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8407 when no wrap column is set.
8408
8409 2019-05-08 Tom Tromey <tromey@adacore.com>
8410
8411 * c-lang.c (c_get_string): Handle non-C-style arrays.
8412
8413 2019-05-08 Tom Tromey <tromey@adacore.com>
8414
8415 * typeprint.c (print_offset_data::update): Print the bit offset,
8416 not the number of bits remaining.
8417
8418 2019-05-08 Tom Tromey <tromey@adacore.com>
8419
8420 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8421 padding at end of comment.
8422
8423 2019-05-08 Tom Tromey <tromey@adacore.com>
8424
8425 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8426 Compare main types.
8427
8428 2019-05-06 Tom Tromey <tom@tromey.com>
8429
8430 * common/scoped_mmap.c: Include common-defs.h.
8431 * common/scoped_mmap.h: Don't include config.h.
8432
8433 2019-05-04 Tom Tromey <tom@tromey.com>
8434
8435 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8436 (struct aarch64_call_info): Add initializers.
8437 <si>: Now a std::vector.
8438 (pass_on_stack, aarch64_push_dummy_call): Update.
8439
8440 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8441 Tom Tromey <tom@tromey.com>
8442
8443 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8444 (ppc_threads): Now a std::vector. Now static.
8445 (hwdebug_find_thread_points_by_tid)
8446 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8447 Update.
8448
8449 2019-05-04 Tom Tromey <tom@tromey.com>
8450
8451 * arc-tdep.c (arc_tdesc_init): Return bool.
8452
8453 2019-05-04 Tom Tromey <tom@tromey.com>
8454
8455 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8456 Use gdb_assert_not_reached.
8457
8458 2019-05-04 Tom Tromey <tom@tromey.com>
8459
8460 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8461 "false".
8462
8463 2019-05-04 Tom Tromey <tom@tromey.com>
8464
8465 * arc-tdep.c (arc_tdesc_init): Use bool.
8466
8467 2019-05-04 Tom Tromey <tom@tromey.com>
8468
8469 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8470
8471 2019-05-04 Tom Tromey <tom@tromey.com>
8472
8473 * cli/cli-cmds.c (valid_command_p): Return bool.
8474
8475 2019-05-04 Tom Tromey <tom@tromey.com>
8476
8477 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8478 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8479
8480 2019-05-04 Raul Tambre <raul@tambre.ee>
8481
8482 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8483 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8484 operator for comparison.
8485
8486 2019-05-04 Tom Tromey <tom@tromey.com>
8487
8488 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8489 (lookup_partial_symbol, print_partial_symbols)
8490 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8491 (psymbol_compare): Update.
8492 (add_psymbol_to_bcache): Clear the entire psymbol.
8493 (maintenance_check_psymtabs): Update.
8494 * psympriv.h (struct partial_symbol): Don't derive from
8495 general_symbol_info.
8496 <obj_section, unrelocated_address, address,
8497 set_unrelocated_address>: Update.
8498 <ginfo>: New member.
8499 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8500 (debug_names::write_psymbols): Update.
8501
8502 2019-05-04 Tom de Vries <tdevries@suse.de>
8503
8504 * contrib/cc-with-tweaks.sh: Support -n arg.
8505
8506 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8507
8508 * corelow.c (core_target::detach): Ensure frame cache and
8509 register caches are cleared.
8510 inferior.c (exit_inferior_1): Likewise.
8511
8512 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8513 Tom Tromey <tom@tromey.com>
8514
8515 * dictionary.c (collate_pending_symbols_by_language): Remove
8516 "struct" from foreach.
8517 * symtab.c (lookup_global_symbol_from_objfile)
8518 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8519 foreach.
8520 * ser-tcp.c (net_open): Remove "struct" from foreach.
8521 * objfiles.c (objfile_relocate, objfile_rebase)
8522 (objfile_has_symbols): Remove "struct" from foreach.
8523 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8524 from foreach.
8525 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8526 foreach.
8527 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8528 "struct" from foreach.
8529 * ada-lang.c (create_excep_cond_exprs)
8530 (ada_exception_catchpoint_cond_string): Remove "struct" from
8531 foreach.
8532
8533 2019-05-03 Tom Tromey <tromey@adacore.com>
8534
8535 * ada-exp.y (convert_char_literal): Check suffix of each
8536 enumerator.
8537
8538 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8539
8540 PR ada/21406:
8541 * ada-exp.y (yywrap): Don't define.
8542 * ada-lex.l (%option): Add noyywrap
8543 (yywrap): Remove.
8544
8545 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8546
8547 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8548 _WIN32_WINNT to the XP level, unless already defined to a higher
8549 level.
8550
8551 * unittests/parse-connection-spec-selftests.c:
8552 * ser-tcp.c:
8553 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8554 override.
8555
8556 * symfile.c (find_separate_debug_file): Remove colon from the
8557 drive spec of DOS/Windows file names of the target, so that the
8558 file name produced from DEBUGDIR and the target's directory will
8559 be valid on DOS/Windows systems.
8560
8561 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * rust-lang.c (val_print_struct): Handle printing structures
8564 containing strings.
8565
8566 2019-05-02 Tom Tromey <tromey@adacore.com>
8567
8568 * valarith.c (_initialize_valarith): Remove.
8569
8570 2019-05-01 Tom Tromey <tromey@adacore.com>
8571
8572 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8573 bitfields.
8574
8575 2019-05-01 Tom Tromey <tromey@adacore.com>
8576
8577 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8578 for big-endian copies.
8579
8580 2019-04-30 Ali Tamur <tamur@google.com>
8581 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8582 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8583 (read_3_bytes): New function.
8584
8585 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8586
8587 * windows-nat.c (main_thread_id): Delete.
8588 (handle_output_debug_string): Replace main_thread_id by
8589 current_event.dwThreadId.
8590 (fake_create_process): Likewise.
8591 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8592 Do not set main_thread_id.
8593 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8594 current_event.dwThreadId.
8595 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8596
8597 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8598
8599 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8600 Use current_event.dwThreadId instead of main_thread_id.
8601
8602 2019-04-30 Tom Tromey <tromey@adacore.com>
8603
8604 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8605 (create_excep_cond_exprs): Iterate over program spaces.
8606 (ada_exception_catchpoint_cond_string): Examine all minimal
8607 symbols for exception types.
8608
8609 2019-04-30 Tom Tromey <tromey@adacore.com>
8610
8611 PR c++/24470:
8612 * dwarf2read.c (process_structure_scope): Handle case where type
8613 has template parameters but no symbol was created.
8614
8615 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8616 Chris January <chris.january@arm.com>
8617
8618 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8619 qualifier.
8620 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8621
8622 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * f-typeprint.c (f_print_type): Update rules for printing
8625 whitespace.
8626 (f_type_print_varspec_suffix): Likewise.
8627
8628 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8629 Chris January <chris.january@arm.com>
8630
8631 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8632 function arguments.
8633
8634 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * f-lang.c (build_fortran_types): Change name of void type to
8637 lower case.
8638 * f-typeprint.c (f_type_print_base): Print the name of the void
8639 type, rather than a fixed string.
8640 * f-valprint.c (f_decorations): Use lower case void string.
8641
8642 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8643 Chris January <chris.january@arm.com>
8644
8645 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8646 types for Fortran.
8647
8648 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8649 Chris January <chris.january@arm.com>
8650 David Lecomber <david.lecomber@arm.com>
8651
8652 * f-exp.y (BINOP_INTRINSIC): New token.
8653 (exp): New parser rule handling BINOP_INTRINSIC.
8654 (f77_keywords): Add new builtin procedures.
8655 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8656 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8657 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8658 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8659 (print_unop_subexp_f): New function.
8660 (print_binop_subexp_f): New function.
8661 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8662 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8663 (dump_subexp_body_f): Likewise.
8664 (operator_check_f): Likewise.
8665 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8666 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8667
8668 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8669
8670 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8671 UNOP_KIND.
8672 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8673 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8674 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8675 (operator_length_f): New fuction.
8676 (print_subexp_f): New function.
8677 (op_name_f): New function.
8678 (dump_subexp_body_f): New function.
8679 (operator_check_f): New function.
8680 (exp_descriptor_f): Replace standard expression handling functions
8681 with new functions.
8682 * gdb/fortran-operator.def: New file.
8683 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8684 * gdb/std-operator.def: Remove UNOP_KIND.
8685
8686 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8687
8688 * std-operator.def: Remove unbalanced, stray double quote
8689 character.
8690
8691 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8692 Chris January <chris.january@arm.com>
8693 Daniel Everett <daniel.everett@arm.com>
8694 Nick Forrington <nick.forrington@arm.com>
8695 Richard Bunt <richard.bunt@arm.com>
8696
8697 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8698 of depth when printing anonymous structs or unions.
8699 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8700 Don't print either the top-level value, or the children if the
8701 max-depth is exceeded.
8702 (ppscm_print_children): When printing the key of a map, allow one
8703 extra level of depth.
8704 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8705 print either the top-level value, or the children if the max-depth
8706 is exceeded.
8707 (print_children): When printing the key of a map, allow one extra
8708 level of depth.
8709 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8710 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8711 (user_print_options): Initialise max_depth field.
8712 (val_print_scalar_or_string_type_p): New function.
8713 (val_print): Check to see if the max depth has been reached.
8714 (val_print_check_max_depth): Define new function.
8715 (show_print_max_depth): New function.
8716 (_initialize_valprint): Add 'print max-depth' option.
8717 * valprint.h (struct value_print_options) <max_depth>: New field.
8718 (val_print_check_max_depth): Declare new function.
8719 * NEWS: Document new feature.
8720
8721 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8722
8723 * ada-lang.c (ada_language_defn): Initialise new field.
8724 * c-lang.c (c_is_string_type_p): New function.
8725 (c_language_defn): Initialise new field.
8726 (cplus_language_defn): Initialise new field.
8727 (asm_language_defn): Initialise new field.
8728 (minimal_language_defn): Initialise new field.
8729 * c-lang.h (c_is_string_type_p): Declare new function.
8730 * d-lang.c (d_language_defn): Initialise new field.
8731 * f-lang.c (f_is_string_type_p): New function.
8732 (f_language_defn): Initialise new field.
8733 * go-lang.c (go_is_string_type_p): New function.
8734 (go_language_defn): Initialise new field.
8735 * language.c (default_is_string_type_p): New function.
8736 (unknown_language_defn): Initialise new field.
8737 (auto_language_defn): Initialise new field.
8738 * language.h (struct language_defn) <la_is_string_type_p>: New
8739 member variable.
8740 (default_is_string_type_p): Declare new function.
8741 * m2-lang.c (m2_language_defn): Initialise new field.
8742 * objc-lang.c (objc_language_defn): Initialise new field.
8743 * opencl-lang.c (opencl_language_defn): Initialise new field.
8744 * p-lang.c (pascal_is_string_type_p): New function.
8745 (pascal_language_defn): Initialise new field.
8746 * rust-lang.c (rust_is_string_type_p): New function.
8747 (rust_language_defn): Initialise new field.
8748
8749 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8752 New field.
8753 * ada-lang.c (ada_language_defn): Initialise new field.
8754 * c-lang.c (c_language_defn): Likewise.
8755 (cplus_language_defn): Likewise.
8756 (asm_language_defn): Likewise.
8757 (minimal_language_defn): Likewise.
8758 * d-lang.c (d_language_defn): Likewise.
8759 * f-lang.c (f_language_defn): Likewise.
8760 * go-lang.c (go_language_defn): Likewise.
8761 * language.c (unknown_language_defn): Likewise.
8762 (auto_language_defn): Likewise.
8763 * m2-lang.c (m2_language_defn): Likewise.
8764 * objc-lang.c (objc_language_defn): Likewise.
8765 * opencl-lang.c (opencl_language_defn): Likewise.
8766 * p-lang.c (pascal_language_defn): Likewise.
8767 * rust-lang.c (rust_language_defn): Likewise.
8768
8769 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * ada-lang.c (ada_is_character_type): Change return type to bool.
8772 (ada_is_string_type): Likewise.
8773 * ada-lang.h (ada_is_character_type): Update declaration
8774 (ada_is_string_type): Likewise.
8775
8776 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8777
8778 Support style in 'frame|thread apply'
8779
8780 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8781 * record.c (record_start, record_stop): Update callers of
8782 execute_command_to_string with false.
8783 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8784 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8785 methods.
8786 (class string_file): New constructor with term_out parameter.
8787 Override methods term_out and can_emit_style_escape. New member
8788 term_out.
8789 (class stdio_file): Override can_emit_style_escape.
8790 (class tee_file): Override term_out and can_emit_style_escape.
8791 * utils.h (can_emit_style_escape): Remove.
8792 * utils.c (can_emit_style_escape): Likewise.
8793 Update all callers of can_emit_style_escape (SOMESTREAM) to
8794 SOMESTREAM->can_emit_style_escape.
8795 * source-cache.c (source_cache::get_source_lines): Likewise.
8796 * stack.c (frame_apply_command_count): Call execute_command_to_string
8797 passing the term_out characteristic of the current gdb_stdout.
8798 * thread.c (thr_try_catch_cmd): Likewise.
8799 * top.c (execute_command_to_string): pass term_out parameter
8800 to construct the string_file for the command output.
8801 * ui-file.c (term_cli_styling): New function (most code moved
8802 from utils.c can_emit_style_escape).
8803 (string_file::string_file, string_file::can_emit_style_escape,
8804 stdio_file::can_emit_style_escape, tee_file::term_out,
8805 tee_file::can_emit_style_escape): New functions.
8806
8807 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8808
8809 * NEWS: Mention the new set|show may-call-functions.
8810 * infcall.c (may_call_functions_p): New variable.
8811 (show_may_call_functions_p): New function.
8812 (call_function_by_hand_dummy): Throws an error if not
8813 may-call-functions.
8814 (_initialize_infcall): Call add_setshow_boolean_cmd for
8815 may-call-functions.
8816
8817 2019-04-25 Keith Seitz <keiths@redhat.com>
8818
8819 PR c++/24367
8820 * cp-support.c (inspect_type): Don't attempt substitutions
8821 of symbol with the same name.
8822
8823 2019-04-25 Tom Tromey <tromey@adacore.com>
8824
8825 PR gdb/24475:
8826 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8827 static.
8828
8829 2019-04-25 Tom Tromey <tromey@adacore.com>
8830
8831 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8832 rvalue reference.
8833 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8834 (gdb_xml_parser::parse): Use std::move.
8835 * python/python-internal.h (gdbpy_convert_exception): Take a const
8836 reference.
8837 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8838 std::move.
8839 * python/py-utils.c (gdbpy_convert_exception): Take a const
8840 reference.
8841 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8842 Use std::move.
8843 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8844 Use std::move.
8845 * mi/mi-main.c (mi_print_exception): Take a const reference.
8846 * main.c (handle_command_errors): Take a const reference.
8847 * linespec.c (parse_linespec): Use std::move.
8848 * infcall.c (run_inferior_call): Use std::move.
8849 (call_function_by_hand_dummy): Use std::move.
8850 * exec.c (try_open_exec_file): Use std::move.
8851 * exceptions.h (exception_print, exception_fprintf)
8852 (exception_print_same): Update.
8853 * exceptions.c (print_exception, exception_print)
8854 (exception_fprintf, exception_print_same): Change parameters to
8855 const reference.
8856 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8857 * common/new-op.c: Use std::move.
8858 * common/common-exceptions.h (struct gdb_exception): Add move
8859 constructor.
8860 (struct gdb_exception_error, struct gdb_exception_quit, struct
8861 gdb_quit_bad_alloc): Change constructor to move constructor.
8862 (throw_exception): Change parameter to rvalue reference.
8863 * common/common-exceptions.c (throw_exception): Take rvalue
8864 reference.
8865 * cli/cli-interp.c (safe_execute_command): Use std::move.
8866 * breakpoint.c (insert_bp_location, location_to_sals): Use
8867 std::move.
8868
8869 2019-04-25 Tom Tromey <tromey@adacore.com>
8870
8871 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8872 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8873 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8874 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8875 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8876 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8877 guile/scm-value.c: Use unpack.
8878 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8879 gdbscm_gdb_exception.
8880 (gdbscm_throw_gdb_exception): Likewise.
8881 (struct gdbscm_gdb_exception): New.
8882 (unpack): New function.
8883 (gdbscm_wrap): Use unpack.
8884
8885 2019-04-25 Tom Tromey <tromey@adacore.com>
8886
8887 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8888 (gdb_rl_callback_handler): Use std::move.
8889 * common/common-exceptions.h (struct gdb_exception): Add move
8890 assignment operator.
8891 (throw_exception_sjlj): Change "exception" to const reference.
8892 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8893 (throw_exception_sjlj): Change "exception" to const reference.
8894
8895 2019-04-25 Tom Tromey <tromey@adacore.com>
8896
8897 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8898 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8899 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8900 Update.
8901 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8902 Update.
8903 * mi/mi-interp.c (mi_interp::exec): Update.
8904 * linespec.c (parse_linespec): Update.
8905 * infcall.c (run_inferior_call): Update.
8906 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8907 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8908 (gdbscm_lookup_global_symbol): Update.
8909 * guile/scm-param.c (gdbscm_parameter_value): Update.
8910 * guile/scm-frame.c (gdbscm_frame_read_register)
8911 (gdbscm_frame_read_var): Update.
8912 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8913 * exec.c (try_open_exec_file): Update.
8914 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8915 (gdb_rl_callback_handler): Update.
8916 * common/common-exceptions.h (exception_none): Don't declare.
8917 * common/common-exceptions.c (exception_none): Don't define.
8918 (struct catcher) <exception>: Update.
8919 * cli/cli-interp.c (safe_execute_command): Update.
8920 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8921
8922 2019-04-25 Ali Tamur <tamur@google.com>
8923
8924 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8925 (read_attribute_value): Likewise.
8926 (dwarf2_read_addr_index): Update comment.
8927 (read_str_index): Add DW_FORM_strx.
8928 (dwarf2_string_attr): Likewise.
8929 (dwarf2_const_value_attr): Likewise.
8930 (dump_die_shallow): Likewise.
8931 (dwarf2_fetch_constant_bytes): Likewise.
8932 (skip_form_bytes): Likewise.
8933 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8934
8935 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8936
8937 PR corefiles/11608
8938 PR corefiles/18187
8939 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8940 OFFSET. Verify if current mapping contains an ELF header.
8941 (linux_find_memory_regions_full): Adjust call to
8942 dump_mapping_p.
8943
8944 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8945 Kang Li <kanglictf@gmail.com>
8946
8947 PR gdb/21600
8948
8949 * dwarf2-frame.c (read_initial_length): Be consistent about using
8950 unsigned representation of length.
8951 (decode_frame_entry_1): Likewise. Check for wraparound of
8952 end pointer as well as buffer overflow.
8953
8954 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8955
8956 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8957 "vq".
8958
8959 2019-04-24 Tom Tromey <tromey@adacore.com>
8960
8961 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8962
8963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * s12z-tdep.c (s12z_unwind_pc): Delete.
8966 (s12z_unwind_sp): Delete.
8967 (s12z_gdbarch_init): Don't register deleted functions with
8968 gdbarch.
8969
8970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * rl78-tdep.c (rl78_unwind_sp): Delete.
8973 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8974
8975 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8978 (xstormy16_unwind_pc): Delete.
8979 (xstormy16_dummy_id): Delete.
8980 (xstormy16_gdbarch_init): Don't register deleted functions with
8981 gdbarch.
8982
8983 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 * vax-tdep.c (vax_unwind_pc): Delete.
8986 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8987
8988 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * v850-tdep.c (v850_unwind_sp): Delete.
8991 (v850_unwind_pc): Delete.
8992 (v850_dummy_id): Delete.
8993 (v850_gdbarch_init): Don't register deleted functions with
8994 gdbarch.
8995
8996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8999 (tilegx_unwind_pc): Delete.
9000 (tilegx_unwind_dummy_id): Delete.
9001 (tilegx_gdbarch_init): Don't register deleted functions with
9002 gdbarch.
9003
9004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9005
9006 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9007 (tic6x_dummy_id): Delete.
9008 (tic6x_gdbarch_init): Don't register deleted functions with
9009 gdbarch.
9010
9011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * sparc-tdep.c (sparc_unwind_pc): Delete.
9014 (sparc32_gdbarch_init): Don't register deleted function with
9015 gdbarch.
9016
9017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * sh-tdep.c (sh_unwind_sp): Delete.
9020 (sh_unwind_pc): Delete.
9021 (sh_dummy_id): Delete.
9022 (sh_gdbarch_init): Don't register deleted functions with
9023 gdbarch.
9024
9025 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * score-tdep.c (score_unwind_sp): Delete.
9028 (score_unwind_pc): Delete.
9029 (score_dummy_id): Delete.
9030 (score_gdbarch_init): Don't register deleted functions with
9031 gdbarch.
9032
9033 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9034
9035 * rx-tdep.c (rx_unwind_pc): Delete.
9036 (rx_unwind_sp): Delete.
9037 (rx_dummy_id): Delete.
9038 (rx_gdbarch_init): Don't register deleted functions with
9039 gdbarch. Update comment.
9040
9041 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9042
9043 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9044 (rs6000_dummy_id): Delete.
9045 (rs6000_gdbarch_init): Don't register deleted functions with
9046 gdbarch.
9047
9048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * or1k-tdep.c (or1k_dummy_id): Delete.
9051 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9052
9053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9054
9055 * nios2-tdep.c (nios2_dummy_id): Delete.
9056 (nios2_unwind_sp): Delete.
9057 (nios2_gdbarch_init): Don't register deleted functions with
9058 gdbarch.
9059
9060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * nds32-tdep.c (nds32_dummy_id): Delete.
9063 (nds32_unwind_pc): Delete.
9064 (nds32_unwind_sp): Delete.
9065 (nds32_gdbarch_init): Don't register deleted functions with
9066 gdbarch.
9067
9068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9069
9070 * msp430-tdep.c (msp430_unwind_pc): Delete.
9071 (msp430_unwind_sp): Delete.
9072 (msp430_dummy_id): Delete.
9073 (msp430_gdbarch_init): Don't register deleted functions with
9074 gdbarch.
9075
9076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * moxie-tdep.c (moxie_unwind_sp): Delete.
9079 (moxie_unwind_pc): Delete.
9080 (moxie_dummy_id): Delete.
9081 (moxie_gdbarch_init): Don't register deleted functions with
9082 gdbarch.
9083
9084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9087 (mn10300_unwind_pc): Delete.
9088 (mn10300_unwind_sp): Delete.
9089 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9090 mn10300_unwind_sp.
9091 (mn10300_frame_unwind_init): Don't register deleted functions with
9092 gdbarch.
9093
9094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9095
9096 * mep-tdep.c (mep_unwind_pc): Delete.
9097 (mep_unwind_sp): Delete.
9098 (mep_dummy_id): Delete.
9099 (mep_gdbarch_init): Don't register deleted functions with
9100 gdbarch.
9101
9102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9105 (m68hc11_unwind_sp): Delete.
9106 (m68hc11_gdbarch_init): Don't register deleted functions with
9107 gdbarch.
9108
9109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 * m32r-tdep.c (m32r_unwind_sp): Delete.
9112 (m32r_unwind_pc): Delete.
9113 (m32r_dummy_id): Delete.
9114 (m32r_gdbarch_init): Don't register deleted functions with
9115 gdbarch.
9116
9117 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9118
9119 * m32c-tdep.c (m32c_unwind_pc): Delete.
9120 (m32c_unwind_sp): Delete.
9121 (m32c_dummy_id): Delete.
9122 (m32c_gdbarch_init): Don't register deleted functions with
9123 gdbarch.
9124
9125 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9126
9127 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9128 (lm32_unwind_pc): Delete.
9129 (lm32_dummy_id): Delete.
9130 (lm32_gdbarch_init): Don't register deleted functions with
9131 gdbarch.
9132
9133 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9134
9135 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9136 (iq2000_unwind_pc): Delete.
9137 (iq2000_dummy_id): Delete.
9138 (iq2000_gdbarch_init): Don't register deleted functions with
9139 gdbarch.
9140
9141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9142
9143 * nds32-tdep.c (nds32_type_align): Delete.
9144 (nds32_push_dummy_call): Use type_align instead.
9145
9146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9147
9148 * arm-tdep.c (arm_type_align): Only handle vector override case.
9149 (arm_push_dummy_call): Use type_align.
9150 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9151
9152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9155 case.
9156 (pass_on_stack): Use type_align.
9157 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9158 function.
9159
9160 2019-04-23 Tom Tromey <tromey@adacore.com>
9161
9162 * dwarf2read.c (line_header::file_name_at): Remove unused
9163 overload.
9164
9165 2019-04-23 Tom de Vries <tdevries@suse.de>
9166
9167 PR gdb/24438
9168 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9169 invocation.
9170
9171
9172 2019-03-27 Ali Tamur <tamur@google.com>
9173
9174 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9175 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9176 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9177 (dwarf_expr_context::get_addr_index): Likewise
9178 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9179 (symbol_needs_eval_context::get_addr_index): Likewise
9180 (disassemble_dwarf_expression): Add DW_OP_addrx
9181 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9182 (read_cutu_die_from_dwo): Update comment
9183 (skip_one_die): Add DW_FORM_addrx
9184 (read_attribute_value): Likewise
9185 (var_decode_location): Add DW_OP_addrx
9186 (dwarf2_const_value_attr): Add DW_FORM_addrx
9187 (dump_die_shallow): Likewise
9188 (dwarf2_fetch_constant_bytes): Likewise
9189 (decode_locdesc): Add DW_OP_addrx
9190 (skip_form_bytes): Add DW_FORM_addrx
9191
9192 2019-04-22 Ali Tamur <tamur@google.com>
9193
9194 * MAINTAINERS (Write After Approval): Add self.
9195
9196 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9199 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9200 (open_symbol_file_object): Likewise.
9201 (svr4_default_sos): Add info parameter.
9202 (svr4_read_so_list): Likewise.
9203 (svr4_current_sos_direct): Adjust functions calls to pass down
9204 info.
9205 (svr4_current_sos_1): Add info parameter.
9206 (svr4_current_sos): Call get_svr4_info, pass info down to
9207 svr4_current_sos_1.
9208 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9209 get_svr4_info.
9210 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9211 get_svr4_info.
9212 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9213 to get_svr4_info.
9214 (probes_table_remove_objfile_probes): Likewise.
9215 (register_solib_event_probe): Add info parameter.
9216 (solist_update_incremental): Pass info parameter down to
9217 svr4_read_so_list.
9218 (disable_probes_interface): Add info parameter.
9219 (svr4_handle_solib_event): Pass current_program_space to
9220 get_svr4_info. Adjust disable_probes_interface cleanup.
9221 (svr4_create_probe_breakpoints): Add info parameter, pass it
9222 down to register_solib_event_probe.
9223 (svr4_create_solib_event_breakpoints): Add info parameter,
9224 pass it down to svr4_create_probe_breakpoints.
9225 (enable_break): Pass info down to
9226 svr4_create_solib_event_breakpoints.
9227 (svr4_solib_create_inferior_hook): Pass current_program_space to
9228 get_svr4_info.
9229 (svr4_clear_solib): Likewise.
9230
9231 2019-04-22 Pedro Alves <palves@redhat.com>
9232
9233 * solib-svr4.c (svr4_free_objfile_observer): New.
9234 (probe_and_action::objfile): New field.
9235 (probes_table_htab_remove_objfile_probes)
9236 (probes_table_remove_objfile_probes): New functions.
9237 (register_solib_event_probe): Add 'objfile' parameter. Store it
9238 in the new probe_and_action. Don't store the probe in 'lookup'.
9239 (svr4_create_probe_breakpoints): Pass objfile to
9240 register_solib_event_probe.
9241 (_initialize_svr4_solib): Register a free_objfile observer.
9242
9243 2019-04-19 Tom Tromey <tom@tromey.com>
9244
9245 * common/queue.h: Remove.
9246
9247 2019-04-19 Tom Tromey <tom@tromey.com>
9248
9249 * event-loop.c: Don't include "common/queue.h".
9250
9251 2019-04-19 Tom Tromey <tom@tromey.com>
9252
9253 * remote.c (remote_target): Use delete.
9254 * remote-notif.h: Include <list>, not "common/queue.h".
9255 (notif_client_p): Remove typedef.
9256 (remote_notif_state): Add constructor, destructor, initializer.
9257 <notif_queue>: Now a std::list.
9258 (remote_notif_state_xfree): Don't declare.
9259 * remote-notif.c (remote_notif_process, handle_notification)
9260 (remote_notif_state_allocate): Update.
9261 (~remote_notif_state): Rename from remote_notif_state_xfree.
9262
9263 2019-04-19 Tom Tromey <tom@tromey.com>
9264
9265 * symfile.c (reread_symbols): Update.
9266 * objfiles.c (objfile_register_static_link)
9267 (objfile_lookup_static_link): Update
9268 (~objfile) Don't delete static_links.
9269 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9270
9271 2019-04-19 Tom Tromey <tom@tromey.com>
9272
9273 * type-stack.h (struct type_stack) <insert>: Constify string.
9274 * type-stack.c (type_stack::insert): Constify string.
9275 * gdbtypes.h (lookup_template_type): Update.
9276 (address_space_name_to_int): Update.
9277 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9278 const.
9279 (lookup_template_type): Make name const.
9280 * c-exp.y: Update rules.
9281 (lex_one_token, classify_name, classify_inner_name)
9282 (c_print_token): Update.
9283 * p-exp.y: Update rules.
9284 (yylex): Update.
9285 * f-exp.y: Update rules.
9286 (yylex): Update.
9287 * d-exp.y: Update rules.
9288 (lex_one_token, classify_name, classify_inner_name): Update.
9289 * parse.c (write_dollar_variable, copy_name): Return std::string.
9290 * parser-defs.h (copy_name): Change return type.
9291 * m2-exp.y: Update rules.
9292 (yylex): Update.
9293 * go-exp.y (lex_one_token): Update.
9294 Update rules.
9295 (classify_unsafe_function, classify_packaged_name)
9296 (classify_name, yylex): Update.
9297
9298 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9299
9300 * configure.ac: add --enable-source-highlight switch.
9301 * configure: Regenerate.
9302 * top.c (print_gdb_version): plumb --enable-source-highlight
9303 status to "show configuration".
9304
9305 2019-04-19 Tom Tromey <tromey@adacore.com>
9306
9307 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9308 Check ADA_TYPE_P.
9309 (empty_record, ada_template_to_fixed_record_type_1)
9310 (template_to_static_fixed_type)
9311 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9312 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9313 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9314 macros.
9315
9316 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9317
9318 PR symtab/24423:
9319 * source.c (print_source_lines_base): Advance "iter" when a
9320 control character is seen.
9321
9322 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9323
9324 * inferior.h (struct infcall_suspend_state_deleter):
9325 Catch exception in destructor to avoid crash.
9326
9327 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9328
9329 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9330 close to the add_com "shell".
9331
9332 2019-04-18 Tom Tromey <tromey@adacore.com>
9333
9334 * process-stratum-target.h (class process_stratum_target)
9335 <stratum>: Add "final".
9336
9337 2019-04-17 Tom Tromey <tromey@adacore.com>
9338
9339 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9340 against nullptr before use.
9341
9342 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9343
9344 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9345
9346 2019-04-17 Jim Wilson <jimw@sifive.com>
9347 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9350 code read might fail, assume 4-byte breakpoint in that case.
9351
9352 2019-04-15 Leszek Swirski <leszeks@google.com>
9353
9354 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9355 rather than a hand-rolled POD check when checking for forced MEMORY
9356 classification.
9357
9358 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9359
9360 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9361 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9362 function.
9363 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9364 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9365 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9366 declaration.
9367
9368 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9369
9370 * aarch64-linux-nat.c
9371 (aarch64_linux_nat_target::thread_architecture): Add override.
9372 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9373 each VQ.
9374
9375 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9376
9377 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9378
9379 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9382 target types of size 96-bits, add some additional comments, and
9383 check that the builtin type we found was the correct size.
9384
9385 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9386
9387 * utils.c (prompt_for_continue): Don't restore the styling at the
9388 end, as applied_style has the wrong value. This fixes styling in
9389 long lists of file names that are interrupted by the "Continue?"
9390 prompt.
9391
9392 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9395 * c-lang.c (c_language_defn): Likewise.
9396 (cplus_language_defn): Likewise.
9397 (asm_language_defn): Likewise.
9398 (minimal_language_defn): Likewise.
9399 * d-lang.c (d_language_defn): Likewise.
9400 * f-lang.c (f_language_defn): Likewise.
9401 * go-lang.c (go_language_defn): Likewise.
9402 * language.c (unknown_language_defn): Likewise.
9403 (auto_language_defn): Likewise.
9404 * language.h (struct language_defn): Remove la_magic field.
9405 (LANG_MAGIC): Delete.
9406 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9407 * objc-lang.c (objc_language_defn): Likewise.
9408 * opencl-lang.c (opencl_language_defn): Likewise.
9409 * p-lang.c (pascal_language_defn): Likewise.
9410 * rust-lang.c (rust_language_defn): Likewise.
9411
9412 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * riscv-tdep.c (riscv_type_align): New function.
9415 (riscv_type_alignment): Delete.
9416 (riscv_arg_location): Use 'type_align'.
9417 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9418
9419 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * gdbtypes.c (type_align): A struct with no non-static fields also
9422 has alignment of 1.
9423
9424 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9427 component to 0.
9428 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9429 member.
9430 (riscv_struct_info::analyse): New implementation using new
9431 analyse_inner member function.
9432 (riscv_struct_info::field_offset): New member function.
9433 (riscv_struct_info::m_offsets): New member variable.
9434 (riscv_struct_info::analyse_inner): New private member function,
9435 takes the old implementation of riscv_struct_info::analyse but
9436 extended to track field offsets.
9437 (riscv_call_arg_struct): Update the struct folding special cases
9438 to handle cases where empty C++ structs, which are non-zero
9439 length, are found.
9440 (riscv_arg_location): Initialise the length of each location, a
9441 non-zero length now indicates the location is in use.
9442 (riscv_push_dummy_call): Allow for the first location having a
9443 non-zero offset when setting up arguments.
9444 (riscv_return_value): Likewise, but for return values.
9445
9446 2019-04-11 Tom Tromey <tromey@adacore.com>
9447
9448 * utils.c (internal_vproblem): Make "msg" const.
9449
9450 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9451
9452 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9453 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9454 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9455 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9456
9457 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9458
9459 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9460 function.
9461 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9462 of amd64_collect_native_gregset.
9463 (amd64_linux_nat_target::store_registers): Likewise.
9464
9465 2019-04-10 Tom Tromey <tom@tromey.com>
9466
9467 * symtab.c (lookup_global_symbol_from_objfile)
9468 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9469 * objfiles.h (class separate_debug_iterator): New.
9470 (class separate_debug_range): New.
9471 (struct objfile) <separate_debug_objfiles>: New method.
9472 (objfile_separate_debug_iterate): Don't declare.
9473 * objfiles.c (separate_debug_iterator::operator++): Rename from
9474 objfile_separate_debug_iterate.
9475 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9476 iterator.
9477 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9478 iterator.
9479
9480 2019-04-10 Tom Tromey <tom@tromey.com>
9481
9482 * symfile.c (reread_symbols): Remove old comment.
9483 * objfiles.c (free_all_objfiles): Fix a typo.
9484
9485 2019-04-10 Tom Tromey <tom@tromey.com>
9486
9487 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9488 * minsyms.c (lookup_minimal_symbol): Use foreach.
9489 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9490 (lookup_minimal_symbol_solib_trampoline): Likewise.
9491 * symfile.c (reread_symbols): Use foreach.
9492
9493 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9494 Tom Tromey <tromey@adacore.com>
9495
9496 PR rust/24414:
9497 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9498 (rust_lex_int_test): Change "value" to be LONGEST.
9499 (rust_lex_tests): Add test for long integer literal.
9500
9501 2019-04-09 Tom Tromey <tromey@adacore.com>
9502
9503 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9504 to bool.
9505 (extended_remote_target::attach): Update.
9506 (remote_target::remote_notice_new_inferior): Update.
9507 (remote_target::add_current_inferior_and_thread): Update.
9508 * inferior.c (exit_inferior_1): Use "false".
9509 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9510
9511 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9514 the "start" command.
9515
9516 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9517
9518 * python/py-inferior.c (infpy_thread_from_thread_handle):
9519 Adjust comments to reflect renaming of thread_from_thread_handle
9520 to thread_from_handle. Adjust keywords. Fix type error message.
9521 (inferior_object_methods): Add thread_from_handle. Retain
9522 thread_from_thread_handle, but mark it as deprecated.
9523
9524 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9525
9526 * gdbthread.h (find_thread_by_handle): Revise declaration.
9527 * thread.c (find_thread_by_handle): Likewise. Adjust
9528 implementation too.
9529 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9530 support for buffer objects as handles.
9531
9532 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9533
9534 * python/py-infthread.c (thpy_thread_handle): New function.
9535 (thread_object_methods): Register thpy_thread_handle.
9536
9537 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9538
9539 * gdbthread.h (thread_to_thread_handle): Declare.
9540 * thread.c (gdbtypes.h): Include.
9541 (thread_to_thread_handle): New function.
9542
9543 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9544 (target_thread_info_to_thread_handle): Declare.
9545 * target.c (target_thread_info_to_thread_handle): New function.
9546 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9547 * target-delegates.c: Regenerate.
9548
9549 * linux-thread-db.c (class thread_db_target): Add method
9550 thread_info_to_thread_handle.
9551 (thread_db_target::thread_info_to_thread_handle): Define.
9552 * remote.c (class remote_target): Add new method
9553 thread_info_to_thread_handle.
9554 (remote_target::thread_info_to_thread_handle): Define.
9555
9556 2019-04-08 Pedro Alves <palves@redhat.com>
9557
9558 * common/common-exceptions.c (throw_exception): Don't create
9559 named object to throw; throw directly.
9560 (throw_it): Likewise. Don't initialize gdb_exception::message
9561 here, with new; pass FMT and AP to the ctor instead.
9562 * common/common-exceptions.h: Include <string>.
9563 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9564 const char *, va_list)): New ctor. Use std::make_shared.
9565 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9566 errors)): Delete.
9567 (gdb_exception_error::gdb_exception_error(enum errors, const char
9568 *, va_list)): New.
9569 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9570 Add assertion.
9571 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9572 errors)): Delete.
9573 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9574 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9575 Add assertion.
9576
9577 2019-04-08 Tom Tromey <tom@tromey.com>
9578
9579 * valops.c (value_rtti_indirect_type): Replace throw_exception
9580 with throw.
9581 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9582 with throw.
9583 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9584 throw.
9585 * target.c (target_translate_tls_address): Replace throw_exception
9586 with throw.
9587 * stack.c (frame_apply_command_count): Replace throw_exception
9588 with throw.
9589 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9590 throw.
9591 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9592 with throw.
9593 * rs6000-tdep.c (rs6000_frame_cache)
9594 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9595 * remote.c: Replace throw_exception with throw.
9596 * record-full.c (record_full_message, record_full_wait_1)
9597 (record_full_restore): Replace throw_exception with throw.
9598 * record-btrace.c:
9599 (get_thread_current_frame_id, record_btrace_start_replaying)
9600 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9601 (cmd_record_btrace_start): Replace throw_exception with throw.
9602 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9603 throw.
9604 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9605 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9606 * linespec.c:
9607 (find_linespec_symbols): Replace throw_exception with throw.
9608 * infrun.c (displaced_step_prepare, resume): Replace
9609 throw_exception with throw.
9610 * infcmd.c (post_create_inferior): Replace throw_exception with
9611 throw.
9612 * inf-loop.c (inferior_event_handler): Replace throw_exception
9613 with throw.
9614 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9615 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9616 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9617 (get_prev_frame_always, get_frame_pc_if_available)
9618 (get_frame_address_in_block_if_available, get_frame_language):
9619 Replace throw_exception with throw.
9620 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9621 throw_exception with throw.
9622 * eval.c (fetch_subexp_value, evaluate_var_value)
9623 (evaluate_funcall, evaluate_subexp_standard): Replace
9624 throw_exception with throw.
9625 * dwarf2loc.c (call_site_find_chain)
9626 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9627 Replace throw_exception with throw.
9628 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9629 with throw.
9630 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9631 throw.
9632 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9633 * completer.c (complete_line_internal): Replace throw_exception
9634 with throw.
9635 * compile/compile-object-run.c (compile_object_run): Replace
9636 throw_exception with throw.
9637 * cli/cli-script.c (process_next_line): Replace throw_exception
9638 with throw.
9639 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9640 (btrace_enable, btrace_maint_update_pt_packets): Replace
9641 throw_exception with throw.
9642 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9643 throw_exception with throw.
9644 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9645 throw_exception with throw.
9646 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9647 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9648 * aarch64-tdep.c (aarch64_make_prologue_cache)
9649 (aarch64_make_stub_cache): Replace throw_exception with throw.
9650
9651 2019-04-08 Tom Tromey <tom@tromey.com>
9652
9653 * common/common-exceptions.c (throw_exception): Rename from
9654 throw_exception_cxx. Remove old copy. Make argument const.
9655 (throw_it): Create and throw exception objects directly.
9656 * common/common-exceptions.h (throw_exception): Make argument
9657 const.
9658 (struct gdb_exception_error): Add constructor.
9659 (struct gdb_exception_quit): Add constructor.
9660
9661 2019-04-08 Tom Tromey <tom@tromey.com>
9662
9663 * common/common-exceptions.h (exception_rethrow): Don't declare.
9664 (TRY_SJLJ): Update comment.
9665 (TRY, CATCH, END_CATCH): Remove.
9666 * common/common-exceptions.c (exception_rethrow): Remove.
9667
9668 2019-04-08 Tom Tromey <tom@tromey.com>
9669
9670 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9671 Remove.
9672 (gdb_exception_error): Rename from
9673 gdb_exception_RETURN_MASK_ERROR.
9674 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9675 (gdb_quit_bad_alloc): Update.
9676 * aarch64-tdep.c: Update.
9677 * ada-lang.c: Update.
9678 * ada-typeprint.c: Update.
9679 * ada-valprint.c: Update.
9680 * amd64-tdep.c: Update.
9681 * arch-utils.c: Update.
9682 * break-catch-throw.c: Update.
9683 * breakpoint.c: Update.
9684 * btrace.c: Update.
9685 * c-varobj.c: Update.
9686 * cli/cli-cmds.c: Update.
9687 * cli/cli-interp.c: Update.
9688 * cli/cli-script.c: Update.
9689 * common/common-exceptions.c: Update.
9690 * common/new-op.c: Update.
9691 * common/selftest.c: Update.
9692 * compile/compile-c-symbols.c: Update.
9693 * compile/compile-cplus-symbols.c: Update.
9694 * compile/compile-object-load.c: Update.
9695 * compile/compile-object-run.c: Update.
9696 * completer.c: Update.
9697 * corelow.c: Update.
9698 * cp-abi.c: Update.
9699 * cp-support.c: Update.
9700 * cp-valprint.c: Update.
9701 * darwin-nat.c: Update.
9702 * disasm-selftests.c: Update.
9703 * dtrace-probe.c: Update.
9704 * dwarf-index-cache.c: Update.
9705 * dwarf-index-write.c: Update.
9706 * dwarf2-frame-tailcall.c: Update.
9707 * dwarf2-frame.c: Update.
9708 * dwarf2loc.c: Update.
9709 * dwarf2read.c: Update.
9710 * eval.c: Update.
9711 * event-loop.c: Update.
9712 * event-top.c: Update.
9713 * exec.c: Update.
9714 * f-valprint.c: Update.
9715 * fbsd-tdep.c: Update.
9716 * frame-unwind.c: Update.
9717 * frame.c: Update.
9718 * gdbtypes.c: Update.
9719 * gnu-v3-abi.c: Update.
9720 * guile/guile-internal.h: Update.
9721 * guile/scm-block.c: Update.
9722 * guile/scm-breakpoint.c: Update.
9723 * guile/scm-cmd.c: Update.
9724 * guile/scm-disasm.c: Update.
9725 * guile/scm-frame.c: Update.
9726 * guile/scm-lazy-string.c: Update.
9727 * guile/scm-math.c: Update.
9728 * guile/scm-param.c: Update.
9729 * guile/scm-ports.c: Update.
9730 * guile/scm-pretty-print.c: Update.
9731 * guile/scm-symbol.c: Update.
9732 * guile/scm-symtab.c: Update.
9733 * guile/scm-type.c: Update.
9734 * guile/scm-value.c: Update.
9735 * i386-linux-tdep.c: Update.
9736 * i386-tdep.c: Update.
9737 * inf-loop.c: Update.
9738 * infcall.c: Update.
9739 * infcmd.c: Update.
9740 * infrun.c: Update.
9741 * jit.c: Update.
9742 * language.c: Update.
9743 * linespec.c: Update.
9744 * linux-fork.c: Update.
9745 * linux-nat.c: Update.
9746 * linux-tdep.c: Update.
9747 * linux-thread-db.c: Update.
9748 * main.c: Update.
9749 * mi/mi-cmd-break.c: Update.
9750 * mi/mi-cmd-stack.c: Update.
9751 * mi/mi-interp.c: Update.
9752 * mi/mi-main.c: Update.
9753 * objc-lang.c: Update.
9754 * p-valprint.c: Update.
9755 * parse.c: Update.
9756 * ppc-linux-tdep.c: Update.
9757 * printcmd.c: Update.
9758 * python/py-arch.c: Update.
9759 * python/py-breakpoint.c: Update.
9760 * python/py-cmd.c: Update.
9761 * python/py-finishbreakpoint.c: Update.
9762 * python/py-frame.c: Update.
9763 * python/py-framefilter.c: Update.
9764 * python/py-gdb-readline.c: Update.
9765 * python/py-inferior.c: Update.
9766 * python/py-infthread.c: Update.
9767 * python/py-lazy-string.c: Update.
9768 * python/py-linetable.c: Update.
9769 * python/py-objfile.c: Update.
9770 * python/py-param.c: Update.
9771 * python/py-prettyprint.c: Update.
9772 * python/py-progspace.c: Update.
9773 * python/py-record-btrace.c: Update.
9774 * python/py-record.c: Update.
9775 * python/py-symbol.c: Update.
9776 * python/py-type.c: Update.
9777 * python/py-unwind.c: Update.
9778 * python/py-utils.c: Update.
9779 * python/py-value.c: Update.
9780 * python/python.c: Update.
9781 * record-btrace.c: Update.
9782 * record-full.c: Update.
9783 * remote-fileio.c: Update.
9784 * remote.c: Update.
9785 * riscv-tdep.c: Update.
9786 * rs6000-aix-tdep.c: Update.
9787 * rs6000-tdep.c: Update.
9788 * rust-exp.y: Update.
9789 * rust-lang.c: Update.
9790 * s390-tdep.c: Update.
9791 * selftest-arch.c: Update.
9792 * solib-dsbt.c: Update.
9793 * solib-frv.c: Update.
9794 * solib-spu.c: Update.
9795 * solib-svr4.c: Update.
9796 * solib.c: Update.
9797 * sparc64-linux-tdep.c: Update.
9798 * stack.c: Update.
9799 * symfile-mem.c: Update.
9800 * symmisc.c: Update.
9801 * target.c: Update.
9802 * thread.c: Update.
9803 * top.c: Update.
9804 * tracefile-tfile.c: Update.
9805 * tui/tui.c: Update.
9806 * typeprint.c: Update.
9807 * unittests/cli-utils-selftests.c: Update.
9808 * unittests/parse-connection-spec-selftests.c: Update.
9809 * valops.c: Update.
9810 * valprint.c: Update.
9811 * value.c: Update.
9812 * varobj.c: Update.
9813 * windows-nat.c: Update.
9814 * x86-linux-nat.c: Update.
9815 * xml-support.c: Update.
9816
9817 2019-04-08 Tom Tromey <tom@tromey.com>
9818
9819 * xml-support.c: Use C++ exception handling.
9820 * x86-linux-nat.c: Use C++ exception handling.
9821 * windows-nat.c: Use C++ exception handling.
9822 * varobj.c: Use C++ exception handling.
9823 * value.c: Use C++ exception handling.
9824 * valprint.c: Use C++ exception handling.
9825 * valops.c: Use C++ exception handling.
9826 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9827 handling.
9828 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9829 * typeprint.c: Use C++ exception handling.
9830 * tui/tui.c: Use C++ exception handling.
9831 * tracefile-tfile.c: Use C++ exception handling.
9832 * top.c: Use C++ exception handling.
9833 * thread.c: Use C++ exception handling.
9834 * target.c: Use C++ exception handling.
9835 * symmisc.c: Use C++ exception handling.
9836 * symfile-mem.c: Use C++ exception handling.
9837 * stack.c: Use C++ exception handling.
9838 * sparc64-linux-tdep.c: Use C++ exception handling.
9839 * solib.c: Use C++ exception handling.
9840 * solib-svr4.c: Use C++ exception handling.
9841 * solib-spu.c: Use C++ exception handling.
9842 * solib-frv.c: Use C++ exception handling.
9843 * solib-dsbt.c: Use C++ exception handling.
9844 * selftest-arch.c: Use C++ exception handling.
9845 * s390-tdep.c: Use C++ exception handling.
9846 * rust-lang.c: Use C++ exception handling.
9847 * rust-exp.y: Use C++ exception handling.
9848 * rs6000-tdep.c: Use C++ exception handling.
9849 * rs6000-aix-tdep.c: Use C++ exception handling.
9850 * riscv-tdep.c: Use C++ exception handling.
9851 * remote.c: Use C++ exception handling.
9852 * remote-fileio.c: Use C++ exception handling.
9853 * record-full.c: Use C++ exception handling.
9854 * record-btrace.c: Use C++ exception handling.
9855 * python/python.c: Use C++ exception handling.
9856 * python/py-value.c: Use C++ exception handling.
9857 * python/py-utils.c: Use C++ exception handling.
9858 * python/py-unwind.c: Use C++ exception handling.
9859 * python/py-type.c: Use C++ exception handling.
9860 * python/py-symbol.c: Use C++ exception handling.
9861 * python/py-record.c: Use C++ exception handling.
9862 * python/py-record-btrace.c: Use C++ exception handling.
9863 * python/py-progspace.c: Use C++ exception handling.
9864 * python/py-prettyprint.c: Use C++ exception handling.
9865 * python/py-param.c: Use C++ exception handling.
9866 * python/py-objfile.c: Use C++ exception handling.
9867 * python/py-linetable.c: Use C++ exception handling.
9868 * python/py-lazy-string.c: Use C++ exception handling.
9869 * python/py-infthread.c: Use C++ exception handling.
9870 * python/py-inferior.c: Use C++ exception handling.
9871 * python/py-gdb-readline.c: Use C++ exception handling.
9872 * python/py-framefilter.c: Use C++ exception handling.
9873 * python/py-frame.c: Use C++ exception handling.
9874 * python/py-finishbreakpoint.c: Use C++ exception handling.
9875 * python/py-cmd.c: Use C++ exception handling.
9876 * python/py-breakpoint.c: Use C++ exception handling.
9877 * python/py-arch.c: Use C++ exception handling.
9878 * printcmd.c: Use C++ exception handling.
9879 * ppc-linux-tdep.c: Use C++ exception handling.
9880 * parse.c: Use C++ exception handling.
9881 * p-valprint.c: Use C++ exception handling.
9882 * objc-lang.c: Use C++ exception handling.
9883 * mi/mi-main.c: Use C++ exception handling.
9884 * mi/mi-interp.c: Use C++ exception handling.
9885 * mi/mi-cmd-stack.c: Use C++ exception handling.
9886 * mi/mi-cmd-break.c: Use C++ exception handling.
9887 * main.c: Use C++ exception handling.
9888 * linux-thread-db.c: Use C++ exception handling.
9889 * linux-tdep.c: Use C++ exception handling.
9890 * linux-nat.c: Use C++ exception handling.
9891 * linux-fork.c: Use C++ exception handling.
9892 * linespec.c: Use C++ exception handling.
9893 * language.c: Use C++ exception handling.
9894 * jit.c: Use C++ exception handling.
9895 * infrun.c: Use C++ exception handling.
9896 * infcmd.c: Use C++ exception handling.
9897 * infcall.c: Use C++ exception handling.
9898 * inf-loop.c: Use C++ exception handling.
9899 * i386-tdep.c: Use C++ exception handling.
9900 * i386-linux-tdep.c: Use C++ exception handling.
9901 * guile/scm-value.c: Use C++ exception handling.
9902 * guile/scm-type.c: Use C++ exception handling.
9903 * guile/scm-symtab.c: Use C++ exception handling.
9904 * guile/scm-symbol.c: Use C++ exception handling.
9905 * guile/scm-pretty-print.c: Use C++ exception handling.
9906 * guile/scm-ports.c: Use C++ exception handling.
9907 * guile/scm-param.c: Use C++ exception handling.
9908 * guile/scm-math.c: Use C++ exception handling.
9909 * guile/scm-lazy-string.c: Use C++ exception handling.
9910 * guile/scm-frame.c: Use C++ exception handling.
9911 * guile/scm-disasm.c: Use C++ exception handling.
9912 * guile/scm-cmd.c: Use C++ exception handling.
9913 * guile/scm-breakpoint.c: Use C++ exception handling.
9914 * guile/scm-block.c: Use C++ exception handling.
9915 * guile/guile-internal.h: Use C++ exception handling.
9916 * gnu-v3-abi.c: Use C++ exception handling.
9917 * gdbtypes.c: Use C++ exception handling.
9918 * frame.c: Use C++ exception handling.
9919 * frame-unwind.c: Use C++ exception handling.
9920 * fbsd-tdep.c: Use C++ exception handling.
9921 * f-valprint.c: Use C++ exception handling.
9922 * exec.c: Use C++ exception handling.
9923 * event-top.c: Use C++ exception handling.
9924 * event-loop.c: Use C++ exception handling.
9925 * eval.c: Use C++ exception handling.
9926 * dwarf2read.c: Use C++ exception handling.
9927 * dwarf2loc.c: Use C++ exception handling.
9928 * dwarf2-frame.c: Use C++ exception handling.
9929 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9930 * dwarf-index-write.c: Use C++ exception handling.
9931 * dwarf-index-cache.c: Use C++ exception handling.
9932 * dtrace-probe.c: Use C++ exception handling.
9933 * disasm-selftests.c: Use C++ exception handling.
9934 * darwin-nat.c: Use C++ exception handling.
9935 * cp-valprint.c: Use C++ exception handling.
9936 * cp-support.c: Use C++ exception handling.
9937 * cp-abi.c: Use C++ exception handling.
9938 * corelow.c: Use C++ exception handling.
9939 * completer.c: Use C++ exception handling.
9940 * compile/compile-object-run.c: Use C++ exception handling.
9941 * compile/compile-object-load.c: Use C++ exception handling.
9942 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9943 * compile/compile-c-symbols.c: Use C++ exception handling.
9944 * common/selftest.c: Use C++ exception handling.
9945 * common/new-op.c: Use C++ exception handling.
9946 * cli/cli-script.c: Use C++ exception handling.
9947 * cli/cli-interp.c: Use C++ exception handling.
9948 * cli/cli-cmds.c: Use C++ exception handling.
9949 * c-varobj.c: Use C++ exception handling.
9950 * btrace.c: Use C++ exception handling.
9951 * breakpoint.c: Use C++ exception handling.
9952 * break-catch-throw.c: Use C++ exception handling.
9953 * arch-utils.c: Use C++ exception handling.
9954 * amd64-tdep.c: Use C++ exception handling.
9955 * ada-valprint.c: Use C++ exception handling.
9956 * ada-typeprint.c: Use C++ exception handling.
9957 * ada-lang.c: Use C++ exception handling.
9958 * aarch64-tdep.c: Use C++ exception handling.
9959
9960 2019-04-08 Tom Tromey <tom@tromey.com>
9961
9962 * xml-support.c (gdb_xml_parser::parse): Update.
9963 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9964 * value.c (show_convenience): Update.
9965 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9966 (test_parse_flags_qcs): Update.
9967 * thread.c (thr_try_catch_cmd): Update.
9968 * target.c (target_translate_tls_address): Update.
9969 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9970 (info_frame_command_core, frame_apply_command_count): Update.
9971 * rust-exp.y (rust_lex_exception_test): Update.
9972 * riscv-tdep.c (riscv_print_one_register_info): Update.
9973 * remote.c (remote_target::enable_btrace): Update.
9974 * record-btrace.c (record_btrace_enable_warn): Update.
9975 * python/py-utils.c (gdbpy_convert_exception): Update.
9976 * printcmd.c (do_one_display, print_variable_and_value): Update.
9977 * mi/mi-main.c (mi_print_exception): Update.
9978 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9979 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9980 * linux-nat.c (linux_nat_target::attach): Update.
9981 * linux-fork.c (class scoped_switch_fork_info): Update.
9982 * infrun.c (displaced_step_prepare): Update.
9983 * infcall.c (call_function_by_hand_dummy): Update.
9984 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9985 * gnu-v3-abi.c (print_one_vtable): Update.
9986 * frame.c (get_prev_frame_always): Update.
9987 * f-valprint.c (info_common_command_for_block): Update.
9988 * exec.c (try_open_exec_file): Update.
9989 * exceptions.c (print_exception, exception_print)
9990 (exception_fprintf, exception_print_same): Update.
9991 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9992 * dwarf-index-cache.c (index_cache::store)
9993 (index_cache::lookup_gdb_index): Update.
9994 * darwin-nat.c (maybe_cache_shell): Update.
9995 * cp-valprint.c (cp_print_value_fields): Update.
9996 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9997 (gcc_cplus_symbol_address): Update.
9998 * compile/compile-c-symbols.c (gcc_convert_symbol)
9999 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10000 * common/selftest.c: Update.
10001 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10002 a std::string.
10003 (exception_try_scope_entry, exception_try_scope_exit): Don't
10004 declare.
10005 (struct exception_try_scope): Remove.
10006 (TRY): Don't use exception_try_scope.
10007 (struct gdb_exception): Add constructor, operator=.
10008 <what>: New method.
10009 (struct gdb_exception_RETURN_MASK_ALL)
10010 (struct gdb_exception_RETURN_MASK_ERROR)
10011 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10012 (struct gdb_quit_bad_alloc): Update.
10013 * common/common-exceptions.c (exception_none): Change
10014 initializer.
10015 (struct catcher) <state, exception>: Initialize inline.
10016 <prev>: Remove member.
10017 (current_catcher): Remove.
10018 (catchers): New global.
10019 (exceptions_state_mc_init): Simplify.
10020 (catcher_pop): Remove.
10021 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10022 (try_scope_depth, exception_try_scope_entry)
10023 (exception_try_scope_exit): Remove.
10024 (throw_exception_sjlj): Update.
10025 (exception_messages, exception_messages_size): Remove.
10026 (throw_it): Simplify.
10027 (gdb_exception_sliced_copy): Remove.
10028 (throw_exception_cxx): Update.
10029 * cli/cli-script.c (script_from_file): Update.
10030 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10031 Update.
10032 * ada-valprint.c (ada_val_print): Update.
10033 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10034 (create_excep_cond_exprs): Update.
10035
10036 2019-04-08 Tom Tromey <tom@tromey.com>
10037
10038 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10039 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10040 (TRY, CATCH, END_CATCH): Remove some definitions.
10041 * common/common-exceptions.c: Don't use GDB_XCPT.
10042 (catcher_list_size): Remove.
10043 (throw_exception, throw_it): Simplify.
10044
10045 2019-04-05 Tom Tromey <tom@tromey.com>
10046
10047 Revert the header-sorting patch.
10048 * ft32-tdep.c: Revert.
10049 * frv-tdep.c: Revert.
10050 * frv-linux-tdep.c: Revert.
10051 * frame.c: Revert.
10052 * frame-unwind.c: Revert.
10053 * frame-base.c: Revert.
10054 * fork-child.c: Revert.
10055 * findvar.c: Revert.
10056 * findcmd.c: Revert.
10057 * filesystem.c: Revert.
10058 * filename-seen-cache.h: Revert.
10059 * filename-seen-cache.c: Revert.
10060 * fbsd-tdep.c: Revert.
10061 * fbsd-nat.h: Revert.
10062 * fbsd-nat.c: Revert.
10063 * f-valprint.c: Revert.
10064 * f-typeprint.c: Revert.
10065 * f-lang.c: Revert.
10066 * extension.h: Revert.
10067 * extension.c: Revert.
10068 * extension-priv.h: Revert.
10069 * expprint.c: Revert.
10070 * exec.h: Revert.
10071 * exec.c: Revert.
10072 * exceptions.c: Revert.
10073 * event-top.c: Revert.
10074 * event-loop.c: Revert.
10075 * eval.c: Revert.
10076 * elfread.c: Revert.
10077 * dwarf2read.h: Revert.
10078 * dwarf2read.c: Revert.
10079 * dwarf2loc.c: Revert.
10080 * dwarf2expr.h: Revert.
10081 * dwarf2expr.c: Revert.
10082 * dwarf2-frame.c: Revert.
10083 * dwarf2-frame-tailcall.c: Revert.
10084 * dwarf-index-write.h: Revert.
10085 * dwarf-index-write.c: Revert.
10086 * dwarf-index-common.c: Revert.
10087 * dwarf-index-cache.h: Revert.
10088 * dwarf-index-cache.c: Revert.
10089 * dummy-frame.c: Revert.
10090 * dtrace-probe.c: Revert.
10091 * disasm.h: Revert.
10092 * disasm.c: Revert.
10093 * disasm-selftests.c: Revert.
10094 * dictionary.c: Revert.
10095 * dicos-tdep.c: Revert.
10096 * demangle.c: Revert.
10097 * dcache.h: Revert.
10098 * dcache.c: Revert.
10099 * darwin-nat.h: Revert.
10100 * darwin-nat.c: Revert.
10101 * darwin-nat-info.c: Revert.
10102 * d-valprint.c: Revert.
10103 * d-namespace.c: Revert.
10104 * d-lang.c: Revert.
10105 * ctf.c: Revert.
10106 * csky-tdep.c: Revert.
10107 * csky-linux-tdep.c: Revert.
10108 * cris-tdep.c: Revert.
10109 * cris-linux-tdep.c: Revert.
10110 * cp-valprint.c: Revert.
10111 * cp-support.c: Revert.
10112 * cp-namespace.c: Revert.
10113 * cp-abi.c: Revert.
10114 * corelow.c: Revert.
10115 * corefile.c: Revert.
10116 * continuations.c: Revert.
10117 * completer.h: Revert.
10118 * completer.c: Revert.
10119 * complaints.c: Revert.
10120 * coffread.c: Revert.
10121 * coff-pe-read.c: Revert.
10122 * cli-out.h: Revert.
10123 * cli-out.c: Revert.
10124 * charset.c: Revert.
10125 * c-varobj.c: Revert.
10126 * c-valprint.c: Revert.
10127 * c-typeprint.c: Revert.
10128 * c-lang.c: Revert.
10129 * buildsym.c: Revert.
10130 * buildsym-legacy.c: Revert.
10131 * build-id.h: Revert.
10132 * build-id.c: Revert.
10133 * btrace.c: Revert.
10134 * bsd-uthread.c: Revert.
10135 * breakpoint.h: Revert.
10136 * breakpoint.c: Revert.
10137 * break-catch-throw.c: Revert.
10138 * break-catch-syscall.c: Revert.
10139 * break-catch-sig.c: Revert.
10140 * blockframe.c: Revert.
10141 * block.c: Revert.
10142 * bfin-tdep.c: Revert.
10143 * bfin-linux-tdep.c: Revert.
10144 * bfd-target.c: Revert.
10145 * bcache.c: Revert.
10146 * ax-general.c: Revert.
10147 * ax-gdb.h: Revert.
10148 * ax-gdb.c: Revert.
10149 * avr-tdep.c: Revert.
10150 * auxv.c: Revert.
10151 * auto-load.c: Revert.
10152 * arm-wince-tdep.c: Revert.
10153 * arm-tdep.c: Revert.
10154 * arm-symbian-tdep.c: Revert.
10155 * arm-pikeos-tdep.c: Revert.
10156 * arm-obsd-tdep.c: Revert.
10157 * arm-nbsd-tdep.c: Revert.
10158 * arm-nbsd-nat.c: Revert.
10159 * arm-linux-tdep.c: Revert.
10160 * arm-linux-nat.c: Revert.
10161 * arm-fbsd-tdep.c: Revert.
10162 * arm-fbsd-nat.c: Revert.
10163 * arm-bsd-tdep.c: Revert.
10164 * arch-utils.c: Revert.
10165 * arc-tdep.c: Revert.
10166 * arc-newlib-tdep.c: Revert.
10167 * annotate.h: Revert.
10168 * annotate.c: Revert.
10169 * amd64-windows-tdep.c: Revert.
10170 * amd64-windows-nat.c: Revert.
10171 * amd64-tdep.c: Revert.
10172 * amd64-sol2-tdep.c: Revert.
10173 * amd64-obsd-tdep.c: Revert.
10174 * amd64-obsd-nat.c: Revert.
10175 * amd64-nbsd-tdep.c: Revert.
10176 * amd64-nbsd-nat.c: Revert.
10177 * amd64-nat.c: Revert.
10178 * amd64-linux-tdep.c: Revert.
10179 * amd64-linux-nat.c: Revert.
10180 * amd64-fbsd-tdep.c: Revert.
10181 * amd64-fbsd-nat.c: Revert.
10182 * amd64-dicos-tdep.c: Revert.
10183 * amd64-darwin-tdep.c: Revert.
10184 * amd64-bsd-nat.c: Revert.
10185 * alpha-tdep.c: Revert.
10186 * alpha-obsd-tdep.c: Revert.
10187 * alpha-nbsd-tdep.c: Revert.
10188 * alpha-mdebug-tdep.c: Revert.
10189 * alpha-linux-tdep.c: Revert.
10190 * alpha-linux-nat.c: Revert.
10191 * alpha-bsd-tdep.c: Revert.
10192 * alpha-bsd-nat.c: Revert.
10193 * aix-thread.c: Revert.
10194 * agent.c: Revert.
10195 * addrmap.c: Revert.
10196 * ada-varobj.c: Revert.
10197 * ada-valprint.c: Revert.
10198 * ada-typeprint.c: Revert.
10199 * ada-tasks.c: Revert.
10200 * ada-lang.c: Revert.
10201 * aarch64-tdep.c: Revert.
10202 * aarch64-ravenscar-thread.c: Revert.
10203 * aarch64-newlib-tdep.c: Revert.
10204 * aarch64-linux-tdep.c: Revert.
10205 * aarch64-linux-nat.c: Revert.
10206 * aarch64-fbsd-tdep.c: Revert.
10207 * aarch64-fbsd-nat.c: Revert.
10208 * aarch32-linux-nat.c: Revert.
10209
10210 2019-04-05 Tom Tromey <tom@tromey.com>
10211
10212 * ft32-tdep.c: Sort headers.
10213 * frv-tdep.c: Sort headers.
10214 * frv-linux-tdep.c: Sort headers.
10215 * frame.c: Sort headers.
10216 * frame-unwind.c: Sort headers.
10217 * frame-base.c: Sort headers.
10218 * fork-child.c: Sort headers.
10219 * findvar.c: Sort headers.
10220 * findcmd.c: Sort headers.
10221 * filesystem.c: Sort headers.
10222 * filename-seen-cache.h: Sort headers.
10223 * filename-seen-cache.c: Sort headers.
10224 * fbsd-tdep.c: Sort headers.
10225 * fbsd-nat.h: Sort headers.
10226 * fbsd-nat.c: Sort headers.
10227 * f-valprint.c: Sort headers.
10228 * f-typeprint.c: Sort headers.
10229 * f-lang.c: Sort headers.
10230 * extension.h: Sort headers.
10231 * extension.c: Sort headers.
10232 * extension-priv.h: Sort headers.
10233 * expprint.c: Sort headers.
10234 * exec.h: Sort headers.
10235 * exec.c: Sort headers.
10236 * exceptions.c: Sort headers.
10237 * event-top.c: Sort headers.
10238 * event-loop.c: Sort headers.
10239 * eval.c: Sort headers.
10240 * elfread.c: Sort headers.
10241 * dwarf2read.h: Sort headers.
10242 * dwarf2read.c: Sort headers.
10243 * dwarf2loc.c: Sort headers.
10244 * dwarf2expr.h: Sort headers.
10245 * dwarf2expr.c: Sort headers.
10246 * dwarf2-frame.c: Sort headers.
10247 * dwarf2-frame-tailcall.c: Sort headers.
10248 * dwarf-index-write.h: Sort headers.
10249 * dwarf-index-write.c: Sort headers.
10250 * dwarf-index-common.c: Sort headers.
10251 * dwarf-index-cache.h: Sort headers.
10252 * dwarf-index-cache.c: Sort headers.
10253 * dummy-frame.c: Sort headers.
10254 * dtrace-probe.c: Sort headers.
10255 * disasm.h: Sort headers.
10256 * disasm.c: Sort headers.
10257 * disasm-selftests.c: Sort headers.
10258 * dictionary.c: Sort headers.
10259 * dicos-tdep.c: Sort headers.
10260 * demangle.c: Sort headers.
10261 * dcache.h: Sort headers.
10262 * dcache.c: Sort headers.
10263 * darwin-nat.h: Sort headers.
10264 * darwin-nat.c: Sort headers.
10265 * darwin-nat-info.c: Sort headers.
10266 * d-valprint.c: Sort headers.
10267 * d-namespace.c: Sort headers.
10268 * d-lang.c: Sort headers.
10269 * ctf.c: Sort headers.
10270 * csky-tdep.c: Sort headers.
10271 * csky-linux-tdep.c: Sort headers.
10272 * cris-tdep.c: Sort headers.
10273 * cris-linux-tdep.c: Sort headers.
10274 * cp-valprint.c: Sort headers.
10275 * cp-support.c: Sort headers.
10276 * cp-namespace.c: Sort headers.
10277 * cp-abi.c: Sort headers.
10278 * corelow.c: Sort headers.
10279 * corefile.c: Sort headers.
10280 * continuations.c: Sort headers.
10281 * completer.h: Sort headers.
10282 * completer.c: Sort headers.
10283 * complaints.c: Sort headers.
10284 * coffread.c: Sort headers.
10285 * coff-pe-read.c: Sort headers.
10286 * cli-out.h: Sort headers.
10287 * cli-out.c: Sort headers.
10288 * charset.c: Sort headers.
10289 * c-varobj.c: Sort headers.
10290 * c-valprint.c: Sort headers.
10291 * c-typeprint.c: Sort headers.
10292 * c-lang.c: Sort headers.
10293 * buildsym.c: Sort headers.
10294 * buildsym-legacy.c: Sort headers.
10295 * build-id.h: Sort headers.
10296 * build-id.c: Sort headers.
10297 * btrace.c: Sort headers.
10298 * bsd-uthread.c: Sort headers.
10299 * breakpoint.h: Sort headers.
10300 * breakpoint.c: Sort headers.
10301 * break-catch-throw.c: Sort headers.
10302 * break-catch-syscall.c: Sort headers.
10303 * break-catch-sig.c: Sort headers.
10304 * blockframe.c: Sort headers.
10305 * block.c: Sort headers.
10306 * bfin-tdep.c: Sort headers.
10307 * bfin-linux-tdep.c: Sort headers.
10308 * bfd-target.c: Sort headers.
10309 * bcache.c: Sort headers.
10310 * ax-general.c: Sort headers.
10311 * ax-gdb.h: Sort headers.
10312 * ax-gdb.c: Sort headers.
10313 * avr-tdep.c: Sort headers.
10314 * auxv.c: Sort headers.
10315 * auto-load.c: Sort headers.
10316 * arm-wince-tdep.c: Sort headers.
10317 * arm-tdep.c: Sort headers.
10318 * arm-symbian-tdep.c: Sort headers.
10319 * arm-pikeos-tdep.c: Sort headers.
10320 * arm-obsd-tdep.c: Sort headers.
10321 * arm-nbsd-tdep.c: Sort headers.
10322 * arm-nbsd-nat.c: Sort headers.
10323 * arm-linux-tdep.c: Sort headers.
10324 * arm-linux-nat.c: Sort headers.
10325 * arm-fbsd-tdep.c: Sort headers.
10326 * arm-fbsd-nat.c: Sort headers.
10327 * arm-bsd-tdep.c: Sort headers.
10328 * arch-utils.c: Sort headers.
10329 * arc-tdep.c: Sort headers.
10330 * arc-newlib-tdep.c: Sort headers.
10331 * annotate.h: Sort headers.
10332 * annotate.c: Sort headers.
10333 * amd64-windows-tdep.c: Sort headers.
10334 * amd64-windows-nat.c: Sort headers.
10335 * amd64-tdep.c: Sort headers.
10336 * amd64-sol2-tdep.c: Sort headers.
10337 * amd64-obsd-tdep.c: Sort headers.
10338 * amd64-obsd-nat.c: Sort headers.
10339 * amd64-nbsd-tdep.c: Sort headers.
10340 * amd64-nbsd-nat.c: Sort headers.
10341 * amd64-nat.c: Sort headers.
10342 * amd64-linux-tdep.c: Sort headers.
10343 * amd64-linux-nat.c: Sort headers.
10344 * amd64-fbsd-tdep.c: Sort headers.
10345 * amd64-fbsd-nat.c: Sort headers.
10346 * amd64-dicos-tdep.c: Sort headers.
10347 * amd64-darwin-tdep.c: Sort headers.
10348 * amd64-bsd-nat.c: Sort headers.
10349 * alpha-tdep.c: Sort headers.
10350 * alpha-obsd-tdep.c: Sort headers.
10351 * alpha-nbsd-tdep.c: Sort headers.
10352 * alpha-mdebug-tdep.c: Sort headers.
10353 * alpha-linux-tdep.c: Sort headers.
10354 * alpha-linux-nat.c: Sort headers.
10355 * alpha-bsd-tdep.c: Sort headers.
10356 * alpha-bsd-nat.c: Sort headers.
10357 * aix-thread.c: Sort headers.
10358 * agent.c: Sort headers.
10359 * addrmap.c: Sort headers.
10360 * ada-varobj.c: Sort headers.
10361 * ada-valprint.c: Sort headers.
10362 * ada-typeprint.c: Sort headers.
10363 * ada-tasks.c: Sort headers.
10364 * ada-lang.c: Sort headers.
10365 * aarch64-tdep.c: Sort headers.
10366 * aarch64-ravenscar-thread.c: Sort headers.
10367 * aarch64-newlib-tdep.c: Sort headers.
10368 * aarch64-linux-tdep.c: Sort headers.
10369 * aarch64-linux-nat.c: Sort headers.
10370 * aarch64-fbsd-tdep.c: Sort headers.
10371 * aarch64-fbsd-nat.c: Sort headers.
10372 * aarch32-linux-nat.c: Sort headers.
10373
10374 2019-04-04 Tom Tromey <tom@tromey.com>
10375
10376 * varobj.c (varobj_create): Update.
10377 * rust-exp.y (struct rust_parser) <update_innermost_block,
10378 lookup_symbol>: New methods.
10379 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10380 Rename.
10381 (rust_parser::rust_lookup_type)
10382 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10383 * printcmd.c (display_command, do_one_display): Update.
10384 * parser-defs.h (struct parser_state) <parser_state>: Add
10385 "tracker" parameter.
10386 (block_tracker): New member.
10387 (class innermost_block_tracker) <innermost_block_tracker>: Add
10388 "types" parameter.
10389 <reset>: Remove method.
10390 (innermost_block): Don't declare.
10391 (null_post_parser): Update.
10392 * parse.c (innermost_block): Remove global.
10393 (write_dollar_variable): Update.
10394 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10395 Remove "tracker_types" parameter.
10396 (parse_expression): Add "tracker" parameter.
10397 (parse_expression_for_completion): Update.
10398 (null_post_parser): Add "tracker" parameter.
10399 * p-exp.y: Update rules.
10400 * m2-exp.y: Update rules.
10401 * language.h (struct language_defn) <la_post_parser>: Add
10402 "tracker" parameter.
10403 * go-exp.y: Update rules.
10404 * f-exp.y: Update rules.
10405 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10406 parameter.
10407 * d-exp.y: Update rules.
10408 * c-exp.y: Update rules.
10409 * breakpoint.c (set_breakpoint_condition): Create an
10410 innermost_block_tracker.
10411 (watch_command_1): Likewise.
10412 * ada-lang.c (resolve): Add "tracker" parameter.
10413 (resolve_subexp): Likewise.
10414 * ada-exp.y (write_var_from_sym): Update.
10415
10416 2019-04-04 Tom Tromey <tom@tromey.com>
10417
10418 * type-stack.h: New file.
10419 * type-stack.c: New file.
10420 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10421 type-stack.h.
10422 (insert_into_type_stack, insert_type, push_type, push_type_int)
10423 (insert_type_address_space, pop_type, pop_type_int)
10424 (pop_typelist, pop_type_stack, append_type_stack)
10425 (push_type_stack, get_type_stack, push_typelist)
10426 (follow_type_instance_flags, follow_types): Don't declare.
10427 * parse.c (type_stack): Remove global.
10428 (parse_exp_in_context): Update.
10429 (insert_into_type_stack, insert_type, push_type, push_type_int)
10430 (insert_type_address_space, pop_type, pop_type_int)
10431 (pop_typelist, pop_type_stack, append_type_stack)
10432 (push_type_stack, get_type_stack, push_typelist)
10433 (follow_type_instance_flags, follow_types): Remove (moved to
10434 type-stack.c).
10435 * f-exp.y (type_stack): New global.
10436 Update rules.
10437 (push_kind_type, f_parse): Update.
10438 * d-exp.y (type_stack): New global.
10439 Update rules.
10440 (d_parse): Update.
10441 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10442 Update rules.
10443 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10444 (HFILES_NO_SRCDIR): Add type-stack.h.
10445
10446 2019-04-04 Tom Tromey <tom@tromey.com>
10447
10448 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10449 (rust_parser::convert_ast_to_expression, rust_parse)
10450 (rust_lex_test_completion, rust_lex_tests): Update.
10451 * parser-defs.h (struct expr_completion_state): New.
10452 (struct parser_state) <parser_state>: Add completion parameter.
10453 <mark_struct_expression, mark_completion_tag>: New methods.
10454 <parse_completion, m_completion_state>: New members.
10455 (prefixify_expression, null_post_parser): Update.
10456 (mark_struct_expression, mark_completion_tag): Don't declare.
10457 * parse.c (parse_completion, expout_last_struct)
10458 (expout_tag_completion_type, expout_completion_name): Remove
10459 globals.
10460 (parser_state::mark_struct_expression)
10461 (parser_state::mark_completion_tag): Now methods.
10462 (prefixify_expression): Add last_struct parameter.
10463 (prefixify_subexp): Likewise.
10464 (parse_exp_1): Update.
10465 (parse_exp_in_context): Add cstate parameter. Update.
10466 (parse_expression_for_completion): Create an
10467 expr_completion_state.
10468 (null_post_parser): Add "completion" parameter.
10469 * p-exp.y: Update rules.
10470 (yylex): Update.
10471 * language.h (struct language_defn) <la_post_parser>: Add
10472 "completing" parameter.
10473 * go-exp.y: Update rules.
10474 (lex_one_token): Update.
10475 * expression.h (parse_completion): Don't declare.
10476 * d-exp.y: Update rules.
10477 (lex_one_token): Update rules.
10478 * c-exp.y: Update rules.
10479 (lex_one_token): Update.
10480 * ada-lang.c (resolve): Add "parse_completion" parameter.
10481 (resolve_subexp): Likewise.
10482 (ada_resolve_function): Likewise.
10483
10484 2019-04-04 Tom Tromey <tom@tromey.com>
10485
10486 * parser-defs.h (struct parser_state) <start_arglist,
10487 end_arglist>: New methods.
10488 <arglist_len, m_funcall_chain>: New members.
10489 (arglist_len, start_arglist, end_arglist): Don't declare.
10490 * parse.c (arglist_len, funcall_chain): Remove global.
10491 (start_arglist, end_arglist): Remove functions.
10492 (parse_exp_in_context): Update.
10493 * p-exp.y: Update rules.
10494 * m2-exp.y: Update rules.
10495 * go-exp.y: Update rules.
10496 * f-exp.y: Update rules.
10497 * d-exp.y: Update rules.
10498 * c-exp.y: Update rules.
10499
10500 2019-04-04 Tom Tromey <tom@tromey.com>
10501
10502 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10503 lex_operator, push_back>: New methods.
10504 Update all rules.
10505 (rust_parser::lex_hex, lex_escape): Rename and update.
10506 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10507 (rust_parser::lex_operator): Rename and update.
10508 (rust_parser::lex_number, rustyylex, rustyyerror)
10509 (rust_lex_test_init, rust_lex_test_sequence)
10510 (rust_lex_test_push_back, rust_lex_tests): Update.
10511 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10512 parameter.
10513 <lexptr, prev_lexptr>: New members.
10514 (lexptr, prev_lexptr): Don't declare.
10515 * parse.c (lexptr, prev_lexptr): Remove globals.
10516 (parse_exp_in_context): Update.
10517 * p-exp.y (yylex, yyerror): Update.
10518 * m2-exp.y (parse_number, yylex, yyerror): Update.
10519 * go-exp.y (lex_one_token, yyerror): Update.
10520 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10521 * d-exp.y (lex_one_token, yyerror): Update.
10522 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10523 (lex_one_token, yyerror): Update.
10524 * ada-lex.l (YY_INPUT): Update.
10525 (rewind_to_char): Update.
10526 * ada-exp.y (yyerror): Update.
10527
10528 2019-04-04 Tom Tromey <tom@tromey.com>
10529
10530 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10531 * parser-defs.h (struct parser_state) <parser_state>: Add new
10532 parameter.
10533 <comma_terminates>: New member.
10534 (comma_terminates): Don't declare global.
10535 * parse.c (comma_terminates): Remove global.
10536 (parse_exp_in_context): Update.
10537 * p-exp.y (yylex): Update.
10538 * m2-exp.y (yylex): Update.
10539 * go-exp.y (lex_one_token): Update.
10540 * f-exp.y (yylex): Update.
10541 * d-exp.y (lex_one_token): Update.
10542 * c-exp.y (lex_one_token): Update.
10543 * ada-lex.l: Update.
10544
10545 2019-04-04 Tom Tromey <tom@tromey.com>
10546
10547 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10548 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10549 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10550 * parser-defs.h (paren_depth): Don't declare.
10551 * parse.c (paren_depth): Remove global.
10552 (parse_exp_in_context): Update.
10553 * p-exp.y (paren_depth): New global.
10554 (pascal_parse): Initialize it.
10555 * m2-exp.y (paren_depth): New global.
10556 (m2_parse): Initialize it.
10557 * go-exp.y (paren_depth): New global.
10558 (go_parse): Initialize it.
10559 * f-exp.y (paren_depth): New global.
10560 (f_parse): Initialize it.
10561 * d-exp.y (paren_depth): New global.
10562 (d_parse): Initialize it.
10563 * c-exp.y (paren_depth): New global.
10564 (c_parse): Initialize it.
10565 * ada-lex.l (paren_depth): New global.
10566 (lexer_init): Initialize it.
10567
10568 2019-04-04 Tom Tromey <tom@tromey.com>
10569
10570 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10571 (rust_parser::convert_ast_to_type)
10572 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10573 * parser-defs.h (struct parser_state) <parser_state>: Add
10574 parameters. Initialize new members.
10575 <expression_context_block, expression_context_pc>: New members.
10576 * parse.c (expression_context_block, expression_context_pc):
10577 Remove globals.
10578 (parse_exp_in_context): Update.
10579 * p-exp.y: Update all rules.
10580 (yylex): Update.
10581 * m2-exp.y: Update all rules.
10582 (yylex): Update.
10583 * go-exp.y (yylex): Update.
10584 * f-exp.y (yylex): Update.
10585 * d-exp.y: Update all rules.
10586 (yylex): Update.
10587 * c-exp.y: Update all rules.
10588 (lex_one_token, classify_name, yylex, c_parse): Update.
10589 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10590
10591 2019-04-04 Tom Tromey <tom@tromey.com>
10592
10593 * gdbarch.h, gdbarch.c: Rebuild.
10594 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10595 * stap-probe.h:
10596 (struct stap_parse_info): Replace "parser_state" with
10597 "expr_builder".
10598 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10599 (parser_state): New class.
10600 * parse.c (expr_builder): Rename.
10601 (expr_builder::release): Rename.
10602 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10603 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10604 (write_exp_elt_longcst, write_exp_elt_floatcst)
10605 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10606 (write_exp_string_vector, write_exp_bitstring)
10607 (write_exp_msymbol, mark_struct_expression)
10608 (write_dollar_variable)
10609 (insert_type_address_space, increase_expout_size): Replace
10610 "parser_state" with "expr_builder".
10611 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10612 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10613 "parser_state" with "expr_builder".
10614
10615 2019-04-04 Tom Tromey <tom@tromey.com>
10616
10617 * rust-exp.y: Replace "parse_language" with method call.
10618 * p-exp.y:
10619 (yylex): Replace "parse_language" with method call.
10620 * m2-exp.y:
10621 (yylex): Replace "parse_language" with method call.
10622 * go-exp.y (classify_name): Replace "parse_language" with method
10623 call.
10624 * f-exp.y (yylex): Replace "parse_language" with method call.
10625 * d-exp.y (lex_one_token): Replace "parse_language" with method
10626 call.
10627 * c-exp.y:
10628 (lex_one_token, classify_name, yylex): Replace "parse_language"
10629 with method call.
10630 * ada-exp.y (find_primitive_type, type_char)
10631 (type_system_address): Replace "parse_language" with method call.
10632
10633 2019-04-04 Tom Tromey <tom@tromey.com>
10634
10635 * rust-exp.y: Replace "parse_gdbarch" with method call.
10636 * parse.c (write_dollar_variable, insert_type_address_space):
10637 Replace "parse_gdbarch" with method call.
10638 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10639 call.
10640 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10641 call.
10642 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10643 "parse_gdbarch" with method call.
10644 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10645 with method call.
10646 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10647 "parse_gdbarch" with method call.
10648 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10649 "parse_gdbarch" with method call.
10650 * c-exp.y (parse_type, parse_number, classify_name): Replace
10651 "parse_gdbarch" with method call.
10652 * ada-lex.l: Replace "parse_gdbarch" with method call.
10653 * ada-exp.y (parse_type, find_primitive_type, type_char)
10654 (type_system_address): Replace "parse_gdbarch" with method call.
10655
10656 2019-04-04 Tom Tromey <tom@tromey.com>
10657
10658 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10659 * stap-probe.c (stap_parse_argument): Update.
10660 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10661 initial_size parameter.
10662 * rust-exp.y (rust_lex_tests): Update.
10663 * parse.c (parser_state): Update.
10664 (parse_exp_in_context): Update.
10665 * parser-defs.h (struct parser_state) <parser_state>: Remove
10666 "initial_size" parameter.
10667
10668 2019-04-04 Tom Tromey <tom@tromey.com>
10669
10670 * parser-defs.h (increase_expout_size): Don't declare.
10671 * parse.c (increase_expout_size): Now static.
10672
10673 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10674
10675 * gnu-nat.c (gnu_nat_target::wait): Fix
10676 target_waitstatus_to_string call.
10677
10678 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * eval.c (evaluate_subexp_standard): Handle internal functions
10681 during Fortran function call handling.
10682
10683 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10684
10685 * NEWS: Mention new internal functions.
10686 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10687 (read_base_type): Use dwarf2_init_complex_target_type.
10688 * value.c (creal_internal_fn): New function.
10689 (cimag_internal_fn): New function.
10690 (_initialize_values): Register new internal functions.
10691
10692 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10693
10694 * infrun.c (stop_all_threads): If debug_infrun, always
10695 trace the wait status after wait_one, using
10696 target_waitstatus_to_string and target_pid_to_str.
10697 (handle_inferior_event): Replace various trace of
10698 wait status kind by a single trace.
10699 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10700 wait status kind image by target_waitstatus_to_string.
10701 * target/waitstatus.c (target_waitstatus_to_string): Fix
10702 obsolete comment.
10703
10704 2019-04-01 Tom Tromey <tromey@adacore.com>
10705
10706 PR symtab/23331:
10707 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10708
10709 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10710 Pedro Alves <palves@redhat.com>
10711
10712 * top.c (quit_force): Call 'finalize_values'.
10713 * value.c (finalize_values): New function.
10714 * value.h (finalize_values): Declare.
10715
10716 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10717
10718 * NEWS: Announce $_gdb_major and $_gdb_minor.
10719
10720 * top.c (init_gdb_version_vars): New function.
10721 (gdb_init): Call init_gdb_version_vars.
10722
10723 2019-03-29 Tom Tromey <tromey@adacore.com>
10724
10725 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10726 help text. Remove dead code.
10727
10728 2019-03-29 Keith Seitz <keiths@redhat.com>
10729
10730 From Siddhesh Poyarekar:
10731 * f-lang.h (f77_get_upperbound): Return LONGEST.
10732 (f77_get_lowerbound): Likewise.
10733 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10734 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10735 print them.
10736 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10737 plongest to format print it.
10738 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10739 (f77_get_upperbound): Likewise.
10740 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10741 LOWER_BOUND to LONGEST.
10742 (f77_create_arrayprint_offset_tbl): Likewise.
10743
10744 2019-03-29 Keith Seitz <keiths@redhat.com>
10745
10746 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10747 %s/pulongest for TYPE_LENGTH instead of %d in format
10748 strings.
10749 * ada-typerint.c (ada_print_type): Likewise.
10750 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10751 * compile/compile-c-support.c (generate_register_struct): Likewise.
10752 * gdbtypes.c (recursive_dump_type): Likewise.
10753 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10754 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10755 instead of %d in format strings.
10756 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10757 to std::min to ULONGEST.
10758 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10759 instead of %d in format strings.
10760 * tracepoint.c (info_scope_command): Likewise.
10761 * typeprint.c (print_offset_data::update)
10762 (print_offset_data::finish): Likewise.
10763 * xtensa-tdep.c (xtensa_store_return_value)
10764 (xtensa_push_dummy_call): Likewise.
10765
10766 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10767
10768 * windows-nat.c (display_selector): Fixed format specifications
10769 for 64-bit Cygwin.
10770
10771 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10772
10773 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10774
10775 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10776
10777 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10778 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10779 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10780 (nios2_linux_init_abi): Install it.
10781
10782 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10783
10784 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10785
10786 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10787
10788 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10789
10790 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10791 Tom Tromey <tromey@adacore.com>
10792
10793 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10794
10795 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10796
10797 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10798 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10799 method to compute the bounds of range types. Also print "[evaluated]"
10800 if the bounds' values come from a dynamic evaluation.
10801
10802 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10805 whitespace when pretty printing is on.
10806
10807 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10808
10809 * ppc-linux-nat.c: Add include.
10810
10811 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10812
10813 * NEWS: Mention AArch64 Pointer Authentication.
10814
10815 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10816
10817 * arm-linux-nat.c: Add include.
10818
10819 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10820
10821 * source-cache.c (source_cache::get_source_lines): Re-read
10822 fullname after calling open_source_file.
10823
10824 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10825
10826 * NEWS: Mention TLS support for FreeBSD.
10827
10828 2019-03-25 Tom Tromey <tromey@adacore.com>
10829
10830 * minsyms.c (BUNCH_SIZE): Update comment.
10831 (~minimal_symbol_reader): Remove old comment.
10832 (compact_minimal_symbols): Update comment.
10833 (minimal_symbol_reader::install): Remove old comment. Update
10834 other comments.
10835
10836 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10837
10838 * s390-linux-nat.c: Add include.
10839
10840 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10841
10842 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10843 Call linux_get_hwcap.
10844 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10845 Likewise.
10846 (aarch64_linux_get_hwcap): Remove function.
10847 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10848 declaration.
10849 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10850 linux_get_hwcap.
10851 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10852 * linux-tdep.c (linux_get_hwcap): Add function.
10853 (linux_get_hwcap2): Likewise.
10854 * linux-tdep.h (linux_get_hwcap): Add declaration.
10855 (linux_get_hwcap2): Likewise.
10856 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10857 (ppc_linux_get_hwcap2): Likewise.
10858 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10859 linux_get_hwcap.
10860 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10861 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10862 (ppc_linux_nat_target::read_description): Likewise.
10863 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10864 * s390-linux-nat.c: Likewise.
10865 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10866
10867 2019-03-24 Tom Tromey <tom@tromey.com>
10868
10869 * ada-lang.c (standard_lookup): Simplify initialization.
10870 (ada_lookup_symbol_nonlocal): Simplify return.
10871 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10872 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10873 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10874 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10875 initialization.
10876 * solib.c (solib_global_lookup): Simplify.
10877 * symtab.c (null_block_symbol): Remove.
10878 (symbol_cache_lookup): Simplify returns.
10879 (lookup_language_this): Simplify returns.
10880 (lookup_symbol_aux): Simplify return.
10881 (lookup_local_symbol): Simplify returns.
10882 (lookup_global_symbol_from_objfile): Simplify return.
10883 (lookup_symbol_in_objfile_symtabs)
10884 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10885 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10886 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10887 * cp-namespace.c (cp_lookup_bare_symbol)
10888 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10889 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10890 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10891 (cp_lookup_symbol_via_imports): Simplify initialization.
10892 (find_symbol_in_baseclass): Likewise.
10893 * symtab.h (null_block_symbol): Remove.
10894 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10895 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10896 (d_lookup_symbol_module): Likewise.
10897 (find_symbol_in_baseclass): Simplify initialization.
10898
10899 2019-03-24 Tom Tromey <tom@tromey.com>
10900
10901 * expression.h: Don't include symtab.h.
10902 (struct block): Forward declare.
10903
10904 2019-03-24 Tom Tromey <tom@tromey.com>
10905
10906 * c-exp.y (typebase): Remove casts.
10907 * gdbtypes.c (lookup_unsigned_typename, )
10908 (lookup_signed_typename): Remove cast.
10909 * eval.c (parse_to_comma_and_eval): Remove cast.
10910 * parse.c (write_dollar_variable): Remove cast.
10911 * block.h (struct block) <superblock>: Now const.
10912 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10913 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10914 (map_block): Make "block" const.
10915 * symfile.h (struct quick_symbol_functions)
10916 <map_matching_symbols>: Constify block argument to "callback".
10917 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10918 const.
10919 (find_pc_sect_compunit_symtab): Make "b" const.
10920 (find_symbol_at_address): Likewise.
10921 (search_symbols): Likewise.
10922 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10923 (dw2_debug_names_lookup_symbol): Likewise.
10924 (dw2_map_matching_symbols): Update.
10925 * p-valprint.c (pascal_val_print): Remove "block".
10926 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10927 (aux_add_nonlocal_symbols): Make "block" const.
10928 (resolve_subexp): Remove cast.
10929 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10930 const.
10931 (iterate_over_file_blocks): Likewise.
10932 * f-exp.y (%union) <bval>: Remove.
10933 * coffread.c (patch_opaque_types): Make "b" const.
10934 * spu-tdep.c (spu_catch_start): Make "block" const.
10935 * c-valprint.c (print_unpacked_pointer): Remove "block".
10936 * symmisc.c (dump_symtab_1): Make "b" const.
10937 (block_depth): Make "block" const.
10938 * d-exp.y (%union) <bval>: Remove.
10939 * cp-support.h (cp_lookup_rtti_type): Update.
10940 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10941 * psymtab.c (psym_lookup_symbol): Make "block" const.
10942 (maintenance_check_psymtabs): Make "b" const.
10943 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10944 (enumerate_locals, enumerate_args): Update.
10945 * python/py-symtab.c (stpy_global_block): Make "block" const.
10946 (stpy_static_block): Likewise.
10947 * inline-frame.c (block_starting_point_at): Make "new_block"
10948 const.
10949 * block.c (find_block_in_blockvector): Make return type const.
10950 (blockvector_for_pc_sect): Make "b" const.
10951 (find_block_in_blockvector): Make "b" const.
10952
10953 2019-03-23 Tom Tromey <tom@tromey.com>
10954
10955 * varobj.c (varobj_create): Update.
10956 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10957 * printcmd.c (display_command, do_one_display): Don't reset
10958 innermost_block.
10959 * parser-defs.h (enum innermost_block_tracker_type): Move to
10960 expression.h.
10961 (innermost_block): Update comment.
10962 * parse.c (parse_exp_1): Add tracker_types parameter.
10963 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10964 tracker_types parameter. Reset innermost_block.
10965 (parse_exp_in_context): Remove.
10966 (parse_expression_for_completion): Update.
10967 * objfiles.c (~objfile): Don't reset expression_context_block or
10968 innermost_block.
10969 * expression.h (enum innermost_block_tracker_type): Move from
10970 parser-defs.h.
10971 (parse_exp_1): Add tracker_types parameter.
10972 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10973 reset innermost_block.
10974
10975 2019-03-23 Tom Tromey <tom@tromey.com>
10976
10977 * objfiles.h: Include bcache.h.
10978
10979 2019-03-23 Tom Tromey <tom@tromey.com>
10980
10981 * linespec.c (get_current_search_block): Use
10982 scoped_restore_current_language.
10983 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10984
10985 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10986 Jiong Wang <jiong.wang@arm.com>
10987
10988 * aarch64-linux-tdep.c
10989 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10990 section.
10991 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10992
10993 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10994 Jiong Wang <jiong.wang@arm.com>
10995
10996 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10997 instructions.
10998 (aarch64_analyze_prologue_test): Add PACIASP test.
10999 (aarch64_prologue_prev_register): Unmask PC value.
11000
11001 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11002 Jiong Wang <jiong.wang@arm.com>
11003
11004 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11005 (aarch64_dwarf2_prev_register): Unmask PC value.
11006 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11007 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11008 DW_CFA_AARCH64_negate_ra_state.
11009 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11010
11011 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11012 Jiong Wang <jiong.wang@arm.com>
11013
11014 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11015 registers.
11016 (aarch64_pseudo_register_name): Likewise.
11017 (aarch64_pseudo_register_type): Likewise.
11018 (aarch64_pseudo_register_reggroup_p): Likewise.
11019 (aarch64_gdbarch_init): Add pauth registers.
11020 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11021 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11022 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11023 (struct gdbarch_tdep): Add regnum for ra_state.
11024
11025 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11026 Jiong Wang <jiong.wang@arm.com>
11027
11028 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11029
11030 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11031 Jiong Wang <jiong.wang@arm.com>
11032
11033 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11034 function.
11035 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11036 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11037 (aarch64_gdbarch_init): Add puth registers.
11038 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11039 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11040 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11041
11042 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11043 Jiong Wang <jiong.wang@arm.com>
11044
11045 * aarch64-linux-nat.c
11046 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11047 * aarch64-linux-tdep.c
11048 (aarch64_linux_core_read_description): Likewise.
11049 (aarch64_linux_get_hwcap): New function.
11050 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11051 (aarch64_linux_get_hwcap): New declaration.
11052
11053 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11054 Jiong Wang <jiong.wang@arm.com>
11055
11056 * aarch64-linux-nat.c
11057 (aarch64_linux_nat_target::read_description): Add pauth param.
11058 * aarch64-linux-tdep.c
11059 (aarch64_linux_core_read_description): Likewise.
11060 * aarch64-tdep.c (struct target_desc): Add in pauth.
11061 (aarch64_read_description): Add pauth param.
11062 (aarch64_gdbarch_init): Likewise.
11063 * aarch64-tdep.h (aarch64_read_description): Likewise.
11064 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11065 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11066 * features/Makefile: Add new files.
11067 * features/aarch64-pauth.c: New file.
11068 * features/aarch64-pauth.xml: New file.
11069
11070 2019-03-20 Tom Tromey <tromey@adacore.com>
11071
11072 * infrun.c (handle_inferior_event): Rename from
11073 handle_inferior_event_1. Create a scoped_value_mark.
11074 (handle_inferior_event): Remove.
11075
11076 2019-03-19 Tom Tromey <tromey@adacore.com>
11077
11078 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11079 * infrun.h (print_stop_event): Add "displays" parameter.
11080 * infrun.c (print_stop_event): Add "displays" parameter.
11081
11082 2019-03-19 Pedro Alves <palves@redhat.com>
11083
11084 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11085 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11086 to -1. Fix TABs vs spaces.
11087 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11088 * tui/tui-out.h (tui_ui_out) Add intro comments.
11089 <m_line, m_start_of_line>: In-class initialize, and add describing
11090 comment.
11091
11092 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11093
11094 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11095 variable names.
11096 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11097
11098 2019-03-18 Pedro Alves <palves@redhat.com>
11099 Eli Zaretskii <eliz@gnu.org>
11100
11101 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11102 m_line and m_start_of_line.
11103
11104 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11105
11106 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11107 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11108 it returns a newline. This fixes a regression in TU mode, whereby
11109 the next line is output on the same screen line as the user input.
11110
11111 2019-03-18 Tom Tromey <tromey@adacore.com>
11112
11113 * minsyms.c (minimal_symbol_reader::install): Remove call to
11114 obstack_blank.
11115
11116 2019-03-18 Pedro Alves <palves@redhat.com>
11117
11118 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11119 New globals.
11120 (apply_style): New, factored out from ...
11121 (apply_ansi_escape): ... this. Handle reverse video mode.
11122 (tui_set_reverse_mode): New function.
11123 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11124 * tui/tui-winsource.c (tui_show_source_line): Use
11125 tui_set_reverse_mode instead of setting A_STANDOUT.
11126 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11127 New setter methods.
11128
11129 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11130
11131 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11132 Handle tabs.
11133
11134 2019-03-18 Tom Tromey <tromey@adacore.com>
11135
11136 * ada-lang.c (empty_array): Add "high" parameter.
11137 (ada_evaluate_subexp): Update.
11138
11139 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11140
11141 * unittests/string_view-selftests.c: Define
11142 _initialize_string_view_selftests unconditionally.
11143
11144 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11145
11146 PR gdb/24350
11147 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11148
11149 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11150
11151 PR gdb/24351
11152 * windows-nat.c (display_selector): Fix format specifiers.
11153
11154 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11155
11156 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11157 tui_refill_source_window instead of tui_refresh_win, to update the
11158 current execution line. This fixes redisplay of the current line
11159 when stepping through the code with "next" or "step".
11160
11161 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11162
11163 * source-cache.c (source_cache::get_source_lines): Call
11164 find_source_lines to initialize s->nlines. This fixes vertical
11165 scrolling of TUI source window when the DOWN arrow is pressed.
11166
11167 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11168
11169 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11170 linux-thread-db.c (_initialize_thread_db): Likewise.
11171
11172 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11173
11174 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11175 wclrtoeol in tui_show_source_line". This reverts changes made in
11176 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11177
11178 2019-03-15 Tom Tromey <tom@tromey.com>
11179
11180 * symtab.h (struct minimal_symbol): Derive from
11181 general_symbol_info.
11182 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11183 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11184 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11185 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11186 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11187 (MSYMBOL_SEARCH_NAME): Update.
11188 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11189 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11190 * minsyms.c (minimal_symbol_reader::record_full): Update.
11191
11192 2019-03-15 Tom Tromey <tom@tromey.com>
11193
11194 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11195
11196 2019-03-15 Tom Tromey <tom@tromey.com>
11197
11198 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11199 unique_xmalloc_ptr.
11200 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11201 Update.
11202 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11203 (build_minimal_symbol_hash_tables)
11204 (minimal_symbol_reader::install): Update.
11205
11206 2019-03-15 Tom Tromey <tom@tromey.com>
11207
11208 * symtab.c (create_demangled_names_hash): Update.
11209 (symbol_set_names): Update.
11210 * objfiles.h (struct objfile_per_bfd_storage)
11211 <demangled_names_hash>: Now an htab_up.
11212 * objfiles.c (objfile_per_bfd_storage): Simplify.
11213
11214 2019-03-15 Tom Tromey <tom@tromey.com>
11215
11216 * objfiles.h (struct objfile_per_bfd_storage): Declare
11217 destructor.
11218 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11219 New.
11220 (get_objfile_bfd_data): Use new. Don't initialize
11221 language_of_main.
11222 (free_objfile_per_bfd_storage): Remove.
11223 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11224
11225 2019-03-15 Tom Tromey <tom@tromey.com>
11226
11227 * symfile.c (reread_symbols): Update.
11228 * objfiles.c (objfile::objfile): Update.
11229 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11231 comment.
11232 (minimal_symbol_reader::install): Update.
11233 (terminate_minimal_symbol_table): Remove.
11234 * jit.c (jit_object_close_impl): Update.
11235
11236 2019-03-15 Tom Tromey <tom@tromey.com>
11237
11238 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11239 initializations.
11240
11241 2019-03-15 Tom Tromey <tom@tromey.com>
11242
11243 * objfiles.h (struct objfile_per_bfd_storage)
11244 <demangled_hash_languages>: Now a bitset.
11245 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11246 (lookup_minimal_symbol): Update.
11247
11248 2019-03-15 Tom Tromey <tom@tromey.com>
11249
11250 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11251 Don't return the symbol.
11252 * coffread.c (record_minimal_symbol): Use record_full.
11253
11254 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11255
11256 The MS-Windows port of ncurses fails to switch to a color pair if
11257 one or both of the colors are the implicit default colors. This
11258 change records the default colors when TUI is initialized, and
11259 then specifies them explicitly when a color pair uses the default
11260 colors. This allows color styling in TUI mode on MS-Windows.
11261
11262 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11263 ncurses_norm_attr.
11264 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11265 colors in ncurses_norm_attr.
11266 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11267 "none", replace it with the default color recorded in
11268 ncurses_norm_attr.
11269
11270 2019-03-14 Tom Tromey <tromey@adacore.com>
11271
11272 * source-cache.h (class source_cache) <get_source_lines>: Return
11273 std::string.
11274 * source-cache.c (source_cache::extract_lines): Handle case where
11275 first_pos==npos. Return std::string.
11276 (source_cache::get_source_lines): Update.
11277
11278 2019-03-14 Tom Tromey <tromey@adacore.com>
11279
11280 * NEWS: Add item for "style sources" commands.
11281 * source-cache.c (source_cache::get_source_lines): Check
11282 source_styling.
11283 * cli/cli-style.c (source_styling): New global.
11284 (_initialize_cli_style): Add "style sources" commands.
11285 (show_style_sources): New function.
11286 * cli/cli-style.h (source_styling): Declare.
11287
11288 2019-03-14 Pedro Alves <palves@redhat.com>
11289 Tom Tromey <tromey@adacore.com>
11290
11291 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11292 * tui/tui-winsource.c (tui_refill_source_window): New function,
11293 from...
11294 (tui_horizontal_source_scroll): ... here. Move some logic.
11295 * cli/cli-style.c (set_style_enabled): Notify new observable.
11296 * tui/tui-hooks.c (tui_redisplay_source): New function.
11297 (tui_attach_detach_observers): Attach or detach
11298 tui_redisplay_source.
11299 * observable.h (source_styling_changed): New observable.
11300 * observable.c: Define source_styling_changed observable.
11301
11302 2019-03-13 Tom Tromey <tromey@adacore.com>
11303
11304 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11305 (i386_gnu_nat_target::store_registers): Update.
11306 * target-debug.h (target_debug_print_std_string): New macro.
11307 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11308 * windows-tdep.c (display_one_tib): Update.
11309 * tui/tui-stack.c (tui_make_status_line): Update.
11310 * top.c (print_inferior_quit_action): Update.
11311 * thread.c (thr_try_catch_cmd): Update.
11312 (add_thread_with_info): Update.
11313 (thread_target_id_str): Update.
11314 (thr_try_catch_cmd): Update.
11315 (thread_command): Update.
11316 (thread_find_command): Update.
11317 * record-btrace.c (record_btrace_target::info_record)
11318 (record_btrace_resume_thread, record_btrace_target::resume)
11319 (record_btrace_cancel_resume, record_btrace_step_thread)
11320 (record_btrace_target::wait, record_btrace_target::wait)
11321 (record_btrace_target::wait, record_btrace_target::stop): Update.
11322 * progspace.c (print_program_space): Update.
11323 * process-stratum-target.c
11324 (process_stratum_target::thread_address_space): Update.
11325 * linux-fork.c (linux_fork_mourn_inferior)
11326 (detach_checkpoint_command, info_checkpoints_command)
11327 (linux_fork_context): Update.
11328 (linux_fork_detach): Update.
11329 (class scoped_switch_fork_info): Update.
11330 (delete_checkpoint_command): Update.
11331 * infrun.c (follow_fork_inferior): Update.
11332 (follow_fork_inferior): Update.
11333 (proceed_after_vfork_done): Update.
11334 (handle_vfork_child_exec_or_exit): Update.
11335 (follow_exec): Update.
11336 (displaced_step_prepare_throw): Update.
11337 (displaced_step_restore): Update.
11338 (start_step_over): Update.
11339 (resume_1): Update.
11340 (clear_proceed_status_thread): Update.
11341 (proceed): Update.
11342 (print_target_wait_results): Update.
11343 (do_target_wait): Update.
11344 (context_switch): Update.
11345 (stop_all_threads): Update.
11346 (restart_threads): Update.
11347 (finish_step_over): Update.
11348 (handle_signal_stop): Update.
11349 (switch_back_to_stepped_thread): Update.
11350 (keep_going_pass_signal): Update.
11351 (print_exited_reason): Update.
11352 (normal_stop): Update.
11353 * inferior.c (inferior_pid_to_str): Change return type.
11354 (print_selected_inferior): Update.
11355 (add_inferior): Update.
11356 (detach_inferior): Update.
11357 * dummy-frame.c (fprint_dummy_frames): Update.
11358 * dcache.c (dcache_info_1): Update.
11359 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11360 (btrace_fetch, btrace_clear): Update.
11361 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11362 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11363 type.
11364 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11365 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11366 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11367 * gdbarch.c, gdbarch.h: Rebuild.
11368 * gdbarch.sh (core_pid_to_str): Change return type.
11369 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11370 return type.
11371 (windows_nat_target::pid_to_str): Change return type.
11372 (windows_delete_thread): Update.
11373 (windows_nat_target::attach): Update.
11374 (windows_nat_target::files_info): Update.
11375 * target-delegates.c: Rebuild.
11376 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11377 return type.
11378 (sol_thread_target::pid_to_str): Change return type.
11379 * remote.c (class remote_target) <pid_to_str>: Change return
11380 type.
11381 (remote_target::pid_to_str): Change return type.
11382 (extended_remote_target::attach, remote_target::remote_stop_ns)
11383 (remote_target::remote_notif_remove_queued_reply)
11384 (remote_target::push_stop_reply, remote_target::disable_btrace):
11385 Update.
11386 (extended_remote_target::attach): Update.
11387 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11388 type.
11389 (gdbsim_target::pid_to_str): Change return type.
11390 * ravenscar-thread.c (struct ravenscar_thread_target)
11391 <pid_to_str>: Change return type.
11392 (ravenscar_thread_target::pid_to_str): Change return type.
11393 * procfs.c (class procfs_target) <pid_to_str>: Change return
11394 type.
11395 (procfs_target::pid_to_str): Change return type.
11396 (procfs_target::attach): Update.
11397 (procfs_target::detach): Update.
11398 (procfs_target::fetch_registers): Update.
11399 (procfs_target::store_registers): Update.
11400 (procfs_target::wait): Update.
11401 (procfs_target::files_info): Update.
11402 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11403 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11404 return type.
11405 (nto_procfs_target::pid_to_str): Change return type.
11406 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11407 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11408 return type.
11409 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11410 (exit_lwp): Update.
11411 (attach_proc_task_lwp_callback, get_detach_signal)
11412 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11413 (linux_nat_target::resume, wait_lwp, stop_callback)
11414 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11415 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11416 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11417 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11418 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11419 type.
11420 (inf_ptrace_target::attach): Update.
11421 (inf_ptrace_target::files_info): Update.
11422 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11423 type.
11424 (go32_nat_target::pid_to_str): Change return type.
11425 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11426 (gnu_nat_target::wait): Update.
11427 (gnu_nat_target::wait): Update.
11428 (gnu_nat_target::resume): Update.
11429 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11430 (fbsd_nat_target::wait): Update.
11431 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11432 type.
11433 (darwin_nat_target::attach): Update.
11434 * corelow.c (class core_target) <pid_to_str>: Change return type.
11435 (core_target::pid_to_str): Change return type.
11436 * target.c (normal_pid_to_str): Change return type.
11437 (default_pid_to_str): Likewise.
11438 (target_pid_to_str): Change return type.
11439 (target_translate_tls_address): Update.
11440 (target_announce_detach): Update.
11441 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11442 return type.
11443 (bsd_uthread_target::pid_to_str): Change return type.
11444 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11445 type.
11446 (bsd_kvm_target::pid_to_str): Change return type.
11447 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11448 return type.
11449 (aix_thread_target::pid_to_str): Change return type.
11450 * target.h (struct target_ops) <pid_to_str>: Change return type.
11451 (target_pid_to_str, normal_pid_to_str): Likewise.
11452 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11453 type.
11454 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11455 type.
11456 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11457 return type.
11458 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11459 type.
11460 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11461 type.
11462 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11463 return type.
11464
11465 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11466
11467 * NEWS: Mention that the new default MI version is 3. Mention
11468 changes to the output of commands and events that deal with
11469 multi-location breakpoints.
11470 * breakpoint.c: Include "mi/mi-out.h".
11471 (print_one_breakpoint): Change output syntax if using MI version
11472 >= 3.
11473 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11474 New.
11475 (mi_multi_location_breakpoint_output_fixed): New.
11476 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11477 (mi_cmd_fix_multi_location_breakpoint_output): New.
11478 (mi_multi_location_breakpoint_output_fixed): New.
11479 * mi/mi-cmds.c (mi_cmds): Register command
11480 -fix-multi-location-breakpoint-output.
11481 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11482 interpreter "mi".
11483
11484 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11485
11486 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11487 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11488 instantiate mi_ui_out based on interpreter name.
11489 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11490 * mi/mi-main.c (mi_load_progress): Likewise.
11491
11492 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11493
11494 * NEWS: Combine separate "New targets" sections for 8.3.
11495
11496 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11497
11498 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11499 (ppcfbsd_init_abi): Install gdbarch
11500 "fetch_tls_load_module_address" and "get_thread_local_address"
11501 methods.
11502
11503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11504
11505 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11506 (riscv_fbsd_init_abi): Install gdbarch
11507 "fetch_tls_load_module_address" and "get_thread_local_address"
11508 methods.
11509
11510 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11511
11512 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11513 (i386fbsd_init_abi): Install gdbarch
11514 "fetch_tls_load_module_address" and "get_thread_local_address"
11515 methods.
11516
11517 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11518
11519 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11520 (amd64fbsd_init_abi): Install gdbarch
11521 "fetch_tls_load_module_address" and "get_thread_local_address"
11522 methods.
11523
11524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11525
11526 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11527 (struct fbsd_pspace_data): New type.
11528 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11529 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11530 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11531 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11532 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11533
11534 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11535
11536 * gdbtypes.c (lookup_struct_elt): New function.
11537 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11538 * gdbtypes.h (struct struct_elt): New type.
11539 (lookup_struct_elt): New prototype.
11540
11541 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11542
11543 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11544 remove disabled code block.
11545
11546 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11547
11548 * gdbarch.sh (get_thread_local_address): New method.
11549 * gdbarch.h, gdbarch.c: Regenerate.
11550 * target.c (target_translate_tls_address): Use
11551 gdbarch_get_thread_local_address if present instead of
11552 target::get_thread_local_address.
11553
11554 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11555
11556 * target.h (target::get_thread_local_address): Update comment.
11557
11558 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11559
11560 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11561 objfile->separate_debug_objfile_backlink if not NULL.
11562
11563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11564
11565 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11566 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11567 (amd64bsd_store_inferior_registers): Likewise.
11568 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11569 Enable segment base registers.
11570 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11571 PT_GETFSBASE and PT_GETGSBASE.
11572 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11573 PT_SETGSBASE.
11574 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11575 segment base registers.
11576 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11577
11578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11579
11580 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11581 Update calls to i386_target_description to add 'segments'
11582 parameter.
11583 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11584 add segment base registers.
11585 * arch/i386.c (i386_create_target_description): Add 'segments'
11586 parameter to enable segment base registers.
11587 * arch/i386.h (i386_create_target_description): Likewise.
11588 * features/i386/32bit-segments.xml: New file.
11589 * features/i386/32bit-segments.c: Generate.
11590 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11591 call to i386_target_description to add 'segments' parameter.
11592 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11593 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11594 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11595 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11596 if feature is present.
11597 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11598 Add 'segments' parameter to call to i386_target_description.
11599 (i386_target_description): Add 'segments' parameter to enable
11600 segment base registers.
11601 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11602 to call to i386_target_description.
11603 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11604 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11605 Define I386_NUM_REGS.
11606 (i386_target_description): Add 'segments' parameter to enable
11607 segment base registers.
11608
11609 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11610
11611 PR/24325
11612 * source-cache.c: #undef open and close, to avoid unresolved
11613 externals during linking.
11614
11615 2019-03-12 Tom Tromey <tromey@adacore.com>
11616
11617 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11618 const. Add initializers.
11619 (_initialize_remote): Don't initialize ptid globals.
11620
11621 2019-03-12 Pedro Alves <palves@redhat.com>
11622
11623 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11624
11625 2019-03-12 Pedro Alves <palves@redhat.com>
11626
11627 * cp-name-parser.y (main): Remove unused 'len' variable.
11628
11629 2019-03-12 Tom Tromey <tromey@adacore.com>
11630
11631 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11632 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11633
11634 2019-03-12 Tom Tromey <tromey@adacore.com>
11635
11636 * linux-nat.c (iterate_over_lwps): Update.
11637 (stop_callback): Remove parameter.
11638 (stop_wait_callback, detach_callback, resume_set_callback)
11639 (select_singlestep_lwp_callback, set_ignore_sigint)
11640 (status_callback, resumed_callback, resume_clear_callback)
11641 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11642 data parameter.
11643 (linux_nat_target::detach, linux_nat_target::resume)
11644 (linux_stop_and_wait_all_lwps, select_event_lwp)
11645 (linux_nat_filter_event, linux_nat_wait_1)
11646 (linux_nat_target::kill, linux_nat_target::stop)
11647 (linux_nat_target::stop): Update.
11648 (linux_nat_resume_callback): Change type.
11649 (resume_stopped_resumed_lwps, count_events_callback)
11650 (select_event_lwp_callback): Likewise.
11651 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11652 * arm-linux-nat.c (struct update_registers_data): Remove.
11653 (update_registers_callback): Change type.
11654 (arm_linux_insert_hw_breakpoint1): Update.
11655 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11656 parameter.
11657 (x86_linux_dr_set_addr): Update.
11658 (x86_linux_dr_set_control): Update.
11659 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11660 (iterate_over_lwps): Use gdb::function_view.
11661 * nat/aarch64-linux-hw-point.c (struct
11662 aarch64_dr_update_callback_param): Remove.
11663 (debug_reg_change_callback): Change type.
11664 (aarch64_notify_debug_reg_change): Update.
11665 * s390-linux-nat.c (s390_refresh_per_info): Update.
11666
11667 2019-03-11 Tom Tromey <tromey@adacore.com>
11668
11669 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11670 redundant assignment to "this_cu".
11671
11672 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11673
11674 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11675
11676 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11679 from...
11680 (rank_one_type): ... this.
11681
11682 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11683
11684 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11685 from...
11686 (rank_one_type): ... this.
11687
11688 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11689
11690 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11691 from...
11692 (rank_one_type): ... this.
11693
11694 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11695
11696 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11697 from...
11698 (rank_one_type): ... this.
11699
11700 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11701
11702 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11703 from...
11704 (rank_one_type): ... this.
11705
11706 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11707
11708 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11709 from...
11710 (rank_one_type): ... this.
11711
11712 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11713
11714 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11715 from...
11716 (rank_one_type): ... this.
11717
11718 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11719
11720 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11721 from...
11722 (rank_one_type): ... this.
11723
11724 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11725
11726 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11727 from...
11728 (rank_one_type): ... this.
11729
11730 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11731
11732 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11733 from...
11734 (rank_one_type): ... this.
11735
11736 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11737
11738 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11739 from...
11740 (rank_one_type): ... this.
11741
11742 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11743
11744 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11745 from...
11746 (rank_one_type): ... this.
11747
11748 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11749
11750 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11751 inferior-events' shows the example events.
11752
11753 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11754
11755 Support styling on native MS-Windows console
11756
11757 PR/24315
11758 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11759 on MS-Windows if $TERM is not defined.
11760
11761 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11762
11763 * posix-hdep.c (gdb_console_fputs):
11764 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11765 functions.
11766 * ui-file.h (gdb_console_fputs): Add prototype.
11767
11768 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11769 back to fputs only if the former returns zero.
11770
11771 2019-03-07 Tom Tromey <tom@tromey.com>
11772
11773 * symmisc.c (print_symbol_bcache_statistics): Update.
11774 (print_objfile_statistics): Update.
11775 * symfile.c (allocate_symtab): Update.
11776 * stabsread.c: Don't include bcache.h.
11777 * psymtab.h (struct psymbol_bcache): Don't declare.
11778 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11779 (psymbol_bcache_init, psymbol_bcache_free)
11780 (psymbol_bcache_get_bcache): Don't declare.
11781 * psymtab.c (struct psymbol_bcache): Remove.
11782 (psymtab_storage::psymtab_storage): Update.
11783 (psymtab_storage::~psymtab_storage): Update.
11784 (psymbol_bcache_init, psymbol_bcache_free)
11785 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11786 (add_psymbol_to_bcache): Update.
11787 (allocate_psymtab): Update.
11788 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11789 macro_cache>: No longer pointers.
11790 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11791 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11792 * macrotab.c (macro_bcache): Update.
11793 * macroexp.c: Don't include bcache.h.
11794 * gdbtypes.c (check_types_worklist): Update.
11795 (types_deeply_equal): Remove TRY/CATCH. Update.
11796 * elfread.c (elf_symtab_read): Update.
11797 * dwarf2read.c: Don't include bcache.h.
11798 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11799 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11800 (print_bcache_statistics, bcache_memory_used): Don't declare.
11801 (struct bcache): Move from bcache.c. Add constructor, destructor,
11802 methods. Rename all data members.
11803 * bcache.c (struct bcache): Move to bcache.h.
11804 (bcache::expand_hash_table): Rename from expand_hash_table.
11805 (bcache): Remove.
11806 (bcache::insert): Rename from bcache_full.
11807 (bcache::compare): Rename from bcache_compare.
11808 (bcache_xmalloc): Remove.
11809 (bcache::~bcache): Rename from bcache_xfree.
11810 (bcache::print_statistics): Rename from print_bcache_statistics.
11811 (bcache::memory_used): Rename from bcache_memory_used.
11812
11813 2019-03-07 Pedro Alves <palves@redhat.com>
11814
11815 * infrun.c (normal_stop): Also check for
11816 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11817
11818 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * f-lang.c (value_from_host_double): Moved to...
11821 * value.c (value_from_host_double): ...here.
11822 * value.h (value_from_host_double): Declare.
11823 * guile/scm-math.c (vlscm_convert_typed_number): Use
11824 value_from_host_double.
11825 (vlscm_convert_number): Likewise.
11826 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11827 * python/py-value.c (convert_value_from_python): Likewise.
11828
11829 2019-03-06 Tom Tromey <tom@tromey.com>
11830
11831 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11832
11833 2019-03-06 Tom Tromey <tom@tromey.com>
11834
11835 * utils.h (free_current_contents): Don't declare.
11836 * utils.c (free_current_contents): Remove.
11837
11838 2019-03-06 Tom Tromey <tom@tromey.com>
11839
11840 * top.c (quit_force): Update.
11841 * main.c (captured_command_loop): Update.
11842 * common/new-op.c (operator new): Update.
11843 * common/common-exceptions.c (struct catcher)
11844 <save_cleanup_chain>: Remove member.
11845 (exceptions_state_mc_init): Update.
11846 (exception_try_scope_entry): Return nullptr.
11847 (exception_try_scope_exit, exception_rethrow)
11848 (throw_exception_sjlj, throw_exception_cxx): Update.
11849 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11850 (all_cleanups, do_cleanups, discard_cleanups)
11851 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11852 (restore_cleanups, restore_final_cleanups): Don't declare.
11853 (do_final_cleanups): Remove parameter.
11854 * common/cleanups.c (cleanup_chain, make_cleanup)
11855 (make_cleanup_dtor, all_cleanups, do_cleanups)
11856 (discard_my_cleanups, discard_cleanups)
11857 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11858 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11859 (null_cleanup): Remove.
11860 (do_final_cleanups): Remove parameter.
11861
11862 2019-03-06 Tom Tromey <tom@tromey.com>
11863
11864 * remote.c (remote_target::remote_parse_stop_reply): Use
11865 unique_xmalloc_ptr.
11866
11867 2019-03-06 Tom Tromey <tom@tromey.com>
11868
11869 * stabsread.c (struct stabs_field_info): Rename from field_info.
11870 <list, fnlist>: Add initializers.
11871 <obstack>: New member.
11872 (read_member_functions, read_struct_fields, read_baseclasses):
11873 Allocate on obstack. Don't use cleanups.
11874 (read_one_struct_field, read_member_functions, read_struct_fields)
11875 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11876 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11877 (read_struct_type): Update.
11878
11879 2019-03-06 Tom Tromey <tom@tromey.com>
11880
11881 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11882 * common/filestuff.h (make_cleanup_close): Don't declare.
11883 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11884 Remove.
11885
11886 2019-03-06 Tom Tromey <tom@tromey.com>
11887
11888 * solib-aix.c: Use make_scope_exit.
11889
11890 2019-03-06 Tom Tromey <tom@tromey.com>
11891
11892 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11893 Use make_scope_exit.
11894
11895 2019-03-06 Tom Tromey <tom@tromey.com>
11896
11897 * solib-svr4.c (disable_probes_interface): Remove parameter.
11898 (svr4_handle_solib_event): Use make_scope_exit.
11899
11900 2019-03-06 Tom Tromey <tom@tromey.com>
11901
11902 * remote.c (struct stop_reply_deleter): Remove.
11903 (stop_reply_up): Update.
11904 (struct stop_reply): Derive from notif_event. Don't typedef.
11905 <regcache>: Now a std::vector.
11906 (stop_reply_xfree): Remove.
11907 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11908 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11909 (remote_target::discard_pending_stop_replies): Use delete.
11910 (remote_target::remote_parse_stop_reply): Update.
11911 (remote_target::process_stop_reply): Update.
11912 * remote-notif.h (struct notif_event): Add virtual destructor.
11913 Remove "dtr" member.
11914 (struct notif_client) <alloc_event>: Return a unique_ptr.
11915 (notif_event_xfree): Don't declare.
11916 (notif_event_up): New typedef.
11917 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11918 (notif_event_xfree, do_notif_event_xfree): Remove.
11919 (remote_notif_state_xfree): Update.
11920
11921 2019-03-06 Tom Tromey <tom@tromey.com>
11922
11923 * infrun.c (displaced_step_clear_cleanup): Now a
11924 forward_scope_exit type.
11925 (displaced_step_prepare_throw): Update.
11926 (displaced_step_fixup): Update.
11927
11928 2019-03-06 Tom Tromey <tom@tromey.com>
11929
11930 * inferior.h (class inferior): Update comment.
11931 * gdbthread.h (class thread_info): Update comment.
11932
11933 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11934 Tom Tromey <tom@tromey.com>
11935
11936 * stabsread.h (struct stab_section_list): Remove.
11937 (coffstab_build_psymtabs): Update.
11938 * dbxread.c (symbuf_sections): Now a std::vector.
11939 (sect_idx): New global.
11940 (fill_symbuf): Update.
11941 (coffstab_build_psymtabs): Change type of stabsects parameter.
11942 Update.
11943 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11944 std::vector.
11945 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11946 (coff_locate_sections): Update.
11947 (coff_symfile_read): Remove cleanups. Update.
11948 (init_stringtab): Add storage parameter.
11949 (free_stringtab, free_stringtab_cleanup): Remove.
11950 (init_lineno): Add storage parameter.
11951 (free_linetab, free_linetab_cleanup): Remove.
11952
11953 2019-03-06 Pedro Alves <palves@redhat.com>
11954
11955 * linux-fork.c (fork_info::clobber_regs): Delete.
11956 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11957 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11958 comment. Adjust.
11959 (scoped_switch_fork_info::scoped_switch_fork_info)
11960 (checkpoint_command, linux_fork_context): Adjust
11961 fork_save_infrun_state calls.
11962
11963 2019-03-06 Pedro Alves <palves@redhat.com>
11964
11965 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11966 (inf_has_multiple_threads): Return 'bool' and rewrite using
11967 inferior_info::threads().
11968
11969 2019-03-06 Pedro Alves <palves@redhat.com>
11970
11971 * linux-fork.c: Include <list>.
11972 (fork_list): Now a std::list instance.
11973 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11974 (forks_exist_p, find_last_fork): Adjust.
11975 (new_fork): Delete.
11976 (one_fork_p): New.
11977 (add_fork): Adjust.
11978 (free_fork): Delete, folded into fork_info::~fork_info().
11979 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11980 Adjust.
11981 (init_fork_list): Delete.
11982 (linux_fork_killall, linux_fork_mourn_inferior)
11983 (linux_fork_detach, info_checkpoints_command): Adjust.
11984 (_initialize_linux_fork): No longer call init_fork_list.
11985
11986 2019-03-06 Pedro Alves <palves@redhat.com>
11987
11988 * linux-fork.c (new_fork): New, split out of ...
11989 (add_fork): ... this. Return void. Move "first fork" special
11990 case from here, to ...
11991 (checkpoint_command): ... here.
11992 * linux-linux.h (add_fork): Return void.
11993
11994 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11997
11998 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11999 Chris January <chris.january@arm.com>
12000 David Lecomber <david.lecomber@arm.com>
12001
12002 * f-exp.y: New token, UNOP_INTRINSIC.
12003 (exp): New pattern using UNOP_INTRINSIC token.
12004 (f77_keywords): Add 'abs' keyword.
12005 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12006 (value_from_host_double): New function.
12007 (evaluate_subexp_f): Support UNOP_ABS.
12008
12009 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12010
12011 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12012 types.
12013
12014 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12015
12016 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12017 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12018 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12019
12020 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12021
12022 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12023
12024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12025 Chris January <chris.january@arm.com>
12026
12027 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12028 * f-exp.y: Define 'KIND' token.
12029 (exp): New pattern for KIND expressions.
12030 (ptype): Handle types with a kind extension.
12031 (direct_abs_decl): Extend to spot kind extensions.
12032 (f77_keywords): Add 'kind' to the list.
12033 (push_kind_type): New function.
12034 (convert_to_kind_type): New function.
12035 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12036 * parse.c (operator_length_standard): Likewise.
12037 * parser-defs.h (enum type_pieces): Add tp_kind.
12038 * std-operator.def: Add UNOP_KIND.
12039
12040 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12041
12042 * f-exp.y (f_parse): Set yydebug.
12043
12044 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12045
12046 * f-lang.c (evaluate_subexp_f): New function.
12047 (exp_descriptor_f): New global.
12048 (f_language_defn): Use exp_descriptor_f instead of
12049 exp_descriptor_standard.
12050
12051 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * f-exp.y (struct token): Add comments.
12054 (dot_ops): Remove uppercase versions and the end marker.
12055 (f77_keywords): Likewise.
12056 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12057 entries in the dot_ops array are case insensitive, and use
12058 strncasecmp to compare strings. Also some whitespace cleanup in
12059 this area. Similar for the f77_keywords array, except entries in
12060 this list might be case sensitive.
12061
12062 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12063
12064 * f-exp.y (struct f77_boolean_val): Add comments.
12065 (boolean_values): Remove uppercase versions, and end marker.
12066 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12067 and use strncasecmp to achieve case insensitivity. Additionally,
12068 perform whitespace cleanup around this code.
12069
12070 2019-03-06 Tom Tromey <tromey@adacore.com>
12071
12072 * remote-sim.c (gdbsim_target_open): Use result of
12073 gdb_argv::release.
12074
12075 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12076 Dirk Schubert <dirk.schubert@arm.com>
12077 Chris January <chris.january@arm.com>
12078
12079 * eval.c (evaluate_subexp_standard): Call Fortran argument
12080 wrapping logic.
12081 * f-lang.c (struct value): A value which can be passed into a
12082 Fortran function call.
12083 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12084 where appropriate.
12085 (struct type): Value ready for a Fortran function call.
12086 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12087 is needed.
12088 * f-lang.h (fortran_argument_convert): Declaration.
12089 (fortran_preserve_arg_pointer): Declaration.
12090 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12091
12092 2019-03-05 Tom Tromey <tromey@adacore.com>
12093
12094 * python/py-prettyprint.c (print_string_repr): Remove #if.
12095 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12096
12097 2019-03-05 Tom Tromey <tromey@adacore.com>
12098
12099 * target.c (the_dummy_target): Move later. Change type to
12100 "dummy_target".
12101 (initialize_targets): Don't initialize the_dummy_target.
12102
12103 2019-03-05 Tom Tromey <tromey@adacore.com>
12104
12105 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12106 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12107
12108 2019-03-05 Tom Tromey <tromey@adacore.com>
12109
12110 * windows-nat.c (windows_nat_target::attach)
12111 (windows_nat_target::detach): Don't call gdb_flush.
12112 * valprint.c (generic_val_print, val_print, val_print_string):
12113 Don't call gdb_flush.
12114 * utils.c (defaulted_query): Don't call gdb_flush.
12115 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12116 * target.c (target_announce_detach): Don't call gdb_flush.
12117 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12118 * remote.c (extended_remote_target::attach): Don't call
12119 gdb_flush.
12120 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12121 * printcmd.c (do_examine): Don't call gdb_flush.
12122 (info_display_command): Don't call gdb_flush.
12123 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12124 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12125 * memattr.c (info_mem_command): Don't call gdb_flush.
12126 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12127 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12128 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12129 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12130 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12131 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12132 (gnu_nat_target::detach): Don't call gdb_flush.
12133 * f-valprint.c (f_val_print): Don't call gdb_flush.
12134 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12135 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12136 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12137 gdb_flush.
12138 * c-valprint.c (c_val_print): Don't call gdb_flush.
12139 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12140
12141 2019-03-05 Tom Tromey <tromey@adacore.com>
12142
12143 * varobj.c (update_dynamic_varobj_children): Update.
12144 (install_default_visualizer): Use reset, not release.
12145 * value.c (set_internalvar): Update.
12146 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12147 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12148 ATTRIBUTE_UNUSED_RESULT.
12149
12150 2019-03-05 Tom Tromey <tromey@adacore.com>
12151
12152 * remote.c (class scoped_remote_fd) <release>: Add
12153 ATTRIBUTE_UNUSED_RESULT.
12154
12155 2019-03-05 Tom Tromey <tromey@adacore.com>
12156
12157 * macroexp.c (struct macro_buffer) <release>: Add
12158 ATTRIBUTE_UNUSED_RESULT.
12159
12160 2019-03-05 Tom Tromey <tromey@adacore.com>
12161
12162 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12163 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12164 ATTRIBUTE_UNUSED_RESULT.
12165
12166 2019-03-05 Tom Tromey <tromey@adacore.com>
12167
12168 * common/scoped_fd.h (class scoped_fd) <release>: Add
12169 ATTRIBUTE_UNUSED_RESULT.
12170
12171 2019-03-05 Tom Tromey <tromey@adacore.com>
12172
12173 * parser-defs.h (struct parser_state) <release>: Add
12174 ATTRIBUTE_UNUSED_RESULT.
12175
12176 2019-03-05 Tom Tromey <tromey@adacore.com>
12177
12178 * utils.h (class gdb_argv) <release>: Add
12179 ATTRIBUTE_UNUSED_RESULT.
12180 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12181
12182 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12183
12184 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12185 for-loop range, to avoid compiler warnings.
12186
12187 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12188 avoid compiler warnings about unused variables.
12189
12190 * NEWS: Mention end of support for native debugging on MS-Windows
12191 before XP.
12192
12193 PR gdb/24292
12194 * common/netstuff.c:
12195 * gdbserver/gdbreplay.c
12196 * gdbserver/remote-utils.c:
12197 * ser-tcp.c:
12198 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12199 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12200 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12201 'getaddrinfo' and 'freeaddrinfo' were not available before
12202 Windows XP, and mingw.org's MinGW headers by default define
12203 _WIN32_WINNT to 0x500.
12204
12205 2019-03-01 Gary Benson <gbenson@redhat.com>
12206
12207 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12208
12209 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12210 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12211
12212 PR gdb/8527
12213 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12214 set_sigint_trap, clear_sigint_trap.
12215
12216 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12217
12218 * target.c (target_detach): Clear the regcache and the
12219 frame cache.
12220
12221 2019-02-27 Pedro Alves <palves@redhat.com>
12222
12223 * utils.c (set_screen_size): When we cap the height/width sizes,
12224 tweak the corresponding command variable to show "unlimited":
12225
12226 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12227 Pedro Alves <palves@redhat.com>
12228
12229 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12230 before calling rl_set_screen_size.
12231
12232 2019-02-27 Tom Tromey <tromey@adacore.com>
12233
12234 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12235 define.
12236 * python/py-value.c: Remove Python 2.4 workaround.
12237 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12238 workaround.
12239 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12240 Python 2.4 workaround.
12241 * python/python-internal.h: Remove Python 2.4 comment.
12242 (Py_ssize_t): Don't define.
12243 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12244 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12245 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12246 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12247 * python/python.c (do_start_initialization): Remove Python 2.4
12248 workaround.
12249 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12250 (print_children): Remove Python 2.4 workaround.
12251 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12252 workaround.
12253 (CHARBUFFERPROC_NAME): Remove.
12254 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12255 Python 2.4 workaround.
12256
12257 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12258
12259 * NEWS: Note minimum Python version.
12260
12261 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12262
12263 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12264 code from these functions. Remove corresponding ifdefs. Use
12265 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12266 Remove gotos and target of gotos.
12267 (infpy_search_memory): Likewise.
12268
12269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12272 (hppa_gdbarch_init): Don't register deleted functions with
12273 gdbarch.
12274
12275 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12276
12277 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12278 (h8300_unwind_sp): Delete.
12279 (h8300_dummy_id): Delete.
12280 (h8300_gdbarch_init): Don't register deleted functions with
12281 gdbarch.
12282
12283 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12284
12285 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12286 (ft32_unwind_pc): Delete.
12287 (ft32_unwind_sp): Delete.
12288 (ft32_gdbarch_init): Don't register deleted functions with
12289 gdbarch.
12290
12291 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12292
12293 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12294 (frv_unwind_pc): Delete.
12295 (frv_unwind_sp): Delete.
12296 (frv_gdbarch_init): Don't register deleted functions with
12297 gdbarch.
12298
12299 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12300
12301 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12302 (riscv_unwind_pc): Delete.
12303 (riscv_unwind_sp): Delete.
12304 (riscv_gdbarch_init): Don't register deleted functions with
12305 gdbarch.
12306
12307 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12308
12309 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12310 (csky_unwind_pc): Delete.
12311 (csky_unwind_sp): Delete.
12312 (csky_gdbarch_init): Don't register deleted functions with
12313 gdbarch.
12314
12315 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12316
12317 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12318 (cris_unwind_pc): Delete.
12319 (cris_unwind_sp): Delete.
12320 (cris_gdbarch_init): Don't register deleted functions with
12321 gdbarch.
12322
12323 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12324
12325 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12326 (bfin_unwind_pc): Delete.
12327 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12328
12329 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12330
12331 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12332 (arm_unwind_pc): Delete.
12333 (arm_unwind_sp): Delete.
12334 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12335
12336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12337
12338 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12339 (arc_unwind_pc): Delete.
12340 (arc_unwind_sp): Delete.
12341 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12342
12343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12346 (alpha_unwind_pc): Delete.
12347 (alpha_gdbarch_init): Don't register deleted functions with
12348 gdbarch.
12349
12350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12351
12352 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12353 (aarch64_unwind_pc): Delete.
12354 (aarch64_unwind_sp): Delete.
12355 (aarch64_gdbarch_init): Don't register deleted functions with
12356 gdbarch.
12357
12358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12359
12360 * gdbtypes.c (type_align): Don't consider static members when
12361 computing structure alignment.
12362
12363 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12364
12365 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12366 return 0 for other types.
12367 * arch-utils.c (default_type_align): Always return 0.
12368 * gdbarch.h: Regenerate.
12369 * gdbarch.sh (type_align): Extend comment.
12370 * gdbtypes.c (type_align): Add additional comments, always call
12371 gdbarch_type_align before applying the default rules.
12372 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12373 generic code will then apply a suitable default.
12374 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12375 types, return 0 for other types.
12376
12377 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12378
12379 * NEWS: Create a new section for the next release branch.
12380 Rename the section of the current branch, now that it has
12381 been cut.
12382
12383 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12384
12385 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12386 * version.in: Bump version to 8.3.50.DATE-git.
12387
12388 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * aix-thread.c (ptid_cmp): Remove unused variable.
12391 (get_signaled_thread): Likewise.
12392 (store_regs_user_thread): Likewise.
12393 (store_regs_kernel_thread): Likewise.
12394 (fetch_regs_kernel_thread): Remove shadowed variable.
12395
12396 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12397
12398 * features/riscv/32bit-cpu.xml: Add register numbers.
12399 * features/riscv/32bit-fpu.c: Regenerate.
12400 * features/riscv/32bit-fpu.xml: Add register numbers.
12401 * features/riscv/64bit-cpu.xml: Add register numbers.
12402 * features/riscv/64bit-fpu.c: Regenerate.
12403 * features/riscv/64bit-fpu.xml: Add register numbers.
12404
12405 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12406
12407 * NEWS: Mention two argument form of gdb.Value constructor.
12408 * python/py-value.c (convert_buffer_and_type_to_value): New
12409 function.
12410 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12411 Add support for handling an optional second argument. Call
12412 convert_buffer_and_type_to_value as appropriate.
12413 * python/python-internal.h (Py_buffer_deleter): New struct.
12414 (Py_buffer_up): New typedef.
12415
12416 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12417
12418 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12419 instead of releasing ownership.
12420
12421 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12422
12423 * dwarf2read.c (open_and_init_dwp_file): Call
12424 elf_numsections instead of bfd_count_sections to initialize
12425 dwp_file->num_sections.
12426
12427 2019-02-25 Tom Tromey <tromey@adacore.com>
12428
12429 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12430
12431 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12432
12433 * gcore.in: Add '--readnever' option when invoking GDB.
12434
12435 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12436
12437 * MAINTAINERS: Update my email address.
12438
12439 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12440
12441 * build-id.c (build_id_to_debug_bfd_1): New function.
12442 (build_id_to_debug_bfd): Look for separate debug file in
12443 sysroot.
12444
12445 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12446
12447 * gdbarch.sh: Update the copyright year range that is placed into
12448 generated files.
12449
12450 2019-02-22 Keith Seitz <keiths@redhat.com>
12451
12452 PR symtab/23853
12453 * linespec.c (create_sals_line_offset): Search for the default
12454 symtab's filename instead of its fullname.
12455
12456 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12457
12458 * NEWS: Update style defaults.
12459
12460 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12461
12462 * main.c (captured_main_1): Disable styling in batch mode.
12463
12464 2019-02-20 Tom Tromey <tom@tromey.com>
12465
12466 * symtab.c (symtab_symbol_info): Fix typos.
12467
12468 2019-02-20 Tom Tromey <tromey@adacore.com>
12469
12470 * findcmd.c (_initialize_mem_search): Use upper case for
12471 metasyntactic variables.
12472
12473 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12474
12475 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12476 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12477
12478 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12479
12480 * top.h (source_file_name): Change to std::string.
12481 * top.c (source_file_name): Likewise.
12482 (command_line_input): Adjust.
12483 * cli/cli-script.c (script_from_file): Adjust.
12484
12485 2019-02-19 Tom Tromey <tromey@adacore.com>
12486
12487 * ravenscar-thread.c
12488 (ravenscar_thread_target::update_thread_list): Don't call
12489 ada_build_task_list.
12490 * ada-lang.h (ada_build_task_list): Don't declare.
12491 * ada-tasks.c (struct ada_tasks_inferior_data)
12492 <task_list_valid_p>: Now bool.
12493 (read_known_tasks, ada_task_list_changed)
12494 (ada_tasks_invalidate_inferior_data): Update.
12495 (read_known_tasks_array): Return bool.
12496 (read_known_tasks_list): Likewise.
12497 (read_known_tasks): Return void.
12498 (ada_build_task_list): Now static.
12499
12500 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12501
12502 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12503 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12504
12505 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12506
12507 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12508 variant for ada_tasks_pspace_data_handle and
12509 ada_tasks_inferior_data_handle.
12510 (ada_tasks_pspace_data_cleanup): New function.
12511 (ada_tasks_inferior_data_cleanup): New function.
12512
12513 2019-02-17 Tom Tromey <tom@tromey.com>
12514
12515 * macrotab.h (macro_source_fullname): Return a std::string.
12516 * macrotab.c (macro_include, check_for_redefinition)
12517 (macro_undef, macro_lookup_definition, foreach_macro)
12518 (foreach_macro_in_scope): Update.
12519 (macro_source_fullname): Return a std::string.
12520 * macrocmd.c (show_pp_source_pos): Update.
12521
12522 2019-02-17 Tom Tromey <tom@tromey.com>
12523
12524 * macrocmd.c (show_pp_source_pos): Style the file names.
12525
12526 2019-02-17 Tom Tromey <tom@tromey.com>
12527
12528 PR tui/24197:
12529 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12530
12531 2019-02-17 Tom Tromey <tom@tromey.com>
12532
12533 * ada-lang.c (user_select_syms): Use filtered printing.
12534 * utils.c (wrap_style): New global.
12535 (desired_style): Remove.
12536 (emit_style_escape): Add stream parameter.
12537 (set_output_style, reset_terminal_style, prompt_for_continue):
12538 Update.
12539 (flush_wrap_buffer): Only flush gdb_stdout.
12540 (wrap_here): Set wrap_style.
12541 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12542 treat escape sequences as a character. Change when wrap buffer is
12543 flushed.
12544 (fputs_styled): Do not set the output style when the default is
12545 requested.
12546 * ui-style.h (struct ui_file_style) <is_default>: New method.
12547 * source.c (print_source_lines_base): Emit escape sequences in one
12548 piece.
12549
12550 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12551
12552 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12553 integers and enumeration types.
12554
12555 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12556
12557 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12558 instead of lookup_symbol_in_language
12559 (do_exact_match): New function.
12560 (ada_get_symbol_name_matcher): Return do_exact_match when
12561 doing a verbatim match.
12562
12563 2019-02-15 Tom Tromey <tromey@adacore.com>
12564
12565 * ravenscar-thread.c (ravenscar_thread_target::resume)
12566 (ravenscar_thread_target::wait): Special case wildcard requests.
12567
12568 2019-02-15 Tom Tromey <tromey@adacore.com>
12569
12570 * ravenscar-thread.c (base_ptid): Remove.
12571 (struct ravenscar_thread_target) <close>: New method.
12572 <m_base_ptid>: New member.
12573 <update_inferior_ptid, active_task, task_is_currently_active,
12574 runtime_initialized>: Declare methods.
12575 <ravenscar_thread_target>: Add constructor.
12576 (ravenscar_thread_target::task_is_currently_active)
12577 (ravenscar_thread_target::update_inferior_ptid)
12578 (ravenscar_runtime_initialized): Rename. Now methods.
12579 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12580 (ravenscar_thread_target::update_thread_list): Update.
12581 (ravenscar_thread_target::active_task): Now method.
12582 (ravenscar_thread_target::store_registers)
12583 (ravenscar_thread_target::prepare_to_store)
12584 (ravenscar_thread_target::prepare_to_store)
12585 (ravenscar_thread_target::mourn_inferior): Update.
12586 (ravenscar_inferior_created): Use "new" to create target.
12587 (ravenscar_thread_target::get_ada_task_ptid): Update.
12588 (_initialize_ravenscar): Don't initialize base_ptid.
12589 (ravenscar_ops): Remove global.
12590
12591 2019-02-15 Tom Tromey <tromey@adacore.com>
12592
12593 * target.h (push_target): Declare new overload.
12594 * target.c (push_target): New overload, taking an rvalue reference.
12595 * remote.c (remote_target::open_1): Use push_target overload.
12596 * corelow.c (core_target_open): Use push_target overload.
12597
12598 2019-02-15 Tom Tromey <tromey@adacore.com>
12599
12600 * ravenscar-thread.c (is_ravenscar_task)
12601 (ravenscar_task_is_currently_active): Return bool.
12602 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12603 (_initialize_ravenscar): Remove "(void)".
12604 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12605 Return bool.
12606
12607 2019-02-15 Tom Tromey <tromey@adacore.com>
12608
12609 * ravenscar-thread.c (ravenscar_runtime_initializer)
12610 (has_ravenscar_runtime, get_running_thread_id)
12611 (ravenscar_thread_target::resume): Fix indentation.
12612
12613 2019-02-15 Tom Tromey <tromey@adacore.com>
12614
12615 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12616 from ravenscar_arch_ops.
12617 (sparc_ravenscar_ops::fetch_registers)
12618 (sparc_ravenscar_ops::store_registers): Now methods.
12619 (sparc_ravenscar_prepare_to_store): Remove.
12620 (sparc_ravenscar_ops): Redefine.
12621 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12622 methods and destructor. Remove members.
12623 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12624 (ravenscar_thread_target::store_registers)
12625 (ravenscar_thread_target::prepare_to_store): Update.
12626 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12627 Remove.
12628 (struct ppc_ravenscar_powerpc_ops): Derive from
12629 ravenscar_arch_ops.
12630 (ppc_ravenscar_powerpc_ops::fetch_registers)
12631 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12632 (ppc_ravenscar_powerpc_ops): Redefine.
12633 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12634 (ppc_ravenscar_e500_ops::fetch_registers)
12635 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12636 (ppc_ravenscar_e500_ops): Redefine.
12637 * aarch64-ravenscar-thread.c
12638 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12639 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12640 (aarch64_ravenscar_fetch_registers)
12641 (aarch64_ravenscar_store_registers): Now methods.
12642 (aarch64_ravenscar_ops): Redefine.
12643
12644 2019-02-15 Tom Tromey <tromey@adacore.com>
12645
12646 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12647 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12648 (ravenscar_thread_target::stopped_by_watchpoint)
12649 (ravenscar_thread_target::stopped_data_address)
12650 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12651
12652 2019-02-15 Tom Tromey <tromey@adacore.com>
12653
12654 * ravenscar-thread.c: Fix some typos.
12655
12656 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12657 Tom Tromey <tromey@adacore.com>
12658
12659 * ada-lang.c (ada_exception_sal): Change addr_string to a
12660 std::string.
12661 (create_ada_exception_catchpoint): Update.
12662
12663 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12664 Tom Tromey <tromey@adacore.com>
12665
12666 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12667 (bp_location_ops): Remove.
12668 (base_breakpoint_allocate_location): Update.
12669 (free_bp_location): Update.
12670 * ada-lang.c (class ada_catchpoint_location)
12671 <ada_catchpoint_location>: Remove ops parameter.
12672 (ada_catchpoint_location_dtor): Remove.
12673 (ada_catchpoint_location_ops): Remove.
12674 (allocate_location_exception): Update.
12675 * breakpoint.h (struct bp_location_ops): Remove.
12676 (class bp_location) <bp_location>: Remove bp_location_ops
12677 parameter.
12678 <~bp_location>: Add destructor.
12679 <ops>: Remove.
12680
12681 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12682 Pedro Alves <palves@redhat.com>
12683
12684 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12685 'PATH_MAX'.
12686
12687 2019-02-14 David Michael <fedora.dm0@gmail.com>
12688 Samuel Thibault <samuel.thibault@gnu.org>
12689 Thomas Schwinge <thomas@codesourcery.com>
12690
12691 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12692 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12693
12694 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12695
12696 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12697 (check_empty): Use "const char *".
12698
12699 * gnu-nat.c (gnu_nat_target::detach): Instead of
12700 'detach_inferior (pid)' call
12701 'detach_inferior (find_inferior_pid (pid))'.
12702
12703 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12704 'nat/fork-inferior.o'.
12705 * gnu-nat.c: #include "nat/fork-inferior.h".
12706
12707 * gnu-nat.c (gnu_nat_target::detach): Instead of
12708 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12709 * gnu-nat.h: #include "inf-child.h".
12710 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12711 'i386_gnu_nat_target::fetch_registers'.
12712 (gnu_store_registers): Rename/move to
12713 'i386_gnu_nat_target::store_registers'.
12714
12715 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12716 * gnu-nat.h (mach_thread_info): New function.
12717 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12718
12719 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12720
12721 2019-02-14 Frederic Konrad <konrad@adacore.com>
12722
12723 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12724
12725 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12726
12727 * windows-nat.c (windows_add_thread): Add new parameter
12728 "main_thread_p" with default value set to false. Update
12729 function documentation as well as all callers.
12730 (windows_delete_thread): Likewise.
12731 (fake_create_process): Update call to windows_add_thread.
12732 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12733 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12734 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12735 call to windows_delete_thread.
12736
12737 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12738
12739 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12740
12741 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12742
12743 * symfile.c (find_separate_debug_file): Use canonical path of
12744 sysroot with child_path instead of gdb_sysroot if it is valid.
12745
12746 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12747
12748 * symfile.c (find_separate_debug_file): Use child_path to
12749 determine if an object file is under a sysroot.
12750
12751 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12752
12753 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12754 unittests/child-path-selftests.c.
12755 * common/pathstuff.c (child_path): New function.
12756 * common/pathstuff.h (child_path): New prototype.
12757 * unittests/child-path-selftests.c: New file.
12758
12759 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12760
12761 * symfile.c (find_separate_debug_file): Look for separate debug
12762 files in debug directories under the sysroot.
12763
12764 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12765
12766 * symtab.h (struct minimal_symbol data_p): New const method.
12767 (struct minimal_symbol text_p): Likewise.
12768 * symtab.c (output_source_filename): Use file name style
12769 to print file name.
12770 (print_symbol_info): Likewise.
12771 (print_msymbol_info): Use address style to print addresses.
12772 Use function name style to print executable text symbols.
12773 (expand_symtab_containing_pc): Use data_p.
12774 (find_pc_sect_compunit_symtab): Likewise.
12775
12776 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12777
12778 * breakpoint.c (describe_other_breakpoints): Use address style
12779 to print addresses.
12780 (say_where): Likewise.
12781
12782 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12783
12784 * ada-typeprint.c (print_func_type): Print function name
12785 style to print function name.
12786 * c-typeprint.c (c_print_type_1): Likewise.
12787
12788 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12789
12790 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12791 for execve.
12792
12793 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12794
12795 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12796 type_stack.
12797
12798 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12799
12800 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12801 TYPE_CODE_REF types.
12802
12803 2019-02-08 Jim Wilson <jimw@sifive.com>
12804
12805 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12806 (riscv_linux_fregset): New.
12807 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12808
12809 2019-02-07 Tom Tromey <tom@tromey.com>
12810
12811 * thread.c (thread_cancel_execution_command): Update.
12812 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12813 methods.
12814 (struct thread_fsm_ops): Remove.
12815 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12816 (thread_fsm_should_stop, thread_fsm_return_value)
12817 (thread_fsm_set_finished, thread_fsm_finished_p)
12818 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12819 Don't declare.
12820 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12821 * infrun.c (clear_proceed_status_thread)
12822 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12823 (print_stop_event): Update.
12824 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12825 Add constructor.
12826 (step_command_fsm_ops): Remove.
12827 (new_step_command_fsm): Remove.
12828 (step_1): Update.
12829 (step_command_fsm::should_stop): Rename from
12830 step_command_fsm_should_stop.
12831 (step_command_fsm::clean_up): Rename from
12832 step_command_fsm_clean_up.
12833 (step_command_fsm::do_async_reply_reason): Rename from
12834 step_command_fsm_async_reply_reason.
12835 (struct until_next_fsm): Inherit from thread_fsm. Add
12836 constructor.
12837 (until_next_fsm_ops): Remove.
12838 (new_until_next_fsm): Remove.
12839 (until_next_fsm::should_stop): Rename from
12840 until_next_fsm_should_stop.
12841 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12842 (until_next_fsm::do_async_reply_reason): Rename from
12843 until_next_fsm_async_reply_reason.
12844 (struct finish_command_fsm): Inherit from thread_fsm. Add
12845 constructor. Change type of breakpoint.
12846 (finish_command_fsm_ops): Remove.
12847 (new_finish_command_fsm): Remove.
12848 (finish_command_fsm::should_stop): Rename from
12849 finish_command_fsm_should_stop.
12850 (finish_command_fsm::clean_up): Rename from
12851 finish_command_fsm_clean_up.
12852 (finish_command_fsm::return_value): Rename from
12853 finish_command_fsm_return_value.
12854 (finish_command_fsm::do_async_reply_reason): Rename from
12855 finish_command_fsm_async_reply_reason.
12856 (finish_command): Update.
12857 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12858 Add constructor.
12859 (call_thread_fsm_ops): Remove.
12860 (call_thread_fsm::call_thread_fsm): Rename from
12861 new_call_thread_fsm.
12862 (call_thread_fsm::should_stop): Rename from
12863 call_thread_fsm_should_stop.
12864 (call_thread_fsm::should_notify_stop): Rename from
12865 call_thread_fsm_should_notify_stop.
12866 (run_inferior_call, call_function_by_hand_dummy): Update.
12867 * cli/cli-interp.c (should_print_stop_to_console): Update.
12868 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12869 Add constructor. Change type of location_breakpoint,
12870 caller_breakpoint.
12871 (until_break_fsm_ops): Remove.
12872 (new_until_break_fsm): Remove.
12873 (until_break_fsm::should_stop): Rename from
12874 until_break_fsm_should_stop.
12875 (until_break_fsm::clean_up): Rename from
12876 until_break_fsm_clean_up.
12877 (until_break_fsm::do_async_reply_reason): Rename from
12878 until_break_fsm_async_reply_reason.
12879 (until_break_command): Update.
12880 * thread-fsm.c: Remove.
12881 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12882
12883 2019-02-07 Tom Tromey <tom@tromey.com>
12884
12885 * yy-remap.h: Add include guard.
12886 * xtensa-tdep.h: Add include guard.
12887 * xcoffread.h: Rename include guard.
12888 * varobj-iter.h: Add include guard.
12889 * tui/tui.h: Rename include guard.
12890 * tui/tui-winsource.h: Rename include guard.
12891 * tui/tui-wingeneral.h: Rename include guard.
12892 * tui/tui-windata.h: Rename include guard.
12893 * tui/tui-win.h: Rename include guard.
12894 * tui/tui-stack.h: Rename include guard.
12895 * tui/tui-source.h: Rename include guard.
12896 * tui/tui-regs.h: Rename include guard.
12897 * tui/tui-out.h: Rename include guard.
12898 * tui/tui-layout.h: Rename include guard.
12899 * tui/tui-io.h: Rename include guard.
12900 * tui/tui-hooks.h: Rename include guard.
12901 * tui/tui-file.h: Rename include guard.
12902 * tui/tui-disasm.h: Rename include guard.
12903 * tui/tui-data.h: Rename include guard.
12904 * tui/tui-command.h: Rename include guard.
12905 * tic6x-tdep.h: Add include guard.
12906 * target/waitstatus.h: Rename include guard.
12907 * target/wait.h: Rename include guard.
12908 * target/target.h: Rename include guard.
12909 * target/resume.h: Rename include guard.
12910 * target-float.h: Rename include guard.
12911 * stabsread.h: Add include guard.
12912 * rs6000-tdep.h: Add include guard.
12913 * riscv-fbsd-tdep.h: Add include guard.
12914 * regformats/regdef.h: Rename include guard.
12915 * record.h: Rename include guard.
12916 * python/python.h: Rename include guard.
12917 * python/python-internal.h: Rename include guard.
12918 * python/py-stopevent.h: Rename include guard.
12919 * python/py-ref.h: Rename include guard.
12920 * python/py-record.h: Rename include guard.
12921 * python/py-record-full.h: Rename include guard.
12922 * python/py-record-btrace.h: Rename include guard.
12923 * python/py-instruction.h: Rename include guard.
12924 * python/py-events.h: Rename include guard.
12925 * python/py-event.h: Rename include guard.
12926 * procfs.h: Add include guard.
12927 * proc-utils.h: Add include guard.
12928 * p-lang.h: Add include guard.
12929 * or1k-tdep.h: Rename include guard.
12930 * observable.h: Rename include guard.
12931 * nto-tdep.h: Rename include guard.
12932 * nat/x86-linux.h: Rename include guard.
12933 * nat/x86-linux-dregs.h: Rename include guard.
12934 * nat/x86-gcc-cpuid.h: Add include guard.
12935 * nat/x86-dregs.h: Rename include guard.
12936 * nat/x86-cpuid.h: Rename include guard.
12937 * nat/ppc-linux.h: Rename include guard.
12938 * nat/mips-linux-watch.h: Rename include guard.
12939 * nat/linux-waitpid.h: Rename include guard.
12940 * nat/linux-ptrace.h: Rename include guard.
12941 * nat/linux-procfs.h: Rename include guard.
12942 * nat/linux-osdata.h: Rename include guard.
12943 * nat/linux-nat.h: Rename include guard.
12944 * nat/linux-namespaces.h: Rename include guard.
12945 * nat/linux-btrace.h: Rename include guard.
12946 * nat/glibc_thread_db.h: Rename include guard.
12947 * nat/gdb_thread_db.h: Rename include guard.
12948 * nat/gdb_ptrace.h: Rename include guard.
12949 * nat/fork-inferior.h: Rename include guard.
12950 * nat/amd64-linux-siginfo.h: Rename include guard.
12951 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12952 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12953 * nat/aarch64-linux.h: Rename include guard.
12954 * nat/aarch64-linux-hw-point.h: Rename include guard.
12955 * mn10300-tdep.h: Add include guard.
12956 * mips-linux-tdep.h: Add include guard.
12957 * mi/mi-parse.h: Rename include guard.
12958 * mi/mi-out.h: Rename include guard.
12959 * mi/mi-main.h: Rename include guard.
12960 * mi/mi-interp.h: Rename include guard.
12961 * mi/mi-getopt.h: Rename include guard.
12962 * mi/mi-console.h: Rename include guard.
12963 * mi/mi-common.h: Rename include guard.
12964 * mi/mi-cmds.h: Rename include guard.
12965 * mi/mi-cmd-break.h: Rename include guard.
12966 * m2-lang.h: Add include guard.
12967 * location.h: Rename include guard.
12968 * linux-record.h: Rename include guard.
12969 * linux-nat.h: Add include guard.
12970 * linux-fork.h: Add include guard.
12971 * i386-darwin-tdep.h: Rename include guard.
12972 * hppa-linux-offsets.h: Add include guard.
12973 * guile/guile.h: Rename include guard.
12974 * guile/guile-internal.h: Rename include guard.
12975 * gnu-nat.h: Rename include guard.
12976 * gdb-stabs.h: Rename include guard.
12977 * frv-tdep.h: Add include guard.
12978 * f-lang.h: Add include guard.
12979 * event-loop.h: Add include guard.
12980 * darwin-nat.h: Rename include guard.
12981 * cp-abi.h: Rename include guard.
12982 * config/sparc/nm-sol2.h: Rename include guard.
12983 * config/nm-nto.h: Rename include guard.
12984 * config/nm-linux.h: Add include guard.
12985 * config/i386/nm-i386gnu.h: Rename include guard.
12986 * config/djgpp/nl_types.h: Rename include guard.
12987 * config/djgpp/langinfo.h: Rename include guard.
12988 * compile/gcc-cp-plugin.h: Add include guard.
12989 * compile/gcc-c-plugin.h: Add include guard.
12990 * compile/compile.h: Rename include guard.
12991 * compile/compile-object-run.h: Rename include guard.
12992 * compile/compile-object-load.h: Rename include guard.
12993 * compile/compile-internal.h: Rename include guard.
12994 * compile/compile-cplus.h: Rename include guard.
12995 * compile/compile-c.h: Rename include guard.
12996 * common/xml-utils.h: Rename include guard.
12997 * common/x86-xstate.h: Rename include guard.
12998 * common/version.h: Rename include guard.
12999 * common/vec.h: Rename include guard.
13000 * common/tdesc.h: Rename include guard.
13001 * common/selftest.h: Rename include guard.
13002 * common/scoped_restore.h: Rename include guard.
13003 * common/scoped_mmap.h: Rename include guard.
13004 * common/scoped_fd.h: Rename include guard.
13005 * common/safe-iterator.h: Rename include guard.
13006 * common/run-time-clock.h: Rename include guard.
13007 * common/refcounted-object.h: Rename include guard.
13008 * common/queue.h: Rename include guard.
13009 * common/ptid.h: Rename include guard.
13010 * common/print-utils.h: Rename include guard.
13011 * common/preprocessor.h: Rename include guard.
13012 * common/pathstuff.h: Rename include guard.
13013 * common/observable.h: Rename include guard.
13014 * common/netstuff.h: Rename include guard.
13015 * common/job-control.h: Rename include guard.
13016 * common/host-defs.h: Rename include guard.
13017 * common/gdb_wait.h: Rename include guard.
13018 * common/gdb_vecs.h: Rename include guard.
13019 * common/gdb_unlinker.h: Rename include guard.
13020 * common/gdb_unique_ptr.h: Rename include guard.
13021 * common/gdb_tilde_expand.h: Rename include guard.
13022 * common/gdb_sys_time.h: Rename include guard.
13023 * common/gdb_string_view.h: Rename include guard.
13024 * common/gdb_splay_tree.h: Rename include guard.
13025 * common/gdb_setjmp.h: Rename include guard.
13026 * common/gdb_ref_ptr.h: Rename include guard.
13027 * common/gdb_optional.h: Rename include guard.
13028 * common/gdb_locale.h: Rename include guard.
13029 * common/gdb_assert.h: Rename include guard.
13030 * common/filtered-iterator.h: Rename include guard.
13031 * common/filestuff.h: Rename include guard.
13032 * common/fileio.h: Rename include guard.
13033 * common/environ.h: Rename include guard.
13034 * common/common-utils.h: Rename include guard.
13035 * common/common-types.h: Rename include guard.
13036 * common/common-regcache.h: Rename include guard.
13037 * common/common-inferior.h: Rename include guard.
13038 * common/common-gdbthread.h: Rename include guard.
13039 * common/common-exceptions.h: Rename include guard.
13040 * common/common-defs.h: Rename include guard.
13041 * common/common-debug.h: Rename include guard.
13042 * common/cleanups.h: Rename include guard.
13043 * common/buffer.h: Rename include guard.
13044 * common/btrace-common.h: Rename include guard.
13045 * common/break-common.h: Rename include guard.
13046 * cli/cli-utils.h: Rename include guard.
13047 * cli/cli-style.h: Rename include guard.
13048 * cli/cli-setshow.h: Rename include guard.
13049 * cli/cli-script.h: Rename include guard.
13050 * cli/cli-interp.h: Rename include guard.
13051 * cli/cli-decode.h: Rename include guard.
13052 * cli/cli-cmds.h: Rename include guard.
13053 * charset-list.h: Add include guard.
13054 * buildsym-legacy.h: Rename include guard.
13055 * bfin-tdep.h: Add include guard.
13056 * ax.h: Rename include guard.
13057 * arm-linux-tdep.h: Add include guard.
13058 * arm-fbsd-tdep.h: Add include guard.
13059 * arch/xtensa.h: Rename include guard.
13060 * arch/tic6x.h: Add include guard.
13061 * arch/i386.h: Add include guard.
13062 * arch/arm.h: Rename include guard.
13063 * arch/arm-linux.h: Rename include guard.
13064 * arch/arm-get-next-pcs.h: Rename include guard.
13065 * arch/amd64.h: Add include guard.
13066 * arch/aarch64-insn.h: Rename include guard.
13067 * arch-utils.h: Rename include guard.
13068 * annotate.h: Add include guard.
13069 * amd64-darwin-tdep.h: Rename include guard.
13070 * aarch64-linux-tdep.h: Add include guard.
13071 * aarch64-fbsd-tdep.h: Add include guard.
13072 * aarch32-linux-nat.h: Add include guard.
13073
13074 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13075
13076 * macrotab.c (macro_define_internal): New function that
13077 factorizes macro_define_object_internal and macro_define_function
13078 code.
13079 (macro_define_object_internal): Use macro_define_internal.
13080 (macro_define_function): Likewise.
13081
13082 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13083
13084 * macrocmd.c (extract_identifier): Return
13085 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13086 callers.
13087
13088 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13089
13090 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13091
13092 2019-02-05 Tom Tromey <tom@tromey.com>
13093
13094 * target.c (target_stack::unpush): Move assertion earlier.
13095
13096 2019-01-30 Tom Tromey <tom@tromey.com>
13097
13098 PR python/23615:
13099 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13100 (gdbpy_parse_and_eval): Likewise.
13101 * python/python-internal.h (gdbpy_allow_threads): New class.
13102
13103 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13104
13105 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13106 (aarch64_fbsd_fpregmap): Move earlier.
13107 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13108 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13109 instead of individual calls to trad_frame_set_reg_addr.
13110 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13111 earlier.
13112 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13113 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13114 instead of individual calls to trad_frame_set_reg_addr.
13115
13116 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13117
13118 * CONTRIBUTE: Replace contribution list with wiki link.
13119
13120 2019-01-25 Tom Tromey <tom@tromey.com>
13121
13122 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13123
13124 2019-01-25 Tom Tromey <tom@tromey.com>
13125
13126 * xtensa-linux-nat.c: Fix common/ includes.
13127 * xml-support.h: Fix common/ includes.
13128 * xml-support.c: Fix common/ includes.
13129 * x86-linux-nat.c: Fix common/ includes.
13130 * windows-nat.c: Fix common/ includes.
13131 * varobj.h: Fix common/ includes.
13132 * varobj.c: Fix common/ includes.
13133 * value.c: Fix common/ includes.
13134 * valops.c: Fix common/ includes.
13135 * utils.c: Fix common/ includes.
13136 * unittests/xml-utils-selftests.c: Fix common/ includes.
13137 * unittests/utils-selftests.c: Fix common/ includes.
13138 * unittests/unpack-selftests.c: Fix common/ includes.
13139 * unittests/tracepoint-selftests.c: Fix common/ includes.
13140 * unittests/style-selftests.c: Fix common/ includes.
13141 * unittests/string_view-selftests.c: Fix common/ includes.
13142 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13143 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13144 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13145 * unittests/rsp-low-selftests.c: Fix common/ includes.
13146 * unittests/parse-connection-spec-selftests.c: Fix common/
13147 includes.
13148 * unittests/optional-selftests.c: Fix common/ includes.
13149 * unittests/offset-type-selftests.c: Fix common/ includes.
13150 * unittests/observable-selftests.c: Fix common/ includes.
13151 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13152 * unittests/memrange-selftests.c: Fix common/ includes.
13153 * unittests/memory-map-selftests.c: Fix common/ includes.
13154 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13155 * unittests/function-view-selftests.c: Fix common/ includes.
13156 * unittests/environ-selftests.c: Fix common/ includes.
13157 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13158 * unittests/common-utils-selftests.c: Fix common/ includes.
13159 * unittests/cli-utils-selftests.c: Fix common/ includes.
13160 * unittests/array-view-selftests.c: Fix common/ includes.
13161 * ui-file.c: Fix common/ includes.
13162 * tui/tui-io.c: Fix common/ includes.
13163 * tracepoint.h: Fix common/ includes.
13164 * tracepoint.c: Fix common/ includes.
13165 * tracefile-tfile.c: Fix common/ includes.
13166 * top.h: Fix common/ includes.
13167 * top.c: Fix common/ includes.
13168 * thread.c: Fix common/ includes.
13169 * target/waitstatus.h: Fix common/ includes.
13170 * target/waitstatus.c: Fix common/ includes.
13171 * target.h: Fix common/ includes.
13172 * target.c: Fix common/ includes.
13173 * target-memory.c: Fix common/ includes.
13174 * target-descriptions.c: Fix common/ includes.
13175 * symtab.h: Fix common/ includes.
13176 * symfile.c: Fix common/ includes.
13177 * stap-probe.c: Fix common/ includes.
13178 * spu-linux-nat.c: Fix common/ includes.
13179 * sparc-nat.c: Fix common/ includes.
13180 * source.c: Fix common/ includes.
13181 * solib.c: Fix common/ includes.
13182 * solib-target.c: Fix common/ includes.
13183 * ser-unix.c: Fix common/ includes.
13184 * ser-tcp.c: Fix common/ includes.
13185 * ser-pipe.c: Fix common/ includes.
13186 * ser-base.c: Fix common/ includes.
13187 * selftest-arch.c: Fix common/ includes.
13188 * s12z-tdep.c: Fix common/ includes.
13189 * rust-exp.y: Fix common/ includes.
13190 * rs6000-aix-tdep.c: Fix common/ includes.
13191 * riscv-tdep.c: Fix common/ includes.
13192 * remote.c: Fix common/ includes.
13193 * remote-notif.h: Fix common/ includes.
13194 * remote-fileio.h: Fix common/ includes.
13195 * remote-fileio.c: Fix common/ includes.
13196 * regcache.h: Fix common/ includes.
13197 * regcache.c: Fix common/ includes.
13198 * record-btrace.c: Fix common/ includes.
13199 * python/python.c: Fix common/ includes.
13200 * python/py-type.c: Fix common/ includes.
13201 * python/py-inferior.c: Fix common/ includes.
13202 * progspace.h: Fix common/ includes.
13203 * producer.c: Fix common/ includes.
13204 * procfs.c: Fix common/ includes.
13205 * proc-api.c: Fix common/ includes.
13206 * printcmd.c: Fix common/ includes.
13207 * ppc-linux-nat.c: Fix common/ includes.
13208 * parser-defs.h: Fix common/ includes.
13209 * osdata.c: Fix common/ includes.
13210 * obsd-nat.c: Fix common/ includes.
13211 * nat/x86-linux.c: Fix common/ includes.
13212 * nat/x86-linux-dregs.c: Fix common/ includes.
13213 * nat/x86-dregs.h: Fix common/ includes.
13214 * nat/x86-dregs.c: Fix common/ includes.
13215 * nat/ppc-linux.c: Fix common/ includes.
13216 * nat/mips-linux-watch.h: Fix common/ includes.
13217 * nat/mips-linux-watch.c: Fix common/ includes.
13218 * nat/linux-waitpid.c: Fix common/ includes.
13219 * nat/linux-ptrace.h: Fix common/ includes.
13220 * nat/linux-ptrace.c: Fix common/ includes.
13221 * nat/linux-procfs.c: Fix common/ includes.
13222 * nat/linux-personality.c: Fix common/ includes.
13223 * nat/linux-osdata.c: Fix common/ includes.
13224 * nat/linux-namespaces.c: Fix common/ includes.
13225 * nat/linux-btrace.h: Fix common/ includes.
13226 * nat/linux-btrace.c: Fix common/ includes.
13227 * nat/fork-inferior.c: Fix common/ includes.
13228 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13229 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13230 * nat/aarch64-linux.c: Fix common/ includes.
13231 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13232 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13233 * namespace.h: Fix common/ includes.
13234 * mips-linux-tdep.c: Fix common/ includes.
13235 * minsyms.c: Fix common/ includes.
13236 * mi/mi-parse.h: Fix common/ includes.
13237 * mi/mi-main.c: Fix common/ includes.
13238 * mi/mi-cmd-env.c: Fix common/ includes.
13239 * memrange.h: Fix common/ includes.
13240 * memattr.c: Fix common/ includes.
13241 * maint.h: Fix common/ includes.
13242 * maint.c: Fix common/ includes.
13243 * main.c: Fix common/ includes.
13244 * machoread.c: Fix common/ includes.
13245 * location.c: Fix common/ includes.
13246 * linux-thread-db.c: Fix common/ includes.
13247 * linux-nat.c: Fix common/ includes.
13248 * linux-fork.c: Fix common/ includes.
13249 * inline-frame.c: Fix common/ includes.
13250 * infrun.c: Fix common/ includes.
13251 * inflow.c: Fix common/ includes.
13252 * inferior.h: Fix common/ includes.
13253 * inferior.c: Fix common/ includes.
13254 * infcmd.c: Fix common/ includes.
13255 * inf-ptrace.c: Fix common/ includes.
13256 * inf-child.c: Fix common/ includes.
13257 * ia64-linux-nat.c: Fix common/ includes.
13258 * i387-tdep.c: Fix common/ includes.
13259 * i386-tdep.c: Fix common/ includes.
13260 * i386-linux-tdep.c: Fix common/ includes.
13261 * i386-linux-nat.c: Fix common/ includes.
13262 * i386-go32-tdep.c: Fix common/ includes.
13263 * i386-fbsd-tdep.c: Fix common/ includes.
13264 * i386-fbsd-nat.c: Fix common/ includes.
13265 * guile/scm-type.c: Fix common/ includes.
13266 * guile/guile.c: Fix common/ includes.
13267 * go32-nat.c: Fix common/ includes.
13268 * gnu-nat.c: Fix common/ includes.
13269 * gdbthread.h: Fix common/ includes.
13270 * gdbarch-selftests.c: Fix common/ includes.
13271 * gdb_usleep.c: Fix common/ includes.
13272 * gdb_select.h: Fix common/ includes.
13273 * gdb_bfd.c: Fix common/ includes.
13274 * gcore.c: Fix common/ includes.
13275 * fork-child.c: Fix common/ includes.
13276 * findvar.c: Fix common/ includes.
13277 * fbsd-nat.c: Fix common/ includes.
13278 * event-top.c: Fix common/ includes.
13279 * event-loop.c: Fix common/ includes.
13280 * dwarf2read.c: Fix common/ includes.
13281 * dwarf2loc.c: Fix common/ includes.
13282 * dwarf2-frame.c: Fix common/ includes.
13283 * dwarf-index-cache.c: Fix common/ includes.
13284 * dtrace-probe.c: Fix common/ includes.
13285 * disasm-selftests.c: Fix common/ includes.
13286 * defs.h: Fix common/ includes.
13287 * csky-tdep.c: Fix common/ includes.
13288 * cp-valprint.c: Fix common/ includes.
13289 * cp-support.h: Fix common/ includes.
13290 * cp-support.c: Fix common/ includes.
13291 * corelow.c: Fix common/ includes.
13292 * completer.h: Fix common/ includes.
13293 * completer.c: Fix common/ includes.
13294 * compile/compile.c: Fix common/ includes.
13295 * compile/compile-loc2c.c: Fix common/ includes.
13296 * compile/compile-cplus-types.c: Fix common/ includes.
13297 * compile/compile-cplus-symbols.c: Fix common/ includes.
13298 * command.h: Fix common/ includes.
13299 * cli/cli-dump.c: Fix common/ includes.
13300 * cli/cli-cmds.c: Fix common/ includes.
13301 * charset.c: Fix common/ includes.
13302 * build-id.c: Fix common/ includes.
13303 * btrace.h: Fix common/ includes.
13304 * btrace.c: Fix common/ includes.
13305 * breakpoint.h: Fix common/ includes.
13306 * breakpoint.c: Fix common/ includes.
13307 * ax.h:
13308 (enum agent_op): Fix common/ includes.
13309 * ax-general.c (struct aop_map): Fix common/ includes.
13310 * ax-gdb.c: Fix common/ includes.
13311 * auxv.c: Fix common/ includes.
13312 * auto-load.c: Fix common/ includes.
13313 * arm-tdep.c: Fix common/ includes.
13314 * arch/riscv.c: Fix common/ includes.
13315 * arch/ppc-linux-common.c: Fix common/ includes.
13316 * arch/i386.c: Fix common/ includes.
13317 * arch/arm.c: Fix common/ includes.
13318 * arch/arm-linux.c: Fix common/ includes.
13319 * arch/arm-get-next-pcs.c: Fix common/ includes.
13320 * arch/amd64.c: Fix common/ includes.
13321 * arch/aarch64.c: Fix common/ includes.
13322 * arch/aarch64-insn.c: Fix common/ includes.
13323 * arch-utils.c: Fix common/ includes.
13324 * amd64-windows-tdep.c: Fix common/ includes.
13325 * amd64-tdep.c: Fix common/ includes.
13326 * amd64-sol2-tdep.c: Fix common/ includes.
13327 * amd64-obsd-tdep.c: Fix common/ includes.
13328 * amd64-nbsd-tdep.c: Fix common/ includes.
13329 * amd64-linux-tdep.c: Fix common/ includes.
13330 * amd64-linux-nat.c: Fix common/ includes.
13331 * amd64-fbsd-tdep.c: Fix common/ includes.
13332 * amd64-fbsd-nat.c: Fix common/ includes.
13333 * amd64-dicos-tdep.c: Fix common/ includes.
13334 * amd64-darwin-tdep.c: Fix common/ includes.
13335 * agent.c: Fix common/ includes.
13336 * ada-lang.h: Fix common/ includes.
13337 * ada-lang.c: Fix common/ includes.
13338 * aarch64-tdep.c: Fix common/ includes.
13339
13340 2019-01-25 Tom Tromey <tom@tromey.com>
13341
13342 * common/create-version.sh: Use common/version.h.
13343
13344 2019-01-24 Pedro Alves <palves@redhat.com>
13345
13346 * infrun.c (signal_stop, signal_print, signal_program)
13347 (signal_catch, signal_pass): Now arrays instead of pointers.
13348 (update_signals_program_target, do_target_resume)
13349 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13350 * linux-nat.c (linux_nat_target::pass_signals)
13351 (linux_nat_target::create_inferior, linux_nat_target::attach):
13352 Adjust.
13353 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13354 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13355 * procfs.c (procfs_target::pass_signals): Adjust.
13356 * record-full.c (record_full_target::resume): Adjust.
13357 * remote.c (remote_target::pass_signals)
13358 (remote_target::program_signals): Adjust.
13359 * target-debug.h (target_debug_print_signals): Now takes a
13360 gdb::array_view as parameter. Adjust.
13361 * target.h (target_ops) <pass_signals, program_signals>: Replace
13362 pointer and length parameters with gdb::array_view.
13363 (target_pass_signals, target_program_signals): Likewise.
13364 * target-delegates.c: Regenerate.
13365
13366 2019-01-24 Pedro Alves <palves@redhat.com>
13367
13368 * common/forward-scope-exit.h
13369 (forward_scope_exit::forward_scope_exit): Pass arguments to
13370 m_bind_function directly, instead of creating a std::bind and
13371 copying that.
13372
13373 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13374
13375 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13376 for static members.
13377 (pass_in_v_vfp_candidate): Likewise.
13378
13379 2019-01-23 Tom Tromey <tom@tromey.com>
13380 Pedro Alves <palves@redhat.com>
13381
13382 * regcache.c (class regcache_invalidator): Remove.
13383 (regcache::raw_write): Use make_scope_exit.
13384
13385 2019-01-23 Tom Tromey <tom@tromey.com>
13386
13387 * ui-out.h (class ui_out_emit_type): Update comment.
13388
13389 2019-01-23 Tom Tromey <tom@tromey.com>
13390
13391 * infrun.c (fetch_inferior_event): Update comment.
13392
13393 2019-01-23 Tom Tromey <tom@tromey.com>
13394 Pedro Alves <palves@redhat.com>
13395
13396 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13397 parameter.
13398 (fetch_inferior_event): Use SCOPE_EXIT.
13399
13400
13401 2019-01-23 Tom Tromey <tom@tromey.com>
13402 Pedro Alves <palves@redhat.com>
13403
13404 * infrun.c (disable_thread_events): Delete.
13405 (stop_all_threads): Use SCOPE_EXIT.
13406
13407 2019-01-23 Tom Tromey <tom@tromey.com>
13408 Pedro Alves <palves@redhat.com>
13409
13410 * symfile.c: Include forward-scope-exit.h.
13411 (clear_symtab_users_cleanup): Replace forward declaration with
13412 a FORWARD_SCOPE_EXIT.
13413 (syms_from_objfile_1): Use the forward_scope_exit and
13414 gdb::optional instead of cleanup_function.
13415 (reread_symbols): Use the forward_scope_exit instead of
13416 cleanup_function.
13417 (clear_symtab_users_cleanup): Remove function.
13418
13419 2019-01-23 Tom Tromey <tom@tromey.com>
13420 Pedro Alves <palves@redhat.com>
13421
13422 * linux-nat.c: Include scope-exit.h.
13423 (cleanup_target_stop): Remove.
13424 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13425 SCOPE_EXIT.
13426
13427 2019-01-23 Tom Tromey <tom@tromey.com>
13428 Pedro Alves <palves@redhat.com>
13429
13430 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13431 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13432
13433 2019-01-23 Tom Tromey <tom@tromey.com>
13434 Andrew Burgess <andrew.burgess@embecosm.com>
13435 Pedro Alves <palves@redhat.com>
13436
13437 * infrun.c (fetch_inferior_event): Use scope_exit.
13438 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13439 * top.c (execute_command): Use scope_exit.
13440 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13441 * utils.c (do_bpstat_clear_actions_cleanup)
13442 (make_bpstat_clear_actions_cleanup): Remove.
13443
13444 2019-01-23 Tom Tromey <tom@tromey.com>
13445 Pedro Alves <palves@redhat.com>
13446
13447 * infrun.c: Include "common/scope-exit.h"
13448 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13449 (wait_for_inferior): Use SCOPE_EXIT.
13450 (fetch_inferior_event): Use scope_exit.
13451
13452 2019-01-23 Tom Tromey <tom@tromey.com>
13453 Pedro Alves <palves@redhat.com>
13454
13455 * breakpoint.c (create_breakpoint): Remove cleanup.
13456
13457 2019-01-23 Tom Tromey <tom@tromey.com>
13458 Andrew Burgess <andrew.burgess@embecosm.com>
13459 Pedro Alves <palves@redhat.com>
13460
13461 2019-01-23 Pedro Alves <palves@redhat.com>
13462
13463 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13464
13465 2019-01-23 Pedro Alves <palves@redhat.com>
13466 Andrew Burgess <andrew.burgess@embecosm.com>
13467
13468 * gdbthread.h: Include "common/forward-scope-exit.h".
13469 (scoped_finish_thread_state): Redefine custom class in terms of
13470 forward_scope_exit.
13471
13472 2019-01-23 Pedro Alves <palves@redhat.com>
13473 Andrew Burgess <andrew.burgess@embecosm.com>
13474
13475 * common/forward-scope-exit.h: New file.
13476
13477 2019-01-23 Pedro Alves <palves@redhat.com>
13478 Andrew Burgess <andrew.burgess@embecosm.com>
13479 Tom Tromey <tom@tromey.com>
13480
13481 * common/scope-exit.h: New file.
13482
13483 2019-01-23 Pedro Alves <palves@redhat.com>
13484
13485 * common/preprocessor.h (ESC): Rename to ...
13486 (ESC_PARENS): ... this.
13487 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13488 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13489
13490 2019-01-23 Tom Tromey <tom@tromey.com>
13491
13492 * language.h (class scoped_switch_to_sym_language_if_auto):
13493 Initialize m_lang in both cases.
13494
13495 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13496
13497 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13498 with XCNEW.
13499
13500 2019-01-22 Tom Tromey <tom@tromey.com>
13501
13502 * corelow.c: Do not include sys/file.h.
13503
13504 2019-01-22 Tom Tromey <tom@tromey.com>
13505
13506 * tui/tui-wingeneral.h: Include gdb_curses.h.
13507
13508 2019-01-22 Tom Tromey <tom@tromey.com>
13509
13510 * source-cache.h (class source_cache) <get_source_lines,
13511 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13512
13513 2019-01-22 Tom Tromey <tom@tromey.com>
13514
13515 * remote-fileio.h (struct remote_target): Declare.
13516
13517 2019-01-22 Tom Tromey <tom@tromey.com>
13518
13519 * python/py-arch.c: Do not include py-ref.h.
13520 * python/py-bpevent.c: Do not include py-ref.h.
13521 * python/py-cmd.c: Do not include py-ref.h.
13522 * python/py-continueevent.c: Do not include py-ref.h.
13523 * python/py-event.h: Do not include py-ref.h.
13524 * python/py-evtregistry.c: Do not include py-ref.h.
13525 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13526 * python/py-frame.c: Do not include py-ref.h.
13527 * python/py-framefilter.c: Do not include py-ref.h.
13528 * python/py-function.c: Do not include py-ref.h.
13529 * python/py-infevents.c: Do not include py-ref.h.
13530 * python/py-linetable.c: Do not include py-ref.h.
13531 * python/py-objfile.c: Do not include py-ref.h.
13532 * python/py-param.c: Do not include py-ref.h.
13533 * python/py-prettyprint.c: Do not include py-ref.h.
13534 * python/py-progspace.c: Do not include py-ref.h.
13535 * python/py-symbol.c: Do not include py-ref.h.
13536 * python/py-symtab.c: Do not include py-ref.h.
13537 * python/py-type.c: Do not include py-ref.h.
13538 * python/py-unwind.c: Do not include py-ref.h.
13539 * python/py-utils.c: Do not include py-ref.h.
13540 * python/py-value.c: Do not include py-ref.h.
13541 * python/py-varobj.c: Do not include py-ref.h.
13542 * python/py-xmethods.c: Do not include py-ref.h.
13543 * python/python.c: Do not include py-ref.h.
13544 * varobj.c: Do not include py-ref.h.
13545
13546 2019-01-22 Tom Tromey <tom@tromey.com>
13547
13548 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13549 keyword for bcache.
13550
13551 2019-01-22 Tom Tromey <tom@tromey.com>
13552
13553 * compile/compile-cplus-types.c: Remove a comment by #include.
13554
13555 2019-01-22 Tom Tromey <tom@tromey.com>
13556
13557 * compile/gcc-c-plugin.h: Include compile-internal.h.
13558
13559 2019-01-22 Tom Tromey <tom@tromey.com>
13560
13561 * stabsread.c (EXTERN): Do not define.
13562 (symnum, next_symbol_text_func, processing_gcc_compilation)
13563 (within_function, global_sym_chain, global_stabs)
13564 (previous_stab_code, this_object_header_files)
13565 (n_this_object_header_files)
13566 (n_allocated_this_object_header_files): Define.
13567 * stabsread.h (EXTERN): Never define. Use "extern".
13568
13569 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13570
13571 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13572 history_value.
13573
13574 2019-01-21 Tom Tromey <tom@tromey.com>
13575
13576 * ui-out.c: Fix includes.
13577 * tui/tui-source.c: Fix includes.
13578 * target.c: Fix includes.
13579 * remote.c: Fix includes.
13580 * regcache.c: Fix includes.
13581 * python/py-block.c: Fix includes.
13582 * printcmd.c: Fix includes.
13583 * or1k-tdep.c: Fix includes.
13584 * mi/mi-main.c: Fix includes.
13585 * m32r-tdep.c: Fix includes.
13586 * csky-tdep.c: Fix includes.
13587 * compile/compile-cplus-types.c: Fix includes.
13588 * cli/cli-interp.c: Fix includes.
13589
13590 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13591
13592 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13593 for padding.
13594
13595 2019-01-16 Tom Tromey <tom@tromey.com>
13596
13597 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13598 earlier.
13599 (struct objfile) <msymbols_range>: Move from top level.
13600 <msymbols>: New method.
13601 (class objfile_msymbols): Remove.
13602 * symtab.c (default_collect_symbol_completion_matches_break_on):
13603 Update.
13604 * symmisc.c (dump_msymbols): Update.
13605 * stabsread.c (scan_file_globals): Update.
13606 * objc-lang.c (info_selectors_command, info_classes_command)
13607 (find_methods): Update.
13608 * minsyms.c (find_solib_trampoline_target): Update.
13609 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13610 * coffread.c (coff_symfile_read): Update.
13611 * ada-lang.c (ada_lookup_simple_minsym)
13612 (ada_collect_symbol_completion_matches): Update.
13613
13614 2019-01-16 Tom Tromey <tom@tromey.com>
13615
13616 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13617 type. Remove no-argument constructor.
13618 <iterator::operator++>: Simplify.
13619 <begin>: Update.
13620 <end>: Use minimal_symbol_count.
13621
13622 2019-01-16 Tom Tromey <tom@tromey.com>
13623
13624 * objfiles.h (struct objfile) <psymtabs>: New method.
13625 (class objfile_psymtabs): Remove.
13626 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13627 typedef.
13628 <range>: New method.
13629 (require_partial_symbols): Change return type.
13630 * psymtab.c (require_partial_symbols)
13631 (psym_expand_symtabs_matching): Update.
13632 * mdebugread.c (parse_partial_symbols): Update.
13633 * dbxread.c (dbx_end_psymtab): Update.
13634
13635 2019-01-15 Tom Tromey <tom@tromey.com>
13636
13637 * symtab.c (lookup_objfile_from_block)
13638 (lookup_symbol_in_objfile_symtabs)
13639 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13640 (find_line_symtab, info_sources_command)
13641 (default_collect_symbol_completion_matches_break_on)
13642 (make_source_files_completion_list): Update.
13643 * symmisc.c (print_objfile_statistics, dump_objfile)
13644 (maintenance_print_symbols, maintenance_info_symtabs)
13645 (maintenance_check_symtabs, maintenance_info_line_tables):
13646 Update.
13647 * source.c (select_source_symtab)
13648 (forget_cached_source_info_for_objfile): Update.
13649 * objfiles.h (class objfile_compunits): Remove.
13650 (struct objfile) <compunits_range>: New typedef.
13651 (compunits): New method.
13652 * objfiles.c (objfile_relocate1): Update.
13653 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13654 * maint.c (count_symtabs_and_blocks): Update.
13655 * linespec.c (iterate_over_all_matching_symtabs): Update.
13656 * cp-support.c (add_symbol_overload_list_qualified): Update.
13657 * coffread.c (coff_symtab_read): Update.
13658 * ada-lang.c (add_nonlocal_symbols)
13659 (ada_collect_symbol_completion_matches)
13660 (ada_add_global_exceptions): Update.
13661
13662 2019-01-15 Tom Tromey <tom@tromey.com>
13663
13664 * progspace.h (program_space) <objfiles_safe_range>: New
13665 typedef.
13666 <objfiles_safe>: New method.
13667 * objfiles.h (class all_objfiles_safe): Remove.
13668 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13669 * jit.c (jit_inferior_exit_hook): Update.
13670
13671 2019-01-17 Tom Tromey <tom@tromey.com>
13672
13673 * progspace.h (program_space) <objfiles_range>: New typedef.
13674 <objfiles>: New method.
13675 <objfiles_head>: Rename from objfiles.
13676 (object_files): Update.
13677 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13678 * guile/scm-pretty-print.c
13679 (ppscm_find_pretty_printer_from_objfiles): Update.
13680 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13681 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13682 Update.
13683 * python/py-progspace.c (pspy_get_objfiles): Update.
13684 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13685 Update.
13686 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13687 (objfpy_lookup_objfile_by_build_id): Update.
13688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13689 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13690 Update.
13691 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13692 (expand_symtab_containing_pc, lookup_objfile_from_block)
13693 (lookup_static_symbol, basic_lookup_transparent_type)
13694 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13695 (find_line_symtab, info_sources_command)
13696 (default_collect_symbol_completion_matches_break_on)
13697 (make_source_files_completion_list, find_main_name): Update.
13698 * symmisc.c (print_symbol_bcache_statistics)
13699 (print_objfile_statistics, maintenance_print_symbols)
13700 (maintenance_print_msymbols, maintenance_print_objfiles)
13701 (maintenance_info_symtabs, maintenance_check_symtabs)
13702 (maintenance_expand_symtabs, maintenance_info_line_tables):
13703 Update.
13704 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13705 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13706 (map_overlay_command, unmap_overlay_command)
13707 (simple_overlay_update, expand_symtabs_matching)
13708 (map_symbol_filenames): Update.
13709 * symfile-debug.c (set_debug_symfile): Update.
13710 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13711 Update.
13712 * source.c (select_source_symtab, forget_cached_source_info):
13713 Update.
13714 * solib.c (solib_read_symbols): Update.
13715 * solib-spu.c (append_ocl_sos): Update.
13716 * psymtab.c (maintenance_print_psymbols)
13717 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13718 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13719 * printcmd.c (info_symbol_command): Update.
13720 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13721 Update.
13722 * objfiles.h (class all_objfiles): Remove.
13723 * objfiles.c (have_partial_symbols, have_full_symbols)
13724 (have_minimal_symbols, qsort_cmp, update_section_map)
13725 (shared_objfile_contains_address_p)
13726 (default_iterate_over_objfiles_in_search_order): Update.
13727 * objc-lang.c (info_selectors_command, info_classes_command)
13728 (find_methods): Update.
13729 * minsyms.c (find_solib_trampoline_target): Update.
13730 * maint.c (maintenance_info_sections)
13731 (maintenance_translate_address, count_symtabs_and_blocks):
13732 Update.
13733 * main.c (captured_main_1): Update.
13734 * linux-thread-db.c (try_thread_db_load_from_pdir)
13735 (has_libpthread): Update.
13736 * linespec.c (iterate_over_all_matching_symtabs)
13737 (search_minsyms_for_name): Update.
13738 * jit.c (jit_find_objf_with_entry_addr): Update.
13739 * hppa-tdep.c (find_unwind_entry)
13740 (hppa_lookup_stub_minimal_symbol): Update.
13741 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13742 Update.
13743 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13744 (elf_gnu_ifunc_resolve_by_got): Update.
13745 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13746 * dwarf-index-write.c (save_gdb_index_command): Update.
13747 * cp-support.c (add_symbol_overload_list_qualified): Update.
13748 * breakpoint.c (create_overlay_event_breakpoint)
13749 (create_longjmp_master_breakpoint)
13750 (create_std_terminate_master_breakpoint)
13751 (create_exception_master_breakpoint): Update.
13752 * blockframe.c (find_pc_partial_function): Update.
13753 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13754 (ada_collect_symbol_completion_matches)
13755 (ada_add_global_exceptions): Update.
13756
13757 2019-01-17 Tom Tromey <tom@tromey.com>
13758
13759 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13760 declare VEC.
13761 (solib_target_parse_libraries): Change return type.
13762 (library_list_start_segment, library_list_start_section)
13763 (library_list_end_library, library_list_start_library); Update.
13764 (solib_target_free_library_list): Remove.
13765 (solib_target_parse_libraries): Remove cleanup. Change return
13766 type.
13767 (solib_target_current_sos): Update.
13768
13769 2019-01-17 Tom Tromey <tromey@bapiya>
13770
13771 * valprint.c: Replace "the the" with "the".
13772 * symtab.c: Replace "the the" with "the".
13773 * solib.c: Replace "the the" with "the".
13774 * solib-dsbt.c: Replace "the the" with "the".
13775 * linespec.c: Replace "the the" with "the".
13776 * dwarf2loc.h: Replace "the the" with "the".
13777 * amd64-windows-tdep.c: Replace "the the" with "the".
13778 * aarch64-tdep.c: Replace "the the" with "the".
13779
13780 2019-01-16 Keith Seitz <keiths@redhat.com>
13781
13782 PR gdb/23773
13783 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13784 <builder>: Rename to ..
13785 <m_builder>: ... this and make private.
13786 (dwarf2_cu::get_builder): New method. Change all users of
13787 `builder' to use this method.
13788 (dwarf2_start_symtab): Move to ...
13789 (dwarf2_cu::start_symtab): ... here. Update all callers
13790 (setup_type_unit_groups): Move to ...
13791 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13792 callers.
13793 (dwarf2_cu::reset_builder): New method.
13794 (process_full_compunit, process_full_type_unit): Use
13795 dwarf2_cu::reset_builder.
13796 (follow_die_offset): Record the ancestor CU if it is different
13797 from the followed DIE's CU.
13798 (follow_die_sig_1): Likewise.
13799
13800 2019-01-15 Tom Tromey <tom@tromey.com>
13801
13802 * remote.c (class remote_state) <buf>: Now a char_vector.
13803 <buf_size>: Remove.
13804 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13805 parameter.
13806 (remote_target::getpkt_or_notif_sane_1)
13807 (remote_target::getpkt_sane)
13808 (remote_target::getpkt_or_notif_sane): Likewise.
13809 (class remote_target) <putpkt>: New overload.
13810 (remote_target::read_frame): Change type of "buf_p". Remove
13811 sizeof_p parameter.
13812 (packet_ok): New overload.
13813 (packet_check_result): New overload.
13814 Update all uses.
13815
13816 2019-01-14 Tom Tromey <tom@tromey.com>
13817
13818 * remote-notif.c (handle_notification, remote_notif_ack)
13819 (remote_notif_parse): Make "buf" const.
13820 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13821 const.
13822 (remote_notif_parse, remote_notif_ack, handle_notification):
13823 Likewise.
13824 * remote.c (remote_notif_stop_parse): Make "buf" const.
13825 (remote_target::remote_parse_stop_reply): Make "buf" const.
13826 (remote_notif_stop_ack): Make "buf" const.
13827
13828 2019-01-14 Tom Tromey <tom@tromey.com>
13829
13830 * remote.c (remote_console_output): Make parameter const.
13831
13832 2019-01-14 Tom Tromey <tom@tromey.com>
13833
13834 * target-debug.h (target_debug_print_signals): Constify.
13835 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13836 * procfs.c (procfs_target::pass_signals): Update.
13837 * linux-nat.c (linux_nat_target::pass_signals): Update.
13838 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13839 * target-delegates.c: Rebuild.
13840 * remote.c (remote_target::program_signals): Update.
13841 (remote_target::pass_signals): Update.
13842 * target.c (target_pass_signals): Constify argument.
13843 (target_program_signals): Likewise.
13844 * target.h (struct target_ops) <pass_signals, program_signals>:
13845 Constify argument.
13846 (target_pass_signals, target_program_signals): Constify argument.
13847
13848 2019-01-14 Tom Tromey <tom@tromey.com>
13849
13850 PR tui/28819:
13851 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13852
13853 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13854
13855 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13856 field.
13857 * rs6000-tdep.c: Include reggroups.h.
13858 (IS_V_ALIAS_PSEUDOREG): Define.
13859 (rs6000_register_name): Return names for the "vX" aliases.
13860 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13861 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13862 aliases. Call default_register_reggroup_p for all other
13863 pseudo-registers.
13864 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13865 New functions.
13866 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13867 Handle "vX" aliases.
13868 (v_alias_pseudo_register_collect): New function.
13869 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13870 (rs6000_gdbarch_init): Initialize "vX" aliases as
13871 pseudo-registers. Restore registration of
13872 rs6000_pseudo_register_reggroup_p with
13873 set_tdesc_pseudo_register_reggroup_p.
13874
13875 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13876
13877 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13878 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13879 set_gdbarch_num_pseudo_regs.
13880
13881 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13882
13883 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13884 Remove arg prefixname, add do_set and do_show.
13885 Add member functions set_list and show_list.
13886 * cli/cli-style.c (class cli_style_option): Update accordingly.
13887 (style_set_list): Move to file scope.
13888 (style_show_list): Likewise.
13889 (set_style): Call help_list.
13890 (show_style): Call cmd_show_list.
13891 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13892 Update to use the new macro.
13893
13894 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13895
13896 * ada-lang.c (_initialize_ada_language): Expand the help text
13897 for the "catch exception" command.
13898
13899 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13900
13901 * symtab.c (matching_obj_sections): Initialize obj,
13902 declare it closer to its usage.
13903
13904 2019-01-10 Tom Tromey <tom@tromey.com>
13905
13906 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13907 (basic_inf_threads_range): Remove.
13908 (inf_threads_range, inf_non_exited_threads_range)
13909 (safe_inf_threads_range): Use next_adapter.
13910
13911 2019-01-10 Keith Seitz <keiths@redhat.com>
13912
13913 PR gdb/23712
13914 PR symtab/23010
13915 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13916 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13917
13918 2019-01-10 Keith Seitz <keiths@redhat.com>
13919
13920 PR gdb/23712
13921 PR symtab/23010
13922 * dictionary.c (pending_to_vector): Remove.
13923 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13924 Remove _1 suffix, replacing functions of the same name. Update
13925 all callers.
13926 (dict_create_hashed, dict_create_hashed_expandable)
13927 (dict_create_linear, dict_create_linear_expandable, dict_free)
13928 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13929 Make functions static.
13930
13931 2019-01-10 Keith Seitz <keiths@redhat.com>
13932
13933 PR gdb/23712
13934 PR symtab/23010
13935 * dictionary.h (struct dictionary): Replace declaration with
13936 multidictionary.
13937 (dict_create_hashed, dict_create_hashed_expandable)
13938 (dict_create_linear, dict_create_linear_expandable)
13939 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13940 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13941 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13942 taking multidictionary argument.
13943 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13944 * block.h (struct block) <dict>: Change to multidictionary
13945 and rename `multidict'.
13946 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13947 symmisc.c: Update all dictionary references to multidictionary.
13948
13949 2019-01-10 Keith Seitz <keiths@redhat.com>
13950
13951 PR gdb/23712
13952 PR symtab/23010
13953 * dictionary.c: Include unordered_map.
13954 (pending_to_vector): New function.
13955 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13956 Rewrite the non-"_1" functions to take vector instead
13957 of linked list.
13958 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13959 "new" _1 versions of the same name.
13960 (multidictionary): Define.
13961 (std::hash<enum language): New definition.
13962 (collate_pending_symbols_by_language, mdict_create_hashed)
13963 (mdict_create_hashed_expandable, mdict_create_linear)
13964 (mdict_create_linear_expandable, mdict_free)
13965 (find_language_dictionary, create_new_language_dictionary)
13966 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13967 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13968 (mdict_size, mdict_empty): New functions.
13969 * dictionary.h (mdict_iterator): Define.
13970
13971 2019-01-10 Pedro Alves <palves@redhat.com>
13972
13973 * breakpoint.c (read_uploaded_action)
13974 (create_tracepoint_from_upload): Adjust to use
13975 gdb::unique_xmalloc_ptr.
13976 * ctf.c (ctf_write_uploaded_tp):
13977 (SET_ARRAY_FIELD): Use emplace_back.
13978 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13979 * tracefile-tfile.c (tfile_write_uploaded_tp):
13980 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13981 gdb::unique_xmalloc_ptr.
13982 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13983 at_string, cond_string, cmd_strings>: Replace char pointers
13984 with gdb::unique_xmalloc_ptr.
13985
13986 2019-01-10 Pedro Alves <palves@redhat.com>
13987
13988 * solib-target.c (library_list_start_library): Don't xstrdup name.
13989
13990 2019-01-10 Pedro Alves <palves@redhat.com>
13991
13992 * mdebugread.c (parse_partial_symbols): Use
13993 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13994
13995 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13996
13997 * linux-fork.c (scoped_switch_fork_info)
13998 <~scoped_switch_fork_info>: Fix incorrect variable name.
13999
14000 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14001
14002 * linux-fork.c (scoped_switch_fork_info)
14003 <scoped_switch_fork_info>: Make explicit.
14004 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14005
14006 2019-01-10 Tom Tromey <tom@tromey.com>
14007
14008 * objfiles.h (objfile::reset_psymtabs): Update.
14009 * objfiles.c (objfile::objfile): Update.
14010 * psymtab.h (psymtab_storage::obstack): Update.
14011 (psymtab_storage::m_obstack): Use gdb::optional.
14012 (class psymtab_storage): Update comment. Remove objfile
14013 parameter.
14014 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14015
14016 2019-01-10 Tom Tromey <tom@tromey.com>
14017
14018 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14019 <free_psymtabs>: Now private.
14020 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14021 (allocate_psymtab): Use new method.
14022
14023 2019-01-10 Tom Tromey <tom@tromey.com>
14024
14025 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14026 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14027 * mdebugread.c (parse_partial_symbols): Use
14028 allocate_dependencies.
14029 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14030 allocate_dependencies.
14031 (process_psymtab_comp_unit_reader)
14032 (build_type_psymtab_dependencies): Likewise.
14033 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14034
14035 2019-01-10 Tom Tromey <tom@tromey.com>
14036
14037 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14038 PSYMBOL_SET_LANGUAGE.
14039 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14040
14041 2019-01-10 Tom Tromey <tom@tromey.com>
14042
14043 * psymtab.h (psymtab_storage::obstack): New method.
14044 <m_obstack>: Rename from obstack; now private.
14045 * psymtab.c (psymtab_storage): Update.
14046 * dwarf2read.c (create_addrmap_from_index)
14047 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14048 Update.
14049
14050 2019-01-10 Tom Tromey <tom@tromey.com>
14051
14052 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14053 * objfiles.h (objfile::reset_psymtabs): New method.
14054
14055 2019-01-10 Tom Tromey <tom@tromey.com>
14056
14057 * symmisc.c (print_symbol_bcache_statistics): Update.
14058 (print_objfile_statistics): Update.
14059 * symfile.c (reread_symbols): Update.
14060 * psymtab.h (class psymtab_storage): New.
14061 * psymtab.c (psymtab_storage): New constructor.
14062 (~psymtab_storage): New destructor.
14063 (require_partial_symbols): Update.
14064 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14065 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14066 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14067 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14068 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14069 (start_psymtab_common, end_psymtab_common)
14070 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14071 (allocate_psymtab): Update.
14072 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14073 Update.
14074 (dump_psymtab_addrmap, maintenance_print_psymbols)
14075 (maintenance_check_psymtabs): Update.
14076 (class objfile_psymtabs): Move to objfiles.h.
14077 * psympriv.h (discard_psymtab): Now inline.
14078 (psymtab_discarder::psymtab_discarder): Update.
14079 (psymtab_discarder::~psymtab_discarder): Update.
14080 (ALL_OBJFILE_PSYMTABS): Rewrite.
14081 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14082 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14083 Remove fields.
14084 <partial_symtabs>: New field.
14085 (class objfile_psymtabs): Move from psymtab.h. Update.
14086 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14087 psymbol_cache.
14088 (objfile::~objfile): Don't destroy psymbol_cache.
14089 * mdebugread.c (parse_partial_symbols): Update.
14090 * dwarf2read.c (create_addrmap_from_index)
14091 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14092 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14093 (add_partial_subprogram, dwarf2_ranges_read): Update.
14094 * dwarf-index-write.c (write_address_map)
14095 (write_one_signatured_type, recursively_write_psymbols)
14096 (class debug_names, class debug_names, write_psymtabs_to_index):
14097 Update.
14098
14099 2019-01-10 Tom Tromey <tom@tromey.com>
14100
14101 * symtab.h (SYMBOL_SET_NAMES): Update.
14102 (symbol_set_names): Update.
14103 (MSYMBOL_SET_NAMES): Update.
14104 * symtab.c (symbol_set_names): Change argument to be an
14105 objfile_per_bfd_storage.
14106 * psymtab.c (add_psymbol_to_bcache): Update.
14107 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14108
14109 2019-01-10 Tom Tromey <tom@tromey.com>
14110
14111 * symtab.c (create_demangled_names_hash): Change argument to be an
14112 objfile_per_bfd_storage.
14113 (symbol_set_names): Update.
14114
14115 2019-01-10 Tom Tromey <tom@tromey.com>
14116
14117 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14118 init_psymbol_list.
14119 * psymtab.c (init_psymbol_list): Do nothing if already called.
14120 * psympriv.h (init_psymbol_list): Add comment.
14121 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14122 init_psymbol_list.
14123 * dbxread.c (dbx_symfile_read): Unconditionally call
14124 init_psymbol_list.
14125
14126 2019-01-10 Tom Tromey <tom@tromey.com>
14127
14128 * xcoffread.c (scan_xcoff_symtab): Update.
14129 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14130 "where".
14131 * mdebugread.c (parse_partial_symbols)
14132 (handle_psymbol_enumerators): Update.
14133 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14134 * dbxread.c (read_dbx_symtab): Update.
14135 * psympriv.h (psymbol_placement): New enum.
14136 (add_psymbol_to_list): Update.
14137
14138 2019-01-10 Tom Tromey <tom@tromey.com>
14139
14140 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14141 static_psymbols parameters.
14142 (scan_xcoff_symtab): Update.
14143 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14144 static_psymbols parameters.
14145 * psympriv.h (start_psymtab_common): Update.
14146 * mdebugread.c (parse_partial_symbols): Update.
14147 * dwarf2read.c (create_partial_symtab): Update.
14148 * dbxread.c (read_dbx_symtab): Update.
14149 (start_psymtab): Remove global_psymbols and static_psymbols
14150 parameters.
14151
14152 2019-01-10 Tom Tromey <tom@tromey.com>
14153
14154 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14155 * psymtab.c (allocate_psymtab): Add comment.
14156 * psympriv.h (allocate_psymtab): Add comment.
14157 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14158 initializations.
14159 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14160
14161 2019-01-10 Tom Tromey <tom@tromey.com>
14162
14163 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14164 Don't declare.
14165 * mipsread.c: Include mdebugread.h.
14166 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14167 Declare.
14168 * elfread.c: Include mdebugread.h.
14169
14170 2019-01-09 Tom Tromey <tom@tromey.com>
14171
14172 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14173 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14174 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14175 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14176 (psym_lookup_symbol, psym_find_last_source_symtab)
14177 (psym_forget_cached_source_info, psym_print_stats)
14178 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14179 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14180 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14181 (psym_find_compunit_symtab_by_address)
14182 (maintenance_print_psymbols, maintenance_info_psymtabs)
14183 (maintenance_check_psymtabs): Use ranged for.
14184 * psymtab.h (class objfile_psymtabs): New.
14185 (require_partial_symbols): Return objfile_psymtabs.
14186 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14187
14188 2019-01-09 Tom Tromey <tom@tromey.com>
14189
14190 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14191 (find_pc_mapped_section, list_overlays_command)
14192 (map_overlay_command, unmap_overlay_command)
14193 (simple_overlay_update): Use all_objfiles.
14194 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14195 * printcmd.c (info_symbol_command): Use all_objfiles.
14196 * objfiles.h (ALL_OBJSECTIONS): Remove.
14197 * maint.c (maintenance_translate_address): Use all_objfiles.
14198 * gcore.c (gcore_create_callback): Use all_objfiles.
14199 (objfile_find_memory_regions): Likewise.
14200
14201 2019-01-09 Tom Tromey <tom@tromey.com>
14202
14203 * symtab.c (find_line_symtab, info_sources_command)
14204 (make_source_files_completion_list): Use objfile_compunits.
14205 * source.c (select_source_symtab): Use objfile_compunits.
14206 * objfiles.h (struct objfile): Update comment.
14207 (ALL_OBJFILES): Remove.
14208 (ALL_FILETABS): Remove.
14209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14210 objfile_compunits.
14211
14212 2019-01-09 Tom Tromey <tom@tromey.com>
14213
14214 * symmisc.c (print_objfile_statistics, dump_objfile)
14215 (maintenance_print_symbols): Use compunit_filetabs.
14216 * source.c (forget_cached_source_info_for_objfile): Use
14217 compunit_filetabs.
14218 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14219 (ALL_FILETABS): Use compunit_filetabs.
14220 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14221 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14222
14223 2019-01-09 Tom Tromey <tom@tromey.com>
14224
14225 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14226 (compunit_filetabs): New.
14227 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14228 compunit_filetabs.
14229 (info_sources_command, make_source_files_completion_list): Remove
14230 declaration.
14231 * symmisc.c (print_objfile_statistics, dump_objfile)
14232 (maintenance_print_symbols): Remove declaration.
14233 (maintenance_info_symtabs): Use compunit_filetabs.
14234 (maintenance_info_line_tables): Likewise.
14235 * source.c (select_source_symtab): Change local variable name.
14236 (forget_cached_source_info_for_objfile): Remove declaration.
14237 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14238 * objfiles.c (objfile_relocate1): Remove declaration.
14239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14240 declaration.
14241 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14242 * coffread.c (coff_symtab_read): Remove declaration.
14243 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14244 compunit_filetabs.
14245
14246 2019-01-09 Tom Tromey <tom@tromey.com>
14247
14248 * symtab.c (lookup_objfile_from_block)
14249 (find_pc_sect_compunit_symtab, search_symbols)
14250 (default_collect_symbol_completion_matches_break_on): Use
14251 objfile_compunits.
14252 * objfiles.h (ALL_COMPUNITS): Remove.
14253 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14254 * cp-support.c (add_symbol_overload_list_qualified): Use
14255 objfile_compunits.
14256 * ada-lang.c (ada_collect_symbol_completion_matches)
14257 (ada_add_global_exceptions): Use objfile_compunits.
14258
14259 2019-01-09 Tom Tromey <tom@tromey.com>
14260
14261 * source.c (select_source_symtab)
14262 (forget_cached_source_info_for_objfile): Remove declaration.
14263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14264 declaration.
14265 * maint.c (count_symtabs_and_blocks): Remove declaration.
14266 * cp-support.c (add_symbol_overload_list_qualified): Remove
14267 declaration.
14268 * coffread.c (coff_symtab_read): Remove declaration.
14269 * symtab.c (lookup_symbol_in_objfile_symtabs)
14270 (basic_lookup_transparent_type_1): Use objfile_compunits.
14271 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14272 (info_sources_command, search_symbols)
14273 (default_collect_symbol_completion_matches_break_on)
14274 (make_source_files_completion_list): Remove declaration.
14275 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14276 (ada_collect_symbol_completion_matches)
14277 (ada_add_global_exceptions): Remove declaration.
14278 * linespec.c (iterate_over_all_matching_symtabs): Use
14279 objfile_compunits.
14280 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14281 (class objfile_compunits): New.
14282 (ALL_COMPUNITS): Use objfile_compunits.
14283 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14284 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14285 objfile_compunits.
14286 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14287
14288 2019-01-09 Tom Tromey <tom@tromey.com>
14289
14290 * symtab.c (search_symbols)
14291 (default_collect_symbol_completion_matches_break_on): Use
14292 objfile_msymbols.
14293 * ada-lang.c (ada_lookup_simple_minsym)
14294 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14295 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14296 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14297 objfile_msymbols.
14298 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14299 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14300 * objc-lang.c (find_methods): Use objfile_msymbols.
14301 (info_selectors_command, info_classes_command): Likewise.
14302 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14303 * objfiles.h (class objfile_msymbols): New.
14304 (ALL_OBJFILE_MSYMBOLS): Remove.
14305 (ALL_MSYMBOLS): Remove.
14306
14307 2019-01-09 Tom Tromey <tom@tromey.com>
14308
14309 * common/next-iterator.h (next_adapter): Add Iterator template
14310 parameter.
14311 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14312 (class all_objfiles_safe): New.
14313 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14314 * objfiles.c (put_objfile_before): Update comment.
14315 (add_separate_debug_objfile): Likewise.
14316 (free_all_objfiles): Use all_objfiles_safe.
14317 (objfile_purge_solibs): Likewise.
14318
14319 2019-01-09 Tom Tromey <tom@tromey.com>
14320
14321 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14322 (expand_symtab_containing_pc, lookup_static_symbol)
14323 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14324 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14325 all_objfiles.
14326 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14327 * breakpoint.c (create_overlay_event_breakpoint)
14328 (create_longjmp_master_breakpoint)
14329 (create_std_terminate_master_breakpoint)
14330 (create_exception_master_breakpoint): Use all_objfiles.
14331 * linux-thread-db.c (try_thread_db_load_from_pdir)
14332 (has_libpthread): Use all_objfiles.
14333 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14334 * linespec.c (iterate_over_all_matching_symtabs)
14335 (search_minsyms_for_name): Use all_objfiles.
14336 * maint.c (maintenance_info_sections): Use all_objfiles.
14337 * main.c (captured_main_1): Use all_objfiles.
14338 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14339 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14340 * guile/scm-pretty-print.c
14341 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14342 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14343 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14344 (maintenance_print_msymbols): Use all_objfiles.
14345 * source.c (select_source_symtab): Use all_objfiles.
14346 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14347 * symfile.c (remove_symbol_file_command)
14348 (expand_symtabs_matching, map_symbol_filenames): Use
14349 all_objfiles.
14350 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14351 all_objfiles.
14352 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14353 * objc-lang.c (find_methods): Use all_objfiles.
14354 * objfiles.c (have_partial_symbols, have_full_symbols)
14355 (have_minimal_symbols, qsort_cmp)
14356 (default_iterate_over_objfiles_in_search_order): Use
14357 all_objfiles.
14358 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14359 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14360 (maintenance_check_psymtabs): Use all_objfiles.
14361 (ALL_PSYMTABS): Remove.
14362 * compile/compile-object-run.c (do_module_cleanup): Use
14363 all_objfiles.
14364 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14365 * cp-support.c (add_symbol_overload_list_qualified): Use
14366 all_objfiles.
14367 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14368 Use all_objfiles.
14369 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14370 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14371 all_objfiles.
14372 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14373 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14374 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14375 Uses all_objfiles.
14376 * solib.c (solib_read_symbols): Use all_objfiles
14377
14378 2019-01-09 Tom Tromey <tom@tromey.com>
14379
14380 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14381 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14382 all_objfiles.
14383 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14384 * symmisc.c (print_symbol_bcache_statistics)
14385 (print_objfile_statistics, maintenance_print_objfiles)
14386 (maintenance_info_symtabs, maintenance_check_symtabs)
14387 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14388 all_objfiles.
14389 * source.c (forget_cached_source_info): Use all_objfiles.
14390 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14391 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14392 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14393 * objfiles.c (update_section_map): Use all_objfiles.
14394 (shared_objfile_contains_address_p): Likewise.
14395 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14396 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14397
14398 2019-01-09 Tom Tromey <tom@tromey.com>
14399
14400 * common/next-iterator.h: New file.
14401 * objfiles.h (class all_objfiles): New.
14402 (struct objfile_iterator): New.
14403
14404 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14405
14406 * NEWS: Move the description of the changed "frame", "select-frame",
14407 and "info frame" commands to the Changed commands section.
14408
14409 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14410
14411 * gdbtypes.c (check_stub_method_group): Remove handling of old
14412 mangling schemes.
14413 * linespec.c (find_methods): Likewise.
14414 * stabsread.c (read_member_functions): Likewise.
14415 * valops.c (search_struct_method): Likewise.
14416 (value_struct_elt_for_reference): Likewise.
14417 * NEWS: Mention this change.
14418
14419 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14420
14421 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14422 print_source_lines.
14423 * source.c (print_source_lines_base): Update line number check.
14424 (print_source_lines): New function.
14425 (source_lines_range::source_lines_range): New function.
14426 * source.h (class source_lines_range): New class.
14427 (print_source_lines): New declaration.
14428
14429 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14430
14431 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14432
14433 2019-01-08 Tom Tromey <tom@tromey.com>
14434 Simon Marchi <simon.marchi@ericsson.com>
14435
14436 PR gdb/24060
14437 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14438 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14439 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14440 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14441 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14442 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14443
14444 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14445
14446 * source.c (select_source_symtab): Move header comment to
14447 declaration in source.h.
14448 (forget_cached_source_info_for_objfile): Likewise.
14449 (forget_cached_source_info): Likewise.
14450 (identify_source_line): Likewise.
14451 * source.h (identify_source_line): Move declaration from symtab.h
14452 and add comment from source.c
14453 (print_source_lines): Likewise.
14454 (forget_cached_source_info_for_objfile): Likewise.
14455 (forget_cached_source_info): Likewise.
14456 (select_source_symtab): Likewise.
14457 (enum print_source_lines_flag): Move definition from symtab.h.
14458 * symtab.h (identify_source_line): Move declaration to source.h.
14459 (print_source_lines): Likewise.
14460 (forget_cached_source_info_for_objfile): Likewise.
14461 (forget_cached_source_info): Likewise.
14462 (select_source_symtab): Likewise.
14463 (enum print_source_lines_flag): Move definition to source.h.
14464 * tui/tui-hooks.c: Add 'source.h' include.
14465
14466 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14467
14468 * source.c (print_source_lines_base): Handle requests to print
14469 reverse line number sequences, and guard against empty lines
14470 string.
14471
14472 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14473
14474 * source.c (print_source_lines_base): Fix skip of '\r' if next
14475 character is '\n'.
14476
14477 2019-01-06 Tom Tromey <tom@tromey.com>
14478
14479 * c-exp.y (struct c_parse_state) <macro_original_text,
14480 expansion_obstack>: New member.
14481 (macro_original_text, expansion_obstack): Remove globals.
14482 (scan_macro_expansion, scanning_macro_expansion)
14483 (finished_macro_expansion): Update.
14484 (scan_macro_cleanup): Remove.
14485 (yylex, c_parse): Update.
14486
14487 2019-01-06 Tom Tromey <tom@tromey.com>
14488
14489 * c-exp.y (struct c_parse_state) <strings>: New member.
14490 (operator_stoken): Update.
14491
14492 2019-01-06 Tom Tromey <tom@tromey.com>
14493
14494 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14495 (union type_stack_elt) <typelist_val>: Now a pointer to
14496 std::vector.
14497 (type_stack_cleanup): Don't declare.
14498 (push_typelist): Update.
14499 * parse.c (pop_typelist): Return a std::vector.
14500 (push_typelist): Take a std::vector.
14501 (follow_types): Update. Do not free args.
14502 (type_stack_cleanup): Remove.
14503 * c-exp.y (struct c_parse_state): New.
14504 (cpstate): New global.
14505 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14506 (nonempty_typelist): Update.
14507 (func_mod): Create a new vector.
14508 (c_parse): Create a c_parse_state.
14509 (check_parameter_typelist): Do not delete params.
14510 (function_method): Update. Do not delete type_list.
14511
14512 2019-01-06 Tom Tromey <tom@tromey.com>
14513
14514 PR gdb/28155:
14515 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14516 check_typedef.
14517 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14518 (print_return_value): Likewise.
14519
14520 2019-01-05 Tom Tromey <tom@tromey.com>
14521
14522 * contrib/cleanup_check.py: Remove.
14523 * contrib/gcc-with-excheck: Remove.
14524 * contrib/exsummary.py: Remove.
14525 * contrib/excheck.py: Remove.
14526
14527 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14528
14529 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14530 NULL. Initialize tpprev to NULL instead of assigning it
14531 to NULL on the next statement.
14532 * windows-nat.c (windows_delete_thread): Remove check for
14533 main_thread_id before printing thread exit notifications.
14534 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14535 Remove thread ID check against main_thread_id.
14536 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14537 windows_delete_thread.
14538 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14539
14540 2019-01-04 Tom Tromey <tom@tromey.com>
14541
14542 * compile/compile.c (_initialize_compile): Use upper case for
14543 metasyntactic variables.
14544 * symmisc.c (_initialize_symmisc): Use upper case for
14545 metasyntactic variables.
14546 * psymtab.c (_initialize_psymtab): Use upper case for
14547 metasyntactic variables.
14548 * demangle.c (demangle_command): Use upper case for metasyntactic
14549 variables.
14550 (_initialize_demangler): Likewise.
14551 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14552 variables.
14553
14554 2019-01-03 Tom Tromey <tom@tromey.com>
14555
14556 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14557
14558 2019-01-03 Tom Tromey <tom@tromey.com>
14559
14560 * python/py-symtab.c (salpy_str): Update.
14561 (struct salpy_sal_object) <symtab>: Now a PyObject.
14562 (salpy_dealloc): Update.
14563 (del_objfile_sal): Use gdbpy_ref.
14564
14565 2019-01-03 Tom Tromey <tom@tromey.com>
14566
14567 * python/py-type.c (convert_field): Use new_reference. Return
14568 gdbpy_ref.
14569 (make_fielditem): Return gdbpy_ref.
14570 (typy_fields): Update.
14571 (typy_getitem): Update.
14572 (field_name): Return gdbpy_ref. Use new_reference.
14573 (typy_iterator_iternext): Update.
14574
14575 2019-01-03 Tom Tromey <tom@tromey.com>
14576
14577 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14578
14579 2019-01-03 Tom Tromey <tom@tromey.com>
14580
14581 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14582 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14583 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14584 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14585 (pspy_set_type_printers): Likewise.
14586 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14587 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14588 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14589 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14590 (objfpy_set_type_printers): Likewise.
14591
14592 2019-01-03 Tom Tromey <tom@tromey.com>
14593
14594 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14595 (gdbpy_print_stack): Use gdbpy_err_fetch.
14596 * python/python-internal.h (class gdbpy_err_fetch): New class.
14597 (class gdbpy_enter) <m_error_type, m_error_value,
14598 m_error_traceback>: Remove.
14599 <m_error>: New member.
14600 (gdbpy_exception_to_string): Don't declare.
14601 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14602 * python/py-value.c (convert_value_from_python): Use
14603 gdbpy_err_fetch.
14604 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14605 gdbpy_exception_to_string.
14606 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14607 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14608 gdbpy_err_fetch.
14609
14610 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14611
14612 * linux-nat.c (delete_lwp_cleanup): Delete.
14613 (struct lwp_deleter): New struct.
14614 (lwp_info_up): New typedef.
14615 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14616 lwp_info_up.
14617
14618 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14619
14620 * linux-fork.c (class scoped_switch_fork_info): New class.
14621 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14622
14623 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14624
14625 * valops.c (find_overload_match): Remove use of null_cleanup, and
14626 calls to do_cleanups.
14627
14628 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14629
14630 * compile/compile-cplus-types.c
14631 (compile_cplus_instance::decl_name): Handle changes to
14632 cp_func_name.
14633 * cp-support.c (cp_func_name): Update header comment, update
14634 return type.
14635 * cp-support.h (cp_func_name): Update return type in declaration.
14636 * valops.c (find_overload_match): Move temp_func local to top
14637 level of function and change its type. Use temp_func to hold and
14638 delete temporary string obtained from cp_func_name.
14639
14640 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14641
14642 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14643 gdb::char_vector, remove cleanup, and update uses of `msg`.
14644
14645 2019-01-03 Jim Wilson <jimw@sifive.com>
14646
14647 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14648
14649 2019-01-02 Tom Tromey <tom@tromey.com>
14650
14651 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14652 (tdesc_parse_xml): Remove cleanups.
14653 * target-descriptions.h (make_cleanup_free_target_description):
14654 Don't declare.
14655 (target_desc_deleter): New struct.
14656 (target_desc_up): New typedef.
14657 * target-descriptions.c (target_desc_deleter::operator()): Rename
14658 from free_target_description.
14659 (make_cleanup_free_target_description): Remove.
14660
14661 2019-01-02 Tom Tromey <tom@tromey.com>
14662
14663 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14664 constructor, destructor.
14665 (linespec_parser): Remove typedef.
14666 (~linespec_parser): Rename from linespec_parser_delete.
14667 (linespec_lex_to_end, linespec_complete_label)
14668 (linespec_complete): Update.
14669 (decode_line_full): Remove cleanups.
14670 (decode_line_1): Update.
14671
14672 2019-01-02 Tom Tromey <tom@tromey.com>
14673
14674 * python/python-internal.h (inferior_to_inferior_object): Change
14675 return type.
14676 * python/py-exitedevent.c (create_exited_event_object): Update.
14677 * python/py-inferior.c (inferior_to_inferior_object): Return
14678 gdbpy_ref.
14679 (python_new_inferior, python_inferior_deleted)
14680 (thread_to_thread_object, delete_thread_object)
14681 (build_inferior_list, gdbpy_selected_inferior): Update.
14682 * python/py-infthread.c (create_thread_object): Update. Also fail
14683 if inferior_to_inferior_object fails.
14684
14685 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14686
14687 * inferior.h (class inferior) <displaced_step_state>: New field.
14688 * infrun.h (struct displaced_step_state): Move here from
14689 infrun.c. Initialize fields, add constructor.
14690 <inf>: Remove field.
14691 <reset>: New method.
14692 * infrun.c (struct displaced_step_inferior_state): Move to
14693 infrun.h.
14694 (displaced_step_inferior_states): Remove.
14695 (get_displaced_stepping_state): Adust.
14696 (displaced_step_in_progress_any_inferior): Adjust.
14697 (displaced_step_in_progress_thread): Adjust.
14698 (displaced_step_in_progress): Adjust.
14699 (add_displaced_stepping_state): Remove.
14700 (get_displaced_step_closure_by_addr): Adjust.
14701 (remove_displaced_stepping_state): Remove.
14702 (infrun_inferior_exit): Call displaced_step_state.reset.
14703 (use_displaced_stepping): Don't check for NULL.
14704 (displaced_step_prepare_throw): Call
14705 get_displaced_stepping_state.
14706 (displaced_step_fixup): Don't check for NULL.
14707 (prepare_for_detach): Don't check for NULL.
14708
14709 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14710
14711 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14712 in case of call that did not complete.
14713
14714 2019-01-02 Andrey Utkin <autkin@undo.io>
14715
14716 * symfile.c (find_separate_debug_file): Fix search of debug files for
14717 remote debuggee.
14718
14719 2019-01-02 Tom Tromey <tom@tromey.com>
14720
14721 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14722 indentation.
14723 * python/py-frame.c (frapy_older): Remove cast.
14724 (frapy_newer): Likewise.
14725 * python/py-breakpoint.c (local_setattro): Remove cast.
14726 * python/py-arch.c (archpy_name): Remove local variable.
14727 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14728
14729 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14730
14731 * unittests/basic_string_view/element_access/char/empty.cc:
14732 Fix year range in copyright header.
14733
14734 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14735
14736 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14737 Delete.
14738 <operator==>: Update with for removed field.
14739 <hash>: Likewise.
14740 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14741 <isa_features>: ...this.
14742 <abi_features>: New field.
14743 (riscv_isa_flen): Update comment.
14744 (riscv_abi_xlen): New declaration.
14745 (riscv_abi_flen): New declaration.
14746 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14747 isa_features.
14748 (riscv_abi_xlen): New function.
14749 (riscv_isa_flen): Update to get answer from isa_features.
14750 (riscv_abi_flen): New function.
14751 (riscv_has_fp_abi): Update to get answer from abi_features.
14752 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14753 xlen and flen.
14754 (riscv_call_info) <xlen, flen>: Update comment.
14755 (riscv_call_arg_struct): Remove invalid assertions
14756 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14757 is removed.
14758 (riscv_gdbarch_init): Gather isa features and abi features
14759 separately, ensure both match on the gdbarch when reusing an old
14760 gdbarch. Relax an error check to allow 32-bit abi float to run on
14761 a target with 64-bit float hardware.
14762
14763 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14764
14765 * source.c (search_command_helper): Stop reverse search
14766 when line 1 has been searched.
14767
14768 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14769
14770 * record-full.c (record_full_base_target::close): Rewrite
14771 record_full_core_buf_list free logic.
14772
14773 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14774
14775 * break-catch-syscall.c (print_one_catch_syscall): xfree
14776 the last text.
14777
14778 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14779
14780 * top.c (print_gdb_version): Update Copyright year in version
14781 message.
14782
14783 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14784
14785 Update copyright year range in all GDB files.
14786
14787 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14788
14789 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14790
14791 For older changes see ChangeLog-2018.
14792 \f
14793 Local Variables:
14794 mode: change-log
14795 left-margin: 8
14796 fill-column: 74
14797 version-control: never
14798 coding: utf-8
14799 End:
14800
This page took 0.310113 seconds and 3 git commands to generate.