]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: fix overload resolution for see-through references
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
4 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
5 for ranking see-through reference cases.
6
7 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8 * stack.c (faas_command): Check a command is provided.
9 * thread.c (taas_command, tfaas_command): Likewise.
10
11 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12 * inferior.c (prune_inferiors): Only call delete_inferior,
13 Do not modify the inferior list.
14
15 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * c-exp.y: Update calls to lookup_typename,
18 lookup_signed_typename and lookup_unsigned_typename.
19 * c-lang.c (evaluate_subexp_c): Likewise.
20 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
21 Likewise.
22 * eval.c (binop_promote): Likewise.
23 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
24 (lookup_unsigned_typename): Likewise.
25 (lookup_signed_typename): Likewise.
26 * gdbtypes.h (lookup_unsigned_typename): Likewise.
27 (lookup_signed_typename): Likewise.
28 (lookup_typename): Likewise.
29 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
30 lookup_typename, lookup_signed_typename,
31 lookup_unsigned_typename.
32 * m2-exp.y: Likewise.
33 * printcmd.c (printf_wide_c_string): Likewise.
34 (ui_printf): Likewise.
35 * python/py-type.c (typy_lookup_typename): Likewise.
36 * python/py-xmethods.c (python_xmethod_worker::invoke):
37 Likewise.
38 * rust-exp.y: Likewise.
39
40 2019-12-04 Christian Biesinger <cbiesinger@google.com>
41
42 * configure.nat (obsd64): Add missing files x86-nat.o and
43 nat/x86-dregs.o.
44
45 2019-12-04 Tom Tromey <tom@tromey.com>
46
47 * valprint.c (val_print_string): Use metadata_style.
48 * go-valprint.c (print_go_string): Use metadata style.
49 * p-valprint.c (pascal_object_print_static_field): Use metadata
50 style.
51 * cp-valprint.c (cp_print_static_field): Use metadata style.
52
53 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
54 Chris January <chris.january@arm.com>
55
56 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
57 tokens.
58 (typebase): New patterns for complex, single/double precision, and
59 single/double complex.
60 (f77_keywords): Change token for complex keyword, and add single,
61 double, and precision keywords.
62
63 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
66 "info io_registers".
67
68 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * regcache.c (cooked_read_test): Initialize thread list of
71 mock_inferior.
72
73 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * aarch64-linux-tdep.c: Remove includes.
76
77 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * aarch64-tdep.c: Remove includes.
80
81 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
82
83 * filtered-iterator.h (filtered_iterator) <operator==,
84 operator!=>: Compare wrapped iterators, not wrapped pointers.
85 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
86 unittests/filtered_iterator-selftests.c.
87 * unittests/filtered_iterator-selftests.c: New file.
88
89 2019-12-04 Tom Tromey <tromey@adacore.com>
90
91 * gdbtypes.c (create_range_type): Inherit endianity
92 from base type.
93
94 2019-12-04 Tom Tromey <tromey@adacore.com>
95
96 * ada-lang.c (decode_constrained_packed_array)
97 (ada_value_assign, value_assign_to_component): Update.
98 * dwarf2loc.c (rw_pieced_value, access_memory)
99 (dwarf2_compile_expr_to_ax): Update.
100 * dwarf2read.c (dwarf2_add_field): Update.
101 * eval.c (evaluate_subexp_standard): Update.
102 * gdbarch.c, gdbarch.h: Rebuild.
103 * gdbarch.sh (bits_big_endian): Remove.
104 * gdbtypes.h (union field_location): Update comment.
105 * target-descriptions.c (make_gdb_type): Update.
106 * valarith.c (value_bit_index): Update.
107 * value.c (struct value) <bitpos>: Update comment.
108 (unpack_bits_as_long, modify_field): Update.
109 * value.h (value_bitpos): Update comment.
110
111 2019-12-04 Tom Tromey <tromey@adacore.com>
112
113 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
114 endian-ness.
115
116 2019-12-04 Tom Tromey <tromey@adacore.com>
117
118 * dwarf2read.c (dwarf2_init_float_type)
119 (dwarf2_init_complex_target_type): Add byte_order parameter.
120 (read_base_type): Compute byte order earlier.
121 * gdbtypes.c (init_float_type): Add byte_order parameter.
122 * gdbtypes.h (init_float_type): Add byte_order parameter.
123
124 2019-12-04 Tom Tromey <tromey@adacore.com>
125
126 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
127
128 2019-12-04 Tom Tromey <tromey@adacore.com>
129
130 * dwarf2read.c (process_structure_scope): Initialize
131 "discr_offset".
132
133 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
136 add it into the search spec.
137 (parse_max_results_option): New function.
138 (mi_info_functions_or_variables): Parse -max-results flag and pass
139 it to mi_symbol_info.
140 (mi_cmd_symbol_info_modules): Likewise.
141 (mi_cmd_symbol_info_types): Likewise.
142 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
143 return type to bool, change result container into a set, and don't
144 add new results if we have enough already.
145 (global_symbol_searcher::add_matching_msymbols): Change return
146 type to bool, and don't add new results if we have enough already.
147 (sort_search_symbols_remove_dups): Delete.
148 (global_symbol_searcher::search): Early exit from search loop when
149 we have enough results. Use a std::set to collect the results
150 from calling add_matching_symbols.
151 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
152 member function.
153 (global_symbol_searcher) <m_max_search_results>: New member
154 variable.
155 (global_symbol_searcher) <add_matching_symbols>: Update header
156 comment and change return type to bool.
157 (global_symbol_searcher) <add_matching_msymbols>: Update header
158 comment and change return type to bool.
159
160 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * symtab.c (symbol_search::compare_search_syms): Update header
163 comment.
164 (global_symbol_searcher::is_suitable_msymbol): New function.
165 (global_symbol_searcher::expand_symtabs): New function.
166 (global_symbol_searcher::add_matching_symbols): New function.
167 (global_symbol_searcher::add_matching_msymbols): New function.
168 (global_symbol_searcher::search): Move most of the content
169 into the new functions above, and call them as needed.
170 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
171 function.
172 (global_symbol_searcher) <add_matching_symbols>: New member
173 function.
174 (global_symbol_searcher) <add_matching_msymbols>: New member
175 function.
176 (global_symbol_searcher) <is_suitable_msymbol>: New member
177 function.
178
179 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
182 -symbol-info-module-variables entries.
183 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
184 (mi_cmd_symbol_info_module_variables): Declare.
185 * mi/mi-symbol-cmds.c
186 (module_symbol_search_iterator): New typedef.
187 (output_module_symbols_in_single_module_and_file): New function.
188 (output_module_symbols_in_single_module): New function.
189 (mi_info_module_functions_or_variables): New function.
190 (mi_cmd_symbol_info_module_functions): New function.
191 (mi_cmd_symbol_info_module_variables): New function.
192 * NEWS: Mention new MI command.
193
194 2019-12-03 Christian Biesinger <cbiesinger@google.com>
195
196 * bcache.c (hash): Remove.
197 (hash_continue): Remove.
198 * bcache.h (hash): Remove.
199 (hash_continue): Remove.
200 (struct bcache) <ctor>: Update.
201 * psymtab.c (psymbol_hash): Update.
202 * stabsread.c (hashname): Update.
203 * utils.h (fast_hash): Add an argument for a start value,
204 defaulting to zero.
205
206 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
207 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
208 (destroy_block_symbol_cache): New function.
209 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
210 (resize_symbol_cache): Likewise.
211
212 2019-12-02 Tom Tromey <tom@tromey.com>
213
214 * unittests/tui-selftests.c (run_tests): Make conditional.
215 (_initialize_tui_selftest): Make conditional.
216
217 2019-12-02 Christian Biesinger <cbiesinger@google.com>
218
219 * aix-thread.c (debug_aix_thread): Change type to bool.
220
221 2019-12-02 Luis Machado <luis.machado@linaro.org>
222
223 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
224
225 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * dwarf2read.c (read_tag_string_type): Read the fields required to
228 make a dynamic string, and possibly create a dynamic range for the
229 string.
230 (attr_to_dynamic_prop): Setup is_reference based on the type of
231 attribute being processed.
232 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
233 (resolve_dynamic_array): Rename to...
234 (resolve_dynamic_array_or_string): ...this, update header comment,
235 and accept TYPE_CODE_STRING.
236 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
237
238 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
241 of its implementation from...
242 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
243 the new function.
244
245 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
248 create a range with stride where appropriate.
249 * f-valprint.c: Include 'gdbarch.h'.
250 (f77_print_array_1): Take the stride into account when walking the
251 array. Also convert the stride into addressable units.
252 * gdbtypes.c (create_range_type): Initialise the stride to
253 constant zero.
254 (create_range_type_with_stride): New function, initialise the
255 range as normal, and then setup the stride.
256 (has_static_range): Include the stride here. Also change the
257 return type to bool.
258 (create_array_type_with_stride): Consider the range stride if the
259 array isn't given its own stride.
260 (resolve_dynamic_range): Resolve the stride if needed.
261 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
262 (struct range_bounds) <flag_is_byte_stride>: New member variable.
263 (TYPE_BIT_STRIDE): Define.
264 (TYPE_ARRAY_BIT_STRIDE): Define.
265 (create_range_type_with_stride): Declare.
266 * valarith.c (value_subscripted_rvalue): Take range stride into
267 account when walking the array.
268
269 2019-12-01 Tom Tromey <tom@tromey.com>
270
271 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
272 specially.
273
274 2019-12-01 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
277 \0.
278 * unittests/tui-selftests.c: New file.
279 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
280
281 2019-12-01 Tom Tromey <tom@tromey.com>
282
283 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
284
285 2019-12-01 Tom Tromey <tom@tromey.com>
286
287 * NEWS: Document new settings.
288 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
289 * tui/tui-win.c (_initialize_tui_win): Add border style
290 observers.
291 * tui/tui-io.h (tui_apply_style): Declare.
292 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
293 longer static.
294 (apply_ansi_escape, tui_set_reverse_mode): Update.
295 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
296 Add "skip_intensity" parameter.
297 <changed>: New member.
298 <do_set_value>: Declare.
299 (tui_border_style, tui_active_border_style): Declare.
300 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
301 globals.
302 (cli_style_option): Initialize "changed".
303 (cli_style_option::do_set_value): New function.
304 (cli_style_option::add_setshow_commands): Add "skip_intensity"
305 parameter. Update.
306 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
307 (_initialize_cli_style): Update. Create TUI border style
308 commands.
309
310 2019-12-01 Tom Tromey <tom@tromey.com>
311
312 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
313 parameter.
314 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
315 parameter.
316 * tui/tui-win.h (compact_source): Declare.
317 * tui/tui-win.c (compact_source): New global.
318 (tui_set_compact_source, tui_show_compact_source): New functions.
319 (_initialize_tui_win): Add "compact-source" setting.
320 * tui/tui-source.c (tui_source_window::set_contents): Handle
321 compact_source setting.
322 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
323 * NEWS: Document new setting.
324
325 2019-11-30 Tom Tromey <tom@tromey.com>
326
327 * dwarf2read.c (dwarf2_add_field): Include field offset when
328 computing variant part length.
329
330 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
331 * NEWS: Mention define-prefix. Tell that command names can now
332 contain a . character.
333
334 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
335
336 * command.h (valid_cmd_char_p): Declare.
337 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
338 the check of valid command char.
339 (find_command_name_length, valid_user_defined_cmd_name_p): Use
340 valid_cmd_char_p.
341 * cli/cli-script.c (validate_comname): Likewise.
342 * completer.c (gdb_completer_command_word_break_characters):
343 Do not remove . from the word break char, update comments.
344 (complete_line_internal_1): Use valid_cmd_char_p.
345 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
346 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
347
348 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
349
350 * cli/cli-script.c (do_define_command): Ensure a redefined
351 prefix command is kept as a prefix command.
352 (define_prefix_command): New function.
353 (show_user_1): Report user defined prefixes.
354 (_initialize_cli_script): Create the new 'define-prefix' command.
355 Add completers for 'define' and 'document'.
356 * top.c (execute_command): If command is a user-defined prefix only
357 command, report the list of commands for this prefix command.
358
359 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 * valops.c (find_oload_champ): Improve debug output.
362
363 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * valops.c (find_oload_champ): Print part of debug messages
366 before the badness vector is std::move'd.
367
368 2019-11-28 Tom Tromey <tom@tromey.com>
369
370 * value.c (creal_internal_fn): Fix comment.
371
372 2019-11-28 Tom Tromey <tom@tromey.com>
373
374 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
375 flag_bound_evaluated>: Now unsigned.
376
377 2019-11-28 Tom Tromey <tom@tromey.com>
378
379 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
380 declare.
381
382 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
383
384 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
385 debug output.
386 * jit.c (jit_unregister_code): Add debug print to match
387 `jit_register_code`.
388
389 2019-11-27 Christian Biesinger <cbiesinger@google.com>
390
391 * NEWS: Mention the new multithreaded symbol loading.
392
393 2019-11-27 Christian Biesinger <cbiesinger@google.com>
394
395 * maint.c (n_worker_threads): Default to 0.
396 (worker_threads_disabled): New function.
397 * maint.h (worker_threads_disabled): New function.
398 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
399 here if worker_threads_disabled () is true.
400 (minimal_symbol_reader::install): Skip all threading if
401 worker_threads_disabled () is true.
402
403 2019-11-27 Christian Biesinger <cbiesinger@google.com>
404
405 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
406 hash code if possible.
407 (add_minsym_to_demangled_hash_table): Likewise.
408 (minimal_symbol_reader::install): Compute the hash codes for msymbol
409 on the background thread.
410 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
411 Add these fields.
412
413 2019-11-27 Christian Biesinger <cbiesinger@google.com>
414
415 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
416 of the mangled name on the background thread.
417 * symtab.c (symbol_set_names): Allow passing in the hash of the
418 linkage_name.
419 * symtab.h (symbol_set_names): Likewise.
420
421 2019-11-27 Kevin Buettner <kevinb@redhat.com>
422
423 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
424 physnames are computed for inherited DIEs.
425
426 2019-11-27 Tom Tromey <tromey@adacore.com>
427
428 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
429 backslashes.
430 * cp-support.c: Remove unnecessary backslashes.
431
432 2019-11-27 Christian Biesinger <cbiesinger@google.com>
433
434 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
435 with sym->set_linkage_name.
436 * coffread.c (coff_read_enum_type): Likewise.
437 * mdebugread.c (parse_symbol): Likewise.
438 * stabsread.c (patch_block_stabs): Likewise.
439 (define_symbol): Likewise.
440 (read_enum_type): Likewise.
441 (common_block_end): Likewise.
442 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
443 function.
444 (SYMBOL_SET_LINKAGE_NAME): Remove.
445 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
446 with sym->set_linkage_name.
447
448 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
451 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
452 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
453 * NEWS: Mention new MI command.
454
455 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
458 '-symbol-info-types', and '-symbol-info-variables'.
459 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
460 (mi_cmd_symbol_info_types): Declare.
461 (mi_cmd_symbol_info_variables): Declare.
462 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
463 (output_debug_symbol): New function.
464 (output_nondebug_symbol): New function.
465 (mi_symbol_info): New function.
466 (mi_info_functions_or_variables): New function.
467 (mi_cmd_symbol_info_functions): New function.
468 (mi_cmd_symbol_info_types): New function.
469 (mi_cmd_symbol_info_variables): New function.
470 * NEWS: Mention new commands.
471
472 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * symtab.c (symbol_to_info_string): New function, most content
475 moved from print_symbol_info, but updated to return a std::string.
476 (print_symbol_info): Update to use symbol_to_info_string and print
477 returned string.
478 * symtab.h (symbol_to_info_string): Declare new function.
479
480 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * python/python.c (gdbpy_rbreak): Convert to using
483 global_symbol_searcher.
484 * symtab.c (file_matches): Convert return type to bool, change
485 file list to std::vector, update header comment.
486 (search_symbols): Rename to...
487 (global_symbol_searcher::search): ...this and update now its
488 a member function of global_symbol_searcher. Take account of the
489 changes to file_matches.
490 (symtab_symbol_info): Convert to using global_symbol_searcher.
491 (rbreak_command): Likewise.
492 (search_module_symbols): Likewise.
493 * symtab.h (enum symbol_search): Update comment.
494 (search_symbols): Remove declaration.
495 (class global_symbol_searcher): New class.
496
497 2019-11-26 Tom Tromey <tromey@adacore.com>
498
499 * cp-support.c (_initialize_cp_support): Conditionally initialize
500 gdb_demangle_attempt_core_dump.
501
502 2019-11-26 Tom Tromey <tom@tromey.com>
503
504 * python/py-function.c (fnpy_init): Update.
505 * value.h (add_internal_function): Adjust declaration.
506 * value.c (function_destroyer): Remove.
507 (do_add_internal_function): Don't set destroyer or copy name.
508 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
509 Set name_allocated.
510 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
511 (cmdpy_init): Set name_allocated.
512 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
513 member.
514 (~cmd_list_element): Free "name" if needed.
515
516 2019-11-26 Tom Tromey <tom@tromey.com>
517
518 * value.h (add_internal_function): Add new overload. Move
519 documentation from value.h.
520 * value.c (do_add_internal_function): New function.
521 (add_internal_function): Use it. Add new overload.
522 (function_destroyer): Don't free doc.
523 * python/py-function.c (fnpy_init): Update.
524
525 2019-11-26 Tom Tromey <tom@tromey.com>
526
527 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
528 (cmdpy_init): Set "doc_allocated".
529
530 2019-11-26 Tom Tromey <tom@tromey.com>
531
532 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
533 name of worker thread.
534 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
535 pthread_setname_np.
536 * configure, config.in: Rebuild.
537
538 2019-11-26 Tom Tromey <tom@tromey.com>
539
540 * python/python.c (class gdbpy_gil): New.
541 (struct gdbpy_event): Add constructor, destructor, operator().
542 (gdbpy_post_event): Use run_on_main_thread.
543 (gdbpy_initialize_events): Remove.
544 (do_start_initialization): Update.
545
546 2019-11-26 Tom Tromey <tom@tromey.com>
547
548 * NEWS: Add entry.
549 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
550 commands. Call update_thread_pool_size.
551 (update_thread_pool_size, maintenance_set_worker_threads): New
552 functions.
553 (n_worker_threads): New global.
554
555 2019-11-26 Christian Biesinger <cbiesinger@google.com>
556 Tom Tromey <tom@tromey.com>
557
558 * minsyms.c (minimal_symbol_reader::install): Use
559 parallel_for_each.
560 * gdbsupport/parallel-for.h: New file.
561 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
562
563 2019-11-26 Christian Biesinger <cbiesinger@google.com>
564 Tom Tromey <tom@tromey.com>
565
566 * gdbsupport/thread-pool.h: New file.
567 * gdbsupport/thread-pool.c: New file.
568 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
569 (HFILES_NO_SRCDIR): Add thread-pool.h.
570
571 2019-11-26 Tom Tromey <tom@tromey.com>
572
573 * event-top.h (thread_local_segv_handler): Declare.
574 * event-top.c (thread_local_segv_handler): New global.
575 (install_handle_sigsegv, handle_sigsegv): New functions.
576 (async_init_signals): Install SIGSEGV handler.
577 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
578 thread-local.
579 (report_failed_demangle): New function.
580 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
581 handler-setting code, instead use segv_handler. Run warning code
582 on main thread.
583
584 2019-11-26 Tom Tromey <tom@tromey.com>
585
586 * run-on-main-thread.c: New file.
587 * run-on-main-thread.h: New file.
588 * unittests/main-thread-selftests.c: New file.
589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
590 main-thread-selftests.c.
591 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
592 (COMMON_SFILES): Add run-on-main-thread.c.
593
594 2019-11-26 Tom Tromey <tom@tromey.com>
595
596 * main.c (setup_alternate_signal_stack): Remove.
597 (captured_main_1): Use gdb::alternate_signal_stack.
598 * gdbsupport/alt-stack.h: New file.
599
600 2019-11-26 Tom Tromey <tom@tromey.com>
601
602 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
603 Remove comment.
604 (save_original_signals_state, restore_original_signals_state): Use
605 gdb_sigmask.
606 * linux-nat.c (block_child_signals, restore_child_signals_mask)
607 (_initialize_linux_nat): Use gdb_sigmask.
608 * guile/guile.c (_initialize_guile): Use block_signals.
609 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
610 * gdbsupport/gdb-sigmask.h: New file.
611 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
612 * cp-support.c (gdb_demangle): Use gdb_sigmask.
613 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
614 pthread_sigmask.
615 * configure, config.in: Rebuild.
616 * gdbsupport/block-signals.h: New file.
617
618 2019-11-26 Tom Tromey <tom@tromey.com>
619
620 * acinclude.m4: Include ax_pthread.m4.
621 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
622 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
623 (CLIBS): Use PTHREAD_LIBS.
624 (aclocal_m4_deps): Add ax_pthread.m4.
625 * config.in, configure: Rebuild.
626 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
627
628 2019-11-26 Tom Tromey <tom@tromey.com>
629
630 * symtab.h (struct minimal_symbol) <name_set>: New member.
631 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
632 Don't call symbol_set_names.
633 (minimal_symbol_reader::install): Call symbol_set_names.
634
635 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
636
637 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
638 restore_active_ext_lang, as GIL is needed for (indirectly)
639 called PyOS_InterruptOccurred.
640
641 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
642
643 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
644 definition.
645
646 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
647
648 * remote-sim.c (simulator_command): Make static, remove
649 declaration.
650
651 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
652
653 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
654 static.
655 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
656 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
657 (main): Likewise.
658 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
659 (main): Likewise.
660 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
661 (main): Likewise.
662 * unittests/basic_string_view/element_access/char/1.cc (test01):
663 Likewise.
664 (main): Likewise.
665 * unittests/basic_string_view/element_access/char/empty.cc (main):
666 Likewise.
667 * unittests/basic_string_view/element_access/char/front_back.cc
668 (test01): Likewise.
669 (main): Likewise.
670 * unittests/basic_string_view/inserters/char/2.cc (test05):
671 Likewise.
672 (main): Likewise.
673 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
674 (test01): Likewise.
675 (main): Likewise.
676 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
677 (test01): Likewise.
678 (main): Likewise.
679 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
680 Likewise.
681 * unittests/basic_string_view/operations/compare/char/1.cc
682 (test01): Likewise.
683 (main): Likewise.
684 * unittests/basic_string_view/operations/compare/char/13650.cc
685 (test01): Likewise.
686 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
687 Likewise.
688 (main): Likewise.
689 * unittests/basic_string_view/operations/data/char/1.cc (test01):
690 Likewise.
691 (main): Likewise.
692 * unittests/basic_string_view/operations/find/char/1.cc (test01):
693 Likewise.
694 (main): Likewise.
695 * unittests/basic_string_view/operations/find/char/2.cc (test02):
696 Likewise.
697 (main): Likewise.
698 * unittests/basic_string_view/operations/find/char/3.cc (test03):
699 Likewise.
700 (main): Likewise.
701 * unittests/basic_string_view/operations/find/char/4.cc (main):
702 Likewise.
703 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
704 Likewise.
705 (main): Likewise.
706 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
707 Likewise.
708 (main): Likewise.
709 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
710 Likewise.
711 (main): Likewise.
712 * unittests/basic_string_view/operations/substr/char/1.cc
713 (test01): Likewise.
714 (main): Likewise.
715 * unittests/basic_string_view/operators/char/2.cc (main):
716 Likewise.
717 * unittests/optional/assignment/1.cc (test): Likewise.
718 * unittests/optional/assignment/2.cc (test): Likewise.
719 * unittests/optional/assignment/3.cc (test): Likewise.
720 * unittests/optional/assignment/4.cc (test): Likewise.
721 * unittests/optional/assignment/5.cc (test): Likewise.
722 * unittests/optional/assignment/6.cc (test): Likewise.
723 * unittests/optional/assignment/7.cc (test): Likewise.
724 * unittests/optional/cons/copy.cc (test): Likewise.
725 * unittests/optional/cons/default.cc (test): Likewise.
726 * unittests/optional/cons/move.cc (test): Likewise.
727 * unittests/optional/cons/value.cc (test): Likewise.
728 * unittests/optional/in_place.cc (test): Likewise.
729 * unittests/optional/observers/1.cc (test): Likewise.
730 * unittests/optional/observers/2.cc (test): Likewise.
731
732 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
733
734 * tui-win.h (tui_set_var_cmd): Remove.
735 * tui-win.c (tui_set_var_cmd): Make static.
736
737 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
738
739 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
740 rbreak_command_wrapper): Remove.
741 * symtab.c (rbreak_command_wrapper): Remove.
742
743 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
744
745 * inferior.h (info_terminal_command): Remove declaration.
746 * inflow.c (info_terminal_command): Make static.
747
748 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
749
750 * inferior.c (exit_inferior_silent): Remove.
751
752 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
753
754 * dictionary.c (dict_empty, mdict_empty): Remove.
755 * dictionary.c (mdict_empty): Remove.
756
757 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
758
759 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
760 (arc_insn_get_memory_offset): Likewise.
761 (arc_insn_dump): Likewise.
762 * cp-support.c (test_cp_symbol_name_matches): Likewise.
763 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
764 * dictionary.c (dict_iterator_next): Likewise.
765 (dict_iter_match_first): Likewise.
766 (dict_iter_match_next): Likewise.
767 * f-lang.c (evaluate_subexp_f): Likewise.
768 * hppa-tdep.c (hppa_read_pc): Likewise.
769 * i386-tdep.c (i386_floatformat_for_type): Likewise.
770 * parse.c (write_exp_elt_msym): Likewise.
771 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
772 * remote.c (remote_packet_size): Likewise.
773 (remote_notif_stop_parse): Likewise.
774 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
775 * s12z-tdep.c (s12z_disassemble_info): Likewise.
776 * source.c (prepare_path_for_appending): Likewise.
777 * sparc64-linux-tdep.c
778 (sparc64_linux_handle_segmentation_fault); Likewise.
779 * stack.c (frame_selection_by_function_completer): Likewise.
780
781 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
782
783 * completer.c (set_gdb_completion_word_break_characters):
784 Remove.
785
786 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
787
788 * dwarf-index-write.c: Include dwarf-index-write.h.
789 * mi/mi-interp.c: Include mi/mi-interp.h.
790
791 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
792
793 * aarch32-tdep.c: Include aarch32-tdep.h.
794 * aarch32-tdep.h: Forward-declare struct target_desc.
795
796 2019-11-26 Christian Biesinger <cbiesinger@google.com>
797
798 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
799 strerror.
800 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
801 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
802
803 2019-11-25 Tom de Vries <tdevries@suse.de>
804
805 * contrib/words.sh: Add -c option.
806
807 2019-11-25 Christian Biesinger <cbiesinger@google.com>
808
809 * solib.c (solib_find_1): Change int to bool.
810 (exec_file_find): Change int to bool.
811 (solib_find): Change int to bool.
812 (solib_read_symbols): Change int to bool.
813 (solib_used): Change int to bool.
814 (solib_add): Change int to bool.
815 (info_sharedlibrary_command): Change int to bool.
816 (solib_contains_address_p): Change int to bool.
817 (solib_keep_data_in_core): Change int to bool.
818 (in_solib_dynsym_resolve_code): Change int to bool.
819 (reload_shared_libraries_1): Change int to bool.
820 (gdb_sysroot_changed): Change int to bool.
821 * solib.h (solib_read_symbols): Change int to bool.
822 (solib_contains_address_p): Change int to bool.
823 (solib_keep_data_in_core): Change int to bool.
824 (in_solib_dynsym_resolve_code): Change int to bool.
825 (libpthread_name_p): Change int to bool.
826
827 2019-11-25 Luis Machado <luis.machado@linaro.org>
828
829 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
830 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
831 (remote_packet_max_chars): New static global.
832 (show_remote_packet_max_chars): New function.
833 (remote_target::putpkt_binary): Adjust to use new
834 remote_packet_max_chars option.
835 (remote_target::getpkt_or_notif_sane_1): Likewise.
836 (_initialize_remote): Register new remote-packet-max-chars option.
837
838 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
839
840 * m68k-linux-nat.c: Include gdbarch.h.
841
842 2019-11-24 Tom Tromey <tom@tromey.com>
843
844 * symfile.c (read_symbols): Update.
845 * psymtab.c (require_partial_symbols): Change type of "verbose" to
846 bool.
847 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
848 (psym_lookup_symbol, psym_find_last_source_symtab)
849 (psym_forget_cached_source_info, psym_print_stats)
850 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
851 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
852 (psym_map_matching_symbols, psym_expand_symtabs_matching)
853 (psym_find_compunit_symtab_by_address)
854 (maintenance_print_psymbols, maintenance_info_psymtabs)
855 (maintenance_check_psymtabs): Update.
856 * psymtab.h (require_partial_symbols): Change type of "verbose" to
857 bool.
858
859 2019-11-22 Tom Tromey <tom@tromey.com>
860
861 * observable.h: Update comments.
862
863 2019-11-22 Tom Tromey <tromey@adacore.com>
864
865 * ada-tasks.c (ada_task_is_alive): Make parameter const.
866 (print_ada_task_info): Don't try to fetch thread id if task is not
867 alive.
868
869 2019-11-22 Christian Biesinger <cbiesinger@google.com>
870
871 * ada-exp.y: Update.
872 * ada-lang.c (sort_choices): Update.
873 (ada_print_symbol_signature): Update.
874 (resolve_subexp): Update.
875 (ada_parse_renaming): Update.
876 (ada_read_renaming_var_value): Update.
877 (lesseq_defined_than): Update.
878 (remove_extra_symbols): Update.
879 (remove_irrelevant_renamings): Update.
880 (ada_add_block_symbols): Update.
881 (ada_collect_symbol_completion_matches): Update.
882 (ada_is_renaming_symbol): Update.
883 (aggregate_assign_from_choices): Update.
884 (ada_evaluate_subexp): Update.
885 (ada_has_this_exception_support): Update.
886 (ada_is_non_standard_exception_sym): Update.
887 (ada_add_exceptions_from_frame): Update.
888 (ada_add_global_exceptions): Update.
889 (ada_print_subexp): Update.
890 * ax-gdb.c (gen_var_ref): Update.
891 (gen_maybe_namespace_elt): Update.
892 (gen_expr_for_cast): Update.
893 (gen_expr): Update.
894 * block.h: Update.
895 * blockframe.c (find_pc_partial_function): Update.
896 * breakpoint.c (print_breakpoint_location): Update.
897 (update_static_tracepoint): Update.
898 * btrace.c (ftrace_print_function_name): Update.
899 (ftrace_function_switched): Update.
900 * buildsym.c (find_symbol_in_list): Update.
901 * c-exp.y: Update.
902 * c-typeprint.c (c_print_typedef): Update.
903 (c_type_print_template_args): Update.
904 * cli/cli-cmds.c (edit_command): Update.
905 (list_command): Update.
906 (print_sal_location): Update.
907 * coffread.c (patch_opaque_types): Update.
908 (process_coff_symbol): Update.
909 (coff_read_enum_type): Update.
910 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
911 (convert_one_symbol): Update.
912 (hash_symname): Update.
913 (eq_symname): Update.
914 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
915 * compile/compile-cplus-types.c (debug_print_scope): Update.
916 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
917 * compile/compile-object-load.c (get_out_value_type): Update.
918 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
919 (search_symbol_list): Update.
920 (cp_lookup_symbol_imports_or_template): Update.
921 * cp-support.c (overload_list_add_symbol): Update.
922 * ctfread.c (psymtab_to_symtab): Update.
923 * dbxread.c (cp_set_block_scope): Update.
924 * dictionary.c (iter_match_first_hashed): Update.
925 (iter_match_next_hashed): Update.
926 (insert_symbol_hashed): Update.
927 (iter_match_next_linear): Update.
928 * dictionary.h: Update.
929 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
930 (locexpr_describe_location_piece): Update.
931 (locexpr_describe_location_1): Update.
932 (locexpr_generate_c_location): Update.
933 (loclist_describe_location): Update.
934 (loclist_generate_c_location): Update.
935 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
936 (read_func_scope): Update.
937 (process_enumeration_scope): Update.
938 (new_symbol): Update.
939 (dwarf2_const_value): Update.
940 (dwarf2_symbol_mark_computed): Update.
941 * eval.c (evaluate_funcall): Update.
942 (evaluate_subexp_standard): Update.
943 * expprint.c (print_subexp_standard): Update.
944 (dump_subexp_body_standard): Update.
945 * f-valprint.c (info_common_command_for_block): Update.
946 * findvar.c (get_hosting_frame): Update.
947 (default_read_var_value): Update.
948 * go-lang.c (go_symbol_package_name): Update.
949 * guile/scm-block.c (bkscm_print_block_smob): Update.
950 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
951 (gdbscm_symbol_name): Update.
952 (gdbscm_symbol_linkage_name): Update.
953 (gdbscm_symbol_print_name): Update.
954 * infcall.c (get_function_name): Update.
955 * infcmd.c (jump_command): Update.
956 (finish_command): Update.
957 * infrun.c (insert_exception_resume_breakpoint): Update.
958 * linespec.c (canonicalize_linespec): Update.
959 (create_sals_line_offset): Update.
960 (convert_linespec_to_sals): Update.
961 (complete_label): Update.
962 (find_label_symbols_in_block): Update.
963 * m2-typeprint.c (m2_print_typedef): Update.
964 * mdebugread.c (mdebug_reg_to_regnum): Update.
965 (parse_symbol): Update.
966 (mylookup_symbol): Update.
967 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
968 (list_args_or_locals): Update.
969 * objc-lang.c (compare_selectors): Update.
970 (info_selectors_command): Update.
971 (compare_classes): Update.
972 (info_classes_command): Update.
973 (find_imps): Update.
974 * p-typeprint.c (pascal_print_typedef): Update.
975 * printcmd.c (build_address_symbolic): Update.
976 (info_address_command): Update.
977 (print_variable_and_value): Update.
978 * python/py-framefilter.c (extract_sym): Update.
979 (py_print_single_arg): Update.
980 * python/py-symbol.c (sympy_str): Update.
981 (sympy_get_name): Update.
982 (sympy_get_linkage_name): Update.
983 * python/python.c (gdbpy_rbreak): Update.
984 * record-btrace.c (btrace_get_bfun_name): Update.
985 (btrace_call_history): Update.
986 * rust-lang.c (rust_print_typedef): Update.
987 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
988 * stabsread.c (stab_reg_to_regnum): Update.
989 (define_symbol): Update.
990 (read_enum_type): Update.
991 (common_block_end): Update.
992 (cleanup_undefined_types_1): Update.
993 (scan_file_globals): Update.
994 * stack.c (print_frame_arg): Update.
995 (print_frame_args): Update.
996 (find_frame_funname): Update.
997 (info_frame_command_core): Update.
998 (iterate_over_block_locals): Update.
999 (print_block_frame_labels): Update.
1000 (do_print_variable_and_value): Update.
1001 (iterate_over_block_arg_vars): Update.
1002 (return_command): Update.
1003 * symmisc.c (dump_symtab_1): Update.
1004 (print_symbol): Update.
1005 * symtab.c (eq_symbol_entry): Update.
1006 (symbol_cache_dump): Update.
1007 (lookup_language_this): Update.
1008 (find_pc_sect_line): Update.
1009 (skip_prologue_sal): Update.
1010 (symbol_search::compare_search_syms): Update.
1011 (treg_matches_sym_type_name): Update.
1012 (search_symbols): Update.
1013 (print_symbol_info): Update.
1014 (rbreak_command): Update.
1015 (completion_list_add_symbol): Update.
1016 (find_gnu_ifunc): Update.
1017 (get_symbol_address): Update.
1018 (search_module_symbols): Update.
1019 (info_module_subcommand): Update.
1020 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1021 (SYMBOL_LINKAGE_NAME): Remove.
1022 (SYMBOL_DEMANGLED_NAME): Remove.
1023 (SYMBOL_PRINT_NAME): Remove.
1024 (SYMBOL_SEARCH_NAME): Remove.
1025 * tracepoint.c (set_traceframe_context): Update.
1026 (validate_actionline): Update.
1027 (collection_list::collect_symbol): Update.
1028 (encode_actions_1): Update.
1029 (info_scope_command): Update.
1030 (print_one_static_tracepoint_marker): Update.
1031 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1032 * valops.c (address_of_variable): Update.
1033 (find_overload_match): Update.
1034 (find_oload_champ): Update.
1035
1036 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1037
1038 * ada-lang.c (ada_lookup_simple_minsym): Update.
1039 (ada_collect_symbol_completion_matches): Update.
1040 * ada-tasks.c (read_atcb): Update.
1041 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1042 (amd64_windows_skip_trampoline_code): Update.
1043 * arm-tdep.c (skip_prologue_function): Update.
1044 (arm_skip_stack_protector): Update.
1045 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1046 (arm_wince_skip_main_prologue): Update.
1047 * ax-gdb.c (gen_expr): Update.
1048 * block.c (call_site_for_pc): Update.
1049 * blockframe.c (find_pc_partial_function): Update.
1050 * breakpoint.c (set_breakpoint_location_function): Update.
1051 * btrace.c (ftrace_print_function_name): Update.
1052 (ftrace_function_switched): Update.
1053 * c-valprint.c (print_unpacked_pointer): Update.
1054 * coffread.c (coff_symfile_read): Update.
1055 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1056 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1057 * dwarf-index-write.c (write_psymbols): Update.
1058 * dwarf2loc.c (call_site_to_target_addr): Update.
1059 (func_verify_no_selftailcall): Update.
1060 (tailcall_dump): Update.
1061 (call_site_find_chain_1): Update.
1062 (dwarf_expr_reg_to_entry_parameter): Update.
1063 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1064 * eval.c (evaluate_funcall): Update.
1065 (evaluate_subexp_standard): Update.
1066 (evaluate_subexp_for_sizeof): Update.
1067 * expprint.c (print_subexp_standard): Update.
1068 (dump_subexp_body_standard): Update.
1069 * frame.c (get_prev_frame_always_1): Update.
1070 * frv-tdep.c (frv_skip_main_prologue): Update.
1071 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1072 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1073 (gnuv3_get_typename_from_type_info): Update.
1074 (gnuv3_skip_trampoline): Update.
1075 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1076 * i386-tdep.c (i386_skip_main_prologue): Update.
1077 (i386_pe_skip_trampoline_code): Update.
1078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1079 * infcall.c (get_function_name): Update.
1080 * linespec.c (minsym_found): Update.
1081 * linux-fork.c (info_checkpoints_command): Update.
1082 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1083 (m32c_m16c_pointer_to_address): Update.
1084 * maint.c (maintenance_translate_address): Update.
1085 * minsyms.c (add_minsym_to_hash_table): Update.
1086 (add_minsym_to_demangled_hash_table): Update.
1087 (lookup_minimal_symbol_mangled): Update.
1088 (lookup_minimal_symbol_demangled): Update.
1089 (lookup_minimal_symbol_linkage): Update.
1090 (lookup_minimal_symbol_text): Update.
1091 (lookup_minimal_symbol_by_pc_name): Update.
1092 (minimal_symbol_is_less_than): Update.
1093 (compact_minimal_symbols): Update.
1094 (build_minimal_symbol_hash_tables): Update.
1095 (find_solib_trampoline_target): Update.
1096 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1097 (mips_skip_pic_trampoline_code): Update.
1098 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1099 * objc-lang.c (info_selectors_command): Update.
1100 (info_classes_command): Update.
1101 (find_methods): Update.
1102 (find_imps): Update.
1103 * p-valprint.c (pascal_val_print): Update.
1104 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1106 * printcmd.c (build_address_symbolic): Update.
1107 (info_symbol_command): Update.
1108 * psymtab.c (psymbol_name_matches): Update.
1109 (match_partial_symbol): Update.
1110 (lookup_partial_symbol): Update.
1111 (print_partial_symbols): Update.
1112 (sort_pst_symbols): Update.
1113 (maintenance_check_psymtabs): Update.
1114 * python/py-framefilter.c (py_print_frame): Update.
1115 * python/python.c (gdbpy_rbreak): Update.
1116 * record-btrace.c (btrace_get_bfun_name): Update.
1117 (btrace_call_history): Update.
1118 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1119 (rs6000_skip_trampoline_code): Update.
1120 * sol-thread.c (info_cb): Update.
1121 * stabsread.c (scan_file_globals): Update.
1122 * stack.c (find_frame_funname): Update.
1123 (info_frame_command_core): Update.
1124 * symmisc.c (dump_msymbols): Update.
1125 * symtab.c (symbol_natural_name): Rename to..,
1126 (general_symbol_info::natural_name): ...this.
1127 (symbol_demangled_name): Rename to...
1128 (general_symbol_info::demangled_name): ...this.
1129 (symbol_search_name): Rename to...
1130 (general_symbol_info::search_name): ...this.
1131 (symbol_matches_search_name): Update.
1132 (find_pc_sect_line): Update.
1133 (skip_prologue_sal): Update.
1134 (search_symbols): Update.
1135 (print_msymbol_info): Update.
1136 (rbreak_command): Update.
1137 (completion_list_add_msymbol): Update.
1138 (completion_list_objc_symbol): Update.
1139 (get_msymbol_address): Update.
1140 * symtab.h (struct general_symbol_info): Add member functions
1141 natural_name (), linkage_name (), print_name (), demangled_name (),
1142 and search_name ().
1143 (SYMBOL_NATURAL_NAME): Update.
1144 (symbol_natural_name): Move to a member function on general_symbol_info.
1145 (SYMBOL_DEMANGLED_NAME): Update.
1146 (symbol_demangled_name): Move to a member function on
1147 general_symbol_info.
1148 (SYMBOL_SEARCH_NAME): Update.
1149 (symbol_search_name): Move to a member function on general_symbol_info.
1150 (MSYMBOL_NATURAL_NAME): Remove.
1151 (MSYMBOL_LINKAGE_NAME): Remove.
1152 (MSYMBOL_PRINT_NAME): Remove.
1153 (MSYMBOL_DEMANGLED_NAME): Remove.
1154 (MSYMBOL_SEARCH_NAME): Remove.
1155 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1156
1157 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1158
1159 * symtab.c (create_demangled_names_hash): Use per_bfd->
1160 minimal_symbol_count for computing the initial size, if greater
1161 than our default size.
1162
1163 2019-11-22 Tom de Vries <tdevries@suse.de>
1164
1165 * contrib/words.sh: Improve words extraction.
1166
1167 2019-11-22 Tom de Vries <tdevries@suse.de>
1168
1169 * contrib/words.sh: Combine sed invocations.
1170
1171 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1172
1173 * Makefile.in: Update.
1174 * demangle.c: Rename to...
1175 * gdb-demangle.c: ..this.
1176 (is_cplus_marker): Change return type to bool.
1177 (_initialize_demangler): Rename to...
1178 (_initialize_gdb_demangle): ...this.
1179 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1180 * symtab.h (demangle): Remove declaration; instead include
1181 gdb-demangle.h.
1182
1183 2019-11-21 Tom Tromey <tromey@adacore.com>
1184
1185 * gdbsupport/format.c (format_pieces): Parse %I64d.
1186 * unittests/format_pieces-selftests.c (test_windows_formats): New
1187 function.
1188 (run_tests): Call it.
1189
1190 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1191
1192 Byte reverse display of variables with DW_END_big, DW_END_little
1193 (DW_AT_endianity) dwarf attributes if different than the native
1194 byte order.
1195 * ada-lang.c (ada_value_binop):
1196 Use type_byte_order instead of gdbarch_byte_order.
1197 * ada-valprint.c (printstr):
1198 (ada_val_print_string):
1199 * ada-lang.c (value_pointer):
1200 (ada_value_binop):
1201 Use type_byte_order instead of gdbarch_byte_order.
1202 * c-lang.c (c_get_string):
1203 Use type_byte_order instead of gdbarch_byte_order.
1204 * c-valprint.c (c_val_print_array):
1205 Use type_byte_order instead of gdbarch_byte_order.
1206 * cp-valprint.c (cp_print_class_member):
1207 Use type_byte_order instead of gdbarch_byte_order.
1208 * dwarf2loc.c (rw_pieced_value):
1209 Use type_byte_order instead of gdbarch_byte_order.
1210 * dwarf2read.c (read_base_type): Handle DW_END_big,
1211 DW_END_little
1212 * f-lang.c (f_get_encoding):
1213 Use type_byte_order instead of gdbarch_byte_order.
1214 * findvar.c (default_read_var_value):
1215 Use type_byte_order instead of gdbarch_byte_order.
1216 * gdbtypes.c (check_types_equal):
1217 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1218 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1219 and TYPE_ENDIANITY_LITTLE if set.
1220 (type_byte_order): new function.
1221 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1222 (struct main_type) <flag_endianity_not_default>:
1223 New field.
1224 (type_byte_order): New function.
1225 * infcmd.c (default_print_one_register_info):
1226 Use type_byte_order instead of gdbarch_byte_order.
1227 * p-lang.c (pascal_printstr):
1228 Use type_byte_order instead of gdbarch_byte_order.
1229 * p-valprint.c (pascal_val_print):
1230 Use type_byte_order instead of gdbarch_byte_order.
1231 * printcmd.c (print_scalar_formatted):
1232 Use type_byte_order instead of gdbarch_byte_order.
1233 * solib-darwin.c (darwin_current_sos):
1234 Use type_byte_order instead of gdbarch_byte_order.
1235 * solib-svr4.c (solib_svr4_r_ldsomap):
1236 Use type_byte_order instead of gdbarch_byte_order.
1237 * stap-probe.c (stap_modify_semaphore):
1238 Use type_byte_order instead of gdbarch_byte_order.
1239 * target-float.c (target_float_same_format_p):
1240 Use type_byte_order instead of gdbarch_byte_order.
1241 * valarith.c (scalar_binop):
1242 (value_bit_index):
1243 Use type_byte_order instead of gdbarch_byte_order.
1244 * valops.c (value_cast):
1245 Use type_byte_order instead of gdbarch_byte_order.
1246 * valprint.c (generic_emit_char):
1247 (generic_printstr):
1248 (val_print_string):
1249 Use type_byte_order instead of gdbarch_byte_order.
1250 * value.c (unpack_long):
1251 (unpack_bits_as_long):
1252 (unpack_value_bitfield):
1253 (modify_field):
1254 (pack_long):
1255 (pack_unsigned_long):
1256 Use type_byte_order instead of gdbarch_byte_order.
1257 * findvar.c (unsigned_pointer_to_address):
1258 (signed_pointer_to_address):
1259 (unsigned_address_to_pointer):
1260 (address_to_signed_pointer):
1261 (default_read_var_value):
1262 (default_value_from_register):
1263 Use type_byte_order instead of gdbarch_byte_order.
1264 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1265 Use type_byte_order instead of gdbarch_byte_order.
1266 * riscv-tdep.c (riscv_print_one_register_info):
1267 Use type_byte_order instead of gdbarch_byte_order.
1268
1269 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1272 (current_ui_gdb_stdin_ptr): Likewise.
1273 (current_ui_gdb_stderr_ptr): Likewise.
1274 (current_ui_gdb_stdlog_ptr): Likewise.
1275 (current_ui_current_uiout_ptr): Likewise.
1276 (gen_ret_current_ui_field_ptr): Remove.
1277
1278 2019-11-21 Tom de Vries <tdevries@suse.de>
1279
1280 PR gdb/24956
1281 * cli/cli-script.c (execute_control_command): Only switch to
1282 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1283
1284 2019-11-19 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1287 Now static. Change type of "name".
1288 (tui_set_win_height_command): Don't copy "arg".
1289 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1290 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1291
1292 2019-11-19 Ali Tamur <tamur@google.com>
1293
1294 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1295 "if (attr != nullptr)".
1296 (dwarf2_find_base_address): Likewise.
1297 (dwarf2_build_include_psymtabs): Likewise.
1298 (read_cutu_die_from_dwo): Likewise.
1299 (read_func_scope): Likewise.
1300 (read_call_site_scope): Likewise.
1301 (dwarf2_get_pc_bounds): Likewise.
1302 (dwarf2_record_block_ranges): Likewise.
1303 (dwarf2_add_field): Likewise.
1304 (dwarf2_add_member_fn): Likewise.
1305 (read_structure_type): Likewise.
1306 (read_enumeration_type): Likewise.
1307 (read_array_type): Likewise.
1308 (read_array_order): Likewise.
1309 (read_set_type): Likewise.
1310 (read_common_block): Likewise.
1311 (read_tag_reference_type): Likewise.
1312 (read_tag_string_type): Likewise.
1313 (read_subroutine_type): Likewise.
1314 (read_base_type): Likewise.
1315 (read_subrange_type): Likewise.
1316 (new_symbol): Likewise.
1317 (prepare_one_comp_unit): Likewise.
1318
1319 2019-11-19 Tom Tromey <tromey@adacore.com>
1320
1321 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1322 result in error when DebugActiveProcess fails.
1323
1324 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1325 Pedro Alves <palves@redhat.com>
1326
1327 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1328 * target.c (target_stack::push): Call 'unpush' if there's a
1329 target on top of the stack.
1330
1331 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1332
1333 * python/py-block.c (blpy_dealloc): Call tp_free.
1334 (blpy_block_syms_dealloc): Likewise.
1335 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1336 * python/py-inferior.c (infpy_dealloc): Likewise.
1337 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1338 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1339 * python/py-symbol.c (sympy_dealloc): Likewise.
1340 * python/py-symtab.c (stpy_dealloc): Likewise.
1341 * python/py-type.c (typy_iterator_dealloc): Likewise.
1342
1343 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1344
1345 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1346 constructor instead of using a class initializer.
1347
1348 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1349
1350 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1351 * configure: Regenerate.
1352 * configure.ac: Don't source common.host.
1353 * gdbsupport/common.host: Remove.
1354 * gdbsupport/mingw-strerror.c: Remove.
1355 * gdbsupport/posix-strerror.c: Rename to...
1356 * gdbsupport/safe-strerror.c: ...this.
1357
1358 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1359
1360 * maint.c (scoped_command_stats::print_time): Use localtime_r
1361 instead of localtime (provided through gnulib if necessary).
1362 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1363 of ctime.
1364
1365 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1366
1367 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1368 avoid compile errors.
1369
1370 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1371
1372 * config.in: Regenerate.
1373 * configure: Regenerate.
1374 * gdbsupport/common.m4: No longer check for strerror_r.
1375 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1376 POSIX version of strerror_r, now that gnulib provides it if
1377 necessary.
1378
1379 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1380
1381 * README (`configure' options): Update.
1382
1383 2019-11-14 Tom Tromey <tromey@adacore.com>
1384
1385 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1386 expected type for the RHS if the LHS is a convenience variable.
1387
1388 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1391 Provide explicit default and copy constructor.
1392
1393 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1394
1395 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1396 only call Py_INCREF (newbp) in the bppy_pending_object case.
1397
1398 2019-11-13 Tom Tromey <tromey@adacore.com>
1399
1400 PR build/25182:
1401 * psympriv.h (partial_symbol): Remove static assert.
1402 * symtab.h (general_symbol_info, symbol): Remove static assert.
1403
1404 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * gdbsupport/format.c (format_pieces::format_pieces): Support
1407 printf 'z' size modifier.
1408 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1409 * printcmd.c (ui_printf): Handle size_t_arg.
1410 * ui-out.c (ui_out::vmessage): Likewise.
1411 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1412 function.
1413 (run_tests): Call test_format_int_sizes.
1414
1415 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1416
1417 * ada-exp.y (write_ambiguous_var): Update.
1418 * buildsym.c (add_symbol_to_list): Update.
1419 * dwarf2read.c (read_variable): Update.
1420 (new_symbol): Update.
1421 * jit.c (finalize_symtab): Update.
1422 * language.c (language_alloc_type_symbol): Update.
1423 * symtab.c (fixup_symbol_section): Update.
1424 (initialize_objfile_symbol_1): Move code to...
1425 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1426 (allocate_symbol): Update.
1427 (allocate_template_symbol): Update.
1428 (get_symbol_address): Update.
1429 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1430 of having as a field, and add a constructor.
1431 (SYMBOL_VALUE): Update.
1432 (SYMBOL_VALUE_ADDRESS): Update.
1433 (SET_SYMBOL_VALUE_ADDRESS): Update.
1434 (SYMBOL_VALUE_BYTES): Update.
1435 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1436 (SYMBOL_BLOCK_VALUE): Update.
1437 (SYMBOL_VALUE_CHAIN): Update.
1438 (SYMBOL_LANGUAGE): Update.
1439 (SYMBOL_SECTION): Update.
1440 (SYMBOL_OBJ_SECTION): Update.
1441 (SYMBOL_SET_LANGUAGE): Update.
1442 (SYMBOL_SET_LINKAGE_NAME): Update.
1443 (SYMBOL_SET_NAMES): Update.
1444 (SYMBOL_NATURAL_NAME): Update.
1445 (SYMBOL_LINKAGE_NAME): Update.
1446 (SYMBOL_DEMANGLED_NAME): Update.
1447 (SYMBOL_SEARCH_NAME): Update.
1448 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1449 (struct symbol): Update.
1450 (struct template_symbol): Update.
1451 (struct rust_vtable_symbol): Update.
1452 * xcoffread.c (SYMBOL_DUP): Update.
1453
1454 2019-11-12 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-layout.c (show_layout): Set current_layout.
1457 (show_source_disasm_command, show_data)
1458 (show_source_or_disasm_and_command): Don't set current_layout.
1459
1460 2019-11-12 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1463
1464 2019-11-12 Tom Tromey <tom@tromey.com>
1465
1466 * tui/tui-win.c (resize_message): New global.
1467 (show_tui_resize_message): New function.
1468 (tui_async_resize_screen): Print message if requested.
1469 (_initialize_tui_win): Add tui-resize-message setting.
1470 * NEWS: Add entry for new commands.
1471
1472 2019-11-11 Tom Tromey <tom@tromey.com>
1473
1474 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1475 functions.
1476
1477 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1478
1479 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1480
1481 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1484 function.
1485 * python/python-internal.h (gdbpy_lookup_static_symbols):
1486 Declare new function.
1487 * python/python.c (python_GdbMethods): Add
1488 gdb.lookup_static_symbols method.
1489 * NEWS: Mention gdb.lookup_static_symbols.
1490
1491 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1494 static block of current object file first. Also fix typo in
1495 header comment.
1496
1497 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * stack.c (set_last_displayed_sal): Delete.
1500 (last_displayed_sal_valid): Delete.
1501 (last_displayed_pspace): Delete.
1502 (last_displayed_addr): Delete.
1503 (last_displayed_symtab): Delete.
1504 (last_displayed_line): Delete.
1505 (class last_displayed_symtab_info_type): New.
1506 (last_displayed_symtab_info): New static global variable.
1507 (print_frame_info): Call methods on last_displayed_symtab_info.
1508 (clear_last_displayed_sal): Update header comment, and make use of
1509 last_displayed_symtab_info.
1510 (last_displayed_sal_is_valid): Likewise.
1511 (get_last_displayed_pspace): Likewise.
1512 (get_last_displayed_addr): Likewise.
1513 (get_last_displayed_symtab): Likewise.
1514 (get_last_displayed_line): Likewise.
1515 (get_last_displayed_sal): Likewise.
1516 * stack.h (clear_last_displayed_sal): Update header comment.
1517 (last_displayed_sal_is_valid): Likewise.
1518 (get_last_displayed_pspace): Likewise.
1519 (get_last_displayed_addr): Likewise.
1520 (get_last_displayed_symtab): Likewise.
1521 (get_last_displayed_line): Likewise.
1522 (get_last_displayed_sal): Likewise.
1523
1524 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * stack.c (frame_show_address): Convert return type to bool.
1527 * stack.h (frame_show_address): Likewise, and update header
1528 comment.
1529
1530 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1533 * unittests/vec-utils-selftests.c: New file.
1534 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1535
1536 2019-11-10 Tom Tromey <tom@tromey.com>
1537
1538 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1539 (tui_highlight_win): Likewise.
1540 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1541 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1542 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1543 Don't set can_highlight.
1544
1545 2019-11-10 Tom Tromey <tom@tromey.com>
1546
1547 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1548 Remove unused declaration.
1549
1550 2019-11-08 Tom Tromey <tromey@adacore.com>
1551
1552 * top.c (read_command_file): Update.
1553 (command_line_input): Make return type const.
1554 * python/py-gdb-readline.c: Update.
1555 * linespec.c (decode_line_2): Update.
1556 * defs.h (command_line_input): Make return type const.
1557 * cli/cli-script.c (read_next_line): Make return type const.
1558 * ada-lang.c (get_selections): Update.
1559
1560 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1561
1562 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1563 * mi/mi-main.c (output_cores): Likewise.
1564 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1565 (linux_xfer_osdata_modules): Likewise.
1566 * remote.c (register_remote_support_xml): Likewise.
1567 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1568 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1569
1570 2019-11-06 Tom Tromey <tom@tromey.com>
1571
1572 * tui/tui-interp.c: Don't include readline.h.
1573 * tui/tui-hooks.c: Don't include readline.h.
1574 * symmisc.c: Include tilde.h, not readline.h.
1575 * symfile.c: Include tilde.h, not readline.h.
1576 * source.c: Include tilde.h, not readline.h.
1577 * solib.c: Include tilde.h, not readline.h.
1578 * psymtab.c: Include tilde.h, not readline.h.
1579 * exec.c: Include tilde.h, not readline.h.
1580 * corelow.c: Include tilde.h, not readline.h.
1581 * cli/cli-dump.c: Include tilde.h, not readline.h.
1582 * cli/cli-cmds.c: Don't include readline.h.
1583
1584 2019-11-05 Tom Tromey <tom@tromey.com>
1585
1586 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1587 (tui_disassemble): Set addr_size.
1588 (tui_disasm_window::set_contents): Use addr_size.
1589
1590 2019-11-05 Tom Tromey <tom@tromey.com>
1591
1592 * rust-lang.c (rust_language_defn): Update.
1593 * python/py-value.c (valpy_string): Call c_get_string.
1594 * p-lang.c (pascal_language_defn): Update.
1595 * opencl-lang.c (opencl_language_defn): Update.
1596 * objc-lang.c (objc_language_defn): Update.
1597 * m2-lang.c (m2_language_defn): Update.
1598 * language.c (unknown_language_defn, auto_language_defn): Update.
1599 (default_get_string): Remove.
1600 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1601 * go-lang.c (go_language_defn): Update.
1602 * f-lang.c (f_language_defn): Update.
1603 * d-lang.c (d_language_defn): Update.
1604 * c-lang.c (c_language_defn, cplus_language_defn)
1605 (asm_language_defn, minimal_language_defn): Update.
1606 * ada-lang.c (ada_language_defn): Update.
1607 * language.h (struct language_defn) <la_get_string>: Remove.
1608 (LA_GET_STRING): Remove.
1609 (default_get_string): Don't declare.
1610
1611 2019-11-05 Tom Tromey <tom@tromey.com>
1612
1613 * tui/tui-source.h (struct tui_source_window): Inline
1614 constructor. Remove destructor.
1615 <style_changed, m_observable>: Move to superclass.
1616 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1617 (struct tui_source_window_base): Move private members to end.
1618 <style_changed, m_observable>: Move from tui_source_window.
1619 * tui/tui-winsource.c (tui_copy_source_line): Move from
1620 tui-source.c. Rename from copy_source_line. Add special handling
1621 for negative line number.
1622 (tui_source_window_base::style_changed): Move from
1623 tui_source_window.
1624 (tui_source_window_base): Register observer.
1625 (~tui_source_window_base): New.
1626 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1627 rename.
1628 (tui_source_window::set_contents): Use tui_copy_source_line.
1629 (tui_source_window::tui_source_window): Move to tui-source.h.
1630 (tui_source_window::~tui_source_window): Remove.
1631 (tui_source_window::style_changed): Move to superclass.
1632 * tui/tui-disasm.c (tui_disassemble): Create string file with
1633 styling, when possible. Add "addr_size" parameter.
1634 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1635 Don't compute maximum size.
1636 (len_without_escapes): New function
1637
1638 2019-11-05 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1641 std::string.
1642 * tui/tui-winsource.c (tui_show_source_line): Update.
1643 * tui/tui-source.c (tui_source_window::set_contents): Update.
1644 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1645
1646 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1647
1648 * symtab.h (gdb_static_assert): Put && operator at the beginning
1649 of the line instead of the end.
1650
1651 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1652
1653 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1654 and sizeof (symbol).
1655 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1656
1657 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1658
1659 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1660 * configure.host: Mark *-*-solaris2.10* obsolete.
1661 * configure.tgt: Mark Solaris < 11 obsolete.
1662 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1663 Update target triplet.
1664
1665 2019-11-01 Tom Tromey <tromey@adacore.com>
1666
1667 * utils.c (print_sys_errmsg): Simplify.
1668
1669 2019-11-01 Tom Tromey <tromey@adacore.com>
1670
1671 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1672
1673 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1674
1675 * configure: Regenerate.
1676 * configure.ac: Remove check for strerror_r.
1677 * gdbsupport/common.m4: Check for strerror_r.
1678
1679 2019-11-01 Luis Machado <luis.machado@linaro.org>
1680
1681 PR gdb/25124
1682
1683 * arm-tdep.c (arm_per_objfile): Rename to ...
1684 (arm_per_bfd): ... this.
1685 (arm_objfile_data_key): Rename to ...
1686 (arm_bfd_data_key): ... this.
1687 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1688 data.
1689 (arm_record_special_symbol): Likewise.
1690
1691 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1694 end.
1695 * c-typeprint.c (c_print_typedef): Likewise.
1696 * f-typeprint.c (f_print_typedef): Likewise.
1697 * m2-typeprint.c (m2_print_typedef): Likewise.
1698 * p-typeprint.c (pascal_print_typedef): Likewise.
1699 * rust-lang.c (rust_print_typedef): Likewise.
1700 * symtab.c (print_symbol_info): Print a newline after calling
1701 typedef_print.
1702
1703 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * symtab.c (info_module_cmdlist): New variable.
1706 (info_module_command): New function.
1707 (search_module_symbols): New function.
1708 (info_module_subcommand): New function.
1709 (struct info_modules_var_func_options): New struct.
1710 (info_modules_var_func_options_defs): New variable.
1711 (make_info_modules_var_func_options_def_group): New function.
1712 (info_module_functions_command): New function.
1713 (info_module_variables_command): New function.
1714 (info_module_var_func_command_completer): New function.
1715 (_initialize_symtab): Register new 'info module functions' and
1716 'info module variables' commands.
1717 * symtab.h (typedef symbol_search_in_module): New typedef.
1718 (search_module_symbols): Declare new function.
1719 * NEWS: Mention new commands.
1720
1721 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1722
1723 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1724 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1725 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1726 MODULES_DOMAIN.
1727 (scan_partial_symbols): Only create partial module symbols for non
1728 declarations.
1729 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1730 and MODULES_DOMAIN.
1731 * symtab.c (search_domain_name): Likewise.
1732 (search_symbols): Likewise.
1733 (print_symbol_info): Likewise.
1734 (symtab_symbol_info): Likewise.
1735 (info_modules_command): New function.
1736 (_initialize_symtab): Register 'info modules' command.
1737 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1738 * NEWS: Mention new 'info modules' command.
1739
1740 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1741
1742 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1743 and $_gdb_maint_setting_str.
1744
1745 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1746
1747 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1748 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1749 (str_value_from_setting, gdb_setting_str_internal_fn)
1750 (gdb_maint_setting_str_internal_fn): New functions.
1751 (_initialize_cli_cmds): Define the new convenience functions.
1752 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1753 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1754
1755 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1756
1757 * agent.c (set_can_use_agent): When the setting is turned on,
1758 look up agent symbols if we don't have them yet.
1759 (agent_new_objfile): Don't look up agent symbols when the agent
1760 setting is off.
1761
1762 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1763
1764 * config.in: Regenerate.
1765
1766 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1767
1768 * configure: Regenerate.
1769 * configure.ac: Check for strerror_r.
1770 * gdbsupport/common-utils.h (safe_strerror): Change return value
1771 to const char * and document that this function is now threadsafe.
1772 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1773 thread_local and call strerror_r, if available.
1774 * utils.c (perror_string): Update.
1775 (print_sys_errmsg): Update.
1776
1777 2019-10-31 Luis Machado <luis.machado@linaro.org>
1778
1779 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1780 objfile_key.
1781 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1782 objfile to fetch per-bfd data.
1783 (arm_find_exidx_entry): Likewise.
1784
1785 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1786
1787 * gdbsupport/agent.c (debug_agent): Change type to bool.
1788 (use_agent): Likewise.
1789 (all_agent_symbols_look_up): Likewise.
1790 (agent_loaded_p): Change return value to bool.
1791 (agent_look_up_symbols): Update.
1792 (agent_capability_check): Change return value to bool.
1793 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1794 (debug_agent): Change type to bool.
1795 (use_agent): Likewise.
1796 (agent_capability_check): Change return value to bool.
1797
1798 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1799
1800 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1801 (build_minimal_symbol_hash_tables): Code to clear the table moved
1802 to clear_minimal_symbol_hash_tables.
1803 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1804 when needed.
1805
1806 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * infcmd.c: Remove includes.
1809 * infrun.c: Remove includes.
1810
1811 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1814 (grow_vect): Remove declaration.
1815 (ada_type_of_array): Remove declaration.
1816 (ada_update_initial_language): Remove declaration.
1817 (ada_fold_name): Remove declaration.
1818 (ada_fill_in_ada_prototype): Remove declaration.
1819 (user_select_syms): Remove declaration.
1820 (get_selections): Remove declaration.
1821 (ada_tag_type): Remove declaration.
1822 (ada_value_tag): Remove declaration.
1823 (ada_is_others_clause): Remove declaration.
1824 (ada_in_variant): Remove declaration.
1825 (ada_value_struct_elt): Remove declaration.
1826 (ada_attribute_name): Remove declaration.
1827 (ada_system_address_type): Remove declaration.
1828 * ada-lang.c (ada_watch_location_expression): Make static.
1829 (GROW_VECT): Move here from ada-lang.h.
1830 (grow_vect): Make static.
1831 (ada_update_initial_language): Make static.
1832 (ada_fold_name): Make static.
1833 (ada_type_of_array): Make static.
1834 (encoded_ordered_before): Move up.
1835 (sort_choices): Move up.
1836 (print_signatures): Move up.
1837 (ada_print_symbol_signature): Move up.
1838 (get_selections): Move up and make static.
1839 (user_select_syms): Move up and make static.
1840 (ada_value_struct_elt): Move up and make static.
1841 (ada_tag_type): Make static.
1842 (ada_value_tag): Make static.
1843 (ada_is_others_clause): Make static.
1844 (ada_in_variant): Make static.
1845 (ada_attribute_name): Make static.
1846
1847 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * ada-lang.c: Remove includes.
1850 * ada-typeprint.c: Remove includes.
1851 * ada-valprint.c: Remove includes.
1852
1853 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * addrmap.c: Add static assertions of type size, moved from
1856 _initialize_addrmap.
1857 (_initialize_addrmap): Remove.
1858
1859 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1860
1861 * coffread.c (record_minimal_symbol): Update.
1862 (process_coff_symbol): Update.
1863 * dbxread.c (read_dbx_symtab): Update.
1864 * dwarf2read.c (add_partial_symbol): Update.
1865 (fixup_go_packaging): Update.
1866 (load_partial_dies): Update.
1867 (new_symbol): Update.
1868 * elfread.c (record_minimal_symbol): Change signature to use
1869 gdb::string_view instead of name+len.
1870 (elf_symtab_read): Update.
1871 (elf_rel_plt_read): Update.
1872 * mdebugread.c (parse_partial_symbols): Update.
1873 (handle_psymbol_enumerators): Update.
1874 (new_symbol): Update.
1875 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1876 to use gdb::string_view instead of name+len.
1877 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1878 * psympriv.h (add_psymbol_to_list): Likewise.
1879 * psymtab.c (add_psymbol_to_bcache): Likewise.
1880 (add_psymbol_to_list): Likewise.
1881 * stabsread.c (define_symbol): Update.
1882 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1883 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1884 (symbol_set_names): Likewise.
1885 * xcoffread.c (scan_xcoff_symtab): Update.
1886
1887 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1888
1889 * symtab.h (symbol_set_names): Document that copy_name must be
1890 set to true for non-nullterminated strings.
1891 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1892 linkage_name if the entry was not found and we need to demangle.
1893
1894 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1895
1896 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1897 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1898 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1899 * gdbsupport/gdb_binary_search.h: New file.
1900
1901 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1902
1903 * NEWS: Mention new --with-system-gdbinit-dir option.
1904 * config.in: Regenerate.
1905 * configure: Regenerate.
1906 * configure.ac: Add new option --with-system-gdbinit-dir.
1907 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1908 for a ".gdb" suffix.
1909 * main.c (get_init_files): Change system_gdbinit argument to
1910 a vector and return the files in SYSTEM_GDBINIT_DIR in
1911 addition to SYSTEM_GDBINIT.
1912 (captured_main_1): Update.
1913 (print_gdb_help): Update.
1914 * top.c (print_gdb_configuration): Also print the value of
1915 SYSTEM_GDBINIT_DIR.
1916
1917 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1918
1919 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1920 that takes gdb::string_view arguments.
1921
1922 2019-10-26 Tom de Vries <tdevries@suse.de>
1923
1924 * aarch64-linux-tdep.c: Fix typos in comments.
1925 * aarch64-tdep.c: Same.
1926 * ada-lang.c: Same.
1927 * amd64-nat.c: Same.
1928 * arc-tdep.c: Same.
1929 * arch/aarch64-insn.c: Same.
1930 * block.c: Same.
1931 * breakpoint.h: Same.
1932 * btrace.h: Same.
1933 * c-varobj.c: Same.
1934 * cli/cli-decode.c: Same.
1935 * cli/cli-script.c: Same.
1936 * cli/cli-utils.h: Same.
1937 * coff-pe-read.c: Same.
1938 * coffread.c: Same.
1939 * compile/compile-cplus-symbols.c: Same.
1940 * compile/compile-object-run.c: Same.
1941 * completer.c: Same.
1942 * corelow.c: Same.
1943 * cp-support.c: Same.
1944 * demangle.c: Same.
1945 * dwarf-index-write.c: Same.
1946 * dwarf2-frame.c: Same.
1947 * dwarf2-frame.h: Same.
1948 * eval.c: Same.
1949 * frame-base.h: Same.
1950 * frame.h: Same.
1951 * gdbcmd.h: Same.
1952 * gdbtypes.h: Same.
1953 * gnu-nat.c: Same.
1954 * guile/scm-objfile.c: Same.
1955 * i386-tdep.c: Same.
1956 * i386-tdep.h: Same.
1957 * infcall.c: Same.
1958 * infcall.h: Same.
1959 * linux-nat.c: Same.
1960 * m68k-tdep.c: Same.
1961 * macroexp.c: Same.
1962 * memattr.c: Same.
1963 * mi/mi-cmd-disas.c: Same.
1964 * mi/mi-getopt.h: Same.
1965 * mi/mi-main.c: Same.
1966 * minsyms.c: Same.
1967 * nat/aarch64-sve-linux-sigcontext.h: Same.
1968 * objfiles.h: Same.
1969 * ppc-linux-nat.c: Same.
1970 * ppc-linux-tdep.c: Same.
1971 * ppc-tdep.h: Same.
1972 * progspace.h: Same.
1973 * prologue-value.h: Same.
1974 * python/py-evtregistry.c: Same.
1975 * python/py-instruction.h: Same.
1976 * record-btrace.c: Same.
1977 * record-full.c: Same.
1978 * remote.c: Same.
1979 * rs6000-tdep.c: Same.
1980 * ser-tcp.c: Same.
1981 * sol-thread.c: Same.
1982 * sparc-sol2-tdep.c: Same.
1983 * sparc64-tdep.c: Same.
1984 * stabsread.c: Same.
1985 * symfile.c: Same.
1986 * symtab.h: Same.
1987 * target.c: Same.
1988 * tracepoint.c: Same.
1989 * tui/tui-data.h: Same.
1990 * tui/tui-io.c: Same.
1991 * tui/tui-win.c: Same.
1992 * tui/tui.c: Same.
1993 * unittests/rsp-low-selftests.c: Same.
1994 * user-regs.h: Same.
1995 * utils.c: Same.
1996 * utils.h: Same.
1997 * valarith.c: Same.
1998 * valops.c: Same.
1999 * valprint.c: Same.
2000 * valprint.h: Same.
2001 * value.c: Same.
2002 * value.h: Same.
2003 * varobj.c: Same.
2004 * x86-nat.h: Same.
2005 * xtensa-tdep.c: Same.
2006
2007 2019-10-25 Ali Tamur <tamur@google.com>
2008
2009 * charset.c (find_charset_names): Reflect API change.
2010
2011 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2012
2013 * symtab.c (struct demangled_name_entry): Change demangled name
2014 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2015 part of the struct anymore.
2016 (symbol_set_names): No longer obstack allocate + copy the demangled
2017 name, just store the allocated name from bfd.
2018
2019 2019-10-25 Tom Tromey <tromey@adacore.com>
2020
2021 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2022 (bsearch_cie_cmp, add_cie): Remove.
2023 (find_cie): Reimplement.
2024 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2025 (dwarf2_build_frame_info): Update.
2026
2027 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2028
2029 PR gdb/25126
2030 * symfile.c (reread_symbols): Call forget_cached_source_info to
2031 clear the stale source cache.
2032
2033 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2034
2035 * configure: Regenerate.
2036 * configure.ac: Remove code that sets python_has_threads.
2037
2038 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2039
2040 * config.in: Regenerate.
2041 * configure: Regenerate.
2042 * configure.ac: Remove the code that uses sed to get the python
2043 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2044
2045 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2048 error paths.
2049
2050 2019-10-23 Tom Tromey <tom@tromey.com>
2051
2052 * arc-tdep.c: Remove ".." from include.
2053 * frv-tdep.c: Remove ".." from include.
2054 * lm32-tdep.c: Remove ".." from include.
2055 * microblaze-tdep.c: Remove ".." from include.
2056 * or1k-tdep.h: Remove ".." from include.
2057 * s12z-tdep.c: Remove ".." from include.
2058 * Makefile.in (OPCODES_CFLAGS): Add comment.
2059 (TOP_CFLAGS): New variable.
2060 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2061
2062 2019-10-23 Tom Tromey <tom@tromey.com>
2063
2064 * Makefile.in (READLINE_DIR): Update.
2065
2066 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2067
2068 * infcall.c (call_function_by_hand_dummy): Fix the function
2069 comment. And extract out a code section into...
2070 (reserve_stack_space): ...this new function.
2071
2072 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2073
2074 * infcall.c (value_arg_coerce): Remove an unused parameter.
2075 (call_function_by_hand_dummy): Update the call to
2076 'value_arg_coerce'.
2077
2078 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2079
2080 * infcall.c (call_function_by_hand_dummy): Refactor.
2081
2082 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2083
2084 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2085
2086 2019-10-23 Tom Tromey <tom@tromey.com>
2087
2088 * configure: Rebuild.
2089 * configure.ac: Don't check for sigprocmask.
2090 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2091
2092 2019-10-23 Tom Tromey <tom@tromey.com>
2093
2094 * configure: Rebuild.
2095 * acinclude.m4: Use m4_include, not sinclude.
2096
2097 2019-10-23 Tom de Vries <tdevries@suse.de>
2098
2099 PR breakpoints/24687
2100 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2101
2102 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2103
2104 * symtab.c (struct demangled_name_entry) <language>: Change from
2105 bitfield to regular variable.
2106
2107 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2108
2109 * symtab.c (struct demangled_name_entry): Add a constructor.
2110 (free_demangled_name_entry): New function to call the destructor
2111 for demangled_name_entry.
2112 (create_demangled_names_hash): Pass free_demangled_name_entry to
2113 htab_create_alloc.
2114 (symbol_set_names): Call placement new for demangled_name_entry.
2115 * utils.c: No longer include xxhash.h here, now that fast_hash
2116 is inlined in the header.
2117 * utils.h: Instead, include it here.
2118
2119 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2120
2121 * Makefile.in: Link with libxxhash.
2122 * config.in: Regenerate.
2123 * configure: Regenerate.
2124 * configure.ac: Search for libxxhash.
2125 * utils.c (fast_hash): Use xxhash if present.
2126
2127 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2128
2129 * utils.h (fast_hash): New function.
2130 * symtab.c (hash_demangled_name_entry): Call new function
2131 fast_hash.
2132
2133 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2134
2135 * symtab.c (struct demangled_name_entry): Change type of mangled
2136 to gdb::string_view. Also adds a constructor that takes the
2137 mangled name.
2138 (hash_demangled_name_entry): Update.
2139 (eq_demangled_name_entry): Update.
2140 (free_demangled_name_entry): New function to call the destructor
2141 now that this is not a POD anymore.
2142 (create_demangled_names_hash): Pass free_demangled_name_entry to
2143 htab_create_alloc.
2144 (symbol_set_names): Update.
2145
2146 2019-10-21 Ali Tamur <tamu@google.com>
2147
2148 * dwarf2read.c (dir_index): Change type.
2149 (file_name_index): Likewise.
2150 (line_header::include_dir_at): Change comment and implementation on
2151 whether it is DWARF 5.
2152 (line_header::is_valid_file_index): New function.
2153 (line_header::file_name_at): Change comment and implementation on
2154 whether it is DWARF 5.
2155 (line_header::file_names): Change to private field renamed as
2156 m_file_names and introduce a new accessor method.
2157 (line_header::file_names_size): New method.
2158 (line_header::include_dirs): Change to private field and rename as
2159 m_include_dirs.
2160 (dw2_get_file_names_reader): Define local var at a smaller scope and
2161 reflect API change.
2162 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2163 (process_structure_scope): Likewise.
2164 (line_header::add_include_dir): Change message and reflect renaming.
2165 (line_header::add_file_name): Likewise.
2166 (read_formatted_entries): Handle DW_FORM_data16.
2167 (dwarf_decode_line_header): Fix line header length calculation.
2168 (psymtab_include_file_name): Change comment and API.
2169 (lnp_state_machine::m_file): Update comment and reflect type change.
2170 (lnp_state_machine::record_line): Reflect type change.
2171 (dwarf_decode_lines): Reflect API change.
2172 (file_file_name): Likewise.
2173 (file_full_name): Likewise.
2174
2175 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2178
2179 2019-10-21 Tom Tromey <tom@tromey.com>
2180
2181 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2182
2183 2019-10-21 Tom Tromey <tom@tromey.com>
2184
2185 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2186 NM_H. Use AC_CONFIG_LINKS.
2187 * configure: Rebuild.
2188 * Makefile.in (NM_H): New variable.
2189 (generated_files): Add NM_H. Remove gcore.
2190 (nm.h, stamp-nmh): New targets.
2191
2192 2019-10-20 Tom Tromey <tom@tromey.com>
2193
2194 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2195 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2196 obsolete comment.
2197 (put_objfile_before): Now static.
2198
2199 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * gdbsupport/common-utils.h (startswith): Change return type to
2202 bool.
2203
2204 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2205
2206 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2207 * breakpoint.c (bp_locations_compare): Rename to...
2208 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2209 (update_global_location_list): Use std::sort instead of qsort.
2210 * buildsym.c (compare_line_numbers): Rename to...
2211 (lte_is_less_than): ...this, and change to std::sort semantics.
2212 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2213 instead of qsort.
2214 * disasm.c (compare_lines): Rename to...
2215 (line_is_less_than): ...this, and change to std::sort semantics.
2216 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2217 of qsort.
2218 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2219 (fde_is_less_than): ...this, and change to std::sort semantics.
2220 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2221 * mdebugread.c (compare_blocks):
2222 (block_is_less_than): ...this, and change to std::sort semantics.
2223 (sort_blocks): Call std::sort instead of qsort.
2224 * objfiles.c (qsort_cmp): Rename to...
2225 (sort_cmp): ...this, and change to std::sort semantics.
2226 (update_section_map): Call std::sort instead of qsort.
2227 * remote.c (compare_pnums): Remove.
2228 (map_regcache_remote_table): Call std::sort instead of qsort.
2229 * utils.c (compare_positive_ints): Remove.
2230 * utils.h (compare_positive_ints): Remove.
2231 * xcoffread.c (compare_lte): Remove.
2232 (arrange_linetable): Call std::sort instead of qsort.
2233
2234 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2235
2236 * symfile.c (init_entry_point_info): Fix typo.
2237 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2238
2239 2019-10-18 Tom de Vries <tdevries@suse.de>
2240
2241 * aarch64-tdep.c: Fix typos in comments.
2242 * ada-lang.c: Same.
2243 * ada-tasks.c: Same.
2244 * alpha-tdep.c: Same.
2245 * alpha-tdep.h: Same.
2246 * amd64-nat.c: Same.
2247 * amd64-windows-tdep.c: Same.
2248 * arc-tdep.c: Same.
2249 * arc-tdep.h: Same.
2250 * arch-utils.c: Same.
2251 * arm-nbsd-tdep.c: Same.
2252 * arm-tdep.c: Same.
2253 * ax-gdb.c: Same.
2254 * blockframe.c: Same.
2255 * btrace.c: Same.
2256 * c-varobj.c: Same.
2257 * coff-pe-read.c: Same.
2258 * coffread.c: Same.
2259 * cris-tdep.c: Same.
2260 * darwin-nat.c: Same.
2261 * dbxread.c: Same.
2262 * dcache.c: Same.
2263 * disasm.c: Same.
2264 * dtrace-probe.c: Same.
2265 * dwarf-index-write.c: Same.
2266 * dwarf2-frame-tailcall.c: Same.
2267 * dwarf2-frame.c: Same.
2268 * dwarf2read.c: Same.
2269 * eval.c: Same.
2270 * exceptions.c: Same.
2271 * fbsd-tdep.c: Same.
2272 * findvar.c: Same.
2273 * frame.c: Same.
2274 * frv-tdep.c: Same.
2275 * gnu-v3-abi.c: Same.
2276 * go32-nat.c: Same.
2277 * h8300-tdep.c: Same.
2278 * hppa-tdep.c: Same.
2279 * i386-linux-tdep.c: Same.
2280 * i386-tdep.c: Same.
2281 * ia64-libunwind-tdep.c: Same.
2282 * ia64-tdep.c: Same.
2283 * infcmd.c: Same.
2284 * infrun.c: Same.
2285 * linespec.c: Same.
2286 * linux-nat.c: Same.
2287 * linux-thread-db.c: Same.
2288 * machoread.c: Same.
2289 * mdebugread.c: Same.
2290 * mep-tdep.c: Same.
2291 * mn10300-tdep.c: Same.
2292 * namespace.c: Same.
2293 * objfiles.c: Same.
2294 * opencl-lang.c: Same.
2295 * or1k-tdep.c: Same.
2296 * osabi.c: Same.
2297 * ppc-linux-nat.c: Same.
2298 * ppc-linux-tdep.c: Same.
2299 * ppc-sysv-tdep.c: Same.
2300 * printcmd.c: Same.
2301 * procfs.c: Same.
2302 * record-btrace.c: Same.
2303 * record-full.c: Same.
2304 * remote-fileio.c: Same.
2305 * remote.c: Same.
2306 * rs6000-tdep.c: Same.
2307 * s12z-tdep.c: Same.
2308 * score-tdep.c: Same.
2309 * ser-base.c: Same.
2310 * ser-go32.c: Same.
2311 * skip.c: Same.
2312 * sol-thread.c: Same.
2313 * solib-svr4.c: Same.
2314 * solib.c: Same.
2315 * source.c: Same.
2316 * sparc-nat.c: Same.
2317 * sparc-sol2-tdep.c: Same.
2318 * sparc-tdep.c: Same.
2319 * sparc64-tdep.c: Same.
2320 * stabsread.c: Same.
2321 * stack.c: Same.
2322 * symfile.c: Same.
2323 * symtab.c: Same.
2324 * target-descriptions.c: Same.
2325 * target-float.c: Same.
2326 * thread.c: Same.
2327 * utils.c: Same.
2328 * valops.c: Same.
2329 * valprint.c: Same.
2330 * value.c: Same.
2331 * varobj.c: Same.
2332 * windows-nat.c: Same.
2333 * xcoffread.c: Same.
2334 * xstormy16-tdep.c: Same.
2335 * xtensa-tdep.c: Same.
2336
2337 2019-10-17 Tom Tromey <tromey@adacore.com>
2338
2339 * configure: Rebuild.
2340 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2341 in AC_CONFIG_FILES invocation.
2342 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2343 new-style config.status invocation.
2344
2345 2019-10-17 Tom de Vries <tdevries@suse.de>
2346
2347 * arm-nbsd-nat.c: Fix typos in comments.
2348 * arm-tdep.c: Same.
2349 * darwin-nat-info.c: Same.
2350 * dwarf2read.c: Same.
2351 * elfread.c: Same.
2352 * event-top.c: Same.
2353 * findvar.c: Same.
2354 * gdbtypes.c: Same.
2355 * hppa-tdep.c: Same.
2356 * i386-tdep.c: Same.
2357 * jit.c: Same.
2358 * main.c: Same.
2359 * mdebugread.c: Same.
2360 * moxie-tdep.c: Same.
2361 * nto-procfs.c: Same.
2362 * osabi.c: Same.
2363 * ppc-linux-tdep.c: Same.
2364 * remote.c: Same.
2365 * riscv-tdep.c: Same.
2366 * s390-tdep.c: Same.
2367 * sh-tdep.c: Same.
2368 * sparc-linux-tdep.c: Same.
2369 * sparc-nat.c: Same.
2370 * stack.c: Same.
2371 * target-descriptions.c: Same.
2372 * top.c: Same.
2373 * varobj.c: Same.
2374
2375 2019-10-16 Tom Tromey <tom@tromey.com>
2376
2377 * objfiles.h (struct objfile) <original_name>: Now const.
2378
2379 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2380
2381 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2382 pass on to sigsetjmp's second argument.
2383 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2384
2385 2019-10-16 Keith Seitz <keiths@redhat.com>
2386
2387 PR gdb/23567
2388 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2389 sections whose size is greater than the file size.
2390
2391 2019-10-16 Jim Wilson <jimw@sifive.com>
2392
2393 * riscv-tdep.c (riscv_gcc_target_options): New.
2394 (riscv_gnu_triplet_regexp): New.
2395 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2396 set_gdbarch_gnu_triplet_regexp.
2397
2398 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2399
2400 * Makefile.in: Add xml-builtin.h.
2401 * features/feature_to_c.sh: Add an include for xml-builtin.h
2402 to ensure that the compiler checks that the types match.
2403 * xml-builtin.h: New file.
2404 * xml-support.c (fetch_xml_builtin): Add missing const.
2405 * xml-support.h: Remove declaration of xml_builtins.
2406
2407 2019-10-16 Tom de Vries <tdevries@suse.de>
2408
2409 PR tdep/25096
2410 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2411 (amd64_classify_aggregate): ... here.
2412 (amd64_classify_aggregate_field): Handled fiels of nested structs
2413 recursively.
2414
2415 2019-10-16 Tom de Vries <tdevries@suse.de>
2416
2417 PR tdep/24104
2418 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2419 that handles 'theclass'.
2420
2421 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * linespec.c (decode_digits_ordinary): Update comment.
2424 * make-target-delegates: No longer need to handle VEC case.
2425 * memrange.c (normalize_mem_ranges): Update comment.
2426 * namespace.c (add_using_directive): Update comment.
2427 * objc-lang.c (uniquify_strings): Update comment.
2428 * ppc-linux-nat.c (struct thread_points): Update comment.
2429 * probe.h (find_probes_in_objfile): Update comment.
2430 * target.h (enum flash_preserve_mode): Update comment.
2431 * varobj.c (varobj_restrict_range): Update comment.
2432 * varobj.h (varobj_list_children): Update comment.
2433
2434 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * Makefile.in: Remove references to vec.h and vec.c.
2437 * aarch64-tdep.c: No longer include vec.h.
2438 * ada-lang.c: Likewise.
2439 * ada-lang.h: Likewise.
2440 * arm-tdep.c: Likewise.
2441 * ax.h: Likewise.
2442 * breakpoint.h: Likewise.
2443 * charset.c: Likewise.
2444 * cp-support.h: Likewise.
2445 * dtrace-probe.c: Likewise.
2446 * dwarf2read.c: Likewise.
2447 * extension.h: Likewise.
2448 * gdb_bfd.c: Likewise.
2449 * gdbsupport/gdb_vecs.h: Likewise.
2450 * gdbsupport/vec.c: Remove.
2451 * gdbsupport/vec.h: Remove.
2452 * gdbthread.h: Likewise.
2453 * guile/scm-type.c: Likewise.
2454 * inline-frame.c: Likewise.
2455 * machoread.c: Likewise.
2456 * memattr.c: Likewise.
2457 * memrange.h: Likewise.
2458 * namespace.h: Likewise.
2459 * nat/linux-btrace.h: Likewise.
2460 * osdata.c: Likewise.
2461 * parser-defs.h: Likewise.
2462 * progspace.h: Likewise.
2463 * python/py-type.c: Likewise.
2464 * record-btrace.c: Likewise.
2465 * rust-exp.y: Likewise.
2466 * solib-target.c: Likewise.
2467 * stap-probe.c: Likewise.
2468 * target-descriptions.c: Likewise.
2469 * target-memory.c: Likewise.
2470 * target.h: Likewise.
2471 * varobj.c: Likewise.
2472 * varobj.h: Likewise.
2473 * xml-support.h: Likewise.
2474
2475 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2478 Update for new std::vector based implementation.
2479 (process_psymtab_comp_unit_reader): Likewise.
2480 (scan_partial_symbols): Likewise.
2481 (recursively_compute_inclusions): Likewise.
2482 (compute_compunit_symtab_includes): Likewise.
2483 (process_imported_unit_die): Likewise.
2484 (queue_and_load_dwo_tu): Likewise.
2485 (follow_die_sig_1): Likewise.
2486 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2487 (typedef dwarf2_per_cu_ptr): Remove.
2488 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2489 function.
2490 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2491 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2492 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2493 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2494 std::vector.
2495
2496 2019-10-15 Tom Tromey <tromey@adacore.com>
2497
2498 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2499 TID.
2500
2501 2019-10-15 Tom Tromey <tromey@adacore.com>
2502
2503 * windows-nat.c (windows_nat_target::fetch_registers)
2504 (windows_nat_target::store_registers): Rename "pid" to "tid".
2505
2506 2019-10-15 Tom Tromey <tromey@adacore.com>
2507
2508 * gdbarch.h, gdbarch.c: Rebuild.
2509 * gdbarch.sh (gcc_target_options): Change return type to
2510 std::string.
2511 * compile/compile.c (get_args): Update.
2512 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2513 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2514 std::string.
2515 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2516 std::string.
2517 * arch-utils.c (default_gcc_target_options): Return std::string.
2518 * arch-utils.h (default_gcc_target_options): Return std::string.
2519 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2520
2521 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2522
2523 * breakpoint.c (breakpoint_chain): Make static.
2524 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2525 of accessing breakpoint_chain.
2526
2527 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2528
2529 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2530 to a gdb::function_view and return value to bool.
2531 * breakpoint.h (iterate_over_breakpoints): Likewise.
2532 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2533 (pop_dummy_frame): Update.
2534 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2535 (gdbscm_breakpoints): Update.
2536 * python/py-breakpoint.c (build_bp_list): Update.
2537 (gdbpy_breakpoints): Update.
2538 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2539 Update.
2540 (bpfinishpy_handle_stop): Update.
2541 (bpfinishpy_handle_exit): Update.
2542 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2543 (svr4_update_solib_event_breakpoints): Update.
2544
2545 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2546
2547 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2548 when unwrapping single-field structs.
2549
2550 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * dwarf2read.c: Remove includes.
2553
2554 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * ui-out.c (ui_out::call_do_message): Silence
2557 -Wformat-nonliteral warning.
2558
2559 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2562 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2563 include: readline/tilde.h.
2564
2565 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2566
2567 * remote.c (remote_target::get_trace_status): Remove declaration of
2568 trace_regblock_size.
2569
2570 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2571
2572 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2573 (show_user): Remove declaration of cmdlist.
2574 * cli/cli-cmds.h (max_user_call_depth): Declare.
2575 * cli/cli-script.c (execute_user_command): Remove declaration
2576 of max_user_call_depth.
2577
2578 2019-10-11 Jim Wilson <jimw@sifive.com>
2579
2580 * gdbsupport/print-utils.h (pulongest): Fix comment.
2581 (plongest): Likewise.
2582 (phex): Add missing comment, mention leading zeros.
2583 (phex_nz): Add mention of no leading zeros to comment.
2584
2585 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2586 plongest instead of unsigned long long cast.
2587
2588 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2589
2590 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2591 for external_editor_command and gdbtk_test.
2592
2593 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2594
2595 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2596 * varobj.c (varobjdebug): Move comment to...
2597 * varobj.h (varobjdebug): ...here, and declare.
2598
2599 2019-10-09 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2602 erase_data_content.
2603
2604 2019-10-09 Tom Tromey <tom@tromey.com>
2605
2606 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2607 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2608 * tui/tui-command.c (tui_cmd_window::resize)
2609 (tui_refresh_cmd_win): Update.
2610 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2611 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2612 * tui/tui-data.c (~tui_gen_win_info): Remove.
2613 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2614 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2615 (tui_redisplay_readline, tui_mld_flush)
2616 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2617 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2618 (tui_data_window::erase_data_content)
2619 (tui_data_item_window::rerender)
2620 (tui_data_item_window::refresh_window): Update.
2621 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2622 (box_win, tui_gen_win_info::make_window)
2623 (tui_gen_win_info::make_visible): Update.
2624 (tui_delete_win): Remove.
2625 * tui/tui-winsource.c
2626 (tui_source_window_base::do_erase_source_content): Update.
2627 (tui_show_source_line, tui_source_window_base::update_tab_width)
2628 (tui_source_window_base::update_exec_info): Update.
2629 * tui/tui-data.h (struct curses_deleter): New.
2630 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2631 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2632
2633 2019-10-09 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2636
2637 2019-10-09 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2640 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2641
2642 2019-10-09 Tom Tromey <tom@tromey.com>
2643
2644 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2645 window height directly.
2646 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2647 declare.
2648 * tui/tui-layout.c (tui_default_win_height): Remove.
2649 (tui_default_win_viewport_height): Remove.
2650
2651 2019-10-09 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui.h: Remove comments.
2654
2655 2019-10-09 Tom de Vries <tdevries@suse.de>
2656
2657 * python/lib/gdb/printer/bound_registers.py: Use
2658 '^builtin_type_bound128' as regexp argument for
2659 add_builtin_pretty_printer.
2660
2661 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2662
2663 * guile/guile.c (guile_extension_script_ops): Remove forward
2664 declaration and mark as static.
2665 (guile_script_ops): Likewise.
2666 (extension_language_guile): Move further down in the file so
2667 it can reference the definitions for guile_{extension_,}script_ops.
2668
2669 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2670
2671 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2672 except SORTL, DFLTCC, and KDSA.
2673
2674 2019-10-08 Tom Tromey <tromey@adacore.com>
2675
2676 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2677 (struct safe_symbol_file_add_args): Remove.
2678
2679 2019-10-08 Tom Tromey <tromey@adacore.com>
2680
2681 * windows-nat.c: Don't include buildsym-legacy.h.
2682
2683 2019-10-08 Tom Tromey <tromey@adacore.com>
2684
2685 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2686
2687 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2688
2689 * gdbtypes.c (overload_debug): Move comment to header.
2690 * gdbtypes.h (overload_debug): Declare.
2691 * valops.c: Remove declaration of overload_debug, instead
2692 include gdbtypes.h.
2693
2694 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2695
2696 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2697 through _().
2698 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2699 move comment...
2700 * language.h (lang_frame_mismatch_warn): ... here. Also add
2701 declaration.
2702 * top.c (lang_frame_mismatch_warn): Remove declaration.
2703 (check_frame_language_change): Pass lang_frame_mismatch_warn
2704 through _().
2705
2706 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2707
2708 * c-lang.h (vtbl_ptr_name): Declare.
2709 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2710 it from the header.
2711 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2712
2713 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2714
2715 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2716 gdb_static_assert.
2717
2718 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2719
2720 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2721 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2722 * ctfread.c: New file.
2723 * ctfread.h: New file.
2724 * elfread.c: Include ctfread.h.
2725 (struct elfinfo text_p): New member ctfsect.
2726 (elf_locate_sections): Mark CTF section.
2727 (elf_symfile_read): Call elfctf_build_psymtabs.
2728 * Makefile.in (LIBCTF): Add.
2729 (CLIBS): Use it.
2730 (CDEPS): Likewise.
2731 (DIST): Add ctfread.c.
2732
2733 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * ctfread.c (struct nextfield): Renamed to ...
2736 (struct ctf_nextfield): ... this.
2737 (struct field_info): Renamed to ...
2738 (strut ctf_field_info): ... this.
2739 (attach_fields_to_type): Update for renamed structures.
2740 (ctf_add_member_cb): Likewise.
2741 (ctf_add_enum_member_cb): Likewise.
2742 (process_struct_members): Likewise.
2743 (process_enum_type): Likewise.
2744
2745 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2746
2747 * tracectf.h: Rename, was ctf.h.
2748 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2749 * tracefile.c: Likewise.
2750 * tracepoint.c: Remove unused include ctf.h.
2751 * mi/mi-main.c: Likewise.
2752 * Makefile.in Replace ctf.c with tracectf.c.
2753
2754 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2755
2756 * version.in: Change version number to "9.0.50.DATE-git".
2757
2758 2019-10-03 Tom Tromey <tom@tromey.com>
2759
2760 PR rust/24976:
2761 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2762
2763 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2766 cp_search_name_hash.
2767 * NEWS: Add entry about nested function support.
2768
2769 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2770 Andrew Burgess <andrew.burgess@embecosm.com>
2771
2772 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2773 for nested static variables when searchin VAR_DOMAIN.
2774 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2775 global scope, update comment.
2776 (add_partial_subprogram): Call add_partial_subprogram recursively
2777 for nested subroutines when processinng Fortran.
2778 (load_partial_dies): Process the child entities of a subprogram
2779 when processing Fortran.
2780 (partial_die_parent_scope): Handle building scope
2781 for Fortran nested functions.
2782 (process_die): Record that nested functions have a scope.
2783 (new_symbol): Always record Fortran subprograms on the global
2784 symbol list.
2785 (determine_prefix): How to build the prefix for Fortran
2786 subprograms.
2787
2788 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2791 have just sent the thread a SIGSTOP and are waiting for it to
2792 arrive.
2793
2794 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * btrace.c (btrace_add_pc): Remove whitespace before the template
2797 parameter in 'std::vector <...>'.
2798 (parse_xml_btrace_block): Likewise.
2799 (btrace_maint_decode_pt): Likewise.
2800 (btrace_maint_update_packets): Likewise.
2801 (btrace_maint_print_packets): Likewise.
2802 * btrace.h (struct btrace_maint_info): Likewise.
2803 * dwarf2read.c (struct type_unit_group): Likewise.
2804 (build_type_psymtabs_reader): Likewise.
2805 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2806 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2807 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2808
2809 2019-10-03 Tom de Vries <tdevries@suse.de>
2810
2811 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2812 the first line of the help text for set/show style metadata.
2813
2814 2019-10-02 Tom Tromey <tromey@adacore.com>
2815
2816 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2817 * gdbsupport/common-inferior.c: New file.
2818 * infcmd.c (startup_with_shell): Don't define.
2819 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2820 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2821 * inferior.h (startup_with_shell): Don't declare.
2822
2823 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2824
2825 * gdbsupport/gdb_assert.h: Include errors.h.
2826 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2827
2828 2019-10-02 Tom Tromey <tromey@adacore.com>
2829
2830 * NEWS: Add $_ada_exception entry.
2831 * ada-lang.c (struct ada_catchpoint): Add constructor.
2832 <m_kind>: New member.
2833 (allocate_location_exception, re_set_exception): Remove
2834 "ex" parameter.
2835 (should_stop_exception): Compute $_ada_exception.
2836 (check_status_exception, print_it_exception)
2837 (print_one_exception, print_mention_exception): Remove
2838 "ex" parameter.
2839 (allocate_location_catch_exception, re_set_catch_exception)
2840 (check_status_exception, print_it_catch_exception)
2841 (print_one_catch_exception, print_mention_catch_exception)
2842 (print_recreate_catch_exception)
2843 (allocate_location_catch_exception_unhandled)
2844 (re_set_catch_exception_unhandled)
2845 (check_status_exception, print_it_catch_exception_unhandled)
2846 (print_one_catch_exception_unhandled)
2847 (print_mention_catch_exception_unhandled)
2848 (print_recreate_catch_exception_unhandled)
2849 (allocate_location_catch_assert, re_set_catch_assert)
2850 (check_status_assert, print_it_catch_assert)
2851 (print_one_catch_assert, print_mention_catch_assert)
2852 (print_recreate_catch_assert)
2853 (allocate_location_catch_handlers, re_set_catch_handlers)
2854 (check_status_handlers, print_it_catch_handlers)
2855 (print_one_catch_handlers, print_mention_catch_handlers)
2856 (print_recreate_catch_handlers): Remove.
2857 (create_ada_exception_catchpoint): Update.
2858 (initialize_ada_catchpoint_ops): Update.
2859
2860 2019-10-02 Tom Tromey <tromey@adacore.com>
2861
2862 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2863 (create_excep_cond_exprs): Simplify exception string computation.
2864 (ada_exception_catchpoint_cond_string): Likewise.
2865
2866 2019-10-02 Tom Tromey <tromey@adacore.com>
2867
2868 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2869 * ada-lang.c (lesseq_defined_than): Handle
2870 LOC_STATIC.
2871 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2872 parameter.
2873 (dwarf2_has_info): Likewise.
2874 (new_symbol): Set maybe_copied on symbol when
2875 appropriate.
2876 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2877 parameter.
2878 <can_copy>: New member.
2879 * elfread.c (record_minimal_symbol): Set maybe_copied
2880 on symbol when appropriate.
2881 (elf_symfile_read): Update call to dwarf2_has_info.
2882 * minsyms.c (lookup_minimal_symbol_linkage): New
2883 function.
2884 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2885 * symtab.c (get_symbol_address, get_msymbol_address):
2886 New functions.
2887 * symtab.h (get_symbol_address, get_msymbol_address):
2888 Declare.
2889 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2890 maybe_copied.
2891 (struct symbol, struct minimal_symbol) <maybe_copied>:
2892 New member.
2893
2894 2019-10-02 Tom Tromey <tromey@adacore.com>
2895
2896 * source.c (struct current_source_location): New.
2897 (current_source_key): New global.
2898 (current_source_symtab, current_source_line)
2899 (current_source_pspace): Remove.
2900 (get_source_location): New function.
2901 (get_current_source_symtab_and_line)
2902 (set_default_source_symtab_and_line)
2903 (set_current_source_symtab_and_line)
2904 (clear_current_source_symtab_and_line, select_source_symtab)
2905 (info_source_command, print_source_lines_base)
2906 (info_line_command, search_command_helper, _initialize_source):
2907 Update.
2908
2909 2019-10-02 Tom Tromey <tromey@adacore.com>
2910
2911 * source.c (select_source_symtab): Don't call
2912 decode_line_with_current_source.
2913
2914 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * symtab.c (lookup_global_symbol): Search global block.
2917
2918 2019-10-02 Tom Tromey <tromey@adacore.com>
2919
2920 * coffread.c (process_coff_symbol): Update.
2921 * dwarf2read.c (var_decode_location, new_symbol): Update.
2922 * mdebugread.c (parse_symbol): Update.
2923 * objfiles.c (relocate_one_symbol): Update.
2924 * stabsread.c (define_symbol, fix_common_block)
2925 (scan_file_globals): Update.
2926 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2927 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2928 * xcoffread.c (process_xcoff_symbol): Update.
2929
2930 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2931
2932 * MAINTAINERS: Update my email address.
2933
2934 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2937 std::vector.
2938 (build_type_psymtabs_reader): Update for std::vector.
2939 (build_type_psymtab_dependencies): Likewise.
2940 * dwarf2read.h: Remove use of DEF_VEC_P.
2941 (typedef sig_type_ptr): Delete.
2942
2943 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2946 to std::vector.
2947 (btrace_maint_decode_pt): Likewise, and move allocation of the
2948 vector outside of the loop.
2949 (btrace_maint_update_packets): Update to handle change from VEC to
2950 std::vector.
2951 (btrace_maint_print_packets): Likewise.
2952 (maint_info_btrace_cmd): Likewise.
2953 * btrace.h: Remove use of DEF_VEC_O.
2954 (typedef btrace_pt_packet_s): Delete.
2955 (struct btrace_maint_info) <packets>: Change fromm VEC to
2956 std::vector.
2957 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2958
2959 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2962 make accesses into the vector constant references.
2963 (btrace_add_pc): Update for std::vector.
2964 (btrace_stitch_bts): Likewise.
2965 (parse_xml_btrace_block): Likewise.
2966 (btrace_maint_update_packets): Likewise.
2967 (btrace_maint_print_packets): Likewise.
2968 (maint_info_btrace_cmd): Likewise.
2969 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2970 std::vector.
2971 (btrace_data::empty): Likewise.
2972 (btrace_data_append): Likewise.
2973 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2974 (typedef btrace_block_s): Delete.
2975 (struct btrace_block): Add constructor.
2976 (struct btrace_data_bts) <blocks>: Change to std::vector.
2977 * nat/linux-btrace.c (perf_event_read_bts): Update for
2978 std::vector.
2979 (linux_read_bts): Likewise.
2980
2981 2019-10-01 Tom Tromey <tom@tromey.com>
2982
2983 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2984
2985 2019-10-01 Tom Tromey <tom@tromey.com>
2986
2987 * stack.c (print_frame, info_frame_command_core): Use
2988 styled_string.
2989 * linux-thread-db.c (try_thread_db_load_1)
2990 (try_thread_db_load_from_pdir_1): Use styled_string.
2991 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2992 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2993 (maybe_print_unsupported_script_warning)
2994 (maybe_print_script_not_found_warning): Use styled_string.
2995 * ada-lang.c (user_select_syms): Use styled_string.
2996
2997 2019-10-01 Tom Tromey <tom@tromey.com>
2998
2999 * p-lang.c (pascal_printstr): Use metadata style.
3000 * value.c (show_convenience): Use metadata style.
3001 * valprint.c (valprint_check_validity, val_print_optimized_out)
3002 (val_print_not_saved, val_print_unavailable)
3003 (val_print_invalid_address, generic_val_print, val_print)
3004 (value_check_printable, val_print_array_elements): Use metadata
3005 style.
3006 * ui-out.h (class ui_out) <field_fmt>: New overload.
3007 <do_field_fmt>: Add style parameter.
3008 * ui-out.c (ui_out::field_fmt): New overload.
3009 * typeprint.c (type_print_unknown_return_type)
3010 (val_print_not_allocated, val_print_not_associated): Use metadata
3011 style.
3012 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3013 parameter.
3014 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3015 * tracepoint.c (tvariables_info_1): Use metadata style.
3016 * stack.c (print_frame_arg, print_frame_info, print_frame)
3017 (info_frame_command_core): Use metadata style.
3018 * skip.c (info_skip_command): Use metadata style.
3019 * rust-lang.c (rust_print_enum): Use metadata style.
3020 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3021 metadata style.
3022 * python/py-framefilter.c (py_print_single_arg): Use metadata
3023 style.
3024 * printcmd.c (do_one_display, print_variable_and_value): Use
3025 metadata style.
3026 * p-valprint.c (pascal_val_print)
3027 (pascal_object_print_value_fields): Use metadata style.
3028 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3029 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3030 parameter.
3031 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3032 * m2-valprint.c (m2_print_long_set): Use metadata style.
3033 * m2-typeprint.c (m2_print_type): Use metadata style.
3034 * infcmd.c (print_return_value_1): Use metadata style.
3035 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3036 * f-valprint.c (info_common_command_for_block): Use metadata
3037 style.
3038 * f-typeprint.c (f_type_print_base): Use metadata style.
3039 * expprint.c (print_subexp_standard): Use metadata style.
3040 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3041 * cli/cli-style.h (class cli_style_option): Add constructor.
3042 (metadata_style): Declare.
3043 * cli/cli-style.c (metadata_style): New global.
3044 (_initialize_cli_style): Register metadata style.
3045 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3046 parameter.
3047 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3048 * c-typeprint.c (c_type_print_base_struct_union)
3049 (c_type_print_base_1): Use metadata style.
3050 * breakpoint.c (watchpoint_value_print)
3051 (print_one_breakpoint_location): Use metadata style.
3052 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3053 style.
3054 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3055 style.
3056 * ada-valprint.c (val_print_packed_array_elements, printstr)
3057 (print_field_values, ada_val_print_ref, ada_val_print): Use
3058 metadata style.
3059 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3060 style.
3061 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3062 style.
3063 * ada-lang.c (user_select_syms): Use metadata style.
3064
3065 2019-10-01 Tom Tromey <tom@tromey.com>
3066
3067 * cli/cli-cmds.c (pwd_command): Style output.
3068
3069 2019-10-01 Pedro Alves <palves@redhat.com>
3070 Tom Tromey <tom@tromey.com>
3071
3072 * symtab.c (print_symbol_info): Use %ps.
3073 (print_msymbol_info): Use %ps.
3074 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3075 * printcmd.c (print_variable_and_value): Use %ps.
3076 * macrocmd.c (show_pp_source_pos): Use %ps.
3077 * infrun.c (print_exited_reason): Use ui_out::message.
3078 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3079 (describe_other_breakpoints): Use ui_out::message and new
3080 formats.
3081 (say_where): Use new formats.
3082 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3083 and new formats.
3084
3085 2019-10-01 Pedro Alves <palves@redhat.com>
3086 Tom Tromey <tom@tromey.com>
3087
3088 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3089 (test_gdb_formats): New function.
3090 (run_tests): Call it.
3091 (test_format_specifier): Update.
3092 * utils.h (fputs_filtered): Update comment.
3093 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3094 (fputs_styled_unfiltered): Declare.
3095 * utils.c (fputs_styled_unfiltered): New function.
3096 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3097 (vfprintf_filtered): Update.
3098 (vfprintf_unfiltered, vprintf_filtered): Update.
3099 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3100 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3101 disallow_ui_out_field>: New constants.
3102 (enum class field_kind): New.
3103 (struct base_field_s, struct signed_field_s): New.
3104 (signed_field): New function.
3105 (struct string_field_s): New.
3106 (string_field): New function.
3107 (struct styled_string_s): New.
3108 (styled_string): New function.
3109 (class ui_out) <message>: Add comment.
3110 <vmessage, call_do_message>: New methods.
3111 <do_message>: Add style parameter.
3112 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3113 methods.
3114 (ui_out::message): Rewrite.
3115 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3116 parameter.
3117 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3118 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3119 gdb_extensions parameter.
3120 (class format_piece): Add parameter to constructor.
3121 (n_int_args): New field.
3122 * gdbsupport/format.c (format_pieces::format_pieces): Add
3123 gdb_extensions parameter. Handle '*'.
3124 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3125 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3126 vfprintf_styled_no_gdbfmt.
3127 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3128 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3129 unfiltered output.
3130 * ui-style.h (struct ui_file_style) <ptr>: New method.
3131
3132 2019-10-01 Tom Tromey <tom@tromey.com>
3133
3134 * unittests/format_pieces-selftests.c: Update. Add final format.
3135 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3136 empty literal pieces.
3137
3138 2019-10-01 Tom Tromey <tom@tromey.com>
3139
3140 * ui-out.h (enum class ui_out_style_kind): Remove.
3141 (class ui_out) <field_string, field_stsream, do_field_string>:
3142 Change type of "style".
3143 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3144 (ui_out::field_string): Update.
3145 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3146 of "style".
3147 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3148 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3149 * stack.c (print_frame_arg, print_frame_info, print_frame):
3150 Update.
3151 * source.c (print_source_lines_base): Update.
3152 * solib.c (info_sharedlibrary_command): Update.
3153 * skip.c (info_skip_command): Update.
3154 * record-btrace.c (btrace_call_history_src_line)
3155 (btrace_call_history): Update.
3156 * python/py-framefilter.c (py_print_frame): Update.
3157 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3158 "style".
3159 * mi/mi-out.c (mi_ui_out::do_table_header)
3160 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3161 (mi_ui_out::do_field_string): Update.
3162 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3163 Update.
3164 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3165 "style".
3166 * cli-out.c (cli_ui_out::do_table_header)
3167 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3168 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3169 (cli_ui_out::do_field_fmt): Update.
3170 * breakpoint.c (print_breakpoint_location): Update.
3171 (update_static_tracepoint): Update.
3172
3173 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3174
3175 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3176 conversion of gdb_datadir.
3177 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3178 remove not needed c_str ().
3179
3180 2019-09-30 Ali Tamur <tamur@google.com>
3181
3182 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3183 (dwarf2_string_attr): Likewise.
3184
3185 2019-09-30 Ali Tamur <tamur@google.com>
3186
3187 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3188 (process_full_type_unit): Likewise.
3189 (dump_die_shallow): Likewise.
3190 (cu_debug_loc_section): Likewise.
3191
3192 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3193
3194 * minsyms.c (compare_minimal_symbols): Rename to...
3195 (minimal_symbol_is_less_than): ...this, and adjust to STL
3196 conventions (return bool, take arguments as references)
3197 (minimal_symbol_reader::install): Call std::sort instead
3198 of qsort.
3199
3200 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3201
3202 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3203 hash and why.
3204 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3205 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3206
3207 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3208
3209 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3210 * psympriv.h (add_psymbol_to_list): Move comment here and update
3211 it.
3212
3213 2019-09-29 Tom de Vries <tdevries@suse.de>
3214
3215 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3216 Use $tmpdir/$(basename "$output_file").dwz instead of
3217 "${output_file}.dwz".
3218
3219 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3220
3221 PR gdb/25045
3222 * hppa-linux-nat.c: Include gdbarch.h.
3223
3224 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3225
3226 * blockframe.c (find_pc_partial_function): Change return type to bool.
3227 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3228 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3229 (stub_gnu_ifunc_resolve_name): Likewise.
3230 * symtab.c (compare_filenames_for_search): Likewise.
3231 (compare_glob_filenames_for_search): Likewise.
3232 (matching_obj_sections): Likewise.
3233 (symbol_matches_domain): Likewise.
3234 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3235 (find_line_pc): Change return type to bool.
3236 (find_line_pc_range): Likewise.
3237 (producer_is_realview): Likewise.
3238 * symtab.h (symbol_matches_domain): Likewise.
3239 (find_pc_partial_function): Likewise.
3240 (find_pc_line_pc_range): Likewise.
3241 (in_gnu_ifunc_stub): Likewise.
3242 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3243 (find_line_pc): Likewise.
3244 (find_line_pc_range): Likewise.
3245 (matching_obj_sections): Likewise.
3246 (find_line_symtab): Change out parameter to bool.
3247 (producer_is_realview): Change return type to bool.
3248 (compare_filenames_for_search): Likewise.
3249 (compare_glob_filenames_for_search): Likewise.
3250
3251 2019-09-26 Tom Tromey <tom@tromey.com>
3252
3253 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3254 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3255 * gdb_usleep.h: Remove.
3256 * gdb_usleep.c: Remove.
3257 * utils.c: Don't include gdb_usleep.h.
3258
3259 2019-09-26 Tom Tromey <tromey@adacore.com>
3260
3261 * python/py-type.c (type_to_type_object): Call check_typedef
3262 for stub types.
3263
3264 2019-09-26 Tom Tromey <tom@tromey.com>
3265
3266 * utils.h (initialize_utils): Don't declare.
3267 * top.c (gdb_init): Don't call initialize_utils.
3268 * utils.c (initialize_utils): Remove. Move contents...
3269 (_initialize_utils): ... here.
3270
3271 2019-09-25 Tom Tromey <tom@tromey.com>
3272
3273 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3274 * utils.h (make_hex_string): Don't declare.
3275 * utils.c (make_hex_string): Remove.
3276
3277 2019-09-24 Tom de Vries <tdevries@suse.de>
3278
3279 PR gdb/23815
3280 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3281 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3282
3283 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3284
3285 * NEWS: Mention new simulator port for PRU.
3286
3287 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3288
3289 * ada-exp.y (write_object_remaining): Update.
3290 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3291 and eliminate the static buffer.
3292 (ada_decode_symbol): Update.
3293 (ada_la_decode): Update.
3294 (ada_sniff_from_mangled_name): Update.
3295 (is_valid_name_for_wild_match): Update.
3296 (ada_lookup_name_info::matches): Update and simplify.
3297 (name_matches_regex): Update.
3298 (ada_add_global_exceptions): Update.
3299 * ada-lang.h (ada_decode): Update signature.
3300 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3301 * dwarf-index-write.c (debug_names::insert): Update.
3302
3303 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3306 formatting.
3307
3308 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3309
3310 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3311 Change "nonzero" to "true" in documentation.
3312
3313 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3314
3315 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3316 (_initialize_darwin_solib): Don't set
3317 darwin_so_ops.lookup_lib_global_symbol.
3318 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3319 set_gdbarch_iterate_over_objfiles_in_search_order.
3320 (elf_lookup_lib_symbol): Rename to...
3321 (svr4_iterate_over_objfiles_in_search_order): this, and update
3322 to iterate semantics.
3323 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3324 * solib.c (solib_global_lookup): Remove.
3325 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3326 (solib_global_lookup): Remove.
3327 * symtab.c (lookup_global_or_static_symbol): Remove call to
3328 solib_global_lookup.
3329
3330 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3331
3332 * NEWS: Move entries about default MI version now being
3333 version 3, and about the GDB/MI fix for multi-location
3334 breakpoints to the "since GDB 8.3" section.
3335
3336 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3337
3338 GDB 8.3.1 released.
3339
3340 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3341
3342 * NEWS: Mention that Cell/B.E. debugging support was removed.
3343 * MAINTAINERS: Remove spu target.
3344
3345 * config/djgpp/fnchange.lst: Remove entries for removed files.
3346
3347 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3348 spu-multiarch.o, and spu-tdep.o.
3349 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3350 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3351 spu-multiarch.c, and spu-tdep.c.
3352 * spu-linux-nat.c: Remove file.
3353 * spu-multiarch.c: Remove file.
3354 * spu-tdep.c: Remove file.
3355 * spu-tdep.h: Remove file.
3356 * solib-spu.c: Remove file.
3357 * solib-spu.h: Remove file.
3358
3359 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3360 * configure.nat (spu-linux): Remove.
3361 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3362 solib-multiarch.o from gdb_target_obs.
3363 (spu*-*-*): Remove.
3364
3365 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3366 feature flag.
3367 (ppc_linux_no_features): Update.
3368 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3369 Cell/B.E. support.
3370 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3371 (tdesc_powerpc_cell64l): Likewise.
3372 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3373 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3374 Cell/B.E. support.
3375 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3376 Do not include "features/rs6000/powerpc-cell32l.c" or
3377 "features/rs6000/powerpc-cell64l.c".
3378 (ppc_linux_spu_section): Remove.
3379 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3380 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3381 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3382 (ppc_linux_spe_context_lookup): Remove.
3383 (ppc_linux_spe_context_inferior_created): Remove.
3384 (ppc_linux_spe_context_solib_loaded): Remove.
3385 (ppc_linux_spe_context_solib_unloaded): Remove.
3386 (ppc_linux_spe_context): Remove.
3387 (struct ppu2spu_cache): Remove.
3388 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3389 (struct ppu2spu_data): Remove.
3390 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3391 ppu2spu_unwind): Remove.
3392 (ppc_linux_init_abi): Remove Cell/B.E. support.
3393 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3394
3395 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3396 (rs6000/powerpc-cell64l-expedite): Likewise
3397 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3398 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3399 rs6000/powerpc-cell64l.xml.
3400 * features/rs6000/powerpc-cell32l.xml: Remove.
3401 * features/rs6000/powerpc-cell64l.xml: Likewise.
3402 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3403 * features/rs6000/powerpc-cell64l.c: Likewise.
3404 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3405 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3406 * regformats/reg-spu.dat: Remove.
3407
3408 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3409 * corelow.c (struct spuid_list): Remove.
3410 (add_to_spuid_list): Remove.
3411 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3412 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3413 (remote_protocol_features): Remove associated entries.
3414 (_initialize_remote): No longer initialize them.
3415 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3416 * linux-nat.c (SPUFS_MAGIC): Remove.
3417 (linux_proc_xfer_spu): Remove.
3418 (spu_enumerate_spu_ids): Remove.
3419 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3420 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3421 (linux_make_corefile_notes): No longer call it.
3422
3423 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3424 (cooked_write_test): Likewise.
3425
3426 2019-09-20 Tom Tromey <tom@tromey.com>
3427
3428 * NEWS: Mention case-sensitivity of TUI commands.
3429 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3430 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3431 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3432
3433 2019-09-20 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-source.c (tui_source_window::set_contents): Use
3436 make_unique_xstrdup.
3437 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3438 make_unique_xstrdup.
3439
3440 2019-09-20 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-data.c: Remove separator comments.
3443 * tui/tui-layout.c: Remove separator comments.
3444 * tui/tui-win.c: Remove separator comments.
3445 * tui/tui-wingeneral.c: Remove separator comments.
3446
3447 2019-09-20 Tom Tromey <tom@tromey.com>
3448
3449 * tui/tui.h (strcat_to_buf): Don't declare.
3450 * tui/tui.c (strcat_to_buf): Remove.
3451
3452 2019-09-20 Tom Tromey <tom@tromey.com>
3453
3454 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3455 from "fullname".
3456 * tui/tui-source.c (tui_source_window::set_contents)
3457 (tui_source_window::location_matches_p)
3458 (tui_source_window::maybe_update): Update.
3459
3460 2019-09-20 Tom Tromey <tom@tromey.com>
3461
3462 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3463 Update.
3464 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3465 prefix.
3466 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3467 (tui_data_window::line_from_reg_element_no)
3468 (tui_data_window::first_reg_element_no_inline)
3469 (tui_data_window::show_registers)
3470 (tui_data_window::show_register_group)
3471 (tui_data_window::display_registers_from)
3472 (tui_data_window::display_registers_from_line)
3473 (tui_data_window::first_data_item_displayed)
3474 (tui_data_window::delete_data_content_windows)
3475 (tui_data_window::erase_data_content)
3476 (tui_data_window::do_scroll_vertical)
3477 (tui_data_window::refresh_window)
3478 (tui_data_window::check_register_values): Update.
3479
3480 2019-09-20 Tom Tromey <tom@tromey.com>
3481
3482 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3483 (struct tui_locator_window) <full_name, proc_name>: Now
3484 std::string.
3485 * tui/tui-stack.c (tui_locator_window::make_status_line)
3486 (tui_locator_window::set_locator_fullname)
3487 (tui_locator_window::set_locator_info): Update.
3488 * tui/tui-source.c (tui_source_window::set_contents)
3489 (tui_source_window::showing_source_p): Update.
3490
3491 2019-09-20 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3494 Don't call tui_locator_win_info_ptr.
3495
3496 2019-09-20 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3499
3500 2019-09-20 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3503 height for locator.
3504 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3505 * tui/tui-layout.c (show_source_disasm_command, show_data)
3506 (show_source_or_disasm_and_command): Use 1 as height for locator.
3507
3508 2019-09-20 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui.c (tui_enable): Update.
3511 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3512 Update.
3513 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3514 Update.
3515 * tui/tui-data.c (win_resized): Now bool.
3516 (tui_win_resized): Return bool.
3517 (tui_set_win_resized_to): Accept a bool.
3518
3519 2019-09-20 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3522 Change type of "refresh_values_only".
3523 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3524 type of "refresh_values_only".
3525
3526 2019-09-20 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3529 std::string.
3530 (tui_disassemble): Add "pos" parameter.
3531 (tui_disasm_window::set_contents): Simplify.
3532
3533 2019-09-20 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-winsource.h (struct tui_source_window_base)
3536 <show_source_content>: Now private.
3537 * tui/tui-winsource.c
3538 (tui_source_window_base::show_source_content): Don't handle empty
3539 content case.
3540
3541 2019-09-20 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-layout.c (show_source_disasm_command)
3544 (show_source_or_disasm_and_command): Don't call
3545 show_source_content.
3546
3547 2019-09-20 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3550 Declare.
3551 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3552 from tui_make_status_line.
3553 (tui_locator_window::rerender): Update.
3554
3555 2019-09-20 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3558 (tui_locator_window::rerender): Update.
3559
3560 2019-09-20 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-winsource.h (struct tui_source_window_base)
3563 <~tui_source_window_base>: Don't declare.
3564 <fullname>: Remove.
3565 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3566 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3567 member.
3568 * tui/tui-source.c (tui_source_window::set_contents): Update.
3569 (tui_source_window::location_matches_p)
3570 (tui_source_window::maybe_update): Update.
3571
3572 2019-09-20 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-winsource.h (~tui_source_element): Remove.
3575 (tui_source_element): Update.
3576 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3577 * tui/tui-winsource.c (tui_show_source_line): Update.
3578 * tui/tui-source.c (tui_source_window::set_contents): Update.
3579 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3580
3581 2019-09-20 Tom Tromey <tom@tromey.com>
3582
3583 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3584 declare.
3585 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3586 tui_clear_source_windows_detail.
3587 * tui/tui-winsource.h (struct tui_source_window_base)
3588 <clear_detail>: Don't declare.
3589 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3590 Remove.
3591 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3592
3593 2019-09-20 Tom Tromey <tromey@adacore.com>
3594
3595 PR ada/24919:
3596 * block.c (contained_in): Fix final return value.
3597
3598 2019-09-20 Alan Modra <amodra@gmail.com>
3599
3600 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3601 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3602 (read_indirect_string_from_dwz): Use bfd accessor.
3603 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3604 * machoread.c (macho_symfile_read_all_oso): Likewise.
3605 * solib.c (solib_bfd_open): Likewise.
3606
3607 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3608
3609 * eval.c: Move declaration of overload_resolution to...
3610 * value.h: ...here.
3611
3612 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3613
3614 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3615 * arm-linux-tdep.c: Likewise.
3616 * arm-nbsd-nat.c: Likewise.
3617 * arm-tdep.h: Declare arm_apcs_32.
3618 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3619
3620 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3621
3622 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3623 * dwarf2read.h: Declare dwarf_always_disassemble.
3624
3625 2019-09-19 Tom de Vries <tdevries@suse.de>
3626
3627 PR gdb/25009
3628 * source-cache.c (source_cache::ensure): Catch exception thrown during
3629 construction of the highlighter.
3630
3631 2019-09-18 Alan Modra <amodra@gmail.com>
3632
3633 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3634 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3635 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3636 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3637 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3638 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3639 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3640 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3641 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3642 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3643 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3644 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3645 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3646 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3647 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3648 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3649 * mi/mi-interp.c: Update throughout for bfd section macro and
3650 function changes.
3651 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3652 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3653
3654 2019-09-18 Tom Tromey <tom@tromey.com>
3655
3656 * NEWS: Add entry.
3657 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3658 call rl_initialize.
3659 (tui_enable): Do not call rl_initialize.
3660
3661 2019-09-18 Christian Groessler <chris@groessler.org>
3662
3663 * alpha-linux-nat.c: Include gdbarch.h.
3664
3665 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3666
3667 * ui-file.c: Include cli/cli-style.h.
3668 (term_cli_styling): Remove cli_styling declaration.
3669
3670 2019-09-18 Alan Modra <amodra@gmail.com>
3671
3672 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3673 to bfd_asymbol_section.
3674
3675 2019-09-18 Alan Modra <amodra@gmail.com>
3676
3677 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3678 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3679 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3680
3681 2019-09-18 Alan Modra <amodra@gmail.com>
3682
3683 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3684 * spu-linux-nat.c (spu_bfd_open): Likewise.
3685
3686 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3687
3688 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3689 to bool to match definition in dwarf2read.c.
3690
3691 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3692
3693 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3694 (print_signatures): Likewise.
3695 (trust_pad_over_xvs): Likewise.
3696 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3697 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3698 * arm-linux-nat.c (arm_apcs_32): Likewise.
3699 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3700 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3701 * arm-tdep.c (arm_debug): Likewise.
3702 (arm_apcs_32): Likewise.
3703 * auto-load.c (debug_auto_load): Likewise.
3704 (auto_load_gdb_scripts): Likewise.
3705 (global_auto_load): Likewise.
3706 (auto_load_local_gdbinit): Likewise.
3707 (auto_load_local_gdbinit_loaded): Likewise.
3708 * auto-load.h (global_auto_load): Likewise.
3709 (auto_load_local_gdbinit): Likewise.
3710 (auto_load_local_gdbinit_loaded): Likewise.
3711 * breakpoint.c (disconnected_dprintf): Likewise.
3712 (breakpoint_proceeded): Likewise.
3713 (automatic_hardware_breakpoints): Likewise.
3714 (always_inserted_mode): Likewise.
3715 (target_exact_watchpoints): Likewise.
3716 (_initialize_breakpoint): Update.
3717 * breakpoint.h (target_exact_watchpoints): Change to bool.
3718 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3719 * cli/cli-cmds.c (trace_commands): Likewise.
3720 * cli/cli-cmds.h (trace_commands): Likewise.
3721 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3722 to bool*.
3723 * cli/cli-logging.c (logging_overwrite): Change to bool.
3724 (logging_redirect): Likewise.
3725 (debug_redirect): Likewise.
3726 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3727 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3728 to bool.
3729 <boolean_option_def>: Update.
3730 (struct flag_option_def): Change default type of Context to bool
3731 from int.
3732 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3733 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3734 (get_setshow_command_value_string): Likewise.
3735 * cli/cli-style.c (cli_styling): Change to bool.
3736 (source_styling): Likewise.
3737 * cli/cli-style.h (source_styling): Likewise.
3738 (cli_styling): Likewise.
3739 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3740 to bool.
3741 * command.h (var_types): Update comment.
3742 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3743 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3744 bool.
3745 (debug_compile_cplus_scopes): Likewise.
3746 * compile/compile-internal.h (compile_debug): Likewise.
3747 * compile/compile.c (compile_debug): Likewise.
3748 (struct compile_options) <raw>: Likewise.
3749 * cp-support.c (catch_demangler_crashes): Likewise.
3750 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3751 (usr_cmd_cris_dwarf2_cfi): Likewise.
3752 * csky-tdep.c (csky_debug): Likewise.
3753 * darwin-nat.c (enable_mach_exceptions): Likewise.
3754 * dcache.c (dcache_enabled_p): Likewise.
3755 * defs.h (info_verbose): Likewise.
3756 * demangle.c (demangle): Likewise.
3757 (asm_demangle): Likewise.
3758 * dwarf-index-cache.c (debug_index_cache): Likewise.
3759 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3760 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3761 * dwarf2read.c (check_physname): Likewise.
3762 (use_deprecated_index_sections): Likewise.
3763 (dwarf_always_disassemble): Likewise.
3764 * eval.c (overload_resolution): Likewise.
3765 * event-top.c (set_editing_cmd_var): Likewise.
3766 (exec_done_display_p): Likewise.
3767 * event-top.h (set_editing_cmd_var): Likewise.
3768 (exec_done_display_p): Likewise.
3769 * exec.c (write_files): Likewise.
3770 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3771 (debug_fbsd_nat): Likewise.
3772 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3773 Likewise.
3774 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3775 <backtrace_past_entry> Likewise.
3776 * gdb-demangle.h (demangle): Likewise.
3777 (asm_demangle): Likewise.
3778 * gdb_bfd.c (bfd_sharing): Likewise.
3779 * gdbcore.h (write_files): Likewise.
3780 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3781 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3782 * gdbthread.h (print_thread_events): Likewise.
3783 * gdbtypes.c (opaque_type_resolution): Likewise.
3784 (strict_type_checking): Likewise.
3785 * gnu-nat.c (gnu_debug_flag): Likewise.
3786 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3787 * guile/scm-param.c (pascm_variable): Add boolval.
3788 (add_setshow_generic): Update.
3789 (pascm_param_value): Update.
3790 (pascm_set_param_value_x): Update.
3791 * hppa-tdep.c (hppa_debug): Change to bool..
3792 * infcall.c (may_call_functions_p): Likewise.
3793 (coerce_float_to_double_p): Likewise.
3794 (unwind_on_signal_p): Likewise.
3795 (unwind_on_terminating_exception_p): Likewise.
3796 * infcmd.c (startup_with_shell): Likewise.
3797 * inferior.c (print_inferior_events): Likewise.
3798 * inferior.h (startup_with_shell): Likewise.
3799 (print_inferior_events): Likewise.
3800 * infrun.c (step_stop_if_no_debug): Likewise.
3801 (detach_fork): Likewise.
3802 (debug_displaced): Likewise.
3803 (disable_randomization): Likewise.
3804 (non_stop): Likewise.
3805 (non_stop_1): Likewise.
3806 (observer_mode): Likewise.
3807 (observer_mode_1): Likewise.
3808 (set_observer_mode): Update.
3809 (sched_multi): Change to bool.
3810 * infrun.h (debug_displaced): Likewise.
3811 (sched_multi): Likewise.
3812 (step_stop_if_no_debug): Likewise.
3813 (non_stop): Likewise.
3814 (disable_randomization): Likewise.
3815 * linux-tdep.c (use_coredump_filter): Likewise.
3816 (dump_excluded_mappings): Likewise.
3817 * linux-thread-db.c (auto_load_thread_db): Likewise.
3818 (check_thread_db_on_load): Likewise.
3819 * main.c (captured_main_1): Update.
3820 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3821 xx2_opt, boolean_opt>: Change to bool.
3822 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3823 * maint.c (maintenance_profile_p): Likewise.
3824 (per_command_time): Likewise.
3825 (per_command_space): Likewise.
3826 (per_command_symtab): Likewise.
3827 * memattr.c (inaccessible_by_default): Likewise.
3828 * mi/mi-main.c (mi_async): Likewise.
3829 (mi_async_1): Likewise.
3830 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3831 * nat/fork-inferior.h (startup_with_shell): Likewise.
3832 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3833 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3834 * nios2-tdep.c (nios2_debug): Likewise.
3835 * or1k-tdep.c (or1k_debug): Likewise.
3836 * parse.c (parser_debug): Likewise.
3837 * parser-defs.h (parser_debug): Likewise.
3838 * printcmd.c (print_symbol_filename): Likewise.
3839 * proc-api.c (procfs_trace): Likewise.
3840 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3841 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3842 (set_parameter_value): Update.
3843 (add_setshow_generic): Update.
3844 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3845 to bool*.
3846 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3847 int*.
3848 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3849 * record-btrace.c (record_btrace_target::store_registers): Update.
3850 * record-full.c (record_full_memory_query): Change to bool.
3851 (record_full_stop_at_limit): Likewise.
3852 * record-full.h (record_full_memory_query): Likewise.
3853 * remote-notif.c (notif_debug): Likewise.
3854 * remote-notif.h (notif_debug): Likewise.
3855 * remote.c (use_range_stepping): Likewise.
3856 (interrupt_on_connect): Likewise.
3857 (remote_break): Likewise.
3858 * ser-tcp.c (tcp_auto_retry): Likewise.
3859 * ser-unix.c (serial_hwflow): Likewise.
3860 * skip.c (debug_skip): Likewise.
3861 * solib-aix.c (solib_aix_debug): Likewise.
3862 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3863 (spu_auto_flush_cache_p): Likewise.
3864 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3865 Likewise.
3866 (struct info_print_options) <quiet>: Likewise.
3867 * symfile-debug.c (debug_symfile): Likewise.
3868 * symfile.c (auto_solib_add): Likewise.
3869 (separate_debug_file_debug): Likewise.
3870 * symfile.h (auto_solib_add): Likewise.
3871 (separate_debug_file_debug): Likewise.
3872 * symtab.c (basenames_may_differ): Likewise.
3873 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3874 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3875 (struct info_types_options) <quiet>: Likewise.
3876 * symtab.h (demangle): Likewise.
3877 (basenames_may_differ): Likewise.
3878 * target-dcache.c (stack_cache_enabled_1): Likewise.
3879 (code_cache_enabled_1): Likewise.
3880 * target.c (trust_readonly): Likewise.
3881 (may_write_registers): Likewise.
3882 (may_write_memory): Likewise.
3883 (may_insert_breakpoints): Likewise.
3884 (may_insert_tracepoints): Likewise.
3885 (may_insert_fast_tracepoints): Likewise.
3886 (may_stop): Likewise.
3887 (auto_connect_native_target): Likewise.
3888 (target_stop_and_wait): Update.
3889 (target_async_permitted): Change to bool.
3890 (target_async_permitted_1): Likewise.
3891 (may_write_registers_1): Likewise.
3892 (may_write_memory_1): Likewise.
3893 (may_insert_breakpoints_1): Likewise.
3894 (may_insert_tracepoints_1): Likewise.
3895 (may_insert_fast_tracepoints_1): Likewise.
3896 (may_stop_1): Likewise.
3897 * target.h (target_async_permitted): Likewise.
3898 (may_write_registers): Likewise.
3899 (may_write_memory): Likewise.
3900 (may_insert_breakpoints): Likewise.
3901 (may_insert_tracepoints): Likewise.
3902 (may_insert_fast_tracepoints): Likewise.
3903 (may_stop): Likewise.
3904 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3905 (make_thread_apply_all_options_def_group): Change argument from int*
3906 to bool*.
3907 (thread_apply_all_command): Update.
3908 (print_thread_events): Change to bool.
3909 * top.c (confirm): Likewise.
3910 (command_editing_p): Likewise.
3911 (history_expansion_p): Likewise.
3912 (write_history_p): Likewise.
3913 (info_verbose): Likewise.
3914 * top.h (confirm): Likewise.
3915 (history_expansion_p): Likewise.
3916 * tracepoint.c (disconnected_tracing): Likewise.
3917 (circular_trace_buffer): Likewise.
3918 * typeprint.c (print_methods): Likewise.
3919 (print_typedefs): Likewise.
3920 * utils.c (debug_timestamp): Likewise.
3921 (sevenbit_strings): Likewise.
3922 (pagination_enabled): Likewise.
3923 * utils.h (sevenbit_strings): Likewise.
3924 (pagination_enabled): Likewise.
3925 * valops.c (overload_resolution): Likewise.
3926 * valprint.h (struct value_print_options) <prettyformat_arrays,
3927 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3928 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3929 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3930 Likewise.
3931 * windows-nat.c (new_console): Likewise.
3932 (cygwin_exceptions): Likewise.
3933 (new_group): Likewise.
3934 (debug_exec): Likewise.
3935 (debug_events): Likewise.
3936 (debug_memory): Likewise.
3937 (debug_exceptions): Likewise.
3938 (useshell): Likewise.
3939 * windows-tdep.c (maint_display_all_tib): Likewise.
3940 * xml-support.c (debug_xml): Likewise.
3941
3942 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3943
3944 * source.c (prepare_path_for_appending): New function.
3945 (openp): Make use of new function.
3946 (find_and_open_source): Search for the compilation directory and
3947 source file as a relative path beneath the directory search path.
3948
3949 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * source-cache.c (source_cache::get_line_charpos): Catch
3952 exceptions and return false, this matches the behaviour documented
3953 in the header file.
3954
3955 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3956
3957 * ada-tasks.c (info_task): Remove quoting of the task's name.
3958
3959 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3960
3961 * symfile.c (auto_solib_add): Replace comment with a reference
3962 to the header file.
3963
3964 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3965
3966 * NEWS: Mention that gdb can now be compiled with Python 3
3967 on Windows.
3968
3969 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * maint.c (maint_print_section_data::maint_print_section_data):
3972 Force use of 'float log10 (float)' by casting the argument to
3973 float.
3974
3975 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * maint.c: Add 'cmath' include.
3978 (struct maint_print_section_data): New structure.
3979 (print_section_index): New function.
3980 (print_bfd_section_info): Add header comment, small whitespace
3981 cleanup, and update to call new print_section_index function.
3982 (print_objfile_section_info): Likewise.
3983 (maint_obj_section_from_bfd_section): New function.
3984 (print_bfd_section_info_maybe_relocated): New function.
3985 (maintenance_info_sections): Add header comment, always use
3986 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3987
3988 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3991 inner scope, add check that the objfile has psymtabs before
3992 checking psymtabs_addrmap.
3993 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3994
3995 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3996
3997 * NEWS: Announce that Ada task names are now shown at more places,
3998 and between quotes (except in info task output).
3999 * gdb/ada-tasks.c (task_to_str): New function.
4000 (display_current_task_id): Call task_to_str.
4001 (task_command_1): Likewise.
4002 (print_ada_task_info): In non-mi mode, Properly align headers and data
4003 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4004
4005 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4006
4007 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4008 prstatus.pr_lwp.pr_info instead of making it up.
4009
4010 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4011
4012 * auto-load.c (auto_load_expand_dir_vars): Update.
4013 * defs.h (gdb_datadir): Change to std::string.
4014 (python_libdir): Likewise.
4015 (relocate_gdb_directory): Change return type to std::string.
4016 * guile/guile.c (gdbscm_data_directory): Update.
4017 (initialize_scheme_side): Update.
4018 * jit.c (jit_reader_dir): Change to std::string.
4019 (jit_reader_load_command): Update.
4020 * main.c (gdb_datadir): Change to std::string.
4021 (python_libdir): Likewise.
4022 (set_gdb_data_directory): Update.
4023 (relocate_path): Change to return std::string.
4024 (relocate_gdb_directory): Change to return std::string.
4025 (relocate_gdbinit_path_maybe_in_datadir): Update.
4026 (captured_main_1): Update.
4027 * python/python.c (do_start_initialization): Update.
4028 * top.c (show_gdb_datadir): Update.
4029 * xml-syscall.c (xml_init_syscalls_info): Update.
4030 (init_syscalls_info): Update.
4031
4032 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4033
4034 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4035 out of get_init_files.
4036 (get_init_files): Update.
4037
4038 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4039
4040 * main.c (get_init_files): Change to use std::string.
4041 (captured_main_1): Update.
4042 (print_gdb_help): Update.
4043
4044 2019-09-11 Ali Tamur <tamur@google.com>
4045
4046 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4047 implementation.
4048
4049 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4050
4051 * dbxread.c (read_dbx_symtab): Update.
4052 * dwarf2read.c (load_partial_dies): Update.
4053 * mdebugread.c (parse_partial_symbols): Update.
4054 (handle_psymbol_enumerators): Update.
4055 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4056 * psymtab.c (add_psymbol_to_bcache): Likewise.
4057 (add_psymbol_to_list): Likewise.
4058 * symtab.c (symbol_set_names): Likewise.
4059 * symtab.h (symbol_set_names): Likewise.
4060 * xcoffread.c (scan_xcoff_symtab): Update.
4061
4062 2019-09-11 Tom Tromey <tom@tromey.com>
4063
4064 * symfile-mem.c (symbol_file_add_from_memory): Use
4065 bfd_set_filename.
4066 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4067 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4068
4069 2019-09-10 Tom Tromey <tromey@adacore.com>
4070
4071 * dwarf-index-write.c (write_psymbols): Extend error message.
4072 (debug_names::insert): Add Ada code.
4073 (debug_names::write_psymbols): Remove Ada check.
4074 (debug_names) <m_string_obstack>: New member.
4075 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4076 (gdb_index_symbol_name_matcher::matches): Remove.
4077 (mapped_index_base::find_name_components_bounds): Add "lang"
4078 parameter.
4079 (mapped_index_base::build_name_components): Also split names
4080 according to Ada syntax.
4081 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4082 type of "match_callback".
4083 (check_match, check_find_bounds_finds)
4084 (dw2_expand_symtabs_matching): Update.
4085 (dw2_debug_names_iterator): Add new constructor.
4086 (dw2_debug_names_map_matching_symbols): New function.
4087 (dw2_debug_names_expand_symtabs_matching): Update.
4088 (dwarf2_debug_names_functions): Use
4089 dw2_debug_names_map_matching_symbols.
4090
4091 2019-09-10 Tom Tromey <tromey@adacore.com>
4092
4093 * dwarf2read.c (dw2_get_file_names_reader): Add the
4094 CU's file name to the results.
4095
4096 2019-09-10 Tom Tromey <tromey@adacore.com>
4097
4098 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4099 map_matching_symbols. Update.
4100 * dwarf2read.c (dw2_map_matching_symbols): Update.
4101 * psymtab.c (match_partial_symbol): Change type; update.
4102 (psym_map_matching_symbols): Likewise.
4103 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4104 type; update.
4105 * symfile.h (struct quick_symbol_functions)
4106 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4107 Remove "match".
4108
4109 2019-09-10 Tom Tromey <tromey@adacore.com>
4110
4111 * psymtab.c (map_block): Remove.
4112 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4113 * symtab.c (iterate_over_symbols_terminated): New function.
4114 * symtab.c (iterate_over_symbols_terminated): Declare.
4115
4116 2019-09-10 Tom Tromey <tromey@adacore.com>
4117
4118 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4119 * language.h (struct language_defn) <la_iterate_over_symbols>:
4120 Return bool.
4121 * symtab.c (iterate_over_symbols): Return bool.
4122 * symtab.h (iterate_over_symbols): Return bool.
4123
4124 2019-09-10 Tom Tromey <tromey@adacore.com>
4125
4126 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4127 (add_nonlocal_symbols): Update.
4128 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4129 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4130 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4131 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4132 Change type of "callback". Remove "data".
4133
4134
4135 2019-09-09 Ali Tamur <tamur@google.com>
4136
4137 * dwarf2read.c (comp_unit_head): Update comment.
4138 (dwarf2_dwo_name): New function declaration.
4139 (dwarf_unit_type_name): New function declaration.
4140 (read_comp_unit_head): Add support for new compilation units,
4141 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4142 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4143 (currently named as "signature") in their header. Also clarify error
4144 messages.
4145 (lookup_dwo_id): New function. Returns the dwo id of the given
4146 compile unit.
4147 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4148 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4149 functions.
4150 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4151 (dwarf2_dwo_name): Get the dwo name if present.
4152 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4153 purposes.
4154
4155 2019-09-09 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4158
4159 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4160
4161 * python/python.c (do_start_initialization): Make progname_copy static,
4162 to avoid a leak report.
4163
4164 2019-09-08 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4167
4168 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4171 Change type to gdb::optional<block_enum>.
4172 (dw2_symtab_iter_init): Change block_index parameter type
4173 to gdb::optional<block_enum>.
4174 (dw2_lookup_symbol): Change block_index parameter
4175 type to block_enum.c
4176 (dw2_debug_names_lookup_symbol): Likewise.
4177 * psymtab.c (psym_lookup_symbol): Likewise.
4178 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4179 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4180 Likewise.
4181
4182 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4183
4184 * defs.h (relocate_gdb_directory): Change int to bool in
4185 signature and rename flag to relocatable.
4186 * main.c (relocate_path): Likewise.
4187 (relocate_gdb_directory): Likewise.
4188
4189 2019-09-06 Alan Modra <amodra@gmail.com>
4190
4191 * coffread.c (coff_symfile_read): Constify filename variable.
4192 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4193 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4194 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4195 * solib.c (reload_shared_libraries_1): Likewise.
4196 * symfile.c (reread_symbols): Likewise.
4197 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4198 * solib-darwin.c (darwin_bfd_open): Likewise.
4199 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4200
4201 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4204 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4205
4206 2019-09-03 Tom Tromey <tromey@adacore.com>
4207
4208 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4209 types.
4210 (has_negatives): Unbias a range type bound.
4211 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4212 * gdbtypes.c (operator==): Handle new field.
4213 (create_range_type): Add "bias" parameter.
4214 (create_static_range_type, resolve_dynamic_range): Update.
4215 * gdbtypes.h (struct range_bounds) <bias>: New member.
4216 (create_range_type): Add bias parameter.
4217 * printcmd.c (print_scalar_formatted): Unbias range types.
4218 * value.c (unpack_long): Unbias range types.
4219 (pack_long): Bias range types.
4220
4221 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4222
4223 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4224 probe arguments.
4225
4226 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4227
4228 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4229 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4230 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4231 (compile_probe_arg): Likewise.
4232 * probe.h (get_argument_count): Likewise.
4233 * solib-svr4.c (solib_event_probe_action): Likewise.
4234 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4235
4236 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4237
4238 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4239 code to here...
4240 (svr4_create_solib_event_breakpoints): ...from here.
4241
4242 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4243
4244 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4245 suffix from warning message.
4246
4247 2019-08-30 Tom Tromey <tom@tromey.com>
4248
4249 * tui/tui-winsource.h (struct tui_source_window_base)
4250 <refresh_all>: Don't declare.
4251 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4252 Remove.
4253 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4254 tui_show_locator_content.
4255 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4256 declare.
4257 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4258 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4259 declare.
4260
4261 2019-08-30 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4264
4265 2019-08-30 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4268 Remove unnecessary forward declarations.
4269
4270 2019-08-30 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4273 rerender.
4274 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4275 tui_show_locator_content.
4276
4277 2019-08-30 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4280 (tui_locator_window::rerender): Rewrite using body of previous
4281 tui_show_locator_content.
4282
4283 2019-08-30 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4286 set_locator_fullname>: New methods.
4287 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4288 Rename from tui_set_locator_fullname.
4289 (tui_locator_window::set_locator_info): Rename from
4290 tui_set_locator_info. Return bool.
4291 (tui_update_locator_fullname, tui_show_frame_info): Update.
4292
4293 2019-08-30 Tom Tromey <tom@tromey.com>
4294
4295 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4296
4297 2019-08-30 Tom Tromey <tom@tromey.com>
4298
4299 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4300 call touchwin.
4301
4302 2019-08-30 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-wingeneral.c (box_win): Assume win_info and
4305 win_info->handle cannot be NULL.
4306
4307 2019-08-30 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4310 refresh_window>: Declare.
4311 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4312 resize.
4313 (tui_data_item_window::rerender): Rename from
4314 tui_display_register.
4315 (tui_data_item_window::refresh_window): New method.
4316 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4317 no-op.
4318
4319 2019-08-30 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4322 regs_column_count, current_group>: Move later. Now private.
4323 <get_current_group>: New method.
4324 * tui/tui-regs.c (tui_reg_command): Update.
4325 * tui/tui-layout.c (tui_set_layout): Update.
4326
4327 2019-08-30 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4330 (tui_data_window::rerender): Don't call
4331 check_and_display_highlight_if_needed.
4332 (tui_data_window::refresh_all): Remove call to
4333 erase_data_content.
4334
4335 2019-08-30 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4338 (tui_data_window::display_registers_from)
4339 (tui_data_window::display_reg_element_at_line)
4340 (tui_data_window::display_registers_from_line): Remove checks of
4341 "empty".
4342
4343 2019-08-30 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4346 Don't declare.
4347 * tui/tui-regs.c (tui_data_window::show_registers): Call
4348 rerender.
4349 (tui_data_window::rerender): Rename from display_all_data.
4350 (tui_data_window::rerender): Remove old implementation.
4351
4352 2019-08-30 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4355 text.
4356 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4357
4358 2019-08-29 Bernhard Wodok <barto@gmx.net>
4359 Sergio Durigan Junior <sergiodj@redhat.com>
4360
4361 PR win32/24284
4362 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4363
4364 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4367 when searching for types.
4368
4369 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * f-lang.c (f_language_defn): Use f_print_typedef.
4372 * f-lang.h (f_print_typedef): Declare.
4373 * f-typeprint.c (f_print_typedef): Define.
4374
4375 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4376
4377 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4378
4379 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4380
4381 * cli/cli-utils.c (info_print_options_defs): Delete.
4382 (make_info_print_options_def_group): Delete.
4383 (extract_info_print_options): Delete.
4384 (info_print_command_completer): Delete.
4385 (info_print_args_help): Add extra parameter, and optionally
4386 include text about -n flag.
4387 * cli/cli-utils.h (struct info_print_options): Delete.
4388 (extract_info_print_options): Delete declaration.
4389 (info_print_command_completer): Delete declaration.
4390 (info_print_args_help): Add extra parameter, extend header
4391 comment.
4392 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4393 search_symbols.
4394 * stack.c (struct info_print_options): New type.
4395 (info_print_options_defs): New file scoped variable.
4396 (make_info_print_options_def_group): New static function.
4397 (info_print_command_completer): New static function.
4398 (info_locals_command): Update to use new local functions.
4399 (info_args_command): Likewise.
4400 (_initialize_stack): Add extra parameter to calls to
4401 info_print_args_help.
4402 * symtab.c (search_symbols): Add extra parameter, use this to
4403 possibly excluse non-debug symbols.
4404 (symtab_symbol_info): Add extra parameter, which is passed on to
4405 search_symbols.
4406 (struct info_print_options): New type.
4407 (info_print_options_defs): New file scoped variable.
4408 (make_info_print_options_def_group): New static function.
4409 (info_print_command_completer): New static function.
4410 (info_variables_command): Update to use local functions, and pass
4411 extra parameter through to symtab_symbol_info.
4412 (info_functions_command): Likewise.
4413 (info_types_command): Pass additional argument through to
4414 symtab_symbol_info.
4415 (rbreak_command): Pass extra argument to search_symbols.
4416 (_initialize_symtab): Add extra arguments for calls to
4417 info_print_args_help, and update help text for 'info variables',
4418 'whereis', and 'info functions' commands.
4419 * symtab.h (search_symbols): Add extra argument to declaration.
4420 * NEWS: Mention new flags.
4421
4422 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4423
4424 * symtab.c (lookup_static_symbol): Call the new function (and move
4425 it down to be next to lookup_global_symbol).
4426 (struct global_sym_lookup_data): Add block_enum member and rename to...
4427 (struct global_or_static_sym_lookup_data): ...this.
4428 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4429 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4430 (lookup_symbol_global_or_static_iterator_cb): ...this.
4431 (lookup_global_or_static_symbol): New function.
4432 (lookup_global_symbol): Call new function.
4433
4434 2019-08-26 Tom de Vries <tdevries@suse.de>
4435
4436 PR c++/24852
4437 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4438 when pc_probe.prob == NULL.
4439
4440 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4443 variable symbol_linkage to symbol_linkage_.
4444
4445 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4448 represent whether the symbol is static, dynamic, or we don't
4449 know.
4450
4451 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4452
4453 * gdb/rx-tdep.c (rx_register_names): New.
4454 (rx_register_name): Delete.
4455 (rx_psw_type): Delete.
4456 (rx_fpsw_type): Delete.
4457 (rx_register_type): Delete.
4458 (rx_gdbarch_init): Convert target-descriptions.
4459 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4460 * gdb/features/Makefile: Add rx.xml.
4461 * gdb/features/rx.xml: New.
4462 * gdb/features/rx.c: Generated.
4463 * gdb/NEWS: Mention target description support.
4464
4465 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4466
4467 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4468 *slot_ptr.
4469
4470 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4471
4472 * configure.ac: Don't check for 'dlfcn.h' (moved to
4473 gdbsupport/common.m4).
4474 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4475 'gdbsupport/'.
4476 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4477 * compile/compile-c-support.c: Include
4478 'gdbsupport/gdb-dlfcn.h'.
4479 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4480 * gdb-dlfcn.c: Move to...
4481 * gdbsupport/gdb-dlfcn.c: ... here.
4482 * gdb-dlfcn.h: Move to...
4483 * gdbsupport/gdb-dlfcn.h: ... here.
4484
4485 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4486
4487 * nios2-tdep.c (struct reg_value): Improve comments. Make
4488 the offset field signed.
4489
4490 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4491
4492 * python/lib/gdb/__init__.py (_execute_file): New function.
4493 * python/python.c (python_run_simple_file): Call gdb._execute_file
4494 on Windows.
4495
4496 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4499 all uses as this was never set to anything but a zero value.
4500
4501 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4502
4503 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4504
4505 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4506
4507 * tui/tui-data.h (tui_gen_win_info): Add an =default
4508 move constructor, required by some GCC versions.
4509
4510 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4511
4512 * go32-nat.c (go32_sysinfo): Add hygon_p.
4513
4514 2019-08-20 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4517 line_from_reg_element_no, first_reg_element_no_inline,
4518 display_all_data, delete_data_content_windows,
4519 erase_data_content>: Now private.
4520
4521 2019-08-20 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4524 (tui_unhighlight_win, tui_highlight_win)
4525 (tui_win_info::make_window): Update.
4526 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4527
4528 2019-08-20 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4531 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4532 (MAX_PID_WIDTH): Move to tui-stack.c.
4533 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4534 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4535 (MAX_PID_WIDTH): Move from tui-data.h.
4536
4537 2019-08-20 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4540 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4541 (box_win): Update.
4542 (tui_gen_win_info::make_window): Rename from tui_make_window.
4543 (tui_win_info::make_window): New method.
4544 (tui_gen_win_info::make_visible): Update.
4545 * tui/tui-source.c (tui_source_window::set_contents): Update.
4546 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4547 (tui_data_window::display_registers_from): Update.
4548 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4549 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4550 Declare.
4551 <can_box>: Remove.
4552 <title>: Remove.
4553 (struct tui_win_info) <make_window>: Declare.
4554 <can_box>: Now virtual.
4555 <title>: New member.
4556 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4557 * tui/tui-command.c (tui_cmd_window::resize): Update.
4558
4559 2019-08-20 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4562 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4563 (tui_data_window::check_register_values): Update.
4564
4565 2019-08-20 Tom Tromey <tom@tromey.com>
4566
4567 * tui/tui-regs.h (struct tui_data_window): Use
4568 DISABLE_COPY_AND_ASSIGN.
4569 <regs_content>: Change type, removing unique_ptr.
4570 <tui_data_window>: Add move constructor.
4571 * tui/tui-regs.c (tui_data_window::show_registers)
4572 (tui_data_window::show_register_group)
4573 (tui_data_window::display_registers_from)
4574 (tui_data_window::display_registers_from)
4575 (tui_data_window::first_data_item_displayed)
4576 (tui_data_window::delete_data_content_windows)
4577 (tui_data_window::rerender, tui_data_window::refresh_window)
4578 (tui_data_window::check_register_values): Update.
4579
4580 2019-08-20 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4583 show_register_group>: Declare.
4584 (tui_show_register_group): Don't declare.
4585 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4586 tui_show_registers.
4587 (tui_data_window::show_register_group): Rename from
4588 tui_show_register_group.
4589 (tui_data_window::check_register_values, tui_reg_command):
4590 Update.
4591 * tui/tui-layout.c (tui_set_layout): Update.
4592
4593 2019-08-20 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4596 Declare.
4597 (tui_check_register_values): Don't declare.
4598 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4599 from tui_check_register_values.
4600 * tui/tui-hooks.c (tui_register_changed): Update.
4601
4602 2019-08-20 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-regs.c (tui_reg_layout): Move later.
4605 (tui_show_registers): Don't enable TUI mode or change layout.
4606
4607 2019-08-20 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-regs.h (struct tui_data_item_window)
4610 <~tui_data_item_window>: Remove.
4611 <content>: Now a unique_xmalloc_ptr.
4612 * tui/tui-regs.c (tui_register_format): Return a
4613 unique_xmalloc_ptr.
4614 (tui_get_register): Update.
4615 (~tui_data_item_window): Remove.
4616 (tui_data_window::display_registers_from, tui_display_register):
4617 Update.
4618 * tui/tui-io.h (tui_expand_tabs): Update.
4619 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4620 Remove "col" parameter.
4621
4622 2019-08-20 Tom Tromey <tom@tromey.com>
4623
4624 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4625 field.
4626 * tui/tui-regs.c (~tui_data_item_window): Update.
4627
4628 2019-08-20 Tom Tromey <tom@tromey.com>
4629
4630 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4631 earlier.
4632
4633 2019-08-20 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4636
4637 2019-08-20 Tom Tromey <tom@tromey.com>
4638
4639 * tui/tui-source.h (struct tui_source_window): Update.
4640 * tui/tui-regs.c (tui_show_registers): Update.
4641 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4642 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4643 (NO_REGS_STRING): Remove defines.
4644
4645 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4646
4647 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4648 unnecessary thread walk if remote doesn't support the packet.
4649
4650 2019-08-19 Tom Tromey <tromey@adacore.com>
4651
4652 * python/py-value.c (value_has_field): Fix indentation.
4653
4654 2019-08-19 Tom Tromey <tromey@adacore.com>
4655
4656 * printcmd.c (do_one_display, info_display_command): Update.
4657 * block.h (contained_in): Return bool. Add allow_nested
4658 parameter.
4659 * block.c (contained_in): Return bool. Add allow_nested
4660 parameter.
4661
4662 2019-08-19 Tom Tromey <tom@tromey.com>
4663
4664 * configure: Rebuild.
4665 * configure.ac: Disallow the combination of -static-libstdc++ and
4666 source highlight.
4667 * source-cache.c (get_language_name): Handle rust.
4668 (source_cache::get_source_lines): Ignore highlighting exceptions.
4669
4670 2019-08-16 Tom Tromey <tom@tromey.com>
4671
4672 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4673 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4674 (struct tui_source_window_base) <make_visible, refresh_window,
4675 resize>: Remove methods.
4676 <execution_info>: Remove field.
4677 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4678 (tui_show_source_line, tui_source_window_base)
4679 (~tui_source_window_base): Update.
4680 (tui_source_window_base::resize)
4681 (tui_source_window_base::make_visible)
4682 (tui_source_window_base::refresh_window): Remove.
4683 (tui_source_window_base::update_exec_info): Update.
4684 * tui/tui-source.c (tui_source_window::set_contents): Update.
4685 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4686
4687 2019-08-16 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4690 deprecated_query_hook.
4691
4692 2019-08-16 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4695 (tui_update_source_windows_with_line): Update.
4696 * tui/tui-source.h (struct tui_source_window)
4697 <show_symtab_source>: Declare.
4698 (tui_show_symtab_source): Don't declare.
4699 * tui/tui-source.c (tui_show_symtab_source): Rename from
4700 tui_show_symtab_source.
4701
4702 2019-08-16 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-winsource.h (struct tui_source_window_base)
4705 <set_contents>: Declare.
4706 * tui/tui-winsource.c
4707 (tui_source_window_base::update_source_window_as_is): Update.
4708 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4709 Declare.
4710 (tui_set_source_content): Don't declare.
4711 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4712 tui_set_source_content.
4713 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4714 Declare.
4715 (tui_set_disassem_content): Don't declare.
4716 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4717 tui_set_disassem_content.
4718
4719 2019-08-16 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-winsource.h (struct tui_source_window_base)
4722 <update_breakpoint_info>: Declare.
4723 (tui_update_breakpoint_info): Don't declare.
4724 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4725 (tui_update_all_breakpoint_info): Update.
4726 (tui_source_window_base::update_breakpoint_info): Rename from
4727 tui_update_breakpoint_info.
4728 (tui_source_window_base::update_exec_info): Update.
4729
4730 2019-08-16 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-winsource.h (struct tui_source_window_base)
4733 <update_source_window>: Declare.
4734 (tui_update_source_window): Don't declare.
4735 * tui/tui-winsource.c
4736 (tui_source_window_base::update_source_window): Rename from
4737 tui_update_source_window.
4738 (tui_source_window_base::rerender): Update.
4739 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4740 * tui/tui-disasm.c (tui_show_disassem)
4741 (tui_show_disassem_and_update_source)
4742 (tui_disasm_window::maybe_update): Update.
4743
4744 2019-08-16 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-winsource.h (struct tui_source_window_base)
4747 <update_source_window_as_is>: Declare.
4748 (tui_update_source_window_as_is): Don't declare.
4749 * tui/tui-winsource.c (tui_update_source_window): Update
4750 (tui_source_window_base::update_source_window_as_is): Rename from
4751 tui_update_source_window_as_is.
4752 (tui_source_window_base::refill): Update.
4753 * tui/tui-source.c (tui_show_symtab_source): Update.
4754 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4755 Update.
4756
4757 2019-08-16 Tom Tromey <tom@tromey.com>
4758
4759 * tui/tui-winsource.h (tui_update_source_window)
4760 (tui_update_source_window_as_is): Remove "noerror" parameter.
4761 * tui/tui-winsource.c (tui_update_source_window)
4762 (tui_update_source_window_as_is): Remove "noerror" parameter.
4763 (tui_update_source_windows_with_addr)
4764 (tui_update_source_windows_with_line)
4765 (tui_source_window_base::rerender)
4766 (tui_source_window_base::refill): Update.
4767 * tui/tui-source.h (tui_set_source_content)
4768 (tui_show_symtab_source): Remove "noerror" parameter.
4769 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4770 parameter.
4771 (tui_show_symtab_source): Likewise.
4772 (tui_source_window::maybe_update): Update.
4773 * tui/tui-disasm.c (tui_show_disassem)
4774 (tui_show_disassem_and_update_source)
4775 (tui_disasm_window::do_scroll_vertical)
4776 (tui_disasm_window::maybe_update): Update.
4777
4778 2019-08-16 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui.c (tui_is_window_visible): Update.
4781 * tui/tui-wingeneral.c (tui_make_window)
4782 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4783 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4784 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4785 (tui_set_win_height_command, parse_scrolling_args): Update.
4786 * tui/tui-source.c (tui_source_window::style_changed): Update.
4787 * tui/tui-regs.c (tui_show_registers)
4788 (tui_data_window::first_data_item_displayed)
4789 (tui_data_window::delete_data_content_windows)
4790 (tui_check_register_values, tui_reg_command): Update.
4791 * tui/tui-disasm.c (tui_show_disassem): Update.
4792 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4793 method.
4794 <is_visible>: Remove field.
4795 * tui/tui-data.c (tui_next_win, tui_prev_win)
4796 (tui_delete_invisible_windows): Update.
4797
4798 2019-08-16 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-winsource.h (struct tui_source_window_base)
4801 <m_has_locator>: Remove.
4802 * tui/tui-layout.c (show_source_disasm_command, show_data)
4803 (show_source_or_disasm_and_command): Update.
4804
4805 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4806
4807 * NEWS (Other MI changes): New subsection.
4808 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4809 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4810 * arch-utils.c (default_get_pc_address_flags): New function.
4811 * arch-utils.h (default_get_pc_address_flags): New declaration.
4812 * gdbarch.sh: Add get_pc_address_flags.
4813 * gdbarch.c: Regenerate.
4814 * gdbarch.h: Likewise.
4815 * stack.c (print_pc): New function.
4816 (print_frame_info) (print_frame): Call print_pc.
4817
4818 2019-08-16 Tom de Vries <tdevries@suse.de>
4819
4820 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4821 print_objfile_section_info.
4822
4823 2019-08-15 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4826 calling update_cmdwin_start_line.
4827 * tui/tui-winsource.h (struct tui_source_window_base)
4828 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4829 <rerender>: Declare.
4830 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4831 Call rerender.
4832 (tui_source_window_base::set_new_height): Remove.
4833 (tui_source_window_base::rerender): Rename from
4834 do_make_visible_with_new_height.
4835 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4836 resize method.
4837 (tui_win_info::make_invisible_and_set_new_height)
4838 (tui_win_info::make_visible_with_new_height): Remove.
4839 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4840 Declare.
4841 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4842 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4843 do_make_visible_with_new_height>: Don't declare.
4844 <rerender>: Declare.
4845 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4846 set_new_height.
4847 (tui_data_window::do_make_visible_with_new_height): Remove.
4848 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4849 call tui_show_locator_content.
4850 (tui_gen_win_info::resize): Call rerender.
4851 (show_source_or_disasm_and_command): Don't call
4852 tui_show_locator_content.
4853 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4854 method.
4855 (struct tui_win_info) <rerender>: Declare.
4856 <set_new_height, make_invisible_and_set_new_height,
4857 make_visible_with_new_height>: Don't declare.
4858 * tui/tui-data.c (tui_win_list::rerender): New method.
4859 * tui/tui-command.h (struct tui_cmd_window)
4860 <do_make_visible_with_new_height>: Don't declare.
4861 * tui/tui-command.c
4862 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4863
4864 2019-08-15 Tom Tromey <tromey@adacore.com>
4865
4866 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4867 * ada-lang.c (ada_enum_name): Likewise.
4868
4869 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4870
4871 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4872 leading underscore.
4873 (GdbOutputErrorFile): Likewise.
4874 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4875 accordingly.
4876 (execute_unwinders): Rename to have a leading underscore.
4877 (auto_load_packages): Likewise.
4878 (global scope): Adjust call to auto_load_packages accordingly.
4879 (GdbSetPythonDirectory): Likewise.
4880 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4881 instead of execute_unwinders.
4882
4883 2019-08-15 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4886 (show_data): Don't change window visibility.
4887 (tui_gen_win_info::resize): Remove special case for command
4888 window. Use wresize, when available.
4889 (show_source_or_disasm_and_command): Don't change window
4890 visibility.
4891 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4892 <make_visible>: New method.
4893 * tui/tui-command.c (tui_cmd_window::resize): New method.
4894
4895 2019-08-15 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4898 (struct tui_source_windows): New.
4899 * tui/tui-winsource.c (tui_display_main): Update.
4900 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4901 (new_height_ok, parse_scrolling_args): Update.
4902 * tui/tui-layout.c (show_layout, show_data): Update.
4903 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4904 (tui_add_to_source_windows): Don't declare.
4905 * tui/tui-data.c (source_windows, tui_source_windows)
4906 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4907
4908 2019-08-15 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4911 Rename from reset.
4912 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4913 * tui/tui-layout.c (show_source_disasm_command, show_data):
4914 Update.
4915 (tui_gen_win_info::resize): Rename.
4916 (show_source_or_disasm_and_command): Update.
4917 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4918 reset.
4919
4920 2019-08-15 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4923 * tui/tui-interp.c (tui_interp::init): Don't call
4924 tui_initialize_static_data.
4925 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4926
4927 2019-08-15 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4930 examine tui_win_list.
4931
4932 2019-08-15 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4935 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4936 tui_clear_source_content.
4937 (tui_clear_source_content): Remove.
4938 (tui_source_window_base::do_erase_source_content): Hoist call to
4939 content.clear().
4940 * tui/tui-stack.c (tui_show_frame_info): Don't call
4941 tui_clear_source_content.
4942
4943 2019-08-15 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-winsource.h (struct tui_source_window_base)
4946 <do_erase_source_content>: New method.
4947 <erase_source_content>: New method.
4948 (tui_erase_source_content): Don't declare.
4949 * tui/tui-winsource.c (tui_clear_source_content): Update.
4950 (tui_source_window_base::do_erase_source_content): Rename from
4951 tui_erase_source_content.
4952 (tui_source_window_base::show_source_content): Update.
4953 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4954 * tui/tui-source.h (struct tui_source_window)
4955 <erase_source_content>: New method.
4956 * tui/tui-disasm.h (struct tui_disasm_window)
4957 <erase_source_content>: New method.
4958
4959 2019-08-15 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4962 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4963 constructor.
4964 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4965 * tui/tui-source.c (tui_set_source_content): Update.
4966 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4967
4968 2019-08-15 Tom Tromey <tom@tromey.com>
4969
4970 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4971 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4972 tui-source.c.
4973 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4974 Declare.
4975 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4976 method.
4977 (tui_source_window::maybe_update): Update.
4978
4979 2019-08-15 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4982 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4983 tui-disasm.c.
4984 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4985 Declare.
4986 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4987 method.
4988 (tui_disasm_window::maybe_update): Update.
4989
4990 2019-08-15 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-winsource.h (struct tui_source_window_base)
4993 <maybe_update>: Declare.
4994 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4995 method.
4996 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4997 Declare.
4998 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4999 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5000 Declare.
5001 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5002
5003 2019-08-15 Tom Tromey <tom@tromey.com>
5004
5005 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5006
5007 2019-08-15 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-wingeneral.c: Include tui-stack.h.
5010 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5011 (struct tui_locator_window): Move from tui-data.h.
5012 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5013 (tui_initialize_static_data): Move from tui-data.c.
5014 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5015 (struct tui_locator_window): Move to tui-stack.c.
5016 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5017 (tui_initialize_static_data): Move to tui-stack.c.
5018
5019 2019-08-15 Tom Tromey <tom@tromey.com>
5020
5021 * tui/tui-layout.c (show_source_disasm_command)
5022 (show_source_or_disasm_and_command): Use make_visible method, not
5023 tui_make_window.
5024 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5025 Remove.
5026
5027 2019-08-15 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-wingeneral.h (tui_make_window): Update.
5030 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5031 parameter.
5032 (tui_gen_win_info::make_visible): Update.
5033 * tui/tui-regs.c (tui_data_window::display_registers_from):
5034 Update.
5035 * tui/tui-layout.c (show_source_disasm_command)
5036 (show_source_or_disasm_and_command): Update.
5037 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5038 (enum tui_box): Remove.
5039 (struct tui_win_info) <can_box>: New method.
5040 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5041 method.
5042
5043 2019-08-15 Tom de Vries <tdevries@suse.de>
5044
5045 * linux-nat-trad.c: Include gdbarch.h.
5046
5047 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5048
5049 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5050 register sizes.
5051
5052 2019-08-14 Tom Tromey <tromey@adacore.com>
5053
5054 * darwin-nat.c: Include gdbarch.h.
5055 * darwin-nat-info.c: Include gdbarch.h.
5056
5057 2019-08-13 Tom Tromey <tom@tromey.com>
5058
5059 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5060 Remove.
5061 * tui/tui-data.c (tui_initialize_static_data): Update.
5062
5063 2019-08-13 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-winsource.h (struct tui_exec_info_window)
5066 <~tui_exec_info_window, maybe_allocate_content, get_content,
5067 m_content>: Remove.
5068 (struct tui_source_window_base) <set_exec_info_content,
5069 show_exec_info_content>: Don't declare.
5070 * tui/tui-winsource.c
5071 (tui_exec_info_window::maybe_allocate_content): Remove.
5072 (tui_source_window_base::update_exec_info): Rename from
5073 set_exec_info_content.
5074 (tui_source_window_base::show_exec_info_content)
5075 (tui_source_window_base::update_exec_info): Remove.
5076
5077 2019-08-13 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5080 declare.
5081 * tui/tui-winsource.c (tui_update_source_window_as_is)
5082 (tui_update_source_windows_with_addr, tui_erase_source_content):
5083 Update.
5084 (tui_clear_exec_info_content): Remove.
5085
5086 2019-08-13 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5089 declare.
5090 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5091 call tui_erase_exec_info_content.
5092 (tui_clear_exec_info_content): Rename from
5093 tui_erase_exec_info_content.
5094 (tui_clear_exec_info_content): Delete.
5095
5096 2019-08-13 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <show_exec_info_content>: Declare.
5100 (tui_show_exec_info_content): Don't declare.
5101 * tui/tui-winsource.c
5102 (tui_source_window_base::show_exec_info_content): Rename from
5103 tui_show_exec_info_content.
5104 (tui_source_window_base::update_exec_info): Update.
5105
5106 2019-08-13 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5109 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5110 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5111 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5112 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5113 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5114 ... here.
5115
5116 2019-08-13 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-winsource.h (struct tui_source_window_base)
5119 <update_exec_info>: Declare.
5120 (tui_update_exec_info): Don't declare.
5121 * tui/tui-winsource.c (tui_update_source_window_as_is)
5122 (tui_source_window_base::refresh_all)
5123 (tui_update_all_breakpoint_info): Update.
5124 (tui_source_window_base::update_exec_info): Rename from
5125 tui_update_exec_info.
5126 * tui/tui-stack.c (tui_show_frame_info): Update.
5127
5128 2019-08-13 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-winsource.h (struct tui_source_window_base)
5131 <set_exec_info_content>: Declare.
5132 (tui_set_exec_info_content): Don't declare.
5133 * tui/tui-winsource.c
5134 (tui_source_window_base::set_exec_info_content): Rename from
5135 tui_set_exec_info_content.
5136 (tui_update_exec_info): Update.
5137
5138 2019-08-13 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (struct tui_source_window_base)
5141 <show_source_content>: Declare.
5142 (tui_show_source_content): Don't declare.
5143 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5144 (tui_source_window_base::show_source_content): Rename from
5145 tui_show_source_content.
5146 (tui_source_window_base::refresh_all): Update.
5147 * tui/tui-layout.c (show_source_disasm_command)
5148 (show_source_or_disasm_and_command): Update.
5149
5150 2019-08-13 Tom Tromey <tom@tromey.com>
5151
5152 * tui/tui-winsource.c (tui_erase_source_content)
5153 (tui_show_source_content, tui_source_window_base::refresh_all):
5154 Update.
5155 * tui/tui-wingeneral.h
5156 (tui_check_and_display_highlight_if_needed): Don't declare.
5157 * tui/tui-wingeneral.c
5158 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5159 check_and_display_highlight_if_needed.
5160 * tui/tui-win.c (tui_rehighlight_all)
5161 (tui_win_info::make_visible_with_new_height): Update.
5162 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5163 (tui_data_window::erase_data_content)
5164 (tui_data_window::display_all_data): Update.
5165 * tui/tui-data.h (struct tui_win_info)
5166 <check_and_display_highlight_if_needed>: Declare.
5167
5168 2019-08-13 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-win.c (tui_resize_all): Call
5171 tui_delete_invisible_windows.
5172 * tui/tui-layout.c (show_layout): Call
5173 tui_delete_invisible_windows.
5174 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5175 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5176
5177 2019-08-13 Tom Tromey <tom@tromey.com>
5178
5179 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5180 tui_add_win_to_layout.
5181
5182 2019-08-13 Tom Tromey <tom@tromey.com>
5183
5184 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5185 * tui/tui-layout.c (tui_default_win_height): Now static.
5186
5187 2019-08-13 Tom Tromey <tom@tromey.com>
5188
5189 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5190 single switch.
5191 (show_source_disasm_command, show_source_or_disasm_and_command):
5192 Don't check current layout.
5193
5194 2019-08-13 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-wingeneral.c (make_all_visible): Remove.
5197 (tui_make_all_invisible): Simplify.
5198 * tui/tui-layout.c (tui_make_all_invisible): Move from
5199 tui-wingeneral.c; simplify.
5200 (show_layout): Hoist call to tui_make_all_invisible.
5201 (show_data): Don't call tui_make_all_invisible.
5202
5203 2019-08-13 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5206 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5207
5208 2019-08-13 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5211 tui-data.c.
5212 (show_source_disasm_command, show_data)
5213 (show_source_or_disasm_and_command): Don't use
5214 tui_set_current_layout_to.
5215 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5216 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5217 tui-layout.c.
5218 (tui_set_current_layout_to): Remove.
5219
5220 2019-08-13 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-layout.c (tui_set_layout): Update.
5223 * tui/tui-data.h (struct tui_layout_def): Remove.
5224 (tui_layout_def): Don't declare.
5225 * tui/tui-data.c (layout_def): Remove.
5226 (tui_layout_def): Remove.
5227
5228 2019-08-13 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-winsource.h (struct tui_source_window_base)
5231 <clear_detail>: No longer "override".
5232 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5233 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5234 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5235 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5236 Remove.
5237 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5238
5239 2019-08-13 Tom Tromey <tromey@adacore.com>
5240
5241 * tracepoint.c: Don't include readline.h or history.h.
5242
5243 2019-08-12 Tom Tromey <tom@tromey.com>
5244
5245 * configure: Rebuild.
5246 * configure.ac: Check for readline 7.
5247 * NEWS: Mention readline 7 requirement.
5248 * README: Update.
5249
5250 2019-08-12 Tom Tromey <tom@tromey.com>
5251
5252 * mingw-hdep.c (gdb_select): Remove readline hack.
5253
5254 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5255
5256 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5257 when the function fails.
5258
5259 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5260
5261 * s390-tdep.c (s390_type_align): New function.
5262 (s390_gdbarch_init): Set it as type_align gdbarch method.
5263
5264 2019-08-09 Tom de Vries <tdevries@suse.de>
5265
5266 PR gdb/24591
5267 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5268 pc_low with relocation offset.
5269
5270 2019-08-07 Tom Tromey <tromey@adacore.com>
5271
5272 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5273 (print_frame_args): Update.
5274 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5275 Update.
5276 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5277 * frame.h (struct frame_arg): Add initializers.
5278 <error>: Now a unique_xmalloc_ptr.
5279
5280 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5281
5282 * NEWS: Expand the Pointer Authentication entry.
5283 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5284 (aarch64_frame_unmask_lr): ... to this.
5285 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5286 Call aarch64_frame_unmask_lr.
5287 * frame.c (struct frame_info): Add "masked" variable.
5288 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5289 (fprint_frame): Check for masked pc.
5290 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5291 declarations.
5292 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5293 * stack.c (print_frame): Check for masked pc.
5294
5295 2019-08-06 Tom Tromey <tom@tromey.com>
5296
5297 * stabsread.c (patch_block_stabs, read_one_struct_field)
5298 (read_enum_type): Use obstack_strndup.
5299 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5300 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5301 * dwarf2read.c (guess_full_die_structure_name)
5302 (anonymous_struct_prefix): Use obstack_strndup.
5303 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5304 * c-exp.y (yylex): Use obstack_strndup.
5305 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5306 (write_var_or_type): Use obstack_strndup.
5307
5308 2019-08-06 Tom Tromey <tom@tromey.com>
5309
5310 * symfile.c (reread_symbols): Use obstack_strdup.
5311 * stabsread.c (read_type): Use obstack_strdup.
5312 * gdb_obstack.h (obstack_strdup): New overload.
5313 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5314 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5315 (dwarf2_canonicalize_name): Use obstack_strdup.
5316 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5317 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5318 Use obstack_strdup.
5319
5320 2019-08-06 Tom Tromey <tom@tromey.com>
5321
5322 * gdb_obstack.h (obstack_strdup): Define.
5323 * gdb_obstack.c (obstack_strdup): Don't define.
5324
5325 2019-08-06 Tom Tromey <tom@tromey.com>
5326
5327 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5328 obstack_strdup.
5329 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5330 obstack_strdup.
5331 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5332 * stabsread.c (common_block_start): Use obstack_strdup.
5333 * objfiles.c (set_objfile_main_name, objfile): Use
5334 obstack_strdup.
5335 * namespace.c (add_using_directive): Use obstack_strdup.
5336 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5337 * jit.c (finalize_symtab): Use obstack_strdup.
5338 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5339 (guess_partial_die_structure_name, partial_die_info::fixup)
5340 (dwarf2_name): Use obstack_strdup.
5341 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5342 obstack_strdup.
5343 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5344 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5345 obstack_strdup.
5346 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5347
5348 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5349
5350 * unittests/help-doc-selftests.c: New file.
5351 * Makefile.in: Add the new file.
5352
5353 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5354
5355 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5356 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5357 the full first line, except when FOR_VALUE_PREFIX. In this case,
5358 the trailing '.' is not output, and the first character is uppercased.
5359 (print_help_for_command): Update call to print_doc_line.
5360 (print_doc_of_command): Likewise.
5361 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5362 * cli/cli-option.c (append_indented_doc): Do not append newline.
5363 (build_help_option): Append newline after first appended_indented_doc
5364 only if a second call is done.
5365 (build_help): Append 2 new lines before each option, except the first
5366 one.
5367 * compile/compile.c (_initialize_compile): Add new lines after
5368 %OPTIONS%, when not at the end of the help.
5369 Change help doc or code
5370 producing the help doc to respect the invariants.
5371 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5372 Also removed the new line after 'Options:', as all other commands
5373 do not put an empty line between 'Options:' and the first option.
5374 * printcmd.c (_initialize_printcmd): Likewise.
5375 * stack.c (_initialize_stack): Likewise.
5376 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5377 incorrectly telling COMMAND is optional.
5378 * ada-lang.c (_initialize_ada_language): Change help doc or code
5379 producing the help doc to respect the invariants.
5380 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5381 * breakpoint.c (_initialize_breakpoint): Likewise.
5382 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5383 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5384 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5385 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5386 _initialize_cli_style): Likewise.
5387 * corelow.c (core_target_info): Likewise.
5388 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5389 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5390 * filesystem.c (_initialize_filesystem): Likewise.
5391 * frame.c (_initialize_frame): Likewise.
5392 * gnu-nat.c (add_task_commands): Likewise.
5393 * infcall.c (_initialize_infcall): Likewise.
5394 * infcmd.c (_initialize_infcmd): Likewise.
5395 * interps.c (_initialize_interpreter): Likewise.
5396 * language.c (_initialize_language): Likewise.
5397 * linux-fork.c (_initialize_linux_fork): Likewise.
5398 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5399 * maint.c (_initialize_maint_cmds): Likewise.
5400 * memattr.c (_initialize_mem): Likewise.
5401 * printcmd.c (_initialize_printcmd): Likewise.
5402 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5403 _RegEx): Likewise.
5404 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5405 * record-btrace.c (_initialize_record_btrace): Likewise.
5406 * record-full.c (_initialize_record_full): Likewise.
5407 * record.c (_initialize_record): Likewise.
5408 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5409 * regcache.c (_initialize_regcache): Likewise.
5410 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5411 _initialize_remote): Likewise.
5412 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5413 * serial.c (_initialize_serial): Likewise.
5414 * skip.c (_initialize_step_skip): Likewise.
5415 * source.c (_initialize_source): Likewise.
5416 * stack.c (_initialize_stack): Likewise.
5417 * symfile.c (_initialize_symfile): Likewise.
5418 * symtab.c (_initialize_symtab): Likewise.
5419 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5420 * top.c (init_main): Likewise.
5421 * tracefile-tfile.c (tfile_target_info): Likewise.
5422 * tracepoint.c (_initialize_tracepoint): Likewise.
5423 * tui/tui-win.c (_initialize_tui_win): Likewise.
5424 * utils.c (add_internal_problem_command): Likewise.
5425 * valprint.c (value_print_option_defs): Likewise.
5426
5427 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5428
5429 PR build/24886
5430 * configure.ac: Drop enable-libmcheck support.
5431 * configure, config.in: Rebuild.
5432 * libmcheck.m4: Remove.
5433 * acinclude.m4: Don't include it.
5434 * Makefile.in: Don't distribute it.
5435 * top.c (print_gdb_configuration): Don't mention it.
5436
5437 2019-08-06 Tom Tromey <tom@tromey.com>
5438
5439 * utils.c (set_output_style): Sometimes pass stream to
5440 emit_style_escape.
5441 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5442 * record-btrace.c (btrace_insn_history): Update.
5443 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5444 method.
5445 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5446 Update initializers.
5447 <m_uiout>: New field.
5448 <m_di>: Move lower.
5449 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5450 Remove "uiout" parameter.
5451 (dump_insns): Update.
5452 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5453 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5454
5455 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5456
5457 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5458 (error_in_psymtab_expansion): Likewise.
5459 (lookup_symbol_via_quick_fns): Likewise.
5460 (basic_lookup_transparent_type_quick): Likewise.
5461 (basic_lookup_transparent_type_1): Likewise.
5462
5463 2019-08-06 Tom Tromey <tromey@adacore.com>
5464
5465 * source.c (last_source_error): Now bool.
5466 (print_source_lines_base): Make "noprint" bool. Only open
5467 source file when last_source_visited changes.
5468
5469 2019-08-06 Tom Tromey <tromey@adacore.com>
5470
5471 * annotate.c (annotate_source_line): Use g_source_cache.
5472 * source-cache.c (source_cache::get_plain_source_lines): Change
5473 parameters. Populate m_offset_cache.
5474 (source_cache::ensure): New method.
5475 (source_cache::get_line_charpos): New method.
5476 (extract_lines): Move lower. Change parameters.
5477 (source_cache::get_source_lines): Move lower.
5478 * source-cache.h (class source_cache): Update comment.
5479 <get_line_charpos>: New method.
5480 <get_source_lines>: Update comment.
5481 <clear>: Clear m_offset_cache.
5482 <get_plain_source_lines>: Change parameters.
5483 <ensure>: New method
5484 <m_offset_cache>: New member.
5485 * source.c (forget_cached_source_info_for_objfile): Update.
5486 (info_source_command): Use g_source_cache.
5487 (find_source_lines, open_source_file_with_line_charpos): Remove.
5488 (print_source_lines_base, search_command_helper): Use g_source_cache.
5489 * source.h (open_source_file_with_line_charpos): Don't declare.
5490 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5491 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5492 Use g_source_cache.
5493
5494 2019-08-06 Tom Tromey <tromey@adacore.com>
5495
5496 * source-cache.c (source_cache::get_plain_source_lines):
5497 Remove "first_line" and "last_line" parameters.
5498 (source_cache::get_source_lines): Cache plain text.
5499 * source-cache.h (class source_cache)
5500 <get_plain_source_lines>: Update.
5501
5502 2019-08-06 Tom Tromey <tromey@adacore.com>
5503
5504 * source-cache.c (extract_lines): No longer a method.
5505 Changed type of parameter. Include final newline.
5506 (selftests::extract_lines_test): New function.
5507 (_initialize_source_cache): Likewise.
5508 * source-cache.h (class source_cache)
5509 <extract_lines>: Don't declare.
5510
5511 2019-08-06 Tom Tromey <tromey@adacore.com>
5512
5513 * breakpoint.c (init_breakpoint_sal): Update.
5514 (breakpoint): Update.
5515 * breakpoint.h (struct breakpoint) <filter>: Now a
5516 unique_xmalloc_ptr.
5517
5518 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5519
5520 * NEWS: Mention dictionary access on blocks.
5521 * python/py-block.c (blpy_getitem): New function.
5522 (block_object_as_mapping): New struct.
5523 (block_object_type): Use new struct for tp_as_mapping field.
5524
5525 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5526
5527 * objfiles.h (objfile): Add a comment describing partial symbols.
5528
5529 2019-08-05 Tom Tromey <tromey@adacore.com>
5530
5531 * compile/compile.c (_initialize_compile): Use _(), not N_().
5532 * thread.c (_initialize_thread): Use _(), not N_().
5533 * stack.c (_initialize_stack): Use _(), not N_().
5534 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5535
5536 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5537
5538 * dwarf2read.c (struct dw2_symtab_iterator):
5539 <want_specific_block>: Remove.
5540 <block_index>: Change type to gdb::optional.
5541 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5542 change type of BLOCK_INDEX parameter to gdb::optional.
5543 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5544 (dw2_lookup_symbol): Don't pass argument for
5545 WANT_SPECIFIC_BLOCK.
5546 (dw2_expand_symtabs_for_function): Don't pass argument for
5547 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5548 (class dw2_debug_names_iterator)
5549 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5550 parameter, change BLOCK_INDEX type to gdb::optional.
5551 <m_want_specific_block>: Remove.
5552 <m_block_index>: Change type to gdb::optional.
5553 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5554 gdb::optional. Re-write in function of gdb::optional.
5555 (dw2_debug_names_lookup_symbol): Don't pass argument for
5556 WANT_SPECIFIC_BLOCK.
5557 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5558 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5559 BLOCK_INDEX.
5560
5561 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5562
5563 * NEWS: Mention changes to "info sources" command.
5564
5565 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5566
5567 * symtab.c (filename_partial_match_opts): New struct type.
5568 (struct output_source_filename_data): New members
5569 regexp, c_regexp, partial_match.
5570 (output_source_filename): Use new members to decide to print file.
5571 (info_sources_option_defs): New variable.
5572 (make_info_sources_options_def_group, print_info_sources_header,
5573 info_sources_command_completer):
5574 New functions.
5575 (info_sources_command): Read new optional arguments.
5576 (_initialize_symtab): Update info sources help.
5577
5578 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5579
5580 * ada-lang.c (exception_support_info_v0): Renamed from...
5581 (default_exception_support_info): ... this. Create new
5582 definition for v1.
5583 (ada_has_this_exception_support): Look up catch_handlers_sym.
5584 (ada_exception_support_info_sniffer): Try v0 after default.
5585
5586 2019-08-01 Tom Tromey <tromey@adacore.com>
5587
5588 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5589 gdbarch.h.
5590
5591 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5592
5593 * s12z-tdep.c: Fix include path for s12z-opc.h.
5594
5595 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5596
5597 * NEWS: Require GNU make 3.82.
5598
5599 2019-07-16 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5602 declare.
5603
5604 2019-07-30 Tom Tromey <tromey@adacore.com>
5605
5606 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5607
5608 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5609
5610 * printcmd.c (print_address_symbolic): Print negative offsets.
5611 (build_address_symbolic): Force signed arithmetic when computing
5612 offset.
5613
5614 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5615
5616 PR/24474: Add a function to lookup static variables.
5617 * NEWS: Mention this new function.
5618 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5619 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5620 * python/python.c (python_GdbMethods): Add new function.
5621
5622 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5623
5624 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5625 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5626 (objfpy_lookup_static_symbol): New function.
5627 (objfile_object_methods): Add new functions.
5628
5629 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5630
5631 * NEWS: Mention 'set|show print frame-info'. Mention new
5632 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5633 backtrace argument. Mention that python frame filtering code
5634 is now consistent with what 'backtrace' command prints.
5635
5636 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5637
5638 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5639 comments.
5640 (print_frame_info_auto, print_frame_info_source_line,
5641 print_frame_info_location, print_frame_info_source_and_location,
5642 print_frame_info_location_and_address, print_frame_info_short_location):
5643 New declarations.
5644 (struct frame_print_options): New member print_frame_info.
5645 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5646 * stack.h (get_user_print_what_frame_info): New declaration.
5647 (frame_show_address): New declaration.
5648 * stack.c (print_frame_arguments_choices): New value 'presence'.
5649 (print_frame_info_auto, print_frame_info_source_line,
5650 print_frame_info_location, print_frame_info_source_and_location,
5651 print_frame_info_location_and_address, print_frame_info_short_location,
5652 print_frame_info_choices, print_frame_info_print_what): New definitions.
5653 (print_frame_args): Only print dots for args if print frame-arguments
5654 is 'presence'.
5655 (frame_print_option_defs): New element for "frame-info".
5656 (get_user_print_what_frame_info): New function.
5657 (frame_show_address): Make non static. Move comment to stack.h.
5658 (print_frame_info_to_print_what): New function.
5659 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5660 to decide what to print.
5661 (backtrace_command_1): Handle the new print_frame_arguments_presence
5662 value.
5663 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5664 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5665 (py_print_frame): In non-mi mode, use LOCATION as default for
5666 print_what, similarly to frame information printed directly by
5667 backtrace command. Handle frame-info user option in non MI mode.
5668
5669 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5670
5671 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5672 Add case for debugging 32-bit target on 64-bit host. Revise
5673 comment.
5674
5675 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5676
5677 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5678 instead of find_function_entry_range_from_pc.
5679
5680 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5681
5682 * stack.c (find_frame_funname): Remove code which preferred
5683 minsym over symtab sym in "certain pathological cases".
5684
5685 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5686 parameter. Change type of "do_demangle" to bool.
5687 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5688 Pass suitable "prefer_sym_over_minsym" flag to
5689 build_address_symbolic(). Don't output "+" for negative offsets.
5690 * printcmd.c (print_address_symbolic): Update invocation of
5691 build_address_symbolic to include a "prefer_sym_over_minsym"
5692 flag.
5693 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5694 Restrict cases in which use of minimal symbol is preferred to that
5695 of a found symbol. Update comments.
5696
5697 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5698 for entry pc when entry pc is out of range for that FDE.
5699
5700 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5701
5702 PR gdb/24839:
5703 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5704 type.
5705
5706 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5707
5708 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5709 this function's Python signature.
5710
5711
5712 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5713
5714 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5715 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5716 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5717 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5718 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5719
5720
5721 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5722
5723 * h8300-tdep.c (h8300_register_name_common): New.
5724 h8300_register_name): Use h8300_register_name_common.
5725 (h8300s_register_name): Likewise.
5726 (h8300sx_register_name): Likewise.
5727 (h8300h_register_nam): New.
5728 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5729
5730
5731 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5732
5733 * arm-tdep.c (arm_skip_cmse_entry): New function.
5734 (arm_is_sgstubs_section): New function.
5735 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5736
5737 2019-07-22 Tom Tromey <tom@tromey.com>
5738
5739 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5740 Don't self-assign.
5741
5742 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5745 type_print.
5746
5747 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5748
5749 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5750 so that GDB doesn't match any msymbols when searching in the
5751 TYPES_DOMAIN.
5752 (print_symbol_info): Print using typedef_print or type_print based
5753 on the type of the symbol. Add updated FIXME comment moved from...
5754 (_initialize_symtab): ... move and update FIXME comment to above.
5755
5756 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * NEWS: Mention adding -q option to "info types".
5759 * symtab.c (struct info_types_options): New struct.
5760 (info_types_options_defs): New variable.
5761 (make_info_types_options_def_group): New function.
5762 (info_types_command): Use gdb::option framework to parse options.
5763 (info_types_command_completer): New function.
5764 (_initialize_symtab): Extend the help text on "info types" and
5765 register command completer.
5766
5767 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5768
5769 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5770 (lookup_symbol_in_objfile): Change int to block_enum and add a
5771 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5772
5773 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5774
5775 * MAINTAINERS (Write After Approval): Add self.
5776
5777 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5778
5779 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5780 instruction to the dummy code region.
5781
5782 2019-07-19 Tom Tromey <tromey@adacore.com>
5783
5784 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5785 (ARGSUSED, PARAMS, __func__): Remove rules.
5786
5787 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5788
5789 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5790 * features/arm/arm-with-iwmmxt.c: Remove.
5791 * features/arm/arm-with-iwmmxt.xml: Remove.
5792 * features/arm/arm-with-m-fpa-layout.c: Remove.
5793 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5794 * features/arm/arm-with-m-vfp-d16.c: Remove.
5795 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5796 * features/arm/arm-with-m.c: Remove.
5797 * features/arm/arm-with-m.xml: Remove.
5798 * features/arm/arm-with-neon.c: Remove.
5799 * features/arm/arm-with-neon.xml: Remove.
5800 * features/arm/arm-with-vfpv2.c: Remove.
5801 * features/arm/arm-with-vfpv2.xml: Remove.
5802 * features/arm/arm-with-vfpv3.c: Remove.
5803 * features/arm/arm-with-vfpv3.xml: Remove.
5804
5805 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5806
5807 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5808
5809 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5810
5811 * arch/aarch32.c (aarch32_create_target_description): Create
5812 target descriptions using features.
5813 * arch/arm.c (arm_create_target_description)
5814 (arm_create_mprofile_target_description): Likewise.
5815 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5816
5817 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5818
5819 * Makefile.in: Add new files.
5820 * aarch32-tdep.c: New file.
5821 * aarch32-tdep.h: New file.
5822 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5823 Call aarch32_read_description.
5824 * arch/aarch32.c: New file.
5825 * arch/aarch32.h: New file.
5826 * arch/arm.c (arm_create_target_description)
5827 (arm_create_mprofile_target_description): New function.
5828 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5829 (arm_create_target_description)
5830 (arm_create_mprofile_target_description): New declaration.
5831 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5832 read_description functions.
5833 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5834 Likewise.
5835 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5836 * arm-tdep.c (tdesc_arm_list): New variable.
5837 (arm_register_g_packet_guesses): Call create description functions.
5838 (arm_read_description) (arm_read_mprofile_description): New
5839 function.
5840 * arm-tdep.h (arm_read_description)
5841 (arm_read_mprofile_description): Add declaration.
5842 * configure.tgt: Add new files.
5843
5844 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5845
5846 * top.c (new_ui_command): Open specified terminal just once.
5847
5848 2019-07-18 Tom Tromey <tromey@adacore.com>
5849
5850 * symtab.c (main_name): Constify return type.
5851 * symfile.c (set_initial_language): Update.
5852 * symtab.h (main_name): Constify return type.
5853
5854 2019-07-17 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-winsource.c (tui_update_source_window)
5857 (tui_update_source_window_as_is)
5858 (tui_update_source_windows_with_line): Remove return.
5859 * tui/tui-disasm.c (tui_show_disassem)
5860 (tui_show_disassem_and_update_source): Remove return.
5861 * tui/tui.c (tui_reset): Remove return.
5862 * tui/tui-wingeneral.c
5863 (tui_check_and_display_highlight_if_needed): Remove return.
5864
5865 2019-07-17 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5868
5869 2019-07-17 Tom Tromey <tom@tromey.com>
5870
5871 * tui/tui-winsource.h (struct tui_exec_info_window)
5872 (struct tui_source_window_base): Move from tui-data.h.
5873 * tui/tui-winsource.c: Move many method definitions from
5874 elsewhere. Remove "structuring" comments.
5875 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5876 (tui_source_window_base::refresh_window): Move to
5877 tui-winsource.c.
5878 * tui/tui-win.c (tui_source_window_base::refresh_all)
5879 (tui_source_window_base::update_tab_width)
5880 (tui_source_window_base::set_new_height)
5881 (tui_source_window_base::do_make_visible_with_new_height): Move to
5882 tui-winsource.c.
5883 * tui/tui-source.h: Update.
5884 * tui/tui-source.c (tui_source_window_base::reset): Move to
5885 tui-winsource.c.
5886 * tui/tui-disasm.h: Update.
5887 * tui/tui-data.h (struct tui_exec_info_window): Move to
5888 tui-winsource.h.
5889 (struct tui_source_window_base): Likewise.
5890 * tui/tui-data.c (tui_source_window_base::clear_detail)
5891 (tui_source_window_base, ~tui_source_window_base): Move to
5892 tui-winsource.c.
5893
5894 2019-07-17 Tom Tromey <tom@tromey.com>
5895
5896 * tui/tui-win.c (tui_resize_all)
5897 (tui_source_window_base::update_tab_width)
5898 (tui_adjust_win_heights): Update.
5899 (tui_win_info::make_invisible_and_set_new_height): Rename from
5900 make_invisible_and_set_new_height.
5901 * tui/tui-data.h (struct tui_win_info)
5902 <make_invisible_and_set_new_height>: New method.
5903
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui.c: Update.
5907 * tui/tui-source.h (struct tui_source_window): Move from
5908 tui-data.h.
5909 * tui/tui-layout.c: Update.
5910 * tui/tui-disasm.c: Update.
5911 * tui/tui-data.h (struct tui_source_window): Move to
5912 tui-source.h.
5913
5914 2019-07-17 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5917 tui-data.h.
5918 * tui/tui-data.h (struct tui_disasm_window): Move to
5919 tui-disasm.h.
5920
5921 2019-07-17 Tom Tromey <tom@tromey.com>
5922
5923 * tui/tui-regs.h (struct tui_data_item_window): Move from
5924 tui-data.h.
5925 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5926 * tui/tui-data.h (struct tui_data_item_window): Move to
5927 tui-regs.h.
5928 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5929
5930 2019-07-17 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui.c: Update.
5933 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5934 (tui_cmd_window::max_height): Move to tui-command.c.
5935 * tui/tui-layout.c: Update.
5936 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5937 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5938 tui-command.c.
5939 * tui/tui-command.h (struct tui_cmd_window): Move from
5940 tui-data.h.
5941 * tui/tui-command.c: Remove "structuring" comments.
5942 (tui_cmd_window::clear_detail)
5943 (tui_cmd_window::do_make_visible_with_new_height)
5944 (tui_cmd_window::max_height): Move from elsewhere.
5945
5946 2019-07-17 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5949 Now static.
5950 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5951 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5952
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui.c: Update.
5956 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5957 tui-regs.c.
5958 * tui/tui-windata.h: Remove file.
5959 * tui/tui-windata.c: Remove file.
5960 * tui/tui-win.c (tui_data_window::set_new_height)
5961 (tui_data_window::do_make_visible_with_new_height): Move to
5962 tui-regs.c.
5963 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5964 * tui/tui-regs.c: Remove "structuring" comments.
5965 (tui_data_window::first_data_item_displayed)
5966 (tui_data_window::delete_data_content_windows)
5967 (tui_data_window::erase_data_content)
5968 (tui_data_window::display_all_data)
5969 (tui_data_window::refresh_all)
5970 (tui_data_window::do_scroll_vertical)
5971 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5972 (tui_data_window::do_make_visible_with_new_height)
5973 (tui_data_window::refresh_window): Move from elsewhere.
5974 (_initialize_tui_regs): Move to end of file.
5975 * tui/tui-layout.c: Update.
5976 * tui/tui-hooks.c: Update.
5977 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5978 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5979 tui-regs.c.
5980 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5981
5982 2019-07-17 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5985 seen.
5986
5987 2019-07-17 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-win.c (tui_source_window_base::set_new_height)
5990 (tui_source_window_base::do_make_visible_with_new_height): Use
5991 m_has_locator field directly.
5992 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5993 method.
5994 (struct tui_source_window_base) <has_locator>: Likewise.
5995
5996 2019-07-17 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5999 Don't declare.
6000 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6001 Remove.
6002 * tui/tui-win.c (tui_source_window_base::set_new_height)
6003 (tui_source_window_base::set_new_height)
6004 (make_invisible_and_set_new_height)
6005 (tui_source_window_base::do_make_visible_with_new_height)
6006 (tui_source_window_base::do_make_visible_with_new_height):
6007 Update.
6008 * tui/tui-layout.c (show_source_disasm_command, show_data)
6009 (show_source_or_disasm_and_command): Update.
6010 * tui/tui-layout.c (show_layout): Update.
6011
6012 2019-07-17 Tom Tromey <tom@tromey.com>
6013
6014 * tui/tui-layout.c (make_data_window): Remove.
6015 (show_data): Unify creation and re-initialization cases.
6016
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-layout.c (make_source_window, make_disasm_window):
6020 Remove.
6021 (show_data): Unify creation and re-initialization cases.
6022
6023 2019-07-17 Tom Tromey <tom@tromey.com>
6024
6025 * tui/tui-layout.c (make_command_window): Remove.
6026 (show_source_disasm_command, show_source_or_disasm_and_command):
6027 Unify creation and re-initialization cases.
6028
6029 2019-07-17 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6032 creation and re-initialization cases.
6033
6034 2019-07-17 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-regs.c (tui_get_register): Return void.
6037
6038 2019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6041 Simplify.
6042
6043 2019-07-17 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6046 resetting.
6047
6048 2019-07-17 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6051 * tui/tui-regs.c (tui_reg_layout): New function.
6052 (tui_show_registers, tui_reg_command): Use it.
6053 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6054 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6055 parameters.
6056 (tui_layout_command): Remove.
6057
6058 2019-07-17 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-layout.h (tui/tui-layout): Return void.
6061 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6062
6063 2019-07-17 Tom Tromey <tom@tromey.com>
6064
6065 * tui/tui-layout.c (show_source_disasm_command, show_data):
6066 Update.
6067 (reset_locator): Remove.
6068 (show_source_or_disasm_and_command): Update.
6069
6070 2019-07-17 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-source.c (tui_source_window_base::reset): Remove
6073 win_type parameter.
6074 * tui/tui-layout.c (make_command_window, make_source_window)
6075 (make_disasm_window, make_data_window)
6076 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6077 (reset_locator, show_source_or_disasm_and_command): Update.
6078 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6079 win_type parameter.
6080 (struct tui_source_window_base) <reset>: Likewise.
6081
6082 2019-07-17 Tom Tromey <tom@tromey.com>
6083
6084 * tui/tui-layout.c (show_source_disasm_command): Use
6085 reset_locator.
6086 (reset_locator): New function.
6087 (init_and_make_win): Remove.
6088 (show_source_or_disasm_and_command): Use reset_locator.
6089
6090 2019-07-17 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6093 condition.
6094 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6095 Remove condition.
6096 * tui/tui-source.c (tui_source_window_base::reset): New method.
6097 * tui/tui-layout.c (make_command_window): Don't call
6098 init_and_make_win.
6099 (make_source_window, make_disasm_window): Don't call
6100 make_source_or_disasm_window.
6101 (make_data_window): Don't call init_and_make_win. Change calling
6102 convention.
6103 (show_source_disasm_command, show_data): Simplify.
6104 (make_source_or_disasm_window): Remove.
6105 (show_source_or_disasm_and_command): Simplify.
6106 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6107 (struct tui_source_window_base) <reset>: Likewise.
6108 <execution_info>: Remove initializer.
6109 * tui/tui-data.c (tui_source_window_base): Initialize
6110 execution_info.
6111
6112 2019-07-17 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6115 variable.
6116
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui.c (tui_rl_other_window): Update.
6120 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6121 superclass method first. Always iterate over regs_content.
6122 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6123 method.
6124 * tui/tui-win.c (tui_set_focus_command): Update.
6125
6126 2019-07-17 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-win.c (tui_set_focus_command): Rename from
6129 tui_set_focus. Call tui_enable.
6130 (tui_set_focus_command): Remove.
6131
6132 2019-07-17 Tom Tromey <tom@tromey.com>
6133
6134 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6135 refresh_window.
6136 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6137 touchwin.
6138 (tui_data_window::refresh_window): Call refresh_window on data
6139 items. Always call superclass refresh_window.
6140 (tui_win_info::refresh): Remove.
6141 (tui_source_window_base::refresh_window): Update.
6142 (tui_refresh_all): Update.
6143 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6144 refresh_window.
6145 (show_source_or_disasm_and_command): Likewise.
6146 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6147 (struct tui_source_window_base) <refresh>: Likewise.
6148
6149 2019-07-17 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-winsource.c (tui_clear_source_content)
6152 (tui_show_source_content): Update.
6153 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6154 whether content is empty.
6155 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6156 Remove.
6157
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6161 window's contents.
6162 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6163 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6164
6165 2019-07-17 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6168 (struct tui_data_item_window): Update.
6169
6170 2019-07-17 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6173 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6174 defines.
6175
6176 2019-07-17 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-winsource.h (tui_erase_source_content)
6179 (tui_clear_source_content): Remove "display_prompt" parameter.
6180 * tui/tui-winsource.c (tui_update_source_window_as_is)
6181 (tui_update_source_windows_with_addr): Update.
6182 (tui_clear_source_content): Remove "display_prompt" parameter.
6183 (tui_erase_source_content): Likewise. Simplify.
6184 (tui_show_source_content): Update.
6185 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6186 * tui/tui-stack.c (tui_show_frame_info): Update.
6187 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6188 Remove defines.
6189
6190 2019-07-17 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6193 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6194 parameter.
6195 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6196 parameter.
6197
6198 2019-07-17 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-winsource.c (tui_clear_source_content)
6201 (tui_show_source_content, tui_show_exec_info_content)
6202 (tui_clear_exec_info_content): Update.
6203 * tui/tui-stack.c (tui_show_locator_content): Update.
6204 (tui_show_frame_info): Update.
6205 * tui/tui-source.h (tui_source_window): Don't declare.
6206 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6207 from tui_source_is_displayed.
6208 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6209 Remove field.
6210 (struct tui_source_window_base) <content_in_use>: New field. Now
6211 bool.
6212 (struct tui_source_window) <showing_source_p>: New method.
6213 (TUI_SRC_WIN): Change cast.
6214 * tui/tui-data.c (tui_initialize_static_data): Update.
6215
6216 2019-07-17 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6219 location_matches_p.
6220 * tui/tui-source.c (tui_source_window::location_matches_p): New
6221 method.
6222 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6223 method.
6224 * tui/tui-data.h (struct tui_source_window_base)
6225 <location_matches_p>: New method.
6226 (struct tui_source_window, struct tui_disasm_window)
6227 <location_matches_p>: Likewise.
6228
6229 2019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-win.c (tui_set_win_height_command): Rename from
6232 tui_set_win_height.
6233 (tui_set_win_height_command): Remove.
6234
6235 2019-07-17 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-source.c (tui_source_window): New constructor. Add
6238 observer.
6239 (~tui_source_window): New destructor.
6240 (tui_source_window::style_changed): New method.
6241 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6242 (tui_attach_detach_observers): Update.
6243 * tui/tui-data.h (struct tui_source_window): Make constructor not
6244 inline. Add destructor.
6245 (struct tui_source_window) <style_changed>: New method.
6246 <m_observable>: New member.
6247
6248 2019-07-17 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6251 * tui/tui-win.c (tui_resize_all): Fix typo.
6252
6253 2019-07-17 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6256 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6257 (tui_refresh_all): Remove "list" parameter. Use foreach.
6258 * tui/tui-win.c (window_name_completer): Use foreach.
6259 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6260 (update_tab_width): Likewise.
6261 * tui/tui-layout.c (show_layout): Update.
6262 * tui/tui-data.h (class tui_window_iterator): New.
6263 (struct all_tui_windows): New.
6264 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6265
6266 2019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6269 parameter. Don't reference globals.
6270 (tui_reg_command): Update.
6271
6272 2019-07-17 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-regs.c (tui_show_registers): Simplify.
6275
6276 2019-07-17 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-regs.c (tui_show_registers): Update.
6279 (tui_show_register_group): Add win_info parameter.
6280
6281 2019-07-17 Tom Tromey <tom@tromey.com>
6282
6283 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6284 Rename from tui_display_reg_element_at_line.
6285 (tui_data_window::display_registers_from_line): Update.
6286 * tui/tui-data.h (struct tui_data_window)
6287 <display_reg_element_at_line>: New method.
6288
6289 2019-07-17 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui-regs.h (tui_display_registers_from)
6292 (tui_display_registers_from_line): Don't declare.
6293 * tui/tui-windata.c (tui_data_window::display_all_data)
6294 (tui_data_window::refresh_all)
6295 (tui_data_window::do_scroll_vertical): Update.
6296 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6297 from tui_display_registers_from.
6298 (tui_display_reg_element_at_line): Update.
6299 (tui_data_window::display_registers_from_line): Rename from
6300 tui_display_registers_from_line.
6301 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6302 display_registers_from_line>: New methods.
6303
6304 2019-07-17 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6307 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6308 from tui_erase_data_content.
6309 (tui_data_window::display_all_data)
6310 (tui_data_window::refresh_all)
6311 (tui_data_window::do_scroll_vertical): Update.
6312 * tui/tui-regs.c (tui_show_registers): Update.
6313 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6314 New method.
6315
6316 2019-07-17 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6319 declare.
6320 * tui/tui-windata.c
6321 (tui_data_window::delete_data_content_windows): Rename from
6322 tui_delete_data_content_windows.
6323 (tui_data_window::display_all_data)
6324 (tui_data_window::do_scroll_vertical): Update.
6325 * tui/tui-data.h (struct tui_data_window)
6326 <delete_data_content_windows>: New method.
6327
6328 2019-07-17 Tom Tromey <tom@tromey.com>
6329
6330 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6331 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6332
6333 2019-07-17 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6336 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6337 from tui_display_all_data.
6338 * tui/tui-win.c
6339 (tui_data_window::do_make_visible_with_new_height): Update.
6340 * tui/tui-regs.c (tui_show_registers): Update.
6341 * tui/tui-layout.c (tui_set_layout): Update.
6342 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6343 method.
6344
6345 2019-07-17 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6348 * tui/tui-windata.c (tui_display_data_from): Remove.
6349 (tui_data_window::refresh_all): Update.
6350
6351 2019-07-17 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6354 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6355 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6356 tui_display_registers_from_line.
6357 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6358 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6359 "force_display" parameter.
6360
6361 2019-07-17 Tom Tromey <tom@tromey.com>
6362
6363 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6364 declare.
6365 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6366 Rename from tui_first_reg_element_no_inline.
6367 (tui_display_reg_element_at_line)
6368 (tui_display_registers_from_line): Update.
6369 * tui/tui-data.h (struct tui_data_window)
6370 <first_reg_element_no_inline>: New method.
6371
6372 2019-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-windata.c (tui_display_data_from)
6375 (tui_data_window::do_scroll_vertical): Update.
6376 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6377 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6378 Rename from tui_line_from_reg_element_no.
6379 (tui_display_registers_from_line): Update.
6380 * tui/tui-data.h (struct tui_data_window)
6381 <line_from_reg_element_no>: New method.
6382
6383 2019-07-17 Tom Tromey <tom@tromey.com>
6384
6385 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6386 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6387 tui_last_regs_line_no.
6388 (tui_display_reg_element_at_line)
6389 (tui_display_registers_from_line): Update.
6390 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6391 method.
6392
6393 2019-07-17 Tom Tromey <tom@tromey.com>
6394
6395 PR tui/24722:
6396 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6397 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6398 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6399 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6400 (tui_update_breakpoint_info): Likewise.
6401 * tui/tui-hooks.c (tui_event_create_breakpoint)
6402 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6403 Update.
6404
6405 2019-07-17 Tom Tromey <tom@tromey.com>
6406
6407 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6408
6409 2019-07-17 Tom Tromey <tom@tromey.com>
6410
6411 * tui/tui-winsource.c (tui_update_source_window_as_is)
6412 (tui_update_source_windows_with_addr): Update.
6413 * tui/tui-source.h (tui_set_source_content)
6414 (tui_show_symtab_source): Add "win_info" parameter.
6415 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6416 parameter.
6417 (tui_show_symtab_source): Likewise.
6418
6419 2019-07-17 Tom Tromey <tom@tromey.com>
6420
6421 * tui/tui-wingeneral.c
6422 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6423
6424 2019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6427 (struct tui_cmd_window) <can_scroll>: New method.
6428 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6429 method.
6430
6431 2019-07-17 Tom Tromey <tromey@adacore.com>
6432
6433 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6434 do_field_signed>: Rename. Change type of "value".
6435 * ui-out.c (ui_out::field_signed): Rename from field_int.
6436 Change type of "value".
6437 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6438 type of "value".
6439 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6440 do_field_int. Change type of "value".
6441 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6442 do_field_int. Change type of "value".
6443 * tracepoint.c (trace_status_mi, tfind_1)
6444 (print_one_static_tracepoint_marker): Update.
6445 * thread.c (print_thread_info_1, print_selected_thread_frame):
6446 Update.
6447 * stack.c (print_frame, print_frame_info): Update.
6448 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6449 Update.
6450 * source.c (print_source_lines_base): Update.
6451 * skip.c (info_skip_command): Update.
6452 * record-btrace.c (btrace_ui_out_decode_error)
6453 (btrace_call_history_src_line): Update.
6454 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6455 Update.
6456 * progspace.c (print_program_space): Update.
6457 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6458 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6459 do_field_int. Change type of "value".
6460 * mi/mi-out.c (mi_ui_out::do_table_begin)
6461 (mi_ui_out::do_table_header): Update.
6462 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6463 type of "value".
6464 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6465 (mi_cmd_data_list_changed_registers, output_register)
6466 (mi_cmd_data_read_memory, mi_load_progress)
6467 (mi_cmd_trace_frame_collected): Update.
6468 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6469 Update.
6470 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6471 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6472 (mi_cmd_var_list_children, varobj_update_one): Update.
6473 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6474 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6475 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6476 * inferior.c (print_inferior): Update.
6477 * gdb_bfd.c (print_one_bfd): Update.
6478 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6479 Update.
6480 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6481 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6482 do_field_int. Change type of "value".
6483 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6484 do_field_int. Change type of "value".
6485 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6486 (print_one_breakpoint_location, print_it_catch_fork)
6487 (print_one_catch_fork, print_it_catch_vfork)
6488 (print_one_catch_vfork, print_it_catch_solib)
6489 (print_it_catch_exec, print_it_ranged_breakpoint)
6490 (print_mention_watchpoint, print_mention_masked_watchpoint)
6491 (bkpt_print_it, update_static_tracepoint): Update.
6492 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6493 * break-catch-syscall.c (print_it_catch_syscall): Update.
6494 * ada-tasks.c (print_ada_task_info): Update.
6495 * ada-lang.c (print_it_exception, print_mention_exception):
6496 Update.
6497
6498 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 PR breakpoints/24541
6501 * gdbarch.c: Regenerate.
6502 * gdbarch.h: Regenerate.
6503 * gdbarch.sh: Adjust return type and parameter types for
6504 'stap_adjust_register'.
6505 (i386_stap_adjust_register): Adjust signature and return new
6506 register name.
6507 * stap-probe.c (stap_parse_register_operand): Adjust use of
6508 'gdbarch_stap_adjust_register'.
6509
6510 2019-07-17 Tom Tromey <tromey@adacore.com>
6511
6512 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6513 declare VEC.
6514 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6515 std::vector.
6516 (struct s390_process_info): Add initializers.
6517 (s390_add_process): Use new.
6518 (s390_linux_nat_target::low_forget_process): Use delete.
6519 (s390_linux_nat_target::low_new_fork)
6520 (s390_linux_nat_target::stopped_by_watchpoint)
6521 (s390_linux_nat_target::low_prepare_to_resume)
6522 (s390_linux_nat_target::insert_watchpoint)
6523 (s390_linux_nat_target::insert_hw_breakpoint)
6524 (s390_linux_nat_target::remove_watchpoint)
6525 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6526
6527 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6528
6529 * aarch64-fbsd-nat.c: Include regcache.h.
6530 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6531 argument.
6532 (aarch64_fbsd_nat_target::fetch_registers)
6533 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6534 variable.
6535 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6536
6537 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6538
6539 * fbsd-nat.c: Include gdbarch.h.
6540
6541 2019-07-15 Tom Tromey <tromey@adacore.com>
6542
6543 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6544
6545 2019-07-15 Tom Tromey <tromey@adacore.com>
6546
6547 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6548 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6549 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6550 * cli-out.c (cli_ui_out::do_field_int): New method.
6551 * ui-out.c (ui_out::field_unsigned): New method.
6552 * symfile.c (generic_load): Use field_unsigned.
6553 (print_transfer_performance): Likewise.
6554 * record-btrace.c (ui_out_field_uint): Remove.
6555 (btrace_call_history_insn_range, btrace_call_history): Use
6556 field_unsigned.
6557 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6558 field_unsigned.
6559 * ui-out.h (class ui_out) <field_unsigned>: New method.
6560 <do_field_unsigned>: Likewise.
6561
6562 2019-07-15 Tom Tromey <tromey@adacore.com>
6563
6564 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6565 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6566 * target.c (flash_erase_command): Use field_string.
6567 * infrun.c (print_signal_received_reason): Use field_string.
6568 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6569 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6570 field_string.
6571 * ada-tasks.c (print_ada_task_info): Use field_string.
6572
6573 2019-07-15 Tom Tromey <tromey@adacore.com>
6574
6575 * target.c (flash_erase_command): Use field_core_addr.
6576 * symfile.c (generic_load): Use field_core_addr.
6577 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6578 Use field_core_addr.
6579 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6580 field_core_addr.
6581
6582 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6585 value if its desired type is smaller than a CORE_ADDR and signed.
6586
6587 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6590 of changes to field names, and use new is_reference field to
6591 decide if a property is a reference or not.
6592 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6593 field.
6594 (struct dwarf2_property_baton): Update header comment, rename
6595 'referenced_type' to 'property_type' and update comments.
6596 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6597 default property type, store in property baton, update to take
6598 accound of renamed field.
6599 (read_func_scope): Update call to attr_to_dynamic_prop.
6600 (read_array_type): Likewise.
6601 (dwarf2_per_cu_addr_sized_int_type): New function.
6602 (read_subrange_index_type): Move type finding code to
6603 dwarf2_per_cu_addr_sized_int_type.
6604 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6605 (dwarf2_per_cu_addr_type): New function.
6606 (set_die_type): Update calls to attr_to_dynamic_prop.
6607
6608 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6609
6610 * dwarf2read.c (read_subrange_index_type): New function.
6611 (read_subrange_type): Move code into new function and call it.
6612 * gdbtypes.c (create_range_type): Add some asserts.
6613
6614 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6615
6616 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6617 update return statements.
6618 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6619 declaration, and update comment to match.
6620 * gdbtypes.c (resolve_dynamic_array): Update call to
6621 dwarf2_evaluate_property to match new return type.
6622
6623 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * valarith.c (value_subscripted_rvalue): Change lowerbound
6626 parameter type from int to LONGEST.
6627 * value.h (value_subscripted_rvalue): Likewise in declaration.
6628
6629 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6630
6631 * cli/cli-utils.c (info_print_command_completer): New function.
6632 * cli/cli-utils.h: Add 'completer.h' include, and forward
6633 declaration for 'struct cmd_list_element'.
6634 (info_print_command_completer): Declare.
6635 * stack.c (_initialize_stack): Add completer for 'info locals' and
6636 'info args'.
6637 * symtab.c (_initialize_symtab): Add completer for 'info
6638 variables' and 'info functions'.
6639 * NEWS: Mention completion for additional info commands.
6640
6641 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 * cli/cli-utils.c (extract_info_print_args): Delete.
6644 (extract_arg_maybe_quoted): Delete.
6645 (info_print_options_defs): New variable.
6646 (make_info_print_options_def_group): New function.
6647 (extract_info_print_options): Define new function.
6648 * cli/cli-utils.h (extract_info_print_args): Delete.
6649 (struct info_print_options): New structure.
6650 (extract_info_print_options): Declare new function.
6651 * stack.c (info_locals_command): Update to use new
6652 extract_info_print_options, also add a header comment.
6653 (info_args_command): Likewise.
6654 * symtab.c (info_variables_command): Likewise.
6655 (info_functions_command): Likewise.
6656
6657 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6660 to extract string arguments.
6661 * common/common-utils.c (extract_string_maybe_quoted): New function.
6662 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6663
6664 2019-07-11 Tom Tromey <tromey@adacore.com>
6665
6666 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6667 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6668 * top.h (gdbinit): Don't declare.
6669 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6670 into...
6671 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6672 * top.c (gdb_init): Don't call init_cli_cmds.
6673 (gdbinit): Remove.
6674 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6675
6676 2019-07-11 Tom Tromey <tromey@adacore.com>
6677
6678 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6679 after it has been moved.
6680
6681 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6682
6683 * valops.c (value_must_coerce_to_target): Change return type to
6684 bool.
6685 * value.h (value_must_coerce_to_target): Likewise.
6686
6687 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6688
6689 * breakpoint.c (is_hardware_watchpoint): Remove
6690 forward-declaration.
6691 (is_masked_watchpoint): Change return type to bool.
6692 (is_tracepoint): Likewise.
6693 (is_breakpoint): Likewise.
6694 (is_hardware_watchpoint): Likewise.
6695 (is_watchpoint): Likewise.
6696 (is_no_memory_software_watchpoint): Likewise.
6697 (is_catchpoint): Likewise.
6698 (breakpoint_1): Make FILTER parameter's return type bool.
6699 is_masked_watchpoint): Change return type to bool.
6700 (save_breakpoints): Make FILTER parameter's return type bool.
6701 * breakpoint.h (is_breakpoint): Change return type to bool.
6702 (is_watchpoint): Likewise.
6703 (is_catchpoint): Likewise.
6704 (is_tracepoint): Likewise.
6705
6706 2019-07-10 Tom Tromey <tom@tromey.com>
6707
6708 * defs.h: Don't include gdbarch.h.
6709 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6710 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6711 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6712 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6713 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6714 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6715 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6716 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6717 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6718 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6719 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6720 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6721 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6722 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6723 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6724 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6725 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6726 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6727 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6728 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6729 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6730 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6731 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6732 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6733 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6734 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6735 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6736
6737 2019-07-10 Tom Tromey <tromey@adacore.com>
6738
6739 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6740 * breakpoint.c (init_ada_exception_breakpoint): Register as
6741 bp_catchpoint.
6742 (print_one_breakpoint_location, print_one_breakpoint): Use
6743 is_ada_exception_catchpoint.
6744 * ada-lang.c (class ada_catchpoint_location): Pass
6745 bp_loc_software_breakpoint to bp_location constructor.
6746 (is_ada_exception_catchpoint): New function.
6747
6748 2019-07-10 Tom Tromey <tromey@adacore.com>
6749
6750 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6751 VEC.
6752 (struct arm_exidx_entry): New method operator<.
6753 (struct arm_exidx_data) <section_maps>: Change type.
6754 (arm_exidx_data_free): Remove.
6755 (arm_exidx_data_key): Change type. Move lower.
6756 (arm_exidx_new_objfile): Update.
6757 (arm_compare_exidx_entries): Remove.
6758 (arm_find_exidx_entry, _initialize_arm_tdep)
6759
6760 2019-07-10 Tom Tromey <tromey@adacore.com>
6761
6762 * solib-spu.c (ocl_program_data_key): Change type.
6763 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6764 Update.
6765
6766 2019-07-10 Tom Tromey <tromey@adacore.com>
6767
6768 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6769 (struct solib_aix_inferior_data) <library_list>: Change type.
6770 (solib_aix_inferior_data_handle): Change type.
6771 (get_solib_aix_inferior_data): Update.
6772 (solib_aix_free_library_list): Remove.
6773 (library_list_start_library): Update.
6774 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6775 return type.
6776 (solib_aix_get_library_list)
6777 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6778 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6779
6780 2019-07-10 Tom Tromey <tromey@adacore.com>
6781
6782 * solib-dsbt.c (struct dsbt_info): Add initializers.
6783 (solib_dsbt_pspace_data): Change type.
6784 (dsbt_pspace_data_cleanup): Remove.
6785 (get_dsbt_info, _initialize_dsbt_solib): Update.
6786
6787 2019-07-10 Tom Tromey <tromey@adacore.com>
6788
6789 * spu-tdep.c (spu_overlay_data): Change type.
6790 (spu_get_overlay_table, spu_overlay_new_objfile)
6791 (_initialize_spu_tdep): Update.
6792
6793 2019-07-10 Tom Tromey <tromey@adacore.com>
6794
6795 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6796 destructor.
6797 (dbx_objfile_data_key): Change type and declare later.
6798 (DBX_SYMFILE_INFO): Rewrite.
6799 * dbxread.c (dbx_objfile_data_key): Change type.
6800 (dbx_symfile_init): Update.
6801 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6802 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6803 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6804
6805 2019-07-10 Tom Tromey <tromey@adacore.com>
6806
6807 * jit.c (jit_program_space_key): Change type. Move lower.
6808 (get_jit_program_space_data): Update.
6809 (jit_program_space_data_cleanup): Remove.
6810 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6811 Update.
6812 (struct jit_program_space_data): Add initializers.
6813
6814 2019-07-10 Tom Tromey <tromey@adacore.com>
6815
6816 * solib-darwin.c (struct darwin_info): Add initializers.
6817 (solib_darwin_pspace_data): Change type.
6818 (darwin_pspace_data_cleanup): Remove.
6819 (get_darwin_info, _initialize_darwin_solib): Update.
6820
6821 2019-07-10 Tom Tromey <tromey@adacore.com>
6822
6823 * remote-sim.c (struct sim_inferior_data): Add initializers,
6824 constructor, and destructor.
6825 (sim_inferior_data_key): Change type. Move lower.
6826 (check_for_duplicate_sim_descriptor): Update.
6827 (get_sim_inferior_data): Use new. Update.
6828 (~sim_inferior_data_cleanup): Rename from
6829 sim_inferior_data_cleanup. Simplify.
6830 (gdbsim_close_inferior, simulator_command)
6831 (sim_command_completer, _initialize_remote_sim): Update.
6832 (next_pid, INITIAL_PID): Move earlier.
6833
6834 2019-07-10 Tom Tromey <tromey@adacore.com>
6835
6836 * python/python-internal.h (create_thread_object): Return
6837 gdbpy_ref.
6838 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6839 * python/py-inferior.c (struct threadlist_entry): Add
6840 constructor.
6841 <thread_obj>: Now a gdbpy_ref.
6842 (thread_to_thread_object): Update.
6843 (add_thread_object): Use new.
6844 (delete_thread_object): Use delete.
6845 (infpy_threads): Update.
6846 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6847 GIL.
6848
6849 2019-07-10 Tom Tromey <tromey@adacore.com>
6850
6851 * valops.c (value_cast): Specialize error message for Ada.
6852
6853 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6856
6857 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6858
6859 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6860 bpstat_should_step): Return bool, adjust comments.
6861 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6862 bpstat_should_step): Likewise.
6863
6864 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6865
6866 * features/Makefile: Use feature target descriptions for Arm.
6867 * features/arm/arm-core.c: Generate new file.
6868 * features/arm/arm-fpa.c: Likewise.
6869 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6870 * features/arm/arm-m-profile.c: Likewise.
6871 * features/arm/arm-vfpv2.c: Likewise.
6872 * features/arm/arm-vfpv3.c: Likewise.
6873 * features/arm/xscale-iwmmxt.c: Likewise.
6874 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6875
6876 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6877
6878 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6879 ptrace earlier.
6880
6881 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6882
6883 * features/aarch64-pauth.c: Regenerate.
6884
6885 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6886
6887 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6888 bool.
6889 (bpstat_what): Use false instead of 0.
6890
6891 2019-07-09 Pedro Alves <palves@redhat.com>
6892
6893 * break-catch-throw.c (is_exception_catchpoint): New.
6894 * breakpoint.c (print_one_breakpoint_location): New parameter
6895 'raw_loc'. Handle it. Use
6896 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6897 looking at the breakpoint's type.
6898 (print_one_breakpoint): If handling "maint info breakpoints", also
6899 print locations of exception catchpoints.
6900 * breakpoint.h (is_exception_catchpoint): Declare.
6901
6902 2019-07-09 Pedro Alves <palves@redhat.com>
6903
6904 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6905 "addr" field.
6906 (allocate_location_exception_catchpoint): New.
6907 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6908 (initialize_throw_catchpoint_ops): Install
6909 allocate_location_exception_catchpoint as allocate_location
6910 method.
6911 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6912 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6913 bp_loc_other.
6914 (breakpoint_address_is_meaningful): Delete.
6915 (bl_address_is_meaningful): New.
6916 (breakpoint_locations_match): Adjust comment.
6917 (bp_location_from_bp_type): New, factored out of...
6918 (bp_location::bp_location(breakpoint *)): ... this.
6919 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6920 factored out of...
6921 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6922 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6923 breakpoint_address_is_meaningful.
6924 (bp_locations_compare): Adjust comment.
6925 (update_global_location_list): Use bl_address_is_meaningful
6926 instead of breakpoint_address_is_meaningful.
6927 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6928 explicit.
6929 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6930 * python/py-breakpoint.c (bppy_get_location): No longer check
6931 whether location is null.
6932
6933 2019-07-09 Pedro Alves <palves@redhat.com>
6934
6935 PR c++/15468
6936 * breakpoint.c (print_one_breakpoint_location): Remove
6937 single-location assert.
6938
6939 2019-07-09 Tom Tromey <tom@tromey.com>
6940
6941 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6942 * configure: Rebuild.
6943 * configure.ac: Change common to gdbsupport.
6944 * gdbsupport: Rename from common.
6945 * acinclude.m4: Change common to gdbsupport.
6946 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6947 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6948 gdbsupport.
6949 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6950 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6951 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6952 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6953 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6954 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6955 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6956 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6957 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6958 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6959 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6960 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6961 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6962 coff-pe-read.c, command.h, compile/compile-c-support.c,
6963 compile/compile-c.h, compile/compile-cplus-symbols.c,
6964 compile/compile-cplus-types.c, compile/compile-cplus.h,
6965 compile/compile-loc2c.c, compile/compile.c, completer.c,
6966 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6967 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6968 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6969 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6970 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6971 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6972 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6973 features/aarch64-core.c, features/aarch64-fpu.c,
6974 features/aarch64-pauth.c, features/aarch64-sve.c,
6975 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6976 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6977 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6978 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6979 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6980 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6981 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6982 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6983 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6984 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6985 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6986 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6987 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6988 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6989 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6990 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6991 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6992 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6993 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6994 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6995 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6996 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6997 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6998 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6999 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7000 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7001 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7002 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7003 minsyms.c, mips-linux-tdep.c, namespace.h,
7004 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7005 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7006 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7007 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7008 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7009 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7010 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7011 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7012 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7013 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7014 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7015 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7016 procfs.c, producer.c, progspace.h, psymtab.h,
7017 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7018 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7019 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7020 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7021 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7022 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7023 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7024 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7025 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7026 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7027 target-memory.c, target.c, target.h, target/waitstatus.c,
7028 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7029 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7030 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7031 unittests/array-view-selftests.c,
7032 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7033 unittests/common-utils-selftests.c,
7034 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7035 unittests/format_pieces-selftests.c,
7036 unittests/function-view-selftests.c,
7037 unittests/lookup_name_info-selftests.c,
7038 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7039 unittests/mkdir-recursive-selftests.c,
7040 unittests/observable-selftests.c,
7041 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7042 unittests/parse-connection-spec-selftests.c,
7043 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7044 unittests/scoped_fd-selftests.c,
7045 unittests/scoped_mmap-selftests.c,
7046 unittests/scoped_restore-selftests.c,
7047 unittests/string_view-selftests.c, unittests/style-selftests.c,
7048 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7049 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7050 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7051 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7052 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7053 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7054
7055 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7058 bool value.
7059 (decode_digits_ordinary): Set explicit_line field in sal.
7060 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7061 symtab_and_line that was set on an explicit line number in
7062 assembler code. Do always update the recorded symtab and line if
7063 we do skip the prologue.
7064
7065 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * breakpoint.c (set_breakpoint_location_function): Remove
7068 explicit_loc parameter.
7069 (momentary_breakpoint_from_master): Update call to
7070 set_breakpoint_location_function.
7071 (add_location_to_breakpoint): Likewise.
7072
7073 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7074
7075 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7076 required features based on default bfd type when no specific bfd
7077 is present.
7078
7079 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7080
7081 * NEWS: Mention that GDB printf and eval commands can now print
7082 C-style and Ada-style convenience var strings without
7083 calling the inferior.
7084 * printcmd.c (printf_c_string): Locally print GDB internal var
7085 instead of transiting via the inferior.
7086 (printf_wide_c_string): Likewise.
7087
7088 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7089
7090 PR breakpoints/25011
7091 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7092
7093 2019-07-04 Tom Tromey <tom@tromey.com>
7094
7095 PR tui/24724:
7096 * tui/tui-winsource.c (tui_clear_source_content): Update.
7097 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7098 (tui_update_breakpoint_info): Update.
7099 (tui_set_exec_info_content): Update.
7100 * tui/tui-source.c (tui_set_source_content_nil): Update.
7101 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7102 has_break.
7103 * tui/tui-data.h (enum tui_bp_flag): New.
7104 (tui_bp_flags): New enum flags type.
7105 (struct tui_source_element) <break_mode>: Change type. Rename
7106 from has_break.
7107 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7108 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7109 constants.
7110 * tui/tui-winsource.h: Fix comment.
7111
7112 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7113
7114 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7115 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7116 (store_fpregs_to_thread)
7117 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7118 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7119 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7120 (IWMMXT_REGS_SIZE): Add define.
7121 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7122 (fetch_vfp_regs, store_vfp_regs)
7123 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7124 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7125
7126 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7127
7128 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7129 defines.
7130 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7131 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7132 (ARM_INT_REGISTER_SIZE): ...to this.
7133 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7134 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7135 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7136 (arm_linux_collect_gregset, supply_nwfpe_register)
7137 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7138 defines.
7139 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7140 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7141 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7142 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7143 (arm_return_in_memory, arm_store_return_value)
7144 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7145 (arm_record_ld_st_multiple): Likewise.
7146 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7147 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7148
7149 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7150
7151 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7152 AARCH64_DISPLACED_MODIFIED_INSNS.
7153 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7154 (aarch64_displaced_step_copy_insn): Likewise.
7155 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7156 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7157 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7158 ARM_DISPLACED_MODIFIED_INSNS.
7159 * arm-tdep.c (arm_gdbarch_init): Likewise.
7160 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7161 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7162 (struct arm_displaced_step_closure): Use
7163 ARM_DISPLACED_MODIFIED_INSNS.
7164
7165 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7166
7167 * features/Makefile: Remove unused xml files.
7168 * features/aarch64.xml: Remove.
7169 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7170 * features/i386/amd64-avx-avx512.xml: Remove.
7171 * features/i386/amd64-avx-linux.xml: Remove.
7172 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7173 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7174 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7175 * features/i386/amd64-avx-mpx.xml: Remove.
7176 * features/i386/amd64-avx.xml: Remove.
7177 * features/i386/amd64-linux.xml: Remove.
7178 * features/i386/amd64-mpx-linux.xml: Remove.
7179 * features/i386/amd64-mpx.xml: Remove.
7180 * features/i386/amd64.xml: Remove.
7181 * features/i386/i386-avx-avx512-linux.xml: Remove.
7182 * features/i386/i386-avx-avx512.xml: Remove.
7183 * features/i386/i386-avx-linux.xml: Remove.
7184 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7185 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7186 * features/i386/i386-avx-mpx-linux.xml: Remove.
7187 * features/i386/i386-avx-mpx.xml: Remove.
7188 * features/i386/i386-avx.xml: Remove.
7189 * features/i386/i386-linux.xml: Remove.
7190 * features/i386/i386-mmx-linux.xml: Remove.
7191 * features/i386/i386-mmx.xml: Remove.
7192 * features/i386/i386-mpx-linux.xml: Remove.
7193 * features/i386/i386-mpx.xml: Remove.
7194 * features/i386/i386.xml: Remove.
7195 * features/i386/x32-avx-avx512-linux.xml: Remove.
7196 * features/i386/x32-avx-linux.xml: Remove.
7197 * features/i386/x32-linux.xml: Remove.
7198
7199 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7200
7201 * regformats/aarch64.dat: Remove.
7202 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7203 * regformats/i386/amd64-avx-linux.dat: Remove.
7204 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7205 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7206 * regformats/i386/amd64-linux.dat: Remove.
7207 * regformats/i386/amd64-mpx-linux.dat: Remove.
7208 * regformats/i386/amd64.dat: Remove.
7209 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7210 * regformats/i386/i386-avx-linux.dat: Remove.
7211 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7212 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7213 * regformats/i386/i386-linux.dat: Remove.
7214 * regformats/i386/i386-mmx-linux.dat: Remove.
7215 * regformats/i386/i386-mpx-linux.dat: Remove.
7216 * regformats/i386/i386.dat: Remove.
7217 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7218 * regformats/i386/x32-avx-linux.dat: Remove.
7219 * regformats/i386/x32-linux.dat: Remove.
7220
7221 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7222
7223 * aarch64-tdep.c: Remove xml self tests.
7224 * amd64-linux-tdep.c: Likewise.
7225 * amd64-tdep.c: Likewise.
7226 * i386-linux-tdep.c: Likewise.
7227 * i386-tdep.c: Likewise.
7228
7229 2019-07-03 Pedro Alves <palves@redhat.com>
7230
7231 PR cli/24732
7232 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7233 (pipe_cmd_option_defs): New.
7234 (make_pipe_cmd_options_def_group): New.
7235 (pipe_command): Use gdb::option::process_options.
7236 (pipe_command_completer): New function.
7237 (_initialize_cli_cmds): Install completer for "pipe" command.
7238
7239 2019-07-03 Pedro Alves <palves@redhat.com>
7240
7241 * cli/cli-option.c (union option_value) <string>: New field.
7242 (struct option_def_and_value): Add ctor, move ctor, dtor and
7243 use DISABLE_COPY_AND_ASSIGN.
7244 (option_def_and_value::clear_value): New.
7245 (parse_option, save_option_value_in_ctx, get_val_type_str)
7246 (add_setshow_cmds_for_options): Handle var_string.
7247 * cli-option.h (union option_def::var_address) <string>: New
7248 field.
7249 (struct string_option_def): New.
7250 * maint-test-options.c (struct test_options_opts): Add default
7251 ctor and use DISABLE_COPY_AND_ASSIGN.
7252 <string_opt>: New field.
7253 (test_options_opts::~test_options_opts): New.
7254 (test_options_opts::dump): Also dump "-string".
7255 (test_options_option_defs): Install "string.
7256
7257 2019-07-03 Pedro Alves <palves@redhat.com>
7258
7259 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7260 option_value with a null enumeration.
7261 (complete_options): Save the option values in the context.
7262 (save_option_value_in_ctx): New, factored out from ...
7263 (process_options): ... here.
7264 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7265 of the function.
7266 * maint-test-options.c (test_options_opts::dump): New, factored
7267 out from ...
7268 (maintenance_test_options_command_mode): ... here.
7269 (maintenance_test_options_command_completion_result): Delete.
7270 (maintenance_test_options_command_completion_text): Update
7271 comment.
7272 (maintenance_show_test_options_completion_result): Change
7273 prototype. Just print
7274 maintenance_test_options_command_completion_text.
7275 (save_completion_result): New.
7276 (maintenance_test_options_completer_mode): Pass options context to
7277 complete_options, and then save a dump.
7278 (_initialize_maint_test_options): Use add_cmd to install "maint
7279 show test-options-completion-result".
7280
7281 2019-07-03 Pedro Alves <palves@redhat.com>
7282
7283 * NEWS (New commands): Mention "with" and "maint with".
7284 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7285 (with_command, with_command_completer): New.
7286 (pipe_command): Adjust to new repeat_previous
7287 interface.
7288 (_initialize_cli_cmds): Install the "with" command and its "w"
7289 alias.
7290 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7291 declarations.
7292 * cli/cli-setshow.c (parse_cli_var_uinteger)
7293 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7294 argument strings for all var_types.
7295 (get_setshow_command_value_string): New, factored out from ...
7296 (do_show_command): ... this.
7297 * cli/cli-setshow.h: Include <string>.
7298 (get_setshow_command_value_string): Declare.
7299 * command.h (repeat_previous): Now returns const char *. Adjust
7300 comment.
7301 * maint.c: Include "cli/cli-cmds.h".
7302 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7303 (_initialize_maint_cmds): Register the "maintenance with" command.
7304 * top.c (repeat_previous): Move bits from pipe_command here:
7305 Return the saved command line, if any; error out if there's no
7306 command to relaunch.
7307
7308 2019-07-03 Pedro Alves <palves@redhat.com>
7309
7310 * NEWS (New commands): Mention "maint set/show test-settings"
7311 instead of "maint test-settings".
7312 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7313 (maintenance_test_settings_set_list): Rename to ...
7314 (maintenance_set_test_settings_list): ... this.
7315 (maintenance_test_settings_show_list): Rename to ...
7316 (maintenance_show_test_settings_list): ... this.
7317 (maintenance_test_settings_cmd): Delete.
7318 (maintenance_test_settings_set_cmd): ...
7319 (maintenance_set_test_settings_cmd): ... this.
7320 (maintenance_test_settings_show_cmd): ...
7321 (maintenance_show_test_settings_cmd): ... this.
7322 (maintenance_test_settings_show_value_cmd):
7323 (maintenance_show_test_settings_value_cmd): ... this.
7324 (_initialize_maint_test_settings): No longer install the "maint
7325 test-settings" prefix command. Rename "maint test-settings set"
7326 to "maint set test-settings", and "maint test-settings show" to
7327 "maint show test-settings". Adjust all subcommands.
7328
7329 2019-07-03 Pedro Alves <palves@redhat.com>
7330
7331 * maint-test-settings.c: Fix file's intro comment. Replace all
7332 references to "test-options" with references to "test-settings",
7333 in comments.
7334
7335 2019-07-03 Pedro Alves <palves@redhat.com>
7336
7337 * maint-test-settings.c (maintenance_test_settings_xxx)
7338 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7339 New.
7340 (maintenance_test_settings_enums): Use them.
7341 (maintenance_test_settings_enum): Default to
7342 maintenance_test_settings_xxx.
7343 (_initialize_maint_test_settings): Initialize
7344 MAINTENANCE_TEST_SETTINGS_FILENAME.
7345
7346 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7347
7348 * breakpoint.h (remove_breakpoints_inf): Change return type to
7349 void, move function documentation here.
7350 * breakpoint.c (remove_breakpoints_inf): Change return type to
7351 void, move function documentation to header.
7352
7353 2019-07-02 Pedro Alves <palves@redhat.com>
7354
7355 * NEWS (Completion improvements): Mention "info threads".
7356 * thread.c (struct info_threads_opts, info_threads_option_defs)
7357 (make_info_threads_options_def_group): New.
7358 (info_threads_command): Use gdb::option::process_options.
7359 (info_threads_command_completer): New.
7360 (_initialize_thread): Use gdb::option::build_help to build the
7361 help text for "info threads".
7362
7363 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7364
7365 * defs.h (generic_load): Move from here...
7366 * symfile.h (generic_load): ... to here. Rename name parameter
7367 to args.
7368 * symfile.c (generic_load): Add comment.
7369
7370 2019-07-01 Tom Tromey <tromey@adacore.com>
7371
7372 * dwarf2read.c
7373 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7374 declaration of without_params. Fix formatting.
7375
7376 2019-07-01 Tom Tromey <tromey@adacore.com>
7377
7378 * ada-exp.y (find_primitive_type): Update.
7379 * ada-lang.h (ada_lookup_symbol): Update.
7380 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7381 parameter.
7382 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7383
7384 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7385
7386 PR breakpoints/24541
7387 * gdbarch.c: Regenerate.
7388 * gdbarch.h: Regenerate.
7389 * gdbarch.sh: Add 'stap_adjust_register'.
7390 * i386-tdep.c: Include '<unordered_set>'.
7391 (i386_stap_adjust_register): New function.
7392 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7393 * stap-probe.c (stap_parse_register_operand): Call
7394 'gdbarch_stap_adjust_register'.
7395
7396 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7397
7398 PR python/24742
7399 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7400 * python/python.c (do_start_initialization): Use 'xmalloc'
7401 instead of 'PyMem_Malloc'.
7402
7403 2019-06-28 Tom Tromey <tromey@adacore.com>
7404
7405 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7406 for Ada.
7407
7408 2019-06-27 Tom Tromey <tromey@adacore.com>
7409
7410 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7411 objfile_key.
7412 (arm_find_mapping_symbol, arm_record_special_symbol)
7413 (_initialize_arm_tdep): Update.
7414 (arm_objfile_data_free): Remove.
7415
7416 2019-06-27 Tom Tromey <tromey@adacore.com>
7417
7418 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7419 to cp_print_static_field.
7420
7421 2019-06-26 Tom Tromey <tromey@adacore.com>
7422
7423 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7424 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7425 declare.
7426
7427 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7428
7429 * features/aarch64-core.c (create_feature_aarch64_core):
7430 Regenerate.
7431 * features/aarch64-core.xml: Add cpsr flags.
7432
7433 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7434
7435 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7436 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7437
7438 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7441 field.
7442 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7443 use.
7444 (arm_record_special_symbol): Don't insert new symbol in sorted
7445 position, push it at the end.
7446
7447 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7448
7449 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7450 (arm_mapping_symbol_s): Remove.
7451 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7452 (arm_mapping_symbol_vec): New typedef.
7453 (struct arm_per_objfile): Add constructor.
7454 <section_maps>: Change type to
7455 std::unique_ptr<arm_mapping_symbol_vec[]>.
7456 (arm_compare_mapping_symbols): Remove.
7457 (arm_find_mapping_symbol): Adjust to section_maps type change.
7458 (arm_objfile_data_free): Call delete on arm_per_objfile.
7459 (arm_record_special_symbol): Adjust to section_maps type change.
7460 Allocate arm_per_objfile with new.
7461
7462 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7463
7464 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7465 with the command prefix.
7466
7467 2019-06-25 Tom Tromey <tom@tromey.com>
7468
7469 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7470 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7471
7472 2019-06-25 Tom Tromey <tom@tromey.com>
7473
7474 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7475 type.
7476 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7477 protected.
7478
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-winsource.c
7482 (tui_source_window_base::set_is_exec_point_at): Add check against
7483 LOA_ADDRESS.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-source.c (tui_set_source_content): Don't check before
7488 xfree.
7489 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7490
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-winsource.h (tui_update_source_window_as_is)
7494 (tui_alloc_source_buffer, tui_line_is_displayed)
7495 (tui_addr_is_displayed): Change type of win_info.
7496 * tui/tui-winsource.c (tui_update_source_window_as_is)
7497 (tui_clear_source_content, tui_show_source_line)
7498 (tui_show_source_content, tui_source_window_base::refill)
7499 (tui_source_window_base::set_is_exec_point_at)
7500 (tui_source_window_base::set_is_exec_point_at)
7501 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7502 (tui_alloc_source_buffer, tui_line_is_displayed)
7503 (tui_addr_is_displayed): Change type of win_info. Update.
7504 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7505 (tui_source_window_base::do_make_visible_with_new_height):
7506 Update.
7507 * tui/tui-source.c (tui_set_source_content)
7508 (tui_set_source_content_nil)
7509 (tui_source_window::do_scroll_vertical): Update.
7510 * tui/tui-layout.c (show_layout): Update.
7511 * tui/tui-disasm.c (tui_set_disassem_content)
7512 (tui_disasm_window::do_scroll_vertical): Update.
7513 * tui/tui-data.h (tui_win_content): Remove.
7514 (struct tui_gen_win_info) <content, content_size>: Remove.
7515 (struct tui_source_element): Add initializers and destructor.
7516 (union tui_which_element, struct tui_win_element): Remove.
7517 (struct tui_source_window_base) <content>: New field.
7518 (struct tui_data_window): Remove destructor.
7519 (tui_alloc_content, tui_free_win_content)
7520 (tui_free_all_source_wins_content): Don't declare.
7521 * tui/tui-data.c (tui_initialize_static_data): Update.
7522 (init_content_element, tui_alloc_content): Remove.
7523 (~tui_gen_win_info): Update.
7524 (~tui_data_window, tui_free_all_source_wins_content)
7525 (tui_free_win_content, free_content, free_content_elements):
7526 Remove.
7527
7528 2019-06-25 Tom Tromey <tom@tromey.com>
7529
7530 * tui/tui-winsource.h (tui_clear_source_content)
7531 (tui_erase_source_content, tui_show_source_content): Change type
7532 of win_info.
7533 * tui/tui-winsource.c (tui_clear_source_content)
7534 (tui_erase_source_content, tui_show_source_content): Change type
7535 of win_info.
7536 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7537 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7538 win_info.
7539 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7540 win_info.
7541 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7542
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-winsource.c (tui_clear_source_content)
7546 (tui_source_window_base::set_is_exec_point_at): Update.
7547 * tui/tui-source.c (tui_set_source_content_nil): Update.
7548 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7549 a bool.
7550 * tui/tui-data.c (init_content_element): Update.
7551
7552 2019-06-25 Tom Tromey <tom@tromey.com>
7553
7554 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7555 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7556 * tui/tui-layout.c (init_and_make_win): Update.
7557 * tui/tui.h (enum tui_win_type): Update.
7558 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7559 tui_win_is_auxillary.
7560 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7561 tui_win_is_auxillary.
7562
7563 2019-06-25 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7566 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7567 (tui_delete_data_content_windows, tui_display_all_data)
7568 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7569 Update.
7570 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7571 * tui/tui-regs.c (tui_last_regs_line_no)
7572 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7573 (tui_show_registers): Update.
7574 (tui_show_register_group): Return void. Update.
7575 (tui_display_registers_from, tui_display_reg_element_at_line)
7576 (tui_display_registers_from_line, tui_check_register_values):
7577 Update.
7578 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7579 member.
7580 (struct tui_data_window) <regs_content>: Now a std::vector.
7581 <regs_content_count>: Remove.
7582 (tui_add_content_elements, tui_free_data_content): Don't declare.
7583 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7584 (init_content_element): Remove DATA_WIN case. Add assert.
7585 (tui_add_content_elements): Remove.
7586 (tui_data_window): Update.
7587 (tui_free_data_content): Remove.
7588 (free_content_elements): Remove DATA_WIN case.
7589
7590 2019-06-25 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui-data.c (tui_data_item_window): Update.
7593 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7594 * tui/tui-windata.c (tui_display_all_data)
7595 (tui_display_data_from_line): Update.
7596 (tui_check_data_values): Remove.
7597 * tui/tui-regs.c (tui_show_register_group)
7598 (tui_display_reg_element_at_line): Update.
7599 * tui/tui-hooks.c (tui_register_changed)
7600 (tui_refresh_frame_and_register_information): Call
7601 tui_check_register_values.
7602 * tui/tui-data.h (struct tui_data_window) <data_content,
7603 data_content_count, data_type>: Remove.
7604 (enum tui_data_type): Remove.
7605
7606 * tui/tui-data.c (tui_data_window::clear_detail)
7607 (~tui_data_window): Update.
7608
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7612 declare.
7613 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7614 Rename from tui_first_data_item_displayed. Update.
7615 (tui_data_window::refresh_all)
7616 (tui_data_window::do_scroll_vertical): Update.
7617 * tui/tui-data.h (struct tui_data_window)
7618 <first_data_item_displayed>: Declare new method.
7619
7620 2019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7623 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7624 contents...
7625 (tui_initialize_static_data): ...here.
7626
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7630 (tui_display_registers_from, tui_check_register_values): Update.
7631 (tui_display_register): Remove win_info parameter; update.
7632 (tui_get_register): Change type of parameters.
7633 * tui/tui-data.h (struct tui_data_element): Remove.
7634 (union tui_which_element) <data>: Remove.
7635 <data_window>: Change type.
7636 (struct tui_data_item_window): New.
7637 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7638 case. Add assert.
7639 (~tui_data_item_window): New destructor.
7640 (free_content_elements): Remove DATA_ITEM_WIN case.
7641
7642 2019-06-25 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7645 Remove.
7646
7647 2019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-data.h (struct tui_command_element): Remove.
7650 (union tui_which_element) <command>: Remove.
7651 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7652 assert.
7653 (free_content_elements): Remove CMD_WIN case.
7654
7655 2019-06-25 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-layout.c (tui_set_layout): Update.
7658 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7659 * tui/tui-data.c (layout_def): Update.
7660
7661 2019-06-25 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7664 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7665 (tui_source_window_base::set_new_height): Update.
7666 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7667 Update.
7668 (tui_set_locator_fullname, tui_set_locator_info)
7669 (tui_show_frame_info): Update.
7670 * tui/tui-source.c (tui_set_source_content)
7671 (tui_source_is_displayed): Update.
7672 * tui/tui-layout.c (show_source_disasm_command, show_data)
7673 (show_source_or_disasm_and_command): Update.
7674 * tui/tui-disasm.c (tui_set_disassem_content)
7675 (tui_get_begin_asm_address): Update.
7676 * tui/tui-data.h (struct tui_locator_element): Remove.
7677 (union tui_which_element) <locator>: Remove.
7678 (struct tui_locator_window): New.
7679 (tui_locator_win_info_ptr): Change return type.
7680 * tui/tui-data.c (_locator): Change type.
7681 (tui_locator_win_info_ptr): Change return type.
7682 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7683 (tui_alloc_content): Add assert.
7684
7685 2019-06-25 Tom Tromey <tom@tromey.com>
7686
7687 * tui/tui-winsource.c
7688 (tui_exec_info_window::maybe_allocate_content): New method.
7689 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7690 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7691 (make_source_or_disasm_window): Add cast.
7692 * tui/tui-data.h (union tui_which_element) <simple_string>:
7693 Remove.
7694 (struct tui_source_info): New.
7695 (struct tui_source_window_base) <execution_info>: Change type.
7696 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7697 case, and add assert.
7698 (tui_alloc_content): Add assert.
7699
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7703 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7704 * tui/tui-data.c (tui_alloc_win_info): Remove.
7705
7706 2019-06-25 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7709 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7710 can_highlight.
7711
7712 2019-06-25 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7715 make_visible_with_new_height method.
7716 (tui_win_info::make_visible_with_new_height): New method.
7717 (tui_source_window_base::do_make_visible_with_new_height)
7718 (tui_data_window::do_make_visible_with_new_height)
7719 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7720 (make_visible_with_new_height): Remove.
7721 (tui_resize_all, tui_adjust_win_heights): Use
7722 make_visible_with_new_height method.
7723 * tui/tui-data.h (struct tui_win_info)
7724 <do_make_visible_with_new_height, make_visible_with_new_height>:
7725 New methods.
7726 (struct tui_source_window_base, struct tui_data_window)
7727 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7728 methods.
7729
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7733 method.
7734 (update_tab_width): Call update_tab_width method.
7735 * tui/tui-data.h (struct tui_win_info)
7736 (struct tui_source_window_base) <update_tab_width>: New methods.
7737
7738 2019-06-25 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7741 parameter.
7742 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7743 parameter.
7744 (tui_gen_win_info::make_visible): Update.
7745 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7746 parameter.
7747 * tui/tui-data.h (enum tui_box): New enum.
7748 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7749
7750 2019-06-25 Tom Tromey <tom@tromey.com>
7751
7752 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7753 init_and_make_win for EXEC_INFO_WIN.
7754 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7755 longer inline.
7756 (struct tui_win_info) <~tui_win_info>: Inline.
7757 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7758 Don't declare.
7759 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7760 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7761 Remove.
7762 (tui_initialize_static_data): Update.
7763 (~tui_gen_win_info): Handle more cleanup here.
7764 (~tui_source_window_base): Delete "execution_info".
7765 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7766
7767 2019-06-25 Tom Tromey <tom@tromey.com>
7768
7769 * tui/tui-layout.c (make_command_window): Don't set
7770 can_highlight.
7771 (show_source_disasm_command): Call the reset method.
7772 (show_data): Don't set can_highlight. Call the reset method.
7773 (tui_gen_win_info::reset): Rename from init_gen_win_info
7774 (init_and_make_win): Simplify. Return tui_gen_win_info.
7775 (show_source_or_disasm_and_command): Call the reset method.
7776 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7777 (struct tui_cmd_window): Set can_highlight.
7778
7779 2019-06-25 Tom Tromey <tom@tromey.com>
7780
7781 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7782 from make_visible.
7783 (tui_make_visible, tui_make_invisible): Rewrite.
7784 (tui_win_info::make_visible): Remove.
7785 (tui_source_window_base::make_visible): Update.
7786 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7787 method. Moved from...
7788 (struct tui_win_info) <make_visible>: ...here.
7789
7790 2019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-winsource.c
7793 (tui_source_window_base::do_scroll_horizontal): Remove direction
7794 parameter.
7795 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7796 direction parameter.
7797 * tui/tui-win.c (tui_win_info::forward_scroll)
7798 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7799 (tui_win_info::right_scroll): Update.
7800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7801 direction parameter.
7802 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7803 direction parameter.
7804 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7805 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7806 Remove direction parameter.
7807 (struct tui_source_window_base, struct tui_source_window)
7808 (struct tui_disasm_window, struct tui_data_window)
7809 (struct tui_cmd_window): Update.
7810
7811 2019-06-25 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-winsource.h (tui_set_exec_info_content)
7814 (tui_show_exec_info_content, tui_erase_exec_info_content)
7815 (tui_clear_exec_info_content, tui_update_exec_info): Change
7816 argument to tui_source_window_base.
7817 * tui/tui-winsource.c (tui_set_exec_info_content)
7818 (tui_show_exec_info_content, tui_erase_exec_info_content)
7819 (tui_clear_exec_info_content, tui_update_exec_info): Change
7820 argument to tui_source_window_base.
7821
7822 2019-06-25 Tom Tromey <tom@tromey.com>
7823
7824 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7825 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7826
7827 2019-06-25 Tom Tromey <tom@tromey.com>
7828
7829 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7830 check.
7831
7832 2019-06-25 Tom Tromey <tom@tromey.com>
7833
7834 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7835 type to void.
7836 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7837 type to void.
7838 * tui/tui-source.c (tui_set_source_content): Update.
7839 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7840
7841 2019-06-25 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-win.c (window_name_completer, tui_set_focus)
7844 (tui_all_windows_info): Use name method.
7845 * tui/tui-data.h (struct tui_gen_win_info)
7846 (struct tui_source_window, struct tui_disasm_window)
7847 (struct tui_data_window, struct tui_cmd_window) <name>: New
7848 method.
7849 (tui_win_name): Don't declare.
7850 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7851 (tui_win_name): Remove.
7852
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-winsource.h (tui_update_source_window)
7856 (tui_update_source_window_as_is): Change parameter type.
7857 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7858 to be a tui_source_window_base.
7859 (tui_update_source_window_as_is): Likewise.
7860 * tui/tui-win.c (make_visible_with_new_height): Update.
7861
7862 2019-06-25 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-winsource.c (tui_erase_source_content)
7865 (tui_show_source_content, tui_show_exec_info_content)
7866 (tui_erase_exec_info_content): Use refresh_window method.
7867 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7868 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7869 from tui_refresh_win.
7870 (tui_data_window::refresh_window): New method.
7871 (tui_win_info::refresh, tui_source_window_base::refresh)
7872 (tui_refresh_all): Use refresh_window method.
7873 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7874 method.
7875 * tui/tui-regs.c (tui_display_register): Call refresh_window
7876 method.
7877 * tui/tui-layout.c (show_source_disasm_command)
7878 (show_source_or_disasm_and_command): Call refresh_window method.
7879 * tui/tui-data.h (struct tui_gen_win_info)
7880 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7881 New method.
7882
7883 2019-06-25 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui.c (tui_rl_other_window, tui_enable)
7886 (tui_is_window_visible, tui_get_command_dimension): Update.
7887 * tui/tui-winsource.c (tui_update_source_window_as_is)
7888 (tui_clear_source_content, tui_erase_source_content)
7889 (tui_show_source_line, tui_source_window_base::refill)
7890 (tui_source_window_base::do_scroll_horizontal)
7891 (tui_source_window_base::set_is_exec_point_at)
7892 (tui_update_breakpoint_info, tui_set_exec_info_content)
7893 (tui_alloc_source_buffer, tui_line_is_displayed)
7894 (tui_addr_is_displayed): Update.
7895 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7896 (tui_check_and_display_highlight_if_needed)
7897 (tui_win_info::make_visible, tui_win_info::refresh)
7898 (tui_refresh_all): Update.
7899 * tui/tui-windata.c (tui_first_data_item_displayed)
7900 (tui_delete_data_content_windows, tui_erase_data_content)
7901 (tui_display_all_data, tui_data_window::refresh_all)
7902 (tui_check_data_values): Update.
7903 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7904 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7905 (tui_win_info::backward_scroll, tui_refresh_all_win)
7906 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7907 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7908 (tui_source_window_base::set_new_height)
7909 (tui_data_window::set_new_height)
7910 (make_invisible_and_set_new_height)
7911 (make_visible_with_new_height, new_height_ok)
7912 (parse_scrolling_args): Update.
7913 * tui/tui-stack.c (tui_show_frame_info): Update.
7914 * tui/tui-source.c (tui_set_source_content)
7915 (tui_set_source_content_nil, tui_source_is_displayed)
7916 (tui_source_window::do_scroll_vertical): Update.
7917 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7918 (tui_display_registers_from, tui_display_reg_element_at_line)
7919 (tui_check_register_values, tui_reg_command): Update.
7920 * tui/tui-layout.c (tui_default_win_height)
7921 (show_source_disasm_command, show_data, init_and_make_win)
7922 (show_source_or_disasm_and_command): Update.
7923 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7924 (tui_redisplay_readline, tui_mld_flush)
7925 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7926 (tui_getc): Update.
7927 * tui/tui-disasm.c (tui_set_disassem_content)
7928 (tui_disasm_window::do_scroll_vertical): Update.
7929 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7930 Now virtual.
7931 (struct tui_win_info): Derive from tui_gen_win_info.
7932 <~tui_win_info>: Mark as override.
7933 <generic>: Remove member.
7934 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7935 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7936 (~tui_data_window, ~tui_win_info)
7937 (tui_free_all_source_wins_content): Update.
7938 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7939
7940 2019-06-25 Tom Tromey <tom@tromey.com>
7941
7942 * tui/tui-layout.c (init_and_make_win): Use new.
7943 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7944 destructor, initializers.
7945 (tui_alloc_generic_win_info): Don't declare.
7946 * tui/tui-data.c (_locator): Add argument to constructor.
7947 (source_win, disasm_win): New globals.
7948 (exec_info): Remove.
7949 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7950 Update.
7951 (tui_alloc_generic_win_info): Remove.
7952 (init_content_element): Use new.
7953 (tui_win_info::tui_win_info): Update.
7954 (free_content_elements) <case DATA_WIN>: Use delete.
7955
7956 2019-06-25 Tom Tromey <tom@tromey.com>
7957
7958 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7959 * tui/tui-windata.c (tui_first_data_item_displayed)
7960 (tui_delete_data_content_windows): Update.
7961 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7962 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7963 (tui_display_registers_from, tui_check_register_values): Update.
7964 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7965 pointer.
7966 * tui/tui-data.c (init_content_element): Update. Allocate the new
7967 window.
7968 (tui_free_data_content): Update.
7969 (free_content_elements) <case DATA_WIN>: Free the window.
7970
7971 2019-06-25 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7974 Update.
7975 * tui/tui-layout.c (make_command_window)
7976 (show_source_disasm_command, show_data, init_and_make_win)
7977 (show_source_or_disasm_and_command): Update.
7978 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7979 method.
7980 <can_highight, is_highlighted>: Now bool.
7981 (tui_set_win_highlight): Don't declare.
7982 * tui/tui-data.c (tui_set_win_highlight): Remove.
7983
7984 2019-06-25 Tom Tromey <tom@tromey.com>
7985
7986 * tui/tui-wingeneral.c (make_visible): Remove check of window
7987 type.
7988
7989 2019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-win.c (tui_win_info::max_height)
7992 (tui_cmd_window::max_height): New methods.
7993 (new_height_ok): Call max_height.
7994 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7995 <max_height>: New method.
7996
7997 2019-06-25 Tom Tromey <tom@tromey.com>
7998
7999 * tui/tui-win.c (tui_source_window_base::set_new_height)
8000 (tui_data_window::set_new_height): New methods.
8001 (make_invisible_and_set_new_height): Call set_new_height method.
8002 * tui/tui-data.h (struct tui_win_info)
8003 (struct tui_source_window_base, struct tui_data_window)
8004 <set_new_height>: New method.
8005
8006 2019-06-25 Tom Tromey <tom@tromey.com>
8007
8008 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8009 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8010 tui_refresh_data_win.
8011 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8012 method.
8013 (tui_refresh_all_win): Call the refresh_all method.
8014 (tui_set_focus): Likewise.
8015 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8016 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8017 Likewise.
8018
8019 2019-06-25 Tom Tromey <tom@tromey.com>
8020
8021 * tui/tui-winsource.h (tui_refill_source_window)
8022 (tui_set_is_exec_point_at): Don't declare.
8023 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8024 (tui_source_window_base::refill): Rename from
8025 tui_refill_source_window.
8026 (tui_source_window_base::do_scroll_horizontal): Update.
8027 (tui_source_window_base::set_is_exec_point_at): Rename from
8028 tui_set_is_exec_point_at.
8029 (tui_update_all_breakpoint_info): Update.
8030 * tui/tui-stack.c (tui_show_frame_info): Update.
8031 * tui/tui-layout.c (show_data): Add cast.
8032 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8033 * tui/tui-data.h (struct tui_source_window_base) <refill,
8034 set_is_exec_point_at>: New methods.
8035 (tui_source_windows, tui_add_to_source_windows): Update types.
8036 (tui_add_to_source_windows): Remove redundant declaration.
8037 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8038 (tui_source_windows): Change return type.
8039 (tui_clear_source_windows_detail): Update.
8040 (tui_add_to_source_windows): Change type of parameter.
8041 (tui_free_all_source_wins_content): Update.
8042
8043 2019-06-25 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-wingeneral.c (tui_win_info::refresh)
8046 (tui_source_window_base::refresh): New methods.
8047 (tui_refresh_all): Call the refresh method.
8048 * tui/tui-data.h (struct tui_win_info)
8049 (struct tui_source_window_base) <refresh>: New method.
8050
8051 2019-06-25 Tom Tromey <tom@tromey.com>
8052
8053 * tui/tui.h (tui_is_window_visible): Return bool.
8054 * tui/tui.c (tui_is_window_visible): Return bool.
8055 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8056 (tui_make_visible, tui_make_invisible)
8057 (tui_win_info::make_visible)
8058 (tui_source_window_base::make_visible, make_all_visible)
8059 (tui_make_all_visible, tui_make_all_invisible): Update.
8060 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8061 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8062 bool.
8063 (struct tui_win_info, struct tui_source_window_base)
8064 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8065 * tui/tui-data.c (tui_init_generic_part): Update.
8066
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8070 (tui_source_window_base::make_visible): New methods.
8071 (make_all_visible): Make method call.
8072 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8073 (struct tui_source_window_base, struct tui_cmd_window): Override
8074 make_visible.
8075 (tui_win_is_source_type): Don't declare.
8076 * tui/tui-data.c (tui_win_is_source_type): Remove.
8077
8078 2019-06-25 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8081 NULL check.
8082
8083 2019-06-25 Tom Tromey <tom@tromey.com>
8084
8085 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8086 Inline constructor. Add initializers for members.
8087 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8088 constructors; now inline in class.
8089
8090 2019-06-25 Tom Tromey <tom@tromey.com>
8091
8092 * tui/tui-regs.c (tui_show_registers): Update.
8093 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8094 bool.
8095 * tui/tui-data.c (tui_data_window::clear_detail)
8096 (tui_data_window): Update.
8097
8098 2019-06-25 Tom Tromey <tom@tromey.com>
8099
8100 * tui/tui-windata.c (tui_display_all_data)
8101 (tui_display_data_from_line, tui_display_data_from)
8102 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8103 Update.
8104 * tui/tui-regs.c (tui_last_regs_line_no)
8105 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8106 (tui_show_registers, tui_show_register_group)
8107 (tui_display_registers_from, tui_display_reg_element_at_line)
8108 (tui_display_registers_from_line, tui_check_register_values)
8109 (tui_reg_next, tui_reg_prev): Update.
8110 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8111 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8112 tui_data_window.
8113 (struct tui_win_info) <detail>: Remove. Add new fields from
8114 tui_data_info.
8115 (TUI_DATA_WIN): Add cast.
8116 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8117 (~tui_data_window): Simplify.
8118
8119 2019-06-25 Tom Tromey <tom@tromey.com>
8120
8121 * tui/tui-layout.c (show_source_disasm_command)
8122 (show_source_or_disasm_and_command): Update.
8123 * tui/tui-io.c (update_cmdwin_start_line)
8124 (tui_redisplay_readline): Update.
8125 * tui/tui-data.h (struct tui_command_info): Remove.
8126 (struct tui_win_info) <detail>: Remove command_info member.
8127 (struct tui_data_window) <start_line>: New member, from
8128 tui_command_info.
8129 (TUI_CMD_WIN): Add casts.
8130
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui-winsource.c (tui_update_source_window)
8134 (tui_refill_source_window)
8135 (tui_source_window_base::do_scroll_horizontal)
8136 (tui_update_breakpoint_info, tui_set_exec_info_content)
8137 (tui_show_exec_info_content, tui_erase_exec_info_content)
8138 (tui_clear_exec_info_content): Update.
8139 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8140 Update.
8141 * tui/tui-win.c (make_invisible_and_set_new_height)
8142 (make_visible_with_new_height): Update.
8143 * tui/tui-source.c (tui_set_source_content)
8144 (tui_show_symtab_source): Update.
8145 * tui/tui-layout.c (extract_display_start_addr)
8146 (show_source_disasm_command, show_data)
8147 (make_source_or_disasm_window)
8148 (show_source_or_disasm_and_command): Update.
8149 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8150 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8151 "gdbarch".
8152 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8153 to tui_source_window_base.
8154 (struct tui_win_info) <detail>: Remove source_info member.
8155 (struct tui_source_window_base) <has_locator>: Inline.
8156 Move contents from tui_source_info; rename has_locator member to
8157 m_has_locator.
8158 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8159 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8160 header file.
8161 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8162 Simplify.
8163 (tui_free_all_source_wins_content): Cast to
8164 tui_source_window_base.
8165
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8167
8168 * tui/tui-win.c (make_invisible_and_set_new_height)
8169 (make_visible_with_new_height): Call has_locator method.
8170 * tui/tui-layout.c (show_source_disasm_command, show_data)
8171 (show_source_or_disasm_and_command): Update for bool change.
8172 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8173 (tui_win_info) <has_locator>: New method.
8174 (struct tui_source_window_base) <has_locator>: New method.
8175 (tui_win_has_locator): Don't declare.
8176 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8177 from tui_win_has_locator.
8178 (tui_source_window_base): Use false, not FALSE.
8179
8180 2019-06-25 Tom Tromey <tom@tromey.com>
8181
8182 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8183 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8184 clear_detail method directly.
8185 (tui_clear_win_detail): Remove.
8186
8187 2019-06-25 Tom Tromey <tom@tromey.com>
8188
8189 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8190 "this", not TUI_DISASM_WIN.
8191
8192 2019-06-25 Tom Tromey <tom@tromey.com>
8193
8194 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8195 declare.
8196 * tui/tui-winsource.c
8197 (tui_source_window_base::do_scroll_horizontal): Rename from
8198 tui_horizontal_source_scroll.
8199 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8200 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8201 from tui_vertical_data_scroll.
8202 * tui/tui-win.h (tui_scroll): Don't declare.
8203 * tui/tui-win.c (tui_win_info::forward_scroll)
8204 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8205 (tui_win_info::right_scroll): Rename and update.
8206 (tui_scroll_forward_command, tui_scroll_backward_command)
8207 (tui_scroll_left_command, tui_scroll_right_command): Update.
8208 (tui_scroll): Remove.
8209 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8210 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8211 from tui_vertical_source_scroll.
8212 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8213 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8214 from tui_vertical_disassem_scroll.
8215 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8216 do_scroll_horizontal>: New methods.
8217 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8218 Likewise.
8219 (struct tui_source_window_base): Add do_scroll_horizontal.
8220 (struct tui_source_window, struct tui_disasm_window): Add
8221 do_scroll_vertical.
8222 (struct tui_data_window, struct tui_cmd_window): Add
8223 do_scroll_horizontal and do_scroll_vertical.
8224 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8225
8226 2019-06-25 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-data.h (struct tui_source_window_base): New struct.
8229 (struct tui_source_window): Derive from tui_source_window_base.
8230 (struct tui_disasm_window): New struct.
8231 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8232 from tui_source_window::clear_detail.
8233 (tui_source_window_base): Rename from tui_source_window.
8234 (~tui_source_window_base): Rename from ~tui_source_window.
8235 (tui_alloc_win_info): Create a tui_disasm_window.
8236
8237 2019-06-25 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-data.h (struct tui_source_window)
8240 (struct tui_data_window): Declare destructors.
8241 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8242 destructors.
8243 (tui_win_info): Simplify.
8244
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8246
8247 * tui/tui-winsource.c (tui_display_main)
8248 (tui_update_source_windows_with_addr)
8249 (tui_update_all_breakpoint_info): Update.
8250 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8251 (new_height_ok, parse_scrolling_args): Update.
8252 * tui/tui-stack.c (tui_show_frame_info): Update.
8253 * tui/tui-data.h (struct tui_list): Remove.
8254 (tui_source_windows): Return a reference to a std::vector.
8255 * tui/tui-data.c (source_windows): Now a std::vector.
8256 (tui_source_windows): Change return type.
8257 (tui_clear_source_windows): Rewrite.
8258 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8259 (tui_free_all_source_wins_content): Rewrite.
8260
8261 2019-06-25 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8264 (struct tui_data_window, struct tui_cmd_window): Declare
8265 clear_detail method.
8266 * tui/tui-data.c (tui_source_window::clear_detail)
8267 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8268 methods.
8269 (tui_clear_win_detail): Simplify.
8270
8271 2019-06-25 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-layout.c (make_source_window, make_disasm_window)
8274 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8275 Return the new window.
8276 (show_source_disasm_command, show_data)
8277 (show_source_or_disasm_and_command): Update.
8278
8279 2019-06-25 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8282 parameter. Return the new window.
8283 (show_source_disasm_command): Update and remove NULL check.
8284 (show_source_or_disasm_and_command): Update.
8285
8286 2019-06-25 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8289
8290 2019-06-25 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-data.h (struct tui_win_info): Make constructor
8293 protected. Make destructor virtual. Add initializers.
8294 (tui_source_window, tui_data_window, tui_cmd_window): New
8295 classes.
8296 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8297 constructor. Add "type" parameter.
8298 (tui_source_window, tui_data_window, tui_cmd_window): New
8299 constructors.
8300 (tui_alloc_win_info): Instantiate the appropriate subclass.
8301
8302 2019-06-25 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-win.c (tui_resize_all): Use delete.
8305 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8306 destructor.
8307 (tui_free_window): Don't declare.
8308 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8309 Update.
8310
8311 2019-06-25 Tom Tromey <tom@tromey.com>
8312
8313 * tui/tui-data.h (struct tui_win_info): Add constructor.
8314 * tui/tui-data.c (tui_alloc_win_info): Use new.
8315 (tui_free_window): Use delete.
8316
8317 2019-06-22 Tom Tromey <tom@tromey.com>
8318
8319 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8320 declare.
8321 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8322
8323 2019-06-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8326 declare.
8327 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8328
8329 2019-06-22 Tom de Vries <tdevries@suse.de>
8330
8331 * dwarf2read.c (create_addrmap_from_aranges)
8332 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8333 instead of '%zu'.
8334
8335 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8336
8337 * dwarf2read.h (dwarf2_section_info_def): Remove.
8338 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8339 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8340 std::vector<dwarf2_section_info>.
8341 (struct dwo_file) <~dwo_file>: Remove.
8342 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8343 types field.
8344 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8345 (dwarf2_read_debug_names): Likewise.
8346 (create_debug_types_hash_table): Change parameter type to
8347 array_view, adjust code accordingly.
8348 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8349 (partial_die_info::fixup): Likewise.
8350 (determine_prefix): Likewise.
8351 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8352
8353 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8354
8355 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8356 gdb_bfd_ref_ptr.
8357 <~dwo_file>: Remove call to gdb_bfd_unref.
8358 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8359 gdb_bfd_ref_ptr::get.
8360
8361 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8362
8363 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8364 type to htab_up.
8365 * dwarf2read.c (struct dwo_file): Initialize fields.
8366 <~dwo_file>: New.
8367 (free_dwo_file): Remove, move content to ~dwo_file.
8368 (struct dwo_file_deleter): Remove.
8369 (dwo_file_up>: Remove custom deleter.
8370 (free_dwo_files): Remove.
8371 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8372 dwo_files.
8373 (process_skeletonless_type_units): Call unique_ptr::get.
8374 (allocate_dwo_file_hash_table): Add deleter to created hash
8375 table. Change return type to htab_up.
8376 (lookup_dwo_file_slot): Don't memset dwo_file, call
8377 unique_ptr::get.
8378 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8379 (create_dwo_unit_in_dwp_v2): Likewise.
8380 (open_and_init_dwo_file): Likewise.
8381 (free_dwo_file_from_slot): Remove.
8382
8383 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8384
8385 * dwarf2read.h (struct dwarf2_section_info) <readin,
8386 is_virtual>: Change type to bool.
8387 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8388 true instead of 1.
8389
8390 2019-06-19 Tom Tromey <tom@tromey.com>
8391
8392 * tui/tui-data.h (tui_init_content_element): Don't declare.
8393
8394 2019-06-19 Tom Tromey <tom@tromey.com>
8395
8396 * tui/tui-data.h (tui_init_win_info): Don't declare.
8397
8398 2019-06-19 Tom de Vries <tdevries@suse.de>
8399
8400 * dwarf2read.h (abstract_to_concrete): Change type to
8401 std::unordered_map<sect_offset, std::vector<sect_offset>,
8402 gdb::hash_enum<sect_offset>>.
8403
8404 2019-06-19 Tom Tromey <tromey@adacore.com>
8405
8406 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8407 EVAL_AVOID_SIDE_EFFECTS specially.
8408
8409 2019-06-19 Tom Tromey <tromey@adacore.com>
8410
8411 * source-cache.c (highlighter): New global.
8412 (source_cache::get_source_lines): Create a highlighter on demand.
8413
8414 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8415
8416 * defs.h (deprecated_interactive_hook): Delete declaration.
8417 * interps.c (clear_interpreter_hooks): Remove use of
8418 deprecated_interactive_hook.
8419 * top.c (deprecated_interactive_hook): Delete definition.
8420 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8421
8422 2019-06-18 Tom de Vries <tdevries@suse.de>
8423
8424 PR gdb/24515
8425 * dwarf2read.h (abstract_to_concrete): Change type from
8426 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8427 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8428 * dwarf2read.c (read_variable): Update.
8429 (dwarf2_fetch_die_loc_sect_off): Update.
8430
8431 2019-06-17 Tom de Vries <tdevries@suse.de>
8432
8433 PR gdb/24617
8434 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8435 accessing parent[parent_len - 1].
8436
8437 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8438
8439 PR gdb/24364
8440 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8441 call dtrace_process_dof with NULL dof.
8442
8443 2019-06-16 Tom de Vries <tdevries@suse.de>
8444
8445 PR gdb/24445
8446 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8447
8448 2019-06-16 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8451 (make_all_visible): Use address of member.
8452
8453 2019-06-16 Tom Tromey <tom@tromey.com>
8454
8455 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8456 (tui_free_window, free_content, free_content_elements): Remove
8457 unnecessary cast.
8458 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8459 cast.
8460 * tui/tui-regs.c (tui_show_register_group)
8461 (tui_display_registers_from, tui_display_reg_element_at_line):
8462 Remove unnecessary cast.
8463
8464 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8465
8466 * linux-nat.c (normal_mask): Delete.
8467 (_initialize_linux_nat): Don't initialise normal_mask.
8468
8469 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8470
8471 PR gdb/24445
8472 * dwarf-index-write.h (write_psymtabs_to_index): Add
8473 dwz_basename parameter.
8474 * dwarf-index-write.c (write_gdbindex): Move file writing to
8475 write_gdbindex_1. Change return type void.
8476 (assert_file_size): Move up, remove filename parameter.
8477 (write_gdbindex_1): New function.
8478 (write_debug_names): Change return type to void, call
8479 assert_file_size.
8480 (struct index_wip_file): New struct.
8481 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8482 file logic to index_wip_file. Write index for dwz file if
8483 needed.
8484 (save_gdb_index_command): Pass basename of dwz file, if present.
8485 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8486 build-id of dwz file, if present.
8487 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8488 (dwarf2_get_dwz_file): Likewise.
8489 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8490 (dwarf2_get_dwz_file): Likewise.
8491
8492 2019-06-16 Tom Tromey <tom@tromey.com>
8493
8494 * coffread.c (process_coff_symbol): Use xstrdup.
8495 * value.c (create_internalvar): Use xstrdup.
8496
8497 2019-06-16 Tom Tromey <tom@tromey.com>
8498
8499 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8500 * breakpoint.c (stopin_command, stopat_command)
8501 (until_break_command, decode_location_default): Remove unnecessary
8502 cast.
8503 * utils.c (subset_compare): Remove unnecessary cast.
8504 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8505 cast.
8506 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8507 cast.
8508 * infcmd.c (path_command): Remove unnecessary cast.
8509 * coffread.c (decode_type): Remove unnecessary cast.
8510 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8511 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8512 * tui/tui-stack.c (tui_show_locator_content)
8513 (tui_show_frame_info): Remove unnecessary cast.
8514 * tui/tui-win.c (tui_scroll_forward_command)
8515 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8516 (parse_scrolling_args): Remove unnecessary cast.
8517 * tui/tui-data.c (init_win_info, tui_del_window)
8518 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8519 (free_content_elements): Remove unnecessary cast.
8520 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8521 unnecessary cast.
8522 * tui/tui-source.c (tui_set_source_content)
8523 (tui_vertical_source_scroll): Remove unnecessary cast.
8524 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8525 cast.
8526 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8527 * tui/tui-regs.c (tui_display_registers_from)
8528 (tui_display_register): Remove unnecessary cast.
8529 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8530 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8531 (make_visible): Remove unnecessary cast.
8532 * tui/tui-winsource.c (tui_erase_source_content)
8533 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8534 unnecessary cast.
8535 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8536 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8537 * stabsread.c (read_type, read_array_type, read_range_type):
8538 Remove unnecessary cast.
8539 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8540 (parse_symbol, parse_type, upgrade_type, parse_external)
8541 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8542 unnecessary cast.
8543 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8544
8545 2019-06-16 Tom Tromey <tom@tromey.com>
8546
8547 * tui/tui-data.c (tui_alloc_generic_win_info)
8548 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8549 checks.
8550
8551 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8552 Andrew Burgess <andrew.burgess@embecosm.com>
8553
8554 * f-typeprint.c (f_print_type): Don't return early for not
8555 associated or not allocated types.
8556 (f_type_print_varspec_suffix): Add print_rank parameter and print
8557 ranks of array types in case they dangling.
8558 (f_type_print_base): Add print_rank parameter.
8559
8560 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * NEWS: Mention new MI commands.
8563 * break-catch-throw.c (enum exception_event_kind): Move to
8564 breakpoint.h.
8565 (print_mention_exception_catchpoint): Output text as a single
8566 message.
8567 (catch_exception_command_1): Rename to...
8568 (catch_exception_event): ...this, make non-static, update header
8569 command, and change some parameter types.
8570 (catch_catch_command): Update for changes to
8571 catch_exception_command_1.
8572 (catch_throw_command): Likewise.
8573 (catch_rethrow_command): Likewise.
8574 * breakpoint.c (enum exception_event_kind): Delete.
8575 * breakpoint.h (enum exception_event_kind): Moved here from
8576 break-catch-throw.c.
8577 (catch_exception_event): Declare.
8578 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8579 (mi_cmd_catch_throw): New function.
8580 (mi_cmd_catch_rethrow): New function.
8581 (mi_cmd_catch_catch): New function.
8582 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8583 'catch-catch' entries.
8584 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8585 (mi_cmd_catch_rethrow): Declare.
8586 (mi_cmd_catch_catch): Declare.
8587
8588 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8589
8590 * annotate.c (annotate_source_line): Change return type to void,
8591 update implementation to match.
8592 * annotate.h (annotate_source_line): Change return type to void,
8593 update header comment.
8594 * stack.c (print_frame_info): Don't change what frame information
8595 is printed based on whether annotations are on or not.
8596
8597 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8600 (annotate_source): Make static.
8601 (annotate_source_line): Moved from source.c and renamed from
8602 identify_source_line. Update the return type.
8603 * annotate.h (annotate_source): Delete declaration.
8604 (annotate_source_line): Declaration moved from source.h, and
8605 renamed from identify_source_line. Return type updated.
8606 * source.c (identify_source_line): Moved to annotate.c and renamed
8607 to annotate_source_line.
8608 (info_line_command): Remove check of annotation_level.
8609 * source.h (identify_source_line): Move declaration to annotate.h
8610 and rename to annotate_source_line.
8611 * stack.c: Add 'annotate.h' include.
8612 (print_frame_info): Remove check of annotation_level before
8613 calling annotate_source_line.
8614
8615 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8616
8617 * source-cache.c (source_cache::get_plain_source_lines): Use
8618 open_source_file_with_line_charpos instead of just
8619 open_source_file, remove call to find_source_lines.
8620 (source_cache::get_source_lines): Likewise.
8621 * source.c (find_source_lines): Make static.
8622 (get_filename_and_charpos): Renamed into...
8623 (open_source_file_with_line_charpos): ..this along with changes to
8624 return a scoped_fd, and some other minor clean ups.
8625 (identify_source_line): Use open_source_file_with_line_charpos.
8626 (search_command_helper): Use open_source_file_with_line_charpos
8627 instead of just open_source_file, remove call to
8628 find_source_lines.
8629 * source.h (open_source_file_with_line_charpos): Declare new
8630 function.
8631 (find_source_lines): Delete declaration.
8632
8633 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * source.c (get_filename_and_charpos): Remove fullname
8636 parameter.
8637 (identify_source_line): Update call to get_filename_and_charpos.
8638
8639 2019-06-14 Tom Tromey <tromey@adacore.com>
8640
8641 PR gdb/24502:
8642 * ui-style.h (skip_ansi_escape): Update comment.
8643 * ui-file.h (class no_terminal_escape_file): New class.
8644 * ui-file.c (no_terminal_escape_file::write)
8645 (no_terminal_escape_file::puts): New methods.
8646 * cli/cli-logging.c (handle_redirections): Use
8647 no_terminal_escape_file.
8648
8649 2019-06-14 Tom Tromey <tromey@adacore.com>
8650
8651 * NEWS: Move convenience variable news above Python news.
8652
8653 2019-06-14 Tom Tromey <tom@tromey.com>
8654
8655 * gnulib: Move directory to top-level.
8656 * configure.ac: Don't configure gnulib.
8657 * configure: Rebuild.
8658 * common/common-defs.h: Use new path to gnulib.
8659 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8660 (GNULIB_H): Remove.
8661 (INCGNU): Look in new gnulib location.
8662 (HFILES_NO_SRCDIR): Remove gnulib files.
8663 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8664 (generated_files): Remove GNULIB_H.
8665 ($(LIBGNU), all-lib): Remove targets.
8666 (distclean): Don't mention GNULIB_BUILDDIR.
8667 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8668
8669 2019-06-14 Tom Tromey <tromey@adacore.com>
8670
8671 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8672 Warn if symbol file does not provide any symbols.
8673
8674 2019-06-14 Tom Tromey <tromey@adacore.com>
8675
8676 * source.c (find_and_open_source): Respect basenames_may_differ.
8677
8678 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8679
8680 * annotate.c (annotate_breakpoints_invalid): Make use of
8681 scoped_restore_terminal_state.
8682 (annotate_frames_invalid): Likewise.
8683
8684 2019-06-14 Tom Tromey <tromey@adacore.com>
8685
8686 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8687 allow assignment to an internalvar.
8688
8689 2019-06-14 Tom Tromey <tromey@adacore.com>
8690
8691 * ada-lex.l: Allow "_" in attribute names.
8692
8693 2019-06-14 Tom Tromey <tromey@adacore.com>
8694
8695 PR gdb/24653:
8696 * regcache.c (registers_changed): Don't call alloca.
8697 * top.c (execute_command): Don't call alloca.
8698
8699 2019-06-13 Pedro Alves <palves@redhat.com>
8700
8701 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8702 'expression'. When parsing an expression, error out if there's
8703 junk after "unlimited".
8704 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8705 (do_set_command): Adjust calls to is_unlimited_literal.
8706
8707 2019-06-13 Pedro Alves <palves@redhat.com>
8708
8709 * compile/compile.c (make_compile_options_def_group): Add braces
8710 around array_view initializer.
8711 * thread.c (make_thread_apply_all_options_def_group)
8712 (make_thread_apply_all_options_def_group): Likewise.
8713
8714 2019-06-13 Pedro Alves <palves@redhat.com>
8715
8716 * NEWS (New commands): Mention "maint test-options
8717 require-delimiter", "maint test-options unknown-is-error", "maint
8718 test-options unknown-is-operand" and "maint show
8719 test-options-completion-result".
8720 (New command options, command completion): New section.
8721 (Completion improvements): New section.
8722 Mention that you can abbreviate "unlimited".
8723
8724 2019-06-13 Pedro Alves <palves@redhat.com>
8725
8726 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8727 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8728 * unittests/cli-utils-selftests.c (test_parse_flags)
8729 (test_parse_flags_qcs): Delete.
8730 (test_cli_utils): Don't call deleted functions.
8731
8732 2019-06-13 Pedro Alves <palves@redhat.com>
8733
8734 * thread.c: Include "cli/cli-option.h".
8735 (tp_array_compar_ascending): Global.
8736 (tp_array_compar): Delete function.
8737 (tp_array_compar_ascending, tp_array_compar_descending): New
8738 functions.
8739 (ascending_option_def, qcs_flag_option_def)
8740 (thr_qcs_flags_option_defs)
8741 (make_thread_apply_all_options_def_group)
8742 (make_thread_apply_options_def_group): New.
8743 (thread_apply_all_command): Use gdb::option::process_options.
8744 (thread_apply_command_completer)
8745 (thread_apply_all_command_completer): New.
8746 (thread_apply_command): Use gdb::option::process_options.
8747 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8748 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8749 to generate help text of "thread apply". Adjust "taas"'s help.
8750 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8751 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8752
8753 2019-06-13 Pedro Alves <palves@redhat.com>
8754
8755 * thread.c (thread_apply_command): Check for invalid TID with
8756 isdigit instead of !isalpha.
8757
8758 2019-06-13 Pedro Alves <palves@redhat.com>
8759
8760 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8761 (validate_flags_qcs): New.
8762 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8763 (validate_flags_qcs): Declare.
8764 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8765 (make_frame_apply_options_def_group): New.
8766 (frame_apply_command_count): Process options with
8767 gdb::option::process_options.
8768 (frame_apply_completer): New.
8769 (frame_apply_level_completer, frame_apply_all_completer)
8770 (frame_apply_completer): New.
8771 (_initialize_stack): Update help of "frame apply", "frame apply
8772 level", "frame apply all" and "faas" to mention supported options
8773 and install command completers.
8774 * stack.h (frame_apply_all_completer): Declare.
8775 * thread.c: Include "stack.h".
8776 (tfaas_command): Add "--".
8777 (_initialize_thread): Update help "tfaas" to mention supported
8778 options and install command completer.
8779
8780 2019-06-13 Pedro Alves <palves@redhat.com>
8781
8782 * completer.c (complete_nested_command_line): New.
8783 (gdb_completion_word_break_characters_throw): Add assertion.
8784 * completer.h (complete_nested_command_line): Declare.
8785
8786 2019-06-13 Pedro Alves <palves@redhat.com>
8787
8788 * stack.c (parse_backtrace_qualifiers): New.
8789 (backtrace_command): Use it.
8790 (backtrace_command_completer): Complete on qualifiers.
8791
8792 2019-06-13 Pedro Alves <palves@redhat.com>
8793
8794 * frame.c: Include "cli/cli-option.h.
8795 (user_set_backtrace_options): New.
8796 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8797 Delete.
8798 (get_prev_frame): Adjust.
8799 (boolean_option_def, uinteger_option_def)
8800 (set_backtrace_option_defs): New.
8801 (_initialize_frame): Adjust and use
8802 gdb::option::add_setshow_cmds_for_options to install "set
8803 backtrace past-main" and "set backtrace past-entry".
8804 * frame.h: Include "cli/cli-option.h".
8805 (struct frame_print_options): Forward declare.
8806 (print_frame_arguments_all, print_frame_arguments_scalars)
8807 (print_frame_arguments_none): Declare.
8808 (print_entry_values): Delete declaration.
8809 (struct frame_print_options, user_frame_print_options): New.
8810 (struct set_backtrace_options): New.
8811 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8812 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8813 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8814 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8815 (list_args_or_locals): Add frame_print_options parameter.
8816 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8817 * python/py-framefilter.c (enumerate_args): Pass down
8818 USER_FRAME_PRINT_OPTIONS.
8819 * stack.c: Include "cli/cli-option.h".
8820 (print_frame_arguments_all, print_frame_arguments_scalars)
8821 (print_frame_arguments_none): Declare.
8822 (print_raw_frame_arguments, print_entry_values): Delete.
8823 (user_frame_print_options): New.
8824 (boolean_option_def, enum_option_def, frame_print_option_defs):
8825 New.
8826 (struct backtrace_cmd_options): New.
8827 (bt_flag_option_def): New.
8828 (backtrace_command_option_defs): New.
8829 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8830 (print_frame_arg, read_frame_arg, print_frame_args)
8831 (print_frame_info, print_frame): Add frame_print_options parameter
8832 and use it.
8833 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8834 (backtrace_command_1): Add frame_print_options and
8835 backtrace_cmd_options parameters and use them.
8836 (make_backtrace_options_def_group): New.
8837 (backtrace_command): Process command options with
8838 gdb::option::process_options.
8839 (backtrace_command_completer): New.
8840 (_initialize_stack): Extend "backtrace"'s help to mention
8841 supported options. Install completer for "backtrace".
8842 Install some settings commands with add_setshow_cmds_for_options.
8843
8844 2019-06-13 Pedro Alves <palves@redhat.com>
8845
8846 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8847 and that "set/show print raw frame-arguments" are now deprecated.
8848
8849 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8850 command.
8851 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8852 * stack.c (_initialize_stack): Install "set/show print
8853 raw-frame-arguments", and deprecate "set/show print raw
8854 frame-arguments".
8855 * valprint.c (_initialize_valprint): Deprecate "set/show print
8856 raw".
8857
8858 2019-06-13 Pedro Alves <palves@redhat.com>
8859
8860 * compile/compile.c (struct compile_options): New.
8861 (compile_flag_option_def, compile_command_option_defs)
8862 (make_compile_options_def_group): New.
8863 (compile_file_command): Handle options with
8864 gdb::option::process_options.
8865 (compile_file_command_completer): New function.
8866 (compile_code_command): Handle options with
8867 gdb::option::process_options.
8868 (compile_code_command_completer): New function.
8869 (_initialize_compiler): Install completers for "compile code" and
8870 "compile file". Mention available options in "compile code" and
8871 "compile code"'s help.
8872 * completer.c (advance_to_completion_word): New, factored out from
8873 ...
8874 (advance_to_expression_complete_word_point): ... this.
8875 (advance_to_filename_complete_word_point): New.
8876 * completer.h (advance_to_filename_complete_word_point): New
8877 declaration.
8878
8879 2019-06-13 Pedro Alves <palves@redhat.com>
8880
8881 * compile/compile.c: Include "cli/cli-option.h".
8882 (compile_print_value): Scope data pointer is now a
8883 value_print_options pointer; adjust.
8884 (compile_print_command): Process options. Scope data pointer is
8885 now a value_print_options pointer; adjust.
8886 (_initialize_compile): Update "compile print"'s help to include
8887 supported options. Install a completer for "compile print".
8888 * cp-valprint.c (show_vtblprint, show_objectprint)
8889 (show_static_field_print): Delete.
8890 (_initialize_cp_valprint): Don't install "set print
8891 static-members", "set print vtbl", "set print object" here.
8892 * printcmd.c: Include "cli/cli-option.h" and
8893 "common/gdb_optional.h".
8894 (print_command_parse_format): Rework to fill in a
8895 value_print_options instead of a format_data.
8896 (print_value): Change parameter type from format_data pointer to
8897 value_print_options reference. Adjust.
8898 (print_command_1): Process options. Adjust to pass down a
8899 value_print_options.
8900 (print_command_completer): New.
8901 (_initialize_printcmd): Install print_command_completer as
8902 handle_brkchars completer for the "print" command. Update
8903 "print"'s help to include supported options.
8904 * valprint.c: Include "cli/cli-option.h".
8905 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8906 here from cp-valprint.c.
8907 (boolean_option_def, uinteger_option_def)
8908 (value_print_option_defs, make_value_print_options_def_group):
8909 New. Use gdb::option::add_setshow_cmds_for_options to install
8910 "set print elements", "set print null-stop", "set print repeats",
8911 "set print pretty", "set print union", "set print array", "set
8912 print address", "set print symbol", "set print array-indexes".
8913 * valprint.h: Include <string> and "cli/cli-option.h".
8914 (make_value_print_options_def_group): Declare.
8915 (print_value): Change parameter type from format_data pointer to
8916 value_print_options reference.
8917 (print_command_completer): Declare.
8918
8919 2019-06-13 Pedro Alves <palves@redhat.com>
8920
8921 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8922 (COMMON_SFILES): Add maint-test-settings.c.
8923 * cli/cli-decode.c (boolean_enums): New global, factored out from
8924 ...
8925 (add_setshow_boolean_cmd): ... here.
8926 * cli/cli-decode.h (boolean_enums): Declare.
8927 * cli/cli-option.c: New file.
8928 * cli/cli-option.h: New file.
8929 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8930 factored out from ...
8931 (parse_cli_boolean_value(const char *)): ... this.
8932 (is_unlimited_literal): Change parameter type to pointer to
8933 pointer. Adjust and advance ARG pointer.
8934 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8935 (parse_cli_var_enum): New, factored out from ...
8936 (do_set_command): ... this. Adjust.
8937 * cli/cli-setshow.h (parse_cli_boolean_value)
8938 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8939 (parse_cli_var_enum): Declare.
8940 * cli/cli-utils.c: Include "cli/cli-option.h".
8941 (get_ulongest): New.
8942 * cli/cli-utils.h (get_ulongest): Declare.
8943 (check_for_argument): New overloads.
8944 * maint-test-options.c: New file.
8945
8946 2019-06-13 Pedro Alves <palves@redhat.com>
8947
8948 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8949 parse a range if "-" is at the end of the string.
8950
8951 2019-06-13 Pedro Alves <palves@redhat.com>
8952
8953 * cli/cli-setshow.c (parse_auto_binary_operation)
8954 (parse_cli_boolean_value): Don't allow "o".
8955
8956 2019-06-13 Pedro Alves <palves@redhat.com>
8957
8958 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8959 * NEWS: Mention maint test-settings KIND.
8960 * maint-test-settings.c: New file.
8961
8962 2019-06-13 Pedro Alves <palves@redhat.com>
8963
8964 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8965 completer.
8966 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8967 "set" completers.
8968
8969 2019-06-13 Pedro Alves <palves@redhat.com>
8970
8971 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8972 after item.
8973
8974 2019-06-13 Pedro Alves <palves@redhat.com>
8975
8976 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8977
8978 2019-06-13 Pedro Alves <palves@redhat.com>
8979
8980 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8981 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8982 call.
8983 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8984 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8985 calls.
8986 (check_for_argument): Skip spaces after argument.
8987
8988 2019-06-13 Pedro Alves <palves@redhat.com>
8989
8990 * thread.c (thread_apply_command): Adjust TID parsing.
8991 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8992 detected before end of string.
8993 (tid_is_in_list): Error out if LIST is invalid.
8994
8995 2019-06-13 Pedro Alves <palves@redhat.com>
8996
8997 * completer.c (complete_line_internal_1): Rewind completion word
8998 point.
8999 (completion_tracker::advance_custom_word_point_by): Change
9000 parameter type to int.
9001 * completer.h (completion_tracker::advance_custom_word_point_by):
9002 Likewise.
9003
9004 2019-06-13 Pedro Alves <palves@redhat.com>
9005
9006 * completer.c (advance_to_completion_word): Handle delimiters.
9007
9008 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9009
9010 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9011
9012 2019-06-11 Tom Tromey <tom@tromey.com>
9013
9014 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9015 (xmalloc_failed): Move to alloc.c.
9016 * alloc.c: New file.
9017 * Makefile.in (COMMON_SFILES): Add alloc.c.
9018
9019 2019-06-11 Tom Tromey <tom@tromey.com>
9020
9021 * nat/linux-waitpid.c: Don't include server.h.
9022 (linux_debug): Remove.
9023 (my_waitpid): Update.
9024
9025 2019-06-11 Tom Tromey <tromey@adacore.com>
9026
9027 * infcall.c (_initialize_infcall): Remove trailing newline from
9028 help.
9029 * user-regs.c (_initialize_user_regs): Remove trailing newline
9030 from help.
9031 * typeprint.c (_initialize_typeprint): Remove trailing newline
9032 from help.
9033 * reverse.c (_initialize_reverse): Remove trailing newlines from
9034 help.
9035 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9036 from help.
9037 * language.c (add_set_language_command): Remove trailing newline
9038 from help.
9039 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9040 help.
9041 * disasm.c (_initialize_disasm): Remove trailing newline from
9042 help.
9043 * top.c (init_main): Remove trailing newline from help.
9044 * interps.c (_initialize_interpreter): Remove trailing newline
9045 from help.
9046 * btrace.c (_initialize_btrace): Remove trailing newlines from
9047 help.
9048 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9049 from help.
9050 * python/python.c (_initialize_python): Remove trailing newline
9051 from help.
9052 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9053 help.
9054 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9055 from help. Reformat some text.
9056 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9057 from help.
9058 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9059 newline from help.
9060
9061 2019-06-11 Tom Tromey <tromey@adacore.com>
9062
9063 * darwin-nat.c (darwin_decode_exception_message)
9064 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9065
9066 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9067
9068 * valops.c (value_slice): Check for not allocated or not
9069 associated values.
9070
9071 2019-06-10 Tom de Vries <tdevries@suse.de>
9072
9073 PR gdb/24618
9074 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9075 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9076 invalid.
9077
9078 2019-06-10 Tom de Vries <tdevries@suse.de>
9079
9080 PR gdb/24611
9081 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9082 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9083
9084 2019-06-10 Tom de Vries <tdevries@suse.de>
9085
9086 PR symtab/24545
9087 * symtab.c (struct demangled_name_entry): Add language field.
9088 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9089 static minimal symbol". Set and use language field.
9090
9091 2019-06-10 Tom Tromey <tromey@adacore.com>
9092
9093 * ada-lang.c (_initialize_ada_language): Update help text.
9094
9095 2019-06-10 Tom Tromey <tromey@adacore.com>
9096
9097 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9098 with a newline.
9099 * guile/guile.c (handle_boot_error): Don't end warning with a
9100 newline.
9101 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9102 warning with a newline.
9103 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9104 newline.
9105 (s12z_frame_cache): Likewise.
9106 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9107 a newline.
9108 * solib-svr4.c (disable_probes_interface): Don't end warning with
9109 a newline.
9110 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9111 newline.
9112 * python/python.c (do_finish_initialization): Don't end warning
9113 with a newline.
9114
9115 2019-06-10 Tom Tromey <tom@tromey.com>
9116
9117 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9118 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9119 gdbpy_enter.
9120
9121 2019-06-10 Tom Tromey <tromey@adacore.com>
9122
9123 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9124 data.
9125 (elf_new_init): Don't call stabsread_new_init.
9126 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9127 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9128 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9129
9130 2019-06-10 Tom de Vries <tdevries@suse.de>
9131
9132 PR symtab/16264
9133 PR symtab/24517
9134 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9135
9136 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9137
9138 * source.c (find_and_open_source): Also rewrite relative file
9139 names.
9140
9141 2019-04-26 Amos Bird <amosbird@gmail.com>
9142
9143 * annotate.c (annotate_thread_exited): Add "thread-exited"
9144 annotation.
9145
9146 2019-06-06 Tom Tromey <tromey@adacore.com>
9147
9148 * maint.h (class scoped_command_stats): Use
9149 DISABLE_COPY_AND_ASSIGN.
9150 <print_time>: New method.
9151 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9152 print_time.
9153 (scoped_command_stats::print_time): New method.
9154
9155 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9156
9157 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9158 instructions of lengths 6 or 8 bytes.
9159
9160 2019-06-04 Pedro Alves <palves@redhat.com>
9161
9162 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9163
9164 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9165 * breakpoint.c (condition_completer): Likewise.
9166 * cli/cli-dump.c (scan_expression): Likewise.
9167 * common/filestuff.c (mkdir_recursive): Likewise.
9168 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9169 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9170 (gdb_abspath): Likewise.
9171 * compile/compile-cplus-types.c
9172 (compile_cplus_instance::decl_name): Likewise.
9173 * completer.c (complete_explicit_location):
9174 (signal_completer, reg_or_group_completer_1): Likewise.
9175 * cp-support.c (cp_remove_params_if_any): Likewise.
9176 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9177 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9178 * infcmd.c (strip_bg_char): Likewise.
9179 * linespec.c (copy_token_string): Likewise.
9180 * mi/mi-main.c (output_cores): Likewise.
9181 * psymtab.c (psymtab_search_name):
9182 * symfile.c (test_set_ext_lang_command): Likewise.
9183 * target.c (target_fileio_read_stralloc): Likewise.
9184 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9185 * value.c (complete_internalvar): Likewise.
9186
9187 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9188
9189 Add objfile property to gdb.Type.
9190 * NEWS: Mention Python API addition.
9191 * python/py-type.c (typy_get_objfile): New method.
9192
9193 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9194
9195 * NEWS: Mention the new set|show style [title|highlight].
9196 Mention changes to "show style", "help" and "apropos".
9197
9198 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9199
9200 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9201 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9202 instead of print_help_for_command.
9203 (print_doc_of_command): New function.
9204 (help_list): Add 'apropos -v word' suggestion.
9205 (print_help_for_command): Style the command name using title style.
9206 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9207 (_initialize_cli_cmds): Describe -v in apropos_command help.
9208
9209 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9210
9211 * cli/cli-style.h (cli_style_option): Add name in constructor,
9212 add m_name class member, add constructor with intensity,
9213 add name class function.
9214 (cli_style_option::add_setshow_commands): Remove name argument.
9215 (highlight_style, title_style): New styles.
9216 * cli/cli-style.c (do_show): New function that shows a style
9217 characteristic styling the style name with itself.
9218 (set_style_name): New function.
9219 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9220 Update all callers according to the changes in cli/cli-style.h.
9221 * utils.h (fputs_highlighted): New function.
9222 * utils.c (fputs_highlighted): Likewise.
9223
9224 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9225
9226 * NEWS: Mention new pipe command and new convenience variables.
9227
9228 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9229
9230 * cli/cli-cmds.c (pipe_command): New function.
9231 (_initialize_cli_cmds): Call add_com for pipe_command.
9232 Define | as an alias for pipe.
9233 (exit_status_set_internal_vars): New function.
9234 (shell_escape): Call exit_status_set_internal_vars.
9235 cli/cli-decode.c (find_command_name_length): Recognize | as
9236 a single character command.
9237
9238 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9239
9240 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9241 top.c (execute_command_to_ui_file): New function, mostly a copy
9242 of execute_command_to_string.
9243 (execute_command_to_string): Implement by calling
9244 execute_command_to_ui_file.
9245
9246 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9247
9248 * top.h (saved_command_line): Remove declaration.
9249 * top.c (previous_saved_command_line, previous_repeat_arguments):
9250 New variables.
9251 (saved_command_line): Make static, define together with other
9252 'repeat variables'.
9253 (dont_repeat): Clear repeat_arguments.
9254 (repeat_previous, get_saved_command_line, save_command_line):
9255 New functions.
9256 (gdb_init): Initialize saved_command_line
9257 and previous_saved_command_line.
9258 * main.c (captured_main_1): Remove saved_command_line initialization.
9259 * event-top.c (handle_line_of_input): Update to use
9260 the new 'repeat' related functions instead of direct access to
9261 saved_command_line.
9262 * command.h (repeat_previous, get_saved_command_line,
9263 save_command_line): New declarations.
9264 (dont_repeat): Add comment.
9265
9266 2019-05-30 Tom Tromey <tromey@adacore.com>
9267
9268 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9269 Fix comment.
9270 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9271
9272 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9273
9274 PR cli/24587
9275 * completer.c (complete): Initialize variable word.
9276
9277 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9278
9279 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9280 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9281 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9282 'body' is NULL to the outter 'if', protecting the '!is_define'
9283 situation as well.
9284
9285 2019-05-29 Tom Tromey <tromey@adacore.com>
9286
9287 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9288 (dwarf_unknown): New function.
9289 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9290 (dwarf_type_encoding_name): Use dwarf_unknown.
9291
9292 2019-05-29 Tom Tromey <tromey@adacore.com>
9293
9294 PR c++/20020:
9295 * cp-valprint.c (cp_print_value_fields): Call
9296 cp_print_static_field inside "try".
9297
9298 2019-05-29 Tom Tromey <tromey@adacore.com>
9299
9300 * inflow.c (struct terminal_info): Add default operator=.
9301 * configure: Rebuild.
9302 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9303 -Wdeprecated-copy-dtor, -Wredundant-move.
9304
9305 2019-05-29 Tom Tromey <tromey@adacore.com>
9306
9307 * NEWS: Add entry.
9308 * infcmd.c (print_return_value_1): Handle finish_print
9309 option.
9310 (show_print_finish): New function.
9311 (_initialize_infcmd): Add "set/show print finish" commands.
9312 * valprint.c (user_print_options): Initialize new member.
9313 * valprint.h (struct value_print_options) <finish_print>: New
9314 member.
9315
9316 2019-05-28 Tom Tromey <tromey@adacore.com>
9317
9318 * ada-lang.c (ada_remove_Xbn_suffix)
9319 (find_old_style_renaming_symbol)
9320 (parse_old_style_renaming): Remove.
9321 (ada_find_renaming_symbol): Don't call
9322 find_old_style_renaming_symbol.
9323 (ada_is_renaming_symbol): Rename from
9324 ada_find_renaming_symbol. Remove "block" parameter. Return
9325 bool. Now static.
9326 (ada_read_var_value): Update and simplify.
9327 * ada-exp.y (write_var_or_type): Remove old code.
9328
9329 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9330
9331 PR gdb/25010
9332 * event-top.c: Remove include comment.
9333 * inflow.c (class scoped_ignore_sigttou): Move from here...
9334 * inflow.h (class scoped_ignore_sigttou): ...to here.
9335 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9336 * top.c: Remove include comment.
9337
9338 2019-05-27 Tom Tromey <tom@tromey.com>
9339
9340 * NEWS: Fix typo.
9341
9342 2019-05-22 Tom Tromey <tromey@adacore.com>
9343
9344 * target.c (target_follow_exec): Constify parameter.
9345 * target-delegates.c: Rebuild.
9346 * remote.c (remote_target::follow_exec): Constify parameter.
9347 * infrun.c (follow_exec): Constify parameter.
9348 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9349 (target_follow_exec): Likewise.
9350
9351 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9352
9353 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9354 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9355
9356 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9357
9358 * NEWS: Add debugredirect and testsuite sections.
9359
9360 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9361
9362 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9363 target descriptions using exclusively floating point register name
9364 aliases.
9365
9366 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 PR gdb/18644:
9369 * f-lang.c (build_fortran_types): Handle the case where
9370 gdbarch_floatformat_for_type returns a nullptr.
9371
9372 2019-05-21 Tom de Vries <tdevries@suse.de>
9373
9374 PR cli/24587
9375 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9376
9377 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9378
9379 PR gdb/18644:
9380 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9381 16-byte floats.
9382 * i386-tdep.c (i386_floatformat_for_type): Use
9383 floatformats_ia64_quad for the 16-byte floating point component
9384 within a fortran 32-byte complex number.
9385
9386 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9387
9388 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9389 delete default constructor.
9390 (find_partial_die): Update to return const struct.
9391 (partial_die_parent_scope): Move variable declaration into scope
9392 of its use and change its type to auto.
9393 (guess_partial_die_structure_name): Likewise.
9394 (partial_die_info::fixup): Likewise.
9395
9396 2019-05-17 Tom Tromey <tromey@adacore.com>
9397
9398 * source.c (find_and_open_source): Remove cast.
9399
9400 2019-05-17 Tom Tromey <tromey@adacore.com>
9401
9402 * annotate.c (annotate_source): Make "filename" const.
9403 * annotate.h (annotate_source): Use const.
9404
9405 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9406
9407 * disasm.c (set_disassembler_options): Send errors to stderr.
9408
9409 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9410
9411 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9412 (cli_interp_base::set_logging): Check debug_redirect.
9413 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9414 * cli/cli-logging.c (debug_redirect): Add static variable.
9415 (pop_output_files): Add default param.
9416 (handle_redirections): Print debug setting.
9417 (show_logging_command): Likewise.
9418 (_initialize_cli_logging): Add debugredirect command.
9419 * interps.c (current_interp_set_logging): Add debug_redirect
9420 parameter.
9421 * interps.h (set_logging): Add debug_redirect parameter.
9422 (current_interp_set_logging): Likewise.
9423 * mi/mi-common.h: Likewise.
9424 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9425
9426 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9427 Tom Tromey <tromey@adacore.com>
9428
9429 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9430 directly.
9431 * cli/cli-interp.h (make_logging_output): Remove declaration.
9432 * cli/cli-logging.c (make_logging_output): Remove function.
9433 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9434 directly.
9435 * ui-file.c (tee_file::tee_file): Remove bools.
9436 (tee_file::~tee_file): Remove deletes.
9437 * ui-file.h (tee_file): Remove bools.
9438
9439 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9440
9441 * mi/mi-cmds.h (mi_cmd_complete): New function.
9442 * mi/mi-main.c (mi_cmd_complete): Likewise.
9443 * mi/mi-cmds.c: Define new MI command -complete.
9444 * NEWS: Mention new -complete command.
9445
9446 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9447
9448 * completer.h (complete): New function.
9449 * completer.c (complete): Likewise.
9450 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9451 function defined in completer.h.
9452
9453 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9454
9455 * MAINTAINERS (Write After Approval): Add myself.
9456
9457 2019-05-17 Tom de Vries <tdevries@suse.de>
9458
9459 PR gdb/24094
9460 * dwarf2read.c (struct cu_partial_die_info): New struct.
9461 (find_partial_die): Return cu_partial_die_info.
9462 (partial_die_parent_scope, guess_partial_die_structure_name)
9463 (partial_die_info::fixup): Handle new return type of find_partial_die.
9464
9465 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9466
9467 PR breakpoints/24541
9468 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9469 "std::string", simplifying the algorithm.
9470
9471 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9472
9473 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9474 (stap_static_probe_ops::get_probes): Likewise.
9475
9476 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9477
9478 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9479 '-')" and "else if".
9480 (stap_parse_single_operand): Join checks for
9481 "gdbarch_stap_parse_special_token_p" and
9482 "gdbarch_stap_parse_special_token" in the same "if" statement.
9483 Invert check when verifying for operation on register
9484 displacement.
9485
9486 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9487
9488 * stap-probe.c (stap_get_opcode): Update comment.
9489 (stap_get_expected_argument_type): Likewise.
9490 (handle_stap_probe): Likewise.
9491
9492 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9493
9494 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9495 return type to 'bool'. Adjust comment. Use 'bool' when
9496 appropriate.
9497 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9498 * stap-probe.c (stap_parse_argument_1): Likewise.
9499 (stap_is_operator): Likewise.
9500 (stap_is_generic_prefix): Likewise.
9501 (stap_is_register_prefix): Likewise.
9502 (stap_is_register_indirection_prefix): Likewise.
9503 (stap_is_integer_prefix): Likewise.
9504 (stap_generic_check_suffix): Likewise.
9505 (stap_check_integer_suffix): Likewise.
9506 (stap_check_register_suffix): Likewise.
9507 (stap_check_register_indirection_suffix): Likewise.
9508 (stap_parse_register_operand): Likewise.
9509 (stap_parse_single_operand): Likewise.
9510 (stap_parse_argument_1): Likewise.
9511 (stap_probe::get_argument_count): Likewise.
9512 (stap_is_operator): Likewise.
9513
9514 2019-05-16 Tom Tromey <tromey@adacore.com>
9515
9516 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9517 keyword to foreach.
9518
9519 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9520
9521 * linux-thread-db.c (try_thread_db_load_1): Change return type
9522 to bool.
9523 (try_thread_db_load): Likewise.
9524 (try_thread_db_load_from_pdir_1): Likewise.
9525 (try_thread_db_load_from_pdir): Likewise.
9526 (try_thread_db_load_from_sdir): Likewise.
9527 (try_thread_db_load_from_dir): Likewise.
9528 (thread_db_load_search): Likewise.
9529 (has_libpthread): Likewise.
9530 (thread_db_load): Likewise.
9531
9532 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9533
9534 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9535 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9536 NULL, and complain/return if that's the case.
9537
9538 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9539
9540 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9541 (advance, posn, abstract_read_memory): New functions.
9542 [struct mem_read_abstraction]: New struct.
9543 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9544
9545 2019-05-14 Tom Tromey <tromey@adacore.com>
9546
9547 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9548 value is not lval_memory.
9549
9550 2019-05-14 Tom Tromey <tromey@adacore.com>
9551
9552 * solib.c (info_sharedlibrary_command): Style the file name.
9553
9554 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9555
9556 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9557 (aarch64_vnv_type): Likewise.
9558 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9559 * common/tdesc.c: Likewise.
9560 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9561 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9562 * features/aarch64-fpu.xml: Add ieee half view.
9563 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9564 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9565 * gdbtypes.h (struct builtin_type): Likewise.
9566 (struct objfile_type): Likewise.
9567
9568 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9569
9570 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9571 typo.
9572 * location.h (string_to_event_location): Likewise.
9573
9574 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9575
9576 GDB 8.3 released.
9577
9578 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9581 New variable declaration.
9582 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9583 New variable.
9584 (print_one_breakpoint): Use ui_out::test_flags and new global
9585 variable to compute use_fixed_output.
9586 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9587 Remove.
9588 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9589 (mi_multi_location_breakpoint_output_fixed): Remove.
9590 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9591 new variable.
9592 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9593 fix_multi_location_breakpoint_output flag if version >= 3.
9594 * ui-out.h (enum ui_out_flag)
9595 <fix_multi_location_breakpoint_output>: New enumerator.
9596
9597 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9600
9601 2019-05-10 Tom Tromey <tromey@adacore.com>
9602
9603 * ada-lang.c (catch_ada_completer): New function.
9604 (_initialize_ada_language): Use it.
9605
9606 2019-05-10 Tom Tromey <tromey@adacore.com>
9607
9608 * thread.c (print_thread_info): Make "requested_threads" const.
9609 * gdbthread.h (print_thread_info): Make "requested_threads"
9610 const.
9611 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9612 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9613
9614 2019-05-08 Tom Tromey <tom@tromey.com>
9615
9616 * gdbtypes.c (objfile_type_data): Change type.
9617 (objfile_type, _initialize_gdbtypes): Update.
9618
9619 2019-05-08 Tom Tromey <tom@tromey.com>
9620
9621 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9622 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9623 (_initialize_dwarf2_frame): Update.
9624
9625 2019-05-08 Tom Tromey <tom@tromey.com>
9626
9627 * objc-lang.c (objc_objfile_data): Change type.
9628 (find_methods): Update.
9629 (_initialize_objc_lang): Remove.
9630
9631 2019-05-08 Tom Tromey <tom@tromey.com>
9632
9633 * stabsread.c (rs6000_builtin_type_data): Change type.
9634 (rs6000_builtin_type, _initialize_stabsread): Update.
9635
9636 2019-05-08 Tom Tromey <tom@tromey.com>
9637
9638 * mips-tdep.c (mips_pdr_data): Remove.
9639 (_initialize_mips_tdep): Update.
9640
9641 2019-05-08 Tom Tromey <tom@tromey.com>
9642
9643 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9644 (hppa_init_objfile_priv_data, read_unwind_info)
9645 (find_unwind_entry, _initialize_hppa_tdep): Update.
9646
9647 2019-05-08 Tom Tromey <tom@tromey.com>
9648
9649 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9650 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9651 on obstack.
9652 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9653
9654 2019-05-08 Tom Tromey <tom@tromey.com>
9655
9656 * mdebugread.c (basic_type_data): Change type.
9657 (basic_type, _initialize_mdebugread): Update.
9658
9659 2019-05-08 Tom Tromey <tom@tromey.com>
9660
9661 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9662
9663 2019-05-08 Tom Tromey <tom@tromey.com>
9664
9665 * nto-tdep.c (nto_inferior_data_reg): Change type.
9666 (nto_inferior_data): Update.
9667 (nto_inferior_data_cleanup, nto_new_inferior_data)
9668 (_initialize_nto_tdep): Remove.
9669 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9670
9671 2019-05-08 Tom Tromey <tom@tromey.com>
9672
9673 * ada-lang.c (struct ada_inferior_data): Add initializers.
9674 (ada_inferior_data): Change type.
9675 (ada_inferior_data_cleanup): Remove.
9676 (get_ada_inferior_data, ada_inferior_exit)
9677 (struct ada_pspace_data): Add initializers, destructor.
9678 (ada_pspace_data_handle): Change type.
9679 (get_ada_pspace_data): Update.
9680 (ada_pspace_data_cleanup): Remove.
9681
9682 2019-05-08 Tom Tromey <tom@tromey.com>
9683
9684 * coffread.c (struct coff_symfile_info): Add initializers.
9685 (coff_objfile_data_key): Move lower. Change type.
9686 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9687 Update.
9688 (coff_free_info): Remove.
9689
9690 2019-05-08 Tom Tromey <tom@tromey.com>
9691
9692 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9693 (fbsd_pspace_data_handle): Move lower. Change type.
9694 (get_fbsd_pspace_data): Update.
9695 (fbsd_pspace_data_cleanup): Remove.
9696 (_initialize_fbsd_tdep): Update.
9697
9698 2019-05-08 Tom Tromey <tom@tromey.com>
9699
9700 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9701 (get_ada_tasks_pspace_data): Update.
9702 (ada_tasks_pspace_data_cleanup): Remove.
9703 (_initialize_tasks): Update.
9704 (ada_tasks_inferior_data_handle): Change type.
9705 (get_ada_tasks_inferior_data): Update.
9706 (ada_tasks_inferior_data_cleanup): Remove.
9707 (struct ada_tasks_pspace_data): Add initializers.
9708
9709 2019-05-08 Tom Tromey <tom@tromey.com>
9710
9711 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9712 * symfile-debug.c (debug_sym_get_probes): Change type.
9713 * stap-probe.c (handle_stap_probe):
9714 (stap_static_probe_ops::get_probes): Change type.
9715 * probe.h (class static_probe_ops) <get_probes>: Change type.
9716 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9717 (parse_probes_in_pspace): Update.
9718 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9719 Update.
9720 (any_static_probe_ops::get_probes): Change type.
9721 * elfread.c (elfread_data): New typedef.
9722 (probe_key): Change type.
9723 (elf_get_probes): Likewise. Update.
9724 (probe_key_free): Remove.
9725 (_initialize_elfread): Update.
9726 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9727 Change type.
9728 (dtrace_process_dof_probe, dtrace_process_dof)
9729 (dtrace_static_probe_ops::get_probe): Change type.
9730
9731 2019-05-08 Tom Tromey <tom@tromey.com>
9732
9733 * xcoffread.c (struct xcoff_symfile_info): Rename from
9734 coff_symfile_info. Add initializers.
9735 (xcoff_objfile_data_key): Move lower. Change type.
9736 (XCOFF_DATA): Rewrite.
9737 (xcoff_free_info): Remove.
9738 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9739 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9740 (xcoff_initial_scan): Update.
9741
9742 2019-05-08 Tom Tromey <tom@tromey.com>
9743
9744 * solib-svr4.c (struct svr4_info): Add initializers and
9745 destructor.
9746 <probes_table>: Now an htab_up.
9747 (solib_svr4_pspace_data): Change type.
9748 (free_probes_table): Simplify.
9749 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9750 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9751 (probes_table_remove_objfile_probes, register_solib_event_probe)
9752 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9753 (_initialize_svr4_solib): Update.
9754
9755 2019-05-08 Tom Tromey <tom@tromey.com>
9756
9757 * remote.c (remote_pspace_data): Change type.
9758 (remote_pspace_data_cleanup): Remove.
9759 (get_remote_exec_file, set_pspace_remote_exec_file)
9760 (_initialize_remote): Update.
9761
9762 2019-05-08 Tom Tromey <tom@tromey.com>
9763
9764 * breakpoint.c (breakpoint_objfile_key): Change type.
9765 (get_breakpoint_objfile_data): Update.
9766 (free_breakpoint_objfile_data): Remove.
9767 (_initialize_breakpoint): Update.
9768
9769 2019-05-08 Tom Tromey <tom@tromey.com>
9770
9771 * linux-tdep.c (struct linux_info): Add initializers.
9772 (linux_inferior_data): Move. Change type.
9773 (invalidate_linux_cache_inf): Update.
9774 (linux_inferior_data_cleanup): Remove.
9775 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9776
9777 2019-05-08 Tom Tromey <tom@tromey.com>
9778
9779 * auxv.c (auxv_inferior_data): Move. Change type.
9780 (auxv_inferior_data_cleanup): Remove.
9781 (invalidate_auxv_cache_inf): Rewrite.
9782 (get_auxv_inferior_data, _initialize_auxv): Update.
9783
9784 2019-05-08 Tom Tromey <tom@tromey.com>
9785
9786 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9787 (symfile_debug_objfile_data_key): Change type.
9788 (symfile_debug_installed, debug_qf_has_symbols)
9789 (debug_qf_find_last_source_symtab)
9790 (debug_qf_forget_cached_source_info)
9791 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9792 (debug_qf_print_stats, debug_qf_dump)
9793 (debug_qf_expand_symtabs_for_function)
9794 (debug_qf_expand_all_symtabs)
9795 (debug_qf_expand_symtabs_with_fullname)
9796 (debug_qf_map_matching_symbols)
9797 (debug_qf_expand_symtabs_matching)
9798 (debug_qf_find_pc_sect_compunit_symtab)
9799 (debug_qf_map_symbol_filenames)
9800 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9801 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9802 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9803 (debug_sym_read_linetable, debug_sym_relocate): Update.
9804 (symfile_debug_free_objfile): Remove.
9805 (install_symfile_debug_logging, _initialize_symfile_debug):
9806 Update.
9807
9808 2019-05-08 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9811 allocate_on_obstack.
9812 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9813 (get_dwarf2_per_objfile): Update.
9814 (set_dwarf2_per_objfile): Remove.
9815 (dwarf2_has_info, dwarf2_get_section_info): Update.
9816 (dwarf2_free_objfile): Remove.
9817 (_initialize_dwarf2_read): Update.
9818
9819 2019-05-08 Tom Tromey <tom@tromey.com>
9820
9821 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9822 initializers.
9823 <unsupported_script_warning_printed,
9824 script_not_found_warning_printed>: Now bool.
9825 (auto_load_pspace_data): Change type.
9826 (~auto_load_pspace_info): Rename from
9827 auto_load_pspace_data_cleanup.
9828 (get_auto_load_pspace_data, init_loaded_scripts_info)
9829 (clear_section_scripts, maybe_print_unsupported_script_warning)
9830 (maybe_print_script_not_found_warning, _initialize_auto_load):
9831 Update.
9832
9833 2019-05-08 Tom Tromey <tom@tromey.com>
9834
9835 * objfiles.c (objfile_pspace_info): Add destructor and
9836 initializers.
9837 (objfiles_pspace_data): Change type.
9838 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9839 (get_objfile_pspace_data): Update.
9840 (objfiles_bfd_data): Change type.
9841 (get_objfile_bfd_data): Update.
9842 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9843
9844 2019-05-08 Tom Tromey <tom@tromey.com>
9845
9846 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9847 Change type.
9848 (get_catch_syscall_inferior_data): Update.
9849 (catch_syscall_inferior_data_cleanup): Remove.
9850 (_initialize_break_catch_syscall): Update.
9851
9852 2019-05-08 Tom Tromey <tom@tromey.com>
9853
9854 * inflow.c (struct terminal_info): Add destructor and
9855 initializers.
9856 (inflow_inferior_data): Change type.
9857 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9858 (get_inflow_inferior_data, inflow_inferior_exit)
9859 (swap_terminal_info, _initialize_inflow): Update.
9860
9861 2019-05-08 Tom Tromey <tom@tromey.com>
9862
9863 * target-dcache.c (target_dcache_cleanup): Remove.
9864 (target_dcache_aspace_key): Change type.
9865 (target_dcache_init_p, target_dcache_invalidate)
9866 (target_dcache_get, target_dcache_get_or_init)
9867 (_initialize_target_dcache): Update.
9868 * dcache.h (struct dcache_deleter): New.
9869
9870 2019-05-08 Tom Tromey <tom@tromey.com>
9871
9872 * symtab.c (struct symbol_cache): Add destructor and
9873 initializers.
9874 (symbol_cache_key): Move. Change type.
9875 (make_symbol_cache, free_symbol_cache): Remove.
9876 (get_symbol_cache): Update.
9877 (symbol_cache_cleanup): Remove.
9878 (ALL_PSPACES, symbol_cache_flush)
9879 (maintenance_print_symbol_cache)
9880 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9881 Update.
9882
9883 2019-05-08 Tom Tromey <tom@tromey.com>
9884
9885 * symtab.c (struct main_info): Add destructor and initializers.
9886 (main_progspace_key): Move. Change type.
9887 (get_main_info): Update.
9888 (main_info_cleanup): Remove.
9889 (_initialize_symtab): Update.
9890
9891 2019-05-08 Tom Tromey <tom@tromey.com>
9892
9893 * registry.h (DECLARE_REGISTRY): Define the _key class.
9894
9895 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * NEWS: Merge two 'New commands' sections.
9898
9899 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9900
9901 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9902 parameter and use Ada language definition instead.
9903 (ada_val_print_ptr): Remove unused language parameter.
9904 (ada_val_print_num): Remove language parameter and use Ada language
9905 definition instead.
9906 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9907 parameter.
9908 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9909 parameter and use Ada language definition instead.
9910 (ada_val_print_1): Update all ada_val_print_xxx calls.
9911 Remove language parameter.
9912 (ada_val_print): Update ada_val_print_1 call.
9913
9914 2019-05-08 Tom Tromey <tromey@adacore.com>
9915
9916 * remote.c (remote_hw_watchpoint_limit)
9917 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9918 Now static.
9919
9920 2019-05-08 Tom Tromey <tromey@adacore.com>
9921
9922 * maint.c (_initialize_maint_cmds): Move initialization code to
9923 remote.c.
9924 (watchdog, show_watchdog): Move to remote.c.
9925 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9926 "watchdog" static.
9927 (_initialize_remote): Move initialization code from maint.c.
9928 * defs.h (watchdog): Don't declare.
9929
9930 2019-05-08 Tom Tromey <tromey@adacore.com>
9931
9932 * tui/tui-interp.c: Include main.h.
9933 * interps.c: Include main.h.
9934 * main.h (interpreter_p): Declare.
9935 * defs.h (interpreter_p): Don't declare.
9936
9937 2019-05-08 Tom Tromey <tromey@adacore.com>
9938
9939 * dwarf2loc.c: Include dwarf2read.h.
9940 * defs.h (read_unsigned_leb128): Don't declare.
9941 * dwarf2read.h (read_unsigned_leb128): Declare.
9942
9943 2019-05-08 Tom Tromey <tromey@adacore.com>
9944
9945 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9946 method.
9947
9948 2019-05-08 Tom Tromey <tromey@adacore.com>
9949
9950 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9951 when no wrap column is set.
9952
9953 2019-05-08 Tom Tromey <tromey@adacore.com>
9954
9955 * c-lang.c (c_get_string): Handle non-C-style arrays.
9956
9957 2019-05-08 Tom Tromey <tromey@adacore.com>
9958
9959 * typeprint.c (print_offset_data::update): Print the bit offset,
9960 not the number of bits remaining.
9961
9962 2019-05-08 Tom Tromey <tromey@adacore.com>
9963
9964 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9965 padding at end of comment.
9966
9967 2019-05-08 Tom Tromey <tromey@adacore.com>
9968
9969 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9970 Compare main types.
9971
9972 2019-05-06 Tom Tromey <tom@tromey.com>
9973
9974 * common/scoped_mmap.c: Include common-defs.h.
9975 * common/scoped_mmap.h: Don't include config.h.
9976
9977 2019-05-04 Tom Tromey <tom@tromey.com>
9978
9979 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9980 (struct aarch64_call_info): Add initializers.
9981 <si>: Now a std::vector.
9982 (pass_on_stack, aarch64_push_dummy_call): Update.
9983
9984 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9985 Tom Tromey <tom@tromey.com>
9986
9987 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9988 (ppc_threads): Now a std::vector. Now static.
9989 (hwdebug_find_thread_points_by_tid)
9990 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9991 Update.
9992
9993 2019-05-04 Tom Tromey <tom@tromey.com>
9994
9995 * arc-tdep.c (arc_tdesc_init): Return bool.
9996
9997 2019-05-04 Tom Tromey <tom@tromey.com>
9998
9999 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10000 Use gdb_assert_not_reached.
10001
10002 2019-05-04 Tom Tromey <tom@tromey.com>
10003
10004 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10005 "false".
10006
10007 2019-05-04 Tom Tromey <tom@tromey.com>
10008
10009 * arc-tdep.c (arc_tdesc_init): Use bool.
10010
10011 2019-05-04 Tom Tromey <tom@tromey.com>
10012
10013 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10014
10015 2019-05-04 Tom Tromey <tom@tromey.com>
10016
10017 * cli/cli-cmds.c (valid_command_p): Return bool.
10018
10019 2019-05-04 Tom Tromey <tom@tromey.com>
10020
10021 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10022 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10023
10024 2019-05-04 Raul Tambre <raul@tambre.ee>
10025
10026 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10027 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10028 operator for comparison.
10029
10030 2019-05-04 Tom Tromey <tom@tromey.com>
10031
10032 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10033 (lookup_partial_symbol, print_partial_symbols)
10034 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10035 (psymbol_compare): Update.
10036 (add_psymbol_to_bcache): Clear the entire psymbol.
10037 (maintenance_check_psymtabs): Update.
10038 * psympriv.h (struct partial_symbol): Don't derive from
10039 general_symbol_info.
10040 <obj_section, unrelocated_address, address,
10041 set_unrelocated_address>: Update.
10042 <ginfo>: New member.
10043 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10044 (debug_names::write_psymbols): Update.
10045
10046 2019-05-04 Tom de Vries <tdevries@suse.de>
10047
10048 * contrib/cc-with-tweaks.sh: Support -n arg.
10049
10050 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10051
10052 * corelow.c (core_target::detach): Ensure frame cache and
10053 register caches are cleared.
10054 inferior.c (exit_inferior_1): Likewise.
10055
10056 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10057 Tom Tromey <tom@tromey.com>
10058
10059 * dictionary.c (collate_pending_symbols_by_language): Remove
10060 "struct" from foreach.
10061 * symtab.c (lookup_global_symbol_from_objfile)
10062 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10063 foreach.
10064 * ser-tcp.c (net_open): Remove "struct" from foreach.
10065 * objfiles.c (objfile_relocate, objfile_rebase)
10066 (objfile_has_symbols): Remove "struct" from foreach.
10067 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10068 from foreach.
10069 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10070 foreach.
10071 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10072 "struct" from foreach.
10073 * ada-lang.c (create_excep_cond_exprs)
10074 (ada_exception_catchpoint_cond_string): Remove "struct" from
10075 foreach.
10076
10077 2019-05-03 Tom Tromey <tromey@adacore.com>
10078
10079 * ada-exp.y (convert_char_literal): Check suffix of each
10080 enumerator.
10081
10082 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10083
10084 PR ada/21406:
10085 * ada-exp.y (yywrap): Don't define.
10086 * ada-lex.l (%option): Add noyywrap
10087 (yywrap): Remove.
10088
10089 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10090
10091 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10092 _WIN32_WINNT to the XP level, unless already defined to a higher
10093 level.
10094
10095 * unittests/parse-connection-spec-selftests.c:
10096 * ser-tcp.c:
10097 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10098 override.
10099
10100 * symfile.c (find_separate_debug_file): Remove colon from the
10101 drive spec of DOS/Windows file names of the target, so that the
10102 file name produced from DEBUGDIR and the target's directory will
10103 be valid on DOS/Windows systems.
10104
10105 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10106
10107 * rust-lang.c (val_print_struct): Handle printing structures
10108 containing strings.
10109
10110 2019-05-02 Tom Tromey <tromey@adacore.com>
10111
10112 * valarith.c (_initialize_valarith): Remove.
10113
10114 2019-05-01 Tom Tromey <tromey@adacore.com>
10115
10116 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10117 bitfields.
10118
10119 2019-05-01 Tom Tromey <tromey@adacore.com>
10120
10121 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10122 for big-endian copies.
10123
10124 2019-04-30 Ali Tamur <tamur@google.com>
10125 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10126 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10127 (read_3_bytes): New function.
10128
10129 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10130
10131 * windows-nat.c (main_thread_id): Delete.
10132 (handle_output_debug_string): Replace main_thread_id by
10133 current_event.dwThreadId.
10134 (fake_create_process): Likewise.
10135 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10136 Do not set main_thread_id.
10137 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10138 current_event.dwThreadId.
10139 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10140
10141 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10142
10143 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10144 Use current_event.dwThreadId instead of main_thread_id.
10145
10146 2019-04-30 Tom Tromey <tromey@adacore.com>
10147
10148 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10149 (create_excep_cond_exprs): Iterate over program spaces.
10150 (ada_exception_catchpoint_cond_string): Examine all minimal
10151 symbols for exception types.
10152
10153 2019-04-30 Tom Tromey <tromey@adacore.com>
10154
10155 PR c++/24470:
10156 * dwarf2read.c (process_structure_scope): Handle case where type
10157 has template parameters but no symbol was created.
10158
10159 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10160 Chris January <chris.january@arm.com>
10161
10162 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10163 qualifier.
10164 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10165
10166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10167
10168 * f-typeprint.c (f_print_type): Update rules for printing
10169 whitespace.
10170 (f_type_print_varspec_suffix): Likewise.
10171
10172 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10173 Chris January <chris.january@arm.com>
10174
10175 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10176 function arguments.
10177
10178 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10179
10180 * f-lang.c (build_fortran_types): Change name of void type to
10181 lower case.
10182 * f-typeprint.c (f_type_print_base): Print the name of the void
10183 type, rather than a fixed string.
10184 * f-valprint.c (f_decorations): Use lower case void string.
10185
10186 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10187 Chris January <chris.january@arm.com>
10188
10189 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10190 types for Fortran.
10191
10192 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10193 Chris January <chris.january@arm.com>
10194 David Lecomber <david.lecomber@arm.com>
10195
10196 * f-exp.y (BINOP_INTRINSIC): New token.
10197 (exp): New parser rule handling BINOP_INTRINSIC.
10198 (f77_keywords): Add new builtin procedures.
10199 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10200 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10201 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10202 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10203 (print_unop_subexp_f): New function.
10204 (print_binop_subexp_f): New function.
10205 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10206 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10207 (dump_subexp_body_f): Likewise.
10208 (operator_check_f): Likewise.
10209 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10210 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10211
10212 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10213
10214 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10215 UNOP_KIND.
10216 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10217 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10218 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10219 (operator_length_f): New fuction.
10220 (print_subexp_f): New function.
10221 (op_name_f): New function.
10222 (dump_subexp_body_f): New function.
10223 (operator_check_f): New function.
10224 (exp_descriptor_f): Replace standard expression handling functions
10225 with new functions.
10226 * gdb/fortran-operator.def: New file.
10227 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10228 * gdb/std-operator.def: Remove UNOP_KIND.
10229
10230 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10231
10232 * std-operator.def: Remove unbalanced, stray double quote
10233 character.
10234
10235 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10236 Chris January <chris.january@arm.com>
10237 Daniel Everett <daniel.everett@arm.com>
10238 Nick Forrington <nick.forrington@arm.com>
10239 Richard Bunt <richard.bunt@arm.com>
10240
10241 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10242 of depth when printing anonymous structs or unions.
10243 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10244 Don't print either the top-level value, or the children if the
10245 max-depth is exceeded.
10246 (ppscm_print_children): When printing the key of a map, allow one
10247 extra level of depth.
10248 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10249 print either the top-level value, or the children if the max-depth
10250 is exceeded.
10251 (print_children): When printing the key of a map, allow one extra
10252 level of depth.
10253 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10254 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10255 (user_print_options): Initialise max_depth field.
10256 (val_print_scalar_or_string_type_p): New function.
10257 (val_print): Check to see if the max depth has been reached.
10258 (val_print_check_max_depth): Define new function.
10259 (show_print_max_depth): New function.
10260 (_initialize_valprint): Add 'print max-depth' option.
10261 * valprint.h (struct value_print_options) <max_depth>: New field.
10262 (val_print_check_max_depth): Declare new function.
10263 * NEWS: Document new feature.
10264
10265 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * ada-lang.c (ada_language_defn): Initialise new field.
10268 * c-lang.c (c_is_string_type_p): New function.
10269 (c_language_defn): Initialise new field.
10270 (cplus_language_defn): Initialise new field.
10271 (asm_language_defn): Initialise new field.
10272 (minimal_language_defn): Initialise new field.
10273 * c-lang.h (c_is_string_type_p): Declare new function.
10274 * d-lang.c (d_language_defn): Initialise new field.
10275 * f-lang.c (f_is_string_type_p): New function.
10276 (f_language_defn): Initialise new field.
10277 * go-lang.c (go_is_string_type_p): New function.
10278 (go_language_defn): Initialise new field.
10279 * language.c (default_is_string_type_p): New function.
10280 (unknown_language_defn): Initialise new field.
10281 (auto_language_defn): Initialise new field.
10282 * language.h (struct language_defn) <la_is_string_type_p>: New
10283 member variable.
10284 (default_is_string_type_p): Declare new function.
10285 * m2-lang.c (m2_language_defn): Initialise new field.
10286 * objc-lang.c (objc_language_defn): Initialise new field.
10287 * opencl-lang.c (opencl_language_defn): Initialise new field.
10288 * p-lang.c (pascal_is_string_type_p): New function.
10289 (pascal_language_defn): Initialise new field.
10290 * rust-lang.c (rust_is_string_type_p): New function.
10291 (rust_language_defn): Initialise new field.
10292
10293 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10294
10295 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10296 New field.
10297 * ada-lang.c (ada_language_defn): Initialise new field.
10298 * c-lang.c (c_language_defn): Likewise.
10299 (cplus_language_defn): Likewise.
10300 (asm_language_defn): Likewise.
10301 (minimal_language_defn): Likewise.
10302 * d-lang.c (d_language_defn): Likewise.
10303 * f-lang.c (f_language_defn): Likewise.
10304 * go-lang.c (go_language_defn): Likewise.
10305 * language.c (unknown_language_defn): Likewise.
10306 (auto_language_defn): Likewise.
10307 * m2-lang.c (m2_language_defn): Likewise.
10308 * objc-lang.c (objc_language_defn): Likewise.
10309 * opencl-lang.c (opencl_language_defn): Likewise.
10310 * p-lang.c (pascal_language_defn): Likewise.
10311 * rust-lang.c (rust_language_defn): Likewise.
10312
10313 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10314
10315 * ada-lang.c (ada_is_character_type): Change return type to bool.
10316 (ada_is_string_type): Likewise.
10317 * ada-lang.h (ada_is_character_type): Update declaration
10318 (ada_is_string_type): Likewise.
10319
10320 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10321
10322 Support style in 'frame|thread apply'
10323
10324 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10325 * record.c (record_start, record_stop): Update callers of
10326 execute_command_to_string with false.
10327 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10328 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10329 methods.
10330 (class string_file): New constructor with term_out parameter.
10331 Override methods term_out and can_emit_style_escape. New member
10332 term_out.
10333 (class stdio_file): Override can_emit_style_escape.
10334 (class tee_file): Override term_out and can_emit_style_escape.
10335 * utils.h (can_emit_style_escape): Remove.
10336 * utils.c (can_emit_style_escape): Likewise.
10337 Update all callers of can_emit_style_escape (SOMESTREAM) to
10338 SOMESTREAM->can_emit_style_escape.
10339 * source-cache.c (source_cache::get_source_lines): Likewise.
10340 * stack.c (frame_apply_command_count): Call execute_command_to_string
10341 passing the term_out characteristic of the current gdb_stdout.
10342 * thread.c (thr_try_catch_cmd): Likewise.
10343 * top.c (execute_command_to_string): pass term_out parameter
10344 to construct the string_file for the command output.
10345 * ui-file.c (term_cli_styling): New function (most code moved
10346 from utils.c can_emit_style_escape).
10347 (string_file::string_file, string_file::can_emit_style_escape,
10348 stdio_file::can_emit_style_escape, tee_file::term_out,
10349 tee_file::can_emit_style_escape): New functions.
10350
10351 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10352
10353 * NEWS: Mention the new set|show may-call-functions.
10354 * infcall.c (may_call_functions_p): New variable.
10355 (show_may_call_functions_p): New function.
10356 (call_function_by_hand_dummy): Throws an error if not
10357 may-call-functions.
10358 (_initialize_infcall): Call add_setshow_boolean_cmd for
10359 may-call-functions.
10360
10361 2019-04-25 Keith Seitz <keiths@redhat.com>
10362
10363 PR c++/24367
10364 * cp-support.c (inspect_type): Don't attempt substitutions
10365 of symbol with the same name.
10366
10367 2019-04-25 Tom Tromey <tromey@adacore.com>
10368
10369 PR gdb/24475:
10370 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10371 static.
10372
10373 2019-04-25 Tom Tromey <tromey@adacore.com>
10374
10375 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10376 rvalue reference.
10377 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10378 (gdb_xml_parser::parse): Use std::move.
10379 * python/python-internal.h (gdbpy_convert_exception): Take a const
10380 reference.
10381 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10382 std::move.
10383 * python/py-utils.c (gdbpy_convert_exception): Take a const
10384 reference.
10385 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10386 Use std::move.
10387 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10388 Use std::move.
10389 * mi/mi-main.c (mi_print_exception): Take a const reference.
10390 * main.c (handle_command_errors): Take a const reference.
10391 * linespec.c (parse_linespec): Use std::move.
10392 * infcall.c (run_inferior_call): Use std::move.
10393 (call_function_by_hand_dummy): Use std::move.
10394 * exec.c (try_open_exec_file): Use std::move.
10395 * exceptions.h (exception_print, exception_fprintf)
10396 (exception_print_same): Update.
10397 * exceptions.c (print_exception, exception_print)
10398 (exception_fprintf, exception_print_same): Change parameters to
10399 const reference.
10400 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10401 * common/new-op.c: Use std::move.
10402 * common/common-exceptions.h (struct gdb_exception): Add move
10403 constructor.
10404 (struct gdb_exception_error, struct gdb_exception_quit, struct
10405 gdb_quit_bad_alloc): Change constructor to move constructor.
10406 (throw_exception): Change parameter to rvalue reference.
10407 * common/common-exceptions.c (throw_exception): Take rvalue
10408 reference.
10409 * cli/cli-interp.c (safe_execute_command): Use std::move.
10410 * breakpoint.c (insert_bp_location, location_to_sals): Use
10411 std::move.
10412
10413 2019-04-25 Tom Tromey <tromey@adacore.com>
10414
10415 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10416 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10417 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10418 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10419 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10420 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10421 guile/scm-value.c: Use unpack.
10422 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10423 gdbscm_gdb_exception.
10424 (gdbscm_throw_gdb_exception): Likewise.
10425 (struct gdbscm_gdb_exception): New.
10426 (unpack): New function.
10427 (gdbscm_wrap): Use unpack.
10428
10429 2019-04-25 Tom Tromey <tromey@adacore.com>
10430
10431 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10432 (gdb_rl_callback_handler): Use std::move.
10433 * common/common-exceptions.h (struct gdb_exception): Add move
10434 assignment operator.
10435 (throw_exception_sjlj): Change "exception" to const reference.
10436 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10437 (throw_exception_sjlj): Change "exception" to const reference.
10438
10439 2019-04-25 Tom Tromey <tromey@adacore.com>
10440
10441 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10442 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10443 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10444 Update.
10445 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10446 Update.
10447 * mi/mi-interp.c (mi_interp::exec): Update.
10448 * linespec.c (parse_linespec): Update.
10449 * infcall.c (run_inferior_call): Update.
10450 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10451 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10452 (gdbscm_lookup_global_symbol): Update.
10453 * guile/scm-param.c (gdbscm_parameter_value): Update.
10454 * guile/scm-frame.c (gdbscm_frame_read_register)
10455 (gdbscm_frame_read_var): Update.
10456 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10457 * exec.c (try_open_exec_file): Update.
10458 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10459 (gdb_rl_callback_handler): Update.
10460 * common/common-exceptions.h (exception_none): Don't declare.
10461 * common/common-exceptions.c (exception_none): Don't define.
10462 (struct catcher) <exception>: Update.
10463 * cli/cli-interp.c (safe_execute_command): Update.
10464 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10465
10466 2019-04-25 Ali Tamur <tamur@google.com>
10467
10468 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10469 (read_attribute_value): Likewise.
10470 (dwarf2_read_addr_index): Update comment.
10471 (read_str_index): Add DW_FORM_strx.
10472 (dwarf2_string_attr): Likewise.
10473 (dwarf2_const_value_attr): Likewise.
10474 (dump_die_shallow): Likewise.
10475 (dwarf2_fetch_constant_bytes): Likewise.
10476 (skip_form_bytes): Likewise.
10477 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10478
10479 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10480
10481 PR corefiles/11608
10482 PR corefiles/18187
10483 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10484 OFFSET. Verify if current mapping contains an ELF header.
10485 (linux_find_memory_regions_full): Adjust call to
10486 dump_mapping_p.
10487
10488 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10489 Kang Li <kanglictf@gmail.com>
10490
10491 PR gdb/21600
10492
10493 * dwarf2-frame.c (read_initial_length): Be consistent about using
10494 unsigned representation of length.
10495 (decode_frame_entry_1): Likewise. Check for wraparound of
10496 end pointer as well as buffer overflow.
10497
10498 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10499
10500 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10501 "vq".
10502
10503 2019-04-24 Tom Tromey <tromey@adacore.com>
10504
10505 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10506
10507 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10508
10509 * s12z-tdep.c (s12z_unwind_pc): Delete.
10510 (s12z_unwind_sp): Delete.
10511 (s12z_gdbarch_init): Don't register deleted functions with
10512 gdbarch.
10513
10514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10515
10516 * rl78-tdep.c (rl78_unwind_sp): Delete.
10517 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10518
10519 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10520
10521 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10522 (xstormy16_unwind_pc): Delete.
10523 (xstormy16_dummy_id): Delete.
10524 (xstormy16_gdbarch_init): Don't register deleted functions with
10525 gdbarch.
10526
10527 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10528
10529 * vax-tdep.c (vax_unwind_pc): Delete.
10530 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10531
10532 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10533
10534 * v850-tdep.c (v850_unwind_sp): Delete.
10535 (v850_unwind_pc): Delete.
10536 (v850_dummy_id): Delete.
10537 (v850_gdbarch_init): Don't register deleted functions with
10538 gdbarch.
10539
10540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10543 (tilegx_unwind_pc): Delete.
10544 (tilegx_unwind_dummy_id): Delete.
10545 (tilegx_gdbarch_init): Don't register deleted functions with
10546 gdbarch.
10547
10548 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10549
10550 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10551 (tic6x_dummy_id): Delete.
10552 (tic6x_gdbarch_init): Don't register deleted functions with
10553 gdbarch.
10554
10555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 * sparc-tdep.c (sparc_unwind_pc): Delete.
10558 (sparc32_gdbarch_init): Don't register deleted function with
10559 gdbarch.
10560
10561 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * sh-tdep.c (sh_unwind_sp): Delete.
10564 (sh_unwind_pc): Delete.
10565 (sh_dummy_id): Delete.
10566 (sh_gdbarch_init): Don't register deleted functions with
10567 gdbarch.
10568
10569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * score-tdep.c (score_unwind_sp): Delete.
10572 (score_unwind_pc): Delete.
10573 (score_dummy_id): Delete.
10574 (score_gdbarch_init): Don't register deleted functions with
10575 gdbarch.
10576
10577 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10578
10579 * rx-tdep.c (rx_unwind_pc): Delete.
10580 (rx_unwind_sp): Delete.
10581 (rx_dummy_id): Delete.
10582 (rx_gdbarch_init): Don't register deleted functions with
10583 gdbarch. Update comment.
10584
10585 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10586
10587 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10588 (rs6000_dummy_id): Delete.
10589 (rs6000_gdbarch_init): Don't register deleted functions with
10590 gdbarch.
10591
10592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10593
10594 * or1k-tdep.c (or1k_dummy_id): Delete.
10595 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10596
10597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10598
10599 * nios2-tdep.c (nios2_dummy_id): Delete.
10600 (nios2_unwind_sp): Delete.
10601 (nios2_gdbarch_init): Don't register deleted functions with
10602 gdbarch.
10603
10604 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10605
10606 * nds32-tdep.c (nds32_dummy_id): Delete.
10607 (nds32_unwind_pc): Delete.
10608 (nds32_unwind_sp): Delete.
10609 (nds32_gdbarch_init): Don't register deleted functions with
10610 gdbarch.
10611
10612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10613
10614 * msp430-tdep.c (msp430_unwind_pc): Delete.
10615 (msp430_unwind_sp): Delete.
10616 (msp430_dummy_id): Delete.
10617 (msp430_gdbarch_init): Don't register deleted functions with
10618 gdbarch.
10619
10620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * moxie-tdep.c (moxie_unwind_sp): Delete.
10623 (moxie_unwind_pc): Delete.
10624 (moxie_dummy_id): Delete.
10625 (moxie_gdbarch_init): Don't register deleted functions with
10626 gdbarch.
10627
10628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10631 (mn10300_unwind_pc): Delete.
10632 (mn10300_unwind_sp): Delete.
10633 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10634 mn10300_unwind_sp.
10635 (mn10300_frame_unwind_init): Don't register deleted functions with
10636 gdbarch.
10637
10638 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * mep-tdep.c (mep_unwind_pc): Delete.
10641 (mep_unwind_sp): Delete.
10642 (mep_dummy_id): Delete.
10643 (mep_gdbarch_init): Don't register deleted functions with
10644 gdbarch.
10645
10646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10647
10648 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10649 (m68hc11_unwind_sp): Delete.
10650 (m68hc11_gdbarch_init): Don't register deleted functions with
10651 gdbarch.
10652
10653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10654
10655 * m32r-tdep.c (m32r_unwind_sp): Delete.
10656 (m32r_unwind_pc): Delete.
10657 (m32r_dummy_id): Delete.
10658 (m32r_gdbarch_init): Don't register deleted functions with
10659 gdbarch.
10660
10661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10662
10663 * m32c-tdep.c (m32c_unwind_pc): Delete.
10664 (m32c_unwind_sp): Delete.
10665 (m32c_dummy_id): Delete.
10666 (m32c_gdbarch_init): Don't register deleted functions with
10667 gdbarch.
10668
10669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10670
10671 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10672 (lm32_unwind_pc): Delete.
10673 (lm32_dummy_id): Delete.
10674 (lm32_gdbarch_init): Don't register deleted functions with
10675 gdbarch.
10676
10677 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10678
10679 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10680 (iq2000_unwind_pc): Delete.
10681 (iq2000_dummy_id): Delete.
10682 (iq2000_gdbarch_init): Don't register deleted functions with
10683 gdbarch.
10684
10685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10686
10687 * nds32-tdep.c (nds32_type_align): Delete.
10688 (nds32_push_dummy_call): Use type_align instead.
10689
10690 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10691
10692 * arm-tdep.c (arm_type_align): Only handle vector override case.
10693 (arm_push_dummy_call): Use type_align.
10694 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10695
10696 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10697
10698 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10699 case.
10700 (pass_on_stack): Use type_align.
10701 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10702 function.
10703
10704 2019-04-23 Tom Tromey <tromey@adacore.com>
10705
10706 * dwarf2read.c (line_header::file_name_at): Remove unused
10707 overload.
10708
10709 2019-04-23 Tom de Vries <tdevries@suse.de>
10710
10711 PR gdb/24438
10712 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10713 invocation.
10714
10715
10716 2019-03-27 Ali Tamur <tamur@google.com>
10717
10718 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10719 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10720 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10721 (dwarf_expr_context::get_addr_index): Likewise
10722 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10723 (symbol_needs_eval_context::get_addr_index): Likewise
10724 (disassemble_dwarf_expression): Add DW_OP_addrx
10725 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10726 (read_cutu_die_from_dwo): Update comment
10727 (skip_one_die): Add DW_FORM_addrx
10728 (read_attribute_value): Likewise
10729 (var_decode_location): Add DW_OP_addrx
10730 (dwarf2_const_value_attr): Add DW_FORM_addrx
10731 (dump_die_shallow): Likewise
10732 (dwarf2_fetch_constant_bytes): Likewise
10733 (decode_locdesc): Add DW_OP_addrx
10734 (skip_form_bytes): Add DW_FORM_addrx
10735
10736 2019-04-22 Ali Tamur <tamur@google.com>
10737
10738 * MAINTAINERS (Write After Approval): Add self.
10739
10740 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10741
10742 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10743 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10744 (open_symbol_file_object): Likewise.
10745 (svr4_default_sos): Add info parameter.
10746 (svr4_read_so_list): Likewise.
10747 (svr4_current_sos_direct): Adjust functions calls to pass down
10748 info.
10749 (svr4_current_sos_1): Add info parameter.
10750 (svr4_current_sos): Call get_svr4_info, pass info down to
10751 svr4_current_sos_1.
10752 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10753 get_svr4_info.
10754 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10755 get_svr4_info.
10756 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10757 to get_svr4_info.
10758 (probes_table_remove_objfile_probes): Likewise.
10759 (register_solib_event_probe): Add info parameter.
10760 (solist_update_incremental): Pass info parameter down to
10761 svr4_read_so_list.
10762 (disable_probes_interface): Add info parameter.
10763 (svr4_handle_solib_event): Pass current_program_space to
10764 get_svr4_info. Adjust disable_probes_interface cleanup.
10765 (svr4_create_probe_breakpoints): Add info parameter, pass it
10766 down to register_solib_event_probe.
10767 (svr4_create_solib_event_breakpoints): Add info parameter,
10768 pass it down to svr4_create_probe_breakpoints.
10769 (enable_break): Pass info down to
10770 svr4_create_solib_event_breakpoints.
10771 (svr4_solib_create_inferior_hook): Pass current_program_space to
10772 get_svr4_info.
10773 (svr4_clear_solib): Likewise.
10774
10775 2019-04-22 Pedro Alves <palves@redhat.com>
10776
10777 * solib-svr4.c (svr4_free_objfile_observer): New.
10778 (probe_and_action::objfile): New field.
10779 (probes_table_htab_remove_objfile_probes)
10780 (probes_table_remove_objfile_probes): New functions.
10781 (register_solib_event_probe): Add 'objfile' parameter. Store it
10782 in the new probe_and_action. Don't store the probe in 'lookup'.
10783 (svr4_create_probe_breakpoints): Pass objfile to
10784 register_solib_event_probe.
10785 (_initialize_svr4_solib): Register a free_objfile observer.
10786
10787 2019-04-19 Tom Tromey <tom@tromey.com>
10788
10789 * common/queue.h: Remove.
10790
10791 2019-04-19 Tom Tromey <tom@tromey.com>
10792
10793 * event-loop.c: Don't include "common/queue.h".
10794
10795 2019-04-19 Tom Tromey <tom@tromey.com>
10796
10797 * remote.c (remote_target): Use delete.
10798 * remote-notif.h: Include <list>, not "common/queue.h".
10799 (notif_client_p): Remove typedef.
10800 (remote_notif_state): Add constructor, destructor, initializer.
10801 <notif_queue>: Now a std::list.
10802 (remote_notif_state_xfree): Don't declare.
10803 * remote-notif.c (remote_notif_process, handle_notification)
10804 (remote_notif_state_allocate): Update.
10805 (~remote_notif_state): Rename from remote_notif_state_xfree.
10806
10807 2019-04-19 Tom Tromey <tom@tromey.com>
10808
10809 * symfile.c (reread_symbols): Update.
10810 * objfiles.c (objfile_register_static_link)
10811 (objfile_lookup_static_link): Update
10812 (~objfile) Don't delete static_links.
10813 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10814
10815 2019-04-19 Tom Tromey <tom@tromey.com>
10816
10817 * type-stack.h (struct type_stack) <insert>: Constify string.
10818 * type-stack.c (type_stack::insert): Constify string.
10819 * gdbtypes.h (lookup_template_type): Update.
10820 (address_space_name_to_int): Update.
10821 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10822 const.
10823 (lookup_template_type): Make name const.
10824 * c-exp.y: Update rules.
10825 (lex_one_token, classify_name, classify_inner_name)
10826 (c_print_token): Update.
10827 * p-exp.y: Update rules.
10828 (yylex): Update.
10829 * f-exp.y: Update rules.
10830 (yylex): Update.
10831 * d-exp.y: Update rules.
10832 (lex_one_token, classify_name, classify_inner_name): Update.
10833 * parse.c (write_dollar_variable, copy_name): Return std::string.
10834 * parser-defs.h (copy_name): Change return type.
10835 * m2-exp.y: Update rules.
10836 (yylex): Update.
10837 * go-exp.y (lex_one_token): Update.
10838 Update rules.
10839 (classify_unsafe_function, classify_packaged_name)
10840 (classify_name, yylex): Update.
10841
10842 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10843
10844 * configure.ac: add --enable-source-highlight switch.
10845 * configure: Regenerate.
10846 * top.c (print_gdb_version): plumb --enable-source-highlight
10847 status to "show configuration".
10848
10849 2019-04-19 Tom Tromey <tromey@adacore.com>
10850
10851 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10852 Check ADA_TYPE_P.
10853 (empty_record, ada_template_to_fixed_record_type_1)
10854 (template_to_static_fixed_type)
10855 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10856 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10857 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10858 macros.
10859
10860 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10861
10862 PR symtab/24423:
10863 * source.c (print_source_lines_base): Advance "iter" when a
10864 control character is seen.
10865
10866 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10867
10868 * inferior.h (struct infcall_suspend_state_deleter):
10869 Catch exception in destructor to avoid crash.
10870
10871 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10872
10873 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10874 close to the add_com "shell".
10875
10876 2019-04-18 Tom Tromey <tromey@adacore.com>
10877
10878 * process-stratum-target.h (class process_stratum_target)
10879 <stratum>: Add "final".
10880
10881 2019-04-17 Tom Tromey <tromey@adacore.com>
10882
10883 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10884 against nullptr before use.
10885
10886 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10887
10888 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10889
10890 2019-04-17 Jim Wilson <jimw@sifive.com>
10891 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10894 code read might fail, assume 4-byte breakpoint in that case.
10895
10896 2019-04-15 Leszek Swirski <leszeks@google.com>
10897
10898 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10899 rather than a hand-rolled POD check when checking for forced MEMORY
10900 classification.
10901
10902 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10903
10904 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10905 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10906 function.
10907 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10908 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10909 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10910 declaration.
10911
10912 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10913
10914 * aarch64-linux-nat.c
10915 (aarch64_linux_nat_target::thread_architecture): Add override.
10916 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10917 each VQ.
10918
10919 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10920
10921 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10922
10923 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10926 target types of size 96-bits, add some additional comments, and
10927 check that the builtin type we found was the correct size.
10928
10929 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10930
10931 * utils.c (prompt_for_continue): Don't restore the styling at the
10932 end, as applied_style has the wrong value. This fixes styling in
10933 long lists of file names that are interrupted by the "Continue?"
10934 prompt.
10935
10936 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10937
10938 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10939 * c-lang.c (c_language_defn): Likewise.
10940 (cplus_language_defn): Likewise.
10941 (asm_language_defn): Likewise.
10942 (minimal_language_defn): Likewise.
10943 * d-lang.c (d_language_defn): Likewise.
10944 * f-lang.c (f_language_defn): Likewise.
10945 * go-lang.c (go_language_defn): Likewise.
10946 * language.c (unknown_language_defn): Likewise.
10947 (auto_language_defn): Likewise.
10948 * language.h (struct language_defn): Remove la_magic field.
10949 (LANG_MAGIC): Delete.
10950 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10951 * objc-lang.c (objc_language_defn): Likewise.
10952 * opencl-lang.c (opencl_language_defn): Likewise.
10953 * p-lang.c (pascal_language_defn): Likewise.
10954 * rust-lang.c (rust_language_defn): Likewise.
10955
10956 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10957
10958 * riscv-tdep.c (riscv_type_align): New function.
10959 (riscv_type_alignment): Delete.
10960 (riscv_arg_location): Use 'type_align'.
10961 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10962
10963 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * gdbtypes.c (type_align): A struct with no non-static fields also
10966 has alignment of 1.
10967
10968 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10969
10970 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10971 component to 0.
10972 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10973 member.
10974 (riscv_struct_info::analyse): New implementation using new
10975 analyse_inner member function.
10976 (riscv_struct_info::field_offset): New member function.
10977 (riscv_struct_info::m_offsets): New member variable.
10978 (riscv_struct_info::analyse_inner): New private member function,
10979 takes the old implementation of riscv_struct_info::analyse but
10980 extended to track field offsets.
10981 (riscv_call_arg_struct): Update the struct folding special cases
10982 to handle cases where empty C++ structs, which are non-zero
10983 length, are found.
10984 (riscv_arg_location): Initialise the length of each location, a
10985 non-zero length now indicates the location is in use.
10986 (riscv_push_dummy_call): Allow for the first location having a
10987 non-zero offset when setting up arguments.
10988 (riscv_return_value): Likewise, but for return values.
10989
10990 2019-04-11 Tom Tromey <tromey@adacore.com>
10991
10992 * utils.c (internal_vproblem): Make "msg" const.
10993
10994 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10995
10996 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10997 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10998 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10999 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11000
11001 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11002
11003 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11004 function.
11005 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11006 of amd64_collect_native_gregset.
11007 (amd64_linux_nat_target::store_registers): Likewise.
11008
11009 2019-04-10 Tom Tromey <tom@tromey.com>
11010
11011 * symtab.c (lookup_global_symbol_from_objfile)
11012 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11013 * objfiles.h (class separate_debug_iterator): New.
11014 (class separate_debug_range): New.
11015 (struct objfile) <separate_debug_objfiles>: New method.
11016 (objfile_separate_debug_iterate): Don't declare.
11017 * objfiles.c (separate_debug_iterator::operator++): Rename from
11018 objfile_separate_debug_iterate.
11019 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11020 iterator.
11021 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11022 iterator.
11023
11024 2019-04-10 Tom Tromey <tom@tromey.com>
11025
11026 * symfile.c (reread_symbols): Remove old comment.
11027 * objfiles.c (free_all_objfiles): Fix a typo.
11028
11029 2019-04-10 Tom Tromey <tom@tromey.com>
11030
11031 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11032 * minsyms.c (lookup_minimal_symbol): Use foreach.
11033 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11034 (lookup_minimal_symbol_solib_trampoline): Likewise.
11035 * symfile.c (reread_symbols): Use foreach.
11036
11037 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11038 Tom Tromey <tromey@adacore.com>
11039
11040 PR rust/24414:
11041 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11042 (rust_lex_int_test): Change "value" to be LONGEST.
11043 (rust_lex_tests): Add test for long integer literal.
11044
11045 2019-04-09 Tom Tromey <tromey@adacore.com>
11046
11047 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11048 to bool.
11049 (extended_remote_target::attach): Update.
11050 (remote_target::remote_notice_new_inferior): Update.
11051 (remote_target::add_current_inferior_and_thread): Update.
11052 * inferior.c (exit_inferior_1): Use "false".
11053 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11054
11055 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11058 the "start" command.
11059
11060 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11061
11062 * python/py-inferior.c (infpy_thread_from_thread_handle):
11063 Adjust comments to reflect renaming of thread_from_thread_handle
11064 to thread_from_handle. Adjust keywords. Fix type error message.
11065 (inferior_object_methods): Add thread_from_handle. Retain
11066 thread_from_thread_handle, but mark it as deprecated.
11067
11068 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11069
11070 * gdbthread.h (find_thread_by_handle): Revise declaration.
11071 * thread.c (find_thread_by_handle): Likewise. Adjust
11072 implementation too.
11073 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11074 support for buffer objects as handles.
11075
11076 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11077
11078 * python/py-infthread.c (thpy_thread_handle): New function.
11079 (thread_object_methods): Register thpy_thread_handle.
11080
11081 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11082
11083 * gdbthread.h (thread_to_thread_handle): Declare.
11084 * thread.c (gdbtypes.h): Include.
11085 (thread_to_thread_handle): New function.
11086
11087 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11088 (target_thread_info_to_thread_handle): Declare.
11089 * target.c (target_thread_info_to_thread_handle): New function.
11090 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11091 * target-delegates.c: Regenerate.
11092
11093 * linux-thread-db.c (class thread_db_target): Add method
11094 thread_info_to_thread_handle.
11095 (thread_db_target::thread_info_to_thread_handle): Define.
11096 * remote.c (class remote_target): Add new method
11097 thread_info_to_thread_handle.
11098 (remote_target::thread_info_to_thread_handle): Define.
11099
11100 2019-04-08 Pedro Alves <palves@redhat.com>
11101
11102 * common/common-exceptions.c (throw_exception): Don't create
11103 named object to throw; throw directly.
11104 (throw_it): Likewise. Don't initialize gdb_exception::message
11105 here, with new; pass FMT and AP to the ctor instead.
11106 * common/common-exceptions.h: Include <string>.
11107 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11108 const char *, va_list)): New ctor. Use std::make_shared.
11109 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11110 errors)): Delete.
11111 (gdb_exception_error::gdb_exception_error(enum errors, const char
11112 *, va_list)): New.
11113 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11114 Add assertion.
11115 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11116 errors)): Delete.
11117 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11118 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11119 Add assertion.
11120
11121 2019-04-08 Tom Tromey <tom@tromey.com>
11122
11123 * valops.c (value_rtti_indirect_type): Replace throw_exception
11124 with throw.
11125 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11126 with throw.
11127 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11128 throw.
11129 * target.c (target_translate_tls_address): Replace throw_exception
11130 with throw.
11131 * stack.c (frame_apply_command_count): Replace throw_exception
11132 with throw.
11133 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11134 throw.
11135 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11136 with throw.
11137 * rs6000-tdep.c (rs6000_frame_cache)
11138 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11139 * remote.c: Replace throw_exception with throw.
11140 * record-full.c (record_full_message, record_full_wait_1)
11141 (record_full_restore): Replace throw_exception with throw.
11142 * record-btrace.c:
11143 (get_thread_current_frame_id, record_btrace_start_replaying)
11144 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11145 (cmd_record_btrace_start): Replace throw_exception with throw.
11146 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11147 throw.
11148 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11149 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11150 * linespec.c:
11151 (find_linespec_symbols): Replace throw_exception with throw.
11152 * infrun.c (displaced_step_prepare, resume): Replace
11153 throw_exception with throw.
11154 * infcmd.c (post_create_inferior): Replace throw_exception with
11155 throw.
11156 * inf-loop.c (inferior_event_handler): Replace throw_exception
11157 with throw.
11158 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11159 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11160 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11161 (get_prev_frame_always, get_frame_pc_if_available)
11162 (get_frame_address_in_block_if_available, get_frame_language):
11163 Replace throw_exception with throw.
11164 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11165 throw_exception with throw.
11166 * eval.c (fetch_subexp_value, evaluate_var_value)
11167 (evaluate_funcall, evaluate_subexp_standard): Replace
11168 throw_exception with throw.
11169 * dwarf2loc.c (call_site_find_chain)
11170 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11171 Replace throw_exception with throw.
11172 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11173 with throw.
11174 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11175 throw.
11176 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11177 * completer.c (complete_line_internal): Replace throw_exception
11178 with throw.
11179 * compile/compile-object-run.c (compile_object_run): Replace
11180 throw_exception with throw.
11181 * cli/cli-script.c (process_next_line): Replace throw_exception
11182 with throw.
11183 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11184 (btrace_enable, btrace_maint_update_pt_packets): Replace
11185 throw_exception with throw.
11186 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11187 throw_exception with throw.
11188 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11189 throw_exception with throw.
11190 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11191 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11192 * aarch64-tdep.c (aarch64_make_prologue_cache)
11193 (aarch64_make_stub_cache): Replace throw_exception with throw.
11194
11195 2019-04-08 Tom Tromey <tom@tromey.com>
11196
11197 * common/common-exceptions.c (throw_exception): Rename from
11198 throw_exception_cxx. Remove old copy. Make argument const.
11199 (throw_it): Create and throw exception objects directly.
11200 * common/common-exceptions.h (throw_exception): Make argument
11201 const.
11202 (struct gdb_exception_error): Add constructor.
11203 (struct gdb_exception_quit): Add constructor.
11204
11205 2019-04-08 Tom Tromey <tom@tromey.com>
11206
11207 * common/common-exceptions.h (exception_rethrow): Don't declare.
11208 (TRY_SJLJ): Update comment.
11209 (TRY, CATCH, END_CATCH): Remove.
11210 * common/common-exceptions.c (exception_rethrow): Remove.
11211
11212 2019-04-08 Tom Tromey <tom@tromey.com>
11213
11214 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11215 Remove.
11216 (gdb_exception_error): Rename from
11217 gdb_exception_RETURN_MASK_ERROR.
11218 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11219 (gdb_quit_bad_alloc): Update.
11220 * aarch64-tdep.c: Update.
11221 * ada-lang.c: Update.
11222 * ada-typeprint.c: Update.
11223 * ada-valprint.c: Update.
11224 * amd64-tdep.c: Update.
11225 * arch-utils.c: Update.
11226 * break-catch-throw.c: Update.
11227 * breakpoint.c: Update.
11228 * btrace.c: Update.
11229 * c-varobj.c: Update.
11230 * cli/cli-cmds.c: Update.
11231 * cli/cli-interp.c: Update.
11232 * cli/cli-script.c: Update.
11233 * common/common-exceptions.c: Update.
11234 * common/new-op.c: Update.
11235 * common/selftest.c: Update.
11236 * compile/compile-c-symbols.c: Update.
11237 * compile/compile-cplus-symbols.c: Update.
11238 * compile/compile-object-load.c: Update.
11239 * compile/compile-object-run.c: Update.
11240 * completer.c: Update.
11241 * corelow.c: Update.
11242 * cp-abi.c: Update.
11243 * cp-support.c: Update.
11244 * cp-valprint.c: Update.
11245 * darwin-nat.c: Update.
11246 * disasm-selftests.c: Update.
11247 * dtrace-probe.c: Update.
11248 * dwarf-index-cache.c: Update.
11249 * dwarf-index-write.c: Update.
11250 * dwarf2-frame-tailcall.c: Update.
11251 * dwarf2-frame.c: Update.
11252 * dwarf2loc.c: Update.
11253 * dwarf2read.c: Update.
11254 * eval.c: Update.
11255 * event-loop.c: Update.
11256 * event-top.c: Update.
11257 * exec.c: Update.
11258 * f-valprint.c: Update.
11259 * fbsd-tdep.c: Update.
11260 * frame-unwind.c: Update.
11261 * frame.c: Update.
11262 * gdbtypes.c: Update.
11263 * gnu-v3-abi.c: Update.
11264 * guile/guile-internal.h: Update.
11265 * guile/scm-block.c: Update.
11266 * guile/scm-breakpoint.c: Update.
11267 * guile/scm-cmd.c: Update.
11268 * guile/scm-disasm.c: Update.
11269 * guile/scm-frame.c: Update.
11270 * guile/scm-lazy-string.c: Update.
11271 * guile/scm-math.c: Update.
11272 * guile/scm-param.c: Update.
11273 * guile/scm-ports.c: Update.
11274 * guile/scm-pretty-print.c: Update.
11275 * guile/scm-symbol.c: Update.
11276 * guile/scm-symtab.c: Update.
11277 * guile/scm-type.c: Update.
11278 * guile/scm-value.c: Update.
11279 * i386-linux-tdep.c: Update.
11280 * i386-tdep.c: Update.
11281 * inf-loop.c: Update.
11282 * infcall.c: Update.
11283 * infcmd.c: Update.
11284 * infrun.c: Update.
11285 * jit.c: Update.
11286 * language.c: Update.
11287 * linespec.c: Update.
11288 * linux-fork.c: Update.
11289 * linux-nat.c: Update.
11290 * linux-tdep.c: Update.
11291 * linux-thread-db.c: Update.
11292 * main.c: Update.
11293 * mi/mi-cmd-break.c: Update.
11294 * mi/mi-cmd-stack.c: Update.
11295 * mi/mi-interp.c: Update.
11296 * mi/mi-main.c: Update.
11297 * objc-lang.c: Update.
11298 * p-valprint.c: Update.
11299 * parse.c: Update.
11300 * ppc-linux-tdep.c: Update.
11301 * printcmd.c: Update.
11302 * python/py-arch.c: Update.
11303 * python/py-breakpoint.c: Update.
11304 * python/py-cmd.c: Update.
11305 * python/py-finishbreakpoint.c: Update.
11306 * python/py-frame.c: Update.
11307 * python/py-framefilter.c: Update.
11308 * python/py-gdb-readline.c: Update.
11309 * python/py-inferior.c: Update.
11310 * python/py-infthread.c: Update.
11311 * python/py-lazy-string.c: Update.
11312 * python/py-linetable.c: Update.
11313 * python/py-objfile.c: Update.
11314 * python/py-param.c: Update.
11315 * python/py-prettyprint.c: Update.
11316 * python/py-progspace.c: Update.
11317 * python/py-record-btrace.c: Update.
11318 * python/py-record.c: Update.
11319 * python/py-symbol.c: Update.
11320 * python/py-type.c: Update.
11321 * python/py-unwind.c: Update.
11322 * python/py-utils.c: Update.
11323 * python/py-value.c: Update.
11324 * python/python.c: Update.
11325 * record-btrace.c: Update.
11326 * record-full.c: Update.
11327 * remote-fileio.c: Update.
11328 * remote.c: Update.
11329 * riscv-tdep.c: Update.
11330 * rs6000-aix-tdep.c: Update.
11331 * rs6000-tdep.c: Update.
11332 * rust-exp.y: Update.
11333 * rust-lang.c: Update.
11334 * s390-tdep.c: Update.
11335 * selftest-arch.c: Update.
11336 * solib-dsbt.c: Update.
11337 * solib-frv.c: Update.
11338 * solib-spu.c: Update.
11339 * solib-svr4.c: Update.
11340 * solib.c: Update.
11341 * sparc64-linux-tdep.c: Update.
11342 * stack.c: Update.
11343 * symfile-mem.c: Update.
11344 * symmisc.c: Update.
11345 * target.c: Update.
11346 * thread.c: Update.
11347 * top.c: Update.
11348 * tracefile-tfile.c: Update.
11349 * tui/tui.c: Update.
11350 * typeprint.c: Update.
11351 * unittests/cli-utils-selftests.c: Update.
11352 * unittests/parse-connection-spec-selftests.c: Update.
11353 * valops.c: Update.
11354 * valprint.c: Update.
11355 * value.c: Update.
11356 * varobj.c: Update.
11357 * windows-nat.c: Update.
11358 * x86-linux-nat.c: Update.
11359 * xml-support.c: Update.
11360
11361 2019-04-08 Tom Tromey <tom@tromey.com>
11362
11363 * xml-support.c: Use C++ exception handling.
11364 * x86-linux-nat.c: Use C++ exception handling.
11365 * windows-nat.c: Use C++ exception handling.
11366 * varobj.c: Use C++ exception handling.
11367 * value.c: Use C++ exception handling.
11368 * valprint.c: Use C++ exception handling.
11369 * valops.c: Use C++ exception handling.
11370 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11371 handling.
11372 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11373 * typeprint.c: Use C++ exception handling.
11374 * tui/tui.c: Use C++ exception handling.
11375 * tracefile-tfile.c: Use C++ exception handling.
11376 * top.c: Use C++ exception handling.
11377 * thread.c: Use C++ exception handling.
11378 * target.c: Use C++ exception handling.
11379 * symmisc.c: Use C++ exception handling.
11380 * symfile-mem.c: Use C++ exception handling.
11381 * stack.c: Use C++ exception handling.
11382 * sparc64-linux-tdep.c: Use C++ exception handling.
11383 * solib.c: Use C++ exception handling.
11384 * solib-svr4.c: Use C++ exception handling.
11385 * solib-spu.c: Use C++ exception handling.
11386 * solib-frv.c: Use C++ exception handling.
11387 * solib-dsbt.c: Use C++ exception handling.
11388 * selftest-arch.c: Use C++ exception handling.
11389 * s390-tdep.c: Use C++ exception handling.
11390 * rust-lang.c: Use C++ exception handling.
11391 * rust-exp.y: Use C++ exception handling.
11392 * rs6000-tdep.c: Use C++ exception handling.
11393 * rs6000-aix-tdep.c: Use C++ exception handling.
11394 * riscv-tdep.c: Use C++ exception handling.
11395 * remote.c: Use C++ exception handling.
11396 * remote-fileio.c: Use C++ exception handling.
11397 * record-full.c: Use C++ exception handling.
11398 * record-btrace.c: Use C++ exception handling.
11399 * python/python.c: Use C++ exception handling.
11400 * python/py-value.c: Use C++ exception handling.
11401 * python/py-utils.c: Use C++ exception handling.
11402 * python/py-unwind.c: Use C++ exception handling.
11403 * python/py-type.c: Use C++ exception handling.
11404 * python/py-symbol.c: Use C++ exception handling.
11405 * python/py-record.c: Use C++ exception handling.
11406 * python/py-record-btrace.c: Use C++ exception handling.
11407 * python/py-progspace.c: Use C++ exception handling.
11408 * python/py-prettyprint.c: Use C++ exception handling.
11409 * python/py-param.c: Use C++ exception handling.
11410 * python/py-objfile.c: Use C++ exception handling.
11411 * python/py-linetable.c: Use C++ exception handling.
11412 * python/py-lazy-string.c: Use C++ exception handling.
11413 * python/py-infthread.c: Use C++ exception handling.
11414 * python/py-inferior.c: Use C++ exception handling.
11415 * python/py-gdb-readline.c: Use C++ exception handling.
11416 * python/py-framefilter.c: Use C++ exception handling.
11417 * python/py-frame.c: Use C++ exception handling.
11418 * python/py-finishbreakpoint.c: Use C++ exception handling.
11419 * python/py-cmd.c: Use C++ exception handling.
11420 * python/py-breakpoint.c: Use C++ exception handling.
11421 * python/py-arch.c: Use C++ exception handling.
11422 * printcmd.c: Use C++ exception handling.
11423 * ppc-linux-tdep.c: Use C++ exception handling.
11424 * parse.c: Use C++ exception handling.
11425 * p-valprint.c: Use C++ exception handling.
11426 * objc-lang.c: Use C++ exception handling.
11427 * mi/mi-main.c: Use C++ exception handling.
11428 * mi/mi-interp.c: Use C++ exception handling.
11429 * mi/mi-cmd-stack.c: Use C++ exception handling.
11430 * mi/mi-cmd-break.c: Use C++ exception handling.
11431 * main.c: Use C++ exception handling.
11432 * linux-thread-db.c: Use C++ exception handling.
11433 * linux-tdep.c: Use C++ exception handling.
11434 * linux-nat.c: Use C++ exception handling.
11435 * linux-fork.c: Use C++ exception handling.
11436 * linespec.c: Use C++ exception handling.
11437 * language.c: Use C++ exception handling.
11438 * jit.c: Use C++ exception handling.
11439 * infrun.c: Use C++ exception handling.
11440 * infcmd.c: Use C++ exception handling.
11441 * infcall.c: Use C++ exception handling.
11442 * inf-loop.c: Use C++ exception handling.
11443 * i386-tdep.c: Use C++ exception handling.
11444 * i386-linux-tdep.c: Use C++ exception handling.
11445 * guile/scm-value.c: Use C++ exception handling.
11446 * guile/scm-type.c: Use C++ exception handling.
11447 * guile/scm-symtab.c: Use C++ exception handling.
11448 * guile/scm-symbol.c: Use C++ exception handling.
11449 * guile/scm-pretty-print.c: Use C++ exception handling.
11450 * guile/scm-ports.c: Use C++ exception handling.
11451 * guile/scm-param.c: Use C++ exception handling.
11452 * guile/scm-math.c: Use C++ exception handling.
11453 * guile/scm-lazy-string.c: Use C++ exception handling.
11454 * guile/scm-frame.c: Use C++ exception handling.
11455 * guile/scm-disasm.c: Use C++ exception handling.
11456 * guile/scm-cmd.c: Use C++ exception handling.
11457 * guile/scm-breakpoint.c: Use C++ exception handling.
11458 * guile/scm-block.c: Use C++ exception handling.
11459 * guile/guile-internal.h: Use C++ exception handling.
11460 * gnu-v3-abi.c: Use C++ exception handling.
11461 * gdbtypes.c: Use C++ exception handling.
11462 * frame.c: Use C++ exception handling.
11463 * frame-unwind.c: Use C++ exception handling.
11464 * fbsd-tdep.c: Use C++ exception handling.
11465 * f-valprint.c: Use C++ exception handling.
11466 * exec.c: Use C++ exception handling.
11467 * event-top.c: Use C++ exception handling.
11468 * event-loop.c: Use C++ exception handling.
11469 * eval.c: Use C++ exception handling.
11470 * dwarf2read.c: Use C++ exception handling.
11471 * dwarf2loc.c: Use C++ exception handling.
11472 * dwarf2-frame.c: Use C++ exception handling.
11473 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11474 * dwarf-index-write.c: Use C++ exception handling.
11475 * dwarf-index-cache.c: Use C++ exception handling.
11476 * dtrace-probe.c: Use C++ exception handling.
11477 * disasm-selftests.c: Use C++ exception handling.
11478 * darwin-nat.c: Use C++ exception handling.
11479 * cp-valprint.c: Use C++ exception handling.
11480 * cp-support.c: Use C++ exception handling.
11481 * cp-abi.c: Use C++ exception handling.
11482 * corelow.c: Use C++ exception handling.
11483 * completer.c: Use C++ exception handling.
11484 * compile/compile-object-run.c: Use C++ exception handling.
11485 * compile/compile-object-load.c: Use C++ exception handling.
11486 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11487 * compile/compile-c-symbols.c: Use C++ exception handling.
11488 * common/selftest.c: Use C++ exception handling.
11489 * common/new-op.c: Use C++ exception handling.
11490 * cli/cli-script.c: Use C++ exception handling.
11491 * cli/cli-interp.c: Use C++ exception handling.
11492 * cli/cli-cmds.c: Use C++ exception handling.
11493 * c-varobj.c: Use C++ exception handling.
11494 * btrace.c: Use C++ exception handling.
11495 * breakpoint.c: Use C++ exception handling.
11496 * break-catch-throw.c: Use C++ exception handling.
11497 * arch-utils.c: Use C++ exception handling.
11498 * amd64-tdep.c: Use C++ exception handling.
11499 * ada-valprint.c: Use C++ exception handling.
11500 * ada-typeprint.c: Use C++ exception handling.
11501 * ada-lang.c: Use C++ exception handling.
11502 * aarch64-tdep.c: Use C++ exception handling.
11503
11504 2019-04-08 Tom Tromey <tom@tromey.com>
11505
11506 * xml-support.c (gdb_xml_parser::parse): Update.
11507 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11508 * value.c (show_convenience): Update.
11509 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11510 (test_parse_flags_qcs): Update.
11511 * thread.c (thr_try_catch_cmd): Update.
11512 * target.c (target_translate_tls_address): Update.
11513 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11514 (info_frame_command_core, frame_apply_command_count): Update.
11515 * rust-exp.y (rust_lex_exception_test): Update.
11516 * riscv-tdep.c (riscv_print_one_register_info): Update.
11517 * remote.c (remote_target::enable_btrace): Update.
11518 * record-btrace.c (record_btrace_enable_warn): Update.
11519 * python/py-utils.c (gdbpy_convert_exception): Update.
11520 * printcmd.c (do_one_display, print_variable_and_value): Update.
11521 * mi/mi-main.c (mi_print_exception): Update.
11522 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11523 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11524 * linux-nat.c (linux_nat_target::attach): Update.
11525 * linux-fork.c (class scoped_switch_fork_info): Update.
11526 * infrun.c (displaced_step_prepare): Update.
11527 * infcall.c (call_function_by_hand_dummy): Update.
11528 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11529 * gnu-v3-abi.c (print_one_vtable): Update.
11530 * frame.c (get_prev_frame_always): Update.
11531 * f-valprint.c (info_common_command_for_block): Update.
11532 * exec.c (try_open_exec_file): Update.
11533 * exceptions.c (print_exception, exception_print)
11534 (exception_fprintf, exception_print_same): Update.
11535 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11536 * dwarf-index-cache.c (index_cache::store)
11537 (index_cache::lookup_gdb_index): Update.
11538 * darwin-nat.c (maybe_cache_shell): Update.
11539 * cp-valprint.c (cp_print_value_fields): Update.
11540 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11541 (gcc_cplus_symbol_address): Update.
11542 * compile/compile-c-symbols.c (gcc_convert_symbol)
11543 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11544 * common/selftest.c: Update.
11545 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11546 a std::string.
11547 (exception_try_scope_entry, exception_try_scope_exit): Don't
11548 declare.
11549 (struct exception_try_scope): Remove.
11550 (TRY): Don't use exception_try_scope.
11551 (struct gdb_exception): Add constructor, operator=.
11552 <what>: New method.
11553 (struct gdb_exception_RETURN_MASK_ALL)
11554 (struct gdb_exception_RETURN_MASK_ERROR)
11555 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11556 (struct gdb_quit_bad_alloc): Update.
11557 * common/common-exceptions.c (exception_none): Change
11558 initializer.
11559 (struct catcher) <state, exception>: Initialize inline.
11560 <prev>: Remove member.
11561 (current_catcher): Remove.
11562 (catchers): New global.
11563 (exceptions_state_mc_init): Simplify.
11564 (catcher_pop): Remove.
11565 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11566 (try_scope_depth, exception_try_scope_entry)
11567 (exception_try_scope_exit): Remove.
11568 (throw_exception_sjlj): Update.
11569 (exception_messages, exception_messages_size): Remove.
11570 (throw_it): Simplify.
11571 (gdb_exception_sliced_copy): Remove.
11572 (throw_exception_cxx): Update.
11573 * cli/cli-script.c (script_from_file): Update.
11574 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11575 Update.
11576 * ada-valprint.c (ada_val_print): Update.
11577 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11578 (create_excep_cond_exprs): Update.
11579
11580 2019-04-08 Tom Tromey <tom@tromey.com>
11581
11582 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11583 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11584 (TRY, CATCH, END_CATCH): Remove some definitions.
11585 * common/common-exceptions.c: Don't use GDB_XCPT.
11586 (catcher_list_size): Remove.
11587 (throw_exception, throw_it): Simplify.
11588
11589 2019-04-05 Tom Tromey <tom@tromey.com>
11590
11591 Revert the header-sorting patch.
11592 * ft32-tdep.c: Revert.
11593 * frv-tdep.c: Revert.
11594 * frv-linux-tdep.c: Revert.
11595 * frame.c: Revert.
11596 * frame-unwind.c: Revert.
11597 * frame-base.c: Revert.
11598 * fork-child.c: Revert.
11599 * findvar.c: Revert.
11600 * findcmd.c: Revert.
11601 * filesystem.c: Revert.
11602 * filename-seen-cache.h: Revert.
11603 * filename-seen-cache.c: Revert.
11604 * fbsd-tdep.c: Revert.
11605 * fbsd-nat.h: Revert.
11606 * fbsd-nat.c: Revert.
11607 * f-valprint.c: Revert.
11608 * f-typeprint.c: Revert.
11609 * f-lang.c: Revert.
11610 * extension.h: Revert.
11611 * extension.c: Revert.
11612 * extension-priv.h: Revert.
11613 * expprint.c: Revert.
11614 * exec.h: Revert.
11615 * exec.c: Revert.
11616 * exceptions.c: Revert.
11617 * event-top.c: Revert.
11618 * event-loop.c: Revert.
11619 * eval.c: Revert.
11620 * elfread.c: Revert.
11621 * dwarf2read.h: Revert.
11622 * dwarf2read.c: Revert.
11623 * dwarf2loc.c: Revert.
11624 * dwarf2expr.h: Revert.
11625 * dwarf2expr.c: Revert.
11626 * dwarf2-frame.c: Revert.
11627 * dwarf2-frame-tailcall.c: Revert.
11628 * dwarf-index-write.h: Revert.
11629 * dwarf-index-write.c: Revert.
11630 * dwarf-index-common.c: Revert.
11631 * dwarf-index-cache.h: Revert.
11632 * dwarf-index-cache.c: Revert.
11633 * dummy-frame.c: Revert.
11634 * dtrace-probe.c: Revert.
11635 * disasm.h: Revert.
11636 * disasm.c: Revert.
11637 * disasm-selftests.c: Revert.
11638 * dictionary.c: Revert.
11639 * dicos-tdep.c: Revert.
11640 * demangle.c: Revert.
11641 * dcache.h: Revert.
11642 * dcache.c: Revert.
11643 * darwin-nat.h: Revert.
11644 * darwin-nat.c: Revert.
11645 * darwin-nat-info.c: Revert.
11646 * d-valprint.c: Revert.
11647 * d-namespace.c: Revert.
11648 * d-lang.c: Revert.
11649 * ctf.c: Revert.
11650 * csky-tdep.c: Revert.
11651 * csky-linux-tdep.c: Revert.
11652 * cris-tdep.c: Revert.
11653 * cris-linux-tdep.c: Revert.
11654 * cp-valprint.c: Revert.
11655 * cp-support.c: Revert.
11656 * cp-namespace.c: Revert.
11657 * cp-abi.c: Revert.
11658 * corelow.c: Revert.
11659 * corefile.c: Revert.
11660 * continuations.c: Revert.
11661 * completer.h: Revert.
11662 * completer.c: Revert.
11663 * complaints.c: Revert.
11664 * coffread.c: Revert.
11665 * coff-pe-read.c: Revert.
11666 * cli-out.h: Revert.
11667 * cli-out.c: Revert.
11668 * charset.c: Revert.
11669 * c-varobj.c: Revert.
11670 * c-valprint.c: Revert.
11671 * c-typeprint.c: Revert.
11672 * c-lang.c: Revert.
11673 * buildsym.c: Revert.
11674 * buildsym-legacy.c: Revert.
11675 * build-id.h: Revert.
11676 * build-id.c: Revert.
11677 * btrace.c: Revert.
11678 * bsd-uthread.c: Revert.
11679 * breakpoint.h: Revert.
11680 * breakpoint.c: Revert.
11681 * break-catch-throw.c: Revert.
11682 * break-catch-syscall.c: Revert.
11683 * break-catch-sig.c: Revert.
11684 * blockframe.c: Revert.
11685 * block.c: Revert.
11686 * bfin-tdep.c: Revert.
11687 * bfin-linux-tdep.c: Revert.
11688 * bfd-target.c: Revert.
11689 * bcache.c: Revert.
11690 * ax-general.c: Revert.
11691 * ax-gdb.h: Revert.
11692 * ax-gdb.c: Revert.
11693 * avr-tdep.c: Revert.
11694 * auxv.c: Revert.
11695 * auto-load.c: Revert.
11696 * arm-wince-tdep.c: Revert.
11697 * arm-tdep.c: Revert.
11698 * arm-symbian-tdep.c: Revert.
11699 * arm-pikeos-tdep.c: Revert.
11700 * arm-obsd-tdep.c: Revert.
11701 * arm-nbsd-tdep.c: Revert.
11702 * arm-nbsd-nat.c: Revert.
11703 * arm-linux-tdep.c: Revert.
11704 * arm-linux-nat.c: Revert.
11705 * arm-fbsd-tdep.c: Revert.
11706 * arm-fbsd-nat.c: Revert.
11707 * arm-bsd-tdep.c: Revert.
11708 * arch-utils.c: Revert.
11709 * arc-tdep.c: Revert.
11710 * arc-newlib-tdep.c: Revert.
11711 * annotate.h: Revert.
11712 * annotate.c: Revert.
11713 * amd64-windows-tdep.c: Revert.
11714 * amd64-windows-nat.c: Revert.
11715 * amd64-tdep.c: Revert.
11716 * amd64-sol2-tdep.c: Revert.
11717 * amd64-obsd-tdep.c: Revert.
11718 * amd64-obsd-nat.c: Revert.
11719 * amd64-nbsd-tdep.c: Revert.
11720 * amd64-nbsd-nat.c: Revert.
11721 * amd64-nat.c: Revert.
11722 * amd64-linux-tdep.c: Revert.
11723 * amd64-linux-nat.c: Revert.
11724 * amd64-fbsd-tdep.c: Revert.
11725 * amd64-fbsd-nat.c: Revert.
11726 * amd64-dicos-tdep.c: Revert.
11727 * amd64-darwin-tdep.c: Revert.
11728 * amd64-bsd-nat.c: Revert.
11729 * alpha-tdep.c: Revert.
11730 * alpha-obsd-tdep.c: Revert.
11731 * alpha-nbsd-tdep.c: Revert.
11732 * alpha-mdebug-tdep.c: Revert.
11733 * alpha-linux-tdep.c: Revert.
11734 * alpha-linux-nat.c: Revert.
11735 * alpha-bsd-tdep.c: Revert.
11736 * alpha-bsd-nat.c: Revert.
11737 * aix-thread.c: Revert.
11738 * agent.c: Revert.
11739 * addrmap.c: Revert.
11740 * ada-varobj.c: Revert.
11741 * ada-valprint.c: Revert.
11742 * ada-typeprint.c: Revert.
11743 * ada-tasks.c: Revert.
11744 * ada-lang.c: Revert.
11745 * aarch64-tdep.c: Revert.
11746 * aarch64-ravenscar-thread.c: Revert.
11747 * aarch64-newlib-tdep.c: Revert.
11748 * aarch64-linux-tdep.c: Revert.
11749 * aarch64-linux-nat.c: Revert.
11750 * aarch64-fbsd-tdep.c: Revert.
11751 * aarch64-fbsd-nat.c: Revert.
11752 * aarch32-linux-nat.c: Revert.
11753
11754 2019-04-05 Tom Tromey <tom@tromey.com>
11755
11756 * ft32-tdep.c: Sort headers.
11757 * frv-tdep.c: Sort headers.
11758 * frv-linux-tdep.c: Sort headers.
11759 * frame.c: Sort headers.
11760 * frame-unwind.c: Sort headers.
11761 * frame-base.c: Sort headers.
11762 * fork-child.c: Sort headers.
11763 * findvar.c: Sort headers.
11764 * findcmd.c: Sort headers.
11765 * filesystem.c: Sort headers.
11766 * filename-seen-cache.h: Sort headers.
11767 * filename-seen-cache.c: Sort headers.
11768 * fbsd-tdep.c: Sort headers.
11769 * fbsd-nat.h: Sort headers.
11770 * fbsd-nat.c: Sort headers.
11771 * f-valprint.c: Sort headers.
11772 * f-typeprint.c: Sort headers.
11773 * f-lang.c: Sort headers.
11774 * extension.h: Sort headers.
11775 * extension.c: Sort headers.
11776 * extension-priv.h: Sort headers.
11777 * expprint.c: Sort headers.
11778 * exec.h: Sort headers.
11779 * exec.c: Sort headers.
11780 * exceptions.c: Sort headers.
11781 * event-top.c: Sort headers.
11782 * event-loop.c: Sort headers.
11783 * eval.c: Sort headers.
11784 * elfread.c: Sort headers.
11785 * dwarf2read.h: Sort headers.
11786 * dwarf2read.c: Sort headers.
11787 * dwarf2loc.c: Sort headers.
11788 * dwarf2expr.h: Sort headers.
11789 * dwarf2expr.c: Sort headers.
11790 * dwarf2-frame.c: Sort headers.
11791 * dwarf2-frame-tailcall.c: Sort headers.
11792 * dwarf-index-write.h: Sort headers.
11793 * dwarf-index-write.c: Sort headers.
11794 * dwarf-index-common.c: Sort headers.
11795 * dwarf-index-cache.h: Sort headers.
11796 * dwarf-index-cache.c: Sort headers.
11797 * dummy-frame.c: Sort headers.
11798 * dtrace-probe.c: Sort headers.
11799 * disasm.h: Sort headers.
11800 * disasm.c: Sort headers.
11801 * disasm-selftests.c: Sort headers.
11802 * dictionary.c: Sort headers.
11803 * dicos-tdep.c: Sort headers.
11804 * demangle.c: Sort headers.
11805 * dcache.h: Sort headers.
11806 * dcache.c: Sort headers.
11807 * darwin-nat.h: Sort headers.
11808 * darwin-nat.c: Sort headers.
11809 * darwin-nat-info.c: Sort headers.
11810 * d-valprint.c: Sort headers.
11811 * d-namespace.c: Sort headers.
11812 * d-lang.c: Sort headers.
11813 * ctf.c: Sort headers.
11814 * csky-tdep.c: Sort headers.
11815 * csky-linux-tdep.c: Sort headers.
11816 * cris-tdep.c: Sort headers.
11817 * cris-linux-tdep.c: Sort headers.
11818 * cp-valprint.c: Sort headers.
11819 * cp-support.c: Sort headers.
11820 * cp-namespace.c: Sort headers.
11821 * cp-abi.c: Sort headers.
11822 * corelow.c: Sort headers.
11823 * corefile.c: Sort headers.
11824 * continuations.c: Sort headers.
11825 * completer.h: Sort headers.
11826 * completer.c: Sort headers.
11827 * complaints.c: Sort headers.
11828 * coffread.c: Sort headers.
11829 * coff-pe-read.c: Sort headers.
11830 * cli-out.h: Sort headers.
11831 * cli-out.c: Sort headers.
11832 * charset.c: Sort headers.
11833 * c-varobj.c: Sort headers.
11834 * c-valprint.c: Sort headers.
11835 * c-typeprint.c: Sort headers.
11836 * c-lang.c: Sort headers.
11837 * buildsym.c: Sort headers.
11838 * buildsym-legacy.c: Sort headers.
11839 * build-id.h: Sort headers.
11840 * build-id.c: Sort headers.
11841 * btrace.c: Sort headers.
11842 * bsd-uthread.c: Sort headers.
11843 * breakpoint.h: Sort headers.
11844 * breakpoint.c: Sort headers.
11845 * break-catch-throw.c: Sort headers.
11846 * break-catch-syscall.c: Sort headers.
11847 * break-catch-sig.c: Sort headers.
11848 * blockframe.c: Sort headers.
11849 * block.c: Sort headers.
11850 * bfin-tdep.c: Sort headers.
11851 * bfin-linux-tdep.c: Sort headers.
11852 * bfd-target.c: Sort headers.
11853 * bcache.c: Sort headers.
11854 * ax-general.c: Sort headers.
11855 * ax-gdb.h: Sort headers.
11856 * ax-gdb.c: Sort headers.
11857 * avr-tdep.c: Sort headers.
11858 * auxv.c: Sort headers.
11859 * auto-load.c: Sort headers.
11860 * arm-wince-tdep.c: Sort headers.
11861 * arm-tdep.c: Sort headers.
11862 * arm-symbian-tdep.c: Sort headers.
11863 * arm-pikeos-tdep.c: Sort headers.
11864 * arm-obsd-tdep.c: Sort headers.
11865 * arm-nbsd-tdep.c: Sort headers.
11866 * arm-nbsd-nat.c: Sort headers.
11867 * arm-linux-tdep.c: Sort headers.
11868 * arm-linux-nat.c: Sort headers.
11869 * arm-fbsd-tdep.c: Sort headers.
11870 * arm-fbsd-nat.c: Sort headers.
11871 * arm-bsd-tdep.c: Sort headers.
11872 * arch-utils.c: Sort headers.
11873 * arc-tdep.c: Sort headers.
11874 * arc-newlib-tdep.c: Sort headers.
11875 * annotate.h: Sort headers.
11876 * annotate.c: Sort headers.
11877 * amd64-windows-tdep.c: Sort headers.
11878 * amd64-windows-nat.c: Sort headers.
11879 * amd64-tdep.c: Sort headers.
11880 * amd64-sol2-tdep.c: Sort headers.
11881 * amd64-obsd-tdep.c: Sort headers.
11882 * amd64-obsd-nat.c: Sort headers.
11883 * amd64-nbsd-tdep.c: Sort headers.
11884 * amd64-nbsd-nat.c: Sort headers.
11885 * amd64-nat.c: Sort headers.
11886 * amd64-linux-tdep.c: Sort headers.
11887 * amd64-linux-nat.c: Sort headers.
11888 * amd64-fbsd-tdep.c: Sort headers.
11889 * amd64-fbsd-nat.c: Sort headers.
11890 * amd64-dicos-tdep.c: Sort headers.
11891 * amd64-darwin-tdep.c: Sort headers.
11892 * amd64-bsd-nat.c: Sort headers.
11893 * alpha-tdep.c: Sort headers.
11894 * alpha-obsd-tdep.c: Sort headers.
11895 * alpha-nbsd-tdep.c: Sort headers.
11896 * alpha-mdebug-tdep.c: Sort headers.
11897 * alpha-linux-tdep.c: Sort headers.
11898 * alpha-linux-nat.c: Sort headers.
11899 * alpha-bsd-tdep.c: Sort headers.
11900 * alpha-bsd-nat.c: Sort headers.
11901 * aix-thread.c: Sort headers.
11902 * agent.c: Sort headers.
11903 * addrmap.c: Sort headers.
11904 * ada-varobj.c: Sort headers.
11905 * ada-valprint.c: Sort headers.
11906 * ada-typeprint.c: Sort headers.
11907 * ada-tasks.c: Sort headers.
11908 * ada-lang.c: Sort headers.
11909 * aarch64-tdep.c: Sort headers.
11910 * aarch64-ravenscar-thread.c: Sort headers.
11911 * aarch64-newlib-tdep.c: Sort headers.
11912 * aarch64-linux-tdep.c: Sort headers.
11913 * aarch64-linux-nat.c: Sort headers.
11914 * aarch64-fbsd-tdep.c: Sort headers.
11915 * aarch64-fbsd-nat.c: Sort headers.
11916 * aarch32-linux-nat.c: Sort headers.
11917
11918 2019-04-04 Tom Tromey <tom@tromey.com>
11919
11920 * varobj.c (varobj_create): Update.
11921 * rust-exp.y (struct rust_parser) <update_innermost_block,
11922 lookup_symbol>: New methods.
11923 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11924 Rename.
11925 (rust_parser::rust_lookup_type)
11926 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11927 * printcmd.c (display_command, do_one_display): Update.
11928 * parser-defs.h (struct parser_state) <parser_state>: Add
11929 "tracker" parameter.
11930 (block_tracker): New member.
11931 (class innermost_block_tracker) <innermost_block_tracker>: Add
11932 "types" parameter.
11933 <reset>: Remove method.
11934 (innermost_block): Don't declare.
11935 (null_post_parser): Update.
11936 * parse.c (innermost_block): Remove global.
11937 (write_dollar_variable): Update.
11938 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11939 Remove "tracker_types" parameter.
11940 (parse_expression): Add "tracker" parameter.
11941 (parse_expression_for_completion): Update.
11942 (null_post_parser): Add "tracker" parameter.
11943 * p-exp.y: Update rules.
11944 * m2-exp.y: Update rules.
11945 * language.h (struct language_defn) <la_post_parser>: Add
11946 "tracker" parameter.
11947 * go-exp.y: Update rules.
11948 * f-exp.y: Update rules.
11949 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11950 parameter.
11951 * d-exp.y: Update rules.
11952 * c-exp.y: Update rules.
11953 * breakpoint.c (set_breakpoint_condition): Create an
11954 innermost_block_tracker.
11955 (watch_command_1): Likewise.
11956 * ada-lang.c (resolve): Add "tracker" parameter.
11957 (resolve_subexp): Likewise.
11958 * ada-exp.y (write_var_from_sym): Update.
11959
11960 2019-04-04 Tom Tromey <tom@tromey.com>
11961
11962 * type-stack.h: New file.
11963 * type-stack.c: New file.
11964 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11965 type-stack.h.
11966 (insert_into_type_stack, insert_type, push_type, push_type_int)
11967 (insert_type_address_space, pop_type, pop_type_int)
11968 (pop_typelist, pop_type_stack, append_type_stack)
11969 (push_type_stack, get_type_stack, push_typelist)
11970 (follow_type_instance_flags, follow_types): Don't declare.
11971 * parse.c (type_stack): Remove global.
11972 (parse_exp_in_context): Update.
11973 (insert_into_type_stack, insert_type, push_type, push_type_int)
11974 (insert_type_address_space, pop_type, pop_type_int)
11975 (pop_typelist, pop_type_stack, append_type_stack)
11976 (push_type_stack, get_type_stack, push_typelist)
11977 (follow_type_instance_flags, follow_types): Remove (moved to
11978 type-stack.c).
11979 * f-exp.y (type_stack): New global.
11980 Update rules.
11981 (push_kind_type, f_parse): Update.
11982 * d-exp.y (type_stack): New global.
11983 Update rules.
11984 (d_parse): Update.
11985 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11986 Update rules.
11987 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11988 (HFILES_NO_SRCDIR): Add type-stack.h.
11989
11990 2019-04-04 Tom Tromey <tom@tromey.com>
11991
11992 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11993 (rust_parser::convert_ast_to_expression, rust_parse)
11994 (rust_lex_test_completion, rust_lex_tests): Update.
11995 * parser-defs.h (struct expr_completion_state): New.
11996 (struct parser_state) <parser_state>: Add completion parameter.
11997 <mark_struct_expression, mark_completion_tag>: New methods.
11998 <parse_completion, m_completion_state>: New members.
11999 (prefixify_expression, null_post_parser): Update.
12000 (mark_struct_expression, mark_completion_tag): Don't declare.
12001 * parse.c (parse_completion, expout_last_struct)
12002 (expout_tag_completion_type, expout_completion_name): Remove
12003 globals.
12004 (parser_state::mark_struct_expression)
12005 (parser_state::mark_completion_tag): Now methods.
12006 (prefixify_expression): Add last_struct parameter.
12007 (prefixify_subexp): Likewise.
12008 (parse_exp_1): Update.
12009 (parse_exp_in_context): Add cstate parameter. Update.
12010 (parse_expression_for_completion): Create an
12011 expr_completion_state.
12012 (null_post_parser): Add "completion" parameter.
12013 * p-exp.y: Update rules.
12014 (yylex): Update.
12015 * language.h (struct language_defn) <la_post_parser>: Add
12016 "completing" parameter.
12017 * go-exp.y: Update rules.
12018 (lex_one_token): Update.
12019 * expression.h (parse_completion): Don't declare.
12020 * d-exp.y: Update rules.
12021 (lex_one_token): Update rules.
12022 * c-exp.y: Update rules.
12023 (lex_one_token): Update.
12024 * ada-lang.c (resolve): Add "parse_completion" parameter.
12025 (resolve_subexp): Likewise.
12026 (ada_resolve_function): Likewise.
12027
12028 2019-04-04 Tom Tromey <tom@tromey.com>
12029
12030 * parser-defs.h (struct parser_state) <start_arglist,
12031 end_arglist>: New methods.
12032 <arglist_len, m_funcall_chain>: New members.
12033 (arglist_len, start_arglist, end_arglist): Don't declare.
12034 * parse.c (arglist_len, funcall_chain): Remove global.
12035 (start_arglist, end_arglist): Remove functions.
12036 (parse_exp_in_context): Update.
12037 * p-exp.y: Update rules.
12038 * m2-exp.y: Update rules.
12039 * go-exp.y: Update rules.
12040 * f-exp.y: Update rules.
12041 * d-exp.y: Update rules.
12042 * c-exp.y: Update rules.
12043
12044 2019-04-04 Tom Tromey <tom@tromey.com>
12045
12046 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12047 lex_operator, push_back>: New methods.
12048 Update all rules.
12049 (rust_parser::lex_hex, lex_escape): Rename and update.
12050 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12051 (rust_parser::lex_operator): Rename and update.
12052 (rust_parser::lex_number, rustyylex, rustyyerror)
12053 (rust_lex_test_init, rust_lex_test_sequence)
12054 (rust_lex_test_push_back, rust_lex_tests): Update.
12055 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12056 parameter.
12057 <lexptr, prev_lexptr>: New members.
12058 (lexptr, prev_lexptr): Don't declare.
12059 * parse.c (lexptr, prev_lexptr): Remove globals.
12060 (parse_exp_in_context): Update.
12061 * p-exp.y (yylex, yyerror): Update.
12062 * m2-exp.y (parse_number, yylex, yyerror): Update.
12063 * go-exp.y (lex_one_token, yyerror): Update.
12064 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12065 * d-exp.y (lex_one_token, yyerror): Update.
12066 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12067 (lex_one_token, yyerror): Update.
12068 * ada-lex.l (YY_INPUT): Update.
12069 (rewind_to_char): Update.
12070 * ada-exp.y (yyerror): Update.
12071
12072 2019-04-04 Tom Tromey <tom@tromey.com>
12073
12074 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12075 * parser-defs.h (struct parser_state) <parser_state>: Add new
12076 parameter.
12077 <comma_terminates>: New member.
12078 (comma_terminates): Don't declare global.
12079 * parse.c (comma_terminates): Remove global.
12080 (parse_exp_in_context): Update.
12081 * p-exp.y (yylex): Update.
12082 * m2-exp.y (yylex): Update.
12083 * go-exp.y (lex_one_token): Update.
12084 * f-exp.y (yylex): Update.
12085 * d-exp.y (lex_one_token): Update.
12086 * c-exp.y (lex_one_token): Update.
12087 * ada-lex.l: Update.
12088
12089 2019-04-04 Tom Tromey <tom@tromey.com>
12090
12091 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12092 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12093 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12094 * parser-defs.h (paren_depth): Don't declare.
12095 * parse.c (paren_depth): Remove global.
12096 (parse_exp_in_context): Update.
12097 * p-exp.y (paren_depth): New global.
12098 (pascal_parse): Initialize it.
12099 * m2-exp.y (paren_depth): New global.
12100 (m2_parse): Initialize it.
12101 * go-exp.y (paren_depth): New global.
12102 (go_parse): Initialize it.
12103 * f-exp.y (paren_depth): New global.
12104 (f_parse): Initialize it.
12105 * d-exp.y (paren_depth): New global.
12106 (d_parse): Initialize it.
12107 * c-exp.y (paren_depth): New global.
12108 (c_parse): Initialize it.
12109 * ada-lex.l (paren_depth): New global.
12110 (lexer_init): Initialize it.
12111
12112 2019-04-04 Tom Tromey <tom@tromey.com>
12113
12114 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12115 (rust_parser::convert_ast_to_type)
12116 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12117 * parser-defs.h (struct parser_state) <parser_state>: Add
12118 parameters. Initialize new members.
12119 <expression_context_block, expression_context_pc>: New members.
12120 * parse.c (expression_context_block, expression_context_pc):
12121 Remove globals.
12122 (parse_exp_in_context): Update.
12123 * p-exp.y: Update all rules.
12124 (yylex): Update.
12125 * m2-exp.y: Update all rules.
12126 (yylex): Update.
12127 * go-exp.y (yylex): Update.
12128 * f-exp.y (yylex): Update.
12129 * d-exp.y: Update all rules.
12130 (yylex): Update.
12131 * c-exp.y: Update all rules.
12132 (lex_one_token, classify_name, yylex, c_parse): Update.
12133 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12134
12135 2019-04-04 Tom Tromey <tom@tromey.com>
12136
12137 * gdbarch.h, gdbarch.c: Rebuild.
12138 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12139 * stap-probe.h:
12140 (struct stap_parse_info): Replace "parser_state" with
12141 "expr_builder".
12142 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12143 (parser_state): New class.
12144 * parse.c (expr_builder): Rename.
12145 (expr_builder::release): Rename.
12146 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12147 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12148 (write_exp_elt_longcst, write_exp_elt_floatcst)
12149 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12150 (write_exp_string_vector, write_exp_bitstring)
12151 (write_exp_msymbol, mark_struct_expression)
12152 (write_dollar_variable)
12153 (insert_type_address_space, increase_expout_size): Replace
12154 "parser_state" with "expr_builder".
12155 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12156 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12157 "parser_state" with "expr_builder".
12158
12159 2019-04-04 Tom Tromey <tom@tromey.com>
12160
12161 * rust-exp.y: Replace "parse_language" with method call.
12162 * p-exp.y:
12163 (yylex): Replace "parse_language" with method call.
12164 * m2-exp.y:
12165 (yylex): Replace "parse_language" with method call.
12166 * go-exp.y (classify_name): Replace "parse_language" with method
12167 call.
12168 * f-exp.y (yylex): Replace "parse_language" with method call.
12169 * d-exp.y (lex_one_token): Replace "parse_language" with method
12170 call.
12171 * c-exp.y:
12172 (lex_one_token, classify_name, yylex): Replace "parse_language"
12173 with method call.
12174 * ada-exp.y (find_primitive_type, type_char)
12175 (type_system_address): Replace "parse_language" with method call.
12176
12177 2019-04-04 Tom Tromey <tom@tromey.com>
12178
12179 * rust-exp.y: Replace "parse_gdbarch" with method call.
12180 * parse.c (write_dollar_variable, insert_type_address_space):
12181 Replace "parse_gdbarch" with method call.
12182 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12183 call.
12184 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12185 call.
12186 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12187 "parse_gdbarch" with method call.
12188 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12189 with method call.
12190 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12191 "parse_gdbarch" with method call.
12192 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12193 "parse_gdbarch" with method call.
12194 * c-exp.y (parse_type, parse_number, classify_name): Replace
12195 "parse_gdbarch" with method call.
12196 * ada-lex.l: Replace "parse_gdbarch" with method call.
12197 * ada-exp.y (parse_type, find_primitive_type, type_char)
12198 (type_system_address): Replace "parse_gdbarch" with method call.
12199
12200 2019-04-04 Tom Tromey <tom@tromey.com>
12201
12202 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12203 * stap-probe.c (stap_parse_argument): Update.
12204 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12205 initial_size parameter.
12206 * rust-exp.y (rust_lex_tests): Update.
12207 * parse.c (parser_state): Update.
12208 (parse_exp_in_context): Update.
12209 * parser-defs.h (struct parser_state) <parser_state>: Remove
12210 "initial_size" parameter.
12211
12212 2019-04-04 Tom Tromey <tom@tromey.com>
12213
12214 * parser-defs.h (increase_expout_size): Don't declare.
12215 * parse.c (increase_expout_size): Now static.
12216
12217 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12218
12219 * gnu-nat.c (gnu_nat_target::wait): Fix
12220 target_waitstatus_to_string call.
12221
12222 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12223
12224 * eval.c (evaluate_subexp_standard): Handle internal functions
12225 during Fortran function call handling.
12226
12227 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12228
12229 * NEWS: Mention new internal functions.
12230 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12231 (read_base_type): Use dwarf2_init_complex_target_type.
12232 * value.c (creal_internal_fn): New function.
12233 (cimag_internal_fn): New function.
12234 (_initialize_values): Register new internal functions.
12235
12236 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12237
12238 * infrun.c (stop_all_threads): If debug_infrun, always
12239 trace the wait status after wait_one, using
12240 target_waitstatus_to_string and target_pid_to_str.
12241 (handle_inferior_event): Replace various trace of
12242 wait status kind by a single trace.
12243 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12244 wait status kind image by target_waitstatus_to_string.
12245 * target/waitstatus.c (target_waitstatus_to_string): Fix
12246 obsolete comment.
12247
12248 2019-04-01 Tom Tromey <tromey@adacore.com>
12249
12250 PR symtab/23331:
12251 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12252
12253 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12254 Pedro Alves <palves@redhat.com>
12255
12256 * top.c (quit_force): Call 'finalize_values'.
12257 * value.c (finalize_values): New function.
12258 * value.h (finalize_values): Declare.
12259
12260 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12261
12262 * NEWS: Announce $_gdb_major and $_gdb_minor.
12263
12264 * top.c (init_gdb_version_vars): New function.
12265 (gdb_init): Call init_gdb_version_vars.
12266
12267 2019-03-29 Tom Tromey <tromey@adacore.com>
12268
12269 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12270 help text. Remove dead code.
12271
12272 2019-03-29 Keith Seitz <keiths@redhat.com>
12273
12274 From Siddhesh Poyarekar:
12275 * f-lang.h (f77_get_upperbound): Return LONGEST.
12276 (f77_get_lowerbound): Likewise.
12277 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12278 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12279 print them.
12280 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12281 plongest to format print it.
12282 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12283 (f77_get_upperbound): Likewise.
12284 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12285 LOWER_BOUND to LONGEST.
12286 (f77_create_arrayprint_offset_tbl): Likewise.
12287
12288 2019-03-29 Keith Seitz <keiths@redhat.com>
12289
12290 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12291 %s/pulongest for TYPE_LENGTH instead of %d in format
12292 strings.
12293 * ada-typerint.c (ada_print_type): Likewise.
12294 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12295 * compile/compile-c-support.c (generate_register_struct): Likewise.
12296 * gdbtypes.c (recursive_dump_type): Likewise.
12297 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12298 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12299 instead of %d in format strings.
12300 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12301 to std::min to ULONGEST.
12302 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12303 instead of %d in format strings.
12304 * tracepoint.c (info_scope_command): Likewise.
12305 * typeprint.c (print_offset_data::update)
12306 (print_offset_data::finish): Likewise.
12307 * xtensa-tdep.c (xtensa_store_return_value)
12308 (xtensa_push_dummy_call): Likewise.
12309
12310 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12311
12312 * windows-nat.c (display_selector): Fixed format specifications
12313 for 64-bit Cygwin.
12314
12315 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12316
12317 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12318
12319 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12320
12321 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12322 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12323 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12324 (nios2_linux_init_abi): Install it.
12325
12326 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12327
12328 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12329
12330 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12331
12332 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12333
12334 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12335 Tom Tromey <tromey@adacore.com>
12336
12337 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12338
12339 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12340
12341 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12342 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12343 method to compute the bounds of range types. Also print "[evaluated]"
12344 if the bounds' values come from a dynamic evaluation.
12345
12346 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12347
12348 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12349 whitespace when pretty printing is on.
12350
12351 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12352
12353 * ppc-linux-nat.c: Add include.
12354
12355 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12356
12357 * NEWS: Mention AArch64 Pointer Authentication.
12358
12359 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12360
12361 * arm-linux-nat.c: Add include.
12362
12363 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12364
12365 * source-cache.c (source_cache::get_source_lines): Re-read
12366 fullname after calling open_source_file.
12367
12368 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12369
12370 * NEWS: Mention TLS support for FreeBSD.
12371
12372 2019-03-25 Tom Tromey <tromey@adacore.com>
12373
12374 * minsyms.c (BUNCH_SIZE): Update comment.
12375 (~minimal_symbol_reader): Remove old comment.
12376 (compact_minimal_symbols): Update comment.
12377 (minimal_symbol_reader::install): Remove old comment. Update
12378 other comments.
12379
12380 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12381
12382 * s390-linux-nat.c: Add include.
12383
12384 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12385
12386 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12387 Call linux_get_hwcap.
12388 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12389 Likewise.
12390 (aarch64_linux_get_hwcap): Remove function.
12391 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12392 declaration.
12393 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12394 linux_get_hwcap.
12395 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12396 * linux-tdep.c (linux_get_hwcap): Add function.
12397 (linux_get_hwcap2): Likewise.
12398 * linux-tdep.h (linux_get_hwcap): Add declaration.
12399 (linux_get_hwcap2): Likewise.
12400 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12401 (ppc_linux_get_hwcap2): Likewise.
12402 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12403 linux_get_hwcap.
12404 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12405 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12406 (ppc_linux_nat_target::read_description): Likewise.
12407 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12408 * s390-linux-nat.c: Likewise.
12409 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12410
12411 2019-03-24 Tom Tromey <tom@tromey.com>
12412
12413 * ada-lang.c (standard_lookup): Simplify initialization.
12414 (ada_lookup_symbol_nonlocal): Simplify return.
12415 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12416 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12417 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12418 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12419 initialization.
12420 * solib.c (solib_global_lookup): Simplify.
12421 * symtab.c (null_block_symbol): Remove.
12422 (symbol_cache_lookup): Simplify returns.
12423 (lookup_language_this): Simplify returns.
12424 (lookup_symbol_aux): Simplify return.
12425 (lookup_local_symbol): Simplify returns.
12426 (lookup_global_symbol_from_objfile): Simplify return.
12427 (lookup_symbol_in_objfile_symtabs)
12428 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12429 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12430 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12431 * cp-namespace.c (cp_lookup_bare_symbol)
12432 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12433 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12434 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12435 (cp_lookup_symbol_via_imports): Simplify initialization.
12436 (find_symbol_in_baseclass): Likewise.
12437 * symtab.h (null_block_symbol): Remove.
12438 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12439 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12440 (d_lookup_symbol_module): Likewise.
12441 (find_symbol_in_baseclass): Simplify initialization.
12442
12443 2019-03-24 Tom Tromey <tom@tromey.com>
12444
12445 * expression.h: Don't include symtab.h.
12446 (struct block): Forward declare.
12447
12448 2019-03-24 Tom Tromey <tom@tromey.com>
12449
12450 * c-exp.y (typebase): Remove casts.
12451 * gdbtypes.c (lookup_unsigned_typename, )
12452 (lookup_signed_typename): Remove cast.
12453 * eval.c (parse_to_comma_and_eval): Remove cast.
12454 * parse.c (write_dollar_variable): Remove cast.
12455 * block.h (struct block) <superblock>: Now const.
12456 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12457 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12458 (map_block): Make "block" const.
12459 * symfile.h (struct quick_symbol_functions)
12460 <map_matching_symbols>: Constify block argument to "callback".
12461 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12462 const.
12463 (find_pc_sect_compunit_symtab): Make "b" const.
12464 (find_symbol_at_address): Likewise.
12465 (search_symbols): Likewise.
12466 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12467 (dw2_debug_names_lookup_symbol): Likewise.
12468 (dw2_map_matching_symbols): Update.
12469 * p-valprint.c (pascal_val_print): Remove "block".
12470 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12471 (aux_add_nonlocal_symbols): Make "block" const.
12472 (resolve_subexp): Remove cast.
12473 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12474 const.
12475 (iterate_over_file_blocks): Likewise.
12476 * f-exp.y (%union) <bval>: Remove.
12477 * coffread.c (patch_opaque_types): Make "b" const.
12478 * spu-tdep.c (spu_catch_start): Make "block" const.
12479 * c-valprint.c (print_unpacked_pointer): Remove "block".
12480 * symmisc.c (dump_symtab_1): Make "b" const.
12481 (block_depth): Make "block" const.
12482 * d-exp.y (%union) <bval>: Remove.
12483 * cp-support.h (cp_lookup_rtti_type): Update.
12484 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12485 * psymtab.c (psym_lookup_symbol): Make "block" const.
12486 (maintenance_check_psymtabs): Make "b" const.
12487 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12488 (enumerate_locals, enumerate_args): Update.
12489 * python/py-symtab.c (stpy_global_block): Make "block" const.
12490 (stpy_static_block): Likewise.
12491 * inline-frame.c (block_starting_point_at): Make "new_block"
12492 const.
12493 * block.c (find_block_in_blockvector): Make return type const.
12494 (blockvector_for_pc_sect): Make "b" const.
12495 (find_block_in_blockvector): Make "b" const.
12496
12497 2019-03-23 Tom Tromey <tom@tromey.com>
12498
12499 * varobj.c (varobj_create): Update.
12500 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12501 * printcmd.c (display_command, do_one_display): Don't reset
12502 innermost_block.
12503 * parser-defs.h (enum innermost_block_tracker_type): Move to
12504 expression.h.
12505 (innermost_block): Update comment.
12506 * parse.c (parse_exp_1): Add tracker_types parameter.
12507 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12508 tracker_types parameter. Reset innermost_block.
12509 (parse_exp_in_context): Remove.
12510 (parse_expression_for_completion): Update.
12511 * objfiles.c (~objfile): Don't reset expression_context_block or
12512 innermost_block.
12513 * expression.h (enum innermost_block_tracker_type): Move from
12514 parser-defs.h.
12515 (parse_exp_1): Add tracker_types parameter.
12516 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12517 reset innermost_block.
12518
12519 2019-03-23 Tom Tromey <tom@tromey.com>
12520
12521 * objfiles.h: Include bcache.h.
12522
12523 2019-03-23 Tom Tromey <tom@tromey.com>
12524
12525 * linespec.c (get_current_search_block): Use
12526 scoped_restore_current_language.
12527 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12528
12529 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12530 Jiong Wang <jiong.wang@arm.com>
12531
12532 * aarch64-linux-tdep.c
12533 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12534 section.
12535 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12536
12537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12538 Jiong Wang <jiong.wang@arm.com>
12539
12540 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12541 instructions.
12542 (aarch64_analyze_prologue_test): Add PACIASP test.
12543 (aarch64_prologue_prev_register): Unmask PC value.
12544
12545 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12546 Jiong Wang <jiong.wang@arm.com>
12547
12548 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12549 (aarch64_dwarf2_prev_register): Unmask PC value.
12550 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12551 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12552 DW_CFA_AARCH64_negate_ra_state.
12553 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12554
12555 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12556 Jiong Wang <jiong.wang@arm.com>
12557
12558 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12559 registers.
12560 (aarch64_pseudo_register_name): Likewise.
12561 (aarch64_pseudo_register_type): Likewise.
12562 (aarch64_pseudo_register_reggroup_p): Likewise.
12563 (aarch64_gdbarch_init): Add pauth registers.
12564 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12565 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12566 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12567 (struct gdbarch_tdep): Add regnum for ra_state.
12568
12569 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12570 Jiong Wang <jiong.wang@arm.com>
12571
12572 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12573
12574 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12575 Jiong Wang <jiong.wang@arm.com>
12576
12577 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12578 function.
12579 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12580 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12581 (aarch64_gdbarch_init): Add puth registers.
12582 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12583 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12584 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12585
12586 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12587 Jiong Wang <jiong.wang@arm.com>
12588
12589 * aarch64-linux-nat.c
12590 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12591 * aarch64-linux-tdep.c
12592 (aarch64_linux_core_read_description): Likewise.
12593 (aarch64_linux_get_hwcap): New function.
12594 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12595 (aarch64_linux_get_hwcap): New declaration.
12596
12597 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12598 Jiong Wang <jiong.wang@arm.com>
12599
12600 * aarch64-linux-nat.c
12601 (aarch64_linux_nat_target::read_description): Add pauth param.
12602 * aarch64-linux-tdep.c
12603 (aarch64_linux_core_read_description): Likewise.
12604 * aarch64-tdep.c (struct target_desc): Add in pauth.
12605 (aarch64_read_description): Add pauth param.
12606 (aarch64_gdbarch_init): Likewise.
12607 * aarch64-tdep.h (aarch64_read_description): Likewise.
12608 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12609 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12610 * features/Makefile: Add new files.
12611 * features/aarch64-pauth.c: New file.
12612 * features/aarch64-pauth.xml: New file.
12613
12614 2019-03-20 Tom Tromey <tromey@adacore.com>
12615
12616 * infrun.c (handle_inferior_event): Rename from
12617 handle_inferior_event_1. Create a scoped_value_mark.
12618 (handle_inferior_event): Remove.
12619
12620 2019-03-19 Tom Tromey <tromey@adacore.com>
12621
12622 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12623 * infrun.h (print_stop_event): Add "displays" parameter.
12624 * infrun.c (print_stop_event): Add "displays" parameter.
12625
12626 2019-03-19 Pedro Alves <palves@redhat.com>
12627
12628 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12629 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12630 to -1. Fix TABs vs spaces.
12631 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12632 * tui/tui-out.h (tui_ui_out) Add intro comments.
12633 <m_line, m_start_of_line>: In-class initialize, and add describing
12634 comment.
12635
12636 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12637
12638 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12639 variable names.
12640 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12641
12642 2019-03-18 Pedro Alves <palves@redhat.com>
12643 Eli Zaretskii <eliz@gnu.org>
12644
12645 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12646 m_line and m_start_of_line.
12647
12648 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12649
12650 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12651 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12652 it returns a newline. This fixes a regression in TU mode, whereby
12653 the next line is output on the same screen line as the user input.
12654
12655 2019-03-18 Tom Tromey <tromey@adacore.com>
12656
12657 * minsyms.c (minimal_symbol_reader::install): Remove call to
12658 obstack_blank.
12659
12660 2019-03-18 Pedro Alves <palves@redhat.com>
12661
12662 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12663 New globals.
12664 (apply_style): New, factored out from ...
12665 (apply_ansi_escape): ... this. Handle reverse video mode.
12666 (tui_set_reverse_mode): New function.
12667 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12668 * tui/tui-winsource.c (tui_show_source_line): Use
12669 tui_set_reverse_mode instead of setting A_STANDOUT.
12670 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12671 New setter methods.
12672
12673 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12674
12675 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12676 Handle tabs.
12677
12678 2019-03-18 Tom Tromey <tromey@adacore.com>
12679
12680 * ada-lang.c (empty_array): Add "high" parameter.
12681 (ada_evaluate_subexp): Update.
12682
12683 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12684
12685 * unittests/string_view-selftests.c: Define
12686 _initialize_string_view_selftests unconditionally.
12687
12688 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12689
12690 PR gdb/24350
12691 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12692
12693 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12694
12695 PR gdb/24351
12696 * windows-nat.c (display_selector): Fix format specifiers.
12697
12698 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12699
12700 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12701 tui_refill_source_window instead of tui_refresh_win, to update the
12702 current execution line. This fixes redisplay of the current line
12703 when stepping through the code with "next" or "step".
12704
12705 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12706
12707 * source-cache.c (source_cache::get_source_lines): Call
12708 find_source_lines to initialize s->nlines. This fixes vertical
12709 scrolling of TUI source window when the DOWN arrow is pressed.
12710
12711 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12712
12713 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12714 linux-thread-db.c (_initialize_thread_db): Likewise.
12715
12716 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12717
12718 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12719 wclrtoeol in tui_show_source_line". This reverts changes made in
12720 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12721
12722 2019-03-15 Tom Tromey <tom@tromey.com>
12723
12724 * symtab.h (struct minimal_symbol): Derive from
12725 general_symbol_info.
12726 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12727 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12728 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12729 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12730 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12731 (MSYMBOL_SEARCH_NAME): Update.
12732 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12733 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12734 * minsyms.c (minimal_symbol_reader::record_full): Update.
12735
12736 2019-03-15 Tom Tromey <tom@tromey.com>
12737
12738 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12739
12740 2019-03-15 Tom Tromey <tom@tromey.com>
12741
12742 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12743 unique_xmalloc_ptr.
12744 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12745 Update.
12746 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12747 (build_minimal_symbol_hash_tables)
12748 (minimal_symbol_reader::install): Update.
12749
12750 2019-03-15 Tom Tromey <tom@tromey.com>
12751
12752 * symtab.c (create_demangled_names_hash): Update.
12753 (symbol_set_names): Update.
12754 * objfiles.h (struct objfile_per_bfd_storage)
12755 <demangled_names_hash>: Now an htab_up.
12756 * objfiles.c (objfile_per_bfd_storage): Simplify.
12757
12758 2019-03-15 Tom Tromey <tom@tromey.com>
12759
12760 * objfiles.h (struct objfile_per_bfd_storage): Declare
12761 destructor.
12762 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12763 New.
12764 (get_objfile_bfd_data): Use new. Don't initialize
12765 language_of_main.
12766 (free_objfile_per_bfd_storage): Remove.
12767 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12768
12769 2019-03-15 Tom Tromey <tom@tromey.com>
12770
12771 * symfile.c (reread_symbols): Update.
12772 * objfiles.c (objfile::objfile): Update.
12773 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12774 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12775 comment.
12776 (minimal_symbol_reader::install): Update.
12777 (terminate_minimal_symbol_table): Remove.
12778 * jit.c (jit_object_close_impl): Update.
12779
12780 2019-03-15 Tom Tromey <tom@tromey.com>
12781
12782 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12783 initializations.
12784
12785 2019-03-15 Tom Tromey <tom@tromey.com>
12786
12787 * objfiles.h (struct objfile_per_bfd_storage)
12788 <demangled_hash_languages>: Now a bitset.
12789 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12790 (lookup_minimal_symbol): Update.
12791
12792 2019-03-15 Tom Tromey <tom@tromey.com>
12793
12794 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12795 Don't return the symbol.
12796 * coffread.c (record_minimal_symbol): Use record_full.
12797
12798 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12799
12800 The MS-Windows port of ncurses fails to switch to a color pair if
12801 one or both of the colors are the implicit default colors. This
12802 change records the default colors when TUI is initialized, and
12803 then specifies them explicitly when a color pair uses the default
12804 colors. This allows color styling in TUI mode on MS-Windows.
12805
12806 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12807 ncurses_norm_attr.
12808 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12809 colors in ncurses_norm_attr.
12810 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12811 "none", replace it with the default color recorded in
12812 ncurses_norm_attr.
12813
12814 2019-03-14 Tom Tromey <tromey@adacore.com>
12815
12816 * source-cache.h (class source_cache) <get_source_lines>: Return
12817 std::string.
12818 * source-cache.c (source_cache::extract_lines): Handle case where
12819 first_pos==npos. Return std::string.
12820 (source_cache::get_source_lines): Update.
12821
12822 2019-03-14 Tom Tromey <tromey@adacore.com>
12823
12824 * NEWS: Add item for "style sources" commands.
12825 * source-cache.c (source_cache::get_source_lines): Check
12826 source_styling.
12827 * cli/cli-style.c (source_styling): New global.
12828 (_initialize_cli_style): Add "style sources" commands.
12829 (show_style_sources): New function.
12830 * cli/cli-style.h (source_styling): Declare.
12831
12832 2019-03-14 Pedro Alves <palves@redhat.com>
12833 Tom Tromey <tromey@adacore.com>
12834
12835 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12836 * tui/tui-winsource.c (tui_refill_source_window): New function,
12837 from...
12838 (tui_horizontal_source_scroll): ... here. Move some logic.
12839 * cli/cli-style.c (set_style_enabled): Notify new observable.
12840 * tui/tui-hooks.c (tui_redisplay_source): New function.
12841 (tui_attach_detach_observers): Attach or detach
12842 tui_redisplay_source.
12843 * observable.h (source_styling_changed): New observable.
12844 * observable.c: Define source_styling_changed observable.
12845
12846 2019-03-13 Tom Tromey <tromey@adacore.com>
12847
12848 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12849 (i386_gnu_nat_target::store_registers): Update.
12850 * target-debug.h (target_debug_print_std_string): New macro.
12851 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12852 * windows-tdep.c (display_one_tib): Update.
12853 * tui/tui-stack.c (tui_make_status_line): Update.
12854 * top.c (print_inferior_quit_action): Update.
12855 * thread.c (thr_try_catch_cmd): Update.
12856 (add_thread_with_info): Update.
12857 (thread_target_id_str): Update.
12858 (thr_try_catch_cmd): Update.
12859 (thread_command): Update.
12860 (thread_find_command): Update.
12861 * record-btrace.c (record_btrace_target::info_record)
12862 (record_btrace_resume_thread, record_btrace_target::resume)
12863 (record_btrace_cancel_resume, record_btrace_step_thread)
12864 (record_btrace_target::wait, record_btrace_target::wait)
12865 (record_btrace_target::wait, record_btrace_target::stop): Update.
12866 * progspace.c (print_program_space): Update.
12867 * process-stratum-target.c
12868 (process_stratum_target::thread_address_space): Update.
12869 * linux-fork.c (linux_fork_mourn_inferior)
12870 (detach_checkpoint_command, info_checkpoints_command)
12871 (linux_fork_context): Update.
12872 (linux_fork_detach): Update.
12873 (class scoped_switch_fork_info): Update.
12874 (delete_checkpoint_command): Update.
12875 * infrun.c (follow_fork_inferior): Update.
12876 (follow_fork_inferior): Update.
12877 (proceed_after_vfork_done): Update.
12878 (handle_vfork_child_exec_or_exit): Update.
12879 (follow_exec): Update.
12880 (displaced_step_prepare_throw): Update.
12881 (displaced_step_restore): Update.
12882 (start_step_over): Update.
12883 (resume_1): Update.
12884 (clear_proceed_status_thread): Update.
12885 (proceed): Update.
12886 (print_target_wait_results): Update.
12887 (do_target_wait): Update.
12888 (context_switch): Update.
12889 (stop_all_threads): Update.
12890 (restart_threads): Update.
12891 (finish_step_over): Update.
12892 (handle_signal_stop): Update.
12893 (switch_back_to_stepped_thread): Update.
12894 (keep_going_pass_signal): Update.
12895 (print_exited_reason): Update.
12896 (normal_stop): Update.
12897 * inferior.c (inferior_pid_to_str): Change return type.
12898 (print_selected_inferior): Update.
12899 (add_inferior): Update.
12900 (detach_inferior): Update.
12901 * dummy-frame.c (fprint_dummy_frames): Update.
12902 * dcache.c (dcache_info_1): Update.
12903 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12904 (btrace_fetch, btrace_clear): Update.
12905 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12906 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12907 type.
12908 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12909 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12910 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12911 * gdbarch.c, gdbarch.h: Rebuild.
12912 * gdbarch.sh (core_pid_to_str): Change return type.
12913 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12914 return type.
12915 (windows_nat_target::pid_to_str): Change return type.
12916 (windows_delete_thread): Update.
12917 (windows_nat_target::attach): Update.
12918 (windows_nat_target::files_info): Update.
12919 * target-delegates.c: Rebuild.
12920 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12921 return type.
12922 (sol_thread_target::pid_to_str): Change return type.
12923 * remote.c (class remote_target) <pid_to_str>: Change return
12924 type.
12925 (remote_target::pid_to_str): Change return type.
12926 (extended_remote_target::attach, remote_target::remote_stop_ns)
12927 (remote_target::remote_notif_remove_queued_reply)
12928 (remote_target::push_stop_reply, remote_target::disable_btrace):
12929 Update.
12930 (extended_remote_target::attach): Update.
12931 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12932 type.
12933 (gdbsim_target::pid_to_str): Change return type.
12934 * ravenscar-thread.c (struct ravenscar_thread_target)
12935 <pid_to_str>: Change return type.
12936 (ravenscar_thread_target::pid_to_str): Change return type.
12937 * procfs.c (class procfs_target) <pid_to_str>: Change return
12938 type.
12939 (procfs_target::pid_to_str): Change return type.
12940 (procfs_target::attach): Update.
12941 (procfs_target::detach): Update.
12942 (procfs_target::fetch_registers): Update.
12943 (procfs_target::store_registers): Update.
12944 (procfs_target::wait): Update.
12945 (procfs_target::files_info): Update.
12946 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12947 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12948 return type.
12949 (nto_procfs_target::pid_to_str): Change return type.
12950 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12951 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12952 return type.
12953 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12954 (exit_lwp): Update.
12955 (attach_proc_task_lwp_callback, get_detach_signal)
12956 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12957 (linux_nat_target::resume, wait_lwp, stop_callback)
12958 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12959 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12960 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12961 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12962 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12963 type.
12964 (inf_ptrace_target::attach): Update.
12965 (inf_ptrace_target::files_info): Update.
12966 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12967 type.
12968 (go32_nat_target::pid_to_str): Change return type.
12969 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12970 (gnu_nat_target::wait): Update.
12971 (gnu_nat_target::wait): Update.
12972 (gnu_nat_target::resume): Update.
12973 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12974 (fbsd_nat_target::wait): Update.
12975 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12976 type.
12977 (darwin_nat_target::attach): Update.
12978 * corelow.c (class core_target) <pid_to_str>: Change return type.
12979 (core_target::pid_to_str): Change return type.
12980 * target.c (normal_pid_to_str): Change return type.
12981 (default_pid_to_str): Likewise.
12982 (target_pid_to_str): Change return type.
12983 (target_translate_tls_address): Update.
12984 (target_announce_detach): Update.
12985 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12986 return type.
12987 (bsd_uthread_target::pid_to_str): Change return type.
12988 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12989 type.
12990 (bsd_kvm_target::pid_to_str): Change return type.
12991 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12992 return type.
12993 (aix_thread_target::pid_to_str): Change return type.
12994 * target.h (struct target_ops) <pid_to_str>: Change return type.
12995 (target_pid_to_str, normal_pid_to_str): Likewise.
12996 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12997 type.
12998 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12999 type.
13000 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13001 return type.
13002 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13003 type.
13004 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13005 type.
13006 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13007 return type.
13008
13009 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13010
13011 * NEWS: Mention that the new default MI version is 3. Mention
13012 changes to the output of commands and events that deal with
13013 multi-location breakpoints.
13014 * breakpoint.c: Include "mi/mi-out.h".
13015 (print_one_breakpoint): Change output syntax if using MI version
13016 >= 3.
13017 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13018 New.
13019 (mi_multi_location_breakpoint_output_fixed): New.
13020 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13021 (mi_cmd_fix_multi_location_breakpoint_output): New.
13022 (mi_multi_location_breakpoint_output_fixed): New.
13023 * mi/mi-cmds.c (mi_cmds): Register command
13024 -fix-multi-location-breakpoint-output.
13025 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13026 interpreter "mi".
13027
13028 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13029
13030 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13031 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13032 instantiate mi_ui_out based on interpreter name.
13033 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13034 * mi/mi-main.c (mi_load_progress): Likewise.
13035
13036 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13037
13038 * NEWS: Combine separate "New targets" sections for 8.3.
13039
13040 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13041
13042 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13043 (ppcfbsd_init_abi): Install gdbarch
13044 "fetch_tls_load_module_address" and "get_thread_local_address"
13045 methods.
13046
13047 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13048
13049 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13050 (riscv_fbsd_init_abi): Install gdbarch
13051 "fetch_tls_load_module_address" and "get_thread_local_address"
13052 methods.
13053
13054 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13055
13056 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13057 (i386fbsd_init_abi): Install gdbarch
13058 "fetch_tls_load_module_address" and "get_thread_local_address"
13059 methods.
13060
13061 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13062
13063 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13064 (amd64fbsd_init_abi): Install gdbarch
13065 "fetch_tls_load_module_address" and "get_thread_local_address"
13066 methods.
13067
13068 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13069
13070 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13071 (struct fbsd_pspace_data): New type.
13072 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13073 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13074 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13075 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13076 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13077
13078 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13079
13080 * gdbtypes.c (lookup_struct_elt): New function.
13081 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13082 * gdbtypes.h (struct struct_elt): New type.
13083 (lookup_struct_elt): New prototype.
13084
13085 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13086
13087 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13088 remove disabled code block.
13089
13090 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13091
13092 * gdbarch.sh (get_thread_local_address): New method.
13093 * gdbarch.h, gdbarch.c: Regenerate.
13094 * target.c (target_translate_tls_address): Use
13095 gdbarch_get_thread_local_address if present instead of
13096 target::get_thread_local_address.
13097
13098 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13099
13100 * target.h (target::get_thread_local_address): Update comment.
13101
13102 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13103
13104 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13105 objfile->separate_debug_objfile_backlink if not NULL.
13106
13107 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13108
13109 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13110 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13111 (amd64bsd_store_inferior_registers): Likewise.
13112 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13113 Enable segment base registers.
13114 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13115 PT_GETFSBASE and PT_GETGSBASE.
13116 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13117 PT_SETGSBASE.
13118 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13119 segment base registers.
13120 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13121
13122 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13123
13124 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13125 Update calls to i386_target_description to add 'segments'
13126 parameter.
13127 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13128 add segment base registers.
13129 * arch/i386.c (i386_create_target_description): Add 'segments'
13130 parameter to enable segment base registers.
13131 * arch/i386.h (i386_create_target_description): Likewise.
13132 * features/i386/32bit-segments.xml: New file.
13133 * features/i386/32bit-segments.c: Generate.
13134 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13135 call to i386_target_description to add 'segments' parameter.
13136 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13137 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13138 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13139 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13140 if feature is present.
13141 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13142 Add 'segments' parameter to call to i386_target_description.
13143 (i386_target_description): Add 'segments' parameter to enable
13144 segment base registers.
13145 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13146 to call to i386_target_description.
13147 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13148 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13149 Define I386_NUM_REGS.
13150 (i386_target_description): Add 'segments' parameter to enable
13151 segment base registers.
13152
13153 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13154
13155 PR/24325
13156 * source-cache.c: #undef open and close, to avoid unresolved
13157 externals during linking.
13158
13159 2019-03-12 Tom Tromey <tromey@adacore.com>
13160
13161 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13162 const. Add initializers.
13163 (_initialize_remote): Don't initialize ptid globals.
13164
13165 2019-03-12 Pedro Alves <palves@redhat.com>
13166
13167 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13168
13169 2019-03-12 Pedro Alves <palves@redhat.com>
13170
13171 * cp-name-parser.y (main): Remove unused 'len' variable.
13172
13173 2019-03-12 Tom Tromey <tromey@adacore.com>
13174
13175 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13176 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13177
13178 2019-03-12 Tom Tromey <tromey@adacore.com>
13179
13180 * linux-nat.c (iterate_over_lwps): Update.
13181 (stop_callback): Remove parameter.
13182 (stop_wait_callback, detach_callback, resume_set_callback)
13183 (select_singlestep_lwp_callback, set_ignore_sigint)
13184 (status_callback, resumed_callback, resume_clear_callback)
13185 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13186 data parameter.
13187 (linux_nat_target::detach, linux_nat_target::resume)
13188 (linux_stop_and_wait_all_lwps, select_event_lwp)
13189 (linux_nat_filter_event, linux_nat_wait_1)
13190 (linux_nat_target::kill, linux_nat_target::stop)
13191 (linux_nat_target::stop): Update.
13192 (linux_nat_resume_callback): Change type.
13193 (resume_stopped_resumed_lwps, count_events_callback)
13194 (select_event_lwp_callback): Likewise.
13195 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13196 * arm-linux-nat.c (struct update_registers_data): Remove.
13197 (update_registers_callback): Change type.
13198 (arm_linux_insert_hw_breakpoint1): Update.
13199 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13200 parameter.
13201 (x86_linux_dr_set_addr): Update.
13202 (x86_linux_dr_set_control): Update.
13203 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13204 (iterate_over_lwps): Use gdb::function_view.
13205 * nat/aarch64-linux-hw-point.c (struct
13206 aarch64_dr_update_callback_param): Remove.
13207 (debug_reg_change_callback): Change type.
13208 (aarch64_notify_debug_reg_change): Update.
13209 * s390-linux-nat.c (s390_refresh_per_info): Update.
13210
13211 2019-03-11 Tom Tromey <tromey@adacore.com>
13212
13213 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13214 redundant assignment to "this_cu".
13215
13216 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13219
13220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13221
13222 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13223 from...
13224 (rank_one_type): ... this.
13225
13226 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13227
13228 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13229 from...
13230 (rank_one_type): ... this.
13231
13232 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13233
13234 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13235 from...
13236 (rank_one_type): ... this.
13237
13238 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13241 from...
13242 (rank_one_type): ... this.
13243
13244 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13245
13246 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13247 from...
13248 (rank_one_type): ... this.
13249
13250 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13251
13252 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13253 from...
13254 (rank_one_type): ... this.
13255
13256 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13257
13258 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13259 from...
13260 (rank_one_type): ... this.
13261
13262 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13263
13264 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13265 from...
13266 (rank_one_type): ... this.
13267
13268 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13269
13270 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13271 from...
13272 (rank_one_type): ... this.
13273
13274 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13275
13276 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13277 from...
13278 (rank_one_type): ... this.
13279
13280 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13281
13282 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13283 from...
13284 (rank_one_type): ... this.
13285
13286 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13287
13288 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13289 from...
13290 (rank_one_type): ... this.
13291
13292 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13293
13294 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13295 inferior-events' shows the example events.
13296
13297 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13298
13299 Support styling on native MS-Windows console
13300
13301 PR/24315
13302 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13303 on MS-Windows if $TERM is not defined.
13304
13305 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13306
13307 * posix-hdep.c (gdb_console_fputs):
13308 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13309 functions.
13310 * ui-file.h (gdb_console_fputs): Add prototype.
13311
13312 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13313 back to fputs only if the former returns zero.
13314
13315 2019-03-07 Tom Tromey <tom@tromey.com>
13316
13317 * symmisc.c (print_symbol_bcache_statistics): Update.
13318 (print_objfile_statistics): Update.
13319 * symfile.c (allocate_symtab): Update.
13320 * stabsread.c: Don't include bcache.h.
13321 * psymtab.h (struct psymbol_bcache): Don't declare.
13322 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13323 (psymbol_bcache_init, psymbol_bcache_free)
13324 (psymbol_bcache_get_bcache): Don't declare.
13325 * psymtab.c (struct psymbol_bcache): Remove.
13326 (psymtab_storage::psymtab_storage): Update.
13327 (psymtab_storage::~psymtab_storage): Update.
13328 (psymbol_bcache_init, psymbol_bcache_free)
13329 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13330 (add_psymbol_to_bcache): Update.
13331 (allocate_psymtab): Update.
13332 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13333 macro_cache>: No longer pointers.
13334 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13335 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13336 * macrotab.c (macro_bcache): Update.
13337 * macroexp.c: Don't include bcache.h.
13338 * gdbtypes.c (check_types_worklist): Update.
13339 (types_deeply_equal): Remove TRY/CATCH. Update.
13340 * elfread.c (elf_symtab_read): Update.
13341 * dwarf2read.c: Don't include bcache.h.
13342 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13343 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13344 (print_bcache_statistics, bcache_memory_used): Don't declare.
13345 (struct bcache): Move from bcache.c. Add constructor, destructor,
13346 methods. Rename all data members.
13347 * bcache.c (struct bcache): Move to bcache.h.
13348 (bcache::expand_hash_table): Rename from expand_hash_table.
13349 (bcache): Remove.
13350 (bcache::insert): Rename from bcache_full.
13351 (bcache::compare): Rename from bcache_compare.
13352 (bcache_xmalloc): Remove.
13353 (bcache::~bcache): Rename from bcache_xfree.
13354 (bcache::print_statistics): Rename from print_bcache_statistics.
13355 (bcache::memory_used): Rename from bcache_memory_used.
13356
13357 2019-03-07 Pedro Alves <palves@redhat.com>
13358
13359 * infrun.c (normal_stop): Also check for
13360 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13361
13362 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13363
13364 * f-lang.c (value_from_host_double): Moved to...
13365 * value.c (value_from_host_double): ...here.
13366 * value.h (value_from_host_double): Declare.
13367 * guile/scm-math.c (vlscm_convert_typed_number): Use
13368 value_from_host_double.
13369 (vlscm_convert_number): Likewise.
13370 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13371 * python/py-value.c (convert_value_from_python): Likewise.
13372
13373 2019-03-06 Tom Tromey <tom@tromey.com>
13374
13375 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13376
13377 2019-03-06 Tom Tromey <tom@tromey.com>
13378
13379 * utils.h (free_current_contents): Don't declare.
13380 * utils.c (free_current_contents): Remove.
13381
13382 2019-03-06 Tom Tromey <tom@tromey.com>
13383
13384 * top.c (quit_force): Update.
13385 * main.c (captured_command_loop): Update.
13386 * common/new-op.c (operator new): Update.
13387 * common/common-exceptions.c (struct catcher)
13388 <save_cleanup_chain>: Remove member.
13389 (exceptions_state_mc_init): Update.
13390 (exception_try_scope_entry): Return nullptr.
13391 (exception_try_scope_exit, exception_rethrow)
13392 (throw_exception_sjlj, throw_exception_cxx): Update.
13393 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13394 (all_cleanups, do_cleanups, discard_cleanups)
13395 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13396 (restore_cleanups, restore_final_cleanups): Don't declare.
13397 (do_final_cleanups): Remove parameter.
13398 * common/cleanups.c (cleanup_chain, make_cleanup)
13399 (make_cleanup_dtor, all_cleanups, do_cleanups)
13400 (discard_my_cleanups, discard_cleanups)
13401 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13402 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13403 (null_cleanup): Remove.
13404 (do_final_cleanups): Remove parameter.
13405
13406 2019-03-06 Tom Tromey <tom@tromey.com>
13407
13408 * remote.c (remote_target::remote_parse_stop_reply): Use
13409 unique_xmalloc_ptr.
13410
13411 2019-03-06 Tom Tromey <tom@tromey.com>
13412
13413 * stabsread.c (struct stabs_field_info): Rename from field_info.
13414 <list, fnlist>: Add initializers.
13415 <obstack>: New member.
13416 (read_member_functions, read_struct_fields, read_baseclasses):
13417 Allocate on obstack. Don't use cleanups.
13418 (read_one_struct_field, read_member_functions, read_struct_fields)
13419 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13420 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13421 (read_struct_type): Update.
13422
13423 2019-03-06 Tom Tromey <tom@tromey.com>
13424
13425 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13426 * common/filestuff.h (make_cleanup_close): Don't declare.
13427 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13428 Remove.
13429
13430 2019-03-06 Tom Tromey <tom@tromey.com>
13431
13432 * solib-aix.c: Use make_scope_exit.
13433
13434 2019-03-06 Tom Tromey <tom@tromey.com>
13435
13436 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13437 Use make_scope_exit.
13438
13439 2019-03-06 Tom Tromey <tom@tromey.com>
13440
13441 * solib-svr4.c (disable_probes_interface): Remove parameter.
13442 (svr4_handle_solib_event): Use make_scope_exit.
13443
13444 2019-03-06 Tom Tromey <tom@tromey.com>
13445
13446 * remote.c (struct stop_reply_deleter): Remove.
13447 (stop_reply_up): Update.
13448 (struct stop_reply): Derive from notif_event. Don't typedef.
13449 <regcache>: Now a std::vector.
13450 (stop_reply_xfree): Remove.
13451 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13452 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13453 (remote_target::discard_pending_stop_replies): Use delete.
13454 (remote_target::remote_parse_stop_reply): Update.
13455 (remote_target::process_stop_reply): Update.
13456 * remote-notif.h (struct notif_event): Add virtual destructor.
13457 Remove "dtr" member.
13458 (struct notif_client) <alloc_event>: Return a unique_ptr.
13459 (notif_event_xfree): Don't declare.
13460 (notif_event_up): New typedef.
13461 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13462 (notif_event_xfree, do_notif_event_xfree): Remove.
13463 (remote_notif_state_xfree): Update.
13464
13465 2019-03-06 Tom Tromey <tom@tromey.com>
13466
13467 * infrun.c (displaced_step_clear_cleanup): Now a
13468 forward_scope_exit type.
13469 (displaced_step_prepare_throw): Update.
13470 (displaced_step_fixup): Update.
13471
13472 2019-03-06 Tom Tromey <tom@tromey.com>
13473
13474 * inferior.h (class inferior): Update comment.
13475 * gdbthread.h (class thread_info): Update comment.
13476
13477 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13478 Tom Tromey <tom@tromey.com>
13479
13480 * stabsread.h (struct stab_section_list): Remove.
13481 (coffstab_build_psymtabs): Update.
13482 * dbxread.c (symbuf_sections): Now a std::vector.
13483 (sect_idx): New global.
13484 (fill_symbuf): Update.
13485 (coffstab_build_psymtabs): Change type of stabsects parameter.
13486 Update.
13487 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13488 std::vector.
13489 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13490 (coff_locate_sections): Update.
13491 (coff_symfile_read): Remove cleanups. Update.
13492 (init_stringtab): Add storage parameter.
13493 (free_stringtab, free_stringtab_cleanup): Remove.
13494 (init_lineno): Add storage parameter.
13495 (free_linetab, free_linetab_cleanup): Remove.
13496
13497 2019-03-06 Pedro Alves <palves@redhat.com>
13498
13499 * linux-fork.c (fork_info::clobber_regs): Delete.
13500 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13501 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13502 comment. Adjust.
13503 (scoped_switch_fork_info::scoped_switch_fork_info)
13504 (checkpoint_command, linux_fork_context): Adjust
13505 fork_save_infrun_state calls.
13506
13507 2019-03-06 Pedro Alves <palves@redhat.com>
13508
13509 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13510 (inf_has_multiple_threads): Return 'bool' and rewrite using
13511 inferior_info::threads().
13512
13513 2019-03-06 Pedro Alves <palves@redhat.com>
13514
13515 * linux-fork.c: Include <list>.
13516 (fork_list): Now a std::list instance.
13517 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13518 (forks_exist_p, find_last_fork): Adjust.
13519 (new_fork): Delete.
13520 (one_fork_p): New.
13521 (add_fork): Adjust.
13522 (free_fork): Delete, folded into fork_info::~fork_info().
13523 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13524 Adjust.
13525 (init_fork_list): Delete.
13526 (linux_fork_killall, linux_fork_mourn_inferior)
13527 (linux_fork_detach, info_checkpoints_command): Adjust.
13528 (_initialize_linux_fork): No longer call init_fork_list.
13529
13530 2019-03-06 Pedro Alves <palves@redhat.com>
13531
13532 * linux-fork.c (new_fork): New, split out of ...
13533 (add_fork): ... this. Return void. Move "first fork" special
13534 case from here, to ...
13535 (checkpoint_command): ... here.
13536 * linux-linux.h (add_fork): Return void.
13537
13538 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13539
13540 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13541
13542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13543 Chris January <chris.january@arm.com>
13544 David Lecomber <david.lecomber@arm.com>
13545
13546 * f-exp.y: New token, UNOP_INTRINSIC.
13547 (exp): New pattern using UNOP_INTRINSIC token.
13548 (f77_keywords): Add 'abs' keyword.
13549 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13550 (value_from_host_double): New function.
13551 (evaluate_subexp_f): Support UNOP_ABS.
13552
13553 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13554
13555 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13556 types.
13557
13558 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13559
13560 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13561 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13562 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13563
13564 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13565
13566 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13567
13568 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13569 Chris January <chris.january@arm.com>
13570
13571 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13572 * f-exp.y: Define 'KIND' token.
13573 (exp): New pattern for KIND expressions.
13574 (ptype): Handle types with a kind extension.
13575 (direct_abs_decl): Extend to spot kind extensions.
13576 (f77_keywords): Add 'kind' to the list.
13577 (push_kind_type): New function.
13578 (convert_to_kind_type): New function.
13579 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13580 * parse.c (operator_length_standard): Likewise.
13581 * parser-defs.h (enum type_pieces): Add tp_kind.
13582 * std-operator.def: Add UNOP_KIND.
13583
13584 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13585
13586 * f-exp.y (f_parse): Set yydebug.
13587
13588 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13589
13590 * f-lang.c (evaluate_subexp_f): New function.
13591 (exp_descriptor_f): New global.
13592 (f_language_defn): Use exp_descriptor_f instead of
13593 exp_descriptor_standard.
13594
13595 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13596
13597 * f-exp.y (struct token): Add comments.
13598 (dot_ops): Remove uppercase versions and the end marker.
13599 (f77_keywords): Likewise.
13600 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13601 entries in the dot_ops array are case insensitive, and use
13602 strncasecmp to compare strings. Also some whitespace cleanup in
13603 this area. Similar for the f77_keywords array, except entries in
13604 this list might be case sensitive.
13605
13606 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13607
13608 * f-exp.y (struct f77_boolean_val): Add comments.
13609 (boolean_values): Remove uppercase versions, and end marker.
13610 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13611 and use strncasecmp to achieve case insensitivity. Additionally,
13612 perform whitespace cleanup around this code.
13613
13614 2019-03-06 Tom Tromey <tromey@adacore.com>
13615
13616 * remote-sim.c (gdbsim_target_open): Use result of
13617 gdb_argv::release.
13618
13619 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13620 Dirk Schubert <dirk.schubert@arm.com>
13621 Chris January <chris.january@arm.com>
13622
13623 * eval.c (evaluate_subexp_standard): Call Fortran argument
13624 wrapping logic.
13625 * f-lang.c (struct value): A value which can be passed into a
13626 Fortran function call.
13627 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13628 where appropriate.
13629 (struct type): Value ready for a Fortran function call.
13630 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13631 is needed.
13632 * f-lang.h (fortran_argument_convert): Declaration.
13633 (fortran_preserve_arg_pointer): Declaration.
13634 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13635
13636 2019-03-05 Tom Tromey <tromey@adacore.com>
13637
13638 * python/py-prettyprint.c (print_string_repr): Remove #if.
13639 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13640
13641 2019-03-05 Tom Tromey <tromey@adacore.com>
13642
13643 * target.c (the_dummy_target): Move later. Change type to
13644 "dummy_target".
13645 (initialize_targets): Don't initialize the_dummy_target.
13646
13647 2019-03-05 Tom Tromey <tromey@adacore.com>
13648
13649 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13650 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13651
13652 2019-03-05 Tom Tromey <tromey@adacore.com>
13653
13654 * windows-nat.c (windows_nat_target::attach)
13655 (windows_nat_target::detach): Don't call gdb_flush.
13656 * valprint.c (generic_val_print, val_print, val_print_string):
13657 Don't call gdb_flush.
13658 * utils.c (defaulted_query): Don't call gdb_flush.
13659 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13660 * target.c (target_announce_detach): Don't call gdb_flush.
13661 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13662 * remote.c (extended_remote_target::attach): Don't call
13663 gdb_flush.
13664 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13665 * printcmd.c (do_examine): Don't call gdb_flush.
13666 (info_display_command): Don't call gdb_flush.
13667 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13668 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13669 * memattr.c (info_mem_command): Don't call gdb_flush.
13670 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13671 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13672 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13673 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13674 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13675 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13676 (gnu_nat_target::detach): Don't call gdb_flush.
13677 * f-valprint.c (f_val_print): Don't call gdb_flush.
13678 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13679 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13680 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13681 gdb_flush.
13682 * c-valprint.c (c_val_print): Don't call gdb_flush.
13683 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13684
13685 2019-03-05 Tom Tromey <tromey@adacore.com>
13686
13687 * varobj.c (update_dynamic_varobj_children): Update.
13688 (install_default_visualizer): Use reset, not release.
13689 * value.c (set_internalvar): Update.
13690 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13691 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13692 ATTRIBUTE_UNUSED_RESULT.
13693
13694 2019-03-05 Tom Tromey <tromey@adacore.com>
13695
13696 * remote.c (class scoped_remote_fd) <release>: Add
13697 ATTRIBUTE_UNUSED_RESULT.
13698
13699 2019-03-05 Tom Tromey <tromey@adacore.com>
13700
13701 * macroexp.c (struct macro_buffer) <release>: Add
13702 ATTRIBUTE_UNUSED_RESULT.
13703
13704 2019-03-05 Tom Tromey <tromey@adacore.com>
13705
13706 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13707 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13708 ATTRIBUTE_UNUSED_RESULT.
13709
13710 2019-03-05 Tom Tromey <tromey@adacore.com>
13711
13712 * common/scoped_fd.h (class scoped_fd) <release>: Add
13713 ATTRIBUTE_UNUSED_RESULT.
13714
13715 2019-03-05 Tom Tromey <tromey@adacore.com>
13716
13717 * parser-defs.h (struct parser_state) <release>: Add
13718 ATTRIBUTE_UNUSED_RESULT.
13719
13720 2019-03-05 Tom Tromey <tromey@adacore.com>
13721
13722 * utils.h (class gdb_argv) <release>: Add
13723 ATTRIBUTE_UNUSED_RESULT.
13724 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13725
13726 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13727
13728 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13729 for-loop range, to avoid compiler warnings.
13730
13731 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13732 avoid compiler warnings about unused variables.
13733
13734 * NEWS: Mention end of support for native debugging on MS-Windows
13735 before XP.
13736
13737 PR gdb/24292
13738 * common/netstuff.c:
13739 * gdbserver/gdbreplay.c
13740 * gdbserver/remote-utils.c:
13741 * ser-tcp.c:
13742 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13743 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13744 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13745 'getaddrinfo' and 'freeaddrinfo' were not available before
13746 Windows XP, and mingw.org's MinGW headers by default define
13747 _WIN32_WINNT to 0x500.
13748
13749 2019-03-01 Gary Benson <gbenson@redhat.com>
13750
13751 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13752
13753 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13754 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13755
13756 PR gdb/8527
13757 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13758 set_sigint_trap, clear_sigint_trap.
13759
13760 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13761
13762 * target.c (target_detach): Clear the regcache and the
13763 frame cache.
13764
13765 2019-02-27 Pedro Alves <palves@redhat.com>
13766
13767 * utils.c (set_screen_size): When we cap the height/width sizes,
13768 tweak the corresponding command variable to show "unlimited":
13769
13770 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13771 Pedro Alves <palves@redhat.com>
13772
13773 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13774 before calling rl_set_screen_size.
13775
13776 2019-02-27 Tom Tromey <tromey@adacore.com>
13777
13778 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13779 define.
13780 * python/py-value.c: Remove Python 2.4 workaround.
13781 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13782 workaround.
13783 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13784 Python 2.4 workaround.
13785 * python/python-internal.h: Remove Python 2.4 comment.
13786 (Py_ssize_t): Don't define.
13787 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13788 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13789 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13790 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13791 * python/python.c (do_start_initialization): Remove Python 2.4
13792 workaround.
13793 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13794 (print_children): Remove Python 2.4 workaround.
13795 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13796 workaround.
13797 (CHARBUFFERPROC_NAME): Remove.
13798 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13799 Python 2.4 workaround.
13800
13801 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13802
13803 * NEWS: Note minimum Python version.
13804
13805 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13806
13807 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13808 code from these functions. Remove corresponding ifdefs. Use
13809 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13810 Remove gotos and target of gotos.
13811 (infpy_search_memory): Likewise.
13812
13813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13814
13815 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13816 (hppa_gdbarch_init): Don't register deleted functions with
13817 gdbarch.
13818
13819 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13820
13821 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13822 (h8300_unwind_sp): Delete.
13823 (h8300_dummy_id): Delete.
13824 (h8300_gdbarch_init): Don't register deleted functions with
13825 gdbarch.
13826
13827 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13828
13829 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13830 (ft32_unwind_pc): Delete.
13831 (ft32_unwind_sp): Delete.
13832 (ft32_gdbarch_init): Don't register deleted functions with
13833 gdbarch.
13834
13835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13836
13837 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13838 (frv_unwind_pc): Delete.
13839 (frv_unwind_sp): Delete.
13840 (frv_gdbarch_init): Don't register deleted functions with
13841 gdbarch.
13842
13843 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13844
13845 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13846 (riscv_unwind_pc): Delete.
13847 (riscv_unwind_sp): Delete.
13848 (riscv_gdbarch_init): Don't register deleted functions with
13849 gdbarch.
13850
13851 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13852
13853 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13854 (csky_unwind_pc): Delete.
13855 (csky_unwind_sp): Delete.
13856 (csky_gdbarch_init): Don't register deleted functions with
13857 gdbarch.
13858
13859 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13860
13861 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13862 (cris_unwind_pc): Delete.
13863 (cris_unwind_sp): Delete.
13864 (cris_gdbarch_init): Don't register deleted functions with
13865 gdbarch.
13866
13867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13868
13869 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13870 (bfin_unwind_pc): Delete.
13871 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13872
13873 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13874
13875 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13876 (arm_unwind_pc): Delete.
13877 (arm_unwind_sp): Delete.
13878 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13879
13880 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13881
13882 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13883 (arc_unwind_pc): Delete.
13884 (arc_unwind_sp): Delete.
13885 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13886
13887 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13888
13889 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13890 (alpha_unwind_pc): Delete.
13891 (alpha_gdbarch_init): Don't register deleted functions with
13892 gdbarch.
13893
13894 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13895
13896 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13897 (aarch64_unwind_pc): Delete.
13898 (aarch64_unwind_sp): Delete.
13899 (aarch64_gdbarch_init): Don't register deleted functions with
13900 gdbarch.
13901
13902 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13903
13904 * gdbtypes.c (type_align): Don't consider static members when
13905 computing structure alignment.
13906
13907 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13908
13909 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13910 return 0 for other types.
13911 * arch-utils.c (default_type_align): Always return 0.
13912 * gdbarch.h: Regenerate.
13913 * gdbarch.sh (type_align): Extend comment.
13914 * gdbtypes.c (type_align): Add additional comments, always call
13915 gdbarch_type_align before applying the default rules.
13916 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13917 generic code will then apply a suitable default.
13918 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13919 types, return 0 for other types.
13920
13921 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13922
13923 * NEWS: Create a new section for the next release branch.
13924 Rename the section of the current branch, now that it has
13925 been cut.
13926
13927 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13928
13929 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13930 * version.in: Bump version to 8.3.50.DATE-git.
13931
13932 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13933
13934 * aix-thread.c (ptid_cmp): Remove unused variable.
13935 (get_signaled_thread): Likewise.
13936 (store_regs_user_thread): Likewise.
13937 (store_regs_kernel_thread): Likewise.
13938 (fetch_regs_kernel_thread): Remove shadowed variable.
13939
13940 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13941
13942 * features/riscv/32bit-cpu.xml: Add register numbers.
13943 * features/riscv/32bit-fpu.c: Regenerate.
13944 * features/riscv/32bit-fpu.xml: Add register numbers.
13945 * features/riscv/64bit-cpu.xml: Add register numbers.
13946 * features/riscv/64bit-fpu.c: Regenerate.
13947 * features/riscv/64bit-fpu.xml: Add register numbers.
13948
13949 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13950
13951 * NEWS: Mention two argument form of gdb.Value constructor.
13952 * python/py-value.c (convert_buffer_and_type_to_value): New
13953 function.
13954 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13955 Add support for handling an optional second argument. Call
13956 convert_buffer_and_type_to_value as appropriate.
13957 * python/python-internal.h (Py_buffer_deleter): New struct.
13958 (Py_buffer_up): New typedef.
13959
13960 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13961
13962 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13963 instead of releasing ownership.
13964
13965 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13966
13967 * dwarf2read.c (open_and_init_dwp_file): Call
13968 elf_numsections instead of bfd_count_sections to initialize
13969 dwp_file->num_sections.
13970
13971 2019-02-25 Tom Tromey <tromey@adacore.com>
13972
13973 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13974
13975 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13976
13977 * gcore.in: Add '--readnever' option when invoking GDB.
13978
13979 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13980
13981 * MAINTAINERS: Update my email address.
13982
13983 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13984
13985 * build-id.c (build_id_to_debug_bfd_1): New function.
13986 (build_id_to_debug_bfd): Look for separate debug file in
13987 sysroot.
13988
13989 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * gdbarch.sh: Update the copyright year range that is placed into
13992 generated files.
13993
13994 2019-02-22 Keith Seitz <keiths@redhat.com>
13995
13996 PR symtab/23853
13997 * linespec.c (create_sals_line_offset): Search for the default
13998 symtab's filename instead of its fullname.
13999
14000 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14001
14002 * NEWS: Update style defaults.
14003
14004 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14005
14006 * main.c (captured_main_1): Disable styling in batch mode.
14007
14008 2019-02-20 Tom Tromey <tom@tromey.com>
14009
14010 * symtab.c (symtab_symbol_info): Fix typos.
14011
14012 2019-02-20 Tom Tromey <tromey@adacore.com>
14013
14014 * findcmd.c (_initialize_mem_search): Use upper case for
14015 metasyntactic variables.
14016
14017 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14018
14019 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14020 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14021
14022 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14023
14024 * top.h (source_file_name): Change to std::string.
14025 * top.c (source_file_name): Likewise.
14026 (command_line_input): Adjust.
14027 * cli/cli-script.c (script_from_file): Adjust.
14028
14029 2019-02-19 Tom Tromey <tromey@adacore.com>
14030
14031 * ravenscar-thread.c
14032 (ravenscar_thread_target::update_thread_list): Don't call
14033 ada_build_task_list.
14034 * ada-lang.h (ada_build_task_list): Don't declare.
14035 * ada-tasks.c (struct ada_tasks_inferior_data)
14036 <task_list_valid_p>: Now bool.
14037 (read_known_tasks, ada_task_list_changed)
14038 (ada_tasks_invalidate_inferior_data): Update.
14039 (read_known_tasks_array): Return bool.
14040 (read_known_tasks_list): Likewise.
14041 (read_known_tasks): Return void.
14042 (ada_build_task_list): Now static.
14043
14044 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14045
14046 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14047 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14048
14049 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14050
14051 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14052 variant for ada_tasks_pspace_data_handle and
14053 ada_tasks_inferior_data_handle.
14054 (ada_tasks_pspace_data_cleanup): New function.
14055 (ada_tasks_inferior_data_cleanup): New function.
14056
14057 2019-02-17 Tom Tromey <tom@tromey.com>
14058
14059 * macrotab.h (macro_source_fullname): Return a std::string.
14060 * macrotab.c (macro_include, check_for_redefinition)
14061 (macro_undef, macro_lookup_definition, foreach_macro)
14062 (foreach_macro_in_scope): Update.
14063 (macro_source_fullname): Return a std::string.
14064 * macrocmd.c (show_pp_source_pos): Update.
14065
14066 2019-02-17 Tom Tromey <tom@tromey.com>
14067
14068 * macrocmd.c (show_pp_source_pos): Style the file names.
14069
14070 2019-02-17 Tom Tromey <tom@tromey.com>
14071
14072 PR tui/24197:
14073 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14074
14075 2019-02-17 Tom Tromey <tom@tromey.com>
14076
14077 * ada-lang.c (user_select_syms): Use filtered printing.
14078 * utils.c (wrap_style): New global.
14079 (desired_style): Remove.
14080 (emit_style_escape): Add stream parameter.
14081 (set_output_style, reset_terminal_style, prompt_for_continue):
14082 Update.
14083 (flush_wrap_buffer): Only flush gdb_stdout.
14084 (wrap_here): Set wrap_style.
14085 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14086 treat escape sequences as a character. Change when wrap buffer is
14087 flushed.
14088 (fputs_styled): Do not set the output style when the default is
14089 requested.
14090 * ui-style.h (struct ui_file_style) <is_default>: New method.
14091 * source.c (print_source_lines_base): Emit escape sequences in one
14092 piece.
14093
14094 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14095
14096 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14097 integers and enumeration types.
14098
14099 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14100
14101 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14102 instead of lookup_symbol_in_language
14103 (do_exact_match): New function.
14104 (ada_get_symbol_name_matcher): Return do_exact_match when
14105 doing a verbatim match.
14106
14107 2019-02-15 Tom Tromey <tromey@adacore.com>
14108
14109 * ravenscar-thread.c (ravenscar_thread_target::resume)
14110 (ravenscar_thread_target::wait): Special case wildcard requests.
14111
14112 2019-02-15 Tom Tromey <tromey@adacore.com>
14113
14114 * ravenscar-thread.c (base_ptid): Remove.
14115 (struct ravenscar_thread_target) <close>: New method.
14116 <m_base_ptid>: New member.
14117 <update_inferior_ptid, active_task, task_is_currently_active,
14118 runtime_initialized>: Declare methods.
14119 <ravenscar_thread_target>: Add constructor.
14120 (ravenscar_thread_target::task_is_currently_active)
14121 (ravenscar_thread_target::update_inferior_ptid)
14122 (ravenscar_runtime_initialized): Rename. Now methods.
14123 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14124 (ravenscar_thread_target::update_thread_list): Update.
14125 (ravenscar_thread_target::active_task): Now method.
14126 (ravenscar_thread_target::store_registers)
14127 (ravenscar_thread_target::prepare_to_store)
14128 (ravenscar_thread_target::prepare_to_store)
14129 (ravenscar_thread_target::mourn_inferior): Update.
14130 (ravenscar_inferior_created): Use "new" to create target.
14131 (ravenscar_thread_target::get_ada_task_ptid): Update.
14132 (_initialize_ravenscar): Don't initialize base_ptid.
14133 (ravenscar_ops): Remove global.
14134
14135 2019-02-15 Tom Tromey <tromey@adacore.com>
14136
14137 * target.h (push_target): Declare new overload.
14138 * target.c (push_target): New overload, taking an rvalue reference.
14139 * remote.c (remote_target::open_1): Use push_target overload.
14140 * corelow.c (core_target_open): Use push_target overload.
14141
14142 2019-02-15 Tom Tromey <tromey@adacore.com>
14143
14144 * ravenscar-thread.c (is_ravenscar_task)
14145 (ravenscar_task_is_currently_active): Return bool.
14146 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14147 (_initialize_ravenscar): Remove "(void)".
14148 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14149 Return bool.
14150
14151 2019-02-15 Tom Tromey <tromey@adacore.com>
14152
14153 * ravenscar-thread.c (ravenscar_runtime_initializer)
14154 (has_ravenscar_runtime, get_running_thread_id)
14155 (ravenscar_thread_target::resume): Fix indentation.
14156
14157 2019-02-15 Tom Tromey <tromey@adacore.com>
14158
14159 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14160 from ravenscar_arch_ops.
14161 (sparc_ravenscar_ops::fetch_registers)
14162 (sparc_ravenscar_ops::store_registers): Now methods.
14163 (sparc_ravenscar_prepare_to_store): Remove.
14164 (sparc_ravenscar_ops): Redefine.
14165 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14166 methods and destructor. Remove members.
14167 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14168 (ravenscar_thread_target::store_registers)
14169 (ravenscar_thread_target::prepare_to_store): Update.
14170 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14171 Remove.
14172 (struct ppc_ravenscar_powerpc_ops): Derive from
14173 ravenscar_arch_ops.
14174 (ppc_ravenscar_powerpc_ops::fetch_registers)
14175 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14176 (ppc_ravenscar_powerpc_ops): Redefine.
14177 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14178 (ppc_ravenscar_e500_ops::fetch_registers)
14179 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14180 (ppc_ravenscar_e500_ops): Redefine.
14181 * aarch64-ravenscar-thread.c
14182 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14183 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14184 (aarch64_ravenscar_fetch_registers)
14185 (aarch64_ravenscar_store_registers): Now methods.
14186 (aarch64_ravenscar_ops): Redefine.
14187
14188 2019-02-15 Tom Tromey <tromey@adacore.com>
14189
14190 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14191 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14192 (ravenscar_thread_target::stopped_by_watchpoint)
14193 (ravenscar_thread_target::stopped_data_address)
14194 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14195
14196 2019-02-15 Tom Tromey <tromey@adacore.com>
14197
14198 * ravenscar-thread.c: Fix some typos.
14199
14200 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14201 Tom Tromey <tromey@adacore.com>
14202
14203 * ada-lang.c (ada_exception_sal): Change addr_string to a
14204 std::string.
14205 (create_ada_exception_catchpoint): Update.
14206
14207 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14208 Tom Tromey <tromey@adacore.com>
14209
14210 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14211 (bp_location_ops): Remove.
14212 (base_breakpoint_allocate_location): Update.
14213 (free_bp_location): Update.
14214 * ada-lang.c (class ada_catchpoint_location)
14215 <ada_catchpoint_location>: Remove ops parameter.
14216 (ada_catchpoint_location_dtor): Remove.
14217 (ada_catchpoint_location_ops): Remove.
14218 (allocate_location_exception): Update.
14219 * breakpoint.h (struct bp_location_ops): Remove.
14220 (class bp_location) <bp_location>: Remove bp_location_ops
14221 parameter.
14222 <~bp_location>: Add destructor.
14223 <ops>: Remove.
14224
14225 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14226 Pedro Alves <palves@redhat.com>
14227
14228 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14229 'PATH_MAX'.
14230
14231 2019-02-14 David Michael <fedora.dm0@gmail.com>
14232 Samuel Thibault <samuel.thibault@gnu.org>
14233 Thomas Schwinge <thomas@codesourcery.com>
14234
14235 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14236 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14237
14238 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14239
14240 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14241 (check_empty): Use "const char *".
14242
14243 * gnu-nat.c (gnu_nat_target::detach): Instead of
14244 'detach_inferior (pid)' call
14245 'detach_inferior (find_inferior_pid (pid))'.
14246
14247 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14248 'nat/fork-inferior.o'.
14249 * gnu-nat.c: #include "nat/fork-inferior.h".
14250
14251 * gnu-nat.c (gnu_nat_target::detach): Instead of
14252 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14253 * gnu-nat.h: #include "inf-child.h".
14254 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14255 'i386_gnu_nat_target::fetch_registers'.
14256 (gnu_store_registers): Rename/move to
14257 'i386_gnu_nat_target::store_registers'.
14258
14259 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14260 * gnu-nat.h (mach_thread_info): New function.
14261 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14262
14263 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14264
14265 2019-02-14 Frederic Konrad <konrad@adacore.com>
14266
14267 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14268
14269 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14270
14271 * windows-nat.c (windows_add_thread): Add new parameter
14272 "main_thread_p" with default value set to false. Update
14273 function documentation as well as all callers.
14274 (windows_delete_thread): Likewise.
14275 (fake_create_process): Update call to windows_add_thread.
14276 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14277 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14278 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14279 call to windows_delete_thread.
14280
14281 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14282
14283 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14284
14285 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14286
14287 * symfile.c (find_separate_debug_file): Use canonical path of
14288 sysroot with child_path instead of gdb_sysroot if it is valid.
14289
14290 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14291
14292 * symfile.c (find_separate_debug_file): Use child_path to
14293 determine if an object file is under a sysroot.
14294
14295 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14296
14297 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14298 unittests/child-path-selftests.c.
14299 * common/pathstuff.c (child_path): New function.
14300 * common/pathstuff.h (child_path): New prototype.
14301 * unittests/child-path-selftests.c: New file.
14302
14303 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14304
14305 * symfile.c (find_separate_debug_file): Look for separate debug
14306 files in debug directories under the sysroot.
14307
14308 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14309
14310 * symtab.h (struct minimal_symbol data_p): New const method.
14311 (struct minimal_symbol text_p): Likewise.
14312 * symtab.c (output_source_filename): Use file name style
14313 to print file name.
14314 (print_symbol_info): Likewise.
14315 (print_msymbol_info): Use address style to print addresses.
14316 Use function name style to print executable text symbols.
14317 (expand_symtab_containing_pc): Use data_p.
14318 (find_pc_sect_compunit_symtab): Likewise.
14319
14320 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14321
14322 * breakpoint.c (describe_other_breakpoints): Use address style
14323 to print addresses.
14324 (say_where): Likewise.
14325
14326 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14327
14328 * ada-typeprint.c (print_func_type): Print function name
14329 style to print function name.
14330 * c-typeprint.c (c_print_type_1): Likewise.
14331
14332 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14333
14334 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14335 for execve.
14336
14337 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14338
14339 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14340 type_stack.
14341
14342 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14343
14344 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14345 TYPE_CODE_REF types.
14346
14347 2019-02-08 Jim Wilson <jimw@sifive.com>
14348
14349 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14350 (riscv_linux_fregset): New.
14351 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14352
14353 2019-02-07 Tom Tromey <tom@tromey.com>
14354
14355 * thread.c (thread_cancel_execution_command): Update.
14356 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14357 methods.
14358 (struct thread_fsm_ops): Remove.
14359 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14360 (thread_fsm_should_stop, thread_fsm_return_value)
14361 (thread_fsm_set_finished, thread_fsm_finished_p)
14362 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14363 Don't declare.
14364 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14365 * infrun.c (clear_proceed_status_thread)
14366 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14367 (print_stop_event): Update.
14368 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14369 Add constructor.
14370 (step_command_fsm_ops): Remove.
14371 (new_step_command_fsm): Remove.
14372 (step_1): Update.
14373 (step_command_fsm::should_stop): Rename from
14374 step_command_fsm_should_stop.
14375 (step_command_fsm::clean_up): Rename from
14376 step_command_fsm_clean_up.
14377 (step_command_fsm::do_async_reply_reason): Rename from
14378 step_command_fsm_async_reply_reason.
14379 (struct until_next_fsm): Inherit from thread_fsm. Add
14380 constructor.
14381 (until_next_fsm_ops): Remove.
14382 (new_until_next_fsm): Remove.
14383 (until_next_fsm::should_stop): Rename from
14384 until_next_fsm_should_stop.
14385 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14386 (until_next_fsm::do_async_reply_reason): Rename from
14387 until_next_fsm_async_reply_reason.
14388 (struct finish_command_fsm): Inherit from thread_fsm. Add
14389 constructor. Change type of breakpoint.
14390 (finish_command_fsm_ops): Remove.
14391 (new_finish_command_fsm): Remove.
14392 (finish_command_fsm::should_stop): Rename from
14393 finish_command_fsm_should_stop.
14394 (finish_command_fsm::clean_up): Rename from
14395 finish_command_fsm_clean_up.
14396 (finish_command_fsm::return_value): Rename from
14397 finish_command_fsm_return_value.
14398 (finish_command_fsm::do_async_reply_reason): Rename from
14399 finish_command_fsm_async_reply_reason.
14400 (finish_command): Update.
14401 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14402 Add constructor.
14403 (call_thread_fsm_ops): Remove.
14404 (call_thread_fsm::call_thread_fsm): Rename from
14405 new_call_thread_fsm.
14406 (call_thread_fsm::should_stop): Rename from
14407 call_thread_fsm_should_stop.
14408 (call_thread_fsm::should_notify_stop): Rename from
14409 call_thread_fsm_should_notify_stop.
14410 (run_inferior_call, call_function_by_hand_dummy): Update.
14411 * cli/cli-interp.c (should_print_stop_to_console): Update.
14412 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14413 Add constructor. Change type of location_breakpoint,
14414 caller_breakpoint.
14415 (until_break_fsm_ops): Remove.
14416 (new_until_break_fsm): Remove.
14417 (until_break_fsm::should_stop): Rename from
14418 until_break_fsm_should_stop.
14419 (until_break_fsm::clean_up): Rename from
14420 until_break_fsm_clean_up.
14421 (until_break_fsm::do_async_reply_reason): Rename from
14422 until_break_fsm_async_reply_reason.
14423 (until_break_command): Update.
14424 * thread-fsm.c: Remove.
14425 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14426
14427 2019-02-07 Tom Tromey <tom@tromey.com>
14428
14429 * yy-remap.h: Add include guard.
14430 * xtensa-tdep.h: Add include guard.
14431 * xcoffread.h: Rename include guard.
14432 * varobj-iter.h: Add include guard.
14433 * tui/tui.h: Rename include guard.
14434 * tui/tui-winsource.h: Rename include guard.
14435 * tui/tui-wingeneral.h: Rename include guard.
14436 * tui/tui-windata.h: Rename include guard.
14437 * tui/tui-win.h: Rename include guard.
14438 * tui/tui-stack.h: Rename include guard.
14439 * tui/tui-source.h: Rename include guard.
14440 * tui/tui-regs.h: Rename include guard.
14441 * tui/tui-out.h: Rename include guard.
14442 * tui/tui-layout.h: Rename include guard.
14443 * tui/tui-io.h: Rename include guard.
14444 * tui/tui-hooks.h: Rename include guard.
14445 * tui/tui-file.h: Rename include guard.
14446 * tui/tui-disasm.h: Rename include guard.
14447 * tui/tui-data.h: Rename include guard.
14448 * tui/tui-command.h: Rename include guard.
14449 * tic6x-tdep.h: Add include guard.
14450 * target/waitstatus.h: Rename include guard.
14451 * target/wait.h: Rename include guard.
14452 * target/target.h: Rename include guard.
14453 * target/resume.h: Rename include guard.
14454 * target-float.h: Rename include guard.
14455 * stabsread.h: Add include guard.
14456 * rs6000-tdep.h: Add include guard.
14457 * riscv-fbsd-tdep.h: Add include guard.
14458 * regformats/regdef.h: Rename include guard.
14459 * record.h: Rename include guard.
14460 * python/python.h: Rename include guard.
14461 * python/python-internal.h: Rename include guard.
14462 * python/py-stopevent.h: Rename include guard.
14463 * python/py-ref.h: Rename include guard.
14464 * python/py-record.h: Rename include guard.
14465 * python/py-record-full.h: Rename include guard.
14466 * python/py-record-btrace.h: Rename include guard.
14467 * python/py-instruction.h: Rename include guard.
14468 * python/py-events.h: Rename include guard.
14469 * python/py-event.h: Rename include guard.
14470 * procfs.h: Add include guard.
14471 * proc-utils.h: Add include guard.
14472 * p-lang.h: Add include guard.
14473 * or1k-tdep.h: Rename include guard.
14474 * observable.h: Rename include guard.
14475 * nto-tdep.h: Rename include guard.
14476 * nat/x86-linux.h: Rename include guard.
14477 * nat/x86-linux-dregs.h: Rename include guard.
14478 * nat/x86-gcc-cpuid.h: Add include guard.
14479 * nat/x86-dregs.h: Rename include guard.
14480 * nat/x86-cpuid.h: Rename include guard.
14481 * nat/ppc-linux.h: Rename include guard.
14482 * nat/mips-linux-watch.h: Rename include guard.
14483 * nat/linux-waitpid.h: Rename include guard.
14484 * nat/linux-ptrace.h: Rename include guard.
14485 * nat/linux-procfs.h: Rename include guard.
14486 * nat/linux-osdata.h: Rename include guard.
14487 * nat/linux-nat.h: Rename include guard.
14488 * nat/linux-namespaces.h: Rename include guard.
14489 * nat/linux-btrace.h: Rename include guard.
14490 * nat/glibc_thread_db.h: Rename include guard.
14491 * nat/gdb_thread_db.h: Rename include guard.
14492 * nat/gdb_ptrace.h: Rename include guard.
14493 * nat/fork-inferior.h: Rename include guard.
14494 * nat/amd64-linux-siginfo.h: Rename include guard.
14495 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14496 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14497 * nat/aarch64-linux.h: Rename include guard.
14498 * nat/aarch64-linux-hw-point.h: Rename include guard.
14499 * mn10300-tdep.h: Add include guard.
14500 * mips-linux-tdep.h: Add include guard.
14501 * mi/mi-parse.h: Rename include guard.
14502 * mi/mi-out.h: Rename include guard.
14503 * mi/mi-main.h: Rename include guard.
14504 * mi/mi-interp.h: Rename include guard.
14505 * mi/mi-getopt.h: Rename include guard.
14506 * mi/mi-console.h: Rename include guard.
14507 * mi/mi-common.h: Rename include guard.
14508 * mi/mi-cmds.h: Rename include guard.
14509 * mi/mi-cmd-break.h: Rename include guard.
14510 * m2-lang.h: Add include guard.
14511 * location.h: Rename include guard.
14512 * linux-record.h: Rename include guard.
14513 * linux-nat.h: Add include guard.
14514 * linux-fork.h: Add include guard.
14515 * i386-darwin-tdep.h: Rename include guard.
14516 * hppa-linux-offsets.h: Add include guard.
14517 * guile/guile.h: Rename include guard.
14518 * guile/guile-internal.h: Rename include guard.
14519 * gnu-nat.h: Rename include guard.
14520 * gdb-stabs.h: Rename include guard.
14521 * frv-tdep.h: Add include guard.
14522 * f-lang.h: Add include guard.
14523 * event-loop.h: Add include guard.
14524 * darwin-nat.h: Rename include guard.
14525 * cp-abi.h: Rename include guard.
14526 * config/sparc/nm-sol2.h: Rename include guard.
14527 * config/nm-nto.h: Rename include guard.
14528 * config/nm-linux.h: Add include guard.
14529 * config/i386/nm-i386gnu.h: Rename include guard.
14530 * config/djgpp/nl_types.h: Rename include guard.
14531 * config/djgpp/langinfo.h: Rename include guard.
14532 * compile/gcc-cp-plugin.h: Add include guard.
14533 * compile/gcc-c-plugin.h: Add include guard.
14534 * compile/compile.h: Rename include guard.
14535 * compile/compile-object-run.h: Rename include guard.
14536 * compile/compile-object-load.h: Rename include guard.
14537 * compile/compile-internal.h: Rename include guard.
14538 * compile/compile-cplus.h: Rename include guard.
14539 * compile/compile-c.h: Rename include guard.
14540 * common/xml-utils.h: Rename include guard.
14541 * common/x86-xstate.h: Rename include guard.
14542 * common/version.h: Rename include guard.
14543 * common/vec.h: Rename include guard.
14544 * common/tdesc.h: Rename include guard.
14545 * common/selftest.h: Rename include guard.
14546 * common/scoped_restore.h: Rename include guard.
14547 * common/scoped_mmap.h: Rename include guard.
14548 * common/scoped_fd.h: Rename include guard.
14549 * common/safe-iterator.h: Rename include guard.
14550 * common/run-time-clock.h: Rename include guard.
14551 * common/refcounted-object.h: Rename include guard.
14552 * common/queue.h: Rename include guard.
14553 * common/ptid.h: Rename include guard.
14554 * common/print-utils.h: Rename include guard.
14555 * common/preprocessor.h: Rename include guard.
14556 * common/pathstuff.h: Rename include guard.
14557 * common/observable.h: Rename include guard.
14558 * common/netstuff.h: Rename include guard.
14559 * common/job-control.h: Rename include guard.
14560 * common/host-defs.h: Rename include guard.
14561 * common/gdb_wait.h: Rename include guard.
14562 * common/gdb_vecs.h: Rename include guard.
14563 * common/gdb_unlinker.h: Rename include guard.
14564 * common/gdb_unique_ptr.h: Rename include guard.
14565 * common/gdb_tilde_expand.h: Rename include guard.
14566 * common/gdb_sys_time.h: Rename include guard.
14567 * common/gdb_string_view.h: Rename include guard.
14568 * common/gdb_splay_tree.h: Rename include guard.
14569 * common/gdb_setjmp.h: Rename include guard.
14570 * common/gdb_ref_ptr.h: Rename include guard.
14571 * common/gdb_optional.h: Rename include guard.
14572 * common/gdb_locale.h: Rename include guard.
14573 * common/gdb_assert.h: Rename include guard.
14574 * common/filtered-iterator.h: Rename include guard.
14575 * common/filestuff.h: Rename include guard.
14576 * common/fileio.h: Rename include guard.
14577 * common/environ.h: Rename include guard.
14578 * common/common-utils.h: Rename include guard.
14579 * common/common-types.h: Rename include guard.
14580 * common/common-regcache.h: Rename include guard.
14581 * common/common-inferior.h: Rename include guard.
14582 * common/common-gdbthread.h: Rename include guard.
14583 * common/common-exceptions.h: Rename include guard.
14584 * common/common-defs.h: Rename include guard.
14585 * common/common-debug.h: Rename include guard.
14586 * common/cleanups.h: Rename include guard.
14587 * common/buffer.h: Rename include guard.
14588 * common/btrace-common.h: Rename include guard.
14589 * common/break-common.h: Rename include guard.
14590 * cli/cli-utils.h: Rename include guard.
14591 * cli/cli-style.h: Rename include guard.
14592 * cli/cli-setshow.h: Rename include guard.
14593 * cli/cli-script.h: Rename include guard.
14594 * cli/cli-interp.h: Rename include guard.
14595 * cli/cli-decode.h: Rename include guard.
14596 * cli/cli-cmds.h: Rename include guard.
14597 * charset-list.h: Add include guard.
14598 * buildsym-legacy.h: Rename include guard.
14599 * bfin-tdep.h: Add include guard.
14600 * ax.h: Rename include guard.
14601 * arm-linux-tdep.h: Add include guard.
14602 * arm-fbsd-tdep.h: Add include guard.
14603 * arch/xtensa.h: Rename include guard.
14604 * arch/tic6x.h: Add include guard.
14605 * arch/i386.h: Add include guard.
14606 * arch/arm.h: Rename include guard.
14607 * arch/arm-linux.h: Rename include guard.
14608 * arch/arm-get-next-pcs.h: Rename include guard.
14609 * arch/amd64.h: Add include guard.
14610 * arch/aarch64-insn.h: Rename include guard.
14611 * arch-utils.h: Rename include guard.
14612 * annotate.h: Add include guard.
14613 * amd64-darwin-tdep.h: Rename include guard.
14614 * aarch64-linux-tdep.h: Add include guard.
14615 * aarch64-fbsd-tdep.h: Add include guard.
14616 * aarch32-linux-nat.h: Add include guard.
14617
14618 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14619
14620 * macrotab.c (macro_define_internal): New function that
14621 factorizes macro_define_object_internal and macro_define_function
14622 code.
14623 (macro_define_object_internal): Use macro_define_internal.
14624 (macro_define_function): Likewise.
14625
14626 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14627
14628 * macrocmd.c (extract_identifier): Return
14629 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14630 callers.
14631
14632 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14633
14634 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14635
14636 2019-02-05 Tom Tromey <tom@tromey.com>
14637
14638 * target.c (target_stack::unpush): Move assertion earlier.
14639
14640 2019-01-30 Tom Tromey <tom@tromey.com>
14641
14642 PR python/23615:
14643 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14644 (gdbpy_parse_and_eval): Likewise.
14645 * python/python-internal.h (gdbpy_allow_threads): New class.
14646
14647 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14648
14649 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14650 (aarch64_fbsd_fpregmap): Move earlier.
14651 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14652 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14653 instead of individual calls to trad_frame_set_reg_addr.
14654 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14655 earlier.
14656 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14657 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14658 instead of individual calls to trad_frame_set_reg_addr.
14659
14660 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14661
14662 * CONTRIBUTE: Replace contribution list with wiki link.
14663
14664 2019-01-25 Tom Tromey <tom@tromey.com>
14665
14666 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14667
14668 2019-01-25 Tom Tromey <tom@tromey.com>
14669
14670 * xtensa-linux-nat.c: Fix common/ includes.
14671 * xml-support.h: Fix common/ includes.
14672 * xml-support.c: Fix common/ includes.
14673 * x86-linux-nat.c: Fix common/ includes.
14674 * windows-nat.c: Fix common/ includes.
14675 * varobj.h: Fix common/ includes.
14676 * varobj.c: Fix common/ includes.
14677 * value.c: Fix common/ includes.
14678 * valops.c: Fix common/ includes.
14679 * utils.c: Fix common/ includes.
14680 * unittests/xml-utils-selftests.c: Fix common/ includes.
14681 * unittests/utils-selftests.c: Fix common/ includes.
14682 * unittests/unpack-selftests.c: Fix common/ includes.
14683 * unittests/tracepoint-selftests.c: Fix common/ includes.
14684 * unittests/style-selftests.c: Fix common/ includes.
14685 * unittests/string_view-selftests.c: Fix common/ includes.
14686 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14687 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14688 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14689 * unittests/rsp-low-selftests.c: Fix common/ includes.
14690 * unittests/parse-connection-spec-selftests.c: Fix common/
14691 includes.
14692 * unittests/optional-selftests.c: Fix common/ includes.
14693 * unittests/offset-type-selftests.c: Fix common/ includes.
14694 * unittests/observable-selftests.c: Fix common/ includes.
14695 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14696 * unittests/memrange-selftests.c: Fix common/ includes.
14697 * unittests/memory-map-selftests.c: Fix common/ includes.
14698 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14699 * unittests/function-view-selftests.c: Fix common/ includes.
14700 * unittests/environ-selftests.c: Fix common/ includes.
14701 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14702 * unittests/common-utils-selftests.c: Fix common/ includes.
14703 * unittests/cli-utils-selftests.c: Fix common/ includes.
14704 * unittests/array-view-selftests.c: Fix common/ includes.
14705 * ui-file.c: Fix common/ includes.
14706 * tui/tui-io.c: Fix common/ includes.
14707 * tracepoint.h: Fix common/ includes.
14708 * tracepoint.c: Fix common/ includes.
14709 * tracefile-tfile.c: Fix common/ includes.
14710 * top.h: Fix common/ includes.
14711 * top.c: Fix common/ includes.
14712 * thread.c: Fix common/ includes.
14713 * target/waitstatus.h: Fix common/ includes.
14714 * target/waitstatus.c: Fix common/ includes.
14715 * target.h: Fix common/ includes.
14716 * target.c: Fix common/ includes.
14717 * target-memory.c: Fix common/ includes.
14718 * target-descriptions.c: Fix common/ includes.
14719 * symtab.h: Fix common/ includes.
14720 * symfile.c: Fix common/ includes.
14721 * stap-probe.c: Fix common/ includes.
14722 * spu-linux-nat.c: Fix common/ includes.
14723 * sparc-nat.c: Fix common/ includes.
14724 * source.c: Fix common/ includes.
14725 * solib.c: Fix common/ includes.
14726 * solib-target.c: Fix common/ includes.
14727 * ser-unix.c: Fix common/ includes.
14728 * ser-tcp.c: Fix common/ includes.
14729 * ser-pipe.c: Fix common/ includes.
14730 * ser-base.c: Fix common/ includes.
14731 * selftest-arch.c: Fix common/ includes.
14732 * s12z-tdep.c: Fix common/ includes.
14733 * rust-exp.y: Fix common/ includes.
14734 * rs6000-aix-tdep.c: Fix common/ includes.
14735 * riscv-tdep.c: Fix common/ includes.
14736 * remote.c: Fix common/ includes.
14737 * remote-notif.h: Fix common/ includes.
14738 * remote-fileio.h: Fix common/ includes.
14739 * remote-fileio.c: Fix common/ includes.
14740 * regcache.h: Fix common/ includes.
14741 * regcache.c: Fix common/ includes.
14742 * record-btrace.c: Fix common/ includes.
14743 * python/python.c: Fix common/ includes.
14744 * python/py-type.c: Fix common/ includes.
14745 * python/py-inferior.c: Fix common/ includes.
14746 * progspace.h: Fix common/ includes.
14747 * producer.c: Fix common/ includes.
14748 * procfs.c: Fix common/ includes.
14749 * proc-api.c: Fix common/ includes.
14750 * printcmd.c: Fix common/ includes.
14751 * ppc-linux-nat.c: Fix common/ includes.
14752 * parser-defs.h: Fix common/ includes.
14753 * osdata.c: Fix common/ includes.
14754 * obsd-nat.c: Fix common/ includes.
14755 * nat/x86-linux.c: Fix common/ includes.
14756 * nat/x86-linux-dregs.c: Fix common/ includes.
14757 * nat/x86-dregs.h: Fix common/ includes.
14758 * nat/x86-dregs.c: Fix common/ includes.
14759 * nat/ppc-linux.c: Fix common/ includes.
14760 * nat/mips-linux-watch.h: Fix common/ includes.
14761 * nat/mips-linux-watch.c: Fix common/ includes.
14762 * nat/linux-waitpid.c: Fix common/ includes.
14763 * nat/linux-ptrace.h: Fix common/ includes.
14764 * nat/linux-ptrace.c: Fix common/ includes.
14765 * nat/linux-procfs.c: Fix common/ includes.
14766 * nat/linux-personality.c: Fix common/ includes.
14767 * nat/linux-osdata.c: Fix common/ includes.
14768 * nat/linux-namespaces.c: Fix common/ includes.
14769 * nat/linux-btrace.h: Fix common/ includes.
14770 * nat/linux-btrace.c: Fix common/ includes.
14771 * nat/fork-inferior.c: Fix common/ includes.
14772 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14773 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14774 * nat/aarch64-linux.c: Fix common/ includes.
14775 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14776 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14777 * namespace.h: Fix common/ includes.
14778 * mips-linux-tdep.c: Fix common/ includes.
14779 * minsyms.c: Fix common/ includes.
14780 * mi/mi-parse.h: Fix common/ includes.
14781 * mi/mi-main.c: Fix common/ includes.
14782 * mi/mi-cmd-env.c: Fix common/ includes.
14783 * memrange.h: Fix common/ includes.
14784 * memattr.c: Fix common/ includes.
14785 * maint.h: Fix common/ includes.
14786 * maint.c: Fix common/ includes.
14787 * main.c: Fix common/ includes.
14788 * machoread.c: Fix common/ includes.
14789 * location.c: Fix common/ includes.
14790 * linux-thread-db.c: Fix common/ includes.
14791 * linux-nat.c: Fix common/ includes.
14792 * linux-fork.c: Fix common/ includes.
14793 * inline-frame.c: Fix common/ includes.
14794 * infrun.c: Fix common/ includes.
14795 * inflow.c: Fix common/ includes.
14796 * inferior.h: Fix common/ includes.
14797 * inferior.c: Fix common/ includes.
14798 * infcmd.c: Fix common/ includes.
14799 * inf-ptrace.c: Fix common/ includes.
14800 * inf-child.c: Fix common/ includes.
14801 * ia64-linux-nat.c: Fix common/ includes.
14802 * i387-tdep.c: Fix common/ includes.
14803 * i386-tdep.c: Fix common/ includes.
14804 * i386-linux-tdep.c: Fix common/ includes.
14805 * i386-linux-nat.c: Fix common/ includes.
14806 * i386-go32-tdep.c: Fix common/ includes.
14807 * i386-fbsd-tdep.c: Fix common/ includes.
14808 * i386-fbsd-nat.c: Fix common/ includes.
14809 * guile/scm-type.c: Fix common/ includes.
14810 * guile/guile.c: Fix common/ includes.
14811 * go32-nat.c: Fix common/ includes.
14812 * gnu-nat.c: Fix common/ includes.
14813 * gdbthread.h: Fix common/ includes.
14814 * gdbarch-selftests.c: Fix common/ includes.
14815 * gdb_usleep.c: Fix common/ includes.
14816 * gdb_select.h: Fix common/ includes.
14817 * gdb_bfd.c: Fix common/ includes.
14818 * gcore.c: Fix common/ includes.
14819 * fork-child.c: Fix common/ includes.
14820 * findvar.c: Fix common/ includes.
14821 * fbsd-nat.c: Fix common/ includes.
14822 * event-top.c: Fix common/ includes.
14823 * event-loop.c: Fix common/ includes.
14824 * dwarf2read.c: Fix common/ includes.
14825 * dwarf2loc.c: Fix common/ includes.
14826 * dwarf2-frame.c: Fix common/ includes.
14827 * dwarf-index-cache.c: Fix common/ includes.
14828 * dtrace-probe.c: Fix common/ includes.
14829 * disasm-selftests.c: Fix common/ includes.
14830 * defs.h: Fix common/ includes.
14831 * csky-tdep.c: Fix common/ includes.
14832 * cp-valprint.c: Fix common/ includes.
14833 * cp-support.h: Fix common/ includes.
14834 * cp-support.c: Fix common/ includes.
14835 * corelow.c: Fix common/ includes.
14836 * completer.h: Fix common/ includes.
14837 * completer.c: Fix common/ includes.
14838 * compile/compile.c: Fix common/ includes.
14839 * compile/compile-loc2c.c: Fix common/ includes.
14840 * compile/compile-cplus-types.c: Fix common/ includes.
14841 * compile/compile-cplus-symbols.c: Fix common/ includes.
14842 * command.h: Fix common/ includes.
14843 * cli/cli-dump.c: Fix common/ includes.
14844 * cli/cli-cmds.c: Fix common/ includes.
14845 * charset.c: Fix common/ includes.
14846 * build-id.c: Fix common/ includes.
14847 * btrace.h: Fix common/ includes.
14848 * btrace.c: Fix common/ includes.
14849 * breakpoint.h: Fix common/ includes.
14850 * breakpoint.c: Fix common/ includes.
14851 * ax.h:
14852 (enum agent_op): Fix common/ includes.
14853 * ax-general.c (struct aop_map): Fix common/ includes.
14854 * ax-gdb.c: Fix common/ includes.
14855 * auxv.c: Fix common/ includes.
14856 * auto-load.c: Fix common/ includes.
14857 * arm-tdep.c: Fix common/ includes.
14858 * arch/riscv.c: Fix common/ includes.
14859 * arch/ppc-linux-common.c: Fix common/ includes.
14860 * arch/i386.c: Fix common/ includes.
14861 * arch/arm.c: Fix common/ includes.
14862 * arch/arm-linux.c: Fix common/ includes.
14863 * arch/arm-get-next-pcs.c: Fix common/ includes.
14864 * arch/amd64.c: Fix common/ includes.
14865 * arch/aarch64.c: Fix common/ includes.
14866 * arch/aarch64-insn.c: Fix common/ includes.
14867 * arch-utils.c: Fix common/ includes.
14868 * amd64-windows-tdep.c: Fix common/ includes.
14869 * amd64-tdep.c: Fix common/ includes.
14870 * amd64-sol2-tdep.c: Fix common/ includes.
14871 * amd64-obsd-tdep.c: Fix common/ includes.
14872 * amd64-nbsd-tdep.c: Fix common/ includes.
14873 * amd64-linux-tdep.c: Fix common/ includes.
14874 * amd64-linux-nat.c: Fix common/ includes.
14875 * amd64-fbsd-tdep.c: Fix common/ includes.
14876 * amd64-fbsd-nat.c: Fix common/ includes.
14877 * amd64-dicos-tdep.c: Fix common/ includes.
14878 * amd64-darwin-tdep.c: Fix common/ includes.
14879 * agent.c: Fix common/ includes.
14880 * ada-lang.h: Fix common/ includes.
14881 * ada-lang.c: Fix common/ includes.
14882 * aarch64-tdep.c: Fix common/ includes.
14883
14884 2019-01-25 Tom Tromey <tom@tromey.com>
14885
14886 * common/create-version.sh: Use common/version.h.
14887
14888 2019-01-24 Pedro Alves <palves@redhat.com>
14889
14890 * infrun.c (signal_stop, signal_print, signal_program)
14891 (signal_catch, signal_pass): Now arrays instead of pointers.
14892 (update_signals_program_target, do_target_resume)
14893 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14894 * linux-nat.c (linux_nat_target::pass_signals)
14895 (linux_nat_target::create_inferior, linux_nat_target::attach):
14896 Adjust.
14897 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14898 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14899 * procfs.c (procfs_target::pass_signals): Adjust.
14900 * record-full.c (record_full_target::resume): Adjust.
14901 * remote.c (remote_target::pass_signals)
14902 (remote_target::program_signals): Adjust.
14903 * target-debug.h (target_debug_print_signals): Now takes a
14904 gdb::array_view as parameter. Adjust.
14905 * target.h (target_ops) <pass_signals, program_signals>: Replace
14906 pointer and length parameters with gdb::array_view.
14907 (target_pass_signals, target_program_signals): Likewise.
14908 * target-delegates.c: Regenerate.
14909
14910 2019-01-24 Pedro Alves <palves@redhat.com>
14911
14912 * common/forward-scope-exit.h
14913 (forward_scope_exit::forward_scope_exit): Pass arguments to
14914 m_bind_function directly, instead of creating a std::bind and
14915 copying that.
14916
14917 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14918
14919 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14920 for static members.
14921 (pass_in_v_vfp_candidate): Likewise.
14922
14923 2019-01-23 Tom Tromey <tom@tromey.com>
14924 Pedro Alves <palves@redhat.com>
14925
14926 * regcache.c (class regcache_invalidator): Remove.
14927 (regcache::raw_write): Use make_scope_exit.
14928
14929 2019-01-23 Tom Tromey <tom@tromey.com>
14930
14931 * ui-out.h (class ui_out_emit_type): Update comment.
14932
14933 2019-01-23 Tom Tromey <tom@tromey.com>
14934
14935 * infrun.c (fetch_inferior_event): Update comment.
14936
14937 2019-01-23 Tom Tromey <tom@tromey.com>
14938 Pedro Alves <palves@redhat.com>
14939
14940 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14941 parameter.
14942 (fetch_inferior_event): Use SCOPE_EXIT.
14943
14944
14945 2019-01-23 Tom Tromey <tom@tromey.com>
14946 Pedro Alves <palves@redhat.com>
14947
14948 * infrun.c (disable_thread_events): Delete.
14949 (stop_all_threads): Use SCOPE_EXIT.
14950
14951 2019-01-23 Tom Tromey <tom@tromey.com>
14952 Pedro Alves <palves@redhat.com>
14953
14954 * symfile.c: Include forward-scope-exit.h.
14955 (clear_symtab_users_cleanup): Replace forward declaration with
14956 a FORWARD_SCOPE_EXIT.
14957 (syms_from_objfile_1): Use the forward_scope_exit and
14958 gdb::optional instead of cleanup_function.
14959 (reread_symbols): Use the forward_scope_exit instead of
14960 cleanup_function.
14961 (clear_symtab_users_cleanup): Remove function.
14962
14963 2019-01-23 Tom Tromey <tom@tromey.com>
14964 Pedro Alves <palves@redhat.com>
14965
14966 * linux-nat.c: Include scope-exit.h.
14967 (cleanup_target_stop): Remove.
14968 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14969 SCOPE_EXIT.
14970
14971 2019-01-23 Tom Tromey <tom@tromey.com>
14972 Pedro Alves <palves@redhat.com>
14973
14974 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14975 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14976
14977 2019-01-23 Tom Tromey <tom@tromey.com>
14978 Andrew Burgess <andrew.burgess@embecosm.com>
14979 Pedro Alves <palves@redhat.com>
14980
14981 * infrun.c (fetch_inferior_event): Use scope_exit.
14982 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14983 * top.c (execute_command): Use scope_exit.
14984 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14985 * utils.c (do_bpstat_clear_actions_cleanup)
14986 (make_bpstat_clear_actions_cleanup): Remove.
14987
14988 2019-01-23 Tom Tromey <tom@tromey.com>
14989 Pedro Alves <palves@redhat.com>
14990
14991 * infrun.c: Include "common/scope-exit.h"
14992 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14993 (wait_for_inferior): Use SCOPE_EXIT.
14994 (fetch_inferior_event): Use scope_exit.
14995
14996 2019-01-23 Tom Tromey <tom@tromey.com>
14997 Pedro Alves <palves@redhat.com>
14998
14999 * breakpoint.c (create_breakpoint): Remove cleanup.
15000
15001 2019-01-23 Tom Tromey <tom@tromey.com>
15002 Andrew Burgess <andrew.burgess@embecosm.com>
15003 Pedro Alves <palves@redhat.com>
15004
15005 2019-01-23 Pedro Alves <palves@redhat.com>
15006
15007 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15008
15009 2019-01-23 Pedro Alves <palves@redhat.com>
15010 Andrew Burgess <andrew.burgess@embecosm.com>
15011
15012 * gdbthread.h: Include "common/forward-scope-exit.h".
15013 (scoped_finish_thread_state): Redefine custom class in terms of
15014 forward_scope_exit.
15015
15016 2019-01-23 Pedro Alves <palves@redhat.com>
15017 Andrew Burgess <andrew.burgess@embecosm.com>
15018
15019 * common/forward-scope-exit.h: New file.
15020
15021 2019-01-23 Pedro Alves <palves@redhat.com>
15022 Andrew Burgess <andrew.burgess@embecosm.com>
15023 Tom Tromey <tom@tromey.com>
15024
15025 * common/scope-exit.h: New file.
15026
15027 2019-01-23 Pedro Alves <palves@redhat.com>
15028
15029 * common/preprocessor.h (ESC): Rename to ...
15030 (ESC_PARENS): ... this.
15031 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15032 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15033
15034 2019-01-23 Tom Tromey <tom@tromey.com>
15035
15036 * language.h (class scoped_switch_to_sym_language_if_auto):
15037 Initialize m_lang in both cases.
15038
15039 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15040
15041 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15042 with XCNEW.
15043
15044 2019-01-22 Tom Tromey <tom@tromey.com>
15045
15046 * corelow.c: Do not include sys/file.h.
15047
15048 2019-01-22 Tom Tromey <tom@tromey.com>
15049
15050 * tui/tui-wingeneral.h: Include gdb_curses.h.
15051
15052 2019-01-22 Tom Tromey <tom@tromey.com>
15053
15054 * source-cache.h (class source_cache) <get_source_lines,
15055 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15056
15057 2019-01-22 Tom Tromey <tom@tromey.com>
15058
15059 * remote-fileio.h (struct remote_target): Declare.
15060
15061 2019-01-22 Tom Tromey <tom@tromey.com>
15062
15063 * python/py-arch.c: Do not include py-ref.h.
15064 * python/py-bpevent.c: Do not include py-ref.h.
15065 * python/py-cmd.c: Do not include py-ref.h.
15066 * python/py-continueevent.c: Do not include py-ref.h.
15067 * python/py-event.h: Do not include py-ref.h.
15068 * python/py-evtregistry.c: Do not include py-ref.h.
15069 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15070 * python/py-frame.c: Do not include py-ref.h.
15071 * python/py-framefilter.c: Do not include py-ref.h.
15072 * python/py-function.c: Do not include py-ref.h.
15073 * python/py-infevents.c: Do not include py-ref.h.
15074 * python/py-linetable.c: Do not include py-ref.h.
15075 * python/py-objfile.c: Do not include py-ref.h.
15076 * python/py-param.c: Do not include py-ref.h.
15077 * python/py-prettyprint.c: Do not include py-ref.h.
15078 * python/py-progspace.c: Do not include py-ref.h.
15079 * python/py-symbol.c: Do not include py-ref.h.
15080 * python/py-symtab.c: Do not include py-ref.h.
15081 * python/py-type.c: Do not include py-ref.h.
15082 * python/py-unwind.c: Do not include py-ref.h.
15083 * python/py-utils.c: Do not include py-ref.h.
15084 * python/py-value.c: Do not include py-ref.h.
15085 * python/py-varobj.c: Do not include py-ref.h.
15086 * python/py-xmethods.c: Do not include py-ref.h.
15087 * python/python.c: Do not include py-ref.h.
15088 * varobj.c: Do not include py-ref.h.
15089
15090 2019-01-22 Tom Tromey <tom@tromey.com>
15091
15092 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15093 keyword for bcache.
15094
15095 2019-01-22 Tom Tromey <tom@tromey.com>
15096
15097 * compile/compile-cplus-types.c: Remove a comment by #include.
15098
15099 2019-01-22 Tom Tromey <tom@tromey.com>
15100
15101 * compile/gcc-c-plugin.h: Include compile-internal.h.
15102
15103 2019-01-22 Tom Tromey <tom@tromey.com>
15104
15105 * stabsread.c (EXTERN): Do not define.
15106 (symnum, next_symbol_text_func, processing_gcc_compilation)
15107 (within_function, global_sym_chain, global_stabs)
15108 (previous_stab_code, this_object_header_files)
15109 (n_this_object_header_files)
15110 (n_allocated_this_object_header_files): Define.
15111 * stabsread.h (EXTERN): Never define. Use "extern".
15112
15113 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15114
15115 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15116 history_value.
15117
15118 2019-01-21 Tom Tromey <tom@tromey.com>
15119
15120 * ui-out.c: Fix includes.
15121 * tui/tui-source.c: Fix includes.
15122 * target.c: Fix includes.
15123 * remote.c: Fix includes.
15124 * regcache.c: Fix includes.
15125 * python/py-block.c: Fix includes.
15126 * printcmd.c: Fix includes.
15127 * or1k-tdep.c: Fix includes.
15128 * mi/mi-main.c: Fix includes.
15129 * m32r-tdep.c: Fix includes.
15130 * csky-tdep.c: Fix includes.
15131 * compile/compile-cplus-types.c: Fix includes.
15132 * cli/cli-interp.c: Fix includes.
15133
15134 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15135
15136 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15137 for padding.
15138
15139 2019-01-16 Tom Tromey <tom@tromey.com>
15140
15141 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15142 earlier.
15143 (struct objfile) <msymbols_range>: Move from top level.
15144 <msymbols>: New method.
15145 (class objfile_msymbols): Remove.
15146 * symtab.c (default_collect_symbol_completion_matches_break_on):
15147 Update.
15148 * symmisc.c (dump_msymbols): Update.
15149 * stabsread.c (scan_file_globals): Update.
15150 * objc-lang.c (info_selectors_command, info_classes_command)
15151 (find_methods): Update.
15152 * minsyms.c (find_solib_trampoline_target): Update.
15153 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15154 * coffread.c (coff_symfile_read): Update.
15155 * ada-lang.c (ada_lookup_simple_minsym)
15156 (ada_collect_symbol_completion_matches): Update.
15157
15158 2019-01-16 Tom Tromey <tom@tromey.com>
15159
15160 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15161 type. Remove no-argument constructor.
15162 <iterator::operator++>: Simplify.
15163 <begin>: Update.
15164 <end>: Use minimal_symbol_count.
15165
15166 2019-01-16 Tom Tromey <tom@tromey.com>
15167
15168 * objfiles.h (struct objfile) <psymtabs>: New method.
15169 (class objfile_psymtabs): Remove.
15170 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15171 typedef.
15172 <range>: New method.
15173 (require_partial_symbols): Change return type.
15174 * psymtab.c (require_partial_symbols)
15175 (psym_expand_symtabs_matching): Update.
15176 * mdebugread.c (parse_partial_symbols): Update.
15177 * dbxread.c (dbx_end_psymtab): Update.
15178
15179 2019-01-15 Tom Tromey <tom@tromey.com>
15180
15181 * symtab.c (lookup_objfile_from_block)
15182 (lookup_symbol_in_objfile_symtabs)
15183 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15184 (find_line_symtab, info_sources_command)
15185 (default_collect_symbol_completion_matches_break_on)
15186 (make_source_files_completion_list): Update.
15187 * symmisc.c (print_objfile_statistics, dump_objfile)
15188 (maintenance_print_symbols, maintenance_info_symtabs)
15189 (maintenance_check_symtabs, maintenance_info_line_tables):
15190 Update.
15191 * source.c (select_source_symtab)
15192 (forget_cached_source_info_for_objfile): Update.
15193 * objfiles.h (class objfile_compunits): Remove.
15194 (struct objfile) <compunits_range>: New typedef.
15195 (compunits): New method.
15196 * objfiles.c (objfile_relocate1): Update.
15197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15198 * maint.c (count_symtabs_and_blocks): Update.
15199 * linespec.c (iterate_over_all_matching_symtabs): Update.
15200 * cp-support.c (add_symbol_overload_list_qualified): Update.
15201 * coffread.c (coff_symtab_read): Update.
15202 * ada-lang.c (add_nonlocal_symbols)
15203 (ada_collect_symbol_completion_matches)
15204 (ada_add_global_exceptions): Update.
15205
15206 2019-01-15 Tom Tromey <tom@tromey.com>
15207
15208 * progspace.h (program_space) <objfiles_safe_range>: New
15209 typedef.
15210 <objfiles_safe>: New method.
15211 * objfiles.h (class all_objfiles_safe): Remove.
15212 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15213 * jit.c (jit_inferior_exit_hook): Update.
15214
15215 2019-01-17 Tom Tromey <tom@tromey.com>
15216
15217 * progspace.h (program_space) <objfiles_range>: New typedef.
15218 <objfiles>: New method.
15219 <objfiles_head>: Rename from objfiles.
15220 (object_files): Update.
15221 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15222 * guile/scm-pretty-print.c
15223 (ppscm_find_pretty_printer_from_objfiles): Update.
15224 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15225 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15226 Update.
15227 * python/py-progspace.c (pspy_get_objfiles): Update.
15228 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15229 Update.
15230 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15231 (objfpy_lookup_objfile_by_build_id): Update.
15232 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15233 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15234 Update.
15235 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15236 (expand_symtab_containing_pc, lookup_objfile_from_block)
15237 (lookup_static_symbol, basic_lookup_transparent_type)
15238 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15239 (find_line_symtab, info_sources_command)
15240 (default_collect_symbol_completion_matches_break_on)
15241 (make_source_files_completion_list, find_main_name): Update.
15242 * symmisc.c (print_symbol_bcache_statistics)
15243 (print_objfile_statistics, maintenance_print_symbols)
15244 (maintenance_print_msymbols, maintenance_print_objfiles)
15245 (maintenance_info_symtabs, maintenance_check_symtabs)
15246 (maintenance_expand_symtabs, maintenance_info_line_tables):
15247 Update.
15248 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15249 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15250 (map_overlay_command, unmap_overlay_command)
15251 (simple_overlay_update, expand_symtabs_matching)
15252 (map_symbol_filenames): Update.
15253 * symfile-debug.c (set_debug_symfile): Update.
15254 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15255 Update.
15256 * source.c (select_source_symtab, forget_cached_source_info):
15257 Update.
15258 * solib.c (solib_read_symbols): Update.
15259 * solib-spu.c (append_ocl_sos): Update.
15260 * psymtab.c (maintenance_print_psymbols)
15261 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15262 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15263 * printcmd.c (info_symbol_command): Update.
15264 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15265 Update.
15266 * objfiles.h (class all_objfiles): Remove.
15267 * objfiles.c (have_partial_symbols, have_full_symbols)
15268 (have_minimal_symbols, qsort_cmp, update_section_map)
15269 (shared_objfile_contains_address_p)
15270 (default_iterate_over_objfiles_in_search_order): Update.
15271 * objc-lang.c (info_selectors_command, info_classes_command)
15272 (find_methods): Update.
15273 * minsyms.c (find_solib_trampoline_target): Update.
15274 * maint.c (maintenance_info_sections)
15275 (maintenance_translate_address, count_symtabs_and_blocks):
15276 Update.
15277 * main.c (captured_main_1): Update.
15278 * linux-thread-db.c (try_thread_db_load_from_pdir)
15279 (has_libpthread): Update.
15280 * linespec.c (iterate_over_all_matching_symtabs)
15281 (search_minsyms_for_name): Update.
15282 * jit.c (jit_find_objf_with_entry_addr): Update.
15283 * hppa-tdep.c (find_unwind_entry)
15284 (hppa_lookup_stub_minimal_symbol): Update.
15285 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15286 Update.
15287 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15288 (elf_gnu_ifunc_resolve_by_got): Update.
15289 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15290 * dwarf-index-write.c (save_gdb_index_command): Update.
15291 * cp-support.c (add_symbol_overload_list_qualified): Update.
15292 * breakpoint.c (create_overlay_event_breakpoint)
15293 (create_longjmp_master_breakpoint)
15294 (create_std_terminate_master_breakpoint)
15295 (create_exception_master_breakpoint): Update.
15296 * blockframe.c (find_pc_partial_function): Update.
15297 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15298 (ada_collect_symbol_completion_matches)
15299 (ada_add_global_exceptions): Update.
15300
15301 2019-01-17 Tom Tromey <tom@tromey.com>
15302
15303 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15304 declare VEC.
15305 (solib_target_parse_libraries): Change return type.
15306 (library_list_start_segment, library_list_start_section)
15307 (library_list_end_library, library_list_start_library); Update.
15308 (solib_target_free_library_list): Remove.
15309 (solib_target_parse_libraries): Remove cleanup. Change return
15310 type.
15311 (solib_target_current_sos): Update.
15312
15313 2019-01-17 Tom Tromey <tromey@bapiya>
15314
15315 * valprint.c: Replace "the the" with "the".
15316 * symtab.c: Replace "the the" with "the".
15317 * solib.c: Replace "the the" with "the".
15318 * solib-dsbt.c: Replace "the the" with "the".
15319 * linespec.c: Replace "the the" with "the".
15320 * dwarf2loc.h: Replace "the the" with "the".
15321 * amd64-windows-tdep.c: Replace "the the" with "the".
15322 * aarch64-tdep.c: Replace "the the" with "the".
15323
15324 2019-01-16 Keith Seitz <keiths@redhat.com>
15325
15326 PR gdb/23773
15327 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15328 <builder>: Rename to ..
15329 <m_builder>: ... this and make private.
15330 (dwarf2_cu::get_builder): New method. Change all users of
15331 `builder' to use this method.
15332 (dwarf2_start_symtab): Move to ...
15333 (dwarf2_cu::start_symtab): ... here. Update all callers
15334 (setup_type_unit_groups): Move to ...
15335 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15336 callers.
15337 (dwarf2_cu::reset_builder): New method.
15338 (process_full_compunit, process_full_type_unit): Use
15339 dwarf2_cu::reset_builder.
15340 (follow_die_offset): Record the ancestor CU if it is different
15341 from the followed DIE's CU.
15342 (follow_die_sig_1): Likewise.
15343
15344 2019-01-15 Tom Tromey <tom@tromey.com>
15345
15346 * remote.c (class remote_state) <buf>: Now a char_vector.
15347 <buf_size>: Remove.
15348 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15349 parameter.
15350 (remote_target::getpkt_or_notif_sane_1)
15351 (remote_target::getpkt_sane)
15352 (remote_target::getpkt_or_notif_sane): Likewise.
15353 (class remote_target) <putpkt>: New overload.
15354 (remote_target::read_frame): Change type of "buf_p". Remove
15355 sizeof_p parameter.
15356 (packet_ok): New overload.
15357 (packet_check_result): New overload.
15358 Update all uses.
15359
15360 2019-01-14 Tom Tromey <tom@tromey.com>
15361
15362 * remote-notif.c (handle_notification, remote_notif_ack)
15363 (remote_notif_parse): Make "buf" const.
15364 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15365 const.
15366 (remote_notif_parse, remote_notif_ack, handle_notification):
15367 Likewise.
15368 * remote.c (remote_notif_stop_parse): Make "buf" const.
15369 (remote_target::remote_parse_stop_reply): Make "buf" const.
15370 (remote_notif_stop_ack): Make "buf" const.
15371
15372 2019-01-14 Tom Tromey <tom@tromey.com>
15373
15374 * remote.c (remote_console_output): Make parameter const.
15375
15376 2019-01-14 Tom Tromey <tom@tromey.com>
15377
15378 * target-debug.h (target_debug_print_signals): Constify.
15379 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15380 * procfs.c (procfs_target::pass_signals): Update.
15381 * linux-nat.c (linux_nat_target::pass_signals): Update.
15382 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15383 * target-delegates.c: Rebuild.
15384 * remote.c (remote_target::program_signals): Update.
15385 (remote_target::pass_signals): Update.
15386 * target.c (target_pass_signals): Constify argument.
15387 (target_program_signals): Likewise.
15388 * target.h (struct target_ops) <pass_signals, program_signals>:
15389 Constify argument.
15390 (target_pass_signals, target_program_signals): Constify argument.
15391
15392 2019-01-14 Tom Tromey <tom@tromey.com>
15393
15394 PR tui/28819:
15395 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15396
15397 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15398
15399 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15400 field.
15401 * rs6000-tdep.c: Include reggroups.h.
15402 (IS_V_ALIAS_PSEUDOREG): Define.
15403 (rs6000_register_name): Return names for the "vX" aliases.
15404 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15405 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15406 aliases. Call default_register_reggroup_p for all other
15407 pseudo-registers.
15408 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15409 New functions.
15410 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15411 Handle "vX" aliases.
15412 (v_alias_pseudo_register_collect): New function.
15413 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15414 (rs6000_gdbarch_init): Initialize "vX" aliases as
15415 pseudo-registers. Restore registration of
15416 rs6000_pseudo_register_reggroup_p with
15417 set_tdesc_pseudo_register_reggroup_p.
15418
15419 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15420
15421 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15422 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15423 set_gdbarch_num_pseudo_regs.
15424
15425 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15426
15427 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15428 Remove arg prefixname, add do_set and do_show.
15429 Add member functions set_list and show_list.
15430 * cli/cli-style.c (class cli_style_option): Update accordingly.
15431 (style_set_list): Move to file scope.
15432 (style_show_list): Likewise.
15433 (set_style): Call help_list.
15434 (show_style): Call cmd_show_list.
15435 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15436 Update to use the new macro.
15437
15438 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15439
15440 * ada-lang.c (_initialize_ada_language): Expand the help text
15441 for the "catch exception" command.
15442
15443 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15444
15445 * symtab.c (matching_obj_sections): Initialize obj,
15446 declare it closer to its usage.
15447
15448 2019-01-10 Tom Tromey <tom@tromey.com>
15449
15450 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15451 (basic_inf_threads_range): Remove.
15452 (inf_threads_range, inf_non_exited_threads_range)
15453 (safe_inf_threads_range): Use next_adapter.
15454
15455 2019-01-10 Keith Seitz <keiths@redhat.com>
15456
15457 PR gdb/23712
15458 PR symtab/23010
15459 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15460 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15461
15462 2019-01-10 Keith Seitz <keiths@redhat.com>
15463
15464 PR gdb/23712
15465 PR symtab/23010
15466 * dictionary.c (pending_to_vector): Remove.
15467 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15468 Remove _1 suffix, replacing functions of the same name. Update
15469 all callers.
15470 (dict_create_hashed, dict_create_hashed_expandable)
15471 (dict_create_linear, dict_create_linear_expandable, dict_free)
15472 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15473 Make functions static.
15474
15475 2019-01-10 Keith Seitz <keiths@redhat.com>
15476
15477 PR gdb/23712
15478 PR symtab/23010
15479 * dictionary.h (struct dictionary): Replace declaration with
15480 multidictionary.
15481 (dict_create_hashed, dict_create_hashed_expandable)
15482 (dict_create_linear, dict_create_linear_expandable)
15483 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15484 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15485 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15486 taking multidictionary argument.
15487 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15488 * block.h (struct block) <dict>: Change to multidictionary
15489 and rename `multidict'.
15490 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15491 symmisc.c: Update all dictionary references to multidictionary.
15492
15493 2019-01-10 Keith Seitz <keiths@redhat.com>
15494
15495 PR gdb/23712
15496 PR symtab/23010
15497 * dictionary.c: Include unordered_map.
15498 (pending_to_vector): New function.
15499 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15500 Rewrite the non-"_1" functions to take vector instead
15501 of linked list.
15502 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15503 "new" _1 versions of the same name.
15504 (multidictionary): Define.
15505 (std::hash<enum language): New definition.
15506 (collate_pending_symbols_by_language, mdict_create_hashed)
15507 (mdict_create_hashed_expandable, mdict_create_linear)
15508 (mdict_create_linear_expandable, mdict_free)
15509 (find_language_dictionary, create_new_language_dictionary)
15510 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15511 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15512 (mdict_size, mdict_empty): New functions.
15513 * dictionary.h (mdict_iterator): Define.
15514
15515 2019-01-10 Pedro Alves <palves@redhat.com>
15516
15517 * breakpoint.c (read_uploaded_action)
15518 (create_tracepoint_from_upload): Adjust to use
15519 gdb::unique_xmalloc_ptr.
15520 * ctf.c (ctf_write_uploaded_tp):
15521 (SET_ARRAY_FIELD): Use emplace_back.
15522 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15523 * tracefile-tfile.c (tfile_write_uploaded_tp):
15524 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15525 gdb::unique_xmalloc_ptr.
15526 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15527 at_string, cond_string, cmd_strings>: Replace char pointers
15528 with gdb::unique_xmalloc_ptr.
15529
15530 2019-01-10 Pedro Alves <palves@redhat.com>
15531
15532 * solib-target.c (library_list_start_library): Don't xstrdup name.
15533
15534 2019-01-10 Pedro Alves <palves@redhat.com>
15535
15536 * mdebugread.c (parse_partial_symbols): Use
15537 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15538
15539 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15540
15541 * linux-fork.c (scoped_switch_fork_info)
15542 <~scoped_switch_fork_info>: Fix incorrect variable name.
15543
15544 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15545
15546 * linux-fork.c (scoped_switch_fork_info)
15547 <scoped_switch_fork_info>: Make explicit.
15548 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15549
15550 2019-01-10 Tom Tromey <tom@tromey.com>
15551
15552 * objfiles.h (objfile::reset_psymtabs): Update.
15553 * objfiles.c (objfile::objfile): Update.
15554 * psymtab.h (psymtab_storage::obstack): Update.
15555 (psymtab_storage::m_obstack): Use gdb::optional.
15556 (class psymtab_storage): Update comment. Remove objfile
15557 parameter.
15558 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15559
15560 2019-01-10 Tom Tromey <tom@tromey.com>
15561
15562 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15563 <free_psymtabs>: Now private.
15564 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15565 (allocate_psymtab): Use new method.
15566
15567 2019-01-10 Tom Tromey <tom@tromey.com>
15568
15569 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15570 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15571 * mdebugread.c (parse_partial_symbols): Use
15572 allocate_dependencies.
15573 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15574 allocate_dependencies.
15575 (process_psymtab_comp_unit_reader)
15576 (build_type_psymtab_dependencies): Likewise.
15577 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15578
15579 2019-01-10 Tom Tromey <tom@tromey.com>
15580
15581 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15582 PSYMBOL_SET_LANGUAGE.
15583 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15584
15585 2019-01-10 Tom Tromey <tom@tromey.com>
15586
15587 * psymtab.h (psymtab_storage::obstack): New method.
15588 <m_obstack>: Rename from obstack; now private.
15589 * psymtab.c (psymtab_storage): Update.
15590 * dwarf2read.c (create_addrmap_from_index)
15591 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15592 Update.
15593
15594 2019-01-10 Tom Tromey <tom@tromey.com>
15595
15596 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15597 * objfiles.h (objfile::reset_psymtabs): New method.
15598
15599 2019-01-10 Tom Tromey <tom@tromey.com>
15600
15601 * symmisc.c (print_symbol_bcache_statistics): Update.
15602 (print_objfile_statistics): Update.
15603 * symfile.c (reread_symbols): Update.
15604 * psymtab.h (class psymtab_storage): New.
15605 * psymtab.c (psymtab_storage): New constructor.
15606 (~psymtab_storage): New destructor.
15607 (require_partial_symbols): Update.
15608 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15609 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15610 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15611 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15612 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15613 (start_psymtab_common, end_psymtab_common)
15614 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15615 (allocate_psymtab): Update.
15616 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15617 Update.
15618 (dump_psymtab_addrmap, maintenance_print_psymbols)
15619 (maintenance_check_psymtabs): Update.
15620 (class objfile_psymtabs): Move to objfiles.h.
15621 * psympriv.h (discard_psymtab): Now inline.
15622 (psymtab_discarder::psymtab_discarder): Update.
15623 (psymtab_discarder::~psymtab_discarder): Update.
15624 (ALL_OBJFILE_PSYMTABS): Rewrite.
15625 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15626 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15627 Remove fields.
15628 <partial_symtabs>: New field.
15629 (class objfile_psymtabs): Move from psymtab.h. Update.
15630 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15631 psymbol_cache.
15632 (objfile::~objfile): Don't destroy psymbol_cache.
15633 * mdebugread.c (parse_partial_symbols): Update.
15634 * dwarf2read.c (create_addrmap_from_index)
15635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15636 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15637 (add_partial_subprogram, dwarf2_ranges_read): Update.
15638 * dwarf-index-write.c (write_address_map)
15639 (write_one_signatured_type, recursively_write_psymbols)
15640 (class debug_names, class debug_names, write_psymtabs_to_index):
15641 Update.
15642
15643 2019-01-10 Tom Tromey <tom@tromey.com>
15644
15645 * symtab.h (SYMBOL_SET_NAMES): Update.
15646 (symbol_set_names): Update.
15647 (MSYMBOL_SET_NAMES): Update.
15648 * symtab.c (symbol_set_names): Change argument to be an
15649 objfile_per_bfd_storage.
15650 * psymtab.c (add_psymbol_to_bcache): Update.
15651 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15652
15653 2019-01-10 Tom Tromey <tom@tromey.com>
15654
15655 * symtab.c (create_demangled_names_hash): Change argument to be an
15656 objfile_per_bfd_storage.
15657 (symbol_set_names): Update.
15658
15659 2019-01-10 Tom Tromey <tom@tromey.com>
15660
15661 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15662 init_psymbol_list.
15663 * psymtab.c (init_psymbol_list): Do nothing if already called.
15664 * psympriv.h (init_psymbol_list): Add comment.
15665 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15666 init_psymbol_list.
15667 * dbxread.c (dbx_symfile_read): Unconditionally call
15668 init_psymbol_list.
15669
15670 2019-01-10 Tom Tromey <tom@tromey.com>
15671
15672 * xcoffread.c (scan_xcoff_symtab): Update.
15673 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15674 "where".
15675 * mdebugread.c (parse_partial_symbols)
15676 (handle_psymbol_enumerators): Update.
15677 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15678 * dbxread.c (read_dbx_symtab): Update.
15679 * psympriv.h (psymbol_placement): New enum.
15680 (add_psymbol_to_list): Update.
15681
15682 2019-01-10 Tom Tromey <tom@tromey.com>
15683
15684 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15685 static_psymbols parameters.
15686 (scan_xcoff_symtab): Update.
15687 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15688 static_psymbols parameters.
15689 * psympriv.h (start_psymtab_common): Update.
15690 * mdebugread.c (parse_partial_symbols): Update.
15691 * dwarf2read.c (create_partial_symtab): Update.
15692 * dbxread.c (read_dbx_symtab): Update.
15693 (start_psymtab): Remove global_psymbols and static_psymbols
15694 parameters.
15695
15696 2019-01-10 Tom Tromey <tom@tromey.com>
15697
15698 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15699 * psymtab.c (allocate_psymtab): Add comment.
15700 * psympriv.h (allocate_psymtab): Add comment.
15701 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15702 initializations.
15703 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15704
15705 2019-01-10 Tom Tromey <tom@tromey.com>
15706
15707 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15708 Don't declare.
15709 * mipsread.c: Include mdebugread.h.
15710 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15711 Declare.
15712 * elfread.c: Include mdebugread.h.
15713
15714 2019-01-09 Tom Tromey <tom@tromey.com>
15715
15716 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15717 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15718 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15719 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15720 (psym_lookup_symbol, psym_find_last_source_symtab)
15721 (psym_forget_cached_source_info, psym_print_stats)
15722 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15723 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15724 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15725 (psym_find_compunit_symtab_by_address)
15726 (maintenance_print_psymbols, maintenance_info_psymtabs)
15727 (maintenance_check_psymtabs): Use ranged for.
15728 * psymtab.h (class objfile_psymtabs): New.
15729 (require_partial_symbols): Return objfile_psymtabs.
15730 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15731
15732 2019-01-09 Tom Tromey <tom@tromey.com>
15733
15734 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15735 (find_pc_mapped_section, list_overlays_command)
15736 (map_overlay_command, unmap_overlay_command)
15737 (simple_overlay_update): Use all_objfiles.
15738 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15739 * printcmd.c (info_symbol_command): Use all_objfiles.
15740 * objfiles.h (ALL_OBJSECTIONS): Remove.
15741 * maint.c (maintenance_translate_address): Use all_objfiles.
15742 * gcore.c (gcore_create_callback): Use all_objfiles.
15743 (objfile_find_memory_regions): Likewise.
15744
15745 2019-01-09 Tom Tromey <tom@tromey.com>
15746
15747 * symtab.c (find_line_symtab, info_sources_command)
15748 (make_source_files_completion_list): Use objfile_compunits.
15749 * source.c (select_source_symtab): Use objfile_compunits.
15750 * objfiles.h (struct objfile): Update comment.
15751 (ALL_OBJFILES): Remove.
15752 (ALL_FILETABS): Remove.
15753 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15754 objfile_compunits.
15755
15756 2019-01-09 Tom Tromey <tom@tromey.com>
15757
15758 * symmisc.c (print_objfile_statistics, dump_objfile)
15759 (maintenance_print_symbols): Use compunit_filetabs.
15760 * source.c (forget_cached_source_info_for_objfile): Use
15761 compunit_filetabs.
15762 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15763 (ALL_FILETABS): Use compunit_filetabs.
15764 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15765 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15766
15767 2019-01-09 Tom Tromey <tom@tromey.com>
15768
15769 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15770 (compunit_filetabs): New.
15771 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15772 compunit_filetabs.
15773 (info_sources_command, make_source_files_completion_list): Remove
15774 declaration.
15775 * symmisc.c (print_objfile_statistics, dump_objfile)
15776 (maintenance_print_symbols): Remove declaration.
15777 (maintenance_info_symtabs): Use compunit_filetabs.
15778 (maintenance_info_line_tables): Likewise.
15779 * source.c (select_source_symtab): Change local variable name.
15780 (forget_cached_source_info_for_objfile): Remove declaration.
15781 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15782 * objfiles.c (objfile_relocate1): Remove declaration.
15783 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15784 declaration.
15785 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15786 * coffread.c (coff_symtab_read): Remove declaration.
15787 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15788 compunit_filetabs.
15789
15790 2019-01-09 Tom Tromey <tom@tromey.com>
15791
15792 * symtab.c (lookup_objfile_from_block)
15793 (find_pc_sect_compunit_symtab, search_symbols)
15794 (default_collect_symbol_completion_matches_break_on): Use
15795 objfile_compunits.
15796 * objfiles.h (ALL_COMPUNITS): Remove.
15797 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15798 * cp-support.c (add_symbol_overload_list_qualified): Use
15799 objfile_compunits.
15800 * ada-lang.c (ada_collect_symbol_completion_matches)
15801 (ada_add_global_exceptions): Use objfile_compunits.
15802
15803 2019-01-09 Tom Tromey <tom@tromey.com>
15804
15805 * source.c (select_source_symtab)
15806 (forget_cached_source_info_for_objfile): Remove declaration.
15807 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15808 declaration.
15809 * maint.c (count_symtabs_and_blocks): Remove declaration.
15810 * cp-support.c (add_symbol_overload_list_qualified): Remove
15811 declaration.
15812 * coffread.c (coff_symtab_read): Remove declaration.
15813 * symtab.c (lookup_symbol_in_objfile_symtabs)
15814 (basic_lookup_transparent_type_1): Use objfile_compunits.
15815 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15816 (info_sources_command, search_symbols)
15817 (default_collect_symbol_completion_matches_break_on)
15818 (make_source_files_completion_list): Remove declaration.
15819 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15820 (ada_collect_symbol_completion_matches)
15821 (ada_add_global_exceptions): Remove declaration.
15822 * linespec.c (iterate_over_all_matching_symtabs): Use
15823 objfile_compunits.
15824 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15825 (class objfile_compunits): New.
15826 (ALL_COMPUNITS): Use objfile_compunits.
15827 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15828 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15829 objfile_compunits.
15830 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15831
15832 2019-01-09 Tom Tromey <tom@tromey.com>
15833
15834 * symtab.c (search_symbols)
15835 (default_collect_symbol_completion_matches_break_on): Use
15836 objfile_msymbols.
15837 * ada-lang.c (ada_lookup_simple_minsym)
15838 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15839 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15840 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15841 objfile_msymbols.
15842 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15843 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15844 * objc-lang.c (find_methods): Use objfile_msymbols.
15845 (info_selectors_command, info_classes_command): Likewise.
15846 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15847 * objfiles.h (class objfile_msymbols): New.
15848 (ALL_OBJFILE_MSYMBOLS): Remove.
15849 (ALL_MSYMBOLS): Remove.
15850
15851 2019-01-09 Tom Tromey <tom@tromey.com>
15852
15853 * common/next-iterator.h (next_adapter): Add Iterator template
15854 parameter.
15855 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15856 (class all_objfiles_safe): New.
15857 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15858 * objfiles.c (put_objfile_before): Update comment.
15859 (add_separate_debug_objfile): Likewise.
15860 (free_all_objfiles): Use all_objfiles_safe.
15861 (objfile_purge_solibs): Likewise.
15862
15863 2019-01-09 Tom Tromey <tom@tromey.com>
15864
15865 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15866 (expand_symtab_containing_pc, lookup_static_symbol)
15867 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15868 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15869 all_objfiles.
15870 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15871 * breakpoint.c (create_overlay_event_breakpoint)
15872 (create_longjmp_master_breakpoint)
15873 (create_std_terminate_master_breakpoint)
15874 (create_exception_master_breakpoint): Use all_objfiles.
15875 * linux-thread-db.c (try_thread_db_load_from_pdir)
15876 (has_libpthread): Use all_objfiles.
15877 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15878 * linespec.c (iterate_over_all_matching_symtabs)
15879 (search_minsyms_for_name): Use all_objfiles.
15880 * maint.c (maintenance_info_sections): Use all_objfiles.
15881 * main.c (captured_main_1): Use all_objfiles.
15882 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15883 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15884 * guile/scm-pretty-print.c
15885 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15886 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15887 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15888 (maintenance_print_msymbols): Use all_objfiles.
15889 * source.c (select_source_symtab): Use all_objfiles.
15890 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15891 * symfile.c (remove_symbol_file_command)
15892 (expand_symtabs_matching, map_symbol_filenames): Use
15893 all_objfiles.
15894 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15895 all_objfiles.
15896 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15897 * objc-lang.c (find_methods): Use all_objfiles.
15898 * objfiles.c (have_partial_symbols, have_full_symbols)
15899 (have_minimal_symbols, qsort_cmp)
15900 (default_iterate_over_objfiles_in_search_order): Use
15901 all_objfiles.
15902 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15903 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15904 (maintenance_check_psymtabs): Use all_objfiles.
15905 (ALL_PSYMTABS): Remove.
15906 * compile/compile-object-run.c (do_module_cleanup): Use
15907 all_objfiles.
15908 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15909 * cp-support.c (add_symbol_overload_list_qualified): Use
15910 all_objfiles.
15911 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15912 Use all_objfiles.
15913 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15914 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15915 all_objfiles.
15916 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15917 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15918 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15919 Uses all_objfiles.
15920 * solib.c (solib_read_symbols): Use all_objfiles
15921
15922 2019-01-09 Tom Tromey <tom@tromey.com>
15923
15924 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15925 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15926 all_objfiles.
15927 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15928 * symmisc.c (print_symbol_bcache_statistics)
15929 (print_objfile_statistics, maintenance_print_objfiles)
15930 (maintenance_info_symtabs, maintenance_check_symtabs)
15931 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15932 all_objfiles.
15933 * source.c (forget_cached_source_info): Use all_objfiles.
15934 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15935 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15936 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15937 * objfiles.c (update_section_map): Use all_objfiles.
15938 (shared_objfile_contains_address_p): Likewise.
15939 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15940 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15941
15942 2019-01-09 Tom Tromey <tom@tromey.com>
15943
15944 * common/next-iterator.h: New file.
15945 * objfiles.h (class all_objfiles): New.
15946 (struct objfile_iterator): New.
15947
15948 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15949
15950 * NEWS: Move the description of the changed "frame", "select-frame",
15951 and "info frame" commands to the Changed commands section.
15952
15953 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15954
15955 * gdbtypes.c (check_stub_method_group): Remove handling of old
15956 mangling schemes.
15957 * linespec.c (find_methods): Likewise.
15958 * stabsread.c (read_member_functions): Likewise.
15959 * valops.c (search_struct_method): Likewise.
15960 (value_struct_elt_for_reference): Likewise.
15961 * NEWS: Mention this change.
15962
15963 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15964
15965 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15966 print_source_lines.
15967 * source.c (print_source_lines_base): Update line number check.
15968 (print_source_lines): New function.
15969 (source_lines_range::source_lines_range): New function.
15970 * source.h (class source_lines_range): New class.
15971 (print_source_lines): New declaration.
15972
15973 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15974
15975 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15976
15977 2019-01-08 Tom Tromey <tom@tromey.com>
15978 Simon Marchi <simon.marchi@ericsson.com>
15979
15980 PR gdb/24060
15981 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15982 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15983 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15984 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15985 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15986 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15987
15988 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15989
15990 * source.c (select_source_symtab): Move header comment to
15991 declaration in source.h.
15992 (forget_cached_source_info_for_objfile): Likewise.
15993 (forget_cached_source_info): Likewise.
15994 (identify_source_line): Likewise.
15995 * source.h (identify_source_line): Move declaration from symtab.h
15996 and add comment from source.c
15997 (print_source_lines): Likewise.
15998 (forget_cached_source_info_for_objfile): Likewise.
15999 (forget_cached_source_info): Likewise.
16000 (select_source_symtab): Likewise.
16001 (enum print_source_lines_flag): Move definition from symtab.h.
16002 * symtab.h (identify_source_line): Move declaration to source.h.
16003 (print_source_lines): Likewise.
16004 (forget_cached_source_info_for_objfile): Likewise.
16005 (forget_cached_source_info): Likewise.
16006 (select_source_symtab): Likewise.
16007 (enum print_source_lines_flag): Move definition to source.h.
16008 * tui/tui-hooks.c: Add 'source.h' include.
16009
16010 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16011
16012 * source.c (print_source_lines_base): Handle requests to print
16013 reverse line number sequences, and guard against empty lines
16014 string.
16015
16016 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16017
16018 * source.c (print_source_lines_base): Fix skip of '\r' if next
16019 character is '\n'.
16020
16021 2019-01-06 Tom Tromey <tom@tromey.com>
16022
16023 * c-exp.y (struct c_parse_state) <macro_original_text,
16024 expansion_obstack>: New member.
16025 (macro_original_text, expansion_obstack): Remove globals.
16026 (scan_macro_expansion, scanning_macro_expansion)
16027 (finished_macro_expansion): Update.
16028 (scan_macro_cleanup): Remove.
16029 (yylex, c_parse): Update.
16030
16031 2019-01-06 Tom Tromey <tom@tromey.com>
16032
16033 * c-exp.y (struct c_parse_state) <strings>: New member.
16034 (operator_stoken): Update.
16035
16036 2019-01-06 Tom Tromey <tom@tromey.com>
16037
16038 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16039 (union type_stack_elt) <typelist_val>: Now a pointer to
16040 std::vector.
16041 (type_stack_cleanup): Don't declare.
16042 (push_typelist): Update.
16043 * parse.c (pop_typelist): Return a std::vector.
16044 (push_typelist): Take a std::vector.
16045 (follow_types): Update. Do not free args.
16046 (type_stack_cleanup): Remove.
16047 * c-exp.y (struct c_parse_state): New.
16048 (cpstate): New global.
16049 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16050 (nonempty_typelist): Update.
16051 (func_mod): Create a new vector.
16052 (c_parse): Create a c_parse_state.
16053 (check_parameter_typelist): Do not delete params.
16054 (function_method): Update. Do not delete type_list.
16055
16056 2019-01-06 Tom Tromey <tom@tromey.com>
16057
16058 PR gdb/28155:
16059 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16060 check_typedef.
16061 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16062 (print_return_value): Likewise.
16063
16064 2019-01-05 Tom Tromey <tom@tromey.com>
16065
16066 * contrib/cleanup_check.py: Remove.
16067 * contrib/gcc-with-excheck: Remove.
16068 * contrib/exsummary.py: Remove.
16069 * contrib/excheck.py: Remove.
16070
16071 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16072
16073 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16074 NULL. Initialize tpprev to NULL instead of assigning it
16075 to NULL on the next statement.
16076 * windows-nat.c (windows_delete_thread): Remove check for
16077 main_thread_id before printing thread exit notifications.
16078 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16079 Remove thread ID check against main_thread_id.
16080 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16081 windows_delete_thread.
16082 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16083
16084 2019-01-04 Tom Tromey <tom@tromey.com>
16085
16086 * compile/compile.c (_initialize_compile): Use upper case for
16087 metasyntactic variables.
16088 * symmisc.c (_initialize_symmisc): Use upper case for
16089 metasyntactic variables.
16090 * psymtab.c (_initialize_psymtab): Use upper case for
16091 metasyntactic variables.
16092 * demangle.c (demangle_command): Use upper case for metasyntactic
16093 variables.
16094 (_initialize_demangler): Likewise.
16095 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16096 variables.
16097
16098 2019-01-03 Tom Tromey <tom@tromey.com>
16099
16100 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16101
16102 2019-01-03 Tom Tromey <tom@tromey.com>
16103
16104 * python/py-symtab.c (salpy_str): Update.
16105 (struct salpy_sal_object) <symtab>: Now a PyObject.
16106 (salpy_dealloc): Update.
16107 (del_objfile_sal): Use gdbpy_ref.
16108
16109 2019-01-03 Tom Tromey <tom@tromey.com>
16110
16111 * python/py-type.c (convert_field): Use new_reference. Return
16112 gdbpy_ref.
16113 (make_fielditem): Return gdbpy_ref.
16114 (typy_fields): Update.
16115 (typy_getitem): Update.
16116 (field_name): Return gdbpy_ref. Use new_reference.
16117 (typy_iterator_iternext): Update.
16118
16119 2019-01-03 Tom Tromey <tom@tromey.com>
16120
16121 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16122
16123 2019-01-03 Tom Tromey <tom@tromey.com>
16124
16125 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16126 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16127 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16128 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16129 (pspy_set_type_printers): Likewise.
16130 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16131 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16132 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16133 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16134 (objfpy_set_type_printers): Likewise.
16135
16136 2019-01-03 Tom Tromey <tom@tromey.com>
16137
16138 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16139 (gdbpy_print_stack): Use gdbpy_err_fetch.
16140 * python/python-internal.h (class gdbpy_err_fetch): New class.
16141 (class gdbpy_enter) <m_error_type, m_error_value,
16142 m_error_traceback>: Remove.
16143 <m_error>: New member.
16144 (gdbpy_exception_to_string): Don't declare.
16145 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16146 * python/py-value.c (convert_value_from_python): Use
16147 gdbpy_err_fetch.
16148 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16149 gdbpy_exception_to_string.
16150 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16151 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16152 gdbpy_err_fetch.
16153
16154 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16155
16156 * linux-nat.c (delete_lwp_cleanup): Delete.
16157 (struct lwp_deleter): New struct.
16158 (lwp_info_up): New typedef.
16159 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16160 lwp_info_up.
16161
16162 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16163
16164 * linux-fork.c (class scoped_switch_fork_info): New class.
16165 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16166
16167 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16168
16169 * valops.c (find_overload_match): Remove use of null_cleanup, and
16170 calls to do_cleanups.
16171
16172 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16173
16174 * compile/compile-cplus-types.c
16175 (compile_cplus_instance::decl_name): Handle changes to
16176 cp_func_name.
16177 * cp-support.c (cp_func_name): Update header comment, update
16178 return type.
16179 * cp-support.h (cp_func_name): Update return type in declaration.
16180 * valops.c (find_overload_match): Move temp_func local to top
16181 level of function and change its type. Use temp_func to hold and
16182 delete temporary string obtained from cp_func_name.
16183
16184 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16185
16186 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16187 gdb::char_vector, remove cleanup, and update uses of `msg`.
16188
16189 2019-01-03 Jim Wilson <jimw@sifive.com>
16190
16191 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16192
16193 2019-01-02 Tom Tromey <tom@tromey.com>
16194
16195 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16196 (tdesc_parse_xml): Remove cleanups.
16197 * target-descriptions.h (make_cleanup_free_target_description):
16198 Don't declare.
16199 (target_desc_deleter): New struct.
16200 (target_desc_up): New typedef.
16201 * target-descriptions.c (target_desc_deleter::operator()): Rename
16202 from free_target_description.
16203 (make_cleanup_free_target_description): Remove.
16204
16205 2019-01-02 Tom Tromey <tom@tromey.com>
16206
16207 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16208 constructor, destructor.
16209 (linespec_parser): Remove typedef.
16210 (~linespec_parser): Rename from linespec_parser_delete.
16211 (linespec_lex_to_end, linespec_complete_label)
16212 (linespec_complete): Update.
16213 (decode_line_full): Remove cleanups.
16214 (decode_line_1): Update.
16215
16216 2019-01-02 Tom Tromey <tom@tromey.com>
16217
16218 * python/python-internal.h (inferior_to_inferior_object): Change
16219 return type.
16220 * python/py-exitedevent.c (create_exited_event_object): Update.
16221 * python/py-inferior.c (inferior_to_inferior_object): Return
16222 gdbpy_ref.
16223 (python_new_inferior, python_inferior_deleted)
16224 (thread_to_thread_object, delete_thread_object)
16225 (build_inferior_list, gdbpy_selected_inferior): Update.
16226 * python/py-infthread.c (create_thread_object): Update. Also fail
16227 if inferior_to_inferior_object fails.
16228
16229 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16230
16231 * inferior.h (class inferior) <displaced_step_state>: New field.
16232 * infrun.h (struct displaced_step_state): Move here from
16233 infrun.c. Initialize fields, add constructor.
16234 <inf>: Remove field.
16235 <reset>: New method.
16236 * infrun.c (struct displaced_step_inferior_state): Move to
16237 infrun.h.
16238 (displaced_step_inferior_states): Remove.
16239 (get_displaced_stepping_state): Adust.
16240 (displaced_step_in_progress_any_inferior): Adjust.
16241 (displaced_step_in_progress_thread): Adjust.
16242 (displaced_step_in_progress): Adjust.
16243 (add_displaced_stepping_state): Remove.
16244 (get_displaced_step_closure_by_addr): Adjust.
16245 (remove_displaced_stepping_state): Remove.
16246 (infrun_inferior_exit): Call displaced_step_state.reset.
16247 (use_displaced_stepping): Don't check for NULL.
16248 (displaced_step_prepare_throw): Call
16249 get_displaced_stepping_state.
16250 (displaced_step_fixup): Don't check for NULL.
16251 (prepare_for_detach): Don't check for NULL.
16252
16253 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16254
16255 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16256 in case of call that did not complete.
16257
16258 2019-01-02 Andrey Utkin <autkin@undo.io>
16259
16260 * symfile.c (find_separate_debug_file): Fix search of debug files for
16261 remote debuggee.
16262
16263 2019-01-02 Tom Tromey <tom@tromey.com>
16264
16265 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16266 indentation.
16267 * python/py-frame.c (frapy_older): Remove cast.
16268 (frapy_newer): Likewise.
16269 * python/py-breakpoint.c (local_setattro): Remove cast.
16270 * python/py-arch.c (archpy_name): Remove local variable.
16271 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16272
16273 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16274
16275 * unittests/basic_string_view/element_access/char/empty.cc:
16276 Fix year range in copyright header.
16277
16278 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16279
16280 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16281 Delete.
16282 <operator==>: Update with for removed field.
16283 <hash>: Likewise.
16284 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16285 <isa_features>: ...this.
16286 <abi_features>: New field.
16287 (riscv_isa_flen): Update comment.
16288 (riscv_abi_xlen): New declaration.
16289 (riscv_abi_flen): New declaration.
16290 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16291 isa_features.
16292 (riscv_abi_xlen): New function.
16293 (riscv_isa_flen): Update to get answer from isa_features.
16294 (riscv_abi_flen): New function.
16295 (riscv_has_fp_abi): Update to get answer from abi_features.
16296 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16297 xlen and flen.
16298 (riscv_call_info) <xlen, flen>: Update comment.
16299 (riscv_call_arg_struct): Remove invalid assertions
16300 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16301 is removed.
16302 (riscv_gdbarch_init): Gather isa features and abi features
16303 separately, ensure both match on the gdbarch when reusing an old
16304 gdbarch. Relax an error check to allow 32-bit abi float to run on
16305 a target with 64-bit float hardware.
16306
16307 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16308
16309 * source.c (search_command_helper): Stop reverse search
16310 when line 1 has been searched.
16311
16312 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16313
16314 * record-full.c (record_full_base_target::close): Rewrite
16315 record_full_core_buf_list free logic.
16316
16317 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16318
16319 * break-catch-syscall.c (print_one_catch_syscall): xfree
16320 the last text.
16321
16322 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16323
16324 * top.c (print_gdb_version): Update Copyright year in version
16325 message.
16326
16327 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16328
16329 Update copyright year range in all GDB files.
16330
16331 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16332
16333 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16334
16335 For older changes see ChangeLog-2018.
16336 \f
16337 Local Variables:
16338 mode: change-log
16339 left-margin: 8
16340 fill-column: 74
16341 version-control: never
16342 coding: utf-8
16343 End:
16344