gdb/fortran: Support for single/double type modifiers
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
2 Chris January <chris.january@arm.com>
3
4 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
5 tokens.
6 (typebase): New patterns for complex, single/double precision, and
7 single/double complex.
8 (f77_keywords): Change token for complex keyword, and add single,
9 double, and precision keywords.
10
11 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
14 "info io_registers".
15
16 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * regcache.c (cooked_read_test): Initialize thread list of
19 mock_inferior.
20
21 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * aarch64-linux-tdep.c: Remove includes.
24
25 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * aarch64-tdep.c: Remove includes.
28
29 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
30
31 * filtered-iterator.h (filtered_iterator) <operator==,
32 operator!=>: Compare wrapped iterators, not wrapped pointers.
33 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
34 unittests/filtered_iterator-selftests.c.
35 * unittests/filtered_iterator-selftests.c: New file.
36
37 2019-12-04 Tom Tromey <tromey@adacore.com>
38
39 * gdbtypes.c (create_range_type): Inherit endianity
40 from base type.
41
42 2019-12-04 Tom Tromey <tromey@adacore.com>
43
44 * ada-lang.c (decode_constrained_packed_array)
45 (ada_value_assign, value_assign_to_component): Update.
46 * dwarf2loc.c (rw_pieced_value, access_memory)
47 (dwarf2_compile_expr_to_ax): Update.
48 * dwarf2read.c (dwarf2_add_field): Update.
49 * eval.c (evaluate_subexp_standard): Update.
50 * gdbarch.c, gdbarch.h: Rebuild.
51 * gdbarch.sh (bits_big_endian): Remove.
52 * gdbtypes.h (union field_location): Update comment.
53 * target-descriptions.c (make_gdb_type): Update.
54 * valarith.c (value_bit_index): Update.
55 * value.c (struct value) <bitpos>: Update comment.
56 (unpack_bits_as_long, modify_field): Update.
57 * value.h (value_bitpos): Update comment.
58
59 2019-12-04 Tom Tromey <tromey@adacore.com>
60
61 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
62 endian-ness.
63
64 2019-12-04 Tom Tromey <tromey@adacore.com>
65
66 * dwarf2read.c (dwarf2_init_float_type)
67 (dwarf2_init_complex_target_type): Add byte_order parameter.
68 (read_base_type): Compute byte order earlier.
69 * gdbtypes.c (init_float_type): Add byte_order parameter.
70 * gdbtypes.h (init_float_type): Add byte_order parameter.
71
72 2019-12-04 Tom Tromey <tromey@adacore.com>
73
74 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
75
76 2019-12-04 Tom Tromey <tromey@adacore.com>
77
78 * dwarf2read.c (process_structure_scope): Initialize
79 "discr_offset".
80
81 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
84 add it into the search spec.
85 (parse_max_results_option): New function.
86 (mi_info_functions_or_variables): Parse -max-results flag and pass
87 it to mi_symbol_info.
88 (mi_cmd_symbol_info_modules): Likewise.
89 (mi_cmd_symbol_info_types): Likewise.
90 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
91 return type to bool, change result container into a set, and don't
92 add new results if we have enough already.
93 (global_symbol_searcher::add_matching_msymbols): Change return
94 type to bool, and don't add new results if we have enough already.
95 (sort_search_symbols_remove_dups): Delete.
96 (global_symbol_searcher::search): Early exit from search loop when
97 we have enough results. Use a std::set to collect the results
98 from calling add_matching_symbols.
99 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
100 member function.
101 (global_symbol_searcher) <m_max_search_results>: New member
102 variable.
103 (global_symbol_searcher) <add_matching_symbols>: Update header
104 comment and change return type to bool.
105 (global_symbol_searcher) <add_matching_msymbols>: Update header
106 comment and change return type to bool.
107
108 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
109
110 * symtab.c (symbol_search::compare_search_syms): Update header
111 comment.
112 (global_symbol_searcher::is_suitable_msymbol): New function.
113 (global_symbol_searcher::expand_symtabs): New function.
114 (global_symbol_searcher::add_matching_symbols): New function.
115 (global_symbol_searcher::add_matching_msymbols): New function.
116 (global_symbol_searcher::search): Move most of the content
117 into the new functions above, and call them as needed.
118 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
119 function.
120 (global_symbol_searcher) <add_matching_symbols>: New member
121 function.
122 (global_symbol_searcher) <add_matching_msymbols>: New member
123 function.
124 (global_symbol_searcher) <is_suitable_msymbol>: New member
125 function.
126
127 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
130 -symbol-info-module-variables entries.
131 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
132 (mi_cmd_symbol_info_module_variables): Declare.
133 * mi/mi-symbol-cmds.c
134 (module_symbol_search_iterator): New typedef.
135 (output_module_symbols_in_single_module_and_file): New function.
136 (output_module_symbols_in_single_module): New function.
137 (mi_info_module_functions_or_variables): New function.
138 (mi_cmd_symbol_info_module_functions): New function.
139 (mi_cmd_symbol_info_module_variables): New function.
140 * NEWS: Mention new MI command.
141
142 2019-12-03 Christian Biesinger <cbiesinger@google.com>
143
144 * bcache.c (hash): Remove.
145 (hash_continue): Remove.
146 * bcache.h (hash): Remove.
147 (hash_continue): Remove.
148 (struct bcache) <ctor>: Update.
149 * psymtab.c (psymbol_hash): Update.
150 * stabsread.c (hashname): Update.
151 * utils.h (fast_hash): Add an argument for a start value,
152 defaulting to zero.
153
154 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
155 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
156 (destroy_block_symbol_cache): New function.
157 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
158 (resize_symbol_cache): Likewise.
159
160 2019-12-02 Tom Tromey <tom@tromey.com>
161
162 * unittests/tui-selftests.c (run_tests): Make conditional.
163 (_initialize_tui_selftest): Make conditional.
164
165 2019-12-02 Christian Biesinger <cbiesinger@google.com>
166
167 * aix-thread.c (debug_aix_thread): Change type to bool.
168
169 2019-12-02 Luis Machado <luis.machado@linaro.org>
170
171 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
172
173 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
174
175 * dwarf2read.c (read_tag_string_type): Read the fields required to
176 make a dynamic string, and possibly create a dynamic range for the
177 string.
178 (attr_to_dynamic_prop): Setup is_reference based on the type of
179 attribute being processed.
180 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
181 (resolve_dynamic_array): Rename to...
182 (resolve_dynamic_array_or_string): ...this, update header comment,
183 and accept TYPE_CODE_STRING.
184 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
185
186 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
189 of its implementation from...
190 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
191 the new function.
192
193 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
196 create a range with stride where appropriate.
197 * f-valprint.c: Include 'gdbarch.h'.
198 (f77_print_array_1): Take the stride into account when walking the
199 array. Also convert the stride into addressable units.
200 * gdbtypes.c (create_range_type): Initialise the stride to
201 constant zero.
202 (create_range_type_with_stride): New function, initialise the
203 range as normal, and then setup the stride.
204 (has_static_range): Include the stride here. Also change the
205 return type to bool.
206 (create_array_type_with_stride): Consider the range stride if the
207 array isn't given its own stride.
208 (resolve_dynamic_range): Resolve the stride if needed.
209 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
210 (struct range_bounds) <flag_is_byte_stride>: New member variable.
211 (TYPE_BIT_STRIDE): Define.
212 (TYPE_ARRAY_BIT_STRIDE): Define.
213 (create_range_type_with_stride): Declare.
214 * valarith.c (value_subscripted_rvalue): Take range stride into
215 account when walking the array.
216
217 2019-12-01 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
220 specially.
221
222 2019-12-01 Tom Tromey <tom@tromey.com>
223
224 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
225 \0.
226 * unittests/tui-selftests.c: New file.
227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
228
229 2019-12-01 Tom Tromey <tom@tromey.com>
230
231 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
232
233 2019-12-01 Tom Tromey <tom@tromey.com>
234
235 * NEWS: Document new settings.
236 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
237 * tui/tui-win.c (_initialize_tui_win): Add border style
238 observers.
239 * tui/tui-io.h (tui_apply_style): Declare.
240 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
241 longer static.
242 (apply_ansi_escape, tui_set_reverse_mode): Update.
243 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
244 Add "skip_intensity" parameter.
245 <changed>: New member.
246 <do_set_value>: Declare.
247 (tui_border_style, tui_active_border_style): Declare.
248 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
249 globals.
250 (cli_style_option): Initialize "changed".
251 (cli_style_option::do_set_value): New function.
252 (cli_style_option::add_setshow_commands): Add "skip_intensity"
253 parameter. Update.
254 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
255 (_initialize_cli_style): Update. Create TUI border style
256 commands.
257
258 2019-12-01 Tom Tromey <tom@tromey.com>
259
260 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
261 parameter.
262 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
263 parameter.
264 * tui/tui-win.h (compact_source): Declare.
265 * tui/tui-win.c (compact_source): New global.
266 (tui_set_compact_source, tui_show_compact_source): New functions.
267 (_initialize_tui_win): Add "compact-source" setting.
268 * tui/tui-source.c (tui_source_window::set_contents): Handle
269 compact_source setting.
270 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
271 * NEWS: Document new setting.
272
273 2019-11-30 Tom Tromey <tom@tromey.com>
274
275 * dwarf2read.c (dwarf2_add_field): Include field offset when
276 computing variant part length.
277
278 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
279 * NEWS: Mention define-prefix. Tell that command names can now
280 contain a . character.
281
282 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
283
284 * command.h (valid_cmd_char_p): Declare.
285 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
286 the check of valid command char.
287 (find_command_name_length, valid_user_defined_cmd_name_p): Use
288 valid_cmd_char_p.
289 * cli/cli-script.c (validate_comname): Likewise.
290 * completer.c (gdb_completer_command_word_break_characters):
291 Do not remove . from the word break char, update comments.
292 (complete_line_internal_1): Use valid_cmd_char_p.
293 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
294 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
295
296 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
297
298 * cli/cli-script.c (do_define_command): Ensure a redefined
299 prefix command is kept as a prefix command.
300 (define_prefix_command): New function.
301 (show_user_1): Report user defined prefixes.
302 (_initialize_cli_script): Create the new 'define-prefix' command.
303 Add completers for 'define' and 'document'.
304 * top.c (execute_command): If command is a user-defined prefix only
305 command, report the list of commands for this prefix command.
306
307 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 * valops.c (find_oload_champ): Improve debug output.
310
311 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
312
313 * valops.c (find_oload_champ): Print part of debug messages
314 before the badness vector is std::move'd.
315
316 2019-11-28 Tom Tromey <tom@tromey.com>
317
318 * value.c (creal_internal_fn): Fix comment.
319
320 2019-11-28 Tom Tromey <tom@tromey.com>
321
322 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
323 flag_bound_evaluated>: Now unsigned.
324
325 2019-11-28 Tom Tromey <tom@tromey.com>
326
327 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
328 declare.
329
330 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
331
332 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
333 debug output.
334 * jit.c (jit_unregister_code): Add debug print to match
335 `jit_register_code`.
336
337 2019-11-27 Christian Biesinger <cbiesinger@google.com>
338
339 * NEWS: Mention the new multithreaded symbol loading.
340
341 2019-11-27 Christian Biesinger <cbiesinger@google.com>
342
343 * maint.c (n_worker_threads): Default to 0.
344 (worker_threads_disabled): New function.
345 * maint.h (worker_threads_disabled): New function.
346 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
347 here if worker_threads_disabled () is true.
348 (minimal_symbol_reader::install): Skip all threading if
349 worker_threads_disabled () is true.
350
351 2019-11-27 Christian Biesinger <cbiesinger@google.com>
352
353 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
354 hash code if possible.
355 (add_minsym_to_demangled_hash_table): Likewise.
356 (minimal_symbol_reader::install): Compute the hash codes for msymbol
357 on the background thread.
358 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
359 Add these fields.
360
361 2019-11-27 Christian Biesinger <cbiesinger@google.com>
362
363 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
364 of the mangled name on the background thread.
365 * symtab.c (symbol_set_names): Allow passing in the hash of the
366 linkage_name.
367 * symtab.h (symbol_set_names): Likewise.
368
369 2019-11-27 Kevin Buettner <kevinb@redhat.com>
370
371 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
372 physnames are computed for inherited DIEs.
373
374 2019-11-27 Tom Tromey <tromey@adacore.com>
375
376 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
377 backslashes.
378 * cp-support.c: Remove unnecessary backslashes.
379
380 2019-11-27 Christian Biesinger <cbiesinger@google.com>
381
382 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
383 with sym->set_linkage_name.
384 * coffread.c (coff_read_enum_type): Likewise.
385 * mdebugread.c (parse_symbol): Likewise.
386 * stabsread.c (patch_block_stabs): Likewise.
387 (define_symbol): Likewise.
388 (read_enum_type): Likewise.
389 (common_block_end): Likewise.
390 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
391 function.
392 (SYMBOL_SET_LINKAGE_NAME): Remove.
393 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
394 with sym->set_linkage_name.
395
396 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
397
398 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
399 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
400 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
401 * NEWS: Mention new MI command.
402
403 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
404
405 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
406 '-symbol-info-types', and '-symbol-info-variables'.
407 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
408 (mi_cmd_symbol_info_types): Declare.
409 (mi_cmd_symbol_info_variables): Declare.
410 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
411 (output_debug_symbol): New function.
412 (output_nondebug_symbol): New function.
413 (mi_symbol_info): New function.
414 (mi_info_functions_or_variables): New function.
415 (mi_cmd_symbol_info_functions): New function.
416 (mi_cmd_symbol_info_types): New function.
417 (mi_cmd_symbol_info_variables): New function.
418 * NEWS: Mention new commands.
419
420 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * symtab.c (symbol_to_info_string): New function, most content
423 moved from print_symbol_info, but updated to return a std::string.
424 (print_symbol_info): Update to use symbol_to_info_string and print
425 returned string.
426 * symtab.h (symbol_to_info_string): Declare new function.
427
428 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * python/python.c (gdbpy_rbreak): Convert to using
431 global_symbol_searcher.
432 * symtab.c (file_matches): Convert return type to bool, change
433 file list to std::vector, update header comment.
434 (search_symbols): Rename to...
435 (global_symbol_searcher::search): ...this and update now its
436 a member function of global_symbol_searcher. Take account of the
437 changes to file_matches.
438 (symtab_symbol_info): Convert to using global_symbol_searcher.
439 (rbreak_command): Likewise.
440 (search_module_symbols): Likewise.
441 * symtab.h (enum symbol_search): Update comment.
442 (search_symbols): Remove declaration.
443 (class global_symbol_searcher): New class.
444
445 2019-11-26 Tom Tromey <tromey@adacore.com>
446
447 * cp-support.c (_initialize_cp_support): Conditionally initialize
448 gdb_demangle_attempt_core_dump.
449
450 2019-11-26 Tom Tromey <tom@tromey.com>
451
452 * python/py-function.c (fnpy_init): Update.
453 * value.h (add_internal_function): Adjust declaration.
454 * value.c (function_destroyer): Remove.
455 (do_add_internal_function): Don't set destroyer or copy name.
456 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
457 Set name_allocated.
458 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
459 (cmdpy_init): Set name_allocated.
460 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
461 member.
462 (~cmd_list_element): Free "name" if needed.
463
464 2019-11-26 Tom Tromey <tom@tromey.com>
465
466 * value.h (add_internal_function): Add new overload. Move
467 documentation from value.h.
468 * value.c (do_add_internal_function): New function.
469 (add_internal_function): Use it. Add new overload.
470 (function_destroyer): Don't free doc.
471 * python/py-function.c (fnpy_init): Update.
472
473 2019-11-26 Tom Tromey <tom@tromey.com>
474
475 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
476 (cmdpy_init): Set "doc_allocated".
477
478 2019-11-26 Tom Tromey <tom@tromey.com>
479
480 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
481 name of worker thread.
482 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
483 pthread_setname_np.
484 * configure, config.in: Rebuild.
485
486 2019-11-26 Tom Tromey <tom@tromey.com>
487
488 * python/python.c (class gdbpy_gil): New.
489 (struct gdbpy_event): Add constructor, destructor, operator().
490 (gdbpy_post_event): Use run_on_main_thread.
491 (gdbpy_initialize_events): Remove.
492 (do_start_initialization): Update.
493
494 2019-11-26 Tom Tromey <tom@tromey.com>
495
496 * NEWS: Add entry.
497 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
498 commands. Call update_thread_pool_size.
499 (update_thread_pool_size, maintenance_set_worker_threads): New
500 functions.
501 (n_worker_threads): New global.
502
503 2019-11-26 Christian Biesinger <cbiesinger@google.com>
504 Tom Tromey <tom@tromey.com>
505
506 * minsyms.c (minimal_symbol_reader::install): Use
507 parallel_for_each.
508 * gdbsupport/parallel-for.h: New file.
509 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
510
511 2019-11-26 Christian Biesinger <cbiesinger@google.com>
512 Tom Tromey <tom@tromey.com>
513
514 * gdbsupport/thread-pool.h: New file.
515 * gdbsupport/thread-pool.c: New file.
516 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
517 (HFILES_NO_SRCDIR): Add thread-pool.h.
518
519 2019-11-26 Tom Tromey <tom@tromey.com>
520
521 * event-top.h (thread_local_segv_handler): Declare.
522 * event-top.c (thread_local_segv_handler): New global.
523 (install_handle_sigsegv, handle_sigsegv): New functions.
524 (async_init_signals): Install SIGSEGV handler.
525 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
526 thread-local.
527 (report_failed_demangle): New function.
528 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
529 handler-setting code, instead use segv_handler. Run warning code
530 on main thread.
531
532 2019-11-26 Tom Tromey <tom@tromey.com>
533
534 * run-on-main-thread.c: New file.
535 * run-on-main-thread.h: New file.
536 * unittests/main-thread-selftests.c: New file.
537 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
538 main-thread-selftests.c.
539 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
540 (COMMON_SFILES): Add run-on-main-thread.c.
541
542 2019-11-26 Tom Tromey <tom@tromey.com>
543
544 * main.c (setup_alternate_signal_stack): Remove.
545 (captured_main_1): Use gdb::alternate_signal_stack.
546 * gdbsupport/alt-stack.h: New file.
547
548 2019-11-26 Tom Tromey <tom@tromey.com>
549
550 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
551 Remove comment.
552 (save_original_signals_state, restore_original_signals_state): Use
553 gdb_sigmask.
554 * linux-nat.c (block_child_signals, restore_child_signals_mask)
555 (_initialize_linux_nat): Use gdb_sigmask.
556 * guile/guile.c (_initialize_guile): Use block_signals.
557 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
558 * gdbsupport/gdb-sigmask.h: New file.
559 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
560 * cp-support.c (gdb_demangle): Use gdb_sigmask.
561 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
562 pthread_sigmask.
563 * configure, config.in: Rebuild.
564 * gdbsupport/block-signals.h: New file.
565
566 2019-11-26 Tom Tromey <tom@tromey.com>
567
568 * acinclude.m4: Include ax_pthread.m4.
569 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
570 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
571 (CLIBS): Use PTHREAD_LIBS.
572 (aclocal_m4_deps): Add ax_pthread.m4.
573 * config.in, configure: Rebuild.
574 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
575
576 2019-11-26 Tom Tromey <tom@tromey.com>
577
578 * symtab.h (struct minimal_symbol) <name_set>: New member.
579 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
580 Don't call symbol_set_names.
581 (minimal_symbol_reader::install): Call symbol_set_names.
582
583 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
584
585 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
586 restore_active_ext_lang, as GIL is needed for (indirectly)
587 called PyOS_InterruptOccurred.
588
589 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
590
591 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
592 definition.
593
594 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
595
596 * remote-sim.c (simulator_command): Make static, remove
597 declaration.
598
599 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
600
601 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
602 static.
603 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
604 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
605 (main): Likewise.
606 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
607 (main): Likewise.
608 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
609 (main): Likewise.
610 * unittests/basic_string_view/element_access/char/1.cc (test01):
611 Likewise.
612 (main): Likewise.
613 * unittests/basic_string_view/element_access/char/empty.cc (main):
614 Likewise.
615 * unittests/basic_string_view/element_access/char/front_back.cc
616 (test01): Likewise.
617 (main): Likewise.
618 * unittests/basic_string_view/inserters/char/2.cc (test05):
619 Likewise.
620 (main): Likewise.
621 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
622 (test01): Likewise.
623 (main): Likewise.
624 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
625 (test01): Likewise.
626 (main): Likewise.
627 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
628 Likewise.
629 * unittests/basic_string_view/operations/compare/char/1.cc
630 (test01): Likewise.
631 (main): Likewise.
632 * unittests/basic_string_view/operations/compare/char/13650.cc
633 (test01): Likewise.
634 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
635 Likewise.
636 (main): Likewise.
637 * unittests/basic_string_view/operations/data/char/1.cc (test01):
638 Likewise.
639 (main): Likewise.
640 * unittests/basic_string_view/operations/find/char/1.cc (test01):
641 Likewise.
642 (main): Likewise.
643 * unittests/basic_string_view/operations/find/char/2.cc (test02):
644 Likewise.
645 (main): Likewise.
646 * unittests/basic_string_view/operations/find/char/3.cc (test03):
647 Likewise.
648 (main): Likewise.
649 * unittests/basic_string_view/operations/find/char/4.cc (main):
650 Likewise.
651 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
652 Likewise.
653 (main): Likewise.
654 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
655 Likewise.
656 (main): Likewise.
657 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
658 Likewise.
659 (main): Likewise.
660 * unittests/basic_string_view/operations/substr/char/1.cc
661 (test01): Likewise.
662 (main): Likewise.
663 * unittests/basic_string_view/operators/char/2.cc (main):
664 Likewise.
665 * unittests/optional/assignment/1.cc (test): Likewise.
666 * unittests/optional/assignment/2.cc (test): Likewise.
667 * unittests/optional/assignment/3.cc (test): Likewise.
668 * unittests/optional/assignment/4.cc (test): Likewise.
669 * unittests/optional/assignment/5.cc (test): Likewise.
670 * unittests/optional/assignment/6.cc (test): Likewise.
671 * unittests/optional/assignment/7.cc (test): Likewise.
672 * unittests/optional/cons/copy.cc (test): Likewise.
673 * unittests/optional/cons/default.cc (test): Likewise.
674 * unittests/optional/cons/move.cc (test): Likewise.
675 * unittests/optional/cons/value.cc (test): Likewise.
676 * unittests/optional/in_place.cc (test): Likewise.
677 * unittests/optional/observers/1.cc (test): Likewise.
678 * unittests/optional/observers/2.cc (test): Likewise.
679
680 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
681
682 * tui-win.h (tui_set_var_cmd): Remove.
683 * tui-win.c (tui_set_var_cmd): Make static.
684
685 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
686
687 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
688 rbreak_command_wrapper): Remove.
689 * symtab.c (rbreak_command_wrapper): Remove.
690
691 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
692
693 * inferior.h (info_terminal_command): Remove declaration.
694 * inflow.c (info_terminal_command): Make static.
695
696 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
697
698 * inferior.c (exit_inferior_silent): Remove.
699
700 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
701
702 * dictionary.c (dict_empty, mdict_empty): Remove.
703 * dictionary.c (mdict_empty): Remove.
704
705 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
706
707 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
708 (arc_insn_get_memory_offset): Likewise.
709 (arc_insn_dump): Likewise.
710 * cp-support.c (test_cp_symbol_name_matches): Likewise.
711 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
712 * dictionary.c (dict_iterator_next): Likewise.
713 (dict_iter_match_first): Likewise.
714 (dict_iter_match_next): Likewise.
715 * f-lang.c (evaluate_subexp_f): Likewise.
716 * hppa-tdep.c (hppa_read_pc): Likewise.
717 * i386-tdep.c (i386_floatformat_for_type): Likewise.
718 * parse.c (write_exp_elt_msym): Likewise.
719 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
720 * remote.c (remote_packet_size): Likewise.
721 (remote_notif_stop_parse): Likewise.
722 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
723 * s12z-tdep.c (s12z_disassemble_info): Likewise.
724 * source.c (prepare_path_for_appending): Likewise.
725 * sparc64-linux-tdep.c
726 (sparc64_linux_handle_segmentation_fault); Likewise.
727 * stack.c (frame_selection_by_function_completer): Likewise.
728
729 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
730
731 * completer.c (set_gdb_completion_word_break_characters):
732 Remove.
733
734 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
735
736 * dwarf-index-write.c: Include dwarf-index-write.h.
737 * mi/mi-interp.c: Include mi/mi-interp.h.
738
739 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
740
741 * aarch32-tdep.c: Include aarch32-tdep.h.
742 * aarch32-tdep.h: Forward-declare struct target_desc.
743
744 2019-11-26 Christian Biesinger <cbiesinger@google.com>
745
746 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
747 strerror.
748 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
749 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
750
751 2019-11-25 Tom de Vries <tdevries@suse.de>
752
753 * contrib/words.sh: Add -c option.
754
755 2019-11-25 Christian Biesinger <cbiesinger@google.com>
756
757 * solib.c (solib_find_1): Change int to bool.
758 (exec_file_find): Change int to bool.
759 (solib_find): Change int to bool.
760 (solib_read_symbols): Change int to bool.
761 (solib_used): Change int to bool.
762 (solib_add): Change int to bool.
763 (info_sharedlibrary_command): Change int to bool.
764 (solib_contains_address_p): Change int to bool.
765 (solib_keep_data_in_core): Change int to bool.
766 (in_solib_dynsym_resolve_code): Change int to bool.
767 (reload_shared_libraries_1): Change int to bool.
768 (gdb_sysroot_changed): Change int to bool.
769 * solib.h (solib_read_symbols): Change int to bool.
770 (solib_contains_address_p): Change int to bool.
771 (solib_keep_data_in_core): Change int to bool.
772 (in_solib_dynsym_resolve_code): Change int to bool.
773 (libpthread_name_p): Change int to bool.
774
775 2019-11-25 Luis Machado <luis.machado@linaro.org>
776
777 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
778 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
779 (remote_packet_max_chars): New static global.
780 (show_remote_packet_max_chars): New function.
781 (remote_target::putpkt_binary): Adjust to use new
782 remote_packet_max_chars option.
783 (remote_target::getpkt_or_notif_sane_1): Likewise.
784 (_initialize_remote): Register new remote-packet-max-chars option.
785
786 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
787
788 * m68k-linux-nat.c: Include gdbarch.h.
789
790 2019-11-24 Tom Tromey <tom@tromey.com>
791
792 * symfile.c (read_symbols): Update.
793 * psymtab.c (require_partial_symbols): Change type of "verbose" to
794 bool.
795 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
796 (psym_lookup_symbol, psym_find_last_source_symtab)
797 (psym_forget_cached_source_info, psym_print_stats)
798 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
799 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
800 (psym_map_matching_symbols, psym_expand_symtabs_matching)
801 (psym_find_compunit_symtab_by_address)
802 (maintenance_print_psymbols, maintenance_info_psymtabs)
803 (maintenance_check_psymtabs): Update.
804 * psymtab.h (require_partial_symbols): Change type of "verbose" to
805 bool.
806
807 2019-11-22 Tom Tromey <tom@tromey.com>
808
809 * observable.h: Update comments.
810
811 2019-11-22 Tom Tromey <tromey@adacore.com>
812
813 * ada-tasks.c (ada_task_is_alive): Make parameter const.
814 (print_ada_task_info): Don't try to fetch thread id if task is not
815 alive.
816
817 2019-11-22 Christian Biesinger <cbiesinger@google.com>
818
819 * ada-exp.y: Update.
820 * ada-lang.c (sort_choices): Update.
821 (ada_print_symbol_signature): Update.
822 (resolve_subexp): Update.
823 (ada_parse_renaming): Update.
824 (ada_read_renaming_var_value): Update.
825 (lesseq_defined_than): Update.
826 (remove_extra_symbols): Update.
827 (remove_irrelevant_renamings): Update.
828 (ada_add_block_symbols): Update.
829 (ada_collect_symbol_completion_matches): Update.
830 (ada_is_renaming_symbol): Update.
831 (aggregate_assign_from_choices): Update.
832 (ada_evaluate_subexp): Update.
833 (ada_has_this_exception_support): Update.
834 (ada_is_non_standard_exception_sym): Update.
835 (ada_add_exceptions_from_frame): Update.
836 (ada_add_global_exceptions): Update.
837 (ada_print_subexp): Update.
838 * ax-gdb.c (gen_var_ref): Update.
839 (gen_maybe_namespace_elt): Update.
840 (gen_expr_for_cast): Update.
841 (gen_expr): Update.
842 * block.h: Update.
843 * blockframe.c (find_pc_partial_function): Update.
844 * breakpoint.c (print_breakpoint_location): Update.
845 (update_static_tracepoint): Update.
846 * btrace.c (ftrace_print_function_name): Update.
847 (ftrace_function_switched): Update.
848 * buildsym.c (find_symbol_in_list): Update.
849 * c-exp.y: Update.
850 * c-typeprint.c (c_print_typedef): Update.
851 (c_type_print_template_args): Update.
852 * cli/cli-cmds.c (edit_command): Update.
853 (list_command): Update.
854 (print_sal_location): Update.
855 * coffread.c (patch_opaque_types): Update.
856 (process_coff_symbol): Update.
857 (coff_read_enum_type): Update.
858 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
859 (convert_one_symbol): Update.
860 (hash_symname): Update.
861 (eq_symname): Update.
862 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
863 * compile/compile-cplus-types.c (debug_print_scope): Update.
864 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
865 * compile/compile-object-load.c (get_out_value_type): Update.
866 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
867 (search_symbol_list): Update.
868 (cp_lookup_symbol_imports_or_template): Update.
869 * cp-support.c (overload_list_add_symbol): Update.
870 * ctfread.c (psymtab_to_symtab): Update.
871 * dbxread.c (cp_set_block_scope): Update.
872 * dictionary.c (iter_match_first_hashed): Update.
873 (iter_match_next_hashed): Update.
874 (insert_symbol_hashed): Update.
875 (iter_match_next_linear): Update.
876 * dictionary.h: Update.
877 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
878 (locexpr_describe_location_piece): Update.
879 (locexpr_describe_location_1): Update.
880 (locexpr_generate_c_location): Update.
881 (loclist_describe_location): Update.
882 (loclist_generate_c_location): Update.
883 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
884 (read_func_scope): Update.
885 (process_enumeration_scope): Update.
886 (new_symbol): Update.
887 (dwarf2_const_value): Update.
888 (dwarf2_symbol_mark_computed): Update.
889 * eval.c (evaluate_funcall): Update.
890 (evaluate_subexp_standard): Update.
891 * expprint.c (print_subexp_standard): Update.
892 (dump_subexp_body_standard): Update.
893 * f-valprint.c (info_common_command_for_block): Update.
894 * findvar.c (get_hosting_frame): Update.
895 (default_read_var_value): Update.
896 * go-lang.c (go_symbol_package_name): Update.
897 * guile/scm-block.c (bkscm_print_block_smob): Update.
898 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
899 (gdbscm_symbol_name): Update.
900 (gdbscm_symbol_linkage_name): Update.
901 (gdbscm_symbol_print_name): Update.
902 * infcall.c (get_function_name): Update.
903 * infcmd.c (jump_command): Update.
904 (finish_command): Update.
905 * infrun.c (insert_exception_resume_breakpoint): Update.
906 * linespec.c (canonicalize_linespec): Update.
907 (create_sals_line_offset): Update.
908 (convert_linespec_to_sals): Update.
909 (complete_label): Update.
910 (find_label_symbols_in_block): Update.
911 * m2-typeprint.c (m2_print_typedef): Update.
912 * mdebugread.c (mdebug_reg_to_regnum): Update.
913 (parse_symbol): Update.
914 (mylookup_symbol): Update.
915 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
916 (list_args_or_locals): Update.
917 * objc-lang.c (compare_selectors): Update.
918 (info_selectors_command): Update.
919 (compare_classes): Update.
920 (info_classes_command): Update.
921 (find_imps): Update.
922 * p-typeprint.c (pascal_print_typedef): Update.
923 * printcmd.c (build_address_symbolic): Update.
924 (info_address_command): Update.
925 (print_variable_and_value): Update.
926 * python/py-framefilter.c (extract_sym): Update.
927 (py_print_single_arg): Update.
928 * python/py-symbol.c (sympy_str): Update.
929 (sympy_get_name): Update.
930 (sympy_get_linkage_name): Update.
931 * python/python.c (gdbpy_rbreak): Update.
932 * record-btrace.c (btrace_get_bfun_name): Update.
933 (btrace_call_history): Update.
934 * rust-lang.c (rust_print_typedef): Update.
935 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
936 * stabsread.c (stab_reg_to_regnum): Update.
937 (define_symbol): Update.
938 (read_enum_type): Update.
939 (common_block_end): Update.
940 (cleanup_undefined_types_1): Update.
941 (scan_file_globals): Update.
942 * stack.c (print_frame_arg): Update.
943 (print_frame_args): Update.
944 (find_frame_funname): Update.
945 (info_frame_command_core): Update.
946 (iterate_over_block_locals): Update.
947 (print_block_frame_labels): Update.
948 (do_print_variable_and_value): Update.
949 (iterate_over_block_arg_vars): Update.
950 (return_command): Update.
951 * symmisc.c (dump_symtab_1): Update.
952 (print_symbol): Update.
953 * symtab.c (eq_symbol_entry): Update.
954 (symbol_cache_dump): Update.
955 (lookup_language_this): Update.
956 (find_pc_sect_line): Update.
957 (skip_prologue_sal): Update.
958 (symbol_search::compare_search_syms): Update.
959 (treg_matches_sym_type_name): Update.
960 (search_symbols): Update.
961 (print_symbol_info): Update.
962 (rbreak_command): Update.
963 (completion_list_add_symbol): Update.
964 (find_gnu_ifunc): Update.
965 (get_symbol_address): Update.
966 (search_module_symbols): Update.
967 (info_module_subcommand): Update.
968 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
969 (SYMBOL_LINKAGE_NAME): Remove.
970 (SYMBOL_DEMANGLED_NAME): Remove.
971 (SYMBOL_PRINT_NAME): Remove.
972 (SYMBOL_SEARCH_NAME): Remove.
973 * tracepoint.c (set_traceframe_context): Update.
974 (validate_actionline): Update.
975 (collection_list::collect_symbol): Update.
976 (encode_actions_1): Update.
977 (info_scope_command): Update.
978 (print_one_static_tracepoint_marker): Update.
979 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
980 * valops.c (address_of_variable): Update.
981 (find_overload_match): Update.
982 (find_oload_champ): Update.
983
984 2019-11-22 Christian Biesinger <cbiesinger@google.com>
985
986 * ada-lang.c (ada_lookup_simple_minsym): Update.
987 (ada_collect_symbol_completion_matches): Update.
988 * ada-tasks.c (read_atcb): Update.
989 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
990 (amd64_windows_skip_trampoline_code): Update.
991 * arm-tdep.c (skip_prologue_function): Update.
992 (arm_skip_stack_protector): Update.
993 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
994 (arm_wince_skip_main_prologue): Update.
995 * ax-gdb.c (gen_expr): Update.
996 * block.c (call_site_for_pc): Update.
997 * blockframe.c (find_pc_partial_function): Update.
998 * breakpoint.c (set_breakpoint_location_function): Update.
999 * btrace.c (ftrace_print_function_name): Update.
1000 (ftrace_function_switched): Update.
1001 * c-valprint.c (print_unpacked_pointer): Update.
1002 * coffread.c (coff_symfile_read): Update.
1003 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1004 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1005 * dwarf-index-write.c (write_psymbols): Update.
1006 * dwarf2loc.c (call_site_to_target_addr): Update.
1007 (func_verify_no_selftailcall): Update.
1008 (tailcall_dump): Update.
1009 (call_site_find_chain_1): Update.
1010 (dwarf_expr_reg_to_entry_parameter): Update.
1011 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1012 * eval.c (evaluate_funcall): Update.
1013 (evaluate_subexp_standard): Update.
1014 (evaluate_subexp_for_sizeof): Update.
1015 * expprint.c (print_subexp_standard): Update.
1016 (dump_subexp_body_standard): Update.
1017 * frame.c (get_prev_frame_always_1): Update.
1018 * frv-tdep.c (frv_skip_main_prologue): Update.
1019 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1020 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1021 (gnuv3_get_typename_from_type_info): Update.
1022 (gnuv3_skip_trampoline): Update.
1023 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1024 * i386-tdep.c (i386_skip_main_prologue): Update.
1025 (i386_pe_skip_trampoline_code): Update.
1026 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1027 * infcall.c (get_function_name): Update.
1028 * linespec.c (minsym_found): Update.
1029 * linux-fork.c (info_checkpoints_command): Update.
1030 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1031 (m32c_m16c_pointer_to_address): Update.
1032 * maint.c (maintenance_translate_address): Update.
1033 * minsyms.c (add_minsym_to_hash_table): Update.
1034 (add_minsym_to_demangled_hash_table): Update.
1035 (lookup_minimal_symbol_mangled): Update.
1036 (lookup_minimal_symbol_demangled): Update.
1037 (lookup_minimal_symbol_linkage): Update.
1038 (lookup_minimal_symbol_text): Update.
1039 (lookup_minimal_symbol_by_pc_name): Update.
1040 (minimal_symbol_is_less_than): Update.
1041 (compact_minimal_symbols): Update.
1042 (build_minimal_symbol_hash_tables): Update.
1043 (find_solib_trampoline_target): Update.
1044 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1045 (mips_skip_pic_trampoline_code): Update.
1046 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1047 * objc-lang.c (info_selectors_command): Update.
1048 (info_classes_command): Update.
1049 (find_methods): Update.
1050 (find_imps): Update.
1051 * p-valprint.c (pascal_val_print): Update.
1052 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1053 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1054 * printcmd.c (build_address_symbolic): Update.
1055 (info_symbol_command): Update.
1056 * psymtab.c (psymbol_name_matches): Update.
1057 (match_partial_symbol): Update.
1058 (lookup_partial_symbol): Update.
1059 (print_partial_symbols): Update.
1060 (sort_pst_symbols): Update.
1061 (maintenance_check_psymtabs): Update.
1062 * python/py-framefilter.c (py_print_frame): Update.
1063 * python/python.c (gdbpy_rbreak): Update.
1064 * record-btrace.c (btrace_get_bfun_name): Update.
1065 (btrace_call_history): Update.
1066 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1067 (rs6000_skip_trampoline_code): Update.
1068 * sol-thread.c (info_cb): Update.
1069 * stabsread.c (scan_file_globals): Update.
1070 * stack.c (find_frame_funname): Update.
1071 (info_frame_command_core): Update.
1072 * symmisc.c (dump_msymbols): Update.
1073 * symtab.c (symbol_natural_name): Rename to..,
1074 (general_symbol_info::natural_name): ...this.
1075 (symbol_demangled_name): Rename to...
1076 (general_symbol_info::demangled_name): ...this.
1077 (symbol_search_name): Rename to...
1078 (general_symbol_info::search_name): ...this.
1079 (symbol_matches_search_name): Update.
1080 (find_pc_sect_line): Update.
1081 (skip_prologue_sal): Update.
1082 (search_symbols): Update.
1083 (print_msymbol_info): Update.
1084 (rbreak_command): Update.
1085 (completion_list_add_msymbol): Update.
1086 (completion_list_objc_symbol): Update.
1087 (get_msymbol_address): Update.
1088 * symtab.h (struct general_symbol_info): Add member functions
1089 natural_name (), linkage_name (), print_name (), demangled_name (),
1090 and search_name ().
1091 (SYMBOL_NATURAL_NAME): Update.
1092 (symbol_natural_name): Move to a member function on general_symbol_info.
1093 (SYMBOL_DEMANGLED_NAME): Update.
1094 (symbol_demangled_name): Move to a member function on
1095 general_symbol_info.
1096 (SYMBOL_SEARCH_NAME): Update.
1097 (symbol_search_name): Move to a member function on general_symbol_info.
1098 (MSYMBOL_NATURAL_NAME): Remove.
1099 (MSYMBOL_LINKAGE_NAME): Remove.
1100 (MSYMBOL_PRINT_NAME): Remove.
1101 (MSYMBOL_DEMANGLED_NAME): Remove.
1102 (MSYMBOL_SEARCH_NAME): Remove.
1103 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1104
1105 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1106
1107 * symtab.c (create_demangled_names_hash): Use per_bfd->
1108 minimal_symbol_count for computing the initial size, if greater
1109 than our default size.
1110
1111 2019-11-22 Tom de Vries <tdevries@suse.de>
1112
1113 * contrib/words.sh: Improve words extraction.
1114
1115 2019-11-22 Tom de Vries <tdevries@suse.de>
1116
1117 * contrib/words.sh: Combine sed invocations.
1118
1119 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1120
1121 * Makefile.in: Update.
1122 * demangle.c: Rename to...
1123 * gdb-demangle.c: ..this.
1124 (is_cplus_marker): Change return type to bool.
1125 (_initialize_demangler): Rename to...
1126 (_initialize_gdb_demangle): ...this.
1127 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1128 * symtab.h (demangle): Remove declaration; instead include
1129 gdb-demangle.h.
1130
1131 2019-11-21 Tom Tromey <tromey@adacore.com>
1132
1133 * gdbsupport/format.c (format_pieces): Parse %I64d.
1134 * unittests/format_pieces-selftests.c (test_windows_formats): New
1135 function.
1136 (run_tests): Call it.
1137
1138 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1139
1140 Byte reverse display of variables with DW_END_big, DW_END_little
1141 (DW_AT_endianity) dwarf attributes if different than the native
1142 byte order.
1143 * ada-lang.c (ada_value_binop):
1144 Use type_byte_order instead of gdbarch_byte_order.
1145 * ada-valprint.c (printstr):
1146 (ada_val_print_string):
1147 * ada-lang.c (value_pointer):
1148 (ada_value_binop):
1149 Use type_byte_order instead of gdbarch_byte_order.
1150 * c-lang.c (c_get_string):
1151 Use type_byte_order instead of gdbarch_byte_order.
1152 * c-valprint.c (c_val_print_array):
1153 Use type_byte_order instead of gdbarch_byte_order.
1154 * cp-valprint.c (cp_print_class_member):
1155 Use type_byte_order instead of gdbarch_byte_order.
1156 * dwarf2loc.c (rw_pieced_value):
1157 Use type_byte_order instead of gdbarch_byte_order.
1158 * dwarf2read.c (read_base_type): Handle DW_END_big,
1159 DW_END_little
1160 * f-lang.c (f_get_encoding):
1161 Use type_byte_order instead of gdbarch_byte_order.
1162 * findvar.c (default_read_var_value):
1163 Use type_byte_order instead of gdbarch_byte_order.
1164 * gdbtypes.c (check_types_equal):
1165 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1166 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1167 and TYPE_ENDIANITY_LITTLE if set.
1168 (type_byte_order): new function.
1169 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1170 (struct main_type) <flag_endianity_not_default>:
1171 New field.
1172 (type_byte_order): New function.
1173 * infcmd.c (default_print_one_register_info):
1174 Use type_byte_order instead of gdbarch_byte_order.
1175 * p-lang.c (pascal_printstr):
1176 Use type_byte_order instead of gdbarch_byte_order.
1177 * p-valprint.c (pascal_val_print):
1178 Use type_byte_order instead of gdbarch_byte_order.
1179 * printcmd.c (print_scalar_formatted):
1180 Use type_byte_order instead of gdbarch_byte_order.
1181 * solib-darwin.c (darwin_current_sos):
1182 Use type_byte_order instead of gdbarch_byte_order.
1183 * solib-svr4.c (solib_svr4_r_ldsomap):
1184 Use type_byte_order instead of gdbarch_byte_order.
1185 * stap-probe.c (stap_modify_semaphore):
1186 Use type_byte_order instead of gdbarch_byte_order.
1187 * target-float.c (target_float_same_format_p):
1188 Use type_byte_order instead of gdbarch_byte_order.
1189 * valarith.c (scalar_binop):
1190 (value_bit_index):
1191 Use type_byte_order instead of gdbarch_byte_order.
1192 * valops.c (value_cast):
1193 Use type_byte_order instead of gdbarch_byte_order.
1194 * valprint.c (generic_emit_char):
1195 (generic_printstr):
1196 (val_print_string):
1197 Use type_byte_order instead of gdbarch_byte_order.
1198 * value.c (unpack_long):
1199 (unpack_bits_as_long):
1200 (unpack_value_bitfield):
1201 (modify_field):
1202 (pack_long):
1203 (pack_unsigned_long):
1204 Use type_byte_order instead of gdbarch_byte_order.
1205 * findvar.c (unsigned_pointer_to_address):
1206 (signed_pointer_to_address):
1207 (unsigned_address_to_pointer):
1208 (address_to_signed_pointer):
1209 (default_read_var_value):
1210 (default_value_from_register):
1211 Use type_byte_order instead of gdbarch_byte_order.
1212 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1213 Use type_byte_order instead of gdbarch_byte_order.
1214 * riscv-tdep.c (riscv_print_one_register_info):
1215 Use type_byte_order instead of gdbarch_byte_order.
1216
1217 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1220 (current_ui_gdb_stdin_ptr): Likewise.
1221 (current_ui_gdb_stderr_ptr): Likewise.
1222 (current_ui_gdb_stdlog_ptr): Likewise.
1223 (current_ui_current_uiout_ptr): Likewise.
1224 (gen_ret_current_ui_field_ptr): Remove.
1225
1226 2019-11-21 Tom de Vries <tdevries@suse.de>
1227
1228 PR gdb/24956
1229 * cli/cli-script.c (execute_control_command): Only switch to
1230 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1231
1232 2019-11-19 Tom Tromey <tom@tromey.com>
1233
1234 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1235 Now static. Change type of "name".
1236 (tui_set_win_height_command): Don't copy "arg".
1237 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1238 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1239
1240 2019-11-19 Ali Tamur <tamur@google.com>
1241
1242 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1243 "if (attr != nullptr)".
1244 (dwarf2_find_base_address): Likewise.
1245 (dwarf2_build_include_psymtabs): Likewise.
1246 (read_cutu_die_from_dwo): Likewise.
1247 (read_func_scope): Likewise.
1248 (read_call_site_scope): Likewise.
1249 (dwarf2_get_pc_bounds): Likewise.
1250 (dwarf2_record_block_ranges): Likewise.
1251 (dwarf2_add_field): Likewise.
1252 (dwarf2_add_member_fn): Likewise.
1253 (read_structure_type): Likewise.
1254 (read_enumeration_type): Likewise.
1255 (read_array_type): Likewise.
1256 (read_array_order): Likewise.
1257 (read_set_type): Likewise.
1258 (read_common_block): Likewise.
1259 (read_tag_reference_type): Likewise.
1260 (read_tag_string_type): Likewise.
1261 (read_subroutine_type): Likewise.
1262 (read_base_type): Likewise.
1263 (read_subrange_type): Likewise.
1264 (new_symbol): Likewise.
1265 (prepare_one_comp_unit): Likewise.
1266
1267 2019-11-19 Tom Tromey <tromey@adacore.com>
1268
1269 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1270 result in error when DebugActiveProcess fails.
1271
1272 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1273 Pedro Alves <palves@redhat.com>
1274
1275 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1276 * target.c (target_stack::push): Call 'unpush' if there's a
1277 target on top of the stack.
1278
1279 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1280
1281 * python/py-block.c (blpy_dealloc): Call tp_free.
1282 (blpy_block_syms_dealloc): Likewise.
1283 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1284 * python/py-inferior.c (infpy_dealloc): Likewise.
1285 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1286 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1287 * python/py-symbol.c (sympy_dealloc): Likewise.
1288 * python/py-symtab.c (stpy_dealloc): Likewise.
1289 * python/py-type.c (typy_iterator_dealloc): Likewise.
1290
1291 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1292
1293 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1294 constructor instead of using a class initializer.
1295
1296 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1297
1298 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1299 * configure: Regenerate.
1300 * configure.ac: Don't source common.host.
1301 * gdbsupport/common.host: Remove.
1302 * gdbsupport/mingw-strerror.c: Remove.
1303 * gdbsupport/posix-strerror.c: Rename to...
1304 * gdbsupport/safe-strerror.c: ...this.
1305
1306 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1307
1308 * maint.c (scoped_command_stats::print_time): Use localtime_r
1309 instead of localtime (provided through gnulib if necessary).
1310 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1311 of ctime.
1312
1313 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1314
1315 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1316 avoid compile errors.
1317
1318 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1319
1320 * config.in: Regenerate.
1321 * configure: Regenerate.
1322 * gdbsupport/common.m4: No longer check for strerror_r.
1323 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1324 POSIX version of strerror_r, now that gnulib provides it if
1325 necessary.
1326
1327 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1328
1329 * README (`configure' options): Update.
1330
1331 2019-11-14 Tom Tromey <tromey@adacore.com>
1332
1333 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1334 expected type for the RHS if the LHS is a convenience variable.
1335
1336 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1339 Provide explicit default and copy constructor.
1340
1341 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1342
1343 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1344 only call Py_INCREF (newbp) in the bppy_pending_object case.
1345
1346 2019-11-13 Tom Tromey <tromey@adacore.com>
1347
1348 PR build/25182:
1349 * psympriv.h (partial_symbol): Remove static assert.
1350 * symtab.h (general_symbol_info, symbol): Remove static assert.
1351
1352 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * gdbsupport/format.c (format_pieces::format_pieces): Support
1355 printf 'z' size modifier.
1356 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1357 * printcmd.c (ui_printf): Handle size_t_arg.
1358 * ui-out.c (ui_out::vmessage): Likewise.
1359 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1360 function.
1361 (run_tests): Call test_format_int_sizes.
1362
1363 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1364
1365 * ada-exp.y (write_ambiguous_var): Update.
1366 * buildsym.c (add_symbol_to_list): Update.
1367 * dwarf2read.c (read_variable): Update.
1368 (new_symbol): Update.
1369 * jit.c (finalize_symtab): Update.
1370 * language.c (language_alloc_type_symbol): Update.
1371 * symtab.c (fixup_symbol_section): Update.
1372 (initialize_objfile_symbol_1): Move code to...
1373 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1374 (allocate_symbol): Update.
1375 (allocate_template_symbol): Update.
1376 (get_symbol_address): Update.
1377 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1378 of having as a field, and add a constructor.
1379 (SYMBOL_VALUE): Update.
1380 (SYMBOL_VALUE_ADDRESS): Update.
1381 (SET_SYMBOL_VALUE_ADDRESS): Update.
1382 (SYMBOL_VALUE_BYTES): Update.
1383 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1384 (SYMBOL_BLOCK_VALUE): Update.
1385 (SYMBOL_VALUE_CHAIN): Update.
1386 (SYMBOL_LANGUAGE): Update.
1387 (SYMBOL_SECTION): Update.
1388 (SYMBOL_OBJ_SECTION): Update.
1389 (SYMBOL_SET_LANGUAGE): Update.
1390 (SYMBOL_SET_LINKAGE_NAME): Update.
1391 (SYMBOL_SET_NAMES): Update.
1392 (SYMBOL_NATURAL_NAME): Update.
1393 (SYMBOL_LINKAGE_NAME): Update.
1394 (SYMBOL_DEMANGLED_NAME): Update.
1395 (SYMBOL_SEARCH_NAME): Update.
1396 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1397 (struct symbol): Update.
1398 (struct template_symbol): Update.
1399 (struct rust_vtable_symbol): Update.
1400 * xcoffread.c (SYMBOL_DUP): Update.
1401
1402 2019-11-12 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-layout.c (show_layout): Set current_layout.
1405 (show_source_disasm_command, show_data)
1406 (show_source_or_disasm_and_command): Don't set current_layout.
1407
1408 2019-11-12 Tom Tromey <tom@tromey.com>
1409
1410 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1411
1412 2019-11-12 Tom Tromey <tom@tromey.com>
1413
1414 * tui/tui-win.c (resize_message): New global.
1415 (show_tui_resize_message): New function.
1416 (tui_async_resize_screen): Print message if requested.
1417 (_initialize_tui_win): Add tui-resize-message setting.
1418 * NEWS: Add entry for new commands.
1419
1420 2019-11-11 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1423 functions.
1424
1425 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1426
1427 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1428
1429 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1432 function.
1433 * python/python-internal.h (gdbpy_lookup_static_symbols):
1434 Declare new function.
1435 * python/python.c (python_GdbMethods): Add
1436 gdb.lookup_static_symbols method.
1437 * NEWS: Mention gdb.lookup_static_symbols.
1438
1439 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1442 static block of current object file first. Also fix typo in
1443 header comment.
1444
1445 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * stack.c (set_last_displayed_sal): Delete.
1448 (last_displayed_sal_valid): Delete.
1449 (last_displayed_pspace): Delete.
1450 (last_displayed_addr): Delete.
1451 (last_displayed_symtab): Delete.
1452 (last_displayed_line): Delete.
1453 (class last_displayed_symtab_info_type): New.
1454 (last_displayed_symtab_info): New static global variable.
1455 (print_frame_info): Call methods on last_displayed_symtab_info.
1456 (clear_last_displayed_sal): Update header comment, and make use of
1457 last_displayed_symtab_info.
1458 (last_displayed_sal_is_valid): Likewise.
1459 (get_last_displayed_pspace): Likewise.
1460 (get_last_displayed_addr): Likewise.
1461 (get_last_displayed_symtab): Likewise.
1462 (get_last_displayed_line): Likewise.
1463 (get_last_displayed_sal): Likewise.
1464 * stack.h (clear_last_displayed_sal): Update header comment.
1465 (last_displayed_sal_is_valid): Likewise.
1466 (get_last_displayed_pspace): Likewise.
1467 (get_last_displayed_addr): Likewise.
1468 (get_last_displayed_symtab): Likewise.
1469 (get_last_displayed_line): Likewise.
1470 (get_last_displayed_sal): Likewise.
1471
1472 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * stack.c (frame_show_address): Convert return type to bool.
1475 * stack.h (frame_show_address): Likewise, and update header
1476 comment.
1477
1478 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1481 * unittests/vec-utils-selftests.c: New file.
1482 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1483
1484 2019-11-10 Tom Tromey <tom@tromey.com>
1485
1486 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1487 (tui_highlight_win): Likewise.
1488 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1489 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1490 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1491 Don't set can_highlight.
1492
1493 2019-11-10 Tom Tromey <tom@tromey.com>
1494
1495 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1496 Remove unused declaration.
1497
1498 2019-11-08 Tom Tromey <tromey@adacore.com>
1499
1500 * top.c (read_command_file): Update.
1501 (command_line_input): Make return type const.
1502 * python/py-gdb-readline.c: Update.
1503 * linespec.c (decode_line_2): Update.
1504 * defs.h (command_line_input): Make return type const.
1505 * cli/cli-script.c (read_next_line): Make return type const.
1506 * ada-lang.c (get_selections): Update.
1507
1508 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1509
1510 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1511 * mi/mi-main.c (output_cores): Likewise.
1512 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1513 (linux_xfer_osdata_modules): Likewise.
1514 * remote.c (register_remote_support_xml): Likewise.
1515 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1516 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1517
1518 2019-11-06 Tom Tromey <tom@tromey.com>
1519
1520 * tui/tui-interp.c: Don't include readline.h.
1521 * tui/tui-hooks.c: Don't include readline.h.
1522 * symmisc.c: Include tilde.h, not readline.h.
1523 * symfile.c: Include tilde.h, not readline.h.
1524 * source.c: Include tilde.h, not readline.h.
1525 * solib.c: Include tilde.h, not readline.h.
1526 * psymtab.c: Include tilde.h, not readline.h.
1527 * exec.c: Include tilde.h, not readline.h.
1528 * corelow.c: Include tilde.h, not readline.h.
1529 * cli/cli-dump.c: Include tilde.h, not readline.h.
1530 * cli/cli-cmds.c: Don't include readline.h.
1531
1532 2019-11-05 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1535 (tui_disassemble): Set addr_size.
1536 (tui_disasm_window::set_contents): Use addr_size.
1537
1538 2019-11-05 Tom Tromey <tom@tromey.com>
1539
1540 * rust-lang.c (rust_language_defn): Update.
1541 * python/py-value.c (valpy_string): Call c_get_string.
1542 * p-lang.c (pascal_language_defn): Update.
1543 * opencl-lang.c (opencl_language_defn): Update.
1544 * objc-lang.c (objc_language_defn): Update.
1545 * m2-lang.c (m2_language_defn): Update.
1546 * language.c (unknown_language_defn, auto_language_defn): Update.
1547 (default_get_string): Remove.
1548 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1549 * go-lang.c (go_language_defn): Update.
1550 * f-lang.c (f_language_defn): Update.
1551 * d-lang.c (d_language_defn): Update.
1552 * c-lang.c (c_language_defn, cplus_language_defn)
1553 (asm_language_defn, minimal_language_defn): Update.
1554 * ada-lang.c (ada_language_defn): Update.
1555 * language.h (struct language_defn) <la_get_string>: Remove.
1556 (LA_GET_STRING): Remove.
1557 (default_get_string): Don't declare.
1558
1559 2019-11-05 Tom Tromey <tom@tromey.com>
1560
1561 * tui/tui-source.h (struct tui_source_window): Inline
1562 constructor. Remove destructor.
1563 <style_changed, m_observable>: Move to superclass.
1564 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1565 (struct tui_source_window_base): Move private members to end.
1566 <style_changed, m_observable>: Move from tui_source_window.
1567 * tui/tui-winsource.c (tui_copy_source_line): Move from
1568 tui-source.c. Rename from copy_source_line. Add special handling
1569 for negative line number.
1570 (tui_source_window_base::style_changed): Move from
1571 tui_source_window.
1572 (tui_source_window_base): Register observer.
1573 (~tui_source_window_base): New.
1574 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1575 rename.
1576 (tui_source_window::set_contents): Use tui_copy_source_line.
1577 (tui_source_window::tui_source_window): Move to tui-source.h.
1578 (tui_source_window::~tui_source_window): Remove.
1579 (tui_source_window::style_changed): Move to superclass.
1580 * tui/tui-disasm.c (tui_disassemble): Create string file with
1581 styling, when possible. Add "addr_size" parameter.
1582 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1583 Don't compute maximum size.
1584 (len_without_escapes): New function
1585
1586 2019-11-05 Tom Tromey <tom@tromey.com>
1587
1588 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1589 std::string.
1590 * tui/tui-winsource.c (tui_show_source_line): Update.
1591 * tui/tui-source.c (tui_source_window::set_contents): Update.
1592 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1593
1594 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1595
1596 * symtab.h (gdb_static_assert): Put && operator at the beginning
1597 of the line instead of the end.
1598
1599 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1600
1601 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1602 and sizeof (symbol).
1603 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1604
1605 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1606
1607 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1608 * configure.host: Mark *-*-solaris2.10* obsolete.
1609 * configure.tgt: Mark Solaris < 11 obsolete.
1610 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1611 Update target triplet.
1612
1613 2019-11-01 Tom Tromey <tromey@adacore.com>
1614
1615 * utils.c (print_sys_errmsg): Simplify.
1616
1617 2019-11-01 Tom Tromey <tromey@adacore.com>
1618
1619 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1620
1621 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1622
1623 * configure: Regenerate.
1624 * configure.ac: Remove check for strerror_r.
1625 * gdbsupport/common.m4: Check for strerror_r.
1626
1627 2019-11-01 Luis Machado <luis.machado@linaro.org>
1628
1629 PR gdb/25124
1630
1631 * arm-tdep.c (arm_per_objfile): Rename to ...
1632 (arm_per_bfd): ... this.
1633 (arm_objfile_data_key): Rename to ...
1634 (arm_bfd_data_key): ... this.
1635 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1636 data.
1637 (arm_record_special_symbol): Likewise.
1638
1639 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1642 end.
1643 * c-typeprint.c (c_print_typedef): Likewise.
1644 * f-typeprint.c (f_print_typedef): Likewise.
1645 * m2-typeprint.c (m2_print_typedef): Likewise.
1646 * p-typeprint.c (pascal_print_typedef): Likewise.
1647 * rust-lang.c (rust_print_typedef): Likewise.
1648 * symtab.c (print_symbol_info): Print a newline after calling
1649 typedef_print.
1650
1651 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * symtab.c (info_module_cmdlist): New variable.
1654 (info_module_command): New function.
1655 (search_module_symbols): New function.
1656 (info_module_subcommand): New function.
1657 (struct info_modules_var_func_options): New struct.
1658 (info_modules_var_func_options_defs): New variable.
1659 (make_info_modules_var_func_options_def_group): New function.
1660 (info_module_functions_command): New function.
1661 (info_module_variables_command): New function.
1662 (info_module_var_func_command_completer): New function.
1663 (_initialize_symtab): Register new 'info module functions' and
1664 'info module variables' commands.
1665 * symtab.h (typedef symbol_search_in_module): New typedef.
1666 (search_module_symbols): Declare new function.
1667 * NEWS: Mention new commands.
1668
1669 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1672 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1673 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1674 MODULES_DOMAIN.
1675 (scan_partial_symbols): Only create partial module symbols for non
1676 declarations.
1677 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1678 and MODULES_DOMAIN.
1679 * symtab.c (search_domain_name): Likewise.
1680 (search_symbols): Likewise.
1681 (print_symbol_info): Likewise.
1682 (symtab_symbol_info): Likewise.
1683 (info_modules_command): New function.
1684 (_initialize_symtab): Register 'info modules' command.
1685 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1686 * NEWS: Mention new 'info modules' command.
1687
1688 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1689
1690 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1691 and $_gdb_maint_setting_str.
1692
1693 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1694
1695 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1696 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1697 (str_value_from_setting, gdb_setting_str_internal_fn)
1698 (gdb_maint_setting_str_internal_fn): New functions.
1699 (_initialize_cli_cmds): Define the new convenience functions.
1700 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1701 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1702
1703 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1704
1705 * agent.c (set_can_use_agent): When the setting is turned on,
1706 look up agent symbols if we don't have them yet.
1707 (agent_new_objfile): Don't look up agent symbols when the agent
1708 setting is off.
1709
1710 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1711
1712 * config.in: Regenerate.
1713
1714 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1715
1716 * configure: Regenerate.
1717 * configure.ac: Check for strerror_r.
1718 * gdbsupport/common-utils.h (safe_strerror): Change return value
1719 to const char * and document that this function is now threadsafe.
1720 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1721 thread_local and call strerror_r, if available.
1722 * utils.c (perror_string): Update.
1723 (print_sys_errmsg): Update.
1724
1725 2019-10-31 Luis Machado <luis.machado@linaro.org>
1726
1727 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1728 objfile_key.
1729 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1730 objfile to fetch per-bfd data.
1731 (arm_find_exidx_entry): Likewise.
1732
1733 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1734
1735 * gdbsupport/agent.c (debug_agent): Change type to bool.
1736 (use_agent): Likewise.
1737 (all_agent_symbols_look_up): Likewise.
1738 (agent_loaded_p): Change return value to bool.
1739 (agent_look_up_symbols): Update.
1740 (agent_capability_check): Change return value to bool.
1741 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1742 (debug_agent): Change type to bool.
1743 (use_agent): Likewise.
1744 (agent_capability_check): Change return value to bool.
1745
1746 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1747
1748 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1749 (build_minimal_symbol_hash_tables): Code to clear the table moved
1750 to clear_minimal_symbol_hash_tables.
1751 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1752 when needed.
1753
1754 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * infcmd.c: Remove includes.
1757 * infrun.c: Remove includes.
1758
1759 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1762 (grow_vect): Remove declaration.
1763 (ada_type_of_array): Remove declaration.
1764 (ada_update_initial_language): Remove declaration.
1765 (ada_fold_name): Remove declaration.
1766 (ada_fill_in_ada_prototype): Remove declaration.
1767 (user_select_syms): Remove declaration.
1768 (get_selections): Remove declaration.
1769 (ada_tag_type): Remove declaration.
1770 (ada_value_tag): Remove declaration.
1771 (ada_is_others_clause): Remove declaration.
1772 (ada_in_variant): Remove declaration.
1773 (ada_value_struct_elt): Remove declaration.
1774 (ada_attribute_name): Remove declaration.
1775 (ada_system_address_type): Remove declaration.
1776 * ada-lang.c (ada_watch_location_expression): Make static.
1777 (GROW_VECT): Move here from ada-lang.h.
1778 (grow_vect): Make static.
1779 (ada_update_initial_language): Make static.
1780 (ada_fold_name): Make static.
1781 (ada_type_of_array): Make static.
1782 (encoded_ordered_before): Move up.
1783 (sort_choices): Move up.
1784 (print_signatures): Move up.
1785 (ada_print_symbol_signature): Move up.
1786 (get_selections): Move up and make static.
1787 (user_select_syms): Move up and make static.
1788 (ada_value_struct_elt): Move up and make static.
1789 (ada_tag_type): Make static.
1790 (ada_value_tag): Make static.
1791 (ada_is_others_clause): Make static.
1792 (ada_in_variant): Make static.
1793 (ada_attribute_name): Make static.
1794
1795 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * ada-lang.c: Remove includes.
1798 * ada-typeprint.c: Remove includes.
1799 * ada-valprint.c: Remove includes.
1800
1801 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * addrmap.c: Add static assertions of type size, moved from
1804 _initialize_addrmap.
1805 (_initialize_addrmap): Remove.
1806
1807 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1808
1809 * coffread.c (record_minimal_symbol): Update.
1810 (process_coff_symbol): Update.
1811 * dbxread.c (read_dbx_symtab): Update.
1812 * dwarf2read.c (add_partial_symbol): Update.
1813 (fixup_go_packaging): Update.
1814 (load_partial_dies): Update.
1815 (new_symbol): Update.
1816 * elfread.c (record_minimal_symbol): Change signature to use
1817 gdb::string_view instead of name+len.
1818 (elf_symtab_read): Update.
1819 (elf_rel_plt_read): Update.
1820 * mdebugread.c (parse_partial_symbols): Update.
1821 (handle_psymbol_enumerators): Update.
1822 (new_symbol): Update.
1823 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1824 to use gdb::string_view instead of name+len.
1825 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1826 * psympriv.h (add_psymbol_to_list): Likewise.
1827 * psymtab.c (add_psymbol_to_bcache): Likewise.
1828 (add_psymbol_to_list): Likewise.
1829 * stabsread.c (define_symbol): Update.
1830 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1831 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1832 (symbol_set_names): Likewise.
1833 * xcoffread.c (scan_xcoff_symtab): Update.
1834
1835 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1836
1837 * symtab.h (symbol_set_names): Document that copy_name must be
1838 set to true for non-nullterminated strings.
1839 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1840 linkage_name if the entry was not found and we need to demangle.
1841
1842 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1843
1844 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1845 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1846 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1847 * gdbsupport/gdb_binary_search.h: New file.
1848
1849 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1850
1851 * NEWS: Mention new --with-system-gdbinit-dir option.
1852 * config.in: Regenerate.
1853 * configure: Regenerate.
1854 * configure.ac: Add new option --with-system-gdbinit-dir.
1855 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1856 for a ".gdb" suffix.
1857 * main.c (get_init_files): Change system_gdbinit argument to
1858 a vector and return the files in SYSTEM_GDBINIT_DIR in
1859 addition to SYSTEM_GDBINIT.
1860 (captured_main_1): Update.
1861 (print_gdb_help): Update.
1862 * top.c (print_gdb_configuration): Also print the value of
1863 SYSTEM_GDBINIT_DIR.
1864
1865 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1866
1867 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1868 that takes gdb::string_view arguments.
1869
1870 2019-10-26 Tom de Vries <tdevries@suse.de>
1871
1872 * aarch64-linux-tdep.c: Fix typos in comments.
1873 * aarch64-tdep.c: Same.
1874 * ada-lang.c: Same.
1875 * amd64-nat.c: Same.
1876 * arc-tdep.c: Same.
1877 * arch/aarch64-insn.c: Same.
1878 * block.c: Same.
1879 * breakpoint.h: Same.
1880 * btrace.h: Same.
1881 * c-varobj.c: Same.
1882 * cli/cli-decode.c: Same.
1883 * cli/cli-script.c: Same.
1884 * cli/cli-utils.h: Same.
1885 * coff-pe-read.c: Same.
1886 * coffread.c: Same.
1887 * compile/compile-cplus-symbols.c: Same.
1888 * compile/compile-object-run.c: Same.
1889 * completer.c: Same.
1890 * corelow.c: Same.
1891 * cp-support.c: Same.
1892 * demangle.c: Same.
1893 * dwarf-index-write.c: Same.
1894 * dwarf2-frame.c: Same.
1895 * dwarf2-frame.h: Same.
1896 * eval.c: Same.
1897 * frame-base.h: Same.
1898 * frame.h: Same.
1899 * gdbcmd.h: Same.
1900 * gdbtypes.h: Same.
1901 * gnu-nat.c: Same.
1902 * guile/scm-objfile.c: Same.
1903 * i386-tdep.c: Same.
1904 * i386-tdep.h: Same.
1905 * infcall.c: Same.
1906 * infcall.h: Same.
1907 * linux-nat.c: Same.
1908 * m68k-tdep.c: Same.
1909 * macroexp.c: Same.
1910 * memattr.c: Same.
1911 * mi/mi-cmd-disas.c: Same.
1912 * mi/mi-getopt.h: Same.
1913 * mi/mi-main.c: Same.
1914 * minsyms.c: Same.
1915 * nat/aarch64-sve-linux-sigcontext.h: Same.
1916 * objfiles.h: Same.
1917 * ppc-linux-nat.c: Same.
1918 * ppc-linux-tdep.c: Same.
1919 * ppc-tdep.h: Same.
1920 * progspace.h: Same.
1921 * prologue-value.h: Same.
1922 * python/py-evtregistry.c: Same.
1923 * python/py-instruction.h: Same.
1924 * record-btrace.c: Same.
1925 * record-full.c: Same.
1926 * remote.c: Same.
1927 * rs6000-tdep.c: Same.
1928 * ser-tcp.c: Same.
1929 * sol-thread.c: Same.
1930 * sparc-sol2-tdep.c: Same.
1931 * sparc64-tdep.c: Same.
1932 * stabsread.c: Same.
1933 * symfile.c: Same.
1934 * symtab.h: Same.
1935 * target.c: Same.
1936 * tracepoint.c: Same.
1937 * tui/tui-data.h: Same.
1938 * tui/tui-io.c: Same.
1939 * tui/tui-win.c: Same.
1940 * tui/tui.c: Same.
1941 * unittests/rsp-low-selftests.c: Same.
1942 * user-regs.h: Same.
1943 * utils.c: Same.
1944 * utils.h: Same.
1945 * valarith.c: Same.
1946 * valops.c: Same.
1947 * valprint.c: Same.
1948 * valprint.h: Same.
1949 * value.c: Same.
1950 * value.h: Same.
1951 * varobj.c: Same.
1952 * x86-nat.h: Same.
1953 * xtensa-tdep.c: Same.
1954
1955 2019-10-25 Ali Tamur <tamur@google.com>
1956
1957 * charset.c (find_charset_names): Reflect API change.
1958
1959 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1960
1961 * symtab.c (struct demangled_name_entry): Change demangled name
1962 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1963 part of the struct anymore.
1964 (symbol_set_names): No longer obstack allocate + copy the demangled
1965 name, just store the allocated name from bfd.
1966
1967 2019-10-25 Tom Tromey <tromey@adacore.com>
1968
1969 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1970 (bsearch_cie_cmp, add_cie): Remove.
1971 (find_cie): Reimplement.
1972 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1973 (dwarf2_build_frame_info): Update.
1974
1975 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1976
1977 PR gdb/25126
1978 * symfile.c (reread_symbols): Call forget_cached_source_info to
1979 clear the stale source cache.
1980
1981 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1982
1983 * configure: Regenerate.
1984 * configure.ac: Remove code that sets python_has_threads.
1985
1986 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1987
1988 * config.in: Regenerate.
1989 * configure: Regenerate.
1990 * configure.ac: Remove the code that uses sed to get the python
1991 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1992
1993 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1996 error paths.
1997
1998 2019-10-23 Tom Tromey <tom@tromey.com>
1999
2000 * arc-tdep.c: Remove ".." from include.
2001 * frv-tdep.c: Remove ".." from include.
2002 * lm32-tdep.c: Remove ".." from include.
2003 * microblaze-tdep.c: Remove ".." from include.
2004 * or1k-tdep.h: Remove ".." from include.
2005 * s12z-tdep.c: Remove ".." from include.
2006 * Makefile.in (OPCODES_CFLAGS): Add comment.
2007 (TOP_CFLAGS): New variable.
2008 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2009
2010 2019-10-23 Tom Tromey <tom@tromey.com>
2011
2012 * Makefile.in (READLINE_DIR): Update.
2013
2014 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015
2016 * infcall.c (call_function_by_hand_dummy): Fix the function
2017 comment. And extract out a code section into...
2018 (reserve_stack_space): ...this new function.
2019
2020 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2021
2022 * infcall.c (value_arg_coerce): Remove an unused parameter.
2023 (call_function_by_hand_dummy): Update the call to
2024 'value_arg_coerce'.
2025
2026 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2027
2028 * infcall.c (call_function_by_hand_dummy): Refactor.
2029
2030 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2031
2032 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2033
2034 2019-10-23 Tom Tromey <tom@tromey.com>
2035
2036 * configure: Rebuild.
2037 * configure.ac: Don't check for sigprocmask.
2038 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2039
2040 2019-10-23 Tom Tromey <tom@tromey.com>
2041
2042 * configure: Rebuild.
2043 * acinclude.m4: Use m4_include, not sinclude.
2044
2045 2019-10-23 Tom de Vries <tdevries@suse.de>
2046
2047 PR breakpoints/24687
2048 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2049
2050 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2051
2052 * symtab.c (struct demangled_name_entry) <language>: Change from
2053 bitfield to regular variable.
2054
2055 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2056
2057 * symtab.c (struct demangled_name_entry): Add a constructor.
2058 (free_demangled_name_entry): New function to call the destructor
2059 for demangled_name_entry.
2060 (create_demangled_names_hash): Pass free_demangled_name_entry to
2061 htab_create_alloc.
2062 (symbol_set_names): Call placement new for demangled_name_entry.
2063 * utils.c: No longer include xxhash.h here, now that fast_hash
2064 is inlined in the header.
2065 * utils.h: Instead, include it here.
2066
2067 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2068
2069 * Makefile.in: Link with libxxhash.
2070 * config.in: Regenerate.
2071 * configure: Regenerate.
2072 * configure.ac: Search for libxxhash.
2073 * utils.c (fast_hash): Use xxhash if present.
2074
2075 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2076
2077 * utils.h (fast_hash): New function.
2078 * symtab.c (hash_demangled_name_entry): Call new function
2079 fast_hash.
2080
2081 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2082
2083 * symtab.c (struct demangled_name_entry): Change type of mangled
2084 to gdb::string_view. Also adds a constructor that takes the
2085 mangled name.
2086 (hash_demangled_name_entry): Update.
2087 (eq_demangled_name_entry): Update.
2088 (free_demangled_name_entry): New function to call the destructor
2089 now that this is not a POD anymore.
2090 (create_demangled_names_hash): Pass free_demangled_name_entry to
2091 htab_create_alloc.
2092 (symbol_set_names): Update.
2093
2094 2019-10-21 Ali Tamur <tamu@google.com>
2095
2096 * dwarf2read.c (dir_index): Change type.
2097 (file_name_index): Likewise.
2098 (line_header::include_dir_at): Change comment and implementation on
2099 whether it is DWARF 5.
2100 (line_header::is_valid_file_index): New function.
2101 (line_header::file_name_at): Change comment and implementation on
2102 whether it is DWARF 5.
2103 (line_header::file_names): Change to private field renamed as
2104 m_file_names and introduce a new accessor method.
2105 (line_header::file_names_size): New method.
2106 (line_header::include_dirs): Change to private field and rename as
2107 m_include_dirs.
2108 (dw2_get_file_names_reader): Define local var at a smaller scope and
2109 reflect API change.
2110 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2111 (process_structure_scope): Likewise.
2112 (line_header::add_include_dir): Change message and reflect renaming.
2113 (line_header::add_file_name): Likewise.
2114 (read_formatted_entries): Handle DW_FORM_data16.
2115 (dwarf_decode_line_header): Fix line header length calculation.
2116 (psymtab_include_file_name): Change comment and API.
2117 (lnp_state_machine::m_file): Update comment and reflect type change.
2118 (lnp_state_machine::record_line): Reflect type change.
2119 (dwarf_decode_lines): Reflect API change.
2120 (file_file_name): Likewise.
2121 (file_full_name): Likewise.
2122
2123 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2126
2127 2019-10-21 Tom Tromey <tom@tromey.com>
2128
2129 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2130
2131 2019-10-21 Tom Tromey <tom@tromey.com>
2132
2133 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2134 NM_H. Use AC_CONFIG_LINKS.
2135 * configure: Rebuild.
2136 * Makefile.in (NM_H): New variable.
2137 (generated_files): Add NM_H. Remove gcore.
2138 (nm.h, stamp-nmh): New targets.
2139
2140 2019-10-20 Tom Tromey <tom@tromey.com>
2141
2142 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2143 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2144 obsolete comment.
2145 (put_objfile_before): Now static.
2146
2147 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * gdbsupport/common-utils.h (startswith): Change return type to
2150 bool.
2151
2152 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2153
2154 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2155 * breakpoint.c (bp_locations_compare): Rename to...
2156 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2157 (update_global_location_list): Use std::sort instead of qsort.
2158 * buildsym.c (compare_line_numbers): Rename to...
2159 (lte_is_less_than): ...this, and change to std::sort semantics.
2160 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2161 instead of qsort.
2162 * disasm.c (compare_lines): Rename to...
2163 (line_is_less_than): ...this, and change to std::sort semantics.
2164 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2165 of qsort.
2166 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2167 (fde_is_less_than): ...this, and change to std::sort semantics.
2168 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2169 * mdebugread.c (compare_blocks):
2170 (block_is_less_than): ...this, and change to std::sort semantics.
2171 (sort_blocks): Call std::sort instead of qsort.
2172 * objfiles.c (qsort_cmp): Rename to...
2173 (sort_cmp): ...this, and change to std::sort semantics.
2174 (update_section_map): Call std::sort instead of qsort.
2175 * remote.c (compare_pnums): Remove.
2176 (map_regcache_remote_table): Call std::sort instead of qsort.
2177 * utils.c (compare_positive_ints): Remove.
2178 * utils.h (compare_positive_ints): Remove.
2179 * xcoffread.c (compare_lte): Remove.
2180 (arrange_linetable): Call std::sort instead of qsort.
2181
2182 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2183
2184 * symfile.c (init_entry_point_info): Fix typo.
2185 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2186
2187 2019-10-18 Tom de Vries <tdevries@suse.de>
2188
2189 * aarch64-tdep.c: Fix typos in comments.
2190 * ada-lang.c: Same.
2191 * ada-tasks.c: Same.
2192 * alpha-tdep.c: Same.
2193 * alpha-tdep.h: Same.
2194 * amd64-nat.c: Same.
2195 * amd64-windows-tdep.c: Same.
2196 * arc-tdep.c: Same.
2197 * arc-tdep.h: Same.
2198 * arch-utils.c: Same.
2199 * arm-nbsd-tdep.c: Same.
2200 * arm-tdep.c: Same.
2201 * ax-gdb.c: Same.
2202 * blockframe.c: Same.
2203 * btrace.c: Same.
2204 * c-varobj.c: Same.
2205 * coff-pe-read.c: Same.
2206 * coffread.c: Same.
2207 * cris-tdep.c: Same.
2208 * darwin-nat.c: Same.
2209 * dbxread.c: Same.
2210 * dcache.c: Same.
2211 * disasm.c: Same.
2212 * dtrace-probe.c: Same.
2213 * dwarf-index-write.c: Same.
2214 * dwarf2-frame-tailcall.c: Same.
2215 * dwarf2-frame.c: Same.
2216 * dwarf2read.c: Same.
2217 * eval.c: Same.
2218 * exceptions.c: Same.
2219 * fbsd-tdep.c: Same.
2220 * findvar.c: Same.
2221 * frame.c: Same.
2222 * frv-tdep.c: Same.
2223 * gnu-v3-abi.c: Same.
2224 * go32-nat.c: Same.
2225 * h8300-tdep.c: Same.
2226 * hppa-tdep.c: Same.
2227 * i386-linux-tdep.c: Same.
2228 * i386-tdep.c: Same.
2229 * ia64-libunwind-tdep.c: Same.
2230 * ia64-tdep.c: Same.
2231 * infcmd.c: Same.
2232 * infrun.c: Same.
2233 * linespec.c: Same.
2234 * linux-nat.c: Same.
2235 * linux-thread-db.c: Same.
2236 * machoread.c: Same.
2237 * mdebugread.c: Same.
2238 * mep-tdep.c: Same.
2239 * mn10300-tdep.c: Same.
2240 * namespace.c: Same.
2241 * objfiles.c: Same.
2242 * opencl-lang.c: Same.
2243 * or1k-tdep.c: Same.
2244 * osabi.c: Same.
2245 * ppc-linux-nat.c: Same.
2246 * ppc-linux-tdep.c: Same.
2247 * ppc-sysv-tdep.c: Same.
2248 * printcmd.c: Same.
2249 * procfs.c: Same.
2250 * record-btrace.c: Same.
2251 * record-full.c: Same.
2252 * remote-fileio.c: Same.
2253 * remote.c: Same.
2254 * rs6000-tdep.c: Same.
2255 * s12z-tdep.c: Same.
2256 * score-tdep.c: Same.
2257 * ser-base.c: Same.
2258 * ser-go32.c: Same.
2259 * skip.c: Same.
2260 * sol-thread.c: Same.
2261 * solib-svr4.c: Same.
2262 * solib.c: Same.
2263 * source.c: Same.
2264 * sparc-nat.c: Same.
2265 * sparc-sol2-tdep.c: Same.
2266 * sparc-tdep.c: Same.
2267 * sparc64-tdep.c: Same.
2268 * stabsread.c: Same.
2269 * stack.c: Same.
2270 * symfile.c: Same.
2271 * symtab.c: Same.
2272 * target-descriptions.c: Same.
2273 * target-float.c: Same.
2274 * thread.c: Same.
2275 * utils.c: Same.
2276 * valops.c: Same.
2277 * valprint.c: Same.
2278 * value.c: Same.
2279 * varobj.c: Same.
2280 * windows-nat.c: Same.
2281 * xcoffread.c: Same.
2282 * xstormy16-tdep.c: Same.
2283 * xtensa-tdep.c: Same.
2284
2285 2019-10-17 Tom Tromey <tromey@adacore.com>
2286
2287 * configure: Rebuild.
2288 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2289 in AC_CONFIG_FILES invocation.
2290 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2291 new-style config.status invocation.
2292
2293 2019-10-17 Tom de Vries <tdevries@suse.de>
2294
2295 * arm-nbsd-nat.c: Fix typos in comments.
2296 * arm-tdep.c: Same.
2297 * darwin-nat-info.c: Same.
2298 * dwarf2read.c: Same.
2299 * elfread.c: Same.
2300 * event-top.c: Same.
2301 * findvar.c: Same.
2302 * gdbtypes.c: Same.
2303 * hppa-tdep.c: Same.
2304 * i386-tdep.c: Same.
2305 * jit.c: Same.
2306 * main.c: Same.
2307 * mdebugread.c: Same.
2308 * moxie-tdep.c: Same.
2309 * nto-procfs.c: Same.
2310 * osabi.c: Same.
2311 * ppc-linux-tdep.c: Same.
2312 * remote.c: Same.
2313 * riscv-tdep.c: Same.
2314 * s390-tdep.c: Same.
2315 * sh-tdep.c: Same.
2316 * sparc-linux-tdep.c: Same.
2317 * sparc-nat.c: Same.
2318 * stack.c: Same.
2319 * target-descriptions.c: Same.
2320 * top.c: Same.
2321 * varobj.c: Same.
2322
2323 2019-10-16 Tom Tromey <tom@tromey.com>
2324
2325 * objfiles.h (struct objfile) <original_name>: Now const.
2326
2327 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2328
2329 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2330 pass on to sigsetjmp's second argument.
2331 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2332
2333 2019-10-16 Keith Seitz <keiths@redhat.com>
2334
2335 PR gdb/23567
2336 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2337 sections whose size is greater than the file size.
2338
2339 2019-10-16 Jim Wilson <jimw@sifive.com>
2340
2341 * riscv-tdep.c (riscv_gcc_target_options): New.
2342 (riscv_gnu_triplet_regexp): New.
2343 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2344 set_gdbarch_gnu_triplet_regexp.
2345
2346 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2347
2348 * Makefile.in: Add xml-builtin.h.
2349 * features/feature_to_c.sh: Add an include for xml-builtin.h
2350 to ensure that the compiler checks that the types match.
2351 * xml-builtin.h: New file.
2352 * xml-support.c (fetch_xml_builtin): Add missing const.
2353 * xml-support.h: Remove declaration of xml_builtins.
2354
2355 2019-10-16 Tom de Vries <tdevries@suse.de>
2356
2357 PR tdep/25096
2358 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2359 (amd64_classify_aggregate): ... here.
2360 (amd64_classify_aggregate_field): Handled fiels of nested structs
2361 recursively.
2362
2363 2019-10-16 Tom de Vries <tdevries@suse.de>
2364
2365 PR tdep/24104
2366 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2367 that handles 'theclass'.
2368
2369 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * linespec.c (decode_digits_ordinary): Update comment.
2372 * make-target-delegates: No longer need to handle VEC case.
2373 * memrange.c (normalize_mem_ranges): Update comment.
2374 * namespace.c (add_using_directive): Update comment.
2375 * objc-lang.c (uniquify_strings): Update comment.
2376 * ppc-linux-nat.c (struct thread_points): Update comment.
2377 * probe.h (find_probes_in_objfile): Update comment.
2378 * target.h (enum flash_preserve_mode): Update comment.
2379 * varobj.c (varobj_restrict_range): Update comment.
2380 * varobj.h (varobj_list_children): Update comment.
2381
2382 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * Makefile.in: Remove references to vec.h and vec.c.
2385 * aarch64-tdep.c: No longer include vec.h.
2386 * ada-lang.c: Likewise.
2387 * ada-lang.h: Likewise.
2388 * arm-tdep.c: Likewise.
2389 * ax.h: Likewise.
2390 * breakpoint.h: Likewise.
2391 * charset.c: Likewise.
2392 * cp-support.h: Likewise.
2393 * dtrace-probe.c: Likewise.
2394 * dwarf2read.c: Likewise.
2395 * extension.h: Likewise.
2396 * gdb_bfd.c: Likewise.
2397 * gdbsupport/gdb_vecs.h: Likewise.
2398 * gdbsupport/vec.c: Remove.
2399 * gdbsupport/vec.h: Remove.
2400 * gdbthread.h: Likewise.
2401 * guile/scm-type.c: Likewise.
2402 * inline-frame.c: Likewise.
2403 * machoread.c: Likewise.
2404 * memattr.c: Likewise.
2405 * memrange.h: Likewise.
2406 * namespace.h: Likewise.
2407 * nat/linux-btrace.h: Likewise.
2408 * osdata.c: Likewise.
2409 * parser-defs.h: Likewise.
2410 * progspace.h: Likewise.
2411 * python/py-type.c: Likewise.
2412 * record-btrace.c: Likewise.
2413 * rust-exp.y: Likewise.
2414 * solib-target.c: Likewise.
2415 * stap-probe.c: Likewise.
2416 * target-descriptions.c: Likewise.
2417 * target-memory.c: Likewise.
2418 * target.h: Likewise.
2419 * varobj.c: Likewise.
2420 * varobj.h: Likewise.
2421 * xml-support.h: Likewise.
2422
2423 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2426 Update for new std::vector based implementation.
2427 (process_psymtab_comp_unit_reader): Likewise.
2428 (scan_partial_symbols): Likewise.
2429 (recursively_compute_inclusions): Likewise.
2430 (compute_compunit_symtab_includes): Likewise.
2431 (process_imported_unit_die): Likewise.
2432 (queue_and_load_dwo_tu): Likewise.
2433 (follow_die_sig_1): Likewise.
2434 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2435 (typedef dwarf2_per_cu_ptr): Remove.
2436 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2437 function.
2438 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2439 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2440 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2441 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2442 std::vector.
2443
2444 2019-10-15 Tom Tromey <tromey@adacore.com>
2445
2446 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2447 TID.
2448
2449 2019-10-15 Tom Tromey <tromey@adacore.com>
2450
2451 * windows-nat.c (windows_nat_target::fetch_registers)
2452 (windows_nat_target::store_registers): Rename "pid" to "tid".
2453
2454 2019-10-15 Tom Tromey <tromey@adacore.com>
2455
2456 * gdbarch.h, gdbarch.c: Rebuild.
2457 * gdbarch.sh (gcc_target_options): Change return type to
2458 std::string.
2459 * compile/compile.c (get_args): Update.
2460 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2461 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2462 std::string.
2463 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2464 std::string.
2465 * arch-utils.c (default_gcc_target_options): Return std::string.
2466 * arch-utils.h (default_gcc_target_options): Return std::string.
2467 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2468
2469 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2470
2471 * breakpoint.c (breakpoint_chain): Make static.
2472 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2473 of accessing breakpoint_chain.
2474
2475 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2476
2477 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2478 to a gdb::function_view and return value to bool.
2479 * breakpoint.h (iterate_over_breakpoints): Likewise.
2480 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2481 (pop_dummy_frame): Update.
2482 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2483 (gdbscm_breakpoints): Update.
2484 * python/py-breakpoint.c (build_bp_list): Update.
2485 (gdbpy_breakpoints): Update.
2486 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2487 Update.
2488 (bpfinishpy_handle_stop): Update.
2489 (bpfinishpy_handle_exit): Update.
2490 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2491 (svr4_update_solib_event_breakpoints): Update.
2492
2493 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2494
2495 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2496 when unwrapping single-field structs.
2497
2498 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2499
2500 * dwarf2read.c: Remove includes.
2501
2502 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * ui-out.c (ui_out::call_do_message): Silence
2505 -Wformat-nonliteral warning.
2506
2507 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2510 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2511 include: readline/tilde.h.
2512
2513 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2514
2515 * remote.c (remote_target::get_trace_status): Remove declaration of
2516 trace_regblock_size.
2517
2518 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2519
2520 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2521 (show_user): Remove declaration of cmdlist.
2522 * cli/cli-cmds.h (max_user_call_depth): Declare.
2523 * cli/cli-script.c (execute_user_command): Remove declaration
2524 of max_user_call_depth.
2525
2526 2019-10-11 Jim Wilson <jimw@sifive.com>
2527
2528 * gdbsupport/print-utils.h (pulongest): Fix comment.
2529 (plongest): Likewise.
2530 (phex): Add missing comment, mention leading zeros.
2531 (phex_nz): Add mention of no leading zeros to comment.
2532
2533 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2534 plongest instead of unsigned long long cast.
2535
2536 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2537
2538 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2539 for external_editor_command and gdbtk_test.
2540
2541 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2542
2543 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2544 * varobj.c (varobjdebug): Move comment to...
2545 * varobj.h (varobjdebug): ...here, and declare.
2546
2547 2019-10-09 Tom Tromey <tom@tromey.com>
2548
2549 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2550 erase_data_content.
2551
2552 2019-10-09 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2555 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2556 * tui/tui-command.c (tui_cmd_window::resize)
2557 (tui_refresh_cmd_win): Update.
2558 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2559 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2560 * tui/tui-data.c (~tui_gen_win_info): Remove.
2561 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2562 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2563 (tui_redisplay_readline, tui_mld_flush)
2564 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2565 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2566 (tui_data_window::erase_data_content)
2567 (tui_data_item_window::rerender)
2568 (tui_data_item_window::refresh_window): Update.
2569 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2570 (box_win, tui_gen_win_info::make_window)
2571 (tui_gen_win_info::make_visible): Update.
2572 (tui_delete_win): Remove.
2573 * tui/tui-winsource.c
2574 (tui_source_window_base::do_erase_source_content): Update.
2575 (tui_show_source_line, tui_source_window_base::update_tab_width)
2576 (tui_source_window_base::update_exec_info): Update.
2577 * tui/tui-data.h (struct curses_deleter): New.
2578 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2579 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2580
2581 2019-10-09 Tom Tromey <tom@tromey.com>
2582
2583 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2584
2585 2019-10-09 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2588 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2589
2590 2019-10-09 Tom Tromey <tom@tromey.com>
2591
2592 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2593 window height directly.
2594 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2595 declare.
2596 * tui/tui-layout.c (tui_default_win_height): Remove.
2597 (tui_default_win_viewport_height): Remove.
2598
2599 2019-10-09 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui.h: Remove comments.
2602
2603 2019-10-09 Tom de Vries <tdevries@suse.de>
2604
2605 * python/lib/gdb/printer/bound_registers.py: Use
2606 '^builtin_type_bound128' as regexp argument for
2607 add_builtin_pretty_printer.
2608
2609 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2610
2611 * guile/guile.c (guile_extension_script_ops): Remove forward
2612 declaration and mark as static.
2613 (guile_script_ops): Likewise.
2614 (extension_language_guile): Move further down in the file so
2615 it can reference the definitions for guile_{extension_,}script_ops.
2616
2617 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2618
2619 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2620 except SORTL, DFLTCC, and KDSA.
2621
2622 2019-10-08 Tom Tromey <tromey@adacore.com>
2623
2624 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2625 (struct safe_symbol_file_add_args): Remove.
2626
2627 2019-10-08 Tom Tromey <tromey@adacore.com>
2628
2629 * windows-nat.c: Don't include buildsym-legacy.h.
2630
2631 2019-10-08 Tom Tromey <tromey@adacore.com>
2632
2633 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2634
2635 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2636
2637 * gdbtypes.c (overload_debug): Move comment to header.
2638 * gdbtypes.h (overload_debug): Declare.
2639 * valops.c: Remove declaration of overload_debug, instead
2640 include gdbtypes.h.
2641
2642 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2643
2644 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2645 through _().
2646 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2647 move comment...
2648 * language.h (lang_frame_mismatch_warn): ... here. Also add
2649 declaration.
2650 * top.c (lang_frame_mismatch_warn): Remove declaration.
2651 (check_frame_language_change): Pass lang_frame_mismatch_warn
2652 through _().
2653
2654 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2655
2656 * c-lang.h (vtbl_ptr_name): Declare.
2657 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2658 it from the header.
2659 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2660
2661 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2662
2663 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2664 gdb_static_assert.
2665
2666 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2667
2668 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2669 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2670 * ctfread.c: New file.
2671 * ctfread.h: New file.
2672 * elfread.c: Include ctfread.h.
2673 (struct elfinfo text_p): New member ctfsect.
2674 (elf_locate_sections): Mark CTF section.
2675 (elf_symfile_read): Call elfctf_build_psymtabs.
2676 * Makefile.in (LIBCTF): Add.
2677 (CLIBS): Use it.
2678 (CDEPS): Likewise.
2679 (DIST): Add ctfread.c.
2680
2681 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * ctfread.c (struct nextfield): Renamed to ...
2684 (struct ctf_nextfield): ... this.
2685 (struct field_info): Renamed to ...
2686 (strut ctf_field_info): ... this.
2687 (attach_fields_to_type): Update for renamed structures.
2688 (ctf_add_member_cb): Likewise.
2689 (ctf_add_enum_member_cb): Likewise.
2690 (process_struct_members): Likewise.
2691 (process_enum_type): Likewise.
2692
2693 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2694
2695 * tracectf.h: Rename, was ctf.h.
2696 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2697 * tracefile.c: Likewise.
2698 * tracepoint.c: Remove unused include ctf.h.
2699 * mi/mi-main.c: Likewise.
2700 * Makefile.in Replace ctf.c with tracectf.c.
2701
2702 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2703
2704 * version.in: Change version number to "9.0.50.DATE-git".
2705
2706 2019-10-03 Tom Tromey <tom@tromey.com>
2707
2708 PR rust/24976:
2709 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2710
2711 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2714 cp_search_name_hash.
2715 * NEWS: Add entry about nested function support.
2716
2717 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2718 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2721 for nested static variables when searchin VAR_DOMAIN.
2722 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2723 global scope, update comment.
2724 (add_partial_subprogram): Call add_partial_subprogram recursively
2725 for nested subroutines when processinng Fortran.
2726 (load_partial_dies): Process the child entities of a subprogram
2727 when processing Fortran.
2728 (partial_die_parent_scope): Handle building scope
2729 for Fortran nested functions.
2730 (process_die): Record that nested functions have a scope.
2731 (new_symbol): Always record Fortran subprograms on the global
2732 symbol list.
2733 (determine_prefix): How to build the prefix for Fortran
2734 subprograms.
2735
2736 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2739 have just sent the thread a SIGSTOP and are waiting for it to
2740 arrive.
2741
2742 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * btrace.c (btrace_add_pc): Remove whitespace before the template
2745 parameter in 'std::vector <...>'.
2746 (parse_xml_btrace_block): Likewise.
2747 (btrace_maint_decode_pt): Likewise.
2748 (btrace_maint_update_packets): Likewise.
2749 (btrace_maint_print_packets): Likewise.
2750 * btrace.h (struct btrace_maint_info): Likewise.
2751 * dwarf2read.c (struct type_unit_group): Likewise.
2752 (build_type_psymtabs_reader): Likewise.
2753 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2754 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2755 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2756
2757 2019-10-03 Tom de Vries <tdevries@suse.de>
2758
2759 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2760 the first line of the help text for set/show style metadata.
2761
2762 2019-10-02 Tom Tromey <tromey@adacore.com>
2763
2764 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2765 * gdbsupport/common-inferior.c: New file.
2766 * infcmd.c (startup_with_shell): Don't define.
2767 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2768 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2769 * inferior.h (startup_with_shell): Don't declare.
2770
2771 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2772
2773 * gdbsupport/gdb_assert.h: Include errors.h.
2774 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2775
2776 2019-10-02 Tom Tromey <tromey@adacore.com>
2777
2778 * NEWS: Add $_ada_exception entry.
2779 * ada-lang.c (struct ada_catchpoint): Add constructor.
2780 <m_kind>: New member.
2781 (allocate_location_exception, re_set_exception): Remove
2782 "ex" parameter.
2783 (should_stop_exception): Compute $_ada_exception.
2784 (check_status_exception, print_it_exception)
2785 (print_one_exception, print_mention_exception): Remove
2786 "ex" parameter.
2787 (allocate_location_catch_exception, re_set_catch_exception)
2788 (check_status_exception, print_it_catch_exception)
2789 (print_one_catch_exception, print_mention_catch_exception)
2790 (print_recreate_catch_exception)
2791 (allocate_location_catch_exception_unhandled)
2792 (re_set_catch_exception_unhandled)
2793 (check_status_exception, print_it_catch_exception_unhandled)
2794 (print_one_catch_exception_unhandled)
2795 (print_mention_catch_exception_unhandled)
2796 (print_recreate_catch_exception_unhandled)
2797 (allocate_location_catch_assert, re_set_catch_assert)
2798 (check_status_assert, print_it_catch_assert)
2799 (print_one_catch_assert, print_mention_catch_assert)
2800 (print_recreate_catch_assert)
2801 (allocate_location_catch_handlers, re_set_catch_handlers)
2802 (check_status_handlers, print_it_catch_handlers)
2803 (print_one_catch_handlers, print_mention_catch_handlers)
2804 (print_recreate_catch_handlers): Remove.
2805 (create_ada_exception_catchpoint): Update.
2806 (initialize_ada_catchpoint_ops): Update.
2807
2808 2019-10-02 Tom Tromey <tromey@adacore.com>
2809
2810 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2811 (create_excep_cond_exprs): Simplify exception string computation.
2812 (ada_exception_catchpoint_cond_string): Likewise.
2813
2814 2019-10-02 Tom Tromey <tromey@adacore.com>
2815
2816 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2817 * ada-lang.c (lesseq_defined_than): Handle
2818 LOC_STATIC.
2819 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2820 parameter.
2821 (dwarf2_has_info): Likewise.
2822 (new_symbol): Set maybe_copied on symbol when
2823 appropriate.
2824 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2825 parameter.
2826 <can_copy>: New member.
2827 * elfread.c (record_minimal_symbol): Set maybe_copied
2828 on symbol when appropriate.
2829 (elf_symfile_read): Update call to dwarf2_has_info.
2830 * minsyms.c (lookup_minimal_symbol_linkage): New
2831 function.
2832 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2833 * symtab.c (get_symbol_address, get_msymbol_address):
2834 New functions.
2835 * symtab.h (get_symbol_address, get_msymbol_address):
2836 Declare.
2837 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2838 maybe_copied.
2839 (struct symbol, struct minimal_symbol) <maybe_copied>:
2840 New member.
2841
2842 2019-10-02 Tom Tromey <tromey@adacore.com>
2843
2844 * source.c (struct current_source_location): New.
2845 (current_source_key): New global.
2846 (current_source_symtab, current_source_line)
2847 (current_source_pspace): Remove.
2848 (get_source_location): New function.
2849 (get_current_source_symtab_and_line)
2850 (set_default_source_symtab_and_line)
2851 (set_current_source_symtab_and_line)
2852 (clear_current_source_symtab_and_line, select_source_symtab)
2853 (info_source_command, print_source_lines_base)
2854 (info_line_command, search_command_helper, _initialize_source):
2855 Update.
2856
2857 2019-10-02 Tom Tromey <tromey@adacore.com>
2858
2859 * source.c (select_source_symtab): Don't call
2860 decode_line_with_current_source.
2861
2862 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 * symtab.c (lookup_global_symbol): Search global block.
2865
2866 2019-10-02 Tom Tromey <tromey@adacore.com>
2867
2868 * coffread.c (process_coff_symbol): Update.
2869 * dwarf2read.c (var_decode_location, new_symbol): Update.
2870 * mdebugread.c (parse_symbol): Update.
2871 * objfiles.c (relocate_one_symbol): Update.
2872 * stabsread.c (define_symbol, fix_common_block)
2873 (scan_file_globals): Update.
2874 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2875 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2876 * xcoffread.c (process_xcoff_symbol): Update.
2877
2878 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2879
2880 * MAINTAINERS: Update my email address.
2881
2882 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2885 std::vector.
2886 (build_type_psymtabs_reader): Update for std::vector.
2887 (build_type_psymtab_dependencies): Likewise.
2888 * dwarf2read.h: Remove use of DEF_VEC_P.
2889 (typedef sig_type_ptr): Delete.
2890
2891 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2894 to std::vector.
2895 (btrace_maint_decode_pt): Likewise, and move allocation of the
2896 vector outside of the loop.
2897 (btrace_maint_update_packets): Update to handle change from VEC to
2898 std::vector.
2899 (btrace_maint_print_packets): Likewise.
2900 (maint_info_btrace_cmd): Likewise.
2901 * btrace.h: Remove use of DEF_VEC_O.
2902 (typedef btrace_pt_packet_s): Delete.
2903 (struct btrace_maint_info) <packets>: Change fromm VEC to
2904 std::vector.
2905 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2906
2907 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2910 make accesses into the vector constant references.
2911 (btrace_add_pc): Update for std::vector.
2912 (btrace_stitch_bts): Likewise.
2913 (parse_xml_btrace_block): Likewise.
2914 (btrace_maint_update_packets): Likewise.
2915 (btrace_maint_print_packets): Likewise.
2916 (maint_info_btrace_cmd): Likewise.
2917 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2918 std::vector.
2919 (btrace_data::empty): Likewise.
2920 (btrace_data_append): Likewise.
2921 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2922 (typedef btrace_block_s): Delete.
2923 (struct btrace_block): Add constructor.
2924 (struct btrace_data_bts) <blocks>: Change to std::vector.
2925 * nat/linux-btrace.c (perf_event_read_bts): Update for
2926 std::vector.
2927 (linux_read_bts): Likewise.
2928
2929 2019-10-01 Tom Tromey <tom@tromey.com>
2930
2931 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2932
2933 2019-10-01 Tom Tromey <tom@tromey.com>
2934
2935 * stack.c (print_frame, info_frame_command_core): Use
2936 styled_string.
2937 * linux-thread-db.c (try_thread_db_load_1)
2938 (try_thread_db_load_from_pdir_1): Use styled_string.
2939 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2940 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2941 (maybe_print_unsupported_script_warning)
2942 (maybe_print_script_not_found_warning): Use styled_string.
2943 * ada-lang.c (user_select_syms): Use styled_string.
2944
2945 2019-10-01 Tom Tromey <tom@tromey.com>
2946
2947 * p-lang.c (pascal_printstr): Use metadata style.
2948 * value.c (show_convenience): Use metadata style.
2949 * valprint.c (valprint_check_validity, val_print_optimized_out)
2950 (val_print_not_saved, val_print_unavailable)
2951 (val_print_invalid_address, generic_val_print, val_print)
2952 (value_check_printable, val_print_array_elements): Use metadata
2953 style.
2954 * ui-out.h (class ui_out) <field_fmt>: New overload.
2955 <do_field_fmt>: Add style parameter.
2956 * ui-out.c (ui_out::field_fmt): New overload.
2957 * typeprint.c (type_print_unknown_return_type)
2958 (val_print_not_allocated, val_print_not_associated): Use metadata
2959 style.
2960 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2961 parameter.
2962 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2963 * tracepoint.c (tvariables_info_1): Use metadata style.
2964 * stack.c (print_frame_arg, print_frame_info, print_frame)
2965 (info_frame_command_core): Use metadata style.
2966 * skip.c (info_skip_command): Use metadata style.
2967 * rust-lang.c (rust_print_enum): Use metadata style.
2968 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2969 metadata style.
2970 * python/py-framefilter.c (py_print_single_arg): Use metadata
2971 style.
2972 * printcmd.c (do_one_display, print_variable_and_value): Use
2973 metadata style.
2974 * p-valprint.c (pascal_val_print)
2975 (pascal_object_print_value_fields): Use metadata style.
2976 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2977 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2978 parameter.
2979 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2980 * m2-valprint.c (m2_print_long_set): Use metadata style.
2981 * m2-typeprint.c (m2_print_type): Use metadata style.
2982 * infcmd.c (print_return_value_1): Use metadata style.
2983 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2984 * f-valprint.c (info_common_command_for_block): Use metadata
2985 style.
2986 * f-typeprint.c (f_type_print_base): Use metadata style.
2987 * expprint.c (print_subexp_standard): Use metadata style.
2988 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2989 * cli/cli-style.h (class cli_style_option): Add constructor.
2990 (metadata_style): Declare.
2991 * cli/cli-style.c (metadata_style): New global.
2992 (_initialize_cli_style): Register metadata style.
2993 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2994 parameter.
2995 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2996 * c-typeprint.c (c_type_print_base_struct_union)
2997 (c_type_print_base_1): Use metadata style.
2998 * breakpoint.c (watchpoint_value_print)
2999 (print_one_breakpoint_location): Use metadata style.
3000 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3001 style.
3002 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3003 style.
3004 * ada-valprint.c (val_print_packed_array_elements, printstr)
3005 (print_field_values, ada_val_print_ref, ada_val_print): Use
3006 metadata style.
3007 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3008 style.
3009 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3010 style.
3011 * ada-lang.c (user_select_syms): Use metadata style.
3012
3013 2019-10-01 Tom Tromey <tom@tromey.com>
3014
3015 * cli/cli-cmds.c (pwd_command): Style output.
3016
3017 2019-10-01 Pedro Alves <palves@redhat.com>
3018 Tom Tromey <tom@tromey.com>
3019
3020 * symtab.c (print_symbol_info): Use %ps.
3021 (print_msymbol_info): Use %ps.
3022 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3023 * printcmd.c (print_variable_and_value): Use %ps.
3024 * macrocmd.c (show_pp_source_pos): Use %ps.
3025 * infrun.c (print_exited_reason): Use ui_out::message.
3026 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3027 (describe_other_breakpoints): Use ui_out::message and new
3028 formats.
3029 (say_where): Use new formats.
3030 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3031 and new formats.
3032
3033 2019-10-01 Pedro Alves <palves@redhat.com>
3034 Tom Tromey <tom@tromey.com>
3035
3036 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3037 (test_gdb_formats): New function.
3038 (run_tests): Call it.
3039 (test_format_specifier): Update.
3040 * utils.h (fputs_filtered): Update comment.
3041 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3042 (fputs_styled_unfiltered): Declare.
3043 * utils.c (fputs_styled_unfiltered): New function.
3044 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3045 (vfprintf_filtered): Update.
3046 (vfprintf_unfiltered, vprintf_filtered): Update.
3047 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3048 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3049 disallow_ui_out_field>: New constants.
3050 (enum class field_kind): New.
3051 (struct base_field_s, struct signed_field_s): New.
3052 (signed_field): New function.
3053 (struct string_field_s): New.
3054 (string_field): New function.
3055 (struct styled_string_s): New.
3056 (styled_string): New function.
3057 (class ui_out) <message>: Add comment.
3058 <vmessage, call_do_message>: New methods.
3059 <do_message>: Add style parameter.
3060 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3061 methods.
3062 (ui_out::message): Rewrite.
3063 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3064 parameter.
3065 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3066 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3067 gdb_extensions parameter.
3068 (class format_piece): Add parameter to constructor.
3069 (n_int_args): New field.
3070 * gdbsupport/format.c (format_pieces::format_pieces): Add
3071 gdb_extensions parameter. Handle '*'.
3072 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3073 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3074 vfprintf_styled_no_gdbfmt.
3075 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3076 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3077 unfiltered output.
3078 * ui-style.h (struct ui_file_style) <ptr>: New method.
3079
3080 2019-10-01 Tom Tromey <tom@tromey.com>
3081
3082 * unittests/format_pieces-selftests.c: Update. Add final format.
3083 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3084 empty literal pieces.
3085
3086 2019-10-01 Tom Tromey <tom@tromey.com>
3087
3088 * ui-out.h (enum class ui_out_style_kind): Remove.
3089 (class ui_out) <field_string, field_stsream, do_field_string>:
3090 Change type of "style".
3091 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3092 (ui_out::field_string): Update.
3093 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3094 of "style".
3095 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3096 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3097 * stack.c (print_frame_arg, print_frame_info, print_frame):
3098 Update.
3099 * source.c (print_source_lines_base): Update.
3100 * solib.c (info_sharedlibrary_command): Update.
3101 * skip.c (info_skip_command): Update.
3102 * record-btrace.c (btrace_call_history_src_line)
3103 (btrace_call_history): Update.
3104 * python/py-framefilter.c (py_print_frame): Update.
3105 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3106 "style".
3107 * mi/mi-out.c (mi_ui_out::do_table_header)
3108 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3109 (mi_ui_out::do_field_string): Update.
3110 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3111 Update.
3112 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3113 "style".
3114 * cli-out.c (cli_ui_out::do_table_header)
3115 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3116 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3117 (cli_ui_out::do_field_fmt): Update.
3118 * breakpoint.c (print_breakpoint_location): Update.
3119 (update_static_tracepoint): Update.
3120
3121 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3122
3123 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3124 conversion of gdb_datadir.
3125 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3126 remove not needed c_str ().
3127
3128 2019-09-30 Ali Tamur <tamur@google.com>
3129
3130 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3131 (dwarf2_string_attr): Likewise.
3132
3133 2019-09-30 Ali Tamur <tamur@google.com>
3134
3135 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3136 (process_full_type_unit): Likewise.
3137 (dump_die_shallow): Likewise.
3138 (cu_debug_loc_section): Likewise.
3139
3140 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3141
3142 * minsyms.c (compare_minimal_symbols): Rename to...
3143 (minimal_symbol_is_less_than): ...this, and adjust to STL
3144 conventions (return bool, take arguments as references)
3145 (minimal_symbol_reader::install): Call std::sort instead
3146 of qsort.
3147
3148 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3149
3150 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3151 hash and why.
3152 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3153 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3154
3155 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3156
3157 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3158 * psympriv.h (add_psymbol_to_list): Move comment here and update
3159 it.
3160
3161 2019-09-29 Tom de Vries <tdevries@suse.de>
3162
3163 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3164 Use $tmpdir/$(basename "$output_file").dwz instead of
3165 "${output_file}.dwz".
3166
3167 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 PR gdb/25045
3170 * hppa-linux-nat.c: Include gdbarch.h.
3171
3172 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3173
3174 * blockframe.c (find_pc_partial_function): Change return type to bool.
3175 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3176 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3177 (stub_gnu_ifunc_resolve_name): Likewise.
3178 * symtab.c (compare_filenames_for_search): Likewise.
3179 (compare_glob_filenames_for_search): Likewise.
3180 (matching_obj_sections): Likewise.
3181 (symbol_matches_domain): Likewise.
3182 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3183 (find_line_pc): Change return type to bool.
3184 (find_line_pc_range): Likewise.
3185 (producer_is_realview): Likewise.
3186 * symtab.h (symbol_matches_domain): Likewise.
3187 (find_pc_partial_function): Likewise.
3188 (find_pc_line_pc_range): Likewise.
3189 (in_gnu_ifunc_stub): Likewise.
3190 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3191 (find_line_pc): Likewise.
3192 (find_line_pc_range): Likewise.
3193 (matching_obj_sections): Likewise.
3194 (find_line_symtab): Change out parameter to bool.
3195 (producer_is_realview): Change return type to bool.
3196 (compare_filenames_for_search): Likewise.
3197 (compare_glob_filenames_for_search): Likewise.
3198
3199 2019-09-26 Tom Tromey <tom@tromey.com>
3200
3201 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3202 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3203 * gdb_usleep.h: Remove.
3204 * gdb_usleep.c: Remove.
3205 * utils.c: Don't include gdb_usleep.h.
3206
3207 2019-09-26 Tom Tromey <tromey@adacore.com>
3208
3209 * python/py-type.c (type_to_type_object): Call check_typedef
3210 for stub types.
3211
3212 2019-09-26 Tom Tromey <tom@tromey.com>
3213
3214 * utils.h (initialize_utils): Don't declare.
3215 * top.c (gdb_init): Don't call initialize_utils.
3216 * utils.c (initialize_utils): Remove. Move contents...
3217 (_initialize_utils): ... here.
3218
3219 2019-09-25 Tom Tromey <tom@tromey.com>
3220
3221 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3222 * utils.h (make_hex_string): Don't declare.
3223 * utils.c (make_hex_string): Remove.
3224
3225 2019-09-24 Tom de Vries <tdevries@suse.de>
3226
3227 PR gdb/23815
3228 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3229 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3230
3231 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3232
3233 * NEWS: Mention new simulator port for PRU.
3234
3235 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3236
3237 * ada-exp.y (write_object_remaining): Update.
3238 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3239 and eliminate the static buffer.
3240 (ada_decode_symbol): Update.
3241 (ada_la_decode): Update.
3242 (ada_sniff_from_mangled_name): Update.
3243 (is_valid_name_for_wild_match): Update.
3244 (ada_lookup_name_info::matches): Update and simplify.
3245 (name_matches_regex): Update.
3246 (ada_add_global_exceptions): Update.
3247 * ada-lang.h (ada_decode): Update signature.
3248 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3249 * dwarf-index-write.c (debug_names::insert): Update.
3250
3251 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3254 formatting.
3255
3256 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3259 Change "nonzero" to "true" in documentation.
3260
3261 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3262
3263 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3264 (_initialize_darwin_solib): Don't set
3265 darwin_so_ops.lookup_lib_global_symbol.
3266 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3267 set_gdbarch_iterate_over_objfiles_in_search_order.
3268 (elf_lookup_lib_symbol): Rename to...
3269 (svr4_iterate_over_objfiles_in_search_order): this, and update
3270 to iterate semantics.
3271 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3272 * solib.c (solib_global_lookup): Remove.
3273 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3274 (solib_global_lookup): Remove.
3275 * symtab.c (lookup_global_or_static_symbol): Remove call to
3276 solib_global_lookup.
3277
3278 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3279
3280 * NEWS: Move entries about default MI version now being
3281 version 3, and about the GDB/MI fix for multi-location
3282 breakpoints to the "since GDB 8.3" section.
3283
3284 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3285
3286 GDB 8.3.1 released.
3287
3288 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3289
3290 * NEWS: Mention that Cell/B.E. debugging support was removed.
3291 * MAINTAINERS: Remove spu target.
3292
3293 * config/djgpp/fnchange.lst: Remove entries for removed files.
3294
3295 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3296 spu-multiarch.o, and spu-tdep.o.
3297 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3298 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3299 spu-multiarch.c, and spu-tdep.c.
3300 * spu-linux-nat.c: Remove file.
3301 * spu-multiarch.c: Remove file.
3302 * spu-tdep.c: Remove file.
3303 * spu-tdep.h: Remove file.
3304 * solib-spu.c: Remove file.
3305 * solib-spu.h: Remove file.
3306
3307 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3308 * configure.nat (spu-linux): Remove.
3309 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3310 solib-multiarch.o from gdb_target_obs.
3311 (spu*-*-*): Remove.
3312
3313 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3314 feature flag.
3315 (ppc_linux_no_features): Update.
3316 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3317 Cell/B.E. support.
3318 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3319 (tdesc_powerpc_cell64l): Likewise.
3320 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3321 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3322 Cell/B.E. support.
3323 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3324 Do not include "features/rs6000/powerpc-cell32l.c" or
3325 "features/rs6000/powerpc-cell64l.c".
3326 (ppc_linux_spu_section): Remove.
3327 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3328 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3329 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3330 (ppc_linux_spe_context_lookup): Remove.
3331 (ppc_linux_spe_context_inferior_created): Remove.
3332 (ppc_linux_spe_context_solib_loaded): Remove.
3333 (ppc_linux_spe_context_solib_unloaded): Remove.
3334 (ppc_linux_spe_context): Remove.
3335 (struct ppu2spu_cache): Remove.
3336 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3337 (struct ppu2spu_data): Remove.
3338 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3339 ppu2spu_unwind): Remove.
3340 (ppc_linux_init_abi): Remove Cell/B.E. support.
3341 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3342
3343 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3344 (rs6000/powerpc-cell64l-expedite): Likewise
3345 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3346 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3347 rs6000/powerpc-cell64l.xml.
3348 * features/rs6000/powerpc-cell32l.xml: Remove.
3349 * features/rs6000/powerpc-cell64l.xml: Likewise.
3350 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3351 * features/rs6000/powerpc-cell64l.c: Likewise.
3352 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3353 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3354 * regformats/reg-spu.dat: Remove.
3355
3356 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3357 * corelow.c (struct spuid_list): Remove.
3358 (add_to_spuid_list): Remove.
3359 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3360 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3361 (remote_protocol_features): Remove associated entries.
3362 (_initialize_remote): No longer initialize them.
3363 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3364 * linux-nat.c (SPUFS_MAGIC): Remove.
3365 (linux_proc_xfer_spu): Remove.
3366 (spu_enumerate_spu_ids): Remove.
3367 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3368 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3369 (linux_make_corefile_notes): No longer call it.
3370
3371 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3372 (cooked_write_test): Likewise.
3373
3374 2019-09-20 Tom Tromey <tom@tromey.com>
3375
3376 * NEWS: Mention case-sensitivity of TUI commands.
3377 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3378 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3379 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3380
3381 2019-09-20 Tom Tromey <tom@tromey.com>
3382
3383 * tui/tui-source.c (tui_source_window::set_contents): Use
3384 make_unique_xstrdup.
3385 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3386 make_unique_xstrdup.
3387
3388 2019-09-20 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-data.c: Remove separator comments.
3391 * tui/tui-layout.c: Remove separator comments.
3392 * tui/tui-win.c: Remove separator comments.
3393 * tui/tui-wingeneral.c: Remove separator comments.
3394
3395 2019-09-20 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui.h (strcat_to_buf): Don't declare.
3398 * tui/tui.c (strcat_to_buf): Remove.
3399
3400 2019-09-20 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3403 from "fullname".
3404 * tui/tui-source.c (tui_source_window::set_contents)
3405 (tui_source_window::location_matches_p)
3406 (tui_source_window::maybe_update): Update.
3407
3408 2019-09-20 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3411 Update.
3412 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3413 prefix.
3414 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3415 (tui_data_window::line_from_reg_element_no)
3416 (tui_data_window::first_reg_element_no_inline)
3417 (tui_data_window::show_registers)
3418 (tui_data_window::show_register_group)
3419 (tui_data_window::display_registers_from)
3420 (tui_data_window::display_registers_from_line)
3421 (tui_data_window::first_data_item_displayed)
3422 (tui_data_window::delete_data_content_windows)
3423 (tui_data_window::erase_data_content)
3424 (tui_data_window::do_scroll_vertical)
3425 (tui_data_window::refresh_window)
3426 (tui_data_window::check_register_values): Update.
3427
3428 2019-09-20 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3431 (struct tui_locator_window) <full_name, proc_name>: Now
3432 std::string.
3433 * tui/tui-stack.c (tui_locator_window::make_status_line)
3434 (tui_locator_window::set_locator_fullname)
3435 (tui_locator_window::set_locator_info): Update.
3436 * tui/tui-source.c (tui_source_window::set_contents)
3437 (tui_source_window::showing_source_p): Update.
3438
3439 2019-09-20 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3442 Don't call tui_locator_win_info_ptr.
3443
3444 2019-09-20 Tom Tromey <tom@tromey.com>
3445
3446 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3447
3448 2019-09-20 Tom Tromey <tom@tromey.com>
3449
3450 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3451 height for locator.
3452 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3453 * tui/tui-layout.c (show_source_disasm_command, show_data)
3454 (show_source_or_disasm_and_command): Use 1 as height for locator.
3455
3456 2019-09-20 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui.c (tui_enable): Update.
3459 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3460 Update.
3461 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3462 Update.
3463 * tui/tui-data.c (win_resized): Now bool.
3464 (tui_win_resized): Return bool.
3465 (tui_set_win_resized_to): Accept a bool.
3466
3467 2019-09-20 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3470 Change type of "refresh_values_only".
3471 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3472 type of "refresh_values_only".
3473
3474 2019-09-20 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3477 std::string.
3478 (tui_disassemble): Add "pos" parameter.
3479 (tui_disasm_window::set_contents): Simplify.
3480
3481 2019-09-20 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-winsource.h (struct tui_source_window_base)
3484 <show_source_content>: Now private.
3485 * tui/tui-winsource.c
3486 (tui_source_window_base::show_source_content): Don't handle empty
3487 content case.
3488
3489 2019-09-20 Tom Tromey <tom@tromey.com>
3490
3491 * tui/tui-layout.c (show_source_disasm_command)
3492 (show_source_or_disasm_and_command): Don't call
3493 show_source_content.
3494
3495 2019-09-20 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3498 Declare.
3499 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3500 from tui_make_status_line.
3501 (tui_locator_window::rerender): Update.
3502
3503 2019-09-20 Tom Tromey <tom@tromey.com>
3504
3505 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3506 (tui_locator_window::rerender): Update.
3507
3508 2019-09-20 Tom Tromey <tom@tromey.com>
3509
3510 * tui/tui-winsource.h (struct tui_source_window_base)
3511 <~tui_source_window_base>: Don't declare.
3512 <fullname>: Remove.
3513 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3514 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3515 member.
3516 * tui/tui-source.c (tui_source_window::set_contents): Update.
3517 (tui_source_window::location_matches_p)
3518 (tui_source_window::maybe_update): Update.
3519
3520 2019-09-20 Tom Tromey <tom@tromey.com>
3521
3522 * tui/tui-winsource.h (~tui_source_element): Remove.
3523 (tui_source_element): Update.
3524 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3525 * tui/tui-winsource.c (tui_show_source_line): Update.
3526 * tui/tui-source.c (tui_source_window::set_contents): Update.
3527 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3528
3529 2019-09-20 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3532 declare.
3533 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3534 tui_clear_source_windows_detail.
3535 * tui/tui-winsource.h (struct tui_source_window_base)
3536 <clear_detail>: Don't declare.
3537 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3538 Remove.
3539 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3540
3541 2019-09-20 Tom Tromey <tromey@adacore.com>
3542
3543 PR ada/24919:
3544 * block.c (contained_in): Fix final return value.
3545
3546 2019-09-20 Alan Modra <amodra@gmail.com>
3547
3548 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3549 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3550 (read_indirect_string_from_dwz): Use bfd accessor.
3551 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3552 * machoread.c (macho_symfile_read_all_oso): Likewise.
3553 * solib.c (solib_bfd_open): Likewise.
3554
3555 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3556
3557 * eval.c: Move declaration of overload_resolution to...
3558 * value.h: ...here.
3559
3560 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3561
3562 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3563 * arm-linux-tdep.c: Likewise.
3564 * arm-nbsd-nat.c: Likewise.
3565 * arm-tdep.h: Declare arm_apcs_32.
3566 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3567
3568 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3569
3570 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3571 * dwarf2read.h: Declare dwarf_always_disassemble.
3572
3573 2019-09-19 Tom de Vries <tdevries@suse.de>
3574
3575 PR gdb/25009
3576 * source-cache.c (source_cache::ensure): Catch exception thrown during
3577 construction of the highlighter.
3578
3579 2019-09-18 Alan Modra <amodra@gmail.com>
3580
3581 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3582 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3583 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3584 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3585 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3586 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3587 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3588 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3589 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3590 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3591 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3592 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3593 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3594 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3595 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3596 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3597 * mi/mi-interp.c: Update throughout for bfd section macro and
3598 function changes.
3599 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3600 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3601
3602 2019-09-18 Tom Tromey <tom@tromey.com>
3603
3604 * NEWS: Add entry.
3605 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3606 call rl_initialize.
3607 (tui_enable): Do not call rl_initialize.
3608
3609 2019-09-18 Christian Groessler <chris@groessler.org>
3610
3611 * alpha-linux-nat.c: Include gdbarch.h.
3612
3613 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3614
3615 * ui-file.c: Include cli/cli-style.h.
3616 (term_cli_styling): Remove cli_styling declaration.
3617
3618 2019-09-18 Alan Modra <amodra@gmail.com>
3619
3620 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3621 to bfd_asymbol_section.
3622
3623 2019-09-18 Alan Modra <amodra@gmail.com>
3624
3625 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3626 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3627 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3628
3629 2019-09-18 Alan Modra <amodra@gmail.com>
3630
3631 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3632 * spu-linux-nat.c (spu_bfd_open): Likewise.
3633
3634 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3635
3636 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3637 to bool to match definition in dwarf2read.c.
3638
3639 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3640
3641 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3642 (print_signatures): Likewise.
3643 (trust_pad_over_xvs): Likewise.
3644 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3645 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3646 * arm-linux-nat.c (arm_apcs_32): Likewise.
3647 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3648 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3649 * arm-tdep.c (arm_debug): Likewise.
3650 (arm_apcs_32): Likewise.
3651 * auto-load.c (debug_auto_load): Likewise.
3652 (auto_load_gdb_scripts): Likewise.
3653 (global_auto_load): Likewise.
3654 (auto_load_local_gdbinit): Likewise.
3655 (auto_load_local_gdbinit_loaded): Likewise.
3656 * auto-load.h (global_auto_load): Likewise.
3657 (auto_load_local_gdbinit): Likewise.
3658 (auto_load_local_gdbinit_loaded): Likewise.
3659 * breakpoint.c (disconnected_dprintf): Likewise.
3660 (breakpoint_proceeded): Likewise.
3661 (automatic_hardware_breakpoints): Likewise.
3662 (always_inserted_mode): Likewise.
3663 (target_exact_watchpoints): Likewise.
3664 (_initialize_breakpoint): Update.
3665 * breakpoint.h (target_exact_watchpoints): Change to bool.
3666 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3667 * cli/cli-cmds.c (trace_commands): Likewise.
3668 * cli/cli-cmds.h (trace_commands): Likewise.
3669 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3670 to bool*.
3671 * cli/cli-logging.c (logging_overwrite): Change to bool.
3672 (logging_redirect): Likewise.
3673 (debug_redirect): Likewise.
3674 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3675 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3676 to bool.
3677 <boolean_option_def>: Update.
3678 (struct flag_option_def): Change default type of Context to bool
3679 from int.
3680 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3681 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3682 (get_setshow_command_value_string): Likewise.
3683 * cli/cli-style.c (cli_styling): Change to bool.
3684 (source_styling): Likewise.
3685 * cli/cli-style.h (source_styling): Likewise.
3686 (cli_styling): Likewise.
3687 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3688 to bool.
3689 * command.h (var_types): Update comment.
3690 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3691 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3692 bool.
3693 (debug_compile_cplus_scopes): Likewise.
3694 * compile/compile-internal.h (compile_debug): Likewise.
3695 * compile/compile.c (compile_debug): Likewise.
3696 (struct compile_options) <raw>: Likewise.
3697 * cp-support.c (catch_demangler_crashes): Likewise.
3698 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3699 (usr_cmd_cris_dwarf2_cfi): Likewise.
3700 * csky-tdep.c (csky_debug): Likewise.
3701 * darwin-nat.c (enable_mach_exceptions): Likewise.
3702 * dcache.c (dcache_enabled_p): Likewise.
3703 * defs.h (info_verbose): Likewise.
3704 * demangle.c (demangle): Likewise.
3705 (asm_demangle): Likewise.
3706 * dwarf-index-cache.c (debug_index_cache): Likewise.
3707 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3708 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3709 * dwarf2read.c (check_physname): Likewise.
3710 (use_deprecated_index_sections): Likewise.
3711 (dwarf_always_disassemble): Likewise.
3712 * eval.c (overload_resolution): Likewise.
3713 * event-top.c (set_editing_cmd_var): Likewise.
3714 (exec_done_display_p): Likewise.
3715 * event-top.h (set_editing_cmd_var): Likewise.
3716 (exec_done_display_p): Likewise.
3717 * exec.c (write_files): Likewise.
3718 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3719 (debug_fbsd_nat): Likewise.
3720 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3721 Likewise.
3722 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3723 <backtrace_past_entry> Likewise.
3724 * gdb-demangle.h (demangle): Likewise.
3725 (asm_demangle): Likewise.
3726 * gdb_bfd.c (bfd_sharing): Likewise.
3727 * gdbcore.h (write_files): Likewise.
3728 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3729 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3730 * gdbthread.h (print_thread_events): Likewise.
3731 * gdbtypes.c (opaque_type_resolution): Likewise.
3732 (strict_type_checking): Likewise.
3733 * gnu-nat.c (gnu_debug_flag): Likewise.
3734 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3735 * guile/scm-param.c (pascm_variable): Add boolval.
3736 (add_setshow_generic): Update.
3737 (pascm_param_value): Update.
3738 (pascm_set_param_value_x): Update.
3739 * hppa-tdep.c (hppa_debug): Change to bool..
3740 * infcall.c (may_call_functions_p): Likewise.
3741 (coerce_float_to_double_p): Likewise.
3742 (unwind_on_signal_p): Likewise.
3743 (unwind_on_terminating_exception_p): Likewise.
3744 * infcmd.c (startup_with_shell): Likewise.
3745 * inferior.c (print_inferior_events): Likewise.
3746 * inferior.h (startup_with_shell): Likewise.
3747 (print_inferior_events): Likewise.
3748 * infrun.c (step_stop_if_no_debug): Likewise.
3749 (detach_fork): Likewise.
3750 (debug_displaced): Likewise.
3751 (disable_randomization): Likewise.
3752 (non_stop): Likewise.
3753 (non_stop_1): Likewise.
3754 (observer_mode): Likewise.
3755 (observer_mode_1): Likewise.
3756 (set_observer_mode): Update.
3757 (sched_multi): Change to bool.
3758 * infrun.h (debug_displaced): Likewise.
3759 (sched_multi): Likewise.
3760 (step_stop_if_no_debug): Likewise.
3761 (non_stop): Likewise.
3762 (disable_randomization): Likewise.
3763 * linux-tdep.c (use_coredump_filter): Likewise.
3764 (dump_excluded_mappings): Likewise.
3765 * linux-thread-db.c (auto_load_thread_db): Likewise.
3766 (check_thread_db_on_load): Likewise.
3767 * main.c (captured_main_1): Update.
3768 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3769 xx2_opt, boolean_opt>: Change to bool.
3770 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3771 * maint.c (maintenance_profile_p): Likewise.
3772 (per_command_time): Likewise.
3773 (per_command_space): Likewise.
3774 (per_command_symtab): Likewise.
3775 * memattr.c (inaccessible_by_default): Likewise.
3776 * mi/mi-main.c (mi_async): Likewise.
3777 (mi_async_1): Likewise.
3778 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3779 * nat/fork-inferior.h (startup_with_shell): Likewise.
3780 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3781 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3782 * nios2-tdep.c (nios2_debug): Likewise.
3783 * or1k-tdep.c (or1k_debug): Likewise.
3784 * parse.c (parser_debug): Likewise.
3785 * parser-defs.h (parser_debug): Likewise.
3786 * printcmd.c (print_symbol_filename): Likewise.
3787 * proc-api.c (procfs_trace): Likewise.
3788 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3789 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3790 (set_parameter_value): Update.
3791 (add_setshow_generic): Update.
3792 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3793 to bool*.
3794 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3795 int*.
3796 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3797 * record-btrace.c (record_btrace_target::store_registers): Update.
3798 * record-full.c (record_full_memory_query): Change to bool.
3799 (record_full_stop_at_limit): Likewise.
3800 * record-full.h (record_full_memory_query): Likewise.
3801 * remote-notif.c (notif_debug): Likewise.
3802 * remote-notif.h (notif_debug): Likewise.
3803 * remote.c (use_range_stepping): Likewise.
3804 (interrupt_on_connect): Likewise.
3805 (remote_break): Likewise.
3806 * ser-tcp.c (tcp_auto_retry): Likewise.
3807 * ser-unix.c (serial_hwflow): Likewise.
3808 * skip.c (debug_skip): Likewise.
3809 * solib-aix.c (solib_aix_debug): Likewise.
3810 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3811 (spu_auto_flush_cache_p): Likewise.
3812 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3813 Likewise.
3814 (struct info_print_options) <quiet>: Likewise.
3815 * symfile-debug.c (debug_symfile): Likewise.
3816 * symfile.c (auto_solib_add): Likewise.
3817 (separate_debug_file_debug): Likewise.
3818 * symfile.h (auto_solib_add): Likewise.
3819 (separate_debug_file_debug): Likewise.
3820 * symtab.c (basenames_may_differ): Likewise.
3821 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3822 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3823 (struct info_types_options) <quiet>: Likewise.
3824 * symtab.h (demangle): Likewise.
3825 (basenames_may_differ): Likewise.
3826 * target-dcache.c (stack_cache_enabled_1): Likewise.
3827 (code_cache_enabled_1): Likewise.
3828 * target.c (trust_readonly): Likewise.
3829 (may_write_registers): Likewise.
3830 (may_write_memory): Likewise.
3831 (may_insert_breakpoints): Likewise.
3832 (may_insert_tracepoints): Likewise.
3833 (may_insert_fast_tracepoints): Likewise.
3834 (may_stop): Likewise.
3835 (auto_connect_native_target): Likewise.
3836 (target_stop_and_wait): Update.
3837 (target_async_permitted): Change to bool.
3838 (target_async_permitted_1): Likewise.
3839 (may_write_registers_1): Likewise.
3840 (may_write_memory_1): Likewise.
3841 (may_insert_breakpoints_1): Likewise.
3842 (may_insert_tracepoints_1): Likewise.
3843 (may_insert_fast_tracepoints_1): Likewise.
3844 (may_stop_1): Likewise.
3845 * target.h (target_async_permitted): Likewise.
3846 (may_write_registers): Likewise.
3847 (may_write_memory): Likewise.
3848 (may_insert_breakpoints): Likewise.
3849 (may_insert_tracepoints): Likewise.
3850 (may_insert_fast_tracepoints): Likewise.
3851 (may_stop): Likewise.
3852 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3853 (make_thread_apply_all_options_def_group): Change argument from int*
3854 to bool*.
3855 (thread_apply_all_command): Update.
3856 (print_thread_events): Change to bool.
3857 * top.c (confirm): Likewise.
3858 (command_editing_p): Likewise.
3859 (history_expansion_p): Likewise.
3860 (write_history_p): Likewise.
3861 (info_verbose): Likewise.
3862 * top.h (confirm): Likewise.
3863 (history_expansion_p): Likewise.
3864 * tracepoint.c (disconnected_tracing): Likewise.
3865 (circular_trace_buffer): Likewise.
3866 * typeprint.c (print_methods): Likewise.
3867 (print_typedefs): Likewise.
3868 * utils.c (debug_timestamp): Likewise.
3869 (sevenbit_strings): Likewise.
3870 (pagination_enabled): Likewise.
3871 * utils.h (sevenbit_strings): Likewise.
3872 (pagination_enabled): Likewise.
3873 * valops.c (overload_resolution): Likewise.
3874 * valprint.h (struct value_print_options) <prettyformat_arrays,
3875 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3876 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3877 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3878 Likewise.
3879 * windows-nat.c (new_console): Likewise.
3880 (cygwin_exceptions): Likewise.
3881 (new_group): Likewise.
3882 (debug_exec): Likewise.
3883 (debug_events): Likewise.
3884 (debug_memory): Likewise.
3885 (debug_exceptions): Likewise.
3886 (useshell): Likewise.
3887 * windows-tdep.c (maint_display_all_tib): Likewise.
3888 * xml-support.c (debug_xml): Likewise.
3889
3890 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3891
3892 * source.c (prepare_path_for_appending): New function.
3893 (openp): Make use of new function.
3894 (find_and_open_source): Search for the compilation directory and
3895 source file as a relative path beneath the directory search path.
3896
3897 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * source-cache.c (source_cache::get_line_charpos): Catch
3900 exceptions and return false, this matches the behaviour documented
3901 in the header file.
3902
3903 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3904
3905 * ada-tasks.c (info_task): Remove quoting of the task's name.
3906
3907 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3908
3909 * symfile.c (auto_solib_add): Replace comment with a reference
3910 to the header file.
3911
3912 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3913
3914 * NEWS: Mention that gdb can now be compiled with Python 3
3915 on Windows.
3916
3917 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * maint.c (maint_print_section_data::maint_print_section_data):
3920 Force use of 'float log10 (float)' by casting the argument to
3921 float.
3922
3923 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 * maint.c: Add 'cmath' include.
3926 (struct maint_print_section_data): New structure.
3927 (print_section_index): New function.
3928 (print_bfd_section_info): Add header comment, small whitespace
3929 cleanup, and update to call new print_section_index function.
3930 (print_objfile_section_info): Likewise.
3931 (maint_obj_section_from_bfd_section): New function.
3932 (print_bfd_section_info_maybe_relocated): New function.
3933 (maintenance_info_sections): Add header comment, always use
3934 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3935
3936 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3939 inner scope, add check that the objfile has psymtabs before
3940 checking psymtabs_addrmap.
3941 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3942
3943 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3944
3945 * NEWS: Announce that Ada task names are now shown at more places,
3946 and between quotes (except in info task output).
3947 * gdb/ada-tasks.c (task_to_str): New function.
3948 (display_current_task_id): Call task_to_str.
3949 (task_command_1): Likewise.
3950 (print_ada_task_info): In non-mi mode, Properly align headers and data
3951 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3952
3953 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3954
3955 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3956 prstatus.pr_lwp.pr_info instead of making it up.
3957
3958 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3959
3960 * auto-load.c (auto_load_expand_dir_vars): Update.
3961 * defs.h (gdb_datadir): Change to std::string.
3962 (python_libdir): Likewise.
3963 (relocate_gdb_directory): Change return type to std::string.
3964 * guile/guile.c (gdbscm_data_directory): Update.
3965 (initialize_scheme_side): Update.
3966 * jit.c (jit_reader_dir): Change to std::string.
3967 (jit_reader_load_command): Update.
3968 * main.c (gdb_datadir): Change to std::string.
3969 (python_libdir): Likewise.
3970 (set_gdb_data_directory): Update.
3971 (relocate_path): Change to return std::string.
3972 (relocate_gdb_directory): Change to return std::string.
3973 (relocate_gdbinit_path_maybe_in_datadir): Update.
3974 (captured_main_1): Update.
3975 * python/python.c (do_start_initialization): Update.
3976 * top.c (show_gdb_datadir): Update.
3977 * xml-syscall.c (xml_init_syscalls_info): Update.
3978 (init_syscalls_info): Update.
3979
3980 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3981
3982 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3983 out of get_init_files.
3984 (get_init_files): Update.
3985
3986 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3987
3988 * main.c (get_init_files): Change to use std::string.
3989 (captured_main_1): Update.
3990 (print_gdb_help): Update.
3991
3992 2019-09-11 Ali Tamur <tamur@google.com>
3993
3994 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3995 implementation.
3996
3997 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3998
3999 * dbxread.c (read_dbx_symtab): Update.
4000 * dwarf2read.c (load_partial_dies): Update.
4001 * mdebugread.c (parse_partial_symbols): Update.
4002 (handle_psymbol_enumerators): Update.
4003 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4004 * psymtab.c (add_psymbol_to_bcache): Likewise.
4005 (add_psymbol_to_list): Likewise.
4006 * symtab.c (symbol_set_names): Likewise.
4007 * symtab.h (symbol_set_names): Likewise.
4008 * xcoffread.c (scan_xcoff_symtab): Update.
4009
4010 2019-09-11 Tom Tromey <tom@tromey.com>
4011
4012 * symfile-mem.c (symbol_file_add_from_memory): Use
4013 bfd_set_filename.
4014 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4015 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4016
4017 2019-09-10 Tom Tromey <tromey@adacore.com>
4018
4019 * dwarf-index-write.c (write_psymbols): Extend error message.
4020 (debug_names::insert): Add Ada code.
4021 (debug_names::write_psymbols): Remove Ada check.
4022 (debug_names) <m_string_obstack>: New member.
4023 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4024 (gdb_index_symbol_name_matcher::matches): Remove.
4025 (mapped_index_base::find_name_components_bounds): Add "lang"
4026 parameter.
4027 (mapped_index_base::build_name_components): Also split names
4028 according to Ada syntax.
4029 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4030 type of "match_callback".
4031 (check_match, check_find_bounds_finds)
4032 (dw2_expand_symtabs_matching): Update.
4033 (dw2_debug_names_iterator): Add new constructor.
4034 (dw2_debug_names_map_matching_symbols): New function.
4035 (dw2_debug_names_expand_symtabs_matching): Update.
4036 (dwarf2_debug_names_functions): Use
4037 dw2_debug_names_map_matching_symbols.
4038
4039 2019-09-10 Tom Tromey <tromey@adacore.com>
4040
4041 * dwarf2read.c (dw2_get_file_names_reader): Add the
4042 CU's file name to the results.
4043
4044 2019-09-10 Tom Tromey <tromey@adacore.com>
4045
4046 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4047 map_matching_symbols. Update.
4048 * dwarf2read.c (dw2_map_matching_symbols): Update.
4049 * psymtab.c (match_partial_symbol): Change type; update.
4050 (psym_map_matching_symbols): Likewise.
4051 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4052 type; update.
4053 * symfile.h (struct quick_symbol_functions)
4054 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4055 Remove "match".
4056
4057 2019-09-10 Tom Tromey <tromey@adacore.com>
4058
4059 * psymtab.c (map_block): Remove.
4060 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4061 * symtab.c (iterate_over_symbols_terminated): New function.
4062 * symtab.c (iterate_over_symbols_terminated): Declare.
4063
4064 2019-09-10 Tom Tromey <tromey@adacore.com>
4065
4066 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4067 * language.h (struct language_defn) <la_iterate_over_symbols>:
4068 Return bool.
4069 * symtab.c (iterate_over_symbols): Return bool.
4070 * symtab.h (iterate_over_symbols): Return bool.
4071
4072 2019-09-10 Tom Tromey <tromey@adacore.com>
4073
4074 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4075 (add_nonlocal_symbols): Update.
4076 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4077 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4078 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4079 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4080 Change type of "callback". Remove "data".
4081
4082
4083 2019-09-09 Ali Tamur <tamur@google.com>
4084
4085 * dwarf2read.c (comp_unit_head): Update comment.
4086 (dwarf2_dwo_name): New function declaration.
4087 (dwarf_unit_type_name): New function declaration.
4088 (read_comp_unit_head): Add support for new compilation units,
4089 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4090 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4091 (currently named as "signature") in their header. Also clarify error
4092 messages.
4093 (lookup_dwo_id): New function. Returns the dwo id of the given
4094 compile unit.
4095 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4096 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4097 functions.
4098 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4099 (dwarf2_dwo_name): Get the dwo name if present.
4100 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4101 purposes.
4102
4103 2019-09-09 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4106
4107 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4108
4109 * python/python.c (do_start_initialization): Make progname_copy static,
4110 to avoid a leak report.
4111
4112 2019-09-08 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4115
4116 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4119 Change type to gdb::optional<block_enum>.
4120 (dw2_symtab_iter_init): Change block_index parameter type
4121 to gdb::optional<block_enum>.
4122 (dw2_lookup_symbol): Change block_index parameter
4123 type to block_enum.c
4124 (dw2_debug_names_lookup_symbol): Likewise.
4125 * psymtab.c (psym_lookup_symbol): Likewise.
4126 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4127 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4128 Likewise.
4129
4130 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4131
4132 * defs.h (relocate_gdb_directory): Change int to bool in
4133 signature and rename flag to relocatable.
4134 * main.c (relocate_path): Likewise.
4135 (relocate_gdb_directory): Likewise.
4136
4137 2019-09-06 Alan Modra <amodra@gmail.com>
4138
4139 * coffread.c (coff_symfile_read): Constify filename variable.
4140 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4141 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4142 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4143 * solib.c (reload_shared_libraries_1): Likewise.
4144 * symfile.c (reread_symbols): Likewise.
4145 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4146 * solib-darwin.c (darwin_bfd_open): Likewise.
4147 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4148
4149 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4152 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4153
4154 2019-09-03 Tom Tromey <tromey@adacore.com>
4155
4156 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4157 types.
4158 (has_negatives): Unbias a range type bound.
4159 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4160 * gdbtypes.c (operator==): Handle new field.
4161 (create_range_type): Add "bias" parameter.
4162 (create_static_range_type, resolve_dynamic_range): Update.
4163 * gdbtypes.h (struct range_bounds) <bias>: New member.
4164 (create_range_type): Add bias parameter.
4165 * printcmd.c (print_scalar_formatted): Unbias range types.
4166 * value.c (unpack_long): Unbias range types.
4167 (pack_long): Bias range types.
4168
4169 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4170
4171 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4172 probe arguments.
4173
4174 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4175
4176 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4177 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4178 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4179 (compile_probe_arg): Likewise.
4180 * probe.h (get_argument_count): Likewise.
4181 * solib-svr4.c (solib_event_probe_action): Likewise.
4182 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4183
4184 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4185
4186 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4187 code to here...
4188 (svr4_create_solib_event_breakpoints): ...from here.
4189
4190 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4191
4192 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4193 suffix from warning message.
4194
4195 2019-08-30 Tom Tromey <tom@tromey.com>
4196
4197 * tui/tui-winsource.h (struct tui_source_window_base)
4198 <refresh_all>: Don't declare.
4199 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4200 Remove.
4201 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4202 tui_show_locator_content.
4203 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4204 declare.
4205 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4206 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4207 declare.
4208
4209 2019-08-30 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4212
4213 2019-08-30 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4216 Remove unnecessary forward declarations.
4217
4218 2019-08-30 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4221 rerender.
4222 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4223 tui_show_locator_content.
4224
4225 2019-08-30 Tom Tromey <tom@tromey.com>
4226
4227 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4228 (tui_locator_window::rerender): Rewrite using body of previous
4229 tui_show_locator_content.
4230
4231 2019-08-30 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4234 set_locator_fullname>: New methods.
4235 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4236 Rename from tui_set_locator_fullname.
4237 (tui_locator_window::set_locator_info): Rename from
4238 tui_set_locator_info. Return bool.
4239 (tui_update_locator_fullname, tui_show_frame_info): Update.
4240
4241 2019-08-30 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4244
4245 2019-08-30 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4248 call touchwin.
4249
4250 2019-08-30 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-wingeneral.c (box_win): Assume win_info and
4253 win_info->handle cannot be NULL.
4254
4255 2019-08-30 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4258 refresh_window>: Declare.
4259 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4260 resize.
4261 (tui_data_item_window::rerender): Rename from
4262 tui_display_register.
4263 (tui_data_item_window::refresh_window): New method.
4264 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4265 no-op.
4266
4267 2019-08-30 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4270 regs_column_count, current_group>: Move later. Now private.
4271 <get_current_group>: New method.
4272 * tui/tui-regs.c (tui_reg_command): Update.
4273 * tui/tui-layout.c (tui_set_layout): Update.
4274
4275 2019-08-30 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4278 (tui_data_window::rerender): Don't call
4279 check_and_display_highlight_if_needed.
4280 (tui_data_window::refresh_all): Remove call to
4281 erase_data_content.
4282
4283 2019-08-30 Tom Tromey <tom@tromey.com>
4284
4285 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4286 (tui_data_window::display_registers_from)
4287 (tui_data_window::display_reg_element_at_line)
4288 (tui_data_window::display_registers_from_line): Remove checks of
4289 "empty".
4290
4291 2019-08-30 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4294 Don't declare.
4295 * tui/tui-regs.c (tui_data_window::show_registers): Call
4296 rerender.
4297 (tui_data_window::rerender): Rename from display_all_data.
4298 (tui_data_window::rerender): Remove old implementation.
4299
4300 2019-08-30 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4303 text.
4304 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4305
4306 2019-08-29 Bernhard Wodok <barto@gmx.net>
4307 Sergio Durigan Junior <sergiodj@redhat.com>
4308
4309 PR win32/24284
4310 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4311
4312 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4313
4314 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4315 when searching for types.
4316
4317 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4318
4319 * f-lang.c (f_language_defn): Use f_print_typedef.
4320 * f-lang.h (f_print_typedef): Declare.
4321 * f-typeprint.c (f_print_typedef): Define.
4322
4323 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4324
4325 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4326
4327 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4328
4329 * cli/cli-utils.c (info_print_options_defs): Delete.
4330 (make_info_print_options_def_group): Delete.
4331 (extract_info_print_options): Delete.
4332 (info_print_command_completer): Delete.
4333 (info_print_args_help): Add extra parameter, and optionally
4334 include text about -n flag.
4335 * cli/cli-utils.h (struct info_print_options): Delete.
4336 (extract_info_print_options): Delete declaration.
4337 (info_print_command_completer): Delete declaration.
4338 (info_print_args_help): Add extra parameter, extend header
4339 comment.
4340 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4341 search_symbols.
4342 * stack.c (struct info_print_options): New type.
4343 (info_print_options_defs): New file scoped variable.
4344 (make_info_print_options_def_group): New static function.
4345 (info_print_command_completer): New static function.
4346 (info_locals_command): Update to use new local functions.
4347 (info_args_command): Likewise.
4348 (_initialize_stack): Add extra parameter to calls to
4349 info_print_args_help.
4350 * symtab.c (search_symbols): Add extra parameter, use this to
4351 possibly excluse non-debug symbols.
4352 (symtab_symbol_info): Add extra parameter, which is passed on to
4353 search_symbols.
4354 (struct info_print_options): New type.
4355 (info_print_options_defs): New file scoped variable.
4356 (make_info_print_options_def_group): New static function.
4357 (info_print_command_completer): New static function.
4358 (info_variables_command): Update to use local functions, and pass
4359 extra parameter through to symtab_symbol_info.
4360 (info_functions_command): Likewise.
4361 (info_types_command): Pass additional argument through to
4362 symtab_symbol_info.
4363 (rbreak_command): Pass extra argument to search_symbols.
4364 (_initialize_symtab): Add extra arguments for calls to
4365 info_print_args_help, and update help text for 'info variables',
4366 'whereis', and 'info functions' commands.
4367 * symtab.h (search_symbols): Add extra argument to declaration.
4368 * NEWS: Mention new flags.
4369
4370 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4371
4372 * symtab.c (lookup_static_symbol): Call the new function (and move
4373 it down to be next to lookup_global_symbol).
4374 (struct global_sym_lookup_data): Add block_enum member and rename to...
4375 (struct global_or_static_sym_lookup_data): ...this.
4376 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4377 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4378 (lookup_symbol_global_or_static_iterator_cb): ...this.
4379 (lookup_global_or_static_symbol): New function.
4380 (lookup_global_symbol): Call new function.
4381
4382 2019-08-26 Tom de Vries <tdevries@suse.de>
4383
4384 PR c++/24852
4385 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4386 when pc_probe.prob == NULL.
4387
4388 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4391 variable symbol_linkage to symbol_linkage_.
4392
4393 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4396 represent whether the symbol is static, dynamic, or we don't
4397 know.
4398
4399 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4400
4401 * gdb/rx-tdep.c (rx_register_names): New.
4402 (rx_register_name): Delete.
4403 (rx_psw_type): Delete.
4404 (rx_fpsw_type): Delete.
4405 (rx_register_type): Delete.
4406 (rx_gdbarch_init): Convert target-descriptions.
4407 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4408 * gdb/features/Makefile: Add rx.xml.
4409 * gdb/features/rx.xml: New.
4410 * gdb/features/rx.c: Generated.
4411 * gdb/NEWS: Mention target description support.
4412
4413 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4414
4415 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4416 *slot_ptr.
4417
4418 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4419
4420 * configure.ac: Don't check for 'dlfcn.h' (moved to
4421 gdbsupport/common.m4).
4422 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4423 'gdbsupport/'.
4424 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4425 * compile/compile-c-support.c: Include
4426 'gdbsupport/gdb-dlfcn.h'.
4427 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4428 * gdb-dlfcn.c: Move to...
4429 * gdbsupport/gdb-dlfcn.c: ... here.
4430 * gdb-dlfcn.h: Move to...
4431 * gdbsupport/gdb-dlfcn.h: ... here.
4432
4433 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4434
4435 * nios2-tdep.c (struct reg_value): Improve comments. Make
4436 the offset field signed.
4437
4438 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4439
4440 * python/lib/gdb/__init__.py (_execute_file): New function.
4441 * python/python.c (python_run_simple_file): Call gdb._execute_file
4442 on Windows.
4443
4444 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4447 all uses as this was never set to anything but a zero value.
4448
4449 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4450
4451 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4452
4453 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4454
4455 * tui/tui-data.h (tui_gen_win_info): Add an =default
4456 move constructor, required by some GCC versions.
4457
4458 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4459
4460 * go32-nat.c (go32_sysinfo): Add hygon_p.
4461
4462 2019-08-20 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4465 line_from_reg_element_no, first_reg_element_no_inline,
4466 display_all_data, delete_data_content_windows,
4467 erase_data_content>: Now private.
4468
4469 2019-08-20 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4472 (tui_unhighlight_win, tui_highlight_win)
4473 (tui_win_info::make_window): Update.
4474 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4475
4476 2019-08-20 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4479 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4480 (MAX_PID_WIDTH): Move to tui-stack.c.
4481 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4482 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4483 (MAX_PID_WIDTH): Move from tui-data.h.
4484
4485 2019-08-20 Tom Tromey <tom@tromey.com>
4486
4487 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4488 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4489 (box_win): Update.
4490 (tui_gen_win_info::make_window): Rename from tui_make_window.
4491 (tui_win_info::make_window): New method.
4492 (tui_gen_win_info::make_visible): Update.
4493 * tui/tui-source.c (tui_source_window::set_contents): Update.
4494 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4495 (tui_data_window::display_registers_from): Update.
4496 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4497 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4498 Declare.
4499 <can_box>: Remove.
4500 <title>: Remove.
4501 (struct tui_win_info) <make_window>: Declare.
4502 <can_box>: Now virtual.
4503 <title>: New member.
4504 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4505 * tui/tui-command.c (tui_cmd_window::resize): Update.
4506
4507 2019-08-20 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4510 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4511 (tui_data_window::check_register_values): Update.
4512
4513 2019-08-20 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui-regs.h (struct tui_data_window): Use
4516 DISABLE_COPY_AND_ASSIGN.
4517 <regs_content>: Change type, removing unique_ptr.
4518 <tui_data_window>: Add move constructor.
4519 * tui/tui-regs.c (tui_data_window::show_registers)
4520 (tui_data_window::show_register_group)
4521 (tui_data_window::display_registers_from)
4522 (tui_data_window::display_registers_from)
4523 (tui_data_window::first_data_item_displayed)
4524 (tui_data_window::delete_data_content_windows)
4525 (tui_data_window::rerender, tui_data_window::refresh_window)
4526 (tui_data_window::check_register_values): Update.
4527
4528 2019-08-20 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4531 show_register_group>: Declare.
4532 (tui_show_register_group): Don't declare.
4533 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4534 tui_show_registers.
4535 (tui_data_window::show_register_group): Rename from
4536 tui_show_register_group.
4537 (tui_data_window::check_register_values, tui_reg_command):
4538 Update.
4539 * tui/tui-layout.c (tui_set_layout): Update.
4540
4541 2019-08-20 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4544 Declare.
4545 (tui_check_register_values): Don't declare.
4546 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4547 from tui_check_register_values.
4548 * tui/tui-hooks.c (tui_register_changed): Update.
4549
4550 2019-08-20 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-regs.c (tui_reg_layout): Move later.
4553 (tui_show_registers): Don't enable TUI mode or change layout.
4554
4555 2019-08-20 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-regs.h (struct tui_data_item_window)
4558 <~tui_data_item_window>: Remove.
4559 <content>: Now a unique_xmalloc_ptr.
4560 * tui/tui-regs.c (tui_register_format): Return a
4561 unique_xmalloc_ptr.
4562 (tui_get_register): Update.
4563 (~tui_data_item_window): Remove.
4564 (tui_data_window::display_registers_from, tui_display_register):
4565 Update.
4566 * tui/tui-io.h (tui_expand_tabs): Update.
4567 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4568 Remove "col" parameter.
4569
4570 2019-08-20 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4573 field.
4574 * tui/tui-regs.c (~tui_data_item_window): Update.
4575
4576 2019-08-20 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4579 earlier.
4580
4581 2019-08-20 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4584
4585 2019-08-20 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-source.h (struct tui_source_window): Update.
4588 * tui/tui-regs.c (tui_show_registers): Update.
4589 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4590 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4591 (NO_REGS_STRING): Remove defines.
4592
4593 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4594
4595 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4596 unnecessary thread walk if remote doesn't support the packet.
4597
4598 2019-08-19 Tom Tromey <tromey@adacore.com>
4599
4600 * python/py-value.c (value_has_field): Fix indentation.
4601
4602 2019-08-19 Tom Tromey <tromey@adacore.com>
4603
4604 * printcmd.c (do_one_display, info_display_command): Update.
4605 * block.h (contained_in): Return bool. Add allow_nested
4606 parameter.
4607 * block.c (contained_in): Return bool. Add allow_nested
4608 parameter.
4609
4610 2019-08-19 Tom Tromey <tom@tromey.com>
4611
4612 * configure: Rebuild.
4613 * configure.ac: Disallow the combination of -static-libstdc++ and
4614 source highlight.
4615 * source-cache.c (get_language_name): Handle rust.
4616 (source_cache::get_source_lines): Ignore highlighting exceptions.
4617
4618 2019-08-16 Tom Tromey <tom@tromey.com>
4619
4620 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4621 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4622 (struct tui_source_window_base) <make_visible, refresh_window,
4623 resize>: Remove methods.
4624 <execution_info>: Remove field.
4625 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4626 (tui_show_source_line, tui_source_window_base)
4627 (~tui_source_window_base): Update.
4628 (tui_source_window_base::resize)
4629 (tui_source_window_base::make_visible)
4630 (tui_source_window_base::refresh_window): Remove.
4631 (tui_source_window_base::update_exec_info): Update.
4632 * tui/tui-source.c (tui_source_window::set_contents): Update.
4633 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4634
4635 2019-08-16 Tom Tromey <tom@tromey.com>
4636
4637 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4638 deprecated_query_hook.
4639
4640 2019-08-16 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4643 (tui_update_source_windows_with_line): Update.
4644 * tui/tui-source.h (struct tui_source_window)
4645 <show_symtab_source>: Declare.
4646 (tui_show_symtab_source): Don't declare.
4647 * tui/tui-source.c (tui_show_symtab_source): Rename from
4648 tui_show_symtab_source.
4649
4650 2019-08-16 Tom Tromey <tom@tromey.com>
4651
4652 * tui/tui-winsource.h (struct tui_source_window_base)
4653 <set_contents>: Declare.
4654 * tui/tui-winsource.c
4655 (tui_source_window_base::update_source_window_as_is): Update.
4656 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4657 Declare.
4658 (tui_set_source_content): Don't declare.
4659 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4660 tui_set_source_content.
4661 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4662 Declare.
4663 (tui_set_disassem_content): Don't declare.
4664 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4665 tui_set_disassem_content.
4666
4667 2019-08-16 Tom Tromey <tom@tromey.com>
4668
4669 * tui/tui-winsource.h (struct tui_source_window_base)
4670 <update_breakpoint_info>: Declare.
4671 (tui_update_breakpoint_info): Don't declare.
4672 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4673 (tui_update_all_breakpoint_info): Update.
4674 (tui_source_window_base::update_breakpoint_info): Rename from
4675 tui_update_breakpoint_info.
4676 (tui_source_window_base::update_exec_info): Update.
4677
4678 2019-08-16 Tom Tromey <tom@tromey.com>
4679
4680 * tui/tui-winsource.h (struct tui_source_window_base)
4681 <update_source_window>: Declare.
4682 (tui_update_source_window): Don't declare.
4683 * tui/tui-winsource.c
4684 (tui_source_window_base::update_source_window): Rename from
4685 tui_update_source_window.
4686 (tui_source_window_base::rerender): Update.
4687 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4688 * tui/tui-disasm.c (tui_show_disassem)
4689 (tui_show_disassem_and_update_source)
4690 (tui_disasm_window::maybe_update): Update.
4691
4692 2019-08-16 Tom Tromey <tom@tromey.com>
4693
4694 * tui/tui-winsource.h (struct tui_source_window_base)
4695 <update_source_window_as_is>: Declare.
4696 (tui_update_source_window_as_is): Don't declare.
4697 * tui/tui-winsource.c (tui_update_source_window): Update
4698 (tui_source_window_base::update_source_window_as_is): Rename from
4699 tui_update_source_window_as_is.
4700 (tui_source_window_base::refill): Update.
4701 * tui/tui-source.c (tui_show_symtab_source): Update.
4702 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4703 Update.
4704
4705 2019-08-16 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-winsource.h (tui_update_source_window)
4708 (tui_update_source_window_as_is): Remove "noerror" parameter.
4709 * tui/tui-winsource.c (tui_update_source_window)
4710 (tui_update_source_window_as_is): Remove "noerror" parameter.
4711 (tui_update_source_windows_with_addr)
4712 (tui_update_source_windows_with_line)
4713 (tui_source_window_base::rerender)
4714 (tui_source_window_base::refill): Update.
4715 * tui/tui-source.h (tui_set_source_content)
4716 (tui_show_symtab_source): Remove "noerror" parameter.
4717 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4718 parameter.
4719 (tui_show_symtab_source): Likewise.
4720 (tui_source_window::maybe_update): Update.
4721 * tui/tui-disasm.c (tui_show_disassem)
4722 (tui_show_disassem_and_update_source)
4723 (tui_disasm_window::do_scroll_vertical)
4724 (tui_disasm_window::maybe_update): Update.
4725
4726 2019-08-16 Tom Tromey <tom@tromey.com>
4727
4728 * tui/tui.c (tui_is_window_visible): Update.
4729 * tui/tui-wingeneral.c (tui_make_window)
4730 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4731 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4732 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4733 (tui_set_win_height_command, parse_scrolling_args): Update.
4734 * tui/tui-source.c (tui_source_window::style_changed): Update.
4735 * tui/tui-regs.c (tui_show_registers)
4736 (tui_data_window::first_data_item_displayed)
4737 (tui_data_window::delete_data_content_windows)
4738 (tui_check_register_values, tui_reg_command): Update.
4739 * tui/tui-disasm.c (tui_show_disassem): Update.
4740 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4741 method.
4742 <is_visible>: Remove field.
4743 * tui/tui-data.c (tui_next_win, tui_prev_win)
4744 (tui_delete_invisible_windows): Update.
4745
4746 2019-08-16 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-winsource.h (struct tui_source_window_base)
4749 <m_has_locator>: Remove.
4750 * tui/tui-layout.c (show_source_disasm_command, show_data)
4751 (show_source_or_disasm_and_command): Update.
4752
4753 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4754
4755 * NEWS (Other MI changes): New subsection.
4756 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4757 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4758 * arch-utils.c (default_get_pc_address_flags): New function.
4759 * arch-utils.h (default_get_pc_address_flags): New declaration.
4760 * gdbarch.sh: Add get_pc_address_flags.
4761 * gdbarch.c: Regenerate.
4762 * gdbarch.h: Likewise.
4763 * stack.c (print_pc): New function.
4764 (print_frame_info) (print_frame): Call print_pc.
4765
4766 2019-08-16 Tom de Vries <tdevries@suse.de>
4767
4768 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4769 print_objfile_section_info.
4770
4771 2019-08-15 Tom Tromey <tom@tromey.com>
4772
4773 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4774 calling update_cmdwin_start_line.
4775 * tui/tui-winsource.h (struct tui_source_window_base)
4776 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4777 <rerender>: Declare.
4778 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4779 Call rerender.
4780 (tui_source_window_base::set_new_height): Remove.
4781 (tui_source_window_base::rerender): Rename from
4782 do_make_visible_with_new_height.
4783 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4784 resize method.
4785 (tui_win_info::make_invisible_and_set_new_height)
4786 (tui_win_info::make_visible_with_new_height): Remove.
4787 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4788 Declare.
4789 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4790 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4791 do_make_visible_with_new_height>: Don't declare.
4792 <rerender>: Declare.
4793 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4794 set_new_height.
4795 (tui_data_window::do_make_visible_with_new_height): Remove.
4796 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4797 call tui_show_locator_content.
4798 (tui_gen_win_info::resize): Call rerender.
4799 (show_source_or_disasm_and_command): Don't call
4800 tui_show_locator_content.
4801 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4802 method.
4803 (struct tui_win_info) <rerender>: Declare.
4804 <set_new_height, make_invisible_and_set_new_height,
4805 make_visible_with_new_height>: Don't declare.
4806 * tui/tui-data.c (tui_win_list::rerender): New method.
4807 * tui/tui-command.h (struct tui_cmd_window)
4808 <do_make_visible_with_new_height>: Don't declare.
4809 * tui/tui-command.c
4810 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4811
4812 2019-08-15 Tom Tromey <tromey@adacore.com>
4813
4814 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4815 * ada-lang.c (ada_enum_name): Likewise.
4816
4817 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4818
4819 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4820 leading underscore.
4821 (GdbOutputErrorFile): Likewise.
4822 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4823 accordingly.
4824 (execute_unwinders): Rename to have a leading underscore.
4825 (auto_load_packages): Likewise.
4826 (global scope): Adjust call to auto_load_packages accordingly.
4827 (GdbSetPythonDirectory): Likewise.
4828 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4829 instead of execute_unwinders.
4830
4831 2019-08-15 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4834 (show_data): Don't change window visibility.
4835 (tui_gen_win_info::resize): Remove special case for command
4836 window. Use wresize, when available.
4837 (show_source_or_disasm_and_command): Don't change window
4838 visibility.
4839 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4840 <make_visible>: New method.
4841 * tui/tui-command.c (tui_cmd_window::resize): New method.
4842
4843 2019-08-15 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4846 (struct tui_source_windows): New.
4847 * tui/tui-winsource.c (tui_display_main): Update.
4848 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4849 (new_height_ok, parse_scrolling_args): Update.
4850 * tui/tui-layout.c (show_layout, show_data): Update.
4851 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4852 (tui_add_to_source_windows): Don't declare.
4853 * tui/tui-data.c (source_windows, tui_source_windows)
4854 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4855
4856 2019-08-15 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4859 Rename from reset.
4860 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4861 * tui/tui-layout.c (show_source_disasm_command, show_data):
4862 Update.
4863 (tui_gen_win_info::resize): Rename.
4864 (show_source_or_disasm_and_command): Update.
4865 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4866 reset.
4867
4868 2019-08-15 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4871 * tui/tui-interp.c (tui_interp::init): Don't call
4872 tui_initialize_static_data.
4873 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4874
4875 2019-08-15 Tom Tromey <tom@tromey.com>
4876
4877 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4878 examine tui_win_list.
4879
4880 2019-08-15 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4883 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4884 tui_clear_source_content.
4885 (tui_clear_source_content): Remove.
4886 (tui_source_window_base::do_erase_source_content): Hoist call to
4887 content.clear().
4888 * tui/tui-stack.c (tui_show_frame_info): Don't call
4889 tui_clear_source_content.
4890
4891 2019-08-15 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.h (struct tui_source_window_base)
4894 <do_erase_source_content>: New method.
4895 <erase_source_content>: New method.
4896 (tui_erase_source_content): Don't declare.
4897 * tui/tui-winsource.c (tui_clear_source_content): Update.
4898 (tui_source_window_base::do_erase_source_content): Rename from
4899 tui_erase_source_content.
4900 (tui_source_window_base::show_source_content): Update.
4901 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4902 * tui/tui-source.h (struct tui_source_window)
4903 <erase_source_content>: New method.
4904 * tui/tui-disasm.h (struct tui_disasm_window)
4905 <erase_source_content>: New method.
4906
4907 2019-08-15 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4910 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4911 constructor.
4912 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4913 * tui/tui-source.c (tui_set_source_content): Update.
4914 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4915
4916 2019-08-15 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4919 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4920 tui-source.c.
4921 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4922 Declare.
4923 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4924 method.
4925 (tui_source_window::maybe_update): Update.
4926
4927 2019-08-15 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4930 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4931 tui-disasm.c.
4932 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4933 Declare.
4934 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4935 method.
4936 (tui_disasm_window::maybe_update): Update.
4937
4938 2019-08-15 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-winsource.h (struct tui_source_window_base)
4941 <maybe_update>: Declare.
4942 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4943 method.
4944 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4945 Declare.
4946 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4947 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4948 Declare.
4949 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4950
4951 2019-08-15 Tom Tromey <tom@tromey.com>
4952
4953 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4954
4955 2019-08-15 Tom Tromey <tom@tromey.com>
4956
4957 * tui/tui-wingeneral.c: Include tui-stack.h.
4958 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4959 (struct tui_locator_window): Move from tui-data.h.
4960 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4961 (tui_initialize_static_data): Move from tui-data.c.
4962 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4963 (struct tui_locator_window): Move to tui-stack.c.
4964 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4965 (tui_initialize_static_data): Move to tui-stack.c.
4966
4967 2019-08-15 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-layout.c (show_source_disasm_command)
4970 (show_source_or_disasm_and_command): Use make_visible method, not
4971 tui_make_window.
4972 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4973 Remove.
4974
4975 2019-08-15 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-wingeneral.h (tui_make_window): Update.
4978 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4979 parameter.
4980 (tui_gen_win_info::make_visible): Update.
4981 * tui/tui-regs.c (tui_data_window::display_registers_from):
4982 Update.
4983 * tui/tui-layout.c (show_source_disasm_command)
4984 (show_source_or_disasm_and_command): Update.
4985 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4986 (enum tui_box): Remove.
4987 (struct tui_win_info) <can_box>: New method.
4988 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4989 method.
4990
4991 2019-08-15 Tom de Vries <tdevries@suse.de>
4992
4993 * linux-nat-trad.c: Include gdbarch.h.
4994
4995 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4996
4997 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4998 register sizes.
4999
5000 2019-08-14 Tom Tromey <tromey@adacore.com>
5001
5002 * darwin-nat.c: Include gdbarch.h.
5003 * darwin-nat-info.c: Include gdbarch.h.
5004
5005 2019-08-13 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5008 Remove.
5009 * tui/tui-data.c (tui_initialize_static_data): Update.
5010
5011 2019-08-13 Tom Tromey <tom@tromey.com>
5012
5013 * tui/tui-winsource.h (struct tui_exec_info_window)
5014 <~tui_exec_info_window, maybe_allocate_content, get_content,
5015 m_content>: Remove.
5016 (struct tui_source_window_base) <set_exec_info_content,
5017 show_exec_info_content>: Don't declare.
5018 * tui/tui-winsource.c
5019 (tui_exec_info_window::maybe_allocate_content): Remove.
5020 (tui_source_window_base::update_exec_info): Rename from
5021 set_exec_info_content.
5022 (tui_source_window_base::show_exec_info_content)
5023 (tui_source_window_base::update_exec_info): Remove.
5024
5025 2019-08-13 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5028 declare.
5029 * tui/tui-winsource.c (tui_update_source_window_as_is)
5030 (tui_update_source_windows_with_addr, tui_erase_source_content):
5031 Update.
5032 (tui_clear_exec_info_content): Remove.
5033
5034 2019-08-13 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5037 declare.
5038 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5039 call tui_erase_exec_info_content.
5040 (tui_clear_exec_info_content): Rename from
5041 tui_erase_exec_info_content.
5042 (tui_clear_exec_info_content): Delete.
5043
5044 2019-08-13 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-winsource.h (struct tui_source_window_base)
5047 <show_exec_info_content>: Declare.
5048 (tui_show_exec_info_content): Don't declare.
5049 * tui/tui-winsource.c
5050 (tui_source_window_base::show_exec_info_content): Rename from
5051 tui_show_exec_info_content.
5052 (tui_source_window_base::update_exec_info): Update.
5053
5054 2019-08-13 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5057 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5058 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5059 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5060 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5061 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5062 ... here.
5063
5064 2019-08-13 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-winsource.h (struct tui_source_window_base)
5067 <update_exec_info>: Declare.
5068 (tui_update_exec_info): Don't declare.
5069 * tui/tui-winsource.c (tui_update_source_window_as_is)
5070 (tui_source_window_base::refresh_all)
5071 (tui_update_all_breakpoint_info): Update.
5072 (tui_source_window_base::update_exec_info): Rename from
5073 tui_update_exec_info.
5074 * tui/tui-stack.c (tui_show_frame_info): Update.
5075
5076 2019-08-13 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-winsource.h (struct tui_source_window_base)
5079 <set_exec_info_content>: Declare.
5080 (tui_set_exec_info_content): Don't declare.
5081 * tui/tui-winsource.c
5082 (tui_source_window_base::set_exec_info_content): Rename from
5083 tui_set_exec_info_content.
5084 (tui_update_exec_info): Update.
5085
5086 2019-08-13 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-winsource.h (struct tui_source_window_base)
5089 <show_source_content>: Declare.
5090 (tui_show_source_content): Don't declare.
5091 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5092 (tui_source_window_base::show_source_content): Rename from
5093 tui_show_source_content.
5094 (tui_source_window_base::refresh_all): Update.
5095 * tui/tui-layout.c (show_source_disasm_command)
5096 (show_source_or_disasm_and_command): Update.
5097
5098 2019-08-13 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-winsource.c (tui_erase_source_content)
5101 (tui_show_source_content, tui_source_window_base::refresh_all):
5102 Update.
5103 * tui/tui-wingeneral.h
5104 (tui_check_and_display_highlight_if_needed): Don't declare.
5105 * tui/tui-wingeneral.c
5106 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5107 check_and_display_highlight_if_needed.
5108 * tui/tui-win.c (tui_rehighlight_all)
5109 (tui_win_info::make_visible_with_new_height): Update.
5110 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5111 (tui_data_window::erase_data_content)
5112 (tui_data_window::display_all_data): Update.
5113 * tui/tui-data.h (struct tui_win_info)
5114 <check_and_display_highlight_if_needed>: Declare.
5115
5116 2019-08-13 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-win.c (tui_resize_all): Call
5119 tui_delete_invisible_windows.
5120 * tui/tui-layout.c (show_layout): Call
5121 tui_delete_invisible_windows.
5122 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5123 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5124
5125 2019-08-13 Tom Tromey <tom@tromey.com>
5126
5127 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5128 tui_add_win_to_layout.
5129
5130 2019-08-13 Tom Tromey <tom@tromey.com>
5131
5132 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5133 * tui/tui-layout.c (tui_default_win_height): Now static.
5134
5135 2019-08-13 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5138 single switch.
5139 (show_source_disasm_command, show_source_or_disasm_and_command):
5140 Don't check current layout.
5141
5142 2019-08-13 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-wingeneral.c (make_all_visible): Remove.
5145 (tui_make_all_invisible): Simplify.
5146 * tui/tui-layout.c (tui_make_all_invisible): Move from
5147 tui-wingeneral.c; simplify.
5148 (show_layout): Hoist call to tui_make_all_invisible.
5149 (show_data): Don't call tui_make_all_invisible.
5150
5151 2019-08-13 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5154 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5155
5156 2019-08-13 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5159 tui-data.c.
5160 (show_source_disasm_command, show_data)
5161 (show_source_or_disasm_and_command): Don't use
5162 tui_set_current_layout_to.
5163 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5164 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5165 tui-layout.c.
5166 (tui_set_current_layout_to): Remove.
5167
5168 2019-08-13 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-layout.c (tui_set_layout): Update.
5171 * tui/tui-data.h (struct tui_layout_def): Remove.
5172 (tui_layout_def): Don't declare.
5173 * tui/tui-data.c (layout_def): Remove.
5174 (tui_layout_def): Remove.
5175
5176 2019-08-13 Tom Tromey <tom@tromey.com>
5177
5178 * tui/tui-winsource.h (struct tui_source_window_base)
5179 <clear_detail>: No longer "override".
5180 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5181 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5182 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5183 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5184 Remove.
5185 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5186
5187 2019-08-13 Tom Tromey <tromey@adacore.com>
5188
5189 * tracepoint.c: Don't include readline.h or history.h.
5190
5191 2019-08-12 Tom Tromey <tom@tromey.com>
5192
5193 * configure: Rebuild.
5194 * configure.ac: Check for readline 7.
5195 * NEWS: Mention readline 7 requirement.
5196 * README: Update.
5197
5198 2019-08-12 Tom Tromey <tom@tromey.com>
5199
5200 * mingw-hdep.c (gdb_select): Remove readline hack.
5201
5202 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5203
5204 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5205 when the function fails.
5206
5207 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5208
5209 * s390-tdep.c (s390_type_align): New function.
5210 (s390_gdbarch_init): Set it as type_align gdbarch method.
5211
5212 2019-08-09 Tom de Vries <tdevries@suse.de>
5213
5214 PR gdb/24591
5215 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5216 pc_low with relocation offset.
5217
5218 2019-08-07 Tom Tromey <tromey@adacore.com>
5219
5220 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5221 (print_frame_args): Update.
5222 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5223 Update.
5224 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5225 * frame.h (struct frame_arg): Add initializers.
5226 <error>: Now a unique_xmalloc_ptr.
5227
5228 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5229
5230 * NEWS: Expand the Pointer Authentication entry.
5231 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5232 (aarch64_frame_unmask_lr): ... to this.
5233 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5234 Call aarch64_frame_unmask_lr.
5235 * frame.c (struct frame_info): Add "masked" variable.
5236 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5237 (fprint_frame): Check for masked pc.
5238 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5239 declarations.
5240 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5241 * stack.c (print_frame): Check for masked pc.
5242
5243 2019-08-06 Tom Tromey <tom@tromey.com>
5244
5245 * stabsread.c (patch_block_stabs, read_one_struct_field)
5246 (read_enum_type): Use obstack_strndup.
5247 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5248 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5249 * dwarf2read.c (guess_full_die_structure_name)
5250 (anonymous_struct_prefix): Use obstack_strndup.
5251 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5252 * c-exp.y (yylex): Use obstack_strndup.
5253 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5254 (write_var_or_type): Use obstack_strndup.
5255
5256 2019-08-06 Tom Tromey <tom@tromey.com>
5257
5258 * symfile.c (reread_symbols): Use obstack_strdup.
5259 * stabsread.c (read_type): Use obstack_strdup.
5260 * gdb_obstack.h (obstack_strdup): New overload.
5261 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5262 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5263 (dwarf2_canonicalize_name): Use obstack_strdup.
5264 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5265 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5266 Use obstack_strdup.
5267
5268 2019-08-06 Tom Tromey <tom@tromey.com>
5269
5270 * gdb_obstack.h (obstack_strdup): Define.
5271 * gdb_obstack.c (obstack_strdup): Don't define.
5272
5273 2019-08-06 Tom Tromey <tom@tromey.com>
5274
5275 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5276 obstack_strdup.
5277 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5278 obstack_strdup.
5279 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5280 * stabsread.c (common_block_start): Use obstack_strdup.
5281 * objfiles.c (set_objfile_main_name, objfile): Use
5282 obstack_strdup.
5283 * namespace.c (add_using_directive): Use obstack_strdup.
5284 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5285 * jit.c (finalize_symtab): Use obstack_strdup.
5286 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5287 (guess_partial_die_structure_name, partial_die_info::fixup)
5288 (dwarf2_name): Use obstack_strdup.
5289 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5290 obstack_strdup.
5291 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5292 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5293 obstack_strdup.
5294 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5295
5296 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5297
5298 * unittests/help-doc-selftests.c: New file.
5299 * Makefile.in: Add the new file.
5300
5301 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5302
5303 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5304 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5305 the full first line, except when FOR_VALUE_PREFIX. In this case,
5306 the trailing '.' is not output, and the first character is uppercased.
5307 (print_help_for_command): Update call to print_doc_line.
5308 (print_doc_of_command): Likewise.
5309 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5310 * cli/cli-option.c (append_indented_doc): Do not append newline.
5311 (build_help_option): Append newline after first appended_indented_doc
5312 only if a second call is done.
5313 (build_help): Append 2 new lines before each option, except the first
5314 one.
5315 * compile/compile.c (_initialize_compile): Add new lines after
5316 %OPTIONS%, when not at the end of the help.
5317 Change help doc or code
5318 producing the help doc to respect the invariants.
5319 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5320 Also removed the new line after 'Options:', as all other commands
5321 do not put an empty line between 'Options:' and the first option.
5322 * printcmd.c (_initialize_printcmd): Likewise.
5323 * stack.c (_initialize_stack): Likewise.
5324 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5325 incorrectly telling COMMAND is optional.
5326 * ada-lang.c (_initialize_ada_language): Change help doc or code
5327 producing the help doc to respect the invariants.
5328 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5329 * breakpoint.c (_initialize_breakpoint): Likewise.
5330 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5331 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5332 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5333 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5334 _initialize_cli_style): Likewise.
5335 * corelow.c (core_target_info): Likewise.
5336 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5337 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5338 * filesystem.c (_initialize_filesystem): Likewise.
5339 * frame.c (_initialize_frame): Likewise.
5340 * gnu-nat.c (add_task_commands): Likewise.
5341 * infcall.c (_initialize_infcall): Likewise.
5342 * infcmd.c (_initialize_infcmd): Likewise.
5343 * interps.c (_initialize_interpreter): Likewise.
5344 * language.c (_initialize_language): Likewise.
5345 * linux-fork.c (_initialize_linux_fork): Likewise.
5346 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5347 * maint.c (_initialize_maint_cmds): Likewise.
5348 * memattr.c (_initialize_mem): Likewise.
5349 * printcmd.c (_initialize_printcmd): Likewise.
5350 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5351 _RegEx): Likewise.
5352 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5353 * record-btrace.c (_initialize_record_btrace): Likewise.
5354 * record-full.c (_initialize_record_full): Likewise.
5355 * record.c (_initialize_record): Likewise.
5356 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5357 * regcache.c (_initialize_regcache): Likewise.
5358 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5359 _initialize_remote): Likewise.
5360 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5361 * serial.c (_initialize_serial): Likewise.
5362 * skip.c (_initialize_step_skip): Likewise.
5363 * source.c (_initialize_source): Likewise.
5364 * stack.c (_initialize_stack): Likewise.
5365 * symfile.c (_initialize_symfile): Likewise.
5366 * symtab.c (_initialize_symtab): Likewise.
5367 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5368 * top.c (init_main): Likewise.
5369 * tracefile-tfile.c (tfile_target_info): Likewise.
5370 * tracepoint.c (_initialize_tracepoint): Likewise.
5371 * tui/tui-win.c (_initialize_tui_win): Likewise.
5372 * utils.c (add_internal_problem_command): Likewise.
5373 * valprint.c (value_print_option_defs): Likewise.
5374
5375 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5376
5377 PR build/24886
5378 * configure.ac: Drop enable-libmcheck support.
5379 * configure, config.in: Rebuild.
5380 * libmcheck.m4: Remove.
5381 * acinclude.m4: Don't include it.
5382 * Makefile.in: Don't distribute it.
5383 * top.c (print_gdb_configuration): Don't mention it.
5384
5385 2019-08-06 Tom Tromey <tom@tromey.com>
5386
5387 * utils.c (set_output_style): Sometimes pass stream to
5388 emit_style_escape.
5389 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5390 * record-btrace.c (btrace_insn_history): Update.
5391 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5392 method.
5393 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5394 Update initializers.
5395 <m_uiout>: New field.
5396 <m_di>: Move lower.
5397 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5398 Remove "uiout" parameter.
5399 (dump_insns): Update.
5400 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5401 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5402
5403 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5404
5405 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5406 (error_in_psymtab_expansion): Likewise.
5407 (lookup_symbol_via_quick_fns): Likewise.
5408 (basic_lookup_transparent_type_quick): Likewise.
5409 (basic_lookup_transparent_type_1): Likewise.
5410
5411 2019-08-06 Tom Tromey <tromey@adacore.com>
5412
5413 * source.c (last_source_error): Now bool.
5414 (print_source_lines_base): Make "noprint" bool. Only open
5415 source file when last_source_visited changes.
5416
5417 2019-08-06 Tom Tromey <tromey@adacore.com>
5418
5419 * annotate.c (annotate_source_line): Use g_source_cache.
5420 * source-cache.c (source_cache::get_plain_source_lines): Change
5421 parameters. Populate m_offset_cache.
5422 (source_cache::ensure): New method.
5423 (source_cache::get_line_charpos): New method.
5424 (extract_lines): Move lower. Change parameters.
5425 (source_cache::get_source_lines): Move lower.
5426 * source-cache.h (class source_cache): Update comment.
5427 <get_line_charpos>: New method.
5428 <get_source_lines>: Update comment.
5429 <clear>: Clear m_offset_cache.
5430 <get_plain_source_lines>: Change parameters.
5431 <ensure>: New method
5432 <m_offset_cache>: New member.
5433 * source.c (forget_cached_source_info_for_objfile): Update.
5434 (info_source_command): Use g_source_cache.
5435 (find_source_lines, open_source_file_with_line_charpos): Remove.
5436 (print_source_lines_base, search_command_helper): Use g_source_cache.
5437 * source.h (open_source_file_with_line_charpos): Don't declare.
5438 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5439 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5440 Use g_source_cache.
5441
5442 2019-08-06 Tom Tromey <tromey@adacore.com>
5443
5444 * source-cache.c (source_cache::get_plain_source_lines):
5445 Remove "first_line" and "last_line" parameters.
5446 (source_cache::get_source_lines): Cache plain text.
5447 * source-cache.h (class source_cache)
5448 <get_plain_source_lines>: Update.
5449
5450 2019-08-06 Tom Tromey <tromey@adacore.com>
5451
5452 * source-cache.c (extract_lines): No longer a method.
5453 Changed type of parameter. Include final newline.
5454 (selftests::extract_lines_test): New function.
5455 (_initialize_source_cache): Likewise.
5456 * source-cache.h (class source_cache)
5457 <extract_lines>: Don't declare.
5458
5459 2019-08-06 Tom Tromey <tromey@adacore.com>
5460
5461 * breakpoint.c (init_breakpoint_sal): Update.
5462 (breakpoint): Update.
5463 * breakpoint.h (struct breakpoint) <filter>: Now a
5464 unique_xmalloc_ptr.
5465
5466 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5467
5468 * NEWS: Mention dictionary access on blocks.
5469 * python/py-block.c (blpy_getitem): New function.
5470 (block_object_as_mapping): New struct.
5471 (block_object_type): Use new struct for tp_as_mapping field.
5472
5473 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5474
5475 * objfiles.h (objfile): Add a comment describing partial symbols.
5476
5477 2019-08-05 Tom Tromey <tromey@adacore.com>
5478
5479 * compile/compile.c (_initialize_compile): Use _(), not N_().
5480 * thread.c (_initialize_thread): Use _(), not N_().
5481 * stack.c (_initialize_stack): Use _(), not N_().
5482 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5483
5484 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5485
5486 * dwarf2read.c (struct dw2_symtab_iterator):
5487 <want_specific_block>: Remove.
5488 <block_index>: Change type to gdb::optional.
5489 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5490 change type of BLOCK_INDEX parameter to gdb::optional.
5491 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5492 (dw2_lookup_symbol): Don't pass argument for
5493 WANT_SPECIFIC_BLOCK.
5494 (dw2_expand_symtabs_for_function): Don't pass argument for
5495 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5496 (class dw2_debug_names_iterator)
5497 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5498 parameter, change BLOCK_INDEX type to gdb::optional.
5499 <m_want_specific_block>: Remove.
5500 <m_block_index>: Change type to gdb::optional.
5501 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5502 gdb::optional. Re-write in function of gdb::optional.
5503 (dw2_debug_names_lookup_symbol): Don't pass argument for
5504 WANT_SPECIFIC_BLOCK.
5505 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5506 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5507 BLOCK_INDEX.
5508
5509 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5510
5511 * NEWS: Mention changes to "info sources" command.
5512
5513 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5514
5515 * symtab.c (filename_partial_match_opts): New struct type.
5516 (struct output_source_filename_data): New members
5517 regexp, c_regexp, partial_match.
5518 (output_source_filename): Use new members to decide to print file.
5519 (info_sources_option_defs): New variable.
5520 (make_info_sources_options_def_group, print_info_sources_header,
5521 info_sources_command_completer):
5522 New functions.
5523 (info_sources_command): Read new optional arguments.
5524 (_initialize_symtab): Update info sources help.
5525
5526 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5527
5528 * ada-lang.c (exception_support_info_v0): Renamed from...
5529 (default_exception_support_info): ... this. Create new
5530 definition for v1.
5531 (ada_has_this_exception_support): Look up catch_handlers_sym.
5532 (ada_exception_support_info_sniffer): Try v0 after default.
5533
5534 2019-08-01 Tom Tromey <tromey@adacore.com>
5535
5536 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5537 gdbarch.h.
5538
5539 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5540
5541 * s12z-tdep.c: Fix include path for s12z-opc.h.
5542
5543 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5544
5545 * NEWS: Require GNU make 3.82.
5546
5547 2019-07-16 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5550 declare.
5551
5552 2019-07-30 Tom Tromey <tromey@adacore.com>
5553
5554 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5555
5556 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5557
5558 * printcmd.c (print_address_symbolic): Print negative offsets.
5559 (build_address_symbolic): Force signed arithmetic when computing
5560 offset.
5561
5562 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5563
5564 PR/24474: Add a function to lookup static variables.
5565 * NEWS: Mention this new function.
5566 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5567 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5568 * python/python.c (python_GdbMethods): Add new function.
5569
5570 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5571
5572 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5573 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5574 (objfpy_lookup_static_symbol): New function.
5575 (objfile_object_methods): Add new functions.
5576
5577 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578
5579 * NEWS: Mention 'set|show print frame-info'. Mention new
5580 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5581 backtrace argument. Mention that python frame filtering code
5582 is now consistent with what 'backtrace' command prints.
5583
5584 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5585
5586 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5587 comments.
5588 (print_frame_info_auto, print_frame_info_source_line,
5589 print_frame_info_location, print_frame_info_source_and_location,
5590 print_frame_info_location_and_address, print_frame_info_short_location):
5591 New declarations.
5592 (struct frame_print_options): New member print_frame_info.
5593 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5594 * stack.h (get_user_print_what_frame_info): New declaration.
5595 (frame_show_address): New declaration.
5596 * stack.c (print_frame_arguments_choices): New value 'presence'.
5597 (print_frame_info_auto, print_frame_info_source_line,
5598 print_frame_info_location, print_frame_info_source_and_location,
5599 print_frame_info_location_and_address, print_frame_info_short_location,
5600 print_frame_info_choices, print_frame_info_print_what): New definitions.
5601 (print_frame_args): Only print dots for args if print frame-arguments
5602 is 'presence'.
5603 (frame_print_option_defs): New element for "frame-info".
5604 (get_user_print_what_frame_info): New function.
5605 (frame_show_address): Make non static. Move comment to stack.h.
5606 (print_frame_info_to_print_what): New function.
5607 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5608 to decide what to print.
5609 (backtrace_command_1): Handle the new print_frame_arguments_presence
5610 value.
5611 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5612 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5613 (py_print_frame): In non-mi mode, use LOCATION as default for
5614 print_what, similarly to frame information printed directly by
5615 backtrace command. Handle frame-info user option in non MI mode.
5616
5617 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5618
5619 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5620 Add case for debugging 32-bit target on 64-bit host. Revise
5621 comment.
5622
5623 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5624
5625 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5626 instead of find_function_entry_range_from_pc.
5627
5628 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5629
5630 * stack.c (find_frame_funname): Remove code which preferred
5631 minsym over symtab sym in "certain pathological cases".
5632
5633 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5634 parameter. Change type of "do_demangle" to bool.
5635 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5636 Pass suitable "prefer_sym_over_minsym" flag to
5637 build_address_symbolic(). Don't output "+" for negative offsets.
5638 * printcmd.c (print_address_symbolic): Update invocation of
5639 build_address_symbolic to include a "prefer_sym_over_minsym"
5640 flag.
5641 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5642 Restrict cases in which use of minimal symbol is preferred to that
5643 of a found symbol. Update comments.
5644
5645 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5646 for entry pc when entry pc is out of range for that FDE.
5647
5648 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5649
5650 PR gdb/24839:
5651 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5652 type.
5653
5654 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5655
5656 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5657 this function's Python signature.
5658
5659
5660 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5661
5662 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5663 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5664 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5665 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5666 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5667
5668
5669 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5670
5671 * h8300-tdep.c (h8300_register_name_common): New.
5672 h8300_register_name): Use h8300_register_name_common.
5673 (h8300s_register_name): Likewise.
5674 (h8300sx_register_name): Likewise.
5675 (h8300h_register_nam): New.
5676 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5677
5678
5679 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5680
5681 * arm-tdep.c (arm_skip_cmse_entry): New function.
5682 (arm_is_sgstubs_section): New function.
5683 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5684
5685 2019-07-22 Tom Tromey <tom@tromey.com>
5686
5687 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5688 Don't self-assign.
5689
5690 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5691
5692 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5693 type_print.
5694
5695 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5696
5697 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5698 so that GDB doesn't match any msymbols when searching in the
5699 TYPES_DOMAIN.
5700 (print_symbol_info): Print using typedef_print or type_print based
5701 on the type of the symbol. Add updated FIXME comment moved from...
5702 (_initialize_symtab): ... move and update FIXME comment to above.
5703
5704 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * NEWS: Mention adding -q option to "info types".
5707 * symtab.c (struct info_types_options): New struct.
5708 (info_types_options_defs): New variable.
5709 (make_info_types_options_def_group): New function.
5710 (info_types_command): Use gdb::option framework to parse options.
5711 (info_types_command_completer): New function.
5712 (_initialize_symtab): Extend the help text on "info types" and
5713 register command completer.
5714
5715 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5716
5717 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5718 (lookup_symbol_in_objfile): Change int to block_enum and add a
5719 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5720
5721 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5722
5723 * MAINTAINERS (Write After Approval): Add self.
5724
5725 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5726
5727 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5728 instruction to the dummy code region.
5729
5730 2019-07-19 Tom Tromey <tromey@adacore.com>
5731
5732 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5733 (ARGSUSED, PARAMS, __func__): Remove rules.
5734
5735 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5736
5737 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5738 * features/arm/arm-with-iwmmxt.c: Remove.
5739 * features/arm/arm-with-iwmmxt.xml: Remove.
5740 * features/arm/arm-with-m-fpa-layout.c: Remove.
5741 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5742 * features/arm/arm-with-m-vfp-d16.c: Remove.
5743 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5744 * features/arm/arm-with-m.c: Remove.
5745 * features/arm/arm-with-m.xml: Remove.
5746 * features/arm/arm-with-neon.c: Remove.
5747 * features/arm/arm-with-neon.xml: Remove.
5748 * features/arm/arm-with-vfpv2.c: Remove.
5749 * features/arm/arm-with-vfpv2.xml: Remove.
5750 * features/arm/arm-with-vfpv3.c: Remove.
5751 * features/arm/arm-with-vfpv3.xml: Remove.
5752
5753 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5754
5755 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5756
5757 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5758
5759 * arch/aarch32.c (aarch32_create_target_description): Create
5760 target descriptions using features.
5761 * arch/arm.c (arm_create_target_description)
5762 (arm_create_mprofile_target_description): Likewise.
5763 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5764
5765 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5766
5767 * Makefile.in: Add new files.
5768 * aarch32-tdep.c: New file.
5769 * aarch32-tdep.h: New file.
5770 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5771 Call aarch32_read_description.
5772 * arch/aarch32.c: New file.
5773 * arch/aarch32.h: New file.
5774 * arch/arm.c (arm_create_target_description)
5775 (arm_create_mprofile_target_description): New function.
5776 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5777 (arm_create_target_description)
5778 (arm_create_mprofile_target_description): New declaration.
5779 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5780 read_description functions.
5781 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5782 Likewise.
5783 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5784 * arm-tdep.c (tdesc_arm_list): New variable.
5785 (arm_register_g_packet_guesses): Call create description functions.
5786 (arm_read_description) (arm_read_mprofile_description): New
5787 function.
5788 * arm-tdep.h (arm_read_description)
5789 (arm_read_mprofile_description): Add declaration.
5790 * configure.tgt: Add new files.
5791
5792 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5793
5794 * top.c (new_ui_command): Open specified terminal just once.
5795
5796 2019-07-18 Tom Tromey <tromey@adacore.com>
5797
5798 * symtab.c (main_name): Constify return type.
5799 * symfile.c (set_initial_language): Update.
5800 * symtab.h (main_name): Constify return type.
5801
5802 2019-07-17 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-winsource.c (tui_update_source_window)
5805 (tui_update_source_window_as_is)
5806 (tui_update_source_windows_with_line): Remove return.
5807 * tui/tui-disasm.c (tui_show_disassem)
5808 (tui_show_disassem_and_update_source): Remove return.
5809 * tui/tui.c (tui_reset): Remove return.
5810 * tui/tui-wingeneral.c
5811 (tui_check_and_display_highlight_if_needed): Remove return.
5812
5813 2019-07-17 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5816
5817 2019-07-17 Tom Tromey <tom@tromey.com>
5818
5819 * tui/tui-winsource.h (struct tui_exec_info_window)
5820 (struct tui_source_window_base): Move from tui-data.h.
5821 * tui/tui-winsource.c: Move many method definitions from
5822 elsewhere. Remove "structuring" comments.
5823 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5824 (tui_source_window_base::refresh_window): Move to
5825 tui-winsource.c.
5826 * tui/tui-win.c (tui_source_window_base::refresh_all)
5827 (tui_source_window_base::update_tab_width)
5828 (tui_source_window_base::set_new_height)
5829 (tui_source_window_base::do_make_visible_with_new_height): Move to
5830 tui-winsource.c.
5831 * tui/tui-source.h: Update.
5832 * tui/tui-source.c (tui_source_window_base::reset): Move to
5833 tui-winsource.c.
5834 * tui/tui-disasm.h: Update.
5835 * tui/tui-data.h (struct tui_exec_info_window): Move to
5836 tui-winsource.h.
5837 (struct tui_source_window_base): Likewise.
5838 * tui/tui-data.c (tui_source_window_base::clear_detail)
5839 (tui_source_window_base, ~tui_source_window_base): Move to
5840 tui-winsource.c.
5841
5842 2019-07-17 Tom Tromey <tom@tromey.com>
5843
5844 * tui/tui-win.c (tui_resize_all)
5845 (tui_source_window_base::update_tab_width)
5846 (tui_adjust_win_heights): Update.
5847 (tui_win_info::make_invisible_and_set_new_height): Rename from
5848 make_invisible_and_set_new_height.
5849 * tui/tui-data.h (struct tui_win_info)
5850 <make_invisible_and_set_new_height>: New method.
5851
5852 2019-07-17 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui.c: Update.
5855 * tui/tui-source.h (struct tui_source_window): Move from
5856 tui-data.h.
5857 * tui/tui-layout.c: Update.
5858 * tui/tui-disasm.c: Update.
5859 * tui/tui-data.h (struct tui_source_window): Move to
5860 tui-source.h.
5861
5862 2019-07-17 Tom Tromey <tom@tromey.com>
5863
5864 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5865 tui-data.h.
5866 * tui/tui-data.h (struct tui_disasm_window): Move to
5867 tui-disasm.h.
5868
5869 2019-07-17 Tom Tromey <tom@tromey.com>
5870
5871 * tui/tui-regs.h (struct tui_data_item_window): Move from
5872 tui-data.h.
5873 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5874 * tui/tui-data.h (struct tui_data_item_window): Move to
5875 tui-regs.h.
5876 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5877
5878 2019-07-17 Tom Tromey <tom@tromey.com>
5879
5880 * tui/tui.c: Update.
5881 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5882 (tui_cmd_window::max_height): Move to tui-command.c.
5883 * tui/tui-layout.c: Update.
5884 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5885 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5886 tui-command.c.
5887 * tui/tui-command.h (struct tui_cmd_window): Move from
5888 tui-data.h.
5889 * tui/tui-command.c: Remove "structuring" comments.
5890 (tui_cmd_window::clear_detail)
5891 (tui_cmd_window::do_make_visible_with_new_height)
5892 (tui_cmd_window::max_height): Move from elsewhere.
5893
5894 2019-07-17 Tom Tromey <tom@tromey.com>
5895
5896 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5897 Now static.
5898 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5899 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5900
5901 2019-07-17 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui.c: Update.
5904 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5905 tui-regs.c.
5906 * tui/tui-windata.h: Remove file.
5907 * tui/tui-windata.c: Remove file.
5908 * tui/tui-win.c (tui_data_window::set_new_height)
5909 (tui_data_window::do_make_visible_with_new_height): Move to
5910 tui-regs.c.
5911 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5912 * tui/tui-regs.c: Remove "structuring" comments.
5913 (tui_data_window::first_data_item_displayed)
5914 (tui_data_window::delete_data_content_windows)
5915 (tui_data_window::erase_data_content)
5916 (tui_data_window::display_all_data)
5917 (tui_data_window::refresh_all)
5918 (tui_data_window::do_scroll_vertical)
5919 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5920 (tui_data_window::do_make_visible_with_new_height)
5921 (tui_data_window::refresh_window): Move from elsewhere.
5922 (_initialize_tui_regs): Move to end of file.
5923 * tui/tui-layout.c: Update.
5924 * tui/tui-hooks.c: Update.
5925 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5926 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5927 tui-regs.c.
5928 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5929
5930 2019-07-17 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5933 seen.
5934
5935 2019-07-17 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-win.c (tui_source_window_base::set_new_height)
5938 (tui_source_window_base::do_make_visible_with_new_height): Use
5939 m_has_locator field directly.
5940 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5941 method.
5942 (struct tui_source_window_base) <has_locator>: Likewise.
5943
5944 2019-07-17 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5947 Don't declare.
5948 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5949 Remove.
5950 * tui/tui-win.c (tui_source_window_base::set_new_height)
5951 (tui_source_window_base::set_new_height)
5952 (make_invisible_and_set_new_height)
5953 (tui_source_window_base::do_make_visible_with_new_height)
5954 (tui_source_window_base::do_make_visible_with_new_height):
5955 Update.
5956 * tui/tui-layout.c (show_source_disasm_command, show_data)
5957 (show_source_or_disasm_and_command): Update.
5958 * tui/tui-layout.c (show_layout): Update.
5959
5960 2019-07-17 Tom Tromey <tom@tromey.com>
5961
5962 * tui/tui-layout.c (make_data_window): Remove.
5963 (show_data): Unify creation and re-initialization cases.
5964
5965 2019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-layout.c (make_source_window, make_disasm_window):
5968 Remove.
5969 (show_data): Unify creation and re-initialization cases.
5970
5971 2019-07-17 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-layout.c (make_command_window): Remove.
5974 (show_source_disasm_command, show_source_or_disasm_and_command):
5975 Unify creation and re-initialization cases.
5976
5977 2019-07-17 Tom Tromey <tom@tromey.com>
5978
5979 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5980 creation and re-initialization cases.
5981
5982 2019-07-17 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-regs.c (tui_get_register): Return void.
5985
5986 2019-07-17 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5989 Simplify.
5990
5991 2019-07-17 Tom Tromey <tom@tromey.com>
5992
5993 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5994 resetting.
5995
5996 2019-07-17 Tom Tromey <tom@tromey.com>
5997
5998 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5999 * tui/tui-regs.c (tui_reg_layout): New function.
6000 (tui_show_registers, tui_reg_command): Use it.
6001 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6002 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6003 parameters.
6004 (tui_layout_command): Remove.
6005
6006 2019-07-17 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-layout.h (tui/tui-layout): Return void.
6009 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6010
6011 2019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-layout.c (show_source_disasm_command, show_data):
6014 Update.
6015 (reset_locator): Remove.
6016 (show_source_or_disasm_and_command): Update.
6017
6018 2019-07-17 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-source.c (tui_source_window_base::reset): Remove
6021 win_type parameter.
6022 * tui/tui-layout.c (make_command_window, make_source_window)
6023 (make_disasm_window, make_data_window)
6024 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6025 (reset_locator, show_source_or_disasm_and_command): Update.
6026 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6027 win_type parameter.
6028 (struct tui_source_window_base) <reset>: Likewise.
6029
6030 2019-07-17 Tom Tromey <tom@tromey.com>
6031
6032 * tui/tui-layout.c (show_source_disasm_command): Use
6033 reset_locator.
6034 (reset_locator): New function.
6035 (init_and_make_win): Remove.
6036 (show_source_or_disasm_and_command): Use reset_locator.
6037
6038 2019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6041 condition.
6042 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6043 Remove condition.
6044 * tui/tui-source.c (tui_source_window_base::reset): New method.
6045 * tui/tui-layout.c (make_command_window): Don't call
6046 init_and_make_win.
6047 (make_source_window, make_disasm_window): Don't call
6048 make_source_or_disasm_window.
6049 (make_data_window): Don't call init_and_make_win. Change calling
6050 convention.
6051 (show_source_disasm_command, show_data): Simplify.
6052 (make_source_or_disasm_window): Remove.
6053 (show_source_or_disasm_and_command): Simplify.
6054 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6055 (struct tui_source_window_base) <reset>: Likewise.
6056 <execution_info>: Remove initializer.
6057 * tui/tui-data.c (tui_source_window_base): Initialize
6058 execution_info.
6059
6060 2019-07-17 Tom Tromey <tom@tromey.com>
6061
6062 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6063 variable.
6064
6065 2019-07-17 Tom Tromey <tom@tromey.com>
6066
6067 * tui/tui.c (tui_rl_other_window): Update.
6068 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6069 superclass method first. Always iterate over regs_content.
6070 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6071 method.
6072 * tui/tui-win.c (tui_set_focus_command): Update.
6073
6074 2019-07-17 Tom Tromey <tom@tromey.com>
6075
6076 * tui/tui-win.c (tui_set_focus_command): Rename from
6077 tui_set_focus. Call tui_enable.
6078 (tui_set_focus_command): Remove.
6079
6080 2019-07-17 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6083 refresh_window.
6084 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6085 touchwin.
6086 (tui_data_window::refresh_window): Call refresh_window on data
6087 items. Always call superclass refresh_window.
6088 (tui_win_info::refresh): Remove.
6089 (tui_source_window_base::refresh_window): Update.
6090 (tui_refresh_all): Update.
6091 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6092 refresh_window.
6093 (show_source_or_disasm_and_command): Likewise.
6094 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6095 (struct tui_source_window_base) <refresh>: Likewise.
6096
6097 2019-07-17 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-winsource.c (tui_clear_source_content)
6100 (tui_show_source_content): Update.
6101 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6102 whether content is empty.
6103 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6104 Remove.
6105
6106 2019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6109 window's contents.
6110 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6111 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6112
6113 2019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6116 (struct tui_data_item_window): Update.
6117
6118 2019-07-17 Tom Tromey <tom@tromey.com>
6119
6120 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6121 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6122 defines.
6123
6124 2019-07-17 Tom Tromey <tom@tromey.com>
6125
6126 * tui/tui-winsource.h (tui_erase_source_content)
6127 (tui_clear_source_content): Remove "display_prompt" parameter.
6128 * tui/tui-winsource.c (tui_update_source_window_as_is)
6129 (tui_update_source_windows_with_addr): Update.
6130 (tui_clear_source_content): Remove "display_prompt" parameter.
6131 (tui_erase_source_content): Likewise. Simplify.
6132 (tui_show_source_content): Update.
6133 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6134 * tui/tui-stack.c (tui_show_frame_info): Update.
6135 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6136 Remove defines.
6137
6138 2019-07-17 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6141 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6142 parameter.
6143 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6144 parameter.
6145
6146 2019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-winsource.c (tui_clear_source_content)
6149 (tui_show_source_content, tui_show_exec_info_content)
6150 (tui_clear_exec_info_content): Update.
6151 * tui/tui-stack.c (tui_show_locator_content): Update.
6152 (tui_show_frame_info): Update.
6153 * tui/tui-source.h (tui_source_window): Don't declare.
6154 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6155 from tui_source_is_displayed.
6156 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6157 Remove field.
6158 (struct tui_source_window_base) <content_in_use>: New field. Now
6159 bool.
6160 (struct tui_source_window) <showing_source_p>: New method.
6161 (TUI_SRC_WIN): Change cast.
6162 * tui/tui-data.c (tui_initialize_static_data): Update.
6163
6164 2019-07-17 Tom Tromey <tom@tromey.com>
6165
6166 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6167 location_matches_p.
6168 * tui/tui-source.c (tui_source_window::location_matches_p): New
6169 method.
6170 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6171 method.
6172 * tui/tui-data.h (struct tui_source_window_base)
6173 <location_matches_p>: New method.
6174 (struct tui_source_window, struct tui_disasm_window)
6175 <location_matches_p>: Likewise.
6176
6177 2019-07-17 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-win.c (tui_set_win_height_command): Rename from
6180 tui_set_win_height.
6181 (tui_set_win_height_command): Remove.
6182
6183 2019-07-17 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-source.c (tui_source_window): New constructor. Add
6186 observer.
6187 (~tui_source_window): New destructor.
6188 (tui_source_window::style_changed): New method.
6189 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6190 (tui_attach_detach_observers): Update.
6191 * tui/tui-data.h (struct tui_source_window): Make constructor not
6192 inline. Add destructor.
6193 (struct tui_source_window) <style_changed>: New method.
6194 <m_observable>: New member.
6195
6196 2019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6199 * tui/tui-win.c (tui_resize_all): Fix typo.
6200
6201 2019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6204 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6205 (tui_refresh_all): Remove "list" parameter. Use foreach.
6206 * tui/tui-win.c (window_name_completer): Use foreach.
6207 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6208 (update_tab_width): Likewise.
6209 * tui/tui-layout.c (show_layout): Update.
6210 * tui/tui-data.h (class tui_window_iterator): New.
6211 (struct all_tui_windows): New.
6212 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6213
6214 2019-07-17 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6217 parameter. Don't reference globals.
6218 (tui_reg_command): Update.
6219
6220 2019-07-17 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-regs.c (tui_show_registers): Simplify.
6223
6224 2019-07-17 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-regs.c (tui_show_registers): Update.
6227 (tui_show_register_group): Add win_info parameter.
6228
6229 2019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6232 Rename from tui_display_reg_element_at_line.
6233 (tui_data_window::display_registers_from_line): Update.
6234 * tui/tui-data.h (struct tui_data_window)
6235 <display_reg_element_at_line>: New method.
6236
6237 2019-07-17 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-regs.h (tui_display_registers_from)
6240 (tui_display_registers_from_line): Don't declare.
6241 * tui/tui-windata.c (tui_data_window::display_all_data)
6242 (tui_data_window::refresh_all)
6243 (tui_data_window::do_scroll_vertical): Update.
6244 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6245 from tui_display_registers_from.
6246 (tui_display_reg_element_at_line): Update.
6247 (tui_data_window::display_registers_from_line): Rename from
6248 tui_display_registers_from_line.
6249 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6250 display_registers_from_line>: New methods.
6251
6252 2019-07-17 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6255 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6256 from tui_erase_data_content.
6257 (tui_data_window::display_all_data)
6258 (tui_data_window::refresh_all)
6259 (tui_data_window::do_scroll_vertical): Update.
6260 * tui/tui-regs.c (tui_show_registers): Update.
6261 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6262 New method.
6263
6264 2019-07-17 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6267 declare.
6268 * tui/tui-windata.c
6269 (tui_data_window::delete_data_content_windows): Rename from
6270 tui_delete_data_content_windows.
6271 (tui_data_window::display_all_data)
6272 (tui_data_window::do_scroll_vertical): Update.
6273 * tui/tui-data.h (struct tui_data_window)
6274 <delete_data_content_windows>: New method.
6275
6276 2019-07-17 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6279 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6280
6281 2019-07-17 Tom Tromey <tom@tromey.com>
6282
6283 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6284 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6285 from tui_display_all_data.
6286 * tui/tui-win.c
6287 (tui_data_window::do_make_visible_with_new_height): Update.
6288 * tui/tui-regs.c (tui_show_registers): Update.
6289 * tui/tui-layout.c (tui_set_layout): Update.
6290 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6291 method.
6292
6293 2019-07-17 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6296 * tui/tui-windata.c (tui_display_data_from): Remove.
6297 (tui_data_window::refresh_all): Update.
6298
6299 2019-07-17 Tom Tromey <tom@tromey.com>
6300
6301 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6302 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6303 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6304 tui_display_registers_from_line.
6305 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6306 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6307 "force_display" parameter.
6308
6309 2019-07-17 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6312 declare.
6313 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6314 Rename from tui_first_reg_element_no_inline.
6315 (tui_display_reg_element_at_line)
6316 (tui_display_registers_from_line): Update.
6317 * tui/tui-data.h (struct tui_data_window)
6318 <first_reg_element_no_inline>: New method.
6319
6320 2019-07-17 Tom Tromey <tom@tromey.com>
6321
6322 * tui/tui-windata.c (tui_display_data_from)
6323 (tui_data_window::do_scroll_vertical): Update.
6324 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6325 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6326 Rename from tui_line_from_reg_element_no.
6327 (tui_display_registers_from_line): Update.
6328 * tui/tui-data.h (struct tui_data_window)
6329 <line_from_reg_element_no>: New method.
6330
6331 2019-07-17 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6334 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6335 tui_last_regs_line_no.
6336 (tui_display_reg_element_at_line)
6337 (tui_display_registers_from_line): Update.
6338 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6339 method.
6340
6341 2019-07-17 Tom Tromey <tom@tromey.com>
6342
6343 PR tui/24722:
6344 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6345 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6346 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6347 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6348 (tui_update_breakpoint_info): Likewise.
6349 * tui/tui-hooks.c (tui_event_create_breakpoint)
6350 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6351 Update.
6352
6353 2019-07-17 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6356
6357 2019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-winsource.c (tui_update_source_window_as_is)
6360 (tui_update_source_windows_with_addr): Update.
6361 * tui/tui-source.h (tui_set_source_content)
6362 (tui_show_symtab_source): Add "win_info" parameter.
6363 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6364 parameter.
6365 (tui_show_symtab_source): Likewise.
6366
6367 2019-07-17 Tom Tromey <tom@tromey.com>
6368
6369 * tui/tui-wingeneral.c
6370 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6371
6372 2019-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6375 (struct tui_cmd_window) <can_scroll>: New method.
6376 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6377 method.
6378
6379 2019-07-17 Tom Tromey <tromey@adacore.com>
6380
6381 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6382 do_field_signed>: Rename. Change type of "value".
6383 * ui-out.c (ui_out::field_signed): Rename from field_int.
6384 Change type of "value".
6385 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6386 type of "value".
6387 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6388 do_field_int. Change type of "value".
6389 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6390 do_field_int. Change type of "value".
6391 * tracepoint.c (trace_status_mi, tfind_1)
6392 (print_one_static_tracepoint_marker): Update.
6393 * thread.c (print_thread_info_1, print_selected_thread_frame):
6394 Update.
6395 * stack.c (print_frame, print_frame_info): Update.
6396 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6397 Update.
6398 * source.c (print_source_lines_base): Update.
6399 * skip.c (info_skip_command): Update.
6400 * record-btrace.c (btrace_ui_out_decode_error)
6401 (btrace_call_history_src_line): Update.
6402 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6403 Update.
6404 * progspace.c (print_program_space): Update.
6405 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6406 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6407 do_field_int. Change type of "value".
6408 * mi/mi-out.c (mi_ui_out::do_table_begin)
6409 (mi_ui_out::do_table_header): Update.
6410 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6411 type of "value".
6412 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6413 (mi_cmd_data_list_changed_registers, output_register)
6414 (mi_cmd_data_read_memory, mi_load_progress)
6415 (mi_cmd_trace_frame_collected): Update.
6416 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6417 Update.
6418 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6419 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6420 (mi_cmd_var_list_children, varobj_update_one): Update.
6421 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6422 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6423 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6424 * inferior.c (print_inferior): Update.
6425 * gdb_bfd.c (print_one_bfd): Update.
6426 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6427 Update.
6428 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6429 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6430 do_field_int. Change type of "value".
6431 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6432 do_field_int. Change type of "value".
6433 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6434 (print_one_breakpoint_location, print_it_catch_fork)
6435 (print_one_catch_fork, print_it_catch_vfork)
6436 (print_one_catch_vfork, print_it_catch_solib)
6437 (print_it_catch_exec, print_it_ranged_breakpoint)
6438 (print_mention_watchpoint, print_mention_masked_watchpoint)
6439 (bkpt_print_it, update_static_tracepoint): Update.
6440 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6441 * break-catch-syscall.c (print_it_catch_syscall): Update.
6442 * ada-tasks.c (print_ada_task_info): Update.
6443 * ada-lang.c (print_it_exception, print_mention_exception):
6444 Update.
6445
6446 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6447
6448 PR breakpoints/24541
6449 * gdbarch.c: Regenerate.
6450 * gdbarch.h: Regenerate.
6451 * gdbarch.sh: Adjust return type and parameter types for
6452 'stap_adjust_register'.
6453 (i386_stap_adjust_register): Adjust signature and return new
6454 register name.
6455 * stap-probe.c (stap_parse_register_operand): Adjust use of
6456 'gdbarch_stap_adjust_register'.
6457
6458 2019-07-17 Tom Tromey <tromey@adacore.com>
6459
6460 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6461 declare VEC.
6462 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6463 std::vector.
6464 (struct s390_process_info): Add initializers.
6465 (s390_add_process): Use new.
6466 (s390_linux_nat_target::low_forget_process): Use delete.
6467 (s390_linux_nat_target::low_new_fork)
6468 (s390_linux_nat_target::stopped_by_watchpoint)
6469 (s390_linux_nat_target::low_prepare_to_resume)
6470 (s390_linux_nat_target::insert_watchpoint)
6471 (s390_linux_nat_target::insert_hw_breakpoint)
6472 (s390_linux_nat_target::remove_watchpoint)
6473 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6474
6475 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6476
6477 * aarch64-fbsd-nat.c: Include regcache.h.
6478 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6479 argument.
6480 (aarch64_fbsd_nat_target::fetch_registers)
6481 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6482 variable.
6483 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6484
6485 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6486
6487 * fbsd-nat.c: Include gdbarch.h.
6488
6489 2019-07-15 Tom Tromey <tromey@adacore.com>
6490
6491 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6492
6493 2019-07-15 Tom Tromey <tromey@adacore.com>
6494
6495 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6496 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6497 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6498 * cli-out.c (cli_ui_out::do_field_int): New method.
6499 * ui-out.c (ui_out::field_unsigned): New method.
6500 * symfile.c (generic_load): Use field_unsigned.
6501 (print_transfer_performance): Likewise.
6502 * record-btrace.c (ui_out_field_uint): Remove.
6503 (btrace_call_history_insn_range, btrace_call_history): Use
6504 field_unsigned.
6505 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6506 field_unsigned.
6507 * ui-out.h (class ui_out) <field_unsigned>: New method.
6508 <do_field_unsigned>: Likewise.
6509
6510 2019-07-15 Tom Tromey <tromey@adacore.com>
6511
6512 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6513 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6514 * target.c (flash_erase_command): Use field_string.
6515 * infrun.c (print_signal_received_reason): Use field_string.
6516 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6517 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6518 field_string.
6519 * ada-tasks.c (print_ada_task_info): Use field_string.
6520
6521 2019-07-15 Tom Tromey <tromey@adacore.com>
6522
6523 * target.c (flash_erase_command): Use field_core_addr.
6524 * symfile.c (generic_load): Use field_core_addr.
6525 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6526 Use field_core_addr.
6527 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6528 field_core_addr.
6529
6530 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6531
6532 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6533 value if its desired type is smaller than a CORE_ADDR and signed.
6534
6535 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6536
6537 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6538 of changes to field names, and use new is_reference field to
6539 decide if a property is a reference or not.
6540 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6541 field.
6542 (struct dwarf2_property_baton): Update header comment, rename
6543 'referenced_type' to 'property_type' and update comments.
6544 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6545 default property type, store in property baton, update to take
6546 accound of renamed field.
6547 (read_func_scope): Update call to attr_to_dynamic_prop.
6548 (read_array_type): Likewise.
6549 (dwarf2_per_cu_addr_sized_int_type): New function.
6550 (read_subrange_index_type): Move type finding code to
6551 dwarf2_per_cu_addr_sized_int_type.
6552 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6553 (dwarf2_per_cu_addr_type): New function.
6554 (set_die_type): Update calls to attr_to_dynamic_prop.
6555
6556 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * dwarf2read.c (read_subrange_index_type): New function.
6559 (read_subrange_type): Move code into new function and call it.
6560 * gdbtypes.c (create_range_type): Add some asserts.
6561
6562 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6565 update return statements.
6566 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6567 declaration, and update comment to match.
6568 * gdbtypes.c (resolve_dynamic_array): Update call to
6569 dwarf2_evaluate_property to match new return type.
6570
6571 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * valarith.c (value_subscripted_rvalue): Change lowerbound
6574 parameter type from int to LONGEST.
6575 * value.h (value_subscripted_rvalue): Likewise in declaration.
6576
6577 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 * cli/cli-utils.c (info_print_command_completer): New function.
6580 * cli/cli-utils.h: Add 'completer.h' include, and forward
6581 declaration for 'struct cmd_list_element'.
6582 (info_print_command_completer): Declare.
6583 * stack.c (_initialize_stack): Add completer for 'info locals' and
6584 'info args'.
6585 * symtab.c (_initialize_symtab): Add completer for 'info
6586 variables' and 'info functions'.
6587 * NEWS: Mention completion for additional info commands.
6588
6589 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * cli/cli-utils.c (extract_info_print_args): Delete.
6592 (extract_arg_maybe_quoted): Delete.
6593 (info_print_options_defs): New variable.
6594 (make_info_print_options_def_group): New function.
6595 (extract_info_print_options): Define new function.
6596 * cli/cli-utils.h (extract_info_print_args): Delete.
6597 (struct info_print_options): New structure.
6598 (extract_info_print_options): Declare new function.
6599 * stack.c (info_locals_command): Update to use new
6600 extract_info_print_options, also add a header comment.
6601 (info_args_command): Likewise.
6602 * symtab.c (info_variables_command): Likewise.
6603 (info_functions_command): Likewise.
6604
6605 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6606
6607 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6608 to extract string arguments.
6609 * common/common-utils.c (extract_string_maybe_quoted): New function.
6610 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6611
6612 2019-07-11 Tom Tromey <tromey@adacore.com>
6613
6614 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6615 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6616 * top.h (gdbinit): Don't declare.
6617 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6618 into...
6619 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6620 * top.c (gdb_init): Don't call init_cli_cmds.
6621 (gdbinit): Remove.
6622 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6623
6624 2019-07-11 Tom Tromey <tromey@adacore.com>
6625
6626 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6627 after it has been moved.
6628
6629 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6630
6631 * valops.c (value_must_coerce_to_target): Change return type to
6632 bool.
6633 * value.h (value_must_coerce_to_target): Likewise.
6634
6635 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * breakpoint.c (is_hardware_watchpoint): Remove
6638 forward-declaration.
6639 (is_masked_watchpoint): Change return type to bool.
6640 (is_tracepoint): Likewise.
6641 (is_breakpoint): Likewise.
6642 (is_hardware_watchpoint): Likewise.
6643 (is_watchpoint): Likewise.
6644 (is_no_memory_software_watchpoint): Likewise.
6645 (is_catchpoint): Likewise.
6646 (breakpoint_1): Make FILTER parameter's return type bool.
6647 is_masked_watchpoint): Change return type to bool.
6648 (save_breakpoints): Make FILTER parameter's return type bool.
6649 * breakpoint.h (is_breakpoint): Change return type to bool.
6650 (is_watchpoint): Likewise.
6651 (is_catchpoint): Likewise.
6652 (is_tracepoint): Likewise.
6653
6654 2019-07-10 Tom Tromey <tom@tromey.com>
6655
6656 * defs.h: Don't include gdbarch.h.
6657 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6658 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6659 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6660 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6661 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6662 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6663 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6664 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6665 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6666 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6667 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6668 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6669 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6670 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6671 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6672 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6673 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6674 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6675 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6676 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6677 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6678 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6679 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6680 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6681 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6682 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6683 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6684
6685 2019-07-10 Tom Tromey <tromey@adacore.com>
6686
6687 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6688 * breakpoint.c (init_ada_exception_breakpoint): Register as
6689 bp_catchpoint.
6690 (print_one_breakpoint_location, print_one_breakpoint): Use
6691 is_ada_exception_catchpoint.
6692 * ada-lang.c (class ada_catchpoint_location): Pass
6693 bp_loc_software_breakpoint to bp_location constructor.
6694 (is_ada_exception_catchpoint): New function.
6695
6696 2019-07-10 Tom Tromey <tromey@adacore.com>
6697
6698 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6699 VEC.
6700 (struct arm_exidx_entry): New method operator<.
6701 (struct arm_exidx_data) <section_maps>: Change type.
6702 (arm_exidx_data_free): Remove.
6703 (arm_exidx_data_key): Change type. Move lower.
6704 (arm_exidx_new_objfile): Update.
6705 (arm_compare_exidx_entries): Remove.
6706 (arm_find_exidx_entry, _initialize_arm_tdep)
6707
6708 2019-07-10 Tom Tromey <tromey@adacore.com>
6709
6710 * solib-spu.c (ocl_program_data_key): Change type.
6711 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6712 Update.
6713
6714 2019-07-10 Tom Tromey <tromey@adacore.com>
6715
6716 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6717 (struct solib_aix_inferior_data) <library_list>: Change type.
6718 (solib_aix_inferior_data_handle): Change type.
6719 (get_solib_aix_inferior_data): Update.
6720 (solib_aix_free_library_list): Remove.
6721 (library_list_start_library): Update.
6722 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6723 return type.
6724 (solib_aix_get_library_list)
6725 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6726 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6727
6728 2019-07-10 Tom Tromey <tromey@adacore.com>
6729
6730 * solib-dsbt.c (struct dsbt_info): Add initializers.
6731 (solib_dsbt_pspace_data): Change type.
6732 (dsbt_pspace_data_cleanup): Remove.
6733 (get_dsbt_info, _initialize_dsbt_solib): Update.
6734
6735 2019-07-10 Tom Tromey <tromey@adacore.com>
6736
6737 * spu-tdep.c (spu_overlay_data): Change type.
6738 (spu_get_overlay_table, spu_overlay_new_objfile)
6739 (_initialize_spu_tdep): Update.
6740
6741 2019-07-10 Tom Tromey <tromey@adacore.com>
6742
6743 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6744 destructor.
6745 (dbx_objfile_data_key): Change type and declare later.
6746 (DBX_SYMFILE_INFO): Rewrite.
6747 * dbxread.c (dbx_objfile_data_key): Change type.
6748 (dbx_symfile_init): Update.
6749 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6750 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6751 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6752
6753 2019-07-10 Tom Tromey <tromey@adacore.com>
6754
6755 * jit.c (jit_program_space_key): Change type. Move lower.
6756 (get_jit_program_space_data): Update.
6757 (jit_program_space_data_cleanup): Remove.
6758 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6759 Update.
6760 (struct jit_program_space_data): Add initializers.
6761
6762 2019-07-10 Tom Tromey <tromey@adacore.com>
6763
6764 * solib-darwin.c (struct darwin_info): Add initializers.
6765 (solib_darwin_pspace_data): Change type.
6766 (darwin_pspace_data_cleanup): Remove.
6767 (get_darwin_info, _initialize_darwin_solib): Update.
6768
6769 2019-07-10 Tom Tromey <tromey@adacore.com>
6770
6771 * remote-sim.c (struct sim_inferior_data): Add initializers,
6772 constructor, and destructor.
6773 (sim_inferior_data_key): Change type. Move lower.
6774 (check_for_duplicate_sim_descriptor): Update.
6775 (get_sim_inferior_data): Use new. Update.
6776 (~sim_inferior_data_cleanup): Rename from
6777 sim_inferior_data_cleanup. Simplify.
6778 (gdbsim_close_inferior, simulator_command)
6779 (sim_command_completer, _initialize_remote_sim): Update.
6780 (next_pid, INITIAL_PID): Move earlier.
6781
6782 2019-07-10 Tom Tromey <tromey@adacore.com>
6783
6784 * python/python-internal.h (create_thread_object): Return
6785 gdbpy_ref.
6786 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6787 * python/py-inferior.c (struct threadlist_entry): Add
6788 constructor.
6789 <thread_obj>: Now a gdbpy_ref.
6790 (thread_to_thread_object): Update.
6791 (add_thread_object): Use new.
6792 (delete_thread_object): Use delete.
6793 (infpy_threads): Update.
6794 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6795 GIL.
6796
6797 2019-07-10 Tom Tromey <tromey@adacore.com>
6798
6799 * valops.c (value_cast): Specialize error message for Ada.
6800
6801 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6804
6805 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6808 bpstat_should_step): Return bool, adjust comments.
6809 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6810 bpstat_should_step): Likewise.
6811
6812 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6813
6814 * features/Makefile: Use feature target descriptions for Arm.
6815 * features/arm/arm-core.c: Generate new file.
6816 * features/arm/arm-fpa.c: Likewise.
6817 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6818 * features/arm/arm-m-profile.c: Likewise.
6819 * features/arm/arm-vfpv2.c: Likewise.
6820 * features/arm/arm-vfpv3.c: Likewise.
6821 * features/arm/xscale-iwmmxt.c: Likewise.
6822 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6823
6824 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6825
6826 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6827 ptrace earlier.
6828
6829 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6830
6831 * features/aarch64-pauth.c: Regenerate.
6832
6833 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6836 bool.
6837 (bpstat_what): Use false instead of 0.
6838
6839 2019-07-09 Pedro Alves <palves@redhat.com>
6840
6841 * break-catch-throw.c (is_exception_catchpoint): New.
6842 * breakpoint.c (print_one_breakpoint_location): New parameter
6843 'raw_loc'. Handle it. Use
6844 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6845 looking at the breakpoint's type.
6846 (print_one_breakpoint): If handling "maint info breakpoints", also
6847 print locations of exception catchpoints.
6848 * breakpoint.h (is_exception_catchpoint): Declare.
6849
6850 2019-07-09 Pedro Alves <palves@redhat.com>
6851
6852 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6853 "addr" field.
6854 (allocate_location_exception_catchpoint): New.
6855 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6856 (initialize_throw_catchpoint_ops): Install
6857 allocate_location_exception_catchpoint as allocate_location
6858 method.
6859 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6860 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6861 bp_loc_other.
6862 (breakpoint_address_is_meaningful): Delete.
6863 (bl_address_is_meaningful): New.
6864 (breakpoint_locations_match): Adjust comment.
6865 (bp_location_from_bp_type): New, factored out of...
6866 (bp_location::bp_location(breakpoint *)): ... this.
6867 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6868 factored out of...
6869 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6870 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6871 breakpoint_address_is_meaningful.
6872 (bp_locations_compare): Adjust comment.
6873 (update_global_location_list): Use bl_address_is_meaningful
6874 instead of breakpoint_address_is_meaningful.
6875 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6876 explicit.
6877 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6878 * python/py-breakpoint.c (bppy_get_location): No longer check
6879 whether location is null.
6880
6881 2019-07-09 Pedro Alves <palves@redhat.com>
6882
6883 PR c++/15468
6884 * breakpoint.c (print_one_breakpoint_location): Remove
6885 single-location assert.
6886
6887 2019-07-09 Tom Tromey <tom@tromey.com>
6888
6889 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6890 * configure: Rebuild.
6891 * configure.ac: Change common to gdbsupport.
6892 * gdbsupport: Rename from common.
6893 * acinclude.m4: Change common to gdbsupport.
6894 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6895 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6896 gdbsupport.
6897 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6898 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6899 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6900 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6901 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6902 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6903 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6904 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6905 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6906 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6907 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6908 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6909 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6910 coff-pe-read.c, command.h, compile/compile-c-support.c,
6911 compile/compile-c.h, compile/compile-cplus-symbols.c,
6912 compile/compile-cplus-types.c, compile/compile-cplus.h,
6913 compile/compile-loc2c.c, compile/compile.c, completer.c,
6914 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6915 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6916 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6917 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6918 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6919 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6920 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6921 features/aarch64-core.c, features/aarch64-fpu.c,
6922 features/aarch64-pauth.c, features/aarch64-sve.c,
6923 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6924 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6925 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6926 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6927 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6928 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6929 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6930 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6931 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6932 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6933 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6934 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6935 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6936 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6937 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6938 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6939 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6940 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6941 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6942 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6943 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6944 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6945 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6946 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6947 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6948 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6949 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6950 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6951 minsyms.c, mips-linux-tdep.c, namespace.h,
6952 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6953 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6954 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6955 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6956 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6957 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6958 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6959 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6960 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6961 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6962 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6963 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6964 procfs.c, producer.c, progspace.h, psymtab.h,
6965 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6966 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6967 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6968 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6969 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6970 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6971 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6972 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6973 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6974 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6975 target-memory.c, target.c, target.h, target/waitstatus.c,
6976 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6977 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6978 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6979 unittests/array-view-selftests.c,
6980 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6981 unittests/common-utils-selftests.c,
6982 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6983 unittests/format_pieces-selftests.c,
6984 unittests/function-view-selftests.c,
6985 unittests/lookup_name_info-selftests.c,
6986 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6987 unittests/mkdir-recursive-selftests.c,
6988 unittests/observable-selftests.c,
6989 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6990 unittests/parse-connection-spec-selftests.c,
6991 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6992 unittests/scoped_fd-selftests.c,
6993 unittests/scoped_mmap-selftests.c,
6994 unittests/scoped_restore-selftests.c,
6995 unittests/string_view-selftests.c, unittests/style-selftests.c,
6996 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6997 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6998 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6999 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7000 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7001 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7002
7003 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7006 bool value.
7007 (decode_digits_ordinary): Set explicit_line field in sal.
7008 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7009 symtab_and_line that was set on an explicit line number in
7010 assembler code. Do always update the recorded symtab and line if
7011 we do skip the prologue.
7012
7013 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * breakpoint.c (set_breakpoint_location_function): Remove
7016 explicit_loc parameter.
7017 (momentary_breakpoint_from_master): Update call to
7018 set_breakpoint_location_function.
7019 (add_location_to_breakpoint): Likewise.
7020
7021 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7024 required features based on default bfd type when no specific bfd
7025 is present.
7026
7027 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7028
7029 * NEWS: Mention that GDB printf and eval commands can now print
7030 C-style and Ada-style convenience var strings without
7031 calling the inferior.
7032 * printcmd.c (printf_c_string): Locally print GDB internal var
7033 instead of transiting via the inferior.
7034 (printf_wide_c_string): Likewise.
7035
7036 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7037
7038 PR breakpoints/25011
7039 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7040
7041 2019-07-04 Tom Tromey <tom@tromey.com>
7042
7043 PR tui/24724:
7044 * tui/tui-winsource.c (tui_clear_source_content): Update.
7045 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7046 (tui_update_breakpoint_info): Update.
7047 (tui_set_exec_info_content): Update.
7048 * tui/tui-source.c (tui_set_source_content_nil): Update.
7049 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7050 has_break.
7051 * tui/tui-data.h (enum tui_bp_flag): New.
7052 (tui_bp_flags): New enum flags type.
7053 (struct tui_source_element) <break_mode>: Change type. Rename
7054 from has_break.
7055 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7056 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7057 constants.
7058 * tui/tui-winsource.h: Fix comment.
7059
7060 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7061
7062 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7063 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7064 (store_fpregs_to_thread)
7065 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7066 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7067 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7068 (IWMMXT_REGS_SIZE): Add define.
7069 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7070 (fetch_vfp_regs, store_vfp_regs)
7071 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7072 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7073
7074 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7075
7076 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7077 defines.
7078 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7079 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7080 (ARM_INT_REGISTER_SIZE): ...to this.
7081 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7082 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7083 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7084 (arm_linux_collect_gregset, supply_nwfpe_register)
7085 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7086 defines.
7087 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7088 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7089 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7090 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7091 (arm_return_in_memory, arm_store_return_value)
7092 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7093 (arm_record_ld_st_multiple): Likewise.
7094 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7095 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7096
7097 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7098
7099 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7100 AARCH64_DISPLACED_MODIFIED_INSNS.
7101 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7102 (aarch64_displaced_step_copy_insn): Likewise.
7103 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7104 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7105 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7106 ARM_DISPLACED_MODIFIED_INSNS.
7107 * arm-tdep.c (arm_gdbarch_init): Likewise.
7108 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7109 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7110 (struct arm_displaced_step_closure): Use
7111 ARM_DISPLACED_MODIFIED_INSNS.
7112
7113 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7114
7115 * features/Makefile: Remove unused xml files.
7116 * features/aarch64.xml: Remove.
7117 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7118 * features/i386/amd64-avx-avx512.xml: Remove.
7119 * features/i386/amd64-avx-linux.xml: Remove.
7120 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7121 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7122 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7123 * features/i386/amd64-avx-mpx.xml: Remove.
7124 * features/i386/amd64-avx.xml: Remove.
7125 * features/i386/amd64-linux.xml: Remove.
7126 * features/i386/amd64-mpx-linux.xml: Remove.
7127 * features/i386/amd64-mpx.xml: Remove.
7128 * features/i386/amd64.xml: Remove.
7129 * features/i386/i386-avx-avx512-linux.xml: Remove.
7130 * features/i386/i386-avx-avx512.xml: Remove.
7131 * features/i386/i386-avx-linux.xml: Remove.
7132 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7133 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7134 * features/i386/i386-avx-mpx-linux.xml: Remove.
7135 * features/i386/i386-avx-mpx.xml: Remove.
7136 * features/i386/i386-avx.xml: Remove.
7137 * features/i386/i386-linux.xml: Remove.
7138 * features/i386/i386-mmx-linux.xml: Remove.
7139 * features/i386/i386-mmx.xml: Remove.
7140 * features/i386/i386-mpx-linux.xml: Remove.
7141 * features/i386/i386-mpx.xml: Remove.
7142 * features/i386/i386.xml: Remove.
7143 * features/i386/x32-avx-avx512-linux.xml: Remove.
7144 * features/i386/x32-avx-linux.xml: Remove.
7145 * features/i386/x32-linux.xml: Remove.
7146
7147 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7148
7149 * regformats/aarch64.dat: Remove.
7150 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7151 * regformats/i386/amd64-avx-linux.dat: Remove.
7152 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7153 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7154 * regformats/i386/amd64-linux.dat: Remove.
7155 * regformats/i386/amd64-mpx-linux.dat: Remove.
7156 * regformats/i386/amd64.dat: Remove.
7157 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7158 * regformats/i386/i386-avx-linux.dat: Remove.
7159 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7160 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7161 * regformats/i386/i386-linux.dat: Remove.
7162 * regformats/i386/i386-mmx-linux.dat: Remove.
7163 * regformats/i386/i386-mpx-linux.dat: Remove.
7164 * regformats/i386/i386.dat: Remove.
7165 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7166 * regformats/i386/x32-avx-linux.dat: Remove.
7167 * regformats/i386/x32-linux.dat: Remove.
7168
7169 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7170
7171 * aarch64-tdep.c: Remove xml self tests.
7172 * amd64-linux-tdep.c: Likewise.
7173 * amd64-tdep.c: Likewise.
7174 * i386-linux-tdep.c: Likewise.
7175 * i386-tdep.c: Likewise.
7176
7177 2019-07-03 Pedro Alves <palves@redhat.com>
7178
7179 PR cli/24732
7180 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7181 (pipe_cmd_option_defs): New.
7182 (make_pipe_cmd_options_def_group): New.
7183 (pipe_command): Use gdb::option::process_options.
7184 (pipe_command_completer): New function.
7185 (_initialize_cli_cmds): Install completer for "pipe" command.
7186
7187 2019-07-03 Pedro Alves <palves@redhat.com>
7188
7189 * cli/cli-option.c (union option_value) <string>: New field.
7190 (struct option_def_and_value): Add ctor, move ctor, dtor and
7191 use DISABLE_COPY_AND_ASSIGN.
7192 (option_def_and_value::clear_value): New.
7193 (parse_option, save_option_value_in_ctx, get_val_type_str)
7194 (add_setshow_cmds_for_options): Handle var_string.
7195 * cli-option.h (union option_def::var_address) <string>: New
7196 field.
7197 (struct string_option_def): New.
7198 * maint-test-options.c (struct test_options_opts): Add default
7199 ctor and use DISABLE_COPY_AND_ASSIGN.
7200 <string_opt>: New field.
7201 (test_options_opts::~test_options_opts): New.
7202 (test_options_opts::dump): Also dump "-string".
7203 (test_options_option_defs): Install "string.
7204
7205 2019-07-03 Pedro Alves <palves@redhat.com>
7206
7207 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7208 option_value with a null enumeration.
7209 (complete_options): Save the option values in the context.
7210 (save_option_value_in_ctx): New, factored out from ...
7211 (process_options): ... here.
7212 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7213 of the function.
7214 * maint-test-options.c (test_options_opts::dump): New, factored
7215 out from ...
7216 (maintenance_test_options_command_mode): ... here.
7217 (maintenance_test_options_command_completion_result): Delete.
7218 (maintenance_test_options_command_completion_text): Update
7219 comment.
7220 (maintenance_show_test_options_completion_result): Change
7221 prototype. Just print
7222 maintenance_test_options_command_completion_text.
7223 (save_completion_result): New.
7224 (maintenance_test_options_completer_mode): Pass options context to
7225 complete_options, and then save a dump.
7226 (_initialize_maint_test_options): Use add_cmd to install "maint
7227 show test-options-completion-result".
7228
7229 2019-07-03 Pedro Alves <palves@redhat.com>
7230
7231 * NEWS (New commands): Mention "with" and "maint with".
7232 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7233 (with_command, with_command_completer): New.
7234 (pipe_command): Adjust to new repeat_previous
7235 interface.
7236 (_initialize_cli_cmds): Install the "with" command and its "w"
7237 alias.
7238 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7239 declarations.
7240 * cli/cli-setshow.c (parse_cli_var_uinteger)
7241 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7242 argument strings for all var_types.
7243 (get_setshow_command_value_string): New, factored out from ...
7244 (do_show_command): ... this.
7245 * cli/cli-setshow.h: Include <string>.
7246 (get_setshow_command_value_string): Declare.
7247 * command.h (repeat_previous): Now returns const char *. Adjust
7248 comment.
7249 * maint.c: Include "cli/cli-cmds.h".
7250 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7251 (_initialize_maint_cmds): Register the "maintenance with" command.
7252 * top.c (repeat_previous): Move bits from pipe_command here:
7253 Return the saved command line, if any; error out if there's no
7254 command to relaunch.
7255
7256 2019-07-03 Pedro Alves <palves@redhat.com>
7257
7258 * NEWS (New commands): Mention "maint set/show test-settings"
7259 instead of "maint test-settings".
7260 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7261 (maintenance_test_settings_set_list): Rename to ...
7262 (maintenance_set_test_settings_list): ... this.
7263 (maintenance_test_settings_show_list): Rename to ...
7264 (maintenance_show_test_settings_list): ... this.
7265 (maintenance_test_settings_cmd): Delete.
7266 (maintenance_test_settings_set_cmd): ...
7267 (maintenance_set_test_settings_cmd): ... this.
7268 (maintenance_test_settings_show_cmd): ...
7269 (maintenance_show_test_settings_cmd): ... this.
7270 (maintenance_test_settings_show_value_cmd):
7271 (maintenance_show_test_settings_value_cmd): ... this.
7272 (_initialize_maint_test_settings): No longer install the "maint
7273 test-settings" prefix command. Rename "maint test-settings set"
7274 to "maint set test-settings", and "maint test-settings show" to
7275 "maint show test-settings". Adjust all subcommands.
7276
7277 2019-07-03 Pedro Alves <palves@redhat.com>
7278
7279 * maint-test-settings.c: Fix file's intro comment. Replace all
7280 references to "test-options" with references to "test-settings",
7281 in comments.
7282
7283 2019-07-03 Pedro Alves <palves@redhat.com>
7284
7285 * maint-test-settings.c (maintenance_test_settings_xxx)
7286 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7287 New.
7288 (maintenance_test_settings_enums): Use them.
7289 (maintenance_test_settings_enum): Default to
7290 maintenance_test_settings_xxx.
7291 (_initialize_maint_test_settings): Initialize
7292 MAINTENANCE_TEST_SETTINGS_FILENAME.
7293
7294 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7295
7296 * breakpoint.h (remove_breakpoints_inf): Change return type to
7297 void, move function documentation here.
7298 * breakpoint.c (remove_breakpoints_inf): Change return type to
7299 void, move function documentation to header.
7300
7301 2019-07-02 Pedro Alves <palves@redhat.com>
7302
7303 * NEWS (Completion improvements): Mention "info threads".
7304 * thread.c (struct info_threads_opts, info_threads_option_defs)
7305 (make_info_threads_options_def_group): New.
7306 (info_threads_command): Use gdb::option::process_options.
7307 (info_threads_command_completer): New.
7308 (_initialize_thread): Use gdb::option::build_help to build the
7309 help text for "info threads".
7310
7311 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7312
7313 * defs.h (generic_load): Move from here...
7314 * symfile.h (generic_load): ... to here. Rename name parameter
7315 to args.
7316 * symfile.c (generic_load): Add comment.
7317
7318 2019-07-01 Tom Tromey <tromey@adacore.com>
7319
7320 * dwarf2read.c
7321 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7322 declaration of without_params. Fix formatting.
7323
7324 2019-07-01 Tom Tromey <tromey@adacore.com>
7325
7326 * ada-exp.y (find_primitive_type): Update.
7327 * ada-lang.h (ada_lookup_symbol): Update.
7328 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7329 parameter.
7330 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7331
7332 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7333
7334 PR breakpoints/24541
7335 * gdbarch.c: Regenerate.
7336 * gdbarch.h: Regenerate.
7337 * gdbarch.sh: Add 'stap_adjust_register'.
7338 * i386-tdep.c: Include '<unordered_set>'.
7339 (i386_stap_adjust_register): New function.
7340 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7341 * stap-probe.c (stap_parse_register_operand): Call
7342 'gdbarch_stap_adjust_register'.
7343
7344 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 PR python/24742
7347 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7348 * python/python.c (do_start_initialization): Use 'xmalloc'
7349 instead of 'PyMem_Malloc'.
7350
7351 2019-06-28 Tom Tromey <tromey@adacore.com>
7352
7353 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7354 for Ada.
7355
7356 2019-06-27 Tom Tromey <tromey@adacore.com>
7357
7358 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7359 objfile_key.
7360 (arm_find_mapping_symbol, arm_record_special_symbol)
7361 (_initialize_arm_tdep): Update.
7362 (arm_objfile_data_free): Remove.
7363
7364 2019-06-27 Tom Tromey <tromey@adacore.com>
7365
7366 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7367 to cp_print_static_field.
7368
7369 2019-06-26 Tom Tromey <tromey@adacore.com>
7370
7371 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7372 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7373 declare.
7374
7375 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7376
7377 * features/aarch64-core.c (create_feature_aarch64_core):
7378 Regenerate.
7379 * features/aarch64-core.xml: Add cpsr flags.
7380
7381 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7382
7383 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7384 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7385
7386 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7387
7388 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7389 field.
7390 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7391 use.
7392 (arm_record_special_symbol): Don't insert new symbol in sorted
7393 position, push it at the end.
7394
7395 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7396
7397 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7398 (arm_mapping_symbol_s): Remove.
7399 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7400 (arm_mapping_symbol_vec): New typedef.
7401 (struct arm_per_objfile): Add constructor.
7402 <section_maps>: Change type to
7403 std::unique_ptr<arm_mapping_symbol_vec[]>.
7404 (arm_compare_mapping_symbols): Remove.
7405 (arm_find_mapping_symbol): Adjust to section_maps type change.
7406 (arm_objfile_data_free): Call delete on arm_per_objfile.
7407 (arm_record_special_symbol): Adjust to section_maps type change.
7408 Allocate arm_per_objfile with new.
7409
7410 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7411
7412 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7413 with the command prefix.
7414
7415 2019-06-25 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7418 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7419
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7423 type.
7424 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7425 protected.
7426
7427 2019-06-25 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-winsource.c
7430 (tui_source_window_base::set_is_exec_point_at): Add check against
7431 LOA_ADDRESS.
7432
7433 2019-06-25 Tom Tromey <tom@tromey.com>
7434
7435 * tui/tui-source.c (tui_set_source_content): Don't check before
7436 xfree.
7437 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7438
7439 2019-06-25 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-winsource.h (tui_update_source_window_as_is)
7442 (tui_alloc_source_buffer, tui_line_is_displayed)
7443 (tui_addr_is_displayed): Change type of win_info.
7444 * tui/tui-winsource.c (tui_update_source_window_as_is)
7445 (tui_clear_source_content, tui_show_source_line)
7446 (tui_show_source_content, tui_source_window_base::refill)
7447 (tui_source_window_base::set_is_exec_point_at)
7448 (tui_source_window_base::set_is_exec_point_at)
7449 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7450 (tui_alloc_source_buffer, tui_line_is_displayed)
7451 (tui_addr_is_displayed): Change type of win_info. Update.
7452 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7453 (tui_source_window_base::do_make_visible_with_new_height):
7454 Update.
7455 * tui/tui-source.c (tui_set_source_content)
7456 (tui_set_source_content_nil)
7457 (tui_source_window::do_scroll_vertical): Update.
7458 * tui/tui-layout.c (show_layout): Update.
7459 * tui/tui-disasm.c (tui_set_disassem_content)
7460 (tui_disasm_window::do_scroll_vertical): Update.
7461 * tui/tui-data.h (tui_win_content): Remove.
7462 (struct tui_gen_win_info) <content, content_size>: Remove.
7463 (struct tui_source_element): Add initializers and destructor.
7464 (union tui_which_element, struct tui_win_element): Remove.
7465 (struct tui_source_window_base) <content>: New field.
7466 (struct tui_data_window): Remove destructor.
7467 (tui_alloc_content, tui_free_win_content)
7468 (tui_free_all_source_wins_content): Don't declare.
7469 * tui/tui-data.c (tui_initialize_static_data): Update.
7470 (init_content_element, tui_alloc_content): Remove.
7471 (~tui_gen_win_info): Update.
7472 (~tui_data_window, tui_free_all_source_wins_content)
7473 (tui_free_win_content, free_content, free_content_elements):
7474 Remove.
7475
7476 2019-06-25 Tom Tromey <tom@tromey.com>
7477
7478 * tui/tui-winsource.h (tui_clear_source_content)
7479 (tui_erase_source_content, tui_show_source_content): Change type
7480 of win_info.
7481 * tui/tui-winsource.c (tui_clear_source_content)
7482 (tui_erase_source_content, tui_show_source_content): Change type
7483 of win_info.
7484 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7485 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7486 win_info.
7487 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7488 win_info.
7489 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7490
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-winsource.c (tui_clear_source_content)
7494 (tui_source_window_base::set_is_exec_point_at): Update.
7495 * tui/tui-source.c (tui_set_source_content_nil): Update.
7496 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7497 a bool.
7498 * tui/tui-data.c (init_content_element): Update.
7499
7500 2019-06-25 Tom Tromey <tom@tromey.com>
7501
7502 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7503 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7504 * tui/tui-layout.c (init_and_make_win): Update.
7505 * tui/tui.h (enum tui_win_type): Update.
7506 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7507 tui_win_is_auxillary.
7508 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7509 tui_win_is_auxillary.
7510
7511 2019-06-25 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7514 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7515 (tui_delete_data_content_windows, tui_display_all_data)
7516 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7517 Update.
7518 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7519 * tui/tui-regs.c (tui_last_regs_line_no)
7520 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7521 (tui_show_registers): Update.
7522 (tui_show_register_group): Return void. Update.
7523 (tui_display_registers_from, tui_display_reg_element_at_line)
7524 (tui_display_registers_from_line, tui_check_register_values):
7525 Update.
7526 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7527 member.
7528 (struct tui_data_window) <regs_content>: Now a std::vector.
7529 <regs_content_count>: Remove.
7530 (tui_add_content_elements, tui_free_data_content): Don't declare.
7531 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7532 (init_content_element): Remove DATA_WIN case. Add assert.
7533 (tui_add_content_elements): Remove.
7534 (tui_data_window): Update.
7535 (tui_free_data_content): Remove.
7536 (free_content_elements): Remove DATA_WIN case.
7537
7538 2019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-data.c (tui_data_item_window): Update.
7541 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7542 * tui/tui-windata.c (tui_display_all_data)
7543 (tui_display_data_from_line): Update.
7544 (tui_check_data_values): Remove.
7545 * tui/tui-regs.c (tui_show_register_group)
7546 (tui_display_reg_element_at_line): Update.
7547 * tui/tui-hooks.c (tui_register_changed)
7548 (tui_refresh_frame_and_register_information): Call
7549 tui_check_register_values.
7550 * tui/tui-data.h (struct tui_data_window) <data_content,
7551 data_content_count, data_type>: Remove.
7552 (enum tui_data_type): Remove.
7553
7554 * tui/tui-data.c (tui_data_window::clear_detail)
7555 (~tui_data_window): Update.
7556
7557 2019-06-25 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7560 declare.
7561 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7562 Rename from tui_first_data_item_displayed. Update.
7563 (tui_data_window::refresh_all)
7564 (tui_data_window::do_scroll_vertical): Update.
7565 * tui/tui-data.h (struct tui_data_window)
7566 <first_data_item_displayed>: Declare new method.
7567
7568 2019-06-25 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7571 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7572 contents...
7573 (tui_initialize_static_data): ...here.
7574
7575 2019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7578 (tui_display_registers_from, tui_check_register_values): Update.
7579 (tui_display_register): Remove win_info parameter; update.
7580 (tui_get_register): Change type of parameters.
7581 * tui/tui-data.h (struct tui_data_element): Remove.
7582 (union tui_which_element) <data>: Remove.
7583 <data_window>: Change type.
7584 (struct tui_data_item_window): New.
7585 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7586 case. Add assert.
7587 (~tui_data_item_window): New destructor.
7588 (free_content_elements): Remove DATA_ITEM_WIN case.
7589
7590 2019-06-25 Tom Tromey <tom@tromey.com>
7591
7592 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7593 Remove.
7594
7595 2019-06-25 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-data.h (struct tui_command_element): Remove.
7598 (union tui_which_element) <command>: Remove.
7599 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7600 assert.
7601 (free_content_elements): Remove CMD_WIN case.
7602
7603 2019-06-25 Tom Tromey <tom@tromey.com>
7604
7605 * tui/tui-layout.c (tui_set_layout): Update.
7606 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7607 * tui/tui-data.c (layout_def): Update.
7608
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7612 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7613 (tui_source_window_base::set_new_height): Update.
7614 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7615 Update.
7616 (tui_set_locator_fullname, tui_set_locator_info)
7617 (tui_show_frame_info): Update.
7618 * tui/tui-source.c (tui_set_source_content)
7619 (tui_source_is_displayed): Update.
7620 * tui/tui-layout.c (show_source_disasm_command, show_data)
7621 (show_source_or_disasm_and_command): Update.
7622 * tui/tui-disasm.c (tui_set_disassem_content)
7623 (tui_get_begin_asm_address): Update.
7624 * tui/tui-data.h (struct tui_locator_element): Remove.
7625 (union tui_which_element) <locator>: Remove.
7626 (struct tui_locator_window): New.
7627 (tui_locator_win_info_ptr): Change return type.
7628 * tui/tui-data.c (_locator): Change type.
7629 (tui_locator_win_info_ptr): Change return type.
7630 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7631 (tui_alloc_content): Add assert.
7632
7633 2019-06-25 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui-winsource.c
7636 (tui_exec_info_window::maybe_allocate_content): New method.
7637 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7638 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7639 (make_source_or_disasm_window): Add cast.
7640 * tui/tui-data.h (union tui_which_element) <simple_string>:
7641 Remove.
7642 (struct tui_source_info): New.
7643 (struct tui_source_window_base) <execution_info>: Change type.
7644 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7645 case, and add assert.
7646 (tui_alloc_content): Add assert.
7647
7648 2019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7651 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7652 * tui/tui-data.c (tui_alloc_win_info): Remove.
7653
7654 2019-06-25 Tom Tromey <tom@tromey.com>
7655
7656 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7657 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7658 can_highlight.
7659
7660 2019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7663 make_visible_with_new_height method.
7664 (tui_win_info::make_visible_with_new_height): New method.
7665 (tui_source_window_base::do_make_visible_with_new_height)
7666 (tui_data_window::do_make_visible_with_new_height)
7667 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7668 (make_visible_with_new_height): Remove.
7669 (tui_resize_all, tui_adjust_win_heights): Use
7670 make_visible_with_new_height method.
7671 * tui/tui-data.h (struct tui_win_info)
7672 <do_make_visible_with_new_height, make_visible_with_new_height>:
7673 New methods.
7674 (struct tui_source_window_base, struct tui_data_window)
7675 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7676 methods.
7677
7678 2019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7681 method.
7682 (update_tab_width): Call update_tab_width method.
7683 * tui/tui-data.h (struct tui_win_info)
7684 (struct tui_source_window_base) <update_tab_width>: New methods.
7685
7686 2019-06-25 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7689 parameter.
7690 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7691 parameter.
7692 (tui_gen_win_info::make_visible): Update.
7693 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7694 parameter.
7695 * tui/tui-data.h (enum tui_box): New enum.
7696 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7697
7698 2019-06-25 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7701 init_and_make_win for EXEC_INFO_WIN.
7702 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7703 longer inline.
7704 (struct tui_win_info) <~tui_win_info>: Inline.
7705 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7706 Don't declare.
7707 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7708 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7709 Remove.
7710 (tui_initialize_static_data): Update.
7711 (~tui_gen_win_info): Handle more cleanup here.
7712 (~tui_source_window_base): Delete "execution_info".
7713 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7714
7715 2019-06-25 Tom Tromey <tom@tromey.com>
7716
7717 * tui/tui-layout.c (make_command_window): Don't set
7718 can_highlight.
7719 (show_source_disasm_command): Call the reset method.
7720 (show_data): Don't set can_highlight. Call the reset method.
7721 (tui_gen_win_info::reset): Rename from init_gen_win_info
7722 (init_and_make_win): Simplify. Return tui_gen_win_info.
7723 (show_source_or_disasm_and_command): Call the reset method.
7724 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7725 (struct tui_cmd_window): Set can_highlight.
7726
7727 2019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7730 from make_visible.
7731 (tui_make_visible, tui_make_invisible): Rewrite.
7732 (tui_win_info::make_visible): Remove.
7733 (tui_source_window_base::make_visible): Update.
7734 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7735 method. Moved from...
7736 (struct tui_win_info) <make_visible>: ...here.
7737
7738 2019-06-25 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-winsource.c
7741 (tui_source_window_base::do_scroll_horizontal): Remove direction
7742 parameter.
7743 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7744 direction parameter.
7745 * tui/tui-win.c (tui_win_info::forward_scroll)
7746 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7747 (tui_win_info::right_scroll): Update.
7748 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7749 direction parameter.
7750 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7751 direction parameter.
7752 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7753 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7754 Remove direction parameter.
7755 (struct tui_source_window_base, struct tui_source_window)
7756 (struct tui_disasm_window, struct tui_data_window)
7757 (struct tui_cmd_window): Update.
7758
7759 2019-06-25 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui-winsource.h (tui_set_exec_info_content)
7762 (tui_show_exec_info_content, tui_erase_exec_info_content)
7763 (tui_clear_exec_info_content, tui_update_exec_info): Change
7764 argument to tui_source_window_base.
7765 * tui/tui-winsource.c (tui_set_exec_info_content)
7766 (tui_show_exec_info_content, tui_erase_exec_info_content)
7767 (tui_clear_exec_info_content, tui_update_exec_info): Change
7768 argument to tui_source_window_base.
7769
7770 2019-06-25 Tom Tromey <tom@tromey.com>
7771
7772 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7773 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7774
7775 2019-06-25 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7778 check.
7779
7780 2019-06-25 Tom Tromey <tom@tromey.com>
7781
7782 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7783 type to void.
7784 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7785 type to void.
7786 * tui/tui-source.c (tui_set_source_content): Update.
7787 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7788
7789 2019-06-25 Tom Tromey <tom@tromey.com>
7790
7791 * tui/tui-win.c (window_name_completer, tui_set_focus)
7792 (tui_all_windows_info): Use name method.
7793 * tui/tui-data.h (struct tui_gen_win_info)
7794 (struct tui_source_window, struct tui_disasm_window)
7795 (struct tui_data_window, struct tui_cmd_window) <name>: New
7796 method.
7797 (tui_win_name): Don't declare.
7798 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7799 (tui_win_name): Remove.
7800
7801 2019-06-25 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui-winsource.h (tui_update_source_window)
7804 (tui_update_source_window_as_is): Change parameter type.
7805 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7806 to be a tui_source_window_base.
7807 (tui_update_source_window_as_is): Likewise.
7808 * tui/tui-win.c (make_visible_with_new_height): Update.
7809
7810 2019-06-25 Tom Tromey <tom@tromey.com>
7811
7812 * tui/tui-winsource.c (tui_erase_source_content)
7813 (tui_show_source_content, tui_show_exec_info_content)
7814 (tui_erase_exec_info_content): Use refresh_window method.
7815 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7816 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7817 from tui_refresh_win.
7818 (tui_data_window::refresh_window): New method.
7819 (tui_win_info::refresh, tui_source_window_base::refresh)
7820 (tui_refresh_all): Use refresh_window method.
7821 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7822 method.
7823 * tui/tui-regs.c (tui_display_register): Call refresh_window
7824 method.
7825 * tui/tui-layout.c (show_source_disasm_command)
7826 (show_source_or_disasm_and_command): Call refresh_window method.
7827 * tui/tui-data.h (struct tui_gen_win_info)
7828 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7829 New method.
7830
7831 2019-06-25 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui.c (tui_rl_other_window, tui_enable)
7834 (tui_is_window_visible, tui_get_command_dimension): Update.
7835 * tui/tui-winsource.c (tui_update_source_window_as_is)
7836 (tui_clear_source_content, tui_erase_source_content)
7837 (tui_show_source_line, tui_source_window_base::refill)
7838 (tui_source_window_base::do_scroll_horizontal)
7839 (tui_source_window_base::set_is_exec_point_at)
7840 (tui_update_breakpoint_info, tui_set_exec_info_content)
7841 (tui_alloc_source_buffer, tui_line_is_displayed)
7842 (tui_addr_is_displayed): Update.
7843 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7844 (tui_check_and_display_highlight_if_needed)
7845 (tui_win_info::make_visible, tui_win_info::refresh)
7846 (tui_refresh_all): Update.
7847 * tui/tui-windata.c (tui_first_data_item_displayed)
7848 (tui_delete_data_content_windows, tui_erase_data_content)
7849 (tui_display_all_data, tui_data_window::refresh_all)
7850 (tui_check_data_values): Update.
7851 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7852 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7853 (tui_win_info::backward_scroll, tui_refresh_all_win)
7854 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7855 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7856 (tui_source_window_base::set_new_height)
7857 (tui_data_window::set_new_height)
7858 (make_invisible_and_set_new_height)
7859 (make_visible_with_new_height, new_height_ok)
7860 (parse_scrolling_args): Update.
7861 * tui/tui-stack.c (tui_show_frame_info): Update.
7862 * tui/tui-source.c (tui_set_source_content)
7863 (tui_set_source_content_nil, tui_source_is_displayed)
7864 (tui_source_window::do_scroll_vertical): Update.
7865 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7866 (tui_display_registers_from, tui_display_reg_element_at_line)
7867 (tui_check_register_values, tui_reg_command): Update.
7868 * tui/tui-layout.c (tui_default_win_height)
7869 (show_source_disasm_command, show_data, init_and_make_win)
7870 (show_source_or_disasm_and_command): Update.
7871 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7872 (tui_redisplay_readline, tui_mld_flush)
7873 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7874 (tui_getc): Update.
7875 * tui/tui-disasm.c (tui_set_disassem_content)
7876 (tui_disasm_window::do_scroll_vertical): Update.
7877 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7878 Now virtual.
7879 (struct tui_win_info): Derive from tui_gen_win_info.
7880 <~tui_win_info>: Mark as override.
7881 <generic>: Remove member.
7882 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7883 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7884 (~tui_data_window, ~tui_win_info)
7885 (tui_free_all_source_wins_content): Update.
7886 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7887
7888 2019-06-25 Tom Tromey <tom@tromey.com>
7889
7890 * tui/tui-layout.c (init_and_make_win): Use new.
7891 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7892 destructor, initializers.
7893 (tui_alloc_generic_win_info): Don't declare.
7894 * tui/tui-data.c (_locator): Add argument to constructor.
7895 (source_win, disasm_win): New globals.
7896 (exec_info): Remove.
7897 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7898 Update.
7899 (tui_alloc_generic_win_info): Remove.
7900 (init_content_element): Use new.
7901 (tui_win_info::tui_win_info): Update.
7902 (free_content_elements) <case DATA_WIN>: Use delete.
7903
7904 2019-06-25 Tom Tromey <tom@tromey.com>
7905
7906 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7907 * tui/tui-windata.c (tui_first_data_item_displayed)
7908 (tui_delete_data_content_windows): Update.
7909 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7910 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7911 (tui_display_registers_from, tui_check_register_values): Update.
7912 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7913 pointer.
7914 * tui/tui-data.c (init_content_element): Update. Allocate the new
7915 window.
7916 (tui_free_data_content): Update.
7917 (free_content_elements) <case DATA_WIN>: Free the window.
7918
7919 2019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7922 Update.
7923 * tui/tui-layout.c (make_command_window)
7924 (show_source_disasm_command, show_data, init_and_make_win)
7925 (show_source_or_disasm_and_command): Update.
7926 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7927 method.
7928 <can_highight, is_highlighted>: Now bool.
7929 (tui_set_win_highlight): Don't declare.
7930 * tui/tui-data.c (tui_set_win_highlight): Remove.
7931
7932 2019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui-wingeneral.c (make_visible): Remove check of window
7935 type.
7936
7937 2019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-win.c (tui_win_info::max_height)
7940 (tui_cmd_window::max_height): New methods.
7941 (new_height_ok): Call max_height.
7942 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7943 <max_height>: New method.
7944
7945 2019-06-25 Tom Tromey <tom@tromey.com>
7946
7947 * tui/tui-win.c (tui_source_window_base::set_new_height)
7948 (tui_data_window::set_new_height): New methods.
7949 (make_invisible_and_set_new_height): Call set_new_height method.
7950 * tui/tui-data.h (struct tui_win_info)
7951 (struct tui_source_window_base, struct tui_data_window)
7952 <set_new_height>: New method.
7953
7954 2019-06-25 Tom Tromey <tom@tromey.com>
7955
7956 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7957 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7958 tui_refresh_data_win.
7959 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7960 method.
7961 (tui_refresh_all_win): Call the refresh_all method.
7962 (tui_set_focus): Likewise.
7963 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7964 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7965 Likewise.
7966
7967 2019-06-25 Tom Tromey <tom@tromey.com>
7968
7969 * tui/tui-winsource.h (tui_refill_source_window)
7970 (tui_set_is_exec_point_at): Don't declare.
7971 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7972 (tui_source_window_base::refill): Rename from
7973 tui_refill_source_window.
7974 (tui_source_window_base::do_scroll_horizontal): Update.
7975 (tui_source_window_base::set_is_exec_point_at): Rename from
7976 tui_set_is_exec_point_at.
7977 (tui_update_all_breakpoint_info): Update.
7978 * tui/tui-stack.c (tui_show_frame_info): Update.
7979 * tui/tui-layout.c (show_data): Add cast.
7980 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7981 * tui/tui-data.h (struct tui_source_window_base) <refill,
7982 set_is_exec_point_at>: New methods.
7983 (tui_source_windows, tui_add_to_source_windows): Update types.
7984 (tui_add_to_source_windows): Remove redundant declaration.
7985 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7986 (tui_source_windows): Change return type.
7987 (tui_clear_source_windows_detail): Update.
7988 (tui_add_to_source_windows): Change type of parameter.
7989 (tui_free_all_source_wins_content): Update.
7990
7991 2019-06-25 Tom Tromey <tom@tromey.com>
7992
7993 * tui/tui-wingeneral.c (tui_win_info::refresh)
7994 (tui_source_window_base::refresh): New methods.
7995 (tui_refresh_all): Call the refresh method.
7996 * tui/tui-data.h (struct tui_win_info)
7997 (struct tui_source_window_base) <refresh>: New method.
7998
7999 2019-06-25 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui.h (tui_is_window_visible): Return bool.
8002 * tui/tui.c (tui_is_window_visible): Return bool.
8003 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8004 (tui_make_visible, tui_make_invisible)
8005 (tui_win_info::make_visible)
8006 (tui_source_window_base::make_visible, make_all_visible)
8007 (tui_make_all_visible, tui_make_all_invisible): Update.
8008 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8009 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8010 bool.
8011 (struct tui_win_info, struct tui_source_window_base)
8012 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8013 * tui/tui-data.c (tui_init_generic_part): Update.
8014
8015 2019-06-25 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8018 (tui_source_window_base::make_visible): New methods.
8019 (make_all_visible): Make method call.
8020 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8021 (struct tui_source_window_base, struct tui_cmd_window): Override
8022 make_visible.
8023 (tui_win_is_source_type): Don't declare.
8024 * tui/tui-data.c (tui_win_is_source_type): Remove.
8025
8026 2019-06-25 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8029 NULL check.
8030
8031 2019-06-25 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8034 Inline constructor. Add initializers for members.
8035 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8036 constructors; now inline in class.
8037
8038 2019-06-25 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-regs.c (tui_show_registers): Update.
8041 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8042 bool.
8043 * tui/tui-data.c (tui_data_window::clear_detail)
8044 (tui_data_window): Update.
8045
8046 2019-06-25 Tom Tromey <tom@tromey.com>
8047
8048 * tui/tui-windata.c (tui_display_all_data)
8049 (tui_display_data_from_line, tui_display_data_from)
8050 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8051 Update.
8052 * tui/tui-regs.c (tui_last_regs_line_no)
8053 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8054 (tui_show_registers, tui_show_register_group)
8055 (tui_display_registers_from, tui_display_reg_element_at_line)
8056 (tui_display_registers_from_line, tui_check_register_values)
8057 (tui_reg_next, tui_reg_prev): Update.
8058 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8059 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8060 tui_data_window.
8061 (struct tui_win_info) <detail>: Remove. Add new fields from
8062 tui_data_info.
8063 (TUI_DATA_WIN): Add cast.
8064 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8065 (~tui_data_window): Simplify.
8066
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-layout.c (show_source_disasm_command)
8070 (show_source_or_disasm_and_command): Update.
8071 * tui/tui-io.c (update_cmdwin_start_line)
8072 (tui_redisplay_readline): Update.
8073 * tui/tui-data.h (struct tui_command_info): Remove.
8074 (struct tui_win_info) <detail>: Remove command_info member.
8075 (struct tui_data_window) <start_line>: New member, from
8076 tui_command_info.
8077 (TUI_CMD_WIN): Add casts.
8078
8079 2019-06-25 Tom Tromey <tom@tromey.com>
8080
8081 * tui/tui-winsource.c (tui_update_source_window)
8082 (tui_refill_source_window)
8083 (tui_source_window_base::do_scroll_horizontal)
8084 (tui_update_breakpoint_info, tui_set_exec_info_content)
8085 (tui_show_exec_info_content, tui_erase_exec_info_content)
8086 (tui_clear_exec_info_content): Update.
8087 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8088 Update.
8089 * tui/tui-win.c (make_invisible_and_set_new_height)
8090 (make_visible_with_new_height): Update.
8091 * tui/tui-source.c (tui_set_source_content)
8092 (tui_show_symtab_source): Update.
8093 * tui/tui-layout.c (extract_display_start_addr)
8094 (show_source_disasm_command, show_data)
8095 (make_source_or_disasm_window)
8096 (show_source_or_disasm_and_command): Update.
8097 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8098 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8099 "gdbarch".
8100 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8101 to tui_source_window_base.
8102 (struct tui_win_info) <detail>: Remove source_info member.
8103 (struct tui_source_window_base) <has_locator>: Inline.
8104 Move contents from tui_source_info; rename has_locator member to
8105 m_has_locator.
8106 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8107 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8108 header file.
8109 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8110 Simplify.
8111 (tui_free_all_source_wins_content): Cast to
8112 tui_source_window_base.
8113
8114 2019-06-25 Tom Tromey <tom@tromey.com>
8115
8116 * tui/tui-win.c (make_invisible_and_set_new_height)
8117 (make_visible_with_new_height): Call has_locator method.
8118 * tui/tui-layout.c (show_source_disasm_command, show_data)
8119 (show_source_or_disasm_and_command): Update for bool change.
8120 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8121 (tui_win_info) <has_locator>: New method.
8122 (struct tui_source_window_base) <has_locator>: New method.
8123 (tui_win_has_locator): Don't declare.
8124 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8125 from tui_win_has_locator.
8126 (tui_source_window_base): Use false, not FALSE.
8127
8128 2019-06-25 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8131 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8132 clear_detail method directly.
8133 (tui_clear_win_detail): Remove.
8134
8135 2019-06-25 Tom Tromey <tom@tromey.com>
8136
8137 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8138 "this", not TUI_DISASM_WIN.
8139
8140 2019-06-25 Tom Tromey <tom@tromey.com>
8141
8142 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8143 declare.
8144 * tui/tui-winsource.c
8145 (tui_source_window_base::do_scroll_horizontal): Rename from
8146 tui_horizontal_source_scroll.
8147 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8148 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8149 from tui_vertical_data_scroll.
8150 * tui/tui-win.h (tui_scroll): Don't declare.
8151 * tui/tui-win.c (tui_win_info::forward_scroll)
8152 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8153 (tui_win_info::right_scroll): Rename and update.
8154 (tui_scroll_forward_command, tui_scroll_backward_command)
8155 (tui_scroll_left_command, tui_scroll_right_command): Update.
8156 (tui_scroll): Remove.
8157 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8158 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8159 from tui_vertical_source_scroll.
8160 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8161 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8162 from tui_vertical_disassem_scroll.
8163 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8164 do_scroll_horizontal>: New methods.
8165 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8166 Likewise.
8167 (struct tui_source_window_base): Add do_scroll_horizontal.
8168 (struct tui_source_window, struct tui_disasm_window): Add
8169 do_scroll_vertical.
8170 (struct tui_data_window, struct tui_cmd_window): Add
8171 do_scroll_horizontal and do_scroll_vertical.
8172 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8173
8174 2019-06-25 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-data.h (struct tui_source_window_base): New struct.
8177 (struct tui_source_window): Derive from tui_source_window_base.
8178 (struct tui_disasm_window): New struct.
8179 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8180 from tui_source_window::clear_detail.
8181 (tui_source_window_base): Rename from tui_source_window.
8182 (~tui_source_window_base): Rename from ~tui_source_window.
8183 (tui_alloc_win_info): Create a tui_disasm_window.
8184
8185 2019-06-25 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-data.h (struct tui_source_window)
8188 (struct tui_data_window): Declare destructors.
8189 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8190 destructors.
8191 (tui_win_info): Simplify.
8192
8193 2019-06-25 Tom Tromey <tom@tromey.com>
8194
8195 * tui/tui-winsource.c (tui_display_main)
8196 (tui_update_source_windows_with_addr)
8197 (tui_update_all_breakpoint_info): Update.
8198 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8199 (new_height_ok, parse_scrolling_args): Update.
8200 * tui/tui-stack.c (tui_show_frame_info): Update.
8201 * tui/tui-data.h (struct tui_list): Remove.
8202 (tui_source_windows): Return a reference to a std::vector.
8203 * tui/tui-data.c (source_windows): Now a std::vector.
8204 (tui_source_windows): Change return type.
8205 (tui_clear_source_windows): Rewrite.
8206 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8207 (tui_free_all_source_wins_content): Rewrite.
8208
8209 2019-06-25 Tom Tromey <tom@tromey.com>
8210
8211 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8212 (struct tui_data_window, struct tui_cmd_window): Declare
8213 clear_detail method.
8214 * tui/tui-data.c (tui_source_window::clear_detail)
8215 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8216 methods.
8217 (tui_clear_win_detail): Simplify.
8218
8219 2019-06-25 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-layout.c (make_source_window, make_disasm_window)
8222 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8223 Return the new window.
8224 (show_source_disasm_command, show_data)
8225 (show_source_or_disasm_and_command): Update.
8226
8227 2019-06-25 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8230 parameter. Return the new window.
8231 (show_source_disasm_command): Update and remove NULL check.
8232 (show_source_or_disasm_and_command): Update.
8233
8234 2019-06-25 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8237
8238 2019-06-25 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-data.h (struct tui_win_info): Make constructor
8241 protected. Make destructor virtual. Add initializers.
8242 (tui_source_window, tui_data_window, tui_cmd_window): New
8243 classes.
8244 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8245 constructor. Add "type" parameter.
8246 (tui_source_window, tui_data_window, tui_cmd_window): New
8247 constructors.
8248 (tui_alloc_win_info): Instantiate the appropriate subclass.
8249
8250 2019-06-25 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui-win.c (tui_resize_all): Use delete.
8253 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8254 destructor.
8255 (tui_free_window): Don't declare.
8256 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8257 Update.
8258
8259 2019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-data.h (struct tui_win_info): Add constructor.
8262 * tui/tui-data.c (tui_alloc_win_info): Use new.
8263 (tui_free_window): Use delete.
8264
8265 2019-06-22 Tom Tromey <tom@tromey.com>
8266
8267 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8268 declare.
8269 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8270
8271 2019-06-22 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8274 declare.
8275 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8276
8277 2019-06-22 Tom de Vries <tdevries@suse.de>
8278
8279 * dwarf2read.c (create_addrmap_from_aranges)
8280 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8281 instead of '%zu'.
8282
8283 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8284
8285 * dwarf2read.h (dwarf2_section_info_def): Remove.
8286 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8287 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8288 std::vector<dwarf2_section_info>.
8289 (struct dwo_file) <~dwo_file>: Remove.
8290 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8291 types field.
8292 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8293 (dwarf2_read_debug_names): Likewise.
8294 (create_debug_types_hash_table): Change parameter type to
8295 array_view, adjust code accordingly.
8296 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8297 (partial_die_info::fixup): Likewise.
8298 (determine_prefix): Likewise.
8299 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8300
8301 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8302
8303 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8304 gdb_bfd_ref_ptr.
8305 <~dwo_file>: Remove call to gdb_bfd_unref.
8306 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8307 gdb_bfd_ref_ptr::get.
8308
8309 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8310
8311 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8312 type to htab_up.
8313 * dwarf2read.c (struct dwo_file): Initialize fields.
8314 <~dwo_file>: New.
8315 (free_dwo_file): Remove, move content to ~dwo_file.
8316 (struct dwo_file_deleter): Remove.
8317 (dwo_file_up>: Remove custom deleter.
8318 (free_dwo_files): Remove.
8319 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8320 dwo_files.
8321 (process_skeletonless_type_units): Call unique_ptr::get.
8322 (allocate_dwo_file_hash_table): Add deleter to created hash
8323 table. Change return type to htab_up.
8324 (lookup_dwo_file_slot): Don't memset dwo_file, call
8325 unique_ptr::get.
8326 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8327 (create_dwo_unit_in_dwp_v2): Likewise.
8328 (open_and_init_dwo_file): Likewise.
8329 (free_dwo_file_from_slot): Remove.
8330
8331 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8332
8333 * dwarf2read.h (struct dwarf2_section_info) <readin,
8334 is_virtual>: Change type to bool.
8335 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8336 true instead of 1.
8337
8338 2019-06-19 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui-data.h (tui_init_content_element): Don't declare.
8341
8342 2019-06-19 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui-data.h (tui_init_win_info): Don't declare.
8345
8346 2019-06-19 Tom de Vries <tdevries@suse.de>
8347
8348 * dwarf2read.h (abstract_to_concrete): Change type to
8349 std::unordered_map<sect_offset, std::vector<sect_offset>,
8350 gdb::hash_enum<sect_offset>>.
8351
8352 2019-06-19 Tom Tromey <tromey@adacore.com>
8353
8354 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8355 EVAL_AVOID_SIDE_EFFECTS specially.
8356
8357 2019-06-19 Tom Tromey <tromey@adacore.com>
8358
8359 * source-cache.c (highlighter): New global.
8360 (source_cache::get_source_lines): Create a highlighter on demand.
8361
8362 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8363
8364 * defs.h (deprecated_interactive_hook): Delete declaration.
8365 * interps.c (clear_interpreter_hooks): Remove use of
8366 deprecated_interactive_hook.
8367 * top.c (deprecated_interactive_hook): Delete definition.
8368 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8369
8370 2019-06-18 Tom de Vries <tdevries@suse.de>
8371
8372 PR gdb/24515
8373 * dwarf2read.h (abstract_to_concrete): Change type from
8374 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8375 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8376 * dwarf2read.c (read_variable): Update.
8377 (dwarf2_fetch_die_loc_sect_off): Update.
8378
8379 2019-06-17 Tom de Vries <tdevries@suse.de>
8380
8381 PR gdb/24617
8382 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8383 accessing parent[parent_len - 1].
8384
8385 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8386
8387 PR gdb/24364
8388 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8389 call dtrace_process_dof with NULL dof.
8390
8391 2019-06-16 Tom de Vries <tdevries@suse.de>
8392
8393 PR gdb/24445
8394 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8395
8396 2019-06-16 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8399 (make_all_visible): Use address of member.
8400
8401 2019-06-16 Tom Tromey <tom@tromey.com>
8402
8403 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8404 (tui_free_window, free_content, free_content_elements): Remove
8405 unnecessary cast.
8406 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8407 cast.
8408 * tui/tui-regs.c (tui_show_register_group)
8409 (tui_display_registers_from, tui_display_reg_element_at_line):
8410 Remove unnecessary cast.
8411
8412 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * linux-nat.c (normal_mask): Delete.
8415 (_initialize_linux_nat): Don't initialise normal_mask.
8416
8417 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8418
8419 PR gdb/24445
8420 * dwarf-index-write.h (write_psymtabs_to_index): Add
8421 dwz_basename parameter.
8422 * dwarf-index-write.c (write_gdbindex): Move file writing to
8423 write_gdbindex_1. Change return type void.
8424 (assert_file_size): Move up, remove filename parameter.
8425 (write_gdbindex_1): New function.
8426 (write_debug_names): Change return type to void, call
8427 assert_file_size.
8428 (struct index_wip_file): New struct.
8429 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8430 file logic to index_wip_file. Write index for dwz file if
8431 needed.
8432 (save_gdb_index_command): Pass basename of dwz file, if present.
8433 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8434 build-id of dwz file, if present.
8435 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8436 (dwarf2_get_dwz_file): Likewise.
8437 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8438 (dwarf2_get_dwz_file): Likewise.
8439
8440 2019-06-16 Tom Tromey <tom@tromey.com>
8441
8442 * coffread.c (process_coff_symbol): Use xstrdup.
8443 * value.c (create_internalvar): Use xstrdup.
8444
8445 2019-06-16 Tom Tromey <tom@tromey.com>
8446
8447 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8448 * breakpoint.c (stopin_command, stopat_command)
8449 (until_break_command, decode_location_default): Remove unnecessary
8450 cast.
8451 * utils.c (subset_compare): Remove unnecessary cast.
8452 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8453 cast.
8454 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8455 cast.
8456 * infcmd.c (path_command): Remove unnecessary cast.
8457 * coffread.c (decode_type): Remove unnecessary cast.
8458 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8459 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8460 * tui/tui-stack.c (tui_show_locator_content)
8461 (tui_show_frame_info): Remove unnecessary cast.
8462 * tui/tui-win.c (tui_scroll_forward_command)
8463 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8464 (parse_scrolling_args): Remove unnecessary cast.
8465 * tui/tui-data.c (init_win_info, tui_del_window)
8466 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8467 (free_content_elements): Remove unnecessary cast.
8468 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8469 unnecessary cast.
8470 * tui/tui-source.c (tui_set_source_content)
8471 (tui_vertical_source_scroll): Remove unnecessary cast.
8472 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8473 cast.
8474 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8475 * tui/tui-regs.c (tui_display_registers_from)
8476 (tui_display_register): Remove unnecessary cast.
8477 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8478 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8479 (make_visible): Remove unnecessary cast.
8480 * tui/tui-winsource.c (tui_erase_source_content)
8481 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8482 unnecessary cast.
8483 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8484 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8485 * stabsread.c (read_type, read_array_type, read_range_type):
8486 Remove unnecessary cast.
8487 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8488 (parse_symbol, parse_type, upgrade_type, parse_external)
8489 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8490 unnecessary cast.
8491 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8492
8493 2019-06-16 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-data.c (tui_alloc_generic_win_info)
8496 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8497 checks.
8498
8499 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8500 Andrew Burgess <andrew.burgess@embecosm.com>
8501
8502 * f-typeprint.c (f_print_type): Don't return early for not
8503 associated or not allocated types.
8504 (f_type_print_varspec_suffix): Add print_rank parameter and print
8505 ranks of array types in case they dangling.
8506 (f_type_print_base): Add print_rank parameter.
8507
8508 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * NEWS: Mention new MI commands.
8511 * break-catch-throw.c (enum exception_event_kind): Move to
8512 breakpoint.h.
8513 (print_mention_exception_catchpoint): Output text as a single
8514 message.
8515 (catch_exception_command_1): Rename to...
8516 (catch_exception_event): ...this, make non-static, update header
8517 command, and change some parameter types.
8518 (catch_catch_command): Update for changes to
8519 catch_exception_command_1.
8520 (catch_throw_command): Likewise.
8521 (catch_rethrow_command): Likewise.
8522 * breakpoint.c (enum exception_event_kind): Delete.
8523 * breakpoint.h (enum exception_event_kind): Moved here from
8524 break-catch-throw.c.
8525 (catch_exception_event): Declare.
8526 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8527 (mi_cmd_catch_throw): New function.
8528 (mi_cmd_catch_rethrow): New function.
8529 (mi_cmd_catch_catch): New function.
8530 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8531 'catch-catch' entries.
8532 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8533 (mi_cmd_catch_rethrow): Declare.
8534 (mi_cmd_catch_catch): Declare.
8535
8536 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * annotate.c (annotate_source_line): Change return type to void,
8539 update implementation to match.
8540 * annotate.h (annotate_source_line): Change return type to void,
8541 update header comment.
8542 * stack.c (print_frame_info): Don't change what frame information
8543 is printed based on whether annotations are on or not.
8544
8545 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8548 (annotate_source): Make static.
8549 (annotate_source_line): Moved from source.c and renamed from
8550 identify_source_line. Update the return type.
8551 * annotate.h (annotate_source): Delete declaration.
8552 (annotate_source_line): Declaration moved from source.h, and
8553 renamed from identify_source_line. Return type updated.
8554 * source.c (identify_source_line): Moved to annotate.c and renamed
8555 to annotate_source_line.
8556 (info_line_command): Remove check of annotation_level.
8557 * source.h (identify_source_line): Move declaration to annotate.h
8558 and rename to annotate_source_line.
8559 * stack.c: Add 'annotate.h' include.
8560 (print_frame_info): Remove check of annotation_level before
8561 calling annotate_source_line.
8562
8563 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8564
8565 * source-cache.c (source_cache::get_plain_source_lines): Use
8566 open_source_file_with_line_charpos instead of just
8567 open_source_file, remove call to find_source_lines.
8568 (source_cache::get_source_lines): Likewise.
8569 * source.c (find_source_lines): Make static.
8570 (get_filename_and_charpos): Renamed into...
8571 (open_source_file_with_line_charpos): ..this along with changes to
8572 return a scoped_fd, and some other minor clean ups.
8573 (identify_source_line): Use open_source_file_with_line_charpos.
8574 (search_command_helper): Use open_source_file_with_line_charpos
8575 instead of just open_source_file, remove call to
8576 find_source_lines.
8577 * source.h (open_source_file_with_line_charpos): Declare new
8578 function.
8579 (find_source_lines): Delete declaration.
8580
8581 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * source.c (get_filename_and_charpos): Remove fullname
8584 parameter.
8585 (identify_source_line): Update call to get_filename_and_charpos.
8586
8587 2019-06-14 Tom Tromey <tromey@adacore.com>
8588
8589 PR gdb/24502:
8590 * ui-style.h (skip_ansi_escape): Update comment.
8591 * ui-file.h (class no_terminal_escape_file): New class.
8592 * ui-file.c (no_terminal_escape_file::write)
8593 (no_terminal_escape_file::puts): New methods.
8594 * cli/cli-logging.c (handle_redirections): Use
8595 no_terminal_escape_file.
8596
8597 2019-06-14 Tom Tromey <tromey@adacore.com>
8598
8599 * NEWS: Move convenience variable news above Python news.
8600
8601 2019-06-14 Tom Tromey <tom@tromey.com>
8602
8603 * gnulib: Move directory to top-level.
8604 * configure.ac: Don't configure gnulib.
8605 * configure: Rebuild.
8606 * common/common-defs.h: Use new path to gnulib.
8607 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8608 (GNULIB_H): Remove.
8609 (INCGNU): Look in new gnulib location.
8610 (HFILES_NO_SRCDIR): Remove gnulib files.
8611 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8612 (generated_files): Remove GNULIB_H.
8613 ($(LIBGNU), all-lib): Remove targets.
8614 (distclean): Don't mention GNULIB_BUILDDIR.
8615 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8616
8617 2019-06-14 Tom Tromey <tromey@adacore.com>
8618
8619 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8620 Warn if symbol file does not provide any symbols.
8621
8622 2019-06-14 Tom Tromey <tromey@adacore.com>
8623
8624 * source.c (find_and_open_source): Respect basenames_may_differ.
8625
8626 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8627
8628 * annotate.c (annotate_breakpoints_invalid): Make use of
8629 scoped_restore_terminal_state.
8630 (annotate_frames_invalid): Likewise.
8631
8632 2019-06-14 Tom Tromey <tromey@adacore.com>
8633
8634 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8635 allow assignment to an internalvar.
8636
8637 2019-06-14 Tom Tromey <tromey@adacore.com>
8638
8639 * ada-lex.l: Allow "_" in attribute names.
8640
8641 2019-06-14 Tom Tromey <tromey@adacore.com>
8642
8643 PR gdb/24653:
8644 * regcache.c (registers_changed): Don't call alloca.
8645 * top.c (execute_command): Don't call alloca.
8646
8647 2019-06-13 Pedro Alves <palves@redhat.com>
8648
8649 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8650 'expression'. When parsing an expression, error out if there's
8651 junk after "unlimited".
8652 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8653 (do_set_command): Adjust calls to is_unlimited_literal.
8654
8655 2019-06-13 Pedro Alves <palves@redhat.com>
8656
8657 * compile/compile.c (make_compile_options_def_group): Add braces
8658 around array_view initializer.
8659 * thread.c (make_thread_apply_all_options_def_group)
8660 (make_thread_apply_all_options_def_group): Likewise.
8661
8662 2019-06-13 Pedro Alves <palves@redhat.com>
8663
8664 * NEWS (New commands): Mention "maint test-options
8665 require-delimiter", "maint test-options unknown-is-error", "maint
8666 test-options unknown-is-operand" and "maint show
8667 test-options-completion-result".
8668 (New command options, command completion): New section.
8669 (Completion improvements): New section.
8670 Mention that you can abbreviate "unlimited".
8671
8672 2019-06-13 Pedro Alves <palves@redhat.com>
8673
8674 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8675 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8676 * unittests/cli-utils-selftests.c (test_parse_flags)
8677 (test_parse_flags_qcs): Delete.
8678 (test_cli_utils): Don't call deleted functions.
8679
8680 2019-06-13 Pedro Alves <palves@redhat.com>
8681
8682 * thread.c: Include "cli/cli-option.h".
8683 (tp_array_compar_ascending): Global.
8684 (tp_array_compar): Delete function.
8685 (tp_array_compar_ascending, tp_array_compar_descending): New
8686 functions.
8687 (ascending_option_def, qcs_flag_option_def)
8688 (thr_qcs_flags_option_defs)
8689 (make_thread_apply_all_options_def_group)
8690 (make_thread_apply_options_def_group): New.
8691 (thread_apply_all_command): Use gdb::option::process_options.
8692 (thread_apply_command_completer)
8693 (thread_apply_all_command_completer): New.
8694 (thread_apply_command): Use gdb::option::process_options.
8695 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8696 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8697 to generate help text of "thread apply". Adjust "taas"'s help.
8698 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8699 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8700
8701 2019-06-13 Pedro Alves <palves@redhat.com>
8702
8703 * thread.c (thread_apply_command): Check for invalid TID with
8704 isdigit instead of !isalpha.
8705
8706 2019-06-13 Pedro Alves <palves@redhat.com>
8707
8708 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8709 (validate_flags_qcs): New.
8710 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8711 (validate_flags_qcs): Declare.
8712 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8713 (make_frame_apply_options_def_group): New.
8714 (frame_apply_command_count): Process options with
8715 gdb::option::process_options.
8716 (frame_apply_completer): New.
8717 (frame_apply_level_completer, frame_apply_all_completer)
8718 (frame_apply_completer): New.
8719 (_initialize_stack): Update help of "frame apply", "frame apply
8720 level", "frame apply all" and "faas" to mention supported options
8721 and install command completers.
8722 * stack.h (frame_apply_all_completer): Declare.
8723 * thread.c: Include "stack.h".
8724 (tfaas_command): Add "--".
8725 (_initialize_thread): Update help "tfaas" to mention supported
8726 options and install command completer.
8727
8728 2019-06-13 Pedro Alves <palves@redhat.com>
8729
8730 * completer.c (complete_nested_command_line): New.
8731 (gdb_completion_word_break_characters_throw): Add assertion.
8732 * completer.h (complete_nested_command_line): Declare.
8733
8734 2019-06-13 Pedro Alves <palves@redhat.com>
8735
8736 * stack.c (parse_backtrace_qualifiers): New.
8737 (backtrace_command): Use it.
8738 (backtrace_command_completer): Complete on qualifiers.
8739
8740 2019-06-13 Pedro Alves <palves@redhat.com>
8741
8742 * frame.c: Include "cli/cli-option.h.
8743 (user_set_backtrace_options): New.
8744 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8745 Delete.
8746 (get_prev_frame): Adjust.
8747 (boolean_option_def, uinteger_option_def)
8748 (set_backtrace_option_defs): New.
8749 (_initialize_frame): Adjust and use
8750 gdb::option::add_setshow_cmds_for_options to install "set
8751 backtrace past-main" and "set backtrace past-entry".
8752 * frame.h: Include "cli/cli-option.h".
8753 (struct frame_print_options): Forward declare.
8754 (print_frame_arguments_all, print_frame_arguments_scalars)
8755 (print_frame_arguments_none): Declare.
8756 (print_entry_values): Delete declaration.
8757 (struct frame_print_options, user_frame_print_options): New.
8758 (struct set_backtrace_options): New.
8759 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8760 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8761 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8762 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8763 (list_args_or_locals): Add frame_print_options parameter.
8764 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8765 * python/py-framefilter.c (enumerate_args): Pass down
8766 USER_FRAME_PRINT_OPTIONS.
8767 * stack.c: Include "cli/cli-option.h".
8768 (print_frame_arguments_all, print_frame_arguments_scalars)
8769 (print_frame_arguments_none): Declare.
8770 (print_raw_frame_arguments, print_entry_values): Delete.
8771 (user_frame_print_options): New.
8772 (boolean_option_def, enum_option_def, frame_print_option_defs):
8773 New.
8774 (struct backtrace_cmd_options): New.
8775 (bt_flag_option_def): New.
8776 (backtrace_command_option_defs): New.
8777 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8778 (print_frame_arg, read_frame_arg, print_frame_args)
8779 (print_frame_info, print_frame): Add frame_print_options parameter
8780 and use it.
8781 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8782 (backtrace_command_1): Add frame_print_options and
8783 backtrace_cmd_options parameters and use them.
8784 (make_backtrace_options_def_group): New.
8785 (backtrace_command): Process command options with
8786 gdb::option::process_options.
8787 (backtrace_command_completer): New.
8788 (_initialize_stack): Extend "backtrace"'s help to mention
8789 supported options. Install completer for "backtrace".
8790 Install some settings commands with add_setshow_cmds_for_options.
8791
8792 2019-06-13 Pedro Alves <palves@redhat.com>
8793
8794 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8795 and that "set/show print raw frame-arguments" are now deprecated.
8796
8797 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8798 command.
8799 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8800 * stack.c (_initialize_stack): Install "set/show print
8801 raw-frame-arguments", and deprecate "set/show print raw
8802 frame-arguments".
8803 * valprint.c (_initialize_valprint): Deprecate "set/show print
8804 raw".
8805
8806 2019-06-13 Pedro Alves <palves@redhat.com>
8807
8808 * compile/compile.c (struct compile_options): New.
8809 (compile_flag_option_def, compile_command_option_defs)
8810 (make_compile_options_def_group): New.
8811 (compile_file_command): Handle options with
8812 gdb::option::process_options.
8813 (compile_file_command_completer): New function.
8814 (compile_code_command): Handle options with
8815 gdb::option::process_options.
8816 (compile_code_command_completer): New function.
8817 (_initialize_compiler): Install completers for "compile code" and
8818 "compile file". Mention available options in "compile code" and
8819 "compile code"'s help.
8820 * completer.c (advance_to_completion_word): New, factored out from
8821 ...
8822 (advance_to_expression_complete_word_point): ... this.
8823 (advance_to_filename_complete_word_point): New.
8824 * completer.h (advance_to_filename_complete_word_point): New
8825 declaration.
8826
8827 2019-06-13 Pedro Alves <palves@redhat.com>
8828
8829 * compile/compile.c: Include "cli/cli-option.h".
8830 (compile_print_value): Scope data pointer is now a
8831 value_print_options pointer; adjust.
8832 (compile_print_command): Process options. Scope data pointer is
8833 now a value_print_options pointer; adjust.
8834 (_initialize_compile): Update "compile print"'s help to include
8835 supported options. Install a completer for "compile print".
8836 * cp-valprint.c (show_vtblprint, show_objectprint)
8837 (show_static_field_print): Delete.
8838 (_initialize_cp_valprint): Don't install "set print
8839 static-members", "set print vtbl", "set print object" here.
8840 * printcmd.c: Include "cli/cli-option.h" and
8841 "common/gdb_optional.h".
8842 (print_command_parse_format): Rework to fill in a
8843 value_print_options instead of a format_data.
8844 (print_value): Change parameter type from format_data pointer to
8845 value_print_options reference. Adjust.
8846 (print_command_1): Process options. Adjust to pass down a
8847 value_print_options.
8848 (print_command_completer): New.
8849 (_initialize_printcmd): Install print_command_completer as
8850 handle_brkchars completer for the "print" command. Update
8851 "print"'s help to include supported options.
8852 * valprint.c: Include "cli/cli-option.h".
8853 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8854 here from cp-valprint.c.
8855 (boolean_option_def, uinteger_option_def)
8856 (value_print_option_defs, make_value_print_options_def_group):
8857 New. Use gdb::option::add_setshow_cmds_for_options to install
8858 "set print elements", "set print null-stop", "set print repeats",
8859 "set print pretty", "set print union", "set print array", "set
8860 print address", "set print symbol", "set print array-indexes".
8861 * valprint.h: Include <string> and "cli/cli-option.h".
8862 (make_value_print_options_def_group): Declare.
8863 (print_value): Change parameter type from format_data pointer to
8864 value_print_options reference.
8865 (print_command_completer): Declare.
8866
8867 2019-06-13 Pedro Alves <palves@redhat.com>
8868
8869 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8870 (COMMON_SFILES): Add maint-test-settings.c.
8871 * cli/cli-decode.c (boolean_enums): New global, factored out from
8872 ...
8873 (add_setshow_boolean_cmd): ... here.
8874 * cli/cli-decode.h (boolean_enums): Declare.
8875 * cli/cli-option.c: New file.
8876 * cli/cli-option.h: New file.
8877 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8878 factored out from ...
8879 (parse_cli_boolean_value(const char *)): ... this.
8880 (is_unlimited_literal): Change parameter type to pointer to
8881 pointer. Adjust and advance ARG pointer.
8882 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8883 (parse_cli_var_enum): New, factored out from ...
8884 (do_set_command): ... this. Adjust.
8885 * cli/cli-setshow.h (parse_cli_boolean_value)
8886 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8887 (parse_cli_var_enum): Declare.
8888 * cli/cli-utils.c: Include "cli/cli-option.h".
8889 (get_ulongest): New.
8890 * cli/cli-utils.h (get_ulongest): Declare.
8891 (check_for_argument): New overloads.
8892 * maint-test-options.c: New file.
8893
8894 2019-06-13 Pedro Alves <palves@redhat.com>
8895
8896 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8897 parse a range if "-" is at the end of the string.
8898
8899 2019-06-13 Pedro Alves <palves@redhat.com>
8900
8901 * cli/cli-setshow.c (parse_auto_binary_operation)
8902 (parse_cli_boolean_value): Don't allow "o".
8903
8904 2019-06-13 Pedro Alves <palves@redhat.com>
8905
8906 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8907 * NEWS: Mention maint test-settings KIND.
8908 * maint-test-settings.c: New file.
8909
8910 2019-06-13 Pedro Alves <palves@redhat.com>
8911
8912 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8913 completer.
8914 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8915 "set" completers.
8916
8917 2019-06-13 Pedro Alves <palves@redhat.com>
8918
8919 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8920 after item.
8921
8922 2019-06-13 Pedro Alves <palves@redhat.com>
8923
8924 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8925
8926 2019-06-13 Pedro Alves <palves@redhat.com>
8927
8928 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8929 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8930 call.
8931 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8932 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8933 calls.
8934 (check_for_argument): Skip spaces after argument.
8935
8936 2019-06-13 Pedro Alves <palves@redhat.com>
8937
8938 * thread.c (thread_apply_command): Adjust TID parsing.
8939 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8940 detected before end of string.
8941 (tid_is_in_list): Error out if LIST is invalid.
8942
8943 2019-06-13 Pedro Alves <palves@redhat.com>
8944
8945 * completer.c (complete_line_internal_1): Rewind completion word
8946 point.
8947 (completion_tracker::advance_custom_word_point_by): Change
8948 parameter type to int.
8949 * completer.h (completion_tracker::advance_custom_word_point_by):
8950 Likewise.
8951
8952 2019-06-13 Pedro Alves <palves@redhat.com>
8953
8954 * completer.c (advance_to_completion_word): Handle delimiters.
8955
8956 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8957
8958 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8959
8960 2019-06-11 Tom Tromey <tom@tromey.com>
8961
8962 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8963 (xmalloc_failed): Move to alloc.c.
8964 * alloc.c: New file.
8965 * Makefile.in (COMMON_SFILES): Add alloc.c.
8966
8967 2019-06-11 Tom Tromey <tom@tromey.com>
8968
8969 * nat/linux-waitpid.c: Don't include server.h.
8970 (linux_debug): Remove.
8971 (my_waitpid): Update.
8972
8973 2019-06-11 Tom Tromey <tromey@adacore.com>
8974
8975 * infcall.c (_initialize_infcall): Remove trailing newline from
8976 help.
8977 * user-regs.c (_initialize_user_regs): Remove trailing newline
8978 from help.
8979 * typeprint.c (_initialize_typeprint): Remove trailing newline
8980 from help.
8981 * reverse.c (_initialize_reverse): Remove trailing newlines from
8982 help.
8983 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8984 from help.
8985 * language.c (add_set_language_command): Remove trailing newline
8986 from help.
8987 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8988 help.
8989 * disasm.c (_initialize_disasm): Remove trailing newline from
8990 help.
8991 * top.c (init_main): Remove trailing newline from help.
8992 * interps.c (_initialize_interpreter): Remove trailing newline
8993 from help.
8994 * btrace.c (_initialize_btrace): Remove trailing newlines from
8995 help.
8996 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8997 from help.
8998 * python/python.c (_initialize_python): Remove trailing newline
8999 from help.
9000 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9001 help.
9002 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9003 from help. Reformat some text.
9004 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9005 from help.
9006 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9007 newline from help.
9008
9009 2019-06-11 Tom Tromey <tromey@adacore.com>
9010
9011 * darwin-nat.c (darwin_decode_exception_message)
9012 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9013
9014 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9015
9016 * valops.c (value_slice): Check for not allocated or not
9017 associated values.
9018
9019 2019-06-10 Tom de Vries <tdevries@suse.de>
9020
9021 PR gdb/24618
9022 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9023 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9024 invalid.
9025
9026 2019-06-10 Tom de Vries <tdevries@suse.de>
9027
9028 PR gdb/24611
9029 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9030 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9031
9032 2019-06-10 Tom de Vries <tdevries@suse.de>
9033
9034 PR symtab/24545
9035 * symtab.c (struct demangled_name_entry): Add language field.
9036 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9037 static minimal symbol". Set and use language field.
9038
9039 2019-06-10 Tom Tromey <tromey@adacore.com>
9040
9041 * ada-lang.c (_initialize_ada_language): Update help text.
9042
9043 2019-06-10 Tom Tromey <tromey@adacore.com>
9044
9045 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9046 with a newline.
9047 * guile/guile.c (handle_boot_error): Don't end warning with a
9048 newline.
9049 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9050 warning with a newline.
9051 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9052 newline.
9053 (s12z_frame_cache): Likewise.
9054 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9055 a newline.
9056 * solib-svr4.c (disable_probes_interface): Don't end warning with
9057 a newline.
9058 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9059 newline.
9060 * python/python.c (do_finish_initialization): Don't end warning
9061 with a newline.
9062
9063 2019-06-10 Tom Tromey <tom@tromey.com>
9064
9065 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9066 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9067 gdbpy_enter.
9068
9069 2019-06-10 Tom Tromey <tromey@adacore.com>
9070
9071 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9072 data.
9073 (elf_new_init): Don't call stabsread_new_init.
9074 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9075 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9076 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9077
9078 2019-06-10 Tom de Vries <tdevries@suse.de>
9079
9080 PR symtab/16264
9081 PR symtab/24517
9082 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9083
9084 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9085
9086 * source.c (find_and_open_source): Also rewrite relative file
9087 names.
9088
9089 2019-04-26 Amos Bird <amosbird@gmail.com>
9090
9091 * annotate.c (annotate_thread_exited): Add "thread-exited"
9092 annotation.
9093
9094 2019-06-06 Tom Tromey <tromey@adacore.com>
9095
9096 * maint.h (class scoped_command_stats): Use
9097 DISABLE_COPY_AND_ASSIGN.
9098 <print_time>: New method.
9099 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9100 print_time.
9101 (scoped_command_stats::print_time): New method.
9102
9103 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9106 instructions of lengths 6 or 8 bytes.
9107
9108 2019-06-04 Pedro Alves <palves@redhat.com>
9109
9110 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9111
9112 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9113 * breakpoint.c (condition_completer): Likewise.
9114 * cli/cli-dump.c (scan_expression): Likewise.
9115 * common/filestuff.c (mkdir_recursive): Likewise.
9116 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9117 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9118 (gdb_abspath): Likewise.
9119 * compile/compile-cplus-types.c
9120 (compile_cplus_instance::decl_name): Likewise.
9121 * completer.c (complete_explicit_location):
9122 (signal_completer, reg_or_group_completer_1): Likewise.
9123 * cp-support.c (cp_remove_params_if_any): Likewise.
9124 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9125 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9126 * infcmd.c (strip_bg_char): Likewise.
9127 * linespec.c (copy_token_string): Likewise.
9128 * mi/mi-main.c (output_cores): Likewise.
9129 * psymtab.c (psymtab_search_name):
9130 * symfile.c (test_set_ext_lang_command): Likewise.
9131 * target.c (target_fileio_read_stralloc): Likewise.
9132 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9133 * value.c (complete_internalvar): Likewise.
9134
9135 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9136
9137 Add objfile property to gdb.Type.
9138 * NEWS: Mention Python API addition.
9139 * python/py-type.c (typy_get_objfile): New method.
9140
9141 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9142
9143 * NEWS: Mention the new set|show style [title|highlight].
9144 Mention changes to "show style", "help" and "apropos".
9145
9146 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9147
9148 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9149 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9150 instead of print_help_for_command.
9151 (print_doc_of_command): New function.
9152 (help_list): Add 'apropos -v word' suggestion.
9153 (print_help_for_command): Style the command name using title style.
9154 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9155 (_initialize_cli_cmds): Describe -v in apropos_command help.
9156
9157 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9158
9159 * cli/cli-style.h (cli_style_option): Add name in constructor,
9160 add m_name class member, add constructor with intensity,
9161 add name class function.
9162 (cli_style_option::add_setshow_commands): Remove name argument.
9163 (highlight_style, title_style): New styles.
9164 * cli/cli-style.c (do_show): New function that shows a style
9165 characteristic styling the style name with itself.
9166 (set_style_name): New function.
9167 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9168 Update all callers according to the changes in cli/cli-style.h.
9169 * utils.h (fputs_highlighted): New function.
9170 * utils.c (fputs_highlighted): Likewise.
9171
9172 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9173
9174 * NEWS: Mention new pipe command and new convenience variables.
9175
9176 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9177
9178 * cli/cli-cmds.c (pipe_command): New function.
9179 (_initialize_cli_cmds): Call add_com for pipe_command.
9180 Define | as an alias for pipe.
9181 (exit_status_set_internal_vars): New function.
9182 (shell_escape): Call exit_status_set_internal_vars.
9183 cli/cli-decode.c (find_command_name_length): Recognize | as
9184 a single character command.
9185
9186 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9187
9188 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9189 top.c (execute_command_to_ui_file): New function, mostly a copy
9190 of execute_command_to_string.
9191 (execute_command_to_string): Implement by calling
9192 execute_command_to_ui_file.
9193
9194 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9195
9196 * top.h (saved_command_line): Remove declaration.
9197 * top.c (previous_saved_command_line, previous_repeat_arguments):
9198 New variables.
9199 (saved_command_line): Make static, define together with other
9200 'repeat variables'.
9201 (dont_repeat): Clear repeat_arguments.
9202 (repeat_previous, get_saved_command_line, save_command_line):
9203 New functions.
9204 (gdb_init): Initialize saved_command_line
9205 and previous_saved_command_line.
9206 * main.c (captured_main_1): Remove saved_command_line initialization.
9207 * event-top.c (handle_line_of_input): Update to use
9208 the new 'repeat' related functions instead of direct access to
9209 saved_command_line.
9210 * command.h (repeat_previous, get_saved_command_line,
9211 save_command_line): New declarations.
9212 (dont_repeat): Add comment.
9213
9214 2019-05-30 Tom Tromey <tromey@adacore.com>
9215
9216 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9217 Fix comment.
9218 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9219
9220 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9221
9222 PR cli/24587
9223 * completer.c (complete): Initialize variable word.
9224
9225 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9226
9227 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9228 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9229 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9230 'body' is NULL to the outter 'if', protecting the '!is_define'
9231 situation as well.
9232
9233 2019-05-29 Tom Tromey <tromey@adacore.com>
9234
9235 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9236 (dwarf_unknown): New function.
9237 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9238 (dwarf_type_encoding_name): Use dwarf_unknown.
9239
9240 2019-05-29 Tom Tromey <tromey@adacore.com>
9241
9242 PR c++/20020:
9243 * cp-valprint.c (cp_print_value_fields): Call
9244 cp_print_static_field inside "try".
9245
9246 2019-05-29 Tom Tromey <tromey@adacore.com>
9247
9248 * inflow.c (struct terminal_info): Add default operator=.
9249 * configure: Rebuild.
9250 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9251 -Wdeprecated-copy-dtor, -Wredundant-move.
9252
9253 2019-05-29 Tom Tromey <tromey@adacore.com>
9254
9255 * NEWS: Add entry.
9256 * infcmd.c (print_return_value_1): Handle finish_print
9257 option.
9258 (show_print_finish): New function.
9259 (_initialize_infcmd): Add "set/show print finish" commands.
9260 * valprint.c (user_print_options): Initialize new member.
9261 * valprint.h (struct value_print_options) <finish_print>: New
9262 member.
9263
9264 2019-05-28 Tom Tromey <tromey@adacore.com>
9265
9266 * ada-lang.c (ada_remove_Xbn_suffix)
9267 (find_old_style_renaming_symbol)
9268 (parse_old_style_renaming): Remove.
9269 (ada_find_renaming_symbol): Don't call
9270 find_old_style_renaming_symbol.
9271 (ada_is_renaming_symbol): Rename from
9272 ada_find_renaming_symbol. Remove "block" parameter. Return
9273 bool. Now static.
9274 (ada_read_var_value): Update and simplify.
9275 * ada-exp.y (write_var_or_type): Remove old code.
9276
9277 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9278
9279 PR gdb/25010
9280 * event-top.c: Remove include comment.
9281 * inflow.c (class scoped_ignore_sigttou): Move from here...
9282 * inflow.h (class scoped_ignore_sigttou): ...to here.
9283 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9284 * top.c: Remove include comment.
9285
9286 2019-05-27 Tom Tromey <tom@tromey.com>
9287
9288 * NEWS: Fix typo.
9289
9290 2019-05-22 Tom Tromey <tromey@adacore.com>
9291
9292 * target.c (target_follow_exec): Constify parameter.
9293 * target-delegates.c: Rebuild.
9294 * remote.c (remote_target::follow_exec): Constify parameter.
9295 * infrun.c (follow_exec): Constify parameter.
9296 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9297 (target_follow_exec): Likewise.
9298
9299 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9300
9301 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9302 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9303
9304 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9305
9306 * NEWS: Add debugredirect and testsuite sections.
9307
9308 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9309
9310 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9311 target descriptions using exclusively floating point register name
9312 aliases.
9313
9314 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 PR gdb/18644:
9317 * f-lang.c (build_fortran_types): Handle the case where
9318 gdbarch_floatformat_for_type returns a nullptr.
9319
9320 2019-05-21 Tom de Vries <tdevries@suse.de>
9321
9322 PR cli/24587
9323 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9324
9325 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 PR gdb/18644:
9328 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9329 16-byte floats.
9330 * i386-tdep.c (i386_floatformat_for_type): Use
9331 floatformats_ia64_quad for the 16-byte floating point component
9332 within a fortran 32-byte complex number.
9333
9334 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9335
9336 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9337 delete default constructor.
9338 (find_partial_die): Update to return const struct.
9339 (partial_die_parent_scope): Move variable declaration into scope
9340 of its use and change its type to auto.
9341 (guess_partial_die_structure_name): Likewise.
9342 (partial_die_info::fixup): Likewise.
9343
9344 2019-05-17 Tom Tromey <tromey@adacore.com>
9345
9346 * source.c (find_and_open_source): Remove cast.
9347
9348 2019-05-17 Tom Tromey <tromey@adacore.com>
9349
9350 * annotate.c (annotate_source): Make "filename" const.
9351 * annotate.h (annotate_source): Use const.
9352
9353 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9354
9355 * disasm.c (set_disassembler_options): Send errors to stderr.
9356
9357 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9358
9359 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9360 (cli_interp_base::set_logging): Check debug_redirect.
9361 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9362 * cli/cli-logging.c (debug_redirect): Add static variable.
9363 (pop_output_files): Add default param.
9364 (handle_redirections): Print debug setting.
9365 (show_logging_command): Likewise.
9366 (_initialize_cli_logging): Add debugredirect command.
9367 * interps.c (current_interp_set_logging): Add debug_redirect
9368 parameter.
9369 * interps.h (set_logging): Add debug_redirect parameter.
9370 (current_interp_set_logging): Likewise.
9371 * mi/mi-common.h: Likewise.
9372 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9373
9374 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9375 Tom Tromey <tromey@adacore.com>
9376
9377 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9378 directly.
9379 * cli/cli-interp.h (make_logging_output): Remove declaration.
9380 * cli/cli-logging.c (make_logging_output): Remove function.
9381 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9382 directly.
9383 * ui-file.c (tee_file::tee_file): Remove bools.
9384 (tee_file::~tee_file): Remove deletes.
9385 * ui-file.h (tee_file): Remove bools.
9386
9387 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9388
9389 * mi/mi-cmds.h (mi_cmd_complete): New function.
9390 * mi/mi-main.c (mi_cmd_complete): Likewise.
9391 * mi/mi-cmds.c: Define new MI command -complete.
9392 * NEWS: Mention new -complete command.
9393
9394 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9395
9396 * completer.h (complete): New function.
9397 * completer.c (complete): Likewise.
9398 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9399 function defined in completer.h.
9400
9401 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9402
9403 * MAINTAINERS (Write After Approval): Add myself.
9404
9405 2019-05-17 Tom de Vries <tdevries@suse.de>
9406
9407 PR gdb/24094
9408 * dwarf2read.c (struct cu_partial_die_info): New struct.
9409 (find_partial_die): Return cu_partial_die_info.
9410 (partial_die_parent_scope, guess_partial_die_structure_name)
9411 (partial_die_info::fixup): Handle new return type of find_partial_die.
9412
9413 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9414
9415 PR breakpoints/24541
9416 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9417 "std::string", simplifying the algorithm.
9418
9419 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9420
9421 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9422 (stap_static_probe_ops::get_probes): Likewise.
9423
9424 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9425
9426 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9427 '-')" and "else if".
9428 (stap_parse_single_operand): Join checks for
9429 "gdbarch_stap_parse_special_token_p" and
9430 "gdbarch_stap_parse_special_token" in the same "if" statement.
9431 Invert check when verifying for operation on register
9432 displacement.
9433
9434 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9435
9436 * stap-probe.c (stap_get_opcode): Update comment.
9437 (stap_get_expected_argument_type): Likewise.
9438 (handle_stap_probe): Likewise.
9439
9440 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9441
9442 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9443 return type to 'bool'. Adjust comment. Use 'bool' when
9444 appropriate.
9445 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9446 * stap-probe.c (stap_parse_argument_1): Likewise.
9447 (stap_is_operator): Likewise.
9448 (stap_is_generic_prefix): Likewise.
9449 (stap_is_register_prefix): Likewise.
9450 (stap_is_register_indirection_prefix): Likewise.
9451 (stap_is_integer_prefix): Likewise.
9452 (stap_generic_check_suffix): Likewise.
9453 (stap_check_integer_suffix): Likewise.
9454 (stap_check_register_suffix): Likewise.
9455 (stap_check_register_indirection_suffix): Likewise.
9456 (stap_parse_register_operand): Likewise.
9457 (stap_parse_single_operand): Likewise.
9458 (stap_parse_argument_1): Likewise.
9459 (stap_probe::get_argument_count): Likewise.
9460 (stap_is_operator): Likewise.
9461
9462 2019-05-16 Tom Tromey <tromey@adacore.com>
9463
9464 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9465 keyword to foreach.
9466
9467 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9468
9469 * linux-thread-db.c (try_thread_db_load_1): Change return type
9470 to bool.
9471 (try_thread_db_load): Likewise.
9472 (try_thread_db_load_from_pdir_1): Likewise.
9473 (try_thread_db_load_from_pdir): Likewise.
9474 (try_thread_db_load_from_sdir): Likewise.
9475 (try_thread_db_load_from_dir): Likewise.
9476 (thread_db_load_search): Likewise.
9477 (has_libpthread): Likewise.
9478 (thread_db_load): Likewise.
9479
9480 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9481
9482 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9483 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9484 NULL, and complain/return if that's the case.
9485
9486 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9487
9488 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9489 (advance, posn, abstract_read_memory): New functions.
9490 [struct mem_read_abstraction]: New struct.
9491 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9492
9493 2019-05-14 Tom Tromey <tromey@adacore.com>
9494
9495 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9496 value is not lval_memory.
9497
9498 2019-05-14 Tom Tromey <tromey@adacore.com>
9499
9500 * solib.c (info_sharedlibrary_command): Style the file name.
9501
9502 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9503
9504 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9505 (aarch64_vnv_type): Likewise.
9506 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9507 * common/tdesc.c: Likewise.
9508 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9509 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9510 * features/aarch64-fpu.xml: Add ieee half view.
9511 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9512 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9513 * gdbtypes.h (struct builtin_type): Likewise.
9514 (struct objfile_type): Likewise.
9515
9516 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9517
9518 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9519 typo.
9520 * location.h (string_to_event_location): Likewise.
9521
9522 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9523
9524 GDB 8.3 released.
9525
9526 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9527
9528 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9529 New variable declaration.
9530 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9531 New variable.
9532 (print_one_breakpoint): Use ui_out::test_flags and new global
9533 variable to compute use_fixed_output.
9534 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9535 Remove.
9536 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9537 (mi_multi_location_breakpoint_output_fixed): Remove.
9538 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9539 new variable.
9540 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9541 fix_multi_location_breakpoint_output flag if version >= 3.
9542 * ui-out.h (enum ui_out_flag)
9543 <fix_multi_location_breakpoint_output>: New enumerator.
9544
9545 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9548
9549 2019-05-10 Tom Tromey <tromey@adacore.com>
9550
9551 * ada-lang.c (catch_ada_completer): New function.
9552 (_initialize_ada_language): Use it.
9553
9554 2019-05-10 Tom Tromey <tromey@adacore.com>
9555
9556 * thread.c (print_thread_info): Make "requested_threads" const.
9557 * gdbthread.h (print_thread_info): Make "requested_threads"
9558 const.
9559 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9560 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9561
9562 2019-05-08 Tom Tromey <tom@tromey.com>
9563
9564 * gdbtypes.c (objfile_type_data): Change type.
9565 (objfile_type, _initialize_gdbtypes): Update.
9566
9567 2019-05-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9570 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9571 (_initialize_dwarf2_frame): Update.
9572
9573 2019-05-08 Tom Tromey <tom@tromey.com>
9574
9575 * objc-lang.c (objc_objfile_data): Change type.
9576 (find_methods): Update.
9577 (_initialize_objc_lang): Remove.
9578
9579 2019-05-08 Tom Tromey <tom@tromey.com>
9580
9581 * stabsread.c (rs6000_builtin_type_data): Change type.
9582 (rs6000_builtin_type, _initialize_stabsread): Update.
9583
9584 2019-05-08 Tom Tromey <tom@tromey.com>
9585
9586 * mips-tdep.c (mips_pdr_data): Remove.
9587 (_initialize_mips_tdep): Update.
9588
9589 2019-05-08 Tom Tromey <tom@tromey.com>
9590
9591 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9592 (hppa_init_objfile_priv_data, read_unwind_info)
9593 (find_unwind_entry, _initialize_hppa_tdep): Update.
9594
9595 2019-05-08 Tom Tromey <tom@tromey.com>
9596
9597 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9598 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9599 on obstack.
9600 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9601
9602 2019-05-08 Tom Tromey <tom@tromey.com>
9603
9604 * mdebugread.c (basic_type_data): Change type.
9605 (basic_type, _initialize_mdebugread): Update.
9606
9607 2019-05-08 Tom Tromey <tom@tromey.com>
9608
9609 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9610
9611 2019-05-08 Tom Tromey <tom@tromey.com>
9612
9613 * nto-tdep.c (nto_inferior_data_reg): Change type.
9614 (nto_inferior_data): Update.
9615 (nto_inferior_data_cleanup, nto_new_inferior_data)
9616 (_initialize_nto_tdep): Remove.
9617 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9618
9619 2019-05-08 Tom Tromey <tom@tromey.com>
9620
9621 * ada-lang.c (struct ada_inferior_data): Add initializers.
9622 (ada_inferior_data): Change type.
9623 (ada_inferior_data_cleanup): Remove.
9624 (get_ada_inferior_data, ada_inferior_exit)
9625 (struct ada_pspace_data): Add initializers, destructor.
9626 (ada_pspace_data_handle): Change type.
9627 (get_ada_pspace_data): Update.
9628 (ada_pspace_data_cleanup): Remove.
9629
9630 2019-05-08 Tom Tromey <tom@tromey.com>
9631
9632 * coffread.c (struct coff_symfile_info): Add initializers.
9633 (coff_objfile_data_key): Move lower. Change type.
9634 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9635 Update.
9636 (coff_free_info): Remove.
9637
9638 2019-05-08 Tom Tromey <tom@tromey.com>
9639
9640 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9641 (fbsd_pspace_data_handle): Move lower. Change type.
9642 (get_fbsd_pspace_data): Update.
9643 (fbsd_pspace_data_cleanup): Remove.
9644 (_initialize_fbsd_tdep): Update.
9645
9646 2019-05-08 Tom Tromey <tom@tromey.com>
9647
9648 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9649 (get_ada_tasks_pspace_data): Update.
9650 (ada_tasks_pspace_data_cleanup): Remove.
9651 (_initialize_tasks): Update.
9652 (ada_tasks_inferior_data_handle): Change type.
9653 (get_ada_tasks_inferior_data): Update.
9654 (ada_tasks_inferior_data_cleanup): Remove.
9655 (struct ada_tasks_pspace_data): Add initializers.
9656
9657 2019-05-08 Tom Tromey <tom@tromey.com>
9658
9659 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9660 * symfile-debug.c (debug_sym_get_probes): Change type.
9661 * stap-probe.c (handle_stap_probe):
9662 (stap_static_probe_ops::get_probes): Change type.
9663 * probe.h (class static_probe_ops) <get_probes>: Change type.
9664 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9665 (parse_probes_in_pspace): Update.
9666 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9667 Update.
9668 (any_static_probe_ops::get_probes): Change type.
9669 * elfread.c (elfread_data): New typedef.
9670 (probe_key): Change type.
9671 (elf_get_probes): Likewise. Update.
9672 (probe_key_free): Remove.
9673 (_initialize_elfread): Update.
9674 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9675 Change type.
9676 (dtrace_process_dof_probe, dtrace_process_dof)
9677 (dtrace_static_probe_ops::get_probe): Change type.
9678
9679 2019-05-08 Tom Tromey <tom@tromey.com>
9680
9681 * xcoffread.c (struct xcoff_symfile_info): Rename from
9682 coff_symfile_info. Add initializers.
9683 (xcoff_objfile_data_key): Move lower. Change type.
9684 (XCOFF_DATA): Rewrite.
9685 (xcoff_free_info): Remove.
9686 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9687 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9688 (xcoff_initial_scan): Update.
9689
9690 2019-05-08 Tom Tromey <tom@tromey.com>
9691
9692 * solib-svr4.c (struct svr4_info): Add initializers and
9693 destructor.
9694 <probes_table>: Now an htab_up.
9695 (solib_svr4_pspace_data): Change type.
9696 (free_probes_table): Simplify.
9697 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9698 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9699 (probes_table_remove_objfile_probes, register_solib_event_probe)
9700 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9701 (_initialize_svr4_solib): Update.
9702
9703 2019-05-08 Tom Tromey <tom@tromey.com>
9704
9705 * remote.c (remote_pspace_data): Change type.
9706 (remote_pspace_data_cleanup): Remove.
9707 (get_remote_exec_file, set_pspace_remote_exec_file)
9708 (_initialize_remote): Update.
9709
9710 2019-05-08 Tom Tromey <tom@tromey.com>
9711
9712 * breakpoint.c (breakpoint_objfile_key): Change type.
9713 (get_breakpoint_objfile_data): Update.
9714 (free_breakpoint_objfile_data): Remove.
9715 (_initialize_breakpoint): Update.
9716
9717 2019-05-08 Tom Tromey <tom@tromey.com>
9718
9719 * linux-tdep.c (struct linux_info): Add initializers.
9720 (linux_inferior_data): Move. Change type.
9721 (invalidate_linux_cache_inf): Update.
9722 (linux_inferior_data_cleanup): Remove.
9723 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9724
9725 2019-05-08 Tom Tromey <tom@tromey.com>
9726
9727 * auxv.c (auxv_inferior_data): Move. Change type.
9728 (auxv_inferior_data_cleanup): Remove.
9729 (invalidate_auxv_cache_inf): Rewrite.
9730 (get_auxv_inferior_data, _initialize_auxv): Update.
9731
9732 2019-05-08 Tom Tromey <tom@tromey.com>
9733
9734 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9735 (symfile_debug_objfile_data_key): Change type.
9736 (symfile_debug_installed, debug_qf_has_symbols)
9737 (debug_qf_find_last_source_symtab)
9738 (debug_qf_forget_cached_source_info)
9739 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9740 (debug_qf_print_stats, debug_qf_dump)
9741 (debug_qf_expand_symtabs_for_function)
9742 (debug_qf_expand_all_symtabs)
9743 (debug_qf_expand_symtabs_with_fullname)
9744 (debug_qf_map_matching_symbols)
9745 (debug_qf_expand_symtabs_matching)
9746 (debug_qf_find_pc_sect_compunit_symtab)
9747 (debug_qf_map_symbol_filenames)
9748 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9749 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9750 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9751 (debug_sym_read_linetable, debug_sym_relocate): Update.
9752 (symfile_debug_free_objfile): Remove.
9753 (install_symfile_debug_logging, _initialize_symfile_debug):
9754 Update.
9755
9756 2019-05-08 Tom Tromey <tom@tromey.com>
9757
9758 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9759 allocate_on_obstack.
9760 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9761 (get_dwarf2_per_objfile): Update.
9762 (set_dwarf2_per_objfile): Remove.
9763 (dwarf2_has_info, dwarf2_get_section_info): Update.
9764 (dwarf2_free_objfile): Remove.
9765 (_initialize_dwarf2_read): Update.
9766
9767 2019-05-08 Tom Tromey <tom@tromey.com>
9768
9769 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9770 initializers.
9771 <unsupported_script_warning_printed,
9772 script_not_found_warning_printed>: Now bool.
9773 (auto_load_pspace_data): Change type.
9774 (~auto_load_pspace_info): Rename from
9775 auto_load_pspace_data_cleanup.
9776 (get_auto_load_pspace_data, init_loaded_scripts_info)
9777 (clear_section_scripts, maybe_print_unsupported_script_warning)
9778 (maybe_print_script_not_found_warning, _initialize_auto_load):
9779 Update.
9780
9781 2019-05-08 Tom Tromey <tom@tromey.com>
9782
9783 * objfiles.c (objfile_pspace_info): Add destructor and
9784 initializers.
9785 (objfiles_pspace_data): Change type.
9786 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9787 (get_objfile_pspace_data): Update.
9788 (objfiles_bfd_data): Change type.
9789 (get_objfile_bfd_data): Update.
9790 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9791
9792 2019-05-08 Tom Tromey <tom@tromey.com>
9793
9794 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9795 Change type.
9796 (get_catch_syscall_inferior_data): Update.
9797 (catch_syscall_inferior_data_cleanup): Remove.
9798 (_initialize_break_catch_syscall): Update.
9799
9800 2019-05-08 Tom Tromey <tom@tromey.com>
9801
9802 * inflow.c (struct terminal_info): Add destructor and
9803 initializers.
9804 (inflow_inferior_data): Change type.
9805 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9806 (get_inflow_inferior_data, inflow_inferior_exit)
9807 (swap_terminal_info, _initialize_inflow): Update.
9808
9809 2019-05-08 Tom Tromey <tom@tromey.com>
9810
9811 * target-dcache.c (target_dcache_cleanup): Remove.
9812 (target_dcache_aspace_key): Change type.
9813 (target_dcache_init_p, target_dcache_invalidate)
9814 (target_dcache_get, target_dcache_get_or_init)
9815 (_initialize_target_dcache): Update.
9816 * dcache.h (struct dcache_deleter): New.
9817
9818 2019-05-08 Tom Tromey <tom@tromey.com>
9819
9820 * symtab.c (struct symbol_cache): Add destructor and
9821 initializers.
9822 (symbol_cache_key): Move. Change type.
9823 (make_symbol_cache, free_symbol_cache): Remove.
9824 (get_symbol_cache): Update.
9825 (symbol_cache_cleanup): Remove.
9826 (ALL_PSPACES, symbol_cache_flush)
9827 (maintenance_print_symbol_cache)
9828 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9829 Update.
9830
9831 2019-05-08 Tom Tromey <tom@tromey.com>
9832
9833 * symtab.c (struct main_info): Add destructor and initializers.
9834 (main_progspace_key): Move. Change type.
9835 (get_main_info): Update.
9836 (main_info_cleanup): Remove.
9837 (_initialize_symtab): Update.
9838
9839 2019-05-08 Tom Tromey <tom@tromey.com>
9840
9841 * registry.h (DECLARE_REGISTRY): Define the _key class.
9842
9843 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9844
9845 * NEWS: Merge two 'New commands' sections.
9846
9847 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9848
9849 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9850 parameter and use Ada language definition instead.
9851 (ada_val_print_ptr): Remove unused language parameter.
9852 (ada_val_print_num): Remove language parameter and use Ada language
9853 definition instead.
9854 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9855 parameter.
9856 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9857 parameter and use Ada language definition instead.
9858 (ada_val_print_1): Update all ada_val_print_xxx calls.
9859 Remove language parameter.
9860 (ada_val_print): Update ada_val_print_1 call.
9861
9862 2019-05-08 Tom Tromey <tromey@adacore.com>
9863
9864 * remote.c (remote_hw_watchpoint_limit)
9865 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9866 Now static.
9867
9868 2019-05-08 Tom Tromey <tromey@adacore.com>
9869
9870 * maint.c (_initialize_maint_cmds): Move initialization code to
9871 remote.c.
9872 (watchdog, show_watchdog): Move to remote.c.
9873 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9874 "watchdog" static.
9875 (_initialize_remote): Move initialization code from maint.c.
9876 * defs.h (watchdog): Don't declare.
9877
9878 2019-05-08 Tom Tromey <tromey@adacore.com>
9879
9880 * tui/tui-interp.c: Include main.h.
9881 * interps.c: Include main.h.
9882 * main.h (interpreter_p): Declare.
9883 * defs.h (interpreter_p): Don't declare.
9884
9885 2019-05-08 Tom Tromey <tromey@adacore.com>
9886
9887 * dwarf2loc.c: Include dwarf2read.h.
9888 * defs.h (read_unsigned_leb128): Don't declare.
9889 * dwarf2read.h (read_unsigned_leb128): Declare.
9890
9891 2019-05-08 Tom Tromey <tromey@adacore.com>
9892
9893 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9894 method.
9895
9896 2019-05-08 Tom Tromey <tromey@adacore.com>
9897
9898 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9899 when no wrap column is set.
9900
9901 2019-05-08 Tom Tromey <tromey@adacore.com>
9902
9903 * c-lang.c (c_get_string): Handle non-C-style arrays.
9904
9905 2019-05-08 Tom Tromey <tromey@adacore.com>
9906
9907 * typeprint.c (print_offset_data::update): Print the bit offset,
9908 not the number of bits remaining.
9909
9910 2019-05-08 Tom Tromey <tromey@adacore.com>
9911
9912 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9913 padding at end of comment.
9914
9915 2019-05-08 Tom Tromey <tromey@adacore.com>
9916
9917 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9918 Compare main types.
9919
9920 2019-05-06 Tom Tromey <tom@tromey.com>
9921
9922 * common/scoped_mmap.c: Include common-defs.h.
9923 * common/scoped_mmap.h: Don't include config.h.
9924
9925 2019-05-04 Tom Tromey <tom@tromey.com>
9926
9927 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9928 (struct aarch64_call_info): Add initializers.
9929 <si>: Now a std::vector.
9930 (pass_on_stack, aarch64_push_dummy_call): Update.
9931
9932 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9933 Tom Tromey <tom@tromey.com>
9934
9935 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9936 (ppc_threads): Now a std::vector. Now static.
9937 (hwdebug_find_thread_points_by_tid)
9938 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9939 Update.
9940
9941 2019-05-04 Tom Tromey <tom@tromey.com>
9942
9943 * arc-tdep.c (arc_tdesc_init): Return bool.
9944
9945 2019-05-04 Tom Tromey <tom@tromey.com>
9946
9947 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9948 Use gdb_assert_not_reached.
9949
9950 2019-05-04 Tom Tromey <tom@tromey.com>
9951
9952 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9953 "false".
9954
9955 2019-05-04 Tom Tromey <tom@tromey.com>
9956
9957 * arc-tdep.c (arc_tdesc_init): Use bool.
9958
9959 2019-05-04 Tom Tromey <tom@tromey.com>
9960
9961 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9962
9963 2019-05-04 Tom Tromey <tom@tromey.com>
9964
9965 * cli/cli-cmds.c (valid_command_p): Return bool.
9966
9967 2019-05-04 Tom Tromey <tom@tromey.com>
9968
9969 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9970 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9971
9972 2019-05-04 Raul Tambre <raul@tambre.ee>
9973
9974 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9975 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9976 operator for comparison.
9977
9978 2019-05-04 Tom Tromey <tom@tromey.com>
9979
9980 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9981 (lookup_partial_symbol, print_partial_symbols)
9982 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9983 (psymbol_compare): Update.
9984 (add_psymbol_to_bcache): Clear the entire psymbol.
9985 (maintenance_check_psymtabs): Update.
9986 * psympriv.h (struct partial_symbol): Don't derive from
9987 general_symbol_info.
9988 <obj_section, unrelocated_address, address,
9989 set_unrelocated_address>: Update.
9990 <ginfo>: New member.
9991 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9992 (debug_names::write_psymbols): Update.
9993
9994 2019-05-04 Tom de Vries <tdevries@suse.de>
9995
9996 * contrib/cc-with-tweaks.sh: Support -n arg.
9997
9998 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9999
10000 * corelow.c (core_target::detach): Ensure frame cache and
10001 register caches are cleared.
10002 inferior.c (exit_inferior_1): Likewise.
10003
10004 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10005 Tom Tromey <tom@tromey.com>
10006
10007 * dictionary.c (collate_pending_symbols_by_language): Remove
10008 "struct" from foreach.
10009 * symtab.c (lookup_global_symbol_from_objfile)
10010 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10011 foreach.
10012 * ser-tcp.c (net_open): Remove "struct" from foreach.
10013 * objfiles.c (objfile_relocate, objfile_rebase)
10014 (objfile_has_symbols): Remove "struct" from foreach.
10015 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10016 from foreach.
10017 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10018 foreach.
10019 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10020 "struct" from foreach.
10021 * ada-lang.c (create_excep_cond_exprs)
10022 (ada_exception_catchpoint_cond_string): Remove "struct" from
10023 foreach.
10024
10025 2019-05-03 Tom Tromey <tromey@adacore.com>
10026
10027 * ada-exp.y (convert_char_literal): Check suffix of each
10028 enumerator.
10029
10030 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10031
10032 PR ada/21406:
10033 * ada-exp.y (yywrap): Don't define.
10034 * ada-lex.l (%option): Add noyywrap
10035 (yywrap): Remove.
10036
10037 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10038
10039 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10040 _WIN32_WINNT to the XP level, unless already defined to a higher
10041 level.
10042
10043 * unittests/parse-connection-spec-selftests.c:
10044 * ser-tcp.c:
10045 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10046 override.
10047
10048 * symfile.c (find_separate_debug_file): Remove colon from the
10049 drive spec of DOS/Windows file names of the target, so that the
10050 file name produced from DEBUGDIR and the target's directory will
10051 be valid on DOS/Windows systems.
10052
10053 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10054
10055 * rust-lang.c (val_print_struct): Handle printing structures
10056 containing strings.
10057
10058 2019-05-02 Tom Tromey <tromey@adacore.com>
10059
10060 * valarith.c (_initialize_valarith): Remove.
10061
10062 2019-05-01 Tom Tromey <tromey@adacore.com>
10063
10064 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10065 bitfields.
10066
10067 2019-05-01 Tom Tromey <tromey@adacore.com>
10068
10069 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10070 for big-endian copies.
10071
10072 2019-04-30 Ali Tamur <tamur@google.com>
10073 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10074 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10075 (read_3_bytes): New function.
10076
10077 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10078
10079 * windows-nat.c (main_thread_id): Delete.
10080 (handle_output_debug_string): Replace main_thread_id by
10081 current_event.dwThreadId.
10082 (fake_create_process): Likewise.
10083 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10084 Do not set main_thread_id.
10085 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10086 current_event.dwThreadId.
10087 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10088
10089 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10090
10091 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10092 Use current_event.dwThreadId instead of main_thread_id.
10093
10094 2019-04-30 Tom Tromey <tromey@adacore.com>
10095
10096 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10097 (create_excep_cond_exprs): Iterate over program spaces.
10098 (ada_exception_catchpoint_cond_string): Examine all minimal
10099 symbols for exception types.
10100
10101 2019-04-30 Tom Tromey <tromey@adacore.com>
10102
10103 PR c++/24470:
10104 * dwarf2read.c (process_structure_scope): Handle case where type
10105 has template parameters but no symbol was created.
10106
10107 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10108 Chris January <chris.january@arm.com>
10109
10110 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10111 qualifier.
10112 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10113
10114 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10115
10116 * f-typeprint.c (f_print_type): Update rules for printing
10117 whitespace.
10118 (f_type_print_varspec_suffix): Likewise.
10119
10120 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10121 Chris January <chris.january@arm.com>
10122
10123 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10124 function arguments.
10125
10126 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 * f-lang.c (build_fortran_types): Change name of void type to
10129 lower case.
10130 * f-typeprint.c (f_type_print_base): Print the name of the void
10131 type, rather than a fixed string.
10132 * f-valprint.c (f_decorations): Use lower case void string.
10133
10134 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10135 Chris January <chris.january@arm.com>
10136
10137 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10138 types for Fortran.
10139
10140 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10141 Chris January <chris.january@arm.com>
10142 David Lecomber <david.lecomber@arm.com>
10143
10144 * f-exp.y (BINOP_INTRINSIC): New token.
10145 (exp): New parser rule handling BINOP_INTRINSIC.
10146 (f77_keywords): Add new builtin procedures.
10147 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10148 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10149 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10150 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10151 (print_unop_subexp_f): New function.
10152 (print_binop_subexp_f): New function.
10153 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10154 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10155 (dump_subexp_body_f): Likewise.
10156 (operator_check_f): Likewise.
10157 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10158 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10159
10160 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10163 UNOP_KIND.
10164 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10165 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10166 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10167 (operator_length_f): New fuction.
10168 (print_subexp_f): New function.
10169 (op_name_f): New function.
10170 (dump_subexp_body_f): New function.
10171 (operator_check_f): New function.
10172 (exp_descriptor_f): Replace standard expression handling functions
10173 with new functions.
10174 * gdb/fortran-operator.def: New file.
10175 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10176 * gdb/std-operator.def: Remove UNOP_KIND.
10177
10178 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10179
10180 * std-operator.def: Remove unbalanced, stray double quote
10181 character.
10182
10183 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10184 Chris January <chris.january@arm.com>
10185 Daniel Everett <daniel.everett@arm.com>
10186 Nick Forrington <nick.forrington@arm.com>
10187 Richard Bunt <richard.bunt@arm.com>
10188
10189 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10190 of depth when printing anonymous structs or unions.
10191 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10192 Don't print either the top-level value, or the children if the
10193 max-depth is exceeded.
10194 (ppscm_print_children): When printing the key of a map, allow one
10195 extra level of depth.
10196 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10197 print either the top-level value, or the children if the max-depth
10198 is exceeded.
10199 (print_children): When printing the key of a map, allow one extra
10200 level of depth.
10201 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10202 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10203 (user_print_options): Initialise max_depth field.
10204 (val_print_scalar_or_string_type_p): New function.
10205 (val_print): Check to see if the max depth has been reached.
10206 (val_print_check_max_depth): Define new function.
10207 (show_print_max_depth): New function.
10208 (_initialize_valprint): Add 'print max-depth' option.
10209 * valprint.h (struct value_print_options) <max_depth>: New field.
10210 (val_print_check_max_depth): Declare new function.
10211 * NEWS: Document new feature.
10212
10213 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10214
10215 * ada-lang.c (ada_language_defn): Initialise new field.
10216 * c-lang.c (c_is_string_type_p): New function.
10217 (c_language_defn): Initialise new field.
10218 (cplus_language_defn): Initialise new field.
10219 (asm_language_defn): Initialise new field.
10220 (minimal_language_defn): Initialise new field.
10221 * c-lang.h (c_is_string_type_p): Declare new function.
10222 * d-lang.c (d_language_defn): Initialise new field.
10223 * f-lang.c (f_is_string_type_p): New function.
10224 (f_language_defn): Initialise new field.
10225 * go-lang.c (go_is_string_type_p): New function.
10226 (go_language_defn): Initialise new field.
10227 * language.c (default_is_string_type_p): New function.
10228 (unknown_language_defn): Initialise new field.
10229 (auto_language_defn): Initialise new field.
10230 * language.h (struct language_defn) <la_is_string_type_p>: New
10231 member variable.
10232 (default_is_string_type_p): Declare new function.
10233 * m2-lang.c (m2_language_defn): Initialise new field.
10234 * objc-lang.c (objc_language_defn): Initialise new field.
10235 * opencl-lang.c (opencl_language_defn): Initialise new field.
10236 * p-lang.c (pascal_is_string_type_p): New function.
10237 (pascal_language_defn): Initialise new field.
10238 * rust-lang.c (rust_is_string_type_p): New function.
10239 (rust_language_defn): Initialise new field.
10240
10241 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10244 New field.
10245 * ada-lang.c (ada_language_defn): Initialise new field.
10246 * c-lang.c (c_language_defn): Likewise.
10247 (cplus_language_defn): Likewise.
10248 (asm_language_defn): Likewise.
10249 (minimal_language_defn): Likewise.
10250 * d-lang.c (d_language_defn): Likewise.
10251 * f-lang.c (f_language_defn): Likewise.
10252 * go-lang.c (go_language_defn): Likewise.
10253 * language.c (unknown_language_defn): Likewise.
10254 (auto_language_defn): Likewise.
10255 * m2-lang.c (m2_language_defn): Likewise.
10256 * objc-lang.c (objc_language_defn): Likewise.
10257 * opencl-lang.c (opencl_language_defn): Likewise.
10258 * p-lang.c (pascal_language_defn): Likewise.
10259 * rust-lang.c (rust_language_defn): Likewise.
10260
10261 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * ada-lang.c (ada_is_character_type): Change return type to bool.
10264 (ada_is_string_type): Likewise.
10265 * ada-lang.h (ada_is_character_type): Update declaration
10266 (ada_is_string_type): Likewise.
10267
10268 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10269
10270 Support style in 'frame|thread apply'
10271
10272 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10273 * record.c (record_start, record_stop): Update callers of
10274 execute_command_to_string with false.
10275 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10276 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10277 methods.
10278 (class string_file): New constructor with term_out parameter.
10279 Override methods term_out and can_emit_style_escape. New member
10280 term_out.
10281 (class stdio_file): Override can_emit_style_escape.
10282 (class tee_file): Override term_out and can_emit_style_escape.
10283 * utils.h (can_emit_style_escape): Remove.
10284 * utils.c (can_emit_style_escape): Likewise.
10285 Update all callers of can_emit_style_escape (SOMESTREAM) to
10286 SOMESTREAM->can_emit_style_escape.
10287 * source-cache.c (source_cache::get_source_lines): Likewise.
10288 * stack.c (frame_apply_command_count): Call execute_command_to_string
10289 passing the term_out characteristic of the current gdb_stdout.
10290 * thread.c (thr_try_catch_cmd): Likewise.
10291 * top.c (execute_command_to_string): pass term_out parameter
10292 to construct the string_file for the command output.
10293 * ui-file.c (term_cli_styling): New function (most code moved
10294 from utils.c can_emit_style_escape).
10295 (string_file::string_file, string_file::can_emit_style_escape,
10296 stdio_file::can_emit_style_escape, tee_file::term_out,
10297 tee_file::can_emit_style_escape): New functions.
10298
10299 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10300
10301 * NEWS: Mention the new set|show may-call-functions.
10302 * infcall.c (may_call_functions_p): New variable.
10303 (show_may_call_functions_p): New function.
10304 (call_function_by_hand_dummy): Throws an error if not
10305 may-call-functions.
10306 (_initialize_infcall): Call add_setshow_boolean_cmd for
10307 may-call-functions.
10308
10309 2019-04-25 Keith Seitz <keiths@redhat.com>
10310
10311 PR c++/24367
10312 * cp-support.c (inspect_type): Don't attempt substitutions
10313 of symbol with the same name.
10314
10315 2019-04-25 Tom Tromey <tromey@adacore.com>
10316
10317 PR gdb/24475:
10318 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10319 static.
10320
10321 2019-04-25 Tom Tromey <tromey@adacore.com>
10322
10323 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10324 rvalue reference.
10325 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10326 (gdb_xml_parser::parse): Use std::move.
10327 * python/python-internal.h (gdbpy_convert_exception): Take a const
10328 reference.
10329 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10330 std::move.
10331 * python/py-utils.c (gdbpy_convert_exception): Take a const
10332 reference.
10333 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10334 Use std::move.
10335 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10336 Use std::move.
10337 * mi/mi-main.c (mi_print_exception): Take a const reference.
10338 * main.c (handle_command_errors): Take a const reference.
10339 * linespec.c (parse_linespec): Use std::move.
10340 * infcall.c (run_inferior_call): Use std::move.
10341 (call_function_by_hand_dummy): Use std::move.
10342 * exec.c (try_open_exec_file): Use std::move.
10343 * exceptions.h (exception_print, exception_fprintf)
10344 (exception_print_same): Update.
10345 * exceptions.c (print_exception, exception_print)
10346 (exception_fprintf, exception_print_same): Change parameters to
10347 const reference.
10348 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10349 * common/new-op.c: Use std::move.
10350 * common/common-exceptions.h (struct gdb_exception): Add move
10351 constructor.
10352 (struct gdb_exception_error, struct gdb_exception_quit, struct
10353 gdb_quit_bad_alloc): Change constructor to move constructor.
10354 (throw_exception): Change parameter to rvalue reference.
10355 * common/common-exceptions.c (throw_exception): Take rvalue
10356 reference.
10357 * cli/cli-interp.c (safe_execute_command): Use std::move.
10358 * breakpoint.c (insert_bp_location, location_to_sals): Use
10359 std::move.
10360
10361 2019-04-25 Tom Tromey <tromey@adacore.com>
10362
10363 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10364 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10365 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10366 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10367 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10368 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10369 guile/scm-value.c: Use unpack.
10370 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10371 gdbscm_gdb_exception.
10372 (gdbscm_throw_gdb_exception): Likewise.
10373 (struct gdbscm_gdb_exception): New.
10374 (unpack): New function.
10375 (gdbscm_wrap): Use unpack.
10376
10377 2019-04-25 Tom Tromey <tromey@adacore.com>
10378
10379 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10380 (gdb_rl_callback_handler): Use std::move.
10381 * common/common-exceptions.h (struct gdb_exception): Add move
10382 assignment operator.
10383 (throw_exception_sjlj): Change "exception" to const reference.
10384 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10385 (throw_exception_sjlj): Change "exception" to const reference.
10386
10387 2019-04-25 Tom Tromey <tromey@adacore.com>
10388
10389 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10390 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10391 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10392 Update.
10393 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10394 Update.
10395 * mi/mi-interp.c (mi_interp::exec): Update.
10396 * linespec.c (parse_linespec): Update.
10397 * infcall.c (run_inferior_call): Update.
10398 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10399 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10400 (gdbscm_lookup_global_symbol): Update.
10401 * guile/scm-param.c (gdbscm_parameter_value): Update.
10402 * guile/scm-frame.c (gdbscm_frame_read_register)
10403 (gdbscm_frame_read_var): Update.
10404 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10405 * exec.c (try_open_exec_file): Update.
10406 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10407 (gdb_rl_callback_handler): Update.
10408 * common/common-exceptions.h (exception_none): Don't declare.
10409 * common/common-exceptions.c (exception_none): Don't define.
10410 (struct catcher) <exception>: Update.
10411 * cli/cli-interp.c (safe_execute_command): Update.
10412 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10413
10414 2019-04-25 Ali Tamur <tamur@google.com>
10415
10416 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10417 (read_attribute_value): Likewise.
10418 (dwarf2_read_addr_index): Update comment.
10419 (read_str_index): Add DW_FORM_strx.
10420 (dwarf2_string_attr): Likewise.
10421 (dwarf2_const_value_attr): Likewise.
10422 (dump_die_shallow): Likewise.
10423 (dwarf2_fetch_constant_bytes): Likewise.
10424 (skip_form_bytes): Likewise.
10425 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10426
10427 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10428
10429 PR corefiles/11608
10430 PR corefiles/18187
10431 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10432 OFFSET. Verify if current mapping contains an ELF header.
10433 (linux_find_memory_regions_full): Adjust call to
10434 dump_mapping_p.
10435
10436 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10437 Kang Li <kanglictf@gmail.com>
10438
10439 PR gdb/21600
10440
10441 * dwarf2-frame.c (read_initial_length): Be consistent about using
10442 unsigned representation of length.
10443 (decode_frame_entry_1): Likewise. Check for wraparound of
10444 end pointer as well as buffer overflow.
10445
10446 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10447
10448 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10449 "vq".
10450
10451 2019-04-24 Tom Tromey <tromey@adacore.com>
10452
10453 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10454
10455 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10456
10457 * s12z-tdep.c (s12z_unwind_pc): Delete.
10458 (s12z_unwind_sp): Delete.
10459 (s12z_gdbarch_init): Don't register deleted functions with
10460 gdbarch.
10461
10462 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10463
10464 * rl78-tdep.c (rl78_unwind_sp): Delete.
10465 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10466
10467 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10468
10469 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10470 (xstormy16_unwind_pc): Delete.
10471 (xstormy16_dummy_id): Delete.
10472 (xstormy16_gdbarch_init): Don't register deleted functions with
10473 gdbarch.
10474
10475 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10476
10477 * vax-tdep.c (vax_unwind_pc): Delete.
10478 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10479
10480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10481
10482 * v850-tdep.c (v850_unwind_sp): Delete.
10483 (v850_unwind_pc): Delete.
10484 (v850_dummy_id): Delete.
10485 (v850_gdbarch_init): Don't register deleted functions with
10486 gdbarch.
10487
10488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10489
10490 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10491 (tilegx_unwind_pc): Delete.
10492 (tilegx_unwind_dummy_id): Delete.
10493 (tilegx_gdbarch_init): Don't register deleted functions with
10494 gdbarch.
10495
10496 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10497
10498 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10499 (tic6x_dummy_id): Delete.
10500 (tic6x_gdbarch_init): Don't register deleted functions with
10501 gdbarch.
10502
10503 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10504
10505 * sparc-tdep.c (sparc_unwind_pc): Delete.
10506 (sparc32_gdbarch_init): Don't register deleted function with
10507 gdbarch.
10508
10509 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10510
10511 * sh-tdep.c (sh_unwind_sp): Delete.
10512 (sh_unwind_pc): Delete.
10513 (sh_dummy_id): Delete.
10514 (sh_gdbarch_init): Don't register deleted functions with
10515 gdbarch.
10516
10517 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10518
10519 * score-tdep.c (score_unwind_sp): Delete.
10520 (score_unwind_pc): Delete.
10521 (score_dummy_id): Delete.
10522 (score_gdbarch_init): Don't register deleted functions with
10523 gdbarch.
10524
10525 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10526
10527 * rx-tdep.c (rx_unwind_pc): Delete.
10528 (rx_unwind_sp): Delete.
10529 (rx_dummy_id): Delete.
10530 (rx_gdbarch_init): Don't register deleted functions with
10531 gdbarch. Update comment.
10532
10533 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10534
10535 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10536 (rs6000_dummy_id): Delete.
10537 (rs6000_gdbarch_init): Don't register deleted functions with
10538 gdbarch.
10539
10540 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * or1k-tdep.c (or1k_dummy_id): Delete.
10543 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10544
10545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * nios2-tdep.c (nios2_dummy_id): Delete.
10548 (nios2_unwind_sp): Delete.
10549 (nios2_gdbarch_init): Don't register deleted functions with
10550 gdbarch.
10551
10552 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10553
10554 * nds32-tdep.c (nds32_dummy_id): Delete.
10555 (nds32_unwind_pc): Delete.
10556 (nds32_unwind_sp): Delete.
10557 (nds32_gdbarch_init): Don't register deleted functions with
10558 gdbarch.
10559
10560 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10561
10562 * msp430-tdep.c (msp430_unwind_pc): Delete.
10563 (msp430_unwind_sp): Delete.
10564 (msp430_dummy_id): Delete.
10565 (msp430_gdbarch_init): Don't register deleted functions with
10566 gdbarch.
10567
10568 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10569
10570 * moxie-tdep.c (moxie_unwind_sp): Delete.
10571 (moxie_unwind_pc): Delete.
10572 (moxie_dummy_id): Delete.
10573 (moxie_gdbarch_init): Don't register deleted functions with
10574 gdbarch.
10575
10576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10579 (mn10300_unwind_pc): Delete.
10580 (mn10300_unwind_sp): Delete.
10581 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10582 mn10300_unwind_sp.
10583 (mn10300_frame_unwind_init): Don't register deleted functions with
10584 gdbarch.
10585
10586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * mep-tdep.c (mep_unwind_pc): Delete.
10589 (mep_unwind_sp): Delete.
10590 (mep_dummy_id): Delete.
10591 (mep_gdbarch_init): Don't register deleted functions with
10592 gdbarch.
10593
10594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10595
10596 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10597 (m68hc11_unwind_sp): Delete.
10598 (m68hc11_gdbarch_init): Don't register deleted functions with
10599 gdbarch.
10600
10601 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10602
10603 * m32r-tdep.c (m32r_unwind_sp): Delete.
10604 (m32r_unwind_pc): Delete.
10605 (m32r_dummy_id): Delete.
10606 (m32r_gdbarch_init): Don't register deleted functions with
10607 gdbarch.
10608
10609 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * m32c-tdep.c (m32c_unwind_pc): Delete.
10612 (m32c_unwind_sp): Delete.
10613 (m32c_dummy_id): Delete.
10614 (m32c_gdbarch_init): Don't register deleted functions with
10615 gdbarch.
10616
10617 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10618
10619 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10620 (lm32_unwind_pc): Delete.
10621 (lm32_dummy_id): Delete.
10622 (lm32_gdbarch_init): Don't register deleted functions with
10623 gdbarch.
10624
10625 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10626
10627 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10628 (iq2000_unwind_pc): Delete.
10629 (iq2000_dummy_id): Delete.
10630 (iq2000_gdbarch_init): Don't register deleted functions with
10631 gdbarch.
10632
10633 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * nds32-tdep.c (nds32_type_align): Delete.
10636 (nds32_push_dummy_call): Use type_align instead.
10637
10638 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * arm-tdep.c (arm_type_align): Only handle vector override case.
10641 (arm_push_dummy_call): Use type_align.
10642 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10643
10644 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10647 case.
10648 (pass_on_stack): Use type_align.
10649 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10650 function.
10651
10652 2019-04-23 Tom Tromey <tromey@adacore.com>
10653
10654 * dwarf2read.c (line_header::file_name_at): Remove unused
10655 overload.
10656
10657 2019-04-23 Tom de Vries <tdevries@suse.de>
10658
10659 PR gdb/24438
10660 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10661 invocation.
10662
10663
10664 2019-03-27 Ali Tamur <tamur@google.com>
10665
10666 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10667 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10668 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10669 (dwarf_expr_context::get_addr_index): Likewise
10670 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10671 (symbol_needs_eval_context::get_addr_index): Likewise
10672 (disassemble_dwarf_expression): Add DW_OP_addrx
10673 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10674 (read_cutu_die_from_dwo): Update comment
10675 (skip_one_die): Add DW_FORM_addrx
10676 (read_attribute_value): Likewise
10677 (var_decode_location): Add DW_OP_addrx
10678 (dwarf2_const_value_attr): Add DW_FORM_addrx
10679 (dump_die_shallow): Likewise
10680 (dwarf2_fetch_constant_bytes): Likewise
10681 (decode_locdesc): Add DW_OP_addrx
10682 (skip_form_bytes): Add DW_FORM_addrx
10683
10684 2019-04-22 Ali Tamur <tamur@google.com>
10685
10686 * MAINTAINERS (Write After Approval): Add self.
10687
10688 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10691 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10692 (open_symbol_file_object): Likewise.
10693 (svr4_default_sos): Add info parameter.
10694 (svr4_read_so_list): Likewise.
10695 (svr4_current_sos_direct): Adjust functions calls to pass down
10696 info.
10697 (svr4_current_sos_1): Add info parameter.
10698 (svr4_current_sos): Call get_svr4_info, pass info down to
10699 svr4_current_sos_1.
10700 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10701 get_svr4_info.
10702 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10703 get_svr4_info.
10704 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10705 to get_svr4_info.
10706 (probes_table_remove_objfile_probes): Likewise.
10707 (register_solib_event_probe): Add info parameter.
10708 (solist_update_incremental): Pass info parameter down to
10709 svr4_read_so_list.
10710 (disable_probes_interface): Add info parameter.
10711 (svr4_handle_solib_event): Pass current_program_space to
10712 get_svr4_info. Adjust disable_probes_interface cleanup.
10713 (svr4_create_probe_breakpoints): Add info parameter, pass it
10714 down to register_solib_event_probe.
10715 (svr4_create_solib_event_breakpoints): Add info parameter,
10716 pass it down to svr4_create_probe_breakpoints.
10717 (enable_break): Pass info down to
10718 svr4_create_solib_event_breakpoints.
10719 (svr4_solib_create_inferior_hook): Pass current_program_space to
10720 get_svr4_info.
10721 (svr4_clear_solib): Likewise.
10722
10723 2019-04-22 Pedro Alves <palves@redhat.com>
10724
10725 * solib-svr4.c (svr4_free_objfile_observer): New.
10726 (probe_and_action::objfile): New field.
10727 (probes_table_htab_remove_objfile_probes)
10728 (probes_table_remove_objfile_probes): New functions.
10729 (register_solib_event_probe): Add 'objfile' parameter. Store it
10730 in the new probe_and_action. Don't store the probe in 'lookup'.
10731 (svr4_create_probe_breakpoints): Pass objfile to
10732 register_solib_event_probe.
10733 (_initialize_svr4_solib): Register a free_objfile observer.
10734
10735 2019-04-19 Tom Tromey <tom@tromey.com>
10736
10737 * common/queue.h: Remove.
10738
10739 2019-04-19 Tom Tromey <tom@tromey.com>
10740
10741 * event-loop.c: Don't include "common/queue.h".
10742
10743 2019-04-19 Tom Tromey <tom@tromey.com>
10744
10745 * remote.c (remote_target): Use delete.
10746 * remote-notif.h: Include <list>, not "common/queue.h".
10747 (notif_client_p): Remove typedef.
10748 (remote_notif_state): Add constructor, destructor, initializer.
10749 <notif_queue>: Now a std::list.
10750 (remote_notif_state_xfree): Don't declare.
10751 * remote-notif.c (remote_notif_process, handle_notification)
10752 (remote_notif_state_allocate): Update.
10753 (~remote_notif_state): Rename from remote_notif_state_xfree.
10754
10755 2019-04-19 Tom Tromey <tom@tromey.com>
10756
10757 * symfile.c (reread_symbols): Update.
10758 * objfiles.c (objfile_register_static_link)
10759 (objfile_lookup_static_link): Update
10760 (~objfile) Don't delete static_links.
10761 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10762
10763 2019-04-19 Tom Tromey <tom@tromey.com>
10764
10765 * type-stack.h (struct type_stack) <insert>: Constify string.
10766 * type-stack.c (type_stack::insert): Constify string.
10767 * gdbtypes.h (lookup_template_type): Update.
10768 (address_space_name_to_int): Update.
10769 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10770 const.
10771 (lookup_template_type): Make name const.
10772 * c-exp.y: Update rules.
10773 (lex_one_token, classify_name, classify_inner_name)
10774 (c_print_token): Update.
10775 * p-exp.y: Update rules.
10776 (yylex): Update.
10777 * f-exp.y: Update rules.
10778 (yylex): Update.
10779 * d-exp.y: Update rules.
10780 (lex_one_token, classify_name, classify_inner_name): Update.
10781 * parse.c (write_dollar_variable, copy_name): Return std::string.
10782 * parser-defs.h (copy_name): Change return type.
10783 * m2-exp.y: Update rules.
10784 (yylex): Update.
10785 * go-exp.y (lex_one_token): Update.
10786 Update rules.
10787 (classify_unsafe_function, classify_packaged_name)
10788 (classify_name, yylex): Update.
10789
10790 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10791
10792 * configure.ac: add --enable-source-highlight switch.
10793 * configure: Regenerate.
10794 * top.c (print_gdb_version): plumb --enable-source-highlight
10795 status to "show configuration".
10796
10797 2019-04-19 Tom Tromey <tromey@adacore.com>
10798
10799 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10800 Check ADA_TYPE_P.
10801 (empty_record, ada_template_to_fixed_record_type_1)
10802 (template_to_static_fixed_type)
10803 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10804 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10805 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10806 macros.
10807
10808 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10809
10810 PR symtab/24423:
10811 * source.c (print_source_lines_base): Advance "iter" when a
10812 control character is seen.
10813
10814 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10815
10816 * inferior.h (struct infcall_suspend_state_deleter):
10817 Catch exception in destructor to avoid crash.
10818
10819 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820
10821 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10822 close to the add_com "shell".
10823
10824 2019-04-18 Tom Tromey <tromey@adacore.com>
10825
10826 * process-stratum-target.h (class process_stratum_target)
10827 <stratum>: Add "final".
10828
10829 2019-04-17 Tom Tromey <tromey@adacore.com>
10830
10831 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10832 against nullptr before use.
10833
10834 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10835
10836 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10837
10838 2019-04-17 Jim Wilson <jimw@sifive.com>
10839 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10842 code read might fail, assume 4-byte breakpoint in that case.
10843
10844 2019-04-15 Leszek Swirski <leszeks@google.com>
10845
10846 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10847 rather than a hand-rolled POD check when checking for forced MEMORY
10848 classification.
10849
10850 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10851
10852 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10853 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10854 function.
10855 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10856 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10857 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10858 declaration.
10859
10860 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10861
10862 * aarch64-linux-nat.c
10863 (aarch64_linux_nat_target::thread_architecture): Add override.
10864 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10865 each VQ.
10866
10867 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10868
10869 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10870
10871 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10872
10873 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10874 target types of size 96-bits, add some additional comments, and
10875 check that the builtin type we found was the correct size.
10876
10877 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10878
10879 * utils.c (prompt_for_continue): Don't restore the styling at the
10880 end, as applied_style has the wrong value. This fixes styling in
10881 long lists of file names that are interrupted by the "Continue?"
10882 prompt.
10883
10884 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10887 * c-lang.c (c_language_defn): Likewise.
10888 (cplus_language_defn): Likewise.
10889 (asm_language_defn): Likewise.
10890 (minimal_language_defn): Likewise.
10891 * d-lang.c (d_language_defn): Likewise.
10892 * f-lang.c (f_language_defn): Likewise.
10893 * go-lang.c (go_language_defn): Likewise.
10894 * language.c (unknown_language_defn): Likewise.
10895 (auto_language_defn): Likewise.
10896 * language.h (struct language_defn): Remove la_magic field.
10897 (LANG_MAGIC): Delete.
10898 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10899 * objc-lang.c (objc_language_defn): Likewise.
10900 * opencl-lang.c (opencl_language_defn): Likewise.
10901 * p-lang.c (pascal_language_defn): Likewise.
10902 * rust-lang.c (rust_language_defn): Likewise.
10903
10904 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * riscv-tdep.c (riscv_type_align): New function.
10907 (riscv_type_alignment): Delete.
10908 (riscv_arg_location): Use 'type_align'.
10909 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10910
10911 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10912
10913 * gdbtypes.c (type_align): A struct with no non-static fields also
10914 has alignment of 1.
10915
10916 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10917
10918 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10919 component to 0.
10920 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10921 member.
10922 (riscv_struct_info::analyse): New implementation using new
10923 analyse_inner member function.
10924 (riscv_struct_info::field_offset): New member function.
10925 (riscv_struct_info::m_offsets): New member variable.
10926 (riscv_struct_info::analyse_inner): New private member function,
10927 takes the old implementation of riscv_struct_info::analyse but
10928 extended to track field offsets.
10929 (riscv_call_arg_struct): Update the struct folding special cases
10930 to handle cases where empty C++ structs, which are non-zero
10931 length, are found.
10932 (riscv_arg_location): Initialise the length of each location, a
10933 non-zero length now indicates the location is in use.
10934 (riscv_push_dummy_call): Allow for the first location having a
10935 non-zero offset when setting up arguments.
10936 (riscv_return_value): Likewise, but for return values.
10937
10938 2019-04-11 Tom Tromey <tromey@adacore.com>
10939
10940 * utils.c (internal_vproblem): Make "msg" const.
10941
10942 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10943
10944 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10945 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10946 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10947 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10948
10949 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10950
10951 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10952 function.
10953 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10954 of amd64_collect_native_gregset.
10955 (amd64_linux_nat_target::store_registers): Likewise.
10956
10957 2019-04-10 Tom Tromey <tom@tromey.com>
10958
10959 * symtab.c (lookup_global_symbol_from_objfile)
10960 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10961 * objfiles.h (class separate_debug_iterator): New.
10962 (class separate_debug_range): New.
10963 (struct objfile) <separate_debug_objfiles>: New method.
10964 (objfile_separate_debug_iterate): Don't declare.
10965 * objfiles.c (separate_debug_iterator::operator++): Rename from
10966 objfile_separate_debug_iterate.
10967 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10968 iterator.
10969 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10970 iterator.
10971
10972 2019-04-10 Tom Tromey <tom@tromey.com>
10973
10974 * symfile.c (reread_symbols): Remove old comment.
10975 * objfiles.c (free_all_objfiles): Fix a typo.
10976
10977 2019-04-10 Tom Tromey <tom@tromey.com>
10978
10979 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10980 * minsyms.c (lookup_minimal_symbol): Use foreach.
10981 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10982 (lookup_minimal_symbol_solib_trampoline): Likewise.
10983 * symfile.c (reread_symbols): Use foreach.
10984
10985 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10986 Tom Tromey <tromey@adacore.com>
10987
10988 PR rust/24414:
10989 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10990 (rust_lex_int_test): Change "value" to be LONGEST.
10991 (rust_lex_tests): Add test for long integer literal.
10992
10993 2019-04-09 Tom Tromey <tromey@adacore.com>
10994
10995 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10996 to bool.
10997 (extended_remote_target::attach): Update.
10998 (remote_target::remote_notice_new_inferior): Update.
10999 (remote_target::add_current_inferior_and_thread): Update.
11000 * inferior.c (exit_inferior_1): Use "false".
11001 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11002
11003 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11004
11005 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11006 the "start" command.
11007
11008 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11009
11010 * python/py-inferior.c (infpy_thread_from_thread_handle):
11011 Adjust comments to reflect renaming of thread_from_thread_handle
11012 to thread_from_handle. Adjust keywords. Fix type error message.
11013 (inferior_object_methods): Add thread_from_handle. Retain
11014 thread_from_thread_handle, but mark it as deprecated.
11015
11016 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11017
11018 * gdbthread.h (find_thread_by_handle): Revise declaration.
11019 * thread.c (find_thread_by_handle): Likewise. Adjust
11020 implementation too.
11021 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11022 support for buffer objects as handles.
11023
11024 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11025
11026 * python/py-infthread.c (thpy_thread_handle): New function.
11027 (thread_object_methods): Register thpy_thread_handle.
11028
11029 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11030
11031 * gdbthread.h (thread_to_thread_handle): Declare.
11032 * thread.c (gdbtypes.h): Include.
11033 (thread_to_thread_handle): New function.
11034
11035 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11036 (target_thread_info_to_thread_handle): Declare.
11037 * target.c (target_thread_info_to_thread_handle): New function.
11038 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11039 * target-delegates.c: Regenerate.
11040
11041 * linux-thread-db.c (class thread_db_target): Add method
11042 thread_info_to_thread_handle.
11043 (thread_db_target::thread_info_to_thread_handle): Define.
11044 * remote.c (class remote_target): Add new method
11045 thread_info_to_thread_handle.
11046 (remote_target::thread_info_to_thread_handle): Define.
11047
11048 2019-04-08 Pedro Alves <palves@redhat.com>
11049
11050 * common/common-exceptions.c (throw_exception): Don't create
11051 named object to throw; throw directly.
11052 (throw_it): Likewise. Don't initialize gdb_exception::message
11053 here, with new; pass FMT and AP to the ctor instead.
11054 * common/common-exceptions.h: Include <string>.
11055 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11056 const char *, va_list)): New ctor. Use std::make_shared.
11057 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11058 errors)): Delete.
11059 (gdb_exception_error::gdb_exception_error(enum errors, const char
11060 *, va_list)): New.
11061 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11062 Add assertion.
11063 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11064 errors)): Delete.
11065 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11066 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11067 Add assertion.
11068
11069 2019-04-08 Tom Tromey <tom@tromey.com>
11070
11071 * valops.c (value_rtti_indirect_type): Replace throw_exception
11072 with throw.
11073 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11074 with throw.
11075 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11076 throw.
11077 * target.c (target_translate_tls_address): Replace throw_exception
11078 with throw.
11079 * stack.c (frame_apply_command_count): Replace throw_exception
11080 with throw.
11081 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11082 throw.
11083 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11084 with throw.
11085 * rs6000-tdep.c (rs6000_frame_cache)
11086 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11087 * remote.c: Replace throw_exception with throw.
11088 * record-full.c (record_full_message, record_full_wait_1)
11089 (record_full_restore): Replace throw_exception with throw.
11090 * record-btrace.c:
11091 (get_thread_current_frame_id, record_btrace_start_replaying)
11092 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11093 (cmd_record_btrace_start): Replace throw_exception with throw.
11094 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11095 throw.
11096 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11097 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11098 * linespec.c:
11099 (find_linespec_symbols): Replace throw_exception with throw.
11100 * infrun.c (displaced_step_prepare, resume): Replace
11101 throw_exception with throw.
11102 * infcmd.c (post_create_inferior): Replace throw_exception with
11103 throw.
11104 * inf-loop.c (inferior_event_handler): Replace throw_exception
11105 with throw.
11106 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11107 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11108 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11109 (get_prev_frame_always, get_frame_pc_if_available)
11110 (get_frame_address_in_block_if_available, get_frame_language):
11111 Replace throw_exception with throw.
11112 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11113 throw_exception with throw.
11114 * eval.c (fetch_subexp_value, evaluate_var_value)
11115 (evaluate_funcall, evaluate_subexp_standard): Replace
11116 throw_exception with throw.
11117 * dwarf2loc.c (call_site_find_chain)
11118 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11119 Replace throw_exception with throw.
11120 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11121 with throw.
11122 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11123 throw.
11124 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11125 * completer.c (complete_line_internal): Replace throw_exception
11126 with throw.
11127 * compile/compile-object-run.c (compile_object_run): Replace
11128 throw_exception with throw.
11129 * cli/cli-script.c (process_next_line): Replace throw_exception
11130 with throw.
11131 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11132 (btrace_enable, btrace_maint_update_pt_packets): Replace
11133 throw_exception with throw.
11134 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11135 throw_exception with throw.
11136 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11137 throw_exception with throw.
11138 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11139 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11140 * aarch64-tdep.c (aarch64_make_prologue_cache)
11141 (aarch64_make_stub_cache): Replace throw_exception with throw.
11142
11143 2019-04-08 Tom Tromey <tom@tromey.com>
11144
11145 * common/common-exceptions.c (throw_exception): Rename from
11146 throw_exception_cxx. Remove old copy. Make argument const.
11147 (throw_it): Create and throw exception objects directly.
11148 * common/common-exceptions.h (throw_exception): Make argument
11149 const.
11150 (struct gdb_exception_error): Add constructor.
11151 (struct gdb_exception_quit): Add constructor.
11152
11153 2019-04-08 Tom Tromey <tom@tromey.com>
11154
11155 * common/common-exceptions.h (exception_rethrow): Don't declare.
11156 (TRY_SJLJ): Update comment.
11157 (TRY, CATCH, END_CATCH): Remove.
11158 * common/common-exceptions.c (exception_rethrow): Remove.
11159
11160 2019-04-08 Tom Tromey <tom@tromey.com>
11161
11162 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11163 Remove.
11164 (gdb_exception_error): Rename from
11165 gdb_exception_RETURN_MASK_ERROR.
11166 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11167 (gdb_quit_bad_alloc): Update.
11168 * aarch64-tdep.c: Update.
11169 * ada-lang.c: Update.
11170 * ada-typeprint.c: Update.
11171 * ada-valprint.c: Update.
11172 * amd64-tdep.c: Update.
11173 * arch-utils.c: Update.
11174 * break-catch-throw.c: Update.
11175 * breakpoint.c: Update.
11176 * btrace.c: Update.
11177 * c-varobj.c: Update.
11178 * cli/cli-cmds.c: Update.
11179 * cli/cli-interp.c: Update.
11180 * cli/cli-script.c: Update.
11181 * common/common-exceptions.c: Update.
11182 * common/new-op.c: Update.
11183 * common/selftest.c: Update.
11184 * compile/compile-c-symbols.c: Update.
11185 * compile/compile-cplus-symbols.c: Update.
11186 * compile/compile-object-load.c: Update.
11187 * compile/compile-object-run.c: Update.
11188 * completer.c: Update.
11189 * corelow.c: Update.
11190 * cp-abi.c: Update.
11191 * cp-support.c: Update.
11192 * cp-valprint.c: Update.
11193 * darwin-nat.c: Update.
11194 * disasm-selftests.c: Update.
11195 * dtrace-probe.c: Update.
11196 * dwarf-index-cache.c: Update.
11197 * dwarf-index-write.c: Update.
11198 * dwarf2-frame-tailcall.c: Update.
11199 * dwarf2-frame.c: Update.
11200 * dwarf2loc.c: Update.
11201 * dwarf2read.c: Update.
11202 * eval.c: Update.
11203 * event-loop.c: Update.
11204 * event-top.c: Update.
11205 * exec.c: Update.
11206 * f-valprint.c: Update.
11207 * fbsd-tdep.c: Update.
11208 * frame-unwind.c: Update.
11209 * frame.c: Update.
11210 * gdbtypes.c: Update.
11211 * gnu-v3-abi.c: Update.
11212 * guile/guile-internal.h: Update.
11213 * guile/scm-block.c: Update.
11214 * guile/scm-breakpoint.c: Update.
11215 * guile/scm-cmd.c: Update.
11216 * guile/scm-disasm.c: Update.
11217 * guile/scm-frame.c: Update.
11218 * guile/scm-lazy-string.c: Update.
11219 * guile/scm-math.c: Update.
11220 * guile/scm-param.c: Update.
11221 * guile/scm-ports.c: Update.
11222 * guile/scm-pretty-print.c: Update.
11223 * guile/scm-symbol.c: Update.
11224 * guile/scm-symtab.c: Update.
11225 * guile/scm-type.c: Update.
11226 * guile/scm-value.c: Update.
11227 * i386-linux-tdep.c: Update.
11228 * i386-tdep.c: Update.
11229 * inf-loop.c: Update.
11230 * infcall.c: Update.
11231 * infcmd.c: Update.
11232 * infrun.c: Update.
11233 * jit.c: Update.
11234 * language.c: Update.
11235 * linespec.c: Update.
11236 * linux-fork.c: Update.
11237 * linux-nat.c: Update.
11238 * linux-tdep.c: Update.
11239 * linux-thread-db.c: Update.
11240 * main.c: Update.
11241 * mi/mi-cmd-break.c: Update.
11242 * mi/mi-cmd-stack.c: Update.
11243 * mi/mi-interp.c: Update.
11244 * mi/mi-main.c: Update.
11245 * objc-lang.c: Update.
11246 * p-valprint.c: Update.
11247 * parse.c: Update.
11248 * ppc-linux-tdep.c: Update.
11249 * printcmd.c: Update.
11250 * python/py-arch.c: Update.
11251 * python/py-breakpoint.c: Update.
11252 * python/py-cmd.c: Update.
11253 * python/py-finishbreakpoint.c: Update.
11254 * python/py-frame.c: Update.
11255 * python/py-framefilter.c: Update.
11256 * python/py-gdb-readline.c: Update.
11257 * python/py-inferior.c: Update.
11258 * python/py-infthread.c: Update.
11259 * python/py-lazy-string.c: Update.
11260 * python/py-linetable.c: Update.
11261 * python/py-objfile.c: Update.
11262 * python/py-param.c: Update.
11263 * python/py-prettyprint.c: Update.
11264 * python/py-progspace.c: Update.
11265 * python/py-record-btrace.c: Update.
11266 * python/py-record.c: Update.
11267 * python/py-symbol.c: Update.
11268 * python/py-type.c: Update.
11269 * python/py-unwind.c: Update.
11270 * python/py-utils.c: Update.
11271 * python/py-value.c: Update.
11272 * python/python.c: Update.
11273 * record-btrace.c: Update.
11274 * record-full.c: Update.
11275 * remote-fileio.c: Update.
11276 * remote.c: Update.
11277 * riscv-tdep.c: Update.
11278 * rs6000-aix-tdep.c: Update.
11279 * rs6000-tdep.c: Update.
11280 * rust-exp.y: Update.
11281 * rust-lang.c: Update.
11282 * s390-tdep.c: Update.
11283 * selftest-arch.c: Update.
11284 * solib-dsbt.c: Update.
11285 * solib-frv.c: Update.
11286 * solib-spu.c: Update.
11287 * solib-svr4.c: Update.
11288 * solib.c: Update.
11289 * sparc64-linux-tdep.c: Update.
11290 * stack.c: Update.
11291 * symfile-mem.c: Update.
11292 * symmisc.c: Update.
11293 * target.c: Update.
11294 * thread.c: Update.
11295 * top.c: Update.
11296 * tracefile-tfile.c: Update.
11297 * tui/tui.c: Update.
11298 * typeprint.c: Update.
11299 * unittests/cli-utils-selftests.c: Update.
11300 * unittests/parse-connection-spec-selftests.c: Update.
11301 * valops.c: Update.
11302 * valprint.c: Update.
11303 * value.c: Update.
11304 * varobj.c: Update.
11305 * windows-nat.c: Update.
11306 * x86-linux-nat.c: Update.
11307 * xml-support.c: Update.
11308
11309 2019-04-08 Tom Tromey <tom@tromey.com>
11310
11311 * xml-support.c: Use C++ exception handling.
11312 * x86-linux-nat.c: Use C++ exception handling.
11313 * windows-nat.c: Use C++ exception handling.
11314 * varobj.c: Use C++ exception handling.
11315 * value.c: Use C++ exception handling.
11316 * valprint.c: Use C++ exception handling.
11317 * valops.c: Use C++ exception handling.
11318 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11319 handling.
11320 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11321 * typeprint.c: Use C++ exception handling.
11322 * tui/tui.c: Use C++ exception handling.
11323 * tracefile-tfile.c: Use C++ exception handling.
11324 * top.c: Use C++ exception handling.
11325 * thread.c: Use C++ exception handling.
11326 * target.c: Use C++ exception handling.
11327 * symmisc.c: Use C++ exception handling.
11328 * symfile-mem.c: Use C++ exception handling.
11329 * stack.c: Use C++ exception handling.
11330 * sparc64-linux-tdep.c: Use C++ exception handling.
11331 * solib.c: Use C++ exception handling.
11332 * solib-svr4.c: Use C++ exception handling.
11333 * solib-spu.c: Use C++ exception handling.
11334 * solib-frv.c: Use C++ exception handling.
11335 * solib-dsbt.c: Use C++ exception handling.
11336 * selftest-arch.c: Use C++ exception handling.
11337 * s390-tdep.c: Use C++ exception handling.
11338 * rust-lang.c: Use C++ exception handling.
11339 * rust-exp.y: Use C++ exception handling.
11340 * rs6000-tdep.c: Use C++ exception handling.
11341 * rs6000-aix-tdep.c: Use C++ exception handling.
11342 * riscv-tdep.c: Use C++ exception handling.
11343 * remote.c: Use C++ exception handling.
11344 * remote-fileio.c: Use C++ exception handling.
11345 * record-full.c: Use C++ exception handling.
11346 * record-btrace.c: Use C++ exception handling.
11347 * python/python.c: Use C++ exception handling.
11348 * python/py-value.c: Use C++ exception handling.
11349 * python/py-utils.c: Use C++ exception handling.
11350 * python/py-unwind.c: Use C++ exception handling.
11351 * python/py-type.c: Use C++ exception handling.
11352 * python/py-symbol.c: Use C++ exception handling.
11353 * python/py-record.c: Use C++ exception handling.
11354 * python/py-record-btrace.c: Use C++ exception handling.
11355 * python/py-progspace.c: Use C++ exception handling.
11356 * python/py-prettyprint.c: Use C++ exception handling.
11357 * python/py-param.c: Use C++ exception handling.
11358 * python/py-objfile.c: Use C++ exception handling.
11359 * python/py-linetable.c: Use C++ exception handling.
11360 * python/py-lazy-string.c: Use C++ exception handling.
11361 * python/py-infthread.c: Use C++ exception handling.
11362 * python/py-inferior.c: Use C++ exception handling.
11363 * python/py-gdb-readline.c: Use C++ exception handling.
11364 * python/py-framefilter.c: Use C++ exception handling.
11365 * python/py-frame.c: Use C++ exception handling.
11366 * python/py-finishbreakpoint.c: Use C++ exception handling.
11367 * python/py-cmd.c: Use C++ exception handling.
11368 * python/py-breakpoint.c: Use C++ exception handling.
11369 * python/py-arch.c: Use C++ exception handling.
11370 * printcmd.c: Use C++ exception handling.
11371 * ppc-linux-tdep.c: Use C++ exception handling.
11372 * parse.c: Use C++ exception handling.
11373 * p-valprint.c: Use C++ exception handling.
11374 * objc-lang.c: Use C++ exception handling.
11375 * mi/mi-main.c: Use C++ exception handling.
11376 * mi/mi-interp.c: Use C++ exception handling.
11377 * mi/mi-cmd-stack.c: Use C++ exception handling.
11378 * mi/mi-cmd-break.c: Use C++ exception handling.
11379 * main.c: Use C++ exception handling.
11380 * linux-thread-db.c: Use C++ exception handling.
11381 * linux-tdep.c: Use C++ exception handling.
11382 * linux-nat.c: Use C++ exception handling.
11383 * linux-fork.c: Use C++ exception handling.
11384 * linespec.c: Use C++ exception handling.
11385 * language.c: Use C++ exception handling.
11386 * jit.c: Use C++ exception handling.
11387 * infrun.c: Use C++ exception handling.
11388 * infcmd.c: Use C++ exception handling.
11389 * infcall.c: Use C++ exception handling.
11390 * inf-loop.c: Use C++ exception handling.
11391 * i386-tdep.c: Use C++ exception handling.
11392 * i386-linux-tdep.c: Use C++ exception handling.
11393 * guile/scm-value.c: Use C++ exception handling.
11394 * guile/scm-type.c: Use C++ exception handling.
11395 * guile/scm-symtab.c: Use C++ exception handling.
11396 * guile/scm-symbol.c: Use C++ exception handling.
11397 * guile/scm-pretty-print.c: Use C++ exception handling.
11398 * guile/scm-ports.c: Use C++ exception handling.
11399 * guile/scm-param.c: Use C++ exception handling.
11400 * guile/scm-math.c: Use C++ exception handling.
11401 * guile/scm-lazy-string.c: Use C++ exception handling.
11402 * guile/scm-frame.c: Use C++ exception handling.
11403 * guile/scm-disasm.c: Use C++ exception handling.
11404 * guile/scm-cmd.c: Use C++ exception handling.
11405 * guile/scm-breakpoint.c: Use C++ exception handling.
11406 * guile/scm-block.c: Use C++ exception handling.
11407 * guile/guile-internal.h: Use C++ exception handling.
11408 * gnu-v3-abi.c: Use C++ exception handling.
11409 * gdbtypes.c: Use C++ exception handling.
11410 * frame.c: Use C++ exception handling.
11411 * frame-unwind.c: Use C++ exception handling.
11412 * fbsd-tdep.c: Use C++ exception handling.
11413 * f-valprint.c: Use C++ exception handling.
11414 * exec.c: Use C++ exception handling.
11415 * event-top.c: Use C++ exception handling.
11416 * event-loop.c: Use C++ exception handling.
11417 * eval.c: Use C++ exception handling.
11418 * dwarf2read.c: Use C++ exception handling.
11419 * dwarf2loc.c: Use C++ exception handling.
11420 * dwarf2-frame.c: Use C++ exception handling.
11421 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11422 * dwarf-index-write.c: Use C++ exception handling.
11423 * dwarf-index-cache.c: Use C++ exception handling.
11424 * dtrace-probe.c: Use C++ exception handling.
11425 * disasm-selftests.c: Use C++ exception handling.
11426 * darwin-nat.c: Use C++ exception handling.
11427 * cp-valprint.c: Use C++ exception handling.
11428 * cp-support.c: Use C++ exception handling.
11429 * cp-abi.c: Use C++ exception handling.
11430 * corelow.c: Use C++ exception handling.
11431 * completer.c: Use C++ exception handling.
11432 * compile/compile-object-run.c: Use C++ exception handling.
11433 * compile/compile-object-load.c: Use C++ exception handling.
11434 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11435 * compile/compile-c-symbols.c: Use C++ exception handling.
11436 * common/selftest.c: Use C++ exception handling.
11437 * common/new-op.c: Use C++ exception handling.
11438 * cli/cli-script.c: Use C++ exception handling.
11439 * cli/cli-interp.c: Use C++ exception handling.
11440 * cli/cli-cmds.c: Use C++ exception handling.
11441 * c-varobj.c: Use C++ exception handling.
11442 * btrace.c: Use C++ exception handling.
11443 * breakpoint.c: Use C++ exception handling.
11444 * break-catch-throw.c: Use C++ exception handling.
11445 * arch-utils.c: Use C++ exception handling.
11446 * amd64-tdep.c: Use C++ exception handling.
11447 * ada-valprint.c: Use C++ exception handling.
11448 * ada-typeprint.c: Use C++ exception handling.
11449 * ada-lang.c: Use C++ exception handling.
11450 * aarch64-tdep.c: Use C++ exception handling.
11451
11452 2019-04-08 Tom Tromey <tom@tromey.com>
11453
11454 * xml-support.c (gdb_xml_parser::parse): Update.
11455 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11456 * value.c (show_convenience): Update.
11457 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11458 (test_parse_flags_qcs): Update.
11459 * thread.c (thr_try_catch_cmd): Update.
11460 * target.c (target_translate_tls_address): Update.
11461 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11462 (info_frame_command_core, frame_apply_command_count): Update.
11463 * rust-exp.y (rust_lex_exception_test): Update.
11464 * riscv-tdep.c (riscv_print_one_register_info): Update.
11465 * remote.c (remote_target::enable_btrace): Update.
11466 * record-btrace.c (record_btrace_enable_warn): Update.
11467 * python/py-utils.c (gdbpy_convert_exception): Update.
11468 * printcmd.c (do_one_display, print_variable_and_value): Update.
11469 * mi/mi-main.c (mi_print_exception): Update.
11470 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11471 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11472 * linux-nat.c (linux_nat_target::attach): Update.
11473 * linux-fork.c (class scoped_switch_fork_info): Update.
11474 * infrun.c (displaced_step_prepare): Update.
11475 * infcall.c (call_function_by_hand_dummy): Update.
11476 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11477 * gnu-v3-abi.c (print_one_vtable): Update.
11478 * frame.c (get_prev_frame_always): Update.
11479 * f-valprint.c (info_common_command_for_block): Update.
11480 * exec.c (try_open_exec_file): Update.
11481 * exceptions.c (print_exception, exception_print)
11482 (exception_fprintf, exception_print_same): Update.
11483 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11484 * dwarf-index-cache.c (index_cache::store)
11485 (index_cache::lookup_gdb_index): Update.
11486 * darwin-nat.c (maybe_cache_shell): Update.
11487 * cp-valprint.c (cp_print_value_fields): Update.
11488 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11489 (gcc_cplus_symbol_address): Update.
11490 * compile/compile-c-symbols.c (gcc_convert_symbol)
11491 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11492 * common/selftest.c: Update.
11493 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11494 a std::string.
11495 (exception_try_scope_entry, exception_try_scope_exit): Don't
11496 declare.
11497 (struct exception_try_scope): Remove.
11498 (TRY): Don't use exception_try_scope.
11499 (struct gdb_exception): Add constructor, operator=.
11500 <what>: New method.
11501 (struct gdb_exception_RETURN_MASK_ALL)
11502 (struct gdb_exception_RETURN_MASK_ERROR)
11503 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11504 (struct gdb_quit_bad_alloc): Update.
11505 * common/common-exceptions.c (exception_none): Change
11506 initializer.
11507 (struct catcher) <state, exception>: Initialize inline.
11508 <prev>: Remove member.
11509 (current_catcher): Remove.
11510 (catchers): New global.
11511 (exceptions_state_mc_init): Simplify.
11512 (catcher_pop): Remove.
11513 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11514 (try_scope_depth, exception_try_scope_entry)
11515 (exception_try_scope_exit): Remove.
11516 (throw_exception_sjlj): Update.
11517 (exception_messages, exception_messages_size): Remove.
11518 (throw_it): Simplify.
11519 (gdb_exception_sliced_copy): Remove.
11520 (throw_exception_cxx): Update.
11521 * cli/cli-script.c (script_from_file): Update.
11522 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11523 Update.
11524 * ada-valprint.c (ada_val_print): Update.
11525 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11526 (create_excep_cond_exprs): Update.
11527
11528 2019-04-08 Tom Tromey <tom@tromey.com>
11529
11530 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11531 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11532 (TRY, CATCH, END_CATCH): Remove some definitions.
11533 * common/common-exceptions.c: Don't use GDB_XCPT.
11534 (catcher_list_size): Remove.
11535 (throw_exception, throw_it): Simplify.
11536
11537 2019-04-05 Tom Tromey <tom@tromey.com>
11538
11539 Revert the header-sorting patch.
11540 * ft32-tdep.c: Revert.
11541 * frv-tdep.c: Revert.
11542 * frv-linux-tdep.c: Revert.
11543 * frame.c: Revert.
11544 * frame-unwind.c: Revert.
11545 * frame-base.c: Revert.
11546 * fork-child.c: Revert.
11547 * findvar.c: Revert.
11548 * findcmd.c: Revert.
11549 * filesystem.c: Revert.
11550 * filename-seen-cache.h: Revert.
11551 * filename-seen-cache.c: Revert.
11552 * fbsd-tdep.c: Revert.
11553 * fbsd-nat.h: Revert.
11554 * fbsd-nat.c: Revert.
11555 * f-valprint.c: Revert.
11556 * f-typeprint.c: Revert.
11557 * f-lang.c: Revert.
11558 * extension.h: Revert.
11559 * extension.c: Revert.
11560 * extension-priv.h: Revert.
11561 * expprint.c: Revert.
11562 * exec.h: Revert.
11563 * exec.c: Revert.
11564 * exceptions.c: Revert.
11565 * event-top.c: Revert.
11566 * event-loop.c: Revert.
11567 * eval.c: Revert.
11568 * elfread.c: Revert.
11569 * dwarf2read.h: Revert.
11570 * dwarf2read.c: Revert.
11571 * dwarf2loc.c: Revert.
11572 * dwarf2expr.h: Revert.
11573 * dwarf2expr.c: Revert.
11574 * dwarf2-frame.c: Revert.
11575 * dwarf2-frame-tailcall.c: Revert.
11576 * dwarf-index-write.h: Revert.
11577 * dwarf-index-write.c: Revert.
11578 * dwarf-index-common.c: Revert.
11579 * dwarf-index-cache.h: Revert.
11580 * dwarf-index-cache.c: Revert.
11581 * dummy-frame.c: Revert.
11582 * dtrace-probe.c: Revert.
11583 * disasm.h: Revert.
11584 * disasm.c: Revert.
11585 * disasm-selftests.c: Revert.
11586 * dictionary.c: Revert.
11587 * dicos-tdep.c: Revert.
11588 * demangle.c: Revert.
11589 * dcache.h: Revert.
11590 * dcache.c: Revert.
11591 * darwin-nat.h: Revert.
11592 * darwin-nat.c: Revert.
11593 * darwin-nat-info.c: Revert.
11594 * d-valprint.c: Revert.
11595 * d-namespace.c: Revert.
11596 * d-lang.c: Revert.
11597 * ctf.c: Revert.
11598 * csky-tdep.c: Revert.
11599 * csky-linux-tdep.c: Revert.
11600 * cris-tdep.c: Revert.
11601 * cris-linux-tdep.c: Revert.
11602 * cp-valprint.c: Revert.
11603 * cp-support.c: Revert.
11604 * cp-namespace.c: Revert.
11605 * cp-abi.c: Revert.
11606 * corelow.c: Revert.
11607 * corefile.c: Revert.
11608 * continuations.c: Revert.
11609 * completer.h: Revert.
11610 * completer.c: Revert.
11611 * complaints.c: Revert.
11612 * coffread.c: Revert.
11613 * coff-pe-read.c: Revert.
11614 * cli-out.h: Revert.
11615 * cli-out.c: Revert.
11616 * charset.c: Revert.
11617 * c-varobj.c: Revert.
11618 * c-valprint.c: Revert.
11619 * c-typeprint.c: Revert.
11620 * c-lang.c: Revert.
11621 * buildsym.c: Revert.
11622 * buildsym-legacy.c: Revert.
11623 * build-id.h: Revert.
11624 * build-id.c: Revert.
11625 * btrace.c: Revert.
11626 * bsd-uthread.c: Revert.
11627 * breakpoint.h: Revert.
11628 * breakpoint.c: Revert.
11629 * break-catch-throw.c: Revert.
11630 * break-catch-syscall.c: Revert.
11631 * break-catch-sig.c: Revert.
11632 * blockframe.c: Revert.
11633 * block.c: Revert.
11634 * bfin-tdep.c: Revert.
11635 * bfin-linux-tdep.c: Revert.
11636 * bfd-target.c: Revert.
11637 * bcache.c: Revert.
11638 * ax-general.c: Revert.
11639 * ax-gdb.h: Revert.
11640 * ax-gdb.c: Revert.
11641 * avr-tdep.c: Revert.
11642 * auxv.c: Revert.
11643 * auto-load.c: Revert.
11644 * arm-wince-tdep.c: Revert.
11645 * arm-tdep.c: Revert.
11646 * arm-symbian-tdep.c: Revert.
11647 * arm-pikeos-tdep.c: Revert.
11648 * arm-obsd-tdep.c: Revert.
11649 * arm-nbsd-tdep.c: Revert.
11650 * arm-nbsd-nat.c: Revert.
11651 * arm-linux-tdep.c: Revert.
11652 * arm-linux-nat.c: Revert.
11653 * arm-fbsd-tdep.c: Revert.
11654 * arm-fbsd-nat.c: Revert.
11655 * arm-bsd-tdep.c: Revert.
11656 * arch-utils.c: Revert.
11657 * arc-tdep.c: Revert.
11658 * arc-newlib-tdep.c: Revert.
11659 * annotate.h: Revert.
11660 * annotate.c: Revert.
11661 * amd64-windows-tdep.c: Revert.
11662 * amd64-windows-nat.c: Revert.
11663 * amd64-tdep.c: Revert.
11664 * amd64-sol2-tdep.c: Revert.
11665 * amd64-obsd-tdep.c: Revert.
11666 * amd64-obsd-nat.c: Revert.
11667 * amd64-nbsd-tdep.c: Revert.
11668 * amd64-nbsd-nat.c: Revert.
11669 * amd64-nat.c: Revert.
11670 * amd64-linux-tdep.c: Revert.
11671 * amd64-linux-nat.c: Revert.
11672 * amd64-fbsd-tdep.c: Revert.
11673 * amd64-fbsd-nat.c: Revert.
11674 * amd64-dicos-tdep.c: Revert.
11675 * amd64-darwin-tdep.c: Revert.
11676 * amd64-bsd-nat.c: Revert.
11677 * alpha-tdep.c: Revert.
11678 * alpha-obsd-tdep.c: Revert.
11679 * alpha-nbsd-tdep.c: Revert.
11680 * alpha-mdebug-tdep.c: Revert.
11681 * alpha-linux-tdep.c: Revert.
11682 * alpha-linux-nat.c: Revert.
11683 * alpha-bsd-tdep.c: Revert.
11684 * alpha-bsd-nat.c: Revert.
11685 * aix-thread.c: Revert.
11686 * agent.c: Revert.
11687 * addrmap.c: Revert.
11688 * ada-varobj.c: Revert.
11689 * ada-valprint.c: Revert.
11690 * ada-typeprint.c: Revert.
11691 * ada-tasks.c: Revert.
11692 * ada-lang.c: Revert.
11693 * aarch64-tdep.c: Revert.
11694 * aarch64-ravenscar-thread.c: Revert.
11695 * aarch64-newlib-tdep.c: Revert.
11696 * aarch64-linux-tdep.c: Revert.
11697 * aarch64-linux-nat.c: Revert.
11698 * aarch64-fbsd-tdep.c: Revert.
11699 * aarch64-fbsd-nat.c: Revert.
11700 * aarch32-linux-nat.c: Revert.
11701
11702 2019-04-05 Tom Tromey <tom@tromey.com>
11703
11704 * ft32-tdep.c: Sort headers.
11705 * frv-tdep.c: Sort headers.
11706 * frv-linux-tdep.c: Sort headers.
11707 * frame.c: Sort headers.
11708 * frame-unwind.c: Sort headers.
11709 * frame-base.c: Sort headers.
11710 * fork-child.c: Sort headers.
11711 * findvar.c: Sort headers.
11712 * findcmd.c: Sort headers.
11713 * filesystem.c: Sort headers.
11714 * filename-seen-cache.h: Sort headers.
11715 * filename-seen-cache.c: Sort headers.
11716 * fbsd-tdep.c: Sort headers.
11717 * fbsd-nat.h: Sort headers.
11718 * fbsd-nat.c: Sort headers.
11719 * f-valprint.c: Sort headers.
11720 * f-typeprint.c: Sort headers.
11721 * f-lang.c: Sort headers.
11722 * extension.h: Sort headers.
11723 * extension.c: Sort headers.
11724 * extension-priv.h: Sort headers.
11725 * expprint.c: Sort headers.
11726 * exec.h: Sort headers.
11727 * exec.c: Sort headers.
11728 * exceptions.c: Sort headers.
11729 * event-top.c: Sort headers.
11730 * event-loop.c: Sort headers.
11731 * eval.c: Sort headers.
11732 * elfread.c: Sort headers.
11733 * dwarf2read.h: Sort headers.
11734 * dwarf2read.c: Sort headers.
11735 * dwarf2loc.c: Sort headers.
11736 * dwarf2expr.h: Sort headers.
11737 * dwarf2expr.c: Sort headers.
11738 * dwarf2-frame.c: Sort headers.
11739 * dwarf2-frame-tailcall.c: Sort headers.
11740 * dwarf-index-write.h: Sort headers.
11741 * dwarf-index-write.c: Sort headers.
11742 * dwarf-index-common.c: Sort headers.
11743 * dwarf-index-cache.h: Sort headers.
11744 * dwarf-index-cache.c: Sort headers.
11745 * dummy-frame.c: Sort headers.
11746 * dtrace-probe.c: Sort headers.
11747 * disasm.h: Sort headers.
11748 * disasm.c: Sort headers.
11749 * disasm-selftests.c: Sort headers.
11750 * dictionary.c: Sort headers.
11751 * dicos-tdep.c: Sort headers.
11752 * demangle.c: Sort headers.
11753 * dcache.h: Sort headers.
11754 * dcache.c: Sort headers.
11755 * darwin-nat.h: Sort headers.
11756 * darwin-nat.c: Sort headers.
11757 * darwin-nat-info.c: Sort headers.
11758 * d-valprint.c: Sort headers.
11759 * d-namespace.c: Sort headers.
11760 * d-lang.c: Sort headers.
11761 * ctf.c: Sort headers.
11762 * csky-tdep.c: Sort headers.
11763 * csky-linux-tdep.c: Sort headers.
11764 * cris-tdep.c: Sort headers.
11765 * cris-linux-tdep.c: Sort headers.
11766 * cp-valprint.c: Sort headers.
11767 * cp-support.c: Sort headers.
11768 * cp-namespace.c: Sort headers.
11769 * cp-abi.c: Sort headers.
11770 * corelow.c: Sort headers.
11771 * corefile.c: Sort headers.
11772 * continuations.c: Sort headers.
11773 * completer.h: Sort headers.
11774 * completer.c: Sort headers.
11775 * complaints.c: Sort headers.
11776 * coffread.c: Sort headers.
11777 * coff-pe-read.c: Sort headers.
11778 * cli-out.h: Sort headers.
11779 * cli-out.c: Sort headers.
11780 * charset.c: Sort headers.
11781 * c-varobj.c: Sort headers.
11782 * c-valprint.c: Sort headers.
11783 * c-typeprint.c: Sort headers.
11784 * c-lang.c: Sort headers.
11785 * buildsym.c: Sort headers.
11786 * buildsym-legacy.c: Sort headers.
11787 * build-id.h: Sort headers.
11788 * build-id.c: Sort headers.
11789 * btrace.c: Sort headers.
11790 * bsd-uthread.c: Sort headers.
11791 * breakpoint.h: Sort headers.
11792 * breakpoint.c: Sort headers.
11793 * break-catch-throw.c: Sort headers.
11794 * break-catch-syscall.c: Sort headers.
11795 * break-catch-sig.c: Sort headers.
11796 * blockframe.c: Sort headers.
11797 * block.c: Sort headers.
11798 * bfin-tdep.c: Sort headers.
11799 * bfin-linux-tdep.c: Sort headers.
11800 * bfd-target.c: Sort headers.
11801 * bcache.c: Sort headers.
11802 * ax-general.c: Sort headers.
11803 * ax-gdb.h: Sort headers.
11804 * ax-gdb.c: Sort headers.
11805 * avr-tdep.c: Sort headers.
11806 * auxv.c: Sort headers.
11807 * auto-load.c: Sort headers.
11808 * arm-wince-tdep.c: Sort headers.
11809 * arm-tdep.c: Sort headers.
11810 * arm-symbian-tdep.c: Sort headers.
11811 * arm-pikeos-tdep.c: Sort headers.
11812 * arm-obsd-tdep.c: Sort headers.
11813 * arm-nbsd-tdep.c: Sort headers.
11814 * arm-nbsd-nat.c: Sort headers.
11815 * arm-linux-tdep.c: Sort headers.
11816 * arm-linux-nat.c: Sort headers.
11817 * arm-fbsd-tdep.c: Sort headers.
11818 * arm-fbsd-nat.c: Sort headers.
11819 * arm-bsd-tdep.c: Sort headers.
11820 * arch-utils.c: Sort headers.
11821 * arc-tdep.c: Sort headers.
11822 * arc-newlib-tdep.c: Sort headers.
11823 * annotate.h: Sort headers.
11824 * annotate.c: Sort headers.
11825 * amd64-windows-tdep.c: Sort headers.
11826 * amd64-windows-nat.c: Sort headers.
11827 * amd64-tdep.c: Sort headers.
11828 * amd64-sol2-tdep.c: Sort headers.
11829 * amd64-obsd-tdep.c: Sort headers.
11830 * amd64-obsd-nat.c: Sort headers.
11831 * amd64-nbsd-tdep.c: Sort headers.
11832 * amd64-nbsd-nat.c: Sort headers.
11833 * amd64-nat.c: Sort headers.
11834 * amd64-linux-tdep.c: Sort headers.
11835 * amd64-linux-nat.c: Sort headers.
11836 * amd64-fbsd-tdep.c: Sort headers.
11837 * amd64-fbsd-nat.c: Sort headers.
11838 * amd64-dicos-tdep.c: Sort headers.
11839 * amd64-darwin-tdep.c: Sort headers.
11840 * amd64-bsd-nat.c: Sort headers.
11841 * alpha-tdep.c: Sort headers.
11842 * alpha-obsd-tdep.c: Sort headers.
11843 * alpha-nbsd-tdep.c: Sort headers.
11844 * alpha-mdebug-tdep.c: Sort headers.
11845 * alpha-linux-tdep.c: Sort headers.
11846 * alpha-linux-nat.c: Sort headers.
11847 * alpha-bsd-tdep.c: Sort headers.
11848 * alpha-bsd-nat.c: Sort headers.
11849 * aix-thread.c: Sort headers.
11850 * agent.c: Sort headers.
11851 * addrmap.c: Sort headers.
11852 * ada-varobj.c: Sort headers.
11853 * ada-valprint.c: Sort headers.
11854 * ada-typeprint.c: Sort headers.
11855 * ada-tasks.c: Sort headers.
11856 * ada-lang.c: Sort headers.
11857 * aarch64-tdep.c: Sort headers.
11858 * aarch64-ravenscar-thread.c: Sort headers.
11859 * aarch64-newlib-tdep.c: Sort headers.
11860 * aarch64-linux-tdep.c: Sort headers.
11861 * aarch64-linux-nat.c: Sort headers.
11862 * aarch64-fbsd-tdep.c: Sort headers.
11863 * aarch64-fbsd-nat.c: Sort headers.
11864 * aarch32-linux-nat.c: Sort headers.
11865
11866 2019-04-04 Tom Tromey <tom@tromey.com>
11867
11868 * varobj.c (varobj_create): Update.
11869 * rust-exp.y (struct rust_parser) <update_innermost_block,
11870 lookup_symbol>: New methods.
11871 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11872 Rename.
11873 (rust_parser::rust_lookup_type)
11874 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11875 * printcmd.c (display_command, do_one_display): Update.
11876 * parser-defs.h (struct parser_state) <parser_state>: Add
11877 "tracker" parameter.
11878 (block_tracker): New member.
11879 (class innermost_block_tracker) <innermost_block_tracker>: Add
11880 "types" parameter.
11881 <reset>: Remove method.
11882 (innermost_block): Don't declare.
11883 (null_post_parser): Update.
11884 * parse.c (innermost_block): Remove global.
11885 (write_dollar_variable): Update.
11886 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11887 Remove "tracker_types" parameter.
11888 (parse_expression): Add "tracker" parameter.
11889 (parse_expression_for_completion): Update.
11890 (null_post_parser): Add "tracker" parameter.
11891 * p-exp.y: Update rules.
11892 * m2-exp.y: Update rules.
11893 * language.h (struct language_defn) <la_post_parser>: Add
11894 "tracker" parameter.
11895 * go-exp.y: Update rules.
11896 * f-exp.y: Update rules.
11897 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11898 parameter.
11899 * d-exp.y: Update rules.
11900 * c-exp.y: Update rules.
11901 * breakpoint.c (set_breakpoint_condition): Create an
11902 innermost_block_tracker.
11903 (watch_command_1): Likewise.
11904 * ada-lang.c (resolve): Add "tracker" parameter.
11905 (resolve_subexp): Likewise.
11906 * ada-exp.y (write_var_from_sym): Update.
11907
11908 2019-04-04 Tom Tromey <tom@tromey.com>
11909
11910 * type-stack.h: New file.
11911 * type-stack.c: New file.
11912 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11913 type-stack.h.
11914 (insert_into_type_stack, insert_type, push_type, push_type_int)
11915 (insert_type_address_space, pop_type, pop_type_int)
11916 (pop_typelist, pop_type_stack, append_type_stack)
11917 (push_type_stack, get_type_stack, push_typelist)
11918 (follow_type_instance_flags, follow_types): Don't declare.
11919 * parse.c (type_stack): Remove global.
11920 (parse_exp_in_context): Update.
11921 (insert_into_type_stack, insert_type, push_type, push_type_int)
11922 (insert_type_address_space, pop_type, pop_type_int)
11923 (pop_typelist, pop_type_stack, append_type_stack)
11924 (push_type_stack, get_type_stack, push_typelist)
11925 (follow_type_instance_flags, follow_types): Remove (moved to
11926 type-stack.c).
11927 * f-exp.y (type_stack): New global.
11928 Update rules.
11929 (push_kind_type, f_parse): Update.
11930 * d-exp.y (type_stack): New global.
11931 Update rules.
11932 (d_parse): Update.
11933 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11934 Update rules.
11935 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11936 (HFILES_NO_SRCDIR): Add type-stack.h.
11937
11938 2019-04-04 Tom Tromey <tom@tromey.com>
11939
11940 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11941 (rust_parser::convert_ast_to_expression, rust_parse)
11942 (rust_lex_test_completion, rust_lex_tests): Update.
11943 * parser-defs.h (struct expr_completion_state): New.
11944 (struct parser_state) <parser_state>: Add completion parameter.
11945 <mark_struct_expression, mark_completion_tag>: New methods.
11946 <parse_completion, m_completion_state>: New members.
11947 (prefixify_expression, null_post_parser): Update.
11948 (mark_struct_expression, mark_completion_tag): Don't declare.
11949 * parse.c (parse_completion, expout_last_struct)
11950 (expout_tag_completion_type, expout_completion_name): Remove
11951 globals.
11952 (parser_state::mark_struct_expression)
11953 (parser_state::mark_completion_tag): Now methods.
11954 (prefixify_expression): Add last_struct parameter.
11955 (prefixify_subexp): Likewise.
11956 (parse_exp_1): Update.
11957 (parse_exp_in_context): Add cstate parameter. Update.
11958 (parse_expression_for_completion): Create an
11959 expr_completion_state.
11960 (null_post_parser): Add "completion" parameter.
11961 * p-exp.y: Update rules.
11962 (yylex): Update.
11963 * language.h (struct language_defn) <la_post_parser>: Add
11964 "completing" parameter.
11965 * go-exp.y: Update rules.
11966 (lex_one_token): Update.
11967 * expression.h (parse_completion): Don't declare.
11968 * d-exp.y: Update rules.
11969 (lex_one_token): Update rules.
11970 * c-exp.y: Update rules.
11971 (lex_one_token): Update.
11972 * ada-lang.c (resolve): Add "parse_completion" parameter.
11973 (resolve_subexp): Likewise.
11974 (ada_resolve_function): Likewise.
11975
11976 2019-04-04 Tom Tromey <tom@tromey.com>
11977
11978 * parser-defs.h (struct parser_state) <start_arglist,
11979 end_arglist>: New methods.
11980 <arglist_len, m_funcall_chain>: New members.
11981 (arglist_len, start_arglist, end_arglist): Don't declare.
11982 * parse.c (arglist_len, funcall_chain): Remove global.
11983 (start_arglist, end_arglist): Remove functions.
11984 (parse_exp_in_context): Update.
11985 * p-exp.y: Update rules.
11986 * m2-exp.y: Update rules.
11987 * go-exp.y: Update rules.
11988 * f-exp.y: Update rules.
11989 * d-exp.y: Update rules.
11990 * c-exp.y: Update rules.
11991
11992 2019-04-04 Tom Tromey <tom@tromey.com>
11993
11994 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11995 lex_operator, push_back>: New methods.
11996 Update all rules.
11997 (rust_parser::lex_hex, lex_escape): Rename and update.
11998 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11999 (rust_parser::lex_operator): Rename and update.
12000 (rust_parser::lex_number, rustyylex, rustyyerror)
12001 (rust_lex_test_init, rust_lex_test_sequence)
12002 (rust_lex_test_push_back, rust_lex_tests): Update.
12003 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12004 parameter.
12005 <lexptr, prev_lexptr>: New members.
12006 (lexptr, prev_lexptr): Don't declare.
12007 * parse.c (lexptr, prev_lexptr): Remove globals.
12008 (parse_exp_in_context): Update.
12009 * p-exp.y (yylex, yyerror): Update.
12010 * m2-exp.y (parse_number, yylex, yyerror): Update.
12011 * go-exp.y (lex_one_token, yyerror): Update.
12012 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12013 * d-exp.y (lex_one_token, yyerror): Update.
12014 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12015 (lex_one_token, yyerror): Update.
12016 * ada-lex.l (YY_INPUT): Update.
12017 (rewind_to_char): Update.
12018 * ada-exp.y (yyerror): Update.
12019
12020 2019-04-04 Tom Tromey <tom@tromey.com>
12021
12022 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12023 * parser-defs.h (struct parser_state) <parser_state>: Add new
12024 parameter.
12025 <comma_terminates>: New member.
12026 (comma_terminates): Don't declare global.
12027 * parse.c (comma_terminates): Remove global.
12028 (parse_exp_in_context): Update.
12029 * p-exp.y (yylex): Update.
12030 * m2-exp.y (yylex): Update.
12031 * go-exp.y (lex_one_token): Update.
12032 * f-exp.y (yylex): Update.
12033 * d-exp.y (lex_one_token): Update.
12034 * c-exp.y (lex_one_token): Update.
12035 * ada-lex.l: Update.
12036
12037 2019-04-04 Tom Tromey <tom@tromey.com>
12038
12039 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12040 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12041 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12042 * parser-defs.h (paren_depth): Don't declare.
12043 * parse.c (paren_depth): Remove global.
12044 (parse_exp_in_context): Update.
12045 * p-exp.y (paren_depth): New global.
12046 (pascal_parse): Initialize it.
12047 * m2-exp.y (paren_depth): New global.
12048 (m2_parse): Initialize it.
12049 * go-exp.y (paren_depth): New global.
12050 (go_parse): Initialize it.
12051 * f-exp.y (paren_depth): New global.
12052 (f_parse): Initialize it.
12053 * d-exp.y (paren_depth): New global.
12054 (d_parse): Initialize it.
12055 * c-exp.y (paren_depth): New global.
12056 (c_parse): Initialize it.
12057 * ada-lex.l (paren_depth): New global.
12058 (lexer_init): Initialize it.
12059
12060 2019-04-04 Tom Tromey <tom@tromey.com>
12061
12062 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12063 (rust_parser::convert_ast_to_type)
12064 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12065 * parser-defs.h (struct parser_state) <parser_state>: Add
12066 parameters. Initialize new members.
12067 <expression_context_block, expression_context_pc>: New members.
12068 * parse.c (expression_context_block, expression_context_pc):
12069 Remove globals.
12070 (parse_exp_in_context): Update.
12071 * p-exp.y: Update all rules.
12072 (yylex): Update.
12073 * m2-exp.y: Update all rules.
12074 (yylex): Update.
12075 * go-exp.y (yylex): Update.
12076 * f-exp.y (yylex): Update.
12077 * d-exp.y: Update all rules.
12078 (yylex): Update.
12079 * c-exp.y: Update all rules.
12080 (lex_one_token, classify_name, yylex, c_parse): Update.
12081 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12082
12083 2019-04-04 Tom Tromey <tom@tromey.com>
12084
12085 * gdbarch.h, gdbarch.c: Rebuild.
12086 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12087 * stap-probe.h:
12088 (struct stap_parse_info): Replace "parser_state" with
12089 "expr_builder".
12090 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12091 (parser_state): New class.
12092 * parse.c (expr_builder): Rename.
12093 (expr_builder::release): Rename.
12094 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12095 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12096 (write_exp_elt_longcst, write_exp_elt_floatcst)
12097 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12098 (write_exp_string_vector, write_exp_bitstring)
12099 (write_exp_msymbol, mark_struct_expression)
12100 (write_dollar_variable)
12101 (insert_type_address_space, increase_expout_size): Replace
12102 "parser_state" with "expr_builder".
12103 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12104 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12105 "parser_state" with "expr_builder".
12106
12107 2019-04-04 Tom Tromey <tom@tromey.com>
12108
12109 * rust-exp.y: Replace "parse_language" with method call.
12110 * p-exp.y:
12111 (yylex): Replace "parse_language" with method call.
12112 * m2-exp.y:
12113 (yylex): Replace "parse_language" with method call.
12114 * go-exp.y (classify_name): Replace "parse_language" with method
12115 call.
12116 * f-exp.y (yylex): Replace "parse_language" with method call.
12117 * d-exp.y (lex_one_token): Replace "parse_language" with method
12118 call.
12119 * c-exp.y:
12120 (lex_one_token, classify_name, yylex): Replace "parse_language"
12121 with method call.
12122 * ada-exp.y (find_primitive_type, type_char)
12123 (type_system_address): Replace "parse_language" with method call.
12124
12125 2019-04-04 Tom Tromey <tom@tromey.com>
12126
12127 * rust-exp.y: Replace "parse_gdbarch" with method call.
12128 * parse.c (write_dollar_variable, insert_type_address_space):
12129 Replace "parse_gdbarch" with method call.
12130 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12131 call.
12132 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12133 call.
12134 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12135 "parse_gdbarch" with method call.
12136 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12137 with method call.
12138 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12139 "parse_gdbarch" with method call.
12140 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12141 "parse_gdbarch" with method call.
12142 * c-exp.y (parse_type, parse_number, classify_name): Replace
12143 "parse_gdbarch" with method call.
12144 * ada-lex.l: Replace "parse_gdbarch" with method call.
12145 * ada-exp.y (parse_type, find_primitive_type, type_char)
12146 (type_system_address): Replace "parse_gdbarch" with method call.
12147
12148 2019-04-04 Tom Tromey <tom@tromey.com>
12149
12150 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12151 * stap-probe.c (stap_parse_argument): Update.
12152 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12153 initial_size parameter.
12154 * rust-exp.y (rust_lex_tests): Update.
12155 * parse.c (parser_state): Update.
12156 (parse_exp_in_context): Update.
12157 * parser-defs.h (struct parser_state) <parser_state>: Remove
12158 "initial_size" parameter.
12159
12160 2019-04-04 Tom Tromey <tom@tromey.com>
12161
12162 * parser-defs.h (increase_expout_size): Don't declare.
12163 * parse.c (increase_expout_size): Now static.
12164
12165 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12166
12167 * gnu-nat.c (gnu_nat_target::wait): Fix
12168 target_waitstatus_to_string call.
12169
12170 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12171
12172 * eval.c (evaluate_subexp_standard): Handle internal functions
12173 during Fortran function call handling.
12174
12175 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12176
12177 * NEWS: Mention new internal functions.
12178 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12179 (read_base_type): Use dwarf2_init_complex_target_type.
12180 * value.c (creal_internal_fn): New function.
12181 (cimag_internal_fn): New function.
12182 (_initialize_values): Register new internal functions.
12183
12184 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12185
12186 * infrun.c (stop_all_threads): If debug_infrun, always
12187 trace the wait status after wait_one, using
12188 target_waitstatus_to_string and target_pid_to_str.
12189 (handle_inferior_event): Replace various trace of
12190 wait status kind by a single trace.
12191 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12192 wait status kind image by target_waitstatus_to_string.
12193 * target/waitstatus.c (target_waitstatus_to_string): Fix
12194 obsolete comment.
12195
12196 2019-04-01 Tom Tromey <tromey@adacore.com>
12197
12198 PR symtab/23331:
12199 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12200
12201 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12202 Pedro Alves <palves@redhat.com>
12203
12204 * top.c (quit_force): Call 'finalize_values'.
12205 * value.c (finalize_values): New function.
12206 * value.h (finalize_values): Declare.
12207
12208 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12209
12210 * NEWS: Announce $_gdb_major and $_gdb_minor.
12211
12212 * top.c (init_gdb_version_vars): New function.
12213 (gdb_init): Call init_gdb_version_vars.
12214
12215 2019-03-29 Tom Tromey <tromey@adacore.com>
12216
12217 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12218 help text. Remove dead code.
12219
12220 2019-03-29 Keith Seitz <keiths@redhat.com>
12221
12222 From Siddhesh Poyarekar:
12223 * f-lang.h (f77_get_upperbound): Return LONGEST.
12224 (f77_get_lowerbound): Likewise.
12225 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12226 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12227 print them.
12228 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12229 plongest to format print it.
12230 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12231 (f77_get_upperbound): Likewise.
12232 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12233 LOWER_BOUND to LONGEST.
12234 (f77_create_arrayprint_offset_tbl): Likewise.
12235
12236 2019-03-29 Keith Seitz <keiths@redhat.com>
12237
12238 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12239 %s/pulongest for TYPE_LENGTH instead of %d in format
12240 strings.
12241 * ada-typerint.c (ada_print_type): Likewise.
12242 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12243 * compile/compile-c-support.c (generate_register_struct): Likewise.
12244 * gdbtypes.c (recursive_dump_type): Likewise.
12245 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12246 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12247 instead of %d in format strings.
12248 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12249 to std::min to ULONGEST.
12250 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12251 instead of %d in format strings.
12252 * tracepoint.c (info_scope_command): Likewise.
12253 * typeprint.c (print_offset_data::update)
12254 (print_offset_data::finish): Likewise.
12255 * xtensa-tdep.c (xtensa_store_return_value)
12256 (xtensa_push_dummy_call): Likewise.
12257
12258 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12259
12260 * windows-nat.c (display_selector): Fixed format specifications
12261 for 64-bit Cygwin.
12262
12263 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12264
12265 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12266
12267 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12268
12269 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12270 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12271 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12272 (nios2_linux_init_abi): Install it.
12273
12274 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12275
12276 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12277
12278 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12279
12280 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12281
12282 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12283 Tom Tromey <tromey@adacore.com>
12284
12285 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12286
12287 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12288
12289 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12290 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12291 method to compute the bounds of range types. Also print "[evaluated]"
12292 if the bounds' values come from a dynamic evaluation.
12293
12294 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12295
12296 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12297 whitespace when pretty printing is on.
12298
12299 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12300
12301 * ppc-linux-nat.c: Add include.
12302
12303 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12304
12305 * NEWS: Mention AArch64 Pointer Authentication.
12306
12307 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12308
12309 * arm-linux-nat.c: Add include.
12310
12311 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12312
12313 * source-cache.c (source_cache::get_source_lines): Re-read
12314 fullname after calling open_source_file.
12315
12316 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12317
12318 * NEWS: Mention TLS support for FreeBSD.
12319
12320 2019-03-25 Tom Tromey <tromey@adacore.com>
12321
12322 * minsyms.c (BUNCH_SIZE): Update comment.
12323 (~minimal_symbol_reader): Remove old comment.
12324 (compact_minimal_symbols): Update comment.
12325 (minimal_symbol_reader::install): Remove old comment. Update
12326 other comments.
12327
12328 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12329
12330 * s390-linux-nat.c: Add include.
12331
12332 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12333
12334 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12335 Call linux_get_hwcap.
12336 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12337 Likewise.
12338 (aarch64_linux_get_hwcap): Remove function.
12339 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12340 declaration.
12341 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12342 linux_get_hwcap.
12343 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12344 * linux-tdep.c (linux_get_hwcap): Add function.
12345 (linux_get_hwcap2): Likewise.
12346 * linux-tdep.h (linux_get_hwcap): Add declaration.
12347 (linux_get_hwcap2): Likewise.
12348 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12349 (ppc_linux_get_hwcap2): Likewise.
12350 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12351 linux_get_hwcap.
12352 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12353 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12354 (ppc_linux_nat_target::read_description): Likewise.
12355 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12356 * s390-linux-nat.c: Likewise.
12357 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12358
12359 2019-03-24 Tom Tromey <tom@tromey.com>
12360
12361 * ada-lang.c (standard_lookup): Simplify initialization.
12362 (ada_lookup_symbol_nonlocal): Simplify return.
12363 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12364 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12365 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12366 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12367 initialization.
12368 * solib.c (solib_global_lookup): Simplify.
12369 * symtab.c (null_block_symbol): Remove.
12370 (symbol_cache_lookup): Simplify returns.
12371 (lookup_language_this): Simplify returns.
12372 (lookup_symbol_aux): Simplify return.
12373 (lookup_local_symbol): Simplify returns.
12374 (lookup_global_symbol_from_objfile): Simplify return.
12375 (lookup_symbol_in_objfile_symtabs)
12376 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12377 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12378 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12379 * cp-namespace.c (cp_lookup_bare_symbol)
12380 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12381 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12382 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12383 (cp_lookup_symbol_via_imports): Simplify initialization.
12384 (find_symbol_in_baseclass): Likewise.
12385 * symtab.h (null_block_symbol): Remove.
12386 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12387 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12388 (d_lookup_symbol_module): Likewise.
12389 (find_symbol_in_baseclass): Simplify initialization.
12390
12391 2019-03-24 Tom Tromey <tom@tromey.com>
12392
12393 * expression.h: Don't include symtab.h.
12394 (struct block): Forward declare.
12395
12396 2019-03-24 Tom Tromey <tom@tromey.com>
12397
12398 * c-exp.y (typebase): Remove casts.
12399 * gdbtypes.c (lookup_unsigned_typename, )
12400 (lookup_signed_typename): Remove cast.
12401 * eval.c (parse_to_comma_and_eval): Remove cast.
12402 * parse.c (write_dollar_variable): Remove cast.
12403 * block.h (struct block) <superblock>: Now const.
12404 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12405 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12406 (map_block): Make "block" const.
12407 * symfile.h (struct quick_symbol_functions)
12408 <map_matching_symbols>: Constify block argument to "callback".
12409 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12410 const.
12411 (find_pc_sect_compunit_symtab): Make "b" const.
12412 (find_symbol_at_address): Likewise.
12413 (search_symbols): Likewise.
12414 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12415 (dw2_debug_names_lookup_symbol): Likewise.
12416 (dw2_map_matching_symbols): Update.
12417 * p-valprint.c (pascal_val_print): Remove "block".
12418 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12419 (aux_add_nonlocal_symbols): Make "block" const.
12420 (resolve_subexp): Remove cast.
12421 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12422 const.
12423 (iterate_over_file_blocks): Likewise.
12424 * f-exp.y (%union) <bval>: Remove.
12425 * coffread.c (patch_opaque_types): Make "b" const.
12426 * spu-tdep.c (spu_catch_start): Make "block" const.
12427 * c-valprint.c (print_unpacked_pointer): Remove "block".
12428 * symmisc.c (dump_symtab_1): Make "b" const.
12429 (block_depth): Make "block" const.
12430 * d-exp.y (%union) <bval>: Remove.
12431 * cp-support.h (cp_lookup_rtti_type): Update.
12432 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12433 * psymtab.c (psym_lookup_symbol): Make "block" const.
12434 (maintenance_check_psymtabs): Make "b" const.
12435 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12436 (enumerate_locals, enumerate_args): Update.
12437 * python/py-symtab.c (stpy_global_block): Make "block" const.
12438 (stpy_static_block): Likewise.
12439 * inline-frame.c (block_starting_point_at): Make "new_block"
12440 const.
12441 * block.c (find_block_in_blockvector): Make return type const.
12442 (blockvector_for_pc_sect): Make "b" const.
12443 (find_block_in_blockvector): Make "b" const.
12444
12445 2019-03-23 Tom Tromey <tom@tromey.com>
12446
12447 * varobj.c (varobj_create): Update.
12448 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12449 * printcmd.c (display_command, do_one_display): Don't reset
12450 innermost_block.
12451 * parser-defs.h (enum innermost_block_tracker_type): Move to
12452 expression.h.
12453 (innermost_block): Update comment.
12454 * parse.c (parse_exp_1): Add tracker_types parameter.
12455 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12456 tracker_types parameter. Reset innermost_block.
12457 (parse_exp_in_context): Remove.
12458 (parse_expression_for_completion): Update.
12459 * objfiles.c (~objfile): Don't reset expression_context_block or
12460 innermost_block.
12461 * expression.h (enum innermost_block_tracker_type): Move from
12462 parser-defs.h.
12463 (parse_exp_1): Add tracker_types parameter.
12464 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12465 reset innermost_block.
12466
12467 2019-03-23 Tom Tromey <tom@tromey.com>
12468
12469 * objfiles.h: Include bcache.h.
12470
12471 2019-03-23 Tom Tromey <tom@tromey.com>
12472
12473 * linespec.c (get_current_search_block): Use
12474 scoped_restore_current_language.
12475 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12476
12477 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12478 Jiong Wang <jiong.wang@arm.com>
12479
12480 * aarch64-linux-tdep.c
12481 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12482 section.
12483 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12484
12485 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12486 Jiong Wang <jiong.wang@arm.com>
12487
12488 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12489 instructions.
12490 (aarch64_analyze_prologue_test): Add PACIASP test.
12491 (aarch64_prologue_prev_register): Unmask PC value.
12492
12493 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12494 Jiong Wang <jiong.wang@arm.com>
12495
12496 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12497 (aarch64_dwarf2_prev_register): Unmask PC value.
12498 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12499 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12500 DW_CFA_AARCH64_negate_ra_state.
12501 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12502
12503 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12504 Jiong Wang <jiong.wang@arm.com>
12505
12506 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12507 registers.
12508 (aarch64_pseudo_register_name): Likewise.
12509 (aarch64_pseudo_register_type): Likewise.
12510 (aarch64_pseudo_register_reggroup_p): Likewise.
12511 (aarch64_gdbarch_init): Add pauth registers.
12512 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12513 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12514 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12515 (struct gdbarch_tdep): Add regnum for ra_state.
12516
12517 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12518 Jiong Wang <jiong.wang@arm.com>
12519
12520 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12521
12522 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12523 Jiong Wang <jiong.wang@arm.com>
12524
12525 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12526 function.
12527 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12528 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12529 (aarch64_gdbarch_init): Add puth registers.
12530 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12531 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12532 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12533
12534 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12535 Jiong Wang <jiong.wang@arm.com>
12536
12537 * aarch64-linux-nat.c
12538 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12539 * aarch64-linux-tdep.c
12540 (aarch64_linux_core_read_description): Likewise.
12541 (aarch64_linux_get_hwcap): New function.
12542 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12543 (aarch64_linux_get_hwcap): New declaration.
12544
12545 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12546 Jiong Wang <jiong.wang@arm.com>
12547
12548 * aarch64-linux-nat.c
12549 (aarch64_linux_nat_target::read_description): Add pauth param.
12550 * aarch64-linux-tdep.c
12551 (aarch64_linux_core_read_description): Likewise.
12552 * aarch64-tdep.c (struct target_desc): Add in pauth.
12553 (aarch64_read_description): Add pauth param.
12554 (aarch64_gdbarch_init): Likewise.
12555 * aarch64-tdep.h (aarch64_read_description): Likewise.
12556 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12557 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12558 * features/Makefile: Add new files.
12559 * features/aarch64-pauth.c: New file.
12560 * features/aarch64-pauth.xml: New file.
12561
12562 2019-03-20 Tom Tromey <tromey@adacore.com>
12563
12564 * infrun.c (handle_inferior_event): Rename from
12565 handle_inferior_event_1. Create a scoped_value_mark.
12566 (handle_inferior_event): Remove.
12567
12568 2019-03-19 Tom Tromey <tromey@adacore.com>
12569
12570 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12571 * infrun.h (print_stop_event): Add "displays" parameter.
12572 * infrun.c (print_stop_event): Add "displays" parameter.
12573
12574 2019-03-19 Pedro Alves <palves@redhat.com>
12575
12576 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12577 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12578 to -1. Fix TABs vs spaces.
12579 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12580 * tui/tui-out.h (tui_ui_out) Add intro comments.
12581 <m_line, m_start_of_line>: In-class initialize, and add describing
12582 comment.
12583
12584 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12585
12586 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12587 variable names.
12588 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12589
12590 2019-03-18 Pedro Alves <palves@redhat.com>
12591 Eli Zaretskii <eliz@gnu.org>
12592
12593 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12594 m_line and m_start_of_line.
12595
12596 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12597
12598 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12599 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12600 it returns a newline. This fixes a regression in TU mode, whereby
12601 the next line is output on the same screen line as the user input.
12602
12603 2019-03-18 Tom Tromey <tromey@adacore.com>
12604
12605 * minsyms.c (minimal_symbol_reader::install): Remove call to
12606 obstack_blank.
12607
12608 2019-03-18 Pedro Alves <palves@redhat.com>
12609
12610 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12611 New globals.
12612 (apply_style): New, factored out from ...
12613 (apply_ansi_escape): ... this. Handle reverse video mode.
12614 (tui_set_reverse_mode): New function.
12615 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12616 * tui/tui-winsource.c (tui_show_source_line): Use
12617 tui_set_reverse_mode instead of setting A_STANDOUT.
12618 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12619 New setter methods.
12620
12621 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12622
12623 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12624 Handle tabs.
12625
12626 2019-03-18 Tom Tromey <tromey@adacore.com>
12627
12628 * ada-lang.c (empty_array): Add "high" parameter.
12629 (ada_evaluate_subexp): Update.
12630
12631 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12632
12633 * unittests/string_view-selftests.c: Define
12634 _initialize_string_view_selftests unconditionally.
12635
12636 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12637
12638 PR gdb/24350
12639 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12640
12641 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12642
12643 PR gdb/24351
12644 * windows-nat.c (display_selector): Fix format specifiers.
12645
12646 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12647
12648 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12649 tui_refill_source_window instead of tui_refresh_win, to update the
12650 current execution line. This fixes redisplay of the current line
12651 when stepping through the code with "next" or "step".
12652
12653 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12654
12655 * source-cache.c (source_cache::get_source_lines): Call
12656 find_source_lines to initialize s->nlines. This fixes vertical
12657 scrolling of TUI source window when the DOWN arrow is pressed.
12658
12659 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12660
12661 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12662 linux-thread-db.c (_initialize_thread_db): Likewise.
12663
12664 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12665
12666 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12667 wclrtoeol in tui_show_source_line". This reverts changes made in
12668 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12669
12670 2019-03-15 Tom Tromey <tom@tromey.com>
12671
12672 * symtab.h (struct minimal_symbol): Derive from
12673 general_symbol_info.
12674 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12675 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12676 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12677 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12678 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12679 (MSYMBOL_SEARCH_NAME): Update.
12680 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12681 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12682 * minsyms.c (minimal_symbol_reader::record_full): Update.
12683
12684 2019-03-15 Tom Tromey <tom@tromey.com>
12685
12686 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12687
12688 2019-03-15 Tom Tromey <tom@tromey.com>
12689
12690 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12691 unique_xmalloc_ptr.
12692 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12693 Update.
12694 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12695 (build_minimal_symbol_hash_tables)
12696 (minimal_symbol_reader::install): Update.
12697
12698 2019-03-15 Tom Tromey <tom@tromey.com>
12699
12700 * symtab.c (create_demangled_names_hash): Update.
12701 (symbol_set_names): Update.
12702 * objfiles.h (struct objfile_per_bfd_storage)
12703 <demangled_names_hash>: Now an htab_up.
12704 * objfiles.c (objfile_per_bfd_storage): Simplify.
12705
12706 2019-03-15 Tom Tromey <tom@tromey.com>
12707
12708 * objfiles.h (struct objfile_per_bfd_storage): Declare
12709 destructor.
12710 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12711 New.
12712 (get_objfile_bfd_data): Use new. Don't initialize
12713 language_of_main.
12714 (free_objfile_per_bfd_storage): Remove.
12715 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12716
12717 2019-03-15 Tom Tromey <tom@tromey.com>
12718
12719 * symfile.c (reread_symbols): Update.
12720 * objfiles.c (objfile::objfile): Update.
12721 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12722 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12723 comment.
12724 (minimal_symbol_reader::install): Update.
12725 (terminate_minimal_symbol_table): Remove.
12726 * jit.c (jit_object_close_impl): Update.
12727
12728 2019-03-15 Tom Tromey <tom@tromey.com>
12729
12730 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12731 initializations.
12732
12733 2019-03-15 Tom Tromey <tom@tromey.com>
12734
12735 * objfiles.h (struct objfile_per_bfd_storage)
12736 <demangled_hash_languages>: Now a bitset.
12737 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12738 (lookup_minimal_symbol): Update.
12739
12740 2019-03-15 Tom Tromey <tom@tromey.com>
12741
12742 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12743 Don't return the symbol.
12744 * coffread.c (record_minimal_symbol): Use record_full.
12745
12746 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12747
12748 The MS-Windows port of ncurses fails to switch to a color pair if
12749 one or both of the colors are the implicit default colors. This
12750 change records the default colors when TUI is initialized, and
12751 then specifies them explicitly when a color pair uses the default
12752 colors. This allows color styling in TUI mode on MS-Windows.
12753
12754 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12755 ncurses_norm_attr.
12756 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12757 colors in ncurses_norm_attr.
12758 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12759 "none", replace it with the default color recorded in
12760 ncurses_norm_attr.
12761
12762 2019-03-14 Tom Tromey <tromey@adacore.com>
12763
12764 * source-cache.h (class source_cache) <get_source_lines>: Return
12765 std::string.
12766 * source-cache.c (source_cache::extract_lines): Handle case where
12767 first_pos==npos. Return std::string.
12768 (source_cache::get_source_lines): Update.
12769
12770 2019-03-14 Tom Tromey <tromey@adacore.com>
12771
12772 * NEWS: Add item for "style sources" commands.
12773 * source-cache.c (source_cache::get_source_lines): Check
12774 source_styling.
12775 * cli/cli-style.c (source_styling): New global.
12776 (_initialize_cli_style): Add "style sources" commands.
12777 (show_style_sources): New function.
12778 * cli/cli-style.h (source_styling): Declare.
12779
12780 2019-03-14 Pedro Alves <palves@redhat.com>
12781 Tom Tromey <tromey@adacore.com>
12782
12783 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12784 * tui/tui-winsource.c (tui_refill_source_window): New function,
12785 from...
12786 (tui_horizontal_source_scroll): ... here. Move some logic.
12787 * cli/cli-style.c (set_style_enabled): Notify new observable.
12788 * tui/tui-hooks.c (tui_redisplay_source): New function.
12789 (tui_attach_detach_observers): Attach or detach
12790 tui_redisplay_source.
12791 * observable.h (source_styling_changed): New observable.
12792 * observable.c: Define source_styling_changed observable.
12793
12794 2019-03-13 Tom Tromey <tromey@adacore.com>
12795
12796 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12797 (i386_gnu_nat_target::store_registers): Update.
12798 * target-debug.h (target_debug_print_std_string): New macro.
12799 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12800 * windows-tdep.c (display_one_tib): Update.
12801 * tui/tui-stack.c (tui_make_status_line): Update.
12802 * top.c (print_inferior_quit_action): Update.
12803 * thread.c (thr_try_catch_cmd): Update.
12804 (add_thread_with_info): Update.
12805 (thread_target_id_str): Update.
12806 (thr_try_catch_cmd): Update.
12807 (thread_command): Update.
12808 (thread_find_command): Update.
12809 * record-btrace.c (record_btrace_target::info_record)
12810 (record_btrace_resume_thread, record_btrace_target::resume)
12811 (record_btrace_cancel_resume, record_btrace_step_thread)
12812 (record_btrace_target::wait, record_btrace_target::wait)
12813 (record_btrace_target::wait, record_btrace_target::stop): Update.
12814 * progspace.c (print_program_space): Update.
12815 * process-stratum-target.c
12816 (process_stratum_target::thread_address_space): Update.
12817 * linux-fork.c (linux_fork_mourn_inferior)
12818 (detach_checkpoint_command, info_checkpoints_command)
12819 (linux_fork_context): Update.
12820 (linux_fork_detach): Update.
12821 (class scoped_switch_fork_info): Update.
12822 (delete_checkpoint_command): Update.
12823 * infrun.c (follow_fork_inferior): Update.
12824 (follow_fork_inferior): Update.
12825 (proceed_after_vfork_done): Update.
12826 (handle_vfork_child_exec_or_exit): Update.
12827 (follow_exec): Update.
12828 (displaced_step_prepare_throw): Update.
12829 (displaced_step_restore): Update.
12830 (start_step_over): Update.
12831 (resume_1): Update.
12832 (clear_proceed_status_thread): Update.
12833 (proceed): Update.
12834 (print_target_wait_results): Update.
12835 (do_target_wait): Update.
12836 (context_switch): Update.
12837 (stop_all_threads): Update.
12838 (restart_threads): Update.
12839 (finish_step_over): Update.
12840 (handle_signal_stop): Update.
12841 (switch_back_to_stepped_thread): Update.
12842 (keep_going_pass_signal): Update.
12843 (print_exited_reason): Update.
12844 (normal_stop): Update.
12845 * inferior.c (inferior_pid_to_str): Change return type.
12846 (print_selected_inferior): Update.
12847 (add_inferior): Update.
12848 (detach_inferior): Update.
12849 * dummy-frame.c (fprint_dummy_frames): Update.
12850 * dcache.c (dcache_info_1): Update.
12851 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12852 (btrace_fetch, btrace_clear): Update.
12853 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12854 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12855 type.
12856 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12857 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12858 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12859 * gdbarch.c, gdbarch.h: Rebuild.
12860 * gdbarch.sh (core_pid_to_str): Change return type.
12861 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12862 return type.
12863 (windows_nat_target::pid_to_str): Change return type.
12864 (windows_delete_thread): Update.
12865 (windows_nat_target::attach): Update.
12866 (windows_nat_target::files_info): Update.
12867 * target-delegates.c: Rebuild.
12868 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12869 return type.
12870 (sol_thread_target::pid_to_str): Change return type.
12871 * remote.c (class remote_target) <pid_to_str>: Change return
12872 type.
12873 (remote_target::pid_to_str): Change return type.
12874 (extended_remote_target::attach, remote_target::remote_stop_ns)
12875 (remote_target::remote_notif_remove_queued_reply)
12876 (remote_target::push_stop_reply, remote_target::disable_btrace):
12877 Update.
12878 (extended_remote_target::attach): Update.
12879 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12880 type.
12881 (gdbsim_target::pid_to_str): Change return type.
12882 * ravenscar-thread.c (struct ravenscar_thread_target)
12883 <pid_to_str>: Change return type.
12884 (ravenscar_thread_target::pid_to_str): Change return type.
12885 * procfs.c (class procfs_target) <pid_to_str>: Change return
12886 type.
12887 (procfs_target::pid_to_str): Change return type.
12888 (procfs_target::attach): Update.
12889 (procfs_target::detach): Update.
12890 (procfs_target::fetch_registers): Update.
12891 (procfs_target::store_registers): Update.
12892 (procfs_target::wait): Update.
12893 (procfs_target::files_info): Update.
12894 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12895 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12896 return type.
12897 (nto_procfs_target::pid_to_str): Change return type.
12898 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12899 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12900 return type.
12901 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12902 (exit_lwp): Update.
12903 (attach_proc_task_lwp_callback, get_detach_signal)
12904 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12905 (linux_nat_target::resume, wait_lwp, stop_callback)
12906 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12907 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12908 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12909 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12910 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12911 type.
12912 (inf_ptrace_target::attach): Update.
12913 (inf_ptrace_target::files_info): Update.
12914 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12915 type.
12916 (go32_nat_target::pid_to_str): Change return type.
12917 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12918 (gnu_nat_target::wait): Update.
12919 (gnu_nat_target::wait): Update.
12920 (gnu_nat_target::resume): Update.
12921 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12922 (fbsd_nat_target::wait): Update.
12923 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12924 type.
12925 (darwin_nat_target::attach): Update.
12926 * corelow.c (class core_target) <pid_to_str>: Change return type.
12927 (core_target::pid_to_str): Change return type.
12928 * target.c (normal_pid_to_str): Change return type.
12929 (default_pid_to_str): Likewise.
12930 (target_pid_to_str): Change return type.
12931 (target_translate_tls_address): Update.
12932 (target_announce_detach): Update.
12933 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12934 return type.
12935 (bsd_uthread_target::pid_to_str): Change return type.
12936 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12937 type.
12938 (bsd_kvm_target::pid_to_str): Change return type.
12939 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12940 return type.
12941 (aix_thread_target::pid_to_str): Change return type.
12942 * target.h (struct target_ops) <pid_to_str>: Change return type.
12943 (target_pid_to_str, normal_pid_to_str): Likewise.
12944 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12945 type.
12946 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12947 type.
12948 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12949 return type.
12950 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12951 type.
12952 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12953 type.
12954 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12955 return type.
12956
12957 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12958
12959 * NEWS: Mention that the new default MI version is 3. Mention
12960 changes to the output of commands and events that deal with
12961 multi-location breakpoints.
12962 * breakpoint.c: Include "mi/mi-out.h".
12963 (print_one_breakpoint): Change output syntax if using MI version
12964 >= 3.
12965 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12966 New.
12967 (mi_multi_location_breakpoint_output_fixed): New.
12968 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12969 (mi_cmd_fix_multi_location_breakpoint_output): New.
12970 (mi_multi_location_breakpoint_output_fixed): New.
12971 * mi/mi-cmds.c (mi_cmds): Register command
12972 -fix-multi-location-breakpoint-output.
12973 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12974 interpreter "mi".
12975
12976 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12977
12978 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12979 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12980 instantiate mi_ui_out based on interpreter name.
12981 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12982 * mi/mi-main.c (mi_load_progress): Likewise.
12983
12984 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12985
12986 * NEWS: Combine separate "New targets" sections for 8.3.
12987
12988 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12989
12990 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12991 (ppcfbsd_init_abi): Install gdbarch
12992 "fetch_tls_load_module_address" and "get_thread_local_address"
12993 methods.
12994
12995 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12996
12997 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12998 (riscv_fbsd_init_abi): Install gdbarch
12999 "fetch_tls_load_module_address" and "get_thread_local_address"
13000 methods.
13001
13002 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13003
13004 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13005 (i386fbsd_init_abi): Install gdbarch
13006 "fetch_tls_load_module_address" and "get_thread_local_address"
13007 methods.
13008
13009 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13010
13011 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13012 (amd64fbsd_init_abi): Install gdbarch
13013 "fetch_tls_load_module_address" and "get_thread_local_address"
13014 methods.
13015
13016 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13017
13018 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13019 (struct fbsd_pspace_data): New type.
13020 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13021 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13022 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13023 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13024 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13025
13026 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13027
13028 * gdbtypes.c (lookup_struct_elt): New function.
13029 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13030 * gdbtypes.h (struct struct_elt): New type.
13031 (lookup_struct_elt): New prototype.
13032
13033 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13034
13035 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13036 remove disabled code block.
13037
13038 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13039
13040 * gdbarch.sh (get_thread_local_address): New method.
13041 * gdbarch.h, gdbarch.c: Regenerate.
13042 * target.c (target_translate_tls_address): Use
13043 gdbarch_get_thread_local_address if present instead of
13044 target::get_thread_local_address.
13045
13046 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13047
13048 * target.h (target::get_thread_local_address): Update comment.
13049
13050 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13051
13052 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13053 objfile->separate_debug_objfile_backlink if not NULL.
13054
13055 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13056
13057 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13058 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13059 (amd64bsd_store_inferior_registers): Likewise.
13060 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13061 Enable segment base registers.
13062 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13063 PT_GETFSBASE and PT_GETGSBASE.
13064 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13065 PT_SETGSBASE.
13066 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13067 segment base registers.
13068 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13069
13070 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13071
13072 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13073 Update calls to i386_target_description to add 'segments'
13074 parameter.
13075 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13076 add segment base registers.
13077 * arch/i386.c (i386_create_target_description): Add 'segments'
13078 parameter to enable segment base registers.
13079 * arch/i386.h (i386_create_target_description): Likewise.
13080 * features/i386/32bit-segments.xml: New file.
13081 * features/i386/32bit-segments.c: Generate.
13082 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13083 call to i386_target_description to add 'segments' parameter.
13084 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13085 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13086 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13087 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13088 if feature is present.
13089 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13090 Add 'segments' parameter to call to i386_target_description.
13091 (i386_target_description): Add 'segments' parameter to enable
13092 segment base registers.
13093 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13094 to call to i386_target_description.
13095 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13096 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13097 Define I386_NUM_REGS.
13098 (i386_target_description): Add 'segments' parameter to enable
13099 segment base registers.
13100
13101 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13102
13103 PR/24325
13104 * source-cache.c: #undef open and close, to avoid unresolved
13105 externals during linking.
13106
13107 2019-03-12 Tom Tromey <tromey@adacore.com>
13108
13109 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13110 const. Add initializers.
13111 (_initialize_remote): Don't initialize ptid globals.
13112
13113 2019-03-12 Pedro Alves <palves@redhat.com>
13114
13115 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13116
13117 2019-03-12 Pedro Alves <palves@redhat.com>
13118
13119 * cp-name-parser.y (main): Remove unused 'len' variable.
13120
13121 2019-03-12 Tom Tromey <tromey@adacore.com>
13122
13123 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13124 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13125
13126 2019-03-12 Tom Tromey <tromey@adacore.com>
13127
13128 * linux-nat.c (iterate_over_lwps): Update.
13129 (stop_callback): Remove parameter.
13130 (stop_wait_callback, detach_callback, resume_set_callback)
13131 (select_singlestep_lwp_callback, set_ignore_sigint)
13132 (status_callback, resumed_callback, resume_clear_callback)
13133 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13134 data parameter.
13135 (linux_nat_target::detach, linux_nat_target::resume)
13136 (linux_stop_and_wait_all_lwps, select_event_lwp)
13137 (linux_nat_filter_event, linux_nat_wait_1)
13138 (linux_nat_target::kill, linux_nat_target::stop)
13139 (linux_nat_target::stop): Update.
13140 (linux_nat_resume_callback): Change type.
13141 (resume_stopped_resumed_lwps, count_events_callback)
13142 (select_event_lwp_callback): Likewise.
13143 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13144 * arm-linux-nat.c (struct update_registers_data): Remove.
13145 (update_registers_callback): Change type.
13146 (arm_linux_insert_hw_breakpoint1): Update.
13147 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13148 parameter.
13149 (x86_linux_dr_set_addr): Update.
13150 (x86_linux_dr_set_control): Update.
13151 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13152 (iterate_over_lwps): Use gdb::function_view.
13153 * nat/aarch64-linux-hw-point.c (struct
13154 aarch64_dr_update_callback_param): Remove.
13155 (debug_reg_change_callback): Change type.
13156 (aarch64_notify_debug_reg_change): Update.
13157 * s390-linux-nat.c (s390_refresh_per_info): Update.
13158
13159 2019-03-11 Tom Tromey <tromey@adacore.com>
13160
13161 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13162 redundant assignment to "this_cu".
13163
13164 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13165
13166 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13167
13168 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13169
13170 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13171 from...
13172 (rank_one_type): ... this.
13173
13174 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13175
13176 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13177 from...
13178 (rank_one_type): ... this.
13179
13180 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13181
13182 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13183 from...
13184 (rank_one_type): ... this.
13185
13186 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13187
13188 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13189 from...
13190 (rank_one_type): ... this.
13191
13192 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13193
13194 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13195 from...
13196 (rank_one_type): ... this.
13197
13198 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13199
13200 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13201 from...
13202 (rank_one_type): ... this.
13203
13204 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13205
13206 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13207 from...
13208 (rank_one_type): ... this.
13209
13210 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13211
13212 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13213 from...
13214 (rank_one_type): ... this.
13215
13216 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13217
13218 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13219 from...
13220 (rank_one_type): ... this.
13221
13222 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13223
13224 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13225 from...
13226 (rank_one_type): ... this.
13227
13228 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13229
13230 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13231 from...
13232 (rank_one_type): ... this.
13233
13234 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13235
13236 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13237 from...
13238 (rank_one_type): ... this.
13239
13240 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13241
13242 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13243 inferior-events' shows the example events.
13244
13245 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13246
13247 Support styling on native MS-Windows console
13248
13249 PR/24315
13250 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13251 on MS-Windows if $TERM is not defined.
13252
13253 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13254
13255 * posix-hdep.c (gdb_console_fputs):
13256 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13257 functions.
13258 * ui-file.h (gdb_console_fputs): Add prototype.
13259
13260 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13261 back to fputs only if the former returns zero.
13262
13263 2019-03-07 Tom Tromey <tom@tromey.com>
13264
13265 * symmisc.c (print_symbol_bcache_statistics): Update.
13266 (print_objfile_statistics): Update.
13267 * symfile.c (allocate_symtab): Update.
13268 * stabsread.c: Don't include bcache.h.
13269 * psymtab.h (struct psymbol_bcache): Don't declare.
13270 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13271 (psymbol_bcache_init, psymbol_bcache_free)
13272 (psymbol_bcache_get_bcache): Don't declare.
13273 * psymtab.c (struct psymbol_bcache): Remove.
13274 (psymtab_storage::psymtab_storage): Update.
13275 (psymtab_storage::~psymtab_storage): Update.
13276 (psymbol_bcache_init, psymbol_bcache_free)
13277 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13278 (add_psymbol_to_bcache): Update.
13279 (allocate_psymtab): Update.
13280 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13281 macro_cache>: No longer pointers.
13282 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13283 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13284 * macrotab.c (macro_bcache): Update.
13285 * macroexp.c: Don't include bcache.h.
13286 * gdbtypes.c (check_types_worklist): Update.
13287 (types_deeply_equal): Remove TRY/CATCH. Update.
13288 * elfread.c (elf_symtab_read): Update.
13289 * dwarf2read.c: Don't include bcache.h.
13290 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13291 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13292 (print_bcache_statistics, bcache_memory_used): Don't declare.
13293 (struct bcache): Move from bcache.c. Add constructor, destructor,
13294 methods. Rename all data members.
13295 * bcache.c (struct bcache): Move to bcache.h.
13296 (bcache::expand_hash_table): Rename from expand_hash_table.
13297 (bcache): Remove.
13298 (bcache::insert): Rename from bcache_full.
13299 (bcache::compare): Rename from bcache_compare.
13300 (bcache_xmalloc): Remove.
13301 (bcache::~bcache): Rename from bcache_xfree.
13302 (bcache::print_statistics): Rename from print_bcache_statistics.
13303 (bcache::memory_used): Rename from bcache_memory_used.
13304
13305 2019-03-07 Pedro Alves <palves@redhat.com>
13306
13307 * infrun.c (normal_stop): Also check for
13308 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13309
13310 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13311
13312 * f-lang.c (value_from_host_double): Moved to...
13313 * value.c (value_from_host_double): ...here.
13314 * value.h (value_from_host_double): Declare.
13315 * guile/scm-math.c (vlscm_convert_typed_number): Use
13316 value_from_host_double.
13317 (vlscm_convert_number): Likewise.
13318 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13319 * python/py-value.c (convert_value_from_python): Likewise.
13320
13321 2019-03-06 Tom Tromey <tom@tromey.com>
13322
13323 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13324
13325 2019-03-06 Tom Tromey <tom@tromey.com>
13326
13327 * utils.h (free_current_contents): Don't declare.
13328 * utils.c (free_current_contents): Remove.
13329
13330 2019-03-06 Tom Tromey <tom@tromey.com>
13331
13332 * top.c (quit_force): Update.
13333 * main.c (captured_command_loop): Update.
13334 * common/new-op.c (operator new): Update.
13335 * common/common-exceptions.c (struct catcher)
13336 <save_cleanup_chain>: Remove member.
13337 (exceptions_state_mc_init): Update.
13338 (exception_try_scope_entry): Return nullptr.
13339 (exception_try_scope_exit, exception_rethrow)
13340 (throw_exception_sjlj, throw_exception_cxx): Update.
13341 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13342 (all_cleanups, do_cleanups, discard_cleanups)
13343 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13344 (restore_cleanups, restore_final_cleanups): Don't declare.
13345 (do_final_cleanups): Remove parameter.
13346 * common/cleanups.c (cleanup_chain, make_cleanup)
13347 (make_cleanup_dtor, all_cleanups, do_cleanups)
13348 (discard_my_cleanups, discard_cleanups)
13349 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13350 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13351 (null_cleanup): Remove.
13352 (do_final_cleanups): Remove parameter.
13353
13354 2019-03-06 Tom Tromey <tom@tromey.com>
13355
13356 * remote.c (remote_target::remote_parse_stop_reply): Use
13357 unique_xmalloc_ptr.
13358
13359 2019-03-06 Tom Tromey <tom@tromey.com>
13360
13361 * stabsread.c (struct stabs_field_info): Rename from field_info.
13362 <list, fnlist>: Add initializers.
13363 <obstack>: New member.
13364 (read_member_functions, read_struct_fields, read_baseclasses):
13365 Allocate on obstack. Don't use cleanups.
13366 (read_one_struct_field, read_member_functions, read_struct_fields)
13367 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13368 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13369 (read_struct_type): Update.
13370
13371 2019-03-06 Tom Tromey <tom@tromey.com>
13372
13373 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13374 * common/filestuff.h (make_cleanup_close): Don't declare.
13375 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13376 Remove.
13377
13378 2019-03-06 Tom Tromey <tom@tromey.com>
13379
13380 * solib-aix.c: Use make_scope_exit.
13381
13382 2019-03-06 Tom Tromey <tom@tromey.com>
13383
13384 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13385 Use make_scope_exit.
13386
13387 2019-03-06 Tom Tromey <tom@tromey.com>
13388
13389 * solib-svr4.c (disable_probes_interface): Remove parameter.
13390 (svr4_handle_solib_event): Use make_scope_exit.
13391
13392 2019-03-06 Tom Tromey <tom@tromey.com>
13393
13394 * remote.c (struct stop_reply_deleter): Remove.
13395 (stop_reply_up): Update.
13396 (struct stop_reply): Derive from notif_event. Don't typedef.
13397 <regcache>: Now a std::vector.
13398 (stop_reply_xfree): Remove.
13399 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13400 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13401 (remote_target::discard_pending_stop_replies): Use delete.
13402 (remote_target::remote_parse_stop_reply): Update.
13403 (remote_target::process_stop_reply): Update.
13404 * remote-notif.h (struct notif_event): Add virtual destructor.
13405 Remove "dtr" member.
13406 (struct notif_client) <alloc_event>: Return a unique_ptr.
13407 (notif_event_xfree): Don't declare.
13408 (notif_event_up): New typedef.
13409 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13410 (notif_event_xfree, do_notif_event_xfree): Remove.
13411 (remote_notif_state_xfree): Update.
13412
13413 2019-03-06 Tom Tromey <tom@tromey.com>
13414
13415 * infrun.c (displaced_step_clear_cleanup): Now a
13416 forward_scope_exit type.
13417 (displaced_step_prepare_throw): Update.
13418 (displaced_step_fixup): Update.
13419
13420 2019-03-06 Tom Tromey <tom@tromey.com>
13421
13422 * inferior.h (class inferior): Update comment.
13423 * gdbthread.h (class thread_info): Update comment.
13424
13425 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13426 Tom Tromey <tom@tromey.com>
13427
13428 * stabsread.h (struct stab_section_list): Remove.
13429 (coffstab_build_psymtabs): Update.
13430 * dbxread.c (symbuf_sections): Now a std::vector.
13431 (sect_idx): New global.
13432 (fill_symbuf): Update.
13433 (coffstab_build_psymtabs): Change type of stabsects parameter.
13434 Update.
13435 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13436 std::vector.
13437 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13438 (coff_locate_sections): Update.
13439 (coff_symfile_read): Remove cleanups. Update.
13440 (init_stringtab): Add storage parameter.
13441 (free_stringtab, free_stringtab_cleanup): Remove.
13442 (init_lineno): Add storage parameter.
13443 (free_linetab, free_linetab_cleanup): Remove.
13444
13445 2019-03-06 Pedro Alves <palves@redhat.com>
13446
13447 * linux-fork.c (fork_info::clobber_regs): Delete.
13448 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13449 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13450 comment. Adjust.
13451 (scoped_switch_fork_info::scoped_switch_fork_info)
13452 (checkpoint_command, linux_fork_context): Adjust
13453 fork_save_infrun_state calls.
13454
13455 2019-03-06 Pedro Alves <palves@redhat.com>
13456
13457 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13458 (inf_has_multiple_threads): Return 'bool' and rewrite using
13459 inferior_info::threads().
13460
13461 2019-03-06 Pedro Alves <palves@redhat.com>
13462
13463 * linux-fork.c: Include <list>.
13464 (fork_list): Now a std::list instance.
13465 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13466 (forks_exist_p, find_last_fork): Adjust.
13467 (new_fork): Delete.
13468 (one_fork_p): New.
13469 (add_fork): Adjust.
13470 (free_fork): Delete, folded into fork_info::~fork_info().
13471 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13472 Adjust.
13473 (init_fork_list): Delete.
13474 (linux_fork_killall, linux_fork_mourn_inferior)
13475 (linux_fork_detach, info_checkpoints_command): Adjust.
13476 (_initialize_linux_fork): No longer call init_fork_list.
13477
13478 2019-03-06 Pedro Alves <palves@redhat.com>
13479
13480 * linux-fork.c (new_fork): New, split out of ...
13481 (add_fork): ... this. Return void. Move "first fork" special
13482 case from here, to ...
13483 (checkpoint_command): ... here.
13484 * linux-linux.h (add_fork): Return void.
13485
13486 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13487
13488 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13489
13490 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13491 Chris January <chris.january@arm.com>
13492 David Lecomber <david.lecomber@arm.com>
13493
13494 * f-exp.y: New token, UNOP_INTRINSIC.
13495 (exp): New pattern using UNOP_INTRINSIC token.
13496 (f77_keywords): Add 'abs' keyword.
13497 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13498 (value_from_host_double): New function.
13499 (evaluate_subexp_f): Support UNOP_ABS.
13500
13501 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13502
13503 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13504 types.
13505
13506 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13507
13508 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13509 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13510 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13511
13512 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13513
13514 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13515
13516 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13517 Chris January <chris.january@arm.com>
13518
13519 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13520 * f-exp.y: Define 'KIND' token.
13521 (exp): New pattern for KIND expressions.
13522 (ptype): Handle types with a kind extension.
13523 (direct_abs_decl): Extend to spot kind extensions.
13524 (f77_keywords): Add 'kind' to the list.
13525 (push_kind_type): New function.
13526 (convert_to_kind_type): New function.
13527 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13528 * parse.c (operator_length_standard): Likewise.
13529 * parser-defs.h (enum type_pieces): Add tp_kind.
13530 * std-operator.def: Add UNOP_KIND.
13531
13532 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13533
13534 * f-exp.y (f_parse): Set yydebug.
13535
13536 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13537
13538 * f-lang.c (evaluate_subexp_f): New function.
13539 (exp_descriptor_f): New global.
13540 (f_language_defn): Use exp_descriptor_f instead of
13541 exp_descriptor_standard.
13542
13543 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * f-exp.y (struct token): Add comments.
13546 (dot_ops): Remove uppercase versions and the end marker.
13547 (f77_keywords): Likewise.
13548 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13549 entries in the dot_ops array are case insensitive, and use
13550 strncasecmp to compare strings. Also some whitespace cleanup in
13551 this area. Similar for the f77_keywords array, except entries in
13552 this list might be case sensitive.
13553
13554 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13555
13556 * f-exp.y (struct f77_boolean_val): Add comments.
13557 (boolean_values): Remove uppercase versions, and end marker.
13558 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13559 and use strncasecmp to achieve case insensitivity. Additionally,
13560 perform whitespace cleanup around this code.
13561
13562 2019-03-06 Tom Tromey <tromey@adacore.com>
13563
13564 * remote-sim.c (gdbsim_target_open): Use result of
13565 gdb_argv::release.
13566
13567 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13568 Dirk Schubert <dirk.schubert@arm.com>
13569 Chris January <chris.january@arm.com>
13570
13571 * eval.c (evaluate_subexp_standard): Call Fortran argument
13572 wrapping logic.
13573 * f-lang.c (struct value): A value which can be passed into a
13574 Fortran function call.
13575 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13576 where appropriate.
13577 (struct type): Value ready for a Fortran function call.
13578 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13579 is needed.
13580 * f-lang.h (fortran_argument_convert): Declaration.
13581 (fortran_preserve_arg_pointer): Declaration.
13582 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13583
13584 2019-03-05 Tom Tromey <tromey@adacore.com>
13585
13586 * python/py-prettyprint.c (print_string_repr): Remove #if.
13587 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13588
13589 2019-03-05 Tom Tromey <tromey@adacore.com>
13590
13591 * target.c (the_dummy_target): Move later. Change type to
13592 "dummy_target".
13593 (initialize_targets): Don't initialize the_dummy_target.
13594
13595 2019-03-05 Tom Tromey <tromey@adacore.com>
13596
13597 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13598 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13599
13600 2019-03-05 Tom Tromey <tromey@adacore.com>
13601
13602 * windows-nat.c (windows_nat_target::attach)
13603 (windows_nat_target::detach): Don't call gdb_flush.
13604 * valprint.c (generic_val_print, val_print, val_print_string):
13605 Don't call gdb_flush.
13606 * utils.c (defaulted_query): Don't call gdb_flush.
13607 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13608 * target.c (target_announce_detach): Don't call gdb_flush.
13609 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13610 * remote.c (extended_remote_target::attach): Don't call
13611 gdb_flush.
13612 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13613 * printcmd.c (do_examine): Don't call gdb_flush.
13614 (info_display_command): Don't call gdb_flush.
13615 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13616 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13617 * memattr.c (info_mem_command): Don't call gdb_flush.
13618 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13619 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13620 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13621 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13622 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13623 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13624 (gnu_nat_target::detach): Don't call gdb_flush.
13625 * f-valprint.c (f_val_print): Don't call gdb_flush.
13626 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13627 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13628 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13629 gdb_flush.
13630 * c-valprint.c (c_val_print): Don't call gdb_flush.
13631 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13632
13633 2019-03-05 Tom Tromey <tromey@adacore.com>
13634
13635 * varobj.c (update_dynamic_varobj_children): Update.
13636 (install_default_visualizer): Use reset, not release.
13637 * value.c (set_internalvar): Update.
13638 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13639 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13640 ATTRIBUTE_UNUSED_RESULT.
13641
13642 2019-03-05 Tom Tromey <tromey@adacore.com>
13643
13644 * remote.c (class scoped_remote_fd) <release>: Add
13645 ATTRIBUTE_UNUSED_RESULT.
13646
13647 2019-03-05 Tom Tromey <tromey@adacore.com>
13648
13649 * macroexp.c (struct macro_buffer) <release>: Add
13650 ATTRIBUTE_UNUSED_RESULT.
13651
13652 2019-03-05 Tom Tromey <tromey@adacore.com>
13653
13654 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13655 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13656 ATTRIBUTE_UNUSED_RESULT.
13657
13658 2019-03-05 Tom Tromey <tromey@adacore.com>
13659
13660 * common/scoped_fd.h (class scoped_fd) <release>: Add
13661 ATTRIBUTE_UNUSED_RESULT.
13662
13663 2019-03-05 Tom Tromey <tromey@adacore.com>
13664
13665 * parser-defs.h (struct parser_state) <release>: Add
13666 ATTRIBUTE_UNUSED_RESULT.
13667
13668 2019-03-05 Tom Tromey <tromey@adacore.com>
13669
13670 * utils.h (class gdb_argv) <release>: Add
13671 ATTRIBUTE_UNUSED_RESULT.
13672 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13673
13674 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13675
13676 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13677 for-loop range, to avoid compiler warnings.
13678
13679 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13680 avoid compiler warnings about unused variables.
13681
13682 * NEWS: Mention end of support for native debugging on MS-Windows
13683 before XP.
13684
13685 PR gdb/24292
13686 * common/netstuff.c:
13687 * gdbserver/gdbreplay.c
13688 * gdbserver/remote-utils.c:
13689 * ser-tcp.c:
13690 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13691 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13692 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13693 'getaddrinfo' and 'freeaddrinfo' were not available before
13694 Windows XP, and mingw.org's MinGW headers by default define
13695 _WIN32_WINNT to 0x500.
13696
13697 2019-03-01 Gary Benson <gbenson@redhat.com>
13698
13699 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13700
13701 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13702 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13703
13704 PR gdb/8527
13705 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13706 set_sigint_trap, clear_sigint_trap.
13707
13708 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13709
13710 * target.c (target_detach): Clear the regcache and the
13711 frame cache.
13712
13713 2019-02-27 Pedro Alves <palves@redhat.com>
13714
13715 * utils.c (set_screen_size): When we cap the height/width sizes,
13716 tweak the corresponding command variable to show "unlimited":
13717
13718 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13719 Pedro Alves <palves@redhat.com>
13720
13721 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13722 before calling rl_set_screen_size.
13723
13724 2019-02-27 Tom Tromey <tromey@adacore.com>
13725
13726 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13727 define.
13728 * python/py-value.c: Remove Python 2.4 workaround.
13729 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13730 workaround.
13731 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13732 Python 2.4 workaround.
13733 * python/python-internal.h: Remove Python 2.4 comment.
13734 (Py_ssize_t): Don't define.
13735 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13736 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13737 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13738 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13739 * python/python.c (do_start_initialization): Remove Python 2.4
13740 workaround.
13741 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13742 (print_children): Remove Python 2.4 workaround.
13743 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13744 workaround.
13745 (CHARBUFFERPROC_NAME): Remove.
13746 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13747 Python 2.4 workaround.
13748
13749 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13750
13751 * NEWS: Note minimum Python version.
13752
13753 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13754
13755 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13756 code from these functions. Remove corresponding ifdefs. Use
13757 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13758 Remove gotos and target of gotos.
13759 (infpy_search_memory): Likewise.
13760
13761 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13762
13763 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13764 (hppa_gdbarch_init): Don't register deleted functions with
13765 gdbarch.
13766
13767 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13768
13769 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13770 (h8300_unwind_sp): Delete.
13771 (h8300_dummy_id): Delete.
13772 (h8300_gdbarch_init): Don't register deleted functions with
13773 gdbarch.
13774
13775 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13776
13777 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13778 (ft32_unwind_pc): Delete.
13779 (ft32_unwind_sp): Delete.
13780 (ft32_gdbarch_init): Don't register deleted functions with
13781 gdbarch.
13782
13783 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13784
13785 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13786 (frv_unwind_pc): Delete.
13787 (frv_unwind_sp): Delete.
13788 (frv_gdbarch_init): Don't register deleted functions with
13789 gdbarch.
13790
13791 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13792
13793 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13794 (riscv_unwind_pc): Delete.
13795 (riscv_unwind_sp): Delete.
13796 (riscv_gdbarch_init): Don't register deleted functions with
13797 gdbarch.
13798
13799 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13800
13801 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13802 (csky_unwind_pc): Delete.
13803 (csky_unwind_sp): Delete.
13804 (csky_gdbarch_init): Don't register deleted functions with
13805 gdbarch.
13806
13807 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13808
13809 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13810 (cris_unwind_pc): Delete.
13811 (cris_unwind_sp): Delete.
13812 (cris_gdbarch_init): Don't register deleted functions with
13813 gdbarch.
13814
13815 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13816
13817 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13818 (bfin_unwind_pc): Delete.
13819 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13820
13821 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13822
13823 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13824 (arm_unwind_pc): Delete.
13825 (arm_unwind_sp): Delete.
13826 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13827
13828 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13831 (arc_unwind_pc): Delete.
13832 (arc_unwind_sp): Delete.
13833 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13834
13835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13836
13837 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13838 (alpha_unwind_pc): Delete.
13839 (alpha_gdbarch_init): Don't register deleted functions with
13840 gdbarch.
13841
13842 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13843
13844 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13845 (aarch64_unwind_pc): Delete.
13846 (aarch64_unwind_sp): Delete.
13847 (aarch64_gdbarch_init): Don't register deleted functions with
13848 gdbarch.
13849
13850 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13851
13852 * gdbtypes.c (type_align): Don't consider static members when
13853 computing structure alignment.
13854
13855 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13856
13857 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13858 return 0 for other types.
13859 * arch-utils.c (default_type_align): Always return 0.
13860 * gdbarch.h: Regenerate.
13861 * gdbarch.sh (type_align): Extend comment.
13862 * gdbtypes.c (type_align): Add additional comments, always call
13863 gdbarch_type_align before applying the default rules.
13864 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13865 generic code will then apply a suitable default.
13866 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13867 types, return 0 for other types.
13868
13869 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13870
13871 * NEWS: Create a new section for the next release branch.
13872 Rename the section of the current branch, now that it has
13873 been cut.
13874
13875 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13876
13877 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13878 * version.in: Bump version to 8.3.50.DATE-git.
13879
13880 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13881
13882 * aix-thread.c (ptid_cmp): Remove unused variable.
13883 (get_signaled_thread): Likewise.
13884 (store_regs_user_thread): Likewise.
13885 (store_regs_kernel_thread): Likewise.
13886 (fetch_regs_kernel_thread): Remove shadowed variable.
13887
13888 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13889
13890 * features/riscv/32bit-cpu.xml: Add register numbers.
13891 * features/riscv/32bit-fpu.c: Regenerate.
13892 * features/riscv/32bit-fpu.xml: Add register numbers.
13893 * features/riscv/64bit-cpu.xml: Add register numbers.
13894 * features/riscv/64bit-fpu.c: Regenerate.
13895 * features/riscv/64bit-fpu.xml: Add register numbers.
13896
13897 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13898
13899 * NEWS: Mention two argument form of gdb.Value constructor.
13900 * python/py-value.c (convert_buffer_and_type_to_value): New
13901 function.
13902 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13903 Add support for handling an optional second argument. Call
13904 convert_buffer_and_type_to_value as appropriate.
13905 * python/python-internal.h (Py_buffer_deleter): New struct.
13906 (Py_buffer_up): New typedef.
13907
13908 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13909
13910 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13911 instead of releasing ownership.
13912
13913 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13914
13915 * dwarf2read.c (open_and_init_dwp_file): Call
13916 elf_numsections instead of bfd_count_sections to initialize
13917 dwp_file->num_sections.
13918
13919 2019-02-25 Tom Tromey <tromey@adacore.com>
13920
13921 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13922
13923 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13924
13925 * gcore.in: Add '--readnever' option when invoking GDB.
13926
13927 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13928
13929 * MAINTAINERS: Update my email address.
13930
13931 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13932
13933 * build-id.c (build_id_to_debug_bfd_1): New function.
13934 (build_id_to_debug_bfd): Look for separate debug file in
13935 sysroot.
13936
13937 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13938
13939 * gdbarch.sh: Update the copyright year range that is placed into
13940 generated files.
13941
13942 2019-02-22 Keith Seitz <keiths@redhat.com>
13943
13944 PR symtab/23853
13945 * linespec.c (create_sals_line_offset): Search for the default
13946 symtab's filename instead of its fullname.
13947
13948 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13949
13950 * NEWS: Update style defaults.
13951
13952 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13953
13954 * main.c (captured_main_1): Disable styling in batch mode.
13955
13956 2019-02-20 Tom Tromey <tom@tromey.com>
13957
13958 * symtab.c (symtab_symbol_info): Fix typos.
13959
13960 2019-02-20 Tom Tromey <tromey@adacore.com>
13961
13962 * findcmd.c (_initialize_mem_search): Use upper case for
13963 metasyntactic variables.
13964
13965 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13966
13967 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13968 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13969
13970 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13971
13972 * top.h (source_file_name): Change to std::string.
13973 * top.c (source_file_name): Likewise.
13974 (command_line_input): Adjust.
13975 * cli/cli-script.c (script_from_file): Adjust.
13976
13977 2019-02-19 Tom Tromey <tromey@adacore.com>
13978
13979 * ravenscar-thread.c
13980 (ravenscar_thread_target::update_thread_list): Don't call
13981 ada_build_task_list.
13982 * ada-lang.h (ada_build_task_list): Don't declare.
13983 * ada-tasks.c (struct ada_tasks_inferior_data)
13984 <task_list_valid_p>: Now bool.
13985 (read_known_tasks, ada_task_list_changed)
13986 (ada_tasks_invalidate_inferior_data): Update.
13987 (read_known_tasks_array): Return bool.
13988 (read_known_tasks_list): Likewise.
13989 (read_known_tasks): Return void.
13990 (ada_build_task_list): Now static.
13991
13992 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13993
13994 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13995 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13996
13997 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13998
13999 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14000 variant for ada_tasks_pspace_data_handle and
14001 ada_tasks_inferior_data_handle.
14002 (ada_tasks_pspace_data_cleanup): New function.
14003 (ada_tasks_inferior_data_cleanup): New function.
14004
14005 2019-02-17 Tom Tromey <tom@tromey.com>
14006
14007 * macrotab.h (macro_source_fullname): Return a std::string.
14008 * macrotab.c (macro_include, check_for_redefinition)
14009 (macro_undef, macro_lookup_definition, foreach_macro)
14010 (foreach_macro_in_scope): Update.
14011 (macro_source_fullname): Return a std::string.
14012 * macrocmd.c (show_pp_source_pos): Update.
14013
14014 2019-02-17 Tom Tromey <tom@tromey.com>
14015
14016 * macrocmd.c (show_pp_source_pos): Style the file names.
14017
14018 2019-02-17 Tom Tromey <tom@tromey.com>
14019
14020 PR tui/24197:
14021 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14022
14023 2019-02-17 Tom Tromey <tom@tromey.com>
14024
14025 * ada-lang.c (user_select_syms): Use filtered printing.
14026 * utils.c (wrap_style): New global.
14027 (desired_style): Remove.
14028 (emit_style_escape): Add stream parameter.
14029 (set_output_style, reset_terminal_style, prompt_for_continue):
14030 Update.
14031 (flush_wrap_buffer): Only flush gdb_stdout.
14032 (wrap_here): Set wrap_style.
14033 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14034 treat escape sequences as a character. Change when wrap buffer is
14035 flushed.
14036 (fputs_styled): Do not set the output style when the default is
14037 requested.
14038 * ui-style.h (struct ui_file_style) <is_default>: New method.
14039 * source.c (print_source_lines_base): Emit escape sequences in one
14040 piece.
14041
14042 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14043
14044 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14045 integers and enumeration types.
14046
14047 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14048
14049 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14050 instead of lookup_symbol_in_language
14051 (do_exact_match): New function.
14052 (ada_get_symbol_name_matcher): Return do_exact_match when
14053 doing a verbatim match.
14054
14055 2019-02-15 Tom Tromey <tromey@adacore.com>
14056
14057 * ravenscar-thread.c (ravenscar_thread_target::resume)
14058 (ravenscar_thread_target::wait): Special case wildcard requests.
14059
14060 2019-02-15 Tom Tromey <tromey@adacore.com>
14061
14062 * ravenscar-thread.c (base_ptid): Remove.
14063 (struct ravenscar_thread_target) <close>: New method.
14064 <m_base_ptid>: New member.
14065 <update_inferior_ptid, active_task, task_is_currently_active,
14066 runtime_initialized>: Declare methods.
14067 <ravenscar_thread_target>: Add constructor.
14068 (ravenscar_thread_target::task_is_currently_active)
14069 (ravenscar_thread_target::update_inferior_ptid)
14070 (ravenscar_runtime_initialized): Rename. Now methods.
14071 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14072 (ravenscar_thread_target::update_thread_list): Update.
14073 (ravenscar_thread_target::active_task): Now method.
14074 (ravenscar_thread_target::store_registers)
14075 (ravenscar_thread_target::prepare_to_store)
14076 (ravenscar_thread_target::prepare_to_store)
14077 (ravenscar_thread_target::mourn_inferior): Update.
14078 (ravenscar_inferior_created): Use "new" to create target.
14079 (ravenscar_thread_target::get_ada_task_ptid): Update.
14080 (_initialize_ravenscar): Don't initialize base_ptid.
14081 (ravenscar_ops): Remove global.
14082
14083 2019-02-15 Tom Tromey <tromey@adacore.com>
14084
14085 * target.h (push_target): Declare new overload.
14086 * target.c (push_target): New overload, taking an rvalue reference.
14087 * remote.c (remote_target::open_1): Use push_target overload.
14088 * corelow.c (core_target_open): Use push_target overload.
14089
14090 2019-02-15 Tom Tromey <tromey@adacore.com>
14091
14092 * ravenscar-thread.c (is_ravenscar_task)
14093 (ravenscar_task_is_currently_active): Return bool.
14094 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14095 (_initialize_ravenscar): Remove "(void)".
14096 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14097 Return bool.
14098
14099 2019-02-15 Tom Tromey <tromey@adacore.com>
14100
14101 * ravenscar-thread.c (ravenscar_runtime_initializer)
14102 (has_ravenscar_runtime, get_running_thread_id)
14103 (ravenscar_thread_target::resume): Fix indentation.
14104
14105 2019-02-15 Tom Tromey <tromey@adacore.com>
14106
14107 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14108 from ravenscar_arch_ops.
14109 (sparc_ravenscar_ops::fetch_registers)
14110 (sparc_ravenscar_ops::store_registers): Now methods.
14111 (sparc_ravenscar_prepare_to_store): Remove.
14112 (sparc_ravenscar_ops): Redefine.
14113 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14114 methods and destructor. Remove members.
14115 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14116 (ravenscar_thread_target::store_registers)
14117 (ravenscar_thread_target::prepare_to_store): Update.
14118 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14119 Remove.
14120 (struct ppc_ravenscar_powerpc_ops): Derive from
14121 ravenscar_arch_ops.
14122 (ppc_ravenscar_powerpc_ops::fetch_registers)
14123 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14124 (ppc_ravenscar_powerpc_ops): Redefine.
14125 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14126 (ppc_ravenscar_e500_ops::fetch_registers)
14127 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14128 (ppc_ravenscar_e500_ops): Redefine.
14129 * aarch64-ravenscar-thread.c
14130 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14131 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14132 (aarch64_ravenscar_fetch_registers)
14133 (aarch64_ravenscar_store_registers): Now methods.
14134 (aarch64_ravenscar_ops): Redefine.
14135
14136 2019-02-15 Tom Tromey <tromey@adacore.com>
14137
14138 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14139 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14140 (ravenscar_thread_target::stopped_by_watchpoint)
14141 (ravenscar_thread_target::stopped_data_address)
14142 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14143
14144 2019-02-15 Tom Tromey <tromey@adacore.com>
14145
14146 * ravenscar-thread.c: Fix some typos.
14147
14148 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14149 Tom Tromey <tromey@adacore.com>
14150
14151 * ada-lang.c (ada_exception_sal): Change addr_string to a
14152 std::string.
14153 (create_ada_exception_catchpoint): Update.
14154
14155 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14156 Tom Tromey <tromey@adacore.com>
14157
14158 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14159 (bp_location_ops): Remove.
14160 (base_breakpoint_allocate_location): Update.
14161 (free_bp_location): Update.
14162 * ada-lang.c (class ada_catchpoint_location)
14163 <ada_catchpoint_location>: Remove ops parameter.
14164 (ada_catchpoint_location_dtor): Remove.
14165 (ada_catchpoint_location_ops): Remove.
14166 (allocate_location_exception): Update.
14167 * breakpoint.h (struct bp_location_ops): Remove.
14168 (class bp_location) <bp_location>: Remove bp_location_ops
14169 parameter.
14170 <~bp_location>: Add destructor.
14171 <ops>: Remove.
14172
14173 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14174 Pedro Alves <palves@redhat.com>
14175
14176 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14177 'PATH_MAX'.
14178
14179 2019-02-14 David Michael <fedora.dm0@gmail.com>
14180 Samuel Thibault <samuel.thibault@gnu.org>
14181 Thomas Schwinge <thomas@codesourcery.com>
14182
14183 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14184 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14185
14186 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14187
14188 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14189 (check_empty): Use "const char *".
14190
14191 * gnu-nat.c (gnu_nat_target::detach): Instead of
14192 'detach_inferior (pid)' call
14193 'detach_inferior (find_inferior_pid (pid))'.
14194
14195 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14196 'nat/fork-inferior.o'.
14197 * gnu-nat.c: #include "nat/fork-inferior.h".
14198
14199 * gnu-nat.c (gnu_nat_target::detach): Instead of
14200 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14201 * gnu-nat.h: #include "inf-child.h".
14202 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14203 'i386_gnu_nat_target::fetch_registers'.
14204 (gnu_store_registers): Rename/move to
14205 'i386_gnu_nat_target::store_registers'.
14206
14207 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14208 * gnu-nat.h (mach_thread_info): New function.
14209 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14210
14211 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14212
14213 2019-02-14 Frederic Konrad <konrad@adacore.com>
14214
14215 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14216
14217 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14218
14219 * windows-nat.c (windows_add_thread): Add new parameter
14220 "main_thread_p" with default value set to false. Update
14221 function documentation as well as all callers.
14222 (windows_delete_thread): Likewise.
14223 (fake_create_process): Update call to windows_add_thread.
14224 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14225 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14226 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14227 call to windows_delete_thread.
14228
14229 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14230
14231 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14232
14233 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14234
14235 * symfile.c (find_separate_debug_file): Use canonical path of
14236 sysroot with child_path instead of gdb_sysroot if it is valid.
14237
14238 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14239
14240 * symfile.c (find_separate_debug_file): Use child_path to
14241 determine if an object file is under a sysroot.
14242
14243 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14244
14245 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14246 unittests/child-path-selftests.c.
14247 * common/pathstuff.c (child_path): New function.
14248 * common/pathstuff.h (child_path): New prototype.
14249 * unittests/child-path-selftests.c: New file.
14250
14251 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14252
14253 * symfile.c (find_separate_debug_file): Look for separate debug
14254 files in debug directories under the sysroot.
14255
14256 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14257
14258 * symtab.h (struct minimal_symbol data_p): New const method.
14259 (struct minimal_symbol text_p): Likewise.
14260 * symtab.c (output_source_filename): Use file name style
14261 to print file name.
14262 (print_symbol_info): Likewise.
14263 (print_msymbol_info): Use address style to print addresses.
14264 Use function name style to print executable text symbols.
14265 (expand_symtab_containing_pc): Use data_p.
14266 (find_pc_sect_compunit_symtab): Likewise.
14267
14268 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14269
14270 * breakpoint.c (describe_other_breakpoints): Use address style
14271 to print addresses.
14272 (say_where): Likewise.
14273
14274 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14275
14276 * ada-typeprint.c (print_func_type): Print function name
14277 style to print function name.
14278 * c-typeprint.c (c_print_type_1): Likewise.
14279
14280 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14281
14282 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14283 for execve.
14284
14285 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14286
14287 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14288 type_stack.
14289
14290 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14291
14292 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14293 TYPE_CODE_REF types.
14294
14295 2019-02-08 Jim Wilson <jimw@sifive.com>
14296
14297 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14298 (riscv_linux_fregset): New.
14299 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14300
14301 2019-02-07 Tom Tromey <tom@tromey.com>
14302
14303 * thread.c (thread_cancel_execution_command): Update.
14304 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14305 methods.
14306 (struct thread_fsm_ops): Remove.
14307 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14308 (thread_fsm_should_stop, thread_fsm_return_value)
14309 (thread_fsm_set_finished, thread_fsm_finished_p)
14310 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14311 Don't declare.
14312 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14313 * infrun.c (clear_proceed_status_thread)
14314 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14315 (print_stop_event): Update.
14316 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14317 Add constructor.
14318 (step_command_fsm_ops): Remove.
14319 (new_step_command_fsm): Remove.
14320 (step_1): Update.
14321 (step_command_fsm::should_stop): Rename from
14322 step_command_fsm_should_stop.
14323 (step_command_fsm::clean_up): Rename from
14324 step_command_fsm_clean_up.
14325 (step_command_fsm::do_async_reply_reason): Rename from
14326 step_command_fsm_async_reply_reason.
14327 (struct until_next_fsm): Inherit from thread_fsm. Add
14328 constructor.
14329 (until_next_fsm_ops): Remove.
14330 (new_until_next_fsm): Remove.
14331 (until_next_fsm::should_stop): Rename from
14332 until_next_fsm_should_stop.
14333 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14334 (until_next_fsm::do_async_reply_reason): Rename from
14335 until_next_fsm_async_reply_reason.
14336 (struct finish_command_fsm): Inherit from thread_fsm. Add
14337 constructor. Change type of breakpoint.
14338 (finish_command_fsm_ops): Remove.
14339 (new_finish_command_fsm): Remove.
14340 (finish_command_fsm::should_stop): Rename from
14341 finish_command_fsm_should_stop.
14342 (finish_command_fsm::clean_up): Rename from
14343 finish_command_fsm_clean_up.
14344 (finish_command_fsm::return_value): Rename from
14345 finish_command_fsm_return_value.
14346 (finish_command_fsm::do_async_reply_reason): Rename from
14347 finish_command_fsm_async_reply_reason.
14348 (finish_command): Update.
14349 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14350 Add constructor.
14351 (call_thread_fsm_ops): Remove.
14352 (call_thread_fsm::call_thread_fsm): Rename from
14353 new_call_thread_fsm.
14354 (call_thread_fsm::should_stop): Rename from
14355 call_thread_fsm_should_stop.
14356 (call_thread_fsm::should_notify_stop): Rename from
14357 call_thread_fsm_should_notify_stop.
14358 (run_inferior_call, call_function_by_hand_dummy): Update.
14359 * cli/cli-interp.c (should_print_stop_to_console): Update.
14360 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14361 Add constructor. Change type of location_breakpoint,
14362 caller_breakpoint.
14363 (until_break_fsm_ops): Remove.
14364 (new_until_break_fsm): Remove.
14365 (until_break_fsm::should_stop): Rename from
14366 until_break_fsm_should_stop.
14367 (until_break_fsm::clean_up): Rename from
14368 until_break_fsm_clean_up.
14369 (until_break_fsm::do_async_reply_reason): Rename from
14370 until_break_fsm_async_reply_reason.
14371 (until_break_command): Update.
14372 * thread-fsm.c: Remove.
14373 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14374
14375 2019-02-07 Tom Tromey <tom@tromey.com>
14376
14377 * yy-remap.h: Add include guard.
14378 * xtensa-tdep.h: Add include guard.
14379 * xcoffread.h: Rename include guard.
14380 * varobj-iter.h: Add include guard.
14381 * tui/tui.h: Rename include guard.
14382 * tui/tui-winsource.h: Rename include guard.
14383 * tui/tui-wingeneral.h: Rename include guard.
14384 * tui/tui-windata.h: Rename include guard.
14385 * tui/tui-win.h: Rename include guard.
14386 * tui/tui-stack.h: Rename include guard.
14387 * tui/tui-source.h: Rename include guard.
14388 * tui/tui-regs.h: Rename include guard.
14389 * tui/tui-out.h: Rename include guard.
14390 * tui/tui-layout.h: Rename include guard.
14391 * tui/tui-io.h: Rename include guard.
14392 * tui/tui-hooks.h: Rename include guard.
14393 * tui/tui-file.h: Rename include guard.
14394 * tui/tui-disasm.h: Rename include guard.
14395 * tui/tui-data.h: Rename include guard.
14396 * tui/tui-command.h: Rename include guard.
14397 * tic6x-tdep.h: Add include guard.
14398 * target/waitstatus.h: Rename include guard.
14399 * target/wait.h: Rename include guard.
14400 * target/target.h: Rename include guard.
14401 * target/resume.h: Rename include guard.
14402 * target-float.h: Rename include guard.
14403 * stabsread.h: Add include guard.
14404 * rs6000-tdep.h: Add include guard.
14405 * riscv-fbsd-tdep.h: Add include guard.
14406 * regformats/regdef.h: Rename include guard.
14407 * record.h: Rename include guard.
14408 * python/python.h: Rename include guard.
14409 * python/python-internal.h: Rename include guard.
14410 * python/py-stopevent.h: Rename include guard.
14411 * python/py-ref.h: Rename include guard.
14412 * python/py-record.h: Rename include guard.
14413 * python/py-record-full.h: Rename include guard.
14414 * python/py-record-btrace.h: Rename include guard.
14415 * python/py-instruction.h: Rename include guard.
14416 * python/py-events.h: Rename include guard.
14417 * python/py-event.h: Rename include guard.
14418 * procfs.h: Add include guard.
14419 * proc-utils.h: Add include guard.
14420 * p-lang.h: Add include guard.
14421 * or1k-tdep.h: Rename include guard.
14422 * observable.h: Rename include guard.
14423 * nto-tdep.h: Rename include guard.
14424 * nat/x86-linux.h: Rename include guard.
14425 * nat/x86-linux-dregs.h: Rename include guard.
14426 * nat/x86-gcc-cpuid.h: Add include guard.
14427 * nat/x86-dregs.h: Rename include guard.
14428 * nat/x86-cpuid.h: Rename include guard.
14429 * nat/ppc-linux.h: Rename include guard.
14430 * nat/mips-linux-watch.h: Rename include guard.
14431 * nat/linux-waitpid.h: Rename include guard.
14432 * nat/linux-ptrace.h: Rename include guard.
14433 * nat/linux-procfs.h: Rename include guard.
14434 * nat/linux-osdata.h: Rename include guard.
14435 * nat/linux-nat.h: Rename include guard.
14436 * nat/linux-namespaces.h: Rename include guard.
14437 * nat/linux-btrace.h: Rename include guard.
14438 * nat/glibc_thread_db.h: Rename include guard.
14439 * nat/gdb_thread_db.h: Rename include guard.
14440 * nat/gdb_ptrace.h: Rename include guard.
14441 * nat/fork-inferior.h: Rename include guard.
14442 * nat/amd64-linux-siginfo.h: Rename include guard.
14443 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14444 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14445 * nat/aarch64-linux.h: Rename include guard.
14446 * nat/aarch64-linux-hw-point.h: Rename include guard.
14447 * mn10300-tdep.h: Add include guard.
14448 * mips-linux-tdep.h: Add include guard.
14449 * mi/mi-parse.h: Rename include guard.
14450 * mi/mi-out.h: Rename include guard.
14451 * mi/mi-main.h: Rename include guard.
14452 * mi/mi-interp.h: Rename include guard.
14453 * mi/mi-getopt.h: Rename include guard.
14454 * mi/mi-console.h: Rename include guard.
14455 * mi/mi-common.h: Rename include guard.
14456 * mi/mi-cmds.h: Rename include guard.
14457 * mi/mi-cmd-break.h: Rename include guard.
14458 * m2-lang.h: Add include guard.
14459 * location.h: Rename include guard.
14460 * linux-record.h: Rename include guard.
14461 * linux-nat.h: Add include guard.
14462 * linux-fork.h: Add include guard.
14463 * i386-darwin-tdep.h: Rename include guard.
14464 * hppa-linux-offsets.h: Add include guard.
14465 * guile/guile.h: Rename include guard.
14466 * guile/guile-internal.h: Rename include guard.
14467 * gnu-nat.h: Rename include guard.
14468 * gdb-stabs.h: Rename include guard.
14469 * frv-tdep.h: Add include guard.
14470 * f-lang.h: Add include guard.
14471 * event-loop.h: Add include guard.
14472 * darwin-nat.h: Rename include guard.
14473 * cp-abi.h: Rename include guard.
14474 * config/sparc/nm-sol2.h: Rename include guard.
14475 * config/nm-nto.h: Rename include guard.
14476 * config/nm-linux.h: Add include guard.
14477 * config/i386/nm-i386gnu.h: Rename include guard.
14478 * config/djgpp/nl_types.h: Rename include guard.
14479 * config/djgpp/langinfo.h: Rename include guard.
14480 * compile/gcc-cp-plugin.h: Add include guard.
14481 * compile/gcc-c-plugin.h: Add include guard.
14482 * compile/compile.h: Rename include guard.
14483 * compile/compile-object-run.h: Rename include guard.
14484 * compile/compile-object-load.h: Rename include guard.
14485 * compile/compile-internal.h: Rename include guard.
14486 * compile/compile-cplus.h: Rename include guard.
14487 * compile/compile-c.h: Rename include guard.
14488 * common/xml-utils.h: Rename include guard.
14489 * common/x86-xstate.h: Rename include guard.
14490 * common/version.h: Rename include guard.
14491 * common/vec.h: Rename include guard.
14492 * common/tdesc.h: Rename include guard.
14493 * common/selftest.h: Rename include guard.
14494 * common/scoped_restore.h: Rename include guard.
14495 * common/scoped_mmap.h: Rename include guard.
14496 * common/scoped_fd.h: Rename include guard.
14497 * common/safe-iterator.h: Rename include guard.
14498 * common/run-time-clock.h: Rename include guard.
14499 * common/refcounted-object.h: Rename include guard.
14500 * common/queue.h: Rename include guard.
14501 * common/ptid.h: Rename include guard.
14502 * common/print-utils.h: Rename include guard.
14503 * common/preprocessor.h: Rename include guard.
14504 * common/pathstuff.h: Rename include guard.
14505 * common/observable.h: Rename include guard.
14506 * common/netstuff.h: Rename include guard.
14507 * common/job-control.h: Rename include guard.
14508 * common/host-defs.h: Rename include guard.
14509 * common/gdb_wait.h: Rename include guard.
14510 * common/gdb_vecs.h: Rename include guard.
14511 * common/gdb_unlinker.h: Rename include guard.
14512 * common/gdb_unique_ptr.h: Rename include guard.
14513 * common/gdb_tilde_expand.h: Rename include guard.
14514 * common/gdb_sys_time.h: Rename include guard.
14515 * common/gdb_string_view.h: Rename include guard.
14516 * common/gdb_splay_tree.h: Rename include guard.
14517 * common/gdb_setjmp.h: Rename include guard.
14518 * common/gdb_ref_ptr.h: Rename include guard.
14519 * common/gdb_optional.h: Rename include guard.
14520 * common/gdb_locale.h: Rename include guard.
14521 * common/gdb_assert.h: Rename include guard.
14522 * common/filtered-iterator.h: Rename include guard.
14523 * common/filestuff.h: Rename include guard.
14524 * common/fileio.h: Rename include guard.
14525 * common/environ.h: Rename include guard.
14526 * common/common-utils.h: Rename include guard.
14527 * common/common-types.h: Rename include guard.
14528 * common/common-regcache.h: Rename include guard.
14529 * common/common-inferior.h: Rename include guard.
14530 * common/common-gdbthread.h: Rename include guard.
14531 * common/common-exceptions.h: Rename include guard.
14532 * common/common-defs.h: Rename include guard.
14533 * common/common-debug.h: Rename include guard.
14534 * common/cleanups.h: Rename include guard.
14535 * common/buffer.h: Rename include guard.
14536 * common/btrace-common.h: Rename include guard.
14537 * common/break-common.h: Rename include guard.
14538 * cli/cli-utils.h: Rename include guard.
14539 * cli/cli-style.h: Rename include guard.
14540 * cli/cli-setshow.h: Rename include guard.
14541 * cli/cli-script.h: Rename include guard.
14542 * cli/cli-interp.h: Rename include guard.
14543 * cli/cli-decode.h: Rename include guard.
14544 * cli/cli-cmds.h: Rename include guard.
14545 * charset-list.h: Add include guard.
14546 * buildsym-legacy.h: Rename include guard.
14547 * bfin-tdep.h: Add include guard.
14548 * ax.h: Rename include guard.
14549 * arm-linux-tdep.h: Add include guard.
14550 * arm-fbsd-tdep.h: Add include guard.
14551 * arch/xtensa.h: Rename include guard.
14552 * arch/tic6x.h: Add include guard.
14553 * arch/i386.h: Add include guard.
14554 * arch/arm.h: Rename include guard.
14555 * arch/arm-linux.h: Rename include guard.
14556 * arch/arm-get-next-pcs.h: Rename include guard.
14557 * arch/amd64.h: Add include guard.
14558 * arch/aarch64-insn.h: Rename include guard.
14559 * arch-utils.h: Rename include guard.
14560 * annotate.h: Add include guard.
14561 * amd64-darwin-tdep.h: Rename include guard.
14562 * aarch64-linux-tdep.h: Add include guard.
14563 * aarch64-fbsd-tdep.h: Add include guard.
14564 * aarch32-linux-nat.h: Add include guard.
14565
14566 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14567
14568 * macrotab.c (macro_define_internal): New function that
14569 factorizes macro_define_object_internal and macro_define_function
14570 code.
14571 (macro_define_object_internal): Use macro_define_internal.
14572 (macro_define_function): Likewise.
14573
14574 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14575
14576 * macrocmd.c (extract_identifier): Return
14577 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14578 callers.
14579
14580 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14581
14582 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14583
14584 2019-02-05 Tom Tromey <tom@tromey.com>
14585
14586 * target.c (target_stack::unpush): Move assertion earlier.
14587
14588 2019-01-30 Tom Tromey <tom@tromey.com>
14589
14590 PR python/23615:
14591 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14592 (gdbpy_parse_and_eval): Likewise.
14593 * python/python-internal.h (gdbpy_allow_threads): New class.
14594
14595 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14596
14597 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14598 (aarch64_fbsd_fpregmap): Move earlier.
14599 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14600 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14601 instead of individual calls to trad_frame_set_reg_addr.
14602 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14603 earlier.
14604 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14605 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14606 instead of individual calls to trad_frame_set_reg_addr.
14607
14608 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14609
14610 * CONTRIBUTE: Replace contribution list with wiki link.
14611
14612 2019-01-25 Tom Tromey <tom@tromey.com>
14613
14614 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14615
14616 2019-01-25 Tom Tromey <tom@tromey.com>
14617
14618 * xtensa-linux-nat.c: Fix common/ includes.
14619 * xml-support.h: Fix common/ includes.
14620 * xml-support.c: Fix common/ includes.
14621 * x86-linux-nat.c: Fix common/ includes.
14622 * windows-nat.c: Fix common/ includes.
14623 * varobj.h: Fix common/ includes.
14624 * varobj.c: Fix common/ includes.
14625 * value.c: Fix common/ includes.
14626 * valops.c: Fix common/ includes.
14627 * utils.c: Fix common/ includes.
14628 * unittests/xml-utils-selftests.c: Fix common/ includes.
14629 * unittests/utils-selftests.c: Fix common/ includes.
14630 * unittests/unpack-selftests.c: Fix common/ includes.
14631 * unittests/tracepoint-selftests.c: Fix common/ includes.
14632 * unittests/style-selftests.c: Fix common/ includes.
14633 * unittests/string_view-selftests.c: Fix common/ includes.
14634 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14635 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14636 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14637 * unittests/rsp-low-selftests.c: Fix common/ includes.
14638 * unittests/parse-connection-spec-selftests.c: Fix common/
14639 includes.
14640 * unittests/optional-selftests.c: Fix common/ includes.
14641 * unittests/offset-type-selftests.c: Fix common/ includes.
14642 * unittests/observable-selftests.c: Fix common/ includes.
14643 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14644 * unittests/memrange-selftests.c: Fix common/ includes.
14645 * unittests/memory-map-selftests.c: Fix common/ includes.
14646 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14647 * unittests/function-view-selftests.c: Fix common/ includes.
14648 * unittests/environ-selftests.c: Fix common/ includes.
14649 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14650 * unittests/common-utils-selftests.c: Fix common/ includes.
14651 * unittests/cli-utils-selftests.c: Fix common/ includes.
14652 * unittests/array-view-selftests.c: Fix common/ includes.
14653 * ui-file.c: Fix common/ includes.
14654 * tui/tui-io.c: Fix common/ includes.
14655 * tracepoint.h: Fix common/ includes.
14656 * tracepoint.c: Fix common/ includes.
14657 * tracefile-tfile.c: Fix common/ includes.
14658 * top.h: Fix common/ includes.
14659 * top.c: Fix common/ includes.
14660 * thread.c: Fix common/ includes.
14661 * target/waitstatus.h: Fix common/ includes.
14662 * target/waitstatus.c: Fix common/ includes.
14663 * target.h: Fix common/ includes.
14664 * target.c: Fix common/ includes.
14665 * target-memory.c: Fix common/ includes.
14666 * target-descriptions.c: Fix common/ includes.
14667 * symtab.h: Fix common/ includes.
14668 * symfile.c: Fix common/ includes.
14669 * stap-probe.c: Fix common/ includes.
14670 * spu-linux-nat.c: Fix common/ includes.
14671 * sparc-nat.c: Fix common/ includes.
14672 * source.c: Fix common/ includes.
14673 * solib.c: Fix common/ includes.
14674 * solib-target.c: Fix common/ includes.
14675 * ser-unix.c: Fix common/ includes.
14676 * ser-tcp.c: Fix common/ includes.
14677 * ser-pipe.c: Fix common/ includes.
14678 * ser-base.c: Fix common/ includes.
14679 * selftest-arch.c: Fix common/ includes.
14680 * s12z-tdep.c: Fix common/ includes.
14681 * rust-exp.y: Fix common/ includes.
14682 * rs6000-aix-tdep.c: Fix common/ includes.
14683 * riscv-tdep.c: Fix common/ includes.
14684 * remote.c: Fix common/ includes.
14685 * remote-notif.h: Fix common/ includes.
14686 * remote-fileio.h: Fix common/ includes.
14687 * remote-fileio.c: Fix common/ includes.
14688 * regcache.h: Fix common/ includes.
14689 * regcache.c: Fix common/ includes.
14690 * record-btrace.c: Fix common/ includes.
14691 * python/python.c: Fix common/ includes.
14692 * python/py-type.c: Fix common/ includes.
14693 * python/py-inferior.c: Fix common/ includes.
14694 * progspace.h: Fix common/ includes.
14695 * producer.c: Fix common/ includes.
14696 * procfs.c: Fix common/ includes.
14697 * proc-api.c: Fix common/ includes.
14698 * printcmd.c: Fix common/ includes.
14699 * ppc-linux-nat.c: Fix common/ includes.
14700 * parser-defs.h: Fix common/ includes.
14701 * osdata.c: Fix common/ includes.
14702 * obsd-nat.c: Fix common/ includes.
14703 * nat/x86-linux.c: Fix common/ includes.
14704 * nat/x86-linux-dregs.c: Fix common/ includes.
14705 * nat/x86-dregs.h: Fix common/ includes.
14706 * nat/x86-dregs.c: Fix common/ includes.
14707 * nat/ppc-linux.c: Fix common/ includes.
14708 * nat/mips-linux-watch.h: Fix common/ includes.
14709 * nat/mips-linux-watch.c: Fix common/ includes.
14710 * nat/linux-waitpid.c: Fix common/ includes.
14711 * nat/linux-ptrace.h: Fix common/ includes.
14712 * nat/linux-ptrace.c: Fix common/ includes.
14713 * nat/linux-procfs.c: Fix common/ includes.
14714 * nat/linux-personality.c: Fix common/ includes.
14715 * nat/linux-osdata.c: Fix common/ includes.
14716 * nat/linux-namespaces.c: Fix common/ includes.
14717 * nat/linux-btrace.h: Fix common/ includes.
14718 * nat/linux-btrace.c: Fix common/ includes.
14719 * nat/fork-inferior.c: Fix common/ includes.
14720 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14721 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14722 * nat/aarch64-linux.c: Fix common/ includes.
14723 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14724 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14725 * namespace.h: Fix common/ includes.
14726 * mips-linux-tdep.c: Fix common/ includes.
14727 * minsyms.c: Fix common/ includes.
14728 * mi/mi-parse.h: Fix common/ includes.
14729 * mi/mi-main.c: Fix common/ includes.
14730 * mi/mi-cmd-env.c: Fix common/ includes.
14731 * memrange.h: Fix common/ includes.
14732 * memattr.c: Fix common/ includes.
14733 * maint.h: Fix common/ includes.
14734 * maint.c: Fix common/ includes.
14735 * main.c: Fix common/ includes.
14736 * machoread.c: Fix common/ includes.
14737 * location.c: Fix common/ includes.
14738 * linux-thread-db.c: Fix common/ includes.
14739 * linux-nat.c: Fix common/ includes.
14740 * linux-fork.c: Fix common/ includes.
14741 * inline-frame.c: Fix common/ includes.
14742 * infrun.c: Fix common/ includes.
14743 * inflow.c: Fix common/ includes.
14744 * inferior.h: Fix common/ includes.
14745 * inferior.c: Fix common/ includes.
14746 * infcmd.c: Fix common/ includes.
14747 * inf-ptrace.c: Fix common/ includes.
14748 * inf-child.c: Fix common/ includes.
14749 * ia64-linux-nat.c: Fix common/ includes.
14750 * i387-tdep.c: Fix common/ includes.
14751 * i386-tdep.c: Fix common/ includes.
14752 * i386-linux-tdep.c: Fix common/ includes.
14753 * i386-linux-nat.c: Fix common/ includes.
14754 * i386-go32-tdep.c: Fix common/ includes.
14755 * i386-fbsd-tdep.c: Fix common/ includes.
14756 * i386-fbsd-nat.c: Fix common/ includes.
14757 * guile/scm-type.c: Fix common/ includes.
14758 * guile/guile.c: Fix common/ includes.
14759 * go32-nat.c: Fix common/ includes.
14760 * gnu-nat.c: Fix common/ includes.
14761 * gdbthread.h: Fix common/ includes.
14762 * gdbarch-selftests.c: Fix common/ includes.
14763 * gdb_usleep.c: Fix common/ includes.
14764 * gdb_select.h: Fix common/ includes.
14765 * gdb_bfd.c: Fix common/ includes.
14766 * gcore.c: Fix common/ includes.
14767 * fork-child.c: Fix common/ includes.
14768 * findvar.c: Fix common/ includes.
14769 * fbsd-nat.c: Fix common/ includes.
14770 * event-top.c: Fix common/ includes.
14771 * event-loop.c: Fix common/ includes.
14772 * dwarf2read.c: Fix common/ includes.
14773 * dwarf2loc.c: Fix common/ includes.
14774 * dwarf2-frame.c: Fix common/ includes.
14775 * dwarf-index-cache.c: Fix common/ includes.
14776 * dtrace-probe.c: Fix common/ includes.
14777 * disasm-selftests.c: Fix common/ includes.
14778 * defs.h: Fix common/ includes.
14779 * csky-tdep.c: Fix common/ includes.
14780 * cp-valprint.c: Fix common/ includes.
14781 * cp-support.h: Fix common/ includes.
14782 * cp-support.c: Fix common/ includes.
14783 * corelow.c: Fix common/ includes.
14784 * completer.h: Fix common/ includes.
14785 * completer.c: Fix common/ includes.
14786 * compile/compile.c: Fix common/ includes.
14787 * compile/compile-loc2c.c: Fix common/ includes.
14788 * compile/compile-cplus-types.c: Fix common/ includes.
14789 * compile/compile-cplus-symbols.c: Fix common/ includes.
14790 * command.h: Fix common/ includes.
14791 * cli/cli-dump.c: Fix common/ includes.
14792 * cli/cli-cmds.c: Fix common/ includes.
14793 * charset.c: Fix common/ includes.
14794 * build-id.c: Fix common/ includes.
14795 * btrace.h: Fix common/ includes.
14796 * btrace.c: Fix common/ includes.
14797 * breakpoint.h: Fix common/ includes.
14798 * breakpoint.c: Fix common/ includes.
14799 * ax.h:
14800 (enum agent_op): Fix common/ includes.
14801 * ax-general.c (struct aop_map): Fix common/ includes.
14802 * ax-gdb.c: Fix common/ includes.
14803 * auxv.c: Fix common/ includes.
14804 * auto-load.c: Fix common/ includes.
14805 * arm-tdep.c: Fix common/ includes.
14806 * arch/riscv.c: Fix common/ includes.
14807 * arch/ppc-linux-common.c: Fix common/ includes.
14808 * arch/i386.c: Fix common/ includes.
14809 * arch/arm.c: Fix common/ includes.
14810 * arch/arm-linux.c: Fix common/ includes.
14811 * arch/arm-get-next-pcs.c: Fix common/ includes.
14812 * arch/amd64.c: Fix common/ includes.
14813 * arch/aarch64.c: Fix common/ includes.
14814 * arch/aarch64-insn.c: Fix common/ includes.
14815 * arch-utils.c: Fix common/ includes.
14816 * amd64-windows-tdep.c: Fix common/ includes.
14817 * amd64-tdep.c: Fix common/ includes.
14818 * amd64-sol2-tdep.c: Fix common/ includes.
14819 * amd64-obsd-tdep.c: Fix common/ includes.
14820 * amd64-nbsd-tdep.c: Fix common/ includes.
14821 * amd64-linux-tdep.c: Fix common/ includes.
14822 * amd64-linux-nat.c: Fix common/ includes.
14823 * amd64-fbsd-tdep.c: Fix common/ includes.
14824 * amd64-fbsd-nat.c: Fix common/ includes.
14825 * amd64-dicos-tdep.c: Fix common/ includes.
14826 * amd64-darwin-tdep.c: Fix common/ includes.
14827 * agent.c: Fix common/ includes.
14828 * ada-lang.h: Fix common/ includes.
14829 * ada-lang.c: Fix common/ includes.
14830 * aarch64-tdep.c: Fix common/ includes.
14831
14832 2019-01-25 Tom Tromey <tom@tromey.com>
14833
14834 * common/create-version.sh: Use common/version.h.
14835
14836 2019-01-24 Pedro Alves <palves@redhat.com>
14837
14838 * infrun.c (signal_stop, signal_print, signal_program)
14839 (signal_catch, signal_pass): Now arrays instead of pointers.
14840 (update_signals_program_target, do_target_resume)
14841 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14842 * linux-nat.c (linux_nat_target::pass_signals)
14843 (linux_nat_target::create_inferior, linux_nat_target::attach):
14844 Adjust.
14845 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14846 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14847 * procfs.c (procfs_target::pass_signals): Adjust.
14848 * record-full.c (record_full_target::resume): Adjust.
14849 * remote.c (remote_target::pass_signals)
14850 (remote_target::program_signals): Adjust.
14851 * target-debug.h (target_debug_print_signals): Now takes a
14852 gdb::array_view as parameter. Adjust.
14853 * target.h (target_ops) <pass_signals, program_signals>: Replace
14854 pointer and length parameters with gdb::array_view.
14855 (target_pass_signals, target_program_signals): Likewise.
14856 * target-delegates.c: Regenerate.
14857
14858 2019-01-24 Pedro Alves <palves@redhat.com>
14859
14860 * common/forward-scope-exit.h
14861 (forward_scope_exit::forward_scope_exit): Pass arguments to
14862 m_bind_function directly, instead of creating a std::bind and
14863 copying that.
14864
14865 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14866
14867 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14868 for static members.
14869 (pass_in_v_vfp_candidate): Likewise.
14870
14871 2019-01-23 Tom Tromey <tom@tromey.com>
14872 Pedro Alves <palves@redhat.com>
14873
14874 * regcache.c (class regcache_invalidator): Remove.
14875 (regcache::raw_write): Use make_scope_exit.
14876
14877 2019-01-23 Tom Tromey <tom@tromey.com>
14878
14879 * ui-out.h (class ui_out_emit_type): Update comment.
14880
14881 2019-01-23 Tom Tromey <tom@tromey.com>
14882
14883 * infrun.c (fetch_inferior_event): Update comment.
14884
14885 2019-01-23 Tom Tromey <tom@tromey.com>
14886 Pedro Alves <palves@redhat.com>
14887
14888 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14889 parameter.
14890 (fetch_inferior_event): Use SCOPE_EXIT.
14891
14892
14893 2019-01-23 Tom Tromey <tom@tromey.com>
14894 Pedro Alves <palves@redhat.com>
14895
14896 * infrun.c (disable_thread_events): Delete.
14897 (stop_all_threads): Use SCOPE_EXIT.
14898
14899 2019-01-23 Tom Tromey <tom@tromey.com>
14900 Pedro Alves <palves@redhat.com>
14901
14902 * symfile.c: Include forward-scope-exit.h.
14903 (clear_symtab_users_cleanup): Replace forward declaration with
14904 a FORWARD_SCOPE_EXIT.
14905 (syms_from_objfile_1): Use the forward_scope_exit and
14906 gdb::optional instead of cleanup_function.
14907 (reread_symbols): Use the forward_scope_exit instead of
14908 cleanup_function.
14909 (clear_symtab_users_cleanup): Remove function.
14910
14911 2019-01-23 Tom Tromey <tom@tromey.com>
14912 Pedro Alves <palves@redhat.com>
14913
14914 * linux-nat.c: Include scope-exit.h.
14915 (cleanup_target_stop): Remove.
14916 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14917 SCOPE_EXIT.
14918
14919 2019-01-23 Tom Tromey <tom@tromey.com>
14920 Pedro Alves <palves@redhat.com>
14921
14922 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14923 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14924
14925 2019-01-23 Tom Tromey <tom@tromey.com>
14926 Andrew Burgess <andrew.burgess@embecosm.com>
14927 Pedro Alves <palves@redhat.com>
14928
14929 * infrun.c (fetch_inferior_event): Use scope_exit.
14930 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14931 * top.c (execute_command): Use scope_exit.
14932 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14933 * utils.c (do_bpstat_clear_actions_cleanup)
14934 (make_bpstat_clear_actions_cleanup): Remove.
14935
14936 2019-01-23 Tom Tromey <tom@tromey.com>
14937 Pedro Alves <palves@redhat.com>
14938
14939 * infrun.c: Include "common/scope-exit.h"
14940 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14941 (wait_for_inferior): Use SCOPE_EXIT.
14942 (fetch_inferior_event): Use scope_exit.
14943
14944 2019-01-23 Tom Tromey <tom@tromey.com>
14945 Pedro Alves <palves@redhat.com>
14946
14947 * breakpoint.c (create_breakpoint): Remove cleanup.
14948
14949 2019-01-23 Tom Tromey <tom@tromey.com>
14950 Andrew Burgess <andrew.burgess@embecosm.com>
14951 Pedro Alves <palves@redhat.com>
14952
14953 2019-01-23 Pedro Alves <palves@redhat.com>
14954
14955 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14956
14957 2019-01-23 Pedro Alves <palves@redhat.com>
14958 Andrew Burgess <andrew.burgess@embecosm.com>
14959
14960 * gdbthread.h: Include "common/forward-scope-exit.h".
14961 (scoped_finish_thread_state): Redefine custom class in terms of
14962 forward_scope_exit.
14963
14964 2019-01-23 Pedro Alves <palves@redhat.com>
14965 Andrew Burgess <andrew.burgess@embecosm.com>
14966
14967 * common/forward-scope-exit.h: New file.
14968
14969 2019-01-23 Pedro Alves <palves@redhat.com>
14970 Andrew Burgess <andrew.burgess@embecosm.com>
14971 Tom Tromey <tom@tromey.com>
14972
14973 * common/scope-exit.h: New file.
14974
14975 2019-01-23 Pedro Alves <palves@redhat.com>
14976
14977 * common/preprocessor.h (ESC): Rename to ...
14978 (ESC_PARENS): ... this.
14979 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14980 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14981
14982 2019-01-23 Tom Tromey <tom@tromey.com>
14983
14984 * language.h (class scoped_switch_to_sym_language_if_auto):
14985 Initialize m_lang in both cases.
14986
14987 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14988
14989 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14990 with XCNEW.
14991
14992 2019-01-22 Tom Tromey <tom@tromey.com>
14993
14994 * corelow.c: Do not include sys/file.h.
14995
14996 2019-01-22 Tom Tromey <tom@tromey.com>
14997
14998 * tui/tui-wingeneral.h: Include gdb_curses.h.
14999
15000 2019-01-22 Tom Tromey <tom@tromey.com>
15001
15002 * source-cache.h (class source_cache) <get_source_lines,
15003 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15004
15005 2019-01-22 Tom Tromey <tom@tromey.com>
15006
15007 * remote-fileio.h (struct remote_target): Declare.
15008
15009 2019-01-22 Tom Tromey <tom@tromey.com>
15010
15011 * python/py-arch.c: Do not include py-ref.h.
15012 * python/py-bpevent.c: Do not include py-ref.h.
15013 * python/py-cmd.c: Do not include py-ref.h.
15014 * python/py-continueevent.c: Do not include py-ref.h.
15015 * python/py-event.h: Do not include py-ref.h.
15016 * python/py-evtregistry.c: Do not include py-ref.h.
15017 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15018 * python/py-frame.c: Do not include py-ref.h.
15019 * python/py-framefilter.c: Do not include py-ref.h.
15020 * python/py-function.c: Do not include py-ref.h.
15021 * python/py-infevents.c: Do not include py-ref.h.
15022 * python/py-linetable.c: Do not include py-ref.h.
15023 * python/py-objfile.c: Do not include py-ref.h.
15024 * python/py-param.c: Do not include py-ref.h.
15025 * python/py-prettyprint.c: Do not include py-ref.h.
15026 * python/py-progspace.c: Do not include py-ref.h.
15027 * python/py-symbol.c: Do not include py-ref.h.
15028 * python/py-symtab.c: Do not include py-ref.h.
15029 * python/py-type.c: Do not include py-ref.h.
15030 * python/py-unwind.c: Do not include py-ref.h.
15031 * python/py-utils.c: Do not include py-ref.h.
15032 * python/py-value.c: Do not include py-ref.h.
15033 * python/py-varobj.c: Do not include py-ref.h.
15034 * python/py-xmethods.c: Do not include py-ref.h.
15035 * python/python.c: Do not include py-ref.h.
15036 * varobj.c: Do not include py-ref.h.
15037
15038 2019-01-22 Tom Tromey <tom@tromey.com>
15039
15040 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15041 keyword for bcache.
15042
15043 2019-01-22 Tom Tromey <tom@tromey.com>
15044
15045 * compile/compile-cplus-types.c: Remove a comment by #include.
15046
15047 2019-01-22 Tom Tromey <tom@tromey.com>
15048
15049 * compile/gcc-c-plugin.h: Include compile-internal.h.
15050
15051 2019-01-22 Tom Tromey <tom@tromey.com>
15052
15053 * stabsread.c (EXTERN): Do not define.
15054 (symnum, next_symbol_text_func, processing_gcc_compilation)
15055 (within_function, global_sym_chain, global_stabs)
15056 (previous_stab_code, this_object_header_files)
15057 (n_this_object_header_files)
15058 (n_allocated_this_object_header_files): Define.
15059 * stabsread.h (EXTERN): Never define. Use "extern".
15060
15061 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15062
15063 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15064 history_value.
15065
15066 2019-01-21 Tom Tromey <tom@tromey.com>
15067
15068 * ui-out.c: Fix includes.
15069 * tui/tui-source.c: Fix includes.
15070 * target.c: Fix includes.
15071 * remote.c: Fix includes.
15072 * regcache.c: Fix includes.
15073 * python/py-block.c: Fix includes.
15074 * printcmd.c: Fix includes.
15075 * or1k-tdep.c: Fix includes.
15076 * mi/mi-main.c: Fix includes.
15077 * m32r-tdep.c: Fix includes.
15078 * csky-tdep.c: Fix includes.
15079 * compile/compile-cplus-types.c: Fix includes.
15080 * cli/cli-interp.c: Fix includes.
15081
15082 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15083
15084 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15085 for padding.
15086
15087 2019-01-16 Tom Tromey <tom@tromey.com>
15088
15089 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15090 earlier.
15091 (struct objfile) <msymbols_range>: Move from top level.
15092 <msymbols>: New method.
15093 (class objfile_msymbols): Remove.
15094 * symtab.c (default_collect_symbol_completion_matches_break_on):
15095 Update.
15096 * symmisc.c (dump_msymbols): Update.
15097 * stabsread.c (scan_file_globals): Update.
15098 * objc-lang.c (info_selectors_command, info_classes_command)
15099 (find_methods): Update.
15100 * minsyms.c (find_solib_trampoline_target): Update.
15101 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15102 * coffread.c (coff_symfile_read): Update.
15103 * ada-lang.c (ada_lookup_simple_minsym)
15104 (ada_collect_symbol_completion_matches): Update.
15105
15106 2019-01-16 Tom Tromey <tom@tromey.com>
15107
15108 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15109 type. Remove no-argument constructor.
15110 <iterator::operator++>: Simplify.
15111 <begin>: Update.
15112 <end>: Use minimal_symbol_count.
15113
15114 2019-01-16 Tom Tromey <tom@tromey.com>
15115
15116 * objfiles.h (struct objfile) <psymtabs>: New method.
15117 (class objfile_psymtabs): Remove.
15118 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15119 typedef.
15120 <range>: New method.
15121 (require_partial_symbols): Change return type.
15122 * psymtab.c (require_partial_symbols)
15123 (psym_expand_symtabs_matching): Update.
15124 * mdebugread.c (parse_partial_symbols): Update.
15125 * dbxread.c (dbx_end_psymtab): Update.
15126
15127 2019-01-15 Tom Tromey <tom@tromey.com>
15128
15129 * symtab.c (lookup_objfile_from_block)
15130 (lookup_symbol_in_objfile_symtabs)
15131 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15132 (find_line_symtab, info_sources_command)
15133 (default_collect_symbol_completion_matches_break_on)
15134 (make_source_files_completion_list): Update.
15135 * symmisc.c (print_objfile_statistics, dump_objfile)
15136 (maintenance_print_symbols, maintenance_info_symtabs)
15137 (maintenance_check_symtabs, maintenance_info_line_tables):
15138 Update.
15139 * source.c (select_source_symtab)
15140 (forget_cached_source_info_for_objfile): Update.
15141 * objfiles.h (class objfile_compunits): Remove.
15142 (struct objfile) <compunits_range>: New typedef.
15143 (compunits): New method.
15144 * objfiles.c (objfile_relocate1): Update.
15145 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15146 * maint.c (count_symtabs_and_blocks): Update.
15147 * linespec.c (iterate_over_all_matching_symtabs): Update.
15148 * cp-support.c (add_symbol_overload_list_qualified): Update.
15149 * coffread.c (coff_symtab_read): Update.
15150 * ada-lang.c (add_nonlocal_symbols)
15151 (ada_collect_symbol_completion_matches)
15152 (ada_add_global_exceptions): Update.
15153
15154 2019-01-15 Tom Tromey <tom@tromey.com>
15155
15156 * progspace.h (program_space) <objfiles_safe_range>: New
15157 typedef.
15158 <objfiles_safe>: New method.
15159 * objfiles.h (class all_objfiles_safe): Remove.
15160 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15161 * jit.c (jit_inferior_exit_hook): Update.
15162
15163 2019-01-17 Tom Tromey <tom@tromey.com>
15164
15165 * progspace.h (program_space) <objfiles_range>: New typedef.
15166 <objfiles>: New method.
15167 <objfiles_head>: Rename from objfiles.
15168 (object_files): Update.
15169 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15170 * guile/scm-pretty-print.c
15171 (ppscm_find_pretty_printer_from_objfiles): Update.
15172 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15173 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15174 Update.
15175 * python/py-progspace.c (pspy_get_objfiles): Update.
15176 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15177 Update.
15178 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15179 (objfpy_lookup_objfile_by_build_id): Update.
15180 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15181 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15182 Update.
15183 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15184 (expand_symtab_containing_pc, lookup_objfile_from_block)
15185 (lookup_static_symbol, basic_lookup_transparent_type)
15186 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15187 (find_line_symtab, info_sources_command)
15188 (default_collect_symbol_completion_matches_break_on)
15189 (make_source_files_completion_list, find_main_name): Update.
15190 * symmisc.c (print_symbol_bcache_statistics)
15191 (print_objfile_statistics, maintenance_print_symbols)
15192 (maintenance_print_msymbols, maintenance_print_objfiles)
15193 (maintenance_info_symtabs, maintenance_check_symtabs)
15194 (maintenance_expand_symtabs, maintenance_info_line_tables):
15195 Update.
15196 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15197 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15198 (map_overlay_command, unmap_overlay_command)
15199 (simple_overlay_update, expand_symtabs_matching)
15200 (map_symbol_filenames): Update.
15201 * symfile-debug.c (set_debug_symfile): Update.
15202 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15203 Update.
15204 * source.c (select_source_symtab, forget_cached_source_info):
15205 Update.
15206 * solib.c (solib_read_symbols): Update.
15207 * solib-spu.c (append_ocl_sos): Update.
15208 * psymtab.c (maintenance_print_psymbols)
15209 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15210 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15211 * printcmd.c (info_symbol_command): Update.
15212 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15213 Update.
15214 * objfiles.h (class all_objfiles): Remove.
15215 * objfiles.c (have_partial_symbols, have_full_symbols)
15216 (have_minimal_symbols, qsort_cmp, update_section_map)
15217 (shared_objfile_contains_address_p)
15218 (default_iterate_over_objfiles_in_search_order): Update.
15219 * objc-lang.c (info_selectors_command, info_classes_command)
15220 (find_methods): Update.
15221 * minsyms.c (find_solib_trampoline_target): Update.
15222 * maint.c (maintenance_info_sections)
15223 (maintenance_translate_address, count_symtabs_and_blocks):
15224 Update.
15225 * main.c (captured_main_1): Update.
15226 * linux-thread-db.c (try_thread_db_load_from_pdir)
15227 (has_libpthread): Update.
15228 * linespec.c (iterate_over_all_matching_symtabs)
15229 (search_minsyms_for_name): Update.
15230 * jit.c (jit_find_objf_with_entry_addr): Update.
15231 * hppa-tdep.c (find_unwind_entry)
15232 (hppa_lookup_stub_minimal_symbol): Update.
15233 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15234 Update.
15235 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15236 (elf_gnu_ifunc_resolve_by_got): Update.
15237 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15238 * dwarf-index-write.c (save_gdb_index_command): Update.
15239 * cp-support.c (add_symbol_overload_list_qualified): Update.
15240 * breakpoint.c (create_overlay_event_breakpoint)
15241 (create_longjmp_master_breakpoint)
15242 (create_std_terminate_master_breakpoint)
15243 (create_exception_master_breakpoint): Update.
15244 * blockframe.c (find_pc_partial_function): Update.
15245 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15246 (ada_collect_symbol_completion_matches)
15247 (ada_add_global_exceptions): Update.
15248
15249 2019-01-17 Tom Tromey <tom@tromey.com>
15250
15251 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15252 declare VEC.
15253 (solib_target_parse_libraries): Change return type.
15254 (library_list_start_segment, library_list_start_section)
15255 (library_list_end_library, library_list_start_library); Update.
15256 (solib_target_free_library_list): Remove.
15257 (solib_target_parse_libraries): Remove cleanup. Change return
15258 type.
15259 (solib_target_current_sos): Update.
15260
15261 2019-01-17 Tom Tromey <tromey@bapiya>
15262
15263 * valprint.c: Replace "the the" with "the".
15264 * symtab.c: Replace "the the" with "the".
15265 * solib.c: Replace "the the" with "the".
15266 * solib-dsbt.c: Replace "the the" with "the".
15267 * linespec.c: Replace "the the" with "the".
15268 * dwarf2loc.h: Replace "the the" with "the".
15269 * amd64-windows-tdep.c: Replace "the the" with "the".
15270 * aarch64-tdep.c: Replace "the the" with "the".
15271
15272 2019-01-16 Keith Seitz <keiths@redhat.com>
15273
15274 PR gdb/23773
15275 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15276 <builder>: Rename to ..
15277 <m_builder>: ... this and make private.
15278 (dwarf2_cu::get_builder): New method. Change all users of
15279 `builder' to use this method.
15280 (dwarf2_start_symtab): Move to ...
15281 (dwarf2_cu::start_symtab): ... here. Update all callers
15282 (setup_type_unit_groups): Move to ...
15283 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15284 callers.
15285 (dwarf2_cu::reset_builder): New method.
15286 (process_full_compunit, process_full_type_unit): Use
15287 dwarf2_cu::reset_builder.
15288 (follow_die_offset): Record the ancestor CU if it is different
15289 from the followed DIE's CU.
15290 (follow_die_sig_1): Likewise.
15291
15292 2019-01-15 Tom Tromey <tom@tromey.com>
15293
15294 * remote.c (class remote_state) <buf>: Now a char_vector.
15295 <buf_size>: Remove.
15296 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15297 parameter.
15298 (remote_target::getpkt_or_notif_sane_1)
15299 (remote_target::getpkt_sane)
15300 (remote_target::getpkt_or_notif_sane): Likewise.
15301 (class remote_target) <putpkt>: New overload.
15302 (remote_target::read_frame): Change type of "buf_p". Remove
15303 sizeof_p parameter.
15304 (packet_ok): New overload.
15305 (packet_check_result): New overload.
15306 Update all uses.
15307
15308 2019-01-14 Tom Tromey <tom@tromey.com>
15309
15310 * remote-notif.c (handle_notification, remote_notif_ack)
15311 (remote_notif_parse): Make "buf" const.
15312 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15313 const.
15314 (remote_notif_parse, remote_notif_ack, handle_notification):
15315 Likewise.
15316 * remote.c (remote_notif_stop_parse): Make "buf" const.
15317 (remote_target::remote_parse_stop_reply): Make "buf" const.
15318 (remote_notif_stop_ack): Make "buf" const.
15319
15320 2019-01-14 Tom Tromey <tom@tromey.com>
15321
15322 * remote.c (remote_console_output): Make parameter const.
15323
15324 2019-01-14 Tom Tromey <tom@tromey.com>
15325
15326 * target-debug.h (target_debug_print_signals): Constify.
15327 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15328 * procfs.c (procfs_target::pass_signals): Update.
15329 * linux-nat.c (linux_nat_target::pass_signals): Update.
15330 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15331 * target-delegates.c: Rebuild.
15332 * remote.c (remote_target::program_signals): Update.
15333 (remote_target::pass_signals): Update.
15334 * target.c (target_pass_signals): Constify argument.
15335 (target_program_signals): Likewise.
15336 * target.h (struct target_ops) <pass_signals, program_signals>:
15337 Constify argument.
15338 (target_pass_signals, target_program_signals): Constify argument.
15339
15340 2019-01-14 Tom Tromey <tom@tromey.com>
15341
15342 PR tui/28819:
15343 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15344
15345 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15346
15347 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15348 field.
15349 * rs6000-tdep.c: Include reggroups.h.
15350 (IS_V_ALIAS_PSEUDOREG): Define.
15351 (rs6000_register_name): Return names for the "vX" aliases.
15352 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15353 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15354 aliases. Call default_register_reggroup_p for all other
15355 pseudo-registers.
15356 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15357 New functions.
15358 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15359 Handle "vX" aliases.
15360 (v_alias_pseudo_register_collect): New function.
15361 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15362 (rs6000_gdbarch_init): Initialize "vX" aliases as
15363 pseudo-registers. Restore registration of
15364 rs6000_pseudo_register_reggroup_p with
15365 set_tdesc_pseudo_register_reggroup_p.
15366
15367 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15368
15369 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15370 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15371 set_gdbarch_num_pseudo_regs.
15372
15373 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15374
15375 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15376 Remove arg prefixname, add do_set and do_show.
15377 Add member functions set_list and show_list.
15378 * cli/cli-style.c (class cli_style_option): Update accordingly.
15379 (style_set_list): Move to file scope.
15380 (style_show_list): Likewise.
15381 (set_style): Call help_list.
15382 (show_style): Call cmd_show_list.
15383 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15384 Update to use the new macro.
15385
15386 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15387
15388 * ada-lang.c (_initialize_ada_language): Expand the help text
15389 for the "catch exception" command.
15390
15391 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15392
15393 * symtab.c (matching_obj_sections): Initialize obj,
15394 declare it closer to its usage.
15395
15396 2019-01-10 Tom Tromey <tom@tromey.com>
15397
15398 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15399 (basic_inf_threads_range): Remove.
15400 (inf_threads_range, inf_non_exited_threads_range)
15401 (safe_inf_threads_range): Use next_adapter.
15402
15403 2019-01-10 Keith Seitz <keiths@redhat.com>
15404
15405 PR gdb/23712
15406 PR symtab/23010
15407 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15408 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15409
15410 2019-01-10 Keith Seitz <keiths@redhat.com>
15411
15412 PR gdb/23712
15413 PR symtab/23010
15414 * dictionary.c (pending_to_vector): Remove.
15415 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15416 Remove _1 suffix, replacing functions of the same name. Update
15417 all callers.
15418 (dict_create_hashed, dict_create_hashed_expandable)
15419 (dict_create_linear, dict_create_linear_expandable, dict_free)
15420 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15421 Make functions static.
15422
15423 2019-01-10 Keith Seitz <keiths@redhat.com>
15424
15425 PR gdb/23712
15426 PR symtab/23010
15427 * dictionary.h (struct dictionary): Replace declaration with
15428 multidictionary.
15429 (dict_create_hashed, dict_create_hashed_expandable)
15430 (dict_create_linear, dict_create_linear_expandable)
15431 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15432 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15433 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15434 taking multidictionary argument.
15435 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15436 * block.h (struct block) <dict>: Change to multidictionary
15437 and rename `multidict'.
15438 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15439 symmisc.c: Update all dictionary references to multidictionary.
15440
15441 2019-01-10 Keith Seitz <keiths@redhat.com>
15442
15443 PR gdb/23712
15444 PR symtab/23010
15445 * dictionary.c: Include unordered_map.
15446 (pending_to_vector): New function.
15447 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15448 Rewrite the non-"_1" functions to take vector instead
15449 of linked list.
15450 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15451 "new" _1 versions of the same name.
15452 (multidictionary): Define.
15453 (std::hash<enum language): New definition.
15454 (collate_pending_symbols_by_language, mdict_create_hashed)
15455 (mdict_create_hashed_expandable, mdict_create_linear)
15456 (mdict_create_linear_expandable, mdict_free)
15457 (find_language_dictionary, create_new_language_dictionary)
15458 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15459 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15460 (mdict_size, mdict_empty): New functions.
15461 * dictionary.h (mdict_iterator): Define.
15462
15463 2019-01-10 Pedro Alves <palves@redhat.com>
15464
15465 * breakpoint.c (read_uploaded_action)
15466 (create_tracepoint_from_upload): Adjust to use
15467 gdb::unique_xmalloc_ptr.
15468 * ctf.c (ctf_write_uploaded_tp):
15469 (SET_ARRAY_FIELD): Use emplace_back.
15470 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15471 * tracefile-tfile.c (tfile_write_uploaded_tp):
15472 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15473 gdb::unique_xmalloc_ptr.
15474 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15475 at_string, cond_string, cmd_strings>: Replace char pointers
15476 with gdb::unique_xmalloc_ptr.
15477
15478 2019-01-10 Pedro Alves <palves@redhat.com>
15479
15480 * solib-target.c (library_list_start_library): Don't xstrdup name.
15481
15482 2019-01-10 Pedro Alves <palves@redhat.com>
15483
15484 * mdebugread.c (parse_partial_symbols): Use
15485 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15486
15487 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15488
15489 * linux-fork.c (scoped_switch_fork_info)
15490 <~scoped_switch_fork_info>: Fix incorrect variable name.
15491
15492 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15493
15494 * linux-fork.c (scoped_switch_fork_info)
15495 <scoped_switch_fork_info>: Make explicit.
15496 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15497
15498 2019-01-10 Tom Tromey <tom@tromey.com>
15499
15500 * objfiles.h (objfile::reset_psymtabs): Update.
15501 * objfiles.c (objfile::objfile): Update.
15502 * psymtab.h (psymtab_storage::obstack): Update.
15503 (psymtab_storage::m_obstack): Use gdb::optional.
15504 (class psymtab_storage): Update comment. Remove objfile
15505 parameter.
15506 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15507
15508 2019-01-10 Tom Tromey <tom@tromey.com>
15509
15510 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15511 <free_psymtabs>: Now private.
15512 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15513 (allocate_psymtab): Use new method.
15514
15515 2019-01-10 Tom Tromey <tom@tromey.com>
15516
15517 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15518 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15519 * mdebugread.c (parse_partial_symbols): Use
15520 allocate_dependencies.
15521 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15522 allocate_dependencies.
15523 (process_psymtab_comp_unit_reader)
15524 (build_type_psymtab_dependencies): Likewise.
15525 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15526
15527 2019-01-10 Tom Tromey <tom@tromey.com>
15528
15529 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15530 PSYMBOL_SET_LANGUAGE.
15531 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15532
15533 2019-01-10 Tom Tromey <tom@tromey.com>
15534
15535 * psymtab.h (psymtab_storage::obstack): New method.
15536 <m_obstack>: Rename from obstack; now private.
15537 * psymtab.c (psymtab_storage): Update.
15538 * dwarf2read.c (create_addrmap_from_index)
15539 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15540 Update.
15541
15542 2019-01-10 Tom Tromey <tom@tromey.com>
15543
15544 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15545 * objfiles.h (objfile::reset_psymtabs): New method.
15546
15547 2019-01-10 Tom Tromey <tom@tromey.com>
15548
15549 * symmisc.c (print_symbol_bcache_statistics): Update.
15550 (print_objfile_statistics): Update.
15551 * symfile.c (reread_symbols): Update.
15552 * psymtab.h (class psymtab_storage): New.
15553 * psymtab.c (psymtab_storage): New constructor.
15554 (~psymtab_storage): New destructor.
15555 (require_partial_symbols): Update.
15556 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15557 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15558 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15559 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15560 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15561 (start_psymtab_common, end_psymtab_common)
15562 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15563 (allocate_psymtab): Update.
15564 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15565 Update.
15566 (dump_psymtab_addrmap, maintenance_print_psymbols)
15567 (maintenance_check_psymtabs): Update.
15568 (class objfile_psymtabs): Move to objfiles.h.
15569 * psympriv.h (discard_psymtab): Now inline.
15570 (psymtab_discarder::psymtab_discarder): Update.
15571 (psymtab_discarder::~psymtab_discarder): Update.
15572 (ALL_OBJFILE_PSYMTABS): Rewrite.
15573 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15574 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15575 Remove fields.
15576 <partial_symtabs>: New field.
15577 (class objfile_psymtabs): Move from psymtab.h. Update.
15578 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15579 psymbol_cache.
15580 (objfile::~objfile): Don't destroy psymbol_cache.
15581 * mdebugread.c (parse_partial_symbols): Update.
15582 * dwarf2read.c (create_addrmap_from_index)
15583 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15584 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15585 (add_partial_subprogram, dwarf2_ranges_read): Update.
15586 * dwarf-index-write.c (write_address_map)
15587 (write_one_signatured_type, recursively_write_psymbols)
15588 (class debug_names, class debug_names, write_psymtabs_to_index):
15589 Update.
15590
15591 2019-01-10 Tom Tromey <tom@tromey.com>
15592
15593 * symtab.h (SYMBOL_SET_NAMES): Update.
15594 (symbol_set_names): Update.
15595 (MSYMBOL_SET_NAMES): Update.
15596 * symtab.c (symbol_set_names): Change argument to be an
15597 objfile_per_bfd_storage.
15598 * psymtab.c (add_psymbol_to_bcache): Update.
15599 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15600
15601 2019-01-10 Tom Tromey <tom@tromey.com>
15602
15603 * symtab.c (create_demangled_names_hash): Change argument to be an
15604 objfile_per_bfd_storage.
15605 (symbol_set_names): Update.
15606
15607 2019-01-10 Tom Tromey <tom@tromey.com>
15608
15609 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15610 init_psymbol_list.
15611 * psymtab.c (init_psymbol_list): Do nothing if already called.
15612 * psympriv.h (init_psymbol_list): Add comment.
15613 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15614 init_psymbol_list.
15615 * dbxread.c (dbx_symfile_read): Unconditionally call
15616 init_psymbol_list.
15617
15618 2019-01-10 Tom Tromey <tom@tromey.com>
15619
15620 * xcoffread.c (scan_xcoff_symtab): Update.
15621 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15622 "where".
15623 * mdebugread.c (parse_partial_symbols)
15624 (handle_psymbol_enumerators): Update.
15625 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15626 * dbxread.c (read_dbx_symtab): Update.
15627 * psympriv.h (psymbol_placement): New enum.
15628 (add_psymbol_to_list): Update.
15629
15630 2019-01-10 Tom Tromey <tom@tromey.com>
15631
15632 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15633 static_psymbols parameters.
15634 (scan_xcoff_symtab): Update.
15635 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15636 static_psymbols parameters.
15637 * psympriv.h (start_psymtab_common): Update.
15638 * mdebugread.c (parse_partial_symbols): Update.
15639 * dwarf2read.c (create_partial_symtab): Update.
15640 * dbxread.c (read_dbx_symtab): Update.
15641 (start_psymtab): Remove global_psymbols and static_psymbols
15642 parameters.
15643
15644 2019-01-10 Tom Tromey <tom@tromey.com>
15645
15646 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15647 * psymtab.c (allocate_psymtab): Add comment.
15648 * psympriv.h (allocate_psymtab): Add comment.
15649 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15650 initializations.
15651 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15652
15653 2019-01-10 Tom Tromey <tom@tromey.com>
15654
15655 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15656 Don't declare.
15657 * mipsread.c: Include mdebugread.h.
15658 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15659 Declare.
15660 * elfread.c: Include mdebugread.h.
15661
15662 2019-01-09 Tom Tromey <tom@tromey.com>
15663
15664 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15665 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15666 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15667 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15668 (psym_lookup_symbol, psym_find_last_source_symtab)
15669 (psym_forget_cached_source_info, psym_print_stats)
15670 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15671 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15672 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15673 (psym_find_compunit_symtab_by_address)
15674 (maintenance_print_psymbols, maintenance_info_psymtabs)
15675 (maintenance_check_psymtabs): Use ranged for.
15676 * psymtab.h (class objfile_psymtabs): New.
15677 (require_partial_symbols): Return objfile_psymtabs.
15678 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15679
15680 2019-01-09 Tom Tromey <tom@tromey.com>
15681
15682 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15683 (find_pc_mapped_section, list_overlays_command)
15684 (map_overlay_command, unmap_overlay_command)
15685 (simple_overlay_update): Use all_objfiles.
15686 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15687 * printcmd.c (info_symbol_command): Use all_objfiles.
15688 * objfiles.h (ALL_OBJSECTIONS): Remove.
15689 * maint.c (maintenance_translate_address): Use all_objfiles.
15690 * gcore.c (gcore_create_callback): Use all_objfiles.
15691 (objfile_find_memory_regions): Likewise.
15692
15693 2019-01-09 Tom Tromey <tom@tromey.com>
15694
15695 * symtab.c (find_line_symtab, info_sources_command)
15696 (make_source_files_completion_list): Use objfile_compunits.
15697 * source.c (select_source_symtab): Use objfile_compunits.
15698 * objfiles.h (struct objfile): Update comment.
15699 (ALL_OBJFILES): Remove.
15700 (ALL_FILETABS): Remove.
15701 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15702 objfile_compunits.
15703
15704 2019-01-09 Tom Tromey <tom@tromey.com>
15705
15706 * symmisc.c (print_objfile_statistics, dump_objfile)
15707 (maintenance_print_symbols): Use compunit_filetabs.
15708 * source.c (forget_cached_source_info_for_objfile): Use
15709 compunit_filetabs.
15710 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15711 (ALL_FILETABS): Use compunit_filetabs.
15712 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15713 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15714
15715 2019-01-09 Tom Tromey <tom@tromey.com>
15716
15717 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15718 (compunit_filetabs): New.
15719 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15720 compunit_filetabs.
15721 (info_sources_command, make_source_files_completion_list): Remove
15722 declaration.
15723 * symmisc.c (print_objfile_statistics, dump_objfile)
15724 (maintenance_print_symbols): Remove declaration.
15725 (maintenance_info_symtabs): Use compunit_filetabs.
15726 (maintenance_info_line_tables): Likewise.
15727 * source.c (select_source_symtab): Change local variable name.
15728 (forget_cached_source_info_for_objfile): Remove declaration.
15729 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15730 * objfiles.c (objfile_relocate1): Remove declaration.
15731 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15732 declaration.
15733 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15734 * coffread.c (coff_symtab_read): Remove declaration.
15735 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15736 compunit_filetabs.
15737
15738 2019-01-09 Tom Tromey <tom@tromey.com>
15739
15740 * symtab.c (lookup_objfile_from_block)
15741 (find_pc_sect_compunit_symtab, search_symbols)
15742 (default_collect_symbol_completion_matches_break_on): Use
15743 objfile_compunits.
15744 * objfiles.h (ALL_COMPUNITS): Remove.
15745 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15746 * cp-support.c (add_symbol_overload_list_qualified): Use
15747 objfile_compunits.
15748 * ada-lang.c (ada_collect_symbol_completion_matches)
15749 (ada_add_global_exceptions): Use objfile_compunits.
15750
15751 2019-01-09 Tom Tromey <tom@tromey.com>
15752
15753 * source.c (select_source_symtab)
15754 (forget_cached_source_info_for_objfile): Remove declaration.
15755 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15756 declaration.
15757 * maint.c (count_symtabs_and_blocks): Remove declaration.
15758 * cp-support.c (add_symbol_overload_list_qualified): Remove
15759 declaration.
15760 * coffread.c (coff_symtab_read): Remove declaration.
15761 * symtab.c (lookup_symbol_in_objfile_symtabs)
15762 (basic_lookup_transparent_type_1): Use objfile_compunits.
15763 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15764 (info_sources_command, search_symbols)
15765 (default_collect_symbol_completion_matches_break_on)
15766 (make_source_files_completion_list): Remove declaration.
15767 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15768 (ada_collect_symbol_completion_matches)
15769 (ada_add_global_exceptions): Remove declaration.
15770 * linespec.c (iterate_over_all_matching_symtabs): Use
15771 objfile_compunits.
15772 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15773 (class objfile_compunits): New.
15774 (ALL_COMPUNITS): Use objfile_compunits.
15775 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15776 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15777 objfile_compunits.
15778 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15779
15780 2019-01-09 Tom Tromey <tom@tromey.com>
15781
15782 * symtab.c (search_symbols)
15783 (default_collect_symbol_completion_matches_break_on): Use
15784 objfile_msymbols.
15785 * ada-lang.c (ada_lookup_simple_minsym)
15786 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15787 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15788 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15789 objfile_msymbols.
15790 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15791 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15792 * objc-lang.c (find_methods): Use objfile_msymbols.
15793 (info_selectors_command, info_classes_command): Likewise.
15794 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15795 * objfiles.h (class objfile_msymbols): New.
15796 (ALL_OBJFILE_MSYMBOLS): Remove.
15797 (ALL_MSYMBOLS): Remove.
15798
15799 2019-01-09 Tom Tromey <tom@tromey.com>
15800
15801 * common/next-iterator.h (next_adapter): Add Iterator template
15802 parameter.
15803 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15804 (class all_objfiles_safe): New.
15805 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15806 * objfiles.c (put_objfile_before): Update comment.
15807 (add_separate_debug_objfile): Likewise.
15808 (free_all_objfiles): Use all_objfiles_safe.
15809 (objfile_purge_solibs): Likewise.
15810
15811 2019-01-09 Tom Tromey <tom@tromey.com>
15812
15813 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15814 (expand_symtab_containing_pc, lookup_static_symbol)
15815 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15816 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15817 all_objfiles.
15818 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15819 * breakpoint.c (create_overlay_event_breakpoint)
15820 (create_longjmp_master_breakpoint)
15821 (create_std_terminate_master_breakpoint)
15822 (create_exception_master_breakpoint): Use all_objfiles.
15823 * linux-thread-db.c (try_thread_db_load_from_pdir)
15824 (has_libpthread): Use all_objfiles.
15825 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15826 * linespec.c (iterate_over_all_matching_symtabs)
15827 (search_minsyms_for_name): Use all_objfiles.
15828 * maint.c (maintenance_info_sections): Use all_objfiles.
15829 * main.c (captured_main_1): Use all_objfiles.
15830 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15831 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15832 * guile/scm-pretty-print.c
15833 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15834 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15835 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15836 (maintenance_print_msymbols): Use all_objfiles.
15837 * source.c (select_source_symtab): Use all_objfiles.
15838 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15839 * symfile.c (remove_symbol_file_command)
15840 (expand_symtabs_matching, map_symbol_filenames): Use
15841 all_objfiles.
15842 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15843 all_objfiles.
15844 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15845 * objc-lang.c (find_methods): Use all_objfiles.
15846 * objfiles.c (have_partial_symbols, have_full_symbols)
15847 (have_minimal_symbols, qsort_cmp)
15848 (default_iterate_over_objfiles_in_search_order): Use
15849 all_objfiles.
15850 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15851 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15852 (maintenance_check_psymtabs): Use all_objfiles.
15853 (ALL_PSYMTABS): Remove.
15854 * compile/compile-object-run.c (do_module_cleanup): Use
15855 all_objfiles.
15856 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15857 * cp-support.c (add_symbol_overload_list_qualified): Use
15858 all_objfiles.
15859 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15860 Use all_objfiles.
15861 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15862 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15863 all_objfiles.
15864 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15865 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15866 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15867 Uses all_objfiles.
15868 * solib.c (solib_read_symbols): Use all_objfiles
15869
15870 2019-01-09 Tom Tromey <tom@tromey.com>
15871
15872 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15873 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15874 all_objfiles.
15875 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15876 * symmisc.c (print_symbol_bcache_statistics)
15877 (print_objfile_statistics, maintenance_print_objfiles)
15878 (maintenance_info_symtabs, maintenance_check_symtabs)
15879 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15880 all_objfiles.
15881 * source.c (forget_cached_source_info): Use all_objfiles.
15882 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15883 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15884 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15885 * objfiles.c (update_section_map): Use all_objfiles.
15886 (shared_objfile_contains_address_p): Likewise.
15887 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15888 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15889
15890 2019-01-09 Tom Tromey <tom@tromey.com>
15891
15892 * common/next-iterator.h: New file.
15893 * objfiles.h (class all_objfiles): New.
15894 (struct objfile_iterator): New.
15895
15896 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15897
15898 * NEWS: Move the description of the changed "frame", "select-frame",
15899 and "info frame" commands to the Changed commands section.
15900
15901 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15902
15903 * gdbtypes.c (check_stub_method_group): Remove handling of old
15904 mangling schemes.
15905 * linespec.c (find_methods): Likewise.
15906 * stabsread.c (read_member_functions): Likewise.
15907 * valops.c (search_struct_method): Likewise.
15908 (value_struct_elt_for_reference): Likewise.
15909 * NEWS: Mention this change.
15910
15911 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15912
15913 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15914 print_source_lines.
15915 * source.c (print_source_lines_base): Update line number check.
15916 (print_source_lines): New function.
15917 (source_lines_range::source_lines_range): New function.
15918 * source.h (class source_lines_range): New class.
15919 (print_source_lines): New declaration.
15920
15921 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15922
15923 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15924
15925 2019-01-08 Tom Tromey <tom@tromey.com>
15926 Simon Marchi <simon.marchi@ericsson.com>
15927
15928 PR gdb/24060
15929 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15930 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15931 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15932 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15933 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15934 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15935
15936 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15937
15938 * source.c (select_source_symtab): Move header comment to
15939 declaration in source.h.
15940 (forget_cached_source_info_for_objfile): Likewise.
15941 (forget_cached_source_info): Likewise.
15942 (identify_source_line): Likewise.
15943 * source.h (identify_source_line): Move declaration from symtab.h
15944 and add comment from source.c
15945 (print_source_lines): Likewise.
15946 (forget_cached_source_info_for_objfile): Likewise.
15947 (forget_cached_source_info): Likewise.
15948 (select_source_symtab): Likewise.
15949 (enum print_source_lines_flag): Move definition from symtab.h.
15950 * symtab.h (identify_source_line): Move declaration to source.h.
15951 (print_source_lines): Likewise.
15952 (forget_cached_source_info_for_objfile): Likewise.
15953 (forget_cached_source_info): Likewise.
15954 (select_source_symtab): Likewise.
15955 (enum print_source_lines_flag): Move definition to source.h.
15956 * tui/tui-hooks.c: Add 'source.h' include.
15957
15958 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15959
15960 * source.c (print_source_lines_base): Handle requests to print
15961 reverse line number sequences, and guard against empty lines
15962 string.
15963
15964 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15965
15966 * source.c (print_source_lines_base): Fix skip of '\r' if next
15967 character is '\n'.
15968
15969 2019-01-06 Tom Tromey <tom@tromey.com>
15970
15971 * c-exp.y (struct c_parse_state) <macro_original_text,
15972 expansion_obstack>: New member.
15973 (macro_original_text, expansion_obstack): Remove globals.
15974 (scan_macro_expansion, scanning_macro_expansion)
15975 (finished_macro_expansion): Update.
15976 (scan_macro_cleanup): Remove.
15977 (yylex, c_parse): Update.
15978
15979 2019-01-06 Tom Tromey <tom@tromey.com>
15980
15981 * c-exp.y (struct c_parse_state) <strings>: New member.
15982 (operator_stoken): Update.
15983
15984 2019-01-06 Tom Tromey <tom@tromey.com>
15985
15986 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15987 (union type_stack_elt) <typelist_val>: Now a pointer to
15988 std::vector.
15989 (type_stack_cleanup): Don't declare.
15990 (push_typelist): Update.
15991 * parse.c (pop_typelist): Return a std::vector.
15992 (push_typelist): Take a std::vector.
15993 (follow_types): Update. Do not free args.
15994 (type_stack_cleanup): Remove.
15995 * c-exp.y (struct c_parse_state): New.
15996 (cpstate): New global.
15997 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15998 (nonempty_typelist): Update.
15999 (func_mod): Create a new vector.
16000 (c_parse): Create a c_parse_state.
16001 (check_parameter_typelist): Do not delete params.
16002 (function_method): Update. Do not delete type_list.
16003
16004 2019-01-06 Tom Tromey <tom@tromey.com>
16005
16006 PR gdb/28155:
16007 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16008 check_typedef.
16009 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16010 (print_return_value): Likewise.
16011
16012 2019-01-05 Tom Tromey <tom@tromey.com>
16013
16014 * contrib/cleanup_check.py: Remove.
16015 * contrib/gcc-with-excheck: Remove.
16016 * contrib/exsummary.py: Remove.
16017 * contrib/excheck.py: Remove.
16018
16019 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16020
16021 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16022 NULL. Initialize tpprev to NULL instead of assigning it
16023 to NULL on the next statement.
16024 * windows-nat.c (windows_delete_thread): Remove check for
16025 main_thread_id before printing thread exit notifications.
16026 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16027 Remove thread ID check against main_thread_id.
16028 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16029 windows_delete_thread.
16030 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16031
16032 2019-01-04 Tom Tromey <tom@tromey.com>
16033
16034 * compile/compile.c (_initialize_compile): Use upper case for
16035 metasyntactic variables.
16036 * symmisc.c (_initialize_symmisc): Use upper case for
16037 metasyntactic variables.
16038 * psymtab.c (_initialize_psymtab): Use upper case for
16039 metasyntactic variables.
16040 * demangle.c (demangle_command): Use upper case for metasyntactic
16041 variables.
16042 (_initialize_demangler): Likewise.
16043 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16044 variables.
16045
16046 2019-01-03 Tom Tromey <tom@tromey.com>
16047
16048 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16049
16050 2019-01-03 Tom Tromey <tom@tromey.com>
16051
16052 * python/py-symtab.c (salpy_str): Update.
16053 (struct salpy_sal_object) <symtab>: Now a PyObject.
16054 (salpy_dealloc): Update.
16055 (del_objfile_sal): Use gdbpy_ref.
16056
16057 2019-01-03 Tom Tromey <tom@tromey.com>
16058
16059 * python/py-type.c (convert_field): Use new_reference. Return
16060 gdbpy_ref.
16061 (make_fielditem): Return gdbpy_ref.
16062 (typy_fields): Update.
16063 (typy_getitem): Update.
16064 (field_name): Return gdbpy_ref. Use new_reference.
16065 (typy_iterator_iternext): Update.
16066
16067 2019-01-03 Tom Tromey <tom@tromey.com>
16068
16069 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16070
16071 2019-01-03 Tom Tromey <tom@tromey.com>
16072
16073 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16074 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16075 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16076 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16077 (pspy_set_type_printers): Likewise.
16078 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16079 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16080 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16081 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16082 (objfpy_set_type_printers): Likewise.
16083
16084 2019-01-03 Tom Tromey <tom@tromey.com>
16085
16086 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16087 (gdbpy_print_stack): Use gdbpy_err_fetch.
16088 * python/python-internal.h (class gdbpy_err_fetch): New class.
16089 (class gdbpy_enter) <m_error_type, m_error_value,
16090 m_error_traceback>: Remove.
16091 <m_error>: New member.
16092 (gdbpy_exception_to_string): Don't declare.
16093 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16094 * python/py-value.c (convert_value_from_python): Use
16095 gdbpy_err_fetch.
16096 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16097 gdbpy_exception_to_string.
16098 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16099 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16100 gdbpy_err_fetch.
16101
16102 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16103
16104 * linux-nat.c (delete_lwp_cleanup): Delete.
16105 (struct lwp_deleter): New struct.
16106 (lwp_info_up): New typedef.
16107 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16108 lwp_info_up.
16109
16110 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16111
16112 * linux-fork.c (class scoped_switch_fork_info): New class.
16113 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16114
16115 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16116
16117 * valops.c (find_overload_match): Remove use of null_cleanup, and
16118 calls to do_cleanups.
16119
16120 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16121
16122 * compile/compile-cplus-types.c
16123 (compile_cplus_instance::decl_name): Handle changes to
16124 cp_func_name.
16125 * cp-support.c (cp_func_name): Update header comment, update
16126 return type.
16127 * cp-support.h (cp_func_name): Update return type in declaration.
16128 * valops.c (find_overload_match): Move temp_func local to top
16129 level of function and change its type. Use temp_func to hold and
16130 delete temporary string obtained from cp_func_name.
16131
16132 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16133
16134 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16135 gdb::char_vector, remove cleanup, and update uses of `msg`.
16136
16137 2019-01-03 Jim Wilson <jimw@sifive.com>
16138
16139 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16140
16141 2019-01-02 Tom Tromey <tom@tromey.com>
16142
16143 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16144 (tdesc_parse_xml): Remove cleanups.
16145 * target-descriptions.h (make_cleanup_free_target_description):
16146 Don't declare.
16147 (target_desc_deleter): New struct.
16148 (target_desc_up): New typedef.
16149 * target-descriptions.c (target_desc_deleter::operator()): Rename
16150 from free_target_description.
16151 (make_cleanup_free_target_description): Remove.
16152
16153 2019-01-02 Tom Tromey <tom@tromey.com>
16154
16155 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16156 constructor, destructor.
16157 (linespec_parser): Remove typedef.
16158 (~linespec_parser): Rename from linespec_parser_delete.
16159 (linespec_lex_to_end, linespec_complete_label)
16160 (linespec_complete): Update.
16161 (decode_line_full): Remove cleanups.
16162 (decode_line_1): Update.
16163
16164 2019-01-02 Tom Tromey <tom@tromey.com>
16165
16166 * python/python-internal.h (inferior_to_inferior_object): Change
16167 return type.
16168 * python/py-exitedevent.c (create_exited_event_object): Update.
16169 * python/py-inferior.c (inferior_to_inferior_object): Return
16170 gdbpy_ref.
16171 (python_new_inferior, python_inferior_deleted)
16172 (thread_to_thread_object, delete_thread_object)
16173 (build_inferior_list, gdbpy_selected_inferior): Update.
16174 * python/py-infthread.c (create_thread_object): Update. Also fail
16175 if inferior_to_inferior_object fails.
16176
16177 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16178
16179 * inferior.h (class inferior) <displaced_step_state>: New field.
16180 * infrun.h (struct displaced_step_state): Move here from
16181 infrun.c. Initialize fields, add constructor.
16182 <inf>: Remove field.
16183 <reset>: New method.
16184 * infrun.c (struct displaced_step_inferior_state): Move to
16185 infrun.h.
16186 (displaced_step_inferior_states): Remove.
16187 (get_displaced_stepping_state): Adust.
16188 (displaced_step_in_progress_any_inferior): Adjust.
16189 (displaced_step_in_progress_thread): Adjust.
16190 (displaced_step_in_progress): Adjust.
16191 (add_displaced_stepping_state): Remove.
16192 (get_displaced_step_closure_by_addr): Adjust.
16193 (remove_displaced_stepping_state): Remove.
16194 (infrun_inferior_exit): Call displaced_step_state.reset.
16195 (use_displaced_stepping): Don't check for NULL.
16196 (displaced_step_prepare_throw): Call
16197 get_displaced_stepping_state.
16198 (displaced_step_fixup): Don't check for NULL.
16199 (prepare_for_detach): Don't check for NULL.
16200
16201 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16202
16203 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16204 in case of call that did not complete.
16205
16206 2019-01-02 Andrey Utkin <autkin@undo.io>
16207
16208 * symfile.c (find_separate_debug_file): Fix search of debug files for
16209 remote debuggee.
16210
16211 2019-01-02 Tom Tromey <tom@tromey.com>
16212
16213 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16214 indentation.
16215 * python/py-frame.c (frapy_older): Remove cast.
16216 (frapy_newer): Likewise.
16217 * python/py-breakpoint.c (local_setattro): Remove cast.
16218 * python/py-arch.c (archpy_name): Remove local variable.
16219 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16220
16221 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16222
16223 * unittests/basic_string_view/element_access/char/empty.cc:
16224 Fix year range in copyright header.
16225
16226 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16227
16228 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16229 Delete.
16230 <operator==>: Update with for removed field.
16231 <hash>: Likewise.
16232 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16233 <isa_features>: ...this.
16234 <abi_features>: New field.
16235 (riscv_isa_flen): Update comment.
16236 (riscv_abi_xlen): New declaration.
16237 (riscv_abi_flen): New declaration.
16238 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16239 isa_features.
16240 (riscv_abi_xlen): New function.
16241 (riscv_isa_flen): Update to get answer from isa_features.
16242 (riscv_abi_flen): New function.
16243 (riscv_has_fp_abi): Update to get answer from abi_features.
16244 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16245 xlen and flen.
16246 (riscv_call_info) <xlen, flen>: Update comment.
16247 (riscv_call_arg_struct): Remove invalid assertions
16248 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16249 is removed.
16250 (riscv_gdbarch_init): Gather isa features and abi features
16251 separately, ensure both match on the gdbarch when reusing an old
16252 gdbarch. Relax an error check to allow 32-bit abi float to run on
16253 a target with 64-bit float hardware.
16254
16255 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16256
16257 * source.c (search_command_helper): Stop reverse search
16258 when line 1 has been searched.
16259
16260 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16261
16262 * record-full.c (record_full_base_target::close): Rewrite
16263 record_full_core_buf_list free logic.
16264
16265 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16266
16267 * break-catch-syscall.c (print_one_catch_syscall): xfree
16268 the last text.
16269
16270 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16271
16272 * top.c (print_gdb_version): Update Copyright year in version
16273 message.
16274
16275 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16276
16277 Update copyright year range in all GDB files.
16278
16279 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16280
16281 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16282
16283 For older changes see ChangeLog-2018.
16284 \f
16285 Local Variables:
16286 mode: change-log
16287 left-margin: 8
16288 fill-column: 74
16289 version-control: never
16290 coding: utf-8
16291 End:
16292
This page took 0.415827 seconds and 4 git commands to generate.