Fix ARI warning in symtab.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2
3 * symtab.h (gdb_static_assert): Put && operator at the beginning
4 of the line instead of the end.
5
6 2019-11-04 Christian Biesinger <cbiesinger@google.com>
7
8 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
9 and sizeof (symbol).
10 * symtab.h: Add a static_assert for sizeof (partial_symbol).
11
12 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13
14 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
15 * configure.host: Mark *-*-solaris2.10* obsolete.
16 * configure.tgt: Mark Solaris < 11 obsolete.
17 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
18 Update target triplet.
19
20 2019-11-01 Tom Tromey <tromey@adacore.com>
21
22 * utils.c (print_sys_errmsg): Simplify.
23
24 2019-11-01 Tom Tromey <tromey@adacore.com>
25
26 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
27
28 2019-11-01 Christian Biesinger <cbiesinger@google.com>
29
30 * configure: Regenerate.
31 * configure.ac: Remove check for strerror_r.
32 * gdbsupport/common.m4: Check for strerror_r.
33
34 2019-11-01 Luis Machado <luis.machado@linaro.org>
35
36 PR gdb/25124
37
38 * arm-tdep.c (arm_per_objfile): Rename to ...
39 (arm_per_bfd): ... this.
40 (arm_objfile_data_key): Rename to ...
41 (arm_bfd_data_key): ... this.
42 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
43 data.
44 (arm_record_special_symbol): Likewise.
45
46 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
49 end.
50 * c-typeprint.c (c_print_typedef): Likewise.
51 * f-typeprint.c (f_print_typedef): Likewise.
52 * m2-typeprint.c (m2_print_typedef): Likewise.
53 * p-typeprint.c (pascal_print_typedef): Likewise.
54 * rust-lang.c (rust_print_typedef): Likewise.
55 * symtab.c (print_symbol_info): Print a newline after calling
56 typedef_print.
57
58 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * symtab.c (info_module_cmdlist): New variable.
61 (info_module_command): New function.
62 (search_module_symbols): New function.
63 (info_module_subcommand): New function.
64 (struct info_modules_var_func_options): New struct.
65 (info_modules_var_func_options_defs): New variable.
66 (make_info_modules_var_func_options_def_group): New function.
67 (info_module_functions_command): New function.
68 (info_module_variables_command): New function.
69 (info_module_var_func_command_completer): New function.
70 (_initialize_symtab): Register new 'info module functions' and
71 'info module variables' commands.
72 * symtab.h (typedef symbol_search_in_module): New typedef.
73 (search_module_symbols): Declare new function.
74 * NEWS: Mention new commands.
75
76 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
79 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
80 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
81 MODULES_DOMAIN.
82 (scan_partial_symbols): Only create partial module symbols for non
83 declarations.
84 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
85 and MODULES_DOMAIN.
86 * symtab.c (search_domain_name): Likewise.
87 (search_symbols): Likewise.
88 (print_symbol_info): Likewise.
89 (symtab_symbol_info): Likewise.
90 (info_modules_command): New function.
91 (_initialize_symtab): Register 'info modules' command.
92 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
93 * NEWS: Mention new 'info modules' command.
94
95 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96
97 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
98 and $_gdb_maint_setting_str.
99
100 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
101
102 * cli/cli-cmds.c (setting_cmd, value_from_setting)
103 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
104 (str_value_from_setting, gdb_setting_str_internal_fn)
105 (gdb_maint_setting_str_internal_fn): New functions.
106 (_initialize_cli_cmds): Define the new convenience functions.
107 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
108 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
109
110 2019-10-31 Christian Biesinger <cbiesinger@google.com>
111
112 * agent.c (set_can_use_agent): When the setting is turned on,
113 look up agent symbols if we don't have them yet.
114 (agent_new_objfile): Don't look up agent symbols when the agent
115 setting is off.
116
117 2019-10-31 Christian Biesinger <cbiesinger@google.com>
118
119 * config.in: Regenerate.
120
121 2019-10-31 Christian Biesinger <cbiesinger@google.com>
122
123 * configure: Regenerate.
124 * configure.ac: Check for strerror_r.
125 * gdbsupport/common-utils.h (safe_strerror): Change return value
126 to const char * and document that this function is now threadsafe.
127 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
128 thread_local and call strerror_r, if available.
129 * utils.c (perror_string): Update.
130 (print_sys_errmsg): Update.
131
132 2019-10-31 Luis Machado <luis.machado@linaro.org>
133
134 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
135 objfile_key.
136 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
137 objfile to fetch per-bfd data.
138 (arm_find_exidx_entry): Likewise.
139
140 2019-10-31 Christian Biesinger <cbiesinger@google.com>
141
142 * gdbsupport/agent.c (debug_agent): Change type to bool.
143 (use_agent): Likewise.
144 (all_agent_symbols_look_up): Likewise.
145 (agent_loaded_p): Change return value to bool.
146 (agent_look_up_symbols): Update.
147 (agent_capability_check): Change return value to bool.
148 * gdbsupport/agent.h (agent_loaded_p): Likewise.
149 (debug_agent): Change type to bool.
150 (use_agent): Likewise.
151 (agent_capability_check): Change return value to bool.
152
153 2019-10-30 Christian Biesinger <cbiesinger@google.com>
154
155 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
156 (build_minimal_symbol_hash_tables): Code to clear the table moved
157 to clear_minimal_symbol_hash_tables.
158 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
159 when needed.
160
161 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * infcmd.c: Remove includes.
164 * infrun.c: Remove includes.
165
166 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
167
168 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
169 (grow_vect): Remove declaration.
170 (ada_type_of_array): Remove declaration.
171 (ada_update_initial_language): Remove declaration.
172 (ada_fold_name): Remove declaration.
173 (ada_fill_in_ada_prototype): Remove declaration.
174 (user_select_syms): Remove declaration.
175 (get_selections): Remove declaration.
176 (ada_tag_type): Remove declaration.
177 (ada_value_tag): Remove declaration.
178 (ada_is_others_clause): Remove declaration.
179 (ada_in_variant): Remove declaration.
180 (ada_value_struct_elt): Remove declaration.
181 (ada_attribute_name): Remove declaration.
182 (ada_system_address_type): Remove declaration.
183 * ada-lang.c (ada_watch_location_expression): Make static.
184 (GROW_VECT): Move here from ada-lang.h.
185 (grow_vect): Make static.
186 (ada_update_initial_language): Make static.
187 (ada_fold_name): Make static.
188 (ada_type_of_array): Make static.
189 (encoded_ordered_before): Move up.
190 (sort_choices): Move up.
191 (print_signatures): Move up.
192 (ada_print_symbol_signature): Move up.
193 (get_selections): Move up and make static.
194 (user_select_syms): Move up and make static.
195 (ada_value_struct_elt): Move up and make static.
196 (ada_tag_type): Make static.
197 (ada_value_tag): Make static.
198 (ada_is_others_clause): Make static.
199 (ada_in_variant): Make static.
200 (ada_attribute_name): Make static.
201
202 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
203
204 * ada-lang.c: Remove includes.
205 * ada-typeprint.c: Remove includes.
206 * ada-valprint.c: Remove includes.
207
208 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
209
210 * addrmap.c: Add static assertions of type size, moved from
211 _initialize_addrmap.
212 (_initialize_addrmap): Remove.
213
214 2019-10-29 Christian Biesinger <cbiesinger@google.com>
215
216 * coffread.c (record_minimal_symbol): Update.
217 (process_coff_symbol): Update.
218 * dbxread.c (read_dbx_symtab): Update.
219 * dwarf2read.c (add_partial_symbol): Update.
220 (fixup_go_packaging): Update.
221 (load_partial_dies): Update.
222 (new_symbol): Update.
223 * elfread.c (record_minimal_symbol): Change signature to use
224 gdb::string_view instead of name+len.
225 (elf_symtab_read): Update.
226 (elf_rel_plt_read): Update.
227 * mdebugread.c (parse_partial_symbols): Update.
228 (handle_psymbol_enumerators): Update.
229 (new_symbol): Update.
230 * minsyms.c (minimal_symbol_reader::record_full): Change signature
231 to use gdb::string_view instead of name+len.
232 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
233 * psympriv.h (add_psymbol_to_list): Likewise.
234 * psymtab.c (add_psymbol_to_bcache): Likewise.
235 (add_psymbol_to_list): Likewise.
236 * stabsread.c (define_symbol): Update.
237 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
238 * symtab.h (SYMBOL_SET_NAMES): Likewise.
239 (symbol_set_names): Likewise.
240 * xcoffread.c (scan_xcoff_symtab): Update.
241
242 2019-10-29 Christian Biesinger <cbiesinger@google.com>
243
244 * symtab.h (symbol_set_names): Document that copy_name must be
245 set to true for non-nullterminated strings.
246 * symtab.c (symbol_set_names): Only make a nullterminated copy of
247 linkage_name if the entry was not found and we need to demangle.
248
249 2019-10-29 Christian Biesinger <cbiesinger@google.com>
250
251 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
252 * dwarf2-frame.c (bsearch_fde_cmp): Update.
253 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
254 * gdbsupport/gdb_binary_search.h: New file.
255
256 2019-10-29 Christian Biesinger <cbiesinger@google.com>
257
258 * NEWS: Mention new --with-system-gdbinit-dir option.
259 * config.in: Regenerate.
260 * configure: Regenerate.
261 * configure.ac: Add new option --with-system-gdbinit-dir.
262 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
263 for a ".gdb" suffix.
264 * main.c (get_init_files): Change system_gdbinit argument to
265 a vector and return the files in SYSTEM_GDBINIT_DIR in
266 addition to SYSTEM_GDBINIT.
267 (captured_main_1): Update.
268 (print_gdb_help): Update.
269 * top.c (print_gdb_configuration): Also print the value of
270 SYSTEM_GDBINIT_DIR.
271
272 2019-10-28 Christian Biesinger <cbiesinger@google.com>
273
274 * gdbsupport/common-utils.h (startswith): Add an overloaded version
275 that takes gdb::string_view arguments.
276
277 2019-10-26 Tom de Vries <tdevries@suse.de>
278
279 * aarch64-linux-tdep.c: Fix typos in comments.
280 * aarch64-tdep.c: Same.
281 * ada-lang.c: Same.
282 * amd64-nat.c: Same.
283 * arc-tdep.c: Same.
284 * arch/aarch64-insn.c: Same.
285 * block.c: Same.
286 * breakpoint.h: Same.
287 * btrace.h: Same.
288 * c-varobj.c: Same.
289 * cli/cli-decode.c: Same.
290 * cli/cli-script.c: Same.
291 * cli/cli-utils.h: Same.
292 * coff-pe-read.c: Same.
293 * coffread.c: Same.
294 * compile/compile-cplus-symbols.c: Same.
295 * compile/compile-object-run.c: Same.
296 * completer.c: Same.
297 * corelow.c: Same.
298 * cp-support.c: Same.
299 * demangle.c: Same.
300 * dwarf-index-write.c: Same.
301 * dwarf2-frame.c: Same.
302 * dwarf2-frame.h: Same.
303 * eval.c: Same.
304 * frame-base.h: Same.
305 * frame.h: Same.
306 * gdbcmd.h: Same.
307 * gdbtypes.h: Same.
308 * gnu-nat.c: Same.
309 * guile/scm-objfile.c: Same.
310 * i386-tdep.c: Same.
311 * i386-tdep.h: Same.
312 * infcall.c: Same.
313 * infcall.h: Same.
314 * linux-nat.c: Same.
315 * m68k-tdep.c: Same.
316 * macroexp.c: Same.
317 * memattr.c: Same.
318 * mi/mi-cmd-disas.c: Same.
319 * mi/mi-getopt.h: Same.
320 * mi/mi-main.c: Same.
321 * minsyms.c: Same.
322 * nat/aarch64-sve-linux-sigcontext.h: Same.
323 * objfiles.h: Same.
324 * ppc-linux-nat.c: Same.
325 * ppc-linux-tdep.c: Same.
326 * ppc-tdep.h: Same.
327 * progspace.h: Same.
328 * prologue-value.h: Same.
329 * python/py-evtregistry.c: Same.
330 * python/py-instruction.h: Same.
331 * record-btrace.c: Same.
332 * record-full.c: Same.
333 * remote.c: Same.
334 * rs6000-tdep.c: Same.
335 * ser-tcp.c: Same.
336 * sol-thread.c: Same.
337 * sparc-sol2-tdep.c: Same.
338 * sparc64-tdep.c: Same.
339 * stabsread.c: Same.
340 * symfile.c: Same.
341 * symtab.h: Same.
342 * target.c: Same.
343 * tracepoint.c: Same.
344 * tui/tui-data.h: Same.
345 * tui/tui-io.c: Same.
346 * tui/tui-win.c: Same.
347 * tui/tui.c: Same.
348 * unittests/rsp-low-selftests.c: Same.
349 * user-regs.h: Same.
350 * utils.c: Same.
351 * utils.h: Same.
352 * valarith.c: Same.
353 * valops.c: Same.
354 * valprint.c: Same.
355 * valprint.h: Same.
356 * value.c: Same.
357 * value.h: Same.
358 * varobj.c: Same.
359 * x86-nat.h: Same.
360 * xtensa-tdep.c: Same.
361
362 2019-10-25 Ali Tamur <tamur@google.com>
363
364 * charset.c (find_charset_names): Reflect API change.
365
366 2019-10-25 Christian Biesinger <cbiesinger@google.com>
367
368 * symtab.c (struct demangled_name_entry): Change demangled name
369 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
370 part of the struct anymore.
371 (symbol_set_names): No longer obstack allocate + copy the demangled
372 name, just store the allocated name from bfd.
373
374 2019-10-25 Tom Tromey <tromey@adacore.com>
375
376 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
377 (bsearch_cie_cmp, add_cie): Remove.
378 (find_cie): Reimplement.
379 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
380 (dwarf2_build_frame_info): Update.
381
382 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR gdb/25126
385 * symfile.c (reread_symbols): Call forget_cached_source_info to
386 clear the stale source cache.
387
388 2019-10-24 Christian Biesinger <cbiesinger@google.com>
389
390 * configure: Regenerate.
391 * configure.ac: Remove code that sets python_has_threads.
392
393 2019-10-24 Christian Biesinger <cbiesinger@google.com>
394
395 * config.in: Regenerate.
396 * configure: Regenerate.
397 * configure.ac: Remove the code that uses sed to get the python
398 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
399
400 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
401
402 * python/py-progspace.c (pspy_block_for_pc): Return None for all
403 error paths.
404
405 2019-10-23 Tom Tromey <tom@tromey.com>
406
407 * arc-tdep.c: Remove ".." from include.
408 * frv-tdep.c: Remove ".." from include.
409 * lm32-tdep.c: Remove ".." from include.
410 * microblaze-tdep.c: Remove ".." from include.
411 * or1k-tdep.h: Remove ".." from include.
412 * s12z-tdep.c: Remove ".." from include.
413 * Makefile.in (OPCODES_CFLAGS): Add comment.
414 (TOP_CFLAGS): New variable.
415 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
416
417 2019-10-23 Tom Tromey <tom@tromey.com>
418
419 * Makefile.in (READLINE_DIR): Update.
420
421 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422
423 * infcall.c (call_function_by_hand_dummy): Fix the function
424 comment. And extract out a code section into...
425 (reserve_stack_space): ...this new function.
426
427 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
428
429 * infcall.c (value_arg_coerce): Remove an unused parameter.
430 (call_function_by_hand_dummy): Update the call to
431 'value_arg_coerce'.
432
433 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
434
435 * infcall.c (call_function_by_hand_dummy): Refactor.
436
437 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
438
439 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
440
441 2019-10-23 Tom Tromey <tom@tromey.com>
442
443 * configure: Rebuild.
444 * configure.ac: Don't check for sigprocmask.
445 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
446
447 2019-10-23 Tom Tromey <tom@tromey.com>
448
449 * configure: Rebuild.
450 * acinclude.m4: Use m4_include, not sinclude.
451
452 2019-10-23 Tom de Vries <tdevries@suse.de>
453
454 PR breakpoints/24687
455 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
456
457 2019-10-22 Christian Biesinger <cbiesinger@google.com>
458
459 * symtab.c (struct demangled_name_entry) <language>: Change from
460 bitfield to regular variable.
461
462 2019-10-22 Christian Biesinger <cbiesinger@google.com>
463
464 * symtab.c (struct demangled_name_entry): Add a constructor.
465 (free_demangled_name_entry): New function to call the destructor
466 for demangled_name_entry.
467 (create_demangled_names_hash): Pass free_demangled_name_entry to
468 htab_create_alloc.
469 (symbol_set_names): Call placement new for demangled_name_entry.
470 * utils.c: No longer include xxhash.h here, now that fast_hash
471 is inlined in the header.
472 * utils.h: Instead, include it here.
473
474 2019-10-22 Christian Biesinger <cbiesinger@google.com>
475
476 * Makefile.in: Link with libxxhash.
477 * config.in: Regenerate.
478 * configure: Regenerate.
479 * configure.ac: Search for libxxhash.
480 * utils.c (fast_hash): Use xxhash if present.
481
482 2019-10-22 Christian Biesinger <cbiesinger@google.com>
483
484 * utils.h (fast_hash): New function.
485 * symtab.c (hash_demangled_name_entry): Call new function
486 fast_hash.
487
488 2019-10-22 Christian Biesinger <cbiesinger@google.com>
489
490 * symtab.c (struct demangled_name_entry): Change type of mangled
491 to gdb::string_view. Also adds a constructor that takes the
492 mangled name.
493 (hash_demangled_name_entry): Update.
494 (eq_demangled_name_entry): Update.
495 (free_demangled_name_entry): New function to call the destructor
496 now that this is not a POD anymore.
497 (create_demangled_names_hash): Pass free_demangled_name_entry to
498 htab_create_alloc.
499 (symbol_set_names): Update.
500
501 2019-10-21 Ali Tamur <tamu@google.com>
502
503 * dwarf2read.c (dir_index): Change type.
504 (file_name_index): Likewise.
505 (line_header::include_dir_at): Change comment and implementation on
506 whether it is DWARF 5.
507 (line_header::is_valid_file_index): New function.
508 (line_header::file_name_at): Change comment and implementation on
509 whether it is DWARF 5.
510 (line_header::file_names): Change to private field renamed as
511 m_file_names and introduce a new accessor method.
512 (line_header::file_names_size): New method.
513 (line_header::include_dirs): Change to private field and rename as
514 m_include_dirs.
515 (dw2_get_file_names_reader): Define local var at a smaller scope and
516 reflect API change.
517 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
518 (process_structure_scope): Likewise.
519 (line_header::add_include_dir): Change message and reflect renaming.
520 (line_header::add_file_name): Likewise.
521 (read_formatted_entries): Handle DW_FORM_data16.
522 (dwarf_decode_line_header): Fix line header length calculation.
523 (psymtab_include_file_name): Change comment and API.
524 (lnp_state_machine::m_file): Update comment and reflect type change.
525 (lnp_state_machine::record_line): Reflect type change.
526 (dwarf_decode_lines): Reflect API change.
527 (file_file_name): Likewise.
528 (file_full_name): Likewise.
529
530 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
533
534 2019-10-21 Tom Tromey <tom@tromey.com>
535
536 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
537
538 2019-10-21 Tom Tromey <tom@tromey.com>
539
540 * configure.ac (nm.h): Conditionally create nm.h link. Subst
541 NM_H. Use AC_CONFIG_LINKS.
542 * configure: Rebuild.
543 * Makefile.in (NM_H): New variable.
544 (generated_files): Add NM_H. Remove gcore.
545 (nm.h, stamp-nmh): New targets.
546
547 2019-10-20 Tom Tromey <tom@tromey.com>
548
549 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
550 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
551 obsolete comment.
552 (put_objfile_before): Now static.
553
554 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * gdbsupport/common-utils.h (startswith): Change return type to
557 bool.
558
559 2019-10-19 Christian Biesinger <cbiesinger@google.com>
560
561 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
562 * breakpoint.c (bp_locations_compare): Rename to...
563 (bp_location_is_less_than): ...this, and change to std::sort semantics.
564 (update_global_location_list): Use std::sort instead of qsort.
565 * buildsym.c (compare_line_numbers): Rename to...
566 (lte_is_less_than): ...this, and change to std::sort semantics.
567 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
568 instead of qsort.
569 * disasm.c (compare_lines): Rename to...
570 (line_is_less_than): ...this, and change to std::sort semantics.
571 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
572 of qsort.
573 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
574 (fde_is_less_than): ...this, and change to std::sort semantics.
575 (dwarf2_build_frame_info): Call std::sort instead of qsort.
576 * mdebugread.c (compare_blocks):
577 (block_is_less_than): ...this, and change to std::sort semantics.
578 (sort_blocks): Call std::sort instead of qsort.
579 * objfiles.c (qsort_cmp): Rename to...
580 (sort_cmp): ...this, and change to std::sort semantics.
581 (update_section_map): Call std::sort instead of qsort.
582 * remote.c (compare_pnums): Remove.
583 (map_regcache_remote_table): Call std::sort instead of qsort.
584 * utils.c (compare_positive_ints): Remove.
585 * utils.h (compare_positive_ints): Remove.
586 * xcoffread.c (compare_lte): Remove.
587 (arrange_linetable): Call std::sort instead of qsort.
588
589 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
590
591 * symfile.c (init_entry_point_info): Fix typo.
592 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
593
594 2019-10-18 Tom de Vries <tdevries@suse.de>
595
596 * aarch64-tdep.c: Fix typos in comments.
597 * ada-lang.c: Same.
598 * ada-tasks.c: Same.
599 * alpha-tdep.c: Same.
600 * alpha-tdep.h: Same.
601 * amd64-nat.c: Same.
602 * amd64-windows-tdep.c: Same.
603 * arc-tdep.c: Same.
604 * arc-tdep.h: Same.
605 * arch-utils.c: Same.
606 * arm-nbsd-tdep.c: Same.
607 * arm-tdep.c: Same.
608 * ax-gdb.c: Same.
609 * blockframe.c: Same.
610 * btrace.c: Same.
611 * c-varobj.c: Same.
612 * coff-pe-read.c: Same.
613 * coffread.c: Same.
614 * cris-tdep.c: Same.
615 * darwin-nat.c: Same.
616 * dbxread.c: Same.
617 * dcache.c: Same.
618 * disasm.c: Same.
619 * dtrace-probe.c: Same.
620 * dwarf-index-write.c: Same.
621 * dwarf2-frame-tailcall.c: Same.
622 * dwarf2-frame.c: Same.
623 * dwarf2read.c: Same.
624 * eval.c: Same.
625 * exceptions.c: Same.
626 * fbsd-tdep.c: Same.
627 * findvar.c: Same.
628 * frame.c: Same.
629 * frv-tdep.c: Same.
630 * gnu-v3-abi.c: Same.
631 * go32-nat.c: Same.
632 * h8300-tdep.c: Same.
633 * hppa-tdep.c: Same.
634 * i386-linux-tdep.c: Same.
635 * i386-tdep.c: Same.
636 * ia64-libunwind-tdep.c: Same.
637 * ia64-tdep.c: Same.
638 * infcmd.c: Same.
639 * infrun.c: Same.
640 * linespec.c: Same.
641 * linux-nat.c: Same.
642 * linux-thread-db.c: Same.
643 * machoread.c: Same.
644 * mdebugread.c: Same.
645 * mep-tdep.c: Same.
646 * mn10300-tdep.c: Same.
647 * namespace.c: Same.
648 * objfiles.c: Same.
649 * opencl-lang.c: Same.
650 * or1k-tdep.c: Same.
651 * osabi.c: Same.
652 * ppc-linux-nat.c: Same.
653 * ppc-linux-tdep.c: Same.
654 * ppc-sysv-tdep.c: Same.
655 * printcmd.c: Same.
656 * procfs.c: Same.
657 * record-btrace.c: Same.
658 * record-full.c: Same.
659 * remote-fileio.c: Same.
660 * remote.c: Same.
661 * rs6000-tdep.c: Same.
662 * s12z-tdep.c: Same.
663 * score-tdep.c: Same.
664 * ser-base.c: Same.
665 * ser-go32.c: Same.
666 * skip.c: Same.
667 * sol-thread.c: Same.
668 * solib-svr4.c: Same.
669 * solib.c: Same.
670 * source.c: Same.
671 * sparc-nat.c: Same.
672 * sparc-sol2-tdep.c: Same.
673 * sparc-tdep.c: Same.
674 * sparc64-tdep.c: Same.
675 * stabsread.c: Same.
676 * stack.c: Same.
677 * symfile.c: Same.
678 * symtab.c: Same.
679 * target-descriptions.c: Same.
680 * target-float.c: Same.
681 * thread.c: Same.
682 * utils.c: Same.
683 * valops.c: Same.
684 * valprint.c: Same.
685 * value.c: Same.
686 * varobj.c: Same.
687 * windows-nat.c: Same.
688 * xcoffread.c: Same.
689 * xstormy16-tdep.c: Same.
690 * xtensa-tdep.c: Same.
691
692 2019-10-17 Tom Tromey <tromey@adacore.com>
693
694 * configure: Rebuild.
695 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
696 in AC_CONFIG_FILES invocation.
697 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
698 new-style config.status invocation.
699
700 2019-10-17 Tom de Vries <tdevries@suse.de>
701
702 * arm-nbsd-nat.c: Fix typos in comments.
703 * arm-tdep.c: Same.
704 * darwin-nat-info.c: Same.
705 * dwarf2read.c: Same.
706 * elfread.c: Same.
707 * event-top.c: Same.
708 * findvar.c: Same.
709 * gdbtypes.c: Same.
710 * hppa-tdep.c: Same.
711 * i386-tdep.c: Same.
712 * jit.c: Same.
713 * main.c: Same.
714 * mdebugread.c: Same.
715 * moxie-tdep.c: Same.
716 * nto-procfs.c: Same.
717 * osabi.c: Same.
718 * ppc-linux-tdep.c: Same.
719 * remote.c: Same.
720 * riscv-tdep.c: Same.
721 * s390-tdep.c: Same.
722 * sh-tdep.c: Same.
723 * sparc-linux-tdep.c: Same.
724 * sparc-nat.c: Same.
725 * stack.c: Same.
726 * target-descriptions.c: Same.
727 * top.c: Same.
728 * varobj.c: Same.
729
730 2019-10-16 Tom Tromey <tom@tromey.com>
731
732 * objfiles.h (struct objfile) <original_name>: Now const.
733
734 2019-10-16 Christian Biesinger <cbiesinger@google.com>
735
736 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
737 pass on to sigsetjmp's second argument.
738 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
739
740 2019-10-16 Keith Seitz <keiths@redhat.com>
741
742 PR gdb/23567
743 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
744 sections whose size is greater than the file size.
745
746 2019-10-16 Jim Wilson <jimw@sifive.com>
747
748 * riscv-tdep.c (riscv_gcc_target_options): New.
749 (riscv_gnu_triplet_regexp): New.
750 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
751 set_gdbarch_gnu_triplet_regexp.
752
753 2019-10-16 Christian Biesinger <cbiesinger@google.com>
754
755 * Makefile.in: Add xml-builtin.h.
756 * features/feature_to_c.sh: Add an include for xml-builtin.h
757 to ensure that the compiler checks that the types match.
758 * xml-builtin.h: New file.
759 * xml-support.c (fetch_xml_builtin): Add missing const.
760 * xml-support.h: Remove declaration of xml_builtins.
761
762 2019-10-16 Tom de Vries <tdevries@suse.de>
763
764 PR tdep/25096
765 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
766 (amd64_classify_aggregate): ... here.
767 (amd64_classify_aggregate_field): Handled fiels of nested structs
768 recursively.
769
770 2019-10-16 Tom de Vries <tdevries@suse.de>
771
772 PR tdep/24104
773 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
774 that handles 'theclass'.
775
776 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * linespec.c (decode_digits_ordinary): Update comment.
779 * make-target-delegates: No longer need to handle VEC case.
780 * memrange.c (normalize_mem_ranges): Update comment.
781 * namespace.c (add_using_directive): Update comment.
782 * objc-lang.c (uniquify_strings): Update comment.
783 * ppc-linux-nat.c (struct thread_points): Update comment.
784 * probe.h (find_probes_in_objfile): Update comment.
785 * target.h (enum flash_preserve_mode): Update comment.
786 * varobj.c (varobj_restrict_range): Update comment.
787 * varobj.h (varobj_list_children): Update comment.
788
789 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
790
791 * Makefile.in: Remove references to vec.h and vec.c.
792 * aarch64-tdep.c: No longer include vec.h.
793 * ada-lang.c: Likewise.
794 * ada-lang.h: Likewise.
795 * arm-tdep.c: Likewise.
796 * ax.h: Likewise.
797 * breakpoint.h: Likewise.
798 * charset.c: Likewise.
799 * cp-support.h: Likewise.
800 * dtrace-probe.c: Likewise.
801 * dwarf2read.c: Likewise.
802 * extension.h: Likewise.
803 * gdb_bfd.c: Likewise.
804 * gdbsupport/gdb_vecs.h: Likewise.
805 * gdbsupport/vec.c: Remove.
806 * gdbsupport/vec.h: Remove.
807 * gdbthread.h: Likewise.
808 * guile/scm-type.c: Likewise.
809 * inline-frame.c: Likewise.
810 * machoread.c: Likewise.
811 * memattr.c: Likewise.
812 * memrange.h: Likewise.
813 * namespace.h: Likewise.
814 * nat/linux-btrace.h: Likewise.
815 * osdata.c: Likewise.
816 * parser-defs.h: Likewise.
817 * progspace.h: Likewise.
818 * python/py-type.c: Likewise.
819 * record-btrace.c: Likewise.
820 * rust-exp.y: Likewise.
821 * solib-target.c: Likewise.
822 * stap-probe.c: Likewise.
823 * target-descriptions.c: Likewise.
824 * target-memory.c: Likewise.
825 * target.h: Likewise.
826 * varobj.c: Likewise.
827 * varobj.h: Likewise.
828 * xml-support.h: Likewise.
829
830 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
833 Update for new std::vector based implementation.
834 (process_psymtab_comp_unit_reader): Likewise.
835 (scan_partial_symbols): Likewise.
836 (recursively_compute_inclusions): Likewise.
837 (compute_compunit_symtab_includes): Likewise.
838 (process_imported_unit_die): Likewise.
839 (queue_and_load_dwo_tu): Likewise.
840 (follow_die_sig_1): Likewise.
841 * gdb/dwarf2read.h: Remove DEF_VEC_P.
842 (typedef dwarf2_per_cu_ptr): Remove.
843 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
844 function.
845 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
846 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
847 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
848 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
849 std::vector.
850
851 2019-10-15 Tom Tromey <tromey@adacore.com>
852
853 * windows-nat.c (windows_nat_target::resume): Use %x when logging
854 TID.
855
856 2019-10-15 Tom Tromey <tromey@adacore.com>
857
858 * windows-nat.c (windows_nat_target::fetch_registers)
859 (windows_nat_target::store_registers): Rename "pid" to "tid".
860
861 2019-10-15 Tom Tromey <tromey@adacore.com>
862
863 * gdbarch.h, gdbarch.c: Rebuild.
864 * gdbarch.sh (gcc_target_options): Change return type to
865 std::string.
866 * compile/compile.c (get_args): Update.
867 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
868 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
869 std::string.
870 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
871 std::string.
872 * arch-utils.c (default_gcc_target_options): Return std::string.
873 * arch-utils.h (default_gcc_target_options): Return std::string.
874 * s390-tdep.c (s390_gcc_target_options): Return std::string.
875
876 2019-10-15 Christian Biesinger <cbiesinger@google.com>
877
878 * breakpoint.c (breakpoint_chain): Make static.
879 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
880 of accessing breakpoint_chain.
881
882 2019-10-15 Christian Biesinger <cbiesinger@google.com>
883
884 * breakpoint.c (iterate_over_breakpoints): Change function pointer
885 to a gdb::function_view and return value to bool.
886 * breakpoint.h (iterate_over_breakpoints): Likewise.
887 * dummy-frame.c (pop_dummy_frame_bpt): Update.
888 (pop_dummy_frame): Update.
889 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
890 (gdbscm_breakpoints): Update.
891 * python/py-breakpoint.c (build_bp_list): Update.
892 (gdbpy_breakpoints): Update.
893 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
894 Update.
895 (bpfinishpy_handle_stop): Update.
896 (bpfinishpy_handle_exit): Update.
897 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
898 (svr4_update_solib_event_breakpoints): Update.
899
900 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
901
902 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
903 when unwrapping single-field structs.
904
905 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * dwarf2read.c: Remove includes.
908
909 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * ui-out.c (ui_out::call_do_message): Silence
912 -Wformat-nonliteral warning.
913
914 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * breakpoint.c: Remove some includes: continuations.h, skip.h,
917 mi/mi-main.h, readline/readline.h, readline/history.h. Add
918 include: readline/tilde.h.
919
920 2019-10-12 Christian Biesinger <cbiesinger@google.com>
921
922 * remote.c (remote_target::get_trace_status): Remove declaration of
923 trace_regblock_size.
924
925 2019-10-12 Christian Biesinger <cbiesinger@google.com>
926
927 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
928 (show_user): Remove declaration of cmdlist.
929 * cli/cli-cmds.h (max_user_call_depth): Declare.
930 * cli/cli-script.c (execute_user_command): Remove declaration
931 of max_user_call_depth.
932
933 2019-10-11 Jim Wilson <jimw@sifive.com>
934
935 * gdbsupport/print-utils.h (pulongest): Fix comment.
936 (plongest): Likewise.
937 (phex): Add missing comment, mention leading zeros.
938 (phex_nz): Add mention of no leading zeros to comment.
939
940 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
941 plongest instead of unsigned long long cast.
942
943 2019-10-10 Christian Biesinger <cbiesinger@google.com>
944
945 * main.c (captured_main_1): Include gdbtk.h and remove declarations
946 for external_editor_command and gdbtk_test.
947
948 2019-10-10 Christian Biesinger <cbiesinger@google.com>
949
950 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
951 * varobj.c (varobjdebug): Move comment to...
952 * varobj.h (varobjdebug): ...here, and declare.
953
954 2019-10-09 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
957 erase_data_content.
958
959 2019-10-09 Tom Tromey <tom@tromey.com>
960
961 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
962 * tui/tui-stack.c (tui_locator_window::rerender): Update.
963 * tui/tui-command.c (tui_cmd_window::resize)
964 (tui_refresh_cmd_win): Update.
965 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
966 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
967 * tui/tui-data.c (~tui_gen_win_info): Remove.
968 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
969 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
970 (tui_redisplay_readline, tui_mld_flush)
971 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
972 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
973 (tui_data_window::erase_data_content)
974 (tui_data_item_window::rerender)
975 (tui_data_item_window::refresh_window): Update.
976 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
977 (box_win, tui_gen_win_info::make_window)
978 (tui_gen_win_info::make_visible): Update.
979 (tui_delete_win): Remove.
980 * tui/tui-winsource.c
981 (tui_source_window_base::do_erase_source_content): Update.
982 (tui_show_source_line, tui_source_window_base::update_tab_width)
983 (tui_source_window_base::update_exec_info): Update.
984 * tui/tui-data.h (struct curses_deleter): New.
985 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
986 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
987
988 2019-10-09 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
991
992 2019-10-09 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
995 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
996
997 2019-10-09 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1000 window height directly.
1001 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1002 declare.
1003 * tui/tui-layout.c (tui_default_win_height): Remove.
1004 (tui_default_win_viewport_height): Remove.
1005
1006 2019-10-09 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui.h: Remove comments.
1009
1010 2019-10-09 Tom de Vries <tdevries@suse.de>
1011
1012 * python/lib/gdb/printer/bound_registers.py: Use
1013 '^builtin_type_bound128' as regexp argument for
1014 add_builtin_pretty_printer.
1015
1016 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1017
1018 * guile/guile.c (guile_extension_script_ops): Remove forward
1019 declaration and mark as static.
1020 (guile_script_ops): Likewise.
1021 (extension_language_guile): Move further down in the file so
1022 it can reference the definitions for guile_{extension_,}script_ops.
1023
1024 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1025
1026 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1027 except SORTL, DFLTCC, and KDSA.
1028
1029 2019-10-08 Tom Tromey <tromey@adacore.com>
1030
1031 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1032 (struct safe_symbol_file_add_args): Remove.
1033
1034 2019-10-08 Tom Tromey <tromey@adacore.com>
1035
1036 * windows-nat.c: Don't include buildsym-legacy.h.
1037
1038 2019-10-08 Tom Tromey <tromey@adacore.com>
1039
1040 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1041
1042 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1043
1044 * gdbtypes.c (overload_debug): Move comment to header.
1045 * gdbtypes.h (overload_debug): Declare.
1046 * valops.c: Remove declaration of overload_debug, instead
1047 include gdbtypes.h.
1048
1049 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1050
1051 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1052 through _().
1053 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1054 move comment...
1055 * language.h (lang_frame_mismatch_warn): ... here. Also add
1056 declaration.
1057 * top.c (lang_frame_mismatch_warn): Remove declaration.
1058 (check_frame_language_change): Pass lang_frame_mismatch_warn
1059 through _().
1060
1061 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1062
1063 * c-lang.h (vtbl_ptr_name): Declare.
1064 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1065 it from the header.
1066 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1067
1068 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1069
1070 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1071 gdb_static_assert.
1072
1073 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1074
1075 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1076 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1077 * ctfread.c: New file.
1078 * ctfread.h: New file.
1079 * elfread.c: Include ctfread.h.
1080 (struct elfinfo text_p): New member ctfsect.
1081 (elf_locate_sections): Mark CTF section.
1082 (elf_symfile_read): Call elfctf_build_psymtabs.
1083 * Makefile.in (LIBCTF): Add.
1084 (CLIBS): Use it.
1085 (CDEPS): Likewise.
1086 (DIST): Add ctfread.c.
1087
1088 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * ctfread.c (struct nextfield): Renamed to ...
1091 (struct ctf_nextfield): ... this.
1092 (struct field_info): Renamed to ...
1093 (strut ctf_field_info): ... this.
1094 (attach_fields_to_type): Update for renamed structures.
1095 (ctf_add_member_cb): Likewise.
1096 (ctf_add_enum_member_cb): Likewise.
1097 (process_struct_members): Likewise.
1098 (process_enum_type): Likewise.
1099
1100 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1101
1102 * tracectf.h: Rename, was ctf.h.
1103 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1104 * tracefile.c: Likewise.
1105 * tracepoint.c: Remove unused include ctf.h.
1106 * mi/mi-main.c: Likewise.
1107 * Makefile.in Replace ctf.c with tracectf.c.
1108
1109 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1110
1111 * version.in: Change version number to "9.0.50.DATE-git".
1112
1113 2019-10-03 Tom Tromey <tom@tromey.com>
1114
1115 PR rust/24976:
1116 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1117
1118 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1119
1120 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1121 cp_search_name_hash.
1122 * NEWS: Add entry about nested function support.
1123
1124 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1125 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1128 for nested static variables when searchin VAR_DOMAIN.
1129 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1130 global scope, update comment.
1131 (add_partial_subprogram): Call add_partial_subprogram recursively
1132 for nested subroutines when processinng Fortran.
1133 (load_partial_dies): Process the child entities of a subprogram
1134 when processing Fortran.
1135 (partial_die_parent_scope): Handle building scope
1136 for Fortran nested functions.
1137 (process_die): Record that nested functions have a scope.
1138 (new_symbol): Always record Fortran subprograms on the global
1139 symbol list.
1140 (determine_prefix): How to build the prefix for Fortran
1141 subprograms.
1142
1143 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1146 have just sent the thread a SIGSTOP and are waiting for it to
1147 arrive.
1148
1149 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * btrace.c (btrace_add_pc): Remove whitespace before the template
1152 parameter in 'std::vector <...>'.
1153 (parse_xml_btrace_block): Likewise.
1154 (btrace_maint_decode_pt): Likewise.
1155 (btrace_maint_update_packets): Likewise.
1156 (btrace_maint_print_packets): Likewise.
1157 * btrace.h (struct btrace_maint_info): Likewise.
1158 * dwarf2read.c (struct type_unit_group): Likewise.
1159 (build_type_psymtabs_reader): Likewise.
1160 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1161 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1162 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1163
1164 2019-10-03 Tom de Vries <tdevries@suse.de>
1165
1166 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1167 the first line of the help text for set/show style metadata.
1168
1169 2019-10-02 Tom Tromey <tromey@adacore.com>
1170
1171 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1172 * gdbsupport/common-inferior.c: New file.
1173 * infcmd.c (startup_with_shell): Don't define.
1174 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1175 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1176 * inferior.h (startup_with_shell): Don't declare.
1177
1178 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1179
1180 * gdbsupport/gdb_assert.h: Include errors.h.
1181 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1182
1183 2019-10-02 Tom Tromey <tromey@adacore.com>
1184
1185 * NEWS: Add $_ada_exception entry.
1186 * ada-lang.c (struct ada_catchpoint): Add constructor.
1187 <m_kind>: New member.
1188 (allocate_location_exception, re_set_exception): Remove
1189 "ex" parameter.
1190 (should_stop_exception): Compute $_ada_exception.
1191 (check_status_exception, print_it_exception)
1192 (print_one_exception, print_mention_exception): Remove
1193 "ex" parameter.
1194 (allocate_location_catch_exception, re_set_catch_exception)
1195 (check_status_exception, print_it_catch_exception)
1196 (print_one_catch_exception, print_mention_catch_exception)
1197 (print_recreate_catch_exception)
1198 (allocate_location_catch_exception_unhandled)
1199 (re_set_catch_exception_unhandled)
1200 (check_status_exception, print_it_catch_exception_unhandled)
1201 (print_one_catch_exception_unhandled)
1202 (print_mention_catch_exception_unhandled)
1203 (print_recreate_catch_exception_unhandled)
1204 (allocate_location_catch_assert, re_set_catch_assert)
1205 (check_status_assert, print_it_catch_assert)
1206 (print_one_catch_assert, print_mention_catch_assert)
1207 (print_recreate_catch_assert)
1208 (allocate_location_catch_handlers, re_set_catch_handlers)
1209 (check_status_handlers, print_it_catch_handlers)
1210 (print_one_catch_handlers, print_mention_catch_handlers)
1211 (print_recreate_catch_handlers): Remove.
1212 (create_ada_exception_catchpoint): Update.
1213 (initialize_ada_catchpoint_ops): Update.
1214
1215 2019-10-02 Tom Tromey <tromey@adacore.com>
1216
1217 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1218 (create_excep_cond_exprs): Simplify exception string computation.
1219 (ada_exception_catchpoint_cond_string): Likewise.
1220
1221 2019-10-02 Tom Tromey <tromey@adacore.com>
1222
1223 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1224 * ada-lang.c (lesseq_defined_than): Handle
1225 LOC_STATIC.
1226 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1227 parameter.
1228 (dwarf2_has_info): Likewise.
1229 (new_symbol): Set maybe_copied on symbol when
1230 appropriate.
1231 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1232 parameter.
1233 <can_copy>: New member.
1234 * elfread.c (record_minimal_symbol): Set maybe_copied
1235 on symbol when appropriate.
1236 (elf_symfile_read): Update call to dwarf2_has_info.
1237 * minsyms.c (lookup_minimal_symbol_linkage): New
1238 function.
1239 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1240 * symtab.c (get_symbol_address, get_msymbol_address):
1241 New functions.
1242 * symtab.h (get_symbol_address, get_msymbol_address):
1243 Declare.
1244 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1245 maybe_copied.
1246 (struct symbol, struct minimal_symbol) <maybe_copied>:
1247 New member.
1248
1249 2019-10-02 Tom Tromey <tromey@adacore.com>
1250
1251 * source.c (struct current_source_location): New.
1252 (current_source_key): New global.
1253 (current_source_symtab, current_source_line)
1254 (current_source_pspace): Remove.
1255 (get_source_location): New function.
1256 (get_current_source_symtab_and_line)
1257 (set_default_source_symtab_and_line)
1258 (set_current_source_symtab_and_line)
1259 (clear_current_source_symtab_and_line, select_source_symtab)
1260 (info_source_command, print_source_lines_base)
1261 (info_line_command, search_command_helper, _initialize_source):
1262 Update.
1263
1264 2019-10-02 Tom Tromey <tromey@adacore.com>
1265
1266 * source.c (select_source_symtab): Don't call
1267 decode_line_with_current_source.
1268
1269 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * symtab.c (lookup_global_symbol): Search global block.
1272
1273 2019-10-02 Tom Tromey <tromey@adacore.com>
1274
1275 * coffread.c (process_coff_symbol): Update.
1276 * dwarf2read.c (var_decode_location, new_symbol): Update.
1277 * mdebugread.c (parse_symbol): Update.
1278 * objfiles.c (relocate_one_symbol): Update.
1279 * stabsread.c (define_symbol, fix_common_block)
1280 (scan_file_globals): Update.
1281 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1282 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1283 * xcoffread.c (process_xcoff_symbol): Update.
1284
1285 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1286
1287 * MAINTAINERS: Update my email address.
1288
1289 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1292 std::vector.
1293 (build_type_psymtabs_reader): Update for std::vector.
1294 (build_type_psymtab_dependencies): Likewise.
1295 * dwarf2read.h: Remove use of DEF_VEC_P.
1296 (typedef sig_type_ptr): Delete.
1297
1298 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1301 to std::vector.
1302 (btrace_maint_decode_pt): Likewise, and move allocation of the
1303 vector outside of the loop.
1304 (btrace_maint_update_packets): Update to handle change from VEC to
1305 std::vector.
1306 (btrace_maint_print_packets): Likewise.
1307 (maint_info_btrace_cmd): Likewise.
1308 * btrace.h: Remove use of DEF_VEC_O.
1309 (typedef btrace_pt_packet_s): Delete.
1310 (struct btrace_maint_info) <packets>: Change fromm VEC to
1311 std::vector.
1312 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1313
1314 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1317 make accesses into the vector constant references.
1318 (btrace_add_pc): Update for std::vector.
1319 (btrace_stitch_bts): Likewise.
1320 (parse_xml_btrace_block): Likewise.
1321 (btrace_maint_update_packets): Likewise.
1322 (btrace_maint_print_packets): Likewise.
1323 (maint_info_btrace_cmd): Likewise.
1324 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1325 std::vector.
1326 (btrace_data::empty): Likewise.
1327 (btrace_data_append): Likewise.
1328 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1329 (typedef btrace_block_s): Delete.
1330 (struct btrace_block): Add constructor.
1331 (struct btrace_data_bts) <blocks>: Change to std::vector.
1332 * nat/linux-btrace.c (perf_event_read_bts): Update for
1333 std::vector.
1334 (linux_read_bts): Likewise.
1335
1336 2019-10-01 Tom Tromey <tom@tromey.com>
1337
1338 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1339
1340 2019-10-01 Tom Tromey <tom@tromey.com>
1341
1342 * stack.c (print_frame, info_frame_command_core): Use
1343 styled_string.
1344 * linux-thread-db.c (try_thread_db_load_1)
1345 (try_thread_db_load_from_pdir_1): Use styled_string.
1346 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1347 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1348 (maybe_print_unsupported_script_warning)
1349 (maybe_print_script_not_found_warning): Use styled_string.
1350 * ada-lang.c (user_select_syms): Use styled_string.
1351
1352 2019-10-01 Tom Tromey <tom@tromey.com>
1353
1354 * p-lang.c (pascal_printstr): Use metadata style.
1355 * value.c (show_convenience): Use metadata style.
1356 * valprint.c (valprint_check_validity, val_print_optimized_out)
1357 (val_print_not_saved, val_print_unavailable)
1358 (val_print_invalid_address, generic_val_print, val_print)
1359 (value_check_printable, val_print_array_elements): Use metadata
1360 style.
1361 * ui-out.h (class ui_out) <field_fmt>: New overload.
1362 <do_field_fmt>: Add style parameter.
1363 * ui-out.c (ui_out::field_fmt): New overload.
1364 * typeprint.c (type_print_unknown_return_type)
1365 (val_print_not_allocated, val_print_not_associated): Use metadata
1366 style.
1367 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1368 parameter.
1369 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1370 * tracepoint.c (tvariables_info_1): Use metadata style.
1371 * stack.c (print_frame_arg, print_frame_info, print_frame)
1372 (info_frame_command_core): Use metadata style.
1373 * skip.c (info_skip_command): Use metadata style.
1374 * rust-lang.c (rust_print_enum): Use metadata style.
1375 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1376 metadata style.
1377 * python/py-framefilter.c (py_print_single_arg): Use metadata
1378 style.
1379 * printcmd.c (do_one_display, print_variable_and_value): Use
1380 metadata style.
1381 * p-valprint.c (pascal_val_print)
1382 (pascal_object_print_value_fields): Use metadata style.
1383 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1384 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1385 parameter.
1386 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1387 * m2-valprint.c (m2_print_long_set): Use metadata style.
1388 * m2-typeprint.c (m2_print_type): Use metadata style.
1389 * infcmd.c (print_return_value_1): Use metadata style.
1390 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1391 * f-valprint.c (info_common_command_for_block): Use metadata
1392 style.
1393 * f-typeprint.c (f_type_print_base): Use metadata style.
1394 * expprint.c (print_subexp_standard): Use metadata style.
1395 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1396 * cli/cli-style.h (class cli_style_option): Add constructor.
1397 (metadata_style): Declare.
1398 * cli/cli-style.c (metadata_style): New global.
1399 (_initialize_cli_style): Register metadata style.
1400 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1401 parameter.
1402 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1403 * c-typeprint.c (c_type_print_base_struct_union)
1404 (c_type_print_base_1): Use metadata style.
1405 * breakpoint.c (watchpoint_value_print)
1406 (print_one_breakpoint_location): Use metadata style.
1407 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1408 style.
1409 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1410 style.
1411 * ada-valprint.c (val_print_packed_array_elements, printstr)
1412 (print_field_values, ada_val_print_ref, ada_val_print): Use
1413 metadata style.
1414 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1415 style.
1416 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1417 style.
1418 * ada-lang.c (user_select_syms): Use metadata style.
1419
1420 2019-10-01 Tom Tromey <tom@tromey.com>
1421
1422 * cli/cli-cmds.c (pwd_command): Style output.
1423
1424 2019-10-01 Pedro Alves <palves@redhat.com>
1425 Tom Tromey <tom@tromey.com>
1426
1427 * symtab.c (print_symbol_info): Use %ps.
1428 (print_msymbol_info): Use %ps.
1429 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1430 * printcmd.c (print_variable_and_value): Use %ps.
1431 * macrocmd.c (show_pp_source_pos): Use %ps.
1432 * infrun.c (print_exited_reason): Use ui_out::message.
1433 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1434 (describe_other_breakpoints): Use ui_out::message and new
1435 formats.
1436 (say_where): Use new formats.
1437 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1438 and new formats.
1439
1440 2019-10-01 Pedro Alves <palves@redhat.com>
1441 Tom Tromey <tom@tromey.com>
1442
1443 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1444 (test_gdb_formats): New function.
1445 (run_tests): Call it.
1446 (test_format_specifier): Update.
1447 * utils.h (fputs_filtered): Update comment.
1448 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1449 (fputs_styled_unfiltered): Declare.
1450 * utils.c (fputs_styled_unfiltered): New function.
1451 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1452 (vfprintf_filtered): Update.
1453 (vfprintf_unfiltered, vprintf_filtered): Update.
1454 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1455 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1456 disallow_ui_out_field>: New constants.
1457 (enum class field_kind): New.
1458 (struct base_field_s, struct signed_field_s): New.
1459 (signed_field): New function.
1460 (struct string_field_s): New.
1461 (string_field): New function.
1462 (struct styled_string_s): New.
1463 (styled_string): New function.
1464 (class ui_out) <message>: Add comment.
1465 <vmessage, call_do_message>: New methods.
1466 <do_message>: Add style parameter.
1467 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1468 methods.
1469 (ui_out::message): Rewrite.
1470 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1471 parameter.
1472 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1473 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1474 gdb_extensions parameter.
1475 (class format_piece): Add parameter to constructor.
1476 (n_int_args): New field.
1477 * gdbsupport/format.c (format_pieces::format_pieces): Add
1478 gdb_extensions parameter. Handle '*'.
1479 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1480 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1481 vfprintf_styled_no_gdbfmt.
1482 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1483 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1484 unfiltered output.
1485 * ui-style.h (struct ui_file_style) <ptr>: New method.
1486
1487 2019-10-01 Tom Tromey <tom@tromey.com>
1488
1489 * unittests/format_pieces-selftests.c: Update. Add final format.
1490 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1491 empty literal pieces.
1492
1493 2019-10-01 Tom Tromey <tom@tromey.com>
1494
1495 * ui-out.h (enum class ui_out_style_kind): Remove.
1496 (class ui_out) <field_string, field_stsream, do_field_string>:
1497 Change type of "style".
1498 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1499 (ui_out::field_string): Update.
1500 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1501 of "style".
1502 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1503 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1504 * stack.c (print_frame_arg, print_frame_info, print_frame):
1505 Update.
1506 * source.c (print_source_lines_base): Update.
1507 * solib.c (info_sharedlibrary_command): Update.
1508 * skip.c (info_skip_command): Update.
1509 * record-btrace.c (btrace_call_history_src_line)
1510 (btrace_call_history): Update.
1511 * python/py-framefilter.c (py_print_frame): Update.
1512 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1513 "style".
1514 * mi/mi-out.c (mi_ui_out::do_table_header)
1515 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1516 (mi_ui_out::do_field_string): Update.
1517 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1518 Update.
1519 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1520 "style".
1521 * cli-out.c (cli_ui_out::do_table_header)
1522 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1523 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1524 (cli_ui_out::do_field_fmt): Update.
1525 * breakpoint.c (print_breakpoint_location): Update.
1526 (update_static_tracepoint): Update.
1527
1528 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1529
1530 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1531 conversion of gdb_datadir.
1532 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1533 remove not needed c_str ().
1534
1535 2019-09-30 Ali Tamur <tamur@google.com>
1536
1537 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1538 (dwarf2_string_attr): Likewise.
1539
1540 2019-09-30 Ali Tamur <tamur@google.com>
1541
1542 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1543 (process_full_type_unit): Likewise.
1544 (dump_die_shallow): Likewise.
1545 (cu_debug_loc_section): Likewise.
1546
1547 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1548
1549 * minsyms.c (compare_minimal_symbols): Rename to...
1550 (minimal_symbol_is_less_than): ...this, and adjust to STL
1551 conventions (return bool, take arguments as references)
1552 (minimal_symbol_reader::install): Call std::sort instead
1553 of qsort.
1554
1555 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1556
1557 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1558 hash and why.
1559 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1560 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1561
1562 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1565 * psympriv.h (add_psymbol_to_list): Move comment here and update
1566 it.
1567
1568 2019-09-29 Tom de Vries <tdevries@suse.de>
1569
1570 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1571 Use $tmpdir/$(basename "$output_file").dwz instead of
1572 "${output_file}.dwz".
1573
1574 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 PR gdb/25045
1577 * hppa-linux-nat.c: Include gdbarch.h.
1578
1579 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1580
1581 * blockframe.c (find_pc_partial_function): Change return type to bool.
1582 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1583 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1584 (stub_gnu_ifunc_resolve_name): Likewise.
1585 * symtab.c (compare_filenames_for_search): Likewise.
1586 (compare_glob_filenames_for_search): Likewise.
1587 (matching_obj_sections): Likewise.
1588 (symbol_matches_domain): Likewise.
1589 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1590 (find_line_pc): Change return type to bool.
1591 (find_line_pc_range): Likewise.
1592 (producer_is_realview): Likewise.
1593 * symtab.h (symbol_matches_domain): Likewise.
1594 (find_pc_partial_function): Likewise.
1595 (find_pc_line_pc_range): Likewise.
1596 (in_gnu_ifunc_stub): Likewise.
1597 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1598 (find_line_pc): Likewise.
1599 (find_line_pc_range): Likewise.
1600 (matching_obj_sections): Likewise.
1601 (find_line_symtab): Change out parameter to bool.
1602 (producer_is_realview): Change return type to bool.
1603 (compare_filenames_for_search): Likewise.
1604 (compare_glob_filenames_for_search): Likewise.
1605
1606 2019-09-26 Tom Tromey <tom@tromey.com>
1607
1608 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1609 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1610 * gdb_usleep.h: Remove.
1611 * gdb_usleep.c: Remove.
1612 * utils.c: Don't include gdb_usleep.h.
1613
1614 2019-09-26 Tom Tromey <tromey@adacore.com>
1615
1616 * python/py-type.c (type_to_type_object): Call check_typedef
1617 for stub types.
1618
1619 2019-09-26 Tom Tromey <tom@tromey.com>
1620
1621 * utils.h (initialize_utils): Don't declare.
1622 * top.c (gdb_init): Don't call initialize_utils.
1623 * utils.c (initialize_utils): Remove. Move contents...
1624 (_initialize_utils): ... here.
1625
1626 2019-09-25 Tom Tromey <tom@tromey.com>
1627
1628 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1629 * utils.h (make_hex_string): Don't declare.
1630 * utils.c (make_hex_string): Remove.
1631
1632 2019-09-24 Tom de Vries <tdevries@suse.de>
1633
1634 PR gdb/23815
1635 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1636 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1637
1638 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1639
1640 * NEWS: Mention new simulator port for PRU.
1641
1642 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1643
1644 * ada-exp.y (write_object_remaining): Update.
1645 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1646 and eliminate the static buffer.
1647 (ada_decode_symbol): Update.
1648 (ada_la_decode): Update.
1649 (ada_sniff_from_mangled_name): Update.
1650 (is_valid_name_for_wild_match): Update.
1651 (ada_lookup_name_info::matches): Update and simplify.
1652 (name_matches_regex): Update.
1653 (ada_add_global_exceptions): Update.
1654 * ada-lang.h (ada_decode): Update signature.
1655 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1656 * dwarf-index-write.c (debug_names::insert): Update.
1657
1658 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1661 formatting.
1662
1663 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1666 Change "nonzero" to "true" in documentation.
1667
1668 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1669
1670 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1671 (_initialize_darwin_solib): Don't set
1672 darwin_so_ops.lookup_lib_global_symbol.
1673 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1674 set_gdbarch_iterate_over_objfiles_in_search_order.
1675 (elf_lookup_lib_symbol): Rename to...
1676 (svr4_iterate_over_objfiles_in_search_order): this, and update
1677 to iterate semantics.
1678 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1679 * solib.c (solib_global_lookup): Remove.
1680 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1681 (solib_global_lookup): Remove.
1682 * symtab.c (lookup_global_or_static_symbol): Remove call to
1683 solib_global_lookup.
1684
1685 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1686
1687 * NEWS: Move entries about default MI version now being
1688 version 3, and about the GDB/MI fix for multi-location
1689 breakpoints to the "since GDB 8.3" section.
1690
1691 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1692
1693 GDB 8.3.1 released.
1694
1695 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1696
1697 * NEWS: Mention that Cell/B.E. debugging support was removed.
1698 * MAINTAINERS: Remove spu target.
1699
1700 * config/djgpp/fnchange.lst: Remove entries for removed files.
1701
1702 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1703 spu-multiarch.o, and spu-tdep.o.
1704 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1705 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1706 spu-multiarch.c, and spu-tdep.c.
1707 * spu-linux-nat.c: Remove file.
1708 * spu-multiarch.c: Remove file.
1709 * spu-tdep.c: Remove file.
1710 * spu-tdep.h: Remove file.
1711 * solib-spu.c: Remove file.
1712 * solib-spu.h: Remove file.
1713
1714 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1715 * configure.nat (spu-linux): Remove.
1716 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1717 solib-multiarch.o from gdb_target_obs.
1718 (spu*-*-*): Remove.
1719
1720 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1721 feature flag.
1722 (ppc_linux_no_features): Update.
1723 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1724 Cell/B.E. support.
1725 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1726 (tdesc_powerpc_cell64l): Likewise.
1727 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1728 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1729 Cell/B.E. support.
1730 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1731 Do not include "features/rs6000/powerpc-cell32l.c" or
1732 "features/rs6000/powerpc-cell64l.c".
1733 (ppc_linux_spu_section): Remove.
1734 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1735 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1736 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1737 (ppc_linux_spe_context_lookup): Remove.
1738 (ppc_linux_spe_context_inferior_created): Remove.
1739 (ppc_linux_spe_context_solib_loaded): Remove.
1740 (ppc_linux_spe_context_solib_unloaded): Remove.
1741 (ppc_linux_spe_context): Remove.
1742 (struct ppu2spu_cache): Remove.
1743 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1744 (struct ppu2spu_data): Remove.
1745 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1746 ppu2spu_unwind): Remove.
1747 (ppc_linux_init_abi): Remove Cell/B.E. support.
1748 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1749
1750 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1751 (rs6000/powerpc-cell64l-expedite): Likewise
1752 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1753 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1754 rs6000/powerpc-cell64l.xml.
1755 * features/rs6000/powerpc-cell32l.xml: Remove.
1756 * features/rs6000/powerpc-cell64l.xml: Likewise.
1757 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1758 * features/rs6000/powerpc-cell64l.c: Likewise.
1759 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1760 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1761 * regformats/reg-spu.dat: Remove.
1762
1763 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1764 * corelow.c (struct spuid_list): Remove.
1765 (add_to_spuid_list): Remove.
1766 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1767 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1768 (remote_protocol_features): Remove associated entries.
1769 (_initialize_remote): No longer initialize them.
1770 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1771 * linux-nat.c (SPUFS_MAGIC): Remove.
1772 (linux_proc_xfer_spu): Remove.
1773 (spu_enumerate_spu_ids): Remove.
1774 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1775 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1776 (linux_make_corefile_notes): No longer call it.
1777
1778 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1779 (cooked_write_test): Likewise.
1780
1781 2019-09-20 Tom Tromey <tom@tromey.com>
1782
1783 * NEWS: Mention case-sensitivity of TUI commands.
1784 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1785 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1786 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1787
1788 2019-09-20 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-source.c (tui_source_window::set_contents): Use
1791 make_unique_xstrdup.
1792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1793 make_unique_xstrdup.
1794
1795 2019-09-20 Tom Tromey <tom@tromey.com>
1796
1797 * tui/tui-data.c: Remove separator comments.
1798 * tui/tui-layout.c: Remove separator comments.
1799 * tui/tui-win.c: Remove separator comments.
1800 * tui/tui-wingeneral.c: Remove separator comments.
1801
1802 2019-09-20 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui.h (strcat_to_buf): Don't declare.
1805 * tui/tui.c (strcat_to_buf): Remove.
1806
1807 2019-09-20 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1810 from "fullname".
1811 * tui/tui-source.c (tui_source_window::set_contents)
1812 (tui_source_window::location_matches_p)
1813 (tui_source_window::maybe_update): Update.
1814
1815 2019-09-20 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1818 Update.
1819 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1820 prefix.
1821 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1822 (tui_data_window::line_from_reg_element_no)
1823 (tui_data_window::first_reg_element_no_inline)
1824 (tui_data_window::show_registers)
1825 (tui_data_window::show_register_group)
1826 (tui_data_window::display_registers_from)
1827 (tui_data_window::display_registers_from_line)
1828 (tui_data_window::first_data_item_displayed)
1829 (tui_data_window::delete_data_content_windows)
1830 (tui_data_window::erase_data_content)
1831 (tui_data_window::do_scroll_vertical)
1832 (tui_data_window::refresh_window)
1833 (tui_data_window::check_register_values): Update.
1834
1835 2019-09-20 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1838 (struct tui_locator_window) <full_name, proc_name>: Now
1839 std::string.
1840 * tui/tui-stack.c (tui_locator_window::make_status_line)
1841 (tui_locator_window::set_locator_fullname)
1842 (tui_locator_window::set_locator_info): Update.
1843 * tui/tui-source.c (tui_source_window::set_contents)
1844 (tui_source_window::showing_source_p): Update.
1845
1846 2019-09-20 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1849 Don't call tui_locator_win_info_ptr.
1850
1851 2019-09-20 Tom Tromey <tom@tromey.com>
1852
1853 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1854
1855 2019-09-20 Tom Tromey <tom@tromey.com>
1856
1857 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1858 height for locator.
1859 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1860 * tui/tui-layout.c (show_source_disasm_command, show_data)
1861 (show_source_or_disasm_and_command): Use 1 as height for locator.
1862
1863 2019-09-20 Tom Tromey <tom@tromey.com>
1864
1865 * tui/tui.c (tui_enable): Update.
1866 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1867 Update.
1868 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1869 Update.
1870 * tui/tui-data.c (win_resized): Now bool.
1871 (tui_win_resized): Return bool.
1872 (tui_set_win_resized_to): Accept a bool.
1873
1874 2019-09-20 Tom Tromey <tom@tromey.com>
1875
1876 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1877 Change type of "refresh_values_only".
1878 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1879 type of "refresh_values_only".
1880
1881 2019-09-20 Tom Tromey <tom@tromey.com>
1882
1883 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1884 std::string.
1885 (tui_disassemble): Add "pos" parameter.
1886 (tui_disasm_window::set_contents): Simplify.
1887
1888 2019-09-20 Tom Tromey <tom@tromey.com>
1889
1890 * tui/tui-winsource.h (struct tui_source_window_base)
1891 <show_source_content>: Now private.
1892 * tui/tui-winsource.c
1893 (tui_source_window_base::show_source_content): Don't handle empty
1894 content case.
1895
1896 2019-09-20 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-layout.c (show_source_disasm_command)
1899 (show_source_or_disasm_and_command): Don't call
1900 show_source_content.
1901
1902 2019-09-20 Tom Tromey <tom@tromey.com>
1903
1904 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1905 Declare.
1906 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1907 from tui_make_status_line.
1908 (tui_locator_window::rerender): Update.
1909
1910 2019-09-20 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1913 (tui_locator_window::rerender): Update.
1914
1915 2019-09-20 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-winsource.h (struct tui_source_window_base)
1918 <~tui_source_window_base>: Don't declare.
1919 <fullname>: Remove.
1920 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1921 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1922 member.
1923 * tui/tui-source.c (tui_source_window::set_contents): Update.
1924 (tui_source_window::location_matches_p)
1925 (tui_source_window::maybe_update): Update.
1926
1927 2019-09-20 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-winsource.h (~tui_source_element): Remove.
1930 (tui_source_element): Update.
1931 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1932 * tui/tui-winsource.c (tui_show_source_line): Update.
1933 * tui/tui-source.c (tui_source_window::set_contents): Update.
1934 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1935
1936 2019-09-20 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1939 declare.
1940 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1941 tui_clear_source_windows_detail.
1942 * tui/tui-winsource.h (struct tui_source_window_base)
1943 <clear_detail>: Don't declare.
1944 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1945 Remove.
1946 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1947
1948 2019-09-20 Tom Tromey <tromey@adacore.com>
1949
1950 PR ada/24919:
1951 * block.c (contained_in): Fix final return value.
1952
1953 2019-09-20 Alan Modra <amodra@gmail.com>
1954
1955 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1956 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1957 (read_indirect_string_from_dwz): Use bfd accessor.
1958 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1959 * machoread.c (macho_symfile_read_all_oso): Likewise.
1960 * solib.c (solib_bfd_open): Likewise.
1961
1962 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1963
1964 * eval.c: Move declaration of overload_resolution to...
1965 * value.h: ...here.
1966
1967 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1968
1969 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1970 * arm-linux-tdep.c: Likewise.
1971 * arm-nbsd-nat.c: Likewise.
1972 * arm-tdep.h: Declare arm_apcs_32.
1973 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1974
1975 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1976
1977 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1978 * dwarf2read.h: Declare dwarf_always_disassemble.
1979
1980 2019-09-19 Tom de Vries <tdevries@suse.de>
1981
1982 PR gdb/25009
1983 * source-cache.c (source_cache::ensure): Catch exception thrown during
1984 construction of the highlighter.
1985
1986 2019-09-18 Alan Modra <amodra@gmail.com>
1987
1988 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1989 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1990 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1991 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1992 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1993 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1994 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1995 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1996 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1997 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1998 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1999 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2000 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2001 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2002 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2003 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2004 * mi/mi-interp.c: Update throughout for bfd section macro and
2005 function changes.
2006 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2007 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2008
2009 2019-09-18 Tom Tromey <tom@tromey.com>
2010
2011 * NEWS: Add entry.
2012 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2013 call rl_initialize.
2014 (tui_enable): Do not call rl_initialize.
2015
2016 2019-09-18 Christian Groessler <chris@groessler.org>
2017
2018 * alpha-linux-nat.c: Include gdbarch.h.
2019
2020 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * ui-file.c: Include cli/cli-style.h.
2023 (term_cli_styling): Remove cli_styling declaration.
2024
2025 2019-09-18 Alan Modra <amodra@gmail.com>
2026
2027 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2028 to bfd_asymbol_section.
2029
2030 2019-09-18 Alan Modra <amodra@gmail.com>
2031
2032 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2033 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2034 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2035
2036 2019-09-18 Alan Modra <amodra@gmail.com>
2037
2038 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2039 * spu-linux-nat.c (spu_bfd_open): Likewise.
2040
2041 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2042
2043 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2044 to bool to match definition in dwarf2read.c.
2045
2046 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2047
2048 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2049 (print_signatures): Likewise.
2050 (trust_pad_over_xvs): Likewise.
2051 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2052 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2053 * arm-linux-nat.c (arm_apcs_32): Likewise.
2054 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2055 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2056 * arm-tdep.c (arm_debug): Likewise.
2057 (arm_apcs_32): Likewise.
2058 * auto-load.c (debug_auto_load): Likewise.
2059 (auto_load_gdb_scripts): Likewise.
2060 (global_auto_load): Likewise.
2061 (auto_load_local_gdbinit): Likewise.
2062 (auto_load_local_gdbinit_loaded): Likewise.
2063 * auto-load.h (global_auto_load): Likewise.
2064 (auto_load_local_gdbinit): Likewise.
2065 (auto_load_local_gdbinit_loaded): Likewise.
2066 * breakpoint.c (disconnected_dprintf): Likewise.
2067 (breakpoint_proceeded): Likewise.
2068 (automatic_hardware_breakpoints): Likewise.
2069 (always_inserted_mode): Likewise.
2070 (target_exact_watchpoints): Likewise.
2071 (_initialize_breakpoint): Update.
2072 * breakpoint.h (target_exact_watchpoints): Change to bool.
2073 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2074 * cli/cli-cmds.c (trace_commands): Likewise.
2075 * cli/cli-cmds.h (trace_commands): Likewise.
2076 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2077 to bool*.
2078 * cli/cli-logging.c (logging_overwrite): Change to bool.
2079 (logging_redirect): Likewise.
2080 (debug_redirect): Likewise.
2081 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2082 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2083 to bool.
2084 <boolean_option_def>: Update.
2085 (struct flag_option_def): Change default type of Context to bool
2086 from int.
2087 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2088 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2089 (get_setshow_command_value_string): Likewise.
2090 * cli/cli-style.c (cli_styling): Change to bool.
2091 (source_styling): Likewise.
2092 * cli/cli-style.h (source_styling): Likewise.
2093 (cli_styling): Likewise.
2094 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2095 to bool.
2096 * command.h (var_types): Update comment.
2097 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2098 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2099 bool.
2100 (debug_compile_cplus_scopes): Likewise.
2101 * compile/compile-internal.h (compile_debug): Likewise.
2102 * compile/compile.c (compile_debug): Likewise.
2103 (struct compile_options) <raw>: Likewise.
2104 * cp-support.c (catch_demangler_crashes): Likewise.
2105 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2106 (usr_cmd_cris_dwarf2_cfi): Likewise.
2107 * csky-tdep.c (csky_debug): Likewise.
2108 * darwin-nat.c (enable_mach_exceptions): Likewise.
2109 * dcache.c (dcache_enabled_p): Likewise.
2110 * defs.h (info_verbose): Likewise.
2111 * demangle.c (demangle): Likewise.
2112 (asm_demangle): Likewise.
2113 * dwarf-index-cache.c (debug_index_cache): Likewise.
2114 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2115 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2116 * dwarf2read.c (check_physname): Likewise.
2117 (use_deprecated_index_sections): Likewise.
2118 (dwarf_always_disassemble): Likewise.
2119 * eval.c (overload_resolution): Likewise.
2120 * event-top.c (set_editing_cmd_var): Likewise.
2121 (exec_done_display_p): Likewise.
2122 * event-top.h (set_editing_cmd_var): Likewise.
2123 (exec_done_display_p): Likewise.
2124 * exec.c (write_files): Likewise.
2125 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2126 (debug_fbsd_nat): Likewise.
2127 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2128 Likewise.
2129 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2130 <backtrace_past_entry> Likewise.
2131 * gdb-demangle.h (demangle): Likewise.
2132 (asm_demangle): Likewise.
2133 * gdb_bfd.c (bfd_sharing): Likewise.
2134 * gdbcore.h (write_files): Likewise.
2135 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2136 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2137 * gdbthread.h (print_thread_events): Likewise.
2138 * gdbtypes.c (opaque_type_resolution): Likewise.
2139 (strict_type_checking): Likewise.
2140 * gnu-nat.c (gnu_debug_flag): Likewise.
2141 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2142 * guile/scm-param.c (pascm_variable): Add boolval.
2143 (add_setshow_generic): Update.
2144 (pascm_param_value): Update.
2145 (pascm_set_param_value_x): Update.
2146 * hppa-tdep.c (hppa_debug): Change to bool..
2147 * infcall.c (may_call_functions_p): Likewise.
2148 (coerce_float_to_double_p): Likewise.
2149 (unwind_on_signal_p): Likewise.
2150 (unwind_on_terminating_exception_p): Likewise.
2151 * infcmd.c (startup_with_shell): Likewise.
2152 * inferior.c (print_inferior_events): Likewise.
2153 * inferior.h (startup_with_shell): Likewise.
2154 (print_inferior_events): Likewise.
2155 * infrun.c (step_stop_if_no_debug): Likewise.
2156 (detach_fork): Likewise.
2157 (debug_displaced): Likewise.
2158 (disable_randomization): Likewise.
2159 (non_stop): Likewise.
2160 (non_stop_1): Likewise.
2161 (observer_mode): Likewise.
2162 (observer_mode_1): Likewise.
2163 (set_observer_mode): Update.
2164 (sched_multi): Change to bool.
2165 * infrun.h (debug_displaced): Likewise.
2166 (sched_multi): Likewise.
2167 (step_stop_if_no_debug): Likewise.
2168 (non_stop): Likewise.
2169 (disable_randomization): Likewise.
2170 * linux-tdep.c (use_coredump_filter): Likewise.
2171 (dump_excluded_mappings): Likewise.
2172 * linux-thread-db.c (auto_load_thread_db): Likewise.
2173 (check_thread_db_on_load): Likewise.
2174 * main.c (captured_main_1): Update.
2175 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2176 xx2_opt, boolean_opt>: Change to bool.
2177 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2178 * maint.c (maintenance_profile_p): Likewise.
2179 (per_command_time): Likewise.
2180 (per_command_space): Likewise.
2181 (per_command_symtab): Likewise.
2182 * memattr.c (inaccessible_by_default): Likewise.
2183 * mi/mi-main.c (mi_async): Likewise.
2184 (mi_async_1): Likewise.
2185 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2186 * nat/fork-inferior.h (startup_with_shell): Likewise.
2187 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2188 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2189 * nios2-tdep.c (nios2_debug): Likewise.
2190 * or1k-tdep.c (or1k_debug): Likewise.
2191 * parse.c (parser_debug): Likewise.
2192 * parser-defs.h (parser_debug): Likewise.
2193 * printcmd.c (print_symbol_filename): Likewise.
2194 * proc-api.c (procfs_trace): Likewise.
2195 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2196 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2197 (set_parameter_value): Update.
2198 (add_setshow_generic): Update.
2199 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2200 to bool*.
2201 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2202 int*.
2203 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2204 * record-btrace.c (record_btrace_target::store_registers): Update.
2205 * record-full.c (record_full_memory_query): Change to bool.
2206 (record_full_stop_at_limit): Likewise.
2207 * record-full.h (record_full_memory_query): Likewise.
2208 * remote-notif.c (notif_debug): Likewise.
2209 * remote-notif.h (notif_debug): Likewise.
2210 * remote.c (use_range_stepping): Likewise.
2211 (interrupt_on_connect): Likewise.
2212 (remote_break): Likewise.
2213 * ser-tcp.c (tcp_auto_retry): Likewise.
2214 * ser-unix.c (serial_hwflow): Likewise.
2215 * skip.c (debug_skip): Likewise.
2216 * solib-aix.c (solib_aix_debug): Likewise.
2217 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2218 (spu_auto_flush_cache_p): Likewise.
2219 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2220 Likewise.
2221 (struct info_print_options) <quiet>: Likewise.
2222 * symfile-debug.c (debug_symfile): Likewise.
2223 * symfile.c (auto_solib_add): Likewise.
2224 (separate_debug_file_debug): Likewise.
2225 * symfile.h (auto_solib_add): Likewise.
2226 (separate_debug_file_debug): Likewise.
2227 * symtab.c (basenames_may_differ): Likewise.
2228 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2229 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2230 (struct info_types_options) <quiet>: Likewise.
2231 * symtab.h (demangle): Likewise.
2232 (basenames_may_differ): Likewise.
2233 * target-dcache.c (stack_cache_enabled_1): Likewise.
2234 (code_cache_enabled_1): Likewise.
2235 * target.c (trust_readonly): Likewise.
2236 (may_write_registers): Likewise.
2237 (may_write_memory): Likewise.
2238 (may_insert_breakpoints): Likewise.
2239 (may_insert_tracepoints): Likewise.
2240 (may_insert_fast_tracepoints): Likewise.
2241 (may_stop): Likewise.
2242 (auto_connect_native_target): Likewise.
2243 (target_stop_and_wait): Update.
2244 (target_async_permitted): Change to bool.
2245 (target_async_permitted_1): Likewise.
2246 (may_write_registers_1): Likewise.
2247 (may_write_memory_1): Likewise.
2248 (may_insert_breakpoints_1): Likewise.
2249 (may_insert_tracepoints_1): Likewise.
2250 (may_insert_fast_tracepoints_1): Likewise.
2251 (may_stop_1): Likewise.
2252 * target.h (target_async_permitted): Likewise.
2253 (may_write_registers): Likewise.
2254 (may_write_memory): Likewise.
2255 (may_insert_breakpoints): Likewise.
2256 (may_insert_tracepoints): Likewise.
2257 (may_insert_fast_tracepoints): Likewise.
2258 (may_stop): Likewise.
2259 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2260 (make_thread_apply_all_options_def_group): Change argument from int*
2261 to bool*.
2262 (thread_apply_all_command): Update.
2263 (print_thread_events): Change to bool.
2264 * top.c (confirm): Likewise.
2265 (command_editing_p): Likewise.
2266 (history_expansion_p): Likewise.
2267 (write_history_p): Likewise.
2268 (info_verbose): Likewise.
2269 * top.h (confirm): Likewise.
2270 (history_expansion_p): Likewise.
2271 * tracepoint.c (disconnected_tracing): Likewise.
2272 (circular_trace_buffer): Likewise.
2273 * typeprint.c (print_methods): Likewise.
2274 (print_typedefs): Likewise.
2275 * utils.c (debug_timestamp): Likewise.
2276 (sevenbit_strings): Likewise.
2277 (pagination_enabled): Likewise.
2278 * utils.h (sevenbit_strings): Likewise.
2279 (pagination_enabled): Likewise.
2280 * valops.c (overload_resolution): Likewise.
2281 * valprint.h (struct value_print_options) <prettyformat_arrays,
2282 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2283 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2284 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2285 Likewise.
2286 * windows-nat.c (new_console): Likewise.
2287 (cygwin_exceptions): Likewise.
2288 (new_group): Likewise.
2289 (debug_exec): Likewise.
2290 (debug_events): Likewise.
2291 (debug_memory): Likewise.
2292 (debug_exceptions): Likewise.
2293 (useshell): Likewise.
2294 * windows-tdep.c (maint_display_all_tib): Likewise.
2295 * xml-support.c (debug_xml): Likewise.
2296
2297 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2298
2299 * source.c (prepare_path_for_appending): New function.
2300 (openp): Make use of new function.
2301 (find_and_open_source): Search for the compilation directory and
2302 source file as a relative path beneath the directory search path.
2303
2304 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * source-cache.c (source_cache::get_line_charpos): Catch
2307 exceptions and return false, this matches the behaviour documented
2308 in the header file.
2309
2310 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ada-tasks.c (info_task): Remove quoting of the task's name.
2313
2314 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2315
2316 * symfile.c (auto_solib_add): Replace comment with a reference
2317 to the header file.
2318
2319 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2320
2321 * NEWS: Mention that gdb can now be compiled with Python 3
2322 on Windows.
2323
2324 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * maint.c (maint_print_section_data::maint_print_section_data):
2327 Force use of 'float log10 (float)' by casting the argument to
2328 float.
2329
2330 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * maint.c: Add 'cmath' include.
2333 (struct maint_print_section_data): New structure.
2334 (print_section_index): New function.
2335 (print_bfd_section_info): Add header comment, small whitespace
2336 cleanup, and update to call new print_section_index function.
2337 (print_objfile_section_info): Likewise.
2338 (maint_obj_section_from_bfd_section): New function.
2339 (print_bfd_section_info_maybe_relocated): New function.
2340 (maintenance_info_sections): Add header comment, always use
2341 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2342
2343 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2346 inner scope, add check that the objfile has psymtabs before
2347 checking psymtabs_addrmap.
2348 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2349
2350 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2351
2352 * NEWS: Announce that Ada task names are now shown at more places,
2353 and between quotes (except in info task output).
2354 * gdb/ada-tasks.c (task_to_str): New function.
2355 (display_current_task_id): Call task_to_str.
2356 (task_command_1): Likewise.
2357 (print_ada_task_info): In non-mi mode, Properly align headers and data
2358 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2359
2360 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2361
2362 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2363 prstatus.pr_lwp.pr_info instead of making it up.
2364
2365 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2366
2367 * auto-load.c (auto_load_expand_dir_vars): Update.
2368 * defs.h (gdb_datadir): Change to std::string.
2369 (python_libdir): Likewise.
2370 (relocate_gdb_directory): Change return type to std::string.
2371 * guile/guile.c (gdbscm_data_directory): Update.
2372 (initialize_scheme_side): Update.
2373 * jit.c (jit_reader_dir): Change to std::string.
2374 (jit_reader_load_command): Update.
2375 * main.c (gdb_datadir): Change to std::string.
2376 (python_libdir): Likewise.
2377 (set_gdb_data_directory): Update.
2378 (relocate_path): Change to return std::string.
2379 (relocate_gdb_directory): Change to return std::string.
2380 (relocate_gdbinit_path_maybe_in_datadir): Update.
2381 (captured_main_1): Update.
2382 * python/python.c (do_start_initialization): Update.
2383 * top.c (show_gdb_datadir): Update.
2384 * xml-syscall.c (xml_init_syscalls_info): Update.
2385 (init_syscalls_info): Update.
2386
2387 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2388
2389 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2390 out of get_init_files.
2391 (get_init_files): Update.
2392
2393 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2394
2395 * main.c (get_init_files): Change to use std::string.
2396 (captured_main_1): Update.
2397 (print_gdb_help): Update.
2398
2399 2019-09-11 Ali Tamur <tamur@google.com>
2400
2401 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2402 implementation.
2403
2404 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2405
2406 * dbxread.c (read_dbx_symtab): Update.
2407 * dwarf2read.c (load_partial_dies): Update.
2408 * mdebugread.c (parse_partial_symbols): Update.
2409 (handle_psymbol_enumerators): Update.
2410 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2411 * psymtab.c (add_psymbol_to_bcache): Likewise.
2412 (add_psymbol_to_list): Likewise.
2413 * symtab.c (symbol_set_names): Likewise.
2414 * symtab.h (symbol_set_names): Likewise.
2415 * xcoffread.c (scan_xcoff_symtab): Update.
2416
2417 2019-09-11 Tom Tromey <tom@tromey.com>
2418
2419 * symfile-mem.c (symbol_file_add_from_memory): Use
2420 bfd_set_filename.
2421 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2422 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2423
2424 2019-09-10 Tom Tromey <tromey@adacore.com>
2425
2426 * dwarf-index-write.c (write_psymbols): Extend error message.
2427 (debug_names::insert): Add Ada code.
2428 (debug_names::write_psymbols): Remove Ada check.
2429 (debug_names) <m_string_obstack>: New member.
2430 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2431 (gdb_index_symbol_name_matcher::matches): Remove.
2432 (mapped_index_base::find_name_components_bounds): Add "lang"
2433 parameter.
2434 (mapped_index_base::build_name_components): Also split names
2435 according to Ada syntax.
2436 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2437 type of "match_callback".
2438 (check_match, check_find_bounds_finds)
2439 (dw2_expand_symtabs_matching): Update.
2440 (dw2_debug_names_iterator): Add new constructor.
2441 (dw2_debug_names_map_matching_symbols): New function.
2442 (dw2_debug_names_expand_symtabs_matching): Update.
2443 (dwarf2_debug_names_functions): Use
2444 dw2_debug_names_map_matching_symbols.
2445
2446 2019-09-10 Tom Tromey <tromey@adacore.com>
2447
2448 * dwarf2read.c (dw2_get_file_names_reader): Add the
2449 CU's file name to the results.
2450
2451 2019-09-10 Tom Tromey <tromey@adacore.com>
2452
2453 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2454 map_matching_symbols. Update.
2455 * dwarf2read.c (dw2_map_matching_symbols): Update.
2456 * psymtab.c (match_partial_symbol): Change type; update.
2457 (psym_map_matching_symbols): Likewise.
2458 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2459 type; update.
2460 * symfile.h (struct quick_symbol_functions)
2461 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2462 Remove "match".
2463
2464 2019-09-10 Tom Tromey <tromey@adacore.com>
2465
2466 * psymtab.c (map_block): Remove.
2467 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2468 * symtab.c (iterate_over_symbols_terminated): New function.
2469 * symtab.c (iterate_over_symbols_terminated): Declare.
2470
2471 2019-09-10 Tom Tromey <tromey@adacore.com>
2472
2473 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2474 * language.h (struct language_defn) <la_iterate_over_symbols>:
2475 Return bool.
2476 * symtab.c (iterate_over_symbols): Return bool.
2477 * symtab.h (iterate_over_symbols): Return bool.
2478
2479 2019-09-10 Tom Tromey <tromey@adacore.com>
2480
2481 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2482 (add_nonlocal_symbols): Update.
2483 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2484 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2485 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2486 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2487 Change type of "callback". Remove "data".
2488
2489
2490 2019-09-09 Ali Tamur <tamur@google.com>
2491
2492 * dwarf2read.c (comp_unit_head): Update comment.
2493 (dwarf2_dwo_name): New function declaration.
2494 (dwarf_unit_type_name): New function declaration.
2495 (read_comp_unit_head): Add support for new compilation units,
2496 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2497 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2498 (currently named as "signature") in their header. Also clarify error
2499 messages.
2500 (lookup_dwo_id): New function. Returns the dwo id of the given
2501 compile unit.
2502 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2503 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2504 functions.
2505 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2506 (dwarf2_dwo_name): Get the dwo name if present.
2507 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2508 purposes.
2509
2510 2019-09-09 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2513
2514 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2515
2516 * python/python.c (do_start_initialization): Make progname_copy static,
2517 to avoid a leak report.
2518
2519 2019-09-08 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2522
2523 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2524
2525 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2526 Change type to gdb::optional<block_enum>.
2527 (dw2_symtab_iter_init): Change block_index parameter type
2528 to gdb::optional<block_enum>.
2529 (dw2_lookup_symbol): Change block_index parameter
2530 type to block_enum.c
2531 (dw2_debug_names_lookup_symbol): Likewise.
2532 * psymtab.c (psym_lookup_symbol): Likewise.
2533 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2534 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2535 Likewise.
2536
2537 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2538
2539 * defs.h (relocate_gdb_directory): Change int to bool in
2540 signature and rename flag to relocatable.
2541 * main.c (relocate_path): Likewise.
2542 (relocate_gdb_directory): Likewise.
2543
2544 2019-09-06 Alan Modra <amodra@gmail.com>
2545
2546 * coffread.c (coff_symfile_read): Constify filename variable.
2547 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2548 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2549 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2550 * solib.c (reload_shared_libraries_1): Likewise.
2551 * symfile.c (reread_symbols): Likewise.
2552 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2553 * solib-darwin.c (darwin_bfd_open): Likewise.
2554 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2555
2556 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2559 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2560
2561 2019-09-03 Tom Tromey <tromey@adacore.com>
2562
2563 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2564 types.
2565 (has_negatives): Unbias a range type bound.
2566 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2567 * gdbtypes.c (operator==): Handle new field.
2568 (create_range_type): Add "bias" parameter.
2569 (create_static_range_type, resolve_dynamic_range): Update.
2570 * gdbtypes.h (struct range_bounds) <bias>: New member.
2571 (create_range_type): Add bias parameter.
2572 * printcmd.c (print_scalar_formatted): Unbias range types.
2573 * value.c (unpack_long): Unbias range types.
2574 (pack_long): Bias range types.
2575
2576 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2577
2578 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2579 probe arguments.
2580
2581 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2582
2583 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2584 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2585 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2586 (compile_probe_arg): Likewise.
2587 * probe.h (get_argument_count): Likewise.
2588 * solib-svr4.c (solib_event_probe_action): Likewise.
2589 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2590
2591 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2592
2593 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2594 code to here...
2595 (svr4_create_solib_event_breakpoints): ...from here.
2596
2597 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2598
2599 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2600 suffix from warning message.
2601
2602 2019-08-30 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-winsource.h (struct tui_source_window_base)
2605 <refresh_all>: Don't declare.
2606 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2607 Remove.
2608 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2609 tui_show_locator_content.
2610 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2611 declare.
2612 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2613 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2614 declare.
2615
2616 2019-08-30 Tom Tromey <tom@tromey.com>
2617
2618 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2619
2620 2019-08-30 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2623 Remove unnecessary forward declarations.
2624
2625 2019-08-30 Tom Tromey <tom@tromey.com>
2626
2627 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2628 rerender.
2629 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2630 tui_show_locator_content.
2631
2632 2019-08-30 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2635 (tui_locator_window::rerender): Rewrite using body of previous
2636 tui_show_locator_content.
2637
2638 2019-08-30 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2641 set_locator_fullname>: New methods.
2642 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2643 Rename from tui_set_locator_fullname.
2644 (tui_locator_window::set_locator_info): Rename from
2645 tui_set_locator_info. Return bool.
2646 (tui_update_locator_fullname, tui_show_frame_info): Update.
2647
2648 2019-08-30 Tom Tromey <tom@tromey.com>
2649
2650 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2651
2652 2019-08-30 Tom Tromey <tom@tromey.com>
2653
2654 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2655 call touchwin.
2656
2657 2019-08-30 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-wingeneral.c (box_win): Assume win_info and
2660 win_info->handle cannot be NULL.
2661
2662 2019-08-30 Tom Tromey <tom@tromey.com>
2663
2664 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2665 refresh_window>: Declare.
2666 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2667 resize.
2668 (tui_data_item_window::rerender): Rename from
2669 tui_display_register.
2670 (tui_data_item_window::refresh_window): New method.
2671 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2672 no-op.
2673
2674 2019-08-30 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2677 regs_column_count, current_group>: Move later. Now private.
2678 <get_current_group>: New method.
2679 * tui/tui-regs.c (tui_reg_command): Update.
2680 * tui/tui-layout.c (tui_set_layout): Update.
2681
2682 2019-08-30 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2685 (tui_data_window::rerender): Don't call
2686 check_and_display_highlight_if_needed.
2687 (tui_data_window::refresh_all): Remove call to
2688 erase_data_content.
2689
2690 2019-08-30 Tom Tromey <tom@tromey.com>
2691
2692 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2693 (tui_data_window::display_registers_from)
2694 (tui_data_window::display_reg_element_at_line)
2695 (tui_data_window::display_registers_from_line): Remove checks of
2696 "empty".
2697
2698 2019-08-30 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2701 Don't declare.
2702 * tui/tui-regs.c (tui_data_window::show_registers): Call
2703 rerender.
2704 (tui_data_window::rerender): Rename from display_all_data.
2705 (tui_data_window::rerender): Remove old implementation.
2706
2707 2019-08-30 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2710 text.
2711 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2712
2713 2019-08-29 Bernhard Wodok <barto@gmx.net>
2714 Sergio Durigan Junior <sergiodj@redhat.com>
2715
2716 PR win32/24284
2717 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2718
2719 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2722 when searching for types.
2723
2724 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * f-lang.c (f_language_defn): Use f_print_typedef.
2727 * f-lang.h (f_print_typedef): Declare.
2728 * f-typeprint.c (f_print_typedef): Define.
2729
2730 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2731
2732 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2733
2734 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * cli/cli-utils.c (info_print_options_defs): Delete.
2737 (make_info_print_options_def_group): Delete.
2738 (extract_info_print_options): Delete.
2739 (info_print_command_completer): Delete.
2740 (info_print_args_help): Add extra parameter, and optionally
2741 include text about -n flag.
2742 * cli/cli-utils.h (struct info_print_options): Delete.
2743 (extract_info_print_options): Delete declaration.
2744 (info_print_command_completer): Delete declaration.
2745 (info_print_args_help): Add extra parameter, extend header
2746 comment.
2747 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2748 search_symbols.
2749 * stack.c (struct info_print_options): New type.
2750 (info_print_options_defs): New file scoped variable.
2751 (make_info_print_options_def_group): New static function.
2752 (info_print_command_completer): New static function.
2753 (info_locals_command): Update to use new local functions.
2754 (info_args_command): Likewise.
2755 (_initialize_stack): Add extra parameter to calls to
2756 info_print_args_help.
2757 * symtab.c (search_symbols): Add extra parameter, use this to
2758 possibly excluse non-debug symbols.
2759 (symtab_symbol_info): Add extra parameter, which is passed on to
2760 search_symbols.
2761 (struct info_print_options): New type.
2762 (info_print_options_defs): New file scoped variable.
2763 (make_info_print_options_def_group): New static function.
2764 (info_print_command_completer): New static function.
2765 (info_variables_command): Update to use local functions, and pass
2766 extra parameter through to symtab_symbol_info.
2767 (info_functions_command): Likewise.
2768 (info_types_command): Pass additional argument through to
2769 symtab_symbol_info.
2770 (rbreak_command): Pass extra argument to search_symbols.
2771 (_initialize_symtab): Add extra arguments for calls to
2772 info_print_args_help, and update help text for 'info variables',
2773 'whereis', and 'info functions' commands.
2774 * symtab.h (search_symbols): Add extra argument to declaration.
2775 * NEWS: Mention new flags.
2776
2777 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2778
2779 * symtab.c (lookup_static_symbol): Call the new function (and move
2780 it down to be next to lookup_global_symbol).
2781 (struct global_sym_lookup_data): Add block_enum member and rename to...
2782 (struct global_or_static_sym_lookup_data): ...this.
2783 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2784 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2785 (lookup_symbol_global_or_static_iterator_cb): ...this.
2786 (lookup_global_or_static_symbol): New function.
2787 (lookup_global_symbol): Call new function.
2788
2789 2019-08-26 Tom de Vries <tdevries@suse.de>
2790
2791 PR c++/24852
2792 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2793 when pc_probe.prob == NULL.
2794
2795 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2798 variable symbol_linkage to symbol_linkage_.
2799
2800 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2803 represent whether the symbol is static, dynamic, or we don't
2804 know.
2805
2806 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2807
2808 * gdb/rx-tdep.c (rx_register_names): New.
2809 (rx_register_name): Delete.
2810 (rx_psw_type): Delete.
2811 (rx_fpsw_type): Delete.
2812 (rx_register_type): Delete.
2813 (rx_gdbarch_init): Convert target-descriptions.
2814 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2815 * gdb/features/Makefile: Add rx.xml.
2816 * gdb/features/rx.xml: New.
2817 * gdb/features/rx.c: Generated.
2818 * gdb/NEWS: Mention target description support.
2819
2820 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2821
2822 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2823 *slot_ptr.
2824
2825 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2826
2827 * configure.ac: Don't check for 'dlfcn.h' (moved to
2828 gdbsupport/common.m4).
2829 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2830 'gdbsupport/'.
2831 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2832 * compile/compile-c-support.c: Include
2833 'gdbsupport/gdb-dlfcn.h'.
2834 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2835 * gdb-dlfcn.c: Move to...
2836 * gdbsupport/gdb-dlfcn.c: ... here.
2837 * gdb-dlfcn.h: Move to...
2838 * gdbsupport/gdb-dlfcn.h: ... here.
2839
2840 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2841
2842 * nios2-tdep.c (struct reg_value): Improve comments. Make
2843 the offset field signed.
2844
2845 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2846
2847 * python/lib/gdb/__init__.py (_execute_file): New function.
2848 * python/python.c (python_run_simple_file): Call gdb._execute_file
2849 on Windows.
2850
2851 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2854 all uses as this was never set to anything but a zero value.
2855
2856 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2857
2858 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2859
2860 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2861
2862 * tui/tui-data.h (tui_gen_win_info): Add an =default
2863 move constructor, required by some GCC versions.
2864
2865 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2866
2867 * go32-nat.c (go32_sysinfo): Add hygon_p.
2868
2869 2019-08-20 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2872 line_from_reg_element_no, first_reg_element_no_inline,
2873 display_all_data, delete_data_content_windows,
2874 erase_data_content>: Now private.
2875
2876 2019-08-20 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2879 (tui_unhighlight_win, tui_highlight_win)
2880 (tui_win_info::make_window): Update.
2881 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2882
2883 2019-08-20 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2886 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2887 (MAX_PID_WIDTH): Move to tui-stack.c.
2888 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2889 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2890 (MAX_PID_WIDTH): Move from tui-data.h.
2891
2892 2019-08-20 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2895 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2896 (box_win): Update.
2897 (tui_gen_win_info::make_window): Rename from tui_make_window.
2898 (tui_win_info::make_window): New method.
2899 (tui_gen_win_info::make_visible): Update.
2900 * tui/tui-source.c (tui_source_window::set_contents): Update.
2901 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2902 (tui_data_window::display_registers_from): Update.
2903 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2904 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2905 Declare.
2906 <can_box>: Remove.
2907 <title>: Remove.
2908 (struct tui_win_info) <make_window>: Declare.
2909 <can_box>: Now virtual.
2910 <title>: New member.
2911 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2912 * tui/tui-command.c (tui_cmd_window::resize): Update.
2913
2914 2019-08-20 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2917 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2918 (tui_data_window::check_register_values): Update.
2919
2920 2019-08-20 Tom Tromey <tom@tromey.com>
2921
2922 * tui/tui-regs.h (struct tui_data_window): Use
2923 DISABLE_COPY_AND_ASSIGN.
2924 <regs_content>: Change type, removing unique_ptr.
2925 <tui_data_window>: Add move constructor.
2926 * tui/tui-regs.c (tui_data_window::show_registers)
2927 (tui_data_window::show_register_group)
2928 (tui_data_window::display_registers_from)
2929 (tui_data_window::display_registers_from)
2930 (tui_data_window::first_data_item_displayed)
2931 (tui_data_window::delete_data_content_windows)
2932 (tui_data_window::rerender, tui_data_window::refresh_window)
2933 (tui_data_window::check_register_values): Update.
2934
2935 2019-08-20 Tom Tromey <tom@tromey.com>
2936
2937 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2938 show_register_group>: Declare.
2939 (tui_show_register_group): Don't declare.
2940 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2941 tui_show_registers.
2942 (tui_data_window::show_register_group): Rename from
2943 tui_show_register_group.
2944 (tui_data_window::check_register_values, tui_reg_command):
2945 Update.
2946 * tui/tui-layout.c (tui_set_layout): Update.
2947
2948 2019-08-20 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2951 Declare.
2952 (tui_check_register_values): Don't declare.
2953 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2954 from tui_check_register_values.
2955 * tui/tui-hooks.c (tui_register_changed): Update.
2956
2957 2019-08-20 Tom Tromey <tom@tromey.com>
2958
2959 * tui/tui-regs.c (tui_reg_layout): Move later.
2960 (tui_show_registers): Don't enable TUI mode or change layout.
2961
2962 2019-08-20 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-regs.h (struct tui_data_item_window)
2965 <~tui_data_item_window>: Remove.
2966 <content>: Now a unique_xmalloc_ptr.
2967 * tui/tui-regs.c (tui_register_format): Return a
2968 unique_xmalloc_ptr.
2969 (tui_get_register): Update.
2970 (~tui_data_item_window): Remove.
2971 (tui_data_window::display_registers_from, tui_display_register):
2972 Update.
2973 * tui/tui-io.h (tui_expand_tabs): Update.
2974 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2975 Remove "col" parameter.
2976
2977 2019-08-20 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2980 field.
2981 * tui/tui-regs.c (~tui_data_item_window): Update.
2982
2983 2019-08-20 Tom Tromey <tom@tromey.com>
2984
2985 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2986 earlier.
2987
2988 2019-08-20 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2991
2992 2019-08-20 Tom Tromey <tom@tromey.com>
2993
2994 * tui/tui-source.h (struct tui_source_window): Update.
2995 * tui/tui-regs.c (tui_show_registers): Update.
2996 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2997 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2998 (NO_REGS_STRING): Remove defines.
2999
3000 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3001
3002 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3003 unnecessary thread walk if remote doesn't support the packet.
3004
3005 2019-08-19 Tom Tromey <tromey@adacore.com>
3006
3007 * python/py-value.c (value_has_field): Fix indentation.
3008
3009 2019-08-19 Tom Tromey <tromey@adacore.com>
3010
3011 * printcmd.c (do_one_display, info_display_command): Update.
3012 * block.h (contained_in): Return bool. Add allow_nested
3013 parameter.
3014 * block.c (contained_in): Return bool. Add allow_nested
3015 parameter.
3016
3017 2019-08-19 Tom Tromey <tom@tromey.com>
3018
3019 * configure: Rebuild.
3020 * configure.ac: Disallow the combination of -static-libstdc++ and
3021 source highlight.
3022 * source-cache.c (get_language_name): Handle rust.
3023 (source_cache::get_source_lines): Ignore highlighting exceptions.
3024
3025 2019-08-16 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3028 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3029 (struct tui_source_window_base) <make_visible, refresh_window,
3030 resize>: Remove methods.
3031 <execution_info>: Remove field.
3032 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3033 (tui_show_source_line, tui_source_window_base)
3034 (~tui_source_window_base): Update.
3035 (tui_source_window_base::resize)
3036 (tui_source_window_base::make_visible)
3037 (tui_source_window_base::refresh_window): Remove.
3038 (tui_source_window_base::update_exec_info): Update.
3039 * tui/tui-source.c (tui_source_window::set_contents): Update.
3040 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3041
3042 2019-08-16 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3045 deprecated_query_hook.
3046
3047 2019-08-16 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3050 (tui_update_source_windows_with_line): Update.
3051 * tui/tui-source.h (struct tui_source_window)
3052 <show_symtab_source>: Declare.
3053 (tui_show_symtab_source): Don't declare.
3054 * tui/tui-source.c (tui_show_symtab_source): Rename from
3055 tui_show_symtab_source.
3056
3057 2019-08-16 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-winsource.h (struct tui_source_window_base)
3060 <set_contents>: Declare.
3061 * tui/tui-winsource.c
3062 (tui_source_window_base::update_source_window_as_is): Update.
3063 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3064 Declare.
3065 (tui_set_source_content): Don't declare.
3066 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3067 tui_set_source_content.
3068 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3069 Declare.
3070 (tui_set_disassem_content): Don't declare.
3071 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3072 tui_set_disassem_content.
3073
3074 2019-08-16 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-winsource.h (struct tui_source_window_base)
3077 <update_breakpoint_info>: Declare.
3078 (tui_update_breakpoint_info): Don't declare.
3079 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3080 (tui_update_all_breakpoint_info): Update.
3081 (tui_source_window_base::update_breakpoint_info): Rename from
3082 tui_update_breakpoint_info.
3083 (tui_source_window_base::update_exec_info): Update.
3084
3085 2019-08-16 Tom Tromey <tom@tromey.com>
3086
3087 * tui/tui-winsource.h (struct tui_source_window_base)
3088 <update_source_window>: Declare.
3089 (tui_update_source_window): Don't declare.
3090 * tui/tui-winsource.c
3091 (tui_source_window_base::update_source_window): Rename from
3092 tui_update_source_window.
3093 (tui_source_window_base::rerender): Update.
3094 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3095 * tui/tui-disasm.c (tui_show_disassem)
3096 (tui_show_disassem_and_update_source)
3097 (tui_disasm_window::maybe_update): Update.
3098
3099 2019-08-16 Tom Tromey <tom@tromey.com>
3100
3101 * tui/tui-winsource.h (struct tui_source_window_base)
3102 <update_source_window_as_is>: Declare.
3103 (tui_update_source_window_as_is): Don't declare.
3104 * tui/tui-winsource.c (tui_update_source_window): Update
3105 (tui_source_window_base::update_source_window_as_is): Rename from
3106 tui_update_source_window_as_is.
3107 (tui_source_window_base::refill): Update.
3108 * tui/tui-source.c (tui_show_symtab_source): Update.
3109 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3110 Update.
3111
3112 2019-08-16 Tom Tromey <tom@tromey.com>
3113
3114 * tui/tui-winsource.h (tui_update_source_window)
3115 (tui_update_source_window_as_is): Remove "noerror" parameter.
3116 * tui/tui-winsource.c (tui_update_source_window)
3117 (tui_update_source_window_as_is): Remove "noerror" parameter.
3118 (tui_update_source_windows_with_addr)
3119 (tui_update_source_windows_with_line)
3120 (tui_source_window_base::rerender)
3121 (tui_source_window_base::refill): Update.
3122 * tui/tui-source.h (tui_set_source_content)
3123 (tui_show_symtab_source): Remove "noerror" parameter.
3124 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3125 parameter.
3126 (tui_show_symtab_source): Likewise.
3127 (tui_source_window::maybe_update): Update.
3128 * tui/tui-disasm.c (tui_show_disassem)
3129 (tui_show_disassem_and_update_source)
3130 (tui_disasm_window::do_scroll_vertical)
3131 (tui_disasm_window::maybe_update): Update.
3132
3133 2019-08-16 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui.c (tui_is_window_visible): Update.
3136 * tui/tui-wingeneral.c (tui_make_window)
3137 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3138 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3139 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3140 (tui_set_win_height_command, parse_scrolling_args): Update.
3141 * tui/tui-source.c (tui_source_window::style_changed): Update.
3142 * tui/tui-regs.c (tui_show_registers)
3143 (tui_data_window::first_data_item_displayed)
3144 (tui_data_window::delete_data_content_windows)
3145 (tui_check_register_values, tui_reg_command): Update.
3146 * tui/tui-disasm.c (tui_show_disassem): Update.
3147 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3148 method.
3149 <is_visible>: Remove field.
3150 * tui/tui-data.c (tui_next_win, tui_prev_win)
3151 (tui_delete_invisible_windows): Update.
3152
3153 2019-08-16 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-winsource.h (struct tui_source_window_base)
3156 <m_has_locator>: Remove.
3157 * tui/tui-layout.c (show_source_disasm_command, show_data)
3158 (show_source_or_disasm_and_command): Update.
3159
3160 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3161
3162 * NEWS (Other MI changes): New subsection.
3163 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3164 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3165 * arch-utils.c (default_get_pc_address_flags): New function.
3166 * arch-utils.h (default_get_pc_address_flags): New declaration.
3167 * gdbarch.sh: Add get_pc_address_flags.
3168 * gdbarch.c: Regenerate.
3169 * gdbarch.h: Likewise.
3170 * stack.c (print_pc): New function.
3171 (print_frame_info) (print_frame): Call print_pc.
3172
3173 2019-08-16 Tom de Vries <tdevries@suse.de>
3174
3175 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3176 print_objfile_section_info.
3177
3178 2019-08-15 Tom Tromey <tom@tromey.com>
3179
3180 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3181 calling update_cmdwin_start_line.
3182 * tui/tui-winsource.h (struct tui_source_window_base)
3183 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3184 <rerender>: Declare.
3185 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3186 Call rerender.
3187 (tui_source_window_base::set_new_height): Remove.
3188 (tui_source_window_base::rerender): Rename from
3189 do_make_visible_with_new_height.
3190 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3191 resize method.
3192 (tui_win_info::make_invisible_and_set_new_height)
3193 (tui_win_info::make_visible_with_new_height): Remove.
3194 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3195 Declare.
3196 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3197 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3198 do_make_visible_with_new_height>: Don't declare.
3199 <rerender>: Declare.
3200 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3201 set_new_height.
3202 (tui_data_window::do_make_visible_with_new_height): Remove.
3203 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3204 call tui_show_locator_content.
3205 (tui_gen_win_info::resize): Call rerender.
3206 (show_source_or_disasm_and_command): Don't call
3207 tui_show_locator_content.
3208 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3209 method.
3210 (struct tui_win_info) <rerender>: Declare.
3211 <set_new_height, make_invisible_and_set_new_height,
3212 make_visible_with_new_height>: Don't declare.
3213 * tui/tui-data.c (tui_win_list::rerender): New method.
3214 * tui/tui-command.h (struct tui_cmd_window)
3215 <do_make_visible_with_new_height>: Don't declare.
3216 * tui/tui-command.c
3217 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3218
3219 2019-08-15 Tom Tromey <tromey@adacore.com>
3220
3221 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3222 * ada-lang.c (ada_enum_name): Likewise.
3223
3224 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3225
3226 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3227 leading underscore.
3228 (GdbOutputErrorFile): Likewise.
3229 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3230 accordingly.
3231 (execute_unwinders): Rename to have a leading underscore.
3232 (auto_load_packages): Likewise.
3233 (global scope): Adjust call to auto_load_packages accordingly.
3234 (GdbSetPythonDirectory): Likewise.
3235 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3236 instead of execute_unwinders.
3237
3238 2019-08-15 Tom Tromey <tom@tromey.com>
3239
3240 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3241 (show_data): Don't change window visibility.
3242 (tui_gen_win_info::resize): Remove special case for command
3243 window. Use wresize, when available.
3244 (show_source_or_disasm_and_command): Don't change window
3245 visibility.
3246 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3247 <make_visible>: New method.
3248 * tui/tui-command.c (tui_cmd_window::resize): New method.
3249
3250 2019-08-15 Tom Tromey <tom@tromey.com>
3251
3252 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3253 (struct tui_source_windows): New.
3254 * tui/tui-winsource.c (tui_display_main): Update.
3255 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3256 (new_height_ok, parse_scrolling_args): Update.
3257 * tui/tui-layout.c (show_layout, show_data): Update.
3258 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3259 (tui_add_to_source_windows): Don't declare.
3260 * tui/tui-data.c (source_windows, tui_source_windows)
3261 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3262
3263 2019-08-15 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3266 Rename from reset.
3267 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3268 * tui/tui-layout.c (show_source_disasm_command, show_data):
3269 Update.
3270 (tui_gen_win_info::resize): Rename.
3271 (show_source_or_disasm_and_command): Update.
3272 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3273 reset.
3274
3275 2019-08-15 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3278 * tui/tui-interp.c (tui_interp::init): Don't call
3279 tui_initialize_static_data.
3280 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3281
3282 2019-08-15 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3285 examine tui_win_list.
3286
3287 2019-08-15 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3290 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3291 tui_clear_source_content.
3292 (tui_clear_source_content): Remove.
3293 (tui_source_window_base::do_erase_source_content): Hoist call to
3294 content.clear().
3295 * tui/tui-stack.c (tui_show_frame_info): Don't call
3296 tui_clear_source_content.
3297
3298 2019-08-15 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui-winsource.h (struct tui_source_window_base)
3301 <do_erase_source_content>: New method.
3302 <erase_source_content>: New method.
3303 (tui_erase_source_content): Don't declare.
3304 * tui/tui-winsource.c (tui_clear_source_content): Update.
3305 (tui_source_window_base::do_erase_source_content): Rename from
3306 tui_erase_source_content.
3307 (tui_source_window_base::show_source_content): Update.
3308 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3309 * tui/tui-source.h (struct tui_source_window)
3310 <erase_source_content>: New method.
3311 * tui/tui-disasm.h (struct tui_disasm_window)
3312 <erase_source_content>: New method.
3313
3314 2019-08-15 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3317 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3318 constructor.
3319 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3320 * tui/tui-source.c (tui_set_source_content): Update.
3321 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3322
3323 2019-08-15 Tom Tromey <tom@tromey.com>
3324
3325 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3326 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3327 tui-source.c.
3328 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3329 Declare.
3330 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3331 method.
3332 (tui_source_window::maybe_update): Update.
3333
3334 2019-08-15 Tom Tromey <tom@tromey.com>
3335
3336 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3337 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3338 tui-disasm.c.
3339 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3340 Declare.
3341 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3342 method.
3343 (tui_disasm_window::maybe_update): Update.
3344
3345 2019-08-15 Tom Tromey <tom@tromey.com>
3346
3347 * tui/tui-winsource.h (struct tui_source_window_base)
3348 <maybe_update>: Declare.
3349 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3350 method.
3351 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3352 Declare.
3353 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3354 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3355 Declare.
3356 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3357
3358 2019-08-15 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3361
3362 2019-08-15 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-wingeneral.c: Include tui-stack.h.
3365 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3366 (struct tui_locator_window): Move from tui-data.h.
3367 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3368 (tui_initialize_static_data): Move from tui-data.c.
3369 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3370 (struct tui_locator_window): Move to tui-stack.c.
3371 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3372 (tui_initialize_static_data): Move to tui-stack.c.
3373
3374 2019-08-15 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-layout.c (show_source_disasm_command)
3377 (show_source_or_disasm_and_command): Use make_visible method, not
3378 tui_make_window.
3379 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3380 Remove.
3381
3382 2019-08-15 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-wingeneral.h (tui_make_window): Update.
3385 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3386 parameter.
3387 (tui_gen_win_info::make_visible): Update.
3388 * tui/tui-regs.c (tui_data_window::display_registers_from):
3389 Update.
3390 * tui/tui-layout.c (show_source_disasm_command)
3391 (show_source_or_disasm_and_command): Update.
3392 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3393 (enum tui_box): Remove.
3394 (struct tui_win_info) <can_box>: New method.
3395 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3396 method.
3397
3398 2019-08-15 Tom de Vries <tdevries@suse.de>
3399
3400 * linux-nat-trad.c: Include gdbarch.h.
3401
3402 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3403
3404 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3405 register sizes.
3406
3407 2019-08-14 Tom Tromey <tromey@adacore.com>
3408
3409 * darwin-nat.c: Include gdbarch.h.
3410 * darwin-nat-info.c: Include gdbarch.h.
3411
3412 2019-08-13 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3415 Remove.
3416 * tui/tui-data.c (tui_initialize_static_data): Update.
3417
3418 2019-08-13 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-winsource.h (struct tui_exec_info_window)
3421 <~tui_exec_info_window, maybe_allocate_content, get_content,
3422 m_content>: Remove.
3423 (struct tui_source_window_base) <set_exec_info_content,
3424 show_exec_info_content>: Don't declare.
3425 * tui/tui-winsource.c
3426 (tui_exec_info_window::maybe_allocate_content): Remove.
3427 (tui_source_window_base::update_exec_info): Rename from
3428 set_exec_info_content.
3429 (tui_source_window_base::show_exec_info_content)
3430 (tui_source_window_base::update_exec_info): Remove.
3431
3432 2019-08-13 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3435 declare.
3436 * tui/tui-winsource.c (tui_update_source_window_as_is)
3437 (tui_update_source_windows_with_addr, tui_erase_source_content):
3438 Update.
3439 (tui_clear_exec_info_content): Remove.
3440
3441 2019-08-13 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3444 declare.
3445 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3446 call tui_erase_exec_info_content.
3447 (tui_clear_exec_info_content): Rename from
3448 tui_erase_exec_info_content.
3449 (tui_clear_exec_info_content): Delete.
3450
3451 2019-08-13 Tom Tromey <tom@tromey.com>
3452
3453 * tui/tui-winsource.h (struct tui_source_window_base)
3454 <show_exec_info_content>: Declare.
3455 (tui_show_exec_info_content): Don't declare.
3456 * tui/tui-winsource.c
3457 (tui_source_window_base::show_exec_info_content): Rename from
3458 tui_show_exec_info_content.
3459 (tui_source_window_base::update_exec_info): Update.
3460
3461 2019-08-13 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3464 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3465 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3466 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3467 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3468 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3469 ... here.
3470
3471 2019-08-13 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui-winsource.h (struct tui_source_window_base)
3474 <update_exec_info>: Declare.
3475 (tui_update_exec_info): Don't declare.
3476 * tui/tui-winsource.c (tui_update_source_window_as_is)
3477 (tui_source_window_base::refresh_all)
3478 (tui_update_all_breakpoint_info): Update.
3479 (tui_source_window_base::update_exec_info): Rename from
3480 tui_update_exec_info.
3481 * tui/tui-stack.c (tui_show_frame_info): Update.
3482
3483 2019-08-13 Tom Tromey <tom@tromey.com>
3484
3485 * tui/tui-winsource.h (struct tui_source_window_base)
3486 <set_exec_info_content>: Declare.
3487 (tui_set_exec_info_content): Don't declare.
3488 * tui/tui-winsource.c
3489 (tui_source_window_base::set_exec_info_content): Rename from
3490 tui_set_exec_info_content.
3491 (tui_update_exec_info): Update.
3492
3493 2019-08-13 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-winsource.h (struct tui_source_window_base)
3496 <show_source_content>: Declare.
3497 (tui_show_source_content): Don't declare.
3498 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3499 (tui_source_window_base::show_source_content): Rename from
3500 tui_show_source_content.
3501 (tui_source_window_base::refresh_all): Update.
3502 * tui/tui-layout.c (show_source_disasm_command)
3503 (show_source_or_disasm_and_command): Update.
3504
3505 2019-08-13 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-winsource.c (tui_erase_source_content)
3508 (tui_show_source_content, tui_source_window_base::refresh_all):
3509 Update.
3510 * tui/tui-wingeneral.h
3511 (tui_check_and_display_highlight_if_needed): Don't declare.
3512 * tui/tui-wingeneral.c
3513 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3514 check_and_display_highlight_if_needed.
3515 * tui/tui-win.c (tui_rehighlight_all)
3516 (tui_win_info::make_visible_with_new_height): Update.
3517 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3518 (tui_data_window::erase_data_content)
3519 (tui_data_window::display_all_data): Update.
3520 * tui/tui-data.h (struct tui_win_info)
3521 <check_and_display_highlight_if_needed>: Declare.
3522
3523 2019-08-13 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-win.c (tui_resize_all): Call
3526 tui_delete_invisible_windows.
3527 * tui/tui-layout.c (show_layout): Call
3528 tui_delete_invisible_windows.
3529 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3530 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3531
3532 2019-08-13 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3535 tui_add_win_to_layout.
3536
3537 2019-08-13 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3540 * tui/tui-layout.c (tui_default_win_height): Now static.
3541
3542 2019-08-13 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3545 single switch.
3546 (show_source_disasm_command, show_source_or_disasm_and_command):
3547 Don't check current layout.
3548
3549 2019-08-13 Tom Tromey <tom@tromey.com>
3550
3551 * tui/tui-wingeneral.c (make_all_visible): Remove.
3552 (tui_make_all_invisible): Simplify.
3553 * tui/tui-layout.c (tui_make_all_invisible): Move from
3554 tui-wingeneral.c; simplify.
3555 (show_layout): Hoist call to tui_make_all_invisible.
3556 (show_data): Don't call tui_make_all_invisible.
3557
3558 2019-08-13 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3561 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3562
3563 2019-08-13 Tom Tromey <tom@tromey.com>
3564
3565 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3566 tui-data.c.
3567 (show_source_disasm_command, show_data)
3568 (show_source_or_disasm_and_command): Don't use
3569 tui_set_current_layout_to.
3570 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3571 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3572 tui-layout.c.
3573 (tui_set_current_layout_to): Remove.
3574
3575 2019-08-13 Tom Tromey <tom@tromey.com>
3576
3577 * tui/tui-layout.c (tui_set_layout): Update.
3578 * tui/tui-data.h (struct tui_layout_def): Remove.
3579 (tui_layout_def): Don't declare.
3580 * tui/tui-data.c (layout_def): Remove.
3581 (tui_layout_def): Remove.
3582
3583 2019-08-13 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-winsource.h (struct tui_source_window_base)
3586 <clear_detail>: No longer "override".
3587 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3588 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3589 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3590 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3591 Remove.
3592 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3593
3594 2019-08-13 Tom Tromey <tromey@adacore.com>
3595
3596 * tracepoint.c: Don't include readline.h or history.h.
3597
3598 2019-08-12 Tom Tromey <tom@tromey.com>
3599
3600 * configure: Rebuild.
3601 * configure.ac: Check for readline 7.
3602 * NEWS: Mention readline 7 requirement.
3603 * README: Update.
3604
3605 2019-08-12 Tom Tromey <tom@tromey.com>
3606
3607 * mingw-hdep.c (gdb_select): Remove readline hack.
3608
3609 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3610
3611 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3612 when the function fails.
3613
3614 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3615
3616 * s390-tdep.c (s390_type_align): New function.
3617 (s390_gdbarch_init): Set it as type_align gdbarch method.
3618
3619 2019-08-09 Tom de Vries <tdevries@suse.de>
3620
3621 PR gdb/24591
3622 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3623 pc_low with relocation offset.
3624
3625 2019-08-07 Tom Tromey <tromey@adacore.com>
3626
3627 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3628 (print_frame_args): Update.
3629 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3630 Update.
3631 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3632 * frame.h (struct frame_arg): Add initializers.
3633 <error>: Now a unique_xmalloc_ptr.
3634
3635 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3636
3637 * NEWS: Expand the Pointer Authentication entry.
3638 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3639 (aarch64_frame_unmask_lr): ... to this.
3640 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3641 Call aarch64_frame_unmask_lr.
3642 * frame.c (struct frame_info): Add "masked" variable.
3643 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3644 (fprint_frame): Check for masked pc.
3645 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3646 declarations.
3647 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3648 * stack.c (print_frame): Check for masked pc.
3649
3650 2019-08-06 Tom Tromey <tom@tromey.com>
3651
3652 * stabsread.c (patch_block_stabs, read_one_struct_field)
3653 (read_enum_type): Use obstack_strndup.
3654 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3655 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3656 * dwarf2read.c (guess_full_die_structure_name)
3657 (anonymous_struct_prefix): Use obstack_strndup.
3658 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3659 * c-exp.y (yylex): Use obstack_strndup.
3660 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3661 (write_var_or_type): Use obstack_strndup.
3662
3663 2019-08-06 Tom Tromey <tom@tromey.com>
3664
3665 * symfile.c (reread_symbols): Use obstack_strdup.
3666 * stabsread.c (read_type): Use obstack_strdup.
3667 * gdb_obstack.h (obstack_strdup): New overload.
3668 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3669 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3670 (dwarf2_canonicalize_name): Use obstack_strdup.
3671 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3672 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3673 Use obstack_strdup.
3674
3675 2019-08-06 Tom Tromey <tom@tromey.com>
3676
3677 * gdb_obstack.h (obstack_strdup): Define.
3678 * gdb_obstack.c (obstack_strdup): Don't define.
3679
3680 2019-08-06 Tom Tromey <tom@tromey.com>
3681
3682 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3683 obstack_strdup.
3684 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3685 obstack_strdup.
3686 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3687 * stabsread.c (common_block_start): Use obstack_strdup.
3688 * objfiles.c (set_objfile_main_name, objfile): Use
3689 obstack_strdup.
3690 * namespace.c (add_using_directive): Use obstack_strdup.
3691 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3692 * jit.c (finalize_symtab): Use obstack_strdup.
3693 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3694 (guess_partial_die_structure_name, partial_die_info::fixup)
3695 (dwarf2_name): Use obstack_strdup.
3696 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3697 obstack_strdup.
3698 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3699 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3700 obstack_strdup.
3701 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3702
3703 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3704
3705 * unittests/help-doc-selftests.c: New file.
3706 * Makefile.in: Add the new file.
3707
3708 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3709
3710 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3711 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3712 the full first line, except when FOR_VALUE_PREFIX. In this case,
3713 the trailing '.' is not output, and the first character is uppercased.
3714 (print_help_for_command): Update call to print_doc_line.
3715 (print_doc_of_command): Likewise.
3716 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3717 * cli/cli-option.c (append_indented_doc): Do not append newline.
3718 (build_help_option): Append newline after first appended_indented_doc
3719 only if a second call is done.
3720 (build_help): Append 2 new lines before each option, except the first
3721 one.
3722 * compile/compile.c (_initialize_compile): Add new lines after
3723 %OPTIONS%, when not at the end of the help.
3724 Change help doc or code
3725 producing the help doc to respect the invariants.
3726 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3727 Also removed the new line after 'Options:', as all other commands
3728 do not put an empty line between 'Options:' and the first option.
3729 * printcmd.c (_initialize_printcmd): Likewise.
3730 * stack.c (_initialize_stack): Likewise.
3731 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3732 incorrectly telling COMMAND is optional.
3733 * ada-lang.c (_initialize_ada_language): Change help doc or code
3734 producing the help doc to respect the invariants.
3735 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3736 * breakpoint.c (_initialize_breakpoint): Likewise.
3737 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3738 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3739 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3740 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3741 _initialize_cli_style): Likewise.
3742 * corelow.c (core_target_info): Likewise.
3743 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3744 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3745 * filesystem.c (_initialize_filesystem): Likewise.
3746 * frame.c (_initialize_frame): Likewise.
3747 * gnu-nat.c (add_task_commands): Likewise.
3748 * infcall.c (_initialize_infcall): Likewise.
3749 * infcmd.c (_initialize_infcmd): Likewise.
3750 * interps.c (_initialize_interpreter): Likewise.
3751 * language.c (_initialize_language): Likewise.
3752 * linux-fork.c (_initialize_linux_fork): Likewise.
3753 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3754 * maint.c (_initialize_maint_cmds): Likewise.
3755 * memattr.c (_initialize_mem): Likewise.
3756 * printcmd.c (_initialize_printcmd): Likewise.
3757 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3758 _RegEx): Likewise.
3759 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3760 * record-btrace.c (_initialize_record_btrace): Likewise.
3761 * record-full.c (_initialize_record_full): Likewise.
3762 * record.c (_initialize_record): Likewise.
3763 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3764 * regcache.c (_initialize_regcache): Likewise.
3765 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3766 _initialize_remote): Likewise.
3767 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3768 * serial.c (_initialize_serial): Likewise.
3769 * skip.c (_initialize_step_skip): Likewise.
3770 * source.c (_initialize_source): Likewise.
3771 * stack.c (_initialize_stack): Likewise.
3772 * symfile.c (_initialize_symfile): Likewise.
3773 * symtab.c (_initialize_symtab): Likewise.
3774 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3775 * top.c (init_main): Likewise.
3776 * tracefile-tfile.c (tfile_target_info): Likewise.
3777 * tracepoint.c (_initialize_tracepoint): Likewise.
3778 * tui/tui-win.c (_initialize_tui_win): Likewise.
3779 * utils.c (add_internal_problem_command): Likewise.
3780 * valprint.c (value_print_option_defs): Likewise.
3781
3782 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3783
3784 PR build/24886
3785 * configure.ac: Drop enable-libmcheck support.
3786 * configure, config.in: Rebuild.
3787 * libmcheck.m4: Remove.
3788 * acinclude.m4: Don't include it.
3789 * Makefile.in: Don't distribute it.
3790 * top.c (print_gdb_configuration): Don't mention it.
3791
3792 2019-08-06 Tom Tromey <tom@tromey.com>
3793
3794 * utils.c (set_output_style): Sometimes pass stream to
3795 emit_style_escape.
3796 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3797 * record-btrace.c (btrace_insn_history): Update.
3798 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3799 method.
3800 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3801 Update initializers.
3802 <m_uiout>: New field.
3803 <m_di>: Move lower.
3804 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3805 Remove "uiout" parameter.
3806 (dump_insns): Update.
3807 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3808 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3809
3810 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3811
3812 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3813 (error_in_psymtab_expansion): Likewise.
3814 (lookup_symbol_via_quick_fns): Likewise.
3815 (basic_lookup_transparent_type_quick): Likewise.
3816 (basic_lookup_transparent_type_1): Likewise.
3817
3818 2019-08-06 Tom Tromey <tromey@adacore.com>
3819
3820 * source.c (last_source_error): Now bool.
3821 (print_source_lines_base): Make "noprint" bool. Only open
3822 source file when last_source_visited changes.
3823
3824 2019-08-06 Tom Tromey <tromey@adacore.com>
3825
3826 * annotate.c (annotate_source_line): Use g_source_cache.
3827 * source-cache.c (source_cache::get_plain_source_lines): Change
3828 parameters. Populate m_offset_cache.
3829 (source_cache::ensure): New method.
3830 (source_cache::get_line_charpos): New method.
3831 (extract_lines): Move lower. Change parameters.
3832 (source_cache::get_source_lines): Move lower.
3833 * source-cache.h (class source_cache): Update comment.
3834 <get_line_charpos>: New method.
3835 <get_source_lines>: Update comment.
3836 <clear>: Clear m_offset_cache.
3837 <get_plain_source_lines>: Change parameters.
3838 <ensure>: New method
3839 <m_offset_cache>: New member.
3840 * source.c (forget_cached_source_info_for_objfile): Update.
3841 (info_source_command): Use g_source_cache.
3842 (find_source_lines, open_source_file_with_line_charpos): Remove.
3843 (print_source_lines_base, search_command_helper): Use g_source_cache.
3844 * source.h (open_source_file_with_line_charpos): Don't declare.
3845 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3846 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3847 Use g_source_cache.
3848
3849 2019-08-06 Tom Tromey <tromey@adacore.com>
3850
3851 * source-cache.c (source_cache::get_plain_source_lines):
3852 Remove "first_line" and "last_line" parameters.
3853 (source_cache::get_source_lines): Cache plain text.
3854 * source-cache.h (class source_cache)
3855 <get_plain_source_lines>: Update.
3856
3857 2019-08-06 Tom Tromey <tromey@adacore.com>
3858
3859 * source-cache.c (extract_lines): No longer a method.
3860 Changed type of parameter. Include final newline.
3861 (selftests::extract_lines_test): New function.
3862 (_initialize_source_cache): Likewise.
3863 * source-cache.h (class source_cache)
3864 <extract_lines>: Don't declare.
3865
3866 2019-08-06 Tom Tromey <tromey@adacore.com>
3867
3868 * breakpoint.c (init_breakpoint_sal): Update.
3869 (breakpoint): Update.
3870 * breakpoint.h (struct breakpoint) <filter>: Now a
3871 unique_xmalloc_ptr.
3872
3873 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3874
3875 * NEWS: Mention dictionary access on blocks.
3876 * python/py-block.c (blpy_getitem): New function.
3877 (block_object_as_mapping): New struct.
3878 (block_object_type): Use new struct for tp_as_mapping field.
3879
3880 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3881
3882 * objfiles.h (objfile): Add a comment describing partial symbols.
3883
3884 2019-08-05 Tom Tromey <tromey@adacore.com>
3885
3886 * compile/compile.c (_initialize_compile): Use _(), not N_().
3887 * thread.c (_initialize_thread): Use _(), not N_().
3888 * stack.c (_initialize_stack): Use _(), not N_().
3889 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3890
3891 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3892
3893 * dwarf2read.c (struct dw2_symtab_iterator):
3894 <want_specific_block>: Remove.
3895 <block_index>: Change type to gdb::optional.
3896 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3897 change type of BLOCK_INDEX parameter to gdb::optional.
3898 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3899 (dw2_lookup_symbol): Don't pass argument for
3900 WANT_SPECIFIC_BLOCK.
3901 (dw2_expand_symtabs_for_function): Don't pass argument for
3902 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3903 (class dw2_debug_names_iterator)
3904 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3905 parameter, change BLOCK_INDEX type to gdb::optional.
3906 <m_want_specific_block>: Remove.
3907 <m_block_index>: Change type to gdb::optional.
3908 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3909 gdb::optional. Re-write in function of gdb::optional.
3910 (dw2_debug_names_lookup_symbol): Don't pass argument for
3911 WANT_SPECIFIC_BLOCK.
3912 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3913 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3914 BLOCK_INDEX.
3915
3916 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3917
3918 * NEWS: Mention changes to "info sources" command.
3919
3920 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3921
3922 * symtab.c (filename_partial_match_opts): New struct type.
3923 (struct output_source_filename_data): New members
3924 regexp, c_regexp, partial_match.
3925 (output_source_filename): Use new members to decide to print file.
3926 (info_sources_option_defs): New variable.
3927 (make_info_sources_options_def_group, print_info_sources_header,
3928 info_sources_command_completer):
3929 New functions.
3930 (info_sources_command): Read new optional arguments.
3931 (_initialize_symtab): Update info sources help.
3932
3933 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3934
3935 * ada-lang.c (exception_support_info_v0): Renamed from...
3936 (default_exception_support_info): ... this. Create new
3937 definition for v1.
3938 (ada_has_this_exception_support): Look up catch_handlers_sym.
3939 (ada_exception_support_info_sniffer): Try v0 after default.
3940
3941 2019-08-01 Tom Tromey <tromey@adacore.com>
3942
3943 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3944 gdbarch.h.
3945
3946 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3947
3948 * s12z-tdep.c: Fix include path for s12z-opc.h.
3949
3950 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3951
3952 * NEWS: Require GNU make 3.82.
3953
3954 2019-07-16 Tom Tromey <tom@tromey.com>
3955
3956 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3957 declare.
3958
3959 2019-07-30 Tom Tromey <tromey@adacore.com>
3960
3961 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3962
3963 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3964
3965 * printcmd.c (print_address_symbolic): Print negative offsets.
3966 (build_address_symbolic): Force signed arithmetic when computing
3967 offset.
3968
3969 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3970
3971 PR/24474: Add a function to lookup static variables.
3972 * NEWS: Mention this new function.
3973 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3974 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3975 * python/python.c (python_GdbMethods): Add new function.
3976
3977 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3978
3979 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3980 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3981 (objfpy_lookup_static_symbol): New function.
3982 (objfile_object_methods): Add new functions.
3983
3984 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3985
3986 * NEWS: Mention 'set|show print frame-info'. Mention new
3987 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3988 backtrace argument. Mention that python frame filtering code
3989 is now consistent with what 'backtrace' command prints.
3990
3991 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3992
3993 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3994 comments.
3995 (print_frame_info_auto, print_frame_info_source_line,
3996 print_frame_info_location, print_frame_info_source_and_location,
3997 print_frame_info_location_and_address, print_frame_info_short_location):
3998 New declarations.
3999 (struct frame_print_options): New member print_frame_info.
4000 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4001 * stack.h (get_user_print_what_frame_info): New declaration.
4002 (frame_show_address): New declaration.
4003 * stack.c (print_frame_arguments_choices): New value 'presence'.
4004 (print_frame_info_auto, print_frame_info_source_line,
4005 print_frame_info_location, print_frame_info_source_and_location,
4006 print_frame_info_location_and_address, print_frame_info_short_location,
4007 print_frame_info_choices, print_frame_info_print_what): New definitions.
4008 (print_frame_args): Only print dots for args if print frame-arguments
4009 is 'presence'.
4010 (frame_print_option_defs): New element for "frame-info".
4011 (get_user_print_what_frame_info): New function.
4012 (frame_show_address): Make non static. Move comment to stack.h.
4013 (print_frame_info_to_print_what): New function.
4014 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4015 to decide what to print.
4016 (backtrace_command_1): Handle the new print_frame_arguments_presence
4017 value.
4018 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4019 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4020 (py_print_frame): In non-mi mode, use LOCATION as default for
4021 print_what, similarly to frame information printed directly by
4022 backtrace command. Handle frame-info user option in non MI mode.
4023
4024 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4025
4026 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4027 Add case for debugging 32-bit target on 64-bit host. Revise
4028 comment.
4029
4030 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4031
4032 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4033 instead of find_function_entry_range_from_pc.
4034
4035 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4036
4037 * stack.c (find_frame_funname): Remove code which preferred
4038 minsym over symtab sym in "certain pathological cases".
4039
4040 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4041 parameter. Change type of "do_demangle" to bool.
4042 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4043 Pass suitable "prefer_sym_over_minsym" flag to
4044 build_address_symbolic(). Don't output "+" for negative offsets.
4045 * printcmd.c (print_address_symbolic): Update invocation of
4046 build_address_symbolic to include a "prefer_sym_over_minsym"
4047 flag.
4048 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4049 Restrict cases in which use of minimal symbol is preferred to that
4050 of a found symbol. Update comments.
4051
4052 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4053 for entry pc when entry pc is out of range for that FDE.
4054
4055 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4056
4057 PR gdb/24839:
4058 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4059 type.
4060
4061 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4062
4063 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4064 this function's Python signature.
4065
4066
4067 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4068
4069 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4070 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4071 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4072 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4073 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4074
4075
4076 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4077
4078 * h8300-tdep.c (h8300_register_name_common): New.
4079 h8300_register_name): Use h8300_register_name_common.
4080 (h8300s_register_name): Likewise.
4081 (h8300sx_register_name): Likewise.
4082 (h8300h_register_nam): New.
4083 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4084
4085
4086 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4087
4088 * arm-tdep.c (arm_skip_cmse_entry): New function.
4089 (arm_is_sgstubs_section): New function.
4090 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4091
4092 2019-07-22 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4095 Don't self-assign.
4096
4097 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4100 type_print.
4101
4102 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4105 so that GDB doesn't match any msymbols when searching in the
4106 TYPES_DOMAIN.
4107 (print_symbol_info): Print using typedef_print or type_print based
4108 on the type of the symbol. Add updated FIXME comment moved from...
4109 (_initialize_symtab): ... move and update FIXME comment to above.
4110
4111 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4112
4113 * NEWS: Mention adding -q option to "info types".
4114 * symtab.c (struct info_types_options): New struct.
4115 (info_types_options_defs): New variable.
4116 (make_info_types_options_def_group): New function.
4117 (info_types_command): Use gdb::option framework to parse options.
4118 (info_types_command_completer): New function.
4119 (_initialize_symtab): Extend the help text on "info types" and
4120 register command completer.
4121
4122 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4123
4124 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4125 (lookup_symbol_in_objfile): Change int to block_enum and add a
4126 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4127
4128 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4129
4130 * MAINTAINERS (Write After Approval): Add self.
4131
4132 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4133
4134 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4135 instruction to the dummy code region.
4136
4137 2019-07-19 Tom Tromey <tromey@adacore.com>
4138
4139 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4140 (ARGSUSED, PARAMS, __func__): Remove rules.
4141
4142 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4143
4144 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4145 * features/arm/arm-with-iwmmxt.c: Remove.
4146 * features/arm/arm-with-iwmmxt.xml: Remove.
4147 * features/arm/arm-with-m-fpa-layout.c: Remove.
4148 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4149 * features/arm/arm-with-m-vfp-d16.c: Remove.
4150 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4151 * features/arm/arm-with-m.c: Remove.
4152 * features/arm/arm-with-m.xml: Remove.
4153 * features/arm/arm-with-neon.c: Remove.
4154 * features/arm/arm-with-neon.xml: Remove.
4155 * features/arm/arm-with-vfpv2.c: Remove.
4156 * features/arm/arm-with-vfpv2.xml: Remove.
4157 * features/arm/arm-with-vfpv3.c: Remove.
4158 * features/arm/arm-with-vfpv3.xml: Remove.
4159
4160 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4161
4162 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4163
4164 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4165
4166 * arch/aarch32.c (aarch32_create_target_description): Create
4167 target descriptions using features.
4168 * arch/arm.c (arm_create_target_description)
4169 (arm_create_mprofile_target_description): Likewise.
4170 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4171
4172 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4173
4174 * Makefile.in: Add new files.
4175 * aarch32-tdep.c: New file.
4176 * aarch32-tdep.h: New file.
4177 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4178 Call aarch32_read_description.
4179 * arch/aarch32.c: New file.
4180 * arch/aarch32.h: New file.
4181 * arch/arm.c (arm_create_target_description)
4182 (arm_create_mprofile_target_description): New function.
4183 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4184 (arm_create_target_description)
4185 (arm_create_mprofile_target_description): New declaration.
4186 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4187 read_description functions.
4188 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4189 Likewise.
4190 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4191 * arm-tdep.c (tdesc_arm_list): New variable.
4192 (arm_register_g_packet_guesses): Call create description functions.
4193 (arm_read_description) (arm_read_mprofile_description): New
4194 function.
4195 * arm-tdep.h (arm_read_description)
4196 (arm_read_mprofile_description): Add declaration.
4197 * configure.tgt: Add new files.
4198
4199 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4200
4201 * top.c (new_ui_command): Open specified terminal just once.
4202
4203 2019-07-18 Tom Tromey <tromey@adacore.com>
4204
4205 * symtab.c (main_name): Constify return type.
4206 * symfile.c (set_initial_language): Update.
4207 * symtab.h (main_name): Constify return type.
4208
4209 2019-07-17 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-winsource.c (tui_update_source_window)
4212 (tui_update_source_window_as_is)
4213 (tui_update_source_windows_with_line): Remove return.
4214 * tui/tui-disasm.c (tui_show_disassem)
4215 (tui_show_disassem_and_update_source): Remove return.
4216 * tui/tui.c (tui_reset): Remove return.
4217 * tui/tui-wingeneral.c
4218 (tui_check_and_display_highlight_if_needed): Remove return.
4219
4220 2019-07-17 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4223
4224 2019-07-17 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui-winsource.h (struct tui_exec_info_window)
4227 (struct tui_source_window_base): Move from tui-data.h.
4228 * tui/tui-winsource.c: Move many method definitions from
4229 elsewhere. Remove "structuring" comments.
4230 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4231 (tui_source_window_base::refresh_window): Move to
4232 tui-winsource.c.
4233 * tui/tui-win.c (tui_source_window_base::refresh_all)
4234 (tui_source_window_base::update_tab_width)
4235 (tui_source_window_base::set_new_height)
4236 (tui_source_window_base::do_make_visible_with_new_height): Move to
4237 tui-winsource.c.
4238 * tui/tui-source.h: Update.
4239 * tui/tui-source.c (tui_source_window_base::reset): Move to
4240 tui-winsource.c.
4241 * tui/tui-disasm.h: Update.
4242 * tui/tui-data.h (struct tui_exec_info_window): Move to
4243 tui-winsource.h.
4244 (struct tui_source_window_base): Likewise.
4245 * tui/tui-data.c (tui_source_window_base::clear_detail)
4246 (tui_source_window_base, ~tui_source_window_base): Move to
4247 tui-winsource.c.
4248
4249 2019-07-17 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-win.c (tui_resize_all)
4252 (tui_source_window_base::update_tab_width)
4253 (tui_adjust_win_heights): Update.
4254 (tui_win_info::make_invisible_and_set_new_height): Rename from
4255 make_invisible_and_set_new_height.
4256 * tui/tui-data.h (struct tui_win_info)
4257 <make_invisible_and_set_new_height>: New method.
4258
4259 2019-07-17 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui.c: Update.
4262 * tui/tui-source.h (struct tui_source_window): Move from
4263 tui-data.h.
4264 * tui/tui-layout.c: Update.
4265 * tui/tui-disasm.c: Update.
4266 * tui/tui-data.h (struct tui_source_window): Move to
4267 tui-source.h.
4268
4269 2019-07-17 Tom Tromey <tom@tromey.com>
4270
4271 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4272 tui-data.h.
4273 * tui/tui-data.h (struct tui_disasm_window): Move to
4274 tui-disasm.h.
4275
4276 2019-07-17 Tom Tromey <tom@tromey.com>
4277
4278 * tui/tui-regs.h (struct tui_data_item_window): Move from
4279 tui-data.h.
4280 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4281 * tui/tui-data.h (struct tui_data_item_window): Move to
4282 tui-regs.h.
4283 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4284
4285 2019-07-17 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui.c: Update.
4288 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4289 (tui_cmd_window::max_height): Move to tui-command.c.
4290 * tui/tui-layout.c: Update.
4291 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4292 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4293 tui-command.c.
4294 * tui/tui-command.h (struct tui_cmd_window): Move from
4295 tui-data.h.
4296 * tui/tui-command.c: Remove "structuring" comments.
4297 (tui_cmd_window::clear_detail)
4298 (tui_cmd_window::do_make_visible_with_new_height)
4299 (tui_cmd_window::max_height): Move from elsewhere.
4300
4301 2019-07-17 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4304 Now static.
4305 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4306 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4307
4308 2019-07-17 Tom Tromey <tom@tromey.com>
4309
4310 * tui/tui.c: Update.
4311 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4312 tui-regs.c.
4313 * tui/tui-windata.h: Remove file.
4314 * tui/tui-windata.c: Remove file.
4315 * tui/tui-win.c (tui_data_window::set_new_height)
4316 (tui_data_window::do_make_visible_with_new_height): Move to
4317 tui-regs.c.
4318 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4319 * tui/tui-regs.c: Remove "structuring" comments.
4320 (tui_data_window::first_data_item_displayed)
4321 (tui_data_window::delete_data_content_windows)
4322 (tui_data_window::erase_data_content)
4323 (tui_data_window::display_all_data)
4324 (tui_data_window::refresh_all)
4325 (tui_data_window::do_scroll_vertical)
4326 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4327 (tui_data_window::do_make_visible_with_new_height)
4328 (tui_data_window::refresh_window): Move from elsewhere.
4329 (_initialize_tui_regs): Move to end of file.
4330 * tui/tui-layout.c: Update.
4331 * tui/tui-hooks.c: Update.
4332 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4333 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4334 tui-regs.c.
4335 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4336
4337 2019-07-17 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4340 seen.
4341
4342 2019-07-17 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-win.c (tui_source_window_base::set_new_height)
4345 (tui_source_window_base::do_make_visible_with_new_height): Use
4346 m_has_locator field directly.
4347 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4348 method.
4349 (struct tui_source_window_base) <has_locator>: Likewise.
4350
4351 2019-07-17 Tom Tromey <tom@tromey.com>
4352
4353 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4354 Don't declare.
4355 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4356 Remove.
4357 * tui/tui-win.c (tui_source_window_base::set_new_height)
4358 (tui_source_window_base::set_new_height)
4359 (make_invisible_and_set_new_height)
4360 (tui_source_window_base::do_make_visible_with_new_height)
4361 (tui_source_window_base::do_make_visible_with_new_height):
4362 Update.
4363 * tui/tui-layout.c (show_source_disasm_command, show_data)
4364 (show_source_or_disasm_and_command): Update.
4365 * tui/tui-layout.c (show_layout): Update.
4366
4367 2019-07-17 Tom Tromey <tom@tromey.com>
4368
4369 * tui/tui-layout.c (make_data_window): Remove.
4370 (show_data): Unify creation and re-initialization cases.
4371
4372 2019-07-17 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-layout.c (make_source_window, make_disasm_window):
4375 Remove.
4376 (show_data): Unify creation and re-initialization cases.
4377
4378 2019-07-17 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-layout.c (make_command_window): Remove.
4381 (show_source_disasm_command, show_source_or_disasm_and_command):
4382 Unify creation and re-initialization cases.
4383
4384 2019-07-17 Tom Tromey <tom@tromey.com>
4385
4386 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4387 creation and re-initialization cases.
4388
4389 2019-07-17 Tom Tromey <tom@tromey.com>
4390
4391 * tui/tui-regs.c (tui_get_register): Return void.
4392
4393 2019-07-17 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4396 Simplify.
4397
4398 2019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4401 resetting.
4402
4403 2019-07-17 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4406 * tui/tui-regs.c (tui_reg_layout): New function.
4407 (tui_show_registers, tui_reg_command): Use it.
4408 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4409 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4410 parameters.
4411 (tui_layout_command): Remove.
4412
4413 2019-07-17 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-layout.h (tui/tui-layout): Return void.
4416 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4417
4418 2019-07-17 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-layout.c (show_source_disasm_command, show_data):
4421 Update.
4422 (reset_locator): Remove.
4423 (show_source_or_disasm_and_command): Update.
4424
4425 2019-07-17 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui-source.c (tui_source_window_base::reset): Remove
4428 win_type parameter.
4429 * tui/tui-layout.c (make_command_window, make_source_window)
4430 (make_disasm_window, make_data_window)
4431 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4432 (reset_locator, show_source_or_disasm_and_command): Update.
4433 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4434 win_type parameter.
4435 (struct tui_source_window_base) <reset>: Likewise.
4436
4437 2019-07-17 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-layout.c (show_source_disasm_command): Use
4440 reset_locator.
4441 (reset_locator): New function.
4442 (init_and_make_win): Remove.
4443 (show_source_or_disasm_and_command): Use reset_locator.
4444
4445 2019-07-17 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4448 condition.
4449 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4450 Remove condition.
4451 * tui/tui-source.c (tui_source_window_base::reset): New method.
4452 * tui/tui-layout.c (make_command_window): Don't call
4453 init_and_make_win.
4454 (make_source_window, make_disasm_window): Don't call
4455 make_source_or_disasm_window.
4456 (make_data_window): Don't call init_and_make_win. Change calling
4457 convention.
4458 (show_source_disasm_command, show_data): Simplify.
4459 (make_source_or_disasm_window): Remove.
4460 (show_source_or_disasm_and_command): Simplify.
4461 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4462 (struct tui_source_window_base) <reset>: Likewise.
4463 <execution_info>: Remove initializer.
4464 * tui/tui-data.c (tui_source_window_base): Initialize
4465 execution_info.
4466
4467 2019-07-17 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4470 variable.
4471
4472 2019-07-17 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui.c (tui_rl_other_window): Update.
4475 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4476 superclass method first. Always iterate over regs_content.
4477 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4478 method.
4479 * tui/tui-win.c (tui_set_focus_command): Update.
4480
4481 2019-07-17 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-win.c (tui_set_focus_command): Rename from
4484 tui_set_focus. Call tui_enable.
4485 (tui_set_focus_command): Remove.
4486
4487 2019-07-17 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4490 refresh_window.
4491 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4492 touchwin.
4493 (tui_data_window::refresh_window): Call refresh_window on data
4494 items. Always call superclass refresh_window.
4495 (tui_win_info::refresh): Remove.
4496 (tui_source_window_base::refresh_window): Update.
4497 (tui_refresh_all): Update.
4498 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4499 refresh_window.
4500 (show_source_or_disasm_and_command): Likewise.
4501 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4502 (struct tui_source_window_base) <refresh>: Likewise.
4503
4504 2019-07-17 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui-winsource.c (tui_clear_source_content)
4507 (tui_show_source_content): Update.
4508 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4509 whether content is empty.
4510 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4511 Remove.
4512
4513 2019-07-17 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4516 window's contents.
4517 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4518 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4519
4520 2019-07-17 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4523 (struct tui_data_item_window): Update.
4524
4525 2019-07-17 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4528 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4529 defines.
4530
4531 2019-07-17 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-winsource.h (tui_erase_source_content)
4534 (tui_clear_source_content): Remove "display_prompt" parameter.
4535 * tui/tui-winsource.c (tui_update_source_window_as_is)
4536 (tui_update_source_windows_with_addr): Update.
4537 (tui_clear_source_content): Remove "display_prompt" parameter.
4538 (tui_erase_source_content): Likewise. Simplify.
4539 (tui_show_source_content): Update.
4540 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4541 * tui/tui-stack.c (tui_show_frame_info): Update.
4542 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4543 Remove defines.
4544
4545 2019-07-17 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4548 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4549 parameter.
4550 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4551 parameter.
4552
4553 2019-07-17 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-winsource.c (tui_clear_source_content)
4556 (tui_show_source_content, tui_show_exec_info_content)
4557 (tui_clear_exec_info_content): Update.
4558 * tui/tui-stack.c (tui_show_locator_content): Update.
4559 (tui_show_frame_info): Update.
4560 * tui/tui-source.h (tui_source_window): Don't declare.
4561 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4562 from tui_source_is_displayed.
4563 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4564 Remove field.
4565 (struct tui_source_window_base) <content_in_use>: New field. Now
4566 bool.
4567 (struct tui_source_window) <showing_source_p>: New method.
4568 (TUI_SRC_WIN): Change cast.
4569 * tui/tui-data.c (tui_initialize_static_data): Update.
4570
4571 2019-07-17 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4574 location_matches_p.
4575 * tui/tui-source.c (tui_source_window::location_matches_p): New
4576 method.
4577 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4578 method.
4579 * tui/tui-data.h (struct tui_source_window_base)
4580 <location_matches_p>: New method.
4581 (struct tui_source_window, struct tui_disasm_window)
4582 <location_matches_p>: Likewise.
4583
4584 2019-07-17 Tom Tromey <tom@tromey.com>
4585
4586 * tui/tui-win.c (tui_set_win_height_command): Rename from
4587 tui_set_win_height.
4588 (tui_set_win_height_command): Remove.
4589
4590 2019-07-17 Tom Tromey <tom@tromey.com>
4591
4592 * tui/tui-source.c (tui_source_window): New constructor. Add
4593 observer.
4594 (~tui_source_window): New destructor.
4595 (tui_source_window::style_changed): New method.
4596 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4597 (tui_attach_detach_observers): Update.
4598 * tui/tui-data.h (struct tui_source_window): Make constructor not
4599 inline. Add destructor.
4600 (struct tui_source_window) <style_changed>: New method.
4601 <m_observable>: New member.
4602
4603 2019-07-17 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4606 * tui/tui-win.c (tui_resize_all): Fix typo.
4607
4608 2019-07-17 Tom Tromey <tom@tromey.com>
4609
4610 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4611 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4612 (tui_refresh_all): Remove "list" parameter. Use foreach.
4613 * tui/tui-win.c (window_name_completer): Use foreach.
4614 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4615 (update_tab_width): Likewise.
4616 * tui/tui-layout.c (show_layout): Update.
4617 * tui/tui-data.h (class tui_window_iterator): New.
4618 (struct all_tui_windows): New.
4619 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4620
4621 2019-07-17 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4624 parameter. Don't reference globals.
4625 (tui_reg_command): Update.
4626
4627 2019-07-17 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-regs.c (tui_show_registers): Simplify.
4630
4631 2019-07-17 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-regs.c (tui_show_registers): Update.
4634 (tui_show_register_group): Add win_info parameter.
4635
4636 2019-07-17 Tom Tromey <tom@tromey.com>
4637
4638 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4639 Rename from tui_display_reg_element_at_line.
4640 (tui_data_window::display_registers_from_line): Update.
4641 * tui/tui-data.h (struct tui_data_window)
4642 <display_reg_element_at_line>: New method.
4643
4644 2019-07-17 Tom Tromey <tom@tromey.com>
4645
4646 * tui/tui-regs.h (tui_display_registers_from)
4647 (tui_display_registers_from_line): Don't declare.
4648 * tui/tui-windata.c (tui_data_window::display_all_data)
4649 (tui_data_window::refresh_all)
4650 (tui_data_window::do_scroll_vertical): Update.
4651 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4652 from tui_display_registers_from.
4653 (tui_display_reg_element_at_line): Update.
4654 (tui_data_window::display_registers_from_line): Rename from
4655 tui_display_registers_from_line.
4656 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4657 display_registers_from_line>: New methods.
4658
4659 2019-07-17 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4662 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4663 from tui_erase_data_content.
4664 (tui_data_window::display_all_data)
4665 (tui_data_window::refresh_all)
4666 (tui_data_window::do_scroll_vertical): Update.
4667 * tui/tui-regs.c (tui_show_registers): Update.
4668 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4669 New method.
4670
4671 2019-07-17 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4674 declare.
4675 * tui/tui-windata.c
4676 (tui_data_window::delete_data_content_windows): Rename from
4677 tui_delete_data_content_windows.
4678 (tui_data_window::display_all_data)
4679 (tui_data_window::do_scroll_vertical): Update.
4680 * tui/tui-data.h (struct tui_data_window)
4681 <delete_data_content_windows>: New method.
4682
4683 2019-07-17 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4686 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4687
4688 2019-07-17 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4691 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4692 from tui_display_all_data.
4693 * tui/tui-win.c
4694 (tui_data_window::do_make_visible_with_new_height): Update.
4695 * tui/tui-regs.c (tui_show_registers): Update.
4696 * tui/tui-layout.c (tui_set_layout): Update.
4697 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4698 method.
4699
4700 2019-07-17 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4703 * tui/tui-windata.c (tui_display_data_from): Remove.
4704 (tui_data_window::refresh_all): Update.
4705
4706 2019-07-17 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4709 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4710 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4711 tui_display_registers_from_line.
4712 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4713 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4714 "force_display" parameter.
4715
4716 2019-07-17 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4719 declare.
4720 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4721 Rename from tui_first_reg_element_no_inline.
4722 (tui_display_reg_element_at_line)
4723 (tui_display_registers_from_line): Update.
4724 * tui/tui-data.h (struct tui_data_window)
4725 <first_reg_element_no_inline>: New method.
4726
4727 2019-07-17 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-windata.c (tui_display_data_from)
4730 (tui_data_window::do_scroll_vertical): Update.
4731 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4732 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4733 Rename from tui_line_from_reg_element_no.
4734 (tui_display_registers_from_line): Update.
4735 * tui/tui-data.h (struct tui_data_window)
4736 <line_from_reg_element_no>: New method.
4737
4738 2019-07-17 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4741 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4742 tui_last_regs_line_no.
4743 (tui_display_reg_element_at_line)
4744 (tui_display_registers_from_line): Update.
4745 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4746 method.
4747
4748 2019-07-17 Tom Tromey <tom@tromey.com>
4749
4750 PR tui/24722:
4751 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4752 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4753 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4754 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4755 (tui_update_breakpoint_info): Likewise.
4756 * tui/tui-hooks.c (tui_event_create_breakpoint)
4757 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4758 Update.
4759
4760 2019-07-17 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4763
4764 2019-07-17 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-winsource.c (tui_update_source_window_as_is)
4767 (tui_update_source_windows_with_addr): Update.
4768 * tui/tui-source.h (tui_set_source_content)
4769 (tui_show_symtab_source): Add "win_info" parameter.
4770 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4771 parameter.
4772 (tui_show_symtab_source): Likewise.
4773
4774 2019-07-17 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-wingeneral.c
4777 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4778
4779 2019-07-17 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4782 (struct tui_cmd_window) <can_scroll>: New method.
4783 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4784 method.
4785
4786 2019-07-17 Tom Tromey <tromey@adacore.com>
4787
4788 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4789 do_field_signed>: Rename. Change type of "value".
4790 * ui-out.c (ui_out::field_signed): Rename from field_int.
4791 Change type of "value".
4792 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4793 type of "value".
4794 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4795 do_field_int. Change type of "value".
4796 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4797 do_field_int. Change type of "value".
4798 * tracepoint.c (trace_status_mi, tfind_1)
4799 (print_one_static_tracepoint_marker): Update.
4800 * thread.c (print_thread_info_1, print_selected_thread_frame):
4801 Update.
4802 * stack.c (print_frame, print_frame_info): Update.
4803 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4804 Update.
4805 * source.c (print_source_lines_base): Update.
4806 * skip.c (info_skip_command): Update.
4807 * record-btrace.c (btrace_ui_out_decode_error)
4808 (btrace_call_history_src_line): Update.
4809 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4810 Update.
4811 * progspace.c (print_program_space): Update.
4812 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4813 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4814 do_field_int. Change type of "value".
4815 * mi/mi-out.c (mi_ui_out::do_table_begin)
4816 (mi_ui_out::do_table_header): Update.
4817 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4818 type of "value".
4819 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4820 (mi_cmd_data_list_changed_registers, output_register)
4821 (mi_cmd_data_read_memory, mi_load_progress)
4822 (mi_cmd_trace_frame_collected): Update.
4823 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4824 Update.
4825 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4826 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4827 (mi_cmd_var_list_children, varobj_update_one): Update.
4828 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4829 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4830 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4831 * inferior.c (print_inferior): Update.
4832 * gdb_bfd.c (print_one_bfd): Update.
4833 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4834 Update.
4835 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4836 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4837 do_field_int. Change type of "value".
4838 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4839 do_field_int. Change type of "value".
4840 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4841 (print_one_breakpoint_location, print_it_catch_fork)
4842 (print_one_catch_fork, print_it_catch_vfork)
4843 (print_one_catch_vfork, print_it_catch_solib)
4844 (print_it_catch_exec, print_it_ranged_breakpoint)
4845 (print_mention_watchpoint, print_mention_masked_watchpoint)
4846 (bkpt_print_it, update_static_tracepoint): Update.
4847 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4848 * break-catch-syscall.c (print_it_catch_syscall): Update.
4849 * ada-tasks.c (print_ada_task_info): Update.
4850 * ada-lang.c (print_it_exception, print_mention_exception):
4851 Update.
4852
4853 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 PR breakpoints/24541
4856 * gdbarch.c: Regenerate.
4857 * gdbarch.h: Regenerate.
4858 * gdbarch.sh: Adjust return type and parameter types for
4859 'stap_adjust_register'.
4860 (i386_stap_adjust_register): Adjust signature and return new
4861 register name.
4862 * stap-probe.c (stap_parse_register_operand): Adjust use of
4863 'gdbarch_stap_adjust_register'.
4864
4865 2019-07-17 Tom Tromey <tromey@adacore.com>
4866
4867 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4868 declare VEC.
4869 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4870 std::vector.
4871 (struct s390_process_info): Add initializers.
4872 (s390_add_process): Use new.
4873 (s390_linux_nat_target::low_forget_process): Use delete.
4874 (s390_linux_nat_target::low_new_fork)
4875 (s390_linux_nat_target::stopped_by_watchpoint)
4876 (s390_linux_nat_target::low_prepare_to_resume)
4877 (s390_linux_nat_target::insert_watchpoint)
4878 (s390_linux_nat_target::insert_hw_breakpoint)
4879 (s390_linux_nat_target::remove_watchpoint)
4880 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4881
4882 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4883
4884 * aarch64-fbsd-nat.c: Include regcache.h.
4885 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4886 argument.
4887 (aarch64_fbsd_nat_target::fetch_registers)
4888 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4889 variable.
4890 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4891
4892 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4893
4894 * fbsd-nat.c: Include gdbarch.h.
4895
4896 2019-07-15 Tom Tromey <tromey@adacore.com>
4897
4898 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4899
4900 2019-07-15 Tom Tromey <tromey@adacore.com>
4901
4902 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4903 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4904 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4905 * cli-out.c (cli_ui_out::do_field_int): New method.
4906 * ui-out.c (ui_out::field_unsigned): New method.
4907 * symfile.c (generic_load): Use field_unsigned.
4908 (print_transfer_performance): Likewise.
4909 * record-btrace.c (ui_out_field_uint): Remove.
4910 (btrace_call_history_insn_range, btrace_call_history): Use
4911 field_unsigned.
4912 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4913 field_unsigned.
4914 * ui-out.h (class ui_out) <field_unsigned>: New method.
4915 <do_field_unsigned>: Likewise.
4916
4917 2019-07-15 Tom Tromey <tromey@adacore.com>
4918
4919 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4920 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4921 * target.c (flash_erase_command): Use field_string.
4922 * infrun.c (print_signal_received_reason): Use field_string.
4923 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4924 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4925 field_string.
4926 * ada-tasks.c (print_ada_task_info): Use field_string.
4927
4928 2019-07-15 Tom Tromey <tromey@adacore.com>
4929
4930 * target.c (flash_erase_command): Use field_core_addr.
4931 * symfile.c (generic_load): Use field_core_addr.
4932 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4933 Use field_core_addr.
4934 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4935 field_core_addr.
4936
4937 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4940 value if its desired type is smaller than a CORE_ADDR and signed.
4941
4942 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4945 of changes to field names, and use new is_reference field to
4946 decide if a property is a reference or not.
4947 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4948 field.
4949 (struct dwarf2_property_baton): Update header comment, rename
4950 'referenced_type' to 'property_type' and update comments.
4951 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4952 default property type, store in property baton, update to take
4953 accound of renamed field.
4954 (read_func_scope): Update call to attr_to_dynamic_prop.
4955 (read_array_type): Likewise.
4956 (dwarf2_per_cu_addr_sized_int_type): New function.
4957 (read_subrange_index_type): Move type finding code to
4958 dwarf2_per_cu_addr_sized_int_type.
4959 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4960 (dwarf2_per_cu_addr_type): New function.
4961 (set_die_type): Update calls to attr_to_dynamic_prop.
4962
4963 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * dwarf2read.c (read_subrange_index_type): New function.
4966 (read_subrange_type): Move code into new function and call it.
4967 * gdbtypes.c (create_range_type): Add some asserts.
4968
4969 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4972 update return statements.
4973 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4974 declaration, and update comment to match.
4975 * gdbtypes.c (resolve_dynamic_array): Update call to
4976 dwarf2_evaluate_property to match new return type.
4977
4978 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * valarith.c (value_subscripted_rvalue): Change lowerbound
4981 parameter type from int to LONGEST.
4982 * value.h (value_subscripted_rvalue): Likewise in declaration.
4983
4984 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * cli/cli-utils.c (info_print_command_completer): New function.
4987 * cli/cli-utils.h: Add 'completer.h' include, and forward
4988 declaration for 'struct cmd_list_element'.
4989 (info_print_command_completer): Declare.
4990 * stack.c (_initialize_stack): Add completer for 'info locals' and
4991 'info args'.
4992 * symtab.c (_initialize_symtab): Add completer for 'info
4993 variables' and 'info functions'.
4994 * NEWS: Mention completion for additional info commands.
4995
4996 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4997
4998 * cli/cli-utils.c (extract_info_print_args): Delete.
4999 (extract_arg_maybe_quoted): Delete.
5000 (info_print_options_defs): New variable.
5001 (make_info_print_options_def_group): New function.
5002 (extract_info_print_options): Define new function.
5003 * cli/cli-utils.h (extract_info_print_args): Delete.
5004 (struct info_print_options): New structure.
5005 (extract_info_print_options): Declare new function.
5006 * stack.c (info_locals_command): Update to use new
5007 extract_info_print_options, also add a header comment.
5008 (info_args_command): Likewise.
5009 * symtab.c (info_variables_command): Likewise.
5010 (info_functions_command): Likewise.
5011
5012 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5015 to extract string arguments.
5016 * common/common-utils.c (extract_string_maybe_quoted): New function.
5017 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5018
5019 2019-07-11 Tom Tromey <tromey@adacore.com>
5020
5021 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5022 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5023 * top.h (gdbinit): Don't declare.
5024 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5025 into...
5026 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5027 * top.c (gdb_init): Don't call init_cli_cmds.
5028 (gdbinit): Remove.
5029 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5030
5031 2019-07-11 Tom Tromey <tromey@adacore.com>
5032
5033 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5034 after it has been moved.
5035
5036 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * valops.c (value_must_coerce_to_target): Change return type to
5039 bool.
5040 * value.h (value_must_coerce_to_target): Likewise.
5041
5042 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * breakpoint.c (is_hardware_watchpoint): Remove
5045 forward-declaration.
5046 (is_masked_watchpoint): Change return type to bool.
5047 (is_tracepoint): Likewise.
5048 (is_breakpoint): Likewise.
5049 (is_hardware_watchpoint): Likewise.
5050 (is_watchpoint): Likewise.
5051 (is_no_memory_software_watchpoint): Likewise.
5052 (is_catchpoint): Likewise.
5053 (breakpoint_1): Make FILTER parameter's return type bool.
5054 is_masked_watchpoint): Change return type to bool.
5055 (save_breakpoints): Make FILTER parameter's return type bool.
5056 * breakpoint.h (is_breakpoint): Change return type to bool.
5057 (is_watchpoint): Likewise.
5058 (is_catchpoint): Likewise.
5059 (is_tracepoint): Likewise.
5060
5061 2019-07-10 Tom Tromey <tom@tromey.com>
5062
5063 * defs.h: Don't include gdbarch.h.
5064 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5065 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5066 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5067 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5068 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5069 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5070 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5071 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5072 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5073 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5074 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5075 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5076 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5077 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5078 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5079 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5080 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5081 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5082 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5083 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5084 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5085 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5086 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5087 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5088 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5089 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5090 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5091
5092 2019-07-10 Tom Tromey <tromey@adacore.com>
5093
5094 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5095 * breakpoint.c (init_ada_exception_breakpoint): Register as
5096 bp_catchpoint.
5097 (print_one_breakpoint_location, print_one_breakpoint): Use
5098 is_ada_exception_catchpoint.
5099 * ada-lang.c (class ada_catchpoint_location): Pass
5100 bp_loc_software_breakpoint to bp_location constructor.
5101 (is_ada_exception_catchpoint): New function.
5102
5103 2019-07-10 Tom Tromey <tromey@adacore.com>
5104
5105 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5106 VEC.
5107 (struct arm_exidx_entry): New method operator<.
5108 (struct arm_exidx_data) <section_maps>: Change type.
5109 (arm_exidx_data_free): Remove.
5110 (arm_exidx_data_key): Change type. Move lower.
5111 (arm_exidx_new_objfile): Update.
5112 (arm_compare_exidx_entries): Remove.
5113 (arm_find_exidx_entry, _initialize_arm_tdep)
5114
5115 2019-07-10 Tom Tromey <tromey@adacore.com>
5116
5117 * solib-spu.c (ocl_program_data_key): Change type.
5118 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5119 Update.
5120
5121 2019-07-10 Tom Tromey <tromey@adacore.com>
5122
5123 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5124 (struct solib_aix_inferior_data) <library_list>: Change type.
5125 (solib_aix_inferior_data_handle): Change type.
5126 (get_solib_aix_inferior_data): Update.
5127 (solib_aix_free_library_list): Remove.
5128 (library_list_start_library): Update.
5129 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5130 return type.
5131 (solib_aix_get_library_list)
5132 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5133 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5134
5135 2019-07-10 Tom Tromey <tromey@adacore.com>
5136
5137 * solib-dsbt.c (struct dsbt_info): Add initializers.
5138 (solib_dsbt_pspace_data): Change type.
5139 (dsbt_pspace_data_cleanup): Remove.
5140 (get_dsbt_info, _initialize_dsbt_solib): Update.
5141
5142 2019-07-10 Tom Tromey <tromey@adacore.com>
5143
5144 * spu-tdep.c (spu_overlay_data): Change type.
5145 (spu_get_overlay_table, spu_overlay_new_objfile)
5146 (_initialize_spu_tdep): Update.
5147
5148 2019-07-10 Tom Tromey <tromey@adacore.com>
5149
5150 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5151 destructor.
5152 (dbx_objfile_data_key): Change type and declare later.
5153 (DBX_SYMFILE_INFO): Rewrite.
5154 * dbxread.c (dbx_objfile_data_key): Change type.
5155 (dbx_symfile_init): Update.
5156 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5157 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5158 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5159
5160 2019-07-10 Tom Tromey <tromey@adacore.com>
5161
5162 * jit.c (jit_program_space_key): Change type. Move lower.
5163 (get_jit_program_space_data): Update.
5164 (jit_program_space_data_cleanup): Remove.
5165 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5166 Update.
5167 (struct jit_program_space_data): Add initializers.
5168
5169 2019-07-10 Tom Tromey <tromey@adacore.com>
5170
5171 * solib-darwin.c (struct darwin_info): Add initializers.
5172 (solib_darwin_pspace_data): Change type.
5173 (darwin_pspace_data_cleanup): Remove.
5174 (get_darwin_info, _initialize_darwin_solib): Update.
5175
5176 2019-07-10 Tom Tromey <tromey@adacore.com>
5177
5178 * remote-sim.c (struct sim_inferior_data): Add initializers,
5179 constructor, and destructor.
5180 (sim_inferior_data_key): Change type. Move lower.
5181 (check_for_duplicate_sim_descriptor): Update.
5182 (get_sim_inferior_data): Use new. Update.
5183 (~sim_inferior_data_cleanup): Rename from
5184 sim_inferior_data_cleanup. Simplify.
5185 (gdbsim_close_inferior, simulator_command)
5186 (sim_command_completer, _initialize_remote_sim): Update.
5187 (next_pid, INITIAL_PID): Move earlier.
5188
5189 2019-07-10 Tom Tromey <tromey@adacore.com>
5190
5191 * python/python-internal.h (create_thread_object): Return
5192 gdbpy_ref.
5193 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5194 * python/py-inferior.c (struct threadlist_entry): Add
5195 constructor.
5196 <thread_obj>: Now a gdbpy_ref.
5197 (thread_to_thread_object): Update.
5198 (add_thread_object): Use new.
5199 (delete_thread_object): Use delete.
5200 (infpy_threads): Update.
5201 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5202 GIL.
5203
5204 2019-07-10 Tom Tromey <tromey@adacore.com>
5205
5206 * valops.c (value_cast): Specialize error message for Ada.
5207
5208 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5209
5210 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5211
5212 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5215 bpstat_should_step): Return bool, adjust comments.
5216 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5217 bpstat_should_step): Likewise.
5218
5219 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5220
5221 * features/Makefile: Use feature target descriptions for Arm.
5222 * features/arm/arm-core.c: Generate new file.
5223 * features/arm/arm-fpa.c: Likewise.
5224 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5225 * features/arm/arm-m-profile.c: Likewise.
5226 * features/arm/arm-vfpv2.c: Likewise.
5227 * features/arm/arm-vfpv3.c: Likewise.
5228 * features/arm/xscale-iwmmxt.c: Likewise.
5229 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5230
5231 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5232
5233 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5234 ptrace earlier.
5235
5236 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5237
5238 * features/aarch64-pauth.c: Regenerate.
5239
5240 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5243 bool.
5244 (bpstat_what): Use false instead of 0.
5245
5246 2019-07-09 Pedro Alves <palves@redhat.com>
5247
5248 * break-catch-throw.c (is_exception_catchpoint): New.
5249 * breakpoint.c (print_one_breakpoint_location): New parameter
5250 'raw_loc'. Handle it. Use
5251 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5252 looking at the breakpoint's type.
5253 (print_one_breakpoint): If handling "maint info breakpoints", also
5254 print locations of exception catchpoints.
5255 * breakpoint.h (is_exception_catchpoint): Declare.
5256
5257 2019-07-09 Pedro Alves <palves@redhat.com>
5258
5259 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5260 "addr" field.
5261 (allocate_location_exception_catchpoint): New.
5262 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5263 (initialize_throw_catchpoint_ops): Install
5264 allocate_location_exception_catchpoint as allocate_location
5265 method.
5266 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5267 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5268 bp_loc_other.
5269 (breakpoint_address_is_meaningful): Delete.
5270 (bl_address_is_meaningful): New.
5271 (breakpoint_locations_match): Adjust comment.
5272 (bp_location_from_bp_type): New, factored out of...
5273 (bp_location::bp_location(breakpoint *)): ... this.
5274 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5275 factored out of...
5276 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5277 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5278 breakpoint_address_is_meaningful.
5279 (bp_locations_compare): Adjust comment.
5280 (update_global_location_list): Use bl_address_is_meaningful
5281 instead of breakpoint_address_is_meaningful.
5282 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5283 explicit.
5284 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5285 * python/py-breakpoint.c (bppy_get_location): No longer check
5286 whether location is null.
5287
5288 2019-07-09 Pedro Alves <palves@redhat.com>
5289
5290 PR c++/15468
5291 * breakpoint.c (print_one_breakpoint_location): Remove
5292 single-location assert.
5293
5294 2019-07-09 Tom Tromey <tom@tromey.com>
5295
5296 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5297 * configure: Rebuild.
5298 * configure.ac: Change common to gdbsupport.
5299 * gdbsupport: Rename from common.
5300 * acinclude.m4: Change common to gdbsupport.
5301 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5302 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5303 gdbsupport.
5304 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5305 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5306 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5307 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5308 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5309 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5310 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5311 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5312 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5313 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5314 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5315 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5316 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5317 coff-pe-read.c, command.h, compile/compile-c-support.c,
5318 compile/compile-c.h, compile/compile-cplus-symbols.c,
5319 compile/compile-cplus-types.c, compile/compile-cplus.h,
5320 compile/compile-loc2c.c, compile/compile.c, completer.c,
5321 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5322 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5323 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5324 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5325 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5326 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5327 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5328 features/aarch64-core.c, features/aarch64-fpu.c,
5329 features/aarch64-pauth.c, features/aarch64-sve.c,
5330 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5331 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5332 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5333 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5334 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5335 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5336 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5337 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5338 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5339 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5340 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5341 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5342 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5343 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5344 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5345 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5346 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5347 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5348 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5349 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5350 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5351 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5352 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5353 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5354 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5355 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5356 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5357 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5358 minsyms.c, mips-linux-tdep.c, namespace.h,
5359 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5360 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5361 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5362 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5363 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5364 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5365 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5366 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5367 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5368 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5369 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5370 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5371 procfs.c, producer.c, progspace.h, psymtab.h,
5372 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5373 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5374 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5375 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5376 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5377 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5378 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5379 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5380 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5381 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5382 target-memory.c, target.c, target.h, target/waitstatus.c,
5383 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5384 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5385 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5386 unittests/array-view-selftests.c,
5387 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5388 unittests/common-utils-selftests.c,
5389 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5390 unittests/format_pieces-selftests.c,
5391 unittests/function-view-selftests.c,
5392 unittests/lookup_name_info-selftests.c,
5393 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5394 unittests/mkdir-recursive-selftests.c,
5395 unittests/observable-selftests.c,
5396 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5397 unittests/parse-connection-spec-selftests.c,
5398 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5399 unittests/scoped_fd-selftests.c,
5400 unittests/scoped_mmap-selftests.c,
5401 unittests/scoped_restore-selftests.c,
5402 unittests/string_view-selftests.c, unittests/style-selftests.c,
5403 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5404 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5405 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5406 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5407 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5408 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5409
5410 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5413 bool value.
5414 (decode_digits_ordinary): Set explicit_line field in sal.
5415 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5416 symtab_and_line that was set on an explicit line number in
5417 assembler code. Do always update the recorded symtab and line if
5418 we do skip the prologue.
5419
5420 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * breakpoint.c (set_breakpoint_location_function): Remove
5423 explicit_loc parameter.
5424 (momentary_breakpoint_from_master): Update call to
5425 set_breakpoint_location_function.
5426 (add_location_to_breakpoint): Likewise.
5427
5428 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5431 required features based on default bfd type when no specific bfd
5432 is present.
5433
5434 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5435
5436 * NEWS: Mention that GDB printf and eval commands can now print
5437 C-style and Ada-style convenience var strings without
5438 calling the inferior.
5439 * printcmd.c (printf_c_string): Locally print GDB internal var
5440 instead of transiting via the inferior.
5441 (printf_wide_c_string): Likewise.
5442
5443 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5444
5445 PR breakpoints/25011
5446 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5447
5448 2019-07-04 Tom Tromey <tom@tromey.com>
5449
5450 PR tui/24724:
5451 * tui/tui-winsource.c (tui_clear_source_content): Update.
5452 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5453 (tui_update_breakpoint_info): Update.
5454 (tui_set_exec_info_content): Update.
5455 * tui/tui-source.c (tui_set_source_content_nil): Update.
5456 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5457 has_break.
5458 * tui/tui-data.h (enum tui_bp_flag): New.
5459 (tui_bp_flags): New enum flags type.
5460 (struct tui_source_element) <break_mode>: Change type. Rename
5461 from has_break.
5462 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5463 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5464 constants.
5465 * tui/tui-winsource.h: Fix comment.
5466
5467 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5468
5469 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5470 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5471 (store_fpregs_to_thread)
5472 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5473 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5474 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5475 (IWMMXT_REGS_SIZE): Add define.
5476 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5477 (fetch_vfp_regs, store_vfp_regs)
5478 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5479 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5480
5481 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5482
5483 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5484 defines.
5485 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5486 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5487 (ARM_INT_REGISTER_SIZE): ...to this.
5488 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5489 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5490 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5491 (arm_linux_collect_gregset, supply_nwfpe_register)
5492 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5493 defines.
5494 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5495 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5496 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5497 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5498 (arm_return_in_memory, arm_store_return_value)
5499 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5500 (arm_record_ld_st_multiple): Likewise.
5501 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5502 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5503
5504 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5505
5506 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5507 AARCH64_DISPLACED_MODIFIED_INSNS.
5508 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5509 (aarch64_displaced_step_copy_insn): Likewise.
5510 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5511 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5512 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5513 ARM_DISPLACED_MODIFIED_INSNS.
5514 * arm-tdep.c (arm_gdbarch_init): Likewise.
5515 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5516 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5517 (struct arm_displaced_step_closure): Use
5518 ARM_DISPLACED_MODIFIED_INSNS.
5519
5520 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5521
5522 * features/Makefile: Remove unused xml files.
5523 * features/aarch64.xml: Remove.
5524 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5525 * features/i386/amd64-avx-avx512.xml: Remove.
5526 * features/i386/amd64-avx-linux.xml: Remove.
5527 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5528 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5529 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5530 * features/i386/amd64-avx-mpx.xml: Remove.
5531 * features/i386/amd64-avx.xml: Remove.
5532 * features/i386/amd64-linux.xml: Remove.
5533 * features/i386/amd64-mpx-linux.xml: Remove.
5534 * features/i386/amd64-mpx.xml: Remove.
5535 * features/i386/amd64.xml: Remove.
5536 * features/i386/i386-avx-avx512-linux.xml: Remove.
5537 * features/i386/i386-avx-avx512.xml: Remove.
5538 * features/i386/i386-avx-linux.xml: Remove.
5539 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5540 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5541 * features/i386/i386-avx-mpx-linux.xml: Remove.
5542 * features/i386/i386-avx-mpx.xml: Remove.
5543 * features/i386/i386-avx.xml: Remove.
5544 * features/i386/i386-linux.xml: Remove.
5545 * features/i386/i386-mmx-linux.xml: Remove.
5546 * features/i386/i386-mmx.xml: Remove.
5547 * features/i386/i386-mpx-linux.xml: Remove.
5548 * features/i386/i386-mpx.xml: Remove.
5549 * features/i386/i386.xml: Remove.
5550 * features/i386/x32-avx-avx512-linux.xml: Remove.
5551 * features/i386/x32-avx-linux.xml: Remove.
5552 * features/i386/x32-linux.xml: Remove.
5553
5554 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5555
5556 * regformats/aarch64.dat: Remove.
5557 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5558 * regformats/i386/amd64-avx-linux.dat: Remove.
5559 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5560 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5561 * regformats/i386/amd64-linux.dat: Remove.
5562 * regformats/i386/amd64-mpx-linux.dat: Remove.
5563 * regformats/i386/amd64.dat: Remove.
5564 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5565 * regformats/i386/i386-avx-linux.dat: Remove.
5566 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5567 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5568 * regformats/i386/i386-linux.dat: Remove.
5569 * regformats/i386/i386-mmx-linux.dat: Remove.
5570 * regformats/i386/i386-mpx-linux.dat: Remove.
5571 * regformats/i386/i386.dat: Remove.
5572 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5573 * regformats/i386/x32-avx-linux.dat: Remove.
5574 * regformats/i386/x32-linux.dat: Remove.
5575
5576 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5577
5578 * aarch64-tdep.c: Remove xml self tests.
5579 * amd64-linux-tdep.c: Likewise.
5580 * amd64-tdep.c: Likewise.
5581 * i386-linux-tdep.c: Likewise.
5582 * i386-tdep.c: Likewise.
5583
5584 2019-07-03 Pedro Alves <palves@redhat.com>
5585
5586 PR cli/24732
5587 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5588 (pipe_cmd_option_defs): New.
5589 (make_pipe_cmd_options_def_group): New.
5590 (pipe_command): Use gdb::option::process_options.
5591 (pipe_command_completer): New function.
5592 (_initialize_cli_cmds): Install completer for "pipe" command.
5593
5594 2019-07-03 Pedro Alves <palves@redhat.com>
5595
5596 * cli/cli-option.c (union option_value) <string>: New field.
5597 (struct option_def_and_value): Add ctor, move ctor, dtor and
5598 use DISABLE_COPY_AND_ASSIGN.
5599 (option_def_and_value::clear_value): New.
5600 (parse_option, save_option_value_in_ctx, get_val_type_str)
5601 (add_setshow_cmds_for_options): Handle var_string.
5602 * cli-option.h (union option_def::var_address) <string>: New
5603 field.
5604 (struct string_option_def): New.
5605 * maint-test-options.c (struct test_options_opts): Add default
5606 ctor and use DISABLE_COPY_AND_ASSIGN.
5607 <string_opt>: New field.
5608 (test_options_opts::~test_options_opts): New.
5609 (test_options_opts::dump): Also dump "-string".
5610 (test_options_option_defs): Install "string.
5611
5612 2019-07-03 Pedro Alves <palves@redhat.com>
5613
5614 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5615 option_value with a null enumeration.
5616 (complete_options): Save the option values in the context.
5617 (save_option_value_in_ctx): New, factored out from ...
5618 (process_options): ... here.
5619 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5620 of the function.
5621 * maint-test-options.c (test_options_opts::dump): New, factored
5622 out from ...
5623 (maintenance_test_options_command_mode): ... here.
5624 (maintenance_test_options_command_completion_result): Delete.
5625 (maintenance_test_options_command_completion_text): Update
5626 comment.
5627 (maintenance_show_test_options_completion_result): Change
5628 prototype. Just print
5629 maintenance_test_options_command_completion_text.
5630 (save_completion_result): New.
5631 (maintenance_test_options_completer_mode): Pass options context to
5632 complete_options, and then save a dump.
5633 (_initialize_maint_test_options): Use add_cmd to install "maint
5634 show test-options-completion-result".
5635
5636 2019-07-03 Pedro Alves <palves@redhat.com>
5637
5638 * NEWS (New commands): Mention "with" and "maint with".
5639 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5640 (with_command, with_command_completer): New.
5641 (pipe_command): Adjust to new repeat_previous
5642 interface.
5643 (_initialize_cli_cmds): Install the "with" command and its "w"
5644 alias.
5645 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5646 declarations.
5647 * cli/cli-setshow.c (parse_cli_var_uinteger)
5648 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5649 argument strings for all var_types.
5650 (get_setshow_command_value_string): New, factored out from ...
5651 (do_show_command): ... this.
5652 * cli/cli-setshow.h: Include <string>.
5653 (get_setshow_command_value_string): Declare.
5654 * command.h (repeat_previous): Now returns const char *. Adjust
5655 comment.
5656 * maint.c: Include "cli/cli-cmds.h".
5657 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5658 (_initialize_maint_cmds): Register the "maintenance with" command.
5659 * top.c (repeat_previous): Move bits from pipe_command here:
5660 Return the saved command line, if any; error out if there's no
5661 command to relaunch.
5662
5663 2019-07-03 Pedro Alves <palves@redhat.com>
5664
5665 * NEWS (New commands): Mention "maint set/show test-settings"
5666 instead of "maint test-settings".
5667 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5668 (maintenance_test_settings_set_list): Rename to ...
5669 (maintenance_set_test_settings_list): ... this.
5670 (maintenance_test_settings_show_list): Rename to ...
5671 (maintenance_show_test_settings_list): ... this.
5672 (maintenance_test_settings_cmd): Delete.
5673 (maintenance_test_settings_set_cmd): ...
5674 (maintenance_set_test_settings_cmd): ... this.
5675 (maintenance_test_settings_show_cmd): ...
5676 (maintenance_show_test_settings_cmd): ... this.
5677 (maintenance_test_settings_show_value_cmd):
5678 (maintenance_show_test_settings_value_cmd): ... this.
5679 (_initialize_maint_test_settings): No longer install the "maint
5680 test-settings" prefix command. Rename "maint test-settings set"
5681 to "maint set test-settings", and "maint test-settings show" to
5682 "maint show test-settings". Adjust all subcommands.
5683
5684 2019-07-03 Pedro Alves <palves@redhat.com>
5685
5686 * maint-test-settings.c: Fix file's intro comment. Replace all
5687 references to "test-options" with references to "test-settings",
5688 in comments.
5689
5690 2019-07-03 Pedro Alves <palves@redhat.com>
5691
5692 * maint-test-settings.c (maintenance_test_settings_xxx)
5693 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5694 New.
5695 (maintenance_test_settings_enums): Use them.
5696 (maintenance_test_settings_enum): Default to
5697 maintenance_test_settings_xxx.
5698 (_initialize_maint_test_settings): Initialize
5699 MAINTENANCE_TEST_SETTINGS_FILENAME.
5700
5701 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5702
5703 * breakpoint.h (remove_breakpoints_inf): Change return type to
5704 void, move function documentation here.
5705 * breakpoint.c (remove_breakpoints_inf): Change return type to
5706 void, move function documentation to header.
5707
5708 2019-07-02 Pedro Alves <palves@redhat.com>
5709
5710 * NEWS (Completion improvements): Mention "info threads".
5711 * thread.c (struct info_threads_opts, info_threads_option_defs)
5712 (make_info_threads_options_def_group): New.
5713 (info_threads_command): Use gdb::option::process_options.
5714 (info_threads_command_completer): New.
5715 (_initialize_thread): Use gdb::option::build_help to build the
5716 help text for "info threads".
5717
5718 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * defs.h (generic_load): Move from here...
5721 * symfile.h (generic_load): ... to here. Rename name parameter
5722 to args.
5723 * symfile.c (generic_load): Add comment.
5724
5725 2019-07-01 Tom Tromey <tromey@adacore.com>
5726
5727 * dwarf2read.c
5728 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5729 declaration of without_params. Fix formatting.
5730
5731 2019-07-01 Tom Tromey <tromey@adacore.com>
5732
5733 * ada-exp.y (find_primitive_type): Update.
5734 * ada-lang.h (ada_lookup_symbol): Update.
5735 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5736 parameter.
5737 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5738
5739 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5740
5741 PR breakpoints/24541
5742 * gdbarch.c: Regenerate.
5743 * gdbarch.h: Regenerate.
5744 * gdbarch.sh: Add 'stap_adjust_register'.
5745 * i386-tdep.c: Include '<unordered_set>'.
5746 (i386_stap_adjust_register): New function.
5747 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5748 * stap-probe.c (stap_parse_register_operand): Call
5749 'gdbarch_stap_adjust_register'.
5750
5751 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5752
5753 PR python/24742
5754 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5755 * python/python.c (do_start_initialization): Use 'xmalloc'
5756 instead of 'PyMem_Malloc'.
5757
5758 2019-06-28 Tom Tromey <tromey@adacore.com>
5759
5760 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5761 for Ada.
5762
5763 2019-06-27 Tom Tromey <tromey@adacore.com>
5764
5765 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5766 objfile_key.
5767 (arm_find_mapping_symbol, arm_record_special_symbol)
5768 (_initialize_arm_tdep): Update.
5769 (arm_objfile_data_free): Remove.
5770
5771 2019-06-27 Tom Tromey <tromey@adacore.com>
5772
5773 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5774 to cp_print_static_field.
5775
5776 2019-06-26 Tom Tromey <tromey@adacore.com>
5777
5778 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5779 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5780 declare.
5781
5782 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5783
5784 * features/aarch64-core.c (create_feature_aarch64_core):
5785 Regenerate.
5786 * features/aarch64-core.xml: Add cpsr flags.
5787
5788 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5789
5790 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5791 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5792
5793 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5796 field.
5797 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5798 use.
5799 (arm_record_special_symbol): Don't insert new symbol in sorted
5800 position, push it at the end.
5801
5802 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5805 (arm_mapping_symbol_s): Remove.
5806 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5807 (arm_mapping_symbol_vec): New typedef.
5808 (struct arm_per_objfile): Add constructor.
5809 <section_maps>: Change type to
5810 std::unique_ptr<arm_mapping_symbol_vec[]>.
5811 (arm_compare_mapping_symbols): Remove.
5812 (arm_find_mapping_symbol): Adjust to section_maps type change.
5813 (arm_objfile_data_free): Call delete on arm_per_objfile.
5814 (arm_record_special_symbol): Adjust to section_maps type change.
5815 Allocate arm_per_objfile with new.
5816
5817 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5818
5819 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5820 with the command prefix.
5821
5822 2019-06-25 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5825 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5826
5827 2019-06-25 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5830 type.
5831 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5832 protected.
5833
5834 2019-06-25 Tom Tromey <tom@tromey.com>
5835
5836 * tui/tui-winsource.c
5837 (tui_source_window_base::set_is_exec_point_at): Add check against
5838 LOA_ADDRESS.
5839
5840 2019-06-25 Tom Tromey <tom@tromey.com>
5841
5842 * tui/tui-source.c (tui_set_source_content): Don't check before
5843 xfree.
5844 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5845
5846 2019-06-25 Tom Tromey <tom@tromey.com>
5847
5848 * tui/tui-winsource.h (tui_update_source_window_as_is)
5849 (tui_alloc_source_buffer, tui_line_is_displayed)
5850 (tui_addr_is_displayed): Change type of win_info.
5851 * tui/tui-winsource.c (tui_update_source_window_as_is)
5852 (tui_clear_source_content, tui_show_source_line)
5853 (tui_show_source_content, tui_source_window_base::refill)
5854 (tui_source_window_base::set_is_exec_point_at)
5855 (tui_source_window_base::set_is_exec_point_at)
5856 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5857 (tui_alloc_source_buffer, tui_line_is_displayed)
5858 (tui_addr_is_displayed): Change type of win_info. Update.
5859 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5860 (tui_source_window_base::do_make_visible_with_new_height):
5861 Update.
5862 * tui/tui-source.c (tui_set_source_content)
5863 (tui_set_source_content_nil)
5864 (tui_source_window::do_scroll_vertical): Update.
5865 * tui/tui-layout.c (show_layout): Update.
5866 * tui/tui-disasm.c (tui_set_disassem_content)
5867 (tui_disasm_window::do_scroll_vertical): Update.
5868 * tui/tui-data.h (tui_win_content): Remove.
5869 (struct tui_gen_win_info) <content, content_size>: Remove.
5870 (struct tui_source_element): Add initializers and destructor.
5871 (union tui_which_element, struct tui_win_element): Remove.
5872 (struct tui_source_window_base) <content>: New field.
5873 (struct tui_data_window): Remove destructor.
5874 (tui_alloc_content, tui_free_win_content)
5875 (tui_free_all_source_wins_content): Don't declare.
5876 * tui/tui-data.c (tui_initialize_static_data): Update.
5877 (init_content_element, tui_alloc_content): Remove.
5878 (~tui_gen_win_info): Update.
5879 (~tui_data_window, tui_free_all_source_wins_content)
5880 (tui_free_win_content, free_content, free_content_elements):
5881 Remove.
5882
5883 2019-06-25 Tom Tromey <tom@tromey.com>
5884
5885 * tui/tui-winsource.h (tui_clear_source_content)
5886 (tui_erase_source_content, tui_show_source_content): Change type
5887 of win_info.
5888 * tui/tui-winsource.c (tui_clear_source_content)
5889 (tui_erase_source_content, tui_show_source_content): Change type
5890 of win_info.
5891 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5892 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5893 win_info.
5894 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5895 win_info.
5896 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5897
5898 2019-06-25 Tom Tromey <tom@tromey.com>
5899
5900 * tui/tui-winsource.c (tui_clear_source_content)
5901 (tui_source_window_base::set_is_exec_point_at): Update.
5902 * tui/tui-source.c (tui_set_source_content_nil): Update.
5903 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5904 a bool.
5905 * tui/tui-data.c (init_content_element): Update.
5906
5907 2019-06-25 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5910 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5911 * tui/tui-layout.c (init_and_make_win): Update.
5912 * tui/tui.h (enum tui_win_type): Update.
5913 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5914 tui_win_is_auxillary.
5915 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5916 tui_win_is_auxillary.
5917
5918 2019-06-25 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5921 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5922 (tui_delete_data_content_windows, tui_display_all_data)
5923 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5924 Update.
5925 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5926 * tui/tui-regs.c (tui_last_regs_line_no)
5927 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5928 (tui_show_registers): Update.
5929 (tui_show_register_group): Return void. Update.
5930 (tui_display_registers_from, tui_display_reg_element_at_line)
5931 (tui_display_registers_from_line, tui_check_register_values):
5932 Update.
5933 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5934 member.
5935 (struct tui_data_window) <regs_content>: Now a std::vector.
5936 <regs_content_count>: Remove.
5937 (tui_add_content_elements, tui_free_data_content): Don't declare.
5938 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5939 (init_content_element): Remove DATA_WIN case. Add assert.
5940 (tui_add_content_elements): Remove.
5941 (tui_data_window): Update.
5942 (tui_free_data_content): Remove.
5943 (free_content_elements): Remove DATA_WIN case.
5944
5945 2019-06-25 Tom Tromey <tom@tromey.com>
5946
5947 * tui/tui-data.c (tui_data_item_window): Update.
5948 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5949 * tui/tui-windata.c (tui_display_all_data)
5950 (tui_display_data_from_line): Update.
5951 (tui_check_data_values): Remove.
5952 * tui/tui-regs.c (tui_show_register_group)
5953 (tui_display_reg_element_at_line): Update.
5954 * tui/tui-hooks.c (tui_register_changed)
5955 (tui_refresh_frame_and_register_information): Call
5956 tui_check_register_values.
5957 * tui/tui-data.h (struct tui_data_window) <data_content,
5958 data_content_count, data_type>: Remove.
5959 (enum tui_data_type): Remove.
5960
5961 * tui/tui-data.c (tui_data_window::clear_detail)
5962 (~tui_data_window): Update.
5963
5964 2019-06-25 Tom Tromey <tom@tromey.com>
5965
5966 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5967 declare.
5968 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5969 Rename from tui_first_data_item_displayed. Update.
5970 (tui_data_window::refresh_all)
5971 (tui_data_window::do_scroll_vertical): Update.
5972 * tui/tui-data.h (struct tui_data_window)
5973 <first_data_item_displayed>: Declare new method.
5974
5975 2019-06-25 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5978 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5979 contents...
5980 (tui_initialize_static_data): ...here.
5981
5982 2019-06-25 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5985 (tui_display_registers_from, tui_check_register_values): Update.
5986 (tui_display_register): Remove win_info parameter; update.
5987 (tui_get_register): Change type of parameters.
5988 * tui/tui-data.h (struct tui_data_element): Remove.
5989 (union tui_which_element) <data>: Remove.
5990 <data_window>: Change type.
5991 (struct tui_data_item_window): New.
5992 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5993 case. Add assert.
5994 (~tui_data_item_window): New destructor.
5995 (free_content_elements): Remove DATA_ITEM_WIN case.
5996
5997 2019-06-25 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6000 Remove.
6001
6002 2019-06-25 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-data.h (struct tui_command_element): Remove.
6005 (union tui_which_element) <command>: Remove.
6006 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6007 assert.
6008 (free_content_elements): Remove CMD_WIN case.
6009
6010 2019-06-25 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-layout.c (tui_set_layout): Update.
6013 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6014 * tui/tui-data.c (layout_def): Update.
6015
6016 2019-06-25 Tom Tromey <tom@tromey.com>
6017
6018 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6019 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6020 (tui_source_window_base::set_new_height): Update.
6021 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6022 Update.
6023 (tui_set_locator_fullname, tui_set_locator_info)
6024 (tui_show_frame_info): Update.
6025 * tui/tui-source.c (tui_set_source_content)
6026 (tui_source_is_displayed): Update.
6027 * tui/tui-layout.c (show_source_disasm_command, show_data)
6028 (show_source_or_disasm_and_command): Update.
6029 * tui/tui-disasm.c (tui_set_disassem_content)
6030 (tui_get_begin_asm_address): Update.
6031 * tui/tui-data.h (struct tui_locator_element): Remove.
6032 (union tui_which_element) <locator>: Remove.
6033 (struct tui_locator_window): New.
6034 (tui_locator_win_info_ptr): Change return type.
6035 * tui/tui-data.c (_locator): Change type.
6036 (tui_locator_win_info_ptr): Change return type.
6037 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6038 (tui_alloc_content): Add assert.
6039
6040 2019-06-25 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui-winsource.c
6043 (tui_exec_info_window::maybe_allocate_content): New method.
6044 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6045 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6046 (make_source_or_disasm_window): Add cast.
6047 * tui/tui-data.h (union tui_which_element) <simple_string>:
6048 Remove.
6049 (struct tui_source_info): New.
6050 (struct tui_source_window_base) <execution_info>: Change type.
6051 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6052 case, and add assert.
6053 (tui_alloc_content): Add assert.
6054
6055 2019-06-25 Tom Tromey <tom@tromey.com>
6056
6057 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6058 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6059 * tui/tui-data.c (tui_alloc_win_info): Remove.
6060
6061 2019-06-25 Tom Tromey <tom@tromey.com>
6062
6063 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6064 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6065 can_highlight.
6066
6067 2019-06-25 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6070 make_visible_with_new_height method.
6071 (tui_win_info::make_visible_with_new_height): New method.
6072 (tui_source_window_base::do_make_visible_with_new_height)
6073 (tui_data_window::do_make_visible_with_new_height)
6074 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6075 (make_visible_with_new_height): Remove.
6076 (tui_resize_all, tui_adjust_win_heights): Use
6077 make_visible_with_new_height method.
6078 * tui/tui-data.h (struct tui_win_info)
6079 <do_make_visible_with_new_height, make_visible_with_new_height>:
6080 New methods.
6081 (struct tui_source_window_base, struct tui_data_window)
6082 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6083 methods.
6084
6085 2019-06-25 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6088 method.
6089 (update_tab_width): Call update_tab_width method.
6090 * tui/tui-data.h (struct tui_win_info)
6091 (struct tui_source_window_base) <update_tab_width>: New methods.
6092
6093 2019-06-25 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6096 parameter.
6097 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6098 parameter.
6099 (tui_gen_win_info::make_visible): Update.
6100 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6101 parameter.
6102 * tui/tui-data.h (enum tui_box): New enum.
6103 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6104
6105 2019-06-25 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6108 init_and_make_win for EXEC_INFO_WIN.
6109 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6110 longer inline.
6111 (struct tui_win_info) <~tui_win_info>: Inline.
6112 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6113 Don't declare.
6114 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6115 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6116 Remove.
6117 (tui_initialize_static_data): Update.
6118 (~tui_gen_win_info): Handle more cleanup here.
6119 (~tui_source_window_base): Delete "execution_info".
6120 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6121
6122 2019-06-25 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-layout.c (make_command_window): Don't set
6125 can_highlight.
6126 (show_source_disasm_command): Call the reset method.
6127 (show_data): Don't set can_highlight. Call the reset method.
6128 (tui_gen_win_info::reset): Rename from init_gen_win_info
6129 (init_and_make_win): Simplify. Return tui_gen_win_info.
6130 (show_source_or_disasm_and_command): Call the reset method.
6131 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6132 (struct tui_cmd_window): Set can_highlight.
6133
6134 2019-06-25 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6137 from make_visible.
6138 (tui_make_visible, tui_make_invisible): Rewrite.
6139 (tui_win_info::make_visible): Remove.
6140 (tui_source_window_base::make_visible): Update.
6141 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6142 method. Moved from...
6143 (struct tui_win_info) <make_visible>: ...here.
6144
6145 2019-06-25 Tom Tromey <tom@tromey.com>
6146
6147 * tui/tui-winsource.c
6148 (tui_source_window_base::do_scroll_horizontal): Remove direction
6149 parameter.
6150 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6151 direction parameter.
6152 * tui/tui-win.c (tui_win_info::forward_scroll)
6153 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6154 (tui_win_info::right_scroll): Update.
6155 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6156 direction parameter.
6157 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6158 direction parameter.
6159 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6160 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6161 Remove direction parameter.
6162 (struct tui_source_window_base, struct tui_source_window)
6163 (struct tui_disasm_window, struct tui_data_window)
6164 (struct tui_cmd_window): Update.
6165
6166 2019-06-25 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-winsource.h (tui_set_exec_info_content)
6169 (tui_show_exec_info_content, tui_erase_exec_info_content)
6170 (tui_clear_exec_info_content, tui_update_exec_info): Change
6171 argument to tui_source_window_base.
6172 * tui/tui-winsource.c (tui_set_exec_info_content)
6173 (tui_show_exec_info_content, tui_erase_exec_info_content)
6174 (tui_clear_exec_info_content, tui_update_exec_info): Change
6175 argument to tui_source_window_base.
6176
6177 2019-06-25 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6180 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6181
6182 2019-06-25 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6185 check.
6186
6187 2019-06-25 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6190 type to void.
6191 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6192 type to void.
6193 * tui/tui-source.c (tui_set_source_content): Update.
6194 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6195
6196 2019-06-25 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-win.c (window_name_completer, tui_set_focus)
6199 (tui_all_windows_info): Use name method.
6200 * tui/tui-data.h (struct tui_gen_win_info)
6201 (struct tui_source_window, struct tui_disasm_window)
6202 (struct tui_data_window, struct tui_cmd_window) <name>: New
6203 method.
6204 (tui_win_name): Don't declare.
6205 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6206 (tui_win_name): Remove.
6207
6208 2019-06-25 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-winsource.h (tui_update_source_window)
6211 (tui_update_source_window_as_is): Change parameter type.
6212 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6213 to be a tui_source_window_base.
6214 (tui_update_source_window_as_is): Likewise.
6215 * tui/tui-win.c (make_visible_with_new_height): Update.
6216
6217 2019-06-25 Tom Tromey <tom@tromey.com>
6218
6219 * tui/tui-winsource.c (tui_erase_source_content)
6220 (tui_show_source_content, tui_show_exec_info_content)
6221 (tui_erase_exec_info_content): Use refresh_window method.
6222 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6223 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6224 from tui_refresh_win.
6225 (tui_data_window::refresh_window): New method.
6226 (tui_win_info::refresh, tui_source_window_base::refresh)
6227 (tui_refresh_all): Use refresh_window method.
6228 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6229 method.
6230 * tui/tui-regs.c (tui_display_register): Call refresh_window
6231 method.
6232 * tui/tui-layout.c (show_source_disasm_command)
6233 (show_source_or_disasm_and_command): Call refresh_window method.
6234 * tui/tui-data.h (struct tui_gen_win_info)
6235 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6236 New method.
6237
6238 2019-06-25 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui.c (tui_rl_other_window, tui_enable)
6241 (tui_is_window_visible, tui_get_command_dimension): Update.
6242 * tui/tui-winsource.c (tui_update_source_window_as_is)
6243 (tui_clear_source_content, tui_erase_source_content)
6244 (tui_show_source_line, tui_source_window_base::refill)
6245 (tui_source_window_base::do_scroll_horizontal)
6246 (tui_source_window_base::set_is_exec_point_at)
6247 (tui_update_breakpoint_info, tui_set_exec_info_content)
6248 (tui_alloc_source_buffer, tui_line_is_displayed)
6249 (tui_addr_is_displayed): Update.
6250 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6251 (tui_check_and_display_highlight_if_needed)
6252 (tui_win_info::make_visible, tui_win_info::refresh)
6253 (tui_refresh_all): Update.
6254 * tui/tui-windata.c (tui_first_data_item_displayed)
6255 (tui_delete_data_content_windows, tui_erase_data_content)
6256 (tui_display_all_data, tui_data_window::refresh_all)
6257 (tui_check_data_values): Update.
6258 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6259 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6260 (tui_win_info::backward_scroll, tui_refresh_all_win)
6261 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6262 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6263 (tui_source_window_base::set_new_height)
6264 (tui_data_window::set_new_height)
6265 (make_invisible_and_set_new_height)
6266 (make_visible_with_new_height, new_height_ok)
6267 (parse_scrolling_args): Update.
6268 * tui/tui-stack.c (tui_show_frame_info): Update.
6269 * tui/tui-source.c (tui_set_source_content)
6270 (tui_set_source_content_nil, tui_source_is_displayed)
6271 (tui_source_window::do_scroll_vertical): Update.
6272 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6273 (tui_display_registers_from, tui_display_reg_element_at_line)
6274 (tui_check_register_values, tui_reg_command): Update.
6275 * tui/tui-layout.c (tui_default_win_height)
6276 (show_source_disasm_command, show_data, init_and_make_win)
6277 (show_source_or_disasm_and_command): Update.
6278 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6279 (tui_redisplay_readline, tui_mld_flush)
6280 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6281 (tui_getc): Update.
6282 * tui/tui-disasm.c (tui_set_disassem_content)
6283 (tui_disasm_window::do_scroll_vertical): Update.
6284 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6285 Now virtual.
6286 (struct tui_win_info): Derive from tui_gen_win_info.
6287 <~tui_win_info>: Mark as override.
6288 <generic>: Remove member.
6289 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6290 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6291 (~tui_data_window, ~tui_win_info)
6292 (tui_free_all_source_wins_content): Update.
6293 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6294
6295 2019-06-25 Tom Tromey <tom@tromey.com>
6296
6297 * tui/tui-layout.c (init_and_make_win): Use new.
6298 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6299 destructor, initializers.
6300 (tui_alloc_generic_win_info): Don't declare.
6301 * tui/tui-data.c (_locator): Add argument to constructor.
6302 (source_win, disasm_win): New globals.
6303 (exec_info): Remove.
6304 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6305 Update.
6306 (tui_alloc_generic_win_info): Remove.
6307 (init_content_element): Use new.
6308 (tui_win_info::tui_win_info): Update.
6309 (free_content_elements) <case DATA_WIN>: Use delete.
6310
6311 2019-06-25 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6314 * tui/tui-windata.c (tui_first_data_item_displayed)
6315 (tui_delete_data_content_windows): Update.
6316 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6317 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6318 (tui_display_registers_from, tui_check_register_values): Update.
6319 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6320 pointer.
6321 * tui/tui-data.c (init_content_element): Update. Allocate the new
6322 window.
6323 (tui_free_data_content): Update.
6324 (free_content_elements) <case DATA_WIN>: Free the window.
6325
6326 2019-06-25 Tom Tromey <tom@tromey.com>
6327
6328 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6329 Update.
6330 * tui/tui-layout.c (make_command_window)
6331 (show_source_disasm_command, show_data, init_and_make_win)
6332 (show_source_or_disasm_and_command): Update.
6333 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6334 method.
6335 <can_highight, is_highlighted>: Now bool.
6336 (tui_set_win_highlight): Don't declare.
6337 * tui/tui-data.c (tui_set_win_highlight): Remove.
6338
6339 2019-06-25 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-wingeneral.c (make_visible): Remove check of window
6342 type.
6343
6344 2019-06-25 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-win.c (tui_win_info::max_height)
6347 (tui_cmd_window::max_height): New methods.
6348 (new_height_ok): Call max_height.
6349 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6350 <max_height>: New method.
6351
6352 2019-06-25 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-win.c (tui_source_window_base::set_new_height)
6355 (tui_data_window::set_new_height): New methods.
6356 (make_invisible_and_set_new_height): Call set_new_height method.
6357 * tui/tui-data.h (struct tui_win_info)
6358 (struct tui_source_window_base, struct tui_data_window)
6359 <set_new_height>: New method.
6360
6361 2019-06-25 Tom Tromey <tom@tromey.com>
6362
6363 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6364 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6365 tui_refresh_data_win.
6366 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6367 method.
6368 (tui_refresh_all_win): Call the refresh_all method.
6369 (tui_set_focus): Likewise.
6370 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6371 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6372 Likewise.
6373
6374 2019-06-25 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-winsource.h (tui_refill_source_window)
6377 (tui_set_is_exec_point_at): Don't declare.
6378 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6379 (tui_source_window_base::refill): Rename from
6380 tui_refill_source_window.
6381 (tui_source_window_base::do_scroll_horizontal): Update.
6382 (tui_source_window_base::set_is_exec_point_at): Rename from
6383 tui_set_is_exec_point_at.
6384 (tui_update_all_breakpoint_info): Update.
6385 * tui/tui-stack.c (tui_show_frame_info): Update.
6386 * tui/tui-layout.c (show_data): Add cast.
6387 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6388 * tui/tui-data.h (struct tui_source_window_base) <refill,
6389 set_is_exec_point_at>: New methods.
6390 (tui_source_windows, tui_add_to_source_windows): Update types.
6391 (tui_add_to_source_windows): Remove redundant declaration.
6392 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6393 (tui_source_windows): Change return type.
6394 (tui_clear_source_windows_detail): Update.
6395 (tui_add_to_source_windows): Change type of parameter.
6396 (tui_free_all_source_wins_content): Update.
6397
6398 2019-06-25 Tom Tromey <tom@tromey.com>
6399
6400 * tui/tui-wingeneral.c (tui_win_info::refresh)
6401 (tui_source_window_base::refresh): New methods.
6402 (tui_refresh_all): Call the refresh method.
6403 * tui/tui-data.h (struct tui_win_info)
6404 (struct tui_source_window_base) <refresh>: New method.
6405
6406 2019-06-25 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui.h (tui_is_window_visible): Return bool.
6409 * tui/tui.c (tui_is_window_visible): Return bool.
6410 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6411 (tui_make_visible, tui_make_invisible)
6412 (tui_win_info::make_visible)
6413 (tui_source_window_base::make_visible, make_all_visible)
6414 (tui_make_all_visible, tui_make_all_invisible): Update.
6415 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6416 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6417 bool.
6418 (struct tui_win_info, struct tui_source_window_base)
6419 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6420 * tui/tui-data.c (tui_init_generic_part): Update.
6421
6422 2019-06-25 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6425 (tui_source_window_base::make_visible): New methods.
6426 (make_all_visible): Make method call.
6427 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6428 (struct tui_source_window_base, struct tui_cmd_window): Override
6429 make_visible.
6430 (tui_win_is_source_type): Don't declare.
6431 * tui/tui-data.c (tui_win_is_source_type): Remove.
6432
6433 2019-06-25 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6436 NULL check.
6437
6438 2019-06-25 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6441 Inline constructor. Add initializers for members.
6442 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6443 constructors; now inline in class.
6444
6445 2019-06-25 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-regs.c (tui_show_registers): Update.
6448 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6449 bool.
6450 * tui/tui-data.c (tui_data_window::clear_detail)
6451 (tui_data_window): Update.
6452
6453 2019-06-25 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-windata.c (tui_display_all_data)
6456 (tui_display_data_from_line, tui_display_data_from)
6457 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6458 Update.
6459 * tui/tui-regs.c (tui_last_regs_line_no)
6460 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6461 (tui_show_registers, tui_show_register_group)
6462 (tui_display_registers_from, tui_display_reg_element_at_line)
6463 (tui_display_registers_from_line, tui_check_register_values)
6464 (tui_reg_next, tui_reg_prev): Update.
6465 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6466 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6467 tui_data_window.
6468 (struct tui_win_info) <detail>: Remove. Add new fields from
6469 tui_data_info.
6470 (TUI_DATA_WIN): Add cast.
6471 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6472 (~tui_data_window): Simplify.
6473
6474 2019-06-25 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-layout.c (show_source_disasm_command)
6477 (show_source_or_disasm_and_command): Update.
6478 * tui/tui-io.c (update_cmdwin_start_line)
6479 (tui_redisplay_readline): Update.
6480 * tui/tui-data.h (struct tui_command_info): Remove.
6481 (struct tui_win_info) <detail>: Remove command_info member.
6482 (struct tui_data_window) <start_line>: New member, from
6483 tui_command_info.
6484 (TUI_CMD_WIN): Add casts.
6485
6486 2019-06-25 Tom Tromey <tom@tromey.com>
6487
6488 * tui/tui-winsource.c (tui_update_source_window)
6489 (tui_refill_source_window)
6490 (tui_source_window_base::do_scroll_horizontal)
6491 (tui_update_breakpoint_info, tui_set_exec_info_content)
6492 (tui_show_exec_info_content, tui_erase_exec_info_content)
6493 (tui_clear_exec_info_content): Update.
6494 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6495 Update.
6496 * tui/tui-win.c (make_invisible_and_set_new_height)
6497 (make_visible_with_new_height): Update.
6498 * tui/tui-source.c (tui_set_source_content)
6499 (tui_show_symtab_source): Update.
6500 * tui/tui-layout.c (extract_display_start_addr)
6501 (show_source_disasm_command, show_data)
6502 (make_source_or_disasm_window)
6503 (show_source_or_disasm_and_command): Update.
6504 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6505 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6506 "gdbarch".
6507 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6508 to tui_source_window_base.
6509 (struct tui_win_info) <detail>: Remove source_info member.
6510 (struct tui_source_window_base) <has_locator>: Inline.
6511 Move contents from tui_source_info; rename has_locator member to
6512 m_has_locator.
6513 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6514 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6515 header file.
6516 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6517 Simplify.
6518 (tui_free_all_source_wins_content): Cast to
6519 tui_source_window_base.
6520
6521 2019-06-25 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-win.c (make_invisible_and_set_new_height)
6524 (make_visible_with_new_height): Call has_locator method.
6525 * tui/tui-layout.c (show_source_disasm_command, show_data)
6526 (show_source_or_disasm_and_command): Update for bool change.
6527 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6528 (tui_win_info) <has_locator>: New method.
6529 (struct tui_source_window_base) <has_locator>: New method.
6530 (tui_win_has_locator): Don't declare.
6531 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6532 from tui_win_has_locator.
6533 (tui_source_window_base): Use false, not FALSE.
6534
6535 2019-06-25 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6538 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6539 clear_detail method directly.
6540 (tui_clear_win_detail): Remove.
6541
6542 2019-06-25 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6545 "this", not TUI_DISASM_WIN.
6546
6547 2019-06-25 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6550 declare.
6551 * tui/tui-winsource.c
6552 (tui_source_window_base::do_scroll_horizontal): Rename from
6553 tui_horizontal_source_scroll.
6554 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6555 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6556 from tui_vertical_data_scroll.
6557 * tui/tui-win.h (tui_scroll): Don't declare.
6558 * tui/tui-win.c (tui_win_info::forward_scroll)
6559 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6560 (tui_win_info::right_scroll): Rename and update.
6561 (tui_scroll_forward_command, tui_scroll_backward_command)
6562 (tui_scroll_left_command, tui_scroll_right_command): Update.
6563 (tui_scroll): Remove.
6564 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6565 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6566 from tui_vertical_source_scroll.
6567 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6568 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6569 from tui_vertical_disassem_scroll.
6570 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6571 do_scroll_horizontal>: New methods.
6572 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6573 Likewise.
6574 (struct tui_source_window_base): Add do_scroll_horizontal.
6575 (struct tui_source_window, struct tui_disasm_window): Add
6576 do_scroll_vertical.
6577 (struct tui_data_window, struct tui_cmd_window): Add
6578 do_scroll_horizontal and do_scroll_vertical.
6579 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6580
6581 2019-06-25 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-data.h (struct tui_source_window_base): New struct.
6584 (struct tui_source_window): Derive from tui_source_window_base.
6585 (struct tui_disasm_window): New struct.
6586 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6587 from tui_source_window::clear_detail.
6588 (tui_source_window_base): Rename from tui_source_window.
6589 (~tui_source_window_base): Rename from ~tui_source_window.
6590 (tui_alloc_win_info): Create a tui_disasm_window.
6591
6592 2019-06-25 Tom Tromey <tom@tromey.com>
6593
6594 * tui/tui-data.h (struct tui_source_window)
6595 (struct tui_data_window): Declare destructors.
6596 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6597 destructors.
6598 (tui_win_info): Simplify.
6599
6600 2019-06-25 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-winsource.c (tui_display_main)
6603 (tui_update_source_windows_with_addr)
6604 (tui_update_all_breakpoint_info): Update.
6605 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6606 (new_height_ok, parse_scrolling_args): Update.
6607 * tui/tui-stack.c (tui_show_frame_info): Update.
6608 * tui/tui-data.h (struct tui_list): Remove.
6609 (tui_source_windows): Return a reference to a std::vector.
6610 * tui/tui-data.c (source_windows): Now a std::vector.
6611 (tui_source_windows): Change return type.
6612 (tui_clear_source_windows): Rewrite.
6613 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6614 (tui_free_all_source_wins_content): Rewrite.
6615
6616 2019-06-25 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6619 (struct tui_data_window, struct tui_cmd_window): Declare
6620 clear_detail method.
6621 * tui/tui-data.c (tui_source_window::clear_detail)
6622 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6623 methods.
6624 (tui_clear_win_detail): Simplify.
6625
6626 2019-06-25 Tom Tromey <tom@tromey.com>
6627
6628 * tui/tui-layout.c (make_source_window, make_disasm_window)
6629 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6630 Return the new window.
6631 (show_source_disasm_command, show_data)
6632 (show_source_or_disasm_and_command): Update.
6633
6634 2019-06-25 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6637 parameter. Return the new window.
6638 (show_source_disasm_command): Update and remove NULL check.
6639 (show_source_or_disasm_and_command): Update.
6640
6641 2019-06-25 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6644
6645 2019-06-25 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-data.h (struct tui_win_info): Make constructor
6648 protected. Make destructor virtual. Add initializers.
6649 (tui_source_window, tui_data_window, tui_cmd_window): New
6650 classes.
6651 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6652 constructor. Add "type" parameter.
6653 (tui_source_window, tui_data_window, tui_cmd_window): New
6654 constructors.
6655 (tui_alloc_win_info): Instantiate the appropriate subclass.
6656
6657 2019-06-25 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-win.c (tui_resize_all): Use delete.
6660 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6661 destructor.
6662 (tui_free_window): Don't declare.
6663 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6664 Update.
6665
6666 2019-06-25 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-data.h (struct tui_win_info): Add constructor.
6669 * tui/tui-data.c (tui_alloc_win_info): Use new.
6670 (tui_free_window): Use delete.
6671
6672 2019-06-22 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6675 declare.
6676 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6677
6678 2019-06-22 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6681 declare.
6682 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6683
6684 2019-06-22 Tom de Vries <tdevries@suse.de>
6685
6686 * dwarf2read.c (create_addrmap_from_aranges)
6687 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6688 instead of '%zu'.
6689
6690 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6691
6692 * dwarf2read.h (dwarf2_section_info_def): Remove.
6693 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6694 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6695 std::vector<dwarf2_section_info>.
6696 (struct dwo_file) <~dwo_file>: Remove.
6697 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6698 types field.
6699 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6700 (dwarf2_read_debug_names): Likewise.
6701 (create_debug_types_hash_table): Change parameter type to
6702 array_view, adjust code accordingly.
6703 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6704 (partial_die_info::fixup): Likewise.
6705 (determine_prefix): Likewise.
6706 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6707
6708 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6709
6710 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6711 gdb_bfd_ref_ptr.
6712 <~dwo_file>: Remove call to gdb_bfd_unref.
6713 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6714 gdb_bfd_ref_ptr::get.
6715
6716 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6717
6718 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6719 type to htab_up.
6720 * dwarf2read.c (struct dwo_file): Initialize fields.
6721 <~dwo_file>: New.
6722 (free_dwo_file): Remove, move content to ~dwo_file.
6723 (struct dwo_file_deleter): Remove.
6724 (dwo_file_up>: Remove custom deleter.
6725 (free_dwo_files): Remove.
6726 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6727 dwo_files.
6728 (process_skeletonless_type_units): Call unique_ptr::get.
6729 (allocate_dwo_file_hash_table): Add deleter to created hash
6730 table. Change return type to htab_up.
6731 (lookup_dwo_file_slot): Don't memset dwo_file, call
6732 unique_ptr::get.
6733 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6734 (create_dwo_unit_in_dwp_v2): Likewise.
6735 (open_and_init_dwo_file): Likewise.
6736 (free_dwo_file_from_slot): Remove.
6737
6738 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * dwarf2read.h (struct dwarf2_section_info) <readin,
6741 is_virtual>: Change type to bool.
6742 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6743 true instead of 1.
6744
6745 2019-06-19 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-data.h (tui_init_content_element): Don't declare.
6748
6749 2019-06-19 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-data.h (tui_init_win_info): Don't declare.
6752
6753 2019-06-19 Tom de Vries <tdevries@suse.de>
6754
6755 * dwarf2read.h (abstract_to_concrete): Change type to
6756 std::unordered_map<sect_offset, std::vector<sect_offset>,
6757 gdb::hash_enum<sect_offset>>.
6758
6759 2019-06-19 Tom Tromey <tromey@adacore.com>
6760
6761 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6762 EVAL_AVOID_SIDE_EFFECTS specially.
6763
6764 2019-06-19 Tom Tromey <tromey@adacore.com>
6765
6766 * source-cache.c (highlighter): New global.
6767 (source_cache::get_source_lines): Create a highlighter on demand.
6768
6769 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6770
6771 * defs.h (deprecated_interactive_hook): Delete declaration.
6772 * interps.c (clear_interpreter_hooks): Remove use of
6773 deprecated_interactive_hook.
6774 * top.c (deprecated_interactive_hook): Delete definition.
6775 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6776
6777 2019-06-18 Tom de Vries <tdevries@suse.de>
6778
6779 PR gdb/24515
6780 * dwarf2read.h (abstract_to_concrete): Change type from
6781 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6782 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6783 * dwarf2read.c (read_variable): Update.
6784 (dwarf2_fetch_die_loc_sect_off): Update.
6785
6786 2019-06-17 Tom de Vries <tdevries@suse.de>
6787
6788 PR gdb/24617
6789 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6790 accessing parent[parent_len - 1].
6791
6792 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6793
6794 PR gdb/24364
6795 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6796 call dtrace_process_dof with NULL dof.
6797
6798 2019-06-16 Tom de Vries <tdevries@suse.de>
6799
6800 PR gdb/24445
6801 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6802
6803 2019-06-16 Tom Tromey <tom@tromey.com>
6804
6805 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6806 (make_all_visible): Use address of member.
6807
6808 2019-06-16 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6811 (tui_free_window, free_content, free_content_elements): Remove
6812 unnecessary cast.
6813 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6814 cast.
6815 * tui/tui-regs.c (tui_show_register_group)
6816 (tui_display_registers_from, tui_display_reg_element_at_line):
6817 Remove unnecessary cast.
6818
6819 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * linux-nat.c (normal_mask): Delete.
6822 (_initialize_linux_nat): Don't initialise normal_mask.
6823
6824 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 PR gdb/24445
6827 * dwarf-index-write.h (write_psymtabs_to_index): Add
6828 dwz_basename parameter.
6829 * dwarf-index-write.c (write_gdbindex): Move file writing to
6830 write_gdbindex_1. Change return type void.
6831 (assert_file_size): Move up, remove filename parameter.
6832 (write_gdbindex_1): New function.
6833 (write_debug_names): Change return type to void, call
6834 assert_file_size.
6835 (struct index_wip_file): New struct.
6836 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6837 file logic to index_wip_file. Write index for dwz file if
6838 needed.
6839 (save_gdb_index_command): Pass basename of dwz file, if present.
6840 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6841 build-id of dwz file, if present.
6842 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6843 (dwarf2_get_dwz_file): Likewise.
6844 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6845 (dwarf2_get_dwz_file): Likewise.
6846
6847 2019-06-16 Tom Tromey <tom@tromey.com>
6848
6849 * coffread.c (process_coff_symbol): Use xstrdup.
6850 * value.c (create_internalvar): Use xstrdup.
6851
6852 2019-06-16 Tom Tromey <tom@tromey.com>
6853
6854 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6855 * breakpoint.c (stopin_command, stopat_command)
6856 (until_break_command, decode_location_default): Remove unnecessary
6857 cast.
6858 * utils.c (subset_compare): Remove unnecessary cast.
6859 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6860 cast.
6861 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6862 cast.
6863 * infcmd.c (path_command): Remove unnecessary cast.
6864 * coffread.c (decode_type): Remove unnecessary cast.
6865 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6866 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6867 * tui/tui-stack.c (tui_show_locator_content)
6868 (tui_show_frame_info): Remove unnecessary cast.
6869 * tui/tui-win.c (tui_scroll_forward_command)
6870 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6871 (parse_scrolling_args): Remove unnecessary cast.
6872 * tui/tui-data.c (init_win_info, tui_del_window)
6873 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6874 (free_content_elements): Remove unnecessary cast.
6875 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6876 unnecessary cast.
6877 * tui/tui-source.c (tui_set_source_content)
6878 (tui_vertical_source_scroll): Remove unnecessary cast.
6879 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6880 cast.
6881 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6882 * tui/tui-regs.c (tui_display_registers_from)
6883 (tui_display_register): Remove unnecessary cast.
6884 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6885 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6886 (make_visible): Remove unnecessary cast.
6887 * tui/tui-winsource.c (tui_erase_source_content)
6888 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6889 unnecessary cast.
6890 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6891 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6892 * stabsread.c (read_type, read_array_type, read_range_type):
6893 Remove unnecessary cast.
6894 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6895 (parse_symbol, parse_type, upgrade_type, parse_external)
6896 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6897 unnecessary cast.
6898 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6899
6900 2019-06-16 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-data.c (tui_alloc_generic_win_info)
6903 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6904 checks.
6905
6906 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6907 Andrew Burgess <andrew.burgess@embecosm.com>
6908
6909 * f-typeprint.c (f_print_type): Don't return early for not
6910 associated or not allocated types.
6911 (f_type_print_varspec_suffix): Add print_rank parameter and print
6912 ranks of array types in case they dangling.
6913 (f_type_print_base): Add print_rank parameter.
6914
6915 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * NEWS: Mention new MI commands.
6918 * break-catch-throw.c (enum exception_event_kind): Move to
6919 breakpoint.h.
6920 (print_mention_exception_catchpoint): Output text as a single
6921 message.
6922 (catch_exception_command_1): Rename to...
6923 (catch_exception_event): ...this, make non-static, update header
6924 command, and change some parameter types.
6925 (catch_catch_command): Update for changes to
6926 catch_exception_command_1.
6927 (catch_throw_command): Likewise.
6928 (catch_rethrow_command): Likewise.
6929 * breakpoint.c (enum exception_event_kind): Delete.
6930 * breakpoint.h (enum exception_event_kind): Moved here from
6931 break-catch-throw.c.
6932 (catch_exception_event): Declare.
6933 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6934 (mi_cmd_catch_throw): New function.
6935 (mi_cmd_catch_rethrow): New function.
6936 (mi_cmd_catch_catch): New function.
6937 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6938 'catch-catch' entries.
6939 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6940 (mi_cmd_catch_rethrow): Declare.
6941 (mi_cmd_catch_catch): Declare.
6942
6943 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * annotate.c (annotate_source_line): Change return type to void,
6946 update implementation to match.
6947 * annotate.h (annotate_source_line): Change return type to void,
6948 update header comment.
6949 * stack.c (print_frame_info): Don't change what frame information
6950 is printed based on whether annotations are on or not.
6951
6952 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6955 (annotate_source): Make static.
6956 (annotate_source_line): Moved from source.c and renamed from
6957 identify_source_line. Update the return type.
6958 * annotate.h (annotate_source): Delete declaration.
6959 (annotate_source_line): Declaration moved from source.h, and
6960 renamed from identify_source_line. Return type updated.
6961 * source.c (identify_source_line): Moved to annotate.c and renamed
6962 to annotate_source_line.
6963 (info_line_command): Remove check of annotation_level.
6964 * source.h (identify_source_line): Move declaration to annotate.h
6965 and rename to annotate_source_line.
6966 * stack.c: Add 'annotate.h' include.
6967 (print_frame_info): Remove check of annotation_level before
6968 calling annotate_source_line.
6969
6970 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * source-cache.c (source_cache::get_plain_source_lines): Use
6973 open_source_file_with_line_charpos instead of just
6974 open_source_file, remove call to find_source_lines.
6975 (source_cache::get_source_lines): Likewise.
6976 * source.c (find_source_lines): Make static.
6977 (get_filename_and_charpos): Renamed into...
6978 (open_source_file_with_line_charpos): ..this along with changes to
6979 return a scoped_fd, and some other minor clean ups.
6980 (identify_source_line): Use open_source_file_with_line_charpos.
6981 (search_command_helper): Use open_source_file_with_line_charpos
6982 instead of just open_source_file, remove call to
6983 find_source_lines.
6984 * source.h (open_source_file_with_line_charpos): Declare new
6985 function.
6986 (find_source_lines): Delete declaration.
6987
6988 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * source.c (get_filename_and_charpos): Remove fullname
6991 parameter.
6992 (identify_source_line): Update call to get_filename_and_charpos.
6993
6994 2019-06-14 Tom Tromey <tromey@adacore.com>
6995
6996 PR gdb/24502:
6997 * ui-style.h (skip_ansi_escape): Update comment.
6998 * ui-file.h (class no_terminal_escape_file): New class.
6999 * ui-file.c (no_terminal_escape_file::write)
7000 (no_terminal_escape_file::puts): New methods.
7001 * cli/cli-logging.c (handle_redirections): Use
7002 no_terminal_escape_file.
7003
7004 2019-06-14 Tom Tromey <tromey@adacore.com>
7005
7006 * NEWS: Move convenience variable news above Python news.
7007
7008 2019-06-14 Tom Tromey <tom@tromey.com>
7009
7010 * gnulib: Move directory to top-level.
7011 * configure.ac: Don't configure gnulib.
7012 * configure: Rebuild.
7013 * common/common-defs.h: Use new path to gnulib.
7014 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7015 (GNULIB_H): Remove.
7016 (INCGNU): Look in new gnulib location.
7017 (HFILES_NO_SRCDIR): Remove gnulib files.
7018 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7019 (generated_files): Remove GNULIB_H.
7020 ($(LIBGNU), all-lib): Remove targets.
7021 (distclean): Don't mention GNULIB_BUILDDIR.
7022 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7023
7024 2019-06-14 Tom Tromey <tromey@adacore.com>
7025
7026 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7027 Warn if symbol file does not provide any symbols.
7028
7029 2019-06-14 Tom Tromey <tromey@adacore.com>
7030
7031 * source.c (find_and_open_source): Respect basenames_may_differ.
7032
7033 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * annotate.c (annotate_breakpoints_invalid): Make use of
7036 scoped_restore_terminal_state.
7037 (annotate_frames_invalid): Likewise.
7038
7039 2019-06-14 Tom Tromey <tromey@adacore.com>
7040
7041 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7042 allow assignment to an internalvar.
7043
7044 2019-06-14 Tom Tromey <tromey@adacore.com>
7045
7046 * ada-lex.l: Allow "_" in attribute names.
7047
7048 2019-06-14 Tom Tromey <tromey@adacore.com>
7049
7050 PR gdb/24653:
7051 * regcache.c (registers_changed): Don't call alloca.
7052 * top.c (execute_command): Don't call alloca.
7053
7054 2019-06-13 Pedro Alves <palves@redhat.com>
7055
7056 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7057 'expression'. When parsing an expression, error out if there's
7058 junk after "unlimited".
7059 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7060 (do_set_command): Adjust calls to is_unlimited_literal.
7061
7062 2019-06-13 Pedro Alves <palves@redhat.com>
7063
7064 * compile/compile.c (make_compile_options_def_group): Add braces
7065 around array_view initializer.
7066 * thread.c (make_thread_apply_all_options_def_group)
7067 (make_thread_apply_all_options_def_group): Likewise.
7068
7069 2019-06-13 Pedro Alves <palves@redhat.com>
7070
7071 * NEWS (New commands): Mention "maint test-options
7072 require-delimiter", "maint test-options unknown-is-error", "maint
7073 test-options unknown-is-operand" and "maint show
7074 test-options-completion-result".
7075 (New command options, command completion): New section.
7076 (Completion improvements): New section.
7077 Mention that you can abbreviate "unlimited".
7078
7079 2019-06-13 Pedro Alves <palves@redhat.com>
7080
7081 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7082 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7083 * unittests/cli-utils-selftests.c (test_parse_flags)
7084 (test_parse_flags_qcs): Delete.
7085 (test_cli_utils): Don't call deleted functions.
7086
7087 2019-06-13 Pedro Alves <palves@redhat.com>
7088
7089 * thread.c: Include "cli/cli-option.h".
7090 (tp_array_compar_ascending): Global.
7091 (tp_array_compar): Delete function.
7092 (tp_array_compar_ascending, tp_array_compar_descending): New
7093 functions.
7094 (ascending_option_def, qcs_flag_option_def)
7095 (thr_qcs_flags_option_defs)
7096 (make_thread_apply_all_options_def_group)
7097 (make_thread_apply_options_def_group): New.
7098 (thread_apply_all_command): Use gdb::option::process_options.
7099 (thread_apply_command_completer)
7100 (thread_apply_all_command_completer): New.
7101 (thread_apply_command): Use gdb::option::process_options.
7102 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7103 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7104 to generate help text of "thread apply". Adjust "taas"'s help.
7105 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7106 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7107
7108 2019-06-13 Pedro Alves <palves@redhat.com>
7109
7110 * thread.c (thread_apply_command): Check for invalid TID with
7111 isdigit instead of !isalpha.
7112
7113 2019-06-13 Pedro Alves <palves@redhat.com>
7114
7115 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7116 (validate_flags_qcs): New.
7117 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7118 (validate_flags_qcs): Declare.
7119 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7120 (make_frame_apply_options_def_group): New.
7121 (frame_apply_command_count): Process options with
7122 gdb::option::process_options.
7123 (frame_apply_completer): New.
7124 (frame_apply_level_completer, frame_apply_all_completer)
7125 (frame_apply_completer): New.
7126 (_initialize_stack): Update help of "frame apply", "frame apply
7127 level", "frame apply all" and "faas" to mention supported options
7128 and install command completers.
7129 * stack.h (frame_apply_all_completer): Declare.
7130 * thread.c: Include "stack.h".
7131 (tfaas_command): Add "--".
7132 (_initialize_thread): Update help "tfaas" to mention supported
7133 options and install command completer.
7134
7135 2019-06-13 Pedro Alves <palves@redhat.com>
7136
7137 * completer.c (complete_nested_command_line): New.
7138 (gdb_completion_word_break_characters_throw): Add assertion.
7139 * completer.h (complete_nested_command_line): Declare.
7140
7141 2019-06-13 Pedro Alves <palves@redhat.com>
7142
7143 * stack.c (parse_backtrace_qualifiers): New.
7144 (backtrace_command): Use it.
7145 (backtrace_command_completer): Complete on qualifiers.
7146
7147 2019-06-13 Pedro Alves <palves@redhat.com>
7148
7149 * frame.c: Include "cli/cli-option.h.
7150 (user_set_backtrace_options): New.
7151 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7152 Delete.
7153 (get_prev_frame): Adjust.
7154 (boolean_option_def, uinteger_option_def)
7155 (set_backtrace_option_defs): New.
7156 (_initialize_frame): Adjust and use
7157 gdb::option::add_setshow_cmds_for_options to install "set
7158 backtrace past-main" and "set backtrace past-entry".
7159 * frame.h: Include "cli/cli-option.h".
7160 (struct frame_print_options): Forward declare.
7161 (print_frame_arguments_all, print_frame_arguments_scalars)
7162 (print_frame_arguments_none): Declare.
7163 (print_entry_values): Delete declaration.
7164 (struct frame_print_options, user_frame_print_options): New.
7165 (struct set_backtrace_options): New.
7166 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7167 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7168 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7169 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7170 (list_args_or_locals): Add frame_print_options parameter.
7171 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7172 * python/py-framefilter.c (enumerate_args): Pass down
7173 USER_FRAME_PRINT_OPTIONS.
7174 * stack.c: Include "cli/cli-option.h".
7175 (print_frame_arguments_all, print_frame_arguments_scalars)
7176 (print_frame_arguments_none): Declare.
7177 (print_raw_frame_arguments, print_entry_values): Delete.
7178 (user_frame_print_options): New.
7179 (boolean_option_def, enum_option_def, frame_print_option_defs):
7180 New.
7181 (struct backtrace_cmd_options): New.
7182 (bt_flag_option_def): New.
7183 (backtrace_command_option_defs): New.
7184 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7185 (print_frame_arg, read_frame_arg, print_frame_args)
7186 (print_frame_info, print_frame): Add frame_print_options parameter
7187 and use it.
7188 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7189 (backtrace_command_1): Add frame_print_options and
7190 backtrace_cmd_options parameters and use them.
7191 (make_backtrace_options_def_group): New.
7192 (backtrace_command): Process command options with
7193 gdb::option::process_options.
7194 (backtrace_command_completer): New.
7195 (_initialize_stack): Extend "backtrace"'s help to mention
7196 supported options. Install completer for "backtrace".
7197 Install some settings commands with add_setshow_cmds_for_options.
7198
7199 2019-06-13 Pedro Alves <palves@redhat.com>
7200
7201 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7202 and that "set/show print raw frame-arguments" are now deprecated.
7203
7204 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7205 command.
7206 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7207 * stack.c (_initialize_stack): Install "set/show print
7208 raw-frame-arguments", and deprecate "set/show print raw
7209 frame-arguments".
7210 * valprint.c (_initialize_valprint): Deprecate "set/show print
7211 raw".
7212
7213 2019-06-13 Pedro Alves <palves@redhat.com>
7214
7215 * compile/compile.c (struct compile_options): New.
7216 (compile_flag_option_def, compile_command_option_defs)
7217 (make_compile_options_def_group): New.
7218 (compile_file_command): Handle options with
7219 gdb::option::process_options.
7220 (compile_file_command_completer): New function.
7221 (compile_code_command): Handle options with
7222 gdb::option::process_options.
7223 (compile_code_command_completer): New function.
7224 (_initialize_compiler): Install completers for "compile code" and
7225 "compile file". Mention available options in "compile code" and
7226 "compile code"'s help.
7227 * completer.c (advance_to_completion_word): New, factored out from
7228 ...
7229 (advance_to_expression_complete_word_point): ... this.
7230 (advance_to_filename_complete_word_point): New.
7231 * completer.h (advance_to_filename_complete_word_point): New
7232 declaration.
7233
7234 2019-06-13 Pedro Alves <palves@redhat.com>
7235
7236 * compile/compile.c: Include "cli/cli-option.h".
7237 (compile_print_value): Scope data pointer is now a
7238 value_print_options pointer; adjust.
7239 (compile_print_command): Process options. Scope data pointer is
7240 now a value_print_options pointer; adjust.
7241 (_initialize_compile): Update "compile print"'s help to include
7242 supported options. Install a completer for "compile print".
7243 * cp-valprint.c (show_vtblprint, show_objectprint)
7244 (show_static_field_print): Delete.
7245 (_initialize_cp_valprint): Don't install "set print
7246 static-members", "set print vtbl", "set print object" here.
7247 * printcmd.c: Include "cli/cli-option.h" and
7248 "common/gdb_optional.h".
7249 (print_command_parse_format): Rework to fill in a
7250 value_print_options instead of a format_data.
7251 (print_value): Change parameter type from format_data pointer to
7252 value_print_options reference. Adjust.
7253 (print_command_1): Process options. Adjust to pass down a
7254 value_print_options.
7255 (print_command_completer): New.
7256 (_initialize_printcmd): Install print_command_completer as
7257 handle_brkchars completer for the "print" command. Update
7258 "print"'s help to include supported options.
7259 * valprint.c: Include "cli/cli-option.h".
7260 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7261 here from cp-valprint.c.
7262 (boolean_option_def, uinteger_option_def)
7263 (value_print_option_defs, make_value_print_options_def_group):
7264 New. Use gdb::option::add_setshow_cmds_for_options to install
7265 "set print elements", "set print null-stop", "set print repeats",
7266 "set print pretty", "set print union", "set print array", "set
7267 print address", "set print symbol", "set print array-indexes".
7268 * valprint.h: Include <string> and "cli/cli-option.h".
7269 (make_value_print_options_def_group): Declare.
7270 (print_value): Change parameter type from format_data pointer to
7271 value_print_options reference.
7272 (print_command_completer): Declare.
7273
7274 2019-06-13 Pedro Alves <palves@redhat.com>
7275
7276 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7277 (COMMON_SFILES): Add maint-test-settings.c.
7278 * cli/cli-decode.c (boolean_enums): New global, factored out from
7279 ...
7280 (add_setshow_boolean_cmd): ... here.
7281 * cli/cli-decode.h (boolean_enums): Declare.
7282 * cli/cli-option.c: New file.
7283 * cli/cli-option.h: New file.
7284 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7285 factored out from ...
7286 (parse_cli_boolean_value(const char *)): ... this.
7287 (is_unlimited_literal): Change parameter type to pointer to
7288 pointer. Adjust and advance ARG pointer.
7289 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7290 (parse_cli_var_enum): New, factored out from ...
7291 (do_set_command): ... this. Adjust.
7292 * cli/cli-setshow.h (parse_cli_boolean_value)
7293 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7294 (parse_cli_var_enum): Declare.
7295 * cli/cli-utils.c: Include "cli/cli-option.h".
7296 (get_ulongest): New.
7297 * cli/cli-utils.h (get_ulongest): Declare.
7298 (check_for_argument): New overloads.
7299 * maint-test-options.c: New file.
7300
7301 2019-06-13 Pedro Alves <palves@redhat.com>
7302
7303 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7304 parse a range if "-" is at the end of the string.
7305
7306 2019-06-13 Pedro Alves <palves@redhat.com>
7307
7308 * cli/cli-setshow.c (parse_auto_binary_operation)
7309 (parse_cli_boolean_value): Don't allow "o".
7310
7311 2019-06-13 Pedro Alves <palves@redhat.com>
7312
7313 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7314 * NEWS: Mention maint test-settings KIND.
7315 * maint-test-settings.c: New file.
7316
7317 2019-06-13 Pedro Alves <palves@redhat.com>
7318
7319 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7320 completer.
7321 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7322 "set" completers.
7323
7324 2019-06-13 Pedro Alves <palves@redhat.com>
7325
7326 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7327 after item.
7328
7329 2019-06-13 Pedro Alves <palves@redhat.com>
7330
7331 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7332
7333 2019-06-13 Pedro Alves <palves@redhat.com>
7334
7335 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7336 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7337 call.
7338 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7339 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7340 calls.
7341 (check_for_argument): Skip spaces after argument.
7342
7343 2019-06-13 Pedro Alves <palves@redhat.com>
7344
7345 * thread.c (thread_apply_command): Adjust TID parsing.
7346 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7347 detected before end of string.
7348 (tid_is_in_list): Error out if LIST is invalid.
7349
7350 2019-06-13 Pedro Alves <palves@redhat.com>
7351
7352 * completer.c (complete_line_internal_1): Rewind completion word
7353 point.
7354 (completion_tracker::advance_custom_word_point_by): Change
7355 parameter type to int.
7356 * completer.h (completion_tracker::advance_custom_word_point_by):
7357 Likewise.
7358
7359 2019-06-13 Pedro Alves <palves@redhat.com>
7360
7361 * completer.c (advance_to_completion_word): Handle delimiters.
7362
7363 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7364
7365 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7366
7367 2019-06-11 Tom Tromey <tom@tromey.com>
7368
7369 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7370 (xmalloc_failed): Move to alloc.c.
7371 * alloc.c: New file.
7372 * Makefile.in (COMMON_SFILES): Add alloc.c.
7373
7374 2019-06-11 Tom Tromey <tom@tromey.com>
7375
7376 * nat/linux-waitpid.c: Don't include server.h.
7377 (linux_debug): Remove.
7378 (my_waitpid): Update.
7379
7380 2019-06-11 Tom Tromey <tromey@adacore.com>
7381
7382 * infcall.c (_initialize_infcall): Remove trailing newline from
7383 help.
7384 * user-regs.c (_initialize_user_regs): Remove trailing newline
7385 from help.
7386 * typeprint.c (_initialize_typeprint): Remove trailing newline
7387 from help.
7388 * reverse.c (_initialize_reverse): Remove trailing newlines from
7389 help.
7390 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7391 from help.
7392 * language.c (add_set_language_command): Remove trailing newline
7393 from help.
7394 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7395 help.
7396 * disasm.c (_initialize_disasm): Remove trailing newline from
7397 help.
7398 * top.c (init_main): Remove trailing newline from help.
7399 * interps.c (_initialize_interpreter): Remove trailing newline
7400 from help.
7401 * btrace.c (_initialize_btrace): Remove trailing newlines from
7402 help.
7403 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7404 from help.
7405 * python/python.c (_initialize_python): Remove trailing newline
7406 from help.
7407 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7408 help.
7409 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7410 from help. Reformat some text.
7411 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7412 from help.
7413 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7414 newline from help.
7415
7416 2019-06-11 Tom Tromey <tromey@adacore.com>
7417
7418 * darwin-nat.c (darwin_decode_exception_message)
7419 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7420
7421 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7422
7423 * valops.c (value_slice): Check for not allocated or not
7424 associated values.
7425
7426 2019-06-10 Tom de Vries <tdevries@suse.de>
7427
7428 PR gdb/24618
7429 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7430 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7431 invalid.
7432
7433 2019-06-10 Tom de Vries <tdevries@suse.de>
7434
7435 PR gdb/24611
7436 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7437 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7438
7439 2019-06-10 Tom de Vries <tdevries@suse.de>
7440
7441 PR symtab/24545
7442 * symtab.c (struct demangled_name_entry): Add language field.
7443 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7444 static minimal symbol". Set and use language field.
7445
7446 2019-06-10 Tom Tromey <tromey@adacore.com>
7447
7448 * ada-lang.c (_initialize_ada_language): Update help text.
7449
7450 2019-06-10 Tom Tromey <tromey@adacore.com>
7451
7452 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7453 with a newline.
7454 * guile/guile.c (handle_boot_error): Don't end warning with a
7455 newline.
7456 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7457 warning with a newline.
7458 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7459 newline.
7460 (s12z_frame_cache): Likewise.
7461 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7462 a newline.
7463 * solib-svr4.c (disable_probes_interface): Don't end warning with
7464 a newline.
7465 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7466 newline.
7467 * python/python.c (do_finish_initialization): Don't end warning
7468 with a newline.
7469
7470 2019-06-10 Tom Tromey <tom@tromey.com>
7471
7472 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7473 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7474 gdbpy_enter.
7475
7476 2019-06-10 Tom Tromey <tromey@adacore.com>
7477
7478 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7479 data.
7480 (elf_new_init): Don't call stabsread_new_init.
7481 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7482 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7483 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7484
7485 2019-06-10 Tom de Vries <tdevries@suse.de>
7486
7487 PR symtab/16264
7488 PR symtab/24517
7489 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7490
7491 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7492
7493 * source.c (find_and_open_source): Also rewrite relative file
7494 names.
7495
7496 2019-04-26 Amos Bird <amosbird@gmail.com>
7497
7498 * annotate.c (annotate_thread_exited): Add "thread-exited"
7499 annotation.
7500
7501 2019-06-06 Tom Tromey <tromey@adacore.com>
7502
7503 * maint.h (class scoped_command_stats): Use
7504 DISABLE_COPY_AND_ASSIGN.
7505 <print_time>: New method.
7506 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7507 print_time.
7508 (scoped_command_stats::print_time): New method.
7509
7510 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7513 instructions of lengths 6 or 8 bytes.
7514
7515 2019-06-04 Pedro Alves <palves@redhat.com>
7516
7517 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7518
7519 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7520 * breakpoint.c (condition_completer): Likewise.
7521 * cli/cli-dump.c (scan_expression): Likewise.
7522 * common/filestuff.c (mkdir_recursive): Likewise.
7523 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7524 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7525 (gdb_abspath): Likewise.
7526 * compile/compile-cplus-types.c
7527 (compile_cplus_instance::decl_name): Likewise.
7528 * completer.c (complete_explicit_location):
7529 (signal_completer, reg_or_group_completer_1): Likewise.
7530 * cp-support.c (cp_remove_params_if_any): Likewise.
7531 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7532 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7533 * infcmd.c (strip_bg_char): Likewise.
7534 * linespec.c (copy_token_string): Likewise.
7535 * mi/mi-main.c (output_cores): Likewise.
7536 * psymtab.c (psymtab_search_name):
7537 * symfile.c (test_set_ext_lang_command): Likewise.
7538 * target.c (target_fileio_read_stralloc): Likewise.
7539 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7540 * value.c (complete_internalvar): Likewise.
7541
7542 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7543
7544 Add objfile property to gdb.Type.
7545 * NEWS: Mention Python API addition.
7546 * python/py-type.c (typy_get_objfile): New method.
7547
7548 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7549
7550 * NEWS: Mention the new set|show style [title|highlight].
7551 Mention changes to "show style", "help" and "apropos".
7552
7553 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7554
7555 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7556 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7557 instead of print_help_for_command.
7558 (print_doc_of_command): New function.
7559 (help_list): Add 'apropos -v word' suggestion.
7560 (print_help_for_command): Style the command name using title style.
7561 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7562 (_initialize_cli_cmds): Describe -v in apropos_command help.
7563
7564 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7565
7566 * cli/cli-style.h (cli_style_option): Add name in constructor,
7567 add m_name class member, add constructor with intensity,
7568 add name class function.
7569 (cli_style_option::add_setshow_commands): Remove name argument.
7570 (highlight_style, title_style): New styles.
7571 * cli/cli-style.c (do_show): New function that shows a style
7572 characteristic styling the style name with itself.
7573 (set_style_name): New function.
7574 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7575 Update all callers according to the changes in cli/cli-style.h.
7576 * utils.h (fputs_highlighted): New function.
7577 * utils.c (fputs_highlighted): Likewise.
7578
7579 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7580
7581 * NEWS: Mention new pipe command and new convenience variables.
7582
7583 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7584
7585 * cli/cli-cmds.c (pipe_command): New function.
7586 (_initialize_cli_cmds): Call add_com for pipe_command.
7587 Define | as an alias for pipe.
7588 (exit_status_set_internal_vars): New function.
7589 (shell_escape): Call exit_status_set_internal_vars.
7590 cli/cli-decode.c (find_command_name_length): Recognize | as
7591 a single character command.
7592
7593 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7594
7595 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7596 top.c (execute_command_to_ui_file): New function, mostly a copy
7597 of execute_command_to_string.
7598 (execute_command_to_string): Implement by calling
7599 execute_command_to_ui_file.
7600
7601 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7602
7603 * top.h (saved_command_line): Remove declaration.
7604 * top.c (previous_saved_command_line, previous_repeat_arguments):
7605 New variables.
7606 (saved_command_line): Make static, define together with other
7607 'repeat variables'.
7608 (dont_repeat): Clear repeat_arguments.
7609 (repeat_previous, get_saved_command_line, save_command_line):
7610 New functions.
7611 (gdb_init): Initialize saved_command_line
7612 and previous_saved_command_line.
7613 * main.c (captured_main_1): Remove saved_command_line initialization.
7614 * event-top.c (handle_line_of_input): Update to use
7615 the new 'repeat' related functions instead of direct access to
7616 saved_command_line.
7617 * command.h (repeat_previous, get_saved_command_line,
7618 save_command_line): New declarations.
7619 (dont_repeat): Add comment.
7620
7621 2019-05-30 Tom Tromey <tromey@adacore.com>
7622
7623 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7624 Fix comment.
7625 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7626
7627 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7628
7629 PR cli/24587
7630 * completer.c (complete): Initialize variable word.
7631
7632 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7633
7634 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7635 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7636 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7637 'body' is NULL to the outter 'if', protecting the '!is_define'
7638 situation as well.
7639
7640 2019-05-29 Tom Tromey <tromey@adacore.com>
7641
7642 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7643 (dwarf_unknown): New function.
7644 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7645 (dwarf_type_encoding_name): Use dwarf_unknown.
7646
7647 2019-05-29 Tom Tromey <tromey@adacore.com>
7648
7649 PR c++/20020:
7650 * cp-valprint.c (cp_print_value_fields): Call
7651 cp_print_static_field inside "try".
7652
7653 2019-05-29 Tom Tromey <tromey@adacore.com>
7654
7655 * inflow.c (struct terminal_info): Add default operator=.
7656 * configure: Rebuild.
7657 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7658 -Wdeprecated-copy-dtor, -Wredundant-move.
7659
7660 2019-05-29 Tom Tromey <tromey@adacore.com>
7661
7662 * NEWS: Add entry.
7663 * infcmd.c (print_return_value_1): Handle finish_print
7664 option.
7665 (show_print_finish): New function.
7666 (_initialize_infcmd): Add "set/show print finish" commands.
7667 * valprint.c (user_print_options): Initialize new member.
7668 * valprint.h (struct value_print_options) <finish_print>: New
7669 member.
7670
7671 2019-05-28 Tom Tromey <tromey@adacore.com>
7672
7673 * ada-lang.c (ada_remove_Xbn_suffix)
7674 (find_old_style_renaming_symbol)
7675 (parse_old_style_renaming): Remove.
7676 (ada_find_renaming_symbol): Don't call
7677 find_old_style_renaming_symbol.
7678 (ada_is_renaming_symbol): Rename from
7679 ada_find_renaming_symbol. Remove "block" parameter. Return
7680 bool. Now static.
7681 (ada_read_var_value): Update and simplify.
7682 * ada-exp.y (write_var_or_type): Remove old code.
7683
7684 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7685
7686 PR gdb/25010
7687 * event-top.c: Remove include comment.
7688 * inflow.c (class scoped_ignore_sigttou): Move from here...
7689 * inflow.h (class scoped_ignore_sigttou): ...to here.
7690 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7691 * top.c: Remove include comment.
7692
7693 2019-05-27 Tom Tromey <tom@tromey.com>
7694
7695 * NEWS: Fix typo.
7696
7697 2019-05-22 Tom Tromey <tromey@adacore.com>
7698
7699 * target.c (target_follow_exec): Constify parameter.
7700 * target-delegates.c: Rebuild.
7701 * remote.c (remote_target::follow_exec): Constify parameter.
7702 * infrun.c (follow_exec): Constify parameter.
7703 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7704 (target_follow_exec): Likewise.
7705
7706 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7707
7708 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7709 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7710
7711 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7712
7713 * NEWS: Add debugredirect and testsuite sections.
7714
7715 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7716
7717 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7718 target descriptions using exclusively floating point register name
7719 aliases.
7720
7721 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7722
7723 PR gdb/18644:
7724 * f-lang.c (build_fortran_types): Handle the case where
7725 gdbarch_floatformat_for_type returns a nullptr.
7726
7727 2019-05-21 Tom de Vries <tdevries@suse.de>
7728
7729 PR cli/24587
7730 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7731
7732 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 PR gdb/18644:
7735 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7736 16-byte floats.
7737 * i386-tdep.c (i386_floatformat_for_type): Use
7738 floatformats_ia64_quad for the 16-byte floating point component
7739 within a fortran 32-byte complex number.
7740
7741 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7742
7743 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7744 delete default constructor.
7745 (find_partial_die): Update to return const struct.
7746 (partial_die_parent_scope): Move variable declaration into scope
7747 of its use and change its type to auto.
7748 (guess_partial_die_structure_name): Likewise.
7749 (partial_die_info::fixup): Likewise.
7750
7751 2019-05-17 Tom Tromey <tromey@adacore.com>
7752
7753 * source.c (find_and_open_source): Remove cast.
7754
7755 2019-05-17 Tom Tromey <tromey@adacore.com>
7756
7757 * annotate.c (annotate_source): Make "filename" const.
7758 * annotate.h (annotate_source): Use const.
7759
7760 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7761
7762 * disasm.c (set_disassembler_options): Send errors to stderr.
7763
7764 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7765
7766 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7767 (cli_interp_base::set_logging): Check debug_redirect.
7768 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7769 * cli/cli-logging.c (debug_redirect): Add static variable.
7770 (pop_output_files): Add default param.
7771 (handle_redirections): Print debug setting.
7772 (show_logging_command): Likewise.
7773 (_initialize_cli_logging): Add debugredirect command.
7774 * interps.c (current_interp_set_logging): Add debug_redirect
7775 parameter.
7776 * interps.h (set_logging): Add debug_redirect parameter.
7777 (current_interp_set_logging): Likewise.
7778 * mi/mi-common.h: Likewise.
7779 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7780
7781 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7782 Tom Tromey <tromey@adacore.com>
7783
7784 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7785 directly.
7786 * cli/cli-interp.h (make_logging_output): Remove declaration.
7787 * cli/cli-logging.c (make_logging_output): Remove function.
7788 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7789 directly.
7790 * ui-file.c (tee_file::tee_file): Remove bools.
7791 (tee_file::~tee_file): Remove deletes.
7792 * ui-file.h (tee_file): Remove bools.
7793
7794 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7795
7796 * mi/mi-cmds.h (mi_cmd_complete): New function.
7797 * mi/mi-main.c (mi_cmd_complete): Likewise.
7798 * mi/mi-cmds.c: Define new MI command -complete.
7799 * NEWS: Mention new -complete command.
7800
7801 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7802
7803 * completer.h (complete): New function.
7804 * completer.c (complete): Likewise.
7805 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7806 function defined in completer.h.
7807
7808 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7809
7810 * MAINTAINERS (Write After Approval): Add myself.
7811
7812 2019-05-17 Tom de Vries <tdevries@suse.de>
7813
7814 PR gdb/24094
7815 * dwarf2read.c (struct cu_partial_die_info): New struct.
7816 (find_partial_die): Return cu_partial_die_info.
7817 (partial_die_parent_scope, guess_partial_die_structure_name)
7818 (partial_die_info::fixup): Handle new return type of find_partial_die.
7819
7820 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 PR breakpoints/24541
7823 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7824 "std::string", simplifying the algorithm.
7825
7826 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7827
7828 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7829 (stap_static_probe_ops::get_probes): Likewise.
7830
7831 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7832
7833 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7834 '-')" and "else if".
7835 (stap_parse_single_operand): Join checks for
7836 "gdbarch_stap_parse_special_token_p" and
7837 "gdbarch_stap_parse_special_token" in the same "if" statement.
7838 Invert check when verifying for operation on register
7839 displacement.
7840
7841 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7842
7843 * stap-probe.c (stap_get_opcode): Update comment.
7844 (stap_get_expected_argument_type): Likewise.
7845 (handle_stap_probe): Likewise.
7846
7847 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7848
7849 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7850 return type to 'bool'. Adjust comment. Use 'bool' when
7851 appropriate.
7852 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7853 * stap-probe.c (stap_parse_argument_1): Likewise.
7854 (stap_is_operator): Likewise.
7855 (stap_is_generic_prefix): Likewise.
7856 (stap_is_register_prefix): Likewise.
7857 (stap_is_register_indirection_prefix): Likewise.
7858 (stap_is_integer_prefix): Likewise.
7859 (stap_generic_check_suffix): Likewise.
7860 (stap_check_integer_suffix): Likewise.
7861 (stap_check_register_suffix): Likewise.
7862 (stap_check_register_indirection_suffix): Likewise.
7863 (stap_parse_register_operand): Likewise.
7864 (stap_parse_single_operand): Likewise.
7865 (stap_parse_argument_1): Likewise.
7866 (stap_probe::get_argument_count): Likewise.
7867 (stap_is_operator): Likewise.
7868
7869 2019-05-16 Tom Tromey <tromey@adacore.com>
7870
7871 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7872 keyword to foreach.
7873
7874 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * linux-thread-db.c (try_thread_db_load_1): Change return type
7877 to bool.
7878 (try_thread_db_load): Likewise.
7879 (try_thread_db_load_from_pdir_1): Likewise.
7880 (try_thread_db_load_from_pdir): Likewise.
7881 (try_thread_db_load_from_sdir): Likewise.
7882 (try_thread_db_load_from_dir): Likewise.
7883 (thread_db_load_search): Likewise.
7884 (has_libpthread): Likewise.
7885 (thread_db_load): Likewise.
7886
7887 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7888
7889 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7890 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7891 NULL, and complain/return if that's the case.
7892
7893 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7894
7895 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7896 (advance, posn, abstract_read_memory): New functions.
7897 [struct mem_read_abstraction]: New struct.
7898 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7899
7900 2019-05-14 Tom Tromey <tromey@adacore.com>
7901
7902 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7903 value is not lval_memory.
7904
7905 2019-05-14 Tom Tromey <tromey@adacore.com>
7906
7907 * solib.c (info_sharedlibrary_command): Style the file name.
7908
7909 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7910
7911 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7912 (aarch64_vnv_type): Likewise.
7913 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7914 * common/tdesc.c: Likewise.
7915 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7916 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7917 * features/aarch64-fpu.xml: Add ieee half view.
7918 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7919 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7920 * gdbtypes.h (struct builtin_type): Likewise.
7921 (struct objfile_type): Likewise.
7922
7923 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7924
7925 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7926 typo.
7927 * location.h (string_to_event_location): Likewise.
7928
7929 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7930
7931 GDB 8.3 released.
7932
7933 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7936 New variable declaration.
7937 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7938 New variable.
7939 (print_one_breakpoint): Use ui_out::test_flags and new global
7940 variable to compute use_fixed_output.
7941 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7942 Remove.
7943 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7944 (mi_multi_location_breakpoint_output_fixed): Remove.
7945 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7946 new variable.
7947 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7948 fix_multi_location_breakpoint_output flag if version >= 3.
7949 * ui-out.h (enum ui_out_flag)
7950 <fix_multi_location_breakpoint_output>: New enumerator.
7951
7952 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7955
7956 2019-05-10 Tom Tromey <tromey@adacore.com>
7957
7958 * ada-lang.c (catch_ada_completer): New function.
7959 (_initialize_ada_language): Use it.
7960
7961 2019-05-10 Tom Tromey <tromey@adacore.com>
7962
7963 * thread.c (print_thread_info): Make "requested_threads" const.
7964 * gdbthread.h (print_thread_info): Make "requested_threads"
7965 const.
7966 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7967 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7968
7969 2019-05-08 Tom Tromey <tom@tromey.com>
7970
7971 * gdbtypes.c (objfile_type_data): Change type.
7972 (objfile_type, _initialize_gdbtypes): Update.
7973
7974 2019-05-08 Tom Tromey <tom@tromey.com>
7975
7976 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7977 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7978 (_initialize_dwarf2_frame): Update.
7979
7980 2019-05-08 Tom Tromey <tom@tromey.com>
7981
7982 * objc-lang.c (objc_objfile_data): Change type.
7983 (find_methods): Update.
7984 (_initialize_objc_lang): Remove.
7985
7986 2019-05-08 Tom Tromey <tom@tromey.com>
7987
7988 * stabsread.c (rs6000_builtin_type_data): Change type.
7989 (rs6000_builtin_type, _initialize_stabsread): Update.
7990
7991 2019-05-08 Tom Tromey <tom@tromey.com>
7992
7993 * mips-tdep.c (mips_pdr_data): Remove.
7994 (_initialize_mips_tdep): Update.
7995
7996 2019-05-08 Tom Tromey <tom@tromey.com>
7997
7998 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7999 (hppa_init_objfile_priv_data, read_unwind_info)
8000 (find_unwind_entry, _initialize_hppa_tdep): Update.
8001
8002 2019-05-08 Tom Tromey <tom@tromey.com>
8003
8004 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8005 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8006 on obstack.
8007 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8008
8009 2019-05-08 Tom Tromey <tom@tromey.com>
8010
8011 * mdebugread.c (basic_type_data): Change type.
8012 (basic_type, _initialize_mdebugread): Update.
8013
8014 2019-05-08 Tom Tromey <tom@tromey.com>
8015
8016 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8017
8018 2019-05-08 Tom Tromey <tom@tromey.com>
8019
8020 * nto-tdep.c (nto_inferior_data_reg): Change type.
8021 (nto_inferior_data): Update.
8022 (nto_inferior_data_cleanup, nto_new_inferior_data)
8023 (_initialize_nto_tdep): Remove.
8024 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8025
8026 2019-05-08 Tom Tromey <tom@tromey.com>
8027
8028 * ada-lang.c (struct ada_inferior_data): Add initializers.
8029 (ada_inferior_data): Change type.
8030 (ada_inferior_data_cleanup): Remove.
8031 (get_ada_inferior_data, ada_inferior_exit)
8032 (struct ada_pspace_data): Add initializers, destructor.
8033 (ada_pspace_data_handle): Change type.
8034 (get_ada_pspace_data): Update.
8035 (ada_pspace_data_cleanup): Remove.
8036
8037 2019-05-08 Tom Tromey <tom@tromey.com>
8038
8039 * coffread.c (struct coff_symfile_info): Add initializers.
8040 (coff_objfile_data_key): Move lower. Change type.
8041 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8042 Update.
8043 (coff_free_info): Remove.
8044
8045 2019-05-08 Tom Tromey <tom@tromey.com>
8046
8047 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8048 (fbsd_pspace_data_handle): Move lower. Change type.
8049 (get_fbsd_pspace_data): Update.
8050 (fbsd_pspace_data_cleanup): Remove.
8051 (_initialize_fbsd_tdep): Update.
8052
8053 2019-05-08 Tom Tromey <tom@tromey.com>
8054
8055 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8056 (get_ada_tasks_pspace_data): Update.
8057 (ada_tasks_pspace_data_cleanup): Remove.
8058 (_initialize_tasks): Update.
8059 (ada_tasks_inferior_data_handle): Change type.
8060 (get_ada_tasks_inferior_data): Update.
8061 (ada_tasks_inferior_data_cleanup): Remove.
8062 (struct ada_tasks_pspace_data): Add initializers.
8063
8064 2019-05-08 Tom Tromey <tom@tromey.com>
8065
8066 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8067 * symfile-debug.c (debug_sym_get_probes): Change type.
8068 * stap-probe.c (handle_stap_probe):
8069 (stap_static_probe_ops::get_probes): Change type.
8070 * probe.h (class static_probe_ops) <get_probes>: Change type.
8071 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8072 (parse_probes_in_pspace): Update.
8073 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8074 Update.
8075 (any_static_probe_ops::get_probes): Change type.
8076 * elfread.c (elfread_data): New typedef.
8077 (probe_key): Change type.
8078 (elf_get_probes): Likewise. Update.
8079 (probe_key_free): Remove.
8080 (_initialize_elfread): Update.
8081 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8082 Change type.
8083 (dtrace_process_dof_probe, dtrace_process_dof)
8084 (dtrace_static_probe_ops::get_probe): Change type.
8085
8086 2019-05-08 Tom Tromey <tom@tromey.com>
8087
8088 * xcoffread.c (struct xcoff_symfile_info): Rename from
8089 coff_symfile_info. Add initializers.
8090 (xcoff_objfile_data_key): Move lower. Change type.
8091 (XCOFF_DATA): Rewrite.
8092 (xcoff_free_info): Remove.
8093 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8094 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8095 (xcoff_initial_scan): Update.
8096
8097 2019-05-08 Tom Tromey <tom@tromey.com>
8098
8099 * solib-svr4.c (struct svr4_info): Add initializers and
8100 destructor.
8101 <probes_table>: Now an htab_up.
8102 (solib_svr4_pspace_data): Change type.
8103 (free_probes_table): Simplify.
8104 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8105 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8106 (probes_table_remove_objfile_probes, register_solib_event_probe)
8107 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8108 (_initialize_svr4_solib): Update.
8109
8110 2019-05-08 Tom Tromey <tom@tromey.com>
8111
8112 * remote.c (remote_pspace_data): Change type.
8113 (remote_pspace_data_cleanup): Remove.
8114 (get_remote_exec_file, set_pspace_remote_exec_file)
8115 (_initialize_remote): Update.
8116
8117 2019-05-08 Tom Tromey <tom@tromey.com>
8118
8119 * breakpoint.c (breakpoint_objfile_key): Change type.
8120 (get_breakpoint_objfile_data): Update.
8121 (free_breakpoint_objfile_data): Remove.
8122 (_initialize_breakpoint): Update.
8123
8124 2019-05-08 Tom Tromey <tom@tromey.com>
8125
8126 * linux-tdep.c (struct linux_info): Add initializers.
8127 (linux_inferior_data): Move. Change type.
8128 (invalidate_linux_cache_inf): Update.
8129 (linux_inferior_data_cleanup): Remove.
8130 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8131
8132 2019-05-08 Tom Tromey <tom@tromey.com>
8133
8134 * auxv.c (auxv_inferior_data): Move. Change type.
8135 (auxv_inferior_data_cleanup): Remove.
8136 (invalidate_auxv_cache_inf): Rewrite.
8137 (get_auxv_inferior_data, _initialize_auxv): Update.
8138
8139 2019-05-08 Tom Tromey <tom@tromey.com>
8140
8141 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8142 (symfile_debug_objfile_data_key): Change type.
8143 (symfile_debug_installed, debug_qf_has_symbols)
8144 (debug_qf_find_last_source_symtab)
8145 (debug_qf_forget_cached_source_info)
8146 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8147 (debug_qf_print_stats, debug_qf_dump)
8148 (debug_qf_expand_symtabs_for_function)
8149 (debug_qf_expand_all_symtabs)
8150 (debug_qf_expand_symtabs_with_fullname)
8151 (debug_qf_map_matching_symbols)
8152 (debug_qf_expand_symtabs_matching)
8153 (debug_qf_find_pc_sect_compunit_symtab)
8154 (debug_qf_map_symbol_filenames)
8155 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8156 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8157 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8158 (debug_sym_read_linetable, debug_sym_relocate): Update.
8159 (symfile_debug_free_objfile): Remove.
8160 (install_symfile_debug_logging, _initialize_symfile_debug):
8161 Update.
8162
8163 2019-05-08 Tom Tromey <tom@tromey.com>
8164
8165 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8166 allocate_on_obstack.
8167 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8168 (get_dwarf2_per_objfile): Update.
8169 (set_dwarf2_per_objfile): Remove.
8170 (dwarf2_has_info, dwarf2_get_section_info): Update.
8171 (dwarf2_free_objfile): Remove.
8172 (_initialize_dwarf2_read): Update.
8173
8174 2019-05-08 Tom Tromey <tom@tromey.com>
8175
8176 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8177 initializers.
8178 <unsupported_script_warning_printed,
8179 script_not_found_warning_printed>: Now bool.
8180 (auto_load_pspace_data): Change type.
8181 (~auto_load_pspace_info): Rename from
8182 auto_load_pspace_data_cleanup.
8183 (get_auto_load_pspace_data, init_loaded_scripts_info)
8184 (clear_section_scripts, maybe_print_unsupported_script_warning)
8185 (maybe_print_script_not_found_warning, _initialize_auto_load):
8186 Update.
8187
8188 2019-05-08 Tom Tromey <tom@tromey.com>
8189
8190 * objfiles.c (objfile_pspace_info): Add destructor and
8191 initializers.
8192 (objfiles_pspace_data): Change type.
8193 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8194 (get_objfile_pspace_data): Update.
8195 (objfiles_bfd_data): Change type.
8196 (get_objfile_bfd_data): Update.
8197 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8198
8199 2019-05-08 Tom Tromey <tom@tromey.com>
8200
8201 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8202 Change type.
8203 (get_catch_syscall_inferior_data): Update.
8204 (catch_syscall_inferior_data_cleanup): Remove.
8205 (_initialize_break_catch_syscall): Update.
8206
8207 2019-05-08 Tom Tromey <tom@tromey.com>
8208
8209 * inflow.c (struct terminal_info): Add destructor and
8210 initializers.
8211 (inflow_inferior_data): Change type.
8212 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8213 (get_inflow_inferior_data, inflow_inferior_exit)
8214 (swap_terminal_info, _initialize_inflow): Update.
8215
8216 2019-05-08 Tom Tromey <tom@tromey.com>
8217
8218 * target-dcache.c (target_dcache_cleanup): Remove.
8219 (target_dcache_aspace_key): Change type.
8220 (target_dcache_init_p, target_dcache_invalidate)
8221 (target_dcache_get, target_dcache_get_or_init)
8222 (_initialize_target_dcache): Update.
8223 * dcache.h (struct dcache_deleter): New.
8224
8225 2019-05-08 Tom Tromey <tom@tromey.com>
8226
8227 * symtab.c (struct symbol_cache): Add destructor and
8228 initializers.
8229 (symbol_cache_key): Move. Change type.
8230 (make_symbol_cache, free_symbol_cache): Remove.
8231 (get_symbol_cache): Update.
8232 (symbol_cache_cleanup): Remove.
8233 (ALL_PSPACES, symbol_cache_flush)
8234 (maintenance_print_symbol_cache)
8235 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8236 Update.
8237
8238 2019-05-08 Tom Tromey <tom@tromey.com>
8239
8240 * symtab.c (struct main_info): Add destructor and initializers.
8241 (main_progspace_key): Move. Change type.
8242 (get_main_info): Update.
8243 (main_info_cleanup): Remove.
8244 (_initialize_symtab): Update.
8245
8246 2019-05-08 Tom Tromey <tom@tromey.com>
8247
8248 * registry.h (DECLARE_REGISTRY): Define the _key class.
8249
8250 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * NEWS: Merge two 'New commands' sections.
8253
8254 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8255
8256 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8257 parameter and use Ada language definition instead.
8258 (ada_val_print_ptr): Remove unused language parameter.
8259 (ada_val_print_num): Remove language parameter and use Ada language
8260 definition instead.
8261 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8262 parameter.
8263 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8264 parameter and use Ada language definition instead.
8265 (ada_val_print_1): Update all ada_val_print_xxx calls.
8266 Remove language parameter.
8267 (ada_val_print): Update ada_val_print_1 call.
8268
8269 2019-05-08 Tom Tromey <tromey@adacore.com>
8270
8271 * remote.c (remote_hw_watchpoint_limit)
8272 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8273 Now static.
8274
8275 2019-05-08 Tom Tromey <tromey@adacore.com>
8276
8277 * maint.c (_initialize_maint_cmds): Move initialization code to
8278 remote.c.
8279 (watchdog, show_watchdog): Move to remote.c.
8280 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8281 "watchdog" static.
8282 (_initialize_remote): Move initialization code from maint.c.
8283 * defs.h (watchdog): Don't declare.
8284
8285 2019-05-08 Tom Tromey <tromey@adacore.com>
8286
8287 * tui/tui-interp.c: Include main.h.
8288 * interps.c: Include main.h.
8289 * main.h (interpreter_p): Declare.
8290 * defs.h (interpreter_p): Don't declare.
8291
8292 2019-05-08 Tom Tromey <tromey@adacore.com>
8293
8294 * dwarf2loc.c: Include dwarf2read.h.
8295 * defs.h (read_unsigned_leb128): Don't declare.
8296 * dwarf2read.h (read_unsigned_leb128): Declare.
8297
8298 2019-05-08 Tom Tromey <tromey@adacore.com>
8299
8300 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8301 method.
8302
8303 2019-05-08 Tom Tromey <tromey@adacore.com>
8304
8305 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8306 when no wrap column is set.
8307
8308 2019-05-08 Tom Tromey <tromey@adacore.com>
8309
8310 * c-lang.c (c_get_string): Handle non-C-style arrays.
8311
8312 2019-05-08 Tom Tromey <tromey@adacore.com>
8313
8314 * typeprint.c (print_offset_data::update): Print the bit offset,
8315 not the number of bits remaining.
8316
8317 2019-05-08 Tom Tromey <tromey@adacore.com>
8318
8319 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8320 padding at end of comment.
8321
8322 2019-05-08 Tom Tromey <tromey@adacore.com>
8323
8324 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8325 Compare main types.
8326
8327 2019-05-06 Tom Tromey <tom@tromey.com>
8328
8329 * common/scoped_mmap.c: Include common-defs.h.
8330 * common/scoped_mmap.h: Don't include config.h.
8331
8332 2019-05-04 Tom Tromey <tom@tromey.com>
8333
8334 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8335 (struct aarch64_call_info): Add initializers.
8336 <si>: Now a std::vector.
8337 (pass_on_stack, aarch64_push_dummy_call): Update.
8338
8339 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8340 Tom Tromey <tom@tromey.com>
8341
8342 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8343 (ppc_threads): Now a std::vector. Now static.
8344 (hwdebug_find_thread_points_by_tid)
8345 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8346 Update.
8347
8348 2019-05-04 Tom Tromey <tom@tromey.com>
8349
8350 * arc-tdep.c (arc_tdesc_init): Return bool.
8351
8352 2019-05-04 Tom Tromey <tom@tromey.com>
8353
8354 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8355 Use gdb_assert_not_reached.
8356
8357 2019-05-04 Tom Tromey <tom@tromey.com>
8358
8359 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8360 "false".
8361
8362 2019-05-04 Tom Tromey <tom@tromey.com>
8363
8364 * arc-tdep.c (arc_tdesc_init): Use bool.
8365
8366 2019-05-04 Tom Tromey <tom@tromey.com>
8367
8368 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8369
8370 2019-05-04 Tom Tromey <tom@tromey.com>
8371
8372 * cli/cli-cmds.c (valid_command_p): Return bool.
8373
8374 2019-05-04 Tom Tromey <tom@tromey.com>
8375
8376 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8377 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8378
8379 2019-05-04 Raul Tambre <raul@tambre.ee>
8380
8381 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8382 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8383 operator for comparison.
8384
8385 2019-05-04 Tom Tromey <tom@tromey.com>
8386
8387 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8388 (lookup_partial_symbol, print_partial_symbols)
8389 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8390 (psymbol_compare): Update.
8391 (add_psymbol_to_bcache): Clear the entire psymbol.
8392 (maintenance_check_psymtabs): Update.
8393 * psympriv.h (struct partial_symbol): Don't derive from
8394 general_symbol_info.
8395 <obj_section, unrelocated_address, address,
8396 set_unrelocated_address>: Update.
8397 <ginfo>: New member.
8398 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8399 (debug_names::write_psymbols): Update.
8400
8401 2019-05-04 Tom de Vries <tdevries@suse.de>
8402
8403 * contrib/cc-with-tweaks.sh: Support -n arg.
8404
8405 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8406
8407 * corelow.c (core_target::detach): Ensure frame cache and
8408 register caches are cleared.
8409 inferior.c (exit_inferior_1): Likewise.
8410
8411 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8412 Tom Tromey <tom@tromey.com>
8413
8414 * dictionary.c (collate_pending_symbols_by_language): Remove
8415 "struct" from foreach.
8416 * symtab.c (lookup_global_symbol_from_objfile)
8417 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8418 foreach.
8419 * ser-tcp.c (net_open): Remove "struct" from foreach.
8420 * objfiles.c (objfile_relocate, objfile_rebase)
8421 (objfile_has_symbols): Remove "struct" from foreach.
8422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8423 from foreach.
8424 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8425 foreach.
8426 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8427 "struct" from foreach.
8428 * ada-lang.c (create_excep_cond_exprs)
8429 (ada_exception_catchpoint_cond_string): Remove "struct" from
8430 foreach.
8431
8432 2019-05-03 Tom Tromey <tromey@adacore.com>
8433
8434 * ada-exp.y (convert_char_literal): Check suffix of each
8435 enumerator.
8436
8437 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8438
8439 PR ada/21406:
8440 * ada-exp.y (yywrap): Don't define.
8441 * ada-lex.l (%option): Add noyywrap
8442 (yywrap): Remove.
8443
8444 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8445
8446 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8447 _WIN32_WINNT to the XP level, unless already defined to a higher
8448 level.
8449
8450 * unittests/parse-connection-spec-selftests.c:
8451 * ser-tcp.c:
8452 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8453 override.
8454
8455 * symfile.c (find_separate_debug_file): Remove colon from the
8456 drive spec of DOS/Windows file names of the target, so that the
8457 file name produced from DEBUGDIR and the target's directory will
8458 be valid on DOS/Windows systems.
8459
8460 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * rust-lang.c (val_print_struct): Handle printing structures
8463 containing strings.
8464
8465 2019-05-02 Tom Tromey <tromey@adacore.com>
8466
8467 * valarith.c (_initialize_valarith): Remove.
8468
8469 2019-05-01 Tom Tromey <tromey@adacore.com>
8470
8471 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8472 bitfields.
8473
8474 2019-05-01 Tom Tromey <tromey@adacore.com>
8475
8476 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8477 for big-endian copies.
8478
8479 2019-04-30 Ali Tamur <tamur@google.com>
8480 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8481 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8482 (read_3_bytes): New function.
8483
8484 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8485
8486 * windows-nat.c (main_thread_id): Delete.
8487 (handle_output_debug_string): Replace main_thread_id by
8488 current_event.dwThreadId.
8489 (fake_create_process): Likewise.
8490 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8491 Do not set main_thread_id.
8492 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8493 current_event.dwThreadId.
8494 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8495
8496 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8497
8498 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8499 Use current_event.dwThreadId instead of main_thread_id.
8500
8501 2019-04-30 Tom Tromey <tromey@adacore.com>
8502
8503 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8504 (create_excep_cond_exprs): Iterate over program spaces.
8505 (ada_exception_catchpoint_cond_string): Examine all minimal
8506 symbols for exception types.
8507
8508 2019-04-30 Tom Tromey <tromey@adacore.com>
8509
8510 PR c++/24470:
8511 * dwarf2read.c (process_structure_scope): Handle case where type
8512 has template parameters but no symbol was created.
8513
8514 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8515 Chris January <chris.january@arm.com>
8516
8517 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8518 qualifier.
8519 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8520
8521 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8522
8523 * f-typeprint.c (f_print_type): Update rules for printing
8524 whitespace.
8525 (f_type_print_varspec_suffix): Likewise.
8526
8527 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8528 Chris January <chris.january@arm.com>
8529
8530 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8531 function arguments.
8532
8533 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8534
8535 * f-lang.c (build_fortran_types): Change name of void type to
8536 lower case.
8537 * f-typeprint.c (f_type_print_base): Print the name of the void
8538 type, rather than a fixed string.
8539 * f-valprint.c (f_decorations): Use lower case void string.
8540
8541 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8542 Chris January <chris.january@arm.com>
8543
8544 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8545 types for Fortran.
8546
8547 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8548 Chris January <chris.january@arm.com>
8549 David Lecomber <david.lecomber@arm.com>
8550
8551 * f-exp.y (BINOP_INTRINSIC): New token.
8552 (exp): New parser rule handling BINOP_INTRINSIC.
8553 (f77_keywords): Add new builtin procedures.
8554 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8555 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8556 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8557 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8558 (print_unop_subexp_f): New function.
8559 (print_binop_subexp_f): New function.
8560 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8561 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8562 (dump_subexp_body_f): Likewise.
8563 (operator_check_f): Likewise.
8564 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8565 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8566
8567 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8568
8569 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8570 UNOP_KIND.
8571 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8572 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8573 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8574 (operator_length_f): New fuction.
8575 (print_subexp_f): New function.
8576 (op_name_f): New function.
8577 (dump_subexp_body_f): New function.
8578 (operator_check_f): New function.
8579 (exp_descriptor_f): Replace standard expression handling functions
8580 with new functions.
8581 * gdb/fortran-operator.def: New file.
8582 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8583 * gdb/std-operator.def: Remove UNOP_KIND.
8584
8585 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * std-operator.def: Remove unbalanced, stray double quote
8588 character.
8589
8590 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8591 Chris January <chris.january@arm.com>
8592 Daniel Everett <daniel.everett@arm.com>
8593 Nick Forrington <nick.forrington@arm.com>
8594 Richard Bunt <richard.bunt@arm.com>
8595
8596 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8597 of depth when printing anonymous structs or unions.
8598 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8599 Don't print either the top-level value, or the children if the
8600 max-depth is exceeded.
8601 (ppscm_print_children): When printing the key of a map, allow one
8602 extra level of depth.
8603 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8604 print either the top-level value, or the children if the max-depth
8605 is exceeded.
8606 (print_children): When printing the key of a map, allow one extra
8607 level of depth.
8608 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8609 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8610 (user_print_options): Initialise max_depth field.
8611 (val_print_scalar_or_string_type_p): New function.
8612 (val_print): Check to see if the max depth has been reached.
8613 (val_print_check_max_depth): Define new function.
8614 (show_print_max_depth): New function.
8615 (_initialize_valprint): Add 'print max-depth' option.
8616 * valprint.h (struct value_print_options) <max_depth>: New field.
8617 (val_print_check_max_depth): Declare new function.
8618 * NEWS: Document new feature.
8619
8620 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * ada-lang.c (ada_language_defn): Initialise new field.
8623 * c-lang.c (c_is_string_type_p): New function.
8624 (c_language_defn): Initialise new field.
8625 (cplus_language_defn): Initialise new field.
8626 (asm_language_defn): Initialise new field.
8627 (minimal_language_defn): Initialise new field.
8628 * c-lang.h (c_is_string_type_p): Declare new function.
8629 * d-lang.c (d_language_defn): Initialise new field.
8630 * f-lang.c (f_is_string_type_p): New function.
8631 (f_language_defn): Initialise new field.
8632 * go-lang.c (go_is_string_type_p): New function.
8633 (go_language_defn): Initialise new field.
8634 * language.c (default_is_string_type_p): New function.
8635 (unknown_language_defn): Initialise new field.
8636 (auto_language_defn): Initialise new field.
8637 * language.h (struct language_defn) <la_is_string_type_p>: New
8638 member variable.
8639 (default_is_string_type_p): Declare new function.
8640 * m2-lang.c (m2_language_defn): Initialise new field.
8641 * objc-lang.c (objc_language_defn): Initialise new field.
8642 * opencl-lang.c (opencl_language_defn): Initialise new field.
8643 * p-lang.c (pascal_is_string_type_p): New function.
8644 (pascal_language_defn): Initialise new field.
8645 * rust-lang.c (rust_is_string_type_p): New function.
8646 (rust_language_defn): Initialise new field.
8647
8648 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8651 New field.
8652 * ada-lang.c (ada_language_defn): Initialise new field.
8653 * c-lang.c (c_language_defn): Likewise.
8654 (cplus_language_defn): Likewise.
8655 (asm_language_defn): Likewise.
8656 (minimal_language_defn): Likewise.
8657 * d-lang.c (d_language_defn): Likewise.
8658 * f-lang.c (f_language_defn): Likewise.
8659 * go-lang.c (go_language_defn): Likewise.
8660 * language.c (unknown_language_defn): Likewise.
8661 (auto_language_defn): Likewise.
8662 * m2-lang.c (m2_language_defn): Likewise.
8663 * objc-lang.c (objc_language_defn): Likewise.
8664 * opencl-lang.c (opencl_language_defn): Likewise.
8665 * p-lang.c (pascal_language_defn): Likewise.
8666 * rust-lang.c (rust_language_defn): Likewise.
8667
8668 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8669
8670 * ada-lang.c (ada_is_character_type): Change return type to bool.
8671 (ada_is_string_type): Likewise.
8672 * ada-lang.h (ada_is_character_type): Update declaration
8673 (ada_is_string_type): Likewise.
8674
8675 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8676
8677 Support style in 'frame|thread apply'
8678
8679 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8680 * record.c (record_start, record_stop): Update callers of
8681 execute_command_to_string with false.
8682 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8683 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8684 methods.
8685 (class string_file): New constructor with term_out parameter.
8686 Override methods term_out and can_emit_style_escape. New member
8687 term_out.
8688 (class stdio_file): Override can_emit_style_escape.
8689 (class tee_file): Override term_out and can_emit_style_escape.
8690 * utils.h (can_emit_style_escape): Remove.
8691 * utils.c (can_emit_style_escape): Likewise.
8692 Update all callers of can_emit_style_escape (SOMESTREAM) to
8693 SOMESTREAM->can_emit_style_escape.
8694 * source-cache.c (source_cache::get_source_lines): Likewise.
8695 * stack.c (frame_apply_command_count): Call execute_command_to_string
8696 passing the term_out characteristic of the current gdb_stdout.
8697 * thread.c (thr_try_catch_cmd): Likewise.
8698 * top.c (execute_command_to_string): pass term_out parameter
8699 to construct the string_file for the command output.
8700 * ui-file.c (term_cli_styling): New function (most code moved
8701 from utils.c can_emit_style_escape).
8702 (string_file::string_file, string_file::can_emit_style_escape,
8703 stdio_file::can_emit_style_escape, tee_file::term_out,
8704 tee_file::can_emit_style_escape): New functions.
8705
8706 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8707
8708 * NEWS: Mention the new set|show may-call-functions.
8709 * infcall.c (may_call_functions_p): New variable.
8710 (show_may_call_functions_p): New function.
8711 (call_function_by_hand_dummy): Throws an error if not
8712 may-call-functions.
8713 (_initialize_infcall): Call add_setshow_boolean_cmd for
8714 may-call-functions.
8715
8716 2019-04-25 Keith Seitz <keiths@redhat.com>
8717
8718 PR c++/24367
8719 * cp-support.c (inspect_type): Don't attempt substitutions
8720 of symbol with the same name.
8721
8722 2019-04-25 Tom Tromey <tromey@adacore.com>
8723
8724 PR gdb/24475:
8725 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8726 static.
8727
8728 2019-04-25 Tom Tromey <tromey@adacore.com>
8729
8730 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8731 rvalue reference.
8732 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8733 (gdb_xml_parser::parse): Use std::move.
8734 * python/python-internal.h (gdbpy_convert_exception): Take a const
8735 reference.
8736 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8737 std::move.
8738 * python/py-utils.c (gdbpy_convert_exception): Take a const
8739 reference.
8740 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8741 Use std::move.
8742 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8743 Use std::move.
8744 * mi/mi-main.c (mi_print_exception): Take a const reference.
8745 * main.c (handle_command_errors): Take a const reference.
8746 * linespec.c (parse_linespec): Use std::move.
8747 * infcall.c (run_inferior_call): Use std::move.
8748 (call_function_by_hand_dummy): Use std::move.
8749 * exec.c (try_open_exec_file): Use std::move.
8750 * exceptions.h (exception_print, exception_fprintf)
8751 (exception_print_same): Update.
8752 * exceptions.c (print_exception, exception_print)
8753 (exception_fprintf, exception_print_same): Change parameters to
8754 const reference.
8755 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8756 * common/new-op.c: Use std::move.
8757 * common/common-exceptions.h (struct gdb_exception): Add move
8758 constructor.
8759 (struct gdb_exception_error, struct gdb_exception_quit, struct
8760 gdb_quit_bad_alloc): Change constructor to move constructor.
8761 (throw_exception): Change parameter to rvalue reference.
8762 * common/common-exceptions.c (throw_exception): Take rvalue
8763 reference.
8764 * cli/cli-interp.c (safe_execute_command): Use std::move.
8765 * breakpoint.c (insert_bp_location, location_to_sals): Use
8766 std::move.
8767
8768 2019-04-25 Tom Tromey <tromey@adacore.com>
8769
8770 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8771 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8772 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8773 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8774 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8775 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8776 guile/scm-value.c: Use unpack.
8777 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8778 gdbscm_gdb_exception.
8779 (gdbscm_throw_gdb_exception): Likewise.
8780 (struct gdbscm_gdb_exception): New.
8781 (unpack): New function.
8782 (gdbscm_wrap): Use unpack.
8783
8784 2019-04-25 Tom Tromey <tromey@adacore.com>
8785
8786 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8787 (gdb_rl_callback_handler): Use std::move.
8788 * common/common-exceptions.h (struct gdb_exception): Add move
8789 assignment operator.
8790 (throw_exception_sjlj): Change "exception" to const reference.
8791 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8792 (throw_exception_sjlj): Change "exception" to const reference.
8793
8794 2019-04-25 Tom Tromey <tromey@adacore.com>
8795
8796 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8797 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8798 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8799 Update.
8800 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8801 Update.
8802 * mi/mi-interp.c (mi_interp::exec): Update.
8803 * linespec.c (parse_linespec): Update.
8804 * infcall.c (run_inferior_call): Update.
8805 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8806 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8807 (gdbscm_lookup_global_symbol): Update.
8808 * guile/scm-param.c (gdbscm_parameter_value): Update.
8809 * guile/scm-frame.c (gdbscm_frame_read_register)
8810 (gdbscm_frame_read_var): Update.
8811 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8812 * exec.c (try_open_exec_file): Update.
8813 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8814 (gdb_rl_callback_handler): Update.
8815 * common/common-exceptions.h (exception_none): Don't declare.
8816 * common/common-exceptions.c (exception_none): Don't define.
8817 (struct catcher) <exception>: Update.
8818 * cli/cli-interp.c (safe_execute_command): Update.
8819 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8820
8821 2019-04-25 Ali Tamur <tamur@google.com>
8822
8823 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8824 (read_attribute_value): Likewise.
8825 (dwarf2_read_addr_index): Update comment.
8826 (read_str_index): Add DW_FORM_strx.
8827 (dwarf2_string_attr): Likewise.
8828 (dwarf2_const_value_attr): Likewise.
8829 (dump_die_shallow): Likewise.
8830 (dwarf2_fetch_constant_bytes): Likewise.
8831 (skip_form_bytes): Likewise.
8832 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8833
8834 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8835
8836 PR corefiles/11608
8837 PR corefiles/18187
8838 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8839 OFFSET. Verify if current mapping contains an ELF header.
8840 (linux_find_memory_regions_full): Adjust call to
8841 dump_mapping_p.
8842
8843 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8844 Kang Li <kanglictf@gmail.com>
8845
8846 PR gdb/21600
8847
8848 * dwarf2-frame.c (read_initial_length): Be consistent about using
8849 unsigned representation of length.
8850 (decode_frame_entry_1): Likewise. Check for wraparound of
8851 end pointer as well as buffer overflow.
8852
8853 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8854
8855 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8856 "vq".
8857
8858 2019-04-24 Tom Tromey <tromey@adacore.com>
8859
8860 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8861
8862 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * s12z-tdep.c (s12z_unwind_pc): Delete.
8865 (s12z_unwind_sp): Delete.
8866 (s12z_gdbarch_init): Don't register deleted functions with
8867 gdbarch.
8868
8869 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * rl78-tdep.c (rl78_unwind_sp): Delete.
8872 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8873
8874 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8877 (xstormy16_unwind_pc): Delete.
8878 (xstormy16_dummy_id): Delete.
8879 (xstormy16_gdbarch_init): Don't register deleted functions with
8880 gdbarch.
8881
8882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * vax-tdep.c (vax_unwind_pc): Delete.
8885 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8886
8887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * v850-tdep.c (v850_unwind_sp): Delete.
8890 (v850_unwind_pc): Delete.
8891 (v850_dummy_id): Delete.
8892 (v850_gdbarch_init): Don't register deleted functions with
8893 gdbarch.
8894
8895 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8898 (tilegx_unwind_pc): Delete.
8899 (tilegx_unwind_dummy_id): Delete.
8900 (tilegx_gdbarch_init): Don't register deleted functions with
8901 gdbarch.
8902
8903 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8906 (tic6x_dummy_id): Delete.
8907 (tic6x_gdbarch_init): Don't register deleted functions with
8908 gdbarch.
8909
8910 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * sparc-tdep.c (sparc_unwind_pc): Delete.
8913 (sparc32_gdbarch_init): Don't register deleted function with
8914 gdbarch.
8915
8916 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * sh-tdep.c (sh_unwind_sp): Delete.
8919 (sh_unwind_pc): Delete.
8920 (sh_dummy_id): Delete.
8921 (sh_gdbarch_init): Don't register deleted functions with
8922 gdbarch.
8923
8924 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8925
8926 * score-tdep.c (score_unwind_sp): Delete.
8927 (score_unwind_pc): Delete.
8928 (score_dummy_id): Delete.
8929 (score_gdbarch_init): Don't register deleted functions with
8930 gdbarch.
8931
8932 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8933
8934 * rx-tdep.c (rx_unwind_pc): Delete.
8935 (rx_unwind_sp): Delete.
8936 (rx_dummy_id): Delete.
8937 (rx_gdbarch_init): Don't register deleted functions with
8938 gdbarch. Update comment.
8939
8940 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8943 (rs6000_dummy_id): Delete.
8944 (rs6000_gdbarch_init): Don't register deleted functions with
8945 gdbarch.
8946
8947 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8948
8949 * or1k-tdep.c (or1k_dummy_id): Delete.
8950 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8951
8952 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8953
8954 * nios2-tdep.c (nios2_dummy_id): Delete.
8955 (nios2_unwind_sp): Delete.
8956 (nios2_gdbarch_init): Don't register deleted functions with
8957 gdbarch.
8958
8959 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * nds32-tdep.c (nds32_dummy_id): Delete.
8962 (nds32_unwind_pc): Delete.
8963 (nds32_unwind_sp): Delete.
8964 (nds32_gdbarch_init): Don't register deleted functions with
8965 gdbarch.
8966
8967 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8968
8969 * msp430-tdep.c (msp430_unwind_pc): Delete.
8970 (msp430_unwind_sp): Delete.
8971 (msp430_dummy_id): Delete.
8972 (msp430_gdbarch_init): Don't register deleted functions with
8973 gdbarch.
8974
8975 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * moxie-tdep.c (moxie_unwind_sp): Delete.
8978 (moxie_unwind_pc): Delete.
8979 (moxie_dummy_id): Delete.
8980 (moxie_gdbarch_init): Don't register deleted functions with
8981 gdbarch.
8982
8983 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8986 (mn10300_unwind_pc): Delete.
8987 (mn10300_unwind_sp): Delete.
8988 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8989 mn10300_unwind_sp.
8990 (mn10300_frame_unwind_init): Don't register deleted functions with
8991 gdbarch.
8992
8993 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8994
8995 * mep-tdep.c (mep_unwind_pc): Delete.
8996 (mep_unwind_sp): Delete.
8997 (mep_dummy_id): Delete.
8998 (mep_gdbarch_init): Don't register deleted functions with
8999 gdbarch.
9000
9001 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9004 (m68hc11_unwind_sp): Delete.
9005 (m68hc11_gdbarch_init): Don't register deleted functions with
9006 gdbarch.
9007
9008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * m32r-tdep.c (m32r_unwind_sp): Delete.
9011 (m32r_unwind_pc): Delete.
9012 (m32r_dummy_id): Delete.
9013 (m32r_gdbarch_init): Don't register deleted functions with
9014 gdbarch.
9015
9016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9017
9018 * m32c-tdep.c (m32c_unwind_pc): Delete.
9019 (m32c_unwind_sp): Delete.
9020 (m32c_dummy_id): Delete.
9021 (m32c_gdbarch_init): Don't register deleted functions with
9022 gdbarch.
9023
9024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9027 (lm32_unwind_pc): Delete.
9028 (lm32_dummy_id): Delete.
9029 (lm32_gdbarch_init): Don't register deleted functions with
9030 gdbarch.
9031
9032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9033
9034 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9035 (iq2000_unwind_pc): Delete.
9036 (iq2000_dummy_id): Delete.
9037 (iq2000_gdbarch_init): Don't register deleted functions with
9038 gdbarch.
9039
9040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * nds32-tdep.c (nds32_type_align): Delete.
9043 (nds32_push_dummy_call): Use type_align instead.
9044
9045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * arm-tdep.c (arm_type_align): Only handle vector override case.
9048 (arm_push_dummy_call): Use type_align.
9049 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9050
9051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9054 case.
9055 (pass_on_stack): Use type_align.
9056 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9057 function.
9058
9059 2019-04-23 Tom Tromey <tromey@adacore.com>
9060
9061 * dwarf2read.c (line_header::file_name_at): Remove unused
9062 overload.
9063
9064 2019-04-23 Tom de Vries <tdevries@suse.de>
9065
9066 PR gdb/24438
9067 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9068 invocation.
9069
9070
9071 2019-03-27 Ali Tamur <tamur@google.com>
9072
9073 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9074 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9075 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9076 (dwarf_expr_context::get_addr_index): Likewise
9077 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9078 (symbol_needs_eval_context::get_addr_index): Likewise
9079 (disassemble_dwarf_expression): Add DW_OP_addrx
9080 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9081 (read_cutu_die_from_dwo): Update comment
9082 (skip_one_die): Add DW_FORM_addrx
9083 (read_attribute_value): Likewise
9084 (var_decode_location): Add DW_OP_addrx
9085 (dwarf2_const_value_attr): Add DW_FORM_addrx
9086 (dump_die_shallow): Likewise
9087 (dwarf2_fetch_constant_bytes): Likewise
9088 (decode_locdesc): Add DW_OP_addrx
9089 (skip_form_bytes): Add DW_FORM_addrx
9090
9091 2019-04-22 Ali Tamur <tamur@google.com>
9092
9093 * MAINTAINERS (Write After Approval): Add self.
9094
9095 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9098 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9099 (open_symbol_file_object): Likewise.
9100 (svr4_default_sos): Add info parameter.
9101 (svr4_read_so_list): Likewise.
9102 (svr4_current_sos_direct): Adjust functions calls to pass down
9103 info.
9104 (svr4_current_sos_1): Add info parameter.
9105 (svr4_current_sos): Call get_svr4_info, pass info down to
9106 svr4_current_sos_1.
9107 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9108 get_svr4_info.
9109 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9110 get_svr4_info.
9111 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9112 to get_svr4_info.
9113 (probes_table_remove_objfile_probes): Likewise.
9114 (register_solib_event_probe): Add info parameter.
9115 (solist_update_incremental): Pass info parameter down to
9116 svr4_read_so_list.
9117 (disable_probes_interface): Add info parameter.
9118 (svr4_handle_solib_event): Pass current_program_space to
9119 get_svr4_info. Adjust disable_probes_interface cleanup.
9120 (svr4_create_probe_breakpoints): Add info parameter, pass it
9121 down to register_solib_event_probe.
9122 (svr4_create_solib_event_breakpoints): Add info parameter,
9123 pass it down to svr4_create_probe_breakpoints.
9124 (enable_break): Pass info down to
9125 svr4_create_solib_event_breakpoints.
9126 (svr4_solib_create_inferior_hook): Pass current_program_space to
9127 get_svr4_info.
9128 (svr4_clear_solib): Likewise.
9129
9130 2019-04-22 Pedro Alves <palves@redhat.com>
9131
9132 * solib-svr4.c (svr4_free_objfile_observer): New.
9133 (probe_and_action::objfile): New field.
9134 (probes_table_htab_remove_objfile_probes)
9135 (probes_table_remove_objfile_probes): New functions.
9136 (register_solib_event_probe): Add 'objfile' parameter. Store it
9137 in the new probe_and_action. Don't store the probe in 'lookup'.
9138 (svr4_create_probe_breakpoints): Pass objfile to
9139 register_solib_event_probe.
9140 (_initialize_svr4_solib): Register a free_objfile observer.
9141
9142 2019-04-19 Tom Tromey <tom@tromey.com>
9143
9144 * common/queue.h: Remove.
9145
9146 2019-04-19 Tom Tromey <tom@tromey.com>
9147
9148 * event-loop.c: Don't include "common/queue.h".
9149
9150 2019-04-19 Tom Tromey <tom@tromey.com>
9151
9152 * remote.c (remote_target): Use delete.
9153 * remote-notif.h: Include <list>, not "common/queue.h".
9154 (notif_client_p): Remove typedef.
9155 (remote_notif_state): Add constructor, destructor, initializer.
9156 <notif_queue>: Now a std::list.
9157 (remote_notif_state_xfree): Don't declare.
9158 * remote-notif.c (remote_notif_process, handle_notification)
9159 (remote_notif_state_allocate): Update.
9160 (~remote_notif_state): Rename from remote_notif_state_xfree.
9161
9162 2019-04-19 Tom Tromey <tom@tromey.com>
9163
9164 * symfile.c (reread_symbols): Update.
9165 * objfiles.c (objfile_register_static_link)
9166 (objfile_lookup_static_link): Update
9167 (~objfile) Don't delete static_links.
9168 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9169
9170 2019-04-19 Tom Tromey <tom@tromey.com>
9171
9172 * type-stack.h (struct type_stack) <insert>: Constify string.
9173 * type-stack.c (type_stack::insert): Constify string.
9174 * gdbtypes.h (lookup_template_type): Update.
9175 (address_space_name_to_int): Update.
9176 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9177 const.
9178 (lookup_template_type): Make name const.
9179 * c-exp.y: Update rules.
9180 (lex_one_token, classify_name, classify_inner_name)
9181 (c_print_token): Update.
9182 * p-exp.y: Update rules.
9183 (yylex): Update.
9184 * f-exp.y: Update rules.
9185 (yylex): Update.
9186 * d-exp.y: Update rules.
9187 (lex_one_token, classify_name, classify_inner_name): Update.
9188 * parse.c (write_dollar_variable, copy_name): Return std::string.
9189 * parser-defs.h (copy_name): Change return type.
9190 * m2-exp.y: Update rules.
9191 (yylex): Update.
9192 * go-exp.y (lex_one_token): Update.
9193 Update rules.
9194 (classify_unsafe_function, classify_packaged_name)
9195 (classify_name, yylex): Update.
9196
9197 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9198
9199 * configure.ac: add --enable-source-highlight switch.
9200 * configure: Regenerate.
9201 * top.c (print_gdb_version): plumb --enable-source-highlight
9202 status to "show configuration".
9203
9204 2019-04-19 Tom Tromey <tromey@adacore.com>
9205
9206 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9207 Check ADA_TYPE_P.
9208 (empty_record, ada_template_to_fixed_record_type_1)
9209 (template_to_static_fixed_type)
9210 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9211 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9212 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9213 macros.
9214
9215 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9216
9217 PR symtab/24423:
9218 * source.c (print_source_lines_base): Advance "iter" when a
9219 control character is seen.
9220
9221 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9222
9223 * inferior.h (struct infcall_suspend_state_deleter):
9224 Catch exception in destructor to avoid crash.
9225
9226 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9227
9228 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9229 close to the add_com "shell".
9230
9231 2019-04-18 Tom Tromey <tromey@adacore.com>
9232
9233 * process-stratum-target.h (class process_stratum_target)
9234 <stratum>: Add "final".
9235
9236 2019-04-17 Tom Tromey <tromey@adacore.com>
9237
9238 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9239 against nullptr before use.
9240
9241 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9242
9243 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9244
9245 2019-04-17 Jim Wilson <jimw@sifive.com>
9246 Andrew Burgess <andrew.burgess@embecosm.com>
9247
9248 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9249 code read might fail, assume 4-byte breakpoint in that case.
9250
9251 2019-04-15 Leszek Swirski <leszeks@google.com>
9252
9253 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9254 rather than a hand-rolled POD check when checking for forced MEMORY
9255 classification.
9256
9257 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9258
9259 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9260 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9261 function.
9262 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9263 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9264 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9265 declaration.
9266
9267 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9268
9269 * aarch64-linux-nat.c
9270 (aarch64_linux_nat_target::thread_architecture): Add override.
9271 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9272 each VQ.
9273
9274 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9275
9276 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9277
9278 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9281 target types of size 96-bits, add some additional comments, and
9282 check that the builtin type we found was the correct size.
9283
9284 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9285
9286 * utils.c (prompt_for_continue): Don't restore the styling at the
9287 end, as applied_style has the wrong value. This fixes styling in
9288 long lists of file names that are interrupted by the "Continue?"
9289 prompt.
9290
9291 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9292
9293 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9294 * c-lang.c (c_language_defn): Likewise.
9295 (cplus_language_defn): Likewise.
9296 (asm_language_defn): Likewise.
9297 (minimal_language_defn): Likewise.
9298 * d-lang.c (d_language_defn): Likewise.
9299 * f-lang.c (f_language_defn): Likewise.
9300 * go-lang.c (go_language_defn): Likewise.
9301 * language.c (unknown_language_defn): Likewise.
9302 (auto_language_defn): Likewise.
9303 * language.h (struct language_defn): Remove la_magic field.
9304 (LANG_MAGIC): Delete.
9305 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9306 * objc-lang.c (objc_language_defn): Likewise.
9307 * opencl-lang.c (opencl_language_defn): Likewise.
9308 * p-lang.c (pascal_language_defn): Likewise.
9309 * rust-lang.c (rust_language_defn): Likewise.
9310
9311 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9312
9313 * riscv-tdep.c (riscv_type_align): New function.
9314 (riscv_type_alignment): Delete.
9315 (riscv_arg_location): Use 'type_align'.
9316 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9317
9318 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9319
9320 * gdbtypes.c (type_align): A struct with no non-static fields also
9321 has alignment of 1.
9322
9323 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9324
9325 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9326 component to 0.
9327 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9328 member.
9329 (riscv_struct_info::analyse): New implementation using new
9330 analyse_inner member function.
9331 (riscv_struct_info::field_offset): New member function.
9332 (riscv_struct_info::m_offsets): New member variable.
9333 (riscv_struct_info::analyse_inner): New private member function,
9334 takes the old implementation of riscv_struct_info::analyse but
9335 extended to track field offsets.
9336 (riscv_call_arg_struct): Update the struct folding special cases
9337 to handle cases where empty C++ structs, which are non-zero
9338 length, are found.
9339 (riscv_arg_location): Initialise the length of each location, a
9340 non-zero length now indicates the location is in use.
9341 (riscv_push_dummy_call): Allow for the first location having a
9342 non-zero offset when setting up arguments.
9343 (riscv_return_value): Likewise, but for return values.
9344
9345 2019-04-11 Tom Tromey <tromey@adacore.com>
9346
9347 * utils.c (internal_vproblem): Make "msg" const.
9348
9349 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9350
9351 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9352 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9353 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9354 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9355
9356 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9357
9358 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9359 function.
9360 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9361 of amd64_collect_native_gregset.
9362 (amd64_linux_nat_target::store_registers): Likewise.
9363
9364 2019-04-10 Tom Tromey <tom@tromey.com>
9365
9366 * symtab.c (lookup_global_symbol_from_objfile)
9367 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9368 * objfiles.h (class separate_debug_iterator): New.
9369 (class separate_debug_range): New.
9370 (struct objfile) <separate_debug_objfiles>: New method.
9371 (objfile_separate_debug_iterate): Don't declare.
9372 * objfiles.c (separate_debug_iterator::operator++): Rename from
9373 objfile_separate_debug_iterate.
9374 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9375 iterator.
9376 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9377 iterator.
9378
9379 2019-04-10 Tom Tromey <tom@tromey.com>
9380
9381 * symfile.c (reread_symbols): Remove old comment.
9382 * objfiles.c (free_all_objfiles): Fix a typo.
9383
9384 2019-04-10 Tom Tromey <tom@tromey.com>
9385
9386 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9387 * minsyms.c (lookup_minimal_symbol): Use foreach.
9388 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9389 (lookup_minimal_symbol_solib_trampoline): Likewise.
9390 * symfile.c (reread_symbols): Use foreach.
9391
9392 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9393 Tom Tromey <tromey@adacore.com>
9394
9395 PR rust/24414:
9396 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9397 (rust_lex_int_test): Change "value" to be LONGEST.
9398 (rust_lex_tests): Add test for long integer literal.
9399
9400 2019-04-09 Tom Tromey <tromey@adacore.com>
9401
9402 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9403 to bool.
9404 (extended_remote_target::attach): Update.
9405 (remote_target::remote_notice_new_inferior): Update.
9406 (remote_target::add_current_inferior_and_thread): Update.
9407 * inferior.c (exit_inferior_1): Use "false".
9408 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9409
9410 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9413 the "start" command.
9414
9415 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9416
9417 * python/py-inferior.c (infpy_thread_from_thread_handle):
9418 Adjust comments to reflect renaming of thread_from_thread_handle
9419 to thread_from_handle. Adjust keywords. Fix type error message.
9420 (inferior_object_methods): Add thread_from_handle. Retain
9421 thread_from_thread_handle, but mark it as deprecated.
9422
9423 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9424
9425 * gdbthread.h (find_thread_by_handle): Revise declaration.
9426 * thread.c (find_thread_by_handle): Likewise. Adjust
9427 implementation too.
9428 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9429 support for buffer objects as handles.
9430
9431 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9432
9433 * python/py-infthread.c (thpy_thread_handle): New function.
9434 (thread_object_methods): Register thpy_thread_handle.
9435
9436 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9437
9438 * gdbthread.h (thread_to_thread_handle): Declare.
9439 * thread.c (gdbtypes.h): Include.
9440 (thread_to_thread_handle): New function.
9441
9442 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9443 (target_thread_info_to_thread_handle): Declare.
9444 * target.c (target_thread_info_to_thread_handle): New function.
9445 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9446 * target-delegates.c: Regenerate.
9447
9448 * linux-thread-db.c (class thread_db_target): Add method
9449 thread_info_to_thread_handle.
9450 (thread_db_target::thread_info_to_thread_handle): Define.
9451 * remote.c (class remote_target): Add new method
9452 thread_info_to_thread_handle.
9453 (remote_target::thread_info_to_thread_handle): Define.
9454
9455 2019-04-08 Pedro Alves <palves@redhat.com>
9456
9457 * common/common-exceptions.c (throw_exception): Don't create
9458 named object to throw; throw directly.
9459 (throw_it): Likewise. Don't initialize gdb_exception::message
9460 here, with new; pass FMT and AP to the ctor instead.
9461 * common/common-exceptions.h: Include <string>.
9462 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9463 const char *, va_list)): New ctor. Use std::make_shared.
9464 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9465 errors)): Delete.
9466 (gdb_exception_error::gdb_exception_error(enum errors, const char
9467 *, va_list)): New.
9468 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9469 Add assertion.
9470 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9471 errors)): Delete.
9472 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9473 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9474 Add assertion.
9475
9476 2019-04-08 Tom Tromey <tom@tromey.com>
9477
9478 * valops.c (value_rtti_indirect_type): Replace throw_exception
9479 with throw.
9480 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9481 with throw.
9482 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9483 throw.
9484 * target.c (target_translate_tls_address): Replace throw_exception
9485 with throw.
9486 * stack.c (frame_apply_command_count): Replace throw_exception
9487 with throw.
9488 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9489 throw.
9490 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9491 with throw.
9492 * rs6000-tdep.c (rs6000_frame_cache)
9493 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9494 * remote.c: Replace throw_exception with throw.
9495 * record-full.c (record_full_message, record_full_wait_1)
9496 (record_full_restore): Replace throw_exception with throw.
9497 * record-btrace.c:
9498 (get_thread_current_frame_id, record_btrace_start_replaying)
9499 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9500 (cmd_record_btrace_start): Replace throw_exception with throw.
9501 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9502 throw.
9503 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9504 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9505 * linespec.c:
9506 (find_linespec_symbols): Replace throw_exception with throw.
9507 * infrun.c (displaced_step_prepare, resume): Replace
9508 throw_exception with throw.
9509 * infcmd.c (post_create_inferior): Replace throw_exception with
9510 throw.
9511 * inf-loop.c (inferior_event_handler): Replace throw_exception
9512 with throw.
9513 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9514 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9515 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9516 (get_prev_frame_always, get_frame_pc_if_available)
9517 (get_frame_address_in_block_if_available, get_frame_language):
9518 Replace throw_exception with throw.
9519 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9520 throw_exception with throw.
9521 * eval.c (fetch_subexp_value, evaluate_var_value)
9522 (evaluate_funcall, evaluate_subexp_standard): Replace
9523 throw_exception with throw.
9524 * dwarf2loc.c (call_site_find_chain)
9525 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9526 Replace throw_exception with throw.
9527 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9528 with throw.
9529 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9530 throw.
9531 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9532 * completer.c (complete_line_internal): Replace throw_exception
9533 with throw.
9534 * compile/compile-object-run.c (compile_object_run): Replace
9535 throw_exception with throw.
9536 * cli/cli-script.c (process_next_line): Replace throw_exception
9537 with throw.
9538 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9539 (btrace_enable, btrace_maint_update_pt_packets): Replace
9540 throw_exception with throw.
9541 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9542 throw_exception with throw.
9543 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9544 throw_exception with throw.
9545 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9546 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9547 * aarch64-tdep.c (aarch64_make_prologue_cache)
9548 (aarch64_make_stub_cache): Replace throw_exception with throw.
9549
9550 2019-04-08 Tom Tromey <tom@tromey.com>
9551
9552 * common/common-exceptions.c (throw_exception): Rename from
9553 throw_exception_cxx. Remove old copy. Make argument const.
9554 (throw_it): Create and throw exception objects directly.
9555 * common/common-exceptions.h (throw_exception): Make argument
9556 const.
9557 (struct gdb_exception_error): Add constructor.
9558 (struct gdb_exception_quit): Add constructor.
9559
9560 2019-04-08 Tom Tromey <tom@tromey.com>
9561
9562 * common/common-exceptions.h (exception_rethrow): Don't declare.
9563 (TRY_SJLJ): Update comment.
9564 (TRY, CATCH, END_CATCH): Remove.
9565 * common/common-exceptions.c (exception_rethrow): Remove.
9566
9567 2019-04-08 Tom Tromey <tom@tromey.com>
9568
9569 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9570 Remove.
9571 (gdb_exception_error): Rename from
9572 gdb_exception_RETURN_MASK_ERROR.
9573 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9574 (gdb_quit_bad_alloc): Update.
9575 * aarch64-tdep.c: Update.
9576 * ada-lang.c: Update.
9577 * ada-typeprint.c: Update.
9578 * ada-valprint.c: Update.
9579 * amd64-tdep.c: Update.
9580 * arch-utils.c: Update.
9581 * break-catch-throw.c: Update.
9582 * breakpoint.c: Update.
9583 * btrace.c: Update.
9584 * c-varobj.c: Update.
9585 * cli/cli-cmds.c: Update.
9586 * cli/cli-interp.c: Update.
9587 * cli/cli-script.c: Update.
9588 * common/common-exceptions.c: Update.
9589 * common/new-op.c: Update.
9590 * common/selftest.c: Update.
9591 * compile/compile-c-symbols.c: Update.
9592 * compile/compile-cplus-symbols.c: Update.
9593 * compile/compile-object-load.c: Update.
9594 * compile/compile-object-run.c: Update.
9595 * completer.c: Update.
9596 * corelow.c: Update.
9597 * cp-abi.c: Update.
9598 * cp-support.c: Update.
9599 * cp-valprint.c: Update.
9600 * darwin-nat.c: Update.
9601 * disasm-selftests.c: Update.
9602 * dtrace-probe.c: Update.
9603 * dwarf-index-cache.c: Update.
9604 * dwarf-index-write.c: Update.
9605 * dwarf2-frame-tailcall.c: Update.
9606 * dwarf2-frame.c: Update.
9607 * dwarf2loc.c: Update.
9608 * dwarf2read.c: Update.
9609 * eval.c: Update.
9610 * event-loop.c: Update.
9611 * event-top.c: Update.
9612 * exec.c: Update.
9613 * f-valprint.c: Update.
9614 * fbsd-tdep.c: Update.
9615 * frame-unwind.c: Update.
9616 * frame.c: Update.
9617 * gdbtypes.c: Update.
9618 * gnu-v3-abi.c: Update.
9619 * guile/guile-internal.h: Update.
9620 * guile/scm-block.c: Update.
9621 * guile/scm-breakpoint.c: Update.
9622 * guile/scm-cmd.c: Update.
9623 * guile/scm-disasm.c: Update.
9624 * guile/scm-frame.c: Update.
9625 * guile/scm-lazy-string.c: Update.
9626 * guile/scm-math.c: Update.
9627 * guile/scm-param.c: Update.
9628 * guile/scm-ports.c: Update.
9629 * guile/scm-pretty-print.c: Update.
9630 * guile/scm-symbol.c: Update.
9631 * guile/scm-symtab.c: Update.
9632 * guile/scm-type.c: Update.
9633 * guile/scm-value.c: Update.
9634 * i386-linux-tdep.c: Update.
9635 * i386-tdep.c: Update.
9636 * inf-loop.c: Update.
9637 * infcall.c: Update.
9638 * infcmd.c: Update.
9639 * infrun.c: Update.
9640 * jit.c: Update.
9641 * language.c: Update.
9642 * linespec.c: Update.
9643 * linux-fork.c: Update.
9644 * linux-nat.c: Update.
9645 * linux-tdep.c: Update.
9646 * linux-thread-db.c: Update.
9647 * main.c: Update.
9648 * mi/mi-cmd-break.c: Update.
9649 * mi/mi-cmd-stack.c: Update.
9650 * mi/mi-interp.c: Update.
9651 * mi/mi-main.c: Update.
9652 * objc-lang.c: Update.
9653 * p-valprint.c: Update.
9654 * parse.c: Update.
9655 * ppc-linux-tdep.c: Update.
9656 * printcmd.c: Update.
9657 * python/py-arch.c: Update.
9658 * python/py-breakpoint.c: Update.
9659 * python/py-cmd.c: Update.
9660 * python/py-finishbreakpoint.c: Update.
9661 * python/py-frame.c: Update.
9662 * python/py-framefilter.c: Update.
9663 * python/py-gdb-readline.c: Update.
9664 * python/py-inferior.c: Update.
9665 * python/py-infthread.c: Update.
9666 * python/py-lazy-string.c: Update.
9667 * python/py-linetable.c: Update.
9668 * python/py-objfile.c: Update.
9669 * python/py-param.c: Update.
9670 * python/py-prettyprint.c: Update.
9671 * python/py-progspace.c: Update.
9672 * python/py-record-btrace.c: Update.
9673 * python/py-record.c: Update.
9674 * python/py-symbol.c: Update.
9675 * python/py-type.c: Update.
9676 * python/py-unwind.c: Update.
9677 * python/py-utils.c: Update.
9678 * python/py-value.c: Update.
9679 * python/python.c: Update.
9680 * record-btrace.c: Update.
9681 * record-full.c: Update.
9682 * remote-fileio.c: Update.
9683 * remote.c: Update.
9684 * riscv-tdep.c: Update.
9685 * rs6000-aix-tdep.c: Update.
9686 * rs6000-tdep.c: Update.
9687 * rust-exp.y: Update.
9688 * rust-lang.c: Update.
9689 * s390-tdep.c: Update.
9690 * selftest-arch.c: Update.
9691 * solib-dsbt.c: Update.
9692 * solib-frv.c: Update.
9693 * solib-spu.c: Update.
9694 * solib-svr4.c: Update.
9695 * solib.c: Update.
9696 * sparc64-linux-tdep.c: Update.
9697 * stack.c: Update.
9698 * symfile-mem.c: Update.
9699 * symmisc.c: Update.
9700 * target.c: Update.
9701 * thread.c: Update.
9702 * top.c: Update.
9703 * tracefile-tfile.c: Update.
9704 * tui/tui.c: Update.
9705 * typeprint.c: Update.
9706 * unittests/cli-utils-selftests.c: Update.
9707 * unittests/parse-connection-spec-selftests.c: Update.
9708 * valops.c: Update.
9709 * valprint.c: Update.
9710 * value.c: Update.
9711 * varobj.c: Update.
9712 * windows-nat.c: Update.
9713 * x86-linux-nat.c: Update.
9714 * xml-support.c: Update.
9715
9716 2019-04-08 Tom Tromey <tom@tromey.com>
9717
9718 * xml-support.c: Use C++ exception handling.
9719 * x86-linux-nat.c: Use C++ exception handling.
9720 * windows-nat.c: Use C++ exception handling.
9721 * varobj.c: Use C++ exception handling.
9722 * value.c: Use C++ exception handling.
9723 * valprint.c: Use C++ exception handling.
9724 * valops.c: Use C++ exception handling.
9725 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9726 handling.
9727 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9728 * typeprint.c: Use C++ exception handling.
9729 * tui/tui.c: Use C++ exception handling.
9730 * tracefile-tfile.c: Use C++ exception handling.
9731 * top.c: Use C++ exception handling.
9732 * thread.c: Use C++ exception handling.
9733 * target.c: Use C++ exception handling.
9734 * symmisc.c: Use C++ exception handling.
9735 * symfile-mem.c: Use C++ exception handling.
9736 * stack.c: Use C++ exception handling.
9737 * sparc64-linux-tdep.c: Use C++ exception handling.
9738 * solib.c: Use C++ exception handling.
9739 * solib-svr4.c: Use C++ exception handling.
9740 * solib-spu.c: Use C++ exception handling.
9741 * solib-frv.c: Use C++ exception handling.
9742 * solib-dsbt.c: Use C++ exception handling.
9743 * selftest-arch.c: Use C++ exception handling.
9744 * s390-tdep.c: Use C++ exception handling.
9745 * rust-lang.c: Use C++ exception handling.
9746 * rust-exp.y: Use C++ exception handling.
9747 * rs6000-tdep.c: Use C++ exception handling.
9748 * rs6000-aix-tdep.c: Use C++ exception handling.
9749 * riscv-tdep.c: Use C++ exception handling.
9750 * remote.c: Use C++ exception handling.
9751 * remote-fileio.c: Use C++ exception handling.
9752 * record-full.c: Use C++ exception handling.
9753 * record-btrace.c: Use C++ exception handling.
9754 * python/python.c: Use C++ exception handling.
9755 * python/py-value.c: Use C++ exception handling.
9756 * python/py-utils.c: Use C++ exception handling.
9757 * python/py-unwind.c: Use C++ exception handling.
9758 * python/py-type.c: Use C++ exception handling.
9759 * python/py-symbol.c: Use C++ exception handling.
9760 * python/py-record.c: Use C++ exception handling.
9761 * python/py-record-btrace.c: Use C++ exception handling.
9762 * python/py-progspace.c: Use C++ exception handling.
9763 * python/py-prettyprint.c: Use C++ exception handling.
9764 * python/py-param.c: Use C++ exception handling.
9765 * python/py-objfile.c: Use C++ exception handling.
9766 * python/py-linetable.c: Use C++ exception handling.
9767 * python/py-lazy-string.c: Use C++ exception handling.
9768 * python/py-infthread.c: Use C++ exception handling.
9769 * python/py-inferior.c: Use C++ exception handling.
9770 * python/py-gdb-readline.c: Use C++ exception handling.
9771 * python/py-framefilter.c: Use C++ exception handling.
9772 * python/py-frame.c: Use C++ exception handling.
9773 * python/py-finishbreakpoint.c: Use C++ exception handling.
9774 * python/py-cmd.c: Use C++ exception handling.
9775 * python/py-breakpoint.c: Use C++ exception handling.
9776 * python/py-arch.c: Use C++ exception handling.
9777 * printcmd.c: Use C++ exception handling.
9778 * ppc-linux-tdep.c: Use C++ exception handling.
9779 * parse.c: Use C++ exception handling.
9780 * p-valprint.c: Use C++ exception handling.
9781 * objc-lang.c: Use C++ exception handling.
9782 * mi/mi-main.c: Use C++ exception handling.
9783 * mi/mi-interp.c: Use C++ exception handling.
9784 * mi/mi-cmd-stack.c: Use C++ exception handling.
9785 * mi/mi-cmd-break.c: Use C++ exception handling.
9786 * main.c: Use C++ exception handling.
9787 * linux-thread-db.c: Use C++ exception handling.
9788 * linux-tdep.c: Use C++ exception handling.
9789 * linux-nat.c: Use C++ exception handling.
9790 * linux-fork.c: Use C++ exception handling.
9791 * linespec.c: Use C++ exception handling.
9792 * language.c: Use C++ exception handling.
9793 * jit.c: Use C++ exception handling.
9794 * infrun.c: Use C++ exception handling.
9795 * infcmd.c: Use C++ exception handling.
9796 * infcall.c: Use C++ exception handling.
9797 * inf-loop.c: Use C++ exception handling.
9798 * i386-tdep.c: Use C++ exception handling.
9799 * i386-linux-tdep.c: Use C++ exception handling.
9800 * guile/scm-value.c: Use C++ exception handling.
9801 * guile/scm-type.c: Use C++ exception handling.
9802 * guile/scm-symtab.c: Use C++ exception handling.
9803 * guile/scm-symbol.c: Use C++ exception handling.
9804 * guile/scm-pretty-print.c: Use C++ exception handling.
9805 * guile/scm-ports.c: Use C++ exception handling.
9806 * guile/scm-param.c: Use C++ exception handling.
9807 * guile/scm-math.c: Use C++ exception handling.
9808 * guile/scm-lazy-string.c: Use C++ exception handling.
9809 * guile/scm-frame.c: Use C++ exception handling.
9810 * guile/scm-disasm.c: Use C++ exception handling.
9811 * guile/scm-cmd.c: Use C++ exception handling.
9812 * guile/scm-breakpoint.c: Use C++ exception handling.
9813 * guile/scm-block.c: Use C++ exception handling.
9814 * guile/guile-internal.h: Use C++ exception handling.
9815 * gnu-v3-abi.c: Use C++ exception handling.
9816 * gdbtypes.c: Use C++ exception handling.
9817 * frame.c: Use C++ exception handling.
9818 * frame-unwind.c: Use C++ exception handling.
9819 * fbsd-tdep.c: Use C++ exception handling.
9820 * f-valprint.c: Use C++ exception handling.
9821 * exec.c: Use C++ exception handling.
9822 * event-top.c: Use C++ exception handling.
9823 * event-loop.c: Use C++ exception handling.
9824 * eval.c: Use C++ exception handling.
9825 * dwarf2read.c: Use C++ exception handling.
9826 * dwarf2loc.c: Use C++ exception handling.
9827 * dwarf2-frame.c: Use C++ exception handling.
9828 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9829 * dwarf-index-write.c: Use C++ exception handling.
9830 * dwarf-index-cache.c: Use C++ exception handling.
9831 * dtrace-probe.c: Use C++ exception handling.
9832 * disasm-selftests.c: Use C++ exception handling.
9833 * darwin-nat.c: Use C++ exception handling.
9834 * cp-valprint.c: Use C++ exception handling.
9835 * cp-support.c: Use C++ exception handling.
9836 * cp-abi.c: Use C++ exception handling.
9837 * corelow.c: Use C++ exception handling.
9838 * completer.c: Use C++ exception handling.
9839 * compile/compile-object-run.c: Use C++ exception handling.
9840 * compile/compile-object-load.c: Use C++ exception handling.
9841 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9842 * compile/compile-c-symbols.c: Use C++ exception handling.
9843 * common/selftest.c: Use C++ exception handling.
9844 * common/new-op.c: Use C++ exception handling.
9845 * cli/cli-script.c: Use C++ exception handling.
9846 * cli/cli-interp.c: Use C++ exception handling.
9847 * cli/cli-cmds.c: Use C++ exception handling.
9848 * c-varobj.c: Use C++ exception handling.
9849 * btrace.c: Use C++ exception handling.
9850 * breakpoint.c: Use C++ exception handling.
9851 * break-catch-throw.c: Use C++ exception handling.
9852 * arch-utils.c: Use C++ exception handling.
9853 * amd64-tdep.c: Use C++ exception handling.
9854 * ada-valprint.c: Use C++ exception handling.
9855 * ada-typeprint.c: Use C++ exception handling.
9856 * ada-lang.c: Use C++ exception handling.
9857 * aarch64-tdep.c: Use C++ exception handling.
9858
9859 2019-04-08 Tom Tromey <tom@tromey.com>
9860
9861 * xml-support.c (gdb_xml_parser::parse): Update.
9862 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9863 * value.c (show_convenience): Update.
9864 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9865 (test_parse_flags_qcs): Update.
9866 * thread.c (thr_try_catch_cmd): Update.
9867 * target.c (target_translate_tls_address): Update.
9868 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9869 (info_frame_command_core, frame_apply_command_count): Update.
9870 * rust-exp.y (rust_lex_exception_test): Update.
9871 * riscv-tdep.c (riscv_print_one_register_info): Update.
9872 * remote.c (remote_target::enable_btrace): Update.
9873 * record-btrace.c (record_btrace_enable_warn): Update.
9874 * python/py-utils.c (gdbpy_convert_exception): Update.
9875 * printcmd.c (do_one_display, print_variable_and_value): Update.
9876 * mi/mi-main.c (mi_print_exception): Update.
9877 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9878 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9879 * linux-nat.c (linux_nat_target::attach): Update.
9880 * linux-fork.c (class scoped_switch_fork_info): Update.
9881 * infrun.c (displaced_step_prepare): Update.
9882 * infcall.c (call_function_by_hand_dummy): Update.
9883 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9884 * gnu-v3-abi.c (print_one_vtable): Update.
9885 * frame.c (get_prev_frame_always): Update.
9886 * f-valprint.c (info_common_command_for_block): Update.
9887 * exec.c (try_open_exec_file): Update.
9888 * exceptions.c (print_exception, exception_print)
9889 (exception_fprintf, exception_print_same): Update.
9890 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9891 * dwarf-index-cache.c (index_cache::store)
9892 (index_cache::lookup_gdb_index): Update.
9893 * darwin-nat.c (maybe_cache_shell): Update.
9894 * cp-valprint.c (cp_print_value_fields): Update.
9895 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9896 (gcc_cplus_symbol_address): Update.
9897 * compile/compile-c-symbols.c (gcc_convert_symbol)
9898 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9899 * common/selftest.c: Update.
9900 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9901 a std::string.
9902 (exception_try_scope_entry, exception_try_scope_exit): Don't
9903 declare.
9904 (struct exception_try_scope): Remove.
9905 (TRY): Don't use exception_try_scope.
9906 (struct gdb_exception): Add constructor, operator=.
9907 <what>: New method.
9908 (struct gdb_exception_RETURN_MASK_ALL)
9909 (struct gdb_exception_RETURN_MASK_ERROR)
9910 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9911 (struct gdb_quit_bad_alloc): Update.
9912 * common/common-exceptions.c (exception_none): Change
9913 initializer.
9914 (struct catcher) <state, exception>: Initialize inline.
9915 <prev>: Remove member.
9916 (current_catcher): Remove.
9917 (catchers): New global.
9918 (exceptions_state_mc_init): Simplify.
9919 (catcher_pop): Remove.
9920 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9921 (try_scope_depth, exception_try_scope_entry)
9922 (exception_try_scope_exit): Remove.
9923 (throw_exception_sjlj): Update.
9924 (exception_messages, exception_messages_size): Remove.
9925 (throw_it): Simplify.
9926 (gdb_exception_sliced_copy): Remove.
9927 (throw_exception_cxx): Update.
9928 * cli/cli-script.c (script_from_file): Update.
9929 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9930 Update.
9931 * ada-valprint.c (ada_val_print): Update.
9932 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9933 (create_excep_cond_exprs): Update.
9934
9935 2019-04-08 Tom Tromey <tom@tromey.com>
9936
9937 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9938 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9939 (TRY, CATCH, END_CATCH): Remove some definitions.
9940 * common/common-exceptions.c: Don't use GDB_XCPT.
9941 (catcher_list_size): Remove.
9942 (throw_exception, throw_it): Simplify.
9943
9944 2019-04-05 Tom Tromey <tom@tromey.com>
9945
9946 Revert the header-sorting patch.
9947 * ft32-tdep.c: Revert.
9948 * frv-tdep.c: Revert.
9949 * frv-linux-tdep.c: Revert.
9950 * frame.c: Revert.
9951 * frame-unwind.c: Revert.
9952 * frame-base.c: Revert.
9953 * fork-child.c: Revert.
9954 * findvar.c: Revert.
9955 * findcmd.c: Revert.
9956 * filesystem.c: Revert.
9957 * filename-seen-cache.h: Revert.
9958 * filename-seen-cache.c: Revert.
9959 * fbsd-tdep.c: Revert.
9960 * fbsd-nat.h: Revert.
9961 * fbsd-nat.c: Revert.
9962 * f-valprint.c: Revert.
9963 * f-typeprint.c: Revert.
9964 * f-lang.c: Revert.
9965 * extension.h: Revert.
9966 * extension.c: Revert.
9967 * extension-priv.h: Revert.
9968 * expprint.c: Revert.
9969 * exec.h: Revert.
9970 * exec.c: Revert.
9971 * exceptions.c: Revert.
9972 * event-top.c: Revert.
9973 * event-loop.c: Revert.
9974 * eval.c: Revert.
9975 * elfread.c: Revert.
9976 * dwarf2read.h: Revert.
9977 * dwarf2read.c: Revert.
9978 * dwarf2loc.c: Revert.
9979 * dwarf2expr.h: Revert.
9980 * dwarf2expr.c: Revert.
9981 * dwarf2-frame.c: Revert.
9982 * dwarf2-frame-tailcall.c: Revert.
9983 * dwarf-index-write.h: Revert.
9984 * dwarf-index-write.c: Revert.
9985 * dwarf-index-common.c: Revert.
9986 * dwarf-index-cache.h: Revert.
9987 * dwarf-index-cache.c: Revert.
9988 * dummy-frame.c: Revert.
9989 * dtrace-probe.c: Revert.
9990 * disasm.h: Revert.
9991 * disasm.c: Revert.
9992 * disasm-selftests.c: Revert.
9993 * dictionary.c: Revert.
9994 * dicos-tdep.c: Revert.
9995 * demangle.c: Revert.
9996 * dcache.h: Revert.
9997 * dcache.c: Revert.
9998 * darwin-nat.h: Revert.
9999 * darwin-nat.c: Revert.
10000 * darwin-nat-info.c: Revert.
10001 * d-valprint.c: Revert.
10002 * d-namespace.c: Revert.
10003 * d-lang.c: Revert.
10004 * ctf.c: Revert.
10005 * csky-tdep.c: Revert.
10006 * csky-linux-tdep.c: Revert.
10007 * cris-tdep.c: Revert.
10008 * cris-linux-tdep.c: Revert.
10009 * cp-valprint.c: Revert.
10010 * cp-support.c: Revert.
10011 * cp-namespace.c: Revert.
10012 * cp-abi.c: Revert.
10013 * corelow.c: Revert.
10014 * corefile.c: Revert.
10015 * continuations.c: Revert.
10016 * completer.h: Revert.
10017 * completer.c: Revert.
10018 * complaints.c: Revert.
10019 * coffread.c: Revert.
10020 * coff-pe-read.c: Revert.
10021 * cli-out.h: Revert.
10022 * cli-out.c: Revert.
10023 * charset.c: Revert.
10024 * c-varobj.c: Revert.
10025 * c-valprint.c: Revert.
10026 * c-typeprint.c: Revert.
10027 * c-lang.c: Revert.
10028 * buildsym.c: Revert.
10029 * buildsym-legacy.c: Revert.
10030 * build-id.h: Revert.
10031 * build-id.c: Revert.
10032 * btrace.c: Revert.
10033 * bsd-uthread.c: Revert.
10034 * breakpoint.h: Revert.
10035 * breakpoint.c: Revert.
10036 * break-catch-throw.c: Revert.
10037 * break-catch-syscall.c: Revert.
10038 * break-catch-sig.c: Revert.
10039 * blockframe.c: Revert.
10040 * block.c: Revert.
10041 * bfin-tdep.c: Revert.
10042 * bfin-linux-tdep.c: Revert.
10043 * bfd-target.c: Revert.
10044 * bcache.c: Revert.
10045 * ax-general.c: Revert.
10046 * ax-gdb.h: Revert.
10047 * ax-gdb.c: Revert.
10048 * avr-tdep.c: Revert.
10049 * auxv.c: Revert.
10050 * auto-load.c: Revert.
10051 * arm-wince-tdep.c: Revert.
10052 * arm-tdep.c: Revert.
10053 * arm-symbian-tdep.c: Revert.
10054 * arm-pikeos-tdep.c: Revert.
10055 * arm-obsd-tdep.c: Revert.
10056 * arm-nbsd-tdep.c: Revert.
10057 * arm-nbsd-nat.c: Revert.
10058 * arm-linux-tdep.c: Revert.
10059 * arm-linux-nat.c: Revert.
10060 * arm-fbsd-tdep.c: Revert.
10061 * arm-fbsd-nat.c: Revert.
10062 * arm-bsd-tdep.c: Revert.
10063 * arch-utils.c: Revert.
10064 * arc-tdep.c: Revert.
10065 * arc-newlib-tdep.c: Revert.
10066 * annotate.h: Revert.
10067 * annotate.c: Revert.
10068 * amd64-windows-tdep.c: Revert.
10069 * amd64-windows-nat.c: Revert.
10070 * amd64-tdep.c: Revert.
10071 * amd64-sol2-tdep.c: Revert.
10072 * amd64-obsd-tdep.c: Revert.
10073 * amd64-obsd-nat.c: Revert.
10074 * amd64-nbsd-tdep.c: Revert.
10075 * amd64-nbsd-nat.c: Revert.
10076 * amd64-nat.c: Revert.
10077 * amd64-linux-tdep.c: Revert.
10078 * amd64-linux-nat.c: Revert.
10079 * amd64-fbsd-tdep.c: Revert.
10080 * amd64-fbsd-nat.c: Revert.
10081 * amd64-dicos-tdep.c: Revert.
10082 * amd64-darwin-tdep.c: Revert.
10083 * amd64-bsd-nat.c: Revert.
10084 * alpha-tdep.c: Revert.
10085 * alpha-obsd-tdep.c: Revert.
10086 * alpha-nbsd-tdep.c: Revert.
10087 * alpha-mdebug-tdep.c: Revert.
10088 * alpha-linux-tdep.c: Revert.
10089 * alpha-linux-nat.c: Revert.
10090 * alpha-bsd-tdep.c: Revert.
10091 * alpha-bsd-nat.c: Revert.
10092 * aix-thread.c: Revert.
10093 * agent.c: Revert.
10094 * addrmap.c: Revert.
10095 * ada-varobj.c: Revert.
10096 * ada-valprint.c: Revert.
10097 * ada-typeprint.c: Revert.
10098 * ada-tasks.c: Revert.
10099 * ada-lang.c: Revert.
10100 * aarch64-tdep.c: Revert.
10101 * aarch64-ravenscar-thread.c: Revert.
10102 * aarch64-newlib-tdep.c: Revert.
10103 * aarch64-linux-tdep.c: Revert.
10104 * aarch64-linux-nat.c: Revert.
10105 * aarch64-fbsd-tdep.c: Revert.
10106 * aarch64-fbsd-nat.c: Revert.
10107 * aarch32-linux-nat.c: Revert.
10108
10109 2019-04-05 Tom Tromey <tom@tromey.com>
10110
10111 * ft32-tdep.c: Sort headers.
10112 * frv-tdep.c: Sort headers.
10113 * frv-linux-tdep.c: Sort headers.
10114 * frame.c: Sort headers.
10115 * frame-unwind.c: Sort headers.
10116 * frame-base.c: Sort headers.
10117 * fork-child.c: Sort headers.
10118 * findvar.c: Sort headers.
10119 * findcmd.c: Sort headers.
10120 * filesystem.c: Sort headers.
10121 * filename-seen-cache.h: Sort headers.
10122 * filename-seen-cache.c: Sort headers.
10123 * fbsd-tdep.c: Sort headers.
10124 * fbsd-nat.h: Sort headers.
10125 * fbsd-nat.c: Sort headers.
10126 * f-valprint.c: Sort headers.
10127 * f-typeprint.c: Sort headers.
10128 * f-lang.c: Sort headers.
10129 * extension.h: Sort headers.
10130 * extension.c: Sort headers.
10131 * extension-priv.h: Sort headers.
10132 * expprint.c: Sort headers.
10133 * exec.h: Sort headers.
10134 * exec.c: Sort headers.
10135 * exceptions.c: Sort headers.
10136 * event-top.c: Sort headers.
10137 * event-loop.c: Sort headers.
10138 * eval.c: Sort headers.
10139 * elfread.c: Sort headers.
10140 * dwarf2read.h: Sort headers.
10141 * dwarf2read.c: Sort headers.
10142 * dwarf2loc.c: Sort headers.
10143 * dwarf2expr.h: Sort headers.
10144 * dwarf2expr.c: Sort headers.
10145 * dwarf2-frame.c: Sort headers.
10146 * dwarf2-frame-tailcall.c: Sort headers.
10147 * dwarf-index-write.h: Sort headers.
10148 * dwarf-index-write.c: Sort headers.
10149 * dwarf-index-common.c: Sort headers.
10150 * dwarf-index-cache.h: Sort headers.
10151 * dwarf-index-cache.c: Sort headers.
10152 * dummy-frame.c: Sort headers.
10153 * dtrace-probe.c: Sort headers.
10154 * disasm.h: Sort headers.
10155 * disasm.c: Sort headers.
10156 * disasm-selftests.c: Sort headers.
10157 * dictionary.c: Sort headers.
10158 * dicos-tdep.c: Sort headers.
10159 * demangle.c: Sort headers.
10160 * dcache.h: Sort headers.
10161 * dcache.c: Sort headers.
10162 * darwin-nat.h: Sort headers.
10163 * darwin-nat.c: Sort headers.
10164 * darwin-nat-info.c: Sort headers.
10165 * d-valprint.c: Sort headers.
10166 * d-namespace.c: Sort headers.
10167 * d-lang.c: Sort headers.
10168 * ctf.c: Sort headers.
10169 * csky-tdep.c: Sort headers.
10170 * csky-linux-tdep.c: Sort headers.
10171 * cris-tdep.c: Sort headers.
10172 * cris-linux-tdep.c: Sort headers.
10173 * cp-valprint.c: Sort headers.
10174 * cp-support.c: Sort headers.
10175 * cp-namespace.c: Sort headers.
10176 * cp-abi.c: Sort headers.
10177 * corelow.c: Sort headers.
10178 * corefile.c: Sort headers.
10179 * continuations.c: Sort headers.
10180 * completer.h: Sort headers.
10181 * completer.c: Sort headers.
10182 * complaints.c: Sort headers.
10183 * coffread.c: Sort headers.
10184 * coff-pe-read.c: Sort headers.
10185 * cli-out.h: Sort headers.
10186 * cli-out.c: Sort headers.
10187 * charset.c: Sort headers.
10188 * c-varobj.c: Sort headers.
10189 * c-valprint.c: Sort headers.
10190 * c-typeprint.c: Sort headers.
10191 * c-lang.c: Sort headers.
10192 * buildsym.c: Sort headers.
10193 * buildsym-legacy.c: Sort headers.
10194 * build-id.h: Sort headers.
10195 * build-id.c: Sort headers.
10196 * btrace.c: Sort headers.
10197 * bsd-uthread.c: Sort headers.
10198 * breakpoint.h: Sort headers.
10199 * breakpoint.c: Sort headers.
10200 * break-catch-throw.c: Sort headers.
10201 * break-catch-syscall.c: Sort headers.
10202 * break-catch-sig.c: Sort headers.
10203 * blockframe.c: Sort headers.
10204 * block.c: Sort headers.
10205 * bfin-tdep.c: Sort headers.
10206 * bfin-linux-tdep.c: Sort headers.
10207 * bfd-target.c: Sort headers.
10208 * bcache.c: Sort headers.
10209 * ax-general.c: Sort headers.
10210 * ax-gdb.h: Sort headers.
10211 * ax-gdb.c: Sort headers.
10212 * avr-tdep.c: Sort headers.
10213 * auxv.c: Sort headers.
10214 * auto-load.c: Sort headers.
10215 * arm-wince-tdep.c: Sort headers.
10216 * arm-tdep.c: Sort headers.
10217 * arm-symbian-tdep.c: Sort headers.
10218 * arm-pikeos-tdep.c: Sort headers.
10219 * arm-obsd-tdep.c: Sort headers.
10220 * arm-nbsd-tdep.c: Sort headers.
10221 * arm-nbsd-nat.c: Sort headers.
10222 * arm-linux-tdep.c: Sort headers.
10223 * arm-linux-nat.c: Sort headers.
10224 * arm-fbsd-tdep.c: Sort headers.
10225 * arm-fbsd-nat.c: Sort headers.
10226 * arm-bsd-tdep.c: Sort headers.
10227 * arch-utils.c: Sort headers.
10228 * arc-tdep.c: Sort headers.
10229 * arc-newlib-tdep.c: Sort headers.
10230 * annotate.h: Sort headers.
10231 * annotate.c: Sort headers.
10232 * amd64-windows-tdep.c: Sort headers.
10233 * amd64-windows-nat.c: Sort headers.
10234 * amd64-tdep.c: Sort headers.
10235 * amd64-sol2-tdep.c: Sort headers.
10236 * amd64-obsd-tdep.c: Sort headers.
10237 * amd64-obsd-nat.c: Sort headers.
10238 * amd64-nbsd-tdep.c: Sort headers.
10239 * amd64-nbsd-nat.c: Sort headers.
10240 * amd64-nat.c: Sort headers.
10241 * amd64-linux-tdep.c: Sort headers.
10242 * amd64-linux-nat.c: Sort headers.
10243 * amd64-fbsd-tdep.c: Sort headers.
10244 * amd64-fbsd-nat.c: Sort headers.
10245 * amd64-dicos-tdep.c: Sort headers.
10246 * amd64-darwin-tdep.c: Sort headers.
10247 * amd64-bsd-nat.c: Sort headers.
10248 * alpha-tdep.c: Sort headers.
10249 * alpha-obsd-tdep.c: Sort headers.
10250 * alpha-nbsd-tdep.c: Sort headers.
10251 * alpha-mdebug-tdep.c: Sort headers.
10252 * alpha-linux-tdep.c: Sort headers.
10253 * alpha-linux-nat.c: Sort headers.
10254 * alpha-bsd-tdep.c: Sort headers.
10255 * alpha-bsd-nat.c: Sort headers.
10256 * aix-thread.c: Sort headers.
10257 * agent.c: Sort headers.
10258 * addrmap.c: Sort headers.
10259 * ada-varobj.c: Sort headers.
10260 * ada-valprint.c: Sort headers.
10261 * ada-typeprint.c: Sort headers.
10262 * ada-tasks.c: Sort headers.
10263 * ada-lang.c: Sort headers.
10264 * aarch64-tdep.c: Sort headers.
10265 * aarch64-ravenscar-thread.c: Sort headers.
10266 * aarch64-newlib-tdep.c: Sort headers.
10267 * aarch64-linux-tdep.c: Sort headers.
10268 * aarch64-linux-nat.c: Sort headers.
10269 * aarch64-fbsd-tdep.c: Sort headers.
10270 * aarch64-fbsd-nat.c: Sort headers.
10271 * aarch32-linux-nat.c: Sort headers.
10272
10273 2019-04-04 Tom Tromey <tom@tromey.com>
10274
10275 * varobj.c (varobj_create): Update.
10276 * rust-exp.y (struct rust_parser) <update_innermost_block,
10277 lookup_symbol>: New methods.
10278 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10279 Rename.
10280 (rust_parser::rust_lookup_type)
10281 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10282 * printcmd.c (display_command, do_one_display): Update.
10283 * parser-defs.h (struct parser_state) <parser_state>: Add
10284 "tracker" parameter.
10285 (block_tracker): New member.
10286 (class innermost_block_tracker) <innermost_block_tracker>: Add
10287 "types" parameter.
10288 <reset>: Remove method.
10289 (innermost_block): Don't declare.
10290 (null_post_parser): Update.
10291 * parse.c (innermost_block): Remove global.
10292 (write_dollar_variable): Update.
10293 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10294 Remove "tracker_types" parameter.
10295 (parse_expression): Add "tracker" parameter.
10296 (parse_expression_for_completion): Update.
10297 (null_post_parser): Add "tracker" parameter.
10298 * p-exp.y: Update rules.
10299 * m2-exp.y: Update rules.
10300 * language.h (struct language_defn) <la_post_parser>: Add
10301 "tracker" parameter.
10302 * go-exp.y: Update rules.
10303 * f-exp.y: Update rules.
10304 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10305 parameter.
10306 * d-exp.y: Update rules.
10307 * c-exp.y: Update rules.
10308 * breakpoint.c (set_breakpoint_condition): Create an
10309 innermost_block_tracker.
10310 (watch_command_1): Likewise.
10311 * ada-lang.c (resolve): Add "tracker" parameter.
10312 (resolve_subexp): Likewise.
10313 * ada-exp.y (write_var_from_sym): Update.
10314
10315 2019-04-04 Tom Tromey <tom@tromey.com>
10316
10317 * type-stack.h: New file.
10318 * type-stack.c: New file.
10319 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10320 type-stack.h.
10321 (insert_into_type_stack, insert_type, push_type, push_type_int)
10322 (insert_type_address_space, pop_type, pop_type_int)
10323 (pop_typelist, pop_type_stack, append_type_stack)
10324 (push_type_stack, get_type_stack, push_typelist)
10325 (follow_type_instance_flags, follow_types): Don't declare.
10326 * parse.c (type_stack): Remove global.
10327 (parse_exp_in_context): Update.
10328 (insert_into_type_stack, insert_type, push_type, push_type_int)
10329 (insert_type_address_space, pop_type, pop_type_int)
10330 (pop_typelist, pop_type_stack, append_type_stack)
10331 (push_type_stack, get_type_stack, push_typelist)
10332 (follow_type_instance_flags, follow_types): Remove (moved to
10333 type-stack.c).
10334 * f-exp.y (type_stack): New global.
10335 Update rules.
10336 (push_kind_type, f_parse): Update.
10337 * d-exp.y (type_stack): New global.
10338 Update rules.
10339 (d_parse): Update.
10340 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10341 Update rules.
10342 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10343 (HFILES_NO_SRCDIR): Add type-stack.h.
10344
10345 2019-04-04 Tom Tromey <tom@tromey.com>
10346
10347 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10348 (rust_parser::convert_ast_to_expression, rust_parse)
10349 (rust_lex_test_completion, rust_lex_tests): Update.
10350 * parser-defs.h (struct expr_completion_state): New.
10351 (struct parser_state) <parser_state>: Add completion parameter.
10352 <mark_struct_expression, mark_completion_tag>: New methods.
10353 <parse_completion, m_completion_state>: New members.
10354 (prefixify_expression, null_post_parser): Update.
10355 (mark_struct_expression, mark_completion_tag): Don't declare.
10356 * parse.c (parse_completion, expout_last_struct)
10357 (expout_tag_completion_type, expout_completion_name): Remove
10358 globals.
10359 (parser_state::mark_struct_expression)
10360 (parser_state::mark_completion_tag): Now methods.
10361 (prefixify_expression): Add last_struct parameter.
10362 (prefixify_subexp): Likewise.
10363 (parse_exp_1): Update.
10364 (parse_exp_in_context): Add cstate parameter. Update.
10365 (parse_expression_for_completion): Create an
10366 expr_completion_state.
10367 (null_post_parser): Add "completion" parameter.
10368 * p-exp.y: Update rules.
10369 (yylex): Update.
10370 * language.h (struct language_defn) <la_post_parser>: Add
10371 "completing" parameter.
10372 * go-exp.y: Update rules.
10373 (lex_one_token): Update.
10374 * expression.h (parse_completion): Don't declare.
10375 * d-exp.y: Update rules.
10376 (lex_one_token): Update rules.
10377 * c-exp.y: Update rules.
10378 (lex_one_token): Update.
10379 * ada-lang.c (resolve): Add "parse_completion" parameter.
10380 (resolve_subexp): Likewise.
10381 (ada_resolve_function): Likewise.
10382
10383 2019-04-04 Tom Tromey <tom@tromey.com>
10384
10385 * parser-defs.h (struct parser_state) <start_arglist,
10386 end_arglist>: New methods.
10387 <arglist_len, m_funcall_chain>: New members.
10388 (arglist_len, start_arglist, end_arglist): Don't declare.
10389 * parse.c (arglist_len, funcall_chain): Remove global.
10390 (start_arglist, end_arglist): Remove functions.
10391 (parse_exp_in_context): Update.
10392 * p-exp.y: Update rules.
10393 * m2-exp.y: Update rules.
10394 * go-exp.y: Update rules.
10395 * f-exp.y: Update rules.
10396 * d-exp.y: Update rules.
10397 * c-exp.y: Update rules.
10398
10399 2019-04-04 Tom Tromey <tom@tromey.com>
10400
10401 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10402 lex_operator, push_back>: New methods.
10403 Update all rules.
10404 (rust_parser::lex_hex, lex_escape): Rename and update.
10405 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10406 (rust_parser::lex_operator): Rename and update.
10407 (rust_parser::lex_number, rustyylex, rustyyerror)
10408 (rust_lex_test_init, rust_lex_test_sequence)
10409 (rust_lex_test_push_back, rust_lex_tests): Update.
10410 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10411 parameter.
10412 <lexptr, prev_lexptr>: New members.
10413 (lexptr, prev_lexptr): Don't declare.
10414 * parse.c (lexptr, prev_lexptr): Remove globals.
10415 (parse_exp_in_context): Update.
10416 * p-exp.y (yylex, yyerror): Update.
10417 * m2-exp.y (parse_number, yylex, yyerror): Update.
10418 * go-exp.y (lex_one_token, yyerror): Update.
10419 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10420 * d-exp.y (lex_one_token, yyerror): Update.
10421 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10422 (lex_one_token, yyerror): Update.
10423 * ada-lex.l (YY_INPUT): Update.
10424 (rewind_to_char): Update.
10425 * ada-exp.y (yyerror): Update.
10426
10427 2019-04-04 Tom Tromey <tom@tromey.com>
10428
10429 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10430 * parser-defs.h (struct parser_state) <parser_state>: Add new
10431 parameter.
10432 <comma_terminates>: New member.
10433 (comma_terminates): Don't declare global.
10434 * parse.c (comma_terminates): Remove global.
10435 (parse_exp_in_context): Update.
10436 * p-exp.y (yylex): Update.
10437 * m2-exp.y (yylex): Update.
10438 * go-exp.y (lex_one_token): Update.
10439 * f-exp.y (yylex): Update.
10440 * d-exp.y (lex_one_token): Update.
10441 * c-exp.y (lex_one_token): Update.
10442 * ada-lex.l: Update.
10443
10444 2019-04-04 Tom Tromey <tom@tromey.com>
10445
10446 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10447 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10448 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10449 * parser-defs.h (paren_depth): Don't declare.
10450 * parse.c (paren_depth): Remove global.
10451 (parse_exp_in_context): Update.
10452 * p-exp.y (paren_depth): New global.
10453 (pascal_parse): Initialize it.
10454 * m2-exp.y (paren_depth): New global.
10455 (m2_parse): Initialize it.
10456 * go-exp.y (paren_depth): New global.
10457 (go_parse): Initialize it.
10458 * f-exp.y (paren_depth): New global.
10459 (f_parse): Initialize it.
10460 * d-exp.y (paren_depth): New global.
10461 (d_parse): Initialize it.
10462 * c-exp.y (paren_depth): New global.
10463 (c_parse): Initialize it.
10464 * ada-lex.l (paren_depth): New global.
10465 (lexer_init): Initialize it.
10466
10467 2019-04-04 Tom Tromey <tom@tromey.com>
10468
10469 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10470 (rust_parser::convert_ast_to_type)
10471 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10472 * parser-defs.h (struct parser_state) <parser_state>: Add
10473 parameters. Initialize new members.
10474 <expression_context_block, expression_context_pc>: New members.
10475 * parse.c (expression_context_block, expression_context_pc):
10476 Remove globals.
10477 (parse_exp_in_context): Update.
10478 * p-exp.y: Update all rules.
10479 (yylex): Update.
10480 * m2-exp.y: Update all rules.
10481 (yylex): Update.
10482 * go-exp.y (yylex): Update.
10483 * f-exp.y (yylex): Update.
10484 * d-exp.y: Update all rules.
10485 (yylex): Update.
10486 * c-exp.y: Update all rules.
10487 (lex_one_token, classify_name, yylex, c_parse): Update.
10488 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10489
10490 2019-04-04 Tom Tromey <tom@tromey.com>
10491
10492 * gdbarch.h, gdbarch.c: Rebuild.
10493 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10494 * stap-probe.h:
10495 (struct stap_parse_info): Replace "parser_state" with
10496 "expr_builder".
10497 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10498 (parser_state): New class.
10499 * parse.c (expr_builder): Rename.
10500 (expr_builder::release): Rename.
10501 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10502 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10503 (write_exp_elt_longcst, write_exp_elt_floatcst)
10504 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10505 (write_exp_string_vector, write_exp_bitstring)
10506 (write_exp_msymbol, mark_struct_expression)
10507 (write_dollar_variable)
10508 (insert_type_address_space, increase_expout_size): Replace
10509 "parser_state" with "expr_builder".
10510 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10511 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10512 "parser_state" with "expr_builder".
10513
10514 2019-04-04 Tom Tromey <tom@tromey.com>
10515
10516 * rust-exp.y: Replace "parse_language" with method call.
10517 * p-exp.y:
10518 (yylex): Replace "parse_language" with method call.
10519 * m2-exp.y:
10520 (yylex): Replace "parse_language" with method call.
10521 * go-exp.y (classify_name): Replace "parse_language" with method
10522 call.
10523 * f-exp.y (yylex): Replace "parse_language" with method call.
10524 * d-exp.y (lex_one_token): Replace "parse_language" with method
10525 call.
10526 * c-exp.y:
10527 (lex_one_token, classify_name, yylex): Replace "parse_language"
10528 with method call.
10529 * ada-exp.y (find_primitive_type, type_char)
10530 (type_system_address): Replace "parse_language" with method call.
10531
10532 2019-04-04 Tom Tromey <tom@tromey.com>
10533
10534 * rust-exp.y: Replace "parse_gdbarch" with method call.
10535 * parse.c (write_dollar_variable, insert_type_address_space):
10536 Replace "parse_gdbarch" with method call.
10537 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10538 call.
10539 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10540 call.
10541 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10542 "parse_gdbarch" with method call.
10543 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10544 with method call.
10545 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10546 "parse_gdbarch" with method call.
10547 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10548 "parse_gdbarch" with method call.
10549 * c-exp.y (parse_type, parse_number, classify_name): Replace
10550 "parse_gdbarch" with method call.
10551 * ada-lex.l: Replace "parse_gdbarch" with method call.
10552 * ada-exp.y (parse_type, find_primitive_type, type_char)
10553 (type_system_address): Replace "parse_gdbarch" with method call.
10554
10555 2019-04-04 Tom Tromey <tom@tromey.com>
10556
10557 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10558 * stap-probe.c (stap_parse_argument): Update.
10559 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10560 initial_size parameter.
10561 * rust-exp.y (rust_lex_tests): Update.
10562 * parse.c (parser_state): Update.
10563 (parse_exp_in_context): Update.
10564 * parser-defs.h (struct parser_state) <parser_state>: Remove
10565 "initial_size" parameter.
10566
10567 2019-04-04 Tom Tromey <tom@tromey.com>
10568
10569 * parser-defs.h (increase_expout_size): Don't declare.
10570 * parse.c (increase_expout_size): Now static.
10571
10572 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10573
10574 * gnu-nat.c (gnu_nat_target::wait): Fix
10575 target_waitstatus_to_string call.
10576
10577 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10578
10579 * eval.c (evaluate_subexp_standard): Handle internal functions
10580 during Fortran function call handling.
10581
10582 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10583
10584 * NEWS: Mention new internal functions.
10585 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10586 (read_base_type): Use dwarf2_init_complex_target_type.
10587 * value.c (creal_internal_fn): New function.
10588 (cimag_internal_fn): New function.
10589 (_initialize_values): Register new internal functions.
10590
10591 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10592
10593 * infrun.c (stop_all_threads): If debug_infrun, always
10594 trace the wait status after wait_one, using
10595 target_waitstatus_to_string and target_pid_to_str.
10596 (handle_inferior_event): Replace various trace of
10597 wait status kind by a single trace.
10598 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10599 wait status kind image by target_waitstatus_to_string.
10600 * target/waitstatus.c (target_waitstatus_to_string): Fix
10601 obsolete comment.
10602
10603 2019-04-01 Tom Tromey <tromey@adacore.com>
10604
10605 PR symtab/23331:
10606 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10607
10608 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10609 Pedro Alves <palves@redhat.com>
10610
10611 * top.c (quit_force): Call 'finalize_values'.
10612 * value.c (finalize_values): New function.
10613 * value.h (finalize_values): Declare.
10614
10615 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10616
10617 * NEWS: Announce $_gdb_major and $_gdb_minor.
10618
10619 * top.c (init_gdb_version_vars): New function.
10620 (gdb_init): Call init_gdb_version_vars.
10621
10622 2019-03-29 Tom Tromey <tromey@adacore.com>
10623
10624 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10625 help text. Remove dead code.
10626
10627 2019-03-29 Keith Seitz <keiths@redhat.com>
10628
10629 From Siddhesh Poyarekar:
10630 * f-lang.h (f77_get_upperbound): Return LONGEST.
10631 (f77_get_lowerbound): Likewise.
10632 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10633 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10634 print them.
10635 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10636 plongest to format print it.
10637 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10638 (f77_get_upperbound): Likewise.
10639 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10640 LOWER_BOUND to LONGEST.
10641 (f77_create_arrayprint_offset_tbl): Likewise.
10642
10643 2019-03-29 Keith Seitz <keiths@redhat.com>
10644
10645 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10646 %s/pulongest for TYPE_LENGTH instead of %d in format
10647 strings.
10648 * ada-typerint.c (ada_print_type): Likewise.
10649 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10650 * compile/compile-c-support.c (generate_register_struct): Likewise.
10651 * gdbtypes.c (recursive_dump_type): Likewise.
10652 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10653 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10654 instead of %d in format strings.
10655 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10656 to std::min to ULONGEST.
10657 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10658 instead of %d in format strings.
10659 * tracepoint.c (info_scope_command): Likewise.
10660 * typeprint.c (print_offset_data::update)
10661 (print_offset_data::finish): Likewise.
10662 * xtensa-tdep.c (xtensa_store_return_value)
10663 (xtensa_push_dummy_call): Likewise.
10664
10665 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10666
10667 * windows-nat.c (display_selector): Fixed format specifications
10668 for 64-bit Cygwin.
10669
10670 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10671
10672 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10673
10674 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10675
10676 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10677 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10678 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10679 (nios2_linux_init_abi): Install it.
10680
10681 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10682
10683 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10684
10685 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10686
10687 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10688
10689 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10690 Tom Tromey <tromey@adacore.com>
10691
10692 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10693
10694 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10695
10696 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10697 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10698 method to compute the bounds of range types. Also print "[evaluated]"
10699 if the bounds' values come from a dynamic evaluation.
10700
10701 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10704 whitespace when pretty printing is on.
10705
10706 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10707
10708 * ppc-linux-nat.c: Add include.
10709
10710 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10711
10712 * NEWS: Mention AArch64 Pointer Authentication.
10713
10714 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10715
10716 * arm-linux-nat.c: Add include.
10717
10718 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * source-cache.c (source_cache::get_source_lines): Re-read
10721 fullname after calling open_source_file.
10722
10723 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10724
10725 * NEWS: Mention TLS support for FreeBSD.
10726
10727 2019-03-25 Tom Tromey <tromey@adacore.com>
10728
10729 * minsyms.c (BUNCH_SIZE): Update comment.
10730 (~minimal_symbol_reader): Remove old comment.
10731 (compact_minimal_symbols): Update comment.
10732 (minimal_symbol_reader::install): Remove old comment. Update
10733 other comments.
10734
10735 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10736
10737 * s390-linux-nat.c: Add include.
10738
10739 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10740
10741 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10742 Call linux_get_hwcap.
10743 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10744 Likewise.
10745 (aarch64_linux_get_hwcap): Remove function.
10746 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10747 declaration.
10748 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10749 linux_get_hwcap.
10750 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10751 * linux-tdep.c (linux_get_hwcap): Add function.
10752 (linux_get_hwcap2): Likewise.
10753 * linux-tdep.h (linux_get_hwcap): Add declaration.
10754 (linux_get_hwcap2): Likewise.
10755 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10756 (ppc_linux_get_hwcap2): Likewise.
10757 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10758 linux_get_hwcap.
10759 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10760 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10761 (ppc_linux_nat_target::read_description): Likewise.
10762 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10763 * s390-linux-nat.c: Likewise.
10764 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10765
10766 2019-03-24 Tom Tromey <tom@tromey.com>
10767
10768 * ada-lang.c (standard_lookup): Simplify initialization.
10769 (ada_lookup_symbol_nonlocal): Simplify return.
10770 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10771 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10772 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10773 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10774 initialization.
10775 * solib.c (solib_global_lookup): Simplify.
10776 * symtab.c (null_block_symbol): Remove.
10777 (symbol_cache_lookup): Simplify returns.
10778 (lookup_language_this): Simplify returns.
10779 (lookup_symbol_aux): Simplify return.
10780 (lookup_local_symbol): Simplify returns.
10781 (lookup_global_symbol_from_objfile): Simplify return.
10782 (lookup_symbol_in_objfile_symtabs)
10783 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10784 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10785 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10786 * cp-namespace.c (cp_lookup_bare_symbol)
10787 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10788 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10789 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10790 (cp_lookup_symbol_via_imports): Simplify initialization.
10791 (find_symbol_in_baseclass): Likewise.
10792 * symtab.h (null_block_symbol): Remove.
10793 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10794 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10795 (d_lookup_symbol_module): Likewise.
10796 (find_symbol_in_baseclass): Simplify initialization.
10797
10798 2019-03-24 Tom Tromey <tom@tromey.com>
10799
10800 * expression.h: Don't include symtab.h.
10801 (struct block): Forward declare.
10802
10803 2019-03-24 Tom Tromey <tom@tromey.com>
10804
10805 * c-exp.y (typebase): Remove casts.
10806 * gdbtypes.c (lookup_unsigned_typename, )
10807 (lookup_signed_typename): Remove cast.
10808 * eval.c (parse_to_comma_and_eval): Remove cast.
10809 * parse.c (write_dollar_variable): Remove cast.
10810 * block.h (struct block) <superblock>: Now const.
10811 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10812 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10813 (map_block): Make "block" const.
10814 * symfile.h (struct quick_symbol_functions)
10815 <map_matching_symbols>: Constify block argument to "callback".
10816 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10817 const.
10818 (find_pc_sect_compunit_symtab): Make "b" const.
10819 (find_symbol_at_address): Likewise.
10820 (search_symbols): Likewise.
10821 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10822 (dw2_debug_names_lookup_symbol): Likewise.
10823 (dw2_map_matching_symbols): Update.
10824 * p-valprint.c (pascal_val_print): Remove "block".
10825 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10826 (aux_add_nonlocal_symbols): Make "block" const.
10827 (resolve_subexp): Remove cast.
10828 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10829 const.
10830 (iterate_over_file_blocks): Likewise.
10831 * f-exp.y (%union) <bval>: Remove.
10832 * coffread.c (patch_opaque_types): Make "b" const.
10833 * spu-tdep.c (spu_catch_start): Make "block" const.
10834 * c-valprint.c (print_unpacked_pointer): Remove "block".
10835 * symmisc.c (dump_symtab_1): Make "b" const.
10836 (block_depth): Make "block" const.
10837 * d-exp.y (%union) <bval>: Remove.
10838 * cp-support.h (cp_lookup_rtti_type): Update.
10839 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10840 * psymtab.c (psym_lookup_symbol): Make "block" const.
10841 (maintenance_check_psymtabs): Make "b" const.
10842 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10843 (enumerate_locals, enumerate_args): Update.
10844 * python/py-symtab.c (stpy_global_block): Make "block" const.
10845 (stpy_static_block): Likewise.
10846 * inline-frame.c (block_starting_point_at): Make "new_block"
10847 const.
10848 * block.c (find_block_in_blockvector): Make return type const.
10849 (blockvector_for_pc_sect): Make "b" const.
10850 (find_block_in_blockvector): Make "b" const.
10851
10852 2019-03-23 Tom Tromey <tom@tromey.com>
10853
10854 * varobj.c (varobj_create): Update.
10855 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10856 * printcmd.c (display_command, do_one_display): Don't reset
10857 innermost_block.
10858 * parser-defs.h (enum innermost_block_tracker_type): Move to
10859 expression.h.
10860 (innermost_block): Update comment.
10861 * parse.c (parse_exp_1): Add tracker_types parameter.
10862 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10863 tracker_types parameter. Reset innermost_block.
10864 (parse_exp_in_context): Remove.
10865 (parse_expression_for_completion): Update.
10866 * objfiles.c (~objfile): Don't reset expression_context_block or
10867 innermost_block.
10868 * expression.h (enum innermost_block_tracker_type): Move from
10869 parser-defs.h.
10870 (parse_exp_1): Add tracker_types parameter.
10871 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10872 reset innermost_block.
10873
10874 2019-03-23 Tom Tromey <tom@tromey.com>
10875
10876 * objfiles.h: Include bcache.h.
10877
10878 2019-03-23 Tom Tromey <tom@tromey.com>
10879
10880 * linespec.c (get_current_search_block): Use
10881 scoped_restore_current_language.
10882 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10883
10884 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10885 Jiong Wang <jiong.wang@arm.com>
10886
10887 * aarch64-linux-tdep.c
10888 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10889 section.
10890 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10891
10892 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10893 Jiong Wang <jiong.wang@arm.com>
10894
10895 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10896 instructions.
10897 (aarch64_analyze_prologue_test): Add PACIASP test.
10898 (aarch64_prologue_prev_register): Unmask PC value.
10899
10900 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10901 Jiong Wang <jiong.wang@arm.com>
10902
10903 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10904 (aarch64_dwarf2_prev_register): Unmask PC value.
10905 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10906 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10907 DW_CFA_AARCH64_negate_ra_state.
10908 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10909
10910 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10911 Jiong Wang <jiong.wang@arm.com>
10912
10913 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10914 registers.
10915 (aarch64_pseudo_register_name): Likewise.
10916 (aarch64_pseudo_register_type): Likewise.
10917 (aarch64_pseudo_register_reggroup_p): Likewise.
10918 (aarch64_gdbarch_init): Add pauth registers.
10919 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10920 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10921 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10922 (struct gdbarch_tdep): Add regnum for ra_state.
10923
10924 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10925 Jiong Wang <jiong.wang@arm.com>
10926
10927 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10928
10929 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10930 Jiong Wang <jiong.wang@arm.com>
10931
10932 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10933 function.
10934 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10935 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10936 (aarch64_gdbarch_init): Add puth registers.
10937 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10938 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10939 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10940
10941 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10942 Jiong Wang <jiong.wang@arm.com>
10943
10944 * aarch64-linux-nat.c
10945 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10946 * aarch64-linux-tdep.c
10947 (aarch64_linux_core_read_description): Likewise.
10948 (aarch64_linux_get_hwcap): New function.
10949 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10950 (aarch64_linux_get_hwcap): New declaration.
10951
10952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10953 Jiong Wang <jiong.wang@arm.com>
10954
10955 * aarch64-linux-nat.c
10956 (aarch64_linux_nat_target::read_description): Add pauth param.
10957 * aarch64-linux-tdep.c
10958 (aarch64_linux_core_read_description): Likewise.
10959 * aarch64-tdep.c (struct target_desc): Add in pauth.
10960 (aarch64_read_description): Add pauth param.
10961 (aarch64_gdbarch_init): Likewise.
10962 * aarch64-tdep.h (aarch64_read_description): Likewise.
10963 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10964 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10965 * features/Makefile: Add new files.
10966 * features/aarch64-pauth.c: New file.
10967 * features/aarch64-pauth.xml: New file.
10968
10969 2019-03-20 Tom Tromey <tromey@adacore.com>
10970
10971 * infrun.c (handle_inferior_event): Rename from
10972 handle_inferior_event_1. Create a scoped_value_mark.
10973 (handle_inferior_event): Remove.
10974
10975 2019-03-19 Tom Tromey <tromey@adacore.com>
10976
10977 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10978 * infrun.h (print_stop_event): Add "displays" parameter.
10979 * infrun.c (print_stop_event): Add "displays" parameter.
10980
10981 2019-03-19 Pedro Alves <palves@redhat.com>
10982
10983 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10984 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10985 to -1. Fix TABs vs spaces.
10986 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10987 * tui/tui-out.h (tui_ui_out) Add intro comments.
10988 <m_line, m_start_of_line>: In-class initialize, and add describing
10989 comment.
10990
10991 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10992
10993 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10994 variable names.
10995 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10996
10997 2019-03-18 Pedro Alves <palves@redhat.com>
10998 Eli Zaretskii <eliz@gnu.org>
10999
11000 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11001 m_line and m_start_of_line.
11002
11003 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11004
11005 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11006 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11007 it returns a newline. This fixes a regression in TU mode, whereby
11008 the next line is output on the same screen line as the user input.
11009
11010 2019-03-18 Tom Tromey <tromey@adacore.com>
11011
11012 * minsyms.c (minimal_symbol_reader::install): Remove call to
11013 obstack_blank.
11014
11015 2019-03-18 Pedro Alves <palves@redhat.com>
11016
11017 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11018 New globals.
11019 (apply_style): New, factored out from ...
11020 (apply_ansi_escape): ... this. Handle reverse video mode.
11021 (tui_set_reverse_mode): New function.
11022 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11023 * tui/tui-winsource.c (tui_show_source_line): Use
11024 tui_set_reverse_mode instead of setting A_STANDOUT.
11025 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11026 New setter methods.
11027
11028 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11029
11030 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11031 Handle tabs.
11032
11033 2019-03-18 Tom Tromey <tromey@adacore.com>
11034
11035 * ada-lang.c (empty_array): Add "high" parameter.
11036 (ada_evaluate_subexp): Update.
11037
11038 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11039
11040 * unittests/string_view-selftests.c: Define
11041 _initialize_string_view_selftests unconditionally.
11042
11043 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11044
11045 PR gdb/24350
11046 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11047
11048 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11049
11050 PR gdb/24351
11051 * windows-nat.c (display_selector): Fix format specifiers.
11052
11053 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11054
11055 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11056 tui_refill_source_window instead of tui_refresh_win, to update the
11057 current execution line. This fixes redisplay of the current line
11058 when stepping through the code with "next" or "step".
11059
11060 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11061
11062 * source-cache.c (source_cache::get_source_lines): Call
11063 find_source_lines to initialize s->nlines. This fixes vertical
11064 scrolling of TUI source window when the DOWN arrow is pressed.
11065
11066 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067
11068 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11069 linux-thread-db.c (_initialize_thread_db): Likewise.
11070
11071 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11072
11073 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11074 wclrtoeol in tui_show_source_line". This reverts changes made in
11075 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11076
11077 2019-03-15 Tom Tromey <tom@tromey.com>
11078
11079 * symtab.h (struct minimal_symbol): Derive from
11080 general_symbol_info.
11081 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11082 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11083 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11084 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11085 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11086 (MSYMBOL_SEARCH_NAME): Update.
11087 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11088 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11089 * minsyms.c (minimal_symbol_reader::record_full): Update.
11090
11091 2019-03-15 Tom Tromey <tom@tromey.com>
11092
11093 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11094
11095 2019-03-15 Tom Tromey <tom@tromey.com>
11096
11097 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11098 unique_xmalloc_ptr.
11099 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11100 Update.
11101 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11102 (build_minimal_symbol_hash_tables)
11103 (minimal_symbol_reader::install): Update.
11104
11105 2019-03-15 Tom Tromey <tom@tromey.com>
11106
11107 * symtab.c (create_demangled_names_hash): Update.
11108 (symbol_set_names): Update.
11109 * objfiles.h (struct objfile_per_bfd_storage)
11110 <demangled_names_hash>: Now an htab_up.
11111 * objfiles.c (objfile_per_bfd_storage): Simplify.
11112
11113 2019-03-15 Tom Tromey <tom@tromey.com>
11114
11115 * objfiles.h (struct objfile_per_bfd_storage): Declare
11116 destructor.
11117 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11118 New.
11119 (get_objfile_bfd_data): Use new. Don't initialize
11120 language_of_main.
11121 (free_objfile_per_bfd_storage): Remove.
11122 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11123
11124 2019-03-15 Tom Tromey <tom@tromey.com>
11125
11126 * symfile.c (reread_symbols): Update.
11127 * objfiles.c (objfile::objfile): Update.
11128 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11129 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11130 comment.
11131 (minimal_symbol_reader::install): Update.
11132 (terminate_minimal_symbol_table): Remove.
11133 * jit.c (jit_object_close_impl): Update.
11134
11135 2019-03-15 Tom Tromey <tom@tromey.com>
11136
11137 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11138 initializations.
11139
11140 2019-03-15 Tom Tromey <tom@tromey.com>
11141
11142 * objfiles.h (struct objfile_per_bfd_storage)
11143 <demangled_hash_languages>: Now a bitset.
11144 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11145 (lookup_minimal_symbol): Update.
11146
11147 2019-03-15 Tom Tromey <tom@tromey.com>
11148
11149 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11150 Don't return the symbol.
11151 * coffread.c (record_minimal_symbol): Use record_full.
11152
11153 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11154
11155 The MS-Windows port of ncurses fails to switch to a color pair if
11156 one or both of the colors are the implicit default colors. This
11157 change records the default colors when TUI is initialized, and
11158 then specifies them explicitly when a color pair uses the default
11159 colors. This allows color styling in TUI mode on MS-Windows.
11160
11161 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11162 ncurses_norm_attr.
11163 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11164 colors in ncurses_norm_attr.
11165 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11166 "none", replace it with the default color recorded in
11167 ncurses_norm_attr.
11168
11169 2019-03-14 Tom Tromey <tromey@adacore.com>
11170
11171 * source-cache.h (class source_cache) <get_source_lines>: Return
11172 std::string.
11173 * source-cache.c (source_cache::extract_lines): Handle case where
11174 first_pos==npos. Return std::string.
11175 (source_cache::get_source_lines): Update.
11176
11177 2019-03-14 Tom Tromey <tromey@adacore.com>
11178
11179 * NEWS: Add item for "style sources" commands.
11180 * source-cache.c (source_cache::get_source_lines): Check
11181 source_styling.
11182 * cli/cli-style.c (source_styling): New global.
11183 (_initialize_cli_style): Add "style sources" commands.
11184 (show_style_sources): New function.
11185 * cli/cli-style.h (source_styling): Declare.
11186
11187 2019-03-14 Pedro Alves <palves@redhat.com>
11188 Tom Tromey <tromey@adacore.com>
11189
11190 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11191 * tui/tui-winsource.c (tui_refill_source_window): New function,
11192 from...
11193 (tui_horizontal_source_scroll): ... here. Move some logic.
11194 * cli/cli-style.c (set_style_enabled): Notify new observable.
11195 * tui/tui-hooks.c (tui_redisplay_source): New function.
11196 (tui_attach_detach_observers): Attach or detach
11197 tui_redisplay_source.
11198 * observable.h (source_styling_changed): New observable.
11199 * observable.c: Define source_styling_changed observable.
11200
11201 2019-03-13 Tom Tromey <tromey@adacore.com>
11202
11203 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11204 (i386_gnu_nat_target::store_registers): Update.
11205 * target-debug.h (target_debug_print_std_string): New macro.
11206 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11207 * windows-tdep.c (display_one_tib): Update.
11208 * tui/tui-stack.c (tui_make_status_line): Update.
11209 * top.c (print_inferior_quit_action): Update.
11210 * thread.c (thr_try_catch_cmd): Update.
11211 (add_thread_with_info): Update.
11212 (thread_target_id_str): Update.
11213 (thr_try_catch_cmd): Update.
11214 (thread_command): Update.
11215 (thread_find_command): Update.
11216 * record-btrace.c (record_btrace_target::info_record)
11217 (record_btrace_resume_thread, record_btrace_target::resume)
11218 (record_btrace_cancel_resume, record_btrace_step_thread)
11219 (record_btrace_target::wait, record_btrace_target::wait)
11220 (record_btrace_target::wait, record_btrace_target::stop): Update.
11221 * progspace.c (print_program_space): Update.
11222 * process-stratum-target.c
11223 (process_stratum_target::thread_address_space): Update.
11224 * linux-fork.c (linux_fork_mourn_inferior)
11225 (detach_checkpoint_command, info_checkpoints_command)
11226 (linux_fork_context): Update.
11227 (linux_fork_detach): Update.
11228 (class scoped_switch_fork_info): Update.
11229 (delete_checkpoint_command): Update.
11230 * infrun.c (follow_fork_inferior): Update.
11231 (follow_fork_inferior): Update.
11232 (proceed_after_vfork_done): Update.
11233 (handle_vfork_child_exec_or_exit): Update.
11234 (follow_exec): Update.
11235 (displaced_step_prepare_throw): Update.
11236 (displaced_step_restore): Update.
11237 (start_step_over): Update.
11238 (resume_1): Update.
11239 (clear_proceed_status_thread): Update.
11240 (proceed): Update.
11241 (print_target_wait_results): Update.
11242 (do_target_wait): Update.
11243 (context_switch): Update.
11244 (stop_all_threads): Update.
11245 (restart_threads): Update.
11246 (finish_step_over): Update.
11247 (handle_signal_stop): Update.
11248 (switch_back_to_stepped_thread): Update.
11249 (keep_going_pass_signal): Update.
11250 (print_exited_reason): Update.
11251 (normal_stop): Update.
11252 * inferior.c (inferior_pid_to_str): Change return type.
11253 (print_selected_inferior): Update.
11254 (add_inferior): Update.
11255 (detach_inferior): Update.
11256 * dummy-frame.c (fprint_dummy_frames): Update.
11257 * dcache.c (dcache_info_1): Update.
11258 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11259 (btrace_fetch, btrace_clear): Update.
11260 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11261 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11262 type.
11263 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11264 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11265 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11266 * gdbarch.c, gdbarch.h: Rebuild.
11267 * gdbarch.sh (core_pid_to_str): Change return type.
11268 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11269 return type.
11270 (windows_nat_target::pid_to_str): Change return type.
11271 (windows_delete_thread): Update.
11272 (windows_nat_target::attach): Update.
11273 (windows_nat_target::files_info): Update.
11274 * target-delegates.c: Rebuild.
11275 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11276 return type.
11277 (sol_thread_target::pid_to_str): Change return type.
11278 * remote.c (class remote_target) <pid_to_str>: Change return
11279 type.
11280 (remote_target::pid_to_str): Change return type.
11281 (extended_remote_target::attach, remote_target::remote_stop_ns)
11282 (remote_target::remote_notif_remove_queued_reply)
11283 (remote_target::push_stop_reply, remote_target::disable_btrace):
11284 Update.
11285 (extended_remote_target::attach): Update.
11286 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11287 type.
11288 (gdbsim_target::pid_to_str): Change return type.
11289 * ravenscar-thread.c (struct ravenscar_thread_target)
11290 <pid_to_str>: Change return type.
11291 (ravenscar_thread_target::pid_to_str): Change return type.
11292 * procfs.c (class procfs_target) <pid_to_str>: Change return
11293 type.
11294 (procfs_target::pid_to_str): Change return type.
11295 (procfs_target::attach): Update.
11296 (procfs_target::detach): Update.
11297 (procfs_target::fetch_registers): Update.
11298 (procfs_target::store_registers): Update.
11299 (procfs_target::wait): Update.
11300 (procfs_target::files_info): Update.
11301 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11302 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11303 return type.
11304 (nto_procfs_target::pid_to_str): Change return type.
11305 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11306 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11307 return type.
11308 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11309 (exit_lwp): Update.
11310 (attach_proc_task_lwp_callback, get_detach_signal)
11311 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11312 (linux_nat_target::resume, wait_lwp, stop_callback)
11313 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11314 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11315 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11316 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11317 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11318 type.
11319 (inf_ptrace_target::attach): Update.
11320 (inf_ptrace_target::files_info): Update.
11321 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11322 type.
11323 (go32_nat_target::pid_to_str): Change return type.
11324 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11325 (gnu_nat_target::wait): Update.
11326 (gnu_nat_target::wait): Update.
11327 (gnu_nat_target::resume): Update.
11328 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11329 (fbsd_nat_target::wait): Update.
11330 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11331 type.
11332 (darwin_nat_target::attach): Update.
11333 * corelow.c (class core_target) <pid_to_str>: Change return type.
11334 (core_target::pid_to_str): Change return type.
11335 * target.c (normal_pid_to_str): Change return type.
11336 (default_pid_to_str): Likewise.
11337 (target_pid_to_str): Change return type.
11338 (target_translate_tls_address): Update.
11339 (target_announce_detach): Update.
11340 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11341 return type.
11342 (bsd_uthread_target::pid_to_str): Change return type.
11343 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11344 type.
11345 (bsd_kvm_target::pid_to_str): Change return type.
11346 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11347 return type.
11348 (aix_thread_target::pid_to_str): Change return type.
11349 * target.h (struct target_ops) <pid_to_str>: Change return type.
11350 (target_pid_to_str, normal_pid_to_str): Likewise.
11351 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11352 type.
11353 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11354 type.
11355 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11356 return type.
11357 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11358 type.
11359 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11360 type.
11361 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11362 return type.
11363
11364 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11365
11366 * NEWS: Mention that the new default MI version is 3. Mention
11367 changes to the output of commands and events that deal with
11368 multi-location breakpoints.
11369 * breakpoint.c: Include "mi/mi-out.h".
11370 (print_one_breakpoint): Change output syntax if using MI version
11371 >= 3.
11372 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11373 New.
11374 (mi_multi_location_breakpoint_output_fixed): New.
11375 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11376 (mi_cmd_fix_multi_location_breakpoint_output): New.
11377 (mi_multi_location_breakpoint_output_fixed): New.
11378 * mi/mi-cmds.c (mi_cmds): Register command
11379 -fix-multi-location-breakpoint-output.
11380 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11381 interpreter "mi".
11382
11383 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11384
11385 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11386 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11387 instantiate mi_ui_out based on interpreter name.
11388 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11389 * mi/mi-main.c (mi_load_progress): Likewise.
11390
11391 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11392
11393 * NEWS: Combine separate "New targets" sections for 8.3.
11394
11395 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11396
11397 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11398 (ppcfbsd_init_abi): Install gdbarch
11399 "fetch_tls_load_module_address" and "get_thread_local_address"
11400 methods.
11401
11402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11403
11404 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11405 (riscv_fbsd_init_abi): Install gdbarch
11406 "fetch_tls_load_module_address" and "get_thread_local_address"
11407 methods.
11408
11409 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11410
11411 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11412 (i386fbsd_init_abi): Install gdbarch
11413 "fetch_tls_load_module_address" and "get_thread_local_address"
11414 methods.
11415
11416 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11417
11418 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11419 (amd64fbsd_init_abi): Install gdbarch
11420 "fetch_tls_load_module_address" and "get_thread_local_address"
11421 methods.
11422
11423 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11424
11425 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11426 (struct fbsd_pspace_data): New type.
11427 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11428 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11429 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11430 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11431 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11432
11433 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11434
11435 * gdbtypes.c (lookup_struct_elt): New function.
11436 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11437 * gdbtypes.h (struct struct_elt): New type.
11438 (lookup_struct_elt): New prototype.
11439
11440 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11441
11442 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11443 remove disabled code block.
11444
11445 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11446
11447 * gdbarch.sh (get_thread_local_address): New method.
11448 * gdbarch.h, gdbarch.c: Regenerate.
11449 * target.c (target_translate_tls_address): Use
11450 gdbarch_get_thread_local_address if present instead of
11451 target::get_thread_local_address.
11452
11453 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11454
11455 * target.h (target::get_thread_local_address): Update comment.
11456
11457 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11458
11459 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11460 objfile->separate_debug_objfile_backlink if not NULL.
11461
11462 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11463
11464 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11465 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11466 (amd64bsd_store_inferior_registers): Likewise.
11467 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11468 Enable segment base registers.
11469 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11470 PT_GETFSBASE and PT_GETGSBASE.
11471 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11472 PT_SETGSBASE.
11473 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11474 segment base registers.
11475 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11476
11477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11478
11479 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11480 Update calls to i386_target_description to add 'segments'
11481 parameter.
11482 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11483 add segment base registers.
11484 * arch/i386.c (i386_create_target_description): Add 'segments'
11485 parameter to enable segment base registers.
11486 * arch/i386.h (i386_create_target_description): Likewise.
11487 * features/i386/32bit-segments.xml: New file.
11488 * features/i386/32bit-segments.c: Generate.
11489 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11490 call to i386_target_description to add 'segments' parameter.
11491 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11492 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11493 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11494 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11495 if feature is present.
11496 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11497 Add 'segments' parameter to call to i386_target_description.
11498 (i386_target_description): Add 'segments' parameter to enable
11499 segment base registers.
11500 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11501 to call to i386_target_description.
11502 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11503 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11504 Define I386_NUM_REGS.
11505 (i386_target_description): Add 'segments' parameter to enable
11506 segment base registers.
11507
11508 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11509
11510 PR/24325
11511 * source-cache.c: #undef open and close, to avoid unresolved
11512 externals during linking.
11513
11514 2019-03-12 Tom Tromey <tromey@adacore.com>
11515
11516 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11517 const. Add initializers.
11518 (_initialize_remote): Don't initialize ptid globals.
11519
11520 2019-03-12 Pedro Alves <palves@redhat.com>
11521
11522 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11523
11524 2019-03-12 Pedro Alves <palves@redhat.com>
11525
11526 * cp-name-parser.y (main): Remove unused 'len' variable.
11527
11528 2019-03-12 Tom Tromey <tromey@adacore.com>
11529
11530 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11531 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11532
11533 2019-03-12 Tom Tromey <tromey@adacore.com>
11534
11535 * linux-nat.c (iterate_over_lwps): Update.
11536 (stop_callback): Remove parameter.
11537 (stop_wait_callback, detach_callback, resume_set_callback)
11538 (select_singlestep_lwp_callback, set_ignore_sigint)
11539 (status_callback, resumed_callback, resume_clear_callback)
11540 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11541 data parameter.
11542 (linux_nat_target::detach, linux_nat_target::resume)
11543 (linux_stop_and_wait_all_lwps, select_event_lwp)
11544 (linux_nat_filter_event, linux_nat_wait_1)
11545 (linux_nat_target::kill, linux_nat_target::stop)
11546 (linux_nat_target::stop): Update.
11547 (linux_nat_resume_callback): Change type.
11548 (resume_stopped_resumed_lwps, count_events_callback)
11549 (select_event_lwp_callback): Likewise.
11550 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11551 * arm-linux-nat.c (struct update_registers_data): Remove.
11552 (update_registers_callback): Change type.
11553 (arm_linux_insert_hw_breakpoint1): Update.
11554 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11555 parameter.
11556 (x86_linux_dr_set_addr): Update.
11557 (x86_linux_dr_set_control): Update.
11558 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11559 (iterate_over_lwps): Use gdb::function_view.
11560 * nat/aarch64-linux-hw-point.c (struct
11561 aarch64_dr_update_callback_param): Remove.
11562 (debug_reg_change_callback): Change type.
11563 (aarch64_notify_debug_reg_change): Update.
11564 * s390-linux-nat.c (s390_refresh_per_info): Update.
11565
11566 2019-03-11 Tom Tromey <tromey@adacore.com>
11567
11568 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11569 redundant assignment to "this_cu".
11570
11571 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11572
11573 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11574
11575 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11578 from...
11579 (rank_one_type): ... this.
11580
11581 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11582
11583 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11584 from...
11585 (rank_one_type): ... this.
11586
11587 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11588
11589 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11590 from...
11591 (rank_one_type): ... this.
11592
11593 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11594
11595 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11596 from...
11597 (rank_one_type): ... this.
11598
11599 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11600
11601 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11602 from...
11603 (rank_one_type): ... this.
11604
11605 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11606
11607 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11608 from...
11609 (rank_one_type): ... this.
11610
11611 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11612
11613 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11614 from...
11615 (rank_one_type): ... this.
11616
11617 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11618
11619 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11620 from...
11621 (rank_one_type): ... this.
11622
11623 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11624
11625 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11626 from...
11627 (rank_one_type): ... this.
11628
11629 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11630
11631 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11632 from...
11633 (rank_one_type): ... this.
11634
11635 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11636
11637 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11638 from...
11639 (rank_one_type): ... this.
11640
11641 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11642
11643 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11644 from...
11645 (rank_one_type): ... this.
11646
11647 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11648
11649 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11650 inferior-events' shows the example events.
11651
11652 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11653
11654 Support styling on native MS-Windows console
11655
11656 PR/24315
11657 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11658 on MS-Windows if $TERM is not defined.
11659
11660 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11661
11662 * posix-hdep.c (gdb_console_fputs):
11663 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11664 functions.
11665 * ui-file.h (gdb_console_fputs): Add prototype.
11666
11667 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11668 back to fputs only if the former returns zero.
11669
11670 2019-03-07 Tom Tromey <tom@tromey.com>
11671
11672 * symmisc.c (print_symbol_bcache_statistics): Update.
11673 (print_objfile_statistics): Update.
11674 * symfile.c (allocate_symtab): Update.
11675 * stabsread.c: Don't include bcache.h.
11676 * psymtab.h (struct psymbol_bcache): Don't declare.
11677 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11678 (psymbol_bcache_init, psymbol_bcache_free)
11679 (psymbol_bcache_get_bcache): Don't declare.
11680 * psymtab.c (struct psymbol_bcache): Remove.
11681 (psymtab_storage::psymtab_storage): Update.
11682 (psymtab_storage::~psymtab_storage): Update.
11683 (psymbol_bcache_init, psymbol_bcache_free)
11684 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11685 (add_psymbol_to_bcache): Update.
11686 (allocate_psymtab): Update.
11687 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11688 macro_cache>: No longer pointers.
11689 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11690 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11691 * macrotab.c (macro_bcache): Update.
11692 * macroexp.c: Don't include bcache.h.
11693 * gdbtypes.c (check_types_worklist): Update.
11694 (types_deeply_equal): Remove TRY/CATCH. Update.
11695 * elfread.c (elf_symtab_read): Update.
11696 * dwarf2read.c: Don't include bcache.h.
11697 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11698 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11699 (print_bcache_statistics, bcache_memory_used): Don't declare.
11700 (struct bcache): Move from bcache.c. Add constructor, destructor,
11701 methods. Rename all data members.
11702 * bcache.c (struct bcache): Move to bcache.h.
11703 (bcache::expand_hash_table): Rename from expand_hash_table.
11704 (bcache): Remove.
11705 (bcache::insert): Rename from bcache_full.
11706 (bcache::compare): Rename from bcache_compare.
11707 (bcache_xmalloc): Remove.
11708 (bcache::~bcache): Rename from bcache_xfree.
11709 (bcache::print_statistics): Rename from print_bcache_statistics.
11710 (bcache::memory_used): Rename from bcache_memory_used.
11711
11712 2019-03-07 Pedro Alves <palves@redhat.com>
11713
11714 * infrun.c (normal_stop): Also check for
11715 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11716
11717 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11718
11719 * f-lang.c (value_from_host_double): Moved to...
11720 * value.c (value_from_host_double): ...here.
11721 * value.h (value_from_host_double): Declare.
11722 * guile/scm-math.c (vlscm_convert_typed_number): Use
11723 value_from_host_double.
11724 (vlscm_convert_number): Likewise.
11725 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11726 * python/py-value.c (convert_value_from_python): Likewise.
11727
11728 2019-03-06 Tom Tromey <tom@tromey.com>
11729
11730 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11731
11732 2019-03-06 Tom Tromey <tom@tromey.com>
11733
11734 * utils.h (free_current_contents): Don't declare.
11735 * utils.c (free_current_contents): Remove.
11736
11737 2019-03-06 Tom Tromey <tom@tromey.com>
11738
11739 * top.c (quit_force): Update.
11740 * main.c (captured_command_loop): Update.
11741 * common/new-op.c (operator new): Update.
11742 * common/common-exceptions.c (struct catcher)
11743 <save_cleanup_chain>: Remove member.
11744 (exceptions_state_mc_init): Update.
11745 (exception_try_scope_entry): Return nullptr.
11746 (exception_try_scope_exit, exception_rethrow)
11747 (throw_exception_sjlj, throw_exception_cxx): Update.
11748 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11749 (all_cleanups, do_cleanups, discard_cleanups)
11750 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11751 (restore_cleanups, restore_final_cleanups): Don't declare.
11752 (do_final_cleanups): Remove parameter.
11753 * common/cleanups.c (cleanup_chain, make_cleanup)
11754 (make_cleanup_dtor, all_cleanups, do_cleanups)
11755 (discard_my_cleanups, discard_cleanups)
11756 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11757 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11758 (null_cleanup): Remove.
11759 (do_final_cleanups): Remove parameter.
11760
11761 2019-03-06 Tom Tromey <tom@tromey.com>
11762
11763 * remote.c (remote_target::remote_parse_stop_reply): Use
11764 unique_xmalloc_ptr.
11765
11766 2019-03-06 Tom Tromey <tom@tromey.com>
11767
11768 * stabsread.c (struct stabs_field_info): Rename from field_info.
11769 <list, fnlist>: Add initializers.
11770 <obstack>: New member.
11771 (read_member_functions, read_struct_fields, read_baseclasses):
11772 Allocate on obstack. Don't use cleanups.
11773 (read_one_struct_field, read_member_functions, read_struct_fields)
11774 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11775 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11776 (read_struct_type): Update.
11777
11778 2019-03-06 Tom Tromey <tom@tromey.com>
11779
11780 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11781 * common/filestuff.h (make_cleanup_close): Don't declare.
11782 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11783 Remove.
11784
11785 2019-03-06 Tom Tromey <tom@tromey.com>
11786
11787 * solib-aix.c: Use make_scope_exit.
11788
11789 2019-03-06 Tom Tromey <tom@tromey.com>
11790
11791 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11792 Use make_scope_exit.
11793
11794 2019-03-06 Tom Tromey <tom@tromey.com>
11795
11796 * solib-svr4.c (disable_probes_interface): Remove parameter.
11797 (svr4_handle_solib_event): Use make_scope_exit.
11798
11799 2019-03-06 Tom Tromey <tom@tromey.com>
11800
11801 * remote.c (struct stop_reply_deleter): Remove.
11802 (stop_reply_up): Update.
11803 (struct stop_reply): Derive from notif_event. Don't typedef.
11804 <regcache>: Now a std::vector.
11805 (stop_reply_xfree): Remove.
11806 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11807 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11808 (remote_target::discard_pending_stop_replies): Use delete.
11809 (remote_target::remote_parse_stop_reply): Update.
11810 (remote_target::process_stop_reply): Update.
11811 * remote-notif.h (struct notif_event): Add virtual destructor.
11812 Remove "dtr" member.
11813 (struct notif_client) <alloc_event>: Return a unique_ptr.
11814 (notif_event_xfree): Don't declare.
11815 (notif_event_up): New typedef.
11816 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11817 (notif_event_xfree, do_notif_event_xfree): Remove.
11818 (remote_notif_state_xfree): Update.
11819
11820 2019-03-06 Tom Tromey <tom@tromey.com>
11821
11822 * infrun.c (displaced_step_clear_cleanup): Now a
11823 forward_scope_exit type.
11824 (displaced_step_prepare_throw): Update.
11825 (displaced_step_fixup): Update.
11826
11827 2019-03-06 Tom Tromey <tom@tromey.com>
11828
11829 * inferior.h (class inferior): Update comment.
11830 * gdbthread.h (class thread_info): Update comment.
11831
11832 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11833 Tom Tromey <tom@tromey.com>
11834
11835 * stabsread.h (struct stab_section_list): Remove.
11836 (coffstab_build_psymtabs): Update.
11837 * dbxread.c (symbuf_sections): Now a std::vector.
11838 (sect_idx): New global.
11839 (fill_symbuf): Update.
11840 (coffstab_build_psymtabs): Change type of stabsects parameter.
11841 Update.
11842 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11843 std::vector.
11844 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11845 (coff_locate_sections): Update.
11846 (coff_symfile_read): Remove cleanups. Update.
11847 (init_stringtab): Add storage parameter.
11848 (free_stringtab, free_stringtab_cleanup): Remove.
11849 (init_lineno): Add storage parameter.
11850 (free_linetab, free_linetab_cleanup): Remove.
11851
11852 2019-03-06 Pedro Alves <palves@redhat.com>
11853
11854 * linux-fork.c (fork_info::clobber_regs): Delete.
11855 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11856 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11857 comment. Adjust.
11858 (scoped_switch_fork_info::scoped_switch_fork_info)
11859 (checkpoint_command, linux_fork_context): Adjust
11860 fork_save_infrun_state calls.
11861
11862 2019-03-06 Pedro Alves <palves@redhat.com>
11863
11864 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11865 (inf_has_multiple_threads): Return 'bool' and rewrite using
11866 inferior_info::threads().
11867
11868 2019-03-06 Pedro Alves <palves@redhat.com>
11869
11870 * linux-fork.c: Include <list>.
11871 (fork_list): Now a std::list instance.
11872 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11873 (forks_exist_p, find_last_fork): Adjust.
11874 (new_fork): Delete.
11875 (one_fork_p): New.
11876 (add_fork): Adjust.
11877 (free_fork): Delete, folded into fork_info::~fork_info().
11878 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11879 Adjust.
11880 (init_fork_list): Delete.
11881 (linux_fork_killall, linux_fork_mourn_inferior)
11882 (linux_fork_detach, info_checkpoints_command): Adjust.
11883 (_initialize_linux_fork): No longer call init_fork_list.
11884
11885 2019-03-06 Pedro Alves <palves@redhat.com>
11886
11887 * linux-fork.c (new_fork): New, split out of ...
11888 (add_fork): ... this. Return void. Move "first fork" special
11889 case from here, to ...
11890 (checkpoint_command): ... here.
11891 * linux-linux.h (add_fork): Return void.
11892
11893 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11894
11895 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11896
11897 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11898 Chris January <chris.january@arm.com>
11899 David Lecomber <david.lecomber@arm.com>
11900
11901 * f-exp.y: New token, UNOP_INTRINSIC.
11902 (exp): New pattern using UNOP_INTRINSIC token.
11903 (f77_keywords): Add 'abs' keyword.
11904 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11905 (value_from_host_double): New function.
11906 (evaluate_subexp_f): Support UNOP_ABS.
11907
11908 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11911 types.
11912
11913 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11916 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11917 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11918
11919 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11920
11921 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11922
11923 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11924 Chris January <chris.january@arm.com>
11925
11926 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11927 * f-exp.y: Define 'KIND' token.
11928 (exp): New pattern for KIND expressions.
11929 (ptype): Handle types with a kind extension.
11930 (direct_abs_decl): Extend to spot kind extensions.
11931 (f77_keywords): Add 'kind' to the list.
11932 (push_kind_type): New function.
11933 (convert_to_kind_type): New function.
11934 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11935 * parse.c (operator_length_standard): Likewise.
11936 * parser-defs.h (enum type_pieces): Add tp_kind.
11937 * std-operator.def: Add UNOP_KIND.
11938
11939 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11940
11941 * f-exp.y (f_parse): Set yydebug.
11942
11943 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11944
11945 * f-lang.c (evaluate_subexp_f): New function.
11946 (exp_descriptor_f): New global.
11947 (f_language_defn): Use exp_descriptor_f instead of
11948 exp_descriptor_standard.
11949
11950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11951
11952 * f-exp.y (struct token): Add comments.
11953 (dot_ops): Remove uppercase versions and the end marker.
11954 (f77_keywords): Likewise.
11955 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11956 entries in the dot_ops array are case insensitive, and use
11957 strncasecmp to compare strings. Also some whitespace cleanup in
11958 this area. Similar for the f77_keywords array, except entries in
11959 this list might be case sensitive.
11960
11961 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11962
11963 * f-exp.y (struct f77_boolean_val): Add comments.
11964 (boolean_values): Remove uppercase versions, and end marker.
11965 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11966 and use strncasecmp to achieve case insensitivity. Additionally,
11967 perform whitespace cleanup around this code.
11968
11969 2019-03-06 Tom Tromey <tromey@adacore.com>
11970
11971 * remote-sim.c (gdbsim_target_open): Use result of
11972 gdb_argv::release.
11973
11974 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11975 Dirk Schubert <dirk.schubert@arm.com>
11976 Chris January <chris.january@arm.com>
11977
11978 * eval.c (evaluate_subexp_standard): Call Fortran argument
11979 wrapping logic.
11980 * f-lang.c (struct value): A value which can be passed into a
11981 Fortran function call.
11982 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11983 where appropriate.
11984 (struct type): Value ready for a Fortran function call.
11985 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11986 is needed.
11987 * f-lang.h (fortran_argument_convert): Declaration.
11988 (fortran_preserve_arg_pointer): Declaration.
11989 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11990
11991 2019-03-05 Tom Tromey <tromey@adacore.com>
11992
11993 * python/py-prettyprint.c (print_string_repr): Remove #if.
11994 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11995
11996 2019-03-05 Tom Tromey <tromey@adacore.com>
11997
11998 * target.c (the_dummy_target): Move later. Change type to
11999 "dummy_target".
12000 (initialize_targets): Don't initialize the_dummy_target.
12001
12002 2019-03-05 Tom Tromey <tromey@adacore.com>
12003
12004 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12005 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12006
12007 2019-03-05 Tom Tromey <tromey@adacore.com>
12008
12009 * windows-nat.c (windows_nat_target::attach)
12010 (windows_nat_target::detach): Don't call gdb_flush.
12011 * valprint.c (generic_val_print, val_print, val_print_string):
12012 Don't call gdb_flush.
12013 * utils.c (defaulted_query): Don't call gdb_flush.
12014 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12015 * target.c (target_announce_detach): Don't call gdb_flush.
12016 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12017 * remote.c (extended_remote_target::attach): Don't call
12018 gdb_flush.
12019 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12020 * printcmd.c (do_examine): Don't call gdb_flush.
12021 (info_display_command): Don't call gdb_flush.
12022 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12023 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12024 * memattr.c (info_mem_command): Don't call gdb_flush.
12025 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12026 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12027 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12028 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12029 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12030 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12031 (gnu_nat_target::detach): Don't call gdb_flush.
12032 * f-valprint.c (f_val_print): Don't call gdb_flush.
12033 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12034 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12035 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12036 gdb_flush.
12037 * c-valprint.c (c_val_print): Don't call gdb_flush.
12038 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12039
12040 2019-03-05 Tom Tromey <tromey@adacore.com>
12041
12042 * varobj.c (update_dynamic_varobj_children): Update.
12043 (install_default_visualizer): Use reset, not release.
12044 * value.c (set_internalvar): Update.
12045 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12046 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12047 ATTRIBUTE_UNUSED_RESULT.
12048
12049 2019-03-05 Tom Tromey <tromey@adacore.com>
12050
12051 * remote.c (class scoped_remote_fd) <release>: Add
12052 ATTRIBUTE_UNUSED_RESULT.
12053
12054 2019-03-05 Tom Tromey <tromey@adacore.com>
12055
12056 * macroexp.c (struct macro_buffer) <release>: Add
12057 ATTRIBUTE_UNUSED_RESULT.
12058
12059 2019-03-05 Tom Tromey <tromey@adacore.com>
12060
12061 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12062 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12063 ATTRIBUTE_UNUSED_RESULT.
12064
12065 2019-03-05 Tom Tromey <tromey@adacore.com>
12066
12067 * common/scoped_fd.h (class scoped_fd) <release>: Add
12068 ATTRIBUTE_UNUSED_RESULT.
12069
12070 2019-03-05 Tom Tromey <tromey@adacore.com>
12071
12072 * parser-defs.h (struct parser_state) <release>: Add
12073 ATTRIBUTE_UNUSED_RESULT.
12074
12075 2019-03-05 Tom Tromey <tromey@adacore.com>
12076
12077 * utils.h (class gdb_argv) <release>: Add
12078 ATTRIBUTE_UNUSED_RESULT.
12079 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12080
12081 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12082
12083 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12084 for-loop range, to avoid compiler warnings.
12085
12086 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12087 avoid compiler warnings about unused variables.
12088
12089 * NEWS: Mention end of support for native debugging on MS-Windows
12090 before XP.
12091
12092 PR gdb/24292
12093 * common/netstuff.c:
12094 * gdbserver/gdbreplay.c
12095 * gdbserver/remote-utils.c:
12096 * ser-tcp.c:
12097 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12098 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12099 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12100 'getaddrinfo' and 'freeaddrinfo' were not available before
12101 Windows XP, and mingw.org's MinGW headers by default define
12102 _WIN32_WINNT to 0x500.
12103
12104 2019-03-01 Gary Benson <gbenson@redhat.com>
12105
12106 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12107
12108 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12109 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12110
12111 PR gdb/8527
12112 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12113 set_sigint_trap, clear_sigint_trap.
12114
12115 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12116
12117 * target.c (target_detach): Clear the regcache and the
12118 frame cache.
12119
12120 2019-02-27 Pedro Alves <palves@redhat.com>
12121
12122 * utils.c (set_screen_size): When we cap the height/width sizes,
12123 tweak the corresponding command variable to show "unlimited":
12124
12125 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12126 Pedro Alves <palves@redhat.com>
12127
12128 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12129 before calling rl_set_screen_size.
12130
12131 2019-02-27 Tom Tromey <tromey@adacore.com>
12132
12133 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12134 define.
12135 * python/py-value.c: Remove Python 2.4 workaround.
12136 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12137 workaround.
12138 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12139 Python 2.4 workaround.
12140 * python/python-internal.h: Remove Python 2.4 comment.
12141 (Py_ssize_t): Don't define.
12142 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12143 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12144 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12145 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12146 * python/python.c (do_start_initialization): Remove Python 2.4
12147 workaround.
12148 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12149 (print_children): Remove Python 2.4 workaround.
12150 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12151 workaround.
12152 (CHARBUFFERPROC_NAME): Remove.
12153 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12154 Python 2.4 workaround.
12155
12156 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12157
12158 * NEWS: Note minimum Python version.
12159
12160 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12161
12162 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12163 code from these functions. Remove corresponding ifdefs. Use
12164 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12165 Remove gotos and target of gotos.
12166 (infpy_search_memory): Likewise.
12167
12168 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12169
12170 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12171 (hppa_gdbarch_init): Don't register deleted functions with
12172 gdbarch.
12173
12174 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12175
12176 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12177 (h8300_unwind_sp): Delete.
12178 (h8300_dummy_id): Delete.
12179 (h8300_gdbarch_init): Don't register deleted functions with
12180 gdbarch.
12181
12182 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12183
12184 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12185 (ft32_unwind_pc): Delete.
12186 (ft32_unwind_sp): Delete.
12187 (ft32_gdbarch_init): Don't register deleted functions with
12188 gdbarch.
12189
12190 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12191
12192 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12193 (frv_unwind_pc): Delete.
12194 (frv_unwind_sp): Delete.
12195 (frv_gdbarch_init): Don't register deleted functions with
12196 gdbarch.
12197
12198 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12199
12200 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12201 (riscv_unwind_pc): Delete.
12202 (riscv_unwind_sp): Delete.
12203 (riscv_gdbarch_init): Don't register deleted functions with
12204 gdbarch.
12205
12206 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12209 (csky_unwind_pc): Delete.
12210 (csky_unwind_sp): Delete.
12211 (csky_gdbarch_init): Don't register deleted functions with
12212 gdbarch.
12213
12214 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12215
12216 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12217 (cris_unwind_pc): Delete.
12218 (cris_unwind_sp): Delete.
12219 (cris_gdbarch_init): Don't register deleted functions with
12220 gdbarch.
12221
12222 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12223
12224 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12225 (bfin_unwind_pc): Delete.
12226 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12227
12228 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12231 (arm_unwind_pc): Delete.
12232 (arm_unwind_sp): Delete.
12233 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12234
12235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12236
12237 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12238 (arc_unwind_pc): Delete.
12239 (arc_unwind_sp): Delete.
12240 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12241
12242 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12243
12244 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12245 (alpha_unwind_pc): Delete.
12246 (alpha_gdbarch_init): Don't register deleted functions with
12247 gdbarch.
12248
12249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12250
12251 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12252 (aarch64_unwind_pc): Delete.
12253 (aarch64_unwind_sp): Delete.
12254 (aarch64_gdbarch_init): Don't register deleted functions with
12255 gdbarch.
12256
12257 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12258
12259 * gdbtypes.c (type_align): Don't consider static members when
12260 computing structure alignment.
12261
12262 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12263
12264 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12265 return 0 for other types.
12266 * arch-utils.c (default_type_align): Always return 0.
12267 * gdbarch.h: Regenerate.
12268 * gdbarch.sh (type_align): Extend comment.
12269 * gdbtypes.c (type_align): Add additional comments, always call
12270 gdbarch_type_align before applying the default rules.
12271 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12272 generic code will then apply a suitable default.
12273 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12274 types, return 0 for other types.
12275
12276 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12277
12278 * NEWS: Create a new section for the next release branch.
12279 Rename the section of the current branch, now that it has
12280 been cut.
12281
12282 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12283
12284 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12285 * version.in: Bump version to 8.3.50.DATE-git.
12286
12287 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12288
12289 * aix-thread.c (ptid_cmp): Remove unused variable.
12290 (get_signaled_thread): Likewise.
12291 (store_regs_user_thread): Likewise.
12292 (store_regs_kernel_thread): Likewise.
12293 (fetch_regs_kernel_thread): Remove shadowed variable.
12294
12295 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12296
12297 * features/riscv/32bit-cpu.xml: Add register numbers.
12298 * features/riscv/32bit-fpu.c: Regenerate.
12299 * features/riscv/32bit-fpu.xml: Add register numbers.
12300 * features/riscv/64bit-cpu.xml: Add register numbers.
12301 * features/riscv/64bit-fpu.c: Regenerate.
12302 * features/riscv/64bit-fpu.xml: Add register numbers.
12303
12304 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12305
12306 * NEWS: Mention two argument form of gdb.Value constructor.
12307 * python/py-value.c (convert_buffer_and_type_to_value): New
12308 function.
12309 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12310 Add support for handling an optional second argument. Call
12311 convert_buffer_and_type_to_value as appropriate.
12312 * python/python-internal.h (Py_buffer_deleter): New struct.
12313 (Py_buffer_up): New typedef.
12314
12315 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12316
12317 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12318 instead of releasing ownership.
12319
12320 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12321
12322 * dwarf2read.c (open_and_init_dwp_file): Call
12323 elf_numsections instead of bfd_count_sections to initialize
12324 dwp_file->num_sections.
12325
12326 2019-02-25 Tom Tromey <tromey@adacore.com>
12327
12328 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12329
12330 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12331
12332 * gcore.in: Add '--readnever' option when invoking GDB.
12333
12334 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12335
12336 * MAINTAINERS: Update my email address.
12337
12338 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12339
12340 * build-id.c (build_id_to_debug_bfd_1): New function.
12341 (build_id_to_debug_bfd): Look for separate debug file in
12342 sysroot.
12343
12344 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12345
12346 * gdbarch.sh: Update the copyright year range that is placed into
12347 generated files.
12348
12349 2019-02-22 Keith Seitz <keiths@redhat.com>
12350
12351 PR symtab/23853
12352 * linespec.c (create_sals_line_offset): Search for the default
12353 symtab's filename instead of its fullname.
12354
12355 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12356
12357 * NEWS: Update style defaults.
12358
12359 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12360
12361 * main.c (captured_main_1): Disable styling in batch mode.
12362
12363 2019-02-20 Tom Tromey <tom@tromey.com>
12364
12365 * symtab.c (symtab_symbol_info): Fix typos.
12366
12367 2019-02-20 Tom Tromey <tromey@adacore.com>
12368
12369 * findcmd.c (_initialize_mem_search): Use upper case for
12370 metasyntactic variables.
12371
12372 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12373
12374 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12375 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12376
12377 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12378
12379 * top.h (source_file_name): Change to std::string.
12380 * top.c (source_file_name): Likewise.
12381 (command_line_input): Adjust.
12382 * cli/cli-script.c (script_from_file): Adjust.
12383
12384 2019-02-19 Tom Tromey <tromey@adacore.com>
12385
12386 * ravenscar-thread.c
12387 (ravenscar_thread_target::update_thread_list): Don't call
12388 ada_build_task_list.
12389 * ada-lang.h (ada_build_task_list): Don't declare.
12390 * ada-tasks.c (struct ada_tasks_inferior_data)
12391 <task_list_valid_p>: Now bool.
12392 (read_known_tasks, ada_task_list_changed)
12393 (ada_tasks_invalidate_inferior_data): Update.
12394 (read_known_tasks_array): Return bool.
12395 (read_known_tasks_list): Likewise.
12396 (read_known_tasks): Return void.
12397 (ada_build_task_list): Now static.
12398
12399 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12400
12401 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12402 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12403
12404 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12405
12406 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12407 variant for ada_tasks_pspace_data_handle and
12408 ada_tasks_inferior_data_handle.
12409 (ada_tasks_pspace_data_cleanup): New function.
12410 (ada_tasks_inferior_data_cleanup): New function.
12411
12412 2019-02-17 Tom Tromey <tom@tromey.com>
12413
12414 * macrotab.h (macro_source_fullname): Return a std::string.
12415 * macrotab.c (macro_include, check_for_redefinition)
12416 (macro_undef, macro_lookup_definition, foreach_macro)
12417 (foreach_macro_in_scope): Update.
12418 (macro_source_fullname): Return a std::string.
12419 * macrocmd.c (show_pp_source_pos): Update.
12420
12421 2019-02-17 Tom Tromey <tom@tromey.com>
12422
12423 * macrocmd.c (show_pp_source_pos): Style the file names.
12424
12425 2019-02-17 Tom Tromey <tom@tromey.com>
12426
12427 PR tui/24197:
12428 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12429
12430 2019-02-17 Tom Tromey <tom@tromey.com>
12431
12432 * ada-lang.c (user_select_syms): Use filtered printing.
12433 * utils.c (wrap_style): New global.
12434 (desired_style): Remove.
12435 (emit_style_escape): Add stream parameter.
12436 (set_output_style, reset_terminal_style, prompt_for_continue):
12437 Update.
12438 (flush_wrap_buffer): Only flush gdb_stdout.
12439 (wrap_here): Set wrap_style.
12440 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12441 treat escape sequences as a character. Change when wrap buffer is
12442 flushed.
12443 (fputs_styled): Do not set the output style when the default is
12444 requested.
12445 * ui-style.h (struct ui_file_style) <is_default>: New method.
12446 * source.c (print_source_lines_base): Emit escape sequences in one
12447 piece.
12448
12449 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12450
12451 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12452 integers and enumeration types.
12453
12454 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12455
12456 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12457 instead of lookup_symbol_in_language
12458 (do_exact_match): New function.
12459 (ada_get_symbol_name_matcher): Return do_exact_match when
12460 doing a verbatim match.
12461
12462 2019-02-15 Tom Tromey <tromey@adacore.com>
12463
12464 * ravenscar-thread.c (ravenscar_thread_target::resume)
12465 (ravenscar_thread_target::wait): Special case wildcard requests.
12466
12467 2019-02-15 Tom Tromey <tromey@adacore.com>
12468
12469 * ravenscar-thread.c (base_ptid): Remove.
12470 (struct ravenscar_thread_target) <close>: New method.
12471 <m_base_ptid>: New member.
12472 <update_inferior_ptid, active_task, task_is_currently_active,
12473 runtime_initialized>: Declare methods.
12474 <ravenscar_thread_target>: Add constructor.
12475 (ravenscar_thread_target::task_is_currently_active)
12476 (ravenscar_thread_target::update_inferior_ptid)
12477 (ravenscar_runtime_initialized): Rename. Now methods.
12478 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12479 (ravenscar_thread_target::update_thread_list): Update.
12480 (ravenscar_thread_target::active_task): Now method.
12481 (ravenscar_thread_target::store_registers)
12482 (ravenscar_thread_target::prepare_to_store)
12483 (ravenscar_thread_target::prepare_to_store)
12484 (ravenscar_thread_target::mourn_inferior): Update.
12485 (ravenscar_inferior_created): Use "new" to create target.
12486 (ravenscar_thread_target::get_ada_task_ptid): Update.
12487 (_initialize_ravenscar): Don't initialize base_ptid.
12488 (ravenscar_ops): Remove global.
12489
12490 2019-02-15 Tom Tromey <tromey@adacore.com>
12491
12492 * target.h (push_target): Declare new overload.
12493 * target.c (push_target): New overload, taking an rvalue reference.
12494 * remote.c (remote_target::open_1): Use push_target overload.
12495 * corelow.c (core_target_open): Use push_target overload.
12496
12497 2019-02-15 Tom Tromey <tromey@adacore.com>
12498
12499 * ravenscar-thread.c (is_ravenscar_task)
12500 (ravenscar_task_is_currently_active): Return bool.
12501 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12502 (_initialize_ravenscar): Remove "(void)".
12503 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12504 Return bool.
12505
12506 2019-02-15 Tom Tromey <tromey@adacore.com>
12507
12508 * ravenscar-thread.c (ravenscar_runtime_initializer)
12509 (has_ravenscar_runtime, get_running_thread_id)
12510 (ravenscar_thread_target::resume): Fix indentation.
12511
12512 2019-02-15 Tom Tromey <tromey@adacore.com>
12513
12514 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12515 from ravenscar_arch_ops.
12516 (sparc_ravenscar_ops::fetch_registers)
12517 (sparc_ravenscar_ops::store_registers): Now methods.
12518 (sparc_ravenscar_prepare_to_store): Remove.
12519 (sparc_ravenscar_ops): Redefine.
12520 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12521 methods and destructor. Remove members.
12522 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12523 (ravenscar_thread_target::store_registers)
12524 (ravenscar_thread_target::prepare_to_store): Update.
12525 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12526 Remove.
12527 (struct ppc_ravenscar_powerpc_ops): Derive from
12528 ravenscar_arch_ops.
12529 (ppc_ravenscar_powerpc_ops::fetch_registers)
12530 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12531 (ppc_ravenscar_powerpc_ops): Redefine.
12532 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12533 (ppc_ravenscar_e500_ops::fetch_registers)
12534 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12535 (ppc_ravenscar_e500_ops): Redefine.
12536 * aarch64-ravenscar-thread.c
12537 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12538 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12539 (aarch64_ravenscar_fetch_registers)
12540 (aarch64_ravenscar_store_registers): Now methods.
12541 (aarch64_ravenscar_ops): Redefine.
12542
12543 2019-02-15 Tom Tromey <tromey@adacore.com>
12544
12545 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12546 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12547 (ravenscar_thread_target::stopped_by_watchpoint)
12548 (ravenscar_thread_target::stopped_data_address)
12549 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12550
12551 2019-02-15 Tom Tromey <tromey@adacore.com>
12552
12553 * ravenscar-thread.c: Fix some typos.
12554
12555 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12556 Tom Tromey <tromey@adacore.com>
12557
12558 * ada-lang.c (ada_exception_sal): Change addr_string to a
12559 std::string.
12560 (create_ada_exception_catchpoint): Update.
12561
12562 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12563 Tom Tromey <tromey@adacore.com>
12564
12565 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12566 (bp_location_ops): Remove.
12567 (base_breakpoint_allocate_location): Update.
12568 (free_bp_location): Update.
12569 * ada-lang.c (class ada_catchpoint_location)
12570 <ada_catchpoint_location>: Remove ops parameter.
12571 (ada_catchpoint_location_dtor): Remove.
12572 (ada_catchpoint_location_ops): Remove.
12573 (allocate_location_exception): Update.
12574 * breakpoint.h (struct bp_location_ops): Remove.
12575 (class bp_location) <bp_location>: Remove bp_location_ops
12576 parameter.
12577 <~bp_location>: Add destructor.
12578 <ops>: Remove.
12579
12580 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12581 Pedro Alves <palves@redhat.com>
12582
12583 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12584 'PATH_MAX'.
12585
12586 2019-02-14 David Michael <fedora.dm0@gmail.com>
12587 Samuel Thibault <samuel.thibault@gnu.org>
12588 Thomas Schwinge <thomas@codesourcery.com>
12589
12590 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12591 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12592
12593 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12594
12595 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12596 (check_empty): Use "const char *".
12597
12598 * gnu-nat.c (gnu_nat_target::detach): Instead of
12599 'detach_inferior (pid)' call
12600 'detach_inferior (find_inferior_pid (pid))'.
12601
12602 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12603 'nat/fork-inferior.o'.
12604 * gnu-nat.c: #include "nat/fork-inferior.h".
12605
12606 * gnu-nat.c (gnu_nat_target::detach): Instead of
12607 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12608 * gnu-nat.h: #include "inf-child.h".
12609 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12610 'i386_gnu_nat_target::fetch_registers'.
12611 (gnu_store_registers): Rename/move to
12612 'i386_gnu_nat_target::store_registers'.
12613
12614 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12615 * gnu-nat.h (mach_thread_info): New function.
12616 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12617
12618 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12619
12620 2019-02-14 Frederic Konrad <konrad@adacore.com>
12621
12622 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12623
12624 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12625
12626 * windows-nat.c (windows_add_thread): Add new parameter
12627 "main_thread_p" with default value set to false. Update
12628 function documentation as well as all callers.
12629 (windows_delete_thread): Likewise.
12630 (fake_create_process): Update call to windows_add_thread.
12631 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12632 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12633 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12634 call to windows_delete_thread.
12635
12636 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12637
12638 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12639
12640 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12641
12642 * symfile.c (find_separate_debug_file): Use canonical path of
12643 sysroot with child_path instead of gdb_sysroot if it is valid.
12644
12645 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12646
12647 * symfile.c (find_separate_debug_file): Use child_path to
12648 determine if an object file is under a sysroot.
12649
12650 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12651
12652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12653 unittests/child-path-selftests.c.
12654 * common/pathstuff.c (child_path): New function.
12655 * common/pathstuff.h (child_path): New prototype.
12656 * unittests/child-path-selftests.c: New file.
12657
12658 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12659
12660 * symfile.c (find_separate_debug_file): Look for separate debug
12661 files in debug directories under the sysroot.
12662
12663 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12664
12665 * symtab.h (struct minimal_symbol data_p): New const method.
12666 (struct minimal_symbol text_p): Likewise.
12667 * symtab.c (output_source_filename): Use file name style
12668 to print file name.
12669 (print_symbol_info): Likewise.
12670 (print_msymbol_info): Use address style to print addresses.
12671 Use function name style to print executable text symbols.
12672 (expand_symtab_containing_pc): Use data_p.
12673 (find_pc_sect_compunit_symtab): Likewise.
12674
12675 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12676
12677 * breakpoint.c (describe_other_breakpoints): Use address style
12678 to print addresses.
12679 (say_where): Likewise.
12680
12681 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12682
12683 * ada-typeprint.c (print_func_type): Print function name
12684 style to print function name.
12685 * c-typeprint.c (c_print_type_1): Likewise.
12686
12687 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12688
12689 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12690 for execve.
12691
12692 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12693
12694 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12695 type_stack.
12696
12697 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12698
12699 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12700 TYPE_CODE_REF types.
12701
12702 2019-02-08 Jim Wilson <jimw@sifive.com>
12703
12704 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12705 (riscv_linux_fregset): New.
12706 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12707
12708 2019-02-07 Tom Tromey <tom@tromey.com>
12709
12710 * thread.c (thread_cancel_execution_command): Update.
12711 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12712 methods.
12713 (struct thread_fsm_ops): Remove.
12714 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12715 (thread_fsm_should_stop, thread_fsm_return_value)
12716 (thread_fsm_set_finished, thread_fsm_finished_p)
12717 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12718 Don't declare.
12719 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12720 * infrun.c (clear_proceed_status_thread)
12721 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12722 (print_stop_event): Update.
12723 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12724 Add constructor.
12725 (step_command_fsm_ops): Remove.
12726 (new_step_command_fsm): Remove.
12727 (step_1): Update.
12728 (step_command_fsm::should_stop): Rename from
12729 step_command_fsm_should_stop.
12730 (step_command_fsm::clean_up): Rename from
12731 step_command_fsm_clean_up.
12732 (step_command_fsm::do_async_reply_reason): Rename from
12733 step_command_fsm_async_reply_reason.
12734 (struct until_next_fsm): Inherit from thread_fsm. Add
12735 constructor.
12736 (until_next_fsm_ops): Remove.
12737 (new_until_next_fsm): Remove.
12738 (until_next_fsm::should_stop): Rename from
12739 until_next_fsm_should_stop.
12740 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12741 (until_next_fsm::do_async_reply_reason): Rename from
12742 until_next_fsm_async_reply_reason.
12743 (struct finish_command_fsm): Inherit from thread_fsm. Add
12744 constructor. Change type of breakpoint.
12745 (finish_command_fsm_ops): Remove.
12746 (new_finish_command_fsm): Remove.
12747 (finish_command_fsm::should_stop): Rename from
12748 finish_command_fsm_should_stop.
12749 (finish_command_fsm::clean_up): Rename from
12750 finish_command_fsm_clean_up.
12751 (finish_command_fsm::return_value): Rename from
12752 finish_command_fsm_return_value.
12753 (finish_command_fsm::do_async_reply_reason): Rename from
12754 finish_command_fsm_async_reply_reason.
12755 (finish_command): Update.
12756 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12757 Add constructor.
12758 (call_thread_fsm_ops): Remove.
12759 (call_thread_fsm::call_thread_fsm): Rename from
12760 new_call_thread_fsm.
12761 (call_thread_fsm::should_stop): Rename from
12762 call_thread_fsm_should_stop.
12763 (call_thread_fsm::should_notify_stop): Rename from
12764 call_thread_fsm_should_notify_stop.
12765 (run_inferior_call, call_function_by_hand_dummy): Update.
12766 * cli/cli-interp.c (should_print_stop_to_console): Update.
12767 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12768 Add constructor. Change type of location_breakpoint,
12769 caller_breakpoint.
12770 (until_break_fsm_ops): Remove.
12771 (new_until_break_fsm): Remove.
12772 (until_break_fsm::should_stop): Rename from
12773 until_break_fsm_should_stop.
12774 (until_break_fsm::clean_up): Rename from
12775 until_break_fsm_clean_up.
12776 (until_break_fsm::do_async_reply_reason): Rename from
12777 until_break_fsm_async_reply_reason.
12778 (until_break_command): Update.
12779 * thread-fsm.c: Remove.
12780 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12781
12782 2019-02-07 Tom Tromey <tom@tromey.com>
12783
12784 * yy-remap.h: Add include guard.
12785 * xtensa-tdep.h: Add include guard.
12786 * xcoffread.h: Rename include guard.
12787 * varobj-iter.h: Add include guard.
12788 * tui/tui.h: Rename include guard.
12789 * tui/tui-winsource.h: Rename include guard.
12790 * tui/tui-wingeneral.h: Rename include guard.
12791 * tui/tui-windata.h: Rename include guard.
12792 * tui/tui-win.h: Rename include guard.
12793 * tui/tui-stack.h: Rename include guard.
12794 * tui/tui-source.h: Rename include guard.
12795 * tui/tui-regs.h: Rename include guard.
12796 * tui/tui-out.h: Rename include guard.
12797 * tui/tui-layout.h: Rename include guard.
12798 * tui/tui-io.h: Rename include guard.
12799 * tui/tui-hooks.h: Rename include guard.
12800 * tui/tui-file.h: Rename include guard.
12801 * tui/tui-disasm.h: Rename include guard.
12802 * tui/tui-data.h: Rename include guard.
12803 * tui/tui-command.h: Rename include guard.
12804 * tic6x-tdep.h: Add include guard.
12805 * target/waitstatus.h: Rename include guard.
12806 * target/wait.h: Rename include guard.
12807 * target/target.h: Rename include guard.
12808 * target/resume.h: Rename include guard.
12809 * target-float.h: Rename include guard.
12810 * stabsread.h: Add include guard.
12811 * rs6000-tdep.h: Add include guard.
12812 * riscv-fbsd-tdep.h: Add include guard.
12813 * regformats/regdef.h: Rename include guard.
12814 * record.h: Rename include guard.
12815 * python/python.h: Rename include guard.
12816 * python/python-internal.h: Rename include guard.
12817 * python/py-stopevent.h: Rename include guard.
12818 * python/py-ref.h: Rename include guard.
12819 * python/py-record.h: Rename include guard.
12820 * python/py-record-full.h: Rename include guard.
12821 * python/py-record-btrace.h: Rename include guard.
12822 * python/py-instruction.h: Rename include guard.
12823 * python/py-events.h: Rename include guard.
12824 * python/py-event.h: Rename include guard.
12825 * procfs.h: Add include guard.
12826 * proc-utils.h: Add include guard.
12827 * p-lang.h: Add include guard.
12828 * or1k-tdep.h: Rename include guard.
12829 * observable.h: Rename include guard.
12830 * nto-tdep.h: Rename include guard.
12831 * nat/x86-linux.h: Rename include guard.
12832 * nat/x86-linux-dregs.h: Rename include guard.
12833 * nat/x86-gcc-cpuid.h: Add include guard.
12834 * nat/x86-dregs.h: Rename include guard.
12835 * nat/x86-cpuid.h: Rename include guard.
12836 * nat/ppc-linux.h: Rename include guard.
12837 * nat/mips-linux-watch.h: Rename include guard.
12838 * nat/linux-waitpid.h: Rename include guard.
12839 * nat/linux-ptrace.h: Rename include guard.
12840 * nat/linux-procfs.h: Rename include guard.
12841 * nat/linux-osdata.h: Rename include guard.
12842 * nat/linux-nat.h: Rename include guard.
12843 * nat/linux-namespaces.h: Rename include guard.
12844 * nat/linux-btrace.h: Rename include guard.
12845 * nat/glibc_thread_db.h: Rename include guard.
12846 * nat/gdb_thread_db.h: Rename include guard.
12847 * nat/gdb_ptrace.h: Rename include guard.
12848 * nat/fork-inferior.h: Rename include guard.
12849 * nat/amd64-linux-siginfo.h: Rename include guard.
12850 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12851 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12852 * nat/aarch64-linux.h: Rename include guard.
12853 * nat/aarch64-linux-hw-point.h: Rename include guard.
12854 * mn10300-tdep.h: Add include guard.
12855 * mips-linux-tdep.h: Add include guard.
12856 * mi/mi-parse.h: Rename include guard.
12857 * mi/mi-out.h: Rename include guard.
12858 * mi/mi-main.h: Rename include guard.
12859 * mi/mi-interp.h: Rename include guard.
12860 * mi/mi-getopt.h: Rename include guard.
12861 * mi/mi-console.h: Rename include guard.
12862 * mi/mi-common.h: Rename include guard.
12863 * mi/mi-cmds.h: Rename include guard.
12864 * mi/mi-cmd-break.h: Rename include guard.
12865 * m2-lang.h: Add include guard.
12866 * location.h: Rename include guard.
12867 * linux-record.h: Rename include guard.
12868 * linux-nat.h: Add include guard.
12869 * linux-fork.h: Add include guard.
12870 * i386-darwin-tdep.h: Rename include guard.
12871 * hppa-linux-offsets.h: Add include guard.
12872 * guile/guile.h: Rename include guard.
12873 * guile/guile-internal.h: Rename include guard.
12874 * gnu-nat.h: Rename include guard.
12875 * gdb-stabs.h: Rename include guard.
12876 * frv-tdep.h: Add include guard.
12877 * f-lang.h: Add include guard.
12878 * event-loop.h: Add include guard.
12879 * darwin-nat.h: Rename include guard.
12880 * cp-abi.h: Rename include guard.
12881 * config/sparc/nm-sol2.h: Rename include guard.
12882 * config/nm-nto.h: Rename include guard.
12883 * config/nm-linux.h: Add include guard.
12884 * config/i386/nm-i386gnu.h: Rename include guard.
12885 * config/djgpp/nl_types.h: Rename include guard.
12886 * config/djgpp/langinfo.h: Rename include guard.
12887 * compile/gcc-cp-plugin.h: Add include guard.
12888 * compile/gcc-c-plugin.h: Add include guard.
12889 * compile/compile.h: Rename include guard.
12890 * compile/compile-object-run.h: Rename include guard.
12891 * compile/compile-object-load.h: Rename include guard.
12892 * compile/compile-internal.h: Rename include guard.
12893 * compile/compile-cplus.h: Rename include guard.
12894 * compile/compile-c.h: Rename include guard.
12895 * common/xml-utils.h: Rename include guard.
12896 * common/x86-xstate.h: Rename include guard.
12897 * common/version.h: Rename include guard.
12898 * common/vec.h: Rename include guard.
12899 * common/tdesc.h: Rename include guard.
12900 * common/selftest.h: Rename include guard.
12901 * common/scoped_restore.h: Rename include guard.
12902 * common/scoped_mmap.h: Rename include guard.
12903 * common/scoped_fd.h: Rename include guard.
12904 * common/safe-iterator.h: Rename include guard.
12905 * common/run-time-clock.h: Rename include guard.
12906 * common/refcounted-object.h: Rename include guard.
12907 * common/queue.h: Rename include guard.
12908 * common/ptid.h: Rename include guard.
12909 * common/print-utils.h: Rename include guard.
12910 * common/preprocessor.h: Rename include guard.
12911 * common/pathstuff.h: Rename include guard.
12912 * common/observable.h: Rename include guard.
12913 * common/netstuff.h: Rename include guard.
12914 * common/job-control.h: Rename include guard.
12915 * common/host-defs.h: Rename include guard.
12916 * common/gdb_wait.h: Rename include guard.
12917 * common/gdb_vecs.h: Rename include guard.
12918 * common/gdb_unlinker.h: Rename include guard.
12919 * common/gdb_unique_ptr.h: Rename include guard.
12920 * common/gdb_tilde_expand.h: Rename include guard.
12921 * common/gdb_sys_time.h: Rename include guard.
12922 * common/gdb_string_view.h: Rename include guard.
12923 * common/gdb_splay_tree.h: Rename include guard.
12924 * common/gdb_setjmp.h: Rename include guard.
12925 * common/gdb_ref_ptr.h: Rename include guard.
12926 * common/gdb_optional.h: Rename include guard.
12927 * common/gdb_locale.h: Rename include guard.
12928 * common/gdb_assert.h: Rename include guard.
12929 * common/filtered-iterator.h: Rename include guard.
12930 * common/filestuff.h: Rename include guard.
12931 * common/fileio.h: Rename include guard.
12932 * common/environ.h: Rename include guard.
12933 * common/common-utils.h: Rename include guard.
12934 * common/common-types.h: Rename include guard.
12935 * common/common-regcache.h: Rename include guard.
12936 * common/common-inferior.h: Rename include guard.
12937 * common/common-gdbthread.h: Rename include guard.
12938 * common/common-exceptions.h: Rename include guard.
12939 * common/common-defs.h: Rename include guard.
12940 * common/common-debug.h: Rename include guard.
12941 * common/cleanups.h: Rename include guard.
12942 * common/buffer.h: Rename include guard.
12943 * common/btrace-common.h: Rename include guard.
12944 * common/break-common.h: Rename include guard.
12945 * cli/cli-utils.h: Rename include guard.
12946 * cli/cli-style.h: Rename include guard.
12947 * cli/cli-setshow.h: Rename include guard.
12948 * cli/cli-script.h: Rename include guard.
12949 * cli/cli-interp.h: Rename include guard.
12950 * cli/cli-decode.h: Rename include guard.
12951 * cli/cli-cmds.h: Rename include guard.
12952 * charset-list.h: Add include guard.
12953 * buildsym-legacy.h: Rename include guard.
12954 * bfin-tdep.h: Add include guard.
12955 * ax.h: Rename include guard.
12956 * arm-linux-tdep.h: Add include guard.
12957 * arm-fbsd-tdep.h: Add include guard.
12958 * arch/xtensa.h: Rename include guard.
12959 * arch/tic6x.h: Add include guard.
12960 * arch/i386.h: Add include guard.
12961 * arch/arm.h: Rename include guard.
12962 * arch/arm-linux.h: Rename include guard.
12963 * arch/arm-get-next-pcs.h: Rename include guard.
12964 * arch/amd64.h: Add include guard.
12965 * arch/aarch64-insn.h: Rename include guard.
12966 * arch-utils.h: Rename include guard.
12967 * annotate.h: Add include guard.
12968 * amd64-darwin-tdep.h: Rename include guard.
12969 * aarch64-linux-tdep.h: Add include guard.
12970 * aarch64-fbsd-tdep.h: Add include guard.
12971 * aarch32-linux-nat.h: Add include guard.
12972
12973 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12974
12975 * macrotab.c (macro_define_internal): New function that
12976 factorizes macro_define_object_internal and macro_define_function
12977 code.
12978 (macro_define_object_internal): Use macro_define_internal.
12979 (macro_define_function): Likewise.
12980
12981 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12982
12983 * macrocmd.c (extract_identifier): Return
12984 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12985 callers.
12986
12987 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12988
12989 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12990
12991 2019-02-05 Tom Tromey <tom@tromey.com>
12992
12993 * target.c (target_stack::unpush): Move assertion earlier.
12994
12995 2019-01-30 Tom Tromey <tom@tromey.com>
12996
12997 PR python/23615:
12998 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12999 (gdbpy_parse_and_eval): Likewise.
13000 * python/python-internal.h (gdbpy_allow_threads): New class.
13001
13002 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13003
13004 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13005 (aarch64_fbsd_fpregmap): Move earlier.
13006 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13007 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13008 instead of individual calls to trad_frame_set_reg_addr.
13009 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13010 earlier.
13011 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13012 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13013 instead of individual calls to trad_frame_set_reg_addr.
13014
13015 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13016
13017 * CONTRIBUTE: Replace contribution list with wiki link.
13018
13019 2019-01-25 Tom Tromey <tom@tromey.com>
13020
13021 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13022
13023 2019-01-25 Tom Tromey <tom@tromey.com>
13024
13025 * xtensa-linux-nat.c: Fix common/ includes.
13026 * xml-support.h: Fix common/ includes.
13027 * xml-support.c: Fix common/ includes.
13028 * x86-linux-nat.c: Fix common/ includes.
13029 * windows-nat.c: Fix common/ includes.
13030 * varobj.h: Fix common/ includes.
13031 * varobj.c: Fix common/ includes.
13032 * value.c: Fix common/ includes.
13033 * valops.c: Fix common/ includes.
13034 * utils.c: Fix common/ includes.
13035 * unittests/xml-utils-selftests.c: Fix common/ includes.
13036 * unittests/utils-selftests.c: Fix common/ includes.
13037 * unittests/unpack-selftests.c: Fix common/ includes.
13038 * unittests/tracepoint-selftests.c: Fix common/ includes.
13039 * unittests/style-selftests.c: Fix common/ includes.
13040 * unittests/string_view-selftests.c: Fix common/ includes.
13041 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13042 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13043 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13044 * unittests/rsp-low-selftests.c: Fix common/ includes.
13045 * unittests/parse-connection-spec-selftests.c: Fix common/
13046 includes.
13047 * unittests/optional-selftests.c: Fix common/ includes.
13048 * unittests/offset-type-selftests.c: Fix common/ includes.
13049 * unittests/observable-selftests.c: Fix common/ includes.
13050 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13051 * unittests/memrange-selftests.c: Fix common/ includes.
13052 * unittests/memory-map-selftests.c: Fix common/ includes.
13053 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13054 * unittests/function-view-selftests.c: Fix common/ includes.
13055 * unittests/environ-selftests.c: Fix common/ includes.
13056 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13057 * unittests/common-utils-selftests.c: Fix common/ includes.
13058 * unittests/cli-utils-selftests.c: Fix common/ includes.
13059 * unittests/array-view-selftests.c: Fix common/ includes.
13060 * ui-file.c: Fix common/ includes.
13061 * tui/tui-io.c: Fix common/ includes.
13062 * tracepoint.h: Fix common/ includes.
13063 * tracepoint.c: Fix common/ includes.
13064 * tracefile-tfile.c: Fix common/ includes.
13065 * top.h: Fix common/ includes.
13066 * top.c: Fix common/ includes.
13067 * thread.c: Fix common/ includes.
13068 * target/waitstatus.h: Fix common/ includes.
13069 * target/waitstatus.c: Fix common/ includes.
13070 * target.h: Fix common/ includes.
13071 * target.c: Fix common/ includes.
13072 * target-memory.c: Fix common/ includes.
13073 * target-descriptions.c: Fix common/ includes.
13074 * symtab.h: Fix common/ includes.
13075 * symfile.c: Fix common/ includes.
13076 * stap-probe.c: Fix common/ includes.
13077 * spu-linux-nat.c: Fix common/ includes.
13078 * sparc-nat.c: Fix common/ includes.
13079 * source.c: Fix common/ includes.
13080 * solib.c: Fix common/ includes.
13081 * solib-target.c: Fix common/ includes.
13082 * ser-unix.c: Fix common/ includes.
13083 * ser-tcp.c: Fix common/ includes.
13084 * ser-pipe.c: Fix common/ includes.
13085 * ser-base.c: Fix common/ includes.
13086 * selftest-arch.c: Fix common/ includes.
13087 * s12z-tdep.c: Fix common/ includes.
13088 * rust-exp.y: Fix common/ includes.
13089 * rs6000-aix-tdep.c: Fix common/ includes.
13090 * riscv-tdep.c: Fix common/ includes.
13091 * remote.c: Fix common/ includes.
13092 * remote-notif.h: Fix common/ includes.
13093 * remote-fileio.h: Fix common/ includes.
13094 * remote-fileio.c: Fix common/ includes.
13095 * regcache.h: Fix common/ includes.
13096 * regcache.c: Fix common/ includes.
13097 * record-btrace.c: Fix common/ includes.
13098 * python/python.c: Fix common/ includes.
13099 * python/py-type.c: Fix common/ includes.
13100 * python/py-inferior.c: Fix common/ includes.
13101 * progspace.h: Fix common/ includes.
13102 * producer.c: Fix common/ includes.
13103 * procfs.c: Fix common/ includes.
13104 * proc-api.c: Fix common/ includes.
13105 * printcmd.c: Fix common/ includes.
13106 * ppc-linux-nat.c: Fix common/ includes.
13107 * parser-defs.h: Fix common/ includes.
13108 * osdata.c: Fix common/ includes.
13109 * obsd-nat.c: Fix common/ includes.
13110 * nat/x86-linux.c: Fix common/ includes.
13111 * nat/x86-linux-dregs.c: Fix common/ includes.
13112 * nat/x86-dregs.h: Fix common/ includes.
13113 * nat/x86-dregs.c: Fix common/ includes.
13114 * nat/ppc-linux.c: Fix common/ includes.
13115 * nat/mips-linux-watch.h: Fix common/ includes.
13116 * nat/mips-linux-watch.c: Fix common/ includes.
13117 * nat/linux-waitpid.c: Fix common/ includes.
13118 * nat/linux-ptrace.h: Fix common/ includes.
13119 * nat/linux-ptrace.c: Fix common/ includes.
13120 * nat/linux-procfs.c: Fix common/ includes.
13121 * nat/linux-personality.c: Fix common/ includes.
13122 * nat/linux-osdata.c: Fix common/ includes.
13123 * nat/linux-namespaces.c: Fix common/ includes.
13124 * nat/linux-btrace.h: Fix common/ includes.
13125 * nat/linux-btrace.c: Fix common/ includes.
13126 * nat/fork-inferior.c: Fix common/ includes.
13127 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13128 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13129 * nat/aarch64-linux.c: Fix common/ includes.
13130 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13131 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13132 * namespace.h: Fix common/ includes.
13133 * mips-linux-tdep.c: Fix common/ includes.
13134 * minsyms.c: Fix common/ includes.
13135 * mi/mi-parse.h: Fix common/ includes.
13136 * mi/mi-main.c: Fix common/ includes.
13137 * mi/mi-cmd-env.c: Fix common/ includes.
13138 * memrange.h: Fix common/ includes.
13139 * memattr.c: Fix common/ includes.
13140 * maint.h: Fix common/ includes.
13141 * maint.c: Fix common/ includes.
13142 * main.c: Fix common/ includes.
13143 * machoread.c: Fix common/ includes.
13144 * location.c: Fix common/ includes.
13145 * linux-thread-db.c: Fix common/ includes.
13146 * linux-nat.c: Fix common/ includes.
13147 * linux-fork.c: Fix common/ includes.
13148 * inline-frame.c: Fix common/ includes.
13149 * infrun.c: Fix common/ includes.
13150 * inflow.c: Fix common/ includes.
13151 * inferior.h: Fix common/ includes.
13152 * inferior.c: Fix common/ includes.
13153 * infcmd.c: Fix common/ includes.
13154 * inf-ptrace.c: Fix common/ includes.
13155 * inf-child.c: Fix common/ includes.
13156 * ia64-linux-nat.c: Fix common/ includes.
13157 * i387-tdep.c: Fix common/ includes.
13158 * i386-tdep.c: Fix common/ includes.
13159 * i386-linux-tdep.c: Fix common/ includes.
13160 * i386-linux-nat.c: Fix common/ includes.
13161 * i386-go32-tdep.c: Fix common/ includes.
13162 * i386-fbsd-tdep.c: Fix common/ includes.
13163 * i386-fbsd-nat.c: Fix common/ includes.
13164 * guile/scm-type.c: Fix common/ includes.
13165 * guile/guile.c: Fix common/ includes.
13166 * go32-nat.c: Fix common/ includes.
13167 * gnu-nat.c: Fix common/ includes.
13168 * gdbthread.h: Fix common/ includes.
13169 * gdbarch-selftests.c: Fix common/ includes.
13170 * gdb_usleep.c: Fix common/ includes.
13171 * gdb_select.h: Fix common/ includes.
13172 * gdb_bfd.c: Fix common/ includes.
13173 * gcore.c: Fix common/ includes.
13174 * fork-child.c: Fix common/ includes.
13175 * findvar.c: Fix common/ includes.
13176 * fbsd-nat.c: Fix common/ includes.
13177 * event-top.c: Fix common/ includes.
13178 * event-loop.c: Fix common/ includes.
13179 * dwarf2read.c: Fix common/ includes.
13180 * dwarf2loc.c: Fix common/ includes.
13181 * dwarf2-frame.c: Fix common/ includes.
13182 * dwarf-index-cache.c: Fix common/ includes.
13183 * dtrace-probe.c: Fix common/ includes.
13184 * disasm-selftests.c: Fix common/ includes.
13185 * defs.h: Fix common/ includes.
13186 * csky-tdep.c: Fix common/ includes.
13187 * cp-valprint.c: Fix common/ includes.
13188 * cp-support.h: Fix common/ includes.
13189 * cp-support.c: Fix common/ includes.
13190 * corelow.c: Fix common/ includes.
13191 * completer.h: Fix common/ includes.
13192 * completer.c: Fix common/ includes.
13193 * compile/compile.c: Fix common/ includes.
13194 * compile/compile-loc2c.c: Fix common/ includes.
13195 * compile/compile-cplus-types.c: Fix common/ includes.
13196 * compile/compile-cplus-symbols.c: Fix common/ includes.
13197 * command.h: Fix common/ includes.
13198 * cli/cli-dump.c: Fix common/ includes.
13199 * cli/cli-cmds.c: Fix common/ includes.
13200 * charset.c: Fix common/ includes.
13201 * build-id.c: Fix common/ includes.
13202 * btrace.h: Fix common/ includes.
13203 * btrace.c: Fix common/ includes.
13204 * breakpoint.h: Fix common/ includes.
13205 * breakpoint.c: Fix common/ includes.
13206 * ax.h:
13207 (enum agent_op): Fix common/ includes.
13208 * ax-general.c (struct aop_map): Fix common/ includes.
13209 * ax-gdb.c: Fix common/ includes.
13210 * auxv.c: Fix common/ includes.
13211 * auto-load.c: Fix common/ includes.
13212 * arm-tdep.c: Fix common/ includes.
13213 * arch/riscv.c: Fix common/ includes.
13214 * arch/ppc-linux-common.c: Fix common/ includes.
13215 * arch/i386.c: Fix common/ includes.
13216 * arch/arm.c: Fix common/ includes.
13217 * arch/arm-linux.c: Fix common/ includes.
13218 * arch/arm-get-next-pcs.c: Fix common/ includes.
13219 * arch/amd64.c: Fix common/ includes.
13220 * arch/aarch64.c: Fix common/ includes.
13221 * arch/aarch64-insn.c: Fix common/ includes.
13222 * arch-utils.c: Fix common/ includes.
13223 * amd64-windows-tdep.c: Fix common/ includes.
13224 * amd64-tdep.c: Fix common/ includes.
13225 * amd64-sol2-tdep.c: Fix common/ includes.
13226 * amd64-obsd-tdep.c: Fix common/ includes.
13227 * amd64-nbsd-tdep.c: Fix common/ includes.
13228 * amd64-linux-tdep.c: Fix common/ includes.
13229 * amd64-linux-nat.c: Fix common/ includes.
13230 * amd64-fbsd-tdep.c: Fix common/ includes.
13231 * amd64-fbsd-nat.c: Fix common/ includes.
13232 * amd64-dicos-tdep.c: Fix common/ includes.
13233 * amd64-darwin-tdep.c: Fix common/ includes.
13234 * agent.c: Fix common/ includes.
13235 * ada-lang.h: Fix common/ includes.
13236 * ada-lang.c: Fix common/ includes.
13237 * aarch64-tdep.c: Fix common/ includes.
13238
13239 2019-01-25 Tom Tromey <tom@tromey.com>
13240
13241 * common/create-version.sh: Use common/version.h.
13242
13243 2019-01-24 Pedro Alves <palves@redhat.com>
13244
13245 * infrun.c (signal_stop, signal_print, signal_program)
13246 (signal_catch, signal_pass): Now arrays instead of pointers.
13247 (update_signals_program_target, do_target_resume)
13248 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13249 * linux-nat.c (linux_nat_target::pass_signals)
13250 (linux_nat_target::create_inferior, linux_nat_target::attach):
13251 Adjust.
13252 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13253 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13254 * procfs.c (procfs_target::pass_signals): Adjust.
13255 * record-full.c (record_full_target::resume): Adjust.
13256 * remote.c (remote_target::pass_signals)
13257 (remote_target::program_signals): Adjust.
13258 * target-debug.h (target_debug_print_signals): Now takes a
13259 gdb::array_view as parameter. Adjust.
13260 * target.h (target_ops) <pass_signals, program_signals>: Replace
13261 pointer and length parameters with gdb::array_view.
13262 (target_pass_signals, target_program_signals): Likewise.
13263 * target-delegates.c: Regenerate.
13264
13265 2019-01-24 Pedro Alves <palves@redhat.com>
13266
13267 * common/forward-scope-exit.h
13268 (forward_scope_exit::forward_scope_exit): Pass arguments to
13269 m_bind_function directly, instead of creating a std::bind and
13270 copying that.
13271
13272 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13273
13274 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13275 for static members.
13276 (pass_in_v_vfp_candidate): Likewise.
13277
13278 2019-01-23 Tom Tromey <tom@tromey.com>
13279 Pedro Alves <palves@redhat.com>
13280
13281 * regcache.c (class regcache_invalidator): Remove.
13282 (regcache::raw_write): Use make_scope_exit.
13283
13284 2019-01-23 Tom Tromey <tom@tromey.com>
13285
13286 * ui-out.h (class ui_out_emit_type): Update comment.
13287
13288 2019-01-23 Tom Tromey <tom@tromey.com>
13289
13290 * infrun.c (fetch_inferior_event): Update comment.
13291
13292 2019-01-23 Tom Tromey <tom@tromey.com>
13293 Pedro Alves <palves@redhat.com>
13294
13295 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13296 parameter.
13297 (fetch_inferior_event): Use SCOPE_EXIT.
13298
13299
13300 2019-01-23 Tom Tromey <tom@tromey.com>
13301 Pedro Alves <palves@redhat.com>
13302
13303 * infrun.c (disable_thread_events): Delete.
13304 (stop_all_threads): Use SCOPE_EXIT.
13305
13306 2019-01-23 Tom Tromey <tom@tromey.com>
13307 Pedro Alves <palves@redhat.com>
13308
13309 * symfile.c: Include forward-scope-exit.h.
13310 (clear_symtab_users_cleanup): Replace forward declaration with
13311 a FORWARD_SCOPE_EXIT.
13312 (syms_from_objfile_1): Use the forward_scope_exit and
13313 gdb::optional instead of cleanup_function.
13314 (reread_symbols): Use the forward_scope_exit instead of
13315 cleanup_function.
13316 (clear_symtab_users_cleanup): Remove function.
13317
13318 2019-01-23 Tom Tromey <tom@tromey.com>
13319 Pedro Alves <palves@redhat.com>
13320
13321 * linux-nat.c: Include scope-exit.h.
13322 (cleanup_target_stop): Remove.
13323 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13324 SCOPE_EXIT.
13325
13326 2019-01-23 Tom Tromey <tom@tromey.com>
13327 Pedro Alves <palves@redhat.com>
13328
13329 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13330 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13331
13332 2019-01-23 Tom Tromey <tom@tromey.com>
13333 Andrew Burgess <andrew.burgess@embecosm.com>
13334 Pedro Alves <palves@redhat.com>
13335
13336 * infrun.c (fetch_inferior_event): Use scope_exit.
13337 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13338 * top.c (execute_command): Use scope_exit.
13339 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13340 * utils.c (do_bpstat_clear_actions_cleanup)
13341 (make_bpstat_clear_actions_cleanup): Remove.
13342
13343 2019-01-23 Tom Tromey <tom@tromey.com>
13344 Pedro Alves <palves@redhat.com>
13345
13346 * infrun.c: Include "common/scope-exit.h"
13347 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13348 (wait_for_inferior): Use SCOPE_EXIT.
13349 (fetch_inferior_event): Use scope_exit.
13350
13351 2019-01-23 Tom Tromey <tom@tromey.com>
13352 Pedro Alves <palves@redhat.com>
13353
13354 * breakpoint.c (create_breakpoint): Remove cleanup.
13355
13356 2019-01-23 Tom Tromey <tom@tromey.com>
13357 Andrew Burgess <andrew.burgess@embecosm.com>
13358 Pedro Alves <palves@redhat.com>
13359
13360 2019-01-23 Pedro Alves <palves@redhat.com>
13361
13362 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13363
13364 2019-01-23 Pedro Alves <palves@redhat.com>
13365 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * gdbthread.h: Include "common/forward-scope-exit.h".
13368 (scoped_finish_thread_state): Redefine custom class in terms of
13369 forward_scope_exit.
13370
13371 2019-01-23 Pedro Alves <palves@redhat.com>
13372 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * common/forward-scope-exit.h: New file.
13375
13376 2019-01-23 Pedro Alves <palves@redhat.com>
13377 Andrew Burgess <andrew.burgess@embecosm.com>
13378 Tom Tromey <tom@tromey.com>
13379
13380 * common/scope-exit.h: New file.
13381
13382 2019-01-23 Pedro Alves <palves@redhat.com>
13383
13384 * common/preprocessor.h (ESC): Rename to ...
13385 (ESC_PARENS): ... this.
13386 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13387 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13388
13389 2019-01-23 Tom Tromey <tom@tromey.com>
13390
13391 * language.h (class scoped_switch_to_sym_language_if_auto):
13392 Initialize m_lang in both cases.
13393
13394 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13395
13396 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13397 with XCNEW.
13398
13399 2019-01-22 Tom Tromey <tom@tromey.com>
13400
13401 * corelow.c: Do not include sys/file.h.
13402
13403 2019-01-22 Tom Tromey <tom@tromey.com>
13404
13405 * tui/tui-wingeneral.h: Include gdb_curses.h.
13406
13407 2019-01-22 Tom Tromey <tom@tromey.com>
13408
13409 * source-cache.h (class source_cache) <get_source_lines,
13410 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13411
13412 2019-01-22 Tom Tromey <tom@tromey.com>
13413
13414 * remote-fileio.h (struct remote_target): Declare.
13415
13416 2019-01-22 Tom Tromey <tom@tromey.com>
13417
13418 * python/py-arch.c: Do not include py-ref.h.
13419 * python/py-bpevent.c: Do not include py-ref.h.
13420 * python/py-cmd.c: Do not include py-ref.h.
13421 * python/py-continueevent.c: Do not include py-ref.h.
13422 * python/py-event.h: Do not include py-ref.h.
13423 * python/py-evtregistry.c: Do not include py-ref.h.
13424 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13425 * python/py-frame.c: Do not include py-ref.h.
13426 * python/py-framefilter.c: Do not include py-ref.h.
13427 * python/py-function.c: Do not include py-ref.h.
13428 * python/py-infevents.c: Do not include py-ref.h.
13429 * python/py-linetable.c: Do not include py-ref.h.
13430 * python/py-objfile.c: Do not include py-ref.h.
13431 * python/py-param.c: Do not include py-ref.h.
13432 * python/py-prettyprint.c: Do not include py-ref.h.
13433 * python/py-progspace.c: Do not include py-ref.h.
13434 * python/py-symbol.c: Do not include py-ref.h.
13435 * python/py-symtab.c: Do not include py-ref.h.
13436 * python/py-type.c: Do not include py-ref.h.
13437 * python/py-unwind.c: Do not include py-ref.h.
13438 * python/py-utils.c: Do not include py-ref.h.
13439 * python/py-value.c: Do not include py-ref.h.
13440 * python/py-varobj.c: Do not include py-ref.h.
13441 * python/py-xmethods.c: Do not include py-ref.h.
13442 * python/python.c: Do not include py-ref.h.
13443 * varobj.c: Do not include py-ref.h.
13444
13445 2019-01-22 Tom Tromey <tom@tromey.com>
13446
13447 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13448 keyword for bcache.
13449
13450 2019-01-22 Tom Tromey <tom@tromey.com>
13451
13452 * compile/compile-cplus-types.c: Remove a comment by #include.
13453
13454 2019-01-22 Tom Tromey <tom@tromey.com>
13455
13456 * compile/gcc-c-plugin.h: Include compile-internal.h.
13457
13458 2019-01-22 Tom Tromey <tom@tromey.com>
13459
13460 * stabsread.c (EXTERN): Do not define.
13461 (symnum, next_symbol_text_func, processing_gcc_compilation)
13462 (within_function, global_sym_chain, global_stabs)
13463 (previous_stab_code, this_object_header_files)
13464 (n_this_object_header_files)
13465 (n_allocated_this_object_header_files): Define.
13466 * stabsread.h (EXTERN): Never define. Use "extern".
13467
13468 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13469
13470 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13471 history_value.
13472
13473 2019-01-21 Tom Tromey <tom@tromey.com>
13474
13475 * ui-out.c: Fix includes.
13476 * tui/tui-source.c: Fix includes.
13477 * target.c: Fix includes.
13478 * remote.c: Fix includes.
13479 * regcache.c: Fix includes.
13480 * python/py-block.c: Fix includes.
13481 * printcmd.c: Fix includes.
13482 * or1k-tdep.c: Fix includes.
13483 * mi/mi-main.c: Fix includes.
13484 * m32r-tdep.c: Fix includes.
13485 * csky-tdep.c: Fix includes.
13486 * compile/compile-cplus-types.c: Fix includes.
13487 * cli/cli-interp.c: Fix includes.
13488
13489 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13490
13491 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13492 for padding.
13493
13494 2019-01-16 Tom Tromey <tom@tromey.com>
13495
13496 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13497 earlier.
13498 (struct objfile) <msymbols_range>: Move from top level.
13499 <msymbols>: New method.
13500 (class objfile_msymbols): Remove.
13501 * symtab.c (default_collect_symbol_completion_matches_break_on):
13502 Update.
13503 * symmisc.c (dump_msymbols): Update.
13504 * stabsread.c (scan_file_globals): Update.
13505 * objc-lang.c (info_selectors_command, info_classes_command)
13506 (find_methods): Update.
13507 * minsyms.c (find_solib_trampoline_target): Update.
13508 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13509 * coffread.c (coff_symfile_read): Update.
13510 * ada-lang.c (ada_lookup_simple_minsym)
13511 (ada_collect_symbol_completion_matches): Update.
13512
13513 2019-01-16 Tom Tromey <tom@tromey.com>
13514
13515 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13516 type. Remove no-argument constructor.
13517 <iterator::operator++>: Simplify.
13518 <begin>: Update.
13519 <end>: Use minimal_symbol_count.
13520
13521 2019-01-16 Tom Tromey <tom@tromey.com>
13522
13523 * objfiles.h (struct objfile) <psymtabs>: New method.
13524 (class objfile_psymtabs): Remove.
13525 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13526 typedef.
13527 <range>: New method.
13528 (require_partial_symbols): Change return type.
13529 * psymtab.c (require_partial_symbols)
13530 (psym_expand_symtabs_matching): Update.
13531 * mdebugread.c (parse_partial_symbols): Update.
13532 * dbxread.c (dbx_end_psymtab): Update.
13533
13534 2019-01-15 Tom Tromey <tom@tromey.com>
13535
13536 * symtab.c (lookup_objfile_from_block)
13537 (lookup_symbol_in_objfile_symtabs)
13538 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13539 (find_line_symtab, info_sources_command)
13540 (default_collect_symbol_completion_matches_break_on)
13541 (make_source_files_completion_list): Update.
13542 * symmisc.c (print_objfile_statistics, dump_objfile)
13543 (maintenance_print_symbols, maintenance_info_symtabs)
13544 (maintenance_check_symtabs, maintenance_info_line_tables):
13545 Update.
13546 * source.c (select_source_symtab)
13547 (forget_cached_source_info_for_objfile): Update.
13548 * objfiles.h (class objfile_compunits): Remove.
13549 (struct objfile) <compunits_range>: New typedef.
13550 (compunits): New method.
13551 * objfiles.c (objfile_relocate1): Update.
13552 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13553 * maint.c (count_symtabs_and_blocks): Update.
13554 * linespec.c (iterate_over_all_matching_symtabs): Update.
13555 * cp-support.c (add_symbol_overload_list_qualified): Update.
13556 * coffread.c (coff_symtab_read): Update.
13557 * ada-lang.c (add_nonlocal_symbols)
13558 (ada_collect_symbol_completion_matches)
13559 (ada_add_global_exceptions): Update.
13560
13561 2019-01-15 Tom Tromey <tom@tromey.com>
13562
13563 * progspace.h (program_space) <objfiles_safe_range>: New
13564 typedef.
13565 <objfiles_safe>: New method.
13566 * objfiles.h (class all_objfiles_safe): Remove.
13567 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13568 * jit.c (jit_inferior_exit_hook): Update.
13569
13570 2019-01-17 Tom Tromey <tom@tromey.com>
13571
13572 * progspace.h (program_space) <objfiles_range>: New typedef.
13573 <objfiles>: New method.
13574 <objfiles_head>: Rename from objfiles.
13575 (object_files): Update.
13576 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13577 * guile/scm-pretty-print.c
13578 (ppscm_find_pretty_printer_from_objfiles): Update.
13579 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13580 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13581 Update.
13582 * python/py-progspace.c (pspy_get_objfiles): Update.
13583 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13584 Update.
13585 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13586 (objfpy_lookup_objfile_by_build_id): Update.
13587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13588 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13589 Update.
13590 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13591 (expand_symtab_containing_pc, lookup_objfile_from_block)
13592 (lookup_static_symbol, basic_lookup_transparent_type)
13593 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13594 (find_line_symtab, info_sources_command)
13595 (default_collect_symbol_completion_matches_break_on)
13596 (make_source_files_completion_list, find_main_name): Update.
13597 * symmisc.c (print_symbol_bcache_statistics)
13598 (print_objfile_statistics, maintenance_print_symbols)
13599 (maintenance_print_msymbols, maintenance_print_objfiles)
13600 (maintenance_info_symtabs, maintenance_check_symtabs)
13601 (maintenance_expand_symtabs, maintenance_info_line_tables):
13602 Update.
13603 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13604 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13605 (map_overlay_command, unmap_overlay_command)
13606 (simple_overlay_update, expand_symtabs_matching)
13607 (map_symbol_filenames): Update.
13608 * symfile-debug.c (set_debug_symfile): Update.
13609 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13610 Update.
13611 * source.c (select_source_symtab, forget_cached_source_info):
13612 Update.
13613 * solib.c (solib_read_symbols): Update.
13614 * solib-spu.c (append_ocl_sos): Update.
13615 * psymtab.c (maintenance_print_psymbols)
13616 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13617 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13618 * printcmd.c (info_symbol_command): Update.
13619 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13620 Update.
13621 * objfiles.h (class all_objfiles): Remove.
13622 * objfiles.c (have_partial_symbols, have_full_symbols)
13623 (have_minimal_symbols, qsort_cmp, update_section_map)
13624 (shared_objfile_contains_address_p)
13625 (default_iterate_over_objfiles_in_search_order): Update.
13626 * objc-lang.c (info_selectors_command, info_classes_command)
13627 (find_methods): Update.
13628 * minsyms.c (find_solib_trampoline_target): Update.
13629 * maint.c (maintenance_info_sections)
13630 (maintenance_translate_address, count_symtabs_and_blocks):
13631 Update.
13632 * main.c (captured_main_1): Update.
13633 * linux-thread-db.c (try_thread_db_load_from_pdir)
13634 (has_libpthread): Update.
13635 * linespec.c (iterate_over_all_matching_symtabs)
13636 (search_minsyms_for_name): Update.
13637 * jit.c (jit_find_objf_with_entry_addr): Update.
13638 * hppa-tdep.c (find_unwind_entry)
13639 (hppa_lookup_stub_minimal_symbol): Update.
13640 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13641 Update.
13642 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13643 (elf_gnu_ifunc_resolve_by_got): Update.
13644 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13645 * dwarf-index-write.c (save_gdb_index_command): Update.
13646 * cp-support.c (add_symbol_overload_list_qualified): Update.
13647 * breakpoint.c (create_overlay_event_breakpoint)
13648 (create_longjmp_master_breakpoint)
13649 (create_std_terminate_master_breakpoint)
13650 (create_exception_master_breakpoint): Update.
13651 * blockframe.c (find_pc_partial_function): Update.
13652 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13653 (ada_collect_symbol_completion_matches)
13654 (ada_add_global_exceptions): Update.
13655
13656 2019-01-17 Tom Tromey <tom@tromey.com>
13657
13658 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13659 declare VEC.
13660 (solib_target_parse_libraries): Change return type.
13661 (library_list_start_segment, library_list_start_section)
13662 (library_list_end_library, library_list_start_library); Update.
13663 (solib_target_free_library_list): Remove.
13664 (solib_target_parse_libraries): Remove cleanup. Change return
13665 type.
13666 (solib_target_current_sos): Update.
13667
13668 2019-01-17 Tom Tromey <tromey@bapiya>
13669
13670 * valprint.c: Replace "the the" with "the".
13671 * symtab.c: Replace "the the" with "the".
13672 * solib.c: Replace "the the" with "the".
13673 * solib-dsbt.c: Replace "the the" with "the".
13674 * linespec.c: Replace "the the" with "the".
13675 * dwarf2loc.h: Replace "the the" with "the".
13676 * amd64-windows-tdep.c: Replace "the the" with "the".
13677 * aarch64-tdep.c: Replace "the the" with "the".
13678
13679 2019-01-16 Keith Seitz <keiths@redhat.com>
13680
13681 PR gdb/23773
13682 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13683 <builder>: Rename to ..
13684 <m_builder>: ... this and make private.
13685 (dwarf2_cu::get_builder): New method. Change all users of
13686 `builder' to use this method.
13687 (dwarf2_start_symtab): Move to ...
13688 (dwarf2_cu::start_symtab): ... here. Update all callers
13689 (setup_type_unit_groups): Move to ...
13690 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13691 callers.
13692 (dwarf2_cu::reset_builder): New method.
13693 (process_full_compunit, process_full_type_unit): Use
13694 dwarf2_cu::reset_builder.
13695 (follow_die_offset): Record the ancestor CU if it is different
13696 from the followed DIE's CU.
13697 (follow_die_sig_1): Likewise.
13698
13699 2019-01-15 Tom Tromey <tom@tromey.com>
13700
13701 * remote.c (class remote_state) <buf>: Now a char_vector.
13702 <buf_size>: Remove.
13703 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13704 parameter.
13705 (remote_target::getpkt_or_notif_sane_1)
13706 (remote_target::getpkt_sane)
13707 (remote_target::getpkt_or_notif_sane): Likewise.
13708 (class remote_target) <putpkt>: New overload.
13709 (remote_target::read_frame): Change type of "buf_p". Remove
13710 sizeof_p parameter.
13711 (packet_ok): New overload.
13712 (packet_check_result): New overload.
13713 Update all uses.
13714
13715 2019-01-14 Tom Tromey <tom@tromey.com>
13716
13717 * remote-notif.c (handle_notification, remote_notif_ack)
13718 (remote_notif_parse): Make "buf" const.
13719 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13720 const.
13721 (remote_notif_parse, remote_notif_ack, handle_notification):
13722 Likewise.
13723 * remote.c (remote_notif_stop_parse): Make "buf" const.
13724 (remote_target::remote_parse_stop_reply): Make "buf" const.
13725 (remote_notif_stop_ack): Make "buf" const.
13726
13727 2019-01-14 Tom Tromey <tom@tromey.com>
13728
13729 * remote.c (remote_console_output): Make parameter const.
13730
13731 2019-01-14 Tom Tromey <tom@tromey.com>
13732
13733 * target-debug.h (target_debug_print_signals): Constify.
13734 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13735 * procfs.c (procfs_target::pass_signals): Update.
13736 * linux-nat.c (linux_nat_target::pass_signals): Update.
13737 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13738 * target-delegates.c: Rebuild.
13739 * remote.c (remote_target::program_signals): Update.
13740 (remote_target::pass_signals): Update.
13741 * target.c (target_pass_signals): Constify argument.
13742 (target_program_signals): Likewise.
13743 * target.h (struct target_ops) <pass_signals, program_signals>:
13744 Constify argument.
13745 (target_pass_signals, target_program_signals): Constify argument.
13746
13747 2019-01-14 Tom Tromey <tom@tromey.com>
13748
13749 PR tui/28819:
13750 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13751
13752 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13753
13754 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13755 field.
13756 * rs6000-tdep.c: Include reggroups.h.
13757 (IS_V_ALIAS_PSEUDOREG): Define.
13758 (rs6000_register_name): Return names for the "vX" aliases.
13759 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13760 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13761 aliases. Call default_register_reggroup_p for all other
13762 pseudo-registers.
13763 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13764 New functions.
13765 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13766 Handle "vX" aliases.
13767 (v_alias_pseudo_register_collect): New function.
13768 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13769 (rs6000_gdbarch_init): Initialize "vX" aliases as
13770 pseudo-registers. Restore registration of
13771 rs6000_pseudo_register_reggroup_p with
13772 set_tdesc_pseudo_register_reggroup_p.
13773
13774 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13775
13776 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13777 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13778 set_gdbarch_num_pseudo_regs.
13779
13780 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13781
13782 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13783 Remove arg prefixname, add do_set and do_show.
13784 Add member functions set_list and show_list.
13785 * cli/cli-style.c (class cli_style_option): Update accordingly.
13786 (style_set_list): Move to file scope.
13787 (style_show_list): Likewise.
13788 (set_style): Call help_list.
13789 (show_style): Call cmd_show_list.
13790 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13791 Update to use the new macro.
13792
13793 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13794
13795 * ada-lang.c (_initialize_ada_language): Expand the help text
13796 for the "catch exception" command.
13797
13798 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13799
13800 * symtab.c (matching_obj_sections): Initialize obj,
13801 declare it closer to its usage.
13802
13803 2019-01-10 Tom Tromey <tom@tromey.com>
13804
13805 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13806 (basic_inf_threads_range): Remove.
13807 (inf_threads_range, inf_non_exited_threads_range)
13808 (safe_inf_threads_range): Use next_adapter.
13809
13810 2019-01-10 Keith Seitz <keiths@redhat.com>
13811
13812 PR gdb/23712
13813 PR symtab/23010
13814 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13815 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13816
13817 2019-01-10 Keith Seitz <keiths@redhat.com>
13818
13819 PR gdb/23712
13820 PR symtab/23010
13821 * dictionary.c (pending_to_vector): Remove.
13822 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13823 Remove _1 suffix, replacing functions of the same name. Update
13824 all callers.
13825 (dict_create_hashed, dict_create_hashed_expandable)
13826 (dict_create_linear, dict_create_linear_expandable, dict_free)
13827 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13828 Make functions static.
13829
13830 2019-01-10 Keith Seitz <keiths@redhat.com>
13831
13832 PR gdb/23712
13833 PR symtab/23010
13834 * dictionary.h (struct dictionary): Replace declaration with
13835 multidictionary.
13836 (dict_create_hashed, dict_create_hashed_expandable)
13837 (dict_create_linear, dict_create_linear_expandable)
13838 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13839 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13840 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13841 taking multidictionary argument.
13842 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13843 * block.h (struct block) <dict>: Change to multidictionary
13844 and rename `multidict'.
13845 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13846 symmisc.c: Update all dictionary references to multidictionary.
13847
13848 2019-01-10 Keith Seitz <keiths@redhat.com>
13849
13850 PR gdb/23712
13851 PR symtab/23010
13852 * dictionary.c: Include unordered_map.
13853 (pending_to_vector): New function.
13854 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13855 Rewrite the non-"_1" functions to take vector instead
13856 of linked list.
13857 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13858 "new" _1 versions of the same name.
13859 (multidictionary): Define.
13860 (std::hash<enum language): New definition.
13861 (collate_pending_symbols_by_language, mdict_create_hashed)
13862 (mdict_create_hashed_expandable, mdict_create_linear)
13863 (mdict_create_linear_expandable, mdict_free)
13864 (find_language_dictionary, create_new_language_dictionary)
13865 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13866 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13867 (mdict_size, mdict_empty): New functions.
13868 * dictionary.h (mdict_iterator): Define.
13869
13870 2019-01-10 Pedro Alves <palves@redhat.com>
13871
13872 * breakpoint.c (read_uploaded_action)
13873 (create_tracepoint_from_upload): Adjust to use
13874 gdb::unique_xmalloc_ptr.
13875 * ctf.c (ctf_write_uploaded_tp):
13876 (SET_ARRAY_FIELD): Use emplace_back.
13877 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13878 * tracefile-tfile.c (tfile_write_uploaded_tp):
13879 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13880 gdb::unique_xmalloc_ptr.
13881 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13882 at_string, cond_string, cmd_strings>: Replace char pointers
13883 with gdb::unique_xmalloc_ptr.
13884
13885 2019-01-10 Pedro Alves <palves@redhat.com>
13886
13887 * solib-target.c (library_list_start_library): Don't xstrdup name.
13888
13889 2019-01-10 Pedro Alves <palves@redhat.com>
13890
13891 * mdebugread.c (parse_partial_symbols): Use
13892 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13893
13894 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13895
13896 * linux-fork.c (scoped_switch_fork_info)
13897 <~scoped_switch_fork_info>: Fix incorrect variable name.
13898
13899 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13900
13901 * linux-fork.c (scoped_switch_fork_info)
13902 <scoped_switch_fork_info>: Make explicit.
13903 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13904
13905 2019-01-10 Tom Tromey <tom@tromey.com>
13906
13907 * objfiles.h (objfile::reset_psymtabs): Update.
13908 * objfiles.c (objfile::objfile): Update.
13909 * psymtab.h (psymtab_storage::obstack): Update.
13910 (psymtab_storage::m_obstack): Use gdb::optional.
13911 (class psymtab_storage): Update comment. Remove objfile
13912 parameter.
13913 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13914
13915 2019-01-10 Tom Tromey <tom@tromey.com>
13916
13917 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13918 <free_psymtabs>: Now private.
13919 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13920 (allocate_psymtab): Use new method.
13921
13922 2019-01-10 Tom Tromey <tom@tromey.com>
13923
13924 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13925 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13926 * mdebugread.c (parse_partial_symbols): Use
13927 allocate_dependencies.
13928 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13929 allocate_dependencies.
13930 (process_psymtab_comp_unit_reader)
13931 (build_type_psymtab_dependencies): Likewise.
13932 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13933
13934 2019-01-10 Tom Tromey <tom@tromey.com>
13935
13936 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13937 PSYMBOL_SET_LANGUAGE.
13938 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13939
13940 2019-01-10 Tom Tromey <tom@tromey.com>
13941
13942 * psymtab.h (psymtab_storage::obstack): New method.
13943 <m_obstack>: Rename from obstack; now private.
13944 * psymtab.c (psymtab_storage): Update.
13945 * dwarf2read.c (create_addrmap_from_index)
13946 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13947 Update.
13948
13949 2019-01-10 Tom Tromey <tom@tromey.com>
13950
13951 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13952 * objfiles.h (objfile::reset_psymtabs): New method.
13953
13954 2019-01-10 Tom Tromey <tom@tromey.com>
13955
13956 * symmisc.c (print_symbol_bcache_statistics): Update.
13957 (print_objfile_statistics): Update.
13958 * symfile.c (reread_symbols): Update.
13959 * psymtab.h (class psymtab_storage): New.
13960 * psymtab.c (psymtab_storage): New constructor.
13961 (~psymtab_storage): New destructor.
13962 (require_partial_symbols): Update.
13963 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13964 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13965 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13966 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13967 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13968 (start_psymtab_common, end_psymtab_common)
13969 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13970 (allocate_psymtab): Update.
13971 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13972 Update.
13973 (dump_psymtab_addrmap, maintenance_print_psymbols)
13974 (maintenance_check_psymtabs): Update.
13975 (class objfile_psymtabs): Move to objfiles.h.
13976 * psympriv.h (discard_psymtab): Now inline.
13977 (psymtab_discarder::psymtab_discarder): Update.
13978 (psymtab_discarder::~psymtab_discarder): Update.
13979 (ALL_OBJFILE_PSYMTABS): Rewrite.
13980 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13981 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13982 Remove fields.
13983 <partial_symtabs>: New field.
13984 (class objfile_psymtabs): Move from psymtab.h. Update.
13985 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13986 psymbol_cache.
13987 (objfile::~objfile): Don't destroy psymbol_cache.
13988 * mdebugread.c (parse_partial_symbols): Update.
13989 * dwarf2read.c (create_addrmap_from_index)
13990 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13991 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13992 (add_partial_subprogram, dwarf2_ranges_read): Update.
13993 * dwarf-index-write.c (write_address_map)
13994 (write_one_signatured_type, recursively_write_psymbols)
13995 (class debug_names, class debug_names, write_psymtabs_to_index):
13996 Update.
13997
13998 2019-01-10 Tom Tromey <tom@tromey.com>
13999
14000 * symtab.h (SYMBOL_SET_NAMES): Update.
14001 (symbol_set_names): Update.
14002 (MSYMBOL_SET_NAMES): Update.
14003 * symtab.c (symbol_set_names): Change argument to be an
14004 objfile_per_bfd_storage.
14005 * psymtab.c (add_psymbol_to_bcache): Update.
14006 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14007
14008 2019-01-10 Tom Tromey <tom@tromey.com>
14009
14010 * symtab.c (create_demangled_names_hash): Change argument to be an
14011 objfile_per_bfd_storage.
14012 (symbol_set_names): Update.
14013
14014 2019-01-10 Tom Tromey <tom@tromey.com>
14015
14016 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14017 init_psymbol_list.
14018 * psymtab.c (init_psymbol_list): Do nothing if already called.
14019 * psympriv.h (init_psymbol_list): Add comment.
14020 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14021 init_psymbol_list.
14022 * dbxread.c (dbx_symfile_read): Unconditionally call
14023 init_psymbol_list.
14024
14025 2019-01-10 Tom Tromey <tom@tromey.com>
14026
14027 * xcoffread.c (scan_xcoff_symtab): Update.
14028 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14029 "where".
14030 * mdebugread.c (parse_partial_symbols)
14031 (handle_psymbol_enumerators): Update.
14032 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14033 * dbxread.c (read_dbx_symtab): Update.
14034 * psympriv.h (psymbol_placement): New enum.
14035 (add_psymbol_to_list): Update.
14036
14037 2019-01-10 Tom Tromey <tom@tromey.com>
14038
14039 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14040 static_psymbols parameters.
14041 (scan_xcoff_symtab): Update.
14042 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14043 static_psymbols parameters.
14044 * psympriv.h (start_psymtab_common): Update.
14045 * mdebugread.c (parse_partial_symbols): Update.
14046 * dwarf2read.c (create_partial_symtab): Update.
14047 * dbxread.c (read_dbx_symtab): Update.
14048 (start_psymtab): Remove global_psymbols and static_psymbols
14049 parameters.
14050
14051 2019-01-10 Tom Tromey <tom@tromey.com>
14052
14053 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14054 * psymtab.c (allocate_psymtab): Add comment.
14055 * psympriv.h (allocate_psymtab): Add comment.
14056 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14057 initializations.
14058 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14059
14060 2019-01-10 Tom Tromey <tom@tromey.com>
14061
14062 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14063 Don't declare.
14064 * mipsread.c: Include mdebugread.h.
14065 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14066 Declare.
14067 * elfread.c: Include mdebugread.h.
14068
14069 2019-01-09 Tom Tromey <tom@tromey.com>
14070
14071 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14072 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14073 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14074 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14075 (psym_lookup_symbol, psym_find_last_source_symtab)
14076 (psym_forget_cached_source_info, psym_print_stats)
14077 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14078 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14079 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14080 (psym_find_compunit_symtab_by_address)
14081 (maintenance_print_psymbols, maintenance_info_psymtabs)
14082 (maintenance_check_psymtabs): Use ranged for.
14083 * psymtab.h (class objfile_psymtabs): New.
14084 (require_partial_symbols): Return objfile_psymtabs.
14085 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14086
14087 2019-01-09 Tom Tromey <tom@tromey.com>
14088
14089 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14090 (find_pc_mapped_section, list_overlays_command)
14091 (map_overlay_command, unmap_overlay_command)
14092 (simple_overlay_update): Use all_objfiles.
14093 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14094 * printcmd.c (info_symbol_command): Use all_objfiles.
14095 * objfiles.h (ALL_OBJSECTIONS): Remove.
14096 * maint.c (maintenance_translate_address): Use all_objfiles.
14097 * gcore.c (gcore_create_callback): Use all_objfiles.
14098 (objfile_find_memory_regions): Likewise.
14099
14100 2019-01-09 Tom Tromey <tom@tromey.com>
14101
14102 * symtab.c (find_line_symtab, info_sources_command)
14103 (make_source_files_completion_list): Use objfile_compunits.
14104 * source.c (select_source_symtab): Use objfile_compunits.
14105 * objfiles.h (struct objfile): Update comment.
14106 (ALL_OBJFILES): Remove.
14107 (ALL_FILETABS): Remove.
14108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14109 objfile_compunits.
14110
14111 2019-01-09 Tom Tromey <tom@tromey.com>
14112
14113 * symmisc.c (print_objfile_statistics, dump_objfile)
14114 (maintenance_print_symbols): Use compunit_filetabs.
14115 * source.c (forget_cached_source_info_for_objfile): Use
14116 compunit_filetabs.
14117 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14118 (ALL_FILETABS): Use compunit_filetabs.
14119 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14120 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14121
14122 2019-01-09 Tom Tromey <tom@tromey.com>
14123
14124 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14125 (compunit_filetabs): New.
14126 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14127 compunit_filetabs.
14128 (info_sources_command, make_source_files_completion_list): Remove
14129 declaration.
14130 * symmisc.c (print_objfile_statistics, dump_objfile)
14131 (maintenance_print_symbols): Remove declaration.
14132 (maintenance_info_symtabs): Use compunit_filetabs.
14133 (maintenance_info_line_tables): Likewise.
14134 * source.c (select_source_symtab): Change local variable name.
14135 (forget_cached_source_info_for_objfile): Remove declaration.
14136 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14137 * objfiles.c (objfile_relocate1): Remove declaration.
14138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14139 declaration.
14140 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14141 * coffread.c (coff_symtab_read): Remove declaration.
14142 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14143 compunit_filetabs.
14144
14145 2019-01-09 Tom Tromey <tom@tromey.com>
14146
14147 * symtab.c (lookup_objfile_from_block)
14148 (find_pc_sect_compunit_symtab, search_symbols)
14149 (default_collect_symbol_completion_matches_break_on): Use
14150 objfile_compunits.
14151 * objfiles.h (ALL_COMPUNITS): Remove.
14152 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14153 * cp-support.c (add_symbol_overload_list_qualified): Use
14154 objfile_compunits.
14155 * ada-lang.c (ada_collect_symbol_completion_matches)
14156 (ada_add_global_exceptions): Use objfile_compunits.
14157
14158 2019-01-09 Tom Tromey <tom@tromey.com>
14159
14160 * source.c (select_source_symtab)
14161 (forget_cached_source_info_for_objfile): Remove declaration.
14162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14163 declaration.
14164 * maint.c (count_symtabs_and_blocks): Remove declaration.
14165 * cp-support.c (add_symbol_overload_list_qualified): Remove
14166 declaration.
14167 * coffread.c (coff_symtab_read): Remove declaration.
14168 * symtab.c (lookup_symbol_in_objfile_symtabs)
14169 (basic_lookup_transparent_type_1): Use objfile_compunits.
14170 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14171 (info_sources_command, search_symbols)
14172 (default_collect_symbol_completion_matches_break_on)
14173 (make_source_files_completion_list): Remove declaration.
14174 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14175 (ada_collect_symbol_completion_matches)
14176 (ada_add_global_exceptions): Remove declaration.
14177 * linespec.c (iterate_over_all_matching_symtabs): Use
14178 objfile_compunits.
14179 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14180 (class objfile_compunits): New.
14181 (ALL_COMPUNITS): Use objfile_compunits.
14182 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14183 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14184 objfile_compunits.
14185 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14186
14187 2019-01-09 Tom Tromey <tom@tromey.com>
14188
14189 * symtab.c (search_symbols)
14190 (default_collect_symbol_completion_matches_break_on): Use
14191 objfile_msymbols.
14192 * ada-lang.c (ada_lookup_simple_minsym)
14193 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14194 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14195 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14196 objfile_msymbols.
14197 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14198 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14199 * objc-lang.c (find_methods): Use objfile_msymbols.
14200 (info_selectors_command, info_classes_command): Likewise.
14201 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14202 * objfiles.h (class objfile_msymbols): New.
14203 (ALL_OBJFILE_MSYMBOLS): Remove.
14204 (ALL_MSYMBOLS): Remove.
14205
14206 2019-01-09 Tom Tromey <tom@tromey.com>
14207
14208 * common/next-iterator.h (next_adapter): Add Iterator template
14209 parameter.
14210 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14211 (class all_objfiles_safe): New.
14212 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14213 * objfiles.c (put_objfile_before): Update comment.
14214 (add_separate_debug_objfile): Likewise.
14215 (free_all_objfiles): Use all_objfiles_safe.
14216 (objfile_purge_solibs): Likewise.
14217
14218 2019-01-09 Tom Tromey <tom@tromey.com>
14219
14220 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14221 (expand_symtab_containing_pc, lookup_static_symbol)
14222 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14223 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14224 all_objfiles.
14225 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14226 * breakpoint.c (create_overlay_event_breakpoint)
14227 (create_longjmp_master_breakpoint)
14228 (create_std_terminate_master_breakpoint)
14229 (create_exception_master_breakpoint): Use all_objfiles.
14230 * linux-thread-db.c (try_thread_db_load_from_pdir)
14231 (has_libpthread): Use all_objfiles.
14232 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14233 * linespec.c (iterate_over_all_matching_symtabs)
14234 (search_minsyms_for_name): Use all_objfiles.
14235 * maint.c (maintenance_info_sections): Use all_objfiles.
14236 * main.c (captured_main_1): Use all_objfiles.
14237 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14238 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14239 * guile/scm-pretty-print.c
14240 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14241 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14242 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14243 (maintenance_print_msymbols): Use all_objfiles.
14244 * source.c (select_source_symtab): Use all_objfiles.
14245 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14246 * symfile.c (remove_symbol_file_command)
14247 (expand_symtabs_matching, map_symbol_filenames): Use
14248 all_objfiles.
14249 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14250 all_objfiles.
14251 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14252 * objc-lang.c (find_methods): Use all_objfiles.
14253 * objfiles.c (have_partial_symbols, have_full_symbols)
14254 (have_minimal_symbols, qsort_cmp)
14255 (default_iterate_over_objfiles_in_search_order): Use
14256 all_objfiles.
14257 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14258 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14259 (maintenance_check_psymtabs): Use all_objfiles.
14260 (ALL_PSYMTABS): Remove.
14261 * compile/compile-object-run.c (do_module_cleanup): Use
14262 all_objfiles.
14263 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14264 * cp-support.c (add_symbol_overload_list_qualified): Use
14265 all_objfiles.
14266 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14267 Use all_objfiles.
14268 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14269 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14270 all_objfiles.
14271 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14272 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14273 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14274 Uses all_objfiles.
14275 * solib.c (solib_read_symbols): Use all_objfiles
14276
14277 2019-01-09 Tom Tromey <tom@tromey.com>
14278
14279 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14280 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14281 all_objfiles.
14282 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14283 * symmisc.c (print_symbol_bcache_statistics)
14284 (print_objfile_statistics, maintenance_print_objfiles)
14285 (maintenance_info_symtabs, maintenance_check_symtabs)
14286 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14287 all_objfiles.
14288 * source.c (forget_cached_source_info): Use all_objfiles.
14289 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14290 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14291 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14292 * objfiles.c (update_section_map): Use all_objfiles.
14293 (shared_objfile_contains_address_p): Likewise.
14294 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14295 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14296
14297 2019-01-09 Tom Tromey <tom@tromey.com>
14298
14299 * common/next-iterator.h: New file.
14300 * objfiles.h (class all_objfiles): New.
14301 (struct objfile_iterator): New.
14302
14303 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14304
14305 * NEWS: Move the description of the changed "frame", "select-frame",
14306 and "info frame" commands to the Changed commands section.
14307
14308 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14309
14310 * gdbtypes.c (check_stub_method_group): Remove handling of old
14311 mangling schemes.
14312 * linespec.c (find_methods): Likewise.
14313 * stabsread.c (read_member_functions): Likewise.
14314 * valops.c (search_struct_method): Likewise.
14315 (value_struct_elt_for_reference): Likewise.
14316 * NEWS: Mention this change.
14317
14318 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14319
14320 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14321 print_source_lines.
14322 * source.c (print_source_lines_base): Update line number check.
14323 (print_source_lines): New function.
14324 (source_lines_range::source_lines_range): New function.
14325 * source.h (class source_lines_range): New class.
14326 (print_source_lines): New declaration.
14327
14328 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14329
14330 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14331
14332 2019-01-08 Tom Tromey <tom@tromey.com>
14333 Simon Marchi <simon.marchi@ericsson.com>
14334
14335 PR gdb/24060
14336 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14337 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14338 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14339 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14340 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14341 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14342
14343 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14344
14345 * source.c (select_source_symtab): Move header comment to
14346 declaration in source.h.
14347 (forget_cached_source_info_for_objfile): Likewise.
14348 (forget_cached_source_info): Likewise.
14349 (identify_source_line): Likewise.
14350 * source.h (identify_source_line): Move declaration from symtab.h
14351 and add comment from source.c
14352 (print_source_lines): Likewise.
14353 (forget_cached_source_info_for_objfile): Likewise.
14354 (forget_cached_source_info): Likewise.
14355 (select_source_symtab): Likewise.
14356 (enum print_source_lines_flag): Move definition from symtab.h.
14357 * symtab.h (identify_source_line): Move declaration to source.h.
14358 (print_source_lines): Likewise.
14359 (forget_cached_source_info_for_objfile): Likewise.
14360 (forget_cached_source_info): Likewise.
14361 (select_source_symtab): Likewise.
14362 (enum print_source_lines_flag): Move definition to source.h.
14363 * tui/tui-hooks.c: Add 'source.h' include.
14364
14365 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14366
14367 * source.c (print_source_lines_base): Handle requests to print
14368 reverse line number sequences, and guard against empty lines
14369 string.
14370
14371 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14372
14373 * source.c (print_source_lines_base): Fix skip of '\r' if next
14374 character is '\n'.
14375
14376 2019-01-06 Tom Tromey <tom@tromey.com>
14377
14378 * c-exp.y (struct c_parse_state) <macro_original_text,
14379 expansion_obstack>: New member.
14380 (macro_original_text, expansion_obstack): Remove globals.
14381 (scan_macro_expansion, scanning_macro_expansion)
14382 (finished_macro_expansion): Update.
14383 (scan_macro_cleanup): Remove.
14384 (yylex, c_parse): Update.
14385
14386 2019-01-06 Tom Tromey <tom@tromey.com>
14387
14388 * c-exp.y (struct c_parse_state) <strings>: New member.
14389 (operator_stoken): Update.
14390
14391 2019-01-06 Tom Tromey <tom@tromey.com>
14392
14393 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14394 (union type_stack_elt) <typelist_val>: Now a pointer to
14395 std::vector.
14396 (type_stack_cleanup): Don't declare.
14397 (push_typelist): Update.
14398 * parse.c (pop_typelist): Return a std::vector.
14399 (push_typelist): Take a std::vector.
14400 (follow_types): Update. Do not free args.
14401 (type_stack_cleanup): Remove.
14402 * c-exp.y (struct c_parse_state): New.
14403 (cpstate): New global.
14404 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14405 (nonempty_typelist): Update.
14406 (func_mod): Create a new vector.
14407 (c_parse): Create a c_parse_state.
14408 (check_parameter_typelist): Do not delete params.
14409 (function_method): Update. Do not delete type_list.
14410
14411 2019-01-06 Tom Tromey <tom@tromey.com>
14412
14413 PR gdb/28155:
14414 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14415 check_typedef.
14416 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14417 (print_return_value): Likewise.
14418
14419 2019-01-05 Tom Tromey <tom@tromey.com>
14420
14421 * contrib/cleanup_check.py: Remove.
14422 * contrib/gcc-with-excheck: Remove.
14423 * contrib/exsummary.py: Remove.
14424 * contrib/excheck.py: Remove.
14425
14426 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14427
14428 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14429 NULL. Initialize tpprev to NULL instead of assigning it
14430 to NULL on the next statement.
14431 * windows-nat.c (windows_delete_thread): Remove check for
14432 main_thread_id before printing thread exit notifications.
14433 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14434 Remove thread ID check against main_thread_id.
14435 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14436 windows_delete_thread.
14437 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14438
14439 2019-01-04 Tom Tromey <tom@tromey.com>
14440
14441 * compile/compile.c (_initialize_compile): Use upper case for
14442 metasyntactic variables.
14443 * symmisc.c (_initialize_symmisc): Use upper case for
14444 metasyntactic variables.
14445 * psymtab.c (_initialize_psymtab): Use upper case for
14446 metasyntactic variables.
14447 * demangle.c (demangle_command): Use upper case for metasyntactic
14448 variables.
14449 (_initialize_demangler): Likewise.
14450 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14451 variables.
14452
14453 2019-01-03 Tom Tromey <tom@tromey.com>
14454
14455 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14456
14457 2019-01-03 Tom Tromey <tom@tromey.com>
14458
14459 * python/py-symtab.c (salpy_str): Update.
14460 (struct salpy_sal_object) <symtab>: Now a PyObject.
14461 (salpy_dealloc): Update.
14462 (del_objfile_sal): Use gdbpy_ref.
14463
14464 2019-01-03 Tom Tromey <tom@tromey.com>
14465
14466 * python/py-type.c (convert_field): Use new_reference. Return
14467 gdbpy_ref.
14468 (make_fielditem): Return gdbpy_ref.
14469 (typy_fields): Update.
14470 (typy_getitem): Update.
14471 (field_name): Return gdbpy_ref. Use new_reference.
14472 (typy_iterator_iternext): Update.
14473
14474 2019-01-03 Tom Tromey <tom@tromey.com>
14475
14476 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14477
14478 2019-01-03 Tom Tromey <tom@tromey.com>
14479
14480 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14481 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14482 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14483 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14484 (pspy_set_type_printers): Likewise.
14485 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14486 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14487 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14488 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14489 (objfpy_set_type_printers): Likewise.
14490
14491 2019-01-03 Tom Tromey <tom@tromey.com>
14492
14493 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14494 (gdbpy_print_stack): Use gdbpy_err_fetch.
14495 * python/python-internal.h (class gdbpy_err_fetch): New class.
14496 (class gdbpy_enter) <m_error_type, m_error_value,
14497 m_error_traceback>: Remove.
14498 <m_error>: New member.
14499 (gdbpy_exception_to_string): Don't declare.
14500 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14501 * python/py-value.c (convert_value_from_python): Use
14502 gdbpy_err_fetch.
14503 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14504 gdbpy_exception_to_string.
14505 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14506 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14507 gdbpy_err_fetch.
14508
14509 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14510
14511 * linux-nat.c (delete_lwp_cleanup): Delete.
14512 (struct lwp_deleter): New struct.
14513 (lwp_info_up): New typedef.
14514 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14515 lwp_info_up.
14516
14517 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14518
14519 * linux-fork.c (class scoped_switch_fork_info): New class.
14520 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14521
14522 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14523
14524 * valops.c (find_overload_match): Remove use of null_cleanup, and
14525 calls to do_cleanups.
14526
14527 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14528
14529 * compile/compile-cplus-types.c
14530 (compile_cplus_instance::decl_name): Handle changes to
14531 cp_func_name.
14532 * cp-support.c (cp_func_name): Update header comment, update
14533 return type.
14534 * cp-support.h (cp_func_name): Update return type in declaration.
14535 * valops.c (find_overload_match): Move temp_func local to top
14536 level of function and change its type. Use temp_func to hold and
14537 delete temporary string obtained from cp_func_name.
14538
14539 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14540
14541 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14542 gdb::char_vector, remove cleanup, and update uses of `msg`.
14543
14544 2019-01-03 Jim Wilson <jimw@sifive.com>
14545
14546 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14547
14548 2019-01-02 Tom Tromey <tom@tromey.com>
14549
14550 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14551 (tdesc_parse_xml): Remove cleanups.
14552 * target-descriptions.h (make_cleanup_free_target_description):
14553 Don't declare.
14554 (target_desc_deleter): New struct.
14555 (target_desc_up): New typedef.
14556 * target-descriptions.c (target_desc_deleter::operator()): Rename
14557 from free_target_description.
14558 (make_cleanup_free_target_description): Remove.
14559
14560 2019-01-02 Tom Tromey <tom@tromey.com>
14561
14562 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14563 constructor, destructor.
14564 (linespec_parser): Remove typedef.
14565 (~linespec_parser): Rename from linespec_parser_delete.
14566 (linespec_lex_to_end, linespec_complete_label)
14567 (linespec_complete): Update.
14568 (decode_line_full): Remove cleanups.
14569 (decode_line_1): Update.
14570
14571 2019-01-02 Tom Tromey <tom@tromey.com>
14572
14573 * python/python-internal.h (inferior_to_inferior_object): Change
14574 return type.
14575 * python/py-exitedevent.c (create_exited_event_object): Update.
14576 * python/py-inferior.c (inferior_to_inferior_object): Return
14577 gdbpy_ref.
14578 (python_new_inferior, python_inferior_deleted)
14579 (thread_to_thread_object, delete_thread_object)
14580 (build_inferior_list, gdbpy_selected_inferior): Update.
14581 * python/py-infthread.c (create_thread_object): Update. Also fail
14582 if inferior_to_inferior_object fails.
14583
14584 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14585
14586 * inferior.h (class inferior) <displaced_step_state>: New field.
14587 * infrun.h (struct displaced_step_state): Move here from
14588 infrun.c. Initialize fields, add constructor.
14589 <inf>: Remove field.
14590 <reset>: New method.
14591 * infrun.c (struct displaced_step_inferior_state): Move to
14592 infrun.h.
14593 (displaced_step_inferior_states): Remove.
14594 (get_displaced_stepping_state): Adust.
14595 (displaced_step_in_progress_any_inferior): Adjust.
14596 (displaced_step_in_progress_thread): Adjust.
14597 (displaced_step_in_progress): Adjust.
14598 (add_displaced_stepping_state): Remove.
14599 (get_displaced_step_closure_by_addr): Adjust.
14600 (remove_displaced_stepping_state): Remove.
14601 (infrun_inferior_exit): Call displaced_step_state.reset.
14602 (use_displaced_stepping): Don't check for NULL.
14603 (displaced_step_prepare_throw): Call
14604 get_displaced_stepping_state.
14605 (displaced_step_fixup): Don't check for NULL.
14606 (prepare_for_detach): Don't check for NULL.
14607
14608 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14609
14610 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14611 in case of call that did not complete.
14612
14613 2019-01-02 Andrey Utkin <autkin@undo.io>
14614
14615 * symfile.c (find_separate_debug_file): Fix search of debug files for
14616 remote debuggee.
14617
14618 2019-01-02 Tom Tromey <tom@tromey.com>
14619
14620 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14621 indentation.
14622 * python/py-frame.c (frapy_older): Remove cast.
14623 (frapy_newer): Likewise.
14624 * python/py-breakpoint.c (local_setattro): Remove cast.
14625 * python/py-arch.c (archpy_name): Remove local variable.
14626 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14627
14628 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14629
14630 * unittests/basic_string_view/element_access/char/empty.cc:
14631 Fix year range in copyright header.
14632
14633 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14634
14635 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14636 Delete.
14637 <operator==>: Update with for removed field.
14638 <hash>: Likewise.
14639 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14640 <isa_features>: ...this.
14641 <abi_features>: New field.
14642 (riscv_isa_flen): Update comment.
14643 (riscv_abi_xlen): New declaration.
14644 (riscv_abi_flen): New declaration.
14645 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14646 isa_features.
14647 (riscv_abi_xlen): New function.
14648 (riscv_isa_flen): Update to get answer from isa_features.
14649 (riscv_abi_flen): New function.
14650 (riscv_has_fp_abi): Update to get answer from abi_features.
14651 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14652 xlen and flen.
14653 (riscv_call_info) <xlen, flen>: Update comment.
14654 (riscv_call_arg_struct): Remove invalid assertions
14655 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14656 is removed.
14657 (riscv_gdbarch_init): Gather isa features and abi features
14658 separately, ensure both match on the gdbarch when reusing an old
14659 gdbarch. Relax an error check to allow 32-bit abi float to run on
14660 a target with 64-bit float hardware.
14661
14662 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14663
14664 * source.c (search_command_helper): Stop reverse search
14665 when line 1 has been searched.
14666
14667 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14668
14669 * record-full.c (record_full_base_target::close): Rewrite
14670 record_full_core_buf_list free logic.
14671
14672 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14673
14674 * break-catch-syscall.c (print_one_catch_syscall): xfree
14675 the last text.
14676
14677 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14678
14679 * top.c (print_gdb_version): Update Copyright year in version
14680 message.
14681
14682 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14683
14684 Update copyright year range in all GDB files.
14685
14686 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14687
14688 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14689
14690 For older changes see ChangeLog-2018.
14691 \f
14692 Local Variables:
14693 mode: change-log
14694 left-margin: 8
14695 fill-column: 74
14696 version-control: never
14697 coding: utf-8
14698 End:
14699
This page took 0.430963 seconds and 5 git commands to generate.