Fix crash when command arg is missing in faas/taas/tfaas commands.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2 * stack.c (faas_command): Check a command is provided.
3 * thread.c (taas_command, tfaas_command): Likewise.
4
5 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6 * inferior.c (prune_inferiors): Only call delete_inferior,
7 Do not modify the inferior list.
8
9 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * c-exp.y: Update calls to lookup_typename,
12 lookup_signed_typename and lookup_unsigned_typename.
13 * c-lang.c (evaluate_subexp_c): Likewise.
14 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
15 Likewise.
16 * eval.c (binop_promote): Likewise.
17 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
18 (lookup_unsigned_typename): Likewise.
19 (lookup_signed_typename): Likewise.
20 * gdbtypes.h (lookup_unsigned_typename): Likewise.
21 (lookup_signed_typename): Likewise.
22 (lookup_typename): Likewise.
23 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
24 lookup_typename, lookup_signed_typename,
25 lookup_unsigned_typename.
26 * m2-exp.y: Likewise.
27 * printcmd.c (printf_wide_c_string): Likewise.
28 (ui_printf): Likewise.
29 * python/py-type.c (typy_lookup_typename): Likewise.
30 * python/py-xmethods.c (python_xmethod_worker::invoke):
31 Likewise.
32 * rust-exp.y: Likewise.
33
34 2019-12-04 Christian Biesinger <cbiesinger@google.com>
35
36 * configure.nat (obsd64): Add missing files x86-nat.o and
37 nat/x86-dregs.o.
38
39 2019-12-04 Tom Tromey <tom@tromey.com>
40
41 * valprint.c (val_print_string): Use metadata_style.
42 * go-valprint.c (print_go_string): Use metadata style.
43 * p-valprint.c (pascal_object_print_static_field): Use metadata
44 style.
45 * cp-valprint.c (cp_print_static_field): Use metadata style.
46
47 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
48 Chris January <chris.january@arm.com>
49
50 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
51 tokens.
52 (typebase): New patterns for complex, single/double precision, and
53 single/double complex.
54 (f77_keywords): Change token for complex keyword, and add single,
55 double, and precision keywords.
56
57 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
60 "info io_registers".
61
62 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * regcache.c (cooked_read_test): Initialize thread list of
65 mock_inferior.
66
67 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * aarch64-linux-tdep.c: Remove includes.
70
71 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * aarch64-tdep.c: Remove includes.
74
75 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
76
77 * filtered-iterator.h (filtered_iterator) <operator==,
78 operator!=>: Compare wrapped iterators, not wrapped pointers.
79 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
80 unittests/filtered_iterator-selftests.c.
81 * unittests/filtered_iterator-selftests.c: New file.
82
83 2019-12-04 Tom Tromey <tromey@adacore.com>
84
85 * gdbtypes.c (create_range_type): Inherit endianity
86 from base type.
87
88 2019-12-04 Tom Tromey <tromey@adacore.com>
89
90 * ada-lang.c (decode_constrained_packed_array)
91 (ada_value_assign, value_assign_to_component): Update.
92 * dwarf2loc.c (rw_pieced_value, access_memory)
93 (dwarf2_compile_expr_to_ax): Update.
94 * dwarf2read.c (dwarf2_add_field): Update.
95 * eval.c (evaluate_subexp_standard): Update.
96 * gdbarch.c, gdbarch.h: Rebuild.
97 * gdbarch.sh (bits_big_endian): Remove.
98 * gdbtypes.h (union field_location): Update comment.
99 * target-descriptions.c (make_gdb_type): Update.
100 * valarith.c (value_bit_index): Update.
101 * value.c (struct value) <bitpos>: Update comment.
102 (unpack_bits_as_long, modify_field): Update.
103 * value.h (value_bitpos): Update comment.
104
105 2019-12-04 Tom Tromey <tromey@adacore.com>
106
107 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
108 endian-ness.
109
110 2019-12-04 Tom Tromey <tromey@adacore.com>
111
112 * dwarf2read.c (dwarf2_init_float_type)
113 (dwarf2_init_complex_target_type): Add byte_order parameter.
114 (read_base_type): Compute byte order earlier.
115 * gdbtypes.c (init_float_type): Add byte_order parameter.
116 * gdbtypes.h (init_float_type): Add byte_order parameter.
117
118 2019-12-04 Tom Tromey <tromey@adacore.com>
119
120 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
121
122 2019-12-04 Tom Tromey <tromey@adacore.com>
123
124 * dwarf2read.c (process_structure_scope): Initialize
125 "discr_offset".
126
127 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
130 add it into the search spec.
131 (parse_max_results_option): New function.
132 (mi_info_functions_or_variables): Parse -max-results flag and pass
133 it to mi_symbol_info.
134 (mi_cmd_symbol_info_modules): Likewise.
135 (mi_cmd_symbol_info_types): Likewise.
136 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
137 return type to bool, change result container into a set, and don't
138 add new results if we have enough already.
139 (global_symbol_searcher::add_matching_msymbols): Change return
140 type to bool, and don't add new results if we have enough already.
141 (sort_search_symbols_remove_dups): Delete.
142 (global_symbol_searcher::search): Early exit from search loop when
143 we have enough results. Use a std::set to collect the results
144 from calling add_matching_symbols.
145 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
146 member function.
147 (global_symbol_searcher) <m_max_search_results>: New member
148 variable.
149 (global_symbol_searcher) <add_matching_symbols>: Update header
150 comment and change return type to bool.
151 (global_symbol_searcher) <add_matching_msymbols>: Update header
152 comment and change return type to bool.
153
154 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * symtab.c (symbol_search::compare_search_syms): Update header
157 comment.
158 (global_symbol_searcher::is_suitable_msymbol): New function.
159 (global_symbol_searcher::expand_symtabs): New function.
160 (global_symbol_searcher::add_matching_symbols): New function.
161 (global_symbol_searcher::add_matching_msymbols): New function.
162 (global_symbol_searcher::search): Move most of the content
163 into the new functions above, and call them as needed.
164 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
165 function.
166 (global_symbol_searcher) <add_matching_symbols>: New member
167 function.
168 (global_symbol_searcher) <add_matching_msymbols>: New member
169 function.
170 (global_symbol_searcher) <is_suitable_msymbol>: New member
171 function.
172
173 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
174
175 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
176 -symbol-info-module-variables entries.
177 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
178 (mi_cmd_symbol_info_module_variables): Declare.
179 * mi/mi-symbol-cmds.c
180 (module_symbol_search_iterator): New typedef.
181 (output_module_symbols_in_single_module_and_file): New function.
182 (output_module_symbols_in_single_module): New function.
183 (mi_info_module_functions_or_variables): New function.
184 (mi_cmd_symbol_info_module_functions): New function.
185 (mi_cmd_symbol_info_module_variables): New function.
186 * NEWS: Mention new MI command.
187
188 2019-12-03 Christian Biesinger <cbiesinger@google.com>
189
190 * bcache.c (hash): Remove.
191 (hash_continue): Remove.
192 * bcache.h (hash): Remove.
193 (hash_continue): Remove.
194 (struct bcache) <ctor>: Update.
195 * psymtab.c (psymbol_hash): Update.
196 * stabsread.c (hashname): Update.
197 * utils.h (fast_hash): Add an argument for a start value,
198 defaulting to zero.
199
200 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
201 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
202 (destroy_block_symbol_cache): New function.
203 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
204 (resize_symbol_cache): Likewise.
205
206 2019-12-02 Tom Tromey <tom@tromey.com>
207
208 * unittests/tui-selftests.c (run_tests): Make conditional.
209 (_initialize_tui_selftest): Make conditional.
210
211 2019-12-02 Christian Biesinger <cbiesinger@google.com>
212
213 * aix-thread.c (debug_aix_thread): Change type to bool.
214
215 2019-12-02 Luis Machado <luis.machado@linaro.org>
216
217 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
218
219 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * dwarf2read.c (read_tag_string_type): Read the fields required to
222 make a dynamic string, and possibly create a dynamic range for the
223 string.
224 (attr_to_dynamic_prop): Setup is_reference based on the type of
225 attribute being processed.
226 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
227 (resolve_dynamic_array): Rename to...
228 (resolve_dynamic_array_or_string): ...this, update header comment,
229 and accept TYPE_CODE_STRING.
230 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
231
232 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
235 of its implementation from...
236 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
237 the new function.
238
239 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
242 create a range with stride where appropriate.
243 * f-valprint.c: Include 'gdbarch.h'.
244 (f77_print_array_1): Take the stride into account when walking the
245 array. Also convert the stride into addressable units.
246 * gdbtypes.c (create_range_type): Initialise the stride to
247 constant zero.
248 (create_range_type_with_stride): New function, initialise the
249 range as normal, and then setup the stride.
250 (has_static_range): Include the stride here. Also change the
251 return type to bool.
252 (create_array_type_with_stride): Consider the range stride if the
253 array isn't given its own stride.
254 (resolve_dynamic_range): Resolve the stride if needed.
255 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
256 (struct range_bounds) <flag_is_byte_stride>: New member variable.
257 (TYPE_BIT_STRIDE): Define.
258 (TYPE_ARRAY_BIT_STRIDE): Define.
259 (create_range_type_with_stride): Declare.
260 * valarith.c (value_subscripted_rvalue): Take range stride into
261 account when walking the array.
262
263 2019-12-01 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
266 specially.
267
268 2019-12-01 Tom Tromey <tom@tromey.com>
269
270 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
271 \0.
272 * unittests/tui-selftests.c: New file.
273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
274
275 2019-12-01 Tom Tromey <tom@tromey.com>
276
277 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
278
279 2019-12-01 Tom Tromey <tom@tromey.com>
280
281 * NEWS: Document new settings.
282 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
283 * tui/tui-win.c (_initialize_tui_win): Add border style
284 observers.
285 * tui/tui-io.h (tui_apply_style): Declare.
286 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
287 longer static.
288 (apply_ansi_escape, tui_set_reverse_mode): Update.
289 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
290 Add "skip_intensity" parameter.
291 <changed>: New member.
292 <do_set_value>: Declare.
293 (tui_border_style, tui_active_border_style): Declare.
294 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
295 globals.
296 (cli_style_option): Initialize "changed".
297 (cli_style_option::do_set_value): New function.
298 (cli_style_option::add_setshow_commands): Add "skip_intensity"
299 parameter. Update.
300 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
301 (_initialize_cli_style): Update. Create TUI border style
302 commands.
303
304 2019-12-01 Tom Tromey <tom@tromey.com>
305
306 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
307 parameter.
308 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
309 parameter.
310 * tui/tui-win.h (compact_source): Declare.
311 * tui/tui-win.c (compact_source): New global.
312 (tui_set_compact_source, tui_show_compact_source): New functions.
313 (_initialize_tui_win): Add "compact-source" setting.
314 * tui/tui-source.c (tui_source_window::set_contents): Handle
315 compact_source setting.
316 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
317 * NEWS: Document new setting.
318
319 2019-11-30 Tom Tromey <tom@tromey.com>
320
321 * dwarf2read.c (dwarf2_add_field): Include field offset when
322 computing variant part length.
323
324 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
325 * NEWS: Mention define-prefix. Tell that command names can now
326 contain a . character.
327
328 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
329
330 * command.h (valid_cmd_char_p): Declare.
331 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
332 the check of valid command char.
333 (find_command_name_length, valid_user_defined_cmd_name_p): Use
334 valid_cmd_char_p.
335 * cli/cli-script.c (validate_comname): Likewise.
336 * completer.c (gdb_completer_command_word_break_characters):
337 Do not remove . from the word break char, update comments.
338 (complete_line_internal_1): Use valid_cmd_char_p.
339 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
340 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
341
342 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
343
344 * cli/cli-script.c (do_define_command): Ensure a redefined
345 prefix command is kept as a prefix command.
346 (define_prefix_command): New function.
347 (show_user_1): Report user defined prefixes.
348 (_initialize_cli_script): Create the new 'define-prefix' command.
349 Add completers for 'define' and 'document'.
350 * top.c (execute_command): If command is a user-defined prefix only
351 command, report the list of commands for this prefix command.
352
353 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
354
355 * valops.c (find_oload_champ): Improve debug output.
356
357 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358
359 * valops.c (find_oload_champ): Print part of debug messages
360 before the badness vector is std::move'd.
361
362 2019-11-28 Tom Tromey <tom@tromey.com>
363
364 * value.c (creal_internal_fn): Fix comment.
365
366 2019-11-28 Tom Tromey <tom@tromey.com>
367
368 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
369 flag_bound_evaluated>: Now unsigned.
370
371 2019-11-28 Tom Tromey <tom@tromey.com>
372
373 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
374 declare.
375
376 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
377
378 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
379 debug output.
380 * jit.c (jit_unregister_code): Add debug print to match
381 `jit_register_code`.
382
383 2019-11-27 Christian Biesinger <cbiesinger@google.com>
384
385 * NEWS: Mention the new multithreaded symbol loading.
386
387 2019-11-27 Christian Biesinger <cbiesinger@google.com>
388
389 * maint.c (n_worker_threads): Default to 0.
390 (worker_threads_disabled): New function.
391 * maint.h (worker_threads_disabled): New function.
392 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
393 here if worker_threads_disabled () is true.
394 (minimal_symbol_reader::install): Skip all threading if
395 worker_threads_disabled () is true.
396
397 2019-11-27 Christian Biesinger <cbiesinger@google.com>
398
399 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
400 hash code if possible.
401 (add_minsym_to_demangled_hash_table): Likewise.
402 (minimal_symbol_reader::install): Compute the hash codes for msymbol
403 on the background thread.
404 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
405 Add these fields.
406
407 2019-11-27 Christian Biesinger <cbiesinger@google.com>
408
409 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
410 of the mangled name on the background thread.
411 * symtab.c (symbol_set_names): Allow passing in the hash of the
412 linkage_name.
413 * symtab.h (symbol_set_names): Likewise.
414
415 2019-11-27 Kevin Buettner <kevinb@redhat.com>
416
417 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
418 physnames are computed for inherited DIEs.
419
420 2019-11-27 Tom Tromey <tromey@adacore.com>
421
422 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
423 backslashes.
424 * cp-support.c: Remove unnecessary backslashes.
425
426 2019-11-27 Christian Biesinger <cbiesinger@google.com>
427
428 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
429 with sym->set_linkage_name.
430 * coffread.c (coff_read_enum_type): Likewise.
431 * mdebugread.c (parse_symbol): Likewise.
432 * stabsread.c (patch_block_stabs): Likewise.
433 (define_symbol): Likewise.
434 (read_enum_type): Likewise.
435 (common_block_end): Likewise.
436 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
437 function.
438 (SYMBOL_SET_LINKAGE_NAME): Remove.
439 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
440 with sym->set_linkage_name.
441
442 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
445 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
446 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
447 * NEWS: Mention new MI command.
448
449 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
452 '-symbol-info-types', and '-symbol-info-variables'.
453 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
454 (mi_cmd_symbol_info_types): Declare.
455 (mi_cmd_symbol_info_variables): Declare.
456 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
457 (output_debug_symbol): New function.
458 (output_nondebug_symbol): New function.
459 (mi_symbol_info): New function.
460 (mi_info_functions_or_variables): New function.
461 (mi_cmd_symbol_info_functions): New function.
462 (mi_cmd_symbol_info_types): New function.
463 (mi_cmd_symbol_info_variables): New function.
464 * NEWS: Mention new commands.
465
466 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * symtab.c (symbol_to_info_string): New function, most content
469 moved from print_symbol_info, but updated to return a std::string.
470 (print_symbol_info): Update to use symbol_to_info_string and print
471 returned string.
472 * symtab.h (symbol_to_info_string): Declare new function.
473
474 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * python/python.c (gdbpy_rbreak): Convert to using
477 global_symbol_searcher.
478 * symtab.c (file_matches): Convert return type to bool, change
479 file list to std::vector, update header comment.
480 (search_symbols): Rename to...
481 (global_symbol_searcher::search): ...this and update now its
482 a member function of global_symbol_searcher. Take account of the
483 changes to file_matches.
484 (symtab_symbol_info): Convert to using global_symbol_searcher.
485 (rbreak_command): Likewise.
486 (search_module_symbols): Likewise.
487 * symtab.h (enum symbol_search): Update comment.
488 (search_symbols): Remove declaration.
489 (class global_symbol_searcher): New class.
490
491 2019-11-26 Tom Tromey <tromey@adacore.com>
492
493 * cp-support.c (_initialize_cp_support): Conditionally initialize
494 gdb_demangle_attempt_core_dump.
495
496 2019-11-26 Tom Tromey <tom@tromey.com>
497
498 * python/py-function.c (fnpy_init): Update.
499 * value.h (add_internal_function): Adjust declaration.
500 * value.c (function_destroyer): Remove.
501 (do_add_internal_function): Don't set destroyer or copy name.
502 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
503 Set name_allocated.
504 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
505 (cmdpy_init): Set name_allocated.
506 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
507 member.
508 (~cmd_list_element): Free "name" if needed.
509
510 2019-11-26 Tom Tromey <tom@tromey.com>
511
512 * value.h (add_internal_function): Add new overload. Move
513 documentation from value.h.
514 * value.c (do_add_internal_function): New function.
515 (add_internal_function): Use it. Add new overload.
516 (function_destroyer): Don't free doc.
517 * python/py-function.c (fnpy_init): Update.
518
519 2019-11-26 Tom Tromey <tom@tromey.com>
520
521 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
522 (cmdpy_init): Set "doc_allocated".
523
524 2019-11-26 Tom Tromey <tom@tromey.com>
525
526 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
527 name of worker thread.
528 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
529 pthread_setname_np.
530 * configure, config.in: Rebuild.
531
532 2019-11-26 Tom Tromey <tom@tromey.com>
533
534 * python/python.c (class gdbpy_gil): New.
535 (struct gdbpy_event): Add constructor, destructor, operator().
536 (gdbpy_post_event): Use run_on_main_thread.
537 (gdbpy_initialize_events): Remove.
538 (do_start_initialization): Update.
539
540 2019-11-26 Tom Tromey <tom@tromey.com>
541
542 * NEWS: Add entry.
543 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
544 commands. Call update_thread_pool_size.
545 (update_thread_pool_size, maintenance_set_worker_threads): New
546 functions.
547 (n_worker_threads): New global.
548
549 2019-11-26 Christian Biesinger <cbiesinger@google.com>
550 Tom Tromey <tom@tromey.com>
551
552 * minsyms.c (minimal_symbol_reader::install): Use
553 parallel_for_each.
554 * gdbsupport/parallel-for.h: New file.
555 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
556
557 2019-11-26 Christian Biesinger <cbiesinger@google.com>
558 Tom Tromey <tom@tromey.com>
559
560 * gdbsupport/thread-pool.h: New file.
561 * gdbsupport/thread-pool.c: New file.
562 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
563 (HFILES_NO_SRCDIR): Add thread-pool.h.
564
565 2019-11-26 Tom Tromey <tom@tromey.com>
566
567 * event-top.h (thread_local_segv_handler): Declare.
568 * event-top.c (thread_local_segv_handler): New global.
569 (install_handle_sigsegv, handle_sigsegv): New functions.
570 (async_init_signals): Install SIGSEGV handler.
571 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
572 thread-local.
573 (report_failed_demangle): New function.
574 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
575 handler-setting code, instead use segv_handler. Run warning code
576 on main thread.
577
578 2019-11-26 Tom Tromey <tom@tromey.com>
579
580 * run-on-main-thread.c: New file.
581 * run-on-main-thread.h: New file.
582 * unittests/main-thread-selftests.c: New file.
583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
584 main-thread-selftests.c.
585 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
586 (COMMON_SFILES): Add run-on-main-thread.c.
587
588 2019-11-26 Tom Tromey <tom@tromey.com>
589
590 * main.c (setup_alternate_signal_stack): Remove.
591 (captured_main_1): Use gdb::alternate_signal_stack.
592 * gdbsupport/alt-stack.h: New file.
593
594 2019-11-26 Tom Tromey <tom@tromey.com>
595
596 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
597 Remove comment.
598 (save_original_signals_state, restore_original_signals_state): Use
599 gdb_sigmask.
600 * linux-nat.c (block_child_signals, restore_child_signals_mask)
601 (_initialize_linux_nat): Use gdb_sigmask.
602 * guile/guile.c (_initialize_guile): Use block_signals.
603 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
604 * gdbsupport/gdb-sigmask.h: New file.
605 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
606 * cp-support.c (gdb_demangle): Use gdb_sigmask.
607 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
608 pthread_sigmask.
609 * configure, config.in: Rebuild.
610 * gdbsupport/block-signals.h: New file.
611
612 2019-11-26 Tom Tromey <tom@tromey.com>
613
614 * acinclude.m4: Include ax_pthread.m4.
615 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
616 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
617 (CLIBS): Use PTHREAD_LIBS.
618 (aclocal_m4_deps): Add ax_pthread.m4.
619 * config.in, configure: Rebuild.
620 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
621
622 2019-11-26 Tom Tromey <tom@tromey.com>
623
624 * symtab.h (struct minimal_symbol) <name_set>: New member.
625 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
626 Don't call symbol_set_names.
627 (minimal_symbol_reader::install): Call symbol_set_names.
628
629 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
630
631 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
632 restore_active_ext_lang, as GIL is needed for (indirectly)
633 called PyOS_InterruptOccurred.
634
635 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
636
637 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
638 definition.
639
640 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
641
642 * remote-sim.c (simulator_command): Make static, remove
643 declaration.
644
645 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
646
647 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
648 static.
649 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
650 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
651 (main): Likewise.
652 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
653 (main): Likewise.
654 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
655 (main): Likewise.
656 * unittests/basic_string_view/element_access/char/1.cc (test01):
657 Likewise.
658 (main): Likewise.
659 * unittests/basic_string_view/element_access/char/empty.cc (main):
660 Likewise.
661 * unittests/basic_string_view/element_access/char/front_back.cc
662 (test01): Likewise.
663 (main): Likewise.
664 * unittests/basic_string_view/inserters/char/2.cc (test05):
665 Likewise.
666 (main): Likewise.
667 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
668 (test01): Likewise.
669 (main): Likewise.
670 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
671 (test01): Likewise.
672 (main): Likewise.
673 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
674 Likewise.
675 * unittests/basic_string_view/operations/compare/char/1.cc
676 (test01): Likewise.
677 (main): Likewise.
678 * unittests/basic_string_view/operations/compare/char/13650.cc
679 (test01): Likewise.
680 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
681 Likewise.
682 (main): Likewise.
683 * unittests/basic_string_view/operations/data/char/1.cc (test01):
684 Likewise.
685 (main): Likewise.
686 * unittests/basic_string_view/operations/find/char/1.cc (test01):
687 Likewise.
688 (main): Likewise.
689 * unittests/basic_string_view/operations/find/char/2.cc (test02):
690 Likewise.
691 (main): Likewise.
692 * unittests/basic_string_view/operations/find/char/3.cc (test03):
693 Likewise.
694 (main): Likewise.
695 * unittests/basic_string_view/operations/find/char/4.cc (main):
696 Likewise.
697 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
698 Likewise.
699 (main): Likewise.
700 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
701 Likewise.
702 (main): Likewise.
703 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
704 Likewise.
705 (main): Likewise.
706 * unittests/basic_string_view/operations/substr/char/1.cc
707 (test01): Likewise.
708 (main): Likewise.
709 * unittests/basic_string_view/operators/char/2.cc (main):
710 Likewise.
711 * unittests/optional/assignment/1.cc (test): Likewise.
712 * unittests/optional/assignment/2.cc (test): Likewise.
713 * unittests/optional/assignment/3.cc (test): Likewise.
714 * unittests/optional/assignment/4.cc (test): Likewise.
715 * unittests/optional/assignment/5.cc (test): Likewise.
716 * unittests/optional/assignment/6.cc (test): Likewise.
717 * unittests/optional/assignment/7.cc (test): Likewise.
718 * unittests/optional/cons/copy.cc (test): Likewise.
719 * unittests/optional/cons/default.cc (test): Likewise.
720 * unittests/optional/cons/move.cc (test): Likewise.
721 * unittests/optional/cons/value.cc (test): Likewise.
722 * unittests/optional/in_place.cc (test): Likewise.
723 * unittests/optional/observers/1.cc (test): Likewise.
724 * unittests/optional/observers/2.cc (test): Likewise.
725
726 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
727
728 * tui-win.h (tui_set_var_cmd): Remove.
729 * tui-win.c (tui_set_var_cmd): Make static.
730
731 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
732
733 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
734 rbreak_command_wrapper): Remove.
735 * symtab.c (rbreak_command_wrapper): Remove.
736
737 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
738
739 * inferior.h (info_terminal_command): Remove declaration.
740 * inflow.c (info_terminal_command): Make static.
741
742 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
743
744 * inferior.c (exit_inferior_silent): Remove.
745
746 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
747
748 * dictionary.c (dict_empty, mdict_empty): Remove.
749 * dictionary.c (mdict_empty): Remove.
750
751 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
752
753 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
754 (arc_insn_get_memory_offset): Likewise.
755 (arc_insn_dump): Likewise.
756 * cp-support.c (test_cp_symbol_name_matches): Likewise.
757 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
758 * dictionary.c (dict_iterator_next): Likewise.
759 (dict_iter_match_first): Likewise.
760 (dict_iter_match_next): Likewise.
761 * f-lang.c (evaluate_subexp_f): Likewise.
762 * hppa-tdep.c (hppa_read_pc): Likewise.
763 * i386-tdep.c (i386_floatformat_for_type): Likewise.
764 * parse.c (write_exp_elt_msym): Likewise.
765 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
766 * remote.c (remote_packet_size): Likewise.
767 (remote_notif_stop_parse): Likewise.
768 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
769 * s12z-tdep.c (s12z_disassemble_info): Likewise.
770 * source.c (prepare_path_for_appending): Likewise.
771 * sparc64-linux-tdep.c
772 (sparc64_linux_handle_segmentation_fault); Likewise.
773 * stack.c (frame_selection_by_function_completer): Likewise.
774
775 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
776
777 * completer.c (set_gdb_completion_word_break_characters):
778 Remove.
779
780 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
781
782 * dwarf-index-write.c: Include dwarf-index-write.h.
783 * mi/mi-interp.c: Include mi/mi-interp.h.
784
785 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
786
787 * aarch32-tdep.c: Include aarch32-tdep.h.
788 * aarch32-tdep.h: Forward-declare struct target_desc.
789
790 2019-11-26 Christian Biesinger <cbiesinger@google.com>
791
792 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
793 strerror.
794 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
795 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
796
797 2019-11-25 Tom de Vries <tdevries@suse.de>
798
799 * contrib/words.sh: Add -c option.
800
801 2019-11-25 Christian Biesinger <cbiesinger@google.com>
802
803 * solib.c (solib_find_1): Change int to bool.
804 (exec_file_find): Change int to bool.
805 (solib_find): Change int to bool.
806 (solib_read_symbols): Change int to bool.
807 (solib_used): Change int to bool.
808 (solib_add): Change int to bool.
809 (info_sharedlibrary_command): Change int to bool.
810 (solib_contains_address_p): Change int to bool.
811 (solib_keep_data_in_core): Change int to bool.
812 (in_solib_dynsym_resolve_code): Change int to bool.
813 (reload_shared_libraries_1): Change int to bool.
814 (gdb_sysroot_changed): Change int to bool.
815 * solib.h (solib_read_symbols): Change int to bool.
816 (solib_contains_address_p): Change int to bool.
817 (solib_keep_data_in_core): Change int to bool.
818 (in_solib_dynsym_resolve_code): Change int to bool.
819 (libpthread_name_p): Change int to bool.
820
821 2019-11-25 Luis Machado <luis.machado@linaro.org>
822
823 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
824 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
825 (remote_packet_max_chars): New static global.
826 (show_remote_packet_max_chars): New function.
827 (remote_target::putpkt_binary): Adjust to use new
828 remote_packet_max_chars option.
829 (remote_target::getpkt_or_notif_sane_1): Likewise.
830 (_initialize_remote): Register new remote-packet-max-chars option.
831
832 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
833
834 * m68k-linux-nat.c: Include gdbarch.h.
835
836 2019-11-24 Tom Tromey <tom@tromey.com>
837
838 * symfile.c (read_symbols): Update.
839 * psymtab.c (require_partial_symbols): Change type of "verbose" to
840 bool.
841 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
842 (psym_lookup_symbol, psym_find_last_source_symtab)
843 (psym_forget_cached_source_info, psym_print_stats)
844 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
845 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
846 (psym_map_matching_symbols, psym_expand_symtabs_matching)
847 (psym_find_compunit_symtab_by_address)
848 (maintenance_print_psymbols, maintenance_info_psymtabs)
849 (maintenance_check_psymtabs): Update.
850 * psymtab.h (require_partial_symbols): Change type of "verbose" to
851 bool.
852
853 2019-11-22 Tom Tromey <tom@tromey.com>
854
855 * observable.h: Update comments.
856
857 2019-11-22 Tom Tromey <tromey@adacore.com>
858
859 * ada-tasks.c (ada_task_is_alive): Make parameter const.
860 (print_ada_task_info): Don't try to fetch thread id if task is not
861 alive.
862
863 2019-11-22 Christian Biesinger <cbiesinger@google.com>
864
865 * ada-exp.y: Update.
866 * ada-lang.c (sort_choices): Update.
867 (ada_print_symbol_signature): Update.
868 (resolve_subexp): Update.
869 (ada_parse_renaming): Update.
870 (ada_read_renaming_var_value): Update.
871 (lesseq_defined_than): Update.
872 (remove_extra_symbols): Update.
873 (remove_irrelevant_renamings): Update.
874 (ada_add_block_symbols): Update.
875 (ada_collect_symbol_completion_matches): Update.
876 (ada_is_renaming_symbol): Update.
877 (aggregate_assign_from_choices): Update.
878 (ada_evaluate_subexp): Update.
879 (ada_has_this_exception_support): Update.
880 (ada_is_non_standard_exception_sym): Update.
881 (ada_add_exceptions_from_frame): Update.
882 (ada_add_global_exceptions): Update.
883 (ada_print_subexp): Update.
884 * ax-gdb.c (gen_var_ref): Update.
885 (gen_maybe_namespace_elt): Update.
886 (gen_expr_for_cast): Update.
887 (gen_expr): Update.
888 * block.h: Update.
889 * blockframe.c (find_pc_partial_function): Update.
890 * breakpoint.c (print_breakpoint_location): Update.
891 (update_static_tracepoint): Update.
892 * btrace.c (ftrace_print_function_name): Update.
893 (ftrace_function_switched): Update.
894 * buildsym.c (find_symbol_in_list): Update.
895 * c-exp.y: Update.
896 * c-typeprint.c (c_print_typedef): Update.
897 (c_type_print_template_args): Update.
898 * cli/cli-cmds.c (edit_command): Update.
899 (list_command): Update.
900 (print_sal_location): Update.
901 * coffread.c (patch_opaque_types): Update.
902 (process_coff_symbol): Update.
903 (coff_read_enum_type): Update.
904 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
905 (convert_one_symbol): Update.
906 (hash_symname): Update.
907 (eq_symname): Update.
908 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
909 * compile/compile-cplus-types.c (debug_print_scope): Update.
910 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
911 * compile/compile-object-load.c (get_out_value_type): Update.
912 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
913 (search_symbol_list): Update.
914 (cp_lookup_symbol_imports_or_template): Update.
915 * cp-support.c (overload_list_add_symbol): Update.
916 * ctfread.c (psymtab_to_symtab): Update.
917 * dbxread.c (cp_set_block_scope): Update.
918 * dictionary.c (iter_match_first_hashed): Update.
919 (iter_match_next_hashed): Update.
920 (insert_symbol_hashed): Update.
921 (iter_match_next_linear): Update.
922 * dictionary.h: Update.
923 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
924 (locexpr_describe_location_piece): Update.
925 (locexpr_describe_location_1): Update.
926 (locexpr_generate_c_location): Update.
927 (loclist_describe_location): Update.
928 (loclist_generate_c_location): Update.
929 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
930 (read_func_scope): Update.
931 (process_enumeration_scope): Update.
932 (new_symbol): Update.
933 (dwarf2_const_value): Update.
934 (dwarf2_symbol_mark_computed): Update.
935 * eval.c (evaluate_funcall): Update.
936 (evaluate_subexp_standard): Update.
937 * expprint.c (print_subexp_standard): Update.
938 (dump_subexp_body_standard): Update.
939 * f-valprint.c (info_common_command_for_block): Update.
940 * findvar.c (get_hosting_frame): Update.
941 (default_read_var_value): Update.
942 * go-lang.c (go_symbol_package_name): Update.
943 * guile/scm-block.c (bkscm_print_block_smob): Update.
944 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
945 (gdbscm_symbol_name): Update.
946 (gdbscm_symbol_linkage_name): Update.
947 (gdbscm_symbol_print_name): Update.
948 * infcall.c (get_function_name): Update.
949 * infcmd.c (jump_command): Update.
950 (finish_command): Update.
951 * infrun.c (insert_exception_resume_breakpoint): Update.
952 * linespec.c (canonicalize_linespec): Update.
953 (create_sals_line_offset): Update.
954 (convert_linespec_to_sals): Update.
955 (complete_label): Update.
956 (find_label_symbols_in_block): Update.
957 * m2-typeprint.c (m2_print_typedef): Update.
958 * mdebugread.c (mdebug_reg_to_regnum): Update.
959 (parse_symbol): Update.
960 (mylookup_symbol): Update.
961 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
962 (list_args_or_locals): Update.
963 * objc-lang.c (compare_selectors): Update.
964 (info_selectors_command): Update.
965 (compare_classes): Update.
966 (info_classes_command): Update.
967 (find_imps): Update.
968 * p-typeprint.c (pascal_print_typedef): Update.
969 * printcmd.c (build_address_symbolic): Update.
970 (info_address_command): Update.
971 (print_variable_and_value): Update.
972 * python/py-framefilter.c (extract_sym): Update.
973 (py_print_single_arg): Update.
974 * python/py-symbol.c (sympy_str): Update.
975 (sympy_get_name): Update.
976 (sympy_get_linkage_name): Update.
977 * python/python.c (gdbpy_rbreak): Update.
978 * record-btrace.c (btrace_get_bfun_name): Update.
979 (btrace_call_history): Update.
980 * rust-lang.c (rust_print_typedef): Update.
981 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
982 * stabsread.c (stab_reg_to_regnum): Update.
983 (define_symbol): Update.
984 (read_enum_type): Update.
985 (common_block_end): Update.
986 (cleanup_undefined_types_1): Update.
987 (scan_file_globals): Update.
988 * stack.c (print_frame_arg): Update.
989 (print_frame_args): Update.
990 (find_frame_funname): Update.
991 (info_frame_command_core): Update.
992 (iterate_over_block_locals): Update.
993 (print_block_frame_labels): Update.
994 (do_print_variable_and_value): Update.
995 (iterate_over_block_arg_vars): Update.
996 (return_command): Update.
997 * symmisc.c (dump_symtab_1): Update.
998 (print_symbol): Update.
999 * symtab.c (eq_symbol_entry): Update.
1000 (symbol_cache_dump): Update.
1001 (lookup_language_this): Update.
1002 (find_pc_sect_line): Update.
1003 (skip_prologue_sal): Update.
1004 (symbol_search::compare_search_syms): Update.
1005 (treg_matches_sym_type_name): Update.
1006 (search_symbols): Update.
1007 (print_symbol_info): Update.
1008 (rbreak_command): Update.
1009 (completion_list_add_symbol): Update.
1010 (find_gnu_ifunc): Update.
1011 (get_symbol_address): Update.
1012 (search_module_symbols): Update.
1013 (info_module_subcommand): Update.
1014 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1015 (SYMBOL_LINKAGE_NAME): Remove.
1016 (SYMBOL_DEMANGLED_NAME): Remove.
1017 (SYMBOL_PRINT_NAME): Remove.
1018 (SYMBOL_SEARCH_NAME): Remove.
1019 * tracepoint.c (set_traceframe_context): Update.
1020 (validate_actionline): Update.
1021 (collection_list::collect_symbol): Update.
1022 (encode_actions_1): Update.
1023 (info_scope_command): Update.
1024 (print_one_static_tracepoint_marker): Update.
1025 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1026 * valops.c (address_of_variable): Update.
1027 (find_overload_match): Update.
1028 (find_oload_champ): Update.
1029
1030 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1031
1032 * ada-lang.c (ada_lookup_simple_minsym): Update.
1033 (ada_collect_symbol_completion_matches): Update.
1034 * ada-tasks.c (read_atcb): Update.
1035 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1036 (amd64_windows_skip_trampoline_code): Update.
1037 * arm-tdep.c (skip_prologue_function): Update.
1038 (arm_skip_stack_protector): Update.
1039 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1040 (arm_wince_skip_main_prologue): Update.
1041 * ax-gdb.c (gen_expr): Update.
1042 * block.c (call_site_for_pc): Update.
1043 * blockframe.c (find_pc_partial_function): Update.
1044 * breakpoint.c (set_breakpoint_location_function): Update.
1045 * btrace.c (ftrace_print_function_name): Update.
1046 (ftrace_function_switched): Update.
1047 * c-valprint.c (print_unpacked_pointer): Update.
1048 * coffread.c (coff_symfile_read): Update.
1049 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1050 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1051 * dwarf-index-write.c (write_psymbols): Update.
1052 * dwarf2loc.c (call_site_to_target_addr): Update.
1053 (func_verify_no_selftailcall): Update.
1054 (tailcall_dump): Update.
1055 (call_site_find_chain_1): Update.
1056 (dwarf_expr_reg_to_entry_parameter): Update.
1057 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1058 * eval.c (evaluate_funcall): Update.
1059 (evaluate_subexp_standard): Update.
1060 (evaluate_subexp_for_sizeof): Update.
1061 * expprint.c (print_subexp_standard): Update.
1062 (dump_subexp_body_standard): Update.
1063 * frame.c (get_prev_frame_always_1): Update.
1064 * frv-tdep.c (frv_skip_main_prologue): Update.
1065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1066 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1067 (gnuv3_get_typename_from_type_info): Update.
1068 (gnuv3_skip_trampoline): Update.
1069 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1070 * i386-tdep.c (i386_skip_main_prologue): Update.
1071 (i386_pe_skip_trampoline_code): Update.
1072 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1073 * infcall.c (get_function_name): Update.
1074 * linespec.c (minsym_found): Update.
1075 * linux-fork.c (info_checkpoints_command): Update.
1076 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1077 (m32c_m16c_pointer_to_address): Update.
1078 * maint.c (maintenance_translate_address): Update.
1079 * minsyms.c (add_minsym_to_hash_table): Update.
1080 (add_minsym_to_demangled_hash_table): Update.
1081 (lookup_minimal_symbol_mangled): Update.
1082 (lookup_minimal_symbol_demangled): Update.
1083 (lookup_minimal_symbol_linkage): Update.
1084 (lookup_minimal_symbol_text): Update.
1085 (lookup_minimal_symbol_by_pc_name): Update.
1086 (minimal_symbol_is_less_than): Update.
1087 (compact_minimal_symbols): Update.
1088 (build_minimal_symbol_hash_tables): Update.
1089 (find_solib_trampoline_target): Update.
1090 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1091 (mips_skip_pic_trampoline_code): Update.
1092 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1093 * objc-lang.c (info_selectors_command): Update.
1094 (info_classes_command): Update.
1095 (find_methods): Update.
1096 (find_imps): Update.
1097 * p-valprint.c (pascal_val_print): Update.
1098 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1099 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1100 * printcmd.c (build_address_symbolic): Update.
1101 (info_symbol_command): Update.
1102 * psymtab.c (psymbol_name_matches): Update.
1103 (match_partial_symbol): Update.
1104 (lookup_partial_symbol): Update.
1105 (print_partial_symbols): Update.
1106 (sort_pst_symbols): Update.
1107 (maintenance_check_psymtabs): Update.
1108 * python/py-framefilter.c (py_print_frame): Update.
1109 * python/python.c (gdbpy_rbreak): Update.
1110 * record-btrace.c (btrace_get_bfun_name): Update.
1111 (btrace_call_history): Update.
1112 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1113 (rs6000_skip_trampoline_code): Update.
1114 * sol-thread.c (info_cb): Update.
1115 * stabsread.c (scan_file_globals): Update.
1116 * stack.c (find_frame_funname): Update.
1117 (info_frame_command_core): Update.
1118 * symmisc.c (dump_msymbols): Update.
1119 * symtab.c (symbol_natural_name): Rename to..,
1120 (general_symbol_info::natural_name): ...this.
1121 (symbol_demangled_name): Rename to...
1122 (general_symbol_info::demangled_name): ...this.
1123 (symbol_search_name): Rename to...
1124 (general_symbol_info::search_name): ...this.
1125 (symbol_matches_search_name): Update.
1126 (find_pc_sect_line): Update.
1127 (skip_prologue_sal): Update.
1128 (search_symbols): Update.
1129 (print_msymbol_info): Update.
1130 (rbreak_command): Update.
1131 (completion_list_add_msymbol): Update.
1132 (completion_list_objc_symbol): Update.
1133 (get_msymbol_address): Update.
1134 * symtab.h (struct general_symbol_info): Add member functions
1135 natural_name (), linkage_name (), print_name (), demangled_name (),
1136 and search_name ().
1137 (SYMBOL_NATURAL_NAME): Update.
1138 (symbol_natural_name): Move to a member function on general_symbol_info.
1139 (SYMBOL_DEMANGLED_NAME): Update.
1140 (symbol_demangled_name): Move to a member function on
1141 general_symbol_info.
1142 (SYMBOL_SEARCH_NAME): Update.
1143 (symbol_search_name): Move to a member function on general_symbol_info.
1144 (MSYMBOL_NATURAL_NAME): Remove.
1145 (MSYMBOL_LINKAGE_NAME): Remove.
1146 (MSYMBOL_PRINT_NAME): Remove.
1147 (MSYMBOL_DEMANGLED_NAME): Remove.
1148 (MSYMBOL_SEARCH_NAME): Remove.
1149 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1150
1151 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1152
1153 * symtab.c (create_demangled_names_hash): Use per_bfd->
1154 minimal_symbol_count for computing the initial size, if greater
1155 than our default size.
1156
1157 2019-11-22 Tom de Vries <tdevries@suse.de>
1158
1159 * contrib/words.sh: Improve words extraction.
1160
1161 2019-11-22 Tom de Vries <tdevries@suse.de>
1162
1163 * contrib/words.sh: Combine sed invocations.
1164
1165 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1166
1167 * Makefile.in: Update.
1168 * demangle.c: Rename to...
1169 * gdb-demangle.c: ..this.
1170 (is_cplus_marker): Change return type to bool.
1171 (_initialize_demangler): Rename to...
1172 (_initialize_gdb_demangle): ...this.
1173 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1174 * symtab.h (demangle): Remove declaration; instead include
1175 gdb-demangle.h.
1176
1177 2019-11-21 Tom Tromey <tromey@adacore.com>
1178
1179 * gdbsupport/format.c (format_pieces): Parse %I64d.
1180 * unittests/format_pieces-selftests.c (test_windows_formats): New
1181 function.
1182 (run_tests): Call it.
1183
1184 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1185
1186 Byte reverse display of variables with DW_END_big, DW_END_little
1187 (DW_AT_endianity) dwarf attributes if different than the native
1188 byte order.
1189 * ada-lang.c (ada_value_binop):
1190 Use type_byte_order instead of gdbarch_byte_order.
1191 * ada-valprint.c (printstr):
1192 (ada_val_print_string):
1193 * ada-lang.c (value_pointer):
1194 (ada_value_binop):
1195 Use type_byte_order instead of gdbarch_byte_order.
1196 * c-lang.c (c_get_string):
1197 Use type_byte_order instead of gdbarch_byte_order.
1198 * c-valprint.c (c_val_print_array):
1199 Use type_byte_order instead of gdbarch_byte_order.
1200 * cp-valprint.c (cp_print_class_member):
1201 Use type_byte_order instead of gdbarch_byte_order.
1202 * dwarf2loc.c (rw_pieced_value):
1203 Use type_byte_order instead of gdbarch_byte_order.
1204 * dwarf2read.c (read_base_type): Handle DW_END_big,
1205 DW_END_little
1206 * f-lang.c (f_get_encoding):
1207 Use type_byte_order instead of gdbarch_byte_order.
1208 * findvar.c (default_read_var_value):
1209 Use type_byte_order instead of gdbarch_byte_order.
1210 * gdbtypes.c (check_types_equal):
1211 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1212 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1213 and TYPE_ENDIANITY_LITTLE if set.
1214 (type_byte_order): new function.
1215 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1216 (struct main_type) <flag_endianity_not_default>:
1217 New field.
1218 (type_byte_order): New function.
1219 * infcmd.c (default_print_one_register_info):
1220 Use type_byte_order instead of gdbarch_byte_order.
1221 * p-lang.c (pascal_printstr):
1222 Use type_byte_order instead of gdbarch_byte_order.
1223 * p-valprint.c (pascal_val_print):
1224 Use type_byte_order instead of gdbarch_byte_order.
1225 * printcmd.c (print_scalar_formatted):
1226 Use type_byte_order instead of gdbarch_byte_order.
1227 * solib-darwin.c (darwin_current_sos):
1228 Use type_byte_order instead of gdbarch_byte_order.
1229 * solib-svr4.c (solib_svr4_r_ldsomap):
1230 Use type_byte_order instead of gdbarch_byte_order.
1231 * stap-probe.c (stap_modify_semaphore):
1232 Use type_byte_order instead of gdbarch_byte_order.
1233 * target-float.c (target_float_same_format_p):
1234 Use type_byte_order instead of gdbarch_byte_order.
1235 * valarith.c (scalar_binop):
1236 (value_bit_index):
1237 Use type_byte_order instead of gdbarch_byte_order.
1238 * valops.c (value_cast):
1239 Use type_byte_order instead of gdbarch_byte_order.
1240 * valprint.c (generic_emit_char):
1241 (generic_printstr):
1242 (val_print_string):
1243 Use type_byte_order instead of gdbarch_byte_order.
1244 * value.c (unpack_long):
1245 (unpack_bits_as_long):
1246 (unpack_value_bitfield):
1247 (modify_field):
1248 (pack_long):
1249 (pack_unsigned_long):
1250 Use type_byte_order instead of gdbarch_byte_order.
1251 * findvar.c (unsigned_pointer_to_address):
1252 (signed_pointer_to_address):
1253 (unsigned_address_to_pointer):
1254 (address_to_signed_pointer):
1255 (default_read_var_value):
1256 (default_value_from_register):
1257 Use type_byte_order instead of gdbarch_byte_order.
1258 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1259 Use type_byte_order instead of gdbarch_byte_order.
1260 * riscv-tdep.c (riscv_print_one_register_info):
1261 Use type_byte_order instead of gdbarch_byte_order.
1262
1263 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1266 (current_ui_gdb_stdin_ptr): Likewise.
1267 (current_ui_gdb_stderr_ptr): Likewise.
1268 (current_ui_gdb_stdlog_ptr): Likewise.
1269 (current_ui_current_uiout_ptr): Likewise.
1270 (gen_ret_current_ui_field_ptr): Remove.
1271
1272 2019-11-21 Tom de Vries <tdevries@suse.de>
1273
1274 PR gdb/24956
1275 * cli/cli-script.c (execute_control_command): Only switch to
1276 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1277
1278 2019-11-19 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1281 Now static. Change type of "name".
1282 (tui_set_win_height_command): Don't copy "arg".
1283 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1284 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1285
1286 2019-11-19 Ali Tamur <tamur@google.com>
1287
1288 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1289 "if (attr != nullptr)".
1290 (dwarf2_find_base_address): Likewise.
1291 (dwarf2_build_include_psymtabs): Likewise.
1292 (read_cutu_die_from_dwo): Likewise.
1293 (read_func_scope): Likewise.
1294 (read_call_site_scope): Likewise.
1295 (dwarf2_get_pc_bounds): Likewise.
1296 (dwarf2_record_block_ranges): Likewise.
1297 (dwarf2_add_field): Likewise.
1298 (dwarf2_add_member_fn): Likewise.
1299 (read_structure_type): Likewise.
1300 (read_enumeration_type): Likewise.
1301 (read_array_type): Likewise.
1302 (read_array_order): Likewise.
1303 (read_set_type): Likewise.
1304 (read_common_block): Likewise.
1305 (read_tag_reference_type): Likewise.
1306 (read_tag_string_type): Likewise.
1307 (read_subroutine_type): Likewise.
1308 (read_base_type): Likewise.
1309 (read_subrange_type): Likewise.
1310 (new_symbol): Likewise.
1311 (prepare_one_comp_unit): Likewise.
1312
1313 2019-11-19 Tom Tromey <tromey@adacore.com>
1314
1315 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1316 result in error when DebugActiveProcess fails.
1317
1318 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1319 Pedro Alves <palves@redhat.com>
1320
1321 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1322 * target.c (target_stack::push): Call 'unpush' if there's a
1323 target on top of the stack.
1324
1325 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1326
1327 * python/py-block.c (blpy_dealloc): Call tp_free.
1328 (blpy_block_syms_dealloc): Likewise.
1329 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1330 * python/py-inferior.c (infpy_dealloc): Likewise.
1331 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1332 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1333 * python/py-symbol.c (sympy_dealloc): Likewise.
1334 * python/py-symtab.c (stpy_dealloc): Likewise.
1335 * python/py-type.c (typy_iterator_dealloc): Likewise.
1336
1337 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1338
1339 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1340 constructor instead of using a class initializer.
1341
1342 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1343
1344 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1345 * configure: Regenerate.
1346 * configure.ac: Don't source common.host.
1347 * gdbsupport/common.host: Remove.
1348 * gdbsupport/mingw-strerror.c: Remove.
1349 * gdbsupport/posix-strerror.c: Rename to...
1350 * gdbsupport/safe-strerror.c: ...this.
1351
1352 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1353
1354 * maint.c (scoped_command_stats::print_time): Use localtime_r
1355 instead of localtime (provided through gnulib if necessary).
1356 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1357 of ctime.
1358
1359 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1360
1361 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1362 avoid compile errors.
1363
1364 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1365
1366 * config.in: Regenerate.
1367 * configure: Regenerate.
1368 * gdbsupport/common.m4: No longer check for strerror_r.
1369 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1370 POSIX version of strerror_r, now that gnulib provides it if
1371 necessary.
1372
1373 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1374
1375 * README (`configure' options): Update.
1376
1377 2019-11-14 Tom Tromey <tromey@adacore.com>
1378
1379 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1380 expected type for the RHS if the LHS is a convenience variable.
1381
1382 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1385 Provide explicit default and copy constructor.
1386
1387 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1388
1389 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1390 only call Py_INCREF (newbp) in the bppy_pending_object case.
1391
1392 2019-11-13 Tom Tromey <tromey@adacore.com>
1393
1394 PR build/25182:
1395 * psympriv.h (partial_symbol): Remove static assert.
1396 * symtab.h (general_symbol_info, symbol): Remove static assert.
1397
1398 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * gdbsupport/format.c (format_pieces::format_pieces): Support
1401 printf 'z' size modifier.
1402 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1403 * printcmd.c (ui_printf): Handle size_t_arg.
1404 * ui-out.c (ui_out::vmessage): Likewise.
1405 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1406 function.
1407 (run_tests): Call test_format_int_sizes.
1408
1409 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1410
1411 * ada-exp.y (write_ambiguous_var): Update.
1412 * buildsym.c (add_symbol_to_list): Update.
1413 * dwarf2read.c (read_variable): Update.
1414 (new_symbol): Update.
1415 * jit.c (finalize_symtab): Update.
1416 * language.c (language_alloc_type_symbol): Update.
1417 * symtab.c (fixup_symbol_section): Update.
1418 (initialize_objfile_symbol_1): Move code to...
1419 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1420 (allocate_symbol): Update.
1421 (allocate_template_symbol): Update.
1422 (get_symbol_address): Update.
1423 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1424 of having as a field, and add a constructor.
1425 (SYMBOL_VALUE): Update.
1426 (SYMBOL_VALUE_ADDRESS): Update.
1427 (SET_SYMBOL_VALUE_ADDRESS): Update.
1428 (SYMBOL_VALUE_BYTES): Update.
1429 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1430 (SYMBOL_BLOCK_VALUE): Update.
1431 (SYMBOL_VALUE_CHAIN): Update.
1432 (SYMBOL_LANGUAGE): Update.
1433 (SYMBOL_SECTION): Update.
1434 (SYMBOL_OBJ_SECTION): Update.
1435 (SYMBOL_SET_LANGUAGE): Update.
1436 (SYMBOL_SET_LINKAGE_NAME): Update.
1437 (SYMBOL_SET_NAMES): Update.
1438 (SYMBOL_NATURAL_NAME): Update.
1439 (SYMBOL_LINKAGE_NAME): Update.
1440 (SYMBOL_DEMANGLED_NAME): Update.
1441 (SYMBOL_SEARCH_NAME): Update.
1442 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1443 (struct symbol): Update.
1444 (struct template_symbol): Update.
1445 (struct rust_vtable_symbol): Update.
1446 * xcoffread.c (SYMBOL_DUP): Update.
1447
1448 2019-11-12 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-layout.c (show_layout): Set current_layout.
1451 (show_source_disasm_command, show_data)
1452 (show_source_or_disasm_and_command): Don't set current_layout.
1453
1454 2019-11-12 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1457
1458 2019-11-12 Tom Tromey <tom@tromey.com>
1459
1460 * tui/tui-win.c (resize_message): New global.
1461 (show_tui_resize_message): New function.
1462 (tui_async_resize_screen): Print message if requested.
1463 (_initialize_tui_win): Add tui-resize-message setting.
1464 * NEWS: Add entry for new commands.
1465
1466 2019-11-11 Tom Tromey <tom@tromey.com>
1467
1468 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1469 functions.
1470
1471 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1472
1473 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1474
1475 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1478 function.
1479 * python/python-internal.h (gdbpy_lookup_static_symbols):
1480 Declare new function.
1481 * python/python.c (python_GdbMethods): Add
1482 gdb.lookup_static_symbols method.
1483 * NEWS: Mention gdb.lookup_static_symbols.
1484
1485 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1488 static block of current object file first. Also fix typo in
1489 header comment.
1490
1491 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * stack.c (set_last_displayed_sal): Delete.
1494 (last_displayed_sal_valid): Delete.
1495 (last_displayed_pspace): Delete.
1496 (last_displayed_addr): Delete.
1497 (last_displayed_symtab): Delete.
1498 (last_displayed_line): Delete.
1499 (class last_displayed_symtab_info_type): New.
1500 (last_displayed_symtab_info): New static global variable.
1501 (print_frame_info): Call methods on last_displayed_symtab_info.
1502 (clear_last_displayed_sal): Update header comment, and make use of
1503 last_displayed_symtab_info.
1504 (last_displayed_sal_is_valid): Likewise.
1505 (get_last_displayed_pspace): Likewise.
1506 (get_last_displayed_addr): Likewise.
1507 (get_last_displayed_symtab): Likewise.
1508 (get_last_displayed_line): Likewise.
1509 (get_last_displayed_sal): Likewise.
1510 * stack.h (clear_last_displayed_sal): Update header comment.
1511 (last_displayed_sal_is_valid): Likewise.
1512 (get_last_displayed_pspace): Likewise.
1513 (get_last_displayed_addr): Likewise.
1514 (get_last_displayed_symtab): Likewise.
1515 (get_last_displayed_line): Likewise.
1516 (get_last_displayed_sal): Likewise.
1517
1518 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * stack.c (frame_show_address): Convert return type to bool.
1521 * stack.h (frame_show_address): Likewise, and update header
1522 comment.
1523
1524 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1527 * unittests/vec-utils-selftests.c: New file.
1528 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1529
1530 2019-11-10 Tom Tromey <tom@tromey.com>
1531
1532 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1533 (tui_highlight_win): Likewise.
1534 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1535 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1536 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1537 Don't set can_highlight.
1538
1539 2019-11-10 Tom Tromey <tom@tromey.com>
1540
1541 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1542 Remove unused declaration.
1543
1544 2019-11-08 Tom Tromey <tromey@adacore.com>
1545
1546 * top.c (read_command_file): Update.
1547 (command_line_input): Make return type const.
1548 * python/py-gdb-readline.c: Update.
1549 * linespec.c (decode_line_2): Update.
1550 * defs.h (command_line_input): Make return type const.
1551 * cli/cli-script.c (read_next_line): Make return type const.
1552 * ada-lang.c (get_selections): Update.
1553
1554 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1555
1556 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1557 * mi/mi-main.c (output_cores): Likewise.
1558 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1559 (linux_xfer_osdata_modules): Likewise.
1560 * remote.c (register_remote_support_xml): Likewise.
1561 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1562 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1563
1564 2019-11-06 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-interp.c: Don't include readline.h.
1567 * tui/tui-hooks.c: Don't include readline.h.
1568 * symmisc.c: Include tilde.h, not readline.h.
1569 * symfile.c: Include tilde.h, not readline.h.
1570 * source.c: Include tilde.h, not readline.h.
1571 * solib.c: Include tilde.h, not readline.h.
1572 * psymtab.c: Include tilde.h, not readline.h.
1573 * exec.c: Include tilde.h, not readline.h.
1574 * corelow.c: Include tilde.h, not readline.h.
1575 * cli/cli-dump.c: Include tilde.h, not readline.h.
1576 * cli/cli-cmds.c: Don't include readline.h.
1577
1578 2019-11-05 Tom Tromey <tom@tromey.com>
1579
1580 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1581 (tui_disassemble): Set addr_size.
1582 (tui_disasm_window::set_contents): Use addr_size.
1583
1584 2019-11-05 Tom Tromey <tom@tromey.com>
1585
1586 * rust-lang.c (rust_language_defn): Update.
1587 * python/py-value.c (valpy_string): Call c_get_string.
1588 * p-lang.c (pascal_language_defn): Update.
1589 * opencl-lang.c (opencl_language_defn): Update.
1590 * objc-lang.c (objc_language_defn): Update.
1591 * m2-lang.c (m2_language_defn): Update.
1592 * language.c (unknown_language_defn, auto_language_defn): Update.
1593 (default_get_string): Remove.
1594 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1595 * go-lang.c (go_language_defn): Update.
1596 * f-lang.c (f_language_defn): Update.
1597 * d-lang.c (d_language_defn): Update.
1598 * c-lang.c (c_language_defn, cplus_language_defn)
1599 (asm_language_defn, minimal_language_defn): Update.
1600 * ada-lang.c (ada_language_defn): Update.
1601 * language.h (struct language_defn) <la_get_string>: Remove.
1602 (LA_GET_STRING): Remove.
1603 (default_get_string): Don't declare.
1604
1605 2019-11-05 Tom Tromey <tom@tromey.com>
1606
1607 * tui/tui-source.h (struct tui_source_window): Inline
1608 constructor. Remove destructor.
1609 <style_changed, m_observable>: Move to superclass.
1610 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1611 (struct tui_source_window_base): Move private members to end.
1612 <style_changed, m_observable>: Move from tui_source_window.
1613 * tui/tui-winsource.c (tui_copy_source_line): Move from
1614 tui-source.c. Rename from copy_source_line. Add special handling
1615 for negative line number.
1616 (tui_source_window_base::style_changed): Move from
1617 tui_source_window.
1618 (tui_source_window_base): Register observer.
1619 (~tui_source_window_base): New.
1620 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1621 rename.
1622 (tui_source_window::set_contents): Use tui_copy_source_line.
1623 (tui_source_window::tui_source_window): Move to tui-source.h.
1624 (tui_source_window::~tui_source_window): Remove.
1625 (tui_source_window::style_changed): Move to superclass.
1626 * tui/tui-disasm.c (tui_disassemble): Create string file with
1627 styling, when possible. Add "addr_size" parameter.
1628 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1629 Don't compute maximum size.
1630 (len_without_escapes): New function
1631
1632 2019-11-05 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1635 std::string.
1636 * tui/tui-winsource.c (tui_show_source_line): Update.
1637 * tui/tui-source.c (tui_source_window::set_contents): Update.
1638 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1639
1640 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1641
1642 * symtab.h (gdb_static_assert): Put && operator at the beginning
1643 of the line instead of the end.
1644
1645 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1646
1647 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1648 and sizeof (symbol).
1649 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1650
1651 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1652
1653 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1654 * configure.host: Mark *-*-solaris2.10* obsolete.
1655 * configure.tgt: Mark Solaris < 11 obsolete.
1656 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1657 Update target triplet.
1658
1659 2019-11-01 Tom Tromey <tromey@adacore.com>
1660
1661 * utils.c (print_sys_errmsg): Simplify.
1662
1663 2019-11-01 Tom Tromey <tromey@adacore.com>
1664
1665 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1666
1667 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1668
1669 * configure: Regenerate.
1670 * configure.ac: Remove check for strerror_r.
1671 * gdbsupport/common.m4: Check for strerror_r.
1672
1673 2019-11-01 Luis Machado <luis.machado@linaro.org>
1674
1675 PR gdb/25124
1676
1677 * arm-tdep.c (arm_per_objfile): Rename to ...
1678 (arm_per_bfd): ... this.
1679 (arm_objfile_data_key): Rename to ...
1680 (arm_bfd_data_key): ... this.
1681 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1682 data.
1683 (arm_record_special_symbol): Likewise.
1684
1685 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1688 end.
1689 * c-typeprint.c (c_print_typedef): Likewise.
1690 * f-typeprint.c (f_print_typedef): Likewise.
1691 * m2-typeprint.c (m2_print_typedef): Likewise.
1692 * p-typeprint.c (pascal_print_typedef): Likewise.
1693 * rust-lang.c (rust_print_typedef): Likewise.
1694 * symtab.c (print_symbol_info): Print a newline after calling
1695 typedef_print.
1696
1697 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * symtab.c (info_module_cmdlist): New variable.
1700 (info_module_command): New function.
1701 (search_module_symbols): New function.
1702 (info_module_subcommand): New function.
1703 (struct info_modules_var_func_options): New struct.
1704 (info_modules_var_func_options_defs): New variable.
1705 (make_info_modules_var_func_options_def_group): New function.
1706 (info_module_functions_command): New function.
1707 (info_module_variables_command): New function.
1708 (info_module_var_func_command_completer): New function.
1709 (_initialize_symtab): Register new 'info module functions' and
1710 'info module variables' commands.
1711 * symtab.h (typedef symbol_search_in_module): New typedef.
1712 (search_module_symbols): Declare new function.
1713 * NEWS: Mention new commands.
1714
1715 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1718 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1719 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1720 MODULES_DOMAIN.
1721 (scan_partial_symbols): Only create partial module symbols for non
1722 declarations.
1723 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1724 and MODULES_DOMAIN.
1725 * symtab.c (search_domain_name): Likewise.
1726 (search_symbols): Likewise.
1727 (print_symbol_info): Likewise.
1728 (symtab_symbol_info): Likewise.
1729 (info_modules_command): New function.
1730 (_initialize_symtab): Register 'info modules' command.
1731 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1732 * NEWS: Mention new 'info modules' command.
1733
1734 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1735
1736 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1737 and $_gdb_maint_setting_str.
1738
1739 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1740
1741 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1742 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1743 (str_value_from_setting, gdb_setting_str_internal_fn)
1744 (gdb_maint_setting_str_internal_fn): New functions.
1745 (_initialize_cli_cmds): Define the new convenience functions.
1746 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1747 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1748
1749 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1750
1751 * agent.c (set_can_use_agent): When the setting is turned on,
1752 look up agent symbols if we don't have them yet.
1753 (agent_new_objfile): Don't look up agent symbols when the agent
1754 setting is off.
1755
1756 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1757
1758 * config.in: Regenerate.
1759
1760 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1761
1762 * configure: Regenerate.
1763 * configure.ac: Check for strerror_r.
1764 * gdbsupport/common-utils.h (safe_strerror): Change return value
1765 to const char * and document that this function is now threadsafe.
1766 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1767 thread_local and call strerror_r, if available.
1768 * utils.c (perror_string): Update.
1769 (print_sys_errmsg): Update.
1770
1771 2019-10-31 Luis Machado <luis.machado@linaro.org>
1772
1773 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1774 objfile_key.
1775 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1776 objfile to fetch per-bfd data.
1777 (arm_find_exidx_entry): Likewise.
1778
1779 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1780
1781 * gdbsupport/agent.c (debug_agent): Change type to bool.
1782 (use_agent): Likewise.
1783 (all_agent_symbols_look_up): Likewise.
1784 (agent_loaded_p): Change return value to bool.
1785 (agent_look_up_symbols): Update.
1786 (agent_capability_check): Change return value to bool.
1787 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1788 (debug_agent): Change type to bool.
1789 (use_agent): Likewise.
1790 (agent_capability_check): Change return value to bool.
1791
1792 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1793
1794 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1795 (build_minimal_symbol_hash_tables): Code to clear the table moved
1796 to clear_minimal_symbol_hash_tables.
1797 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1798 when needed.
1799
1800 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * infcmd.c: Remove includes.
1803 * infrun.c: Remove includes.
1804
1805 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1808 (grow_vect): Remove declaration.
1809 (ada_type_of_array): Remove declaration.
1810 (ada_update_initial_language): Remove declaration.
1811 (ada_fold_name): Remove declaration.
1812 (ada_fill_in_ada_prototype): Remove declaration.
1813 (user_select_syms): Remove declaration.
1814 (get_selections): Remove declaration.
1815 (ada_tag_type): Remove declaration.
1816 (ada_value_tag): Remove declaration.
1817 (ada_is_others_clause): Remove declaration.
1818 (ada_in_variant): Remove declaration.
1819 (ada_value_struct_elt): Remove declaration.
1820 (ada_attribute_name): Remove declaration.
1821 (ada_system_address_type): Remove declaration.
1822 * ada-lang.c (ada_watch_location_expression): Make static.
1823 (GROW_VECT): Move here from ada-lang.h.
1824 (grow_vect): Make static.
1825 (ada_update_initial_language): Make static.
1826 (ada_fold_name): Make static.
1827 (ada_type_of_array): Make static.
1828 (encoded_ordered_before): Move up.
1829 (sort_choices): Move up.
1830 (print_signatures): Move up.
1831 (ada_print_symbol_signature): Move up.
1832 (get_selections): Move up and make static.
1833 (user_select_syms): Move up and make static.
1834 (ada_value_struct_elt): Move up and make static.
1835 (ada_tag_type): Make static.
1836 (ada_value_tag): Make static.
1837 (ada_is_others_clause): Make static.
1838 (ada_in_variant): Make static.
1839 (ada_attribute_name): Make static.
1840
1841 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * ada-lang.c: Remove includes.
1844 * ada-typeprint.c: Remove includes.
1845 * ada-valprint.c: Remove includes.
1846
1847 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * addrmap.c: Add static assertions of type size, moved from
1850 _initialize_addrmap.
1851 (_initialize_addrmap): Remove.
1852
1853 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1854
1855 * coffread.c (record_minimal_symbol): Update.
1856 (process_coff_symbol): Update.
1857 * dbxread.c (read_dbx_symtab): Update.
1858 * dwarf2read.c (add_partial_symbol): Update.
1859 (fixup_go_packaging): Update.
1860 (load_partial_dies): Update.
1861 (new_symbol): Update.
1862 * elfread.c (record_minimal_symbol): Change signature to use
1863 gdb::string_view instead of name+len.
1864 (elf_symtab_read): Update.
1865 (elf_rel_plt_read): Update.
1866 * mdebugread.c (parse_partial_symbols): Update.
1867 (handle_psymbol_enumerators): Update.
1868 (new_symbol): Update.
1869 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1870 to use gdb::string_view instead of name+len.
1871 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1872 * psympriv.h (add_psymbol_to_list): Likewise.
1873 * psymtab.c (add_psymbol_to_bcache): Likewise.
1874 (add_psymbol_to_list): Likewise.
1875 * stabsread.c (define_symbol): Update.
1876 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1877 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1878 (symbol_set_names): Likewise.
1879 * xcoffread.c (scan_xcoff_symtab): Update.
1880
1881 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1882
1883 * symtab.h (symbol_set_names): Document that copy_name must be
1884 set to true for non-nullterminated strings.
1885 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1886 linkage_name if the entry was not found and we need to demangle.
1887
1888 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1889
1890 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1891 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1892 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1893 * gdbsupport/gdb_binary_search.h: New file.
1894
1895 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1896
1897 * NEWS: Mention new --with-system-gdbinit-dir option.
1898 * config.in: Regenerate.
1899 * configure: Regenerate.
1900 * configure.ac: Add new option --with-system-gdbinit-dir.
1901 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1902 for a ".gdb" suffix.
1903 * main.c (get_init_files): Change system_gdbinit argument to
1904 a vector and return the files in SYSTEM_GDBINIT_DIR in
1905 addition to SYSTEM_GDBINIT.
1906 (captured_main_1): Update.
1907 (print_gdb_help): Update.
1908 * top.c (print_gdb_configuration): Also print the value of
1909 SYSTEM_GDBINIT_DIR.
1910
1911 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1912
1913 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1914 that takes gdb::string_view arguments.
1915
1916 2019-10-26 Tom de Vries <tdevries@suse.de>
1917
1918 * aarch64-linux-tdep.c: Fix typos in comments.
1919 * aarch64-tdep.c: Same.
1920 * ada-lang.c: Same.
1921 * amd64-nat.c: Same.
1922 * arc-tdep.c: Same.
1923 * arch/aarch64-insn.c: Same.
1924 * block.c: Same.
1925 * breakpoint.h: Same.
1926 * btrace.h: Same.
1927 * c-varobj.c: Same.
1928 * cli/cli-decode.c: Same.
1929 * cli/cli-script.c: Same.
1930 * cli/cli-utils.h: Same.
1931 * coff-pe-read.c: Same.
1932 * coffread.c: Same.
1933 * compile/compile-cplus-symbols.c: Same.
1934 * compile/compile-object-run.c: Same.
1935 * completer.c: Same.
1936 * corelow.c: Same.
1937 * cp-support.c: Same.
1938 * demangle.c: Same.
1939 * dwarf-index-write.c: Same.
1940 * dwarf2-frame.c: Same.
1941 * dwarf2-frame.h: Same.
1942 * eval.c: Same.
1943 * frame-base.h: Same.
1944 * frame.h: Same.
1945 * gdbcmd.h: Same.
1946 * gdbtypes.h: Same.
1947 * gnu-nat.c: Same.
1948 * guile/scm-objfile.c: Same.
1949 * i386-tdep.c: Same.
1950 * i386-tdep.h: Same.
1951 * infcall.c: Same.
1952 * infcall.h: Same.
1953 * linux-nat.c: Same.
1954 * m68k-tdep.c: Same.
1955 * macroexp.c: Same.
1956 * memattr.c: Same.
1957 * mi/mi-cmd-disas.c: Same.
1958 * mi/mi-getopt.h: Same.
1959 * mi/mi-main.c: Same.
1960 * minsyms.c: Same.
1961 * nat/aarch64-sve-linux-sigcontext.h: Same.
1962 * objfiles.h: Same.
1963 * ppc-linux-nat.c: Same.
1964 * ppc-linux-tdep.c: Same.
1965 * ppc-tdep.h: Same.
1966 * progspace.h: Same.
1967 * prologue-value.h: Same.
1968 * python/py-evtregistry.c: Same.
1969 * python/py-instruction.h: Same.
1970 * record-btrace.c: Same.
1971 * record-full.c: Same.
1972 * remote.c: Same.
1973 * rs6000-tdep.c: Same.
1974 * ser-tcp.c: Same.
1975 * sol-thread.c: Same.
1976 * sparc-sol2-tdep.c: Same.
1977 * sparc64-tdep.c: Same.
1978 * stabsread.c: Same.
1979 * symfile.c: Same.
1980 * symtab.h: Same.
1981 * target.c: Same.
1982 * tracepoint.c: Same.
1983 * tui/tui-data.h: Same.
1984 * tui/tui-io.c: Same.
1985 * tui/tui-win.c: Same.
1986 * tui/tui.c: Same.
1987 * unittests/rsp-low-selftests.c: Same.
1988 * user-regs.h: Same.
1989 * utils.c: Same.
1990 * utils.h: Same.
1991 * valarith.c: Same.
1992 * valops.c: Same.
1993 * valprint.c: Same.
1994 * valprint.h: Same.
1995 * value.c: Same.
1996 * value.h: Same.
1997 * varobj.c: Same.
1998 * x86-nat.h: Same.
1999 * xtensa-tdep.c: Same.
2000
2001 2019-10-25 Ali Tamur <tamur@google.com>
2002
2003 * charset.c (find_charset_names): Reflect API change.
2004
2005 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2006
2007 * symtab.c (struct demangled_name_entry): Change demangled name
2008 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2009 part of the struct anymore.
2010 (symbol_set_names): No longer obstack allocate + copy the demangled
2011 name, just store the allocated name from bfd.
2012
2013 2019-10-25 Tom Tromey <tromey@adacore.com>
2014
2015 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2016 (bsearch_cie_cmp, add_cie): Remove.
2017 (find_cie): Reimplement.
2018 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2019 (dwarf2_build_frame_info): Update.
2020
2021 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2022
2023 PR gdb/25126
2024 * symfile.c (reread_symbols): Call forget_cached_source_info to
2025 clear the stale source cache.
2026
2027 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2028
2029 * configure: Regenerate.
2030 * configure.ac: Remove code that sets python_has_threads.
2031
2032 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2033
2034 * config.in: Regenerate.
2035 * configure: Regenerate.
2036 * configure.ac: Remove the code that uses sed to get the python
2037 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2038
2039 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2042 error paths.
2043
2044 2019-10-23 Tom Tromey <tom@tromey.com>
2045
2046 * arc-tdep.c: Remove ".." from include.
2047 * frv-tdep.c: Remove ".." from include.
2048 * lm32-tdep.c: Remove ".." from include.
2049 * microblaze-tdep.c: Remove ".." from include.
2050 * or1k-tdep.h: Remove ".." from include.
2051 * s12z-tdep.c: Remove ".." from include.
2052 * Makefile.in (OPCODES_CFLAGS): Add comment.
2053 (TOP_CFLAGS): New variable.
2054 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2055
2056 2019-10-23 Tom Tromey <tom@tromey.com>
2057
2058 * Makefile.in (READLINE_DIR): Update.
2059
2060 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2061
2062 * infcall.c (call_function_by_hand_dummy): Fix the function
2063 comment. And extract out a code section into...
2064 (reserve_stack_space): ...this new function.
2065
2066 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2067
2068 * infcall.c (value_arg_coerce): Remove an unused parameter.
2069 (call_function_by_hand_dummy): Update the call to
2070 'value_arg_coerce'.
2071
2072 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2073
2074 * infcall.c (call_function_by_hand_dummy): Refactor.
2075
2076 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2077
2078 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2079
2080 2019-10-23 Tom Tromey <tom@tromey.com>
2081
2082 * configure: Rebuild.
2083 * configure.ac: Don't check for sigprocmask.
2084 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2085
2086 2019-10-23 Tom Tromey <tom@tromey.com>
2087
2088 * configure: Rebuild.
2089 * acinclude.m4: Use m4_include, not sinclude.
2090
2091 2019-10-23 Tom de Vries <tdevries@suse.de>
2092
2093 PR breakpoints/24687
2094 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2095
2096 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2097
2098 * symtab.c (struct demangled_name_entry) <language>: Change from
2099 bitfield to regular variable.
2100
2101 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2102
2103 * symtab.c (struct demangled_name_entry): Add a constructor.
2104 (free_demangled_name_entry): New function to call the destructor
2105 for demangled_name_entry.
2106 (create_demangled_names_hash): Pass free_demangled_name_entry to
2107 htab_create_alloc.
2108 (symbol_set_names): Call placement new for demangled_name_entry.
2109 * utils.c: No longer include xxhash.h here, now that fast_hash
2110 is inlined in the header.
2111 * utils.h: Instead, include it here.
2112
2113 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2114
2115 * Makefile.in: Link with libxxhash.
2116 * config.in: Regenerate.
2117 * configure: Regenerate.
2118 * configure.ac: Search for libxxhash.
2119 * utils.c (fast_hash): Use xxhash if present.
2120
2121 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2122
2123 * utils.h (fast_hash): New function.
2124 * symtab.c (hash_demangled_name_entry): Call new function
2125 fast_hash.
2126
2127 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2128
2129 * symtab.c (struct demangled_name_entry): Change type of mangled
2130 to gdb::string_view. Also adds a constructor that takes the
2131 mangled name.
2132 (hash_demangled_name_entry): Update.
2133 (eq_demangled_name_entry): Update.
2134 (free_demangled_name_entry): New function to call the destructor
2135 now that this is not a POD anymore.
2136 (create_demangled_names_hash): Pass free_demangled_name_entry to
2137 htab_create_alloc.
2138 (symbol_set_names): Update.
2139
2140 2019-10-21 Ali Tamur <tamu@google.com>
2141
2142 * dwarf2read.c (dir_index): Change type.
2143 (file_name_index): Likewise.
2144 (line_header::include_dir_at): Change comment and implementation on
2145 whether it is DWARF 5.
2146 (line_header::is_valid_file_index): New function.
2147 (line_header::file_name_at): Change comment and implementation on
2148 whether it is DWARF 5.
2149 (line_header::file_names): Change to private field renamed as
2150 m_file_names and introduce a new accessor method.
2151 (line_header::file_names_size): New method.
2152 (line_header::include_dirs): Change to private field and rename as
2153 m_include_dirs.
2154 (dw2_get_file_names_reader): Define local var at a smaller scope and
2155 reflect API change.
2156 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2157 (process_structure_scope): Likewise.
2158 (line_header::add_include_dir): Change message and reflect renaming.
2159 (line_header::add_file_name): Likewise.
2160 (read_formatted_entries): Handle DW_FORM_data16.
2161 (dwarf_decode_line_header): Fix line header length calculation.
2162 (psymtab_include_file_name): Change comment and API.
2163 (lnp_state_machine::m_file): Update comment and reflect type change.
2164 (lnp_state_machine::record_line): Reflect type change.
2165 (dwarf_decode_lines): Reflect API change.
2166 (file_file_name): Likewise.
2167 (file_full_name): Likewise.
2168
2169 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2172
2173 2019-10-21 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2176
2177 2019-10-21 Tom Tromey <tom@tromey.com>
2178
2179 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2180 NM_H. Use AC_CONFIG_LINKS.
2181 * configure: Rebuild.
2182 * Makefile.in (NM_H): New variable.
2183 (generated_files): Add NM_H. Remove gcore.
2184 (nm.h, stamp-nmh): New targets.
2185
2186 2019-10-20 Tom Tromey <tom@tromey.com>
2187
2188 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2189 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2190 obsolete comment.
2191 (put_objfile_before): Now static.
2192
2193 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * gdbsupport/common-utils.h (startswith): Change return type to
2196 bool.
2197
2198 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2199
2200 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2201 * breakpoint.c (bp_locations_compare): Rename to...
2202 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2203 (update_global_location_list): Use std::sort instead of qsort.
2204 * buildsym.c (compare_line_numbers): Rename to...
2205 (lte_is_less_than): ...this, and change to std::sort semantics.
2206 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2207 instead of qsort.
2208 * disasm.c (compare_lines): Rename to...
2209 (line_is_less_than): ...this, and change to std::sort semantics.
2210 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2211 of qsort.
2212 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2213 (fde_is_less_than): ...this, and change to std::sort semantics.
2214 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2215 * mdebugread.c (compare_blocks):
2216 (block_is_less_than): ...this, and change to std::sort semantics.
2217 (sort_blocks): Call std::sort instead of qsort.
2218 * objfiles.c (qsort_cmp): Rename to...
2219 (sort_cmp): ...this, and change to std::sort semantics.
2220 (update_section_map): Call std::sort instead of qsort.
2221 * remote.c (compare_pnums): Remove.
2222 (map_regcache_remote_table): Call std::sort instead of qsort.
2223 * utils.c (compare_positive_ints): Remove.
2224 * utils.h (compare_positive_ints): Remove.
2225 * xcoffread.c (compare_lte): Remove.
2226 (arrange_linetable): Call std::sort instead of qsort.
2227
2228 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2229
2230 * symfile.c (init_entry_point_info): Fix typo.
2231 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2232
2233 2019-10-18 Tom de Vries <tdevries@suse.de>
2234
2235 * aarch64-tdep.c: Fix typos in comments.
2236 * ada-lang.c: Same.
2237 * ada-tasks.c: Same.
2238 * alpha-tdep.c: Same.
2239 * alpha-tdep.h: Same.
2240 * amd64-nat.c: Same.
2241 * amd64-windows-tdep.c: Same.
2242 * arc-tdep.c: Same.
2243 * arc-tdep.h: Same.
2244 * arch-utils.c: Same.
2245 * arm-nbsd-tdep.c: Same.
2246 * arm-tdep.c: Same.
2247 * ax-gdb.c: Same.
2248 * blockframe.c: Same.
2249 * btrace.c: Same.
2250 * c-varobj.c: Same.
2251 * coff-pe-read.c: Same.
2252 * coffread.c: Same.
2253 * cris-tdep.c: Same.
2254 * darwin-nat.c: Same.
2255 * dbxread.c: Same.
2256 * dcache.c: Same.
2257 * disasm.c: Same.
2258 * dtrace-probe.c: Same.
2259 * dwarf-index-write.c: Same.
2260 * dwarf2-frame-tailcall.c: Same.
2261 * dwarf2-frame.c: Same.
2262 * dwarf2read.c: Same.
2263 * eval.c: Same.
2264 * exceptions.c: Same.
2265 * fbsd-tdep.c: Same.
2266 * findvar.c: Same.
2267 * frame.c: Same.
2268 * frv-tdep.c: Same.
2269 * gnu-v3-abi.c: Same.
2270 * go32-nat.c: Same.
2271 * h8300-tdep.c: Same.
2272 * hppa-tdep.c: Same.
2273 * i386-linux-tdep.c: Same.
2274 * i386-tdep.c: Same.
2275 * ia64-libunwind-tdep.c: Same.
2276 * ia64-tdep.c: Same.
2277 * infcmd.c: Same.
2278 * infrun.c: Same.
2279 * linespec.c: Same.
2280 * linux-nat.c: Same.
2281 * linux-thread-db.c: Same.
2282 * machoread.c: Same.
2283 * mdebugread.c: Same.
2284 * mep-tdep.c: Same.
2285 * mn10300-tdep.c: Same.
2286 * namespace.c: Same.
2287 * objfiles.c: Same.
2288 * opencl-lang.c: Same.
2289 * or1k-tdep.c: Same.
2290 * osabi.c: Same.
2291 * ppc-linux-nat.c: Same.
2292 * ppc-linux-tdep.c: Same.
2293 * ppc-sysv-tdep.c: Same.
2294 * printcmd.c: Same.
2295 * procfs.c: Same.
2296 * record-btrace.c: Same.
2297 * record-full.c: Same.
2298 * remote-fileio.c: Same.
2299 * remote.c: Same.
2300 * rs6000-tdep.c: Same.
2301 * s12z-tdep.c: Same.
2302 * score-tdep.c: Same.
2303 * ser-base.c: Same.
2304 * ser-go32.c: Same.
2305 * skip.c: Same.
2306 * sol-thread.c: Same.
2307 * solib-svr4.c: Same.
2308 * solib.c: Same.
2309 * source.c: Same.
2310 * sparc-nat.c: Same.
2311 * sparc-sol2-tdep.c: Same.
2312 * sparc-tdep.c: Same.
2313 * sparc64-tdep.c: Same.
2314 * stabsread.c: Same.
2315 * stack.c: Same.
2316 * symfile.c: Same.
2317 * symtab.c: Same.
2318 * target-descriptions.c: Same.
2319 * target-float.c: Same.
2320 * thread.c: Same.
2321 * utils.c: Same.
2322 * valops.c: Same.
2323 * valprint.c: Same.
2324 * value.c: Same.
2325 * varobj.c: Same.
2326 * windows-nat.c: Same.
2327 * xcoffread.c: Same.
2328 * xstormy16-tdep.c: Same.
2329 * xtensa-tdep.c: Same.
2330
2331 2019-10-17 Tom Tromey <tromey@adacore.com>
2332
2333 * configure: Rebuild.
2334 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2335 in AC_CONFIG_FILES invocation.
2336 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2337 new-style config.status invocation.
2338
2339 2019-10-17 Tom de Vries <tdevries@suse.de>
2340
2341 * arm-nbsd-nat.c: Fix typos in comments.
2342 * arm-tdep.c: Same.
2343 * darwin-nat-info.c: Same.
2344 * dwarf2read.c: Same.
2345 * elfread.c: Same.
2346 * event-top.c: Same.
2347 * findvar.c: Same.
2348 * gdbtypes.c: Same.
2349 * hppa-tdep.c: Same.
2350 * i386-tdep.c: Same.
2351 * jit.c: Same.
2352 * main.c: Same.
2353 * mdebugread.c: Same.
2354 * moxie-tdep.c: Same.
2355 * nto-procfs.c: Same.
2356 * osabi.c: Same.
2357 * ppc-linux-tdep.c: Same.
2358 * remote.c: Same.
2359 * riscv-tdep.c: Same.
2360 * s390-tdep.c: Same.
2361 * sh-tdep.c: Same.
2362 * sparc-linux-tdep.c: Same.
2363 * sparc-nat.c: Same.
2364 * stack.c: Same.
2365 * target-descriptions.c: Same.
2366 * top.c: Same.
2367 * varobj.c: Same.
2368
2369 2019-10-16 Tom Tromey <tom@tromey.com>
2370
2371 * objfiles.h (struct objfile) <original_name>: Now const.
2372
2373 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2374
2375 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2376 pass on to sigsetjmp's second argument.
2377 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2378
2379 2019-10-16 Keith Seitz <keiths@redhat.com>
2380
2381 PR gdb/23567
2382 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2383 sections whose size is greater than the file size.
2384
2385 2019-10-16 Jim Wilson <jimw@sifive.com>
2386
2387 * riscv-tdep.c (riscv_gcc_target_options): New.
2388 (riscv_gnu_triplet_regexp): New.
2389 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2390 set_gdbarch_gnu_triplet_regexp.
2391
2392 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2393
2394 * Makefile.in: Add xml-builtin.h.
2395 * features/feature_to_c.sh: Add an include for xml-builtin.h
2396 to ensure that the compiler checks that the types match.
2397 * xml-builtin.h: New file.
2398 * xml-support.c (fetch_xml_builtin): Add missing const.
2399 * xml-support.h: Remove declaration of xml_builtins.
2400
2401 2019-10-16 Tom de Vries <tdevries@suse.de>
2402
2403 PR tdep/25096
2404 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2405 (amd64_classify_aggregate): ... here.
2406 (amd64_classify_aggregate_field): Handled fiels of nested structs
2407 recursively.
2408
2409 2019-10-16 Tom de Vries <tdevries@suse.de>
2410
2411 PR tdep/24104
2412 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2413 that handles 'theclass'.
2414
2415 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * linespec.c (decode_digits_ordinary): Update comment.
2418 * make-target-delegates: No longer need to handle VEC case.
2419 * memrange.c (normalize_mem_ranges): Update comment.
2420 * namespace.c (add_using_directive): Update comment.
2421 * objc-lang.c (uniquify_strings): Update comment.
2422 * ppc-linux-nat.c (struct thread_points): Update comment.
2423 * probe.h (find_probes_in_objfile): Update comment.
2424 * target.h (enum flash_preserve_mode): Update comment.
2425 * varobj.c (varobj_restrict_range): Update comment.
2426 * varobj.h (varobj_list_children): Update comment.
2427
2428 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * Makefile.in: Remove references to vec.h and vec.c.
2431 * aarch64-tdep.c: No longer include vec.h.
2432 * ada-lang.c: Likewise.
2433 * ada-lang.h: Likewise.
2434 * arm-tdep.c: Likewise.
2435 * ax.h: Likewise.
2436 * breakpoint.h: Likewise.
2437 * charset.c: Likewise.
2438 * cp-support.h: Likewise.
2439 * dtrace-probe.c: Likewise.
2440 * dwarf2read.c: Likewise.
2441 * extension.h: Likewise.
2442 * gdb_bfd.c: Likewise.
2443 * gdbsupport/gdb_vecs.h: Likewise.
2444 * gdbsupport/vec.c: Remove.
2445 * gdbsupport/vec.h: Remove.
2446 * gdbthread.h: Likewise.
2447 * guile/scm-type.c: Likewise.
2448 * inline-frame.c: Likewise.
2449 * machoread.c: Likewise.
2450 * memattr.c: Likewise.
2451 * memrange.h: Likewise.
2452 * namespace.h: Likewise.
2453 * nat/linux-btrace.h: Likewise.
2454 * osdata.c: Likewise.
2455 * parser-defs.h: Likewise.
2456 * progspace.h: Likewise.
2457 * python/py-type.c: Likewise.
2458 * record-btrace.c: Likewise.
2459 * rust-exp.y: Likewise.
2460 * solib-target.c: Likewise.
2461 * stap-probe.c: Likewise.
2462 * target-descriptions.c: Likewise.
2463 * target-memory.c: Likewise.
2464 * target.h: Likewise.
2465 * varobj.c: Likewise.
2466 * varobj.h: Likewise.
2467 * xml-support.h: Likewise.
2468
2469 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2472 Update for new std::vector based implementation.
2473 (process_psymtab_comp_unit_reader): Likewise.
2474 (scan_partial_symbols): Likewise.
2475 (recursively_compute_inclusions): Likewise.
2476 (compute_compunit_symtab_includes): Likewise.
2477 (process_imported_unit_die): Likewise.
2478 (queue_and_load_dwo_tu): Likewise.
2479 (follow_die_sig_1): Likewise.
2480 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2481 (typedef dwarf2_per_cu_ptr): Remove.
2482 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2483 function.
2484 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2485 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2486 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2487 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2488 std::vector.
2489
2490 2019-10-15 Tom Tromey <tromey@adacore.com>
2491
2492 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2493 TID.
2494
2495 2019-10-15 Tom Tromey <tromey@adacore.com>
2496
2497 * windows-nat.c (windows_nat_target::fetch_registers)
2498 (windows_nat_target::store_registers): Rename "pid" to "tid".
2499
2500 2019-10-15 Tom Tromey <tromey@adacore.com>
2501
2502 * gdbarch.h, gdbarch.c: Rebuild.
2503 * gdbarch.sh (gcc_target_options): Change return type to
2504 std::string.
2505 * compile/compile.c (get_args): Update.
2506 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2507 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2508 std::string.
2509 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2510 std::string.
2511 * arch-utils.c (default_gcc_target_options): Return std::string.
2512 * arch-utils.h (default_gcc_target_options): Return std::string.
2513 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2514
2515 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2516
2517 * breakpoint.c (breakpoint_chain): Make static.
2518 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2519 of accessing breakpoint_chain.
2520
2521 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2522
2523 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2524 to a gdb::function_view and return value to bool.
2525 * breakpoint.h (iterate_over_breakpoints): Likewise.
2526 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2527 (pop_dummy_frame): Update.
2528 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2529 (gdbscm_breakpoints): Update.
2530 * python/py-breakpoint.c (build_bp_list): Update.
2531 (gdbpy_breakpoints): Update.
2532 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2533 Update.
2534 (bpfinishpy_handle_stop): Update.
2535 (bpfinishpy_handle_exit): Update.
2536 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2537 (svr4_update_solib_event_breakpoints): Update.
2538
2539 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2540
2541 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2542 when unwrapping single-field structs.
2543
2544 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * dwarf2read.c: Remove includes.
2547
2548 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * ui-out.c (ui_out::call_do_message): Silence
2551 -Wformat-nonliteral warning.
2552
2553 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2554
2555 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2556 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2557 include: readline/tilde.h.
2558
2559 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2560
2561 * remote.c (remote_target::get_trace_status): Remove declaration of
2562 trace_regblock_size.
2563
2564 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2565
2566 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2567 (show_user): Remove declaration of cmdlist.
2568 * cli/cli-cmds.h (max_user_call_depth): Declare.
2569 * cli/cli-script.c (execute_user_command): Remove declaration
2570 of max_user_call_depth.
2571
2572 2019-10-11 Jim Wilson <jimw@sifive.com>
2573
2574 * gdbsupport/print-utils.h (pulongest): Fix comment.
2575 (plongest): Likewise.
2576 (phex): Add missing comment, mention leading zeros.
2577 (phex_nz): Add mention of no leading zeros to comment.
2578
2579 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2580 plongest instead of unsigned long long cast.
2581
2582 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2583
2584 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2585 for external_editor_command and gdbtk_test.
2586
2587 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2588
2589 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2590 * varobj.c (varobjdebug): Move comment to...
2591 * varobj.h (varobjdebug): ...here, and declare.
2592
2593 2019-10-09 Tom Tromey <tom@tromey.com>
2594
2595 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2596 erase_data_content.
2597
2598 2019-10-09 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2601 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2602 * tui/tui-command.c (tui_cmd_window::resize)
2603 (tui_refresh_cmd_win): Update.
2604 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2605 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2606 * tui/tui-data.c (~tui_gen_win_info): Remove.
2607 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2608 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2609 (tui_redisplay_readline, tui_mld_flush)
2610 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2611 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2612 (tui_data_window::erase_data_content)
2613 (tui_data_item_window::rerender)
2614 (tui_data_item_window::refresh_window): Update.
2615 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2616 (box_win, tui_gen_win_info::make_window)
2617 (tui_gen_win_info::make_visible): Update.
2618 (tui_delete_win): Remove.
2619 * tui/tui-winsource.c
2620 (tui_source_window_base::do_erase_source_content): Update.
2621 (tui_show_source_line, tui_source_window_base::update_tab_width)
2622 (tui_source_window_base::update_exec_info): Update.
2623 * tui/tui-data.h (struct curses_deleter): New.
2624 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2625 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2626
2627 2019-10-09 Tom Tromey <tom@tromey.com>
2628
2629 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2630
2631 2019-10-09 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2634 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2635
2636 2019-10-09 Tom Tromey <tom@tromey.com>
2637
2638 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2639 window height directly.
2640 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2641 declare.
2642 * tui/tui-layout.c (tui_default_win_height): Remove.
2643 (tui_default_win_viewport_height): Remove.
2644
2645 2019-10-09 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui.h: Remove comments.
2648
2649 2019-10-09 Tom de Vries <tdevries@suse.de>
2650
2651 * python/lib/gdb/printer/bound_registers.py: Use
2652 '^builtin_type_bound128' as regexp argument for
2653 add_builtin_pretty_printer.
2654
2655 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2656
2657 * guile/guile.c (guile_extension_script_ops): Remove forward
2658 declaration and mark as static.
2659 (guile_script_ops): Likewise.
2660 (extension_language_guile): Move further down in the file so
2661 it can reference the definitions for guile_{extension_,}script_ops.
2662
2663 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2664
2665 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2666 except SORTL, DFLTCC, and KDSA.
2667
2668 2019-10-08 Tom Tromey <tromey@adacore.com>
2669
2670 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2671 (struct safe_symbol_file_add_args): Remove.
2672
2673 2019-10-08 Tom Tromey <tromey@adacore.com>
2674
2675 * windows-nat.c: Don't include buildsym-legacy.h.
2676
2677 2019-10-08 Tom Tromey <tromey@adacore.com>
2678
2679 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2680
2681 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2682
2683 * gdbtypes.c (overload_debug): Move comment to header.
2684 * gdbtypes.h (overload_debug): Declare.
2685 * valops.c: Remove declaration of overload_debug, instead
2686 include gdbtypes.h.
2687
2688 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2689
2690 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2691 through _().
2692 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2693 move comment...
2694 * language.h (lang_frame_mismatch_warn): ... here. Also add
2695 declaration.
2696 * top.c (lang_frame_mismatch_warn): Remove declaration.
2697 (check_frame_language_change): Pass lang_frame_mismatch_warn
2698 through _().
2699
2700 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2701
2702 * c-lang.h (vtbl_ptr_name): Declare.
2703 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2704 it from the header.
2705 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2706
2707 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2708
2709 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2710 gdb_static_assert.
2711
2712 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2713
2714 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2715 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2716 * ctfread.c: New file.
2717 * ctfread.h: New file.
2718 * elfread.c: Include ctfread.h.
2719 (struct elfinfo text_p): New member ctfsect.
2720 (elf_locate_sections): Mark CTF section.
2721 (elf_symfile_read): Call elfctf_build_psymtabs.
2722 * Makefile.in (LIBCTF): Add.
2723 (CLIBS): Use it.
2724 (CDEPS): Likewise.
2725 (DIST): Add ctfread.c.
2726
2727 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * ctfread.c (struct nextfield): Renamed to ...
2730 (struct ctf_nextfield): ... this.
2731 (struct field_info): Renamed to ...
2732 (strut ctf_field_info): ... this.
2733 (attach_fields_to_type): Update for renamed structures.
2734 (ctf_add_member_cb): Likewise.
2735 (ctf_add_enum_member_cb): Likewise.
2736 (process_struct_members): Likewise.
2737 (process_enum_type): Likewise.
2738
2739 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2740
2741 * tracectf.h: Rename, was ctf.h.
2742 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2743 * tracefile.c: Likewise.
2744 * tracepoint.c: Remove unused include ctf.h.
2745 * mi/mi-main.c: Likewise.
2746 * Makefile.in Replace ctf.c with tracectf.c.
2747
2748 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2749
2750 * version.in: Change version number to "9.0.50.DATE-git".
2751
2752 2019-10-03 Tom Tromey <tom@tromey.com>
2753
2754 PR rust/24976:
2755 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2756
2757 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2760 cp_search_name_hash.
2761 * NEWS: Add entry about nested function support.
2762
2763 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2764 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2767 for nested static variables when searchin VAR_DOMAIN.
2768 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2769 global scope, update comment.
2770 (add_partial_subprogram): Call add_partial_subprogram recursively
2771 for nested subroutines when processinng Fortran.
2772 (load_partial_dies): Process the child entities of a subprogram
2773 when processing Fortran.
2774 (partial_die_parent_scope): Handle building scope
2775 for Fortran nested functions.
2776 (process_die): Record that nested functions have a scope.
2777 (new_symbol): Always record Fortran subprograms on the global
2778 symbol list.
2779 (determine_prefix): How to build the prefix for Fortran
2780 subprograms.
2781
2782 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2785 have just sent the thread a SIGSTOP and are waiting for it to
2786 arrive.
2787
2788 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * btrace.c (btrace_add_pc): Remove whitespace before the template
2791 parameter in 'std::vector <...>'.
2792 (parse_xml_btrace_block): Likewise.
2793 (btrace_maint_decode_pt): Likewise.
2794 (btrace_maint_update_packets): Likewise.
2795 (btrace_maint_print_packets): Likewise.
2796 * btrace.h (struct btrace_maint_info): Likewise.
2797 * dwarf2read.c (struct type_unit_group): Likewise.
2798 (build_type_psymtabs_reader): Likewise.
2799 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2800 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2801 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2802
2803 2019-10-03 Tom de Vries <tdevries@suse.de>
2804
2805 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2806 the first line of the help text for set/show style metadata.
2807
2808 2019-10-02 Tom Tromey <tromey@adacore.com>
2809
2810 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2811 * gdbsupport/common-inferior.c: New file.
2812 * infcmd.c (startup_with_shell): Don't define.
2813 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2814 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2815 * inferior.h (startup_with_shell): Don't declare.
2816
2817 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2818
2819 * gdbsupport/gdb_assert.h: Include errors.h.
2820 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2821
2822 2019-10-02 Tom Tromey <tromey@adacore.com>
2823
2824 * NEWS: Add $_ada_exception entry.
2825 * ada-lang.c (struct ada_catchpoint): Add constructor.
2826 <m_kind>: New member.
2827 (allocate_location_exception, re_set_exception): Remove
2828 "ex" parameter.
2829 (should_stop_exception): Compute $_ada_exception.
2830 (check_status_exception, print_it_exception)
2831 (print_one_exception, print_mention_exception): Remove
2832 "ex" parameter.
2833 (allocate_location_catch_exception, re_set_catch_exception)
2834 (check_status_exception, print_it_catch_exception)
2835 (print_one_catch_exception, print_mention_catch_exception)
2836 (print_recreate_catch_exception)
2837 (allocate_location_catch_exception_unhandled)
2838 (re_set_catch_exception_unhandled)
2839 (check_status_exception, print_it_catch_exception_unhandled)
2840 (print_one_catch_exception_unhandled)
2841 (print_mention_catch_exception_unhandled)
2842 (print_recreate_catch_exception_unhandled)
2843 (allocate_location_catch_assert, re_set_catch_assert)
2844 (check_status_assert, print_it_catch_assert)
2845 (print_one_catch_assert, print_mention_catch_assert)
2846 (print_recreate_catch_assert)
2847 (allocate_location_catch_handlers, re_set_catch_handlers)
2848 (check_status_handlers, print_it_catch_handlers)
2849 (print_one_catch_handlers, print_mention_catch_handlers)
2850 (print_recreate_catch_handlers): Remove.
2851 (create_ada_exception_catchpoint): Update.
2852 (initialize_ada_catchpoint_ops): Update.
2853
2854 2019-10-02 Tom Tromey <tromey@adacore.com>
2855
2856 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2857 (create_excep_cond_exprs): Simplify exception string computation.
2858 (ada_exception_catchpoint_cond_string): Likewise.
2859
2860 2019-10-02 Tom Tromey <tromey@adacore.com>
2861
2862 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2863 * ada-lang.c (lesseq_defined_than): Handle
2864 LOC_STATIC.
2865 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2866 parameter.
2867 (dwarf2_has_info): Likewise.
2868 (new_symbol): Set maybe_copied on symbol when
2869 appropriate.
2870 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2871 parameter.
2872 <can_copy>: New member.
2873 * elfread.c (record_minimal_symbol): Set maybe_copied
2874 on symbol when appropriate.
2875 (elf_symfile_read): Update call to dwarf2_has_info.
2876 * minsyms.c (lookup_minimal_symbol_linkage): New
2877 function.
2878 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2879 * symtab.c (get_symbol_address, get_msymbol_address):
2880 New functions.
2881 * symtab.h (get_symbol_address, get_msymbol_address):
2882 Declare.
2883 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2884 maybe_copied.
2885 (struct symbol, struct minimal_symbol) <maybe_copied>:
2886 New member.
2887
2888 2019-10-02 Tom Tromey <tromey@adacore.com>
2889
2890 * source.c (struct current_source_location): New.
2891 (current_source_key): New global.
2892 (current_source_symtab, current_source_line)
2893 (current_source_pspace): Remove.
2894 (get_source_location): New function.
2895 (get_current_source_symtab_and_line)
2896 (set_default_source_symtab_and_line)
2897 (set_current_source_symtab_and_line)
2898 (clear_current_source_symtab_and_line, select_source_symtab)
2899 (info_source_command, print_source_lines_base)
2900 (info_line_command, search_command_helper, _initialize_source):
2901 Update.
2902
2903 2019-10-02 Tom Tromey <tromey@adacore.com>
2904
2905 * source.c (select_source_symtab): Don't call
2906 decode_line_with_current_source.
2907
2908 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * symtab.c (lookup_global_symbol): Search global block.
2911
2912 2019-10-02 Tom Tromey <tromey@adacore.com>
2913
2914 * coffread.c (process_coff_symbol): Update.
2915 * dwarf2read.c (var_decode_location, new_symbol): Update.
2916 * mdebugread.c (parse_symbol): Update.
2917 * objfiles.c (relocate_one_symbol): Update.
2918 * stabsread.c (define_symbol, fix_common_block)
2919 (scan_file_globals): Update.
2920 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2921 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2922 * xcoffread.c (process_xcoff_symbol): Update.
2923
2924 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2925
2926 * MAINTAINERS: Update my email address.
2927
2928 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2931 std::vector.
2932 (build_type_psymtabs_reader): Update for std::vector.
2933 (build_type_psymtab_dependencies): Likewise.
2934 * dwarf2read.h: Remove use of DEF_VEC_P.
2935 (typedef sig_type_ptr): Delete.
2936
2937 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2940 to std::vector.
2941 (btrace_maint_decode_pt): Likewise, and move allocation of the
2942 vector outside of the loop.
2943 (btrace_maint_update_packets): Update to handle change from VEC to
2944 std::vector.
2945 (btrace_maint_print_packets): Likewise.
2946 (maint_info_btrace_cmd): Likewise.
2947 * btrace.h: Remove use of DEF_VEC_O.
2948 (typedef btrace_pt_packet_s): Delete.
2949 (struct btrace_maint_info) <packets>: Change fromm VEC to
2950 std::vector.
2951 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2952
2953 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2956 make accesses into the vector constant references.
2957 (btrace_add_pc): Update for std::vector.
2958 (btrace_stitch_bts): Likewise.
2959 (parse_xml_btrace_block): Likewise.
2960 (btrace_maint_update_packets): Likewise.
2961 (btrace_maint_print_packets): Likewise.
2962 (maint_info_btrace_cmd): Likewise.
2963 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2964 std::vector.
2965 (btrace_data::empty): Likewise.
2966 (btrace_data_append): Likewise.
2967 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2968 (typedef btrace_block_s): Delete.
2969 (struct btrace_block): Add constructor.
2970 (struct btrace_data_bts) <blocks>: Change to std::vector.
2971 * nat/linux-btrace.c (perf_event_read_bts): Update for
2972 std::vector.
2973 (linux_read_bts): Likewise.
2974
2975 2019-10-01 Tom Tromey <tom@tromey.com>
2976
2977 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2978
2979 2019-10-01 Tom Tromey <tom@tromey.com>
2980
2981 * stack.c (print_frame, info_frame_command_core): Use
2982 styled_string.
2983 * linux-thread-db.c (try_thread_db_load_1)
2984 (try_thread_db_load_from_pdir_1): Use styled_string.
2985 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2986 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2987 (maybe_print_unsupported_script_warning)
2988 (maybe_print_script_not_found_warning): Use styled_string.
2989 * ada-lang.c (user_select_syms): Use styled_string.
2990
2991 2019-10-01 Tom Tromey <tom@tromey.com>
2992
2993 * p-lang.c (pascal_printstr): Use metadata style.
2994 * value.c (show_convenience): Use metadata style.
2995 * valprint.c (valprint_check_validity, val_print_optimized_out)
2996 (val_print_not_saved, val_print_unavailable)
2997 (val_print_invalid_address, generic_val_print, val_print)
2998 (value_check_printable, val_print_array_elements): Use metadata
2999 style.
3000 * ui-out.h (class ui_out) <field_fmt>: New overload.
3001 <do_field_fmt>: Add style parameter.
3002 * ui-out.c (ui_out::field_fmt): New overload.
3003 * typeprint.c (type_print_unknown_return_type)
3004 (val_print_not_allocated, val_print_not_associated): Use metadata
3005 style.
3006 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3007 parameter.
3008 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3009 * tracepoint.c (tvariables_info_1): Use metadata style.
3010 * stack.c (print_frame_arg, print_frame_info, print_frame)
3011 (info_frame_command_core): Use metadata style.
3012 * skip.c (info_skip_command): Use metadata style.
3013 * rust-lang.c (rust_print_enum): Use metadata style.
3014 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3015 metadata style.
3016 * python/py-framefilter.c (py_print_single_arg): Use metadata
3017 style.
3018 * printcmd.c (do_one_display, print_variable_and_value): Use
3019 metadata style.
3020 * p-valprint.c (pascal_val_print)
3021 (pascal_object_print_value_fields): Use metadata style.
3022 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3023 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3024 parameter.
3025 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3026 * m2-valprint.c (m2_print_long_set): Use metadata style.
3027 * m2-typeprint.c (m2_print_type): Use metadata style.
3028 * infcmd.c (print_return_value_1): Use metadata style.
3029 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3030 * f-valprint.c (info_common_command_for_block): Use metadata
3031 style.
3032 * f-typeprint.c (f_type_print_base): Use metadata style.
3033 * expprint.c (print_subexp_standard): Use metadata style.
3034 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3035 * cli/cli-style.h (class cli_style_option): Add constructor.
3036 (metadata_style): Declare.
3037 * cli/cli-style.c (metadata_style): New global.
3038 (_initialize_cli_style): Register metadata style.
3039 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3040 parameter.
3041 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3042 * c-typeprint.c (c_type_print_base_struct_union)
3043 (c_type_print_base_1): Use metadata style.
3044 * breakpoint.c (watchpoint_value_print)
3045 (print_one_breakpoint_location): Use metadata style.
3046 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3047 style.
3048 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3049 style.
3050 * ada-valprint.c (val_print_packed_array_elements, printstr)
3051 (print_field_values, ada_val_print_ref, ada_val_print): Use
3052 metadata style.
3053 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3054 style.
3055 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3056 style.
3057 * ada-lang.c (user_select_syms): Use metadata style.
3058
3059 2019-10-01 Tom Tromey <tom@tromey.com>
3060
3061 * cli/cli-cmds.c (pwd_command): Style output.
3062
3063 2019-10-01 Pedro Alves <palves@redhat.com>
3064 Tom Tromey <tom@tromey.com>
3065
3066 * symtab.c (print_symbol_info): Use %ps.
3067 (print_msymbol_info): Use %ps.
3068 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3069 * printcmd.c (print_variable_and_value): Use %ps.
3070 * macrocmd.c (show_pp_source_pos): Use %ps.
3071 * infrun.c (print_exited_reason): Use ui_out::message.
3072 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3073 (describe_other_breakpoints): Use ui_out::message and new
3074 formats.
3075 (say_where): Use new formats.
3076 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3077 and new formats.
3078
3079 2019-10-01 Pedro Alves <palves@redhat.com>
3080 Tom Tromey <tom@tromey.com>
3081
3082 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3083 (test_gdb_formats): New function.
3084 (run_tests): Call it.
3085 (test_format_specifier): Update.
3086 * utils.h (fputs_filtered): Update comment.
3087 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3088 (fputs_styled_unfiltered): Declare.
3089 * utils.c (fputs_styled_unfiltered): New function.
3090 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3091 (vfprintf_filtered): Update.
3092 (vfprintf_unfiltered, vprintf_filtered): Update.
3093 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3094 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3095 disallow_ui_out_field>: New constants.
3096 (enum class field_kind): New.
3097 (struct base_field_s, struct signed_field_s): New.
3098 (signed_field): New function.
3099 (struct string_field_s): New.
3100 (string_field): New function.
3101 (struct styled_string_s): New.
3102 (styled_string): New function.
3103 (class ui_out) <message>: Add comment.
3104 <vmessage, call_do_message>: New methods.
3105 <do_message>: Add style parameter.
3106 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3107 methods.
3108 (ui_out::message): Rewrite.
3109 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3110 parameter.
3111 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3112 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3113 gdb_extensions parameter.
3114 (class format_piece): Add parameter to constructor.
3115 (n_int_args): New field.
3116 * gdbsupport/format.c (format_pieces::format_pieces): Add
3117 gdb_extensions parameter. Handle '*'.
3118 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3119 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3120 vfprintf_styled_no_gdbfmt.
3121 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3122 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3123 unfiltered output.
3124 * ui-style.h (struct ui_file_style) <ptr>: New method.
3125
3126 2019-10-01 Tom Tromey <tom@tromey.com>
3127
3128 * unittests/format_pieces-selftests.c: Update. Add final format.
3129 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3130 empty literal pieces.
3131
3132 2019-10-01 Tom Tromey <tom@tromey.com>
3133
3134 * ui-out.h (enum class ui_out_style_kind): Remove.
3135 (class ui_out) <field_string, field_stsream, do_field_string>:
3136 Change type of "style".
3137 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3138 (ui_out::field_string): Update.
3139 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3140 of "style".
3141 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3142 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3143 * stack.c (print_frame_arg, print_frame_info, print_frame):
3144 Update.
3145 * source.c (print_source_lines_base): Update.
3146 * solib.c (info_sharedlibrary_command): Update.
3147 * skip.c (info_skip_command): Update.
3148 * record-btrace.c (btrace_call_history_src_line)
3149 (btrace_call_history): Update.
3150 * python/py-framefilter.c (py_print_frame): Update.
3151 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3152 "style".
3153 * mi/mi-out.c (mi_ui_out::do_table_header)
3154 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3155 (mi_ui_out::do_field_string): Update.
3156 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3157 Update.
3158 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3159 "style".
3160 * cli-out.c (cli_ui_out::do_table_header)
3161 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3162 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3163 (cli_ui_out::do_field_fmt): Update.
3164 * breakpoint.c (print_breakpoint_location): Update.
3165 (update_static_tracepoint): Update.
3166
3167 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3168
3169 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3170 conversion of gdb_datadir.
3171 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3172 remove not needed c_str ().
3173
3174 2019-09-30 Ali Tamur <tamur@google.com>
3175
3176 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3177 (dwarf2_string_attr): Likewise.
3178
3179 2019-09-30 Ali Tamur <tamur@google.com>
3180
3181 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3182 (process_full_type_unit): Likewise.
3183 (dump_die_shallow): Likewise.
3184 (cu_debug_loc_section): Likewise.
3185
3186 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3187
3188 * minsyms.c (compare_minimal_symbols): Rename to...
3189 (minimal_symbol_is_less_than): ...this, and adjust to STL
3190 conventions (return bool, take arguments as references)
3191 (minimal_symbol_reader::install): Call std::sort instead
3192 of qsort.
3193
3194 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3195
3196 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3197 hash and why.
3198 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3199 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3200
3201 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3204 * psympriv.h (add_psymbol_to_list): Move comment here and update
3205 it.
3206
3207 2019-09-29 Tom de Vries <tdevries@suse.de>
3208
3209 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3210 Use $tmpdir/$(basename "$output_file").dwz instead of
3211 "${output_file}.dwz".
3212
3213 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3214
3215 PR gdb/25045
3216 * hppa-linux-nat.c: Include gdbarch.h.
3217
3218 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3219
3220 * blockframe.c (find_pc_partial_function): Change return type to bool.
3221 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3222 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3223 (stub_gnu_ifunc_resolve_name): Likewise.
3224 * symtab.c (compare_filenames_for_search): Likewise.
3225 (compare_glob_filenames_for_search): Likewise.
3226 (matching_obj_sections): Likewise.
3227 (symbol_matches_domain): Likewise.
3228 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3229 (find_line_pc): Change return type to bool.
3230 (find_line_pc_range): Likewise.
3231 (producer_is_realview): Likewise.
3232 * symtab.h (symbol_matches_domain): Likewise.
3233 (find_pc_partial_function): Likewise.
3234 (find_pc_line_pc_range): Likewise.
3235 (in_gnu_ifunc_stub): Likewise.
3236 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3237 (find_line_pc): Likewise.
3238 (find_line_pc_range): Likewise.
3239 (matching_obj_sections): Likewise.
3240 (find_line_symtab): Change out parameter to bool.
3241 (producer_is_realview): Change return type to bool.
3242 (compare_filenames_for_search): Likewise.
3243 (compare_glob_filenames_for_search): Likewise.
3244
3245 2019-09-26 Tom Tromey <tom@tromey.com>
3246
3247 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3248 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3249 * gdb_usleep.h: Remove.
3250 * gdb_usleep.c: Remove.
3251 * utils.c: Don't include gdb_usleep.h.
3252
3253 2019-09-26 Tom Tromey <tromey@adacore.com>
3254
3255 * python/py-type.c (type_to_type_object): Call check_typedef
3256 for stub types.
3257
3258 2019-09-26 Tom Tromey <tom@tromey.com>
3259
3260 * utils.h (initialize_utils): Don't declare.
3261 * top.c (gdb_init): Don't call initialize_utils.
3262 * utils.c (initialize_utils): Remove. Move contents...
3263 (_initialize_utils): ... here.
3264
3265 2019-09-25 Tom Tromey <tom@tromey.com>
3266
3267 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3268 * utils.h (make_hex_string): Don't declare.
3269 * utils.c (make_hex_string): Remove.
3270
3271 2019-09-24 Tom de Vries <tdevries@suse.de>
3272
3273 PR gdb/23815
3274 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3275 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3276
3277 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3278
3279 * NEWS: Mention new simulator port for PRU.
3280
3281 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3282
3283 * ada-exp.y (write_object_remaining): Update.
3284 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3285 and eliminate the static buffer.
3286 (ada_decode_symbol): Update.
3287 (ada_la_decode): Update.
3288 (ada_sniff_from_mangled_name): Update.
3289 (is_valid_name_for_wild_match): Update.
3290 (ada_lookup_name_info::matches): Update and simplify.
3291 (name_matches_regex): Update.
3292 (ada_add_global_exceptions): Update.
3293 * ada-lang.h (ada_decode): Update signature.
3294 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3295 * dwarf-index-write.c (debug_names::insert): Update.
3296
3297 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3298
3299 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3300 formatting.
3301
3302 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3305 Change "nonzero" to "true" in documentation.
3306
3307 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3308
3309 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3310 (_initialize_darwin_solib): Don't set
3311 darwin_so_ops.lookup_lib_global_symbol.
3312 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3313 set_gdbarch_iterate_over_objfiles_in_search_order.
3314 (elf_lookup_lib_symbol): Rename to...
3315 (svr4_iterate_over_objfiles_in_search_order): this, and update
3316 to iterate semantics.
3317 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3318 * solib.c (solib_global_lookup): Remove.
3319 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3320 (solib_global_lookup): Remove.
3321 * symtab.c (lookup_global_or_static_symbol): Remove call to
3322 solib_global_lookup.
3323
3324 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3325
3326 * NEWS: Move entries about default MI version now being
3327 version 3, and about the GDB/MI fix for multi-location
3328 breakpoints to the "since GDB 8.3" section.
3329
3330 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3331
3332 GDB 8.3.1 released.
3333
3334 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3335
3336 * NEWS: Mention that Cell/B.E. debugging support was removed.
3337 * MAINTAINERS: Remove spu target.
3338
3339 * config/djgpp/fnchange.lst: Remove entries for removed files.
3340
3341 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3342 spu-multiarch.o, and spu-tdep.o.
3343 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3344 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3345 spu-multiarch.c, and spu-tdep.c.
3346 * spu-linux-nat.c: Remove file.
3347 * spu-multiarch.c: Remove file.
3348 * spu-tdep.c: Remove file.
3349 * spu-tdep.h: Remove file.
3350 * solib-spu.c: Remove file.
3351 * solib-spu.h: Remove file.
3352
3353 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3354 * configure.nat (spu-linux): Remove.
3355 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3356 solib-multiarch.o from gdb_target_obs.
3357 (spu*-*-*): Remove.
3358
3359 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3360 feature flag.
3361 (ppc_linux_no_features): Update.
3362 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3363 Cell/B.E. support.
3364 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3365 (tdesc_powerpc_cell64l): Likewise.
3366 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3367 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3368 Cell/B.E. support.
3369 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3370 Do not include "features/rs6000/powerpc-cell32l.c" or
3371 "features/rs6000/powerpc-cell64l.c".
3372 (ppc_linux_spu_section): Remove.
3373 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3374 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3375 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3376 (ppc_linux_spe_context_lookup): Remove.
3377 (ppc_linux_spe_context_inferior_created): Remove.
3378 (ppc_linux_spe_context_solib_loaded): Remove.
3379 (ppc_linux_spe_context_solib_unloaded): Remove.
3380 (ppc_linux_spe_context): Remove.
3381 (struct ppu2spu_cache): Remove.
3382 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3383 (struct ppu2spu_data): Remove.
3384 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3385 ppu2spu_unwind): Remove.
3386 (ppc_linux_init_abi): Remove Cell/B.E. support.
3387 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3388
3389 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3390 (rs6000/powerpc-cell64l-expedite): Likewise
3391 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3392 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3393 rs6000/powerpc-cell64l.xml.
3394 * features/rs6000/powerpc-cell32l.xml: Remove.
3395 * features/rs6000/powerpc-cell64l.xml: Likewise.
3396 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3397 * features/rs6000/powerpc-cell64l.c: Likewise.
3398 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3399 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3400 * regformats/reg-spu.dat: Remove.
3401
3402 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3403 * corelow.c (struct spuid_list): Remove.
3404 (add_to_spuid_list): Remove.
3405 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3406 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3407 (remote_protocol_features): Remove associated entries.
3408 (_initialize_remote): No longer initialize them.
3409 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3410 * linux-nat.c (SPUFS_MAGIC): Remove.
3411 (linux_proc_xfer_spu): Remove.
3412 (spu_enumerate_spu_ids): Remove.
3413 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3414 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3415 (linux_make_corefile_notes): No longer call it.
3416
3417 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3418 (cooked_write_test): Likewise.
3419
3420 2019-09-20 Tom Tromey <tom@tromey.com>
3421
3422 * NEWS: Mention case-sensitivity of TUI commands.
3423 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3424 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3425 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3426
3427 2019-09-20 Tom Tromey <tom@tromey.com>
3428
3429 * tui/tui-source.c (tui_source_window::set_contents): Use
3430 make_unique_xstrdup.
3431 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3432 make_unique_xstrdup.
3433
3434 2019-09-20 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-data.c: Remove separator comments.
3437 * tui/tui-layout.c: Remove separator comments.
3438 * tui/tui-win.c: Remove separator comments.
3439 * tui/tui-wingeneral.c: Remove separator comments.
3440
3441 2019-09-20 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui.h (strcat_to_buf): Don't declare.
3444 * tui/tui.c (strcat_to_buf): Remove.
3445
3446 2019-09-20 Tom Tromey <tom@tromey.com>
3447
3448 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3449 from "fullname".
3450 * tui/tui-source.c (tui_source_window::set_contents)
3451 (tui_source_window::location_matches_p)
3452 (tui_source_window::maybe_update): Update.
3453
3454 2019-09-20 Tom Tromey <tom@tromey.com>
3455
3456 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3457 Update.
3458 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3459 prefix.
3460 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3461 (tui_data_window::line_from_reg_element_no)
3462 (tui_data_window::first_reg_element_no_inline)
3463 (tui_data_window::show_registers)
3464 (tui_data_window::show_register_group)
3465 (tui_data_window::display_registers_from)
3466 (tui_data_window::display_registers_from_line)
3467 (tui_data_window::first_data_item_displayed)
3468 (tui_data_window::delete_data_content_windows)
3469 (tui_data_window::erase_data_content)
3470 (tui_data_window::do_scroll_vertical)
3471 (tui_data_window::refresh_window)
3472 (tui_data_window::check_register_values): Update.
3473
3474 2019-09-20 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3477 (struct tui_locator_window) <full_name, proc_name>: Now
3478 std::string.
3479 * tui/tui-stack.c (tui_locator_window::make_status_line)
3480 (tui_locator_window::set_locator_fullname)
3481 (tui_locator_window::set_locator_info): Update.
3482 * tui/tui-source.c (tui_source_window::set_contents)
3483 (tui_source_window::showing_source_p): Update.
3484
3485 2019-09-20 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3488 Don't call tui_locator_win_info_ptr.
3489
3490 2019-09-20 Tom Tromey <tom@tromey.com>
3491
3492 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3493
3494 2019-09-20 Tom Tromey <tom@tromey.com>
3495
3496 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3497 height for locator.
3498 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3499 * tui/tui-layout.c (show_source_disasm_command, show_data)
3500 (show_source_or_disasm_and_command): Use 1 as height for locator.
3501
3502 2019-09-20 Tom Tromey <tom@tromey.com>
3503
3504 * tui/tui.c (tui_enable): Update.
3505 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3506 Update.
3507 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3508 Update.
3509 * tui/tui-data.c (win_resized): Now bool.
3510 (tui_win_resized): Return bool.
3511 (tui_set_win_resized_to): Accept a bool.
3512
3513 2019-09-20 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3516 Change type of "refresh_values_only".
3517 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3518 type of "refresh_values_only".
3519
3520 2019-09-20 Tom Tromey <tom@tromey.com>
3521
3522 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3523 std::string.
3524 (tui_disassemble): Add "pos" parameter.
3525 (tui_disasm_window::set_contents): Simplify.
3526
3527 2019-09-20 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-winsource.h (struct tui_source_window_base)
3530 <show_source_content>: Now private.
3531 * tui/tui-winsource.c
3532 (tui_source_window_base::show_source_content): Don't handle empty
3533 content case.
3534
3535 2019-09-20 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-layout.c (show_source_disasm_command)
3538 (show_source_or_disasm_and_command): Don't call
3539 show_source_content.
3540
3541 2019-09-20 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3544 Declare.
3545 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3546 from tui_make_status_line.
3547 (tui_locator_window::rerender): Update.
3548
3549 2019-09-20 Tom Tromey <tom@tromey.com>
3550
3551 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3552 (tui_locator_window::rerender): Update.
3553
3554 2019-09-20 Tom Tromey <tom@tromey.com>
3555
3556 * tui/tui-winsource.h (struct tui_source_window_base)
3557 <~tui_source_window_base>: Don't declare.
3558 <fullname>: Remove.
3559 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3560 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3561 member.
3562 * tui/tui-source.c (tui_source_window::set_contents): Update.
3563 (tui_source_window::location_matches_p)
3564 (tui_source_window::maybe_update): Update.
3565
3566 2019-09-20 Tom Tromey <tom@tromey.com>
3567
3568 * tui/tui-winsource.h (~tui_source_element): Remove.
3569 (tui_source_element): Update.
3570 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3571 * tui/tui-winsource.c (tui_show_source_line): Update.
3572 * tui/tui-source.c (tui_source_window::set_contents): Update.
3573 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3574
3575 2019-09-20 Tom Tromey <tom@tromey.com>
3576
3577 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3578 declare.
3579 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3580 tui_clear_source_windows_detail.
3581 * tui/tui-winsource.h (struct tui_source_window_base)
3582 <clear_detail>: Don't declare.
3583 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3584 Remove.
3585 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3586
3587 2019-09-20 Tom Tromey <tromey@adacore.com>
3588
3589 PR ada/24919:
3590 * block.c (contained_in): Fix final return value.
3591
3592 2019-09-20 Alan Modra <amodra@gmail.com>
3593
3594 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3595 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3596 (read_indirect_string_from_dwz): Use bfd accessor.
3597 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3598 * machoread.c (macho_symfile_read_all_oso): Likewise.
3599 * solib.c (solib_bfd_open): Likewise.
3600
3601 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3602
3603 * eval.c: Move declaration of overload_resolution to...
3604 * value.h: ...here.
3605
3606 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3607
3608 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3609 * arm-linux-tdep.c: Likewise.
3610 * arm-nbsd-nat.c: Likewise.
3611 * arm-tdep.h: Declare arm_apcs_32.
3612 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3613
3614 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3615
3616 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3617 * dwarf2read.h: Declare dwarf_always_disassemble.
3618
3619 2019-09-19 Tom de Vries <tdevries@suse.de>
3620
3621 PR gdb/25009
3622 * source-cache.c (source_cache::ensure): Catch exception thrown during
3623 construction of the highlighter.
3624
3625 2019-09-18 Alan Modra <amodra@gmail.com>
3626
3627 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3628 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3629 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3630 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3631 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3632 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3633 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3634 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3635 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3636 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3637 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3638 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3639 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3640 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3641 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3642 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3643 * mi/mi-interp.c: Update throughout for bfd section macro and
3644 function changes.
3645 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3646 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3647
3648 2019-09-18 Tom Tromey <tom@tromey.com>
3649
3650 * NEWS: Add entry.
3651 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3652 call rl_initialize.
3653 (tui_enable): Do not call rl_initialize.
3654
3655 2019-09-18 Christian Groessler <chris@groessler.org>
3656
3657 * alpha-linux-nat.c: Include gdbarch.h.
3658
3659 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3660
3661 * ui-file.c: Include cli/cli-style.h.
3662 (term_cli_styling): Remove cli_styling declaration.
3663
3664 2019-09-18 Alan Modra <amodra@gmail.com>
3665
3666 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3667 to bfd_asymbol_section.
3668
3669 2019-09-18 Alan Modra <amodra@gmail.com>
3670
3671 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3672 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3673 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3674
3675 2019-09-18 Alan Modra <amodra@gmail.com>
3676
3677 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3678 * spu-linux-nat.c (spu_bfd_open): Likewise.
3679
3680 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3681
3682 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3683 to bool to match definition in dwarf2read.c.
3684
3685 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3686
3687 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3688 (print_signatures): Likewise.
3689 (trust_pad_over_xvs): Likewise.
3690 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3691 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3692 * arm-linux-nat.c (arm_apcs_32): Likewise.
3693 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3694 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3695 * arm-tdep.c (arm_debug): Likewise.
3696 (arm_apcs_32): Likewise.
3697 * auto-load.c (debug_auto_load): Likewise.
3698 (auto_load_gdb_scripts): Likewise.
3699 (global_auto_load): Likewise.
3700 (auto_load_local_gdbinit): Likewise.
3701 (auto_load_local_gdbinit_loaded): Likewise.
3702 * auto-load.h (global_auto_load): Likewise.
3703 (auto_load_local_gdbinit): Likewise.
3704 (auto_load_local_gdbinit_loaded): Likewise.
3705 * breakpoint.c (disconnected_dprintf): Likewise.
3706 (breakpoint_proceeded): Likewise.
3707 (automatic_hardware_breakpoints): Likewise.
3708 (always_inserted_mode): Likewise.
3709 (target_exact_watchpoints): Likewise.
3710 (_initialize_breakpoint): Update.
3711 * breakpoint.h (target_exact_watchpoints): Change to bool.
3712 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3713 * cli/cli-cmds.c (trace_commands): Likewise.
3714 * cli/cli-cmds.h (trace_commands): Likewise.
3715 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3716 to bool*.
3717 * cli/cli-logging.c (logging_overwrite): Change to bool.
3718 (logging_redirect): Likewise.
3719 (debug_redirect): Likewise.
3720 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3721 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3722 to bool.
3723 <boolean_option_def>: Update.
3724 (struct flag_option_def): Change default type of Context to bool
3725 from int.
3726 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3727 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3728 (get_setshow_command_value_string): Likewise.
3729 * cli/cli-style.c (cli_styling): Change to bool.
3730 (source_styling): Likewise.
3731 * cli/cli-style.h (source_styling): Likewise.
3732 (cli_styling): Likewise.
3733 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3734 to bool.
3735 * command.h (var_types): Update comment.
3736 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3737 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3738 bool.
3739 (debug_compile_cplus_scopes): Likewise.
3740 * compile/compile-internal.h (compile_debug): Likewise.
3741 * compile/compile.c (compile_debug): Likewise.
3742 (struct compile_options) <raw>: Likewise.
3743 * cp-support.c (catch_demangler_crashes): Likewise.
3744 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3745 (usr_cmd_cris_dwarf2_cfi): Likewise.
3746 * csky-tdep.c (csky_debug): Likewise.
3747 * darwin-nat.c (enable_mach_exceptions): Likewise.
3748 * dcache.c (dcache_enabled_p): Likewise.
3749 * defs.h (info_verbose): Likewise.
3750 * demangle.c (demangle): Likewise.
3751 (asm_demangle): Likewise.
3752 * dwarf-index-cache.c (debug_index_cache): Likewise.
3753 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3754 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3755 * dwarf2read.c (check_physname): Likewise.
3756 (use_deprecated_index_sections): Likewise.
3757 (dwarf_always_disassemble): Likewise.
3758 * eval.c (overload_resolution): Likewise.
3759 * event-top.c (set_editing_cmd_var): Likewise.
3760 (exec_done_display_p): Likewise.
3761 * event-top.h (set_editing_cmd_var): Likewise.
3762 (exec_done_display_p): Likewise.
3763 * exec.c (write_files): Likewise.
3764 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3765 (debug_fbsd_nat): Likewise.
3766 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3767 Likewise.
3768 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3769 <backtrace_past_entry> Likewise.
3770 * gdb-demangle.h (demangle): Likewise.
3771 (asm_demangle): Likewise.
3772 * gdb_bfd.c (bfd_sharing): Likewise.
3773 * gdbcore.h (write_files): Likewise.
3774 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3775 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3776 * gdbthread.h (print_thread_events): Likewise.
3777 * gdbtypes.c (opaque_type_resolution): Likewise.
3778 (strict_type_checking): Likewise.
3779 * gnu-nat.c (gnu_debug_flag): Likewise.
3780 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3781 * guile/scm-param.c (pascm_variable): Add boolval.
3782 (add_setshow_generic): Update.
3783 (pascm_param_value): Update.
3784 (pascm_set_param_value_x): Update.
3785 * hppa-tdep.c (hppa_debug): Change to bool..
3786 * infcall.c (may_call_functions_p): Likewise.
3787 (coerce_float_to_double_p): Likewise.
3788 (unwind_on_signal_p): Likewise.
3789 (unwind_on_terminating_exception_p): Likewise.
3790 * infcmd.c (startup_with_shell): Likewise.
3791 * inferior.c (print_inferior_events): Likewise.
3792 * inferior.h (startup_with_shell): Likewise.
3793 (print_inferior_events): Likewise.
3794 * infrun.c (step_stop_if_no_debug): Likewise.
3795 (detach_fork): Likewise.
3796 (debug_displaced): Likewise.
3797 (disable_randomization): Likewise.
3798 (non_stop): Likewise.
3799 (non_stop_1): Likewise.
3800 (observer_mode): Likewise.
3801 (observer_mode_1): Likewise.
3802 (set_observer_mode): Update.
3803 (sched_multi): Change to bool.
3804 * infrun.h (debug_displaced): Likewise.
3805 (sched_multi): Likewise.
3806 (step_stop_if_no_debug): Likewise.
3807 (non_stop): Likewise.
3808 (disable_randomization): Likewise.
3809 * linux-tdep.c (use_coredump_filter): Likewise.
3810 (dump_excluded_mappings): Likewise.
3811 * linux-thread-db.c (auto_load_thread_db): Likewise.
3812 (check_thread_db_on_load): Likewise.
3813 * main.c (captured_main_1): Update.
3814 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3815 xx2_opt, boolean_opt>: Change to bool.
3816 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3817 * maint.c (maintenance_profile_p): Likewise.
3818 (per_command_time): Likewise.
3819 (per_command_space): Likewise.
3820 (per_command_symtab): Likewise.
3821 * memattr.c (inaccessible_by_default): Likewise.
3822 * mi/mi-main.c (mi_async): Likewise.
3823 (mi_async_1): Likewise.
3824 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3825 * nat/fork-inferior.h (startup_with_shell): Likewise.
3826 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3827 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3828 * nios2-tdep.c (nios2_debug): Likewise.
3829 * or1k-tdep.c (or1k_debug): Likewise.
3830 * parse.c (parser_debug): Likewise.
3831 * parser-defs.h (parser_debug): Likewise.
3832 * printcmd.c (print_symbol_filename): Likewise.
3833 * proc-api.c (procfs_trace): Likewise.
3834 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3835 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3836 (set_parameter_value): Update.
3837 (add_setshow_generic): Update.
3838 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3839 to bool*.
3840 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3841 int*.
3842 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3843 * record-btrace.c (record_btrace_target::store_registers): Update.
3844 * record-full.c (record_full_memory_query): Change to bool.
3845 (record_full_stop_at_limit): Likewise.
3846 * record-full.h (record_full_memory_query): Likewise.
3847 * remote-notif.c (notif_debug): Likewise.
3848 * remote-notif.h (notif_debug): Likewise.
3849 * remote.c (use_range_stepping): Likewise.
3850 (interrupt_on_connect): Likewise.
3851 (remote_break): Likewise.
3852 * ser-tcp.c (tcp_auto_retry): Likewise.
3853 * ser-unix.c (serial_hwflow): Likewise.
3854 * skip.c (debug_skip): Likewise.
3855 * solib-aix.c (solib_aix_debug): Likewise.
3856 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3857 (spu_auto_flush_cache_p): Likewise.
3858 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3859 Likewise.
3860 (struct info_print_options) <quiet>: Likewise.
3861 * symfile-debug.c (debug_symfile): Likewise.
3862 * symfile.c (auto_solib_add): Likewise.
3863 (separate_debug_file_debug): Likewise.
3864 * symfile.h (auto_solib_add): Likewise.
3865 (separate_debug_file_debug): Likewise.
3866 * symtab.c (basenames_may_differ): Likewise.
3867 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3868 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3869 (struct info_types_options) <quiet>: Likewise.
3870 * symtab.h (demangle): Likewise.
3871 (basenames_may_differ): Likewise.
3872 * target-dcache.c (stack_cache_enabled_1): Likewise.
3873 (code_cache_enabled_1): Likewise.
3874 * target.c (trust_readonly): Likewise.
3875 (may_write_registers): Likewise.
3876 (may_write_memory): Likewise.
3877 (may_insert_breakpoints): Likewise.
3878 (may_insert_tracepoints): Likewise.
3879 (may_insert_fast_tracepoints): Likewise.
3880 (may_stop): Likewise.
3881 (auto_connect_native_target): Likewise.
3882 (target_stop_and_wait): Update.
3883 (target_async_permitted): Change to bool.
3884 (target_async_permitted_1): Likewise.
3885 (may_write_registers_1): Likewise.
3886 (may_write_memory_1): Likewise.
3887 (may_insert_breakpoints_1): Likewise.
3888 (may_insert_tracepoints_1): Likewise.
3889 (may_insert_fast_tracepoints_1): Likewise.
3890 (may_stop_1): Likewise.
3891 * target.h (target_async_permitted): Likewise.
3892 (may_write_registers): Likewise.
3893 (may_write_memory): Likewise.
3894 (may_insert_breakpoints): Likewise.
3895 (may_insert_tracepoints): Likewise.
3896 (may_insert_fast_tracepoints): Likewise.
3897 (may_stop): Likewise.
3898 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3899 (make_thread_apply_all_options_def_group): Change argument from int*
3900 to bool*.
3901 (thread_apply_all_command): Update.
3902 (print_thread_events): Change to bool.
3903 * top.c (confirm): Likewise.
3904 (command_editing_p): Likewise.
3905 (history_expansion_p): Likewise.
3906 (write_history_p): Likewise.
3907 (info_verbose): Likewise.
3908 * top.h (confirm): Likewise.
3909 (history_expansion_p): Likewise.
3910 * tracepoint.c (disconnected_tracing): Likewise.
3911 (circular_trace_buffer): Likewise.
3912 * typeprint.c (print_methods): Likewise.
3913 (print_typedefs): Likewise.
3914 * utils.c (debug_timestamp): Likewise.
3915 (sevenbit_strings): Likewise.
3916 (pagination_enabled): Likewise.
3917 * utils.h (sevenbit_strings): Likewise.
3918 (pagination_enabled): Likewise.
3919 * valops.c (overload_resolution): Likewise.
3920 * valprint.h (struct value_print_options) <prettyformat_arrays,
3921 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3922 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3923 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3924 Likewise.
3925 * windows-nat.c (new_console): Likewise.
3926 (cygwin_exceptions): Likewise.
3927 (new_group): Likewise.
3928 (debug_exec): Likewise.
3929 (debug_events): Likewise.
3930 (debug_memory): Likewise.
3931 (debug_exceptions): Likewise.
3932 (useshell): Likewise.
3933 * windows-tdep.c (maint_display_all_tib): Likewise.
3934 * xml-support.c (debug_xml): Likewise.
3935
3936 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3937
3938 * source.c (prepare_path_for_appending): New function.
3939 (openp): Make use of new function.
3940 (find_and_open_source): Search for the compilation directory and
3941 source file as a relative path beneath the directory search path.
3942
3943 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * source-cache.c (source_cache::get_line_charpos): Catch
3946 exceptions and return false, this matches the behaviour documented
3947 in the header file.
3948
3949 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3950
3951 * ada-tasks.c (info_task): Remove quoting of the task's name.
3952
3953 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3954
3955 * symfile.c (auto_solib_add): Replace comment with a reference
3956 to the header file.
3957
3958 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3959
3960 * NEWS: Mention that gdb can now be compiled with Python 3
3961 on Windows.
3962
3963 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * maint.c (maint_print_section_data::maint_print_section_data):
3966 Force use of 'float log10 (float)' by casting the argument to
3967 float.
3968
3969 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * maint.c: Add 'cmath' include.
3972 (struct maint_print_section_data): New structure.
3973 (print_section_index): New function.
3974 (print_bfd_section_info): Add header comment, small whitespace
3975 cleanup, and update to call new print_section_index function.
3976 (print_objfile_section_info): Likewise.
3977 (maint_obj_section_from_bfd_section): New function.
3978 (print_bfd_section_info_maybe_relocated): New function.
3979 (maintenance_info_sections): Add header comment, always use
3980 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3981
3982 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3985 inner scope, add check that the objfile has psymtabs before
3986 checking psymtabs_addrmap.
3987 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3988
3989 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3990
3991 * NEWS: Announce that Ada task names are now shown at more places,
3992 and between quotes (except in info task output).
3993 * gdb/ada-tasks.c (task_to_str): New function.
3994 (display_current_task_id): Call task_to_str.
3995 (task_command_1): Likewise.
3996 (print_ada_task_info): In non-mi mode, Properly align headers and data
3997 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3998
3999 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000
4001 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4002 prstatus.pr_lwp.pr_info instead of making it up.
4003
4004 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4005
4006 * auto-load.c (auto_load_expand_dir_vars): Update.
4007 * defs.h (gdb_datadir): Change to std::string.
4008 (python_libdir): Likewise.
4009 (relocate_gdb_directory): Change return type to std::string.
4010 * guile/guile.c (gdbscm_data_directory): Update.
4011 (initialize_scheme_side): Update.
4012 * jit.c (jit_reader_dir): Change to std::string.
4013 (jit_reader_load_command): Update.
4014 * main.c (gdb_datadir): Change to std::string.
4015 (python_libdir): Likewise.
4016 (set_gdb_data_directory): Update.
4017 (relocate_path): Change to return std::string.
4018 (relocate_gdb_directory): Change to return std::string.
4019 (relocate_gdbinit_path_maybe_in_datadir): Update.
4020 (captured_main_1): Update.
4021 * python/python.c (do_start_initialization): Update.
4022 * top.c (show_gdb_datadir): Update.
4023 * xml-syscall.c (xml_init_syscalls_info): Update.
4024 (init_syscalls_info): Update.
4025
4026 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4027
4028 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4029 out of get_init_files.
4030 (get_init_files): Update.
4031
4032 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4033
4034 * main.c (get_init_files): Change to use std::string.
4035 (captured_main_1): Update.
4036 (print_gdb_help): Update.
4037
4038 2019-09-11 Ali Tamur <tamur@google.com>
4039
4040 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4041 implementation.
4042
4043 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4044
4045 * dbxread.c (read_dbx_symtab): Update.
4046 * dwarf2read.c (load_partial_dies): Update.
4047 * mdebugread.c (parse_partial_symbols): Update.
4048 (handle_psymbol_enumerators): Update.
4049 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4050 * psymtab.c (add_psymbol_to_bcache): Likewise.
4051 (add_psymbol_to_list): Likewise.
4052 * symtab.c (symbol_set_names): Likewise.
4053 * symtab.h (symbol_set_names): Likewise.
4054 * xcoffread.c (scan_xcoff_symtab): Update.
4055
4056 2019-09-11 Tom Tromey <tom@tromey.com>
4057
4058 * symfile-mem.c (symbol_file_add_from_memory): Use
4059 bfd_set_filename.
4060 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4061 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4062
4063 2019-09-10 Tom Tromey <tromey@adacore.com>
4064
4065 * dwarf-index-write.c (write_psymbols): Extend error message.
4066 (debug_names::insert): Add Ada code.
4067 (debug_names::write_psymbols): Remove Ada check.
4068 (debug_names) <m_string_obstack>: New member.
4069 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4070 (gdb_index_symbol_name_matcher::matches): Remove.
4071 (mapped_index_base::find_name_components_bounds): Add "lang"
4072 parameter.
4073 (mapped_index_base::build_name_components): Also split names
4074 according to Ada syntax.
4075 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4076 type of "match_callback".
4077 (check_match, check_find_bounds_finds)
4078 (dw2_expand_symtabs_matching): Update.
4079 (dw2_debug_names_iterator): Add new constructor.
4080 (dw2_debug_names_map_matching_symbols): New function.
4081 (dw2_debug_names_expand_symtabs_matching): Update.
4082 (dwarf2_debug_names_functions): Use
4083 dw2_debug_names_map_matching_symbols.
4084
4085 2019-09-10 Tom Tromey <tromey@adacore.com>
4086
4087 * dwarf2read.c (dw2_get_file_names_reader): Add the
4088 CU's file name to the results.
4089
4090 2019-09-10 Tom Tromey <tromey@adacore.com>
4091
4092 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4093 map_matching_symbols. Update.
4094 * dwarf2read.c (dw2_map_matching_symbols): Update.
4095 * psymtab.c (match_partial_symbol): Change type; update.
4096 (psym_map_matching_symbols): Likewise.
4097 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4098 type; update.
4099 * symfile.h (struct quick_symbol_functions)
4100 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4101 Remove "match".
4102
4103 2019-09-10 Tom Tromey <tromey@adacore.com>
4104
4105 * psymtab.c (map_block): Remove.
4106 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4107 * symtab.c (iterate_over_symbols_terminated): New function.
4108 * symtab.c (iterate_over_symbols_terminated): Declare.
4109
4110 2019-09-10 Tom Tromey <tromey@adacore.com>
4111
4112 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4113 * language.h (struct language_defn) <la_iterate_over_symbols>:
4114 Return bool.
4115 * symtab.c (iterate_over_symbols): Return bool.
4116 * symtab.h (iterate_over_symbols): Return bool.
4117
4118 2019-09-10 Tom Tromey <tromey@adacore.com>
4119
4120 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4121 (add_nonlocal_symbols): Update.
4122 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4123 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4124 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4125 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4126 Change type of "callback". Remove "data".
4127
4128
4129 2019-09-09 Ali Tamur <tamur@google.com>
4130
4131 * dwarf2read.c (comp_unit_head): Update comment.
4132 (dwarf2_dwo_name): New function declaration.
4133 (dwarf_unit_type_name): New function declaration.
4134 (read_comp_unit_head): Add support for new compilation units,
4135 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4136 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4137 (currently named as "signature") in their header. Also clarify error
4138 messages.
4139 (lookup_dwo_id): New function. Returns the dwo id of the given
4140 compile unit.
4141 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4142 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4143 functions.
4144 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4145 (dwarf2_dwo_name): Get the dwo name if present.
4146 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4147 purposes.
4148
4149 2019-09-09 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4152
4153 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4154
4155 * python/python.c (do_start_initialization): Make progname_copy static,
4156 to avoid a leak report.
4157
4158 2019-09-08 Tom Tromey <tom@tromey.com>
4159
4160 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4161
4162 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4165 Change type to gdb::optional<block_enum>.
4166 (dw2_symtab_iter_init): Change block_index parameter type
4167 to gdb::optional<block_enum>.
4168 (dw2_lookup_symbol): Change block_index parameter
4169 type to block_enum.c
4170 (dw2_debug_names_lookup_symbol): Likewise.
4171 * psymtab.c (psym_lookup_symbol): Likewise.
4172 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4173 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4174 Likewise.
4175
4176 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4177
4178 * defs.h (relocate_gdb_directory): Change int to bool in
4179 signature and rename flag to relocatable.
4180 * main.c (relocate_path): Likewise.
4181 (relocate_gdb_directory): Likewise.
4182
4183 2019-09-06 Alan Modra <amodra@gmail.com>
4184
4185 * coffread.c (coff_symfile_read): Constify filename variable.
4186 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4187 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4188 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4189 * solib.c (reload_shared_libraries_1): Likewise.
4190 * symfile.c (reread_symbols): Likewise.
4191 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4192 * solib-darwin.c (darwin_bfd_open): Likewise.
4193 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4194
4195 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4196
4197 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4198 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4199
4200 2019-09-03 Tom Tromey <tromey@adacore.com>
4201
4202 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4203 types.
4204 (has_negatives): Unbias a range type bound.
4205 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4206 * gdbtypes.c (operator==): Handle new field.
4207 (create_range_type): Add "bias" parameter.
4208 (create_static_range_type, resolve_dynamic_range): Update.
4209 * gdbtypes.h (struct range_bounds) <bias>: New member.
4210 (create_range_type): Add bias parameter.
4211 * printcmd.c (print_scalar_formatted): Unbias range types.
4212 * value.c (unpack_long): Unbias range types.
4213 (pack_long): Bias range types.
4214
4215 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4216
4217 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4218 probe arguments.
4219
4220 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4221
4222 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4223 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4224 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4225 (compile_probe_arg): Likewise.
4226 * probe.h (get_argument_count): Likewise.
4227 * solib-svr4.c (solib_event_probe_action): Likewise.
4228 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4229
4230 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4231
4232 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4233 code to here...
4234 (svr4_create_solib_event_breakpoints): ...from here.
4235
4236 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4237
4238 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4239 suffix from warning message.
4240
4241 2019-08-30 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-winsource.h (struct tui_source_window_base)
4244 <refresh_all>: Don't declare.
4245 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4246 Remove.
4247 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4248 tui_show_locator_content.
4249 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4250 declare.
4251 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4252 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4253 declare.
4254
4255 2019-08-30 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4258
4259 2019-08-30 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4262 Remove unnecessary forward declarations.
4263
4264 2019-08-30 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4267 rerender.
4268 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4269 tui_show_locator_content.
4270
4271 2019-08-30 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4274 (tui_locator_window::rerender): Rewrite using body of previous
4275 tui_show_locator_content.
4276
4277 2019-08-30 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4280 set_locator_fullname>: New methods.
4281 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4282 Rename from tui_set_locator_fullname.
4283 (tui_locator_window::set_locator_info): Rename from
4284 tui_set_locator_info. Return bool.
4285 (tui_update_locator_fullname, tui_show_frame_info): Update.
4286
4287 2019-08-30 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4290
4291 2019-08-30 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4294 call touchwin.
4295
4296 2019-08-30 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-wingeneral.c (box_win): Assume win_info and
4299 win_info->handle cannot be NULL.
4300
4301 2019-08-30 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4304 refresh_window>: Declare.
4305 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4306 resize.
4307 (tui_data_item_window::rerender): Rename from
4308 tui_display_register.
4309 (tui_data_item_window::refresh_window): New method.
4310 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4311 no-op.
4312
4313 2019-08-30 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4316 regs_column_count, current_group>: Move later. Now private.
4317 <get_current_group>: New method.
4318 * tui/tui-regs.c (tui_reg_command): Update.
4319 * tui/tui-layout.c (tui_set_layout): Update.
4320
4321 2019-08-30 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4324 (tui_data_window::rerender): Don't call
4325 check_and_display_highlight_if_needed.
4326 (tui_data_window::refresh_all): Remove call to
4327 erase_data_content.
4328
4329 2019-08-30 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4332 (tui_data_window::display_registers_from)
4333 (tui_data_window::display_reg_element_at_line)
4334 (tui_data_window::display_registers_from_line): Remove checks of
4335 "empty".
4336
4337 2019-08-30 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4340 Don't declare.
4341 * tui/tui-regs.c (tui_data_window::show_registers): Call
4342 rerender.
4343 (tui_data_window::rerender): Rename from display_all_data.
4344 (tui_data_window::rerender): Remove old implementation.
4345
4346 2019-08-30 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4349 text.
4350 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4351
4352 2019-08-29 Bernhard Wodok <barto@gmx.net>
4353 Sergio Durigan Junior <sergiodj@redhat.com>
4354
4355 PR win32/24284
4356 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4357
4358 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4361 when searching for types.
4362
4363 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * f-lang.c (f_language_defn): Use f_print_typedef.
4366 * f-lang.h (f_print_typedef): Declare.
4367 * f-typeprint.c (f_print_typedef): Define.
4368
4369 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4370
4371 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4372
4373 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * cli/cli-utils.c (info_print_options_defs): Delete.
4376 (make_info_print_options_def_group): Delete.
4377 (extract_info_print_options): Delete.
4378 (info_print_command_completer): Delete.
4379 (info_print_args_help): Add extra parameter, and optionally
4380 include text about -n flag.
4381 * cli/cli-utils.h (struct info_print_options): Delete.
4382 (extract_info_print_options): Delete declaration.
4383 (info_print_command_completer): Delete declaration.
4384 (info_print_args_help): Add extra parameter, extend header
4385 comment.
4386 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4387 search_symbols.
4388 * stack.c (struct info_print_options): New type.
4389 (info_print_options_defs): New file scoped variable.
4390 (make_info_print_options_def_group): New static function.
4391 (info_print_command_completer): New static function.
4392 (info_locals_command): Update to use new local functions.
4393 (info_args_command): Likewise.
4394 (_initialize_stack): Add extra parameter to calls to
4395 info_print_args_help.
4396 * symtab.c (search_symbols): Add extra parameter, use this to
4397 possibly excluse non-debug symbols.
4398 (symtab_symbol_info): Add extra parameter, which is passed on to
4399 search_symbols.
4400 (struct info_print_options): New type.
4401 (info_print_options_defs): New file scoped variable.
4402 (make_info_print_options_def_group): New static function.
4403 (info_print_command_completer): New static function.
4404 (info_variables_command): Update to use local functions, and pass
4405 extra parameter through to symtab_symbol_info.
4406 (info_functions_command): Likewise.
4407 (info_types_command): Pass additional argument through to
4408 symtab_symbol_info.
4409 (rbreak_command): Pass extra argument to search_symbols.
4410 (_initialize_symtab): Add extra arguments for calls to
4411 info_print_args_help, and update help text for 'info variables',
4412 'whereis', and 'info functions' commands.
4413 * symtab.h (search_symbols): Add extra argument to declaration.
4414 * NEWS: Mention new flags.
4415
4416 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4417
4418 * symtab.c (lookup_static_symbol): Call the new function (and move
4419 it down to be next to lookup_global_symbol).
4420 (struct global_sym_lookup_data): Add block_enum member and rename to...
4421 (struct global_or_static_sym_lookup_data): ...this.
4422 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4423 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4424 (lookup_symbol_global_or_static_iterator_cb): ...this.
4425 (lookup_global_or_static_symbol): New function.
4426 (lookup_global_symbol): Call new function.
4427
4428 2019-08-26 Tom de Vries <tdevries@suse.de>
4429
4430 PR c++/24852
4431 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4432 when pc_probe.prob == NULL.
4433
4434 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4437 variable symbol_linkage to symbol_linkage_.
4438
4439 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4442 represent whether the symbol is static, dynamic, or we don't
4443 know.
4444
4445 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4446
4447 * gdb/rx-tdep.c (rx_register_names): New.
4448 (rx_register_name): Delete.
4449 (rx_psw_type): Delete.
4450 (rx_fpsw_type): Delete.
4451 (rx_register_type): Delete.
4452 (rx_gdbarch_init): Convert target-descriptions.
4453 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4454 * gdb/features/Makefile: Add rx.xml.
4455 * gdb/features/rx.xml: New.
4456 * gdb/features/rx.c: Generated.
4457 * gdb/NEWS: Mention target description support.
4458
4459 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4460
4461 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4462 *slot_ptr.
4463
4464 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4465
4466 * configure.ac: Don't check for 'dlfcn.h' (moved to
4467 gdbsupport/common.m4).
4468 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4469 'gdbsupport/'.
4470 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4471 * compile/compile-c-support.c: Include
4472 'gdbsupport/gdb-dlfcn.h'.
4473 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4474 * gdb-dlfcn.c: Move to...
4475 * gdbsupport/gdb-dlfcn.c: ... here.
4476 * gdb-dlfcn.h: Move to...
4477 * gdbsupport/gdb-dlfcn.h: ... here.
4478
4479 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4480
4481 * nios2-tdep.c (struct reg_value): Improve comments. Make
4482 the offset field signed.
4483
4484 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4485
4486 * python/lib/gdb/__init__.py (_execute_file): New function.
4487 * python/python.c (python_run_simple_file): Call gdb._execute_file
4488 on Windows.
4489
4490 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4493 all uses as this was never set to anything but a zero value.
4494
4495 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4496
4497 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4498
4499 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4500
4501 * tui/tui-data.h (tui_gen_win_info): Add an =default
4502 move constructor, required by some GCC versions.
4503
4504 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4505
4506 * go32-nat.c (go32_sysinfo): Add hygon_p.
4507
4508 2019-08-20 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4511 line_from_reg_element_no, first_reg_element_no_inline,
4512 display_all_data, delete_data_content_windows,
4513 erase_data_content>: Now private.
4514
4515 2019-08-20 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4518 (tui_unhighlight_win, tui_highlight_win)
4519 (tui_win_info::make_window): Update.
4520 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4521
4522 2019-08-20 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4525 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4526 (MAX_PID_WIDTH): Move to tui-stack.c.
4527 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4528 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4529 (MAX_PID_WIDTH): Move from tui-data.h.
4530
4531 2019-08-20 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4534 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4535 (box_win): Update.
4536 (tui_gen_win_info::make_window): Rename from tui_make_window.
4537 (tui_win_info::make_window): New method.
4538 (tui_gen_win_info::make_visible): Update.
4539 * tui/tui-source.c (tui_source_window::set_contents): Update.
4540 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4541 (tui_data_window::display_registers_from): Update.
4542 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4543 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4544 Declare.
4545 <can_box>: Remove.
4546 <title>: Remove.
4547 (struct tui_win_info) <make_window>: Declare.
4548 <can_box>: Now virtual.
4549 <title>: New member.
4550 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4551 * tui/tui-command.c (tui_cmd_window::resize): Update.
4552
4553 2019-08-20 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4556 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4557 (tui_data_window::check_register_values): Update.
4558
4559 2019-08-20 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-regs.h (struct tui_data_window): Use
4562 DISABLE_COPY_AND_ASSIGN.
4563 <regs_content>: Change type, removing unique_ptr.
4564 <tui_data_window>: Add move constructor.
4565 * tui/tui-regs.c (tui_data_window::show_registers)
4566 (tui_data_window::show_register_group)
4567 (tui_data_window::display_registers_from)
4568 (tui_data_window::display_registers_from)
4569 (tui_data_window::first_data_item_displayed)
4570 (tui_data_window::delete_data_content_windows)
4571 (tui_data_window::rerender, tui_data_window::refresh_window)
4572 (tui_data_window::check_register_values): Update.
4573
4574 2019-08-20 Tom Tromey <tom@tromey.com>
4575
4576 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4577 show_register_group>: Declare.
4578 (tui_show_register_group): Don't declare.
4579 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4580 tui_show_registers.
4581 (tui_data_window::show_register_group): Rename from
4582 tui_show_register_group.
4583 (tui_data_window::check_register_values, tui_reg_command):
4584 Update.
4585 * tui/tui-layout.c (tui_set_layout): Update.
4586
4587 2019-08-20 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4590 Declare.
4591 (tui_check_register_values): Don't declare.
4592 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4593 from tui_check_register_values.
4594 * tui/tui-hooks.c (tui_register_changed): Update.
4595
4596 2019-08-20 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-regs.c (tui_reg_layout): Move later.
4599 (tui_show_registers): Don't enable TUI mode or change layout.
4600
4601 2019-08-20 Tom Tromey <tom@tromey.com>
4602
4603 * tui/tui-regs.h (struct tui_data_item_window)
4604 <~tui_data_item_window>: Remove.
4605 <content>: Now a unique_xmalloc_ptr.
4606 * tui/tui-regs.c (tui_register_format): Return a
4607 unique_xmalloc_ptr.
4608 (tui_get_register): Update.
4609 (~tui_data_item_window): Remove.
4610 (tui_data_window::display_registers_from, tui_display_register):
4611 Update.
4612 * tui/tui-io.h (tui_expand_tabs): Update.
4613 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4614 Remove "col" parameter.
4615
4616 2019-08-20 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4619 field.
4620 * tui/tui-regs.c (~tui_data_item_window): Update.
4621
4622 2019-08-20 Tom Tromey <tom@tromey.com>
4623
4624 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4625 earlier.
4626
4627 2019-08-20 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4630
4631 2019-08-20 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-source.h (struct tui_source_window): Update.
4634 * tui/tui-regs.c (tui_show_registers): Update.
4635 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4636 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4637 (NO_REGS_STRING): Remove defines.
4638
4639 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4640
4641 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4642 unnecessary thread walk if remote doesn't support the packet.
4643
4644 2019-08-19 Tom Tromey <tromey@adacore.com>
4645
4646 * python/py-value.c (value_has_field): Fix indentation.
4647
4648 2019-08-19 Tom Tromey <tromey@adacore.com>
4649
4650 * printcmd.c (do_one_display, info_display_command): Update.
4651 * block.h (contained_in): Return bool. Add allow_nested
4652 parameter.
4653 * block.c (contained_in): Return bool. Add allow_nested
4654 parameter.
4655
4656 2019-08-19 Tom Tromey <tom@tromey.com>
4657
4658 * configure: Rebuild.
4659 * configure.ac: Disallow the combination of -static-libstdc++ and
4660 source highlight.
4661 * source-cache.c (get_language_name): Handle rust.
4662 (source_cache::get_source_lines): Ignore highlighting exceptions.
4663
4664 2019-08-16 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4667 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4668 (struct tui_source_window_base) <make_visible, refresh_window,
4669 resize>: Remove methods.
4670 <execution_info>: Remove field.
4671 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4672 (tui_show_source_line, tui_source_window_base)
4673 (~tui_source_window_base): Update.
4674 (tui_source_window_base::resize)
4675 (tui_source_window_base::make_visible)
4676 (tui_source_window_base::refresh_window): Remove.
4677 (tui_source_window_base::update_exec_info): Update.
4678 * tui/tui-source.c (tui_source_window::set_contents): Update.
4679 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4680
4681 2019-08-16 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4684 deprecated_query_hook.
4685
4686 2019-08-16 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4689 (tui_update_source_windows_with_line): Update.
4690 * tui/tui-source.h (struct tui_source_window)
4691 <show_symtab_source>: Declare.
4692 (tui_show_symtab_source): Don't declare.
4693 * tui/tui-source.c (tui_show_symtab_source): Rename from
4694 tui_show_symtab_source.
4695
4696 2019-08-16 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-winsource.h (struct tui_source_window_base)
4699 <set_contents>: Declare.
4700 * tui/tui-winsource.c
4701 (tui_source_window_base::update_source_window_as_is): Update.
4702 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4703 Declare.
4704 (tui_set_source_content): Don't declare.
4705 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4706 tui_set_source_content.
4707 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4708 Declare.
4709 (tui_set_disassem_content): Don't declare.
4710 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4711 tui_set_disassem_content.
4712
4713 2019-08-16 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-winsource.h (struct tui_source_window_base)
4716 <update_breakpoint_info>: Declare.
4717 (tui_update_breakpoint_info): Don't declare.
4718 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4719 (tui_update_all_breakpoint_info): Update.
4720 (tui_source_window_base::update_breakpoint_info): Rename from
4721 tui_update_breakpoint_info.
4722 (tui_source_window_base::update_exec_info): Update.
4723
4724 2019-08-16 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-winsource.h (struct tui_source_window_base)
4727 <update_source_window>: Declare.
4728 (tui_update_source_window): Don't declare.
4729 * tui/tui-winsource.c
4730 (tui_source_window_base::update_source_window): Rename from
4731 tui_update_source_window.
4732 (tui_source_window_base::rerender): Update.
4733 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4734 * tui/tui-disasm.c (tui_show_disassem)
4735 (tui_show_disassem_and_update_source)
4736 (tui_disasm_window::maybe_update): Update.
4737
4738 2019-08-16 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-winsource.h (struct tui_source_window_base)
4741 <update_source_window_as_is>: Declare.
4742 (tui_update_source_window_as_is): Don't declare.
4743 * tui/tui-winsource.c (tui_update_source_window): Update
4744 (tui_source_window_base::update_source_window_as_is): Rename from
4745 tui_update_source_window_as_is.
4746 (tui_source_window_base::refill): Update.
4747 * tui/tui-source.c (tui_show_symtab_source): Update.
4748 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4749 Update.
4750
4751 2019-08-16 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-winsource.h (tui_update_source_window)
4754 (tui_update_source_window_as_is): Remove "noerror" parameter.
4755 * tui/tui-winsource.c (tui_update_source_window)
4756 (tui_update_source_window_as_is): Remove "noerror" parameter.
4757 (tui_update_source_windows_with_addr)
4758 (tui_update_source_windows_with_line)
4759 (tui_source_window_base::rerender)
4760 (tui_source_window_base::refill): Update.
4761 * tui/tui-source.h (tui_set_source_content)
4762 (tui_show_symtab_source): Remove "noerror" parameter.
4763 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4764 parameter.
4765 (tui_show_symtab_source): Likewise.
4766 (tui_source_window::maybe_update): Update.
4767 * tui/tui-disasm.c (tui_show_disassem)
4768 (tui_show_disassem_and_update_source)
4769 (tui_disasm_window::do_scroll_vertical)
4770 (tui_disasm_window::maybe_update): Update.
4771
4772 2019-08-16 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui.c (tui_is_window_visible): Update.
4775 * tui/tui-wingeneral.c (tui_make_window)
4776 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4777 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4778 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4779 (tui_set_win_height_command, parse_scrolling_args): Update.
4780 * tui/tui-source.c (tui_source_window::style_changed): Update.
4781 * tui/tui-regs.c (tui_show_registers)
4782 (tui_data_window::first_data_item_displayed)
4783 (tui_data_window::delete_data_content_windows)
4784 (tui_check_register_values, tui_reg_command): Update.
4785 * tui/tui-disasm.c (tui_show_disassem): Update.
4786 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4787 method.
4788 <is_visible>: Remove field.
4789 * tui/tui-data.c (tui_next_win, tui_prev_win)
4790 (tui_delete_invisible_windows): Update.
4791
4792 2019-08-16 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-winsource.h (struct tui_source_window_base)
4795 <m_has_locator>: Remove.
4796 * tui/tui-layout.c (show_source_disasm_command, show_data)
4797 (show_source_or_disasm_and_command): Update.
4798
4799 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4800
4801 * NEWS (Other MI changes): New subsection.
4802 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4803 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4804 * arch-utils.c (default_get_pc_address_flags): New function.
4805 * arch-utils.h (default_get_pc_address_flags): New declaration.
4806 * gdbarch.sh: Add get_pc_address_flags.
4807 * gdbarch.c: Regenerate.
4808 * gdbarch.h: Likewise.
4809 * stack.c (print_pc): New function.
4810 (print_frame_info) (print_frame): Call print_pc.
4811
4812 2019-08-16 Tom de Vries <tdevries@suse.de>
4813
4814 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4815 print_objfile_section_info.
4816
4817 2019-08-15 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4820 calling update_cmdwin_start_line.
4821 * tui/tui-winsource.h (struct tui_source_window_base)
4822 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4823 <rerender>: Declare.
4824 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4825 Call rerender.
4826 (tui_source_window_base::set_new_height): Remove.
4827 (tui_source_window_base::rerender): Rename from
4828 do_make_visible_with_new_height.
4829 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4830 resize method.
4831 (tui_win_info::make_invisible_and_set_new_height)
4832 (tui_win_info::make_visible_with_new_height): Remove.
4833 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4834 Declare.
4835 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4836 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4837 do_make_visible_with_new_height>: Don't declare.
4838 <rerender>: Declare.
4839 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4840 set_new_height.
4841 (tui_data_window::do_make_visible_with_new_height): Remove.
4842 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4843 call tui_show_locator_content.
4844 (tui_gen_win_info::resize): Call rerender.
4845 (show_source_or_disasm_and_command): Don't call
4846 tui_show_locator_content.
4847 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4848 method.
4849 (struct tui_win_info) <rerender>: Declare.
4850 <set_new_height, make_invisible_and_set_new_height,
4851 make_visible_with_new_height>: Don't declare.
4852 * tui/tui-data.c (tui_win_list::rerender): New method.
4853 * tui/tui-command.h (struct tui_cmd_window)
4854 <do_make_visible_with_new_height>: Don't declare.
4855 * tui/tui-command.c
4856 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4857
4858 2019-08-15 Tom Tromey <tromey@adacore.com>
4859
4860 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4861 * ada-lang.c (ada_enum_name): Likewise.
4862
4863 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4864
4865 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4866 leading underscore.
4867 (GdbOutputErrorFile): Likewise.
4868 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4869 accordingly.
4870 (execute_unwinders): Rename to have a leading underscore.
4871 (auto_load_packages): Likewise.
4872 (global scope): Adjust call to auto_load_packages accordingly.
4873 (GdbSetPythonDirectory): Likewise.
4874 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4875 instead of execute_unwinders.
4876
4877 2019-08-15 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4880 (show_data): Don't change window visibility.
4881 (tui_gen_win_info::resize): Remove special case for command
4882 window. Use wresize, when available.
4883 (show_source_or_disasm_and_command): Don't change window
4884 visibility.
4885 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4886 <make_visible>: New method.
4887 * tui/tui-command.c (tui_cmd_window::resize): New method.
4888
4889 2019-08-15 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4892 (struct tui_source_windows): New.
4893 * tui/tui-winsource.c (tui_display_main): Update.
4894 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4895 (new_height_ok, parse_scrolling_args): Update.
4896 * tui/tui-layout.c (show_layout, show_data): Update.
4897 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4898 (tui_add_to_source_windows): Don't declare.
4899 * tui/tui-data.c (source_windows, tui_source_windows)
4900 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4901
4902 2019-08-15 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4905 Rename from reset.
4906 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4907 * tui/tui-layout.c (show_source_disasm_command, show_data):
4908 Update.
4909 (tui_gen_win_info::resize): Rename.
4910 (show_source_or_disasm_and_command): Update.
4911 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4912 reset.
4913
4914 2019-08-15 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4917 * tui/tui-interp.c (tui_interp::init): Don't call
4918 tui_initialize_static_data.
4919 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4920
4921 2019-08-15 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4924 examine tui_win_list.
4925
4926 2019-08-15 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4929 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4930 tui_clear_source_content.
4931 (tui_clear_source_content): Remove.
4932 (tui_source_window_base::do_erase_source_content): Hoist call to
4933 content.clear().
4934 * tui/tui-stack.c (tui_show_frame_info): Don't call
4935 tui_clear_source_content.
4936
4937 2019-08-15 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-winsource.h (struct tui_source_window_base)
4940 <do_erase_source_content>: New method.
4941 <erase_source_content>: New method.
4942 (tui_erase_source_content): Don't declare.
4943 * tui/tui-winsource.c (tui_clear_source_content): Update.
4944 (tui_source_window_base::do_erase_source_content): Rename from
4945 tui_erase_source_content.
4946 (tui_source_window_base::show_source_content): Update.
4947 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4948 * tui/tui-source.h (struct tui_source_window)
4949 <erase_source_content>: New method.
4950 * tui/tui-disasm.h (struct tui_disasm_window)
4951 <erase_source_content>: New method.
4952
4953 2019-08-15 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4956 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4957 constructor.
4958 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4959 * tui/tui-source.c (tui_set_source_content): Update.
4960 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4961
4962 2019-08-15 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4965 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4966 tui-source.c.
4967 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4968 Declare.
4969 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4970 method.
4971 (tui_source_window::maybe_update): Update.
4972
4973 2019-08-15 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4976 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4977 tui-disasm.c.
4978 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4979 Declare.
4980 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4981 method.
4982 (tui_disasm_window::maybe_update): Update.
4983
4984 2019-08-15 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-winsource.h (struct tui_source_window_base)
4987 <maybe_update>: Declare.
4988 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4989 method.
4990 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4991 Declare.
4992 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4993 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4994 Declare.
4995 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4996
4997 2019-08-15 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5000
5001 2019-08-15 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-wingeneral.c: Include tui-stack.h.
5004 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5005 (struct tui_locator_window): Move from tui-data.h.
5006 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5007 (tui_initialize_static_data): Move from tui-data.c.
5008 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5009 (struct tui_locator_window): Move to tui-stack.c.
5010 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5011 (tui_initialize_static_data): Move to tui-stack.c.
5012
5013 2019-08-15 Tom Tromey <tom@tromey.com>
5014
5015 * tui/tui-layout.c (show_source_disasm_command)
5016 (show_source_or_disasm_and_command): Use make_visible method, not
5017 tui_make_window.
5018 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5019 Remove.
5020
5021 2019-08-15 Tom Tromey <tom@tromey.com>
5022
5023 * tui/tui-wingeneral.h (tui_make_window): Update.
5024 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5025 parameter.
5026 (tui_gen_win_info::make_visible): Update.
5027 * tui/tui-regs.c (tui_data_window::display_registers_from):
5028 Update.
5029 * tui/tui-layout.c (show_source_disasm_command)
5030 (show_source_or_disasm_and_command): Update.
5031 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5032 (enum tui_box): Remove.
5033 (struct tui_win_info) <can_box>: New method.
5034 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5035 method.
5036
5037 2019-08-15 Tom de Vries <tdevries@suse.de>
5038
5039 * linux-nat-trad.c: Include gdbarch.h.
5040
5041 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5042
5043 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5044 register sizes.
5045
5046 2019-08-14 Tom Tromey <tromey@adacore.com>
5047
5048 * darwin-nat.c: Include gdbarch.h.
5049 * darwin-nat-info.c: Include gdbarch.h.
5050
5051 2019-08-13 Tom Tromey <tom@tromey.com>
5052
5053 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5054 Remove.
5055 * tui/tui-data.c (tui_initialize_static_data): Update.
5056
5057 2019-08-13 Tom Tromey <tom@tromey.com>
5058
5059 * tui/tui-winsource.h (struct tui_exec_info_window)
5060 <~tui_exec_info_window, maybe_allocate_content, get_content,
5061 m_content>: Remove.
5062 (struct tui_source_window_base) <set_exec_info_content,
5063 show_exec_info_content>: Don't declare.
5064 * tui/tui-winsource.c
5065 (tui_exec_info_window::maybe_allocate_content): Remove.
5066 (tui_source_window_base::update_exec_info): Rename from
5067 set_exec_info_content.
5068 (tui_source_window_base::show_exec_info_content)
5069 (tui_source_window_base::update_exec_info): Remove.
5070
5071 2019-08-13 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5074 declare.
5075 * tui/tui-winsource.c (tui_update_source_window_as_is)
5076 (tui_update_source_windows_with_addr, tui_erase_source_content):
5077 Update.
5078 (tui_clear_exec_info_content): Remove.
5079
5080 2019-08-13 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5083 declare.
5084 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5085 call tui_erase_exec_info_content.
5086 (tui_clear_exec_info_content): Rename from
5087 tui_erase_exec_info_content.
5088 (tui_clear_exec_info_content): Delete.
5089
5090 2019-08-13 Tom Tromey <tom@tromey.com>
5091
5092 * tui/tui-winsource.h (struct tui_source_window_base)
5093 <show_exec_info_content>: Declare.
5094 (tui_show_exec_info_content): Don't declare.
5095 * tui/tui-winsource.c
5096 (tui_source_window_base::show_exec_info_content): Rename from
5097 tui_show_exec_info_content.
5098 (tui_source_window_base::update_exec_info): Update.
5099
5100 2019-08-13 Tom Tromey <tom@tromey.com>
5101
5102 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5103 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5104 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5105 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5106 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5107 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5108 ... here.
5109
5110 2019-08-13 Tom Tromey <tom@tromey.com>
5111
5112 * tui/tui-winsource.h (struct tui_source_window_base)
5113 <update_exec_info>: Declare.
5114 (tui_update_exec_info): Don't declare.
5115 * tui/tui-winsource.c (tui_update_source_window_as_is)
5116 (tui_source_window_base::refresh_all)
5117 (tui_update_all_breakpoint_info): Update.
5118 (tui_source_window_base::update_exec_info): Rename from
5119 tui_update_exec_info.
5120 * tui/tui-stack.c (tui_show_frame_info): Update.
5121
5122 2019-08-13 Tom Tromey <tom@tromey.com>
5123
5124 * tui/tui-winsource.h (struct tui_source_window_base)
5125 <set_exec_info_content>: Declare.
5126 (tui_set_exec_info_content): Don't declare.
5127 * tui/tui-winsource.c
5128 (tui_source_window_base::set_exec_info_content): Rename from
5129 tui_set_exec_info_content.
5130 (tui_update_exec_info): Update.
5131
5132 2019-08-13 Tom Tromey <tom@tromey.com>
5133
5134 * tui/tui-winsource.h (struct tui_source_window_base)
5135 <show_source_content>: Declare.
5136 (tui_show_source_content): Don't declare.
5137 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5138 (tui_source_window_base::show_source_content): Rename from
5139 tui_show_source_content.
5140 (tui_source_window_base::refresh_all): Update.
5141 * tui/tui-layout.c (show_source_disasm_command)
5142 (show_source_or_disasm_and_command): Update.
5143
5144 2019-08-13 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-winsource.c (tui_erase_source_content)
5147 (tui_show_source_content, tui_source_window_base::refresh_all):
5148 Update.
5149 * tui/tui-wingeneral.h
5150 (tui_check_and_display_highlight_if_needed): Don't declare.
5151 * tui/tui-wingeneral.c
5152 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5153 check_and_display_highlight_if_needed.
5154 * tui/tui-win.c (tui_rehighlight_all)
5155 (tui_win_info::make_visible_with_new_height): Update.
5156 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5157 (tui_data_window::erase_data_content)
5158 (tui_data_window::display_all_data): Update.
5159 * tui/tui-data.h (struct tui_win_info)
5160 <check_and_display_highlight_if_needed>: Declare.
5161
5162 2019-08-13 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-win.c (tui_resize_all): Call
5165 tui_delete_invisible_windows.
5166 * tui/tui-layout.c (show_layout): Call
5167 tui_delete_invisible_windows.
5168 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5169 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5170
5171 2019-08-13 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5174 tui_add_win_to_layout.
5175
5176 2019-08-13 Tom Tromey <tom@tromey.com>
5177
5178 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5179 * tui/tui-layout.c (tui_default_win_height): Now static.
5180
5181 2019-08-13 Tom Tromey <tom@tromey.com>
5182
5183 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5184 single switch.
5185 (show_source_disasm_command, show_source_or_disasm_and_command):
5186 Don't check current layout.
5187
5188 2019-08-13 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-wingeneral.c (make_all_visible): Remove.
5191 (tui_make_all_invisible): Simplify.
5192 * tui/tui-layout.c (tui_make_all_invisible): Move from
5193 tui-wingeneral.c; simplify.
5194 (show_layout): Hoist call to tui_make_all_invisible.
5195 (show_data): Don't call tui_make_all_invisible.
5196
5197 2019-08-13 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5200 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5201
5202 2019-08-13 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5205 tui-data.c.
5206 (show_source_disasm_command, show_data)
5207 (show_source_or_disasm_and_command): Don't use
5208 tui_set_current_layout_to.
5209 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5210 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5211 tui-layout.c.
5212 (tui_set_current_layout_to): Remove.
5213
5214 2019-08-13 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-layout.c (tui_set_layout): Update.
5217 * tui/tui-data.h (struct tui_layout_def): Remove.
5218 (tui_layout_def): Don't declare.
5219 * tui/tui-data.c (layout_def): Remove.
5220 (tui_layout_def): Remove.
5221
5222 2019-08-13 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-winsource.h (struct tui_source_window_base)
5225 <clear_detail>: No longer "override".
5226 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5227 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5228 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5229 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5230 Remove.
5231 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5232
5233 2019-08-13 Tom Tromey <tromey@adacore.com>
5234
5235 * tracepoint.c: Don't include readline.h or history.h.
5236
5237 2019-08-12 Tom Tromey <tom@tromey.com>
5238
5239 * configure: Rebuild.
5240 * configure.ac: Check for readline 7.
5241 * NEWS: Mention readline 7 requirement.
5242 * README: Update.
5243
5244 2019-08-12 Tom Tromey <tom@tromey.com>
5245
5246 * mingw-hdep.c (gdb_select): Remove readline hack.
5247
5248 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5249
5250 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5251 when the function fails.
5252
5253 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5254
5255 * s390-tdep.c (s390_type_align): New function.
5256 (s390_gdbarch_init): Set it as type_align gdbarch method.
5257
5258 2019-08-09 Tom de Vries <tdevries@suse.de>
5259
5260 PR gdb/24591
5261 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5262 pc_low with relocation offset.
5263
5264 2019-08-07 Tom Tromey <tromey@adacore.com>
5265
5266 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5267 (print_frame_args): Update.
5268 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5269 Update.
5270 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5271 * frame.h (struct frame_arg): Add initializers.
5272 <error>: Now a unique_xmalloc_ptr.
5273
5274 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5275
5276 * NEWS: Expand the Pointer Authentication entry.
5277 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5278 (aarch64_frame_unmask_lr): ... to this.
5279 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5280 Call aarch64_frame_unmask_lr.
5281 * frame.c (struct frame_info): Add "masked" variable.
5282 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5283 (fprint_frame): Check for masked pc.
5284 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5285 declarations.
5286 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5287 * stack.c (print_frame): Check for masked pc.
5288
5289 2019-08-06 Tom Tromey <tom@tromey.com>
5290
5291 * stabsread.c (patch_block_stabs, read_one_struct_field)
5292 (read_enum_type): Use obstack_strndup.
5293 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5294 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5295 * dwarf2read.c (guess_full_die_structure_name)
5296 (anonymous_struct_prefix): Use obstack_strndup.
5297 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5298 * c-exp.y (yylex): Use obstack_strndup.
5299 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5300 (write_var_or_type): Use obstack_strndup.
5301
5302 2019-08-06 Tom Tromey <tom@tromey.com>
5303
5304 * symfile.c (reread_symbols): Use obstack_strdup.
5305 * stabsread.c (read_type): Use obstack_strdup.
5306 * gdb_obstack.h (obstack_strdup): New overload.
5307 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5308 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5309 (dwarf2_canonicalize_name): Use obstack_strdup.
5310 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5311 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5312 Use obstack_strdup.
5313
5314 2019-08-06 Tom Tromey <tom@tromey.com>
5315
5316 * gdb_obstack.h (obstack_strdup): Define.
5317 * gdb_obstack.c (obstack_strdup): Don't define.
5318
5319 2019-08-06 Tom Tromey <tom@tromey.com>
5320
5321 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5322 obstack_strdup.
5323 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5324 obstack_strdup.
5325 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5326 * stabsread.c (common_block_start): Use obstack_strdup.
5327 * objfiles.c (set_objfile_main_name, objfile): Use
5328 obstack_strdup.
5329 * namespace.c (add_using_directive): Use obstack_strdup.
5330 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5331 * jit.c (finalize_symtab): Use obstack_strdup.
5332 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5333 (guess_partial_die_structure_name, partial_die_info::fixup)
5334 (dwarf2_name): Use obstack_strdup.
5335 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5336 obstack_strdup.
5337 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5338 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5339 obstack_strdup.
5340 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5341
5342 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5343
5344 * unittests/help-doc-selftests.c: New file.
5345 * Makefile.in: Add the new file.
5346
5347 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5348
5349 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5350 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5351 the full first line, except when FOR_VALUE_PREFIX. In this case,
5352 the trailing '.' is not output, and the first character is uppercased.
5353 (print_help_for_command): Update call to print_doc_line.
5354 (print_doc_of_command): Likewise.
5355 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5356 * cli/cli-option.c (append_indented_doc): Do not append newline.
5357 (build_help_option): Append newline after first appended_indented_doc
5358 only if a second call is done.
5359 (build_help): Append 2 new lines before each option, except the first
5360 one.
5361 * compile/compile.c (_initialize_compile): Add new lines after
5362 %OPTIONS%, when not at the end of the help.
5363 Change help doc or code
5364 producing the help doc to respect the invariants.
5365 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5366 Also removed the new line after 'Options:', as all other commands
5367 do not put an empty line between 'Options:' and the first option.
5368 * printcmd.c (_initialize_printcmd): Likewise.
5369 * stack.c (_initialize_stack): Likewise.
5370 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5371 incorrectly telling COMMAND is optional.
5372 * ada-lang.c (_initialize_ada_language): Change help doc or code
5373 producing the help doc to respect the invariants.
5374 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5375 * breakpoint.c (_initialize_breakpoint): Likewise.
5376 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5377 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5378 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5379 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5380 _initialize_cli_style): Likewise.
5381 * corelow.c (core_target_info): Likewise.
5382 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5383 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5384 * filesystem.c (_initialize_filesystem): Likewise.
5385 * frame.c (_initialize_frame): Likewise.
5386 * gnu-nat.c (add_task_commands): Likewise.
5387 * infcall.c (_initialize_infcall): Likewise.
5388 * infcmd.c (_initialize_infcmd): Likewise.
5389 * interps.c (_initialize_interpreter): Likewise.
5390 * language.c (_initialize_language): Likewise.
5391 * linux-fork.c (_initialize_linux_fork): Likewise.
5392 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5393 * maint.c (_initialize_maint_cmds): Likewise.
5394 * memattr.c (_initialize_mem): Likewise.
5395 * printcmd.c (_initialize_printcmd): Likewise.
5396 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5397 _RegEx): Likewise.
5398 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5399 * record-btrace.c (_initialize_record_btrace): Likewise.
5400 * record-full.c (_initialize_record_full): Likewise.
5401 * record.c (_initialize_record): Likewise.
5402 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5403 * regcache.c (_initialize_regcache): Likewise.
5404 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5405 _initialize_remote): Likewise.
5406 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5407 * serial.c (_initialize_serial): Likewise.
5408 * skip.c (_initialize_step_skip): Likewise.
5409 * source.c (_initialize_source): Likewise.
5410 * stack.c (_initialize_stack): Likewise.
5411 * symfile.c (_initialize_symfile): Likewise.
5412 * symtab.c (_initialize_symtab): Likewise.
5413 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5414 * top.c (init_main): Likewise.
5415 * tracefile-tfile.c (tfile_target_info): Likewise.
5416 * tracepoint.c (_initialize_tracepoint): Likewise.
5417 * tui/tui-win.c (_initialize_tui_win): Likewise.
5418 * utils.c (add_internal_problem_command): Likewise.
5419 * valprint.c (value_print_option_defs): Likewise.
5420
5421 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5422
5423 PR build/24886
5424 * configure.ac: Drop enable-libmcheck support.
5425 * configure, config.in: Rebuild.
5426 * libmcheck.m4: Remove.
5427 * acinclude.m4: Don't include it.
5428 * Makefile.in: Don't distribute it.
5429 * top.c (print_gdb_configuration): Don't mention it.
5430
5431 2019-08-06 Tom Tromey <tom@tromey.com>
5432
5433 * utils.c (set_output_style): Sometimes pass stream to
5434 emit_style_escape.
5435 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5436 * record-btrace.c (btrace_insn_history): Update.
5437 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5438 method.
5439 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5440 Update initializers.
5441 <m_uiout>: New field.
5442 <m_di>: Move lower.
5443 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5444 Remove "uiout" parameter.
5445 (dump_insns): Update.
5446 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5447 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5448
5449 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5450
5451 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5452 (error_in_psymtab_expansion): Likewise.
5453 (lookup_symbol_via_quick_fns): Likewise.
5454 (basic_lookup_transparent_type_quick): Likewise.
5455 (basic_lookup_transparent_type_1): Likewise.
5456
5457 2019-08-06 Tom Tromey <tromey@adacore.com>
5458
5459 * source.c (last_source_error): Now bool.
5460 (print_source_lines_base): Make "noprint" bool. Only open
5461 source file when last_source_visited changes.
5462
5463 2019-08-06 Tom Tromey <tromey@adacore.com>
5464
5465 * annotate.c (annotate_source_line): Use g_source_cache.
5466 * source-cache.c (source_cache::get_plain_source_lines): Change
5467 parameters. Populate m_offset_cache.
5468 (source_cache::ensure): New method.
5469 (source_cache::get_line_charpos): New method.
5470 (extract_lines): Move lower. Change parameters.
5471 (source_cache::get_source_lines): Move lower.
5472 * source-cache.h (class source_cache): Update comment.
5473 <get_line_charpos>: New method.
5474 <get_source_lines>: Update comment.
5475 <clear>: Clear m_offset_cache.
5476 <get_plain_source_lines>: Change parameters.
5477 <ensure>: New method
5478 <m_offset_cache>: New member.
5479 * source.c (forget_cached_source_info_for_objfile): Update.
5480 (info_source_command): Use g_source_cache.
5481 (find_source_lines, open_source_file_with_line_charpos): Remove.
5482 (print_source_lines_base, search_command_helper): Use g_source_cache.
5483 * source.h (open_source_file_with_line_charpos): Don't declare.
5484 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5485 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5486 Use g_source_cache.
5487
5488 2019-08-06 Tom Tromey <tromey@adacore.com>
5489
5490 * source-cache.c (source_cache::get_plain_source_lines):
5491 Remove "first_line" and "last_line" parameters.
5492 (source_cache::get_source_lines): Cache plain text.
5493 * source-cache.h (class source_cache)
5494 <get_plain_source_lines>: Update.
5495
5496 2019-08-06 Tom Tromey <tromey@adacore.com>
5497
5498 * source-cache.c (extract_lines): No longer a method.
5499 Changed type of parameter. Include final newline.
5500 (selftests::extract_lines_test): New function.
5501 (_initialize_source_cache): Likewise.
5502 * source-cache.h (class source_cache)
5503 <extract_lines>: Don't declare.
5504
5505 2019-08-06 Tom Tromey <tromey@adacore.com>
5506
5507 * breakpoint.c (init_breakpoint_sal): Update.
5508 (breakpoint): Update.
5509 * breakpoint.h (struct breakpoint) <filter>: Now a
5510 unique_xmalloc_ptr.
5511
5512 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5513
5514 * NEWS: Mention dictionary access on blocks.
5515 * python/py-block.c (blpy_getitem): New function.
5516 (block_object_as_mapping): New struct.
5517 (block_object_type): Use new struct for tp_as_mapping field.
5518
5519 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5520
5521 * objfiles.h (objfile): Add a comment describing partial symbols.
5522
5523 2019-08-05 Tom Tromey <tromey@adacore.com>
5524
5525 * compile/compile.c (_initialize_compile): Use _(), not N_().
5526 * thread.c (_initialize_thread): Use _(), not N_().
5527 * stack.c (_initialize_stack): Use _(), not N_().
5528 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5529
5530 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5531
5532 * dwarf2read.c (struct dw2_symtab_iterator):
5533 <want_specific_block>: Remove.
5534 <block_index>: Change type to gdb::optional.
5535 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5536 change type of BLOCK_INDEX parameter to gdb::optional.
5537 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5538 (dw2_lookup_symbol): Don't pass argument for
5539 WANT_SPECIFIC_BLOCK.
5540 (dw2_expand_symtabs_for_function): Don't pass argument for
5541 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5542 (class dw2_debug_names_iterator)
5543 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5544 parameter, change BLOCK_INDEX type to gdb::optional.
5545 <m_want_specific_block>: Remove.
5546 <m_block_index>: Change type to gdb::optional.
5547 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5548 gdb::optional. Re-write in function of gdb::optional.
5549 (dw2_debug_names_lookup_symbol): Don't pass argument for
5550 WANT_SPECIFIC_BLOCK.
5551 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5552 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5553 BLOCK_INDEX.
5554
5555 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5556
5557 * NEWS: Mention changes to "info sources" command.
5558
5559 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5560
5561 * symtab.c (filename_partial_match_opts): New struct type.
5562 (struct output_source_filename_data): New members
5563 regexp, c_regexp, partial_match.
5564 (output_source_filename): Use new members to decide to print file.
5565 (info_sources_option_defs): New variable.
5566 (make_info_sources_options_def_group, print_info_sources_header,
5567 info_sources_command_completer):
5568 New functions.
5569 (info_sources_command): Read new optional arguments.
5570 (_initialize_symtab): Update info sources help.
5571
5572 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5573
5574 * ada-lang.c (exception_support_info_v0): Renamed from...
5575 (default_exception_support_info): ... this. Create new
5576 definition for v1.
5577 (ada_has_this_exception_support): Look up catch_handlers_sym.
5578 (ada_exception_support_info_sniffer): Try v0 after default.
5579
5580 2019-08-01 Tom Tromey <tromey@adacore.com>
5581
5582 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5583 gdbarch.h.
5584
5585 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5586
5587 * s12z-tdep.c: Fix include path for s12z-opc.h.
5588
5589 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5590
5591 * NEWS: Require GNU make 3.82.
5592
5593 2019-07-16 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5596 declare.
5597
5598 2019-07-30 Tom Tromey <tromey@adacore.com>
5599
5600 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5601
5602 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5603
5604 * printcmd.c (print_address_symbolic): Print negative offsets.
5605 (build_address_symbolic): Force signed arithmetic when computing
5606 offset.
5607
5608 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5609
5610 PR/24474: Add a function to lookup static variables.
5611 * NEWS: Mention this new function.
5612 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5613 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5614 * python/python.c (python_GdbMethods): Add new function.
5615
5616 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5617
5618 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5619 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5620 (objfpy_lookup_static_symbol): New function.
5621 (objfile_object_methods): Add new functions.
5622
5623 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624
5625 * NEWS: Mention 'set|show print frame-info'. Mention new
5626 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5627 backtrace argument. Mention that python frame filtering code
5628 is now consistent with what 'backtrace' command prints.
5629
5630 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5631
5632 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5633 comments.
5634 (print_frame_info_auto, print_frame_info_source_line,
5635 print_frame_info_location, print_frame_info_source_and_location,
5636 print_frame_info_location_and_address, print_frame_info_short_location):
5637 New declarations.
5638 (struct frame_print_options): New member print_frame_info.
5639 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5640 * stack.h (get_user_print_what_frame_info): New declaration.
5641 (frame_show_address): New declaration.
5642 * stack.c (print_frame_arguments_choices): New value 'presence'.
5643 (print_frame_info_auto, print_frame_info_source_line,
5644 print_frame_info_location, print_frame_info_source_and_location,
5645 print_frame_info_location_and_address, print_frame_info_short_location,
5646 print_frame_info_choices, print_frame_info_print_what): New definitions.
5647 (print_frame_args): Only print dots for args if print frame-arguments
5648 is 'presence'.
5649 (frame_print_option_defs): New element for "frame-info".
5650 (get_user_print_what_frame_info): New function.
5651 (frame_show_address): Make non static. Move comment to stack.h.
5652 (print_frame_info_to_print_what): New function.
5653 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5654 to decide what to print.
5655 (backtrace_command_1): Handle the new print_frame_arguments_presence
5656 value.
5657 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5658 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5659 (py_print_frame): In non-mi mode, use LOCATION as default for
5660 print_what, similarly to frame information printed directly by
5661 backtrace command. Handle frame-info user option in non MI mode.
5662
5663 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5664
5665 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5666 Add case for debugging 32-bit target on 64-bit host. Revise
5667 comment.
5668
5669 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5670
5671 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5672 instead of find_function_entry_range_from_pc.
5673
5674 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5675
5676 * stack.c (find_frame_funname): Remove code which preferred
5677 minsym over symtab sym in "certain pathological cases".
5678
5679 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5680 parameter. Change type of "do_demangle" to bool.
5681 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5682 Pass suitable "prefer_sym_over_minsym" flag to
5683 build_address_symbolic(). Don't output "+" for negative offsets.
5684 * printcmd.c (print_address_symbolic): Update invocation of
5685 build_address_symbolic to include a "prefer_sym_over_minsym"
5686 flag.
5687 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5688 Restrict cases in which use of minimal symbol is preferred to that
5689 of a found symbol. Update comments.
5690
5691 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5692 for entry pc when entry pc is out of range for that FDE.
5693
5694 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5695
5696 PR gdb/24839:
5697 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5698 type.
5699
5700 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5701
5702 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5703 this function's Python signature.
5704
5705
5706 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5707
5708 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5709 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5710 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5711 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5712 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5713
5714
5715 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5716
5717 * h8300-tdep.c (h8300_register_name_common): New.
5718 h8300_register_name): Use h8300_register_name_common.
5719 (h8300s_register_name): Likewise.
5720 (h8300sx_register_name): Likewise.
5721 (h8300h_register_nam): New.
5722 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5723
5724
5725 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5726
5727 * arm-tdep.c (arm_skip_cmse_entry): New function.
5728 (arm_is_sgstubs_section): New function.
5729 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5730
5731 2019-07-22 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5734 Don't self-assign.
5735
5736 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5737
5738 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5739 type_print.
5740
5741 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5744 so that GDB doesn't match any msymbols when searching in the
5745 TYPES_DOMAIN.
5746 (print_symbol_info): Print using typedef_print or type_print based
5747 on the type of the symbol. Add updated FIXME comment moved from...
5748 (_initialize_symtab): ... move and update FIXME comment to above.
5749
5750 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * NEWS: Mention adding -q option to "info types".
5753 * symtab.c (struct info_types_options): New struct.
5754 (info_types_options_defs): New variable.
5755 (make_info_types_options_def_group): New function.
5756 (info_types_command): Use gdb::option framework to parse options.
5757 (info_types_command_completer): New function.
5758 (_initialize_symtab): Extend the help text on "info types" and
5759 register command completer.
5760
5761 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5762
5763 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5764 (lookup_symbol_in_objfile): Change int to block_enum and add a
5765 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5766
5767 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5768
5769 * MAINTAINERS (Write After Approval): Add self.
5770
5771 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5772
5773 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5774 instruction to the dummy code region.
5775
5776 2019-07-19 Tom Tromey <tromey@adacore.com>
5777
5778 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5779 (ARGSUSED, PARAMS, __func__): Remove rules.
5780
5781 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5782
5783 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5784 * features/arm/arm-with-iwmmxt.c: Remove.
5785 * features/arm/arm-with-iwmmxt.xml: Remove.
5786 * features/arm/arm-with-m-fpa-layout.c: Remove.
5787 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5788 * features/arm/arm-with-m-vfp-d16.c: Remove.
5789 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5790 * features/arm/arm-with-m.c: Remove.
5791 * features/arm/arm-with-m.xml: Remove.
5792 * features/arm/arm-with-neon.c: Remove.
5793 * features/arm/arm-with-neon.xml: Remove.
5794 * features/arm/arm-with-vfpv2.c: Remove.
5795 * features/arm/arm-with-vfpv2.xml: Remove.
5796 * features/arm/arm-with-vfpv3.c: Remove.
5797 * features/arm/arm-with-vfpv3.xml: Remove.
5798
5799 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5800
5801 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5802
5803 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5804
5805 * arch/aarch32.c (aarch32_create_target_description): Create
5806 target descriptions using features.
5807 * arch/arm.c (arm_create_target_description)
5808 (arm_create_mprofile_target_description): Likewise.
5809 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5810
5811 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5812
5813 * Makefile.in: Add new files.
5814 * aarch32-tdep.c: New file.
5815 * aarch32-tdep.h: New file.
5816 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5817 Call aarch32_read_description.
5818 * arch/aarch32.c: New file.
5819 * arch/aarch32.h: New file.
5820 * arch/arm.c (arm_create_target_description)
5821 (arm_create_mprofile_target_description): New function.
5822 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5823 (arm_create_target_description)
5824 (arm_create_mprofile_target_description): New declaration.
5825 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5826 read_description functions.
5827 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5828 Likewise.
5829 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5830 * arm-tdep.c (tdesc_arm_list): New variable.
5831 (arm_register_g_packet_guesses): Call create description functions.
5832 (arm_read_description) (arm_read_mprofile_description): New
5833 function.
5834 * arm-tdep.h (arm_read_description)
5835 (arm_read_mprofile_description): Add declaration.
5836 * configure.tgt: Add new files.
5837
5838 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5839
5840 * top.c (new_ui_command): Open specified terminal just once.
5841
5842 2019-07-18 Tom Tromey <tromey@adacore.com>
5843
5844 * symtab.c (main_name): Constify return type.
5845 * symfile.c (set_initial_language): Update.
5846 * symtab.h (main_name): Constify return type.
5847
5848 2019-07-17 Tom Tromey <tom@tromey.com>
5849
5850 * tui/tui-winsource.c (tui_update_source_window)
5851 (tui_update_source_window_as_is)
5852 (tui_update_source_windows_with_line): Remove return.
5853 * tui/tui-disasm.c (tui_show_disassem)
5854 (tui_show_disassem_and_update_source): Remove return.
5855 * tui/tui.c (tui_reset): Remove return.
5856 * tui/tui-wingeneral.c
5857 (tui_check_and_display_highlight_if_needed): Remove return.
5858
5859 2019-07-17 Tom Tromey <tom@tromey.com>
5860
5861 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5862
5863 2019-07-17 Tom Tromey <tom@tromey.com>
5864
5865 * tui/tui-winsource.h (struct tui_exec_info_window)
5866 (struct tui_source_window_base): Move from tui-data.h.
5867 * tui/tui-winsource.c: Move many method definitions from
5868 elsewhere. Remove "structuring" comments.
5869 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5870 (tui_source_window_base::refresh_window): Move to
5871 tui-winsource.c.
5872 * tui/tui-win.c (tui_source_window_base::refresh_all)
5873 (tui_source_window_base::update_tab_width)
5874 (tui_source_window_base::set_new_height)
5875 (tui_source_window_base::do_make_visible_with_new_height): Move to
5876 tui-winsource.c.
5877 * tui/tui-source.h: Update.
5878 * tui/tui-source.c (tui_source_window_base::reset): Move to
5879 tui-winsource.c.
5880 * tui/tui-disasm.h: Update.
5881 * tui/tui-data.h (struct tui_exec_info_window): Move to
5882 tui-winsource.h.
5883 (struct tui_source_window_base): Likewise.
5884 * tui/tui-data.c (tui_source_window_base::clear_detail)
5885 (tui_source_window_base, ~tui_source_window_base): Move to
5886 tui-winsource.c.
5887
5888 2019-07-17 Tom Tromey <tom@tromey.com>
5889
5890 * tui/tui-win.c (tui_resize_all)
5891 (tui_source_window_base::update_tab_width)
5892 (tui_adjust_win_heights): Update.
5893 (tui_win_info::make_invisible_and_set_new_height): Rename from
5894 make_invisible_and_set_new_height.
5895 * tui/tui-data.h (struct tui_win_info)
5896 <make_invisible_and_set_new_height>: New method.
5897
5898 2019-07-17 Tom Tromey <tom@tromey.com>
5899
5900 * tui/tui.c: Update.
5901 * tui/tui-source.h (struct tui_source_window): Move from
5902 tui-data.h.
5903 * tui/tui-layout.c: Update.
5904 * tui/tui-disasm.c: Update.
5905 * tui/tui-data.h (struct tui_source_window): Move to
5906 tui-source.h.
5907
5908 2019-07-17 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5911 tui-data.h.
5912 * tui/tui-data.h (struct tui_disasm_window): Move to
5913 tui-disasm.h.
5914
5915 2019-07-17 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-regs.h (struct tui_data_item_window): Move from
5918 tui-data.h.
5919 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5920 * tui/tui-data.h (struct tui_data_item_window): Move to
5921 tui-regs.h.
5922 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5923
5924 2019-07-17 Tom Tromey <tom@tromey.com>
5925
5926 * tui/tui.c: Update.
5927 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5928 (tui_cmd_window::max_height): Move to tui-command.c.
5929 * tui/tui-layout.c: Update.
5930 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5931 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5932 tui-command.c.
5933 * tui/tui-command.h (struct tui_cmd_window): Move from
5934 tui-data.h.
5935 * tui/tui-command.c: Remove "structuring" comments.
5936 (tui_cmd_window::clear_detail)
5937 (tui_cmd_window::do_make_visible_with_new_height)
5938 (tui_cmd_window::max_height): Move from elsewhere.
5939
5940 2019-07-17 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5943 Now static.
5944 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5945 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5946
5947 2019-07-17 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui.c: Update.
5950 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5951 tui-regs.c.
5952 * tui/tui-windata.h: Remove file.
5953 * tui/tui-windata.c: Remove file.
5954 * tui/tui-win.c (tui_data_window::set_new_height)
5955 (tui_data_window::do_make_visible_with_new_height): Move to
5956 tui-regs.c.
5957 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5958 * tui/tui-regs.c: Remove "structuring" comments.
5959 (tui_data_window::first_data_item_displayed)
5960 (tui_data_window::delete_data_content_windows)
5961 (tui_data_window::erase_data_content)
5962 (tui_data_window::display_all_data)
5963 (tui_data_window::refresh_all)
5964 (tui_data_window::do_scroll_vertical)
5965 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5966 (tui_data_window::do_make_visible_with_new_height)
5967 (tui_data_window::refresh_window): Move from elsewhere.
5968 (_initialize_tui_regs): Move to end of file.
5969 * tui/tui-layout.c: Update.
5970 * tui/tui-hooks.c: Update.
5971 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5972 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5973 tui-regs.c.
5974 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5975
5976 2019-07-17 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5979 seen.
5980
5981 2019-07-17 Tom Tromey <tom@tromey.com>
5982
5983 * tui/tui-win.c (tui_source_window_base::set_new_height)
5984 (tui_source_window_base::do_make_visible_with_new_height): Use
5985 m_has_locator field directly.
5986 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5987 method.
5988 (struct tui_source_window_base) <has_locator>: Likewise.
5989
5990 2019-07-17 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5993 Don't declare.
5994 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5995 Remove.
5996 * tui/tui-win.c (tui_source_window_base::set_new_height)
5997 (tui_source_window_base::set_new_height)
5998 (make_invisible_and_set_new_height)
5999 (tui_source_window_base::do_make_visible_with_new_height)
6000 (tui_source_window_base::do_make_visible_with_new_height):
6001 Update.
6002 * tui/tui-layout.c (show_source_disasm_command, show_data)
6003 (show_source_or_disasm_and_command): Update.
6004 * tui/tui-layout.c (show_layout): Update.
6005
6006 2019-07-17 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-layout.c (make_data_window): Remove.
6009 (show_data): Unify creation and re-initialization cases.
6010
6011 2019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-layout.c (make_source_window, make_disasm_window):
6014 Remove.
6015 (show_data): Unify creation and re-initialization cases.
6016
6017 2019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-layout.c (make_command_window): Remove.
6020 (show_source_disasm_command, show_source_or_disasm_and_command):
6021 Unify creation and re-initialization cases.
6022
6023 2019-07-17 Tom Tromey <tom@tromey.com>
6024
6025 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6026 creation and re-initialization cases.
6027
6028 2019-07-17 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-regs.c (tui_get_register): Return void.
6031
6032 2019-07-17 Tom Tromey <tom@tromey.com>
6033
6034 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6035 Simplify.
6036
6037 2019-07-17 Tom Tromey <tom@tromey.com>
6038
6039 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6040 resetting.
6041
6042 2019-07-17 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6045 * tui/tui-regs.c (tui_reg_layout): New function.
6046 (tui_show_registers, tui_reg_command): Use it.
6047 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6048 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6049 parameters.
6050 (tui_layout_command): Remove.
6051
6052 2019-07-17 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-layout.h (tui/tui-layout): Return void.
6055 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6056
6057 2019-07-17 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-layout.c (show_source_disasm_command, show_data):
6060 Update.
6061 (reset_locator): Remove.
6062 (show_source_or_disasm_and_command): Update.
6063
6064 2019-07-17 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-source.c (tui_source_window_base::reset): Remove
6067 win_type parameter.
6068 * tui/tui-layout.c (make_command_window, make_source_window)
6069 (make_disasm_window, make_data_window)
6070 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6071 (reset_locator, show_source_or_disasm_and_command): Update.
6072 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6073 win_type parameter.
6074 (struct tui_source_window_base) <reset>: Likewise.
6075
6076 2019-07-17 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui-layout.c (show_source_disasm_command): Use
6079 reset_locator.
6080 (reset_locator): New function.
6081 (init_and_make_win): Remove.
6082 (show_source_or_disasm_and_command): Use reset_locator.
6083
6084 2019-07-17 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6087 condition.
6088 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6089 Remove condition.
6090 * tui/tui-source.c (tui_source_window_base::reset): New method.
6091 * tui/tui-layout.c (make_command_window): Don't call
6092 init_and_make_win.
6093 (make_source_window, make_disasm_window): Don't call
6094 make_source_or_disasm_window.
6095 (make_data_window): Don't call init_and_make_win. Change calling
6096 convention.
6097 (show_source_disasm_command, show_data): Simplify.
6098 (make_source_or_disasm_window): Remove.
6099 (show_source_or_disasm_and_command): Simplify.
6100 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6101 (struct tui_source_window_base) <reset>: Likewise.
6102 <execution_info>: Remove initializer.
6103 * tui/tui-data.c (tui_source_window_base): Initialize
6104 execution_info.
6105
6106 2019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6109 variable.
6110
6111 2019-07-17 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui.c (tui_rl_other_window): Update.
6114 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6115 superclass method first. Always iterate over regs_content.
6116 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6117 method.
6118 * tui/tui-win.c (tui_set_focus_command): Update.
6119
6120 2019-07-17 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui-win.c (tui_set_focus_command): Rename from
6123 tui_set_focus. Call tui_enable.
6124 (tui_set_focus_command): Remove.
6125
6126 2019-07-17 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6129 refresh_window.
6130 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6131 touchwin.
6132 (tui_data_window::refresh_window): Call refresh_window on data
6133 items. Always call superclass refresh_window.
6134 (tui_win_info::refresh): Remove.
6135 (tui_source_window_base::refresh_window): Update.
6136 (tui_refresh_all): Update.
6137 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6138 refresh_window.
6139 (show_source_or_disasm_and_command): Likewise.
6140 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6141 (struct tui_source_window_base) <refresh>: Likewise.
6142
6143 2019-07-17 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-winsource.c (tui_clear_source_content)
6146 (tui_show_source_content): Update.
6147 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6148 whether content is empty.
6149 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6150 Remove.
6151
6152 2019-07-17 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6155 window's contents.
6156 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6157 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6158
6159 2019-07-17 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6162 (struct tui_data_item_window): Update.
6163
6164 2019-07-17 Tom Tromey <tom@tromey.com>
6165
6166 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6167 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6168 defines.
6169
6170 2019-07-17 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-winsource.h (tui_erase_source_content)
6173 (tui_clear_source_content): Remove "display_prompt" parameter.
6174 * tui/tui-winsource.c (tui_update_source_window_as_is)
6175 (tui_update_source_windows_with_addr): Update.
6176 (tui_clear_source_content): Remove "display_prompt" parameter.
6177 (tui_erase_source_content): Likewise. Simplify.
6178 (tui_show_source_content): Update.
6179 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6180 * tui/tui-stack.c (tui_show_frame_info): Update.
6181 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6182 Remove defines.
6183
6184 2019-07-17 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6187 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6188 parameter.
6189 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6190 parameter.
6191
6192 2019-07-17 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-winsource.c (tui_clear_source_content)
6195 (tui_show_source_content, tui_show_exec_info_content)
6196 (tui_clear_exec_info_content): Update.
6197 * tui/tui-stack.c (tui_show_locator_content): Update.
6198 (tui_show_frame_info): Update.
6199 * tui/tui-source.h (tui_source_window): Don't declare.
6200 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6201 from tui_source_is_displayed.
6202 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6203 Remove field.
6204 (struct tui_source_window_base) <content_in_use>: New field. Now
6205 bool.
6206 (struct tui_source_window) <showing_source_p>: New method.
6207 (TUI_SRC_WIN): Change cast.
6208 * tui/tui-data.c (tui_initialize_static_data): Update.
6209
6210 2019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6213 location_matches_p.
6214 * tui/tui-source.c (tui_source_window::location_matches_p): New
6215 method.
6216 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6217 method.
6218 * tui/tui-data.h (struct tui_source_window_base)
6219 <location_matches_p>: New method.
6220 (struct tui_source_window, struct tui_disasm_window)
6221 <location_matches_p>: Likewise.
6222
6223 2019-07-17 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-win.c (tui_set_win_height_command): Rename from
6226 tui_set_win_height.
6227 (tui_set_win_height_command): Remove.
6228
6229 2019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-source.c (tui_source_window): New constructor. Add
6232 observer.
6233 (~tui_source_window): New destructor.
6234 (tui_source_window::style_changed): New method.
6235 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6236 (tui_attach_detach_observers): Update.
6237 * tui/tui-data.h (struct tui_source_window): Make constructor not
6238 inline. Add destructor.
6239 (struct tui_source_window) <style_changed>: New method.
6240 <m_observable>: New member.
6241
6242 2019-07-17 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6245 * tui/tui-win.c (tui_resize_all): Fix typo.
6246
6247 2019-07-17 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6250 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6251 (tui_refresh_all): Remove "list" parameter. Use foreach.
6252 * tui/tui-win.c (window_name_completer): Use foreach.
6253 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6254 (update_tab_width): Likewise.
6255 * tui/tui-layout.c (show_layout): Update.
6256 * tui/tui-data.h (class tui_window_iterator): New.
6257 (struct all_tui_windows): New.
6258 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6259
6260 2019-07-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6263 parameter. Don't reference globals.
6264 (tui_reg_command): Update.
6265
6266 2019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-regs.c (tui_show_registers): Simplify.
6269
6270 2019-07-17 Tom Tromey <tom@tromey.com>
6271
6272 * tui/tui-regs.c (tui_show_registers): Update.
6273 (tui_show_register_group): Add win_info parameter.
6274
6275 2019-07-17 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6278 Rename from tui_display_reg_element_at_line.
6279 (tui_data_window::display_registers_from_line): Update.
6280 * tui/tui-data.h (struct tui_data_window)
6281 <display_reg_element_at_line>: New method.
6282
6283 2019-07-17 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-regs.h (tui_display_registers_from)
6286 (tui_display_registers_from_line): Don't declare.
6287 * tui/tui-windata.c (tui_data_window::display_all_data)
6288 (tui_data_window::refresh_all)
6289 (tui_data_window::do_scroll_vertical): Update.
6290 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6291 from tui_display_registers_from.
6292 (tui_display_reg_element_at_line): Update.
6293 (tui_data_window::display_registers_from_line): Rename from
6294 tui_display_registers_from_line.
6295 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6296 display_registers_from_line>: New methods.
6297
6298 2019-07-17 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6301 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6302 from tui_erase_data_content.
6303 (tui_data_window::display_all_data)
6304 (tui_data_window::refresh_all)
6305 (tui_data_window::do_scroll_vertical): Update.
6306 * tui/tui-regs.c (tui_show_registers): Update.
6307 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6308 New method.
6309
6310 2019-07-17 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6313 declare.
6314 * tui/tui-windata.c
6315 (tui_data_window::delete_data_content_windows): Rename from
6316 tui_delete_data_content_windows.
6317 (tui_data_window::display_all_data)
6318 (tui_data_window::do_scroll_vertical): Update.
6319 * tui/tui-data.h (struct tui_data_window)
6320 <delete_data_content_windows>: New method.
6321
6322 2019-07-17 Tom Tromey <tom@tromey.com>
6323
6324 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6325 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6326
6327 2019-07-17 Tom Tromey <tom@tromey.com>
6328
6329 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6330 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6331 from tui_display_all_data.
6332 * tui/tui-win.c
6333 (tui_data_window::do_make_visible_with_new_height): Update.
6334 * tui/tui-regs.c (tui_show_registers): Update.
6335 * tui/tui-layout.c (tui_set_layout): Update.
6336 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6337 method.
6338
6339 2019-07-17 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6342 * tui/tui-windata.c (tui_display_data_from): Remove.
6343 (tui_data_window::refresh_all): Update.
6344
6345 2019-07-17 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6348 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6349 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6350 tui_display_registers_from_line.
6351 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6352 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6353 "force_display" parameter.
6354
6355 2019-07-17 Tom Tromey <tom@tromey.com>
6356
6357 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6358 declare.
6359 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6360 Rename from tui_first_reg_element_no_inline.
6361 (tui_display_reg_element_at_line)
6362 (tui_display_registers_from_line): Update.
6363 * tui/tui-data.h (struct tui_data_window)
6364 <first_reg_element_no_inline>: New method.
6365
6366 2019-07-17 Tom Tromey <tom@tromey.com>
6367
6368 * tui/tui-windata.c (tui_display_data_from)
6369 (tui_data_window::do_scroll_vertical): Update.
6370 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6371 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6372 Rename from tui_line_from_reg_element_no.
6373 (tui_display_registers_from_line): Update.
6374 * tui/tui-data.h (struct tui_data_window)
6375 <line_from_reg_element_no>: New method.
6376
6377 2019-07-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6380 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6381 tui_last_regs_line_no.
6382 (tui_display_reg_element_at_line)
6383 (tui_display_registers_from_line): Update.
6384 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6385 method.
6386
6387 2019-07-17 Tom Tromey <tom@tromey.com>
6388
6389 PR tui/24722:
6390 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6391 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6392 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6393 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6394 (tui_update_breakpoint_info): Likewise.
6395 * tui/tui-hooks.c (tui_event_create_breakpoint)
6396 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6397 Update.
6398
6399 2019-07-17 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6402
6403 2019-07-17 Tom Tromey <tom@tromey.com>
6404
6405 * tui/tui-winsource.c (tui_update_source_window_as_is)
6406 (tui_update_source_windows_with_addr): Update.
6407 * tui/tui-source.h (tui_set_source_content)
6408 (tui_show_symtab_source): Add "win_info" parameter.
6409 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6410 parameter.
6411 (tui_show_symtab_source): Likewise.
6412
6413 2019-07-17 Tom Tromey <tom@tromey.com>
6414
6415 * tui/tui-wingeneral.c
6416 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6417
6418 2019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6421 (struct tui_cmd_window) <can_scroll>: New method.
6422 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6423 method.
6424
6425 2019-07-17 Tom Tromey <tromey@adacore.com>
6426
6427 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6428 do_field_signed>: Rename. Change type of "value".
6429 * ui-out.c (ui_out::field_signed): Rename from field_int.
6430 Change type of "value".
6431 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6432 type of "value".
6433 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6434 do_field_int. Change type of "value".
6435 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6436 do_field_int. Change type of "value".
6437 * tracepoint.c (trace_status_mi, tfind_1)
6438 (print_one_static_tracepoint_marker): Update.
6439 * thread.c (print_thread_info_1, print_selected_thread_frame):
6440 Update.
6441 * stack.c (print_frame, print_frame_info): Update.
6442 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6443 Update.
6444 * source.c (print_source_lines_base): Update.
6445 * skip.c (info_skip_command): Update.
6446 * record-btrace.c (btrace_ui_out_decode_error)
6447 (btrace_call_history_src_line): Update.
6448 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6449 Update.
6450 * progspace.c (print_program_space): Update.
6451 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6452 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6453 do_field_int. Change type of "value".
6454 * mi/mi-out.c (mi_ui_out::do_table_begin)
6455 (mi_ui_out::do_table_header): Update.
6456 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6457 type of "value".
6458 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6459 (mi_cmd_data_list_changed_registers, output_register)
6460 (mi_cmd_data_read_memory, mi_load_progress)
6461 (mi_cmd_trace_frame_collected): Update.
6462 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6463 Update.
6464 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6465 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6466 (mi_cmd_var_list_children, varobj_update_one): Update.
6467 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6468 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6469 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6470 * inferior.c (print_inferior): Update.
6471 * gdb_bfd.c (print_one_bfd): Update.
6472 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6473 Update.
6474 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6475 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6476 do_field_int. Change type of "value".
6477 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6478 do_field_int. Change type of "value".
6479 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6480 (print_one_breakpoint_location, print_it_catch_fork)
6481 (print_one_catch_fork, print_it_catch_vfork)
6482 (print_one_catch_vfork, print_it_catch_solib)
6483 (print_it_catch_exec, print_it_ranged_breakpoint)
6484 (print_mention_watchpoint, print_mention_masked_watchpoint)
6485 (bkpt_print_it, update_static_tracepoint): Update.
6486 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6487 * break-catch-syscall.c (print_it_catch_syscall): Update.
6488 * ada-tasks.c (print_ada_task_info): Update.
6489 * ada-lang.c (print_it_exception, print_mention_exception):
6490 Update.
6491
6492 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 PR breakpoints/24541
6495 * gdbarch.c: Regenerate.
6496 * gdbarch.h: Regenerate.
6497 * gdbarch.sh: Adjust return type and parameter types for
6498 'stap_adjust_register'.
6499 (i386_stap_adjust_register): Adjust signature and return new
6500 register name.
6501 * stap-probe.c (stap_parse_register_operand): Adjust use of
6502 'gdbarch_stap_adjust_register'.
6503
6504 2019-07-17 Tom Tromey <tromey@adacore.com>
6505
6506 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6507 declare VEC.
6508 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6509 std::vector.
6510 (struct s390_process_info): Add initializers.
6511 (s390_add_process): Use new.
6512 (s390_linux_nat_target::low_forget_process): Use delete.
6513 (s390_linux_nat_target::low_new_fork)
6514 (s390_linux_nat_target::stopped_by_watchpoint)
6515 (s390_linux_nat_target::low_prepare_to_resume)
6516 (s390_linux_nat_target::insert_watchpoint)
6517 (s390_linux_nat_target::insert_hw_breakpoint)
6518 (s390_linux_nat_target::remove_watchpoint)
6519 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6520
6521 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6522
6523 * aarch64-fbsd-nat.c: Include regcache.h.
6524 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6525 argument.
6526 (aarch64_fbsd_nat_target::fetch_registers)
6527 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6528 variable.
6529 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6530
6531 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6532
6533 * fbsd-nat.c: Include gdbarch.h.
6534
6535 2019-07-15 Tom Tromey <tromey@adacore.com>
6536
6537 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6538
6539 2019-07-15 Tom Tromey <tromey@adacore.com>
6540
6541 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6542 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6543 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6544 * cli-out.c (cli_ui_out::do_field_int): New method.
6545 * ui-out.c (ui_out::field_unsigned): New method.
6546 * symfile.c (generic_load): Use field_unsigned.
6547 (print_transfer_performance): Likewise.
6548 * record-btrace.c (ui_out_field_uint): Remove.
6549 (btrace_call_history_insn_range, btrace_call_history): Use
6550 field_unsigned.
6551 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6552 field_unsigned.
6553 * ui-out.h (class ui_out) <field_unsigned>: New method.
6554 <do_field_unsigned>: Likewise.
6555
6556 2019-07-15 Tom Tromey <tromey@adacore.com>
6557
6558 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6559 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6560 * target.c (flash_erase_command): Use field_string.
6561 * infrun.c (print_signal_received_reason): Use field_string.
6562 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6563 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6564 field_string.
6565 * ada-tasks.c (print_ada_task_info): Use field_string.
6566
6567 2019-07-15 Tom Tromey <tromey@adacore.com>
6568
6569 * target.c (flash_erase_command): Use field_core_addr.
6570 * symfile.c (generic_load): Use field_core_addr.
6571 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6572 Use field_core_addr.
6573 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6574 field_core_addr.
6575
6576 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6579 value if its desired type is smaller than a CORE_ADDR and signed.
6580
6581 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6584 of changes to field names, and use new is_reference field to
6585 decide if a property is a reference or not.
6586 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6587 field.
6588 (struct dwarf2_property_baton): Update header comment, rename
6589 'referenced_type' to 'property_type' and update comments.
6590 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6591 default property type, store in property baton, update to take
6592 accound of renamed field.
6593 (read_func_scope): Update call to attr_to_dynamic_prop.
6594 (read_array_type): Likewise.
6595 (dwarf2_per_cu_addr_sized_int_type): New function.
6596 (read_subrange_index_type): Move type finding code to
6597 dwarf2_per_cu_addr_sized_int_type.
6598 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6599 (dwarf2_per_cu_addr_type): New function.
6600 (set_die_type): Update calls to attr_to_dynamic_prop.
6601
6602 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * dwarf2read.c (read_subrange_index_type): New function.
6605 (read_subrange_type): Move code into new function and call it.
6606 * gdbtypes.c (create_range_type): Add some asserts.
6607
6608 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6609
6610 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6611 update return statements.
6612 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6613 declaration, and update comment to match.
6614 * gdbtypes.c (resolve_dynamic_array): Update call to
6615 dwarf2_evaluate_property to match new return type.
6616
6617 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * valarith.c (value_subscripted_rvalue): Change lowerbound
6620 parameter type from int to LONGEST.
6621 * value.h (value_subscripted_rvalue): Likewise in declaration.
6622
6623 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * cli/cli-utils.c (info_print_command_completer): New function.
6626 * cli/cli-utils.h: Add 'completer.h' include, and forward
6627 declaration for 'struct cmd_list_element'.
6628 (info_print_command_completer): Declare.
6629 * stack.c (_initialize_stack): Add completer for 'info locals' and
6630 'info args'.
6631 * symtab.c (_initialize_symtab): Add completer for 'info
6632 variables' and 'info functions'.
6633 * NEWS: Mention completion for additional info commands.
6634
6635 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * cli/cli-utils.c (extract_info_print_args): Delete.
6638 (extract_arg_maybe_quoted): Delete.
6639 (info_print_options_defs): New variable.
6640 (make_info_print_options_def_group): New function.
6641 (extract_info_print_options): Define new function.
6642 * cli/cli-utils.h (extract_info_print_args): Delete.
6643 (struct info_print_options): New structure.
6644 (extract_info_print_options): Declare new function.
6645 * stack.c (info_locals_command): Update to use new
6646 extract_info_print_options, also add a header comment.
6647 (info_args_command): Likewise.
6648 * symtab.c (info_variables_command): Likewise.
6649 (info_functions_command): Likewise.
6650
6651 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6654 to extract string arguments.
6655 * common/common-utils.c (extract_string_maybe_quoted): New function.
6656 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6657
6658 2019-07-11 Tom Tromey <tromey@adacore.com>
6659
6660 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6661 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6662 * top.h (gdbinit): Don't declare.
6663 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6664 into...
6665 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6666 * top.c (gdb_init): Don't call init_cli_cmds.
6667 (gdbinit): Remove.
6668 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6669
6670 2019-07-11 Tom Tromey <tromey@adacore.com>
6671
6672 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6673 after it has been moved.
6674
6675 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * valops.c (value_must_coerce_to_target): Change return type to
6678 bool.
6679 * value.h (value_must_coerce_to_target): Likewise.
6680
6681 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6682
6683 * breakpoint.c (is_hardware_watchpoint): Remove
6684 forward-declaration.
6685 (is_masked_watchpoint): Change return type to bool.
6686 (is_tracepoint): Likewise.
6687 (is_breakpoint): Likewise.
6688 (is_hardware_watchpoint): Likewise.
6689 (is_watchpoint): Likewise.
6690 (is_no_memory_software_watchpoint): Likewise.
6691 (is_catchpoint): Likewise.
6692 (breakpoint_1): Make FILTER parameter's return type bool.
6693 is_masked_watchpoint): Change return type to bool.
6694 (save_breakpoints): Make FILTER parameter's return type bool.
6695 * breakpoint.h (is_breakpoint): Change return type to bool.
6696 (is_watchpoint): Likewise.
6697 (is_catchpoint): Likewise.
6698 (is_tracepoint): Likewise.
6699
6700 2019-07-10 Tom Tromey <tom@tromey.com>
6701
6702 * defs.h: Don't include gdbarch.h.
6703 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6704 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6705 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6706 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6707 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6708 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6709 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6710 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6711 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6712 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6713 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6714 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6715 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6716 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6717 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6718 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6719 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6720 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6721 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6722 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6723 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6724 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6725 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6726 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6727 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6728 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6729 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6730
6731 2019-07-10 Tom Tromey <tromey@adacore.com>
6732
6733 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6734 * breakpoint.c (init_ada_exception_breakpoint): Register as
6735 bp_catchpoint.
6736 (print_one_breakpoint_location, print_one_breakpoint): Use
6737 is_ada_exception_catchpoint.
6738 * ada-lang.c (class ada_catchpoint_location): Pass
6739 bp_loc_software_breakpoint to bp_location constructor.
6740 (is_ada_exception_catchpoint): New function.
6741
6742 2019-07-10 Tom Tromey <tromey@adacore.com>
6743
6744 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6745 VEC.
6746 (struct arm_exidx_entry): New method operator<.
6747 (struct arm_exidx_data) <section_maps>: Change type.
6748 (arm_exidx_data_free): Remove.
6749 (arm_exidx_data_key): Change type. Move lower.
6750 (arm_exidx_new_objfile): Update.
6751 (arm_compare_exidx_entries): Remove.
6752 (arm_find_exidx_entry, _initialize_arm_tdep)
6753
6754 2019-07-10 Tom Tromey <tromey@adacore.com>
6755
6756 * solib-spu.c (ocl_program_data_key): Change type.
6757 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6758 Update.
6759
6760 2019-07-10 Tom Tromey <tromey@adacore.com>
6761
6762 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6763 (struct solib_aix_inferior_data) <library_list>: Change type.
6764 (solib_aix_inferior_data_handle): Change type.
6765 (get_solib_aix_inferior_data): Update.
6766 (solib_aix_free_library_list): Remove.
6767 (library_list_start_library): Update.
6768 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6769 return type.
6770 (solib_aix_get_library_list)
6771 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6772 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6773
6774 2019-07-10 Tom Tromey <tromey@adacore.com>
6775
6776 * solib-dsbt.c (struct dsbt_info): Add initializers.
6777 (solib_dsbt_pspace_data): Change type.
6778 (dsbt_pspace_data_cleanup): Remove.
6779 (get_dsbt_info, _initialize_dsbt_solib): Update.
6780
6781 2019-07-10 Tom Tromey <tromey@adacore.com>
6782
6783 * spu-tdep.c (spu_overlay_data): Change type.
6784 (spu_get_overlay_table, spu_overlay_new_objfile)
6785 (_initialize_spu_tdep): Update.
6786
6787 2019-07-10 Tom Tromey <tromey@adacore.com>
6788
6789 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6790 destructor.
6791 (dbx_objfile_data_key): Change type and declare later.
6792 (DBX_SYMFILE_INFO): Rewrite.
6793 * dbxread.c (dbx_objfile_data_key): Change type.
6794 (dbx_symfile_init): Update.
6795 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6796 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6797 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6798
6799 2019-07-10 Tom Tromey <tromey@adacore.com>
6800
6801 * jit.c (jit_program_space_key): Change type. Move lower.
6802 (get_jit_program_space_data): Update.
6803 (jit_program_space_data_cleanup): Remove.
6804 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6805 Update.
6806 (struct jit_program_space_data): Add initializers.
6807
6808 2019-07-10 Tom Tromey <tromey@adacore.com>
6809
6810 * solib-darwin.c (struct darwin_info): Add initializers.
6811 (solib_darwin_pspace_data): Change type.
6812 (darwin_pspace_data_cleanup): Remove.
6813 (get_darwin_info, _initialize_darwin_solib): Update.
6814
6815 2019-07-10 Tom Tromey <tromey@adacore.com>
6816
6817 * remote-sim.c (struct sim_inferior_data): Add initializers,
6818 constructor, and destructor.
6819 (sim_inferior_data_key): Change type. Move lower.
6820 (check_for_duplicate_sim_descriptor): Update.
6821 (get_sim_inferior_data): Use new. Update.
6822 (~sim_inferior_data_cleanup): Rename from
6823 sim_inferior_data_cleanup. Simplify.
6824 (gdbsim_close_inferior, simulator_command)
6825 (sim_command_completer, _initialize_remote_sim): Update.
6826 (next_pid, INITIAL_PID): Move earlier.
6827
6828 2019-07-10 Tom Tromey <tromey@adacore.com>
6829
6830 * python/python-internal.h (create_thread_object): Return
6831 gdbpy_ref.
6832 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6833 * python/py-inferior.c (struct threadlist_entry): Add
6834 constructor.
6835 <thread_obj>: Now a gdbpy_ref.
6836 (thread_to_thread_object): Update.
6837 (add_thread_object): Use new.
6838 (delete_thread_object): Use delete.
6839 (infpy_threads): Update.
6840 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6841 GIL.
6842
6843 2019-07-10 Tom Tromey <tromey@adacore.com>
6844
6845 * valops.c (value_cast): Specialize error message for Ada.
6846
6847 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6848
6849 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6850
6851 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6852
6853 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6854 bpstat_should_step): Return bool, adjust comments.
6855 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6856 bpstat_should_step): Likewise.
6857
6858 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6859
6860 * features/Makefile: Use feature target descriptions for Arm.
6861 * features/arm/arm-core.c: Generate new file.
6862 * features/arm/arm-fpa.c: Likewise.
6863 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6864 * features/arm/arm-m-profile.c: Likewise.
6865 * features/arm/arm-vfpv2.c: Likewise.
6866 * features/arm/arm-vfpv3.c: Likewise.
6867 * features/arm/xscale-iwmmxt.c: Likewise.
6868 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6869
6870 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6871
6872 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6873 ptrace earlier.
6874
6875 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6876
6877 * features/aarch64-pauth.c: Regenerate.
6878
6879 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6880
6881 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6882 bool.
6883 (bpstat_what): Use false instead of 0.
6884
6885 2019-07-09 Pedro Alves <palves@redhat.com>
6886
6887 * break-catch-throw.c (is_exception_catchpoint): New.
6888 * breakpoint.c (print_one_breakpoint_location): New parameter
6889 'raw_loc'. Handle it. Use
6890 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6891 looking at the breakpoint's type.
6892 (print_one_breakpoint): If handling "maint info breakpoints", also
6893 print locations of exception catchpoints.
6894 * breakpoint.h (is_exception_catchpoint): Declare.
6895
6896 2019-07-09 Pedro Alves <palves@redhat.com>
6897
6898 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6899 "addr" field.
6900 (allocate_location_exception_catchpoint): New.
6901 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6902 (initialize_throw_catchpoint_ops): Install
6903 allocate_location_exception_catchpoint as allocate_location
6904 method.
6905 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6906 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6907 bp_loc_other.
6908 (breakpoint_address_is_meaningful): Delete.
6909 (bl_address_is_meaningful): New.
6910 (breakpoint_locations_match): Adjust comment.
6911 (bp_location_from_bp_type): New, factored out of...
6912 (bp_location::bp_location(breakpoint *)): ... this.
6913 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6914 factored out of...
6915 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6916 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6917 breakpoint_address_is_meaningful.
6918 (bp_locations_compare): Adjust comment.
6919 (update_global_location_list): Use bl_address_is_meaningful
6920 instead of breakpoint_address_is_meaningful.
6921 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6922 explicit.
6923 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6924 * python/py-breakpoint.c (bppy_get_location): No longer check
6925 whether location is null.
6926
6927 2019-07-09 Pedro Alves <palves@redhat.com>
6928
6929 PR c++/15468
6930 * breakpoint.c (print_one_breakpoint_location): Remove
6931 single-location assert.
6932
6933 2019-07-09 Tom Tromey <tom@tromey.com>
6934
6935 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6936 * configure: Rebuild.
6937 * configure.ac: Change common to gdbsupport.
6938 * gdbsupport: Rename from common.
6939 * acinclude.m4: Change common to gdbsupport.
6940 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6941 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6942 gdbsupport.
6943 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6944 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6945 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6946 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6947 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6948 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6949 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6950 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6951 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6952 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6953 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6954 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6955 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6956 coff-pe-read.c, command.h, compile/compile-c-support.c,
6957 compile/compile-c.h, compile/compile-cplus-symbols.c,
6958 compile/compile-cplus-types.c, compile/compile-cplus.h,
6959 compile/compile-loc2c.c, compile/compile.c, completer.c,
6960 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6961 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6962 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6963 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6964 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6965 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6966 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6967 features/aarch64-core.c, features/aarch64-fpu.c,
6968 features/aarch64-pauth.c, features/aarch64-sve.c,
6969 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6970 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6971 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6972 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6973 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6974 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6975 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6976 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6977 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6978 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6979 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6980 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6981 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6982 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6983 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6984 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6985 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6986 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6987 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6988 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6989 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6990 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6991 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6992 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6993 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6994 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6995 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6996 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6997 minsyms.c, mips-linux-tdep.c, namespace.h,
6998 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6999 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7000 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7001 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7002 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7003 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7004 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7005 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7006 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7007 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7008 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7009 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7010 procfs.c, producer.c, progspace.h, psymtab.h,
7011 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7012 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7013 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7014 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7015 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7016 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7017 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7018 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7019 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7020 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7021 target-memory.c, target.c, target.h, target/waitstatus.c,
7022 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7023 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7024 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7025 unittests/array-view-selftests.c,
7026 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7027 unittests/common-utils-selftests.c,
7028 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7029 unittests/format_pieces-selftests.c,
7030 unittests/function-view-selftests.c,
7031 unittests/lookup_name_info-selftests.c,
7032 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7033 unittests/mkdir-recursive-selftests.c,
7034 unittests/observable-selftests.c,
7035 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7036 unittests/parse-connection-spec-selftests.c,
7037 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7038 unittests/scoped_fd-selftests.c,
7039 unittests/scoped_mmap-selftests.c,
7040 unittests/scoped_restore-selftests.c,
7041 unittests/string_view-selftests.c, unittests/style-selftests.c,
7042 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7043 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7044 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7045 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7046 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7047 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7048
7049 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7052 bool value.
7053 (decode_digits_ordinary): Set explicit_line field in sal.
7054 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7055 symtab_and_line that was set on an explicit line number in
7056 assembler code. Do always update the recorded symtab and line if
7057 we do skip the prologue.
7058
7059 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * breakpoint.c (set_breakpoint_location_function): Remove
7062 explicit_loc parameter.
7063 (momentary_breakpoint_from_master): Update call to
7064 set_breakpoint_location_function.
7065 (add_location_to_breakpoint): Likewise.
7066
7067 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7068
7069 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7070 required features based on default bfd type when no specific bfd
7071 is present.
7072
7073 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7074
7075 * NEWS: Mention that GDB printf and eval commands can now print
7076 C-style and Ada-style convenience var strings without
7077 calling the inferior.
7078 * printcmd.c (printf_c_string): Locally print GDB internal var
7079 instead of transiting via the inferior.
7080 (printf_wide_c_string): Likewise.
7081
7082 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7083
7084 PR breakpoints/25011
7085 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7086
7087 2019-07-04 Tom Tromey <tom@tromey.com>
7088
7089 PR tui/24724:
7090 * tui/tui-winsource.c (tui_clear_source_content): Update.
7091 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7092 (tui_update_breakpoint_info): Update.
7093 (tui_set_exec_info_content): Update.
7094 * tui/tui-source.c (tui_set_source_content_nil): Update.
7095 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7096 has_break.
7097 * tui/tui-data.h (enum tui_bp_flag): New.
7098 (tui_bp_flags): New enum flags type.
7099 (struct tui_source_element) <break_mode>: Change type. Rename
7100 from has_break.
7101 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7102 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7103 constants.
7104 * tui/tui-winsource.h: Fix comment.
7105
7106 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7107
7108 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7109 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7110 (store_fpregs_to_thread)
7111 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7112 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7113 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7114 (IWMMXT_REGS_SIZE): Add define.
7115 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7116 (fetch_vfp_regs, store_vfp_regs)
7117 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7118 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7119
7120 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7121
7122 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7123 defines.
7124 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7125 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7126 (ARM_INT_REGISTER_SIZE): ...to this.
7127 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7128 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7129 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7130 (arm_linux_collect_gregset, supply_nwfpe_register)
7131 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7132 defines.
7133 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7134 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7135 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7136 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7137 (arm_return_in_memory, arm_store_return_value)
7138 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7139 (arm_record_ld_st_multiple): Likewise.
7140 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7141 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7142
7143 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7144
7145 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7146 AARCH64_DISPLACED_MODIFIED_INSNS.
7147 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7148 (aarch64_displaced_step_copy_insn): Likewise.
7149 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7150 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7151 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7152 ARM_DISPLACED_MODIFIED_INSNS.
7153 * arm-tdep.c (arm_gdbarch_init): Likewise.
7154 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7155 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7156 (struct arm_displaced_step_closure): Use
7157 ARM_DISPLACED_MODIFIED_INSNS.
7158
7159 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7160
7161 * features/Makefile: Remove unused xml files.
7162 * features/aarch64.xml: Remove.
7163 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7164 * features/i386/amd64-avx-avx512.xml: Remove.
7165 * features/i386/amd64-avx-linux.xml: Remove.
7166 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7167 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7168 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7169 * features/i386/amd64-avx-mpx.xml: Remove.
7170 * features/i386/amd64-avx.xml: Remove.
7171 * features/i386/amd64-linux.xml: Remove.
7172 * features/i386/amd64-mpx-linux.xml: Remove.
7173 * features/i386/amd64-mpx.xml: Remove.
7174 * features/i386/amd64.xml: Remove.
7175 * features/i386/i386-avx-avx512-linux.xml: Remove.
7176 * features/i386/i386-avx-avx512.xml: Remove.
7177 * features/i386/i386-avx-linux.xml: Remove.
7178 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7179 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7180 * features/i386/i386-avx-mpx-linux.xml: Remove.
7181 * features/i386/i386-avx-mpx.xml: Remove.
7182 * features/i386/i386-avx.xml: Remove.
7183 * features/i386/i386-linux.xml: Remove.
7184 * features/i386/i386-mmx-linux.xml: Remove.
7185 * features/i386/i386-mmx.xml: Remove.
7186 * features/i386/i386-mpx-linux.xml: Remove.
7187 * features/i386/i386-mpx.xml: Remove.
7188 * features/i386/i386.xml: Remove.
7189 * features/i386/x32-avx-avx512-linux.xml: Remove.
7190 * features/i386/x32-avx-linux.xml: Remove.
7191 * features/i386/x32-linux.xml: Remove.
7192
7193 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7194
7195 * regformats/aarch64.dat: Remove.
7196 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7197 * regformats/i386/amd64-avx-linux.dat: Remove.
7198 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7199 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7200 * regformats/i386/amd64-linux.dat: Remove.
7201 * regformats/i386/amd64-mpx-linux.dat: Remove.
7202 * regformats/i386/amd64.dat: Remove.
7203 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7204 * regformats/i386/i386-avx-linux.dat: Remove.
7205 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7206 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7207 * regformats/i386/i386-linux.dat: Remove.
7208 * regformats/i386/i386-mmx-linux.dat: Remove.
7209 * regformats/i386/i386-mpx-linux.dat: Remove.
7210 * regformats/i386/i386.dat: Remove.
7211 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7212 * regformats/i386/x32-avx-linux.dat: Remove.
7213 * regformats/i386/x32-linux.dat: Remove.
7214
7215 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7216
7217 * aarch64-tdep.c: Remove xml self tests.
7218 * amd64-linux-tdep.c: Likewise.
7219 * amd64-tdep.c: Likewise.
7220 * i386-linux-tdep.c: Likewise.
7221 * i386-tdep.c: Likewise.
7222
7223 2019-07-03 Pedro Alves <palves@redhat.com>
7224
7225 PR cli/24732
7226 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7227 (pipe_cmd_option_defs): New.
7228 (make_pipe_cmd_options_def_group): New.
7229 (pipe_command): Use gdb::option::process_options.
7230 (pipe_command_completer): New function.
7231 (_initialize_cli_cmds): Install completer for "pipe" command.
7232
7233 2019-07-03 Pedro Alves <palves@redhat.com>
7234
7235 * cli/cli-option.c (union option_value) <string>: New field.
7236 (struct option_def_and_value): Add ctor, move ctor, dtor and
7237 use DISABLE_COPY_AND_ASSIGN.
7238 (option_def_and_value::clear_value): New.
7239 (parse_option, save_option_value_in_ctx, get_val_type_str)
7240 (add_setshow_cmds_for_options): Handle var_string.
7241 * cli-option.h (union option_def::var_address) <string>: New
7242 field.
7243 (struct string_option_def): New.
7244 * maint-test-options.c (struct test_options_opts): Add default
7245 ctor and use DISABLE_COPY_AND_ASSIGN.
7246 <string_opt>: New field.
7247 (test_options_opts::~test_options_opts): New.
7248 (test_options_opts::dump): Also dump "-string".
7249 (test_options_option_defs): Install "string.
7250
7251 2019-07-03 Pedro Alves <palves@redhat.com>
7252
7253 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7254 option_value with a null enumeration.
7255 (complete_options): Save the option values in the context.
7256 (save_option_value_in_ctx): New, factored out from ...
7257 (process_options): ... here.
7258 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7259 of the function.
7260 * maint-test-options.c (test_options_opts::dump): New, factored
7261 out from ...
7262 (maintenance_test_options_command_mode): ... here.
7263 (maintenance_test_options_command_completion_result): Delete.
7264 (maintenance_test_options_command_completion_text): Update
7265 comment.
7266 (maintenance_show_test_options_completion_result): Change
7267 prototype. Just print
7268 maintenance_test_options_command_completion_text.
7269 (save_completion_result): New.
7270 (maintenance_test_options_completer_mode): Pass options context to
7271 complete_options, and then save a dump.
7272 (_initialize_maint_test_options): Use add_cmd to install "maint
7273 show test-options-completion-result".
7274
7275 2019-07-03 Pedro Alves <palves@redhat.com>
7276
7277 * NEWS (New commands): Mention "with" and "maint with".
7278 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7279 (with_command, with_command_completer): New.
7280 (pipe_command): Adjust to new repeat_previous
7281 interface.
7282 (_initialize_cli_cmds): Install the "with" command and its "w"
7283 alias.
7284 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7285 declarations.
7286 * cli/cli-setshow.c (parse_cli_var_uinteger)
7287 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7288 argument strings for all var_types.
7289 (get_setshow_command_value_string): New, factored out from ...
7290 (do_show_command): ... this.
7291 * cli/cli-setshow.h: Include <string>.
7292 (get_setshow_command_value_string): Declare.
7293 * command.h (repeat_previous): Now returns const char *. Adjust
7294 comment.
7295 * maint.c: Include "cli/cli-cmds.h".
7296 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7297 (_initialize_maint_cmds): Register the "maintenance with" command.
7298 * top.c (repeat_previous): Move bits from pipe_command here:
7299 Return the saved command line, if any; error out if there's no
7300 command to relaunch.
7301
7302 2019-07-03 Pedro Alves <palves@redhat.com>
7303
7304 * NEWS (New commands): Mention "maint set/show test-settings"
7305 instead of "maint test-settings".
7306 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7307 (maintenance_test_settings_set_list): Rename to ...
7308 (maintenance_set_test_settings_list): ... this.
7309 (maintenance_test_settings_show_list): Rename to ...
7310 (maintenance_show_test_settings_list): ... this.
7311 (maintenance_test_settings_cmd): Delete.
7312 (maintenance_test_settings_set_cmd): ...
7313 (maintenance_set_test_settings_cmd): ... this.
7314 (maintenance_test_settings_show_cmd): ...
7315 (maintenance_show_test_settings_cmd): ... this.
7316 (maintenance_test_settings_show_value_cmd):
7317 (maintenance_show_test_settings_value_cmd): ... this.
7318 (_initialize_maint_test_settings): No longer install the "maint
7319 test-settings" prefix command. Rename "maint test-settings set"
7320 to "maint set test-settings", and "maint test-settings show" to
7321 "maint show test-settings". Adjust all subcommands.
7322
7323 2019-07-03 Pedro Alves <palves@redhat.com>
7324
7325 * maint-test-settings.c: Fix file's intro comment. Replace all
7326 references to "test-options" with references to "test-settings",
7327 in comments.
7328
7329 2019-07-03 Pedro Alves <palves@redhat.com>
7330
7331 * maint-test-settings.c (maintenance_test_settings_xxx)
7332 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7333 New.
7334 (maintenance_test_settings_enums): Use them.
7335 (maintenance_test_settings_enum): Default to
7336 maintenance_test_settings_xxx.
7337 (_initialize_maint_test_settings): Initialize
7338 MAINTENANCE_TEST_SETTINGS_FILENAME.
7339
7340 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7341
7342 * breakpoint.h (remove_breakpoints_inf): Change return type to
7343 void, move function documentation here.
7344 * breakpoint.c (remove_breakpoints_inf): Change return type to
7345 void, move function documentation to header.
7346
7347 2019-07-02 Pedro Alves <palves@redhat.com>
7348
7349 * NEWS (Completion improvements): Mention "info threads".
7350 * thread.c (struct info_threads_opts, info_threads_option_defs)
7351 (make_info_threads_options_def_group): New.
7352 (info_threads_command): Use gdb::option::process_options.
7353 (info_threads_command_completer): New.
7354 (_initialize_thread): Use gdb::option::build_help to build the
7355 help text for "info threads".
7356
7357 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7358
7359 * defs.h (generic_load): Move from here...
7360 * symfile.h (generic_load): ... to here. Rename name parameter
7361 to args.
7362 * symfile.c (generic_load): Add comment.
7363
7364 2019-07-01 Tom Tromey <tromey@adacore.com>
7365
7366 * dwarf2read.c
7367 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7368 declaration of without_params. Fix formatting.
7369
7370 2019-07-01 Tom Tromey <tromey@adacore.com>
7371
7372 * ada-exp.y (find_primitive_type): Update.
7373 * ada-lang.h (ada_lookup_symbol): Update.
7374 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7375 parameter.
7376 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7377
7378 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7379
7380 PR breakpoints/24541
7381 * gdbarch.c: Regenerate.
7382 * gdbarch.h: Regenerate.
7383 * gdbarch.sh: Add 'stap_adjust_register'.
7384 * i386-tdep.c: Include '<unordered_set>'.
7385 (i386_stap_adjust_register): New function.
7386 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7387 * stap-probe.c (stap_parse_register_operand): Call
7388 'gdbarch_stap_adjust_register'.
7389
7390 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7391
7392 PR python/24742
7393 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7394 * python/python.c (do_start_initialization): Use 'xmalloc'
7395 instead of 'PyMem_Malloc'.
7396
7397 2019-06-28 Tom Tromey <tromey@adacore.com>
7398
7399 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7400 for Ada.
7401
7402 2019-06-27 Tom Tromey <tromey@adacore.com>
7403
7404 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7405 objfile_key.
7406 (arm_find_mapping_symbol, arm_record_special_symbol)
7407 (_initialize_arm_tdep): Update.
7408 (arm_objfile_data_free): Remove.
7409
7410 2019-06-27 Tom Tromey <tromey@adacore.com>
7411
7412 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7413 to cp_print_static_field.
7414
7415 2019-06-26 Tom Tromey <tromey@adacore.com>
7416
7417 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7418 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7419 declare.
7420
7421 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7422
7423 * features/aarch64-core.c (create_feature_aarch64_core):
7424 Regenerate.
7425 * features/aarch64-core.xml: Add cpsr flags.
7426
7427 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7428
7429 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7430 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7431
7432 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7433
7434 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7435 field.
7436 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7437 use.
7438 (arm_record_special_symbol): Don't insert new symbol in sorted
7439 position, push it at the end.
7440
7441 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7442
7443 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7444 (arm_mapping_symbol_s): Remove.
7445 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7446 (arm_mapping_symbol_vec): New typedef.
7447 (struct arm_per_objfile): Add constructor.
7448 <section_maps>: Change type to
7449 std::unique_ptr<arm_mapping_symbol_vec[]>.
7450 (arm_compare_mapping_symbols): Remove.
7451 (arm_find_mapping_symbol): Adjust to section_maps type change.
7452 (arm_objfile_data_free): Call delete on arm_per_objfile.
7453 (arm_record_special_symbol): Adjust to section_maps type change.
7454 Allocate arm_per_objfile with new.
7455
7456 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7457
7458 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7459 with the command prefix.
7460
7461 2019-06-25 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7464 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7465
7466 2019-06-25 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7469 type.
7470 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7471 protected.
7472
7473 2019-06-25 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-winsource.c
7476 (tui_source_window_base::set_is_exec_point_at): Add check against
7477 LOA_ADDRESS.
7478
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-source.c (tui_set_source_content): Don't check before
7482 xfree.
7483 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7484
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7486
7487 * tui/tui-winsource.h (tui_update_source_window_as_is)
7488 (tui_alloc_source_buffer, tui_line_is_displayed)
7489 (tui_addr_is_displayed): Change type of win_info.
7490 * tui/tui-winsource.c (tui_update_source_window_as_is)
7491 (tui_clear_source_content, tui_show_source_line)
7492 (tui_show_source_content, tui_source_window_base::refill)
7493 (tui_source_window_base::set_is_exec_point_at)
7494 (tui_source_window_base::set_is_exec_point_at)
7495 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7496 (tui_alloc_source_buffer, tui_line_is_displayed)
7497 (tui_addr_is_displayed): Change type of win_info. Update.
7498 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7499 (tui_source_window_base::do_make_visible_with_new_height):
7500 Update.
7501 * tui/tui-source.c (tui_set_source_content)
7502 (tui_set_source_content_nil)
7503 (tui_source_window::do_scroll_vertical): Update.
7504 * tui/tui-layout.c (show_layout): Update.
7505 * tui/tui-disasm.c (tui_set_disassem_content)
7506 (tui_disasm_window::do_scroll_vertical): Update.
7507 * tui/tui-data.h (tui_win_content): Remove.
7508 (struct tui_gen_win_info) <content, content_size>: Remove.
7509 (struct tui_source_element): Add initializers and destructor.
7510 (union tui_which_element, struct tui_win_element): Remove.
7511 (struct tui_source_window_base) <content>: New field.
7512 (struct tui_data_window): Remove destructor.
7513 (tui_alloc_content, tui_free_win_content)
7514 (tui_free_all_source_wins_content): Don't declare.
7515 * tui/tui-data.c (tui_initialize_static_data): Update.
7516 (init_content_element, tui_alloc_content): Remove.
7517 (~tui_gen_win_info): Update.
7518 (~tui_data_window, tui_free_all_source_wins_content)
7519 (tui_free_win_content, free_content, free_content_elements):
7520 Remove.
7521
7522 2019-06-25 Tom Tromey <tom@tromey.com>
7523
7524 * tui/tui-winsource.h (tui_clear_source_content)
7525 (tui_erase_source_content, tui_show_source_content): Change type
7526 of win_info.
7527 * tui/tui-winsource.c (tui_clear_source_content)
7528 (tui_erase_source_content, tui_show_source_content): Change type
7529 of win_info.
7530 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7531 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7532 win_info.
7533 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7534 win_info.
7535 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7536
7537 2019-06-25 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-winsource.c (tui_clear_source_content)
7540 (tui_source_window_base::set_is_exec_point_at): Update.
7541 * tui/tui-source.c (tui_set_source_content_nil): Update.
7542 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7543 a bool.
7544 * tui/tui-data.c (init_content_element): Update.
7545
7546 2019-06-25 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7549 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7550 * tui/tui-layout.c (init_and_make_win): Update.
7551 * tui/tui.h (enum tui_win_type): Update.
7552 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7553 tui_win_is_auxillary.
7554 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7555 tui_win_is_auxillary.
7556
7557 2019-06-25 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7560 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7561 (tui_delete_data_content_windows, tui_display_all_data)
7562 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7563 Update.
7564 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7565 * tui/tui-regs.c (tui_last_regs_line_no)
7566 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7567 (tui_show_registers): Update.
7568 (tui_show_register_group): Return void. Update.
7569 (tui_display_registers_from, tui_display_reg_element_at_line)
7570 (tui_display_registers_from_line, tui_check_register_values):
7571 Update.
7572 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7573 member.
7574 (struct tui_data_window) <regs_content>: Now a std::vector.
7575 <regs_content_count>: Remove.
7576 (tui_add_content_elements, tui_free_data_content): Don't declare.
7577 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7578 (init_content_element): Remove DATA_WIN case. Add assert.
7579 (tui_add_content_elements): Remove.
7580 (tui_data_window): Update.
7581 (tui_free_data_content): Remove.
7582 (free_content_elements): Remove DATA_WIN case.
7583
7584 2019-06-25 Tom Tromey <tom@tromey.com>
7585
7586 * tui/tui-data.c (tui_data_item_window): Update.
7587 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7588 * tui/tui-windata.c (tui_display_all_data)
7589 (tui_display_data_from_line): Update.
7590 (tui_check_data_values): Remove.
7591 * tui/tui-regs.c (tui_show_register_group)
7592 (tui_display_reg_element_at_line): Update.
7593 * tui/tui-hooks.c (tui_register_changed)
7594 (tui_refresh_frame_and_register_information): Call
7595 tui_check_register_values.
7596 * tui/tui-data.h (struct tui_data_window) <data_content,
7597 data_content_count, data_type>: Remove.
7598 (enum tui_data_type): Remove.
7599
7600 * tui/tui-data.c (tui_data_window::clear_detail)
7601 (~tui_data_window): Update.
7602
7603 2019-06-25 Tom Tromey <tom@tromey.com>
7604
7605 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7606 declare.
7607 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7608 Rename from tui_first_data_item_displayed. Update.
7609 (tui_data_window::refresh_all)
7610 (tui_data_window::do_scroll_vertical): Update.
7611 * tui/tui-data.h (struct tui_data_window)
7612 <first_data_item_displayed>: Declare new method.
7613
7614 2019-06-25 Tom Tromey <tom@tromey.com>
7615
7616 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7617 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7618 contents...
7619 (tui_initialize_static_data): ...here.
7620
7621 2019-06-25 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7624 (tui_display_registers_from, tui_check_register_values): Update.
7625 (tui_display_register): Remove win_info parameter; update.
7626 (tui_get_register): Change type of parameters.
7627 * tui/tui-data.h (struct tui_data_element): Remove.
7628 (union tui_which_element) <data>: Remove.
7629 <data_window>: Change type.
7630 (struct tui_data_item_window): New.
7631 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7632 case. Add assert.
7633 (~tui_data_item_window): New destructor.
7634 (free_content_elements): Remove DATA_ITEM_WIN case.
7635
7636 2019-06-25 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7639 Remove.
7640
7641 2019-06-25 Tom Tromey <tom@tromey.com>
7642
7643 * tui/tui-data.h (struct tui_command_element): Remove.
7644 (union tui_which_element) <command>: Remove.
7645 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7646 assert.
7647 (free_content_elements): Remove CMD_WIN case.
7648
7649 2019-06-25 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui-layout.c (tui_set_layout): Update.
7652 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7653 * tui/tui-data.c (layout_def): Update.
7654
7655 2019-06-25 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7658 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7659 (tui_source_window_base::set_new_height): Update.
7660 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7661 Update.
7662 (tui_set_locator_fullname, tui_set_locator_info)
7663 (tui_show_frame_info): Update.
7664 * tui/tui-source.c (tui_set_source_content)
7665 (tui_source_is_displayed): Update.
7666 * tui/tui-layout.c (show_source_disasm_command, show_data)
7667 (show_source_or_disasm_and_command): Update.
7668 * tui/tui-disasm.c (tui_set_disassem_content)
7669 (tui_get_begin_asm_address): Update.
7670 * tui/tui-data.h (struct tui_locator_element): Remove.
7671 (union tui_which_element) <locator>: Remove.
7672 (struct tui_locator_window): New.
7673 (tui_locator_win_info_ptr): Change return type.
7674 * tui/tui-data.c (_locator): Change type.
7675 (tui_locator_win_info_ptr): Change return type.
7676 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7677 (tui_alloc_content): Add assert.
7678
7679 2019-06-25 Tom Tromey <tom@tromey.com>
7680
7681 * tui/tui-winsource.c
7682 (tui_exec_info_window::maybe_allocate_content): New method.
7683 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7684 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7685 (make_source_or_disasm_window): Add cast.
7686 * tui/tui-data.h (union tui_which_element) <simple_string>:
7687 Remove.
7688 (struct tui_source_info): New.
7689 (struct tui_source_window_base) <execution_info>: Change type.
7690 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7691 case, and add assert.
7692 (tui_alloc_content): Add assert.
7693
7694 2019-06-25 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7697 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7698 * tui/tui-data.c (tui_alloc_win_info): Remove.
7699
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7703 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7704 can_highlight.
7705
7706 2019-06-25 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7709 make_visible_with_new_height method.
7710 (tui_win_info::make_visible_with_new_height): New method.
7711 (tui_source_window_base::do_make_visible_with_new_height)
7712 (tui_data_window::do_make_visible_with_new_height)
7713 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7714 (make_visible_with_new_height): Remove.
7715 (tui_resize_all, tui_adjust_win_heights): Use
7716 make_visible_with_new_height method.
7717 * tui/tui-data.h (struct tui_win_info)
7718 <do_make_visible_with_new_height, make_visible_with_new_height>:
7719 New methods.
7720 (struct tui_source_window_base, struct tui_data_window)
7721 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7722 methods.
7723
7724 2019-06-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7727 method.
7728 (update_tab_width): Call update_tab_width method.
7729 * tui/tui-data.h (struct tui_win_info)
7730 (struct tui_source_window_base) <update_tab_width>: New methods.
7731
7732 2019-06-25 Tom Tromey <tom@tromey.com>
7733
7734 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7735 parameter.
7736 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7737 parameter.
7738 (tui_gen_win_info::make_visible): Update.
7739 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7740 parameter.
7741 * tui/tui-data.h (enum tui_box): New enum.
7742 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7743
7744 2019-06-25 Tom Tromey <tom@tromey.com>
7745
7746 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7747 init_and_make_win for EXEC_INFO_WIN.
7748 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7749 longer inline.
7750 (struct tui_win_info) <~tui_win_info>: Inline.
7751 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7752 Don't declare.
7753 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7754 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7755 Remove.
7756 (tui_initialize_static_data): Update.
7757 (~tui_gen_win_info): Handle more cleanup here.
7758 (~tui_source_window_base): Delete "execution_info".
7759 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7760
7761 2019-06-25 Tom Tromey <tom@tromey.com>
7762
7763 * tui/tui-layout.c (make_command_window): Don't set
7764 can_highlight.
7765 (show_source_disasm_command): Call the reset method.
7766 (show_data): Don't set can_highlight. Call the reset method.
7767 (tui_gen_win_info::reset): Rename from init_gen_win_info
7768 (init_and_make_win): Simplify. Return tui_gen_win_info.
7769 (show_source_or_disasm_and_command): Call the reset method.
7770 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7771 (struct tui_cmd_window): Set can_highlight.
7772
7773 2019-06-25 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7776 from make_visible.
7777 (tui_make_visible, tui_make_invisible): Rewrite.
7778 (tui_win_info::make_visible): Remove.
7779 (tui_source_window_base::make_visible): Update.
7780 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7781 method. Moved from...
7782 (struct tui_win_info) <make_visible>: ...here.
7783
7784 2019-06-25 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-winsource.c
7787 (tui_source_window_base::do_scroll_horizontal): Remove direction
7788 parameter.
7789 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7790 direction parameter.
7791 * tui/tui-win.c (tui_win_info::forward_scroll)
7792 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7793 (tui_win_info::right_scroll): Update.
7794 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7795 direction parameter.
7796 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7797 direction parameter.
7798 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7799 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7800 Remove direction parameter.
7801 (struct tui_source_window_base, struct tui_source_window)
7802 (struct tui_disasm_window, struct tui_data_window)
7803 (struct tui_cmd_window): Update.
7804
7805 2019-06-25 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-winsource.h (tui_set_exec_info_content)
7808 (tui_show_exec_info_content, tui_erase_exec_info_content)
7809 (tui_clear_exec_info_content, tui_update_exec_info): Change
7810 argument to tui_source_window_base.
7811 * tui/tui-winsource.c (tui_set_exec_info_content)
7812 (tui_show_exec_info_content, tui_erase_exec_info_content)
7813 (tui_clear_exec_info_content, tui_update_exec_info): Change
7814 argument to tui_source_window_base.
7815
7816 2019-06-25 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7819 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7820
7821 2019-06-25 Tom Tromey <tom@tromey.com>
7822
7823 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7824 check.
7825
7826 2019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7829 type to void.
7830 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7831 type to void.
7832 * tui/tui-source.c (tui_set_source_content): Update.
7833 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7834
7835 2019-06-25 Tom Tromey <tom@tromey.com>
7836
7837 * tui/tui-win.c (window_name_completer, tui_set_focus)
7838 (tui_all_windows_info): Use name method.
7839 * tui/tui-data.h (struct tui_gen_win_info)
7840 (struct tui_source_window, struct tui_disasm_window)
7841 (struct tui_data_window, struct tui_cmd_window) <name>: New
7842 method.
7843 (tui_win_name): Don't declare.
7844 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7845 (tui_win_name): Remove.
7846
7847 2019-06-25 Tom Tromey <tom@tromey.com>
7848
7849 * tui/tui-winsource.h (tui_update_source_window)
7850 (tui_update_source_window_as_is): Change parameter type.
7851 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7852 to be a tui_source_window_base.
7853 (tui_update_source_window_as_is): Likewise.
7854 * tui/tui-win.c (make_visible_with_new_height): Update.
7855
7856 2019-06-25 Tom Tromey <tom@tromey.com>
7857
7858 * tui/tui-winsource.c (tui_erase_source_content)
7859 (tui_show_source_content, tui_show_exec_info_content)
7860 (tui_erase_exec_info_content): Use refresh_window method.
7861 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7862 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7863 from tui_refresh_win.
7864 (tui_data_window::refresh_window): New method.
7865 (tui_win_info::refresh, tui_source_window_base::refresh)
7866 (tui_refresh_all): Use refresh_window method.
7867 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7868 method.
7869 * tui/tui-regs.c (tui_display_register): Call refresh_window
7870 method.
7871 * tui/tui-layout.c (show_source_disasm_command)
7872 (show_source_or_disasm_and_command): Call refresh_window method.
7873 * tui/tui-data.h (struct tui_gen_win_info)
7874 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7875 New method.
7876
7877 2019-06-25 Tom Tromey <tom@tromey.com>
7878
7879 * tui/tui.c (tui_rl_other_window, tui_enable)
7880 (tui_is_window_visible, tui_get_command_dimension): Update.
7881 * tui/tui-winsource.c (tui_update_source_window_as_is)
7882 (tui_clear_source_content, tui_erase_source_content)
7883 (tui_show_source_line, tui_source_window_base::refill)
7884 (tui_source_window_base::do_scroll_horizontal)
7885 (tui_source_window_base::set_is_exec_point_at)
7886 (tui_update_breakpoint_info, tui_set_exec_info_content)
7887 (tui_alloc_source_buffer, tui_line_is_displayed)
7888 (tui_addr_is_displayed): Update.
7889 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7890 (tui_check_and_display_highlight_if_needed)
7891 (tui_win_info::make_visible, tui_win_info::refresh)
7892 (tui_refresh_all): Update.
7893 * tui/tui-windata.c (tui_first_data_item_displayed)
7894 (tui_delete_data_content_windows, tui_erase_data_content)
7895 (tui_display_all_data, tui_data_window::refresh_all)
7896 (tui_check_data_values): Update.
7897 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7898 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7899 (tui_win_info::backward_scroll, tui_refresh_all_win)
7900 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7901 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7902 (tui_source_window_base::set_new_height)
7903 (tui_data_window::set_new_height)
7904 (make_invisible_and_set_new_height)
7905 (make_visible_with_new_height, new_height_ok)
7906 (parse_scrolling_args): Update.
7907 * tui/tui-stack.c (tui_show_frame_info): Update.
7908 * tui/tui-source.c (tui_set_source_content)
7909 (tui_set_source_content_nil, tui_source_is_displayed)
7910 (tui_source_window::do_scroll_vertical): Update.
7911 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7912 (tui_display_registers_from, tui_display_reg_element_at_line)
7913 (tui_check_register_values, tui_reg_command): Update.
7914 * tui/tui-layout.c (tui_default_win_height)
7915 (show_source_disasm_command, show_data, init_and_make_win)
7916 (show_source_or_disasm_and_command): Update.
7917 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7918 (tui_redisplay_readline, tui_mld_flush)
7919 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7920 (tui_getc): Update.
7921 * tui/tui-disasm.c (tui_set_disassem_content)
7922 (tui_disasm_window::do_scroll_vertical): Update.
7923 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7924 Now virtual.
7925 (struct tui_win_info): Derive from tui_gen_win_info.
7926 <~tui_win_info>: Mark as override.
7927 <generic>: Remove member.
7928 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7929 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7930 (~tui_data_window, ~tui_win_info)
7931 (tui_free_all_source_wins_content): Update.
7932 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7933
7934 2019-06-25 Tom Tromey <tom@tromey.com>
7935
7936 * tui/tui-layout.c (init_and_make_win): Use new.
7937 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7938 destructor, initializers.
7939 (tui_alloc_generic_win_info): Don't declare.
7940 * tui/tui-data.c (_locator): Add argument to constructor.
7941 (source_win, disasm_win): New globals.
7942 (exec_info): Remove.
7943 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7944 Update.
7945 (tui_alloc_generic_win_info): Remove.
7946 (init_content_element): Use new.
7947 (tui_win_info::tui_win_info): Update.
7948 (free_content_elements) <case DATA_WIN>: Use delete.
7949
7950 2019-06-25 Tom Tromey <tom@tromey.com>
7951
7952 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7953 * tui/tui-windata.c (tui_first_data_item_displayed)
7954 (tui_delete_data_content_windows): Update.
7955 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7956 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7957 (tui_display_registers_from, tui_check_register_values): Update.
7958 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7959 pointer.
7960 * tui/tui-data.c (init_content_element): Update. Allocate the new
7961 window.
7962 (tui_free_data_content): Update.
7963 (free_content_elements) <case DATA_WIN>: Free the window.
7964
7965 2019-06-25 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7968 Update.
7969 * tui/tui-layout.c (make_command_window)
7970 (show_source_disasm_command, show_data, init_and_make_win)
7971 (show_source_or_disasm_and_command): Update.
7972 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7973 method.
7974 <can_highight, is_highlighted>: Now bool.
7975 (tui_set_win_highlight): Don't declare.
7976 * tui/tui-data.c (tui_set_win_highlight): Remove.
7977
7978 2019-06-25 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-wingeneral.c (make_visible): Remove check of window
7981 type.
7982
7983 2019-06-25 Tom Tromey <tom@tromey.com>
7984
7985 * tui/tui-win.c (tui_win_info::max_height)
7986 (tui_cmd_window::max_height): New methods.
7987 (new_height_ok): Call max_height.
7988 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7989 <max_height>: New method.
7990
7991 2019-06-25 Tom Tromey <tom@tromey.com>
7992
7993 * tui/tui-win.c (tui_source_window_base::set_new_height)
7994 (tui_data_window::set_new_height): New methods.
7995 (make_invisible_and_set_new_height): Call set_new_height method.
7996 * tui/tui-data.h (struct tui_win_info)
7997 (struct tui_source_window_base, struct tui_data_window)
7998 <set_new_height>: New method.
7999
8000 2019-06-25 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8003 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8004 tui_refresh_data_win.
8005 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8006 method.
8007 (tui_refresh_all_win): Call the refresh_all method.
8008 (tui_set_focus): Likewise.
8009 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8010 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8011 Likewise.
8012
8013 2019-06-25 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-winsource.h (tui_refill_source_window)
8016 (tui_set_is_exec_point_at): Don't declare.
8017 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8018 (tui_source_window_base::refill): Rename from
8019 tui_refill_source_window.
8020 (tui_source_window_base::do_scroll_horizontal): Update.
8021 (tui_source_window_base::set_is_exec_point_at): Rename from
8022 tui_set_is_exec_point_at.
8023 (tui_update_all_breakpoint_info): Update.
8024 * tui/tui-stack.c (tui_show_frame_info): Update.
8025 * tui/tui-layout.c (show_data): Add cast.
8026 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8027 * tui/tui-data.h (struct tui_source_window_base) <refill,
8028 set_is_exec_point_at>: New methods.
8029 (tui_source_windows, tui_add_to_source_windows): Update types.
8030 (tui_add_to_source_windows): Remove redundant declaration.
8031 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8032 (tui_source_windows): Change return type.
8033 (tui_clear_source_windows_detail): Update.
8034 (tui_add_to_source_windows): Change type of parameter.
8035 (tui_free_all_source_wins_content): Update.
8036
8037 2019-06-25 Tom Tromey <tom@tromey.com>
8038
8039 * tui/tui-wingeneral.c (tui_win_info::refresh)
8040 (tui_source_window_base::refresh): New methods.
8041 (tui_refresh_all): Call the refresh method.
8042 * tui/tui-data.h (struct tui_win_info)
8043 (struct tui_source_window_base) <refresh>: New method.
8044
8045 2019-06-25 Tom Tromey <tom@tromey.com>
8046
8047 * tui/tui.h (tui_is_window_visible): Return bool.
8048 * tui/tui.c (tui_is_window_visible): Return bool.
8049 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8050 (tui_make_visible, tui_make_invisible)
8051 (tui_win_info::make_visible)
8052 (tui_source_window_base::make_visible, make_all_visible)
8053 (tui_make_all_visible, tui_make_all_invisible): Update.
8054 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8055 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8056 bool.
8057 (struct tui_win_info, struct tui_source_window_base)
8058 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8059 * tui/tui-data.c (tui_init_generic_part): Update.
8060
8061 2019-06-25 Tom Tromey <tom@tromey.com>
8062
8063 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8064 (tui_source_window_base::make_visible): New methods.
8065 (make_all_visible): Make method call.
8066 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8067 (struct tui_source_window_base, struct tui_cmd_window): Override
8068 make_visible.
8069 (tui_win_is_source_type): Don't declare.
8070 * tui/tui-data.c (tui_win_is_source_type): Remove.
8071
8072 2019-06-25 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8075 NULL check.
8076
8077 2019-06-25 Tom Tromey <tom@tromey.com>
8078
8079 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8080 Inline constructor. Add initializers for members.
8081 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8082 constructors; now inline in class.
8083
8084 2019-06-25 Tom Tromey <tom@tromey.com>
8085
8086 * tui/tui-regs.c (tui_show_registers): Update.
8087 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8088 bool.
8089 * tui/tui-data.c (tui_data_window::clear_detail)
8090 (tui_data_window): Update.
8091
8092 2019-06-25 Tom Tromey <tom@tromey.com>
8093
8094 * tui/tui-windata.c (tui_display_all_data)
8095 (tui_display_data_from_line, tui_display_data_from)
8096 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8097 Update.
8098 * tui/tui-regs.c (tui_last_regs_line_no)
8099 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8100 (tui_show_registers, tui_show_register_group)
8101 (tui_display_registers_from, tui_display_reg_element_at_line)
8102 (tui_display_registers_from_line, tui_check_register_values)
8103 (tui_reg_next, tui_reg_prev): Update.
8104 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8105 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8106 tui_data_window.
8107 (struct tui_win_info) <detail>: Remove. Add new fields from
8108 tui_data_info.
8109 (TUI_DATA_WIN): Add cast.
8110 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8111 (~tui_data_window): Simplify.
8112
8113 2019-06-25 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-layout.c (show_source_disasm_command)
8116 (show_source_or_disasm_and_command): Update.
8117 * tui/tui-io.c (update_cmdwin_start_line)
8118 (tui_redisplay_readline): Update.
8119 * tui/tui-data.h (struct tui_command_info): Remove.
8120 (struct tui_win_info) <detail>: Remove command_info member.
8121 (struct tui_data_window) <start_line>: New member, from
8122 tui_command_info.
8123 (TUI_CMD_WIN): Add casts.
8124
8125 2019-06-25 Tom Tromey <tom@tromey.com>
8126
8127 * tui/tui-winsource.c (tui_update_source_window)
8128 (tui_refill_source_window)
8129 (tui_source_window_base::do_scroll_horizontal)
8130 (tui_update_breakpoint_info, tui_set_exec_info_content)
8131 (tui_show_exec_info_content, tui_erase_exec_info_content)
8132 (tui_clear_exec_info_content): Update.
8133 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8134 Update.
8135 * tui/tui-win.c (make_invisible_and_set_new_height)
8136 (make_visible_with_new_height): Update.
8137 * tui/tui-source.c (tui_set_source_content)
8138 (tui_show_symtab_source): Update.
8139 * tui/tui-layout.c (extract_display_start_addr)
8140 (show_source_disasm_command, show_data)
8141 (make_source_or_disasm_window)
8142 (show_source_or_disasm_and_command): Update.
8143 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8144 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8145 "gdbarch".
8146 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8147 to tui_source_window_base.
8148 (struct tui_win_info) <detail>: Remove source_info member.
8149 (struct tui_source_window_base) <has_locator>: Inline.
8150 Move contents from tui_source_info; rename has_locator member to
8151 m_has_locator.
8152 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8153 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8154 header file.
8155 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8156 Simplify.
8157 (tui_free_all_source_wins_content): Cast to
8158 tui_source_window_base.
8159
8160 2019-06-25 Tom Tromey <tom@tromey.com>
8161
8162 * tui/tui-win.c (make_invisible_and_set_new_height)
8163 (make_visible_with_new_height): Call has_locator method.
8164 * tui/tui-layout.c (show_source_disasm_command, show_data)
8165 (show_source_or_disasm_and_command): Update for bool change.
8166 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8167 (tui_win_info) <has_locator>: New method.
8168 (struct tui_source_window_base) <has_locator>: New method.
8169 (tui_win_has_locator): Don't declare.
8170 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8171 from tui_win_has_locator.
8172 (tui_source_window_base): Use false, not FALSE.
8173
8174 2019-06-25 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8177 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8178 clear_detail method directly.
8179 (tui_clear_win_detail): Remove.
8180
8181 2019-06-25 Tom Tromey <tom@tromey.com>
8182
8183 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8184 "this", not TUI_DISASM_WIN.
8185
8186 2019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8189 declare.
8190 * tui/tui-winsource.c
8191 (tui_source_window_base::do_scroll_horizontal): Rename from
8192 tui_horizontal_source_scroll.
8193 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8194 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8195 from tui_vertical_data_scroll.
8196 * tui/tui-win.h (tui_scroll): Don't declare.
8197 * tui/tui-win.c (tui_win_info::forward_scroll)
8198 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8199 (tui_win_info::right_scroll): Rename and update.
8200 (tui_scroll_forward_command, tui_scroll_backward_command)
8201 (tui_scroll_left_command, tui_scroll_right_command): Update.
8202 (tui_scroll): Remove.
8203 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8204 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8205 from tui_vertical_source_scroll.
8206 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8207 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8208 from tui_vertical_disassem_scroll.
8209 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8210 do_scroll_horizontal>: New methods.
8211 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8212 Likewise.
8213 (struct tui_source_window_base): Add do_scroll_horizontal.
8214 (struct tui_source_window, struct tui_disasm_window): Add
8215 do_scroll_vertical.
8216 (struct tui_data_window, struct tui_cmd_window): Add
8217 do_scroll_horizontal and do_scroll_vertical.
8218 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8219
8220 2019-06-25 Tom Tromey <tom@tromey.com>
8221
8222 * tui/tui-data.h (struct tui_source_window_base): New struct.
8223 (struct tui_source_window): Derive from tui_source_window_base.
8224 (struct tui_disasm_window): New struct.
8225 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8226 from tui_source_window::clear_detail.
8227 (tui_source_window_base): Rename from tui_source_window.
8228 (~tui_source_window_base): Rename from ~tui_source_window.
8229 (tui_alloc_win_info): Create a tui_disasm_window.
8230
8231 2019-06-25 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-data.h (struct tui_source_window)
8234 (struct tui_data_window): Declare destructors.
8235 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8236 destructors.
8237 (tui_win_info): Simplify.
8238
8239 2019-06-25 Tom Tromey <tom@tromey.com>
8240
8241 * tui/tui-winsource.c (tui_display_main)
8242 (tui_update_source_windows_with_addr)
8243 (tui_update_all_breakpoint_info): Update.
8244 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8245 (new_height_ok, parse_scrolling_args): Update.
8246 * tui/tui-stack.c (tui_show_frame_info): Update.
8247 * tui/tui-data.h (struct tui_list): Remove.
8248 (tui_source_windows): Return a reference to a std::vector.
8249 * tui/tui-data.c (source_windows): Now a std::vector.
8250 (tui_source_windows): Change return type.
8251 (tui_clear_source_windows): Rewrite.
8252 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8253 (tui_free_all_source_wins_content): Rewrite.
8254
8255 2019-06-25 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8258 (struct tui_data_window, struct tui_cmd_window): Declare
8259 clear_detail method.
8260 * tui/tui-data.c (tui_source_window::clear_detail)
8261 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8262 methods.
8263 (tui_clear_win_detail): Simplify.
8264
8265 2019-06-25 Tom Tromey <tom@tromey.com>
8266
8267 * tui/tui-layout.c (make_source_window, make_disasm_window)
8268 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8269 Return the new window.
8270 (show_source_disasm_command, show_data)
8271 (show_source_or_disasm_and_command): Update.
8272
8273 2019-06-25 Tom Tromey <tom@tromey.com>
8274
8275 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8276 parameter. Return the new window.
8277 (show_source_disasm_command): Update and remove NULL check.
8278 (show_source_or_disasm_and_command): Update.
8279
8280 2019-06-25 Tom Tromey <tom@tromey.com>
8281
8282 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8283
8284 2019-06-25 Tom Tromey <tom@tromey.com>
8285
8286 * tui/tui-data.h (struct tui_win_info): Make constructor
8287 protected. Make destructor virtual. Add initializers.
8288 (tui_source_window, tui_data_window, tui_cmd_window): New
8289 classes.
8290 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8291 constructor. Add "type" parameter.
8292 (tui_source_window, tui_data_window, tui_cmd_window): New
8293 constructors.
8294 (tui_alloc_win_info): Instantiate the appropriate subclass.
8295
8296 2019-06-25 Tom Tromey <tom@tromey.com>
8297
8298 * tui/tui-win.c (tui_resize_all): Use delete.
8299 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8300 destructor.
8301 (tui_free_window): Don't declare.
8302 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8303 Update.
8304
8305 2019-06-25 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-data.h (struct tui_win_info): Add constructor.
8308 * tui/tui-data.c (tui_alloc_win_info): Use new.
8309 (tui_free_window): Use delete.
8310
8311 2019-06-22 Tom Tromey <tom@tromey.com>
8312
8313 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8314 declare.
8315 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8316
8317 2019-06-22 Tom Tromey <tom@tromey.com>
8318
8319 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8320 declare.
8321 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8322
8323 2019-06-22 Tom de Vries <tdevries@suse.de>
8324
8325 * dwarf2read.c (create_addrmap_from_aranges)
8326 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8327 instead of '%zu'.
8328
8329 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8330
8331 * dwarf2read.h (dwarf2_section_info_def): Remove.
8332 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8333 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8334 std::vector<dwarf2_section_info>.
8335 (struct dwo_file) <~dwo_file>: Remove.
8336 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8337 types field.
8338 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8339 (dwarf2_read_debug_names): Likewise.
8340 (create_debug_types_hash_table): Change parameter type to
8341 array_view, adjust code accordingly.
8342 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8343 (partial_die_info::fixup): Likewise.
8344 (determine_prefix): Likewise.
8345 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8346
8347 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8348
8349 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8350 gdb_bfd_ref_ptr.
8351 <~dwo_file>: Remove call to gdb_bfd_unref.
8352 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8353 gdb_bfd_ref_ptr::get.
8354
8355 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8356
8357 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8358 type to htab_up.
8359 * dwarf2read.c (struct dwo_file): Initialize fields.
8360 <~dwo_file>: New.
8361 (free_dwo_file): Remove, move content to ~dwo_file.
8362 (struct dwo_file_deleter): Remove.
8363 (dwo_file_up>: Remove custom deleter.
8364 (free_dwo_files): Remove.
8365 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8366 dwo_files.
8367 (process_skeletonless_type_units): Call unique_ptr::get.
8368 (allocate_dwo_file_hash_table): Add deleter to created hash
8369 table. Change return type to htab_up.
8370 (lookup_dwo_file_slot): Don't memset dwo_file, call
8371 unique_ptr::get.
8372 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8373 (create_dwo_unit_in_dwp_v2): Likewise.
8374 (open_and_init_dwo_file): Likewise.
8375 (free_dwo_file_from_slot): Remove.
8376
8377 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8378
8379 * dwarf2read.h (struct dwarf2_section_info) <readin,
8380 is_virtual>: Change type to bool.
8381 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8382 true instead of 1.
8383
8384 2019-06-19 Tom Tromey <tom@tromey.com>
8385
8386 * tui/tui-data.h (tui_init_content_element): Don't declare.
8387
8388 2019-06-19 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-data.h (tui_init_win_info): Don't declare.
8391
8392 2019-06-19 Tom de Vries <tdevries@suse.de>
8393
8394 * dwarf2read.h (abstract_to_concrete): Change type to
8395 std::unordered_map<sect_offset, std::vector<sect_offset>,
8396 gdb::hash_enum<sect_offset>>.
8397
8398 2019-06-19 Tom Tromey <tromey@adacore.com>
8399
8400 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8401 EVAL_AVOID_SIDE_EFFECTS specially.
8402
8403 2019-06-19 Tom Tromey <tromey@adacore.com>
8404
8405 * source-cache.c (highlighter): New global.
8406 (source_cache::get_source_lines): Create a highlighter on demand.
8407
8408 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * defs.h (deprecated_interactive_hook): Delete declaration.
8411 * interps.c (clear_interpreter_hooks): Remove use of
8412 deprecated_interactive_hook.
8413 * top.c (deprecated_interactive_hook): Delete definition.
8414 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8415
8416 2019-06-18 Tom de Vries <tdevries@suse.de>
8417
8418 PR gdb/24515
8419 * dwarf2read.h (abstract_to_concrete): Change type from
8420 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8421 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8422 * dwarf2read.c (read_variable): Update.
8423 (dwarf2_fetch_die_loc_sect_off): Update.
8424
8425 2019-06-17 Tom de Vries <tdevries@suse.de>
8426
8427 PR gdb/24617
8428 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8429 accessing parent[parent_len - 1].
8430
8431 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8432
8433 PR gdb/24364
8434 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8435 call dtrace_process_dof with NULL dof.
8436
8437 2019-06-16 Tom de Vries <tdevries@suse.de>
8438
8439 PR gdb/24445
8440 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8441
8442 2019-06-16 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8445 (make_all_visible): Use address of member.
8446
8447 2019-06-16 Tom Tromey <tom@tromey.com>
8448
8449 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8450 (tui_free_window, free_content, free_content_elements): Remove
8451 unnecessary cast.
8452 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8453 cast.
8454 * tui/tui-regs.c (tui_show_register_group)
8455 (tui_display_registers_from, tui_display_reg_element_at_line):
8456 Remove unnecessary cast.
8457
8458 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * linux-nat.c (normal_mask): Delete.
8461 (_initialize_linux_nat): Don't initialise normal_mask.
8462
8463 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8464
8465 PR gdb/24445
8466 * dwarf-index-write.h (write_psymtabs_to_index): Add
8467 dwz_basename parameter.
8468 * dwarf-index-write.c (write_gdbindex): Move file writing to
8469 write_gdbindex_1. Change return type void.
8470 (assert_file_size): Move up, remove filename parameter.
8471 (write_gdbindex_1): New function.
8472 (write_debug_names): Change return type to void, call
8473 assert_file_size.
8474 (struct index_wip_file): New struct.
8475 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8476 file logic to index_wip_file. Write index for dwz file if
8477 needed.
8478 (save_gdb_index_command): Pass basename of dwz file, if present.
8479 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8480 build-id of dwz file, if present.
8481 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8482 (dwarf2_get_dwz_file): Likewise.
8483 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8484 (dwarf2_get_dwz_file): Likewise.
8485
8486 2019-06-16 Tom Tromey <tom@tromey.com>
8487
8488 * coffread.c (process_coff_symbol): Use xstrdup.
8489 * value.c (create_internalvar): Use xstrdup.
8490
8491 2019-06-16 Tom Tromey <tom@tromey.com>
8492
8493 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8494 * breakpoint.c (stopin_command, stopat_command)
8495 (until_break_command, decode_location_default): Remove unnecessary
8496 cast.
8497 * utils.c (subset_compare): Remove unnecessary cast.
8498 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8499 cast.
8500 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8501 cast.
8502 * infcmd.c (path_command): Remove unnecessary cast.
8503 * coffread.c (decode_type): Remove unnecessary cast.
8504 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8505 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8506 * tui/tui-stack.c (tui_show_locator_content)
8507 (tui_show_frame_info): Remove unnecessary cast.
8508 * tui/tui-win.c (tui_scroll_forward_command)
8509 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8510 (parse_scrolling_args): Remove unnecessary cast.
8511 * tui/tui-data.c (init_win_info, tui_del_window)
8512 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8513 (free_content_elements): Remove unnecessary cast.
8514 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8515 unnecessary cast.
8516 * tui/tui-source.c (tui_set_source_content)
8517 (tui_vertical_source_scroll): Remove unnecessary cast.
8518 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8519 cast.
8520 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8521 * tui/tui-regs.c (tui_display_registers_from)
8522 (tui_display_register): Remove unnecessary cast.
8523 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8524 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8525 (make_visible): Remove unnecessary cast.
8526 * tui/tui-winsource.c (tui_erase_source_content)
8527 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8528 unnecessary cast.
8529 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8530 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8531 * stabsread.c (read_type, read_array_type, read_range_type):
8532 Remove unnecessary cast.
8533 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8534 (parse_symbol, parse_type, upgrade_type, parse_external)
8535 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8536 unnecessary cast.
8537 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8538
8539 2019-06-16 Tom Tromey <tom@tromey.com>
8540
8541 * tui/tui-data.c (tui_alloc_generic_win_info)
8542 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8543 checks.
8544
8545 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8546 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * f-typeprint.c (f_print_type): Don't return early for not
8549 associated or not allocated types.
8550 (f_type_print_varspec_suffix): Add print_rank parameter and print
8551 ranks of array types in case they dangling.
8552 (f_type_print_base): Add print_rank parameter.
8553
8554 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * NEWS: Mention new MI commands.
8557 * break-catch-throw.c (enum exception_event_kind): Move to
8558 breakpoint.h.
8559 (print_mention_exception_catchpoint): Output text as a single
8560 message.
8561 (catch_exception_command_1): Rename to...
8562 (catch_exception_event): ...this, make non-static, update header
8563 command, and change some parameter types.
8564 (catch_catch_command): Update for changes to
8565 catch_exception_command_1.
8566 (catch_throw_command): Likewise.
8567 (catch_rethrow_command): Likewise.
8568 * breakpoint.c (enum exception_event_kind): Delete.
8569 * breakpoint.h (enum exception_event_kind): Moved here from
8570 break-catch-throw.c.
8571 (catch_exception_event): Declare.
8572 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8573 (mi_cmd_catch_throw): New function.
8574 (mi_cmd_catch_rethrow): New function.
8575 (mi_cmd_catch_catch): New function.
8576 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8577 'catch-catch' entries.
8578 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8579 (mi_cmd_catch_rethrow): Declare.
8580 (mi_cmd_catch_catch): Declare.
8581
8582 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * annotate.c (annotate_source_line): Change return type to void,
8585 update implementation to match.
8586 * annotate.h (annotate_source_line): Change return type to void,
8587 update header comment.
8588 * stack.c (print_frame_info): Don't change what frame information
8589 is printed based on whether annotations are on or not.
8590
8591 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8594 (annotate_source): Make static.
8595 (annotate_source_line): Moved from source.c and renamed from
8596 identify_source_line. Update the return type.
8597 * annotate.h (annotate_source): Delete declaration.
8598 (annotate_source_line): Declaration moved from source.h, and
8599 renamed from identify_source_line. Return type updated.
8600 * source.c (identify_source_line): Moved to annotate.c and renamed
8601 to annotate_source_line.
8602 (info_line_command): Remove check of annotation_level.
8603 * source.h (identify_source_line): Move declaration to annotate.h
8604 and rename to annotate_source_line.
8605 * stack.c: Add 'annotate.h' include.
8606 (print_frame_info): Remove check of annotation_level before
8607 calling annotate_source_line.
8608
8609 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * source-cache.c (source_cache::get_plain_source_lines): Use
8612 open_source_file_with_line_charpos instead of just
8613 open_source_file, remove call to find_source_lines.
8614 (source_cache::get_source_lines): Likewise.
8615 * source.c (find_source_lines): Make static.
8616 (get_filename_and_charpos): Renamed into...
8617 (open_source_file_with_line_charpos): ..this along with changes to
8618 return a scoped_fd, and some other minor clean ups.
8619 (identify_source_line): Use open_source_file_with_line_charpos.
8620 (search_command_helper): Use open_source_file_with_line_charpos
8621 instead of just open_source_file, remove call to
8622 find_source_lines.
8623 * source.h (open_source_file_with_line_charpos): Declare new
8624 function.
8625 (find_source_lines): Delete declaration.
8626
8627 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8628
8629 * source.c (get_filename_and_charpos): Remove fullname
8630 parameter.
8631 (identify_source_line): Update call to get_filename_and_charpos.
8632
8633 2019-06-14 Tom Tromey <tromey@adacore.com>
8634
8635 PR gdb/24502:
8636 * ui-style.h (skip_ansi_escape): Update comment.
8637 * ui-file.h (class no_terminal_escape_file): New class.
8638 * ui-file.c (no_terminal_escape_file::write)
8639 (no_terminal_escape_file::puts): New methods.
8640 * cli/cli-logging.c (handle_redirections): Use
8641 no_terminal_escape_file.
8642
8643 2019-06-14 Tom Tromey <tromey@adacore.com>
8644
8645 * NEWS: Move convenience variable news above Python news.
8646
8647 2019-06-14 Tom Tromey <tom@tromey.com>
8648
8649 * gnulib: Move directory to top-level.
8650 * configure.ac: Don't configure gnulib.
8651 * configure: Rebuild.
8652 * common/common-defs.h: Use new path to gnulib.
8653 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8654 (GNULIB_H): Remove.
8655 (INCGNU): Look in new gnulib location.
8656 (HFILES_NO_SRCDIR): Remove gnulib files.
8657 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8658 (generated_files): Remove GNULIB_H.
8659 ($(LIBGNU), all-lib): Remove targets.
8660 (distclean): Don't mention GNULIB_BUILDDIR.
8661 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8662
8663 2019-06-14 Tom Tromey <tromey@adacore.com>
8664
8665 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8666 Warn if symbol file does not provide any symbols.
8667
8668 2019-06-14 Tom Tromey <tromey@adacore.com>
8669
8670 * source.c (find_and_open_source): Respect basenames_may_differ.
8671
8672 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8673
8674 * annotate.c (annotate_breakpoints_invalid): Make use of
8675 scoped_restore_terminal_state.
8676 (annotate_frames_invalid): Likewise.
8677
8678 2019-06-14 Tom Tromey <tromey@adacore.com>
8679
8680 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8681 allow assignment to an internalvar.
8682
8683 2019-06-14 Tom Tromey <tromey@adacore.com>
8684
8685 * ada-lex.l: Allow "_" in attribute names.
8686
8687 2019-06-14 Tom Tromey <tromey@adacore.com>
8688
8689 PR gdb/24653:
8690 * regcache.c (registers_changed): Don't call alloca.
8691 * top.c (execute_command): Don't call alloca.
8692
8693 2019-06-13 Pedro Alves <palves@redhat.com>
8694
8695 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8696 'expression'. When parsing an expression, error out if there's
8697 junk after "unlimited".
8698 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8699 (do_set_command): Adjust calls to is_unlimited_literal.
8700
8701 2019-06-13 Pedro Alves <palves@redhat.com>
8702
8703 * compile/compile.c (make_compile_options_def_group): Add braces
8704 around array_view initializer.
8705 * thread.c (make_thread_apply_all_options_def_group)
8706 (make_thread_apply_all_options_def_group): Likewise.
8707
8708 2019-06-13 Pedro Alves <palves@redhat.com>
8709
8710 * NEWS (New commands): Mention "maint test-options
8711 require-delimiter", "maint test-options unknown-is-error", "maint
8712 test-options unknown-is-operand" and "maint show
8713 test-options-completion-result".
8714 (New command options, command completion): New section.
8715 (Completion improvements): New section.
8716 Mention that you can abbreviate "unlimited".
8717
8718 2019-06-13 Pedro Alves <palves@redhat.com>
8719
8720 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8721 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8722 * unittests/cli-utils-selftests.c (test_parse_flags)
8723 (test_parse_flags_qcs): Delete.
8724 (test_cli_utils): Don't call deleted functions.
8725
8726 2019-06-13 Pedro Alves <palves@redhat.com>
8727
8728 * thread.c: Include "cli/cli-option.h".
8729 (tp_array_compar_ascending): Global.
8730 (tp_array_compar): Delete function.
8731 (tp_array_compar_ascending, tp_array_compar_descending): New
8732 functions.
8733 (ascending_option_def, qcs_flag_option_def)
8734 (thr_qcs_flags_option_defs)
8735 (make_thread_apply_all_options_def_group)
8736 (make_thread_apply_options_def_group): New.
8737 (thread_apply_all_command): Use gdb::option::process_options.
8738 (thread_apply_command_completer)
8739 (thread_apply_all_command_completer): New.
8740 (thread_apply_command): Use gdb::option::process_options.
8741 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8742 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8743 to generate help text of "thread apply". Adjust "taas"'s help.
8744 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8745 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8746
8747 2019-06-13 Pedro Alves <palves@redhat.com>
8748
8749 * thread.c (thread_apply_command): Check for invalid TID with
8750 isdigit instead of !isalpha.
8751
8752 2019-06-13 Pedro Alves <palves@redhat.com>
8753
8754 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8755 (validate_flags_qcs): New.
8756 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8757 (validate_flags_qcs): Declare.
8758 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8759 (make_frame_apply_options_def_group): New.
8760 (frame_apply_command_count): Process options with
8761 gdb::option::process_options.
8762 (frame_apply_completer): New.
8763 (frame_apply_level_completer, frame_apply_all_completer)
8764 (frame_apply_completer): New.
8765 (_initialize_stack): Update help of "frame apply", "frame apply
8766 level", "frame apply all" and "faas" to mention supported options
8767 and install command completers.
8768 * stack.h (frame_apply_all_completer): Declare.
8769 * thread.c: Include "stack.h".
8770 (tfaas_command): Add "--".
8771 (_initialize_thread): Update help "tfaas" to mention supported
8772 options and install command completer.
8773
8774 2019-06-13 Pedro Alves <palves@redhat.com>
8775
8776 * completer.c (complete_nested_command_line): New.
8777 (gdb_completion_word_break_characters_throw): Add assertion.
8778 * completer.h (complete_nested_command_line): Declare.
8779
8780 2019-06-13 Pedro Alves <palves@redhat.com>
8781
8782 * stack.c (parse_backtrace_qualifiers): New.
8783 (backtrace_command): Use it.
8784 (backtrace_command_completer): Complete on qualifiers.
8785
8786 2019-06-13 Pedro Alves <palves@redhat.com>
8787
8788 * frame.c: Include "cli/cli-option.h.
8789 (user_set_backtrace_options): New.
8790 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8791 Delete.
8792 (get_prev_frame): Adjust.
8793 (boolean_option_def, uinteger_option_def)
8794 (set_backtrace_option_defs): New.
8795 (_initialize_frame): Adjust and use
8796 gdb::option::add_setshow_cmds_for_options to install "set
8797 backtrace past-main" and "set backtrace past-entry".
8798 * frame.h: Include "cli/cli-option.h".
8799 (struct frame_print_options): Forward declare.
8800 (print_frame_arguments_all, print_frame_arguments_scalars)
8801 (print_frame_arguments_none): Declare.
8802 (print_entry_values): Delete declaration.
8803 (struct frame_print_options, user_frame_print_options): New.
8804 (struct set_backtrace_options): New.
8805 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8806 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8807 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8808 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8809 (list_args_or_locals): Add frame_print_options parameter.
8810 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8811 * python/py-framefilter.c (enumerate_args): Pass down
8812 USER_FRAME_PRINT_OPTIONS.
8813 * stack.c: Include "cli/cli-option.h".
8814 (print_frame_arguments_all, print_frame_arguments_scalars)
8815 (print_frame_arguments_none): Declare.
8816 (print_raw_frame_arguments, print_entry_values): Delete.
8817 (user_frame_print_options): New.
8818 (boolean_option_def, enum_option_def, frame_print_option_defs):
8819 New.
8820 (struct backtrace_cmd_options): New.
8821 (bt_flag_option_def): New.
8822 (backtrace_command_option_defs): New.
8823 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8824 (print_frame_arg, read_frame_arg, print_frame_args)
8825 (print_frame_info, print_frame): Add frame_print_options parameter
8826 and use it.
8827 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8828 (backtrace_command_1): Add frame_print_options and
8829 backtrace_cmd_options parameters and use them.
8830 (make_backtrace_options_def_group): New.
8831 (backtrace_command): Process command options with
8832 gdb::option::process_options.
8833 (backtrace_command_completer): New.
8834 (_initialize_stack): Extend "backtrace"'s help to mention
8835 supported options. Install completer for "backtrace".
8836 Install some settings commands with add_setshow_cmds_for_options.
8837
8838 2019-06-13 Pedro Alves <palves@redhat.com>
8839
8840 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8841 and that "set/show print raw frame-arguments" are now deprecated.
8842
8843 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8844 command.
8845 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8846 * stack.c (_initialize_stack): Install "set/show print
8847 raw-frame-arguments", and deprecate "set/show print raw
8848 frame-arguments".
8849 * valprint.c (_initialize_valprint): Deprecate "set/show print
8850 raw".
8851
8852 2019-06-13 Pedro Alves <palves@redhat.com>
8853
8854 * compile/compile.c (struct compile_options): New.
8855 (compile_flag_option_def, compile_command_option_defs)
8856 (make_compile_options_def_group): New.
8857 (compile_file_command): Handle options with
8858 gdb::option::process_options.
8859 (compile_file_command_completer): New function.
8860 (compile_code_command): Handle options with
8861 gdb::option::process_options.
8862 (compile_code_command_completer): New function.
8863 (_initialize_compiler): Install completers for "compile code" and
8864 "compile file". Mention available options in "compile code" and
8865 "compile code"'s help.
8866 * completer.c (advance_to_completion_word): New, factored out from
8867 ...
8868 (advance_to_expression_complete_word_point): ... this.
8869 (advance_to_filename_complete_word_point): New.
8870 * completer.h (advance_to_filename_complete_word_point): New
8871 declaration.
8872
8873 2019-06-13 Pedro Alves <palves@redhat.com>
8874
8875 * compile/compile.c: Include "cli/cli-option.h".
8876 (compile_print_value): Scope data pointer is now a
8877 value_print_options pointer; adjust.
8878 (compile_print_command): Process options. Scope data pointer is
8879 now a value_print_options pointer; adjust.
8880 (_initialize_compile): Update "compile print"'s help to include
8881 supported options. Install a completer for "compile print".
8882 * cp-valprint.c (show_vtblprint, show_objectprint)
8883 (show_static_field_print): Delete.
8884 (_initialize_cp_valprint): Don't install "set print
8885 static-members", "set print vtbl", "set print object" here.
8886 * printcmd.c: Include "cli/cli-option.h" and
8887 "common/gdb_optional.h".
8888 (print_command_parse_format): Rework to fill in a
8889 value_print_options instead of a format_data.
8890 (print_value): Change parameter type from format_data pointer to
8891 value_print_options reference. Adjust.
8892 (print_command_1): Process options. Adjust to pass down a
8893 value_print_options.
8894 (print_command_completer): New.
8895 (_initialize_printcmd): Install print_command_completer as
8896 handle_brkchars completer for the "print" command. Update
8897 "print"'s help to include supported options.
8898 * valprint.c: Include "cli/cli-option.h".
8899 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8900 here from cp-valprint.c.
8901 (boolean_option_def, uinteger_option_def)
8902 (value_print_option_defs, make_value_print_options_def_group):
8903 New. Use gdb::option::add_setshow_cmds_for_options to install
8904 "set print elements", "set print null-stop", "set print repeats",
8905 "set print pretty", "set print union", "set print array", "set
8906 print address", "set print symbol", "set print array-indexes".
8907 * valprint.h: Include <string> and "cli/cli-option.h".
8908 (make_value_print_options_def_group): Declare.
8909 (print_value): Change parameter type from format_data pointer to
8910 value_print_options reference.
8911 (print_command_completer): Declare.
8912
8913 2019-06-13 Pedro Alves <palves@redhat.com>
8914
8915 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8916 (COMMON_SFILES): Add maint-test-settings.c.
8917 * cli/cli-decode.c (boolean_enums): New global, factored out from
8918 ...
8919 (add_setshow_boolean_cmd): ... here.
8920 * cli/cli-decode.h (boolean_enums): Declare.
8921 * cli/cli-option.c: New file.
8922 * cli/cli-option.h: New file.
8923 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8924 factored out from ...
8925 (parse_cli_boolean_value(const char *)): ... this.
8926 (is_unlimited_literal): Change parameter type to pointer to
8927 pointer. Adjust and advance ARG pointer.
8928 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8929 (parse_cli_var_enum): New, factored out from ...
8930 (do_set_command): ... this. Adjust.
8931 * cli/cli-setshow.h (parse_cli_boolean_value)
8932 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8933 (parse_cli_var_enum): Declare.
8934 * cli/cli-utils.c: Include "cli/cli-option.h".
8935 (get_ulongest): New.
8936 * cli/cli-utils.h (get_ulongest): Declare.
8937 (check_for_argument): New overloads.
8938 * maint-test-options.c: New file.
8939
8940 2019-06-13 Pedro Alves <palves@redhat.com>
8941
8942 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8943 parse a range if "-" is at the end of the string.
8944
8945 2019-06-13 Pedro Alves <palves@redhat.com>
8946
8947 * cli/cli-setshow.c (parse_auto_binary_operation)
8948 (parse_cli_boolean_value): Don't allow "o".
8949
8950 2019-06-13 Pedro Alves <palves@redhat.com>
8951
8952 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8953 * NEWS: Mention maint test-settings KIND.
8954 * maint-test-settings.c: New file.
8955
8956 2019-06-13 Pedro Alves <palves@redhat.com>
8957
8958 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8959 completer.
8960 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8961 "set" completers.
8962
8963 2019-06-13 Pedro Alves <palves@redhat.com>
8964
8965 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8966 after item.
8967
8968 2019-06-13 Pedro Alves <palves@redhat.com>
8969
8970 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8971
8972 2019-06-13 Pedro Alves <palves@redhat.com>
8973
8974 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8975 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8976 call.
8977 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8978 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8979 calls.
8980 (check_for_argument): Skip spaces after argument.
8981
8982 2019-06-13 Pedro Alves <palves@redhat.com>
8983
8984 * thread.c (thread_apply_command): Adjust TID parsing.
8985 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8986 detected before end of string.
8987 (tid_is_in_list): Error out if LIST is invalid.
8988
8989 2019-06-13 Pedro Alves <palves@redhat.com>
8990
8991 * completer.c (complete_line_internal_1): Rewind completion word
8992 point.
8993 (completion_tracker::advance_custom_word_point_by): Change
8994 parameter type to int.
8995 * completer.h (completion_tracker::advance_custom_word_point_by):
8996 Likewise.
8997
8998 2019-06-13 Pedro Alves <palves@redhat.com>
8999
9000 * completer.c (advance_to_completion_word): Handle delimiters.
9001
9002 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9003
9004 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9005
9006 2019-06-11 Tom Tromey <tom@tromey.com>
9007
9008 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9009 (xmalloc_failed): Move to alloc.c.
9010 * alloc.c: New file.
9011 * Makefile.in (COMMON_SFILES): Add alloc.c.
9012
9013 2019-06-11 Tom Tromey <tom@tromey.com>
9014
9015 * nat/linux-waitpid.c: Don't include server.h.
9016 (linux_debug): Remove.
9017 (my_waitpid): Update.
9018
9019 2019-06-11 Tom Tromey <tromey@adacore.com>
9020
9021 * infcall.c (_initialize_infcall): Remove trailing newline from
9022 help.
9023 * user-regs.c (_initialize_user_regs): Remove trailing newline
9024 from help.
9025 * typeprint.c (_initialize_typeprint): Remove trailing newline
9026 from help.
9027 * reverse.c (_initialize_reverse): Remove trailing newlines from
9028 help.
9029 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9030 from help.
9031 * language.c (add_set_language_command): Remove trailing newline
9032 from help.
9033 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9034 help.
9035 * disasm.c (_initialize_disasm): Remove trailing newline from
9036 help.
9037 * top.c (init_main): Remove trailing newline from help.
9038 * interps.c (_initialize_interpreter): Remove trailing newline
9039 from help.
9040 * btrace.c (_initialize_btrace): Remove trailing newlines from
9041 help.
9042 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9043 from help.
9044 * python/python.c (_initialize_python): Remove trailing newline
9045 from help.
9046 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9047 help.
9048 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9049 from help. Reformat some text.
9050 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9051 from help.
9052 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9053 newline from help.
9054
9055 2019-06-11 Tom Tromey <tromey@adacore.com>
9056
9057 * darwin-nat.c (darwin_decode_exception_message)
9058 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9059
9060 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * valops.c (value_slice): Check for not allocated or not
9063 associated values.
9064
9065 2019-06-10 Tom de Vries <tdevries@suse.de>
9066
9067 PR gdb/24618
9068 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9069 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9070 invalid.
9071
9072 2019-06-10 Tom de Vries <tdevries@suse.de>
9073
9074 PR gdb/24611
9075 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9076 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9077
9078 2019-06-10 Tom de Vries <tdevries@suse.de>
9079
9080 PR symtab/24545
9081 * symtab.c (struct demangled_name_entry): Add language field.
9082 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9083 static minimal symbol". Set and use language field.
9084
9085 2019-06-10 Tom Tromey <tromey@adacore.com>
9086
9087 * ada-lang.c (_initialize_ada_language): Update help text.
9088
9089 2019-06-10 Tom Tromey <tromey@adacore.com>
9090
9091 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9092 with a newline.
9093 * guile/guile.c (handle_boot_error): Don't end warning with a
9094 newline.
9095 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9096 warning with a newline.
9097 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9098 newline.
9099 (s12z_frame_cache): Likewise.
9100 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9101 a newline.
9102 * solib-svr4.c (disable_probes_interface): Don't end warning with
9103 a newline.
9104 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9105 newline.
9106 * python/python.c (do_finish_initialization): Don't end warning
9107 with a newline.
9108
9109 2019-06-10 Tom Tromey <tom@tromey.com>
9110
9111 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9112 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9113 gdbpy_enter.
9114
9115 2019-06-10 Tom Tromey <tromey@adacore.com>
9116
9117 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9118 data.
9119 (elf_new_init): Don't call stabsread_new_init.
9120 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9121 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9122 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9123
9124 2019-06-10 Tom de Vries <tdevries@suse.de>
9125
9126 PR symtab/16264
9127 PR symtab/24517
9128 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9129
9130 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9131
9132 * source.c (find_and_open_source): Also rewrite relative file
9133 names.
9134
9135 2019-04-26 Amos Bird <amosbird@gmail.com>
9136
9137 * annotate.c (annotate_thread_exited): Add "thread-exited"
9138 annotation.
9139
9140 2019-06-06 Tom Tromey <tromey@adacore.com>
9141
9142 * maint.h (class scoped_command_stats): Use
9143 DISABLE_COPY_AND_ASSIGN.
9144 <print_time>: New method.
9145 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9146 print_time.
9147 (scoped_command_stats::print_time): New method.
9148
9149 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9150
9151 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9152 instructions of lengths 6 or 8 bytes.
9153
9154 2019-06-04 Pedro Alves <palves@redhat.com>
9155
9156 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9157
9158 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9159 * breakpoint.c (condition_completer): Likewise.
9160 * cli/cli-dump.c (scan_expression): Likewise.
9161 * common/filestuff.c (mkdir_recursive): Likewise.
9162 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9163 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9164 (gdb_abspath): Likewise.
9165 * compile/compile-cplus-types.c
9166 (compile_cplus_instance::decl_name): Likewise.
9167 * completer.c (complete_explicit_location):
9168 (signal_completer, reg_or_group_completer_1): Likewise.
9169 * cp-support.c (cp_remove_params_if_any): Likewise.
9170 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9171 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9172 * infcmd.c (strip_bg_char): Likewise.
9173 * linespec.c (copy_token_string): Likewise.
9174 * mi/mi-main.c (output_cores): Likewise.
9175 * psymtab.c (psymtab_search_name):
9176 * symfile.c (test_set_ext_lang_command): Likewise.
9177 * target.c (target_fileio_read_stralloc): Likewise.
9178 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9179 * value.c (complete_internalvar): Likewise.
9180
9181 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9182
9183 Add objfile property to gdb.Type.
9184 * NEWS: Mention Python API addition.
9185 * python/py-type.c (typy_get_objfile): New method.
9186
9187 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9188
9189 * NEWS: Mention the new set|show style [title|highlight].
9190 Mention changes to "show style", "help" and "apropos".
9191
9192 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9193
9194 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9195 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9196 instead of print_help_for_command.
9197 (print_doc_of_command): New function.
9198 (help_list): Add 'apropos -v word' suggestion.
9199 (print_help_for_command): Style the command name using title style.
9200 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9201 (_initialize_cli_cmds): Describe -v in apropos_command help.
9202
9203 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9204
9205 * cli/cli-style.h (cli_style_option): Add name in constructor,
9206 add m_name class member, add constructor with intensity,
9207 add name class function.
9208 (cli_style_option::add_setshow_commands): Remove name argument.
9209 (highlight_style, title_style): New styles.
9210 * cli/cli-style.c (do_show): New function that shows a style
9211 characteristic styling the style name with itself.
9212 (set_style_name): New function.
9213 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9214 Update all callers according to the changes in cli/cli-style.h.
9215 * utils.h (fputs_highlighted): New function.
9216 * utils.c (fputs_highlighted): Likewise.
9217
9218 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9219
9220 * NEWS: Mention new pipe command and new convenience variables.
9221
9222 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9223
9224 * cli/cli-cmds.c (pipe_command): New function.
9225 (_initialize_cli_cmds): Call add_com for pipe_command.
9226 Define | as an alias for pipe.
9227 (exit_status_set_internal_vars): New function.
9228 (shell_escape): Call exit_status_set_internal_vars.
9229 cli/cli-decode.c (find_command_name_length): Recognize | as
9230 a single character command.
9231
9232 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9233
9234 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9235 top.c (execute_command_to_ui_file): New function, mostly a copy
9236 of execute_command_to_string.
9237 (execute_command_to_string): Implement by calling
9238 execute_command_to_ui_file.
9239
9240 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9241
9242 * top.h (saved_command_line): Remove declaration.
9243 * top.c (previous_saved_command_line, previous_repeat_arguments):
9244 New variables.
9245 (saved_command_line): Make static, define together with other
9246 'repeat variables'.
9247 (dont_repeat): Clear repeat_arguments.
9248 (repeat_previous, get_saved_command_line, save_command_line):
9249 New functions.
9250 (gdb_init): Initialize saved_command_line
9251 and previous_saved_command_line.
9252 * main.c (captured_main_1): Remove saved_command_line initialization.
9253 * event-top.c (handle_line_of_input): Update to use
9254 the new 'repeat' related functions instead of direct access to
9255 saved_command_line.
9256 * command.h (repeat_previous, get_saved_command_line,
9257 save_command_line): New declarations.
9258 (dont_repeat): Add comment.
9259
9260 2019-05-30 Tom Tromey <tromey@adacore.com>
9261
9262 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9263 Fix comment.
9264 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9265
9266 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9267
9268 PR cli/24587
9269 * completer.c (complete): Initialize variable word.
9270
9271 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9272
9273 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9274 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9275 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9276 'body' is NULL to the outter 'if', protecting the '!is_define'
9277 situation as well.
9278
9279 2019-05-29 Tom Tromey <tromey@adacore.com>
9280
9281 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9282 (dwarf_unknown): New function.
9283 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9284 (dwarf_type_encoding_name): Use dwarf_unknown.
9285
9286 2019-05-29 Tom Tromey <tromey@adacore.com>
9287
9288 PR c++/20020:
9289 * cp-valprint.c (cp_print_value_fields): Call
9290 cp_print_static_field inside "try".
9291
9292 2019-05-29 Tom Tromey <tromey@adacore.com>
9293
9294 * inflow.c (struct terminal_info): Add default operator=.
9295 * configure: Rebuild.
9296 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9297 -Wdeprecated-copy-dtor, -Wredundant-move.
9298
9299 2019-05-29 Tom Tromey <tromey@adacore.com>
9300
9301 * NEWS: Add entry.
9302 * infcmd.c (print_return_value_1): Handle finish_print
9303 option.
9304 (show_print_finish): New function.
9305 (_initialize_infcmd): Add "set/show print finish" commands.
9306 * valprint.c (user_print_options): Initialize new member.
9307 * valprint.h (struct value_print_options) <finish_print>: New
9308 member.
9309
9310 2019-05-28 Tom Tromey <tromey@adacore.com>
9311
9312 * ada-lang.c (ada_remove_Xbn_suffix)
9313 (find_old_style_renaming_symbol)
9314 (parse_old_style_renaming): Remove.
9315 (ada_find_renaming_symbol): Don't call
9316 find_old_style_renaming_symbol.
9317 (ada_is_renaming_symbol): Rename from
9318 ada_find_renaming_symbol. Remove "block" parameter. Return
9319 bool. Now static.
9320 (ada_read_var_value): Update and simplify.
9321 * ada-exp.y (write_var_or_type): Remove old code.
9322
9323 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9324
9325 PR gdb/25010
9326 * event-top.c: Remove include comment.
9327 * inflow.c (class scoped_ignore_sigttou): Move from here...
9328 * inflow.h (class scoped_ignore_sigttou): ...to here.
9329 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9330 * top.c: Remove include comment.
9331
9332 2019-05-27 Tom Tromey <tom@tromey.com>
9333
9334 * NEWS: Fix typo.
9335
9336 2019-05-22 Tom Tromey <tromey@adacore.com>
9337
9338 * target.c (target_follow_exec): Constify parameter.
9339 * target-delegates.c: Rebuild.
9340 * remote.c (remote_target::follow_exec): Constify parameter.
9341 * infrun.c (follow_exec): Constify parameter.
9342 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9343 (target_follow_exec): Likewise.
9344
9345 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9346
9347 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9348 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9349
9350 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9351
9352 * NEWS: Add debugredirect and testsuite sections.
9353
9354 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9355
9356 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9357 target descriptions using exclusively floating point register name
9358 aliases.
9359
9360 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9361
9362 PR gdb/18644:
9363 * f-lang.c (build_fortran_types): Handle the case where
9364 gdbarch_floatformat_for_type returns a nullptr.
9365
9366 2019-05-21 Tom de Vries <tdevries@suse.de>
9367
9368 PR cli/24587
9369 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9370
9371 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 PR gdb/18644:
9374 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9375 16-byte floats.
9376 * i386-tdep.c (i386_floatformat_for_type): Use
9377 floatformats_ia64_quad for the 16-byte floating point component
9378 within a fortran 32-byte complex number.
9379
9380 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9381
9382 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9383 delete default constructor.
9384 (find_partial_die): Update to return const struct.
9385 (partial_die_parent_scope): Move variable declaration into scope
9386 of its use and change its type to auto.
9387 (guess_partial_die_structure_name): Likewise.
9388 (partial_die_info::fixup): Likewise.
9389
9390 2019-05-17 Tom Tromey <tromey@adacore.com>
9391
9392 * source.c (find_and_open_source): Remove cast.
9393
9394 2019-05-17 Tom Tromey <tromey@adacore.com>
9395
9396 * annotate.c (annotate_source): Make "filename" const.
9397 * annotate.h (annotate_source): Use const.
9398
9399 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9400
9401 * disasm.c (set_disassembler_options): Send errors to stderr.
9402
9403 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9404
9405 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9406 (cli_interp_base::set_logging): Check debug_redirect.
9407 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9408 * cli/cli-logging.c (debug_redirect): Add static variable.
9409 (pop_output_files): Add default param.
9410 (handle_redirections): Print debug setting.
9411 (show_logging_command): Likewise.
9412 (_initialize_cli_logging): Add debugredirect command.
9413 * interps.c (current_interp_set_logging): Add debug_redirect
9414 parameter.
9415 * interps.h (set_logging): Add debug_redirect parameter.
9416 (current_interp_set_logging): Likewise.
9417 * mi/mi-common.h: Likewise.
9418 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9419
9420 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9421 Tom Tromey <tromey@adacore.com>
9422
9423 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9424 directly.
9425 * cli/cli-interp.h (make_logging_output): Remove declaration.
9426 * cli/cli-logging.c (make_logging_output): Remove function.
9427 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9428 directly.
9429 * ui-file.c (tee_file::tee_file): Remove bools.
9430 (tee_file::~tee_file): Remove deletes.
9431 * ui-file.h (tee_file): Remove bools.
9432
9433 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9434
9435 * mi/mi-cmds.h (mi_cmd_complete): New function.
9436 * mi/mi-main.c (mi_cmd_complete): Likewise.
9437 * mi/mi-cmds.c: Define new MI command -complete.
9438 * NEWS: Mention new -complete command.
9439
9440 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9441
9442 * completer.h (complete): New function.
9443 * completer.c (complete): Likewise.
9444 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9445 function defined in completer.h.
9446
9447 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9448
9449 * MAINTAINERS (Write After Approval): Add myself.
9450
9451 2019-05-17 Tom de Vries <tdevries@suse.de>
9452
9453 PR gdb/24094
9454 * dwarf2read.c (struct cu_partial_die_info): New struct.
9455 (find_partial_die): Return cu_partial_die_info.
9456 (partial_die_parent_scope, guess_partial_die_structure_name)
9457 (partial_die_info::fixup): Handle new return type of find_partial_die.
9458
9459 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9460
9461 PR breakpoints/24541
9462 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9463 "std::string", simplifying the algorithm.
9464
9465 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9466
9467 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9468 (stap_static_probe_ops::get_probes): Likewise.
9469
9470 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9471
9472 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9473 '-')" and "else if".
9474 (stap_parse_single_operand): Join checks for
9475 "gdbarch_stap_parse_special_token_p" and
9476 "gdbarch_stap_parse_special_token" in the same "if" statement.
9477 Invert check when verifying for operation on register
9478 displacement.
9479
9480 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9481
9482 * stap-probe.c (stap_get_opcode): Update comment.
9483 (stap_get_expected_argument_type): Likewise.
9484 (handle_stap_probe): Likewise.
9485
9486 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9487
9488 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9489 return type to 'bool'. Adjust comment. Use 'bool' when
9490 appropriate.
9491 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9492 * stap-probe.c (stap_parse_argument_1): Likewise.
9493 (stap_is_operator): Likewise.
9494 (stap_is_generic_prefix): Likewise.
9495 (stap_is_register_prefix): Likewise.
9496 (stap_is_register_indirection_prefix): Likewise.
9497 (stap_is_integer_prefix): Likewise.
9498 (stap_generic_check_suffix): Likewise.
9499 (stap_check_integer_suffix): Likewise.
9500 (stap_check_register_suffix): Likewise.
9501 (stap_check_register_indirection_suffix): Likewise.
9502 (stap_parse_register_operand): Likewise.
9503 (stap_parse_single_operand): Likewise.
9504 (stap_parse_argument_1): Likewise.
9505 (stap_probe::get_argument_count): Likewise.
9506 (stap_is_operator): Likewise.
9507
9508 2019-05-16 Tom Tromey <tromey@adacore.com>
9509
9510 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9511 keyword to foreach.
9512
9513 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * linux-thread-db.c (try_thread_db_load_1): Change return type
9516 to bool.
9517 (try_thread_db_load): Likewise.
9518 (try_thread_db_load_from_pdir_1): Likewise.
9519 (try_thread_db_load_from_pdir): Likewise.
9520 (try_thread_db_load_from_sdir): Likewise.
9521 (try_thread_db_load_from_dir): Likewise.
9522 (thread_db_load_search): Likewise.
9523 (has_libpthread): Likewise.
9524 (thread_db_load): Likewise.
9525
9526 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9527
9528 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9529 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9530 NULL, and complain/return if that's the case.
9531
9532 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9533
9534 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9535 (advance, posn, abstract_read_memory): New functions.
9536 [struct mem_read_abstraction]: New struct.
9537 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9538
9539 2019-05-14 Tom Tromey <tromey@adacore.com>
9540
9541 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9542 value is not lval_memory.
9543
9544 2019-05-14 Tom Tromey <tromey@adacore.com>
9545
9546 * solib.c (info_sharedlibrary_command): Style the file name.
9547
9548 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9549
9550 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9551 (aarch64_vnv_type): Likewise.
9552 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9553 * common/tdesc.c: Likewise.
9554 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9555 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9556 * features/aarch64-fpu.xml: Add ieee half view.
9557 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9558 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9559 * gdbtypes.h (struct builtin_type): Likewise.
9560 (struct objfile_type): Likewise.
9561
9562 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9563
9564 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9565 typo.
9566 * location.h (string_to_event_location): Likewise.
9567
9568 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9569
9570 GDB 8.3 released.
9571
9572 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9573
9574 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9575 New variable declaration.
9576 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9577 New variable.
9578 (print_one_breakpoint): Use ui_out::test_flags and new global
9579 variable to compute use_fixed_output.
9580 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9581 Remove.
9582 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9583 (mi_multi_location_breakpoint_output_fixed): Remove.
9584 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9585 new variable.
9586 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9587 fix_multi_location_breakpoint_output flag if version >= 3.
9588 * ui-out.h (enum ui_out_flag)
9589 <fix_multi_location_breakpoint_output>: New enumerator.
9590
9591 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9594
9595 2019-05-10 Tom Tromey <tromey@adacore.com>
9596
9597 * ada-lang.c (catch_ada_completer): New function.
9598 (_initialize_ada_language): Use it.
9599
9600 2019-05-10 Tom Tromey <tromey@adacore.com>
9601
9602 * thread.c (print_thread_info): Make "requested_threads" const.
9603 * gdbthread.h (print_thread_info): Make "requested_threads"
9604 const.
9605 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9606 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9607
9608 2019-05-08 Tom Tromey <tom@tromey.com>
9609
9610 * gdbtypes.c (objfile_type_data): Change type.
9611 (objfile_type, _initialize_gdbtypes): Update.
9612
9613 2019-05-08 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9616 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9617 (_initialize_dwarf2_frame): Update.
9618
9619 2019-05-08 Tom Tromey <tom@tromey.com>
9620
9621 * objc-lang.c (objc_objfile_data): Change type.
9622 (find_methods): Update.
9623 (_initialize_objc_lang): Remove.
9624
9625 2019-05-08 Tom Tromey <tom@tromey.com>
9626
9627 * stabsread.c (rs6000_builtin_type_data): Change type.
9628 (rs6000_builtin_type, _initialize_stabsread): Update.
9629
9630 2019-05-08 Tom Tromey <tom@tromey.com>
9631
9632 * mips-tdep.c (mips_pdr_data): Remove.
9633 (_initialize_mips_tdep): Update.
9634
9635 2019-05-08 Tom Tromey <tom@tromey.com>
9636
9637 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9638 (hppa_init_objfile_priv_data, read_unwind_info)
9639 (find_unwind_entry, _initialize_hppa_tdep): Update.
9640
9641 2019-05-08 Tom Tromey <tom@tromey.com>
9642
9643 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9644 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9645 on obstack.
9646 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9647
9648 2019-05-08 Tom Tromey <tom@tromey.com>
9649
9650 * mdebugread.c (basic_type_data): Change type.
9651 (basic_type, _initialize_mdebugread): Update.
9652
9653 2019-05-08 Tom Tromey <tom@tromey.com>
9654
9655 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9656
9657 2019-05-08 Tom Tromey <tom@tromey.com>
9658
9659 * nto-tdep.c (nto_inferior_data_reg): Change type.
9660 (nto_inferior_data): Update.
9661 (nto_inferior_data_cleanup, nto_new_inferior_data)
9662 (_initialize_nto_tdep): Remove.
9663 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9664
9665 2019-05-08 Tom Tromey <tom@tromey.com>
9666
9667 * ada-lang.c (struct ada_inferior_data): Add initializers.
9668 (ada_inferior_data): Change type.
9669 (ada_inferior_data_cleanup): Remove.
9670 (get_ada_inferior_data, ada_inferior_exit)
9671 (struct ada_pspace_data): Add initializers, destructor.
9672 (ada_pspace_data_handle): Change type.
9673 (get_ada_pspace_data): Update.
9674 (ada_pspace_data_cleanup): Remove.
9675
9676 2019-05-08 Tom Tromey <tom@tromey.com>
9677
9678 * coffread.c (struct coff_symfile_info): Add initializers.
9679 (coff_objfile_data_key): Move lower. Change type.
9680 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9681 Update.
9682 (coff_free_info): Remove.
9683
9684 2019-05-08 Tom Tromey <tom@tromey.com>
9685
9686 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9687 (fbsd_pspace_data_handle): Move lower. Change type.
9688 (get_fbsd_pspace_data): Update.
9689 (fbsd_pspace_data_cleanup): Remove.
9690 (_initialize_fbsd_tdep): Update.
9691
9692 2019-05-08 Tom Tromey <tom@tromey.com>
9693
9694 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9695 (get_ada_tasks_pspace_data): Update.
9696 (ada_tasks_pspace_data_cleanup): Remove.
9697 (_initialize_tasks): Update.
9698 (ada_tasks_inferior_data_handle): Change type.
9699 (get_ada_tasks_inferior_data): Update.
9700 (ada_tasks_inferior_data_cleanup): Remove.
9701 (struct ada_tasks_pspace_data): Add initializers.
9702
9703 2019-05-08 Tom Tromey <tom@tromey.com>
9704
9705 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9706 * symfile-debug.c (debug_sym_get_probes): Change type.
9707 * stap-probe.c (handle_stap_probe):
9708 (stap_static_probe_ops::get_probes): Change type.
9709 * probe.h (class static_probe_ops) <get_probes>: Change type.
9710 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9711 (parse_probes_in_pspace): Update.
9712 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9713 Update.
9714 (any_static_probe_ops::get_probes): Change type.
9715 * elfread.c (elfread_data): New typedef.
9716 (probe_key): Change type.
9717 (elf_get_probes): Likewise. Update.
9718 (probe_key_free): Remove.
9719 (_initialize_elfread): Update.
9720 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9721 Change type.
9722 (dtrace_process_dof_probe, dtrace_process_dof)
9723 (dtrace_static_probe_ops::get_probe): Change type.
9724
9725 2019-05-08 Tom Tromey <tom@tromey.com>
9726
9727 * xcoffread.c (struct xcoff_symfile_info): Rename from
9728 coff_symfile_info. Add initializers.
9729 (xcoff_objfile_data_key): Move lower. Change type.
9730 (XCOFF_DATA): Rewrite.
9731 (xcoff_free_info): Remove.
9732 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9733 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9734 (xcoff_initial_scan): Update.
9735
9736 2019-05-08 Tom Tromey <tom@tromey.com>
9737
9738 * solib-svr4.c (struct svr4_info): Add initializers and
9739 destructor.
9740 <probes_table>: Now an htab_up.
9741 (solib_svr4_pspace_data): Change type.
9742 (free_probes_table): Simplify.
9743 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9744 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9745 (probes_table_remove_objfile_probes, register_solib_event_probe)
9746 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9747 (_initialize_svr4_solib): Update.
9748
9749 2019-05-08 Tom Tromey <tom@tromey.com>
9750
9751 * remote.c (remote_pspace_data): Change type.
9752 (remote_pspace_data_cleanup): Remove.
9753 (get_remote_exec_file, set_pspace_remote_exec_file)
9754 (_initialize_remote): Update.
9755
9756 2019-05-08 Tom Tromey <tom@tromey.com>
9757
9758 * breakpoint.c (breakpoint_objfile_key): Change type.
9759 (get_breakpoint_objfile_data): Update.
9760 (free_breakpoint_objfile_data): Remove.
9761 (_initialize_breakpoint): Update.
9762
9763 2019-05-08 Tom Tromey <tom@tromey.com>
9764
9765 * linux-tdep.c (struct linux_info): Add initializers.
9766 (linux_inferior_data): Move. Change type.
9767 (invalidate_linux_cache_inf): Update.
9768 (linux_inferior_data_cleanup): Remove.
9769 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9770
9771 2019-05-08 Tom Tromey <tom@tromey.com>
9772
9773 * auxv.c (auxv_inferior_data): Move. Change type.
9774 (auxv_inferior_data_cleanup): Remove.
9775 (invalidate_auxv_cache_inf): Rewrite.
9776 (get_auxv_inferior_data, _initialize_auxv): Update.
9777
9778 2019-05-08 Tom Tromey <tom@tromey.com>
9779
9780 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9781 (symfile_debug_objfile_data_key): Change type.
9782 (symfile_debug_installed, debug_qf_has_symbols)
9783 (debug_qf_find_last_source_symtab)
9784 (debug_qf_forget_cached_source_info)
9785 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9786 (debug_qf_print_stats, debug_qf_dump)
9787 (debug_qf_expand_symtabs_for_function)
9788 (debug_qf_expand_all_symtabs)
9789 (debug_qf_expand_symtabs_with_fullname)
9790 (debug_qf_map_matching_symbols)
9791 (debug_qf_expand_symtabs_matching)
9792 (debug_qf_find_pc_sect_compunit_symtab)
9793 (debug_qf_map_symbol_filenames)
9794 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9795 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9796 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9797 (debug_sym_read_linetable, debug_sym_relocate): Update.
9798 (symfile_debug_free_objfile): Remove.
9799 (install_symfile_debug_logging, _initialize_symfile_debug):
9800 Update.
9801
9802 2019-05-08 Tom Tromey <tom@tromey.com>
9803
9804 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9805 allocate_on_obstack.
9806 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9807 (get_dwarf2_per_objfile): Update.
9808 (set_dwarf2_per_objfile): Remove.
9809 (dwarf2_has_info, dwarf2_get_section_info): Update.
9810 (dwarf2_free_objfile): Remove.
9811 (_initialize_dwarf2_read): Update.
9812
9813 2019-05-08 Tom Tromey <tom@tromey.com>
9814
9815 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9816 initializers.
9817 <unsupported_script_warning_printed,
9818 script_not_found_warning_printed>: Now bool.
9819 (auto_load_pspace_data): Change type.
9820 (~auto_load_pspace_info): Rename from
9821 auto_load_pspace_data_cleanup.
9822 (get_auto_load_pspace_data, init_loaded_scripts_info)
9823 (clear_section_scripts, maybe_print_unsupported_script_warning)
9824 (maybe_print_script_not_found_warning, _initialize_auto_load):
9825 Update.
9826
9827 2019-05-08 Tom Tromey <tom@tromey.com>
9828
9829 * objfiles.c (objfile_pspace_info): Add destructor and
9830 initializers.
9831 (objfiles_pspace_data): Change type.
9832 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9833 (get_objfile_pspace_data): Update.
9834 (objfiles_bfd_data): Change type.
9835 (get_objfile_bfd_data): Update.
9836 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9837
9838 2019-05-08 Tom Tromey <tom@tromey.com>
9839
9840 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9841 Change type.
9842 (get_catch_syscall_inferior_data): Update.
9843 (catch_syscall_inferior_data_cleanup): Remove.
9844 (_initialize_break_catch_syscall): Update.
9845
9846 2019-05-08 Tom Tromey <tom@tromey.com>
9847
9848 * inflow.c (struct terminal_info): Add destructor and
9849 initializers.
9850 (inflow_inferior_data): Change type.
9851 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9852 (get_inflow_inferior_data, inflow_inferior_exit)
9853 (swap_terminal_info, _initialize_inflow): Update.
9854
9855 2019-05-08 Tom Tromey <tom@tromey.com>
9856
9857 * target-dcache.c (target_dcache_cleanup): Remove.
9858 (target_dcache_aspace_key): Change type.
9859 (target_dcache_init_p, target_dcache_invalidate)
9860 (target_dcache_get, target_dcache_get_or_init)
9861 (_initialize_target_dcache): Update.
9862 * dcache.h (struct dcache_deleter): New.
9863
9864 2019-05-08 Tom Tromey <tom@tromey.com>
9865
9866 * symtab.c (struct symbol_cache): Add destructor and
9867 initializers.
9868 (symbol_cache_key): Move. Change type.
9869 (make_symbol_cache, free_symbol_cache): Remove.
9870 (get_symbol_cache): Update.
9871 (symbol_cache_cleanup): Remove.
9872 (ALL_PSPACES, symbol_cache_flush)
9873 (maintenance_print_symbol_cache)
9874 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9875 Update.
9876
9877 2019-05-08 Tom Tromey <tom@tromey.com>
9878
9879 * symtab.c (struct main_info): Add destructor and initializers.
9880 (main_progspace_key): Move. Change type.
9881 (get_main_info): Update.
9882 (main_info_cleanup): Remove.
9883 (_initialize_symtab): Update.
9884
9885 2019-05-08 Tom Tromey <tom@tromey.com>
9886
9887 * registry.h (DECLARE_REGISTRY): Define the _key class.
9888
9889 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9890
9891 * NEWS: Merge two 'New commands' sections.
9892
9893 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9894
9895 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9896 parameter and use Ada language definition instead.
9897 (ada_val_print_ptr): Remove unused language parameter.
9898 (ada_val_print_num): Remove language parameter and use Ada language
9899 definition instead.
9900 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9901 parameter.
9902 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9903 parameter and use Ada language definition instead.
9904 (ada_val_print_1): Update all ada_val_print_xxx calls.
9905 Remove language parameter.
9906 (ada_val_print): Update ada_val_print_1 call.
9907
9908 2019-05-08 Tom Tromey <tromey@adacore.com>
9909
9910 * remote.c (remote_hw_watchpoint_limit)
9911 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9912 Now static.
9913
9914 2019-05-08 Tom Tromey <tromey@adacore.com>
9915
9916 * maint.c (_initialize_maint_cmds): Move initialization code to
9917 remote.c.
9918 (watchdog, show_watchdog): Move to remote.c.
9919 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9920 "watchdog" static.
9921 (_initialize_remote): Move initialization code from maint.c.
9922 * defs.h (watchdog): Don't declare.
9923
9924 2019-05-08 Tom Tromey <tromey@adacore.com>
9925
9926 * tui/tui-interp.c: Include main.h.
9927 * interps.c: Include main.h.
9928 * main.h (interpreter_p): Declare.
9929 * defs.h (interpreter_p): Don't declare.
9930
9931 2019-05-08 Tom Tromey <tromey@adacore.com>
9932
9933 * dwarf2loc.c: Include dwarf2read.h.
9934 * defs.h (read_unsigned_leb128): Don't declare.
9935 * dwarf2read.h (read_unsigned_leb128): Declare.
9936
9937 2019-05-08 Tom Tromey <tromey@adacore.com>
9938
9939 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9940 method.
9941
9942 2019-05-08 Tom Tromey <tromey@adacore.com>
9943
9944 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9945 when no wrap column is set.
9946
9947 2019-05-08 Tom Tromey <tromey@adacore.com>
9948
9949 * c-lang.c (c_get_string): Handle non-C-style arrays.
9950
9951 2019-05-08 Tom Tromey <tromey@adacore.com>
9952
9953 * typeprint.c (print_offset_data::update): Print the bit offset,
9954 not the number of bits remaining.
9955
9956 2019-05-08 Tom Tromey <tromey@adacore.com>
9957
9958 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9959 padding at end of comment.
9960
9961 2019-05-08 Tom Tromey <tromey@adacore.com>
9962
9963 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9964 Compare main types.
9965
9966 2019-05-06 Tom Tromey <tom@tromey.com>
9967
9968 * common/scoped_mmap.c: Include common-defs.h.
9969 * common/scoped_mmap.h: Don't include config.h.
9970
9971 2019-05-04 Tom Tromey <tom@tromey.com>
9972
9973 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9974 (struct aarch64_call_info): Add initializers.
9975 <si>: Now a std::vector.
9976 (pass_on_stack, aarch64_push_dummy_call): Update.
9977
9978 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9979 Tom Tromey <tom@tromey.com>
9980
9981 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9982 (ppc_threads): Now a std::vector. Now static.
9983 (hwdebug_find_thread_points_by_tid)
9984 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9985 Update.
9986
9987 2019-05-04 Tom Tromey <tom@tromey.com>
9988
9989 * arc-tdep.c (arc_tdesc_init): Return bool.
9990
9991 2019-05-04 Tom Tromey <tom@tromey.com>
9992
9993 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9994 Use gdb_assert_not_reached.
9995
9996 2019-05-04 Tom Tromey <tom@tromey.com>
9997
9998 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9999 "false".
10000
10001 2019-05-04 Tom Tromey <tom@tromey.com>
10002
10003 * arc-tdep.c (arc_tdesc_init): Use bool.
10004
10005 2019-05-04 Tom Tromey <tom@tromey.com>
10006
10007 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10008
10009 2019-05-04 Tom Tromey <tom@tromey.com>
10010
10011 * cli/cli-cmds.c (valid_command_p): Return bool.
10012
10013 2019-05-04 Tom Tromey <tom@tromey.com>
10014
10015 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10016 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10017
10018 2019-05-04 Raul Tambre <raul@tambre.ee>
10019
10020 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10021 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10022 operator for comparison.
10023
10024 2019-05-04 Tom Tromey <tom@tromey.com>
10025
10026 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10027 (lookup_partial_symbol, print_partial_symbols)
10028 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10029 (psymbol_compare): Update.
10030 (add_psymbol_to_bcache): Clear the entire psymbol.
10031 (maintenance_check_psymtabs): Update.
10032 * psympriv.h (struct partial_symbol): Don't derive from
10033 general_symbol_info.
10034 <obj_section, unrelocated_address, address,
10035 set_unrelocated_address>: Update.
10036 <ginfo>: New member.
10037 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10038 (debug_names::write_psymbols): Update.
10039
10040 2019-05-04 Tom de Vries <tdevries@suse.de>
10041
10042 * contrib/cc-with-tweaks.sh: Support -n arg.
10043
10044 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10045
10046 * corelow.c (core_target::detach): Ensure frame cache and
10047 register caches are cleared.
10048 inferior.c (exit_inferior_1): Likewise.
10049
10050 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10051 Tom Tromey <tom@tromey.com>
10052
10053 * dictionary.c (collate_pending_symbols_by_language): Remove
10054 "struct" from foreach.
10055 * symtab.c (lookup_global_symbol_from_objfile)
10056 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10057 foreach.
10058 * ser-tcp.c (net_open): Remove "struct" from foreach.
10059 * objfiles.c (objfile_relocate, objfile_rebase)
10060 (objfile_has_symbols): Remove "struct" from foreach.
10061 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10062 from foreach.
10063 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10064 foreach.
10065 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10066 "struct" from foreach.
10067 * ada-lang.c (create_excep_cond_exprs)
10068 (ada_exception_catchpoint_cond_string): Remove "struct" from
10069 foreach.
10070
10071 2019-05-03 Tom Tromey <tromey@adacore.com>
10072
10073 * ada-exp.y (convert_char_literal): Check suffix of each
10074 enumerator.
10075
10076 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10077
10078 PR ada/21406:
10079 * ada-exp.y (yywrap): Don't define.
10080 * ada-lex.l (%option): Add noyywrap
10081 (yywrap): Remove.
10082
10083 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10084
10085 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10086 _WIN32_WINNT to the XP level, unless already defined to a higher
10087 level.
10088
10089 * unittests/parse-connection-spec-selftests.c:
10090 * ser-tcp.c:
10091 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10092 override.
10093
10094 * symfile.c (find_separate_debug_file): Remove colon from the
10095 drive spec of DOS/Windows file names of the target, so that the
10096 file name produced from DEBUGDIR and the target's directory will
10097 be valid on DOS/Windows systems.
10098
10099 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10100
10101 * rust-lang.c (val_print_struct): Handle printing structures
10102 containing strings.
10103
10104 2019-05-02 Tom Tromey <tromey@adacore.com>
10105
10106 * valarith.c (_initialize_valarith): Remove.
10107
10108 2019-05-01 Tom Tromey <tromey@adacore.com>
10109
10110 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10111 bitfields.
10112
10113 2019-05-01 Tom Tromey <tromey@adacore.com>
10114
10115 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10116 for big-endian copies.
10117
10118 2019-04-30 Ali Tamur <tamur@google.com>
10119 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10120 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10121 (read_3_bytes): New function.
10122
10123 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10124
10125 * windows-nat.c (main_thread_id): Delete.
10126 (handle_output_debug_string): Replace main_thread_id by
10127 current_event.dwThreadId.
10128 (fake_create_process): Likewise.
10129 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10130 Do not set main_thread_id.
10131 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10132 current_event.dwThreadId.
10133 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10134
10135 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10136
10137 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10138 Use current_event.dwThreadId instead of main_thread_id.
10139
10140 2019-04-30 Tom Tromey <tromey@adacore.com>
10141
10142 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10143 (create_excep_cond_exprs): Iterate over program spaces.
10144 (ada_exception_catchpoint_cond_string): Examine all minimal
10145 symbols for exception types.
10146
10147 2019-04-30 Tom Tromey <tromey@adacore.com>
10148
10149 PR c++/24470:
10150 * dwarf2read.c (process_structure_scope): Handle case where type
10151 has template parameters but no symbol was created.
10152
10153 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10154 Chris January <chris.january@arm.com>
10155
10156 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10157 qualifier.
10158 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10159
10160 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * f-typeprint.c (f_print_type): Update rules for printing
10163 whitespace.
10164 (f_type_print_varspec_suffix): Likewise.
10165
10166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10167 Chris January <chris.january@arm.com>
10168
10169 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10170 function arguments.
10171
10172 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * f-lang.c (build_fortran_types): Change name of void type to
10175 lower case.
10176 * f-typeprint.c (f_type_print_base): Print the name of the void
10177 type, rather than a fixed string.
10178 * f-valprint.c (f_decorations): Use lower case void string.
10179
10180 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10181 Chris January <chris.january@arm.com>
10182
10183 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10184 types for Fortran.
10185
10186 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10187 Chris January <chris.january@arm.com>
10188 David Lecomber <david.lecomber@arm.com>
10189
10190 * f-exp.y (BINOP_INTRINSIC): New token.
10191 (exp): New parser rule handling BINOP_INTRINSIC.
10192 (f77_keywords): Add new builtin procedures.
10193 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10194 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10195 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10196 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10197 (print_unop_subexp_f): New function.
10198 (print_binop_subexp_f): New function.
10199 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10200 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10201 (dump_subexp_body_f): Likewise.
10202 (operator_check_f): Likewise.
10203 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10204 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10205
10206 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10209 UNOP_KIND.
10210 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10211 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10212 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10213 (operator_length_f): New fuction.
10214 (print_subexp_f): New function.
10215 (op_name_f): New function.
10216 (dump_subexp_body_f): New function.
10217 (operator_check_f): New function.
10218 (exp_descriptor_f): Replace standard expression handling functions
10219 with new functions.
10220 * gdb/fortran-operator.def: New file.
10221 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10222 * gdb/std-operator.def: Remove UNOP_KIND.
10223
10224 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * std-operator.def: Remove unbalanced, stray double quote
10227 character.
10228
10229 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10230 Chris January <chris.january@arm.com>
10231 Daniel Everett <daniel.everett@arm.com>
10232 Nick Forrington <nick.forrington@arm.com>
10233 Richard Bunt <richard.bunt@arm.com>
10234
10235 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10236 of depth when printing anonymous structs or unions.
10237 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10238 Don't print either the top-level value, or the children if the
10239 max-depth is exceeded.
10240 (ppscm_print_children): When printing the key of a map, allow one
10241 extra level of depth.
10242 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10243 print either the top-level value, or the children if the max-depth
10244 is exceeded.
10245 (print_children): When printing the key of a map, allow one extra
10246 level of depth.
10247 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10248 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10249 (user_print_options): Initialise max_depth field.
10250 (val_print_scalar_or_string_type_p): New function.
10251 (val_print): Check to see if the max depth has been reached.
10252 (val_print_check_max_depth): Define new function.
10253 (show_print_max_depth): New function.
10254 (_initialize_valprint): Add 'print max-depth' option.
10255 * valprint.h (struct value_print_options) <max_depth>: New field.
10256 (val_print_check_max_depth): Declare new function.
10257 * NEWS: Document new feature.
10258
10259 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10260
10261 * ada-lang.c (ada_language_defn): Initialise new field.
10262 * c-lang.c (c_is_string_type_p): New function.
10263 (c_language_defn): Initialise new field.
10264 (cplus_language_defn): Initialise new field.
10265 (asm_language_defn): Initialise new field.
10266 (minimal_language_defn): Initialise new field.
10267 * c-lang.h (c_is_string_type_p): Declare new function.
10268 * d-lang.c (d_language_defn): Initialise new field.
10269 * f-lang.c (f_is_string_type_p): New function.
10270 (f_language_defn): Initialise new field.
10271 * go-lang.c (go_is_string_type_p): New function.
10272 (go_language_defn): Initialise new field.
10273 * language.c (default_is_string_type_p): New function.
10274 (unknown_language_defn): Initialise new field.
10275 (auto_language_defn): Initialise new field.
10276 * language.h (struct language_defn) <la_is_string_type_p>: New
10277 member variable.
10278 (default_is_string_type_p): Declare new function.
10279 * m2-lang.c (m2_language_defn): Initialise new field.
10280 * objc-lang.c (objc_language_defn): Initialise new field.
10281 * opencl-lang.c (opencl_language_defn): Initialise new field.
10282 * p-lang.c (pascal_is_string_type_p): New function.
10283 (pascal_language_defn): Initialise new field.
10284 * rust-lang.c (rust_is_string_type_p): New function.
10285 (rust_language_defn): Initialise new field.
10286
10287 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10288
10289 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10290 New field.
10291 * ada-lang.c (ada_language_defn): Initialise new field.
10292 * c-lang.c (c_language_defn): Likewise.
10293 (cplus_language_defn): Likewise.
10294 (asm_language_defn): Likewise.
10295 (minimal_language_defn): Likewise.
10296 * d-lang.c (d_language_defn): Likewise.
10297 * f-lang.c (f_language_defn): Likewise.
10298 * go-lang.c (go_language_defn): Likewise.
10299 * language.c (unknown_language_defn): Likewise.
10300 (auto_language_defn): Likewise.
10301 * m2-lang.c (m2_language_defn): Likewise.
10302 * objc-lang.c (objc_language_defn): Likewise.
10303 * opencl-lang.c (opencl_language_defn): Likewise.
10304 * p-lang.c (pascal_language_defn): Likewise.
10305 * rust-lang.c (rust_language_defn): Likewise.
10306
10307 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10308
10309 * ada-lang.c (ada_is_character_type): Change return type to bool.
10310 (ada_is_string_type): Likewise.
10311 * ada-lang.h (ada_is_character_type): Update declaration
10312 (ada_is_string_type): Likewise.
10313
10314 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10315
10316 Support style in 'frame|thread apply'
10317
10318 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10319 * record.c (record_start, record_stop): Update callers of
10320 execute_command_to_string with false.
10321 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10322 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10323 methods.
10324 (class string_file): New constructor with term_out parameter.
10325 Override methods term_out and can_emit_style_escape. New member
10326 term_out.
10327 (class stdio_file): Override can_emit_style_escape.
10328 (class tee_file): Override term_out and can_emit_style_escape.
10329 * utils.h (can_emit_style_escape): Remove.
10330 * utils.c (can_emit_style_escape): Likewise.
10331 Update all callers of can_emit_style_escape (SOMESTREAM) to
10332 SOMESTREAM->can_emit_style_escape.
10333 * source-cache.c (source_cache::get_source_lines): Likewise.
10334 * stack.c (frame_apply_command_count): Call execute_command_to_string
10335 passing the term_out characteristic of the current gdb_stdout.
10336 * thread.c (thr_try_catch_cmd): Likewise.
10337 * top.c (execute_command_to_string): pass term_out parameter
10338 to construct the string_file for the command output.
10339 * ui-file.c (term_cli_styling): New function (most code moved
10340 from utils.c can_emit_style_escape).
10341 (string_file::string_file, string_file::can_emit_style_escape,
10342 stdio_file::can_emit_style_escape, tee_file::term_out,
10343 tee_file::can_emit_style_escape): New functions.
10344
10345 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10346
10347 * NEWS: Mention the new set|show may-call-functions.
10348 * infcall.c (may_call_functions_p): New variable.
10349 (show_may_call_functions_p): New function.
10350 (call_function_by_hand_dummy): Throws an error if not
10351 may-call-functions.
10352 (_initialize_infcall): Call add_setshow_boolean_cmd for
10353 may-call-functions.
10354
10355 2019-04-25 Keith Seitz <keiths@redhat.com>
10356
10357 PR c++/24367
10358 * cp-support.c (inspect_type): Don't attempt substitutions
10359 of symbol with the same name.
10360
10361 2019-04-25 Tom Tromey <tromey@adacore.com>
10362
10363 PR gdb/24475:
10364 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10365 static.
10366
10367 2019-04-25 Tom Tromey <tromey@adacore.com>
10368
10369 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10370 rvalue reference.
10371 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10372 (gdb_xml_parser::parse): Use std::move.
10373 * python/python-internal.h (gdbpy_convert_exception): Take a const
10374 reference.
10375 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10376 std::move.
10377 * python/py-utils.c (gdbpy_convert_exception): Take a const
10378 reference.
10379 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10380 Use std::move.
10381 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10382 Use std::move.
10383 * mi/mi-main.c (mi_print_exception): Take a const reference.
10384 * main.c (handle_command_errors): Take a const reference.
10385 * linespec.c (parse_linespec): Use std::move.
10386 * infcall.c (run_inferior_call): Use std::move.
10387 (call_function_by_hand_dummy): Use std::move.
10388 * exec.c (try_open_exec_file): Use std::move.
10389 * exceptions.h (exception_print, exception_fprintf)
10390 (exception_print_same): Update.
10391 * exceptions.c (print_exception, exception_print)
10392 (exception_fprintf, exception_print_same): Change parameters to
10393 const reference.
10394 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10395 * common/new-op.c: Use std::move.
10396 * common/common-exceptions.h (struct gdb_exception): Add move
10397 constructor.
10398 (struct gdb_exception_error, struct gdb_exception_quit, struct
10399 gdb_quit_bad_alloc): Change constructor to move constructor.
10400 (throw_exception): Change parameter to rvalue reference.
10401 * common/common-exceptions.c (throw_exception): Take rvalue
10402 reference.
10403 * cli/cli-interp.c (safe_execute_command): Use std::move.
10404 * breakpoint.c (insert_bp_location, location_to_sals): Use
10405 std::move.
10406
10407 2019-04-25 Tom Tromey <tromey@adacore.com>
10408
10409 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10410 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10411 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10412 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10413 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10414 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10415 guile/scm-value.c: Use unpack.
10416 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10417 gdbscm_gdb_exception.
10418 (gdbscm_throw_gdb_exception): Likewise.
10419 (struct gdbscm_gdb_exception): New.
10420 (unpack): New function.
10421 (gdbscm_wrap): Use unpack.
10422
10423 2019-04-25 Tom Tromey <tromey@adacore.com>
10424
10425 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10426 (gdb_rl_callback_handler): Use std::move.
10427 * common/common-exceptions.h (struct gdb_exception): Add move
10428 assignment operator.
10429 (throw_exception_sjlj): Change "exception" to const reference.
10430 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10431 (throw_exception_sjlj): Change "exception" to const reference.
10432
10433 2019-04-25 Tom Tromey <tromey@adacore.com>
10434
10435 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10436 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10437 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10438 Update.
10439 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10440 Update.
10441 * mi/mi-interp.c (mi_interp::exec): Update.
10442 * linespec.c (parse_linespec): Update.
10443 * infcall.c (run_inferior_call): Update.
10444 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10445 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10446 (gdbscm_lookup_global_symbol): Update.
10447 * guile/scm-param.c (gdbscm_parameter_value): Update.
10448 * guile/scm-frame.c (gdbscm_frame_read_register)
10449 (gdbscm_frame_read_var): Update.
10450 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10451 * exec.c (try_open_exec_file): Update.
10452 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10453 (gdb_rl_callback_handler): Update.
10454 * common/common-exceptions.h (exception_none): Don't declare.
10455 * common/common-exceptions.c (exception_none): Don't define.
10456 (struct catcher) <exception>: Update.
10457 * cli/cli-interp.c (safe_execute_command): Update.
10458 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10459
10460 2019-04-25 Ali Tamur <tamur@google.com>
10461
10462 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10463 (read_attribute_value): Likewise.
10464 (dwarf2_read_addr_index): Update comment.
10465 (read_str_index): Add DW_FORM_strx.
10466 (dwarf2_string_attr): Likewise.
10467 (dwarf2_const_value_attr): Likewise.
10468 (dump_die_shallow): Likewise.
10469 (dwarf2_fetch_constant_bytes): Likewise.
10470 (skip_form_bytes): Likewise.
10471 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10472
10473 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10474
10475 PR corefiles/11608
10476 PR corefiles/18187
10477 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10478 OFFSET. Verify if current mapping contains an ELF header.
10479 (linux_find_memory_regions_full): Adjust call to
10480 dump_mapping_p.
10481
10482 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10483 Kang Li <kanglictf@gmail.com>
10484
10485 PR gdb/21600
10486
10487 * dwarf2-frame.c (read_initial_length): Be consistent about using
10488 unsigned representation of length.
10489 (decode_frame_entry_1): Likewise. Check for wraparound of
10490 end pointer as well as buffer overflow.
10491
10492 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10493
10494 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10495 "vq".
10496
10497 2019-04-24 Tom Tromey <tromey@adacore.com>
10498
10499 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10500
10501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10502
10503 * s12z-tdep.c (s12z_unwind_pc): Delete.
10504 (s12z_unwind_sp): Delete.
10505 (s12z_gdbarch_init): Don't register deleted functions with
10506 gdbarch.
10507
10508 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10509
10510 * rl78-tdep.c (rl78_unwind_sp): Delete.
10511 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10512
10513 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10514
10515 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10516 (xstormy16_unwind_pc): Delete.
10517 (xstormy16_dummy_id): Delete.
10518 (xstormy16_gdbarch_init): Don't register deleted functions with
10519 gdbarch.
10520
10521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * vax-tdep.c (vax_unwind_pc): Delete.
10524 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10525
10526 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10527
10528 * v850-tdep.c (v850_unwind_sp): Delete.
10529 (v850_unwind_pc): Delete.
10530 (v850_dummy_id): Delete.
10531 (v850_gdbarch_init): Don't register deleted functions with
10532 gdbarch.
10533
10534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10535
10536 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10537 (tilegx_unwind_pc): Delete.
10538 (tilegx_unwind_dummy_id): Delete.
10539 (tilegx_gdbarch_init): Don't register deleted functions with
10540 gdbarch.
10541
10542 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10543
10544 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10545 (tic6x_dummy_id): Delete.
10546 (tic6x_gdbarch_init): Don't register deleted functions with
10547 gdbarch.
10548
10549 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10550
10551 * sparc-tdep.c (sparc_unwind_pc): Delete.
10552 (sparc32_gdbarch_init): Don't register deleted function with
10553 gdbarch.
10554
10555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 * sh-tdep.c (sh_unwind_sp): Delete.
10558 (sh_unwind_pc): Delete.
10559 (sh_dummy_id): Delete.
10560 (sh_gdbarch_init): Don't register deleted functions with
10561 gdbarch.
10562
10563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10564
10565 * score-tdep.c (score_unwind_sp): Delete.
10566 (score_unwind_pc): Delete.
10567 (score_dummy_id): Delete.
10568 (score_gdbarch_init): Don't register deleted functions with
10569 gdbarch.
10570
10571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10572
10573 * rx-tdep.c (rx_unwind_pc): Delete.
10574 (rx_unwind_sp): Delete.
10575 (rx_dummy_id): Delete.
10576 (rx_gdbarch_init): Don't register deleted functions with
10577 gdbarch. Update comment.
10578
10579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10580
10581 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10582 (rs6000_dummy_id): Delete.
10583 (rs6000_gdbarch_init): Don't register deleted functions with
10584 gdbarch.
10585
10586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * or1k-tdep.c (or1k_dummy_id): Delete.
10589 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10590
10591 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10592
10593 * nios2-tdep.c (nios2_dummy_id): Delete.
10594 (nios2_unwind_sp): Delete.
10595 (nios2_gdbarch_init): Don't register deleted functions with
10596 gdbarch.
10597
10598 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * nds32-tdep.c (nds32_dummy_id): Delete.
10601 (nds32_unwind_pc): Delete.
10602 (nds32_unwind_sp): Delete.
10603 (nds32_gdbarch_init): Don't register deleted functions with
10604 gdbarch.
10605
10606 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10607
10608 * msp430-tdep.c (msp430_unwind_pc): Delete.
10609 (msp430_unwind_sp): Delete.
10610 (msp430_dummy_id): Delete.
10611 (msp430_gdbarch_init): Don't register deleted functions with
10612 gdbarch.
10613
10614 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * moxie-tdep.c (moxie_unwind_sp): Delete.
10617 (moxie_unwind_pc): Delete.
10618 (moxie_dummy_id): Delete.
10619 (moxie_gdbarch_init): Don't register deleted functions with
10620 gdbarch.
10621
10622 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10625 (mn10300_unwind_pc): Delete.
10626 (mn10300_unwind_sp): Delete.
10627 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10628 mn10300_unwind_sp.
10629 (mn10300_frame_unwind_init): Don't register deleted functions with
10630 gdbarch.
10631
10632 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10633
10634 * mep-tdep.c (mep_unwind_pc): Delete.
10635 (mep_unwind_sp): Delete.
10636 (mep_dummy_id): Delete.
10637 (mep_gdbarch_init): Don't register deleted functions with
10638 gdbarch.
10639
10640 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10641
10642 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10643 (m68hc11_unwind_sp): Delete.
10644 (m68hc11_gdbarch_init): Don't register deleted functions with
10645 gdbarch.
10646
10647 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10648
10649 * m32r-tdep.c (m32r_unwind_sp): Delete.
10650 (m32r_unwind_pc): Delete.
10651 (m32r_dummy_id): Delete.
10652 (m32r_gdbarch_init): Don't register deleted functions with
10653 gdbarch.
10654
10655 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * m32c-tdep.c (m32c_unwind_pc): Delete.
10658 (m32c_unwind_sp): Delete.
10659 (m32c_dummy_id): Delete.
10660 (m32c_gdbarch_init): Don't register deleted functions with
10661 gdbarch.
10662
10663 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10664
10665 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10666 (lm32_unwind_pc): Delete.
10667 (lm32_dummy_id): Delete.
10668 (lm32_gdbarch_init): Don't register deleted functions with
10669 gdbarch.
10670
10671 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10674 (iq2000_unwind_pc): Delete.
10675 (iq2000_dummy_id): Delete.
10676 (iq2000_gdbarch_init): Don't register deleted functions with
10677 gdbarch.
10678
10679 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10680
10681 * nds32-tdep.c (nds32_type_align): Delete.
10682 (nds32_push_dummy_call): Use type_align instead.
10683
10684 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10685
10686 * arm-tdep.c (arm_type_align): Only handle vector override case.
10687 (arm_push_dummy_call): Use type_align.
10688 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10689
10690 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10691
10692 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10693 case.
10694 (pass_on_stack): Use type_align.
10695 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10696 function.
10697
10698 2019-04-23 Tom Tromey <tromey@adacore.com>
10699
10700 * dwarf2read.c (line_header::file_name_at): Remove unused
10701 overload.
10702
10703 2019-04-23 Tom de Vries <tdevries@suse.de>
10704
10705 PR gdb/24438
10706 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10707 invocation.
10708
10709
10710 2019-03-27 Ali Tamur <tamur@google.com>
10711
10712 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10713 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10714 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10715 (dwarf_expr_context::get_addr_index): Likewise
10716 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10717 (symbol_needs_eval_context::get_addr_index): Likewise
10718 (disassemble_dwarf_expression): Add DW_OP_addrx
10719 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10720 (read_cutu_die_from_dwo): Update comment
10721 (skip_one_die): Add DW_FORM_addrx
10722 (read_attribute_value): Likewise
10723 (var_decode_location): Add DW_OP_addrx
10724 (dwarf2_const_value_attr): Add DW_FORM_addrx
10725 (dump_die_shallow): Likewise
10726 (dwarf2_fetch_constant_bytes): Likewise
10727 (decode_locdesc): Add DW_OP_addrx
10728 (skip_form_bytes): Add DW_FORM_addrx
10729
10730 2019-04-22 Ali Tamur <tamur@google.com>
10731
10732 * MAINTAINERS (Write After Approval): Add self.
10733
10734 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10737 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10738 (open_symbol_file_object): Likewise.
10739 (svr4_default_sos): Add info parameter.
10740 (svr4_read_so_list): Likewise.
10741 (svr4_current_sos_direct): Adjust functions calls to pass down
10742 info.
10743 (svr4_current_sos_1): Add info parameter.
10744 (svr4_current_sos): Call get_svr4_info, pass info down to
10745 svr4_current_sos_1.
10746 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10747 get_svr4_info.
10748 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10749 get_svr4_info.
10750 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10751 to get_svr4_info.
10752 (probes_table_remove_objfile_probes): Likewise.
10753 (register_solib_event_probe): Add info parameter.
10754 (solist_update_incremental): Pass info parameter down to
10755 svr4_read_so_list.
10756 (disable_probes_interface): Add info parameter.
10757 (svr4_handle_solib_event): Pass current_program_space to
10758 get_svr4_info. Adjust disable_probes_interface cleanup.
10759 (svr4_create_probe_breakpoints): Add info parameter, pass it
10760 down to register_solib_event_probe.
10761 (svr4_create_solib_event_breakpoints): Add info parameter,
10762 pass it down to svr4_create_probe_breakpoints.
10763 (enable_break): Pass info down to
10764 svr4_create_solib_event_breakpoints.
10765 (svr4_solib_create_inferior_hook): Pass current_program_space to
10766 get_svr4_info.
10767 (svr4_clear_solib): Likewise.
10768
10769 2019-04-22 Pedro Alves <palves@redhat.com>
10770
10771 * solib-svr4.c (svr4_free_objfile_observer): New.
10772 (probe_and_action::objfile): New field.
10773 (probes_table_htab_remove_objfile_probes)
10774 (probes_table_remove_objfile_probes): New functions.
10775 (register_solib_event_probe): Add 'objfile' parameter. Store it
10776 in the new probe_and_action. Don't store the probe in 'lookup'.
10777 (svr4_create_probe_breakpoints): Pass objfile to
10778 register_solib_event_probe.
10779 (_initialize_svr4_solib): Register a free_objfile observer.
10780
10781 2019-04-19 Tom Tromey <tom@tromey.com>
10782
10783 * common/queue.h: Remove.
10784
10785 2019-04-19 Tom Tromey <tom@tromey.com>
10786
10787 * event-loop.c: Don't include "common/queue.h".
10788
10789 2019-04-19 Tom Tromey <tom@tromey.com>
10790
10791 * remote.c (remote_target): Use delete.
10792 * remote-notif.h: Include <list>, not "common/queue.h".
10793 (notif_client_p): Remove typedef.
10794 (remote_notif_state): Add constructor, destructor, initializer.
10795 <notif_queue>: Now a std::list.
10796 (remote_notif_state_xfree): Don't declare.
10797 * remote-notif.c (remote_notif_process, handle_notification)
10798 (remote_notif_state_allocate): Update.
10799 (~remote_notif_state): Rename from remote_notif_state_xfree.
10800
10801 2019-04-19 Tom Tromey <tom@tromey.com>
10802
10803 * symfile.c (reread_symbols): Update.
10804 * objfiles.c (objfile_register_static_link)
10805 (objfile_lookup_static_link): Update
10806 (~objfile) Don't delete static_links.
10807 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10808
10809 2019-04-19 Tom Tromey <tom@tromey.com>
10810
10811 * type-stack.h (struct type_stack) <insert>: Constify string.
10812 * type-stack.c (type_stack::insert): Constify string.
10813 * gdbtypes.h (lookup_template_type): Update.
10814 (address_space_name_to_int): Update.
10815 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10816 const.
10817 (lookup_template_type): Make name const.
10818 * c-exp.y: Update rules.
10819 (lex_one_token, classify_name, classify_inner_name)
10820 (c_print_token): Update.
10821 * p-exp.y: Update rules.
10822 (yylex): Update.
10823 * f-exp.y: Update rules.
10824 (yylex): Update.
10825 * d-exp.y: Update rules.
10826 (lex_one_token, classify_name, classify_inner_name): Update.
10827 * parse.c (write_dollar_variable, copy_name): Return std::string.
10828 * parser-defs.h (copy_name): Change return type.
10829 * m2-exp.y: Update rules.
10830 (yylex): Update.
10831 * go-exp.y (lex_one_token): Update.
10832 Update rules.
10833 (classify_unsafe_function, classify_packaged_name)
10834 (classify_name, yylex): Update.
10835
10836 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10837
10838 * configure.ac: add --enable-source-highlight switch.
10839 * configure: Regenerate.
10840 * top.c (print_gdb_version): plumb --enable-source-highlight
10841 status to "show configuration".
10842
10843 2019-04-19 Tom Tromey <tromey@adacore.com>
10844
10845 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10846 Check ADA_TYPE_P.
10847 (empty_record, ada_template_to_fixed_record_type_1)
10848 (template_to_static_fixed_type)
10849 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10850 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10851 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10852 macros.
10853
10854 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10855
10856 PR symtab/24423:
10857 * source.c (print_source_lines_base): Advance "iter" when a
10858 control character is seen.
10859
10860 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10861
10862 * inferior.h (struct infcall_suspend_state_deleter):
10863 Catch exception in destructor to avoid crash.
10864
10865 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10866
10867 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10868 close to the add_com "shell".
10869
10870 2019-04-18 Tom Tromey <tromey@adacore.com>
10871
10872 * process-stratum-target.h (class process_stratum_target)
10873 <stratum>: Add "final".
10874
10875 2019-04-17 Tom Tromey <tromey@adacore.com>
10876
10877 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10878 against nullptr before use.
10879
10880 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10881
10882 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10883
10884 2019-04-17 Jim Wilson <jimw@sifive.com>
10885 Andrew Burgess <andrew.burgess@embecosm.com>
10886
10887 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10888 code read might fail, assume 4-byte breakpoint in that case.
10889
10890 2019-04-15 Leszek Swirski <leszeks@google.com>
10891
10892 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10893 rather than a hand-rolled POD check when checking for forced MEMORY
10894 classification.
10895
10896 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10897
10898 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10899 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10900 function.
10901 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10902 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10903 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10904 declaration.
10905
10906 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10907
10908 * aarch64-linux-nat.c
10909 (aarch64_linux_nat_target::thread_architecture): Add override.
10910 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10911 each VQ.
10912
10913 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10914
10915 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10916
10917 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10920 target types of size 96-bits, add some additional comments, and
10921 check that the builtin type we found was the correct size.
10922
10923 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10924
10925 * utils.c (prompt_for_continue): Don't restore the styling at the
10926 end, as applied_style has the wrong value. This fixes styling in
10927 long lists of file names that are interrupted by the "Continue?"
10928 prompt.
10929
10930 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10931
10932 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10933 * c-lang.c (c_language_defn): Likewise.
10934 (cplus_language_defn): Likewise.
10935 (asm_language_defn): Likewise.
10936 (minimal_language_defn): Likewise.
10937 * d-lang.c (d_language_defn): Likewise.
10938 * f-lang.c (f_language_defn): Likewise.
10939 * go-lang.c (go_language_defn): Likewise.
10940 * language.c (unknown_language_defn): Likewise.
10941 (auto_language_defn): Likewise.
10942 * language.h (struct language_defn): Remove la_magic field.
10943 (LANG_MAGIC): Delete.
10944 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10945 * objc-lang.c (objc_language_defn): Likewise.
10946 * opencl-lang.c (opencl_language_defn): Likewise.
10947 * p-lang.c (pascal_language_defn): Likewise.
10948 * rust-lang.c (rust_language_defn): Likewise.
10949
10950 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * riscv-tdep.c (riscv_type_align): New function.
10953 (riscv_type_alignment): Delete.
10954 (riscv_arg_location): Use 'type_align'.
10955 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10956
10957 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * gdbtypes.c (type_align): A struct with no non-static fields also
10960 has alignment of 1.
10961
10962 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10963
10964 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10965 component to 0.
10966 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10967 member.
10968 (riscv_struct_info::analyse): New implementation using new
10969 analyse_inner member function.
10970 (riscv_struct_info::field_offset): New member function.
10971 (riscv_struct_info::m_offsets): New member variable.
10972 (riscv_struct_info::analyse_inner): New private member function,
10973 takes the old implementation of riscv_struct_info::analyse but
10974 extended to track field offsets.
10975 (riscv_call_arg_struct): Update the struct folding special cases
10976 to handle cases where empty C++ structs, which are non-zero
10977 length, are found.
10978 (riscv_arg_location): Initialise the length of each location, a
10979 non-zero length now indicates the location is in use.
10980 (riscv_push_dummy_call): Allow for the first location having a
10981 non-zero offset when setting up arguments.
10982 (riscv_return_value): Likewise, but for return values.
10983
10984 2019-04-11 Tom Tromey <tromey@adacore.com>
10985
10986 * utils.c (internal_vproblem): Make "msg" const.
10987
10988 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10989
10990 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10991 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10992 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10993 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10994
10995 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10996
10997 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10998 function.
10999 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11000 of amd64_collect_native_gregset.
11001 (amd64_linux_nat_target::store_registers): Likewise.
11002
11003 2019-04-10 Tom Tromey <tom@tromey.com>
11004
11005 * symtab.c (lookup_global_symbol_from_objfile)
11006 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11007 * objfiles.h (class separate_debug_iterator): New.
11008 (class separate_debug_range): New.
11009 (struct objfile) <separate_debug_objfiles>: New method.
11010 (objfile_separate_debug_iterate): Don't declare.
11011 * objfiles.c (separate_debug_iterator::operator++): Rename from
11012 objfile_separate_debug_iterate.
11013 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11014 iterator.
11015 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11016 iterator.
11017
11018 2019-04-10 Tom Tromey <tom@tromey.com>
11019
11020 * symfile.c (reread_symbols): Remove old comment.
11021 * objfiles.c (free_all_objfiles): Fix a typo.
11022
11023 2019-04-10 Tom Tromey <tom@tromey.com>
11024
11025 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11026 * minsyms.c (lookup_minimal_symbol): Use foreach.
11027 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11028 (lookup_minimal_symbol_solib_trampoline): Likewise.
11029 * symfile.c (reread_symbols): Use foreach.
11030
11031 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11032 Tom Tromey <tromey@adacore.com>
11033
11034 PR rust/24414:
11035 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11036 (rust_lex_int_test): Change "value" to be LONGEST.
11037 (rust_lex_tests): Add test for long integer literal.
11038
11039 2019-04-09 Tom Tromey <tromey@adacore.com>
11040
11041 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11042 to bool.
11043 (extended_remote_target::attach): Update.
11044 (remote_target::remote_notice_new_inferior): Update.
11045 (remote_target::add_current_inferior_and_thread): Update.
11046 * inferior.c (exit_inferior_1): Use "false".
11047 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11048
11049 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11050
11051 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11052 the "start" command.
11053
11054 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11055
11056 * python/py-inferior.c (infpy_thread_from_thread_handle):
11057 Adjust comments to reflect renaming of thread_from_thread_handle
11058 to thread_from_handle. Adjust keywords. Fix type error message.
11059 (inferior_object_methods): Add thread_from_handle. Retain
11060 thread_from_thread_handle, but mark it as deprecated.
11061
11062 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11063
11064 * gdbthread.h (find_thread_by_handle): Revise declaration.
11065 * thread.c (find_thread_by_handle): Likewise. Adjust
11066 implementation too.
11067 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11068 support for buffer objects as handles.
11069
11070 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11071
11072 * python/py-infthread.c (thpy_thread_handle): New function.
11073 (thread_object_methods): Register thpy_thread_handle.
11074
11075 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11076
11077 * gdbthread.h (thread_to_thread_handle): Declare.
11078 * thread.c (gdbtypes.h): Include.
11079 (thread_to_thread_handle): New function.
11080
11081 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11082 (target_thread_info_to_thread_handle): Declare.
11083 * target.c (target_thread_info_to_thread_handle): New function.
11084 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11085 * target-delegates.c: Regenerate.
11086
11087 * linux-thread-db.c (class thread_db_target): Add method
11088 thread_info_to_thread_handle.
11089 (thread_db_target::thread_info_to_thread_handle): Define.
11090 * remote.c (class remote_target): Add new method
11091 thread_info_to_thread_handle.
11092 (remote_target::thread_info_to_thread_handle): Define.
11093
11094 2019-04-08 Pedro Alves <palves@redhat.com>
11095
11096 * common/common-exceptions.c (throw_exception): Don't create
11097 named object to throw; throw directly.
11098 (throw_it): Likewise. Don't initialize gdb_exception::message
11099 here, with new; pass FMT and AP to the ctor instead.
11100 * common/common-exceptions.h: Include <string>.
11101 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11102 const char *, va_list)): New ctor. Use std::make_shared.
11103 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11104 errors)): Delete.
11105 (gdb_exception_error::gdb_exception_error(enum errors, const char
11106 *, va_list)): New.
11107 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11108 Add assertion.
11109 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11110 errors)): Delete.
11111 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11112 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11113 Add assertion.
11114
11115 2019-04-08 Tom Tromey <tom@tromey.com>
11116
11117 * valops.c (value_rtti_indirect_type): Replace throw_exception
11118 with throw.
11119 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11120 with throw.
11121 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11122 throw.
11123 * target.c (target_translate_tls_address): Replace throw_exception
11124 with throw.
11125 * stack.c (frame_apply_command_count): Replace throw_exception
11126 with throw.
11127 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11128 throw.
11129 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11130 with throw.
11131 * rs6000-tdep.c (rs6000_frame_cache)
11132 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11133 * remote.c: Replace throw_exception with throw.
11134 * record-full.c (record_full_message, record_full_wait_1)
11135 (record_full_restore): Replace throw_exception with throw.
11136 * record-btrace.c:
11137 (get_thread_current_frame_id, record_btrace_start_replaying)
11138 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11139 (cmd_record_btrace_start): Replace throw_exception with throw.
11140 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11141 throw.
11142 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11143 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11144 * linespec.c:
11145 (find_linespec_symbols): Replace throw_exception with throw.
11146 * infrun.c (displaced_step_prepare, resume): Replace
11147 throw_exception with throw.
11148 * infcmd.c (post_create_inferior): Replace throw_exception with
11149 throw.
11150 * inf-loop.c (inferior_event_handler): Replace throw_exception
11151 with throw.
11152 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11153 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11154 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11155 (get_prev_frame_always, get_frame_pc_if_available)
11156 (get_frame_address_in_block_if_available, get_frame_language):
11157 Replace throw_exception with throw.
11158 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11159 throw_exception with throw.
11160 * eval.c (fetch_subexp_value, evaluate_var_value)
11161 (evaluate_funcall, evaluate_subexp_standard): Replace
11162 throw_exception with throw.
11163 * dwarf2loc.c (call_site_find_chain)
11164 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11165 Replace throw_exception with throw.
11166 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11167 with throw.
11168 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11169 throw.
11170 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11171 * completer.c (complete_line_internal): Replace throw_exception
11172 with throw.
11173 * compile/compile-object-run.c (compile_object_run): Replace
11174 throw_exception with throw.
11175 * cli/cli-script.c (process_next_line): Replace throw_exception
11176 with throw.
11177 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11178 (btrace_enable, btrace_maint_update_pt_packets): Replace
11179 throw_exception with throw.
11180 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11181 throw_exception with throw.
11182 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11183 throw_exception with throw.
11184 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11185 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11186 * aarch64-tdep.c (aarch64_make_prologue_cache)
11187 (aarch64_make_stub_cache): Replace throw_exception with throw.
11188
11189 2019-04-08 Tom Tromey <tom@tromey.com>
11190
11191 * common/common-exceptions.c (throw_exception): Rename from
11192 throw_exception_cxx. Remove old copy. Make argument const.
11193 (throw_it): Create and throw exception objects directly.
11194 * common/common-exceptions.h (throw_exception): Make argument
11195 const.
11196 (struct gdb_exception_error): Add constructor.
11197 (struct gdb_exception_quit): Add constructor.
11198
11199 2019-04-08 Tom Tromey <tom@tromey.com>
11200
11201 * common/common-exceptions.h (exception_rethrow): Don't declare.
11202 (TRY_SJLJ): Update comment.
11203 (TRY, CATCH, END_CATCH): Remove.
11204 * common/common-exceptions.c (exception_rethrow): Remove.
11205
11206 2019-04-08 Tom Tromey <tom@tromey.com>
11207
11208 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11209 Remove.
11210 (gdb_exception_error): Rename from
11211 gdb_exception_RETURN_MASK_ERROR.
11212 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11213 (gdb_quit_bad_alloc): Update.
11214 * aarch64-tdep.c: Update.
11215 * ada-lang.c: Update.
11216 * ada-typeprint.c: Update.
11217 * ada-valprint.c: Update.
11218 * amd64-tdep.c: Update.
11219 * arch-utils.c: Update.
11220 * break-catch-throw.c: Update.
11221 * breakpoint.c: Update.
11222 * btrace.c: Update.
11223 * c-varobj.c: Update.
11224 * cli/cli-cmds.c: Update.
11225 * cli/cli-interp.c: Update.
11226 * cli/cli-script.c: Update.
11227 * common/common-exceptions.c: Update.
11228 * common/new-op.c: Update.
11229 * common/selftest.c: Update.
11230 * compile/compile-c-symbols.c: Update.
11231 * compile/compile-cplus-symbols.c: Update.
11232 * compile/compile-object-load.c: Update.
11233 * compile/compile-object-run.c: Update.
11234 * completer.c: Update.
11235 * corelow.c: Update.
11236 * cp-abi.c: Update.
11237 * cp-support.c: Update.
11238 * cp-valprint.c: Update.
11239 * darwin-nat.c: Update.
11240 * disasm-selftests.c: Update.
11241 * dtrace-probe.c: Update.
11242 * dwarf-index-cache.c: Update.
11243 * dwarf-index-write.c: Update.
11244 * dwarf2-frame-tailcall.c: Update.
11245 * dwarf2-frame.c: Update.
11246 * dwarf2loc.c: Update.
11247 * dwarf2read.c: Update.
11248 * eval.c: Update.
11249 * event-loop.c: Update.
11250 * event-top.c: Update.
11251 * exec.c: Update.
11252 * f-valprint.c: Update.
11253 * fbsd-tdep.c: Update.
11254 * frame-unwind.c: Update.
11255 * frame.c: Update.
11256 * gdbtypes.c: Update.
11257 * gnu-v3-abi.c: Update.
11258 * guile/guile-internal.h: Update.
11259 * guile/scm-block.c: Update.
11260 * guile/scm-breakpoint.c: Update.
11261 * guile/scm-cmd.c: Update.
11262 * guile/scm-disasm.c: Update.
11263 * guile/scm-frame.c: Update.
11264 * guile/scm-lazy-string.c: Update.
11265 * guile/scm-math.c: Update.
11266 * guile/scm-param.c: Update.
11267 * guile/scm-ports.c: Update.
11268 * guile/scm-pretty-print.c: Update.
11269 * guile/scm-symbol.c: Update.
11270 * guile/scm-symtab.c: Update.
11271 * guile/scm-type.c: Update.
11272 * guile/scm-value.c: Update.
11273 * i386-linux-tdep.c: Update.
11274 * i386-tdep.c: Update.
11275 * inf-loop.c: Update.
11276 * infcall.c: Update.
11277 * infcmd.c: Update.
11278 * infrun.c: Update.
11279 * jit.c: Update.
11280 * language.c: Update.
11281 * linespec.c: Update.
11282 * linux-fork.c: Update.
11283 * linux-nat.c: Update.
11284 * linux-tdep.c: Update.
11285 * linux-thread-db.c: Update.
11286 * main.c: Update.
11287 * mi/mi-cmd-break.c: Update.
11288 * mi/mi-cmd-stack.c: Update.
11289 * mi/mi-interp.c: Update.
11290 * mi/mi-main.c: Update.
11291 * objc-lang.c: Update.
11292 * p-valprint.c: Update.
11293 * parse.c: Update.
11294 * ppc-linux-tdep.c: Update.
11295 * printcmd.c: Update.
11296 * python/py-arch.c: Update.
11297 * python/py-breakpoint.c: Update.
11298 * python/py-cmd.c: Update.
11299 * python/py-finishbreakpoint.c: Update.
11300 * python/py-frame.c: Update.
11301 * python/py-framefilter.c: Update.
11302 * python/py-gdb-readline.c: Update.
11303 * python/py-inferior.c: Update.
11304 * python/py-infthread.c: Update.
11305 * python/py-lazy-string.c: Update.
11306 * python/py-linetable.c: Update.
11307 * python/py-objfile.c: Update.
11308 * python/py-param.c: Update.
11309 * python/py-prettyprint.c: Update.
11310 * python/py-progspace.c: Update.
11311 * python/py-record-btrace.c: Update.
11312 * python/py-record.c: Update.
11313 * python/py-symbol.c: Update.
11314 * python/py-type.c: Update.
11315 * python/py-unwind.c: Update.
11316 * python/py-utils.c: Update.
11317 * python/py-value.c: Update.
11318 * python/python.c: Update.
11319 * record-btrace.c: Update.
11320 * record-full.c: Update.
11321 * remote-fileio.c: Update.
11322 * remote.c: Update.
11323 * riscv-tdep.c: Update.
11324 * rs6000-aix-tdep.c: Update.
11325 * rs6000-tdep.c: Update.
11326 * rust-exp.y: Update.
11327 * rust-lang.c: Update.
11328 * s390-tdep.c: Update.
11329 * selftest-arch.c: Update.
11330 * solib-dsbt.c: Update.
11331 * solib-frv.c: Update.
11332 * solib-spu.c: Update.
11333 * solib-svr4.c: Update.
11334 * solib.c: Update.
11335 * sparc64-linux-tdep.c: Update.
11336 * stack.c: Update.
11337 * symfile-mem.c: Update.
11338 * symmisc.c: Update.
11339 * target.c: Update.
11340 * thread.c: Update.
11341 * top.c: Update.
11342 * tracefile-tfile.c: Update.
11343 * tui/tui.c: Update.
11344 * typeprint.c: Update.
11345 * unittests/cli-utils-selftests.c: Update.
11346 * unittests/parse-connection-spec-selftests.c: Update.
11347 * valops.c: Update.
11348 * valprint.c: Update.
11349 * value.c: Update.
11350 * varobj.c: Update.
11351 * windows-nat.c: Update.
11352 * x86-linux-nat.c: Update.
11353 * xml-support.c: Update.
11354
11355 2019-04-08 Tom Tromey <tom@tromey.com>
11356
11357 * xml-support.c: Use C++ exception handling.
11358 * x86-linux-nat.c: Use C++ exception handling.
11359 * windows-nat.c: Use C++ exception handling.
11360 * varobj.c: Use C++ exception handling.
11361 * value.c: Use C++ exception handling.
11362 * valprint.c: Use C++ exception handling.
11363 * valops.c: Use C++ exception handling.
11364 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11365 handling.
11366 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11367 * typeprint.c: Use C++ exception handling.
11368 * tui/tui.c: Use C++ exception handling.
11369 * tracefile-tfile.c: Use C++ exception handling.
11370 * top.c: Use C++ exception handling.
11371 * thread.c: Use C++ exception handling.
11372 * target.c: Use C++ exception handling.
11373 * symmisc.c: Use C++ exception handling.
11374 * symfile-mem.c: Use C++ exception handling.
11375 * stack.c: Use C++ exception handling.
11376 * sparc64-linux-tdep.c: Use C++ exception handling.
11377 * solib.c: Use C++ exception handling.
11378 * solib-svr4.c: Use C++ exception handling.
11379 * solib-spu.c: Use C++ exception handling.
11380 * solib-frv.c: Use C++ exception handling.
11381 * solib-dsbt.c: Use C++ exception handling.
11382 * selftest-arch.c: Use C++ exception handling.
11383 * s390-tdep.c: Use C++ exception handling.
11384 * rust-lang.c: Use C++ exception handling.
11385 * rust-exp.y: Use C++ exception handling.
11386 * rs6000-tdep.c: Use C++ exception handling.
11387 * rs6000-aix-tdep.c: Use C++ exception handling.
11388 * riscv-tdep.c: Use C++ exception handling.
11389 * remote.c: Use C++ exception handling.
11390 * remote-fileio.c: Use C++ exception handling.
11391 * record-full.c: Use C++ exception handling.
11392 * record-btrace.c: Use C++ exception handling.
11393 * python/python.c: Use C++ exception handling.
11394 * python/py-value.c: Use C++ exception handling.
11395 * python/py-utils.c: Use C++ exception handling.
11396 * python/py-unwind.c: Use C++ exception handling.
11397 * python/py-type.c: Use C++ exception handling.
11398 * python/py-symbol.c: Use C++ exception handling.
11399 * python/py-record.c: Use C++ exception handling.
11400 * python/py-record-btrace.c: Use C++ exception handling.
11401 * python/py-progspace.c: Use C++ exception handling.
11402 * python/py-prettyprint.c: Use C++ exception handling.
11403 * python/py-param.c: Use C++ exception handling.
11404 * python/py-objfile.c: Use C++ exception handling.
11405 * python/py-linetable.c: Use C++ exception handling.
11406 * python/py-lazy-string.c: Use C++ exception handling.
11407 * python/py-infthread.c: Use C++ exception handling.
11408 * python/py-inferior.c: Use C++ exception handling.
11409 * python/py-gdb-readline.c: Use C++ exception handling.
11410 * python/py-framefilter.c: Use C++ exception handling.
11411 * python/py-frame.c: Use C++ exception handling.
11412 * python/py-finishbreakpoint.c: Use C++ exception handling.
11413 * python/py-cmd.c: Use C++ exception handling.
11414 * python/py-breakpoint.c: Use C++ exception handling.
11415 * python/py-arch.c: Use C++ exception handling.
11416 * printcmd.c: Use C++ exception handling.
11417 * ppc-linux-tdep.c: Use C++ exception handling.
11418 * parse.c: Use C++ exception handling.
11419 * p-valprint.c: Use C++ exception handling.
11420 * objc-lang.c: Use C++ exception handling.
11421 * mi/mi-main.c: Use C++ exception handling.
11422 * mi/mi-interp.c: Use C++ exception handling.
11423 * mi/mi-cmd-stack.c: Use C++ exception handling.
11424 * mi/mi-cmd-break.c: Use C++ exception handling.
11425 * main.c: Use C++ exception handling.
11426 * linux-thread-db.c: Use C++ exception handling.
11427 * linux-tdep.c: Use C++ exception handling.
11428 * linux-nat.c: Use C++ exception handling.
11429 * linux-fork.c: Use C++ exception handling.
11430 * linespec.c: Use C++ exception handling.
11431 * language.c: Use C++ exception handling.
11432 * jit.c: Use C++ exception handling.
11433 * infrun.c: Use C++ exception handling.
11434 * infcmd.c: Use C++ exception handling.
11435 * infcall.c: Use C++ exception handling.
11436 * inf-loop.c: Use C++ exception handling.
11437 * i386-tdep.c: Use C++ exception handling.
11438 * i386-linux-tdep.c: Use C++ exception handling.
11439 * guile/scm-value.c: Use C++ exception handling.
11440 * guile/scm-type.c: Use C++ exception handling.
11441 * guile/scm-symtab.c: Use C++ exception handling.
11442 * guile/scm-symbol.c: Use C++ exception handling.
11443 * guile/scm-pretty-print.c: Use C++ exception handling.
11444 * guile/scm-ports.c: Use C++ exception handling.
11445 * guile/scm-param.c: Use C++ exception handling.
11446 * guile/scm-math.c: Use C++ exception handling.
11447 * guile/scm-lazy-string.c: Use C++ exception handling.
11448 * guile/scm-frame.c: Use C++ exception handling.
11449 * guile/scm-disasm.c: Use C++ exception handling.
11450 * guile/scm-cmd.c: Use C++ exception handling.
11451 * guile/scm-breakpoint.c: Use C++ exception handling.
11452 * guile/scm-block.c: Use C++ exception handling.
11453 * guile/guile-internal.h: Use C++ exception handling.
11454 * gnu-v3-abi.c: Use C++ exception handling.
11455 * gdbtypes.c: Use C++ exception handling.
11456 * frame.c: Use C++ exception handling.
11457 * frame-unwind.c: Use C++ exception handling.
11458 * fbsd-tdep.c: Use C++ exception handling.
11459 * f-valprint.c: Use C++ exception handling.
11460 * exec.c: Use C++ exception handling.
11461 * event-top.c: Use C++ exception handling.
11462 * event-loop.c: Use C++ exception handling.
11463 * eval.c: Use C++ exception handling.
11464 * dwarf2read.c: Use C++ exception handling.
11465 * dwarf2loc.c: Use C++ exception handling.
11466 * dwarf2-frame.c: Use C++ exception handling.
11467 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11468 * dwarf-index-write.c: Use C++ exception handling.
11469 * dwarf-index-cache.c: Use C++ exception handling.
11470 * dtrace-probe.c: Use C++ exception handling.
11471 * disasm-selftests.c: Use C++ exception handling.
11472 * darwin-nat.c: Use C++ exception handling.
11473 * cp-valprint.c: Use C++ exception handling.
11474 * cp-support.c: Use C++ exception handling.
11475 * cp-abi.c: Use C++ exception handling.
11476 * corelow.c: Use C++ exception handling.
11477 * completer.c: Use C++ exception handling.
11478 * compile/compile-object-run.c: Use C++ exception handling.
11479 * compile/compile-object-load.c: Use C++ exception handling.
11480 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11481 * compile/compile-c-symbols.c: Use C++ exception handling.
11482 * common/selftest.c: Use C++ exception handling.
11483 * common/new-op.c: Use C++ exception handling.
11484 * cli/cli-script.c: Use C++ exception handling.
11485 * cli/cli-interp.c: Use C++ exception handling.
11486 * cli/cli-cmds.c: Use C++ exception handling.
11487 * c-varobj.c: Use C++ exception handling.
11488 * btrace.c: Use C++ exception handling.
11489 * breakpoint.c: Use C++ exception handling.
11490 * break-catch-throw.c: Use C++ exception handling.
11491 * arch-utils.c: Use C++ exception handling.
11492 * amd64-tdep.c: Use C++ exception handling.
11493 * ada-valprint.c: Use C++ exception handling.
11494 * ada-typeprint.c: Use C++ exception handling.
11495 * ada-lang.c: Use C++ exception handling.
11496 * aarch64-tdep.c: Use C++ exception handling.
11497
11498 2019-04-08 Tom Tromey <tom@tromey.com>
11499
11500 * xml-support.c (gdb_xml_parser::parse): Update.
11501 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11502 * value.c (show_convenience): Update.
11503 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11504 (test_parse_flags_qcs): Update.
11505 * thread.c (thr_try_catch_cmd): Update.
11506 * target.c (target_translate_tls_address): Update.
11507 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11508 (info_frame_command_core, frame_apply_command_count): Update.
11509 * rust-exp.y (rust_lex_exception_test): Update.
11510 * riscv-tdep.c (riscv_print_one_register_info): Update.
11511 * remote.c (remote_target::enable_btrace): Update.
11512 * record-btrace.c (record_btrace_enable_warn): Update.
11513 * python/py-utils.c (gdbpy_convert_exception): Update.
11514 * printcmd.c (do_one_display, print_variable_and_value): Update.
11515 * mi/mi-main.c (mi_print_exception): Update.
11516 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11517 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11518 * linux-nat.c (linux_nat_target::attach): Update.
11519 * linux-fork.c (class scoped_switch_fork_info): Update.
11520 * infrun.c (displaced_step_prepare): Update.
11521 * infcall.c (call_function_by_hand_dummy): Update.
11522 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11523 * gnu-v3-abi.c (print_one_vtable): Update.
11524 * frame.c (get_prev_frame_always): Update.
11525 * f-valprint.c (info_common_command_for_block): Update.
11526 * exec.c (try_open_exec_file): Update.
11527 * exceptions.c (print_exception, exception_print)
11528 (exception_fprintf, exception_print_same): Update.
11529 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11530 * dwarf-index-cache.c (index_cache::store)
11531 (index_cache::lookup_gdb_index): Update.
11532 * darwin-nat.c (maybe_cache_shell): Update.
11533 * cp-valprint.c (cp_print_value_fields): Update.
11534 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11535 (gcc_cplus_symbol_address): Update.
11536 * compile/compile-c-symbols.c (gcc_convert_symbol)
11537 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11538 * common/selftest.c: Update.
11539 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11540 a std::string.
11541 (exception_try_scope_entry, exception_try_scope_exit): Don't
11542 declare.
11543 (struct exception_try_scope): Remove.
11544 (TRY): Don't use exception_try_scope.
11545 (struct gdb_exception): Add constructor, operator=.
11546 <what>: New method.
11547 (struct gdb_exception_RETURN_MASK_ALL)
11548 (struct gdb_exception_RETURN_MASK_ERROR)
11549 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11550 (struct gdb_quit_bad_alloc): Update.
11551 * common/common-exceptions.c (exception_none): Change
11552 initializer.
11553 (struct catcher) <state, exception>: Initialize inline.
11554 <prev>: Remove member.
11555 (current_catcher): Remove.
11556 (catchers): New global.
11557 (exceptions_state_mc_init): Simplify.
11558 (catcher_pop): Remove.
11559 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11560 (try_scope_depth, exception_try_scope_entry)
11561 (exception_try_scope_exit): Remove.
11562 (throw_exception_sjlj): Update.
11563 (exception_messages, exception_messages_size): Remove.
11564 (throw_it): Simplify.
11565 (gdb_exception_sliced_copy): Remove.
11566 (throw_exception_cxx): Update.
11567 * cli/cli-script.c (script_from_file): Update.
11568 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11569 Update.
11570 * ada-valprint.c (ada_val_print): Update.
11571 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11572 (create_excep_cond_exprs): Update.
11573
11574 2019-04-08 Tom Tromey <tom@tromey.com>
11575
11576 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11577 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11578 (TRY, CATCH, END_CATCH): Remove some definitions.
11579 * common/common-exceptions.c: Don't use GDB_XCPT.
11580 (catcher_list_size): Remove.
11581 (throw_exception, throw_it): Simplify.
11582
11583 2019-04-05 Tom Tromey <tom@tromey.com>
11584
11585 Revert the header-sorting patch.
11586 * ft32-tdep.c: Revert.
11587 * frv-tdep.c: Revert.
11588 * frv-linux-tdep.c: Revert.
11589 * frame.c: Revert.
11590 * frame-unwind.c: Revert.
11591 * frame-base.c: Revert.
11592 * fork-child.c: Revert.
11593 * findvar.c: Revert.
11594 * findcmd.c: Revert.
11595 * filesystem.c: Revert.
11596 * filename-seen-cache.h: Revert.
11597 * filename-seen-cache.c: Revert.
11598 * fbsd-tdep.c: Revert.
11599 * fbsd-nat.h: Revert.
11600 * fbsd-nat.c: Revert.
11601 * f-valprint.c: Revert.
11602 * f-typeprint.c: Revert.
11603 * f-lang.c: Revert.
11604 * extension.h: Revert.
11605 * extension.c: Revert.
11606 * extension-priv.h: Revert.
11607 * expprint.c: Revert.
11608 * exec.h: Revert.
11609 * exec.c: Revert.
11610 * exceptions.c: Revert.
11611 * event-top.c: Revert.
11612 * event-loop.c: Revert.
11613 * eval.c: Revert.
11614 * elfread.c: Revert.
11615 * dwarf2read.h: Revert.
11616 * dwarf2read.c: Revert.
11617 * dwarf2loc.c: Revert.
11618 * dwarf2expr.h: Revert.
11619 * dwarf2expr.c: Revert.
11620 * dwarf2-frame.c: Revert.
11621 * dwarf2-frame-tailcall.c: Revert.
11622 * dwarf-index-write.h: Revert.
11623 * dwarf-index-write.c: Revert.
11624 * dwarf-index-common.c: Revert.
11625 * dwarf-index-cache.h: Revert.
11626 * dwarf-index-cache.c: Revert.
11627 * dummy-frame.c: Revert.
11628 * dtrace-probe.c: Revert.
11629 * disasm.h: Revert.
11630 * disasm.c: Revert.
11631 * disasm-selftests.c: Revert.
11632 * dictionary.c: Revert.
11633 * dicos-tdep.c: Revert.
11634 * demangle.c: Revert.
11635 * dcache.h: Revert.
11636 * dcache.c: Revert.
11637 * darwin-nat.h: Revert.
11638 * darwin-nat.c: Revert.
11639 * darwin-nat-info.c: Revert.
11640 * d-valprint.c: Revert.
11641 * d-namespace.c: Revert.
11642 * d-lang.c: Revert.
11643 * ctf.c: Revert.
11644 * csky-tdep.c: Revert.
11645 * csky-linux-tdep.c: Revert.
11646 * cris-tdep.c: Revert.
11647 * cris-linux-tdep.c: Revert.
11648 * cp-valprint.c: Revert.
11649 * cp-support.c: Revert.
11650 * cp-namespace.c: Revert.
11651 * cp-abi.c: Revert.
11652 * corelow.c: Revert.
11653 * corefile.c: Revert.
11654 * continuations.c: Revert.
11655 * completer.h: Revert.
11656 * completer.c: Revert.
11657 * complaints.c: Revert.
11658 * coffread.c: Revert.
11659 * coff-pe-read.c: Revert.
11660 * cli-out.h: Revert.
11661 * cli-out.c: Revert.
11662 * charset.c: Revert.
11663 * c-varobj.c: Revert.
11664 * c-valprint.c: Revert.
11665 * c-typeprint.c: Revert.
11666 * c-lang.c: Revert.
11667 * buildsym.c: Revert.
11668 * buildsym-legacy.c: Revert.
11669 * build-id.h: Revert.
11670 * build-id.c: Revert.
11671 * btrace.c: Revert.
11672 * bsd-uthread.c: Revert.
11673 * breakpoint.h: Revert.
11674 * breakpoint.c: Revert.
11675 * break-catch-throw.c: Revert.
11676 * break-catch-syscall.c: Revert.
11677 * break-catch-sig.c: Revert.
11678 * blockframe.c: Revert.
11679 * block.c: Revert.
11680 * bfin-tdep.c: Revert.
11681 * bfin-linux-tdep.c: Revert.
11682 * bfd-target.c: Revert.
11683 * bcache.c: Revert.
11684 * ax-general.c: Revert.
11685 * ax-gdb.h: Revert.
11686 * ax-gdb.c: Revert.
11687 * avr-tdep.c: Revert.
11688 * auxv.c: Revert.
11689 * auto-load.c: Revert.
11690 * arm-wince-tdep.c: Revert.
11691 * arm-tdep.c: Revert.
11692 * arm-symbian-tdep.c: Revert.
11693 * arm-pikeos-tdep.c: Revert.
11694 * arm-obsd-tdep.c: Revert.
11695 * arm-nbsd-tdep.c: Revert.
11696 * arm-nbsd-nat.c: Revert.
11697 * arm-linux-tdep.c: Revert.
11698 * arm-linux-nat.c: Revert.
11699 * arm-fbsd-tdep.c: Revert.
11700 * arm-fbsd-nat.c: Revert.
11701 * arm-bsd-tdep.c: Revert.
11702 * arch-utils.c: Revert.
11703 * arc-tdep.c: Revert.
11704 * arc-newlib-tdep.c: Revert.
11705 * annotate.h: Revert.
11706 * annotate.c: Revert.
11707 * amd64-windows-tdep.c: Revert.
11708 * amd64-windows-nat.c: Revert.
11709 * amd64-tdep.c: Revert.
11710 * amd64-sol2-tdep.c: Revert.
11711 * amd64-obsd-tdep.c: Revert.
11712 * amd64-obsd-nat.c: Revert.
11713 * amd64-nbsd-tdep.c: Revert.
11714 * amd64-nbsd-nat.c: Revert.
11715 * amd64-nat.c: Revert.
11716 * amd64-linux-tdep.c: Revert.
11717 * amd64-linux-nat.c: Revert.
11718 * amd64-fbsd-tdep.c: Revert.
11719 * amd64-fbsd-nat.c: Revert.
11720 * amd64-dicos-tdep.c: Revert.
11721 * amd64-darwin-tdep.c: Revert.
11722 * amd64-bsd-nat.c: Revert.
11723 * alpha-tdep.c: Revert.
11724 * alpha-obsd-tdep.c: Revert.
11725 * alpha-nbsd-tdep.c: Revert.
11726 * alpha-mdebug-tdep.c: Revert.
11727 * alpha-linux-tdep.c: Revert.
11728 * alpha-linux-nat.c: Revert.
11729 * alpha-bsd-tdep.c: Revert.
11730 * alpha-bsd-nat.c: Revert.
11731 * aix-thread.c: Revert.
11732 * agent.c: Revert.
11733 * addrmap.c: Revert.
11734 * ada-varobj.c: Revert.
11735 * ada-valprint.c: Revert.
11736 * ada-typeprint.c: Revert.
11737 * ada-tasks.c: Revert.
11738 * ada-lang.c: Revert.
11739 * aarch64-tdep.c: Revert.
11740 * aarch64-ravenscar-thread.c: Revert.
11741 * aarch64-newlib-tdep.c: Revert.
11742 * aarch64-linux-tdep.c: Revert.
11743 * aarch64-linux-nat.c: Revert.
11744 * aarch64-fbsd-tdep.c: Revert.
11745 * aarch64-fbsd-nat.c: Revert.
11746 * aarch32-linux-nat.c: Revert.
11747
11748 2019-04-05 Tom Tromey <tom@tromey.com>
11749
11750 * ft32-tdep.c: Sort headers.
11751 * frv-tdep.c: Sort headers.
11752 * frv-linux-tdep.c: Sort headers.
11753 * frame.c: Sort headers.
11754 * frame-unwind.c: Sort headers.
11755 * frame-base.c: Sort headers.
11756 * fork-child.c: Sort headers.
11757 * findvar.c: Sort headers.
11758 * findcmd.c: Sort headers.
11759 * filesystem.c: Sort headers.
11760 * filename-seen-cache.h: Sort headers.
11761 * filename-seen-cache.c: Sort headers.
11762 * fbsd-tdep.c: Sort headers.
11763 * fbsd-nat.h: Sort headers.
11764 * fbsd-nat.c: Sort headers.
11765 * f-valprint.c: Sort headers.
11766 * f-typeprint.c: Sort headers.
11767 * f-lang.c: Sort headers.
11768 * extension.h: Sort headers.
11769 * extension.c: Sort headers.
11770 * extension-priv.h: Sort headers.
11771 * expprint.c: Sort headers.
11772 * exec.h: Sort headers.
11773 * exec.c: Sort headers.
11774 * exceptions.c: Sort headers.
11775 * event-top.c: Sort headers.
11776 * event-loop.c: Sort headers.
11777 * eval.c: Sort headers.
11778 * elfread.c: Sort headers.
11779 * dwarf2read.h: Sort headers.
11780 * dwarf2read.c: Sort headers.
11781 * dwarf2loc.c: Sort headers.
11782 * dwarf2expr.h: Sort headers.
11783 * dwarf2expr.c: Sort headers.
11784 * dwarf2-frame.c: Sort headers.
11785 * dwarf2-frame-tailcall.c: Sort headers.
11786 * dwarf-index-write.h: Sort headers.
11787 * dwarf-index-write.c: Sort headers.
11788 * dwarf-index-common.c: Sort headers.
11789 * dwarf-index-cache.h: Sort headers.
11790 * dwarf-index-cache.c: Sort headers.
11791 * dummy-frame.c: Sort headers.
11792 * dtrace-probe.c: Sort headers.
11793 * disasm.h: Sort headers.
11794 * disasm.c: Sort headers.
11795 * disasm-selftests.c: Sort headers.
11796 * dictionary.c: Sort headers.
11797 * dicos-tdep.c: Sort headers.
11798 * demangle.c: Sort headers.
11799 * dcache.h: Sort headers.
11800 * dcache.c: Sort headers.
11801 * darwin-nat.h: Sort headers.
11802 * darwin-nat.c: Sort headers.
11803 * darwin-nat-info.c: Sort headers.
11804 * d-valprint.c: Sort headers.
11805 * d-namespace.c: Sort headers.
11806 * d-lang.c: Sort headers.
11807 * ctf.c: Sort headers.
11808 * csky-tdep.c: Sort headers.
11809 * csky-linux-tdep.c: Sort headers.
11810 * cris-tdep.c: Sort headers.
11811 * cris-linux-tdep.c: Sort headers.
11812 * cp-valprint.c: Sort headers.
11813 * cp-support.c: Sort headers.
11814 * cp-namespace.c: Sort headers.
11815 * cp-abi.c: Sort headers.
11816 * corelow.c: Sort headers.
11817 * corefile.c: Sort headers.
11818 * continuations.c: Sort headers.
11819 * completer.h: Sort headers.
11820 * completer.c: Sort headers.
11821 * complaints.c: Sort headers.
11822 * coffread.c: Sort headers.
11823 * coff-pe-read.c: Sort headers.
11824 * cli-out.h: Sort headers.
11825 * cli-out.c: Sort headers.
11826 * charset.c: Sort headers.
11827 * c-varobj.c: Sort headers.
11828 * c-valprint.c: Sort headers.
11829 * c-typeprint.c: Sort headers.
11830 * c-lang.c: Sort headers.
11831 * buildsym.c: Sort headers.
11832 * buildsym-legacy.c: Sort headers.
11833 * build-id.h: Sort headers.
11834 * build-id.c: Sort headers.
11835 * btrace.c: Sort headers.
11836 * bsd-uthread.c: Sort headers.
11837 * breakpoint.h: Sort headers.
11838 * breakpoint.c: Sort headers.
11839 * break-catch-throw.c: Sort headers.
11840 * break-catch-syscall.c: Sort headers.
11841 * break-catch-sig.c: Sort headers.
11842 * blockframe.c: Sort headers.
11843 * block.c: Sort headers.
11844 * bfin-tdep.c: Sort headers.
11845 * bfin-linux-tdep.c: Sort headers.
11846 * bfd-target.c: Sort headers.
11847 * bcache.c: Sort headers.
11848 * ax-general.c: Sort headers.
11849 * ax-gdb.h: Sort headers.
11850 * ax-gdb.c: Sort headers.
11851 * avr-tdep.c: Sort headers.
11852 * auxv.c: Sort headers.
11853 * auto-load.c: Sort headers.
11854 * arm-wince-tdep.c: Sort headers.
11855 * arm-tdep.c: Sort headers.
11856 * arm-symbian-tdep.c: Sort headers.
11857 * arm-pikeos-tdep.c: Sort headers.
11858 * arm-obsd-tdep.c: Sort headers.
11859 * arm-nbsd-tdep.c: Sort headers.
11860 * arm-nbsd-nat.c: Sort headers.
11861 * arm-linux-tdep.c: Sort headers.
11862 * arm-linux-nat.c: Sort headers.
11863 * arm-fbsd-tdep.c: Sort headers.
11864 * arm-fbsd-nat.c: Sort headers.
11865 * arm-bsd-tdep.c: Sort headers.
11866 * arch-utils.c: Sort headers.
11867 * arc-tdep.c: Sort headers.
11868 * arc-newlib-tdep.c: Sort headers.
11869 * annotate.h: Sort headers.
11870 * annotate.c: Sort headers.
11871 * amd64-windows-tdep.c: Sort headers.
11872 * amd64-windows-nat.c: Sort headers.
11873 * amd64-tdep.c: Sort headers.
11874 * amd64-sol2-tdep.c: Sort headers.
11875 * amd64-obsd-tdep.c: Sort headers.
11876 * amd64-obsd-nat.c: Sort headers.
11877 * amd64-nbsd-tdep.c: Sort headers.
11878 * amd64-nbsd-nat.c: Sort headers.
11879 * amd64-nat.c: Sort headers.
11880 * amd64-linux-tdep.c: Sort headers.
11881 * amd64-linux-nat.c: Sort headers.
11882 * amd64-fbsd-tdep.c: Sort headers.
11883 * amd64-fbsd-nat.c: Sort headers.
11884 * amd64-dicos-tdep.c: Sort headers.
11885 * amd64-darwin-tdep.c: Sort headers.
11886 * amd64-bsd-nat.c: Sort headers.
11887 * alpha-tdep.c: Sort headers.
11888 * alpha-obsd-tdep.c: Sort headers.
11889 * alpha-nbsd-tdep.c: Sort headers.
11890 * alpha-mdebug-tdep.c: Sort headers.
11891 * alpha-linux-tdep.c: Sort headers.
11892 * alpha-linux-nat.c: Sort headers.
11893 * alpha-bsd-tdep.c: Sort headers.
11894 * alpha-bsd-nat.c: Sort headers.
11895 * aix-thread.c: Sort headers.
11896 * agent.c: Sort headers.
11897 * addrmap.c: Sort headers.
11898 * ada-varobj.c: Sort headers.
11899 * ada-valprint.c: Sort headers.
11900 * ada-typeprint.c: Sort headers.
11901 * ada-tasks.c: Sort headers.
11902 * ada-lang.c: Sort headers.
11903 * aarch64-tdep.c: Sort headers.
11904 * aarch64-ravenscar-thread.c: Sort headers.
11905 * aarch64-newlib-tdep.c: Sort headers.
11906 * aarch64-linux-tdep.c: Sort headers.
11907 * aarch64-linux-nat.c: Sort headers.
11908 * aarch64-fbsd-tdep.c: Sort headers.
11909 * aarch64-fbsd-nat.c: Sort headers.
11910 * aarch32-linux-nat.c: Sort headers.
11911
11912 2019-04-04 Tom Tromey <tom@tromey.com>
11913
11914 * varobj.c (varobj_create): Update.
11915 * rust-exp.y (struct rust_parser) <update_innermost_block,
11916 lookup_symbol>: New methods.
11917 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11918 Rename.
11919 (rust_parser::rust_lookup_type)
11920 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11921 * printcmd.c (display_command, do_one_display): Update.
11922 * parser-defs.h (struct parser_state) <parser_state>: Add
11923 "tracker" parameter.
11924 (block_tracker): New member.
11925 (class innermost_block_tracker) <innermost_block_tracker>: Add
11926 "types" parameter.
11927 <reset>: Remove method.
11928 (innermost_block): Don't declare.
11929 (null_post_parser): Update.
11930 * parse.c (innermost_block): Remove global.
11931 (write_dollar_variable): Update.
11932 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11933 Remove "tracker_types" parameter.
11934 (parse_expression): Add "tracker" parameter.
11935 (parse_expression_for_completion): Update.
11936 (null_post_parser): Add "tracker" parameter.
11937 * p-exp.y: Update rules.
11938 * m2-exp.y: Update rules.
11939 * language.h (struct language_defn) <la_post_parser>: Add
11940 "tracker" parameter.
11941 * go-exp.y: Update rules.
11942 * f-exp.y: Update rules.
11943 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11944 parameter.
11945 * d-exp.y: Update rules.
11946 * c-exp.y: Update rules.
11947 * breakpoint.c (set_breakpoint_condition): Create an
11948 innermost_block_tracker.
11949 (watch_command_1): Likewise.
11950 * ada-lang.c (resolve): Add "tracker" parameter.
11951 (resolve_subexp): Likewise.
11952 * ada-exp.y (write_var_from_sym): Update.
11953
11954 2019-04-04 Tom Tromey <tom@tromey.com>
11955
11956 * type-stack.h: New file.
11957 * type-stack.c: New file.
11958 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11959 type-stack.h.
11960 (insert_into_type_stack, insert_type, push_type, push_type_int)
11961 (insert_type_address_space, pop_type, pop_type_int)
11962 (pop_typelist, pop_type_stack, append_type_stack)
11963 (push_type_stack, get_type_stack, push_typelist)
11964 (follow_type_instance_flags, follow_types): Don't declare.
11965 * parse.c (type_stack): Remove global.
11966 (parse_exp_in_context): Update.
11967 (insert_into_type_stack, insert_type, push_type, push_type_int)
11968 (insert_type_address_space, pop_type, pop_type_int)
11969 (pop_typelist, pop_type_stack, append_type_stack)
11970 (push_type_stack, get_type_stack, push_typelist)
11971 (follow_type_instance_flags, follow_types): Remove (moved to
11972 type-stack.c).
11973 * f-exp.y (type_stack): New global.
11974 Update rules.
11975 (push_kind_type, f_parse): Update.
11976 * d-exp.y (type_stack): New global.
11977 Update rules.
11978 (d_parse): Update.
11979 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11980 Update rules.
11981 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11982 (HFILES_NO_SRCDIR): Add type-stack.h.
11983
11984 2019-04-04 Tom Tromey <tom@tromey.com>
11985
11986 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11987 (rust_parser::convert_ast_to_expression, rust_parse)
11988 (rust_lex_test_completion, rust_lex_tests): Update.
11989 * parser-defs.h (struct expr_completion_state): New.
11990 (struct parser_state) <parser_state>: Add completion parameter.
11991 <mark_struct_expression, mark_completion_tag>: New methods.
11992 <parse_completion, m_completion_state>: New members.
11993 (prefixify_expression, null_post_parser): Update.
11994 (mark_struct_expression, mark_completion_tag): Don't declare.
11995 * parse.c (parse_completion, expout_last_struct)
11996 (expout_tag_completion_type, expout_completion_name): Remove
11997 globals.
11998 (parser_state::mark_struct_expression)
11999 (parser_state::mark_completion_tag): Now methods.
12000 (prefixify_expression): Add last_struct parameter.
12001 (prefixify_subexp): Likewise.
12002 (parse_exp_1): Update.
12003 (parse_exp_in_context): Add cstate parameter. Update.
12004 (parse_expression_for_completion): Create an
12005 expr_completion_state.
12006 (null_post_parser): Add "completion" parameter.
12007 * p-exp.y: Update rules.
12008 (yylex): Update.
12009 * language.h (struct language_defn) <la_post_parser>: Add
12010 "completing" parameter.
12011 * go-exp.y: Update rules.
12012 (lex_one_token): Update.
12013 * expression.h (parse_completion): Don't declare.
12014 * d-exp.y: Update rules.
12015 (lex_one_token): Update rules.
12016 * c-exp.y: Update rules.
12017 (lex_one_token): Update.
12018 * ada-lang.c (resolve): Add "parse_completion" parameter.
12019 (resolve_subexp): Likewise.
12020 (ada_resolve_function): Likewise.
12021
12022 2019-04-04 Tom Tromey <tom@tromey.com>
12023
12024 * parser-defs.h (struct parser_state) <start_arglist,
12025 end_arglist>: New methods.
12026 <arglist_len, m_funcall_chain>: New members.
12027 (arglist_len, start_arglist, end_arglist): Don't declare.
12028 * parse.c (arglist_len, funcall_chain): Remove global.
12029 (start_arglist, end_arglist): Remove functions.
12030 (parse_exp_in_context): Update.
12031 * p-exp.y: Update rules.
12032 * m2-exp.y: Update rules.
12033 * go-exp.y: Update rules.
12034 * f-exp.y: Update rules.
12035 * d-exp.y: Update rules.
12036 * c-exp.y: Update rules.
12037
12038 2019-04-04 Tom Tromey <tom@tromey.com>
12039
12040 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12041 lex_operator, push_back>: New methods.
12042 Update all rules.
12043 (rust_parser::lex_hex, lex_escape): Rename and update.
12044 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12045 (rust_parser::lex_operator): Rename and update.
12046 (rust_parser::lex_number, rustyylex, rustyyerror)
12047 (rust_lex_test_init, rust_lex_test_sequence)
12048 (rust_lex_test_push_back, rust_lex_tests): Update.
12049 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12050 parameter.
12051 <lexptr, prev_lexptr>: New members.
12052 (lexptr, prev_lexptr): Don't declare.
12053 * parse.c (lexptr, prev_lexptr): Remove globals.
12054 (parse_exp_in_context): Update.
12055 * p-exp.y (yylex, yyerror): Update.
12056 * m2-exp.y (parse_number, yylex, yyerror): Update.
12057 * go-exp.y (lex_one_token, yyerror): Update.
12058 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12059 * d-exp.y (lex_one_token, yyerror): Update.
12060 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12061 (lex_one_token, yyerror): Update.
12062 * ada-lex.l (YY_INPUT): Update.
12063 (rewind_to_char): Update.
12064 * ada-exp.y (yyerror): Update.
12065
12066 2019-04-04 Tom Tromey <tom@tromey.com>
12067
12068 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12069 * parser-defs.h (struct parser_state) <parser_state>: Add new
12070 parameter.
12071 <comma_terminates>: New member.
12072 (comma_terminates): Don't declare global.
12073 * parse.c (comma_terminates): Remove global.
12074 (parse_exp_in_context): Update.
12075 * p-exp.y (yylex): Update.
12076 * m2-exp.y (yylex): Update.
12077 * go-exp.y (lex_one_token): Update.
12078 * f-exp.y (yylex): Update.
12079 * d-exp.y (lex_one_token): Update.
12080 * c-exp.y (lex_one_token): Update.
12081 * ada-lex.l: Update.
12082
12083 2019-04-04 Tom Tromey <tom@tromey.com>
12084
12085 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12086 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12087 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12088 * parser-defs.h (paren_depth): Don't declare.
12089 * parse.c (paren_depth): Remove global.
12090 (parse_exp_in_context): Update.
12091 * p-exp.y (paren_depth): New global.
12092 (pascal_parse): Initialize it.
12093 * m2-exp.y (paren_depth): New global.
12094 (m2_parse): Initialize it.
12095 * go-exp.y (paren_depth): New global.
12096 (go_parse): Initialize it.
12097 * f-exp.y (paren_depth): New global.
12098 (f_parse): Initialize it.
12099 * d-exp.y (paren_depth): New global.
12100 (d_parse): Initialize it.
12101 * c-exp.y (paren_depth): New global.
12102 (c_parse): Initialize it.
12103 * ada-lex.l (paren_depth): New global.
12104 (lexer_init): Initialize it.
12105
12106 2019-04-04 Tom Tromey <tom@tromey.com>
12107
12108 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12109 (rust_parser::convert_ast_to_type)
12110 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12111 * parser-defs.h (struct parser_state) <parser_state>: Add
12112 parameters. Initialize new members.
12113 <expression_context_block, expression_context_pc>: New members.
12114 * parse.c (expression_context_block, expression_context_pc):
12115 Remove globals.
12116 (parse_exp_in_context): Update.
12117 * p-exp.y: Update all rules.
12118 (yylex): Update.
12119 * m2-exp.y: Update all rules.
12120 (yylex): Update.
12121 * go-exp.y (yylex): Update.
12122 * f-exp.y (yylex): Update.
12123 * d-exp.y: Update all rules.
12124 (yylex): Update.
12125 * c-exp.y: Update all rules.
12126 (lex_one_token, classify_name, yylex, c_parse): Update.
12127 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12128
12129 2019-04-04 Tom Tromey <tom@tromey.com>
12130
12131 * gdbarch.h, gdbarch.c: Rebuild.
12132 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12133 * stap-probe.h:
12134 (struct stap_parse_info): Replace "parser_state" with
12135 "expr_builder".
12136 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12137 (parser_state): New class.
12138 * parse.c (expr_builder): Rename.
12139 (expr_builder::release): Rename.
12140 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12141 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12142 (write_exp_elt_longcst, write_exp_elt_floatcst)
12143 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12144 (write_exp_string_vector, write_exp_bitstring)
12145 (write_exp_msymbol, mark_struct_expression)
12146 (write_dollar_variable)
12147 (insert_type_address_space, increase_expout_size): Replace
12148 "parser_state" with "expr_builder".
12149 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12150 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12151 "parser_state" with "expr_builder".
12152
12153 2019-04-04 Tom Tromey <tom@tromey.com>
12154
12155 * rust-exp.y: Replace "parse_language" with method call.
12156 * p-exp.y:
12157 (yylex): Replace "parse_language" with method call.
12158 * m2-exp.y:
12159 (yylex): Replace "parse_language" with method call.
12160 * go-exp.y (classify_name): Replace "parse_language" with method
12161 call.
12162 * f-exp.y (yylex): Replace "parse_language" with method call.
12163 * d-exp.y (lex_one_token): Replace "parse_language" with method
12164 call.
12165 * c-exp.y:
12166 (lex_one_token, classify_name, yylex): Replace "parse_language"
12167 with method call.
12168 * ada-exp.y (find_primitive_type, type_char)
12169 (type_system_address): Replace "parse_language" with method call.
12170
12171 2019-04-04 Tom Tromey <tom@tromey.com>
12172
12173 * rust-exp.y: Replace "parse_gdbarch" with method call.
12174 * parse.c (write_dollar_variable, insert_type_address_space):
12175 Replace "parse_gdbarch" with method call.
12176 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12177 call.
12178 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12179 call.
12180 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12181 "parse_gdbarch" with method call.
12182 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12183 with method call.
12184 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12185 "parse_gdbarch" with method call.
12186 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12187 "parse_gdbarch" with method call.
12188 * c-exp.y (parse_type, parse_number, classify_name): Replace
12189 "parse_gdbarch" with method call.
12190 * ada-lex.l: Replace "parse_gdbarch" with method call.
12191 * ada-exp.y (parse_type, find_primitive_type, type_char)
12192 (type_system_address): Replace "parse_gdbarch" with method call.
12193
12194 2019-04-04 Tom Tromey <tom@tromey.com>
12195
12196 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12197 * stap-probe.c (stap_parse_argument): Update.
12198 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12199 initial_size parameter.
12200 * rust-exp.y (rust_lex_tests): Update.
12201 * parse.c (parser_state): Update.
12202 (parse_exp_in_context): Update.
12203 * parser-defs.h (struct parser_state) <parser_state>: Remove
12204 "initial_size" parameter.
12205
12206 2019-04-04 Tom Tromey <tom@tromey.com>
12207
12208 * parser-defs.h (increase_expout_size): Don't declare.
12209 * parse.c (increase_expout_size): Now static.
12210
12211 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12212
12213 * gnu-nat.c (gnu_nat_target::wait): Fix
12214 target_waitstatus_to_string call.
12215
12216 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12217
12218 * eval.c (evaluate_subexp_standard): Handle internal functions
12219 during Fortran function call handling.
12220
12221 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12222
12223 * NEWS: Mention new internal functions.
12224 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12225 (read_base_type): Use dwarf2_init_complex_target_type.
12226 * value.c (creal_internal_fn): New function.
12227 (cimag_internal_fn): New function.
12228 (_initialize_values): Register new internal functions.
12229
12230 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12231
12232 * infrun.c (stop_all_threads): If debug_infrun, always
12233 trace the wait status after wait_one, using
12234 target_waitstatus_to_string and target_pid_to_str.
12235 (handle_inferior_event): Replace various trace of
12236 wait status kind by a single trace.
12237 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12238 wait status kind image by target_waitstatus_to_string.
12239 * target/waitstatus.c (target_waitstatus_to_string): Fix
12240 obsolete comment.
12241
12242 2019-04-01 Tom Tromey <tromey@adacore.com>
12243
12244 PR symtab/23331:
12245 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12246
12247 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12248 Pedro Alves <palves@redhat.com>
12249
12250 * top.c (quit_force): Call 'finalize_values'.
12251 * value.c (finalize_values): New function.
12252 * value.h (finalize_values): Declare.
12253
12254 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12255
12256 * NEWS: Announce $_gdb_major and $_gdb_minor.
12257
12258 * top.c (init_gdb_version_vars): New function.
12259 (gdb_init): Call init_gdb_version_vars.
12260
12261 2019-03-29 Tom Tromey <tromey@adacore.com>
12262
12263 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12264 help text. Remove dead code.
12265
12266 2019-03-29 Keith Seitz <keiths@redhat.com>
12267
12268 From Siddhesh Poyarekar:
12269 * f-lang.h (f77_get_upperbound): Return LONGEST.
12270 (f77_get_lowerbound): Likewise.
12271 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12272 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12273 print them.
12274 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12275 plongest to format print it.
12276 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12277 (f77_get_upperbound): Likewise.
12278 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12279 LOWER_BOUND to LONGEST.
12280 (f77_create_arrayprint_offset_tbl): Likewise.
12281
12282 2019-03-29 Keith Seitz <keiths@redhat.com>
12283
12284 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12285 %s/pulongest for TYPE_LENGTH instead of %d in format
12286 strings.
12287 * ada-typerint.c (ada_print_type): Likewise.
12288 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12289 * compile/compile-c-support.c (generate_register_struct): Likewise.
12290 * gdbtypes.c (recursive_dump_type): Likewise.
12291 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12292 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12293 instead of %d in format strings.
12294 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12295 to std::min to ULONGEST.
12296 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12297 instead of %d in format strings.
12298 * tracepoint.c (info_scope_command): Likewise.
12299 * typeprint.c (print_offset_data::update)
12300 (print_offset_data::finish): Likewise.
12301 * xtensa-tdep.c (xtensa_store_return_value)
12302 (xtensa_push_dummy_call): Likewise.
12303
12304 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12305
12306 * windows-nat.c (display_selector): Fixed format specifications
12307 for 64-bit Cygwin.
12308
12309 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12310
12311 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12312
12313 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12314
12315 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12316 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12317 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12318 (nios2_linux_init_abi): Install it.
12319
12320 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12321
12322 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12323
12324 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12325
12326 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12327
12328 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12329 Tom Tromey <tromey@adacore.com>
12330
12331 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12332
12333 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12334
12335 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12336 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12337 method to compute the bounds of range types. Also print "[evaluated]"
12338 if the bounds' values come from a dynamic evaluation.
12339
12340 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12341
12342 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12343 whitespace when pretty printing is on.
12344
12345 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12346
12347 * ppc-linux-nat.c: Add include.
12348
12349 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12350
12351 * NEWS: Mention AArch64 Pointer Authentication.
12352
12353 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12354
12355 * arm-linux-nat.c: Add include.
12356
12357 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12358
12359 * source-cache.c (source_cache::get_source_lines): Re-read
12360 fullname after calling open_source_file.
12361
12362 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12363
12364 * NEWS: Mention TLS support for FreeBSD.
12365
12366 2019-03-25 Tom Tromey <tromey@adacore.com>
12367
12368 * minsyms.c (BUNCH_SIZE): Update comment.
12369 (~minimal_symbol_reader): Remove old comment.
12370 (compact_minimal_symbols): Update comment.
12371 (minimal_symbol_reader::install): Remove old comment. Update
12372 other comments.
12373
12374 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12375
12376 * s390-linux-nat.c: Add include.
12377
12378 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12379
12380 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12381 Call linux_get_hwcap.
12382 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12383 Likewise.
12384 (aarch64_linux_get_hwcap): Remove function.
12385 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12386 declaration.
12387 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12388 linux_get_hwcap.
12389 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12390 * linux-tdep.c (linux_get_hwcap): Add function.
12391 (linux_get_hwcap2): Likewise.
12392 * linux-tdep.h (linux_get_hwcap): Add declaration.
12393 (linux_get_hwcap2): Likewise.
12394 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12395 (ppc_linux_get_hwcap2): Likewise.
12396 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12397 linux_get_hwcap.
12398 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12399 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12400 (ppc_linux_nat_target::read_description): Likewise.
12401 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12402 * s390-linux-nat.c: Likewise.
12403 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12404
12405 2019-03-24 Tom Tromey <tom@tromey.com>
12406
12407 * ada-lang.c (standard_lookup): Simplify initialization.
12408 (ada_lookup_symbol_nonlocal): Simplify return.
12409 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12410 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12411 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12412 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12413 initialization.
12414 * solib.c (solib_global_lookup): Simplify.
12415 * symtab.c (null_block_symbol): Remove.
12416 (symbol_cache_lookup): Simplify returns.
12417 (lookup_language_this): Simplify returns.
12418 (lookup_symbol_aux): Simplify return.
12419 (lookup_local_symbol): Simplify returns.
12420 (lookup_global_symbol_from_objfile): Simplify return.
12421 (lookup_symbol_in_objfile_symtabs)
12422 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12423 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12424 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12425 * cp-namespace.c (cp_lookup_bare_symbol)
12426 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12427 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12428 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12429 (cp_lookup_symbol_via_imports): Simplify initialization.
12430 (find_symbol_in_baseclass): Likewise.
12431 * symtab.h (null_block_symbol): Remove.
12432 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12433 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12434 (d_lookup_symbol_module): Likewise.
12435 (find_symbol_in_baseclass): Simplify initialization.
12436
12437 2019-03-24 Tom Tromey <tom@tromey.com>
12438
12439 * expression.h: Don't include symtab.h.
12440 (struct block): Forward declare.
12441
12442 2019-03-24 Tom Tromey <tom@tromey.com>
12443
12444 * c-exp.y (typebase): Remove casts.
12445 * gdbtypes.c (lookup_unsigned_typename, )
12446 (lookup_signed_typename): Remove cast.
12447 * eval.c (parse_to_comma_and_eval): Remove cast.
12448 * parse.c (write_dollar_variable): Remove cast.
12449 * block.h (struct block) <superblock>: Now const.
12450 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12451 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12452 (map_block): Make "block" const.
12453 * symfile.h (struct quick_symbol_functions)
12454 <map_matching_symbols>: Constify block argument to "callback".
12455 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12456 const.
12457 (find_pc_sect_compunit_symtab): Make "b" const.
12458 (find_symbol_at_address): Likewise.
12459 (search_symbols): Likewise.
12460 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12461 (dw2_debug_names_lookup_symbol): Likewise.
12462 (dw2_map_matching_symbols): Update.
12463 * p-valprint.c (pascal_val_print): Remove "block".
12464 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12465 (aux_add_nonlocal_symbols): Make "block" const.
12466 (resolve_subexp): Remove cast.
12467 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12468 const.
12469 (iterate_over_file_blocks): Likewise.
12470 * f-exp.y (%union) <bval>: Remove.
12471 * coffread.c (patch_opaque_types): Make "b" const.
12472 * spu-tdep.c (spu_catch_start): Make "block" const.
12473 * c-valprint.c (print_unpacked_pointer): Remove "block".
12474 * symmisc.c (dump_symtab_1): Make "b" const.
12475 (block_depth): Make "block" const.
12476 * d-exp.y (%union) <bval>: Remove.
12477 * cp-support.h (cp_lookup_rtti_type): Update.
12478 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12479 * psymtab.c (psym_lookup_symbol): Make "block" const.
12480 (maintenance_check_psymtabs): Make "b" const.
12481 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12482 (enumerate_locals, enumerate_args): Update.
12483 * python/py-symtab.c (stpy_global_block): Make "block" const.
12484 (stpy_static_block): Likewise.
12485 * inline-frame.c (block_starting_point_at): Make "new_block"
12486 const.
12487 * block.c (find_block_in_blockvector): Make return type const.
12488 (blockvector_for_pc_sect): Make "b" const.
12489 (find_block_in_blockvector): Make "b" const.
12490
12491 2019-03-23 Tom Tromey <tom@tromey.com>
12492
12493 * varobj.c (varobj_create): Update.
12494 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12495 * printcmd.c (display_command, do_one_display): Don't reset
12496 innermost_block.
12497 * parser-defs.h (enum innermost_block_tracker_type): Move to
12498 expression.h.
12499 (innermost_block): Update comment.
12500 * parse.c (parse_exp_1): Add tracker_types parameter.
12501 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12502 tracker_types parameter. Reset innermost_block.
12503 (parse_exp_in_context): Remove.
12504 (parse_expression_for_completion): Update.
12505 * objfiles.c (~objfile): Don't reset expression_context_block or
12506 innermost_block.
12507 * expression.h (enum innermost_block_tracker_type): Move from
12508 parser-defs.h.
12509 (parse_exp_1): Add tracker_types parameter.
12510 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12511 reset innermost_block.
12512
12513 2019-03-23 Tom Tromey <tom@tromey.com>
12514
12515 * objfiles.h: Include bcache.h.
12516
12517 2019-03-23 Tom Tromey <tom@tromey.com>
12518
12519 * linespec.c (get_current_search_block): Use
12520 scoped_restore_current_language.
12521 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12522
12523 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12524 Jiong Wang <jiong.wang@arm.com>
12525
12526 * aarch64-linux-tdep.c
12527 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12528 section.
12529 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12530
12531 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12532 Jiong Wang <jiong.wang@arm.com>
12533
12534 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12535 instructions.
12536 (aarch64_analyze_prologue_test): Add PACIASP test.
12537 (aarch64_prologue_prev_register): Unmask PC value.
12538
12539 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12540 Jiong Wang <jiong.wang@arm.com>
12541
12542 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12543 (aarch64_dwarf2_prev_register): Unmask PC value.
12544 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12545 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12546 DW_CFA_AARCH64_negate_ra_state.
12547 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12548
12549 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12550 Jiong Wang <jiong.wang@arm.com>
12551
12552 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12553 registers.
12554 (aarch64_pseudo_register_name): Likewise.
12555 (aarch64_pseudo_register_type): Likewise.
12556 (aarch64_pseudo_register_reggroup_p): Likewise.
12557 (aarch64_gdbarch_init): Add pauth registers.
12558 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12559 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12560 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12561 (struct gdbarch_tdep): Add regnum for ra_state.
12562
12563 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12564 Jiong Wang <jiong.wang@arm.com>
12565
12566 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12567
12568 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12569 Jiong Wang <jiong.wang@arm.com>
12570
12571 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12572 function.
12573 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12574 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12575 (aarch64_gdbarch_init): Add puth registers.
12576 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12577 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12578 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12579
12580 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12581 Jiong Wang <jiong.wang@arm.com>
12582
12583 * aarch64-linux-nat.c
12584 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12585 * aarch64-linux-tdep.c
12586 (aarch64_linux_core_read_description): Likewise.
12587 (aarch64_linux_get_hwcap): New function.
12588 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12589 (aarch64_linux_get_hwcap): New declaration.
12590
12591 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12592 Jiong Wang <jiong.wang@arm.com>
12593
12594 * aarch64-linux-nat.c
12595 (aarch64_linux_nat_target::read_description): Add pauth param.
12596 * aarch64-linux-tdep.c
12597 (aarch64_linux_core_read_description): Likewise.
12598 * aarch64-tdep.c (struct target_desc): Add in pauth.
12599 (aarch64_read_description): Add pauth param.
12600 (aarch64_gdbarch_init): Likewise.
12601 * aarch64-tdep.h (aarch64_read_description): Likewise.
12602 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12603 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12604 * features/Makefile: Add new files.
12605 * features/aarch64-pauth.c: New file.
12606 * features/aarch64-pauth.xml: New file.
12607
12608 2019-03-20 Tom Tromey <tromey@adacore.com>
12609
12610 * infrun.c (handle_inferior_event): Rename from
12611 handle_inferior_event_1. Create a scoped_value_mark.
12612 (handle_inferior_event): Remove.
12613
12614 2019-03-19 Tom Tromey <tromey@adacore.com>
12615
12616 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12617 * infrun.h (print_stop_event): Add "displays" parameter.
12618 * infrun.c (print_stop_event): Add "displays" parameter.
12619
12620 2019-03-19 Pedro Alves <palves@redhat.com>
12621
12622 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12623 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12624 to -1. Fix TABs vs spaces.
12625 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12626 * tui/tui-out.h (tui_ui_out) Add intro comments.
12627 <m_line, m_start_of_line>: In-class initialize, and add describing
12628 comment.
12629
12630 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12631
12632 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12633 variable names.
12634 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12635
12636 2019-03-18 Pedro Alves <palves@redhat.com>
12637 Eli Zaretskii <eliz@gnu.org>
12638
12639 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12640 m_line and m_start_of_line.
12641
12642 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12643
12644 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12645 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12646 it returns a newline. This fixes a regression in TU mode, whereby
12647 the next line is output on the same screen line as the user input.
12648
12649 2019-03-18 Tom Tromey <tromey@adacore.com>
12650
12651 * minsyms.c (minimal_symbol_reader::install): Remove call to
12652 obstack_blank.
12653
12654 2019-03-18 Pedro Alves <palves@redhat.com>
12655
12656 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12657 New globals.
12658 (apply_style): New, factored out from ...
12659 (apply_ansi_escape): ... this. Handle reverse video mode.
12660 (tui_set_reverse_mode): New function.
12661 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12662 * tui/tui-winsource.c (tui_show_source_line): Use
12663 tui_set_reverse_mode instead of setting A_STANDOUT.
12664 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12665 New setter methods.
12666
12667 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12668
12669 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12670 Handle tabs.
12671
12672 2019-03-18 Tom Tromey <tromey@adacore.com>
12673
12674 * ada-lang.c (empty_array): Add "high" parameter.
12675 (ada_evaluate_subexp): Update.
12676
12677 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12678
12679 * unittests/string_view-selftests.c: Define
12680 _initialize_string_view_selftests unconditionally.
12681
12682 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12683
12684 PR gdb/24350
12685 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12686
12687 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12688
12689 PR gdb/24351
12690 * windows-nat.c (display_selector): Fix format specifiers.
12691
12692 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12693
12694 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12695 tui_refill_source_window instead of tui_refresh_win, to update the
12696 current execution line. This fixes redisplay of the current line
12697 when stepping through the code with "next" or "step".
12698
12699 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12700
12701 * source-cache.c (source_cache::get_source_lines): Call
12702 find_source_lines to initialize s->nlines. This fixes vertical
12703 scrolling of TUI source window when the DOWN arrow is pressed.
12704
12705 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12706
12707 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12708 linux-thread-db.c (_initialize_thread_db): Likewise.
12709
12710 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12711
12712 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12713 wclrtoeol in tui_show_source_line". This reverts changes made in
12714 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12715
12716 2019-03-15 Tom Tromey <tom@tromey.com>
12717
12718 * symtab.h (struct minimal_symbol): Derive from
12719 general_symbol_info.
12720 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12721 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12722 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12723 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12724 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12725 (MSYMBOL_SEARCH_NAME): Update.
12726 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12727 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12728 * minsyms.c (minimal_symbol_reader::record_full): Update.
12729
12730 2019-03-15 Tom Tromey <tom@tromey.com>
12731
12732 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12733
12734 2019-03-15 Tom Tromey <tom@tromey.com>
12735
12736 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12737 unique_xmalloc_ptr.
12738 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12739 Update.
12740 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12741 (build_minimal_symbol_hash_tables)
12742 (minimal_symbol_reader::install): Update.
12743
12744 2019-03-15 Tom Tromey <tom@tromey.com>
12745
12746 * symtab.c (create_demangled_names_hash): Update.
12747 (symbol_set_names): Update.
12748 * objfiles.h (struct objfile_per_bfd_storage)
12749 <demangled_names_hash>: Now an htab_up.
12750 * objfiles.c (objfile_per_bfd_storage): Simplify.
12751
12752 2019-03-15 Tom Tromey <tom@tromey.com>
12753
12754 * objfiles.h (struct objfile_per_bfd_storage): Declare
12755 destructor.
12756 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12757 New.
12758 (get_objfile_bfd_data): Use new. Don't initialize
12759 language_of_main.
12760 (free_objfile_per_bfd_storage): Remove.
12761 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12762
12763 2019-03-15 Tom Tromey <tom@tromey.com>
12764
12765 * symfile.c (reread_symbols): Update.
12766 * objfiles.c (objfile::objfile): Update.
12767 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12768 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12769 comment.
12770 (minimal_symbol_reader::install): Update.
12771 (terminate_minimal_symbol_table): Remove.
12772 * jit.c (jit_object_close_impl): Update.
12773
12774 2019-03-15 Tom Tromey <tom@tromey.com>
12775
12776 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12777 initializations.
12778
12779 2019-03-15 Tom Tromey <tom@tromey.com>
12780
12781 * objfiles.h (struct objfile_per_bfd_storage)
12782 <demangled_hash_languages>: Now a bitset.
12783 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12784 (lookup_minimal_symbol): Update.
12785
12786 2019-03-15 Tom Tromey <tom@tromey.com>
12787
12788 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12789 Don't return the symbol.
12790 * coffread.c (record_minimal_symbol): Use record_full.
12791
12792 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12793
12794 The MS-Windows port of ncurses fails to switch to a color pair if
12795 one or both of the colors are the implicit default colors. This
12796 change records the default colors when TUI is initialized, and
12797 then specifies them explicitly when a color pair uses the default
12798 colors. This allows color styling in TUI mode on MS-Windows.
12799
12800 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12801 ncurses_norm_attr.
12802 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12803 colors in ncurses_norm_attr.
12804 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12805 "none", replace it with the default color recorded in
12806 ncurses_norm_attr.
12807
12808 2019-03-14 Tom Tromey <tromey@adacore.com>
12809
12810 * source-cache.h (class source_cache) <get_source_lines>: Return
12811 std::string.
12812 * source-cache.c (source_cache::extract_lines): Handle case where
12813 first_pos==npos. Return std::string.
12814 (source_cache::get_source_lines): Update.
12815
12816 2019-03-14 Tom Tromey <tromey@adacore.com>
12817
12818 * NEWS: Add item for "style sources" commands.
12819 * source-cache.c (source_cache::get_source_lines): Check
12820 source_styling.
12821 * cli/cli-style.c (source_styling): New global.
12822 (_initialize_cli_style): Add "style sources" commands.
12823 (show_style_sources): New function.
12824 * cli/cli-style.h (source_styling): Declare.
12825
12826 2019-03-14 Pedro Alves <palves@redhat.com>
12827 Tom Tromey <tromey@adacore.com>
12828
12829 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12830 * tui/tui-winsource.c (tui_refill_source_window): New function,
12831 from...
12832 (tui_horizontal_source_scroll): ... here. Move some logic.
12833 * cli/cli-style.c (set_style_enabled): Notify new observable.
12834 * tui/tui-hooks.c (tui_redisplay_source): New function.
12835 (tui_attach_detach_observers): Attach or detach
12836 tui_redisplay_source.
12837 * observable.h (source_styling_changed): New observable.
12838 * observable.c: Define source_styling_changed observable.
12839
12840 2019-03-13 Tom Tromey <tromey@adacore.com>
12841
12842 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12843 (i386_gnu_nat_target::store_registers): Update.
12844 * target-debug.h (target_debug_print_std_string): New macro.
12845 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12846 * windows-tdep.c (display_one_tib): Update.
12847 * tui/tui-stack.c (tui_make_status_line): Update.
12848 * top.c (print_inferior_quit_action): Update.
12849 * thread.c (thr_try_catch_cmd): Update.
12850 (add_thread_with_info): Update.
12851 (thread_target_id_str): Update.
12852 (thr_try_catch_cmd): Update.
12853 (thread_command): Update.
12854 (thread_find_command): Update.
12855 * record-btrace.c (record_btrace_target::info_record)
12856 (record_btrace_resume_thread, record_btrace_target::resume)
12857 (record_btrace_cancel_resume, record_btrace_step_thread)
12858 (record_btrace_target::wait, record_btrace_target::wait)
12859 (record_btrace_target::wait, record_btrace_target::stop): Update.
12860 * progspace.c (print_program_space): Update.
12861 * process-stratum-target.c
12862 (process_stratum_target::thread_address_space): Update.
12863 * linux-fork.c (linux_fork_mourn_inferior)
12864 (detach_checkpoint_command, info_checkpoints_command)
12865 (linux_fork_context): Update.
12866 (linux_fork_detach): Update.
12867 (class scoped_switch_fork_info): Update.
12868 (delete_checkpoint_command): Update.
12869 * infrun.c (follow_fork_inferior): Update.
12870 (follow_fork_inferior): Update.
12871 (proceed_after_vfork_done): Update.
12872 (handle_vfork_child_exec_or_exit): Update.
12873 (follow_exec): Update.
12874 (displaced_step_prepare_throw): Update.
12875 (displaced_step_restore): Update.
12876 (start_step_over): Update.
12877 (resume_1): Update.
12878 (clear_proceed_status_thread): Update.
12879 (proceed): Update.
12880 (print_target_wait_results): Update.
12881 (do_target_wait): Update.
12882 (context_switch): Update.
12883 (stop_all_threads): Update.
12884 (restart_threads): Update.
12885 (finish_step_over): Update.
12886 (handle_signal_stop): Update.
12887 (switch_back_to_stepped_thread): Update.
12888 (keep_going_pass_signal): Update.
12889 (print_exited_reason): Update.
12890 (normal_stop): Update.
12891 * inferior.c (inferior_pid_to_str): Change return type.
12892 (print_selected_inferior): Update.
12893 (add_inferior): Update.
12894 (detach_inferior): Update.
12895 * dummy-frame.c (fprint_dummy_frames): Update.
12896 * dcache.c (dcache_info_1): Update.
12897 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12898 (btrace_fetch, btrace_clear): Update.
12899 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12900 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12901 type.
12902 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12903 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12904 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12905 * gdbarch.c, gdbarch.h: Rebuild.
12906 * gdbarch.sh (core_pid_to_str): Change return type.
12907 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12908 return type.
12909 (windows_nat_target::pid_to_str): Change return type.
12910 (windows_delete_thread): Update.
12911 (windows_nat_target::attach): Update.
12912 (windows_nat_target::files_info): Update.
12913 * target-delegates.c: Rebuild.
12914 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12915 return type.
12916 (sol_thread_target::pid_to_str): Change return type.
12917 * remote.c (class remote_target) <pid_to_str>: Change return
12918 type.
12919 (remote_target::pid_to_str): Change return type.
12920 (extended_remote_target::attach, remote_target::remote_stop_ns)
12921 (remote_target::remote_notif_remove_queued_reply)
12922 (remote_target::push_stop_reply, remote_target::disable_btrace):
12923 Update.
12924 (extended_remote_target::attach): Update.
12925 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12926 type.
12927 (gdbsim_target::pid_to_str): Change return type.
12928 * ravenscar-thread.c (struct ravenscar_thread_target)
12929 <pid_to_str>: Change return type.
12930 (ravenscar_thread_target::pid_to_str): Change return type.
12931 * procfs.c (class procfs_target) <pid_to_str>: Change return
12932 type.
12933 (procfs_target::pid_to_str): Change return type.
12934 (procfs_target::attach): Update.
12935 (procfs_target::detach): Update.
12936 (procfs_target::fetch_registers): Update.
12937 (procfs_target::store_registers): Update.
12938 (procfs_target::wait): Update.
12939 (procfs_target::files_info): Update.
12940 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12941 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12942 return type.
12943 (nto_procfs_target::pid_to_str): Change return type.
12944 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12945 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12946 return type.
12947 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12948 (exit_lwp): Update.
12949 (attach_proc_task_lwp_callback, get_detach_signal)
12950 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12951 (linux_nat_target::resume, wait_lwp, stop_callback)
12952 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12953 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12954 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12955 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12956 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12957 type.
12958 (inf_ptrace_target::attach): Update.
12959 (inf_ptrace_target::files_info): Update.
12960 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12961 type.
12962 (go32_nat_target::pid_to_str): Change return type.
12963 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12964 (gnu_nat_target::wait): Update.
12965 (gnu_nat_target::wait): Update.
12966 (gnu_nat_target::resume): Update.
12967 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12968 (fbsd_nat_target::wait): Update.
12969 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12970 type.
12971 (darwin_nat_target::attach): Update.
12972 * corelow.c (class core_target) <pid_to_str>: Change return type.
12973 (core_target::pid_to_str): Change return type.
12974 * target.c (normal_pid_to_str): Change return type.
12975 (default_pid_to_str): Likewise.
12976 (target_pid_to_str): Change return type.
12977 (target_translate_tls_address): Update.
12978 (target_announce_detach): Update.
12979 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12980 return type.
12981 (bsd_uthread_target::pid_to_str): Change return type.
12982 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12983 type.
12984 (bsd_kvm_target::pid_to_str): Change return type.
12985 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12986 return type.
12987 (aix_thread_target::pid_to_str): Change return type.
12988 * target.h (struct target_ops) <pid_to_str>: Change return type.
12989 (target_pid_to_str, normal_pid_to_str): Likewise.
12990 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12991 type.
12992 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12993 type.
12994 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12995 return type.
12996 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12997 type.
12998 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12999 type.
13000 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13001 return type.
13002
13003 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13004
13005 * NEWS: Mention that the new default MI version is 3. Mention
13006 changes to the output of commands and events that deal with
13007 multi-location breakpoints.
13008 * breakpoint.c: Include "mi/mi-out.h".
13009 (print_one_breakpoint): Change output syntax if using MI version
13010 >= 3.
13011 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13012 New.
13013 (mi_multi_location_breakpoint_output_fixed): New.
13014 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13015 (mi_cmd_fix_multi_location_breakpoint_output): New.
13016 (mi_multi_location_breakpoint_output_fixed): New.
13017 * mi/mi-cmds.c (mi_cmds): Register command
13018 -fix-multi-location-breakpoint-output.
13019 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13020 interpreter "mi".
13021
13022 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13023
13024 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13025 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13026 instantiate mi_ui_out based on interpreter name.
13027 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13028 * mi/mi-main.c (mi_load_progress): Likewise.
13029
13030 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13031
13032 * NEWS: Combine separate "New targets" sections for 8.3.
13033
13034 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13035
13036 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13037 (ppcfbsd_init_abi): Install gdbarch
13038 "fetch_tls_load_module_address" and "get_thread_local_address"
13039 methods.
13040
13041 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13042
13043 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13044 (riscv_fbsd_init_abi): Install gdbarch
13045 "fetch_tls_load_module_address" and "get_thread_local_address"
13046 methods.
13047
13048 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13049
13050 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13051 (i386fbsd_init_abi): Install gdbarch
13052 "fetch_tls_load_module_address" and "get_thread_local_address"
13053 methods.
13054
13055 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13056
13057 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13058 (amd64fbsd_init_abi): Install gdbarch
13059 "fetch_tls_load_module_address" and "get_thread_local_address"
13060 methods.
13061
13062 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13063
13064 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13065 (struct fbsd_pspace_data): New type.
13066 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13067 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13068 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13069 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13070 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13071
13072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13073
13074 * gdbtypes.c (lookup_struct_elt): New function.
13075 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13076 * gdbtypes.h (struct struct_elt): New type.
13077 (lookup_struct_elt): New prototype.
13078
13079 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13080
13081 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13082 remove disabled code block.
13083
13084 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13085
13086 * gdbarch.sh (get_thread_local_address): New method.
13087 * gdbarch.h, gdbarch.c: Regenerate.
13088 * target.c (target_translate_tls_address): Use
13089 gdbarch_get_thread_local_address if present instead of
13090 target::get_thread_local_address.
13091
13092 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13093
13094 * target.h (target::get_thread_local_address): Update comment.
13095
13096 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13097
13098 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13099 objfile->separate_debug_objfile_backlink if not NULL.
13100
13101 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13102
13103 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13104 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13105 (amd64bsd_store_inferior_registers): Likewise.
13106 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13107 Enable segment base registers.
13108 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13109 PT_GETFSBASE and PT_GETGSBASE.
13110 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13111 PT_SETGSBASE.
13112 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13113 segment base registers.
13114 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13115
13116 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13117
13118 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13119 Update calls to i386_target_description to add 'segments'
13120 parameter.
13121 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13122 add segment base registers.
13123 * arch/i386.c (i386_create_target_description): Add 'segments'
13124 parameter to enable segment base registers.
13125 * arch/i386.h (i386_create_target_description): Likewise.
13126 * features/i386/32bit-segments.xml: New file.
13127 * features/i386/32bit-segments.c: Generate.
13128 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13129 call to i386_target_description to add 'segments' parameter.
13130 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13131 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13132 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13133 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13134 if feature is present.
13135 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13136 Add 'segments' parameter to call to i386_target_description.
13137 (i386_target_description): Add 'segments' parameter to enable
13138 segment base registers.
13139 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13140 to call to i386_target_description.
13141 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13142 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13143 Define I386_NUM_REGS.
13144 (i386_target_description): Add 'segments' parameter to enable
13145 segment base registers.
13146
13147 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13148
13149 PR/24325
13150 * source-cache.c: #undef open and close, to avoid unresolved
13151 externals during linking.
13152
13153 2019-03-12 Tom Tromey <tromey@adacore.com>
13154
13155 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13156 const. Add initializers.
13157 (_initialize_remote): Don't initialize ptid globals.
13158
13159 2019-03-12 Pedro Alves <palves@redhat.com>
13160
13161 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13162
13163 2019-03-12 Pedro Alves <palves@redhat.com>
13164
13165 * cp-name-parser.y (main): Remove unused 'len' variable.
13166
13167 2019-03-12 Tom Tromey <tromey@adacore.com>
13168
13169 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13170 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13171
13172 2019-03-12 Tom Tromey <tromey@adacore.com>
13173
13174 * linux-nat.c (iterate_over_lwps): Update.
13175 (stop_callback): Remove parameter.
13176 (stop_wait_callback, detach_callback, resume_set_callback)
13177 (select_singlestep_lwp_callback, set_ignore_sigint)
13178 (status_callback, resumed_callback, resume_clear_callback)
13179 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13180 data parameter.
13181 (linux_nat_target::detach, linux_nat_target::resume)
13182 (linux_stop_and_wait_all_lwps, select_event_lwp)
13183 (linux_nat_filter_event, linux_nat_wait_1)
13184 (linux_nat_target::kill, linux_nat_target::stop)
13185 (linux_nat_target::stop): Update.
13186 (linux_nat_resume_callback): Change type.
13187 (resume_stopped_resumed_lwps, count_events_callback)
13188 (select_event_lwp_callback): Likewise.
13189 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13190 * arm-linux-nat.c (struct update_registers_data): Remove.
13191 (update_registers_callback): Change type.
13192 (arm_linux_insert_hw_breakpoint1): Update.
13193 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13194 parameter.
13195 (x86_linux_dr_set_addr): Update.
13196 (x86_linux_dr_set_control): Update.
13197 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13198 (iterate_over_lwps): Use gdb::function_view.
13199 * nat/aarch64-linux-hw-point.c (struct
13200 aarch64_dr_update_callback_param): Remove.
13201 (debug_reg_change_callback): Change type.
13202 (aarch64_notify_debug_reg_change): Update.
13203 * s390-linux-nat.c (s390_refresh_per_info): Update.
13204
13205 2019-03-11 Tom Tromey <tromey@adacore.com>
13206
13207 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13208 redundant assignment to "this_cu".
13209
13210 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13211
13212 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13213
13214 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13215
13216 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13217 from...
13218 (rank_one_type): ... this.
13219
13220 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13221
13222 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13223 from...
13224 (rank_one_type): ... this.
13225
13226 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13227
13228 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13229 from...
13230 (rank_one_type): ... this.
13231
13232 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13233
13234 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13235 from...
13236 (rank_one_type): ... this.
13237
13238 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13239
13240 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13241 from...
13242 (rank_one_type): ... this.
13243
13244 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13245
13246 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13247 from...
13248 (rank_one_type): ... this.
13249
13250 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13251
13252 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13253 from...
13254 (rank_one_type): ... this.
13255
13256 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13257
13258 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13259 from...
13260 (rank_one_type): ... this.
13261
13262 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13263
13264 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13265 from...
13266 (rank_one_type): ... this.
13267
13268 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13269
13270 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13271 from...
13272 (rank_one_type): ... this.
13273
13274 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13275
13276 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13277 from...
13278 (rank_one_type): ... this.
13279
13280 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13281
13282 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13283 from...
13284 (rank_one_type): ... this.
13285
13286 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13287
13288 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13289 inferior-events' shows the example events.
13290
13291 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13292
13293 Support styling on native MS-Windows console
13294
13295 PR/24315
13296 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13297 on MS-Windows if $TERM is not defined.
13298
13299 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13300
13301 * posix-hdep.c (gdb_console_fputs):
13302 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13303 functions.
13304 * ui-file.h (gdb_console_fputs): Add prototype.
13305
13306 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13307 back to fputs only if the former returns zero.
13308
13309 2019-03-07 Tom Tromey <tom@tromey.com>
13310
13311 * symmisc.c (print_symbol_bcache_statistics): Update.
13312 (print_objfile_statistics): Update.
13313 * symfile.c (allocate_symtab): Update.
13314 * stabsread.c: Don't include bcache.h.
13315 * psymtab.h (struct psymbol_bcache): Don't declare.
13316 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13317 (psymbol_bcache_init, psymbol_bcache_free)
13318 (psymbol_bcache_get_bcache): Don't declare.
13319 * psymtab.c (struct psymbol_bcache): Remove.
13320 (psymtab_storage::psymtab_storage): Update.
13321 (psymtab_storage::~psymtab_storage): Update.
13322 (psymbol_bcache_init, psymbol_bcache_free)
13323 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13324 (add_psymbol_to_bcache): Update.
13325 (allocate_psymtab): Update.
13326 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13327 macro_cache>: No longer pointers.
13328 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13329 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13330 * macrotab.c (macro_bcache): Update.
13331 * macroexp.c: Don't include bcache.h.
13332 * gdbtypes.c (check_types_worklist): Update.
13333 (types_deeply_equal): Remove TRY/CATCH. Update.
13334 * elfread.c (elf_symtab_read): Update.
13335 * dwarf2read.c: Don't include bcache.h.
13336 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13337 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13338 (print_bcache_statistics, bcache_memory_used): Don't declare.
13339 (struct bcache): Move from bcache.c. Add constructor, destructor,
13340 methods. Rename all data members.
13341 * bcache.c (struct bcache): Move to bcache.h.
13342 (bcache::expand_hash_table): Rename from expand_hash_table.
13343 (bcache): Remove.
13344 (bcache::insert): Rename from bcache_full.
13345 (bcache::compare): Rename from bcache_compare.
13346 (bcache_xmalloc): Remove.
13347 (bcache::~bcache): Rename from bcache_xfree.
13348 (bcache::print_statistics): Rename from print_bcache_statistics.
13349 (bcache::memory_used): Rename from bcache_memory_used.
13350
13351 2019-03-07 Pedro Alves <palves@redhat.com>
13352
13353 * infrun.c (normal_stop): Also check for
13354 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13355
13356 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13357
13358 * f-lang.c (value_from_host_double): Moved to...
13359 * value.c (value_from_host_double): ...here.
13360 * value.h (value_from_host_double): Declare.
13361 * guile/scm-math.c (vlscm_convert_typed_number): Use
13362 value_from_host_double.
13363 (vlscm_convert_number): Likewise.
13364 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13365 * python/py-value.c (convert_value_from_python): Likewise.
13366
13367 2019-03-06 Tom Tromey <tom@tromey.com>
13368
13369 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13370
13371 2019-03-06 Tom Tromey <tom@tromey.com>
13372
13373 * utils.h (free_current_contents): Don't declare.
13374 * utils.c (free_current_contents): Remove.
13375
13376 2019-03-06 Tom Tromey <tom@tromey.com>
13377
13378 * top.c (quit_force): Update.
13379 * main.c (captured_command_loop): Update.
13380 * common/new-op.c (operator new): Update.
13381 * common/common-exceptions.c (struct catcher)
13382 <save_cleanup_chain>: Remove member.
13383 (exceptions_state_mc_init): Update.
13384 (exception_try_scope_entry): Return nullptr.
13385 (exception_try_scope_exit, exception_rethrow)
13386 (throw_exception_sjlj, throw_exception_cxx): Update.
13387 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13388 (all_cleanups, do_cleanups, discard_cleanups)
13389 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13390 (restore_cleanups, restore_final_cleanups): Don't declare.
13391 (do_final_cleanups): Remove parameter.
13392 * common/cleanups.c (cleanup_chain, make_cleanup)
13393 (make_cleanup_dtor, all_cleanups, do_cleanups)
13394 (discard_my_cleanups, discard_cleanups)
13395 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13396 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13397 (null_cleanup): Remove.
13398 (do_final_cleanups): Remove parameter.
13399
13400 2019-03-06 Tom Tromey <tom@tromey.com>
13401
13402 * remote.c (remote_target::remote_parse_stop_reply): Use
13403 unique_xmalloc_ptr.
13404
13405 2019-03-06 Tom Tromey <tom@tromey.com>
13406
13407 * stabsread.c (struct stabs_field_info): Rename from field_info.
13408 <list, fnlist>: Add initializers.
13409 <obstack>: New member.
13410 (read_member_functions, read_struct_fields, read_baseclasses):
13411 Allocate on obstack. Don't use cleanups.
13412 (read_one_struct_field, read_member_functions, read_struct_fields)
13413 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13414 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13415 (read_struct_type): Update.
13416
13417 2019-03-06 Tom Tromey <tom@tromey.com>
13418
13419 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13420 * common/filestuff.h (make_cleanup_close): Don't declare.
13421 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13422 Remove.
13423
13424 2019-03-06 Tom Tromey <tom@tromey.com>
13425
13426 * solib-aix.c: Use make_scope_exit.
13427
13428 2019-03-06 Tom Tromey <tom@tromey.com>
13429
13430 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13431 Use make_scope_exit.
13432
13433 2019-03-06 Tom Tromey <tom@tromey.com>
13434
13435 * solib-svr4.c (disable_probes_interface): Remove parameter.
13436 (svr4_handle_solib_event): Use make_scope_exit.
13437
13438 2019-03-06 Tom Tromey <tom@tromey.com>
13439
13440 * remote.c (struct stop_reply_deleter): Remove.
13441 (stop_reply_up): Update.
13442 (struct stop_reply): Derive from notif_event. Don't typedef.
13443 <regcache>: Now a std::vector.
13444 (stop_reply_xfree): Remove.
13445 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13446 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13447 (remote_target::discard_pending_stop_replies): Use delete.
13448 (remote_target::remote_parse_stop_reply): Update.
13449 (remote_target::process_stop_reply): Update.
13450 * remote-notif.h (struct notif_event): Add virtual destructor.
13451 Remove "dtr" member.
13452 (struct notif_client) <alloc_event>: Return a unique_ptr.
13453 (notif_event_xfree): Don't declare.
13454 (notif_event_up): New typedef.
13455 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13456 (notif_event_xfree, do_notif_event_xfree): Remove.
13457 (remote_notif_state_xfree): Update.
13458
13459 2019-03-06 Tom Tromey <tom@tromey.com>
13460
13461 * infrun.c (displaced_step_clear_cleanup): Now a
13462 forward_scope_exit type.
13463 (displaced_step_prepare_throw): Update.
13464 (displaced_step_fixup): Update.
13465
13466 2019-03-06 Tom Tromey <tom@tromey.com>
13467
13468 * inferior.h (class inferior): Update comment.
13469 * gdbthread.h (class thread_info): Update comment.
13470
13471 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13472 Tom Tromey <tom@tromey.com>
13473
13474 * stabsread.h (struct stab_section_list): Remove.
13475 (coffstab_build_psymtabs): Update.
13476 * dbxread.c (symbuf_sections): Now a std::vector.
13477 (sect_idx): New global.
13478 (fill_symbuf): Update.
13479 (coffstab_build_psymtabs): Change type of stabsects parameter.
13480 Update.
13481 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13482 std::vector.
13483 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13484 (coff_locate_sections): Update.
13485 (coff_symfile_read): Remove cleanups. Update.
13486 (init_stringtab): Add storage parameter.
13487 (free_stringtab, free_stringtab_cleanup): Remove.
13488 (init_lineno): Add storage parameter.
13489 (free_linetab, free_linetab_cleanup): Remove.
13490
13491 2019-03-06 Pedro Alves <palves@redhat.com>
13492
13493 * linux-fork.c (fork_info::clobber_regs): Delete.
13494 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13495 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13496 comment. Adjust.
13497 (scoped_switch_fork_info::scoped_switch_fork_info)
13498 (checkpoint_command, linux_fork_context): Adjust
13499 fork_save_infrun_state calls.
13500
13501 2019-03-06 Pedro Alves <palves@redhat.com>
13502
13503 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13504 (inf_has_multiple_threads): Return 'bool' and rewrite using
13505 inferior_info::threads().
13506
13507 2019-03-06 Pedro Alves <palves@redhat.com>
13508
13509 * linux-fork.c: Include <list>.
13510 (fork_list): Now a std::list instance.
13511 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13512 (forks_exist_p, find_last_fork): Adjust.
13513 (new_fork): Delete.
13514 (one_fork_p): New.
13515 (add_fork): Adjust.
13516 (free_fork): Delete, folded into fork_info::~fork_info().
13517 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13518 Adjust.
13519 (init_fork_list): Delete.
13520 (linux_fork_killall, linux_fork_mourn_inferior)
13521 (linux_fork_detach, info_checkpoints_command): Adjust.
13522 (_initialize_linux_fork): No longer call init_fork_list.
13523
13524 2019-03-06 Pedro Alves <palves@redhat.com>
13525
13526 * linux-fork.c (new_fork): New, split out of ...
13527 (add_fork): ... this. Return void. Move "first fork" special
13528 case from here, to ...
13529 (checkpoint_command): ... here.
13530 * linux-linux.h (add_fork): Return void.
13531
13532 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13533
13534 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13535
13536 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13537 Chris January <chris.january@arm.com>
13538 David Lecomber <david.lecomber@arm.com>
13539
13540 * f-exp.y: New token, UNOP_INTRINSIC.
13541 (exp): New pattern using UNOP_INTRINSIC token.
13542 (f77_keywords): Add 'abs' keyword.
13543 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13544 (value_from_host_double): New function.
13545 (evaluate_subexp_f): Support UNOP_ABS.
13546
13547 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13550 types.
13551
13552 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13553
13554 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13555 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13556 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13557
13558 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13559
13560 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13561
13562 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13563 Chris January <chris.january@arm.com>
13564
13565 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13566 * f-exp.y: Define 'KIND' token.
13567 (exp): New pattern for KIND expressions.
13568 (ptype): Handle types with a kind extension.
13569 (direct_abs_decl): Extend to spot kind extensions.
13570 (f77_keywords): Add 'kind' to the list.
13571 (push_kind_type): New function.
13572 (convert_to_kind_type): New function.
13573 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13574 * parse.c (operator_length_standard): Likewise.
13575 * parser-defs.h (enum type_pieces): Add tp_kind.
13576 * std-operator.def: Add UNOP_KIND.
13577
13578 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13579
13580 * f-exp.y (f_parse): Set yydebug.
13581
13582 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13583
13584 * f-lang.c (evaluate_subexp_f): New function.
13585 (exp_descriptor_f): New global.
13586 (f_language_defn): Use exp_descriptor_f instead of
13587 exp_descriptor_standard.
13588
13589 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13590
13591 * f-exp.y (struct token): Add comments.
13592 (dot_ops): Remove uppercase versions and the end marker.
13593 (f77_keywords): Likewise.
13594 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13595 entries in the dot_ops array are case insensitive, and use
13596 strncasecmp to compare strings. Also some whitespace cleanup in
13597 this area. Similar for the f77_keywords array, except entries in
13598 this list might be case sensitive.
13599
13600 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13601
13602 * f-exp.y (struct f77_boolean_val): Add comments.
13603 (boolean_values): Remove uppercase versions, and end marker.
13604 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13605 and use strncasecmp to achieve case insensitivity. Additionally,
13606 perform whitespace cleanup around this code.
13607
13608 2019-03-06 Tom Tromey <tromey@adacore.com>
13609
13610 * remote-sim.c (gdbsim_target_open): Use result of
13611 gdb_argv::release.
13612
13613 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13614 Dirk Schubert <dirk.schubert@arm.com>
13615 Chris January <chris.january@arm.com>
13616
13617 * eval.c (evaluate_subexp_standard): Call Fortran argument
13618 wrapping logic.
13619 * f-lang.c (struct value): A value which can be passed into a
13620 Fortran function call.
13621 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13622 where appropriate.
13623 (struct type): Value ready for a Fortran function call.
13624 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13625 is needed.
13626 * f-lang.h (fortran_argument_convert): Declaration.
13627 (fortran_preserve_arg_pointer): Declaration.
13628 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13629
13630 2019-03-05 Tom Tromey <tromey@adacore.com>
13631
13632 * python/py-prettyprint.c (print_string_repr): Remove #if.
13633 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13634
13635 2019-03-05 Tom Tromey <tromey@adacore.com>
13636
13637 * target.c (the_dummy_target): Move later. Change type to
13638 "dummy_target".
13639 (initialize_targets): Don't initialize the_dummy_target.
13640
13641 2019-03-05 Tom Tromey <tromey@adacore.com>
13642
13643 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13644 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13645
13646 2019-03-05 Tom Tromey <tromey@adacore.com>
13647
13648 * windows-nat.c (windows_nat_target::attach)
13649 (windows_nat_target::detach): Don't call gdb_flush.
13650 * valprint.c (generic_val_print, val_print, val_print_string):
13651 Don't call gdb_flush.
13652 * utils.c (defaulted_query): Don't call gdb_flush.
13653 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13654 * target.c (target_announce_detach): Don't call gdb_flush.
13655 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13656 * remote.c (extended_remote_target::attach): Don't call
13657 gdb_flush.
13658 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13659 * printcmd.c (do_examine): Don't call gdb_flush.
13660 (info_display_command): Don't call gdb_flush.
13661 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13662 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13663 * memattr.c (info_mem_command): Don't call gdb_flush.
13664 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13665 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13666 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13667 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13668 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13669 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13670 (gnu_nat_target::detach): Don't call gdb_flush.
13671 * f-valprint.c (f_val_print): Don't call gdb_flush.
13672 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13673 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13674 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13675 gdb_flush.
13676 * c-valprint.c (c_val_print): Don't call gdb_flush.
13677 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13678
13679 2019-03-05 Tom Tromey <tromey@adacore.com>
13680
13681 * varobj.c (update_dynamic_varobj_children): Update.
13682 (install_default_visualizer): Use reset, not release.
13683 * value.c (set_internalvar): Update.
13684 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13685 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13686 ATTRIBUTE_UNUSED_RESULT.
13687
13688 2019-03-05 Tom Tromey <tromey@adacore.com>
13689
13690 * remote.c (class scoped_remote_fd) <release>: Add
13691 ATTRIBUTE_UNUSED_RESULT.
13692
13693 2019-03-05 Tom Tromey <tromey@adacore.com>
13694
13695 * macroexp.c (struct macro_buffer) <release>: Add
13696 ATTRIBUTE_UNUSED_RESULT.
13697
13698 2019-03-05 Tom Tromey <tromey@adacore.com>
13699
13700 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13701 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13702 ATTRIBUTE_UNUSED_RESULT.
13703
13704 2019-03-05 Tom Tromey <tromey@adacore.com>
13705
13706 * common/scoped_fd.h (class scoped_fd) <release>: Add
13707 ATTRIBUTE_UNUSED_RESULT.
13708
13709 2019-03-05 Tom Tromey <tromey@adacore.com>
13710
13711 * parser-defs.h (struct parser_state) <release>: Add
13712 ATTRIBUTE_UNUSED_RESULT.
13713
13714 2019-03-05 Tom Tromey <tromey@adacore.com>
13715
13716 * utils.h (class gdb_argv) <release>: Add
13717 ATTRIBUTE_UNUSED_RESULT.
13718 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13719
13720 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13721
13722 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13723 for-loop range, to avoid compiler warnings.
13724
13725 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13726 avoid compiler warnings about unused variables.
13727
13728 * NEWS: Mention end of support for native debugging on MS-Windows
13729 before XP.
13730
13731 PR gdb/24292
13732 * common/netstuff.c:
13733 * gdbserver/gdbreplay.c
13734 * gdbserver/remote-utils.c:
13735 * ser-tcp.c:
13736 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13737 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13738 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13739 'getaddrinfo' and 'freeaddrinfo' were not available before
13740 Windows XP, and mingw.org's MinGW headers by default define
13741 _WIN32_WINNT to 0x500.
13742
13743 2019-03-01 Gary Benson <gbenson@redhat.com>
13744
13745 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13746
13747 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13748 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13749
13750 PR gdb/8527
13751 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13752 set_sigint_trap, clear_sigint_trap.
13753
13754 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13755
13756 * target.c (target_detach): Clear the regcache and the
13757 frame cache.
13758
13759 2019-02-27 Pedro Alves <palves@redhat.com>
13760
13761 * utils.c (set_screen_size): When we cap the height/width sizes,
13762 tweak the corresponding command variable to show "unlimited":
13763
13764 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13765 Pedro Alves <palves@redhat.com>
13766
13767 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13768 before calling rl_set_screen_size.
13769
13770 2019-02-27 Tom Tromey <tromey@adacore.com>
13771
13772 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13773 define.
13774 * python/py-value.c: Remove Python 2.4 workaround.
13775 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13776 workaround.
13777 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13778 Python 2.4 workaround.
13779 * python/python-internal.h: Remove Python 2.4 comment.
13780 (Py_ssize_t): Don't define.
13781 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13782 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13783 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13784 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13785 * python/python.c (do_start_initialization): Remove Python 2.4
13786 workaround.
13787 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13788 (print_children): Remove Python 2.4 workaround.
13789 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13790 workaround.
13791 (CHARBUFFERPROC_NAME): Remove.
13792 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13793 Python 2.4 workaround.
13794
13795 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13796
13797 * NEWS: Note minimum Python version.
13798
13799 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13800
13801 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13802 code from these functions. Remove corresponding ifdefs. Use
13803 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13804 Remove gotos and target of gotos.
13805 (infpy_search_memory): Likewise.
13806
13807 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13808
13809 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13810 (hppa_gdbarch_init): Don't register deleted functions with
13811 gdbarch.
13812
13813 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13814
13815 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13816 (h8300_unwind_sp): Delete.
13817 (h8300_dummy_id): Delete.
13818 (h8300_gdbarch_init): Don't register deleted functions with
13819 gdbarch.
13820
13821 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13822
13823 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13824 (ft32_unwind_pc): Delete.
13825 (ft32_unwind_sp): Delete.
13826 (ft32_gdbarch_init): Don't register deleted functions with
13827 gdbarch.
13828
13829 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13830
13831 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13832 (frv_unwind_pc): Delete.
13833 (frv_unwind_sp): Delete.
13834 (frv_gdbarch_init): Don't register deleted functions with
13835 gdbarch.
13836
13837 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13838
13839 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13840 (riscv_unwind_pc): Delete.
13841 (riscv_unwind_sp): Delete.
13842 (riscv_gdbarch_init): Don't register deleted functions with
13843 gdbarch.
13844
13845 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13846
13847 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13848 (csky_unwind_pc): Delete.
13849 (csky_unwind_sp): Delete.
13850 (csky_gdbarch_init): Don't register deleted functions with
13851 gdbarch.
13852
13853 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13854
13855 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13856 (cris_unwind_pc): Delete.
13857 (cris_unwind_sp): Delete.
13858 (cris_gdbarch_init): Don't register deleted functions with
13859 gdbarch.
13860
13861 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13862
13863 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13864 (bfin_unwind_pc): Delete.
13865 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13866
13867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13868
13869 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13870 (arm_unwind_pc): Delete.
13871 (arm_unwind_sp): Delete.
13872 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13873
13874 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13875
13876 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13877 (arc_unwind_pc): Delete.
13878 (arc_unwind_sp): Delete.
13879 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13880
13881 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13882
13883 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13884 (alpha_unwind_pc): Delete.
13885 (alpha_gdbarch_init): Don't register deleted functions with
13886 gdbarch.
13887
13888 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13889
13890 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13891 (aarch64_unwind_pc): Delete.
13892 (aarch64_unwind_sp): Delete.
13893 (aarch64_gdbarch_init): Don't register deleted functions with
13894 gdbarch.
13895
13896 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13897
13898 * gdbtypes.c (type_align): Don't consider static members when
13899 computing structure alignment.
13900
13901 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13902
13903 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13904 return 0 for other types.
13905 * arch-utils.c (default_type_align): Always return 0.
13906 * gdbarch.h: Regenerate.
13907 * gdbarch.sh (type_align): Extend comment.
13908 * gdbtypes.c (type_align): Add additional comments, always call
13909 gdbarch_type_align before applying the default rules.
13910 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13911 generic code will then apply a suitable default.
13912 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13913 types, return 0 for other types.
13914
13915 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13916
13917 * NEWS: Create a new section for the next release branch.
13918 Rename the section of the current branch, now that it has
13919 been cut.
13920
13921 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13922
13923 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13924 * version.in: Bump version to 8.3.50.DATE-git.
13925
13926 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * aix-thread.c (ptid_cmp): Remove unused variable.
13929 (get_signaled_thread): Likewise.
13930 (store_regs_user_thread): Likewise.
13931 (store_regs_kernel_thread): Likewise.
13932 (fetch_regs_kernel_thread): Remove shadowed variable.
13933
13934 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13935
13936 * features/riscv/32bit-cpu.xml: Add register numbers.
13937 * features/riscv/32bit-fpu.c: Regenerate.
13938 * features/riscv/32bit-fpu.xml: Add register numbers.
13939 * features/riscv/64bit-cpu.xml: Add register numbers.
13940 * features/riscv/64bit-fpu.c: Regenerate.
13941 * features/riscv/64bit-fpu.xml: Add register numbers.
13942
13943 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13944
13945 * NEWS: Mention two argument form of gdb.Value constructor.
13946 * python/py-value.c (convert_buffer_and_type_to_value): New
13947 function.
13948 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13949 Add support for handling an optional second argument. Call
13950 convert_buffer_and_type_to_value as appropriate.
13951 * python/python-internal.h (Py_buffer_deleter): New struct.
13952 (Py_buffer_up): New typedef.
13953
13954 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13955
13956 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13957 instead of releasing ownership.
13958
13959 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13960
13961 * dwarf2read.c (open_and_init_dwp_file): Call
13962 elf_numsections instead of bfd_count_sections to initialize
13963 dwp_file->num_sections.
13964
13965 2019-02-25 Tom Tromey <tromey@adacore.com>
13966
13967 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13968
13969 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13970
13971 * gcore.in: Add '--readnever' option when invoking GDB.
13972
13973 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13974
13975 * MAINTAINERS: Update my email address.
13976
13977 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13978
13979 * build-id.c (build_id_to_debug_bfd_1): New function.
13980 (build_id_to_debug_bfd): Look for separate debug file in
13981 sysroot.
13982
13983 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13984
13985 * gdbarch.sh: Update the copyright year range that is placed into
13986 generated files.
13987
13988 2019-02-22 Keith Seitz <keiths@redhat.com>
13989
13990 PR symtab/23853
13991 * linespec.c (create_sals_line_offset): Search for the default
13992 symtab's filename instead of its fullname.
13993
13994 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13995
13996 * NEWS: Update style defaults.
13997
13998 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13999
14000 * main.c (captured_main_1): Disable styling in batch mode.
14001
14002 2019-02-20 Tom Tromey <tom@tromey.com>
14003
14004 * symtab.c (symtab_symbol_info): Fix typos.
14005
14006 2019-02-20 Tom Tromey <tromey@adacore.com>
14007
14008 * findcmd.c (_initialize_mem_search): Use upper case for
14009 metasyntactic variables.
14010
14011 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14012
14013 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14014 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14015
14016 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14017
14018 * top.h (source_file_name): Change to std::string.
14019 * top.c (source_file_name): Likewise.
14020 (command_line_input): Adjust.
14021 * cli/cli-script.c (script_from_file): Adjust.
14022
14023 2019-02-19 Tom Tromey <tromey@adacore.com>
14024
14025 * ravenscar-thread.c
14026 (ravenscar_thread_target::update_thread_list): Don't call
14027 ada_build_task_list.
14028 * ada-lang.h (ada_build_task_list): Don't declare.
14029 * ada-tasks.c (struct ada_tasks_inferior_data)
14030 <task_list_valid_p>: Now bool.
14031 (read_known_tasks, ada_task_list_changed)
14032 (ada_tasks_invalidate_inferior_data): Update.
14033 (read_known_tasks_array): Return bool.
14034 (read_known_tasks_list): Likewise.
14035 (read_known_tasks): Return void.
14036 (ada_build_task_list): Now static.
14037
14038 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14039
14040 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14041 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14042
14043 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14044
14045 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14046 variant for ada_tasks_pspace_data_handle and
14047 ada_tasks_inferior_data_handle.
14048 (ada_tasks_pspace_data_cleanup): New function.
14049 (ada_tasks_inferior_data_cleanup): New function.
14050
14051 2019-02-17 Tom Tromey <tom@tromey.com>
14052
14053 * macrotab.h (macro_source_fullname): Return a std::string.
14054 * macrotab.c (macro_include, check_for_redefinition)
14055 (macro_undef, macro_lookup_definition, foreach_macro)
14056 (foreach_macro_in_scope): Update.
14057 (macro_source_fullname): Return a std::string.
14058 * macrocmd.c (show_pp_source_pos): Update.
14059
14060 2019-02-17 Tom Tromey <tom@tromey.com>
14061
14062 * macrocmd.c (show_pp_source_pos): Style the file names.
14063
14064 2019-02-17 Tom Tromey <tom@tromey.com>
14065
14066 PR tui/24197:
14067 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14068
14069 2019-02-17 Tom Tromey <tom@tromey.com>
14070
14071 * ada-lang.c (user_select_syms): Use filtered printing.
14072 * utils.c (wrap_style): New global.
14073 (desired_style): Remove.
14074 (emit_style_escape): Add stream parameter.
14075 (set_output_style, reset_terminal_style, prompt_for_continue):
14076 Update.
14077 (flush_wrap_buffer): Only flush gdb_stdout.
14078 (wrap_here): Set wrap_style.
14079 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14080 treat escape sequences as a character. Change when wrap buffer is
14081 flushed.
14082 (fputs_styled): Do not set the output style when the default is
14083 requested.
14084 * ui-style.h (struct ui_file_style) <is_default>: New method.
14085 * source.c (print_source_lines_base): Emit escape sequences in one
14086 piece.
14087
14088 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14089
14090 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14091 integers and enumeration types.
14092
14093 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14094
14095 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14096 instead of lookup_symbol_in_language
14097 (do_exact_match): New function.
14098 (ada_get_symbol_name_matcher): Return do_exact_match when
14099 doing a verbatim match.
14100
14101 2019-02-15 Tom Tromey <tromey@adacore.com>
14102
14103 * ravenscar-thread.c (ravenscar_thread_target::resume)
14104 (ravenscar_thread_target::wait): Special case wildcard requests.
14105
14106 2019-02-15 Tom Tromey <tromey@adacore.com>
14107
14108 * ravenscar-thread.c (base_ptid): Remove.
14109 (struct ravenscar_thread_target) <close>: New method.
14110 <m_base_ptid>: New member.
14111 <update_inferior_ptid, active_task, task_is_currently_active,
14112 runtime_initialized>: Declare methods.
14113 <ravenscar_thread_target>: Add constructor.
14114 (ravenscar_thread_target::task_is_currently_active)
14115 (ravenscar_thread_target::update_inferior_ptid)
14116 (ravenscar_runtime_initialized): Rename. Now methods.
14117 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14118 (ravenscar_thread_target::update_thread_list): Update.
14119 (ravenscar_thread_target::active_task): Now method.
14120 (ravenscar_thread_target::store_registers)
14121 (ravenscar_thread_target::prepare_to_store)
14122 (ravenscar_thread_target::prepare_to_store)
14123 (ravenscar_thread_target::mourn_inferior): Update.
14124 (ravenscar_inferior_created): Use "new" to create target.
14125 (ravenscar_thread_target::get_ada_task_ptid): Update.
14126 (_initialize_ravenscar): Don't initialize base_ptid.
14127 (ravenscar_ops): Remove global.
14128
14129 2019-02-15 Tom Tromey <tromey@adacore.com>
14130
14131 * target.h (push_target): Declare new overload.
14132 * target.c (push_target): New overload, taking an rvalue reference.
14133 * remote.c (remote_target::open_1): Use push_target overload.
14134 * corelow.c (core_target_open): Use push_target overload.
14135
14136 2019-02-15 Tom Tromey <tromey@adacore.com>
14137
14138 * ravenscar-thread.c (is_ravenscar_task)
14139 (ravenscar_task_is_currently_active): Return bool.
14140 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14141 (_initialize_ravenscar): Remove "(void)".
14142 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14143 Return bool.
14144
14145 2019-02-15 Tom Tromey <tromey@adacore.com>
14146
14147 * ravenscar-thread.c (ravenscar_runtime_initializer)
14148 (has_ravenscar_runtime, get_running_thread_id)
14149 (ravenscar_thread_target::resume): Fix indentation.
14150
14151 2019-02-15 Tom Tromey <tromey@adacore.com>
14152
14153 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14154 from ravenscar_arch_ops.
14155 (sparc_ravenscar_ops::fetch_registers)
14156 (sparc_ravenscar_ops::store_registers): Now methods.
14157 (sparc_ravenscar_prepare_to_store): Remove.
14158 (sparc_ravenscar_ops): Redefine.
14159 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14160 methods and destructor. Remove members.
14161 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14162 (ravenscar_thread_target::store_registers)
14163 (ravenscar_thread_target::prepare_to_store): Update.
14164 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14165 Remove.
14166 (struct ppc_ravenscar_powerpc_ops): Derive from
14167 ravenscar_arch_ops.
14168 (ppc_ravenscar_powerpc_ops::fetch_registers)
14169 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14170 (ppc_ravenscar_powerpc_ops): Redefine.
14171 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14172 (ppc_ravenscar_e500_ops::fetch_registers)
14173 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14174 (ppc_ravenscar_e500_ops): Redefine.
14175 * aarch64-ravenscar-thread.c
14176 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14177 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14178 (aarch64_ravenscar_fetch_registers)
14179 (aarch64_ravenscar_store_registers): Now methods.
14180 (aarch64_ravenscar_ops): Redefine.
14181
14182 2019-02-15 Tom Tromey <tromey@adacore.com>
14183
14184 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14185 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14186 (ravenscar_thread_target::stopped_by_watchpoint)
14187 (ravenscar_thread_target::stopped_data_address)
14188 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14189
14190 2019-02-15 Tom Tromey <tromey@adacore.com>
14191
14192 * ravenscar-thread.c: Fix some typos.
14193
14194 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14195 Tom Tromey <tromey@adacore.com>
14196
14197 * ada-lang.c (ada_exception_sal): Change addr_string to a
14198 std::string.
14199 (create_ada_exception_catchpoint): Update.
14200
14201 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14202 Tom Tromey <tromey@adacore.com>
14203
14204 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14205 (bp_location_ops): Remove.
14206 (base_breakpoint_allocate_location): Update.
14207 (free_bp_location): Update.
14208 * ada-lang.c (class ada_catchpoint_location)
14209 <ada_catchpoint_location>: Remove ops parameter.
14210 (ada_catchpoint_location_dtor): Remove.
14211 (ada_catchpoint_location_ops): Remove.
14212 (allocate_location_exception): Update.
14213 * breakpoint.h (struct bp_location_ops): Remove.
14214 (class bp_location) <bp_location>: Remove bp_location_ops
14215 parameter.
14216 <~bp_location>: Add destructor.
14217 <ops>: Remove.
14218
14219 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14220 Pedro Alves <palves@redhat.com>
14221
14222 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14223 'PATH_MAX'.
14224
14225 2019-02-14 David Michael <fedora.dm0@gmail.com>
14226 Samuel Thibault <samuel.thibault@gnu.org>
14227 Thomas Schwinge <thomas@codesourcery.com>
14228
14229 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14230 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14231
14232 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14233
14234 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14235 (check_empty): Use "const char *".
14236
14237 * gnu-nat.c (gnu_nat_target::detach): Instead of
14238 'detach_inferior (pid)' call
14239 'detach_inferior (find_inferior_pid (pid))'.
14240
14241 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14242 'nat/fork-inferior.o'.
14243 * gnu-nat.c: #include "nat/fork-inferior.h".
14244
14245 * gnu-nat.c (gnu_nat_target::detach): Instead of
14246 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14247 * gnu-nat.h: #include "inf-child.h".
14248 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14249 'i386_gnu_nat_target::fetch_registers'.
14250 (gnu_store_registers): Rename/move to
14251 'i386_gnu_nat_target::store_registers'.
14252
14253 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14254 * gnu-nat.h (mach_thread_info): New function.
14255 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14256
14257 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14258
14259 2019-02-14 Frederic Konrad <konrad@adacore.com>
14260
14261 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14262
14263 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14264
14265 * windows-nat.c (windows_add_thread): Add new parameter
14266 "main_thread_p" with default value set to false. Update
14267 function documentation as well as all callers.
14268 (windows_delete_thread): Likewise.
14269 (fake_create_process): Update call to windows_add_thread.
14270 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14271 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14272 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14273 call to windows_delete_thread.
14274
14275 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14276
14277 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14278
14279 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14280
14281 * symfile.c (find_separate_debug_file): Use canonical path of
14282 sysroot with child_path instead of gdb_sysroot if it is valid.
14283
14284 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14285
14286 * symfile.c (find_separate_debug_file): Use child_path to
14287 determine if an object file is under a sysroot.
14288
14289 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14290
14291 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14292 unittests/child-path-selftests.c.
14293 * common/pathstuff.c (child_path): New function.
14294 * common/pathstuff.h (child_path): New prototype.
14295 * unittests/child-path-selftests.c: New file.
14296
14297 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14298
14299 * symfile.c (find_separate_debug_file): Look for separate debug
14300 files in debug directories under the sysroot.
14301
14302 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14303
14304 * symtab.h (struct minimal_symbol data_p): New const method.
14305 (struct minimal_symbol text_p): Likewise.
14306 * symtab.c (output_source_filename): Use file name style
14307 to print file name.
14308 (print_symbol_info): Likewise.
14309 (print_msymbol_info): Use address style to print addresses.
14310 Use function name style to print executable text symbols.
14311 (expand_symtab_containing_pc): Use data_p.
14312 (find_pc_sect_compunit_symtab): Likewise.
14313
14314 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14315
14316 * breakpoint.c (describe_other_breakpoints): Use address style
14317 to print addresses.
14318 (say_where): Likewise.
14319
14320 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14321
14322 * ada-typeprint.c (print_func_type): Print function name
14323 style to print function name.
14324 * c-typeprint.c (c_print_type_1): Likewise.
14325
14326 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14327
14328 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14329 for execve.
14330
14331 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14332
14333 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14334 type_stack.
14335
14336 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14337
14338 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14339 TYPE_CODE_REF types.
14340
14341 2019-02-08 Jim Wilson <jimw@sifive.com>
14342
14343 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14344 (riscv_linux_fregset): New.
14345 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14346
14347 2019-02-07 Tom Tromey <tom@tromey.com>
14348
14349 * thread.c (thread_cancel_execution_command): Update.
14350 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14351 methods.
14352 (struct thread_fsm_ops): Remove.
14353 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14354 (thread_fsm_should_stop, thread_fsm_return_value)
14355 (thread_fsm_set_finished, thread_fsm_finished_p)
14356 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14357 Don't declare.
14358 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14359 * infrun.c (clear_proceed_status_thread)
14360 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14361 (print_stop_event): Update.
14362 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14363 Add constructor.
14364 (step_command_fsm_ops): Remove.
14365 (new_step_command_fsm): Remove.
14366 (step_1): Update.
14367 (step_command_fsm::should_stop): Rename from
14368 step_command_fsm_should_stop.
14369 (step_command_fsm::clean_up): Rename from
14370 step_command_fsm_clean_up.
14371 (step_command_fsm::do_async_reply_reason): Rename from
14372 step_command_fsm_async_reply_reason.
14373 (struct until_next_fsm): Inherit from thread_fsm. Add
14374 constructor.
14375 (until_next_fsm_ops): Remove.
14376 (new_until_next_fsm): Remove.
14377 (until_next_fsm::should_stop): Rename from
14378 until_next_fsm_should_stop.
14379 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14380 (until_next_fsm::do_async_reply_reason): Rename from
14381 until_next_fsm_async_reply_reason.
14382 (struct finish_command_fsm): Inherit from thread_fsm. Add
14383 constructor. Change type of breakpoint.
14384 (finish_command_fsm_ops): Remove.
14385 (new_finish_command_fsm): Remove.
14386 (finish_command_fsm::should_stop): Rename from
14387 finish_command_fsm_should_stop.
14388 (finish_command_fsm::clean_up): Rename from
14389 finish_command_fsm_clean_up.
14390 (finish_command_fsm::return_value): Rename from
14391 finish_command_fsm_return_value.
14392 (finish_command_fsm::do_async_reply_reason): Rename from
14393 finish_command_fsm_async_reply_reason.
14394 (finish_command): Update.
14395 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14396 Add constructor.
14397 (call_thread_fsm_ops): Remove.
14398 (call_thread_fsm::call_thread_fsm): Rename from
14399 new_call_thread_fsm.
14400 (call_thread_fsm::should_stop): Rename from
14401 call_thread_fsm_should_stop.
14402 (call_thread_fsm::should_notify_stop): Rename from
14403 call_thread_fsm_should_notify_stop.
14404 (run_inferior_call, call_function_by_hand_dummy): Update.
14405 * cli/cli-interp.c (should_print_stop_to_console): Update.
14406 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14407 Add constructor. Change type of location_breakpoint,
14408 caller_breakpoint.
14409 (until_break_fsm_ops): Remove.
14410 (new_until_break_fsm): Remove.
14411 (until_break_fsm::should_stop): Rename from
14412 until_break_fsm_should_stop.
14413 (until_break_fsm::clean_up): Rename from
14414 until_break_fsm_clean_up.
14415 (until_break_fsm::do_async_reply_reason): Rename from
14416 until_break_fsm_async_reply_reason.
14417 (until_break_command): Update.
14418 * thread-fsm.c: Remove.
14419 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14420
14421 2019-02-07 Tom Tromey <tom@tromey.com>
14422
14423 * yy-remap.h: Add include guard.
14424 * xtensa-tdep.h: Add include guard.
14425 * xcoffread.h: Rename include guard.
14426 * varobj-iter.h: Add include guard.
14427 * tui/tui.h: Rename include guard.
14428 * tui/tui-winsource.h: Rename include guard.
14429 * tui/tui-wingeneral.h: Rename include guard.
14430 * tui/tui-windata.h: Rename include guard.
14431 * tui/tui-win.h: Rename include guard.
14432 * tui/tui-stack.h: Rename include guard.
14433 * tui/tui-source.h: Rename include guard.
14434 * tui/tui-regs.h: Rename include guard.
14435 * tui/tui-out.h: Rename include guard.
14436 * tui/tui-layout.h: Rename include guard.
14437 * tui/tui-io.h: Rename include guard.
14438 * tui/tui-hooks.h: Rename include guard.
14439 * tui/tui-file.h: Rename include guard.
14440 * tui/tui-disasm.h: Rename include guard.
14441 * tui/tui-data.h: Rename include guard.
14442 * tui/tui-command.h: Rename include guard.
14443 * tic6x-tdep.h: Add include guard.
14444 * target/waitstatus.h: Rename include guard.
14445 * target/wait.h: Rename include guard.
14446 * target/target.h: Rename include guard.
14447 * target/resume.h: Rename include guard.
14448 * target-float.h: Rename include guard.
14449 * stabsread.h: Add include guard.
14450 * rs6000-tdep.h: Add include guard.
14451 * riscv-fbsd-tdep.h: Add include guard.
14452 * regformats/regdef.h: Rename include guard.
14453 * record.h: Rename include guard.
14454 * python/python.h: Rename include guard.
14455 * python/python-internal.h: Rename include guard.
14456 * python/py-stopevent.h: Rename include guard.
14457 * python/py-ref.h: Rename include guard.
14458 * python/py-record.h: Rename include guard.
14459 * python/py-record-full.h: Rename include guard.
14460 * python/py-record-btrace.h: Rename include guard.
14461 * python/py-instruction.h: Rename include guard.
14462 * python/py-events.h: Rename include guard.
14463 * python/py-event.h: Rename include guard.
14464 * procfs.h: Add include guard.
14465 * proc-utils.h: Add include guard.
14466 * p-lang.h: Add include guard.
14467 * or1k-tdep.h: Rename include guard.
14468 * observable.h: Rename include guard.
14469 * nto-tdep.h: Rename include guard.
14470 * nat/x86-linux.h: Rename include guard.
14471 * nat/x86-linux-dregs.h: Rename include guard.
14472 * nat/x86-gcc-cpuid.h: Add include guard.
14473 * nat/x86-dregs.h: Rename include guard.
14474 * nat/x86-cpuid.h: Rename include guard.
14475 * nat/ppc-linux.h: Rename include guard.
14476 * nat/mips-linux-watch.h: Rename include guard.
14477 * nat/linux-waitpid.h: Rename include guard.
14478 * nat/linux-ptrace.h: Rename include guard.
14479 * nat/linux-procfs.h: Rename include guard.
14480 * nat/linux-osdata.h: Rename include guard.
14481 * nat/linux-nat.h: Rename include guard.
14482 * nat/linux-namespaces.h: Rename include guard.
14483 * nat/linux-btrace.h: Rename include guard.
14484 * nat/glibc_thread_db.h: Rename include guard.
14485 * nat/gdb_thread_db.h: Rename include guard.
14486 * nat/gdb_ptrace.h: Rename include guard.
14487 * nat/fork-inferior.h: Rename include guard.
14488 * nat/amd64-linux-siginfo.h: Rename include guard.
14489 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14490 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14491 * nat/aarch64-linux.h: Rename include guard.
14492 * nat/aarch64-linux-hw-point.h: Rename include guard.
14493 * mn10300-tdep.h: Add include guard.
14494 * mips-linux-tdep.h: Add include guard.
14495 * mi/mi-parse.h: Rename include guard.
14496 * mi/mi-out.h: Rename include guard.
14497 * mi/mi-main.h: Rename include guard.
14498 * mi/mi-interp.h: Rename include guard.
14499 * mi/mi-getopt.h: Rename include guard.
14500 * mi/mi-console.h: Rename include guard.
14501 * mi/mi-common.h: Rename include guard.
14502 * mi/mi-cmds.h: Rename include guard.
14503 * mi/mi-cmd-break.h: Rename include guard.
14504 * m2-lang.h: Add include guard.
14505 * location.h: Rename include guard.
14506 * linux-record.h: Rename include guard.
14507 * linux-nat.h: Add include guard.
14508 * linux-fork.h: Add include guard.
14509 * i386-darwin-tdep.h: Rename include guard.
14510 * hppa-linux-offsets.h: Add include guard.
14511 * guile/guile.h: Rename include guard.
14512 * guile/guile-internal.h: Rename include guard.
14513 * gnu-nat.h: Rename include guard.
14514 * gdb-stabs.h: Rename include guard.
14515 * frv-tdep.h: Add include guard.
14516 * f-lang.h: Add include guard.
14517 * event-loop.h: Add include guard.
14518 * darwin-nat.h: Rename include guard.
14519 * cp-abi.h: Rename include guard.
14520 * config/sparc/nm-sol2.h: Rename include guard.
14521 * config/nm-nto.h: Rename include guard.
14522 * config/nm-linux.h: Add include guard.
14523 * config/i386/nm-i386gnu.h: Rename include guard.
14524 * config/djgpp/nl_types.h: Rename include guard.
14525 * config/djgpp/langinfo.h: Rename include guard.
14526 * compile/gcc-cp-plugin.h: Add include guard.
14527 * compile/gcc-c-plugin.h: Add include guard.
14528 * compile/compile.h: Rename include guard.
14529 * compile/compile-object-run.h: Rename include guard.
14530 * compile/compile-object-load.h: Rename include guard.
14531 * compile/compile-internal.h: Rename include guard.
14532 * compile/compile-cplus.h: Rename include guard.
14533 * compile/compile-c.h: Rename include guard.
14534 * common/xml-utils.h: Rename include guard.
14535 * common/x86-xstate.h: Rename include guard.
14536 * common/version.h: Rename include guard.
14537 * common/vec.h: Rename include guard.
14538 * common/tdesc.h: Rename include guard.
14539 * common/selftest.h: Rename include guard.
14540 * common/scoped_restore.h: Rename include guard.
14541 * common/scoped_mmap.h: Rename include guard.
14542 * common/scoped_fd.h: Rename include guard.
14543 * common/safe-iterator.h: Rename include guard.
14544 * common/run-time-clock.h: Rename include guard.
14545 * common/refcounted-object.h: Rename include guard.
14546 * common/queue.h: Rename include guard.
14547 * common/ptid.h: Rename include guard.
14548 * common/print-utils.h: Rename include guard.
14549 * common/preprocessor.h: Rename include guard.
14550 * common/pathstuff.h: Rename include guard.
14551 * common/observable.h: Rename include guard.
14552 * common/netstuff.h: Rename include guard.
14553 * common/job-control.h: Rename include guard.
14554 * common/host-defs.h: Rename include guard.
14555 * common/gdb_wait.h: Rename include guard.
14556 * common/gdb_vecs.h: Rename include guard.
14557 * common/gdb_unlinker.h: Rename include guard.
14558 * common/gdb_unique_ptr.h: Rename include guard.
14559 * common/gdb_tilde_expand.h: Rename include guard.
14560 * common/gdb_sys_time.h: Rename include guard.
14561 * common/gdb_string_view.h: Rename include guard.
14562 * common/gdb_splay_tree.h: Rename include guard.
14563 * common/gdb_setjmp.h: Rename include guard.
14564 * common/gdb_ref_ptr.h: Rename include guard.
14565 * common/gdb_optional.h: Rename include guard.
14566 * common/gdb_locale.h: Rename include guard.
14567 * common/gdb_assert.h: Rename include guard.
14568 * common/filtered-iterator.h: Rename include guard.
14569 * common/filestuff.h: Rename include guard.
14570 * common/fileio.h: Rename include guard.
14571 * common/environ.h: Rename include guard.
14572 * common/common-utils.h: Rename include guard.
14573 * common/common-types.h: Rename include guard.
14574 * common/common-regcache.h: Rename include guard.
14575 * common/common-inferior.h: Rename include guard.
14576 * common/common-gdbthread.h: Rename include guard.
14577 * common/common-exceptions.h: Rename include guard.
14578 * common/common-defs.h: Rename include guard.
14579 * common/common-debug.h: Rename include guard.
14580 * common/cleanups.h: Rename include guard.
14581 * common/buffer.h: Rename include guard.
14582 * common/btrace-common.h: Rename include guard.
14583 * common/break-common.h: Rename include guard.
14584 * cli/cli-utils.h: Rename include guard.
14585 * cli/cli-style.h: Rename include guard.
14586 * cli/cli-setshow.h: Rename include guard.
14587 * cli/cli-script.h: Rename include guard.
14588 * cli/cli-interp.h: Rename include guard.
14589 * cli/cli-decode.h: Rename include guard.
14590 * cli/cli-cmds.h: Rename include guard.
14591 * charset-list.h: Add include guard.
14592 * buildsym-legacy.h: Rename include guard.
14593 * bfin-tdep.h: Add include guard.
14594 * ax.h: Rename include guard.
14595 * arm-linux-tdep.h: Add include guard.
14596 * arm-fbsd-tdep.h: Add include guard.
14597 * arch/xtensa.h: Rename include guard.
14598 * arch/tic6x.h: Add include guard.
14599 * arch/i386.h: Add include guard.
14600 * arch/arm.h: Rename include guard.
14601 * arch/arm-linux.h: Rename include guard.
14602 * arch/arm-get-next-pcs.h: Rename include guard.
14603 * arch/amd64.h: Add include guard.
14604 * arch/aarch64-insn.h: Rename include guard.
14605 * arch-utils.h: Rename include guard.
14606 * annotate.h: Add include guard.
14607 * amd64-darwin-tdep.h: Rename include guard.
14608 * aarch64-linux-tdep.h: Add include guard.
14609 * aarch64-fbsd-tdep.h: Add include guard.
14610 * aarch32-linux-nat.h: Add include guard.
14611
14612 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14613
14614 * macrotab.c (macro_define_internal): New function that
14615 factorizes macro_define_object_internal and macro_define_function
14616 code.
14617 (macro_define_object_internal): Use macro_define_internal.
14618 (macro_define_function): Likewise.
14619
14620 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14621
14622 * macrocmd.c (extract_identifier): Return
14623 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14624 callers.
14625
14626 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14627
14628 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14629
14630 2019-02-05 Tom Tromey <tom@tromey.com>
14631
14632 * target.c (target_stack::unpush): Move assertion earlier.
14633
14634 2019-01-30 Tom Tromey <tom@tromey.com>
14635
14636 PR python/23615:
14637 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14638 (gdbpy_parse_and_eval): Likewise.
14639 * python/python-internal.h (gdbpy_allow_threads): New class.
14640
14641 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14642
14643 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14644 (aarch64_fbsd_fpregmap): Move earlier.
14645 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14646 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14647 instead of individual calls to trad_frame_set_reg_addr.
14648 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14649 earlier.
14650 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14651 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14652 instead of individual calls to trad_frame_set_reg_addr.
14653
14654 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14655
14656 * CONTRIBUTE: Replace contribution list with wiki link.
14657
14658 2019-01-25 Tom Tromey <tom@tromey.com>
14659
14660 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14661
14662 2019-01-25 Tom Tromey <tom@tromey.com>
14663
14664 * xtensa-linux-nat.c: Fix common/ includes.
14665 * xml-support.h: Fix common/ includes.
14666 * xml-support.c: Fix common/ includes.
14667 * x86-linux-nat.c: Fix common/ includes.
14668 * windows-nat.c: Fix common/ includes.
14669 * varobj.h: Fix common/ includes.
14670 * varobj.c: Fix common/ includes.
14671 * value.c: Fix common/ includes.
14672 * valops.c: Fix common/ includes.
14673 * utils.c: Fix common/ includes.
14674 * unittests/xml-utils-selftests.c: Fix common/ includes.
14675 * unittests/utils-selftests.c: Fix common/ includes.
14676 * unittests/unpack-selftests.c: Fix common/ includes.
14677 * unittests/tracepoint-selftests.c: Fix common/ includes.
14678 * unittests/style-selftests.c: Fix common/ includes.
14679 * unittests/string_view-selftests.c: Fix common/ includes.
14680 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14681 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14682 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14683 * unittests/rsp-low-selftests.c: Fix common/ includes.
14684 * unittests/parse-connection-spec-selftests.c: Fix common/
14685 includes.
14686 * unittests/optional-selftests.c: Fix common/ includes.
14687 * unittests/offset-type-selftests.c: Fix common/ includes.
14688 * unittests/observable-selftests.c: Fix common/ includes.
14689 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14690 * unittests/memrange-selftests.c: Fix common/ includes.
14691 * unittests/memory-map-selftests.c: Fix common/ includes.
14692 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14693 * unittests/function-view-selftests.c: Fix common/ includes.
14694 * unittests/environ-selftests.c: Fix common/ includes.
14695 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14696 * unittests/common-utils-selftests.c: Fix common/ includes.
14697 * unittests/cli-utils-selftests.c: Fix common/ includes.
14698 * unittests/array-view-selftests.c: Fix common/ includes.
14699 * ui-file.c: Fix common/ includes.
14700 * tui/tui-io.c: Fix common/ includes.
14701 * tracepoint.h: Fix common/ includes.
14702 * tracepoint.c: Fix common/ includes.
14703 * tracefile-tfile.c: Fix common/ includes.
14704 * top.h: Fix common/ includes.
14705 * top.c: Fix common/ includes.
14706 * thread.c: Fix common/ includes.
14707 * target/waitstatus.h: Fix common/ includes.
14708 * target/waitstatus.c: Fix common/ includes.
14709 * target.h: Fix common/ includes.
14710 * target.c: Fix common/ includes.
14711 * target-memory.c: Fix common/ includes.
14712 * target-descriptions.c: Fix common/ includes.
14713 * symtab.h: Fix common/ includes.
14714 * symfile.c: Fix common/ includes.
14715 * stap-probe.c: Fix common/ includes.
14716 * spu-linux-nat.c: Fix common/ includes.
14717 * sparc-nat.c: Fix common/ includes.
14718 * source.c: Fix common/ includes.
14719 * solib.c: Fix common/ includes.
14720 * solib-target.c: Fix common/ includes.
14721 * ser-unix.c: Fix common/ includes.
14722 * ser-tcp.c: Fix common/ includes.
14723 * ser-pipe.c: Fix common/ includes.
14724 * ser-base.c: Fix common/ includes.
14725 * selftest-arch.c: Fix common/ includes.
14726 * s12z-tdep.c: Fix common/ includes.
14727 * rust-exp.y: Fix common/ includes.
14728 * rs6000-aix-tdep.c: Fix common/ includes.
14729 * riscv-tdep.c: Fix common/ includes.
14730 * remote.c: Fix common/ includes.
14731 * remote-notif.h: Fix common/ includes.
14732 * remote-fileio.h: Fix common/ includes.
14733 * remote-fileio.c: Fix common/ includes.
14734 * regcache.h: Fix common/ includes.
14735 * regcache.c: Fix common/ includes.
14736 * record-btrace.c: Fix common/ includes.
14737 * python/python.c: Fix common/ includes.
14738 * python/py-type.c: Fix common/ includes.
14739 * python/py-inferior.c: Fix common/ includes.
14740 * progspace.h: Fix common/ includes.
14741 * producer.c: Fix common/ includes.
14742 * procfs.c: Fix common/ includes.
14743 * proc-api.c: Fix common/ includes.
14744 * printcmd.c: Fix common/ includes.
14745 * ppc-linux-nat.c: Fix common/ includes.
14746 * parser-defs.h: Fix common/ includes.
14747 * osdata.c: Fix common/ includes.
14748 * obsd-nat.c: Fix common/ includes.
14749 * nat/x86-linux.c: Fix common/ includes.
14750 * nat/x86-linux-dregs.c: Fix common/ includes.
14751 * nat/x86-dregs.h: Fix common/ includes.
14752 * nat/x86-dregs.c: Fix common/ includes.
14753 * nat/ppc-linux.c: Fix common/ includes.
14754 * nat/mips-linux-watch.h: Fix common/ includes.
14755 * nat/mips-linux-watch.c: Fix common/ includes.
14756 * nat/linux-waitpid.c: Fix common/ includes.
14757 * nat/linux-ptrace.h: Fix common/ includes.
14758 * nat/linux-ptrace.c: Fix common/ includes.
14759 * nat/linux-procfs.c: Fix common/ includes.
14760 * nat/linux-personality.c: Fix common/ includes.
14761 * nat/linux-osdata.c: Fix common/ includes.
14762 * nat/linux-namespaces.c: Fix common/ includes.
14763 * nat/linux-btrace.h: Fix common/ includes.
14764 * nat/linux-btrace.c: Fix common/ includes.
14765 * nat/fork-inferior.c: Fix common/ includes.
14766 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14767 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14768 * nat/aarch64-linux.c: Fix common/ includes.
14769 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14770 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14771 * namespace.h: Fix common/ includes.
14772 * mips-linux-tdep.c: Fix common/ includes.
14773 * minsyms.c: Fix common/ includes.
14774 * mi/mi-parse.h: Fix common/ includes.
14775 * mi/mi-main.c: Fix common/ includes.
14776 * mi/mi-cmd-env.c: Fix common/ includes.
14777 * memrange.h: Fix common/ includes.
14778 * memattr.c: Fix common/ includes.
14779 * maint.h: Fix common/ includes.
14780 * maint.c: Fix common/ includes.
14781 * main.c: Fix common/ includes.
14782 * machoread.c: Fix common/ includes.
14783 * location.c: Fix common/ includes.
14784 * linux-thread-db.c: Fix common/ includes.
14785 * linux-nat.c: Fix common/ includes.
14786 * linux-fork.c: Fix common/ includes.
14787 * inline-frame.c: Fix common/ includes.
14788 * infrun.c: Fix common/ includes.
14789 * inflow.c: Fix common/ includes.
14790 * inferior.h: Fix common/ includes.
14791 * inferior.c: Fix common/ includes.
14792 * infcmd.c: Fix common/ includes.
14793 * inf-ptrace.c: Fix common/ includes.
14794 * inf-child.c: Fix common/ includes.
14795 * ia64-linux-nat.c: Fix common/ includes.
14796 * i387-tdep.c: Fix common/ includes.
14797 * i386-tdep.c: Fix common/ includes.
14798 * i386-linux-tdep.c: Fix common/ includes.
14799 * i386-linux-nat.c: Fix common/ includes.
14800 * i386-go32-tdep.c: Fix common/ includes.
14801 * i386-fbsd-tdep.c: Fix common/ includes.
14802 * i386-fbsd-nat.c: Fix common/ includes.
14803 * guile/scm-type.c: Fix common/ includes.
14804 * guile/guile.c: Fix common/ includes.
14805 * go32-nat.c: Fix common/ includes.
14806 * gnu-nat.c: Fix common/ includes.
14807 * gdbthread.h: Fix common/ includes.
14808 * gdbarch-selftests.c: Fix common/ includes.
14809 * gdb_usleep.c: Fix common/ includes.
14810 * gdb_select.h: Fix common/ includes.
14811 * gdb_bfd.c: Fix common/ includes.
14812 * gcore.c: Fix common/ includes.
14813 * fork-child.c: Fix common/ includes.
14814 * findvar.c: Fix common/ includes.
14815 * fbsd-nat.c: Fix common/ includes.
14816 * event-top.c: Fix common/ includes.
14817 * event-loop.c: Fix common/ includes.
14818 * dwarf2read.c: Fix common/ includes.
14819 * dwarf2loc.c: Fix common/ includes.
14820 * dwarf2-frame.c: Fix common/ includes.
14821 * dwarf-index-cache.c: Fix common/ includes.
14822 * dtrace-probe.c: Fix common/ includes.
14823 * disasm-selftests.c: Fix common/ includes.
14824 * defs.h: Fix common/ includes.
14825 * csky-tdep.c: Fix common/ includes.
14826 * cp-valprint.c: Fix common/ includes.
14827 * cp-support.h: Fix common/ includes.
14828 * cp-support.c: Fix common/ includes.
14829 * corelow.c: Fix common/ includes.
14830 * completer.h: Fix common/ includes.
14831 * completer.c: Fix common/ includes.
14832 * compile/compile.c: Fix common/ includes.
14833 * compile/compile-loc2c.c: Fix common/ includes.
14834 * compile/compile-cplus-types.c: Fix common/ includes.
14835 * compile/compile-cplus-symbols.c: Fix common/ includes.
14836 * command.h: Fix common/ includes.
14837 * cli/cli-dump.c: Fix common/ includes.
14838 * cli/cli-cmds.c: Fix common/ includes.
14839 * charset.c: Fix common/ includes.
14840 * build-id.c: Fix common/ includes.
14841 * btrace.h: Fix common/ includes.
14842 * btrace.c: Fix common/ includes.
14843 * breakpoint.h: Fix common/ includes.
14844 * breakpoint.c: Fix common/ includes.
14845 * ax.h:
14846 (enum agent_op): Fix common/ includes.
14847 * ax-general.c (struct aop_map): Fix common/ includes.
14848 * ax-gdb.c: Fix common/ includes.
14849 * auxv.c: Fix common/ includes.
14850 * auto-load.c: Fix common/ includes.
14851 * arm-tdep.c: Fix common/ includes.
14852 * arch/riscv.c: Fix common/ includes.
14853 * arch/ppc-linux-common.c: Fix common/ includes.
14854 * arch/i386.c: Fix common/ includes.
14855 * arch/arm.c: Fix common/ includes.
14856 * arch/arm-linux.c: Fix common/ includes.
14857 * arch/arm-get-next-pcs.c: Fix common/ includes.
14858 * arch/amd64.c: Fix common/ includes.
14859 * arch/aarch64.c: Fix common/ includes.
14860 * arch/aarch64-insn.c: Fix common/ includes.
14861 * arch-utils.c: Fix common/ includes.
14862 * amd64-windows-tdep.c: Fix common/ includes.
14863 * amd64-tdep.c: Fix common/ includes.
14864 * amd64-sol2-tdep.c: Fix common/ includes.
14865 * amd64-obsd-tdep.c: Fix common/ includes.
14866 * amd64-nbsd-tdep.c: Fix common/ includes.
14867 * amd64-linux-tdep.c: Fix common/ includes.
14868 * amd64-linux-nat.c: Fix common/ includes.
14869 * amd64-fbsd-tdep.c: Fix common/ includes.
14870 * amd64-fbsd-nat.c: Fix common/ includes.
14871 * amd64-dicos-tdep.c: Fix common/ includes.
14872 * amd64-darwin-tdep.c: Fix common/ includes.
14873 * agent.c: Fix common/ includes.
14874 * ada-lang.h: Fix common/ includes.
14875 * ada-lang.c: Fix common/ includes.
14876 * aarch64-tdep.c: Fix common/ includes.
14877
14878 2019-01-25 Tom Tromey <tom@tromey.com>
14879
14880 * common/create-version.sh: Use common/version.h.
14881
14882 2019-01-24 Pedro Alves <palves@redhat.com>
14883
14884 * infrun.c (signal_stop, signal_print, signal_program)
14885 (signal_catch, signal_pass): Now arrays instead of pointers.
14886 (update_signals_program_target, do_target_resume)
14887 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14888 * linux-nat.c (linux_nat_target::pass_signals)
14889 (linux_nat_target::create_inferior, linux_nat_target::attach):
14890 Adjust.
14891 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14892 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14893 * procfs.c (procfs_target::pass_signals): Adjust.
14894 * record-full.c (record_full_target::resume): Adjust.
14895 * remote.c (remote_target::pass_signals)
14896 (remote_target::program_signals): Adjust.
14897 * target-debug.h (target_debug_print_signals): Now takes a
14898 gdb::array_view as parameter. Adjust.
14899 * target.h (target_ops) <pass_signals, program_signals>: Replace
14900 pointer and length parameters with gdb::array_view.
14901 (target_pass_signals, target_program_signals): Likewise.
14902 * target-delegates.c: Regenerate.
14903
14904 2019-01-24 Pedro Alves <palves@redhat.com>
14905
14906 * common/forward-scope-exit.h
14907 (forward_scope_exit::forward_scope_exit): Pass arguments to
14908 m_bind_function directly, instead of creating a std::bind and
14909 copying that.
14910
14911 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14912
14913 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14914 for static members.
14915 (pass_in_v_vfp_candidate): Likewise.
14916
14917 2019-01-23 Tom Tromey <tom@tromey.com>
14918 Pedro Alves <palves@redhat.com>
14919
14920 * regcache.c (class regcache_invalidator): Remove.
14921 (regcache::raw_write): Use make_scope_exit.
14922
14923 2019-01-23 Tom Tromey <tom@tromey.com>
14924
14925 * ui-out.h (class ui_out_emit_type): Update comment.
14926
14927 2019-01-23 Tom Tromey <tom@tromey.com>
14928
14929 * infrun.c (fetch_inferior_event): Update comment.
14930
14931 2019-01-23 Tom Tromey <tom@tromey.com>
14932 Pedro Alves <palves@redhat.com>
14933
14934 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14935 parameter.
14936 (fetch_inferior_event): Use SCOPE_EXIT.
14937
14938
14939 2019-01-23 Tom Tromey <tom@tromey.com>
14940 Pedro Alves <palves@redhat.com>
14941
14942 * infrun.c (disable_thread_events): Delete.
14943 (stop_all_threads): Use SCOPE_EXIT.
14944
14945 2019-01-23 Tom Tromey <tom@tromey.com>
14946 Pedro Alves <palves@redhat.com>
14947
14948 * symfile.c: Include forward-scope-exit.h.
14949 (clear_symtab_users_cleanup): Replace forward declaration with
14950 a FORWARD_SCOPE_EXIT.
14951 (syms_from_objfile_1): Use the forward_scope_exit and
14952 gdb::optional instead of cleanup_function.
14953 (reread_symbols): Use the forward_scope_exit instead of
14954 cleanup_function.
14955 (clear_symtab_users_cleanup): Remove function.
14956
14957 2019-01-23 Tom Tromey <tom@tromey.com>
14958 Pedro Alves <palves@redhat.com>
14959
14960 * linux-nat.c: Include scope-exit.h.
14961 (cleanup_target_stop): Remove.
14962 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14963 SCOPE_EXIT.
14964
14965 2019-01-23 Tom Tromey <tom@tromey.com>
14966 Pedro Alves <palves@redhat.com>
14967
14968 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14969 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14970
14971 2019-01-23 Tom Tromey <tom@tromey.com>
14972 Andrew Burgess <andrew.burgess@embecosm.com>
14973 Pedro Alves <palves@redhat.com>
14974
14975 * infrun.c (fetch_inferior_event): Use scope_exit.
14976 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14977 * top.c (execute_command): Use scope_exit.
14978 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14979 * utils.c (do_bpstat_clear_actions_cleanup)
14980 (make_bpstat_clear_actions_cleanup): Remove.
14981
14982 2019-01-23 Tom Tromey <tom@tromey.com>
14983 Pedro Alves <palves@redhat.com>
14984
14985 * infrun.c: Include "common/scope-exit.h"
14986 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14987 (wait_for_inferior): Use SCOPE_EXIT.
14988 (fetch_inferior_event): Use scope_exit.
14989
14990 2019-01-23 Tom Tromey <tom@tromey.com>
14991 Pedro Alves <palves@redhat.com>
14992
14993 * breakpoint.c (create_breakpoint): Remove cleanup.
14994
14995 2019-01-23 Tom Tromey <tom@tromey.com>
14996 Andrew Burgess <andrew.burgess@embecosm.com>
14997 Pedro Alves <palves@redhat.com>
14998
14999 2019-01-23 Pedro Alves <palves@redhat.com>
15000
15001 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15002
15003 2019-01-23 Pedro Alves <palves@redhat.com>
15004 Andrew Burgess <andrew.burgess@embecosm.com>
15005
15006 * gdbthread.h: Include "common/forward-scope-exit.h".
15007 (scoped_finish_thread_state): Redefine custom class in terms of
15008 forward_scope_exit.
15009
15010 2019-01-23 Pedro Alves <palves@redhat.com>
15011 Andrew Burgess <andrew.burgess@embecosm.com>
15012
15013 * common/forward-scope-exit.h: New file.
15014
15015 2019-01-23 Pedro Alves <palves@redhat.com>
15016 Andrew Burgess <andrew.burgess@embecosm.com>
15017 Tom Tromey <tom@tromey.com>
15018
15019 * common/scope-exit.h: New file.
15020
15021 2019-01-23 Pedro Alves <palves@redhat.com>
15022
15023 * common/preprocessor.h (ESC): Rename to ...
15024 (ESC_PARENS): ... this.
15025 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15026 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15027
15028 2019-01-23 Tom Tromey <tom@tromey.com>
15029
15030 * language.h (class scoped_switch_to_sym_language_if_auto):
15031 Initialize m_lang in both cases.
15032
15033 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15034
15035 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15036 with XCNEW.
15037
15038 2019-01-22 Tom Tromey <tom@tromey.com>
15039
15040 * corelow.c: Do not include sys/file.h.
15041
15042 2019-01-22 Tom Tromey <tom@tromey.com>
15043
15044 * tui/tui-wingeneral.h: Include gdb_curses.h.
15045
15046 2019-01-22 Tom Tromey <tom@tromey.com>
15047
15048 * source-cache.h (class source_cache) <get_source_lines,
15049 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15050
15051 2019-01-22 Tom Tromey <tom@tromey.com>
15052
15053 * remote-fileio.h (struct remote_target): Declare.
15054
15055 2019-01-22 Tom Tromey <tom@tromey.com>
15056
15057 * python/py-arch.c: Do not include py-ref.h.
15058 * python/py-bpevent.c: Do not include py-ref.h.
15059 * python/py-cmd.c: Do not include py-ref.h.
15060 * python/py-continueevent.c: Do not include py-ref.h.
15061 * python/py-event.h: Do not include py-ref.h.
15062 * python/py-evtregistry.c: Do not include py-ref.h.
15063 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15064 * python/py-frame.c: Do not include py-ref.h.
15065 * python/py-framefilter.c: Do not include py-ref.h.
15066 * python/py-function.c: Do not include py-ref.h.
15067 * python/py-infevents.c: Do not include py-ref.h.
15068 * python/py-linetable.c: Do not include py-ref.h.
15069 * python/py-objfile.c: Do not include py-ref.h.
15070 * python/py-param.c: Do not include py-ref.h.
15071 * python/py-prettyprint.c: Do not include py-ref.h.
15072 * python/py-progspace.c: Do not include py-ref.h.
15073 * python/py-symbol.c: Do not include py-ref.h.
15074 * python/py-symtab.c: Do not include py-ref.h.
15075 * python/py-type.c: Do not include py-ref.h.
15076 * python/py-unwind.c: Do not include py-ref.h.
15077 * python/py-utils.c: Do not include py-ref.h.
15078 * python/py-value.c: Do not include py-ref.h.
15079 * python/py-varobj.c: Do not include py-ref.h.
15080 * python/py-xmethods.c: Do not include py-ref.h.
15081 * python/python.c: Do not include py-ref.h.
15082 * varobj.c: Do not include py-ref.h.
15083
15084 2019-01-22 Tom Tromey <tom@tromey.com>
15085
15086 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15087 keyword for bcache.
15088
15089 2019-01-22 Tom Tromey <tom@tromey.com>
15090
15091 * compile/compile-cplus-types.c: Remove a comment by #include.
15092
15093 2019-01-22 Tom Tromey <tom@tromey.com>
15094
15095 * compile/gcc-c-plugin.h: Include compile-internal.h.
15096
15097 2019-01-22 Tom Tromey <tom@tromey.com>
15098
15099 * stabsread.c (EXTERN): Do not define.
15100 (symnum, next_symbol_text_func, processing_gcc_compilation)
15101 (within_function, global_sym_chain, global_stabs)
15102 (previous_stab_code, this_object_header_files)
15103 (n_this_object_header_files)
15104 (n_allocated_this_object_header_files): Define.
15105 * stabsread.h (EXTERN): Never define. Use "extern".
15106
15107 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15108
15109 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15110 history_value.
15111
15112 2019-01-21 Tom Tromey <tom@tromey.com>
15113
15114 * ui-out.c: Fix includes.
15115 * tui/tui-source.c: Fix includes.
15116 * target.c: Fix includes.
15117 * remote.c: Fix includes.
15118 * regcache.c: Fix includes.
15119 * python/py-block.c: Fix includes.
15120 * printcmd.c: Fix includes.
15121 * or1k-tdep.c: Fix includes.
15122 * mi/mi-main.c: Fix includes.
15123 * m32r-tdep.c: Fix includes.
15124 * csky-tdep.c: Fix includes.
15125 * compile/compile-cplus-types.c: Fix includes.
15126 * cli/cli-interp.c: Fix includes.
15127
15128 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15129
15130 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15131 for padding.
15132
15133 2019-01-16 Tom Tromey <tom@tromey.com>
15134
15135 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15136 earlier.
15137 (struct objfile) <msymbols_range>: Move from top level.
15138 <msymbols>: New method.
15139 (class objfile_msymbols): Remove.
15140 * symtab.c (default_collect_symbol_completion_matches_break_on):
15141 Update.
15142 * symmisc.c (dump_msymbols): Update.
15143 * stabsread.c (scan_file_globals): Update.
15144 * objc-lang.c (info_selectors_command, info_classes_command)
15145 (find_methods): Update.
15146 * minsyms.c (find_solib_trampoline_target): Update.
15147 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15148 * coffread.c (coff_symfile_read): Update.
15149 * ada-lang.c (ada_lookup_simple_minsym)
15150 (ada_collect_symbol_completion_matches): Update.
15151
15152 2019-01-16 Tom Tromey <tom@tromey.com>
15153
15154 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15155 type. Remove no-argument constructor.
15156 <iterator::operator++>: Simplify.
15157 <begin>: Update.
15158 <end>: Use minimal_symbol_count.
15159
15160 2019-01-16 Tom Tromey <tom@tromey.com>
15161
15162 * objfiles.h (struct objfile) <psymtabs>: New method.
15163 (class objfile_psymtabs): Remove.
15164 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15165 typedef.
15166 <range>: New method.
15167 (require_partial_symbols): Change return type.
15168 * psymtab.c (require_partial_symbols)
15169 (psym_expand_symtabs_matching): Update.
15170 * mdebugread.c (parse_partial_symbols): Update.
15171 * dbxread.c (dbx_end_psymtab): Update.
15172
15173 2019-01-15 Tom Tromey <tom@tromey.com>
15174
15175 * symtab.c (lookup_objfile_from_block)
15176 (lookup_symbol_in_objfile_symtabs)
15177 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15178 (find_line_symtab, info_sources_command)
15179 (default_collect_symbol_completion_matches_break_on)
15180 (make_source_files_completion_list): Update.
15181 * symmisc.c (print_objfile_statistics, dump_objfile)
15182 (maintenance_print_symbols, maintenance_info_symtabs)
15183 (maintenance_check_symtabs, maintenance_info_line_tables):
15184 Update.
15185 * source.c (select_source_symtab)
15186 (forget_cached_source_info_for_objfile): Update.
15187 * objfiles.h (class objfile_compunits): Remove.
15188 (struct objfile) <compunits_range>: New typedef.
15189 (compunits): New method.
15190 * objfiles.c (objfile_relocate1): Update.
15191 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15192 * maint.c (count_symtabs_and_blocks): Update.
15193 * linespec.c (iterate_over_all_matching_symtabs): Update.
15194 * cp-support.c (add_symbol_overload_list_qualified): Update.
15195 * coffread.c (coff_symtab_read): Update.
15196 * ada-lang.c (add_nonlocal_symbols)
15197 (ada_collect_symbol_completion_matches)
15198 (ada_add_global_exceptions): Update.
15199
15200 2019-01-15 Tom Tromey <tom@tromey.com>
15201
15202 * progspace.h (program_space) <objfiles_safe_range>: New
15203 typedef.
15204 <objfiles_safe>: New method.
15205 * objfiles.h (class all_objfiles_safe): Remove.
15206 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15207 * jit.c (jit_inferior_exit_hook): Update.
15208
15209 2019-01-17 Tom Tromey <tom@tromey.com>
15210
15211 * progspace.h (program_space) <objfiles_range>: New typedef.
15212 <objfiles>: New method.
15213 <objfiles_head>: Rename from objfiles.
15214 (object_files): Update.
15215 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15216 * guile/scm-pretty-print.c
15217 (ppscm_find_pretty_printer_from_objfiles): Update.
15218 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15219 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15220 Update.
15221 * python/py-progspace.c (pspy_get_objfiles): Update.
15222 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15223 Update.
15224 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15225 (objfpy_lookup_objfile_by_build_id): Update.
15226 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15227 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15228 Update.
15229 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15230 (expand_symtab_containing_pc, lookup_objfile_from_block)
15231 (lookup_static_symbol, basic_lookup_transparent_type)
15232 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15233 (find_line_symtab, info_sources_command)
15234 (default_collect_symbol_completion_matches_break_on)
15235 (make_source_files_completion_list, find_main_name): Update.
15236 * symmisc.c (print_symbol_bcache_statistics)
15237 (print_objfile_statistics, maintenance_print_symbols)
15238 (maintenance_print_msymbols, maintenance_print_objfiles)
15239 (maintenance_info_symtabs, maintenance_check_symtabs)
15240 (maintenance_expand_symtabs, maintenance_info_line_tables):
15241 Update.
15242 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15243 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15244 (map_overlay_command, unmap_overlay_command)
15245 (simple_overlay_update, expand_symtabs_matching)
15246 (map_symbol_filenames): Update.
15247 * symfile-debug.c (set_debug_symfile): Update.
15248 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15249 Update.
15250 * source.c (select_source_symtab, forget_cached_source_info):
15251 Update.
15252 * solib.c (solib_read_symbols): Update.
15253 * solib-spu.c (append_ocl_sos): Update.
15254 * psymtab.c (maintenance_print_psymbols)
15255 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15256 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15257 * printcmd.c (info_symbol_command): Update.
15258 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15259 Update.
15260 * objfiles.h (class all_objfiles): Remove.
15261 * objfiles.c (have_partial_symbols, have_full_symbols)
15262 (have_minimal_symbols, qsort_cmp, update_section_map)
15263 (shared_objfile_contains_address_p)
15264 (default_iterate_over_objfiles_in_search_order): Update.
15265 * objc-lang.c (info_selectors_command, info_classes_command)
15266 (find_methods): Update.
15267 * minsyms.c (find_solib_trampoline_target): Update.
15268 * maint.c (maintenance_info_sections)
15269 (maintenance_translate_address, count_symtabs_and_blocks):
15270 Update.
15271 * main.c (captured_main_1): Update.
15272 * linux-thread-db.c (try_thread_db_load_from_pdir)
15273 (has_libpthread): Update.
15274 * linespec.c (iterate_over_all_matching_symtabs)
15275 (search_minsyms_for_name): Update.
15276 * jit.c (jit_find_objf_with_entry_addr): Update.
15277 * hppa-tdep.c (find_unwind_entry)
15278 (hppa_lookup_stub_minimal_symbol): Update.
15279 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15280 Update.
15281 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15282 (elf_gnu_ifunc_resolve_by_got): Update.
15283 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15284 * dwarf-index-write.c (save_gdb_index_command): Update.
15285 * cp-support.c (add_symbol_overload_list_qualified): Update.
15286 * breakpoint.c (create_overlay_event_breakpoint)
15287 (create_longjmp_master_breakpoint)
15288 (create_std_terminate_master_breakpoint)
15289 (create_exception_master_breakpoint): Update.
15290 * blockframe.c (find_pc_partial_function): Update.
15291 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15292 (ada_collect_symbol_completion_matches)
15293 (ada_add_global_exceptions): Update.
15294
15295 2019-01-17 Tom Tromey <tom@tromey.com>
15296
15297 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15298 declare VEC.
15299 (solib_target_parse_libraries): Change return type.
15300 (library_list_start_segment, library_list_start_section)
15301 (library_list_end_library, library_list_start_library); Update.
15302 (solib_target_free_library_list): Remove.
15303 (solib_target_parse_libraries): Remove cleanup. Change return
15304 type.
15305 (solib_target_current_sos): Update.
15306
15307 2019-01-17 Tom Tromey <tromey@bapiya>
15308
15309 * valprint.c: Replace "the the" with "the".
15310 * symtab.c: Replace "the the" with "the".
15311 * solib.c: Replace "the the" with "the".
15312 * solib-dsbt.c: Replace "the the" with "the".
15313 * linespec.c: Replace "the the" with "the".
15314 * dwarf2loc.h: Replace "the the" with "the".
15315 * amd64-windows-tdep.c: Replace "the the" with "the".
15316 * aarch64-tdep.c: Replace "the the" with "the".
15317
15318 2019-01-16 Keith Seitz <keiths@redhat.com>
15319
15320 PR gdb/23773
15321 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15322 <builder>: Rename to ..
15323 <m_builder>: ... this and make private.
15324 (dwarf2_cu::get_builder): New method. Change all users of
15325 `builder' to use this method.
15326 (dwarf2_start_symtab): Move to ...
15327 (dwarf2_cu::start_symtab): ... here. Update all callers
15328 (setup_type_unit_groups): Move to ...
15329 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15330 callers.
15331 (dwarf2_cu::reset_builder): New method.
15332 (process_full_compunit, process_full_type_unit): Use
15333 dwarf2_cu::reset_builder.
15334 (follow_die_offset): Record the ancestor CU if it is different
15335 from the followed DIE's CU.
15336 (follow_die_sig_1): Likewise.
15337
15338 2019-01-15 Tom Tromey <tom@tromey.com>
15339
15340 * remote.c (class remote_state) <buf>: Now a char_vector.
15341 <buf_size>: Remove.
15342 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15343 parameter.
15344 (remote_target::getpkt_or_notif_sane_1)
15345 (remote_target::getpkt_sane)
15346 (remote_target::getpkt_or_notif_sane): Likewise.
15347 (class remote_target) <putpkt>: New overload.
15348 (remote_target::read_frame): Change type of "buf_p". Remove
15349 sizeof_p parameter.
15350 (packet_ok): New overload.
15351 (packet_check_result): New overload.
15352 Update all uses.
15353
15354 2019-01-14 Tom Tromey <tom@tromey.com>
15355
15356 * remote-notif.c (handle_notification, remote_notif_ack)
15357 (remote_notif_parse): Make "buf" const.
15358 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15359 const.
15360 (remote_notif_parse, remote_notif_ack, handle_notification):
15361 Likewise.
15362 * remote.c (remote_notif_stop_parse): Make "buf" const.
15363 (remote_target::remote_parse_stop_reply): Make "buf" const.
15364 (remote_notif_stop_ack): Make "buf" const.
15365
15366 2019-01-14 Tom Tromey <tom@tromey.com>
15367
15368 * remote.c (remote_console_output): Make parameter const.
15369
15370 2019-01-14 Tom Tromey <tom@tromey.com>
15371
15372 * target-debug.h (target_debug_print_signals): Constify.
15373 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15374 * procfs.c (procfs_target::pass_signals): Update.
15375 * linux-nat.c (linux_nat_target::pass_signals): Update.
15376 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15377 * target-delegates.c: Rebuild.
15378 * remote.c (remote_target::program_signals): Update.
15379 (remote_target::pass_signals): Update.
15380 * target.c (target_pass_signals): Constify argument.
15381 (target_program_signals): Likewise.
15382 * target.h (struct target_ops) <pass_signals, program_signals>:
15383 Constify argument.
15384 (target_pass_signals, target_program_signals): Constify argument.
15385
15386 2019-01-14 Tom Tromey <tom@tromey.com>
15387
15388 PR tui/28819:
15389 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15390
15391 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15392
15393 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15394 field.
15395 * rs6000-tdep.c: Include reggroups.h.
15396 (IS_V_ALIAS_PSEUDOREG): Define.
15397 (rs6000_register_name): Return names for the "vX" aliases.
15398 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15399 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15400 aliases. Call default_register_reggroup_p for all other
15401 pseudo-registers.
15402 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15403 New functions.
15404 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15405 Handle "vX" aliases.
15406 (v_alias_pseudo_register_collect): New function.
15407 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15408 (rs6000_gdbarch_init): Initialize "vX" aliases as
15409 pseudo-registers. Restore registration of
15410 rs6000_pseudo_register_reggroup_p with
15411 set_tdesc_pseudo_register_reggroup_p.
15412
15413 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15414
15415 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15416 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15417 set_gdbarch_num_pseudo_regs.
15418
15419 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15420
15421 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15422 Remove arg prefixname, add do_set and do_show.
15423 Add member functions set_list and show_list.
15424 * cli/cli-style.c (class cli_style_option): Update accordingly.
15425 (style_set_list): Move to file scope.
15426 (style_show_list): Likewise.
15427 (set_style): Call help_list.
15428 (show_style): Call cmd_show_list.
15429 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15430 Update to use the new macro.
15431
15432 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15433
15434 * ada-lang.c (_initialize_ada_language): Expand the help text
15435 for the "catch exception" command.
15436
15437 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15438
15439 * symtab.c (matching_obj_sections): Initialize obj,
15440 declare it closer to its usage.
15441
15442 2019-01-10 Tom Tromey <tom@tromey.com>
15443
15444 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15445 (basic_inf_threads_range): Remove.
15446 (inf_threads_range, inf_non_exited_threads_range)
15447 (safe_inf_threads_range): Use next_adapter.
15448
15449 2019-01-10 Keith Seitz <keiths@redhat.com>
15450
15451 PR gdb/23712
15452 PR symtab/23010
15453 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15454 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15455
15456 2019-01-10 Keith Seitz <keiths@redhat.com>
15457
15458 PR gdb/23712
15459 PR symtab/23010
15460 * dictionary.c (pending_to_vector): Remove.
15461 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15462 Remove _1 suffix, replacing functions of the same name. Update
15463 all callers.
15464 (dict_create_hashed, dict_create_hashed_expandable)
15465 (dict_create_linear, dict_create_linear_expandable, dict_free)
15466 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15467 Make functions static.
15468
15469 2019-01-10 Keith Seitz <keiths@redhat.com>
15470
15471 PR gdb/23712
15472 PR symtab/23010
15473 * dictionary.h (struct dictionary): Replace declaration with
15474 multidictionary.
15475 (dict_create_hashed, dict_create_hashed_expandable)
15476 (dict_create_linear, dict_create_linear_expandable)
15477 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15478 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15479 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15480 taking multidictionary argument.
15481 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15482 * block.h (struct block) <dict>: Change to multidictionary
15483 and rename `multidict'.
15484 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15485 symmisc.c: Update all dictionary references to multidictionary.
15486
15487 2019-01-10 Keith Seitz <keiths@redhat.com>
15488
15489 PR gdb/23712
15490 PR symtab/23010
15491 * dictionary.c: Include unordered_map.
15492 (pending_to_vector): New function.
15493 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15494 Rewrite the non-"_1" functions to take vector instead
15495 of linked list.
15496 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15497 "new" _1 versions of the same name.
15498 (multidictionary): Define.
15499 (std::hash<enum language): New definition.
15500 (collate_pending_symbols_by_language, mdict_create_hashed)
15501 (mdict_create_hashed_expandable, mdict_create_linear)
15502 (mdict_create_linear_expandable, mdict_free)
15503 (find_language_dictionary, create_new_language_dictionary)
15504 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15505 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15506 (mdict_size, mdict_empty): New functions.
15507 * dictionary.h (mdict_iterator): Define.
15508
15509 2019-01-10 Pedro Alves <palves@redhat.com>
15510
15511 * breakpoint.c (read_uploaded_action)
15512 (create_tracepoint_from_upload): Adjust to use
15513 gdb::unique_xmalloc_ptr.
15514 * ctf.c (ctf_write_uploaded_tp):
15515 (SET_ARRAY_FIELD): Use emplace_back.
15516 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15517 * tracefile-tfile.c (tfile_write_uploaded_tp):
15518 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15519 gdb::unique_xmalloc_ptr.
15520 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15521 at_string, cond_string, cmd_strings>: Replace char pointers
15522 with gdb::unique_xmalloc_ptr.
15523
15524 2019-01-10 Pedro Alves <palves@redhat.com>
15525
15526 * solib-target.c (library_list_start_library): Don't xstrdup name.
15527
15528 2019-01-10 Pedro Alves <palves@redhat.com>
15529
15530 * mdebugread.c (parse_partial_symbols): Use
15531 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15532
15533 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15534
15535 * linux-fork.c (scoped_switch_fork_info)
15536 <~scoped_switch_fork_info>: Fix incorrect variable name.
15537
15538 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15539
15540 * linux-fork.c (scoped_switch_fork_info)
15541 <scoped_switch_fork_info>: Make explicit.
15542 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15543
15544 2019-01-10 Tom Tromey <tom@tromey.com>
15545
15546 * objfiles.h (objfile::reset_psymtabs): Update.
15547 * objfiles.c (objfile::objfile): Update.
15548 * psymtab.h (psymtab_storage::obstack): Update.
15549 (psymtab_storage::m_obstack): Use gdb::optional.
15550 (class psymtab_storage): Update comment. Remove objfile
15551 parameter.
15552 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15553
15554 2019-01-10 Tom Tromey <tom@tromey.com>
15555
15556 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15557 <free_psymtabs>: Now private.
15558 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15559 (allocate_psymtab): Use new method.
15560
15561 2019-01-10 Tom Tromey <tom@tromey.com>
15562
15563 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15564 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15565 * mdebugread.c (parse_partial_symbols): Use
15566 allocate_dependencies.
15567 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15568 allocate_dependencies.
15569 (process_psymtab_comp_unit_reader)
15570 (build_type_psymtab_dependencies): Likewise.
15571 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15572
15573 2019-01-10 Tom Tromey <tom@tromey.com>
15574
15575 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15576 PSYMBOL_SET_LANGUAGE.
15577 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15578
15579 2019-01-10 Tom Tromey <tom@tromey.com>
15580
15581 * psymtab.h (psymtab_storage::obstack): New method.
15582 <m_obstack>: Rename from obstack; now private.
15583 * psymtab.c (psymtab_storage): Update.
15584 * dwarf2read.c (create_addrmap_from_index)
15585 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15586 Update.
15587
15588 2019-01-10 Tom Tromey <tom@tromey.com>
15589
15590 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15591 * objfiles.h (objfile::reset_psymtabs): New method.
15592
15593 2019-01-10 Tom Tromey <tom@tromey.com>
15594
15595 * symmisc.c (print_symbol_bcache_statistics): Update.
15596 (print_objfile_statistics): Update.
15597 * symfile.c (reread_symbols): Update.
15598 * psymtab.h (class psymtab_storage): New.
15599 * psymtab.c (psymtab_storage): New constructor.
15600 (~psymtab_storage): New destructor.
15601 (require_partial_symbols): Update.
15602 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15603 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15604 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15605 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15606 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15607 (start_psymtab_common, end_psymtab_common)
15608 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15609 (allocate_psymtab): Update.
15610 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15611 Update.
15612 (dump_psymtab_addrmap, maintenance_print_psymbols)
15613 (maintenance_check_psymtabs): Update.
15614 (class objfile_psymtabs): Move to objfiles.h.
15615 * psympriv.h (discard_psymtab): Now inline.
15616 (psymtab_discarder::psymtab_discarder): Update.
15617 (psymtab_discarder::~psymtab_discarder): Update.
15618 (ALL_OBJFILE_PSYMTABS): Rewrite.
15619 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15620 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15621 Remove fields.
15622 <partial_symtabs>: New field.
15623 (class objfile_psymtabs): Move from psymtab.h. Update.
15624 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15625 psymbol_cache.
15626 (objfile::~objfile): Don't destroy psymbol_cache.
15627 * mdebugread.c (parse_partial_symbols): Update.
15628 * dwarf2read.c (create_addrmap_from_index)
15629 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15630 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15631 (add_partial_subprogram, dwarf2_ranges_read): Update.
15632 * dwarf-index-write.c (write_address_map)
15633 (write_one_signatured_type, recursively_write_psymbols)
15634 (class debug_names, class debug_names, write_psymtabs_to_index):
15635 Update.
15636
15637 2019-01-10 Tom Tromey <tom@tromey.com>
15638
15639 * symtab.h (SYMBOL_SET_NAMES): Update.
15640 (symbol_set_names): Update.
15641 (MSYMBOL_SET_NAMES): Update.
15642 * symtab.c (symbol_set_names): Change argument to be an
15643 objfile_per_bfd_storage.
15644 * psymtab.c (add_psymbol_to_bcache): Update.
15645 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15646
15647 2019-01-10 Tom Tromey <tom@tromey.com>
15648
15649 * symtab.c (create_demangled_names_hash): Change argument to be an
15650 objfile_per_bfd_storage.
15651 (symbol_set_names): Update.
15652
15653 2019-01-10 Tom Tromey <tom@tromey.com>
15654
15655 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15656 init_psymbol_list.
15657 * psymtab.c (init_psymbol_list): Do nothing if already called.
15658 * psympriv.h (init_psymbol_list): Add comment.
15659 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15660 init_psymbol_list.
15661 * dbxread.c (dbx_symfile_read): Unconditionally call
15662 init_psymbol_list.
15663
15664 2019-01-10 Tom Tromey <tom@tromey.com>
15665
15666 * xcoffread.c (scan_xcoff_symtab): Update.
15667 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15668 "where".
15669 * mdebugread.c (parse_partial_symbols)
15670 (handle_psymbol_enumerators): Update.
15671 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15672 * dbxread.c (read_dbx_symtab): Update.
15673 * psympriv.h (psymbol_placement): New enum.
15674 (add_psymbol_to_list): Update.
15675
15676 2019-01-10 Tom Tromey <tom@tromey.com>
15677
15678 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15679 static_psymbols parameters.
15680 (scan_xcoff_symtab): Update.
15681 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15682 static_psymbols parameters.
15683 * psympriv.h (start_psymtab_common): Update.
15684 * mdebugread.c (parse_partial_symbols): Update.
15685 * dwarf2read.c (create_partial_symtab): Update.
15686 * dbxread.c (read_dbx_symtab): Update.
15687 (start_psymtab): Remove global_psymbols and static_psymbols
15688 parameters.
15689
15690 2019-01-10 Tom Tromey <tom@tromey.com>
15691
15692 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15693 * psymtab.c (allocate_psymtab): Add comment.
15694 * psympriv.h (allocate_psymtab): Add comment.
15695 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15696 initializations.
15697 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15698
15699 2019-01-10 Tom Tromey <tom@tromey.com>
15700
15701 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15702 Don't declare.
15703 * mipsread.c: Include mdebugread.h.
15704 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15705 Declare.
15706 * elfread.c: Include mdebugread.h.
15707
15708 2019-01-09 Tom Tromey <tom@tromey.com>
15709
15710 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15711 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15712 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15713 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15714 (psym_lookup_symbol, psym_find_last_source_symtab)
15715 (psym_forget_cached_source_info, psym_print_stats)
15716 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15717 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15718 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15719 (psym_find_compunit_symtab_by_address)
15720 (maintenance_print_psymbols, maintenance_info_psymtabs)
15721 (maintenance_check_psymtabs): Use ranged for.
15722 * psymtab.h (class objfile_psymtabs): New.
15723 (require_partial_symbols): Return objfile_psymtabs.
15724 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15725
15726 2019-01-09 Tom Tromey <tom@tromey.com>
15727
15728 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15729 (find_pc_mapped_section, list_overlays_command)
15730 (map_overlay_command, unmap_overlay_command)
15731 (simple_overlay_update): Use all_objfiles.
15732 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15733 * printcmd.c (info_symbol_command): Use all_objfiles.
15734 * objfiles.h (ALL_OBJSECTIONS): Remove.
15735 * maint.c (maintenance_translate_address): Use all_objfiles.
15736 * gcore.c (gcore_create_callback): Use all_objfiles.
15737 (objfile_find_memory_regions): Likewise.
15738
15739 2019-01-09 Tom Tromey <tom@tromey.com>
15740
15741 * symtab.c (find_line_symtab, info_sources_command)
15742 (make_source_files_completion_list): Use objfile_compunits.
15743 * source.c (select_source_symtab): Use objfile_compunits.
15744 * objfiles.h (struct objfile): Update comment.
15745 (ALL_OBJFILES): Remove.
15746 (ALL_FILETABS): Remove.
15747 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15748 objfile_compunits.
15749
15750 2019-01-09 Tom Tromey <tom@tromey.com>
15751
15752 * symmisc.c (print_objfile_statistics, dump_objfile)
15753 (maintenance_print_symbols): Use compunit_filetabs.
15754 * source.c (forget_cached_source_info_for_objfile): Use
15755 compunit_filetabs.
15756 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15757 (ALL_FILETABS): Use compunit_filetabs.
15758 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15759 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15760
15761 2019-01-09 Tom Tromey <tom@tromey.com>
15762
15763 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15764 (compunit_filetabs): New.
15765 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15766 compunit_filetabs.
15767 (info_sources_command, make_source_files_completion_list): Remove
15768 declaration.
15769 * symmisc.c (print_objfile_statistics, dump_objfile)
15770 (maintenance_print_symbols): Remove declaration.
15771 (maintenance_info_symtabs): Use compunit_filetabs.
15772 (maintenance_info_line_tables): Likewise.
15773 * source.c (select_source_symtab): Change local variable name.
15774 (forget_cached_source_info_for_objfile): Remove declaration.
15775 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15776 * objfiles.c (objfile_relocate1): Remove declaration.
15777 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15778 declaration.
15779 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15780 * coffread.c (coff_symtab_read): Remove declaration.
15781 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15782 compunit_filetabs.
15783
15784 2019-01-09 Tom Tromey <tom@tromey.com>
15785
15786 * symtab.c (lookup_objfile_from_block)
15787 (find_pc_sect_compunit_symtab, search_symbols)
15788 (default_collect_symbol_completion_matches_break_on): Use
15789 objfile_compunits.
15790 * objfiles.h (ALL_COMPUNITS): Remove.
15791 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15792 * cp-support.c (add_symbol_overload_list_qualified): Use
15793 objfile_compunits.
15794 * ada-lang.c (ada_collect_symbol_completion_matches)
15795 (ada_add_global_exceptions): Use objfile_compunits.
15796
15797 2019-01-09 Tom Tromey <tom@tromey.com>
15798
15799 * source.c (select_source_symtab)
15800 (forget_cached_source_info_for_objfile): Remove declaration.
15801 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15802 declaration.
15803 * maint.c (count_symtabs_and_blocks): Remove declaration.
15804 * cp-support.c (add_symbol_overload_list_qualified): Remove
15805 declaration.
15806 * coffread.c (coff_symtab_read): Remove declaration.
15807 * symtab.c (lookup_symbol_in_objfile_symtabs)
15808 (basic_lookup_transparent_type_1): Use objfile_compunits.
15809 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15810 (info_sources_command, search_symbols)
15811 (default_collect_symbol_completion_matches_break_on)
15812 (make_source_files_completion_list): Remove declaration.
15813 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15814 (ada_collect_symbol_completion_matches)
15815 (ada_add_global_exceptions): Remove declaration.
15816 * linespec.c (iterate_over_all_matching_symtabs): Use
15817 objfile_compunits.
15818 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15819 (class objfile_compunits): New.
15820 (ALL_COMPUNITS): Use objfile_compunits.
15821 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15822 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15823 objfile_compunits.
15824 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15825
15826 2019-01-09 Tom Tromey <tom@tromey.com>
15827
15828 * symtab.c (search_symbols)
15829 (default_collect_symbol_completion_matches_break_on): Use
15830 objfile_msymbols.
15831 * ada-lang.c (ada_lookup_simple_minsym)
15832 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15833 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15834 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15835 objfile_msymbols.
15836 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15837 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15838 * objc-lang.c (find_methods): Use objfile_msymbols.
15839 (info_selectors_command, info_classes_command): Likewise.
15840 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15841 * objfiles.h (class objfile_msymbols): New.
15842 (ALL_OBJFILE_MSYMBOLS): Remove.
15843 (ALL_MSYMBOLS): Remove.
15844
15845 2019-01-09 Tom Tromey <tom@tromey.com>
15846
15847 * common/next-iterator.h (next_adapter): Add Iterator template
15848 parameter.
15849 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15850 (class all_objfiles_safe): New.
15851 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15852 * objfiles.c (put_objfile_before): Update comment.
15853 (add_separate_debug_objfile): Likewise.
15854 (free_all_objfiles): Use all_objfiles_safe.
15855 (objfile_purge_solibs): Likewise.
15856
15857 2019-01-09 Tom Tromey <tom@tromey.com>
15858
15859 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15860 (expand_symtab_containing_pc, lookup_static_symbol)
15861 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15862 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15863 all_objfiles.
15864 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15865 * breakpoint.c (create_overlay_event_breakpoint)
15866 (create_longjmp_master_breakpoint)
15867 (create_std_terminate_master_breakpoint)
15868 (create_exception_master_breakpoint): Use all_objfiles.
15869 * linux-thread-db.c (try_thread_db_load_from_pdir)
15870 (has_libpthread): Use all_objfiles.
15871 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15872 * linespec.c (iterate_over_all_matching_symtabs)
15873 (search_minsyms_for_name): Use all_objfiles.
15874 * maint.c (maintenance_info_sections): Use all_objfiles.
15875 * main.c (captured_main_1): Use all_objfiles.
15876 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15877 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15878 * guile/scm-pretty-print.c
15879 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15880 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15881 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15882 (maintenance_print_msymbols): Use all_objfiles.
15883 * source.c (select_source_symtab): Use all_objfiles.
15884 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15885 * symfile.c (remove_symbol_file_command)
15886 (expand_symtabs_matching, map_symbol_filenames): Use
15887 all_objfiles.
15888 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15889 all_objfiles.
15890 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15891 * objc-lang.c (find_methods): Use all_objfiles.
15892 * objfiles.c (have_partial_symbols, have_full_symbols)
15893 (have_minimal_symbols, qsort_cmp)
15894 (default_iterate_over_objfiles_in_search_order): Use
15895 all_objfiles.
15896 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15897 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15898 (maintenance_check_psymtabs): Use all_objfiles.
15899 (ALL_PSYMTABS): Remove.
15900 * compile/compile-object-run.c (do_module_cleanup): Use
15901 all_objfiles.
15902 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15903 * cp-support.c (add_symbol_overload_list_qualified): Use
15904 all_objfiles.
15905 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15906 Use all_objfiles.
15907 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15908 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15909 all_objfiles.
15910 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15911 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15912 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15913 Uses all_objfiles.
15914 * solib.c (solib_read_symbols): Use all_objfiles
15915
15916 2019-01-09 Tom Tromey <tom@tromey.com>
15917
15918 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15919 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15920 all_objfiles.
15921 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15922 * symmisc.c (print_symbol_bcache_statistics)
15923 (print_objfile_statistics, maintenance_print_objfiles)
15924 (maintenance_info_symtabs, maintenance_check_symtabs)
15925 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15926 all_objfiles.
15927 * source.c (forget_cached_source_info): Use all_objfiles.
15928 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15929 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15930 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15931 * objfiles.c (update_section_map): Use all_objfiles.
15932 (shared_objfile_contains_address_p): Likewise.
15933 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15934 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15935
15936 2019-01-09 Tom Tromey <tom@tromey.com>
15937
15938 * common/next-iterator.h: New file.
15939 * objfiles.h (class all_objfiles): New.
15940 (struct objfile_iterator): New.
15941
15942 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15943
15944 * NEWS: Move the description of the changed "frame", "select-frame",
15945 and "info frame" commands to the Changed commands section.
15946
15947 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15948
15949 * gdbtypes.c (check_stub_method_group): Remove handling of old
15950 mangling schemes.
15951 * linespec.c (find_methods): Likewise.
15952 * stabsread.c (read_member_functions): Likewise.
15953 * valops.c (search_struct_method): Likewise.
15954 (value_struct_elt_for_reference): Likewise.
15955 * NEWS: Mention this change.
15956
15957 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15958
15959 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15960 print_source_lines.
15961 * source.c (print_source_lines_base): Update line number check.
15962 (print_source_lines): New function.
15963 (source_lines_range::source_lines_range): New function.
15964 * source.h (class source_lines_range): New class.
15965 (print_source_lines): New declaration.
15966
15967 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15968
15969 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15970
15971 2019-01-08 Tom Tromey <tom@tromey.com>
15972 Simon Marchi <simon.marchi@ericsson.com>
15973
15974 PR gdb/24060
15975 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15976 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15977 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15978 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15979 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15980 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15981
15982 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15983
15984 * source.c (select_source_symtab): Move header comment to
15985 declaration in source.h.
15986 (forget_cached_source_info_for_objfile): Likewise.
15987 (forget_cached_source_info): Likewise.
15988 (identify_source_line): Likewise.
15989 * source.h (identify_source_line): Move declaration from symtab.h
15990 and add comment from source.c
15991 (print_source_lines): Likewise.
15992 (forget_cached_source_info_for_objfile): Likewise.
15993 (forget_cached_source_info): Likewise.
15994 (select_source_symtab): Likewise.
15995 (enum print_source_lines_flag): Move definition from symtab.h.
15996 * symtab.h (identify_source_line): Move declaration to source.h.
15997 (print_source_lines): Likewise.
15998 (forget_cached_source_info_for_objfile): Likewise.
15999 (forget_cached_source_info): Likewise.
16000 (select_source_symtab): Likewise.
16001 (enum print_source_lines_flag): Move definition to source.h.
16002 * tui/tui-hooks.c: Add 'source.h' include.
16003
16004 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16005
16006 * source.c (print_source_lines_base): Handle requests to print
16007 reverse line number sequences, and guard against empty lines
16008 string.
16009
16010 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16011
16012 * source.c (print_source_lines_base): Fix skip of '\r' if next
16013 character is '\n'.
16014
16015 2019-01-06 Tom Tromey <tom@tromey.com>
16016
16017 * c-exp.y (struct c_parse_state) <macro_original_text,
16018 expansion_obstack>: New member.
16019 (macro_original_text, expansion_obstack): Remove globals.
16020 (scan_macro_expansion, scanning_macro_expansion)
16021 (finished_macro_expansion): Update.
16022 (scan_macro_cleanup): Remove.
16023 (yylex, c_parse): Update.
16024
16025 2019-01-06 Tom Tromey <tom@tromey.com>
16026
16027 * c-exp.y (struct c_parse_state) <strings>: New member.
16028 (operator_stoken): Update.
16029
16030 2019-01-06 Tom Tromey <tom@tromey.com>
16031
16032 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16033 (union type_stack_elt) <typelist_val>: Now a pointer to
16034 std::vector.
16035 (type_stack_cleanup): Don't declare.
16036 (push_typelist): Update.
16037 * parse.c (pop_typelist): Return a std::vector.
16038 (push_typelist): Take a std::vector.
16039 (follow_types): Update. Do not free args.
16040 (type_stack_cleanup): Remove.
16041 * c-exp.y (struct c_parse_state): New.
16042 (cpstate): New global.
16043 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16044 (nonempty_typelist): Update.
16045 (func_mod): Create a new vector.
16046 (c_parse): Create a c_parse_state.
16047 (check_parameter_typelist): Do not delete params.
16048 (function_method): Update. Do not delete type_list.
16049
16050 2019-01-06 Tom Tromey <tom@tromey.com>
16051
16052 PR gdb/28155:
16053 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16054 check_typedef.
16055 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16056 (print_return_value): Likewise.
16057
16058 2019-01-05 Tom Tromey <tom@tromey.com>
16059
16060 * contrib/cleanup_check.py: Remove.
16061 * contrib/gcc-with-excheck: Remove.
16062 * contrib/exsummary.py: Remove.
16063 * contrib/excheck.py: Remove.
16064
16065 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16066
16067 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16068 NULL. Initialize tpprev to NULL instead of assigning it
16069 to NULL on the next statement.
16070 * windows-nat.c (windows_delete_thread): Remove check for
16071 main_thread_id before printing thread exit notifications.
16072 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16073 Remove thread ID check against main_thread_id.
16074 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16075 windows_delete_thread.
16076 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16077
16078 2019-01-04 Tom Tromey <tom@tromey.com>
16079
16080 * compile/compile.c (_initialize_compile): Use upper case for
16081 metasyntactic variables.
16082 * symmisc.c (_initialize_symmisc): Use upper case for
16083 metasyntactic variables.
16084 * psymtab.c (_initialize_psymtab): Use upper case for
16085 metasyntactic variables.
16086 * demangle.c (demangle_command): Use upper case for metasyntactic
16087 variables.
16088 (_initialize_demangler): Likewise.
16089 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16090 variables.
16091
16092 2019-01-03 Tom Tromey <tom@tromey.com>
16093
16094 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16095
16096 2019-01-03 Tom Tromey <tom@tromey.com>
16097
16098 * python/py-symtab.c (salpy_str): Update.
16099 (struct salpy_sal_object) <symtab>: Now a PyObject.
16100 (salpy_dealloc): Update.
16101 (del_objfile_sal): Use gdbpy_ref.
16102
16103 2019-01-03 Tom Tromey <tom@tromey.com>
16104
16105 * python/py-type.c (convert_field): Use new_reference. Return
16106 gdbpy_ref.
16107 (make_fielditem): Return gdbpy_ref.
16108 (typy_fields): Update.
16109 (typy_getitem): Update.
16110 (field_name): Return gdbpy_ref. Use new_reference.
16111 (typy_iterator_iternext): Update.
16112
16113 2019-01-03 Tom Tromey <tom@tromey.com>
16114
16115 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16116
16117 2019-01-03 Tom Tromey <tom@tromey.com>
16118
16119 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16120 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16121 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16122 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16123 (pspy_set_type_printers): Likewise.
16124 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16125 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16126 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16127 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16128 (objfpy_set_type_printers): Likewise.
16129
16130 2019-01-03 Tom Tromey <tom@tromey.com>
16131
16132 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16133 (gdbpy_print_stack): Use gdbpy_err_fetch.
16134 * python/python-internal.h (class gdbpy_err_fetch): New class.
16135 (class gdbpy_enter) <m_error_type, m_error_value,
16136 m_error_traceback>: Remove.
16137 <m_error>: New member.
16138 (gdbpy_exception_to_string): Don't declare.
16139 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16140 * python/py-value.c (convert_value_from_python): Use
16141 gdbpy_err_fetch.
16142 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16143 gdbpy_exception_to_string.
16144 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16145 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16146 gdbpy_err_fetch.
16147
16148 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16149
16150 * linux-nat.c (delete_lwp_cleanup): Delete.
16151 (struct lwp_deleter): New struct.
16152 (lwp_info_up): New typedef.
16153 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16154 lwp_info_up.
16155
16156 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16157
16158 * linux-fork.c (class scoped_switch_fork_info): New class.
16159 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16160
16161 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16162
16163 * valops.c (find_overload_match): Remove use of null_cleanup, and
16164 calls to do_cleanups.
16165
16166 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16167
16168 * compile/compile-cplus-types.c
16169 (compile_cplus_instance::decl_name): Handle changes to
16170 cp_func_name.
16171 * cp-support.c (cp_func_name): Update header comment, update
16172 return type.
16173 * cp-support.h (cp_func_name): Update return type in declaration.
16174 * valops.c (find_overload_match): Move temp_func local to top
16175 level of function and change its type. Use temp_func to hold and
16176 delete temporary string obtained from cp_func_name.
16177
16178 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16179
16180 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16181 gdb::char_vector, remove cleanup, and update uses of `msg`.
16182
16183 2019-01-03 Jim Wilson <jimw@sifive.com>
16184
16185 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16186
16187 2019-01-02 Tom Tromey <tom@tromey.com>
16188
16189 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16190 (tdesc_parse_xml): Remove cleanups.
16191 * target-descriptions.h (make_cleanup_free_target_description):
16192 Don't declare.
16193 (target_desc_deleter): New struct.
16194 (target_desc_up): New typedef.
16195 * target-descriptions.c (target_desc_deleter::operator()): Rename
16196 from free_target_description.
16197 (make_cleanup_free_target_description): Remove.
16198
16199 2019-01-02 Tom Tromey <tom@tromey.com>
16200
16201 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16202 constructor, destructor.
16203 (linespec_parser): Remove typedef.
16204 (~linespec_parser): Rename from linespec_parser_delete.
16205 (linespec_lex_to_end, linespec_complete_label)
16206 (linespec_complete): Update.
16207 (decode_line_full): Remove cleanups.
16208 (decode_line_1): Update.
16209
16210 2019-01-02 Tom Tromey <tom@tromey.com>
16211
16212 * python/python-internal.h (inferior_to_inferior_object): Change
16213 return type.
16214 * python/py-exitedevent.c (create_exited_event_object): Update.
16215 * python/py-inferior.c (inferior_to_inferior_object): Return
16216 gdbpy_ref.
16217 (python_new_inferior, python_inferior_deleted)
16218 (thread_to_thread_object, delete_thread_object)
16219 (build_inferior_list, gdbpy_selected_inferior): Update.
16220 * python/py-infthread.c (create_thread_object): Update. Also fail
16221 if inferior_to_inferior_object fails.
16222
16223 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16224
16225 * inferior.h (class inferior) <displaced_step_state>: New field.
16226 * infrun.h (struct displaced_step_state): Move here from
16227 infrun.c. Initialize fields, add constructor.
16228 <inf>: Remove field.
16229 <reset>: New method.
16230 * infrun.c (struct displaced_step_inferior_state): Move to
16231 infrun.h.
16232 (displaced_step_inferior_states): Remove.
16233 (get_displaced_stepping_state): Adust.
16234 (displaced_step_in_progress_any_inferior): Adjust.
16235 (displaced_step_in_progress_thread): Adjust.
16236 (displaced_step_in_progress): Adjust.
16237 (add_displaced_stepping_state): Remove.
16238 (get_displaced_step_closure_by_addr): Adjust.
16239 (remove_displaced_stepping_state): Remove.
16240 (infrun_inferior_exit): Call displaced_step_state.reset.
16241 (use_displaced_stepping): Don't check for NULL.
16242 (displaced_step_prepare_throw): Call
16243 get_displaced_stepping_state.
16244 (displaced_step_fixup): Don't check for NULL.
16245 (prepare_for_detach): Don't check for NULL.
16246
16247 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16248
16249 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16250 in case of call that did not complete.
16251
16252 2019-01-02 Andrey Utkin <autkin@undo.io>
16253
16254 * symfile.c (find_separate_debug_file): Fix search of debug files for
16255 remote debuggee.
16256
16257 2019-01-02 Tom Tromey <tom@tromey.com>
16258
16259 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16260 indentation.
16261 * python/py-frame.c (frapy_older): Remove cast.
16262 (frapy_newer): Likewise.
16263 * python/py-breakpoint.c (local_setattro): Remove cast.
16264 * python/py-arch.c (archpy_name): Remove local variable.
16265 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16266
16267 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16268
16269 * unittests/basic_string_view/element_access/char/empty.cc:
16270 Fix year range in copyright header.
16271
16272 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16273
16274 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16275 Delete.
16276 <operator==>: Update with for removed field.
16277 <hash>: Likewise.
16278 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16279 <isa_features>: ...this.
16280 <abi_features>: New field.
16281 (riscv_isa_flen): Update comment.
16282 (riscv_abi_xlen): New declaration.
16283 (riscv_abi_flen): New declaration.
16284 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16285 isa_features.
16286 (riscv_abi_xlen): New function.
16287 (riscv_isa_flen): Update to get answer from isa_features.
16288 (riscv_abi_flen): New function.
16289 (riscv_has_fp_abi): Update to get answer from abi_features.
16290 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16291 xlen and flen.
16292 (riscv_call_info) <xlen, flen>: Update comment.
16293 (riscv_call_arg_struct): Remove invalid assertions
16294 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16295 is removed.
16296 (riscv_gdbarch_init): Gather isa features and abi features
16297 separately, ensure both match on the gdbarch when reusing an old
16298 gdbarch. Relax an error check to allow 32-bit abi float to run on
16299 a target with 64-bit float hardware.
16300
16301 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16302
16303 * source.c (search_command_helper): Stop reverse search
16304 when line 1 has been searched.
16305
16306 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16307
16308 * record-full.c (record_full_base_target::close): Rewrite
16309 record_full_core_buf_list free logic.
16310
16311 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16312
16313 * break-catch-syscall.c (print_one_catch_syscall): xfree
16314 the last text.
16315
16316 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16317
16318 * top.c (print_gdb_version): Update Copyright year in version
16319 message.
16320
16321 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16322
16323 Update copyright year range in all GDB files.
16324
16325 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16326
16327 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16328
16329 For older changes see ChangeLog-2018.
16330 \f
16331 Local Variables:
16332 mode: change-log
16333 left-margin: 8
16334 fill-column: 74
16335 version-control: never
16336 coding: utf-8
16337 End:
16338
This page took 0.378555 seconds and 4 git commands to generate.