]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Split global symbol search into separate functions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f97a63c5
AB
12019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * symtab.c (symbol_search::compare_search_syms): Update header
4 comment.
5 (global_symbol_searcher::is_suitable_msymbol): New function.
6 (global_symbol_searcher::expand_symtabs): New function.
7 (global_symbol_searcher::add_matching_symbols): New function.
8 (global_symbol_searcher::add_matching_msymbols): New function.
9 (global_symbol_searcher::search): Move most of the content
10 into the new functions above, and call them as needed.
11 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
12 function.
13 (global_symbol_searcher) <add_matching_symbols>: New member
14 function.
15 (global_symbol_searcher) <add_matching_msymbols>: New member
16 function.
17 (global_symbol_searcher) <is_suitable_msymbol>: New member
18 function.
19
293b38d6
AB
202019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
23 -symbol-info-module-variables entries.
24 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
25 (mi_cmd_symbol_info_module_variables): Declare.
26 * mi/mi-symbol-cmds.c
27 (module_symbol_search_iterator): New typedef.
28 (output_module_symbols_in_single_module_and_file): New function.
29 (output_module_symbols_in_single_module): New function.
30 (mi_info_module_functions_or_variables): New function.
31 (mi_cmd_symbol_info_module_functions): New function.
32 (mi_cmd_symbol_info_module_variables): New function.
33 * NEWS: Mention new MI command.
34
4cbd39b2
CB
352019-12-03 Christian Biesinger <cbiesinger@google.com>
36
37 * bcache.c (hash): Remove.
38 (hash_continue): Remove.
39 * bcache.h (hash): Remove.
40 (hash_continue): Remove.
41 (struct bcache) <ctor>: Update.
42 * psymtab.c (psymbol_hash): Update.
43 * stabsread.c (hashname): Update.
44 * utils.h (fast_hash): Add an argument for a start value,
45 defaulting to zero.
46
82f910ea
PW
472019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
48 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
49 (destroy_block_symbol_cache): New function.
50 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
51 (resize_symbol_cache): Likewise.
52
de2396d0
TT
532019-12-02 Tom Tromey <tom@tromey.com>
54
55 * unittests/tui-selftests.c (run_tests): Make conditional.
56 (_initialize_tui_selftest): Make conditional.
57
638d85bc
CB
582019-12-02 Christian Biesinger <cbiesinger@google.com>
59
60 * aix-thread.c (debug_aix_thread): Change type to bool.
61
7532a164
LM
622019-12-02 Luis Machado <luis.machado@linaro.org>
63
64 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
65
216a7e6b
AB
662019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * dwarf2read.c (read_tag_string_type): Read the fields required to
69 make a dynamic string, and possibly create a dynamic range for the
70 string.
71 (attr_to_dynamic_prop): Setup is_reference based on the type of
72 attribute being processed.
73 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
74 (resolve_dynamic_array): Rename to...
75 (resolve_dynamic_array_or_string): ...this, update header comment,
76 and accept TYPE_CODE_STRING.
77 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
78
11a8b164
AB
792019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
80
81 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
82 of its implementation from...
83 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
84 the new function.
85
5bbd8269
AB
862019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
89 create a range with stride where appropriate.
90 * f-valprint.c: Include 'gdbarch.h'.
91 (f77_print_array_1): Take the stride into account when walking the
92 array. Also convert the stride into addressable units.
93 * gdbtypes.c (create_range_type): Initialise the stride to
94 constant zero.
95 (create_range_type_with_stride): New function, initialise the
96 range as normal, and then setup the stride.
97 (has_static_range): Include the stride here. Also change the
98 return type to bool.
99 (create_array_type_with_stride): Consider the range stride if the
100 array isn't given its own stride.
101 (resolve_dynamic_range): Resolve the stride if needed.
102 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
103 (struct range_bounds) <flag_is_byte_stride>: New member variable.
104 (TYPE_BIT_STRIDE): Define.
105 (TYPE_ARRAY_BIT_STRIDE): Define.
106 (create_range_type_with_stride): Declare.
107 * valarith.c (value_subscripted_rvalue): Take range stride into
108 account when walking the array.
109
82e3b564
TT
1102019-12-01 Tom Tromey <tom@tromey.com>
111
112 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
113 specially.
114
517d261d
TT
1152019-12-01 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
118 \0.
119 * unittests/tui-selftests.c: New file.
120 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
121
484c9b64
TT
1222019-12-01 Tom Tromey <tom@tromey.com>
123
124 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
125
a2a7af0c
TT
1262019-12-01 Tom Tromey <tom@tromey.com>
127
128 * NEWS: Document new settings.
129 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
130 * tui/tui-win.c (_initialize_tui_win): Add border style
131 observers.
132 * tui/tui-io.h (tui_apply_style): Declare.
133 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
134 longer static.
135 (apply_ansi_escape, tui_set_reverse_mode): Update.
136 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
137 Add "skip_intensity" parameter.
138 <changed>: New member.
139 <do_set_value>: Declare.
140 (tui_border_style, tui_active_border_style): Declare.
141 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
142 globals.
143 (cli_style_option): Initialize "changed".
144 (cli_style_option::do_set_value): New function.
145 (cli_style_option::add_setshow_commands): Add "skip_intensity"
146 parameter. Update.
147 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
148 (_initialize_cli_style): Update. Create TUI border style
149 commands.
150
d1da6b01
TT
1512019-12-01 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
154 parameter.
155 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
156 parameter.
157 * tui/tui-win.h (compact_source): Declare.
158 * tui/tui-win.c (compact_source): New global.
159 (tui_set_compact_source, tui_show_compact_source): New functions.
160 (_initialize_tui_win): Add "compact-source" setting.
161 * tui/tui-source.c (tui_source_window::set_contents): Handle
162 compact_source setting.
163 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
164 * NEWS: Document new setting.
165
489dbda6
TT
1662019-11-30 Tom Tromey <tom@tromey.com>
167
168 * dwarf2read.c (dwarf2_add_field): Include field offset when
169 computing variant part length.
170
bf498525
PW
1712019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
172 * NEWS: Mention define-prefix. Tell that command names can now
173 contain a . character.
174
be09caf1
PW
1752019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
176
177 * command.h (valid_cmd_char_p): Declare.
178 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
179 the check of valid command char.
180 (find_command_name_length, valid_user_defined_cmd_name_p): Use
181 valid_cmd_char_p.
182 * cli/cli-script.c (validate_comname): Likewise.
183 * completer.c (gdb_completer_command_word_break_characters):
184 Do not remove . from the word break char, update comments.
185 (complete_line_internal_1): Use valid_cmd_char_p.
186 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
187 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
188
c6ac7fc9
PW
1892019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
190
191 * cli/cli-script.c (do_define_command): Ensure a redefined
192 prefix command is kept as a prefix command.
193 (define_prefix_command): New function.
194 (show_user_1): Report user defined prefixes.
195 (_initialize_cli_script): Create the new 'define-prefix' command.
196 Add completers for 'define' and 'document'.
197 * top.c (execute_command): If command is a user-defined prefix only
198 command, report the list of commands for this prefix command.
199
a992a3b0
TBA
2002019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201
202 * valops.c (find_oload_champ): Improve debug output.
203
e9194a1a
TBA
2042019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
205
206 * valops.c (find_oload_champ): Print part of debug messages
207 before the badness vector is std::move'd.
208
53a008a6
TT
2092019-11-28 Tom Tromey <tom@tromey.com>
210
211 * value.c (creal_internal_fn): Fix comment.
212
bab05c83
TT
2132019-11-28 Tom Tromey <tom@tromey.com>
214
215 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
216 flag_bound_evaluated>: Now unsigned.
217
2522f049
TT
2182019-11-28 Tom Tromey <tom@tromey.com>
219
220 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
221 declare.
222
38b49e22
MS
2232019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
224
225 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
226 debug output.
227 * jit.c (jit_unregister_code): Add debug print to match
228 `jit_register_code`.
229
35125921
CB
2302019-11-27 Christian Biesinger <cbiesinger@google.com>
231
232 * NEWS: Mention the new multithreaded symbol loading.
233
62e77f56
CB
2342019-11-27 Christian Biesinger <cbiesinger@google.com>
235
236 * maint.c (n_worker_threads): Default to 0.
237 (worker_threads_disabled): New function.
238 * maint.h (worker_threads_disabled): New function.
239 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
240 here if worker_threads_disabled () is true.
241 (minimal_symbol_reader::install): Skip all threading if
242 worker_threads_disabled () is true.
243
f29d7f6b
CB
2442019-11-27 Christian Biesinger <cbiesinger@google.com>
245
246 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
247 hash code if possible.
248 (add_minsym_to_demangled_hash_table): Likewise.
249 (minimal_symbol_reader::install): Compute the hash codes for msymbol
250 on the background thread.
251 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
252 Add these fields.
253
e76b2246
CB
2542019-11-27 Christian Biesinger <cbiesinger@google.com>
255
256 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
257 of the mangled name on the background thread.
258 * symtab.c (symbol_set_names): Allow passing in the hash of the
259 linkage_name.
260 * symtab.h (symbol_set_names): Likewise.
261
8d9a2568
KB
2622019-11-27 Kevin Buettner <kevinb@redhat.com>
263
264 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
265 physnames are computed for inherited DIEs.
266
fad03f6e
TT
2672019-11-27 Tom Tromey <tromey@adacore.com>
268
269 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
270 backslashes.
271 * cp-support.c: Remove unnecessary backslashes.
272
43678b0a
CB
2732019-11-27 Christian Biesinger <cbiesinger@google.com>
274
275 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
276 with sym->set_linkage_name.
277 * coffread.c (coff_read_enum_type): Likewise.
278 * mdebugread.c (parse_symbol): Likewise.
279 * stabsread.c (patch_block_stabs): Likewise.
280 (define_symbol): Likewise.
281 (read_enum_type): Likewise.
282 (common_block_end): Likewise.
283 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
284 function.
285 (SYMBOL_SET_LINKAGE_NAME): Remove.
286 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
287 with sym->set_linkage_name.
288
db5960b4
AB
2892019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
292 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
293 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
294 * NEWS: Mention new MI command.
295
7dc42066
AB
2962019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
299 '-symbol-info-types', and '-symbol-info-variables'.
300 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
301 (mi_cmd_symbol_info_types): Declare.
302 (mi_cmd_symbol_info_variables): Declare.
303 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
304 (output_debug_symbol): New function.
305 (output_nondebug_symbol): New function.
306 (mi_symbol_info): New function.
307 (mi_info_functions_or_variables): New function.
308 (mi_cmd_symbol_info_functions): New function.
309 (mi_cmd_symbol_info_types): New function.
310 (mi_cmd_symbol_info_variables): New function.
311 * NEWS: Mention new commands.
312
5f512a7d
AB
3132019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * symtab.c (symbol_to_info_string): New function, most content
316 moved from print_symbol_info, but updated to return a std::string.
317 (print_symbol_info): Update to use symbol_to_info_string and print
318 returned string.
319 * symtab.h (symbol_to_info_string): Declare new function.
320
470c0b1c
AB
3212019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * python/python.c (gdbpy_rbreak): Convert to using
324 global_symbol_searcher.
325 * symtab.c (file_matches): Convert return type to bool, change
326 file list to std::vector, update header comment.
327 (search_symbols): Rename to...
328 (global_symbol_searcher::search): ...this and update now its
329 a member function of global_symbol_searcher. Take account of the
330 changes to file_matches.
331 (symtab_symbol_info): Convert to using global_symbol_searcher.
332 (rbreak_command): Likewise.
333 (search_module_symbols): Likewise.
334 * symtab.h (enum symbol_search): Update comment.
335 (search_symbols): Remove declaration.
336 (class global_symbol_searcher): New class.
337
57357d9d
TT
3382019-11-26 Tom Tromey <tromey@adacore.com>
339
340 * cp-support.c (_initialize_cp_support): Conditionally initialize
341 gdb_demangle_attempt_core_dump.
342
3ea16160
TT
3432019-11-26 Tom Tromey <tom@tromey.com>
344
345 * python/py-function.c (fnpy_init): Update.
346 * value.h (add_internal_function): Adjust declaration.
347 * value.c (function_destroyer): Remove.
348 (do_add_internal_function): Don't set destroyer or copy name.
349 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
350 Set name_allocated.
351 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
352 (cmdpy_init): Set name_allocated.
353 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
354 member.
355 (~cmd_list_element): Free "name" if needed.
356
1a6d41c6
TT
3572019-11-26 Tom Tromey <tom@tromey.com>
358
359 * value.h (add_internal_function): Add new overload. Move
360 documentation from value.h.
361 * value.c (do_add_internal_function): New function.
362 (add_internal_function): Use it. Add new overload.
363 (function_destroyer): Don't free doc.
364 * python/py-function.c (fnpy_init): Update.
365
8318f3c3
TT
3662019-11-26 Tom Tromey <tom@tromey.com>
367
368 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
369 (cmdpy_init): Set "doc_allocated".
370
4da8c3a8
TT
3712019-11-26 Tom Tromey <tom@tromey.com>
372
373 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
374 name of worker thread.
375 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
376 pthread_setname_np.
377 * configure, config.in: Rebuild.
378
971db5e2
TT
3792019-11-26 Tom Tromey <tom@tromey.com>
380
381 * python/python.c (class gdbpy_gil): New.
382 (struct gdbpy_event): Add constructor, destructor, operator().
383 (gdbpy_post_event): Use run_on_main_thread.
384 (gdbpy_initialize_events): Remove.
385 (do_start_initialization): Update.
386
22138db6
TT
3872019-11-26 Tom Tromey <tom@tromey.com>
388
389 * NEWS: Add entry.
390 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
391 commands. Call update_thread_pool_size.
392 (update_thread_pool_size, maintenance_set_worker_threads): New
393 functions.
394 (n_worker_threads): New global.
395
d55c9a68
TT
3962019-11-26 Christian Biesinger <cbiesinger@google.com>
397 Tom Tromey <tom@tromey.com>
398
399 * minsyms.c (minimal_symbol_reader::install): Use
400 parallel_for_each.
401 * gdbsupport/parallel-for.h: New file.
402 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
403
a0b57563
CB
4042019-11-26 Christian Biesinger <cbiesinger@google.com>
405 Tom Tromey <tom@tromey.com>
406
407 * gdbsupport/thread-pool.h: New file.
408 * gdbsupport/thread-pool.c: New file.
409 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
410 (HFILES_NO_SRCDIR): Add thread-pool.h.
411
3b3978bc
TT
4122019-11-26 Tom Tromey <tom@tromey.com>
413
414 * event-top.h (thread_local_segv_handler): Declare.
415 * event-top.c (thread_local_segv_handler): New global.
416 (install_handle_sigsegv, handle_sigsegv): New functions.
417 (async_init_signals): Install SIGSEGV handler.
418 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
419 thread-local.
420 (report_failed_demangle): New function.
421 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
422 handler-setting code, instead use segv_handler. Run warning code
423 on main thread.
424
9411c49e
TT
4252019-11-26 Tom Tromey <tom@tromey.com>
426
427 * run-on-main-thread.c: New file.
428 * run-on-main-thread.h: New file.
429 * unittests/main-thread-selftests.c: New file.
430 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
431 main-thread-selftests.c.
432 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
433 (COMMON_SFILES): Add run-on-main-thread.c.
434
c3efb965
TT
4352019-11-26 Tom Tromey <tom@tromey.com>
436
437 * main.c (setup_alternate_signal_stack): Remove.
438 (captured_main_1): Use gdb::alternate_signal_stack.
439 * gdbsupport/alt-stack.h: New file.
440
21987b9c
TT
4412019-11-26 Tom Tromey <tom@tromey.com>
442
443 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
444 Remove comment.
445 (save_original_signals_state, restore_original_signals_state): Use
446 gdb_sigmask.
447 * linux-nat.c (block_child_signals, restore_child_signals_mask)
448 (_initialize_linux_nat): Use gdb_sigmask.
449 * guile/guile.c (_initialize_guile): Use block_signals.
450 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
451 * gdbsupport/gdb-sigmask.h: New file.
452 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
453 * cp-support.c (gdb_demangle): Use gdb_sigmask.
454 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
455 pthread_sigmask.
456 * configure, config.in: Rebuild.
457 * gdbsupport/block-signals.h: New file.
458
5e030278
TT
4592019-11-26 Tom Tromey <tom@tromey.com>
460
461 * acinclude.m4: Include ax_pthread.m4.
462 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
463 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
464 (CLIBS): Use PTHREAD_LIBS.
465 (aclocal_m4_deps): Add ax_pthread.m4.
466 * config.in, configure: Rebuild.
467 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
468
5a79c107
TT
4692019-11-26 Tom Tromey <tom@tromey.com>
470
471 * symtab.h (struct minimal_symbol) <name_set>: New member.
472 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
473 Don't call symbol_set_names.
474 (minimal_symbol_reader::install): Call symbol_set_names.
475
aa369509
PW
4762019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
477
478 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
479 restore_active_ext_lang, as GIL is needed for (indirectly)
480 called PyOS_InterruptOccurred.
481
cadc9cb8
SM
4822019-11-26 Simon Marchi <simon.marchi@efficios.com>
483
484 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
485 definition.
486
d04afd58
SM
4872019-11-26 Simon Marchi <simon.marchi@efficios.com>
488
489 * remote-sim.c (simulator_command): Make static, remove
490 declaration.
491
dd694d77
SM
4922019-11-26 Simon Marchi <simon.marchi@efficios.com>
493
494 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
495 static.
496 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
497 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
498 (main): Likewise.
499 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
500 (main): Likewise.
501 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
502 (main): Likewise.
503 * unittests/basic_string_view/element_access/char/1.cc (test01):
504 Likewise.
505 (main): Likewise.
506 * unittests/basic_string_view/element_access/char/empty.cc (main):
507 Likewise.
508 * unittests/basic_string_view/element_access/char/front_back.cc
509 (test01): Likewise.
510 (main): Likewise.
511 * unittests/basic_string_view/inserters/char/2.cc (test05):
512 Likewise.
513 (main): Likewise.
514 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
515 (test01): Likewise.
516 (main): Likewise.
517 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
518 (test01): Likewise.
519 (main): Likewise.
520 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
521 Likewise.
522 * unittests/basic_string_view/operations/compare/char/1.cc
523 (test01): Likewise.
524 (main): Likewise.
525 * unittests/basic_string_view/operations/compare/char/13650.cc
526 (test01): Likewise.
527 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
528 Likewise.
529 (main): Likewise.
530 * unittests/basic_string_view/operations/data/char/1.cc (test01):
531 Likewise.
532 (main): Likewise.
533 * unittests/basic_string_view/operations/find/char/1.cc (test01):
534 Likewise.
535 (main): Likewise.
536 * unittests/basic_string_view/operations/find/char/2.cc (test02):
537 Likewise.
538 (main): Likewise.
539 * unittests/basic_string_view/operations/find/char/3.cc (test03):
540 Likewise.
541 (main): Likewise.
542 * unittests/basic_string_view/operations/find/char/4.cc (main):
543 Likewise.
544 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
545 Likewise.
546 (main): Likewise.
547 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
548 Likewise.
549 (main): Likewise.
550 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
551 Likewise.
552 (main): Likewise.
553 * unittests/basic_string_view/operations/substr/char/1.cc
554 (test01): Likewise.
555 (main): Likewise.
556 * unittests/basic_string_view/operators/char/2.cc (main):
557 Likewise.
558 * unittests/optional/assignment/1.cc (test): Likewise.
559 * unittests/optional/assignment/2.cc (test): Likewise.
560 * unittests/optional/assignment/3.cc (test): Likewise.
561 * unittests/optional/assignment/4.cc (test): Likewise.
562 * unittests/optional/assignment/5.cc (test): Likewise.
563 * unittests/optional/assignment/6.cc (test): Likewise.
564 * unittests/optional/assignment/7.cc (test): Likewise.
565 * unittests/optional/cons/copy.cc (test): Likewise.
566 * unittests/optional/cons/default.cc (test): Likewise.
567 * unittests/optional/cons/move.cc (test): Likewise.
568 * unittests/optional/cons/value.cc (test): Likewise.
569 * unittests/optional/in_place.cc (test): Likewise.
570 * unittests/optional/observers/1.cc (test): Likewise.
571 * unittests/optional/observers/2.cc (test): Likewise.
572
3b5c1d49
SM
5732019-11-26 Simon Marchi <simon.marchi@efficios.com>
574
575 * tui-win.h (tui_set_var_cmd): Remove.
576 * tui-win.c (tui_set_var_cmd): Make static.
577
adce99fe
SM
5782019-11-26 Simon Marchi <simon.marchi@efficios.com>
579
580 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
581 rbreak_command_wrapper): Remove.
582 * symtab.c (rbreak_command_wrapper): Remove.
583
fe3adccf
SM
5842019-11-26 Simon Marchi <simon.marchi@efficios.com>
585
586 * inferior.h (info_terminal_command): Remove declaration.
587 * inflow.c (info_terminal_command): Make static.
588
b926335f
SM
5892019-11-26 Simon Marchi <simon.marchi@efficios.com>
590
591 * inferior.c (exit_inferior_silent): Remove.
592
b62f6f54
SM
5932019-11-26 Simon Marchi <simon.marchi@efficios.com>
594
595 * dictionary.c (dict_empty, mdict_empty): Remove.
596 * dictionary.c (mdict_empty): Remove.
597
cb8c24b6
SM
5982019-11-26 Simon Marchi <simon.marchi@efficios.com>
599
600 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
601 (arc_insn_get_memory_offset): Likewise.
602 (arc_insn_dump): Likewise.
603 * cp-support.c (test_cp_symbol_name_matches): Likewise.
604 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
605 * dictionary.c (dict_iterator_next): Likewise.
606 (dict_iter_match_first): Likewise.
607 (dict_iter_match_next): Likewise.
608 * f-lang.c (evaluate_subexp_f): Likewise.
609 * hppa-tdep.c (hppa_read_pc): Likewise.
610 * i386-tdep.c (i386_floatformat_for_type): Likewise.
611 * parse.c (write_exp_elt_msym): Likewise.
612 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
613 * remote.c (remote_packet_size): Likewise.
614 (remote_notif_stop_parse): Likewise.
615 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
616 * s12z-tdep.c (s12z_disassemble_info): Likewise.
617 * source.c (prepare_path_for_appending): Likewise.
618 * sparc64-linux-tdep.c
619 (sparc64_linux_handle_segmentation_fault); Likewise.
620 * stack.c (frame_selection_by_function_completer): Likewise.
621
781597ff
SM
6222019-11-26 Simon Marchi <simon.marchi@efficios.com>
623
624 * completer.c (set_gdb_completion_word_break_characters):
625 Remove.
626
23baa4cc
SM
6272019-11-26 Simon Marchi <simon.marchi@efficios.com>
628
629 * dwarf-index-write.c: Include dwarf-index-write.h.
630 * mi/mi-interp.c: Include mi/mi-interp.h.
631
23767560
SM
6322019-11-26 Simon Marchi <simon.marchi@efficios.com>
633
634 * aarch32-tdep.c: Include aarch32-tdep.h.
635 * aarch32-tdep.h: Forward-declare struct target_desc.
636
6d91ce9a
CB
6372019-11-26 Christian Biesinger <cbiesinger@google.com>
638
639 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
640 strerror.
641 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
642 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
643
3cf2f237
TV
6442019-11-25 Tom de Vries <tdevries@suse.de>
645
646 * contrib/words.sh: Add -c option.
647
5b89c67a
CB
6482019-11-25 Christian Biesinger <cbiesinger@google.com>
649
650 * solib.c (solib_find_1): Change int to bool.
651 (exec_file_find): Change int to bool.
652 (solib_find): Change int to bool.
653 (solib_read_symbols): Change int to bool.
654 (solib_used): Change int to bool.
655 (solib_add): Change int to bool.
656 (info_sharedlibrary_command): Change int to bool.
657 (solib_contains_address_p): Change int to bool.
658 (solib_keep_data_in_core): Change int to bool.
659 (in_solib_dynsym_resolve_code): Change int to bool.
660 (reload_shared_libraries_1): Change int to bool.
661 (gdb_sysroot_changed): Change int to bool.
662 * solib.h (solib_read_symbols): Change int to bool.
663 (solib_contains_address_p): Change int to bool.
664 (solib_keep_data_in_core): Change int to bool.
665 (in_solib_dynsym_resolve_code): Change int to bool.
666 (libpthread_name_p): Change int to bool.
667
6cc8564b
LM
6682019-11-25 Luis Machado <luis.machado@linaro.org>
669
670 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
671 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
672 (remote_packet_max_chars): New static global.
673 (show_remote_packet_max_chars): New function.
674 (remote_target::putpkt_binary): Adjust to use new
675 remote_packet_max_chars option.
676 (remote_target::getpkt_or_notif_sane_1): Likewise.
677 (_initialize_remote): Register new remote-packet-max-chars option.
678
a7cdaa91
SM
6792019-11-24 Simon Marchi <simon.marchi@efficios.com>
680
681 * m68k-linux-nat.c: Include gdbarch.h.
682
26abc753
TT
6832019-11-24 Tom Tromey <tom@tromey.com>
684
685 * symfile.c (read_symbols): Update.
686 * psymtab.c (require_partial_symbols): Change type of "verbose" to
687 bool.
688 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
689 (psym_lookup_symbol, psym_find_last_source_symtab)
690 (psym_forget_cached_source_info, psym_print_stats)
691 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
692 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
693 (psym_map_matching_symbols, psym_expand_symtabs_matching)
694 (psym_find_compunit_symtab_by_address)
695 (maintenance_print_psymbols, maintenance_info_psymtabs)
696 (maintenance_check_psymtabs): Update.
697 * psymtab.h (require_partial_symbols): Change type of "verbose" to
698 bool.
699
012fc909
TT
7002019-11-22 Tom Tromey <tom@tromey.com>
701
702 * observable.h: Update comments.
703
c83d8d32
TT
7042019-11-22 Tom Tromey <tromey@adacore.com>
705
706 * ada-tasks.c (ada_task_is_alive): Make parameter const.
707 (print_ada_task_info): Don't try to fetch thread id if task is not
708 alive.
709
987012b8
CB
7102019-11-22 Christian Biesinger <cbiesinger@google.com>
711
712 * ada-exp.y: Update.
713 * ada-lang.c (sort_choices): Update.
714 (ada_print_symbol_signature): Update.
715 (resolve_subexp): Update.
716 (ada_parse_renaming): Update.
717 (ada_read_renaming_var_value): Update.
718 (lesseq_defined_than): Update.
719 (remove_extra_symbols): Update.
720 (remove_irrelevant_renamings): Update.
721 (ada_add_block_symbols): Update.
722 (ada_collect_symbol_completion_matches): Update.
723 (ada_is_renaming_symbol): Update.
724 (aggregate_assign_from_choices): Update.
725 (ada_evaluate_subexp): Update.
726 (ada_has_this_exception_support): Update.
727 (ada_is_non_standard_exception_sym): Update.
728 (ada_add_exceptions_from_frame): Update.
729 (ada_add_global_exceptions): Update.
730 (ada_print_subexp): Update.
731 * ax-gdb.c (gen_var_ref): Update.
732 (gen_maybe_namespace_elt): Update.
733 (gen_expr_for_cast): Update.
734 (gen_expr): Update.
735 * block.h: Update.
736 * blockframe.c (find_pc_partial_function): Update.
737 * breakpoint.c (print_breakpoint_location): Update.
738 (update_static_tracepoint): Update.
739 * btrace.c (ftrace_print_function_name): Update.
740 (ftrace_function_switched): Update.
741 * buildsym.c (find_symbol_in_list): Update.
742 * c-exp.y: Update.
743 * c-typeprint.c (c_print_typedef): Update.
744 (c_type_print_template_args): Update.
745 * cli/cli-cmds.c (edit_command): Update.
746 (list_command): Update.
747 (print_sal_location): Update.
748 * coffread.c (patch_opaque_types): Update.
749 (process_coff_symbol): Update.
750 (coff_read_enum_type): Update.
751 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
752 (convert_one_symbol): Update.
753 (hash_symname): Update.
754 (eq_symname): Update.
755 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
756 * compile/compile-cplus-types.c (debug_print_scope): Update.
757 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
758 * compile/compile-object-load.c (get_out_value_type): Update.
759 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
760 (search_symbol_list): Update.
761 (cp_lookup_symbol_imports_or_template): Update.
762 * cp-support.c (overload_list_add_symbol): Update.
763 * ctfread.c (psymtab_to_symtab): Update.
764 * dbxread.c (cp_set_block_scope): Update.
765 * dictionary.c (iter_match_first_hashed): Update.
766 (iter_match_next_hashed): Update.
767 (insert_symbol_hashed): Update.
768 (iter_match_next_linear): Update.
769 * dictionary.h: Update.
770 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
771 (locexpr_describe_location_piece): Update.
772 (locexpr_describe_location_1): Update.
773 (locexpr_generate_c_location): Update.
774 (loclist_describe_location): Update.
775 (loclist_generate_c_location): Update.
776 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
777 (read_func_scope): Update.
778 (process_enumeration_scope): Update.
779 (new_symbol): Update.
780 (dwarf2_const_value): Update.
781 (dwarf2_symbol_mark_computed): Update.
782 * eval.c (evaluate_funcall): Update.
783 (evaluate_subexp_standard): Update.
784 * expprint.c (print_subexp_standard): Update.
785 (dump_subexp_body_standard): Update.
786 * f-valprint.c (info_common_command_for_block): Update.
787 * findvar.c (get_hosting_frame): Update.
788 (default_read_var_value): Update.
789 * go-lang.c (go_symbol_package_name): Update.
790 * guile/scm-block.c (bkscm_print_block_smob): Update.
791 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
792 (gdbscm_symbol_name): Update.
793 (gdbscm_symbol_linkage_name): Update.
794 (gdbscm_symbol_print_name): Update.
795 * infcall.c (get_function_name): Update.
796 * infcmd.c (jump_command): Update.
797 (finish_command): Update.
798 * infrun.c (insert_exception_resume_breakpoint): Update.
799 * linespec.c (canonicalize_linespec): Update.
800 (create_sals_line_offset): Update.
801 (convert_linespec_to_sals): Update.
802 (complete_label): Update.
803 (find_label_symbols_in_block): Update.
804 * m2-typeprint.c (m2_print_typedef): Update.
805 * mdebugread.c (mdebug_reg_to_regnum): Update.
806 (parse_symbol): Update.
807 (mylookup_symbol): Update.
808 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
809 (list_args_or_locals): Update.
810 * objc-lang.c (compare_selectors): Update.
811 (info_selectors_command): Update.
812 (compare_classes): Update.
813 (info_classes_command): Update.
814 (find_imps): Update.
815 * p-typeprint.c (pascal_print_typedef): Update.
816 * printcmd.c (build_address_symbolic): Update.
817 (info_address_command): Update.
818 (print_variable_and_value): Update.
819 * python/py-framefilter.c (extract_sym): Update.
820 (py_print_single_arg): Update.
821 * python/py-symbol.c (sympy_str): Update.
822 (sympy_get_name): Update.
823 (sympy_get_linkage_name): Update.
824 * python/python.c (gdbpy_rbreak): Update.
825 * record-btrace.c (btrace_get_bfun_name): Update.
826 (btrace_call_history): Update.
827 * rust-lang.c (rust_print_typedef): Update.
828 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
829 * stabsread.c (stab_reg_to_regnum): Update.
830 (define_symbol): Update.
831 (read_enum_type): Update.
832 (common_block_end): Update.
833 (cleanup_undefined_types_1): Update.
834 (scan_file_globals): Update.
835 * stack.c (print_frame_arg): Update.
836 (print_frame_args): Update.
837 (find_frame_funname): Update.
838 (info_frame_command_core): Update.
839 (iterate_over_block_locals): Update.
840 (print_block_frame_labels): Update.
841 (do_print_variable_and_value): Update.
842 (iterate_over_block_arg_vars): Update.
843 (return_command): Update.
844 * symmisc.c (dump_symtab_1): Update.
845 (print_symbol): Update.
846 * symtab.c (eq_symbol_entry): Update.
847 (symbol_cache_dump): Update.
848 (lookup_language_this): Update.
849 (find_pc_sect_line): Update.
850 (skip_prologue_sal): Update.
851 (symbol_search::compare_search_syms): Update.
852 (treg_matches_sym_type_name): Update.
853 (search_symbols): Update.
854 (print_symbol_info): Update.
855 (rbreak_command): Update.
856 (completion_list_add_symbol): Update.
857 (find_gnu_ifunc): Update.
858 (get_symbol_address): Update.
859 (search_module_symbols): Update.
860 (info_module_subcommand): Update.
861 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
862 (SYMBOL_LINKAGE_NAME): Remove.
863 (SYMBOL_DEMANGLED_NAME): Remove.
864 (SYMBOL_PRINT_NAME): Remove.
865 (SYMBOL_SEARCH_NAME): Remove.
866 * tracepoint.c (set_traceframe_context): Update.
867 (validate_actionline): Update.
868 (collection_list::collect_symbol): Update.
869 (encode_actions_1): Update.
870 (info_scope_command): Update.
871 (print_one_static_tracepoint_marker): Update.
872 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
873 * valops.c (address_of_variable): Update.
874 (find_overload_match): Update.
875 (find_oload_champ): Update.
876
c9d95fa3
CB
8772019-11-22 Christian Biesinger <cbiesinger@google.com>
878
879 * ada-lang.c (ada_lookup_simple_minsym): Update.
880 (ada_collect_symbol_completion_matches): Update.
881 * ada-tasks.c (read_atcb): Update.
882 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
883 (amd64_windows_skip_trampoline_code): Update.
884 * arm-tdep.c (skip_prologue_function): Update.
885 (arm_skip_stack_protector): Update.
886 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
887 (arm_wince_skip_main_prologue): Update.
888 * ax-gdb.c (gen_expr): Update.
889 * block.c (call_site_for_pc): Update.
890 * blockframe.c (find_pc_partial_function): Update.
891 * breakpoint.c (set_breakpoint_location_function): Update.
892 * btrace.c (ftrace_print_function_name): Update.
893 (ftrace_function_switched): Update.
894 * c-valprint.c (print_unpacked_pointer): Update.
895 * coffread.c (coff_symfile_read): Update.
896 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
897 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
898 * dwarf-index-write.c (write_psymbols): Update.
899 * dwarf2loc.c (call_site_to_target_addr): Update.
900 (func_verify_no_selftailcall): Update.
901 (tailcall_dump): Update.
902 (call_site_find_chain_1): Update.
903 (dwarf_expr_reg_to_entry_parameter): Update.
904 * elfread.c (elf_gnu_ifunc_record_cache): Update.
905 * eval.c (evaluate_funcall): Update.
906 (evaluate_subexp_standard): Update.
907 (evaluate_subexp_for_sizeof): Update.
908 * expprint.c (print_subexp_standard): Update.
909 (dump_subexp_body_standard): Update.
910 * frame.c (get_prev_frame_always_1): Update.
911 * frv-tdep.c (frv_skip_main_prologue): Update.
912 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
913 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
914 (gnuv3_get_typename_from_type_info): Update.
915 (gnuv3_skip_trampoline): Update.
916 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
917 * i386-tdep.c (i386_skip_main_prologue): Update.
918 (i386_pe_skip_trampoline_code): Update.
919 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
920 * infcall.c (get_function_name): Update.
921 * linespec.c (minsym_found): Update.
922 * linux-fork.c (info_checkpoints_command): Update.
923 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
924 (m32c_m16c_pointer_to_address): Update.
925 * maint.c (maintenance_translate_address): Update.
926 * minsyms.c (add_minsym_to_hash_table): Update.
927 (add_minsym_to_demangled_hash_table): Update.
928 (lookup_minimal_symbol_mangled): Update.
929 (lookup_minimal_symbol_demangled): Update.
930 (lookup_minimal_symbol_linkage): Update.
931 (lookup_minimal_symbol_text): Update.
932 (lookup_minimal_symbol_by_pc_name): Update.
933 (minimal_symbol_is_less_than): Update.
934 (compact_minimal_symbols): Update.
935 (build_minimal_symbol_hash_tables): Update.
936 (find_solib_trampoline_target): Update.
937 * mips-tdep.c (mips_stub_frame_sniffer): Update.
938 (mips_skip_pic_trampoline_code): Update.
939 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
940 * objc-lang.c (info_selectors_command): Update.
941 (info_classes_command): Update.
942 (find_methods): Update.
943 (find_imps): Update.
944 * p-valprint.c (pascal_val_print): Update.
945 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
946 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
947 * printcmd.c (build_address_symbolic): Update.
948 (info_symbol_command): Update.
949 * psymtab.c (psymbol_name_matches): Update.
950 (match_partial_symbol): Update.
951 (lookup_partial_symbol): Update.
952 (print_partial_symbols): Update.
953 (sort_pst_symbols): Update.
954 (maintenance_check_psymtabs): Update.
955 * python/py-framefilter.c (py_print_frame): Update.
956 * python/python.c (gdbpy_rbreak): Update.
957 * record-btrace.c (btrace_get_bfun_name): Update.
958 (btrace_call_history): Update.
959 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
960 (rs6000_skip_trampoline_code): Update.
961 * sol-thread.c (info_cb): Update.
962 * stabsread.c (scan_file_globals): Update.
963 * stack.c (find_frame_funname): Update.
964 (info_frame_command_core): Update.
965 * symmisc.c (dump_msymbols): Update.
966 * symtab.c (symbol_natural_name): Rename to..,
967 (general_symbol_info::natural_name): ...this.
968 (symbol_demangled_name): Rename to...
969 (general_symbol_info::demangled_name): ...this.
970 (symbol_search_name): Rename to...
971 (general_symbol_info::search_name): ...this.
972 (symbol_matches_search_name): Update.
973 (find_pc_sect_line): Update.
974 (skip_prologue_sal): Update.
975 (search_symbols): Update.
976 (print_msymbol_info): Update.
977 (rbreak_command): Update.
978 (completion_list_add_msymbol): Update.
979 (completion_list_objc_symbol): Update.
980 (get_msymbol_address): Update.
981 * symtab.h (struct general_symbol_info): Add member functions
982 natural_name (), linkage_name (), print_name (), demangled_name (),
983 and search_name ().
984 (SYMBOL_NATURAL_NAME): Update.
985 (symbol_natural_name): Move to a member function on general_symbol_info.
986 (SYMBOL_DEMANGLED_NAME): Update.
987 (symbol_demangled_name): Move to a member function on
988 general_symbol_info.
989 (SYMBOL_SEARCH_NAME): Update.
990 (symbol_search_name): Move to a member function on general_symbol_info.
991 (MSYMBOL_NATURAL_NAME): Remove.
992 (MSYMBOL_LINKAGE_NAME): Remove.
993 (MSYMBOL_PRINT_NAME): Remove.
994 (MSYMBOL_DEMANGLED_NAME): Remove.
995 (MSYMBOL_SEARCH_NAME): Remove.
996 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
997
f8bab2d6
CB
9982019-11-22 Christian Biesinger <cbiesinger@google.com>
999
1000 * symtab.c (create_demangled_names_hash): Use per_bfd->
1001 minimal_symbol_count for computing the initial size, if greater
1002 than our default size.
1003
85e7588d
TV
10042019-11-22 Tom de Vries <tdevries@suse.de>
1005
1006 * contrib/words.sh: Improve words extraction.
1007
f6180073
TV
10082019-11-22 Tom de Vries <tdevries@suse.de>
1009
1010 * contrib/words.sh: Combine sed invocations.
1011
f10ffa41
CB
10122019-11-21 Christian Biesinger <cbiesinger@google.com>
1013
1014 * Makefile.in: Update.
1015 * demangle.c: Rename to...
1016 * gdb-demangle.c: ..this.
1017 (is_cplus_marker): Change return type to bool.
1018 (_initialize_demangler): Rename to...
1019 (_initialize_gdb_demangle): ...this.
1020 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1021 * symtab.h (demangle): Remove declaration; instead include
1022 gdb-demangle.h.
1023
6ba18521
TT
10242019-11-21 Tom Tromey <tromey@adacore.com>
1025
1026 * gdbsupport/format.c (format_pieces): Parse %I64d.
1027 * unittests/format_pieces-selftests.c (test_windows_formats): New
1028 function.
1029 (run_tests): Call it.
1030
34877895
PJ
10312019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1032
1033 Byte reverse display of variables with DW_END_big, DW_END_little
1034 (DW_AT_endianity) dwarf attributes if different than the native
1035 byte order.
1036 * ada-lang.c (ada_value_binop):
1037 Use type_byte_order instead of gdbarch_byte_order.
1038 * ada-valprint.c (printstr):
1039 (ada_val_print_string):
1040 * ada-lang.c (value_pointer):
1041 (ada_value_binop):
1042 Use type_byte_order instead of gdbarch_byte_order.
1043 * c-lang.c (c_get_string):
1044 Use type_byte_order instead of gdbarch_byte_order.
1045 * c-valprint.c (c_val_print_array):
1046 Use type_byte_order instead of gdbarch_byte_order.
1047 * cp-valprint.c (cp_print_class_member):
1048 Use type_byte_order instead of gdbarch_byte_order.
1049 * dwarf2loc.c (rw_pieced_value):
1050 Use type_byte_order instead of gdbarch_byte_order.
1051 * dwarf2read.c (read_base_type): Handle DW_END_big,
1052 DW_END_little
1053 * f-lang.c (f_get_encoding):
1054 Use type_byte_order instead of gdbarch_byte_order.
1055 * findvar.c (default_read_var_value):
1056 Use type_byte_order instead of gdbarch_byte_order.
1057 * gdbtypes.c (check_types_equal):
1058 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1059 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1060 and TYPE_ENDIANITY_LITTLE if set.
1061 (type_byte_order): new function.
1062 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1063 (struct main_type) <flag_endianity_not_default>:
1064 New field.
1065 (type_byte_order): New function.
1066 * infcmd.c (default_print_one_register_info):
1067 Use type_byte_order instead of gdbarch_byte_order.
1068 * p-lang.c (pascal_printstr):
1069 Use type_byte_order instead of gdbarch_byte_order.
1070 * p-valprint.c (pascal_val_print):
1071 Use type_byte_order instead of gdbarch_byte_order.
1072 * printcmd.c (print_scalar_formatted):
1073 Use type_byte_order instead of gdbarch_byte_order.
1074 * solib-darwin.c (darwin_current_sos):
1075 Use type_byte_order instead of gdbarch_byte_order.
1076 * solib-svr4.c (solib_svr4_r_ldsomap):
1077 Use type_byte_order instead of gdbarch_byte_order.
1078 * stap-probe.c (stap_modify_semaphore):
1079 Use type_byte_order instead of gdbarch_byte_order.
1080 * target-float.c (target_float_same_format_p):
1081 Use type_byte_order instead of gdbarch_byte_order.
1082 * valarith.c (scalar_binop):
1083 (value_bit_index):
1084 Use type_byte_order instead of gdbarch_byte_order.
1085 * valops.c (value_cast):
1086 Use type_byte_order instead of gdbarch_byte_order.
1087 * valprint.c (generic_emit_char):
1088 (generic_printstr):
1089 (val_print_string):
1090 Use type_byte_order instead of gdbarch_byte_order.
1091 * value.c (unpack_long):
1092 (unpack_bits_as_long):
1093 (unpack_value_bitfield):
1094 (modify_field):
1095 (pack_long):
1096 (pack_unsigned_long):
1097 Use type_byte_order instead of gdbarch_byte_order.
1098 * findvar.c (unsigned_pointer_to_address):
1099 (signed_pointer_to_address):
1100 (unsigned_address_to_pointer):
1101 (address_to_signed_pointer):
1102 (default_read_var_value):
1103 (default_value_from_register):
1104 Use type_byte_order instead of gdbarch_byte_order.
1105 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1106 Use type_byte_order instead of gdbarch_byte_order.
1107 * riscv-tdep.c (riscv_print_one_register_info):
1108 Use type_byte_order instead of gdbarch_byte_order.
1109
87fb00ea
SM
11102019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1111
1112 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1113 (current_ui_gdb_stdin_ptr): Likewise.
1114 (current_ui_gdb_stderr_ptr): Likewise.
1115 (current_ui_gdb_stdlog_ptr): Likewise.
1116 (current_ui_current_uiout_ptr): Likewise.
1117 (gen_ret_current_ui_field_ptr): Remove.
1118
65d1cd5f
TV
11192019-11-21 Tom de Vries <tdevries@suse.de>
1120
1121 PR gdb/24956
1122 * cli/cli-script.c (execute_control_command): Only switch to
1123 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1124
9f6ad286
TT
11252019-11-19 Tom Tromey <tom@tromey.com>
1126
1127 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1128 Now static. Change type of "name".
1129 (tui_set_win_height_command): Don't copy "arg".
1130 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1131 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1132
435d3d88
AT
11332019-11-19 Ali Tamur <tamur@google.com>
1134
1135 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1136 "if (attr != nullptr)".
1137 (dwarf2_find_base_address): Likewise.
1138 (dwarf2_build_include_psymtabs): Likewise.
1139 (read_cutu_die_from_dwo): Likewise.
1140 (read_func_scope): Likewise.
1141 (read_call_site_scope): Likewise.
1142 (dwarf2_get_pc_bounds): Likewise.
1143 (dwarf2_record_block_ranges): Likewise.
1144 (dwarf2_add_field): Likewise.
1145 (dwarf2_add_member_fn): Likewise.
1146 (read_structure_type): Likewise.
1147 (read_enumeration_type): Likewise.
1148 (read_array_type): Likewise.
1149 (read_array_order): Likewise.
1150 (read_set_type): Likewise.
1151 (read_common_block): Likewise.
1152 (read_tag_reference_type): Likewise.
1153 (read_tag_string_type): Likewise.
1154 (read_subroutine_type): Likewise.
1155 (read_base_type): Likewise.
1156 (read_subrange_type): Likewise.
1157 (new_symbol): Likewise.
1158 (prepare_one_comp_unit): Likewise.
1159
c9739b6a
TT
11602019-11-19 Tom Tromey <tromey@adacore.com>
1161
1162 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1163 result in error when DebugActiveProcess fails.
1164
494409bb
SDJ
11652019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1166 Pedro Alves <palves@redhat.com>
1167
1168 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1169 * target.c (target_stack::push): Call 'unpush' if there's a
1170 target on top of the stack.
1171
2e953aca
PW
11722019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1173
1174 * python/py-block.c (blpy_dealloc): Call tp_free.
1175 (blpy_block_syms_dealloc): Likewise.
1176 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1177 * python/py-inferior.c (infpy_dealloc): Likewise.
1178 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1179 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1180 * python/py-symbol.c (sympy_dealloc): Likewise.
1181 * python/py-symtab.c (stpy_dealloc): Likewise.
1182 * python/py-type.c (typy_iterator_dealloc): Likewise.
1183
6edc43ec
CB
11842019-11-18 Christian Biesinger <cbiesinger@google.com>
1185
1186 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1187 constructor instead of using a class initializer.
1188
cd850b40
CB
11892019-11-15 Christian Biesinger <cbiesinger@google.com>
1190
1191 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1192 * configure: Regenerate.
1193 * configure.ac: Don't source common.host.
1194 * gdbsupport/common.host: Remove.
1195 * gdbsupport/mingw-strerror.c: Remove.
1196 * gdbsupport/posix-strerror.c: Rename to...
1197 * gdbsupport/safe-strerror.c: ...this.
1198
53fea9c7
CB
11992019-11-15 Christian Biesinger <cbiesinger@google.com>
1200
1201 * maint.c (scoped_command_stats::print_time): Use localtime_r
1202 instead of localtime (provided through gnulib if necessary).
1203 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1204 of ctime.
1205
f8e27d88
CB
12062019-11-15 Christian Biesinger <cbiesinger@google.com>
1207
1208 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1209 avoid compile errors.
1210
5abebf3c
CB
12112019-11-15 Christian Biesinger <cbiesinger@google.com>
1212
1213 * config.in: Regenerate.
1214 * configure: Regenerate.
1215 * gdbsupport/common.m4: No longer check for strerror_r.
1216 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1217 POSIX version of strerror_r, now that gnulib provides it if
1218 necessary.
1219
9a351667
CB
12202019-11-14 Christian Biesinger <cbiesinger@google.com>
1221
1222 * README (`configure' options): Update.
1223
55708e99
TT
12242019-11-14 Tom Tromey <tromey@adacore.com>
1225
1226 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1227 expected type for the RHS if the LHS is a convenience variable.
1228
4b09bb2e
SM
12292019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1232 Provide explicit default and copy constructor.
1233
bd454f8b
PW
12342019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1235
1236 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1237 only call Py_INCREF (newbp) in the bppy_pending_object case.
1238
d1aa3cf0
TT
12392019-11-13 Tom Tromey <tromey@adacore.com>
1240
1241 PR build/25182:
1242 * psympriv.h (partial_symbol): Remove static assert.
1243 * symtab.h (general_symbol_info, symbol): Remove static assert.
1244
e06f3d6e
AB
12452019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * gdbsupport/format.c (format_pieces::format_pieces): Support
1248 printf 'z' size modifier.
1249 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1250 * printcmd.c (ui_printf): Handle size_t_arg.
1251 * ui-out.c (ui_out::vmessage): Likewise.
1252 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1253 function.
1254 (run_tests): Call test_format_int_sizes.
1255
468c0cbb
CB
12562019-11-12 Christian Biesinger <cbiesinger@google.com>
1257
1258 * ada-exp.y (write_ambiguous_var): Update.
1259 * buildsym.c (add_symbol_to_list): Update.
1260 * dwarf2read.c (read_variable): Update.
1261 (new_symbol): Update.
1262 * jit.c (finalize_symtab): Update.
1263 * language.c (language_alloc_type_symbol): Update.
1264 * symtab.c (fixup_symbol_section): Update.
1265 (initialize_objfile_symbol_1): Move code to...
1266 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1267 (allocate_symbol): Update.
1268 (allocate_template_symbol): Update.
1269 (get_symbol_address): Update.
1270 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1271 of having as a field, and add a constructor.
1272 (SYMBOL_VALUE): Update.
1273 (SYMBOL_VALUE_ADDRESS): Update.
1274 (SET_SYMBOL_VALUE_ADDRESS): Update.
1275 (SYMBOL_VALUE_BYTES): Update.
1276 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1277 (SYMBOL_BLOCK_VALUE): Update.
1278 (SYMBOL_VALUE_CHAIN): Update.
1279 (SYMBOL_LANGUAGE): Update.
1280 (SYMBOL_SECTION): Update.
1281 (SYMBOL_OBJ_SECTION): Update.
1282 (SYMBOL_SET_LANGUAGE): Update.
1283 (SYMBOL_SET_LINKAGE_NAME): Update.
1284 (SYMBOL_SET_NAMES): Update.
1285 (SYMBOL_NATURAL_NAME): Update.
1286 (SYMBOL_LINKAGE_NAME): Update.
1287 (SYMBOL_DEMANGLED_NAME): Update.
1288 (SYMBOL_SEARCH_NAME): Update.
1289 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1290 (struct symbol): Update.
1291 (struct template_symbol): Update.
1292 (struct rust_vtable_symbol): Update.
1293 * xcoffread.c (SYMBOL_DUP): Update.
1294
ed2c82c3
TT
12952019-11-12 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-layout.c (show_layout): Set current_layout.
1298 (show_source_disasm_command, show_data)
1299 (show_source_or_disasm_and_command): Don't set current_layout.
1300
d9fcefd5
TT
13012019-11-12 Tom Tromey <tom@tromey.com>
1302
1303 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1304
45e42163
TT
13052019-11-12 Tom Tromey <tom@tromey.com>
1306
1307 * tui/tui-win.c (resize_message): New global.
1308 (show_tui_resize_message): New function.
1309 (tui_async_resize_screen): Print message if requested.
1310 (_initialize_tui_win): Add tui-resize-message setting.
1311 * NEWS: Add entry for new commands.
1312
c86d74cc
TT
13132019-11-11 Tom Tromey <tom@tromey.com>
1314
1315 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1316 functions.
1317
7b7b9424
CB
13182019-11-11 Christian Biesinger <cbiesinger@google.com>
1319
1320 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1321
086baaf1
AB
13222019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1325 function.
1326 * python/python-internal.h (gdbpy_lookup_static_symbols):
1327 Declare new function.
1328 * python/python.c (python_GdbMethods): Add
1329 gdb.lookup_static_symbols method.
1330 * NEWS: Mention gdb.lookup_static_symbols.
1331
09ff83af
AB
13322019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1335 static block of current object file first. Also fix typo in
1336 header comment.
1337
eb2dd8df
AB
13382019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * stack.c (set_last_displayed_sal): Delete.
1341 (last_displayed_sal_valid): Delete.
1342 (last_displayed_pspace): Delete.
1343 (last_displayed_addr): Delete.
1344 (last_displayed_symtab): Delete.
1345 (last_displayed_line): Delete.
1346 (class last_displayed_symtab_info_type): New.
1347 (last_displayed_symtab_info): New static global variable.
1348 (print_frame_info): Call methods on last_displayed_symtab_info.
1349 (clear_last_displayed_sal): Update header comment, and make use of
1350 last_displayed_symtab_info.
1351 (last_displayed_sal_is_valid): Likewise.
1352 (get_last_displayed_pspace): Likewise.
1353 (get_last_displayed_addr): Likewise.
1354 (get_last_displayed_symtab): Likewise.
1355 (get_last_displayed_line): Likewise.
1356 (get_last_displayed_sal): Likewise.
1357 * stack.h (clear_last_displayed_sal): Update header comment.
1358 (last_displayed_sal_is_valid): Likewise.
1359 (get_last_displayed_pspace): Likewise.
1360 (get_last_displayed_addr): Likewise.
1361 (get_last_displayed_symtab): Likewise.
1362 (get_last_displayed_line): Likewise.
1363 (get_last_displayed_sal): Likewise.
1364
62137775
AB
13652019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * stack.c (frame_show_address): Convert return type to bool.
1368 * stack.h (frame_show_address): Likewise, and update header
1369 comment.
1370
cf57ad6d
AB
13712019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1374 * unittests/vec-utils-selftests.c: New file.
1375 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1376
0b026263
TT
13772019-11-10 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1380 (tui_highlight_win): Likewise.
1381 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1382 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1383 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1384 Don't set can_highlight.
1385
b049ce2d
TT
13862019-11-10 Tom Tromey <tom@tromey.com>
1387
1388 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1389 Remove unused declaration.
1390
992a7040
TT
13912019-11-08 Tom Tromey <tromey@adacore.com>
1392
1393 * top.c (read_command_file): Update.
1394 (command_line_input): Make return type const.
1395 * python/py-gdb-readline.c: Update.
1396 * linespec.c (decode_line_2): Update.
1397 * defs.h (command_line_input): Make return type const.
1398 * cli/cli-script.c (read_next_line): Make return type const.
1399 * ada-lang.c (get_selections): Update.
1400
ca3a04f6
CB
14012019-11-06 Christian Biesinger <cbiesinger@google.com>
1402
1403 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1404 * mi/mi-main.c (output_cores): Likewise.
1405 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1406 (linux_xfer_osdata_modules): Likewise.
1407 * remote.c (register_remote_support_xml): Likewise.
1408 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1409 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1410
e0eac551
TT
14112019-11-06 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-interp.c: Don't include readline.h.
1414 * tui/tui-hooks.c: Don't include readline.h.
1415 * symmisc.c: Include tilde.h, not readline.h.
1416 * symfile.c: Include tilde.h, not readline.h.
1417 * source.c: Include tilde.h, not readline.h.
1418 * solib.c: Include tilde.h, not readline.h.
1419 * psymtab.c: Include tilde.h, not readline.h.
1420 * exec.c: Include tilde.h, not readline.h.
1421 * corelow.c: Include tilde.h, not readline.h.
1422 * cli/cli-dump.c: Include tilde.h, not readline.h.
1423 * cli/cli-cmds.c: Don't include readline.h.
1424
825165c5
TT
14252019-11-05 Tom Tromey <tom@tromey.com>
1426
1427 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1428 (tui_disassemble): Set addr_size.
1429 (tui_disasm_window::set_contents): Use addr_size.
1430
91ae903f
TT
14312019-11-05 Tom Tromey <tom@tromey.com>
1432
1433 * rust-lang.c (rust_language_defn): Update.
1434 * python/py-value.c (valpy_string): Call c_get_string.
1435 * p-lang.c (pascal_language_defn): Update.
1436 * opencl-lang.c (opencl_language_defn): Update.
1437 * objc-lang.c (objc_language_defn): Update.
1438 * m2-lang.c (m2_language_defn): Update.
1439 * language.c (unknown_language_defn, auto_language_defn): Update.
1440 (default_get_string): Remove.
1441 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1442 * go-lang.c (go_language_defn): Update.
1443 * f-lang.c (f_language_defn): Update.
1444 * d-lang.c (d_language_defn): Update.
1445 * c-lang.c (c_language_defn, cplus_language_defn)
1446 (asm_language_defn, minimal_language_defn): Update.
1447 * ada-lang.c (ada_language_defn): Update.
1448 * language.h (struct language_defn) <la_get_string>: Remove.
1449 (LA_GET_STRING): Remove.
1450 (default_get_string): Don't declare.
1451
1df2f9ef
TT
14522019-11-05 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-source.h (struct tui_source_window): Inline
1455 constructor. Remove destructor.
1456 <style_changed, m_observable>: Move to superclass.
1457 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1458 (struct tui_source_window_base): Move private members to end.
1459 <style_changed, m_observable>: Move from tui_source_window.
1460 * tui/tui-winsource.c (tui_copy_source_line): Move from
1461 tui-source.c. Rename from copy_source_line. Add special handling
1462 for negative line number.
1463 (tui_source_window_base::style_changed): Move from
1464 tui_source_window.
1465 (tui_source_window_base): Register observer.
1466 (~tui_source_window_base): New.
1467 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1468 rename.
1469 (tui_source_window::set_contents): Use tui_copy_source_line.
1470 (tui_source_window::tui_source_window): Move to tui-source.h.
1471 (tui_source_window::~tui_source_window): Remove.
1472 (tui_source_window::style_changed): Move to superclass.
1473 * tui/tui-disasm.c (tui_disassemble): Create string file with
1474 styling, when possible. Add "addr_size" parameter.
1475 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1476 Don't compute maximum size.
1477 (len_without_escapes): New function
1478
5d051055
TT
14792019-11-05 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1482 std::string.
1483 * tui/tui-winsource.c (tui_show_source_line): Update.
1484 * tui/tui-source.c (tui_source_window::set_contents): Update.
1485 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1486
ade7beea
CB
14872019-11-05 Christian Biesinger <cbiesinger@google.com>
1488
1489 * symtab.h (gdb_static_assert): Put && operator at the beginning
1490 of the line instead of the end.
1491
3573abe1
CB
14922019-11-04 Christian Biesinger <cbiesinger@google.com>
1493
1494 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1495 and sizeof (symbol).
1496 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1497
dae8b3eb
RO
14982019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1499
1500 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1501 * configure.host: Mark *-*-solaris2.10* obsolete.
1502 * configure.tgt: Mark Solaris < 11 obsolete.
1503 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1504 Update target triplet.
1505
5df96a4e
TT
15062019-11-01 Tom Tromey <tromey@adacore.com>
1507
1508 * utils.c (print_sys_errmsg): Simplify.
1509
b7481649
TT
15102019-11-01 Tom Tromey <tromey@adacore.com>
1511
1512 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1513
e48f6033
CB
15142019-11-01 Christian Biesinger <cbiesinger@google.com>
1515
1516 * configure: Regenerate.
1517 * configure.ac: Remove check for strerror_r.
1518 * gdbsupport/common.m4: Check for strerror_r.
1519
bd5766ec
LM
15202019-11-01 Luis Machado <luis.machado@linaro.org>
1521
1522 PR gdb/25124
1523
1524 * arm-tdep.c (arm_per_objfile): Rename to ...
1525 (arm_per_bfd): ... this.
1526 (arm_objfile_data_key): Rename to ...
1527 (arm_bfd_data_key): ... this.
1528 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1529 data.
1530 (arm_record_special_symbol): Likewise.
1531
e1709896
AB
15322019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1535 end.
1536 * c-typeprint.c (c_print_typedef): Likewise.
1537 * f-typeprint.c (f_print_typedef): Likewise.
1538 * m2-typeprint.c (m2_print_typedef): Likewise.
1539 * p-typeprint.c (pascal_print_typedef): Likewise.
1540 * rust-lang.c (rust_print_typedef): Likewise.
1541 * symtab.c (print_symbol_info): Print a newline after calling
1542 typedef_print.
1543
165f8965
AB
15442019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * symtab.c (info_module_cmdlist): New variable.
1547 (info_module_command): New function.
1548 (search_module_symbols): New function.
1549 (info_module_subcommand): New function.
1550 (struct info_modules_var_func_options): New struct.
1551 (info_modules_var_func_options_defs): New variable.
1552 (make_info_modules_var_func_options_def_group): New function.
1553 (info_module_functions_command): New function.
1554 (info_module_variables_command): New function.
1555 (info_module_var_func_command_completer): New function.
1556 (_initialize_symtab): Register new 'info module functions' and
1557 'info module variables' commands.
1558 * symtab.h (typedef symbol_search_in_module): New typedef.
1559 (search_module_symbols): Declare new function.
1560 * NEWS: Mention new commands.
1561
59c35742
AB
15622019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1565 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1566 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1567 MODULES_DOMAIN.
1568 (scan_partial_symbols): Only create partial module symbols for non
1569 declarations.
1570 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1571 and MODULES_DOMAIN.
1572 * symtab.c (search_domain_name): Likewise.
1573 (search_symbols): Likewise.
1574 (print_symbol_info): Likewise.
1575 (symtab_symbol_info): Likewise.
1576 (info_modules_command): New function.
1577 (_initialize_symtab): Register 'info modules' command.
1578 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1579 * NEWS: Mention new 'info modules' command.
1580
aed61d02
PW
15812019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1582
1583 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1584 and $_gdb_maint_setting_str.
1585
9ad9b77d
PW
15862019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1587
1588 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1589 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1590 (str_value_from_setting, gdb_setting_str_internal_fn)
1591 (gdb_maint_setting_str_internal_fn): New functions.
1592 (_initialize_cli_cmds): Define the new convenience functions.
1593 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1594 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1595
8d6efaa2
CB
15962019-10-31 Christian Biesinger <cbiesinger@google.com>
1597
1598 * agent.c (set_can_use_agent): When the setting is turned on,
1599 look up agent symbols if we don't have them yet.
1600 (agent_new_objfile): Don't look up agent symbols when the agent
1601 setting is off.
1602
33cb1647
CB
16032019-10-31 Christian Biesinger <cbiesinger@google.com>
1604
1605 * config.in: Regenerate.
1606
b231e86a
CB
16072019-10-31 Christian Biesinger <cbiesinger@google.com>
1608
1609 * configure: Regenerate.
1610 * configure.ac: Check for strerror_r.
1611 * gdbsupport/common-utils.h (safe_strerror): Change return value
1612 to const char * and document that this function is now threadsafe.
1613 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1614 thread_local and call strerror_r, if available.
1615 * utils.c (perror_string): Update.
1616 (print_sys_errmsg): Update.
1617
a2726d4f
LM
16182019-10-31 Luis Machado <luis.machado@linaro.org>
1619
1620 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1621 objfile_key.
1622 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1623 objfile to fetch per-bfd data.
1624 (arm_find_exidx_entry): Likewise.
1625
75cafaa6
CB
16262019-10-31 Christian Biesinger <cbiesinger@google.com>
1627
1628 * gdbsupport/agent.c (debug_agent): Change type to bool.
1629 (use_agent): Likewise.
1630 (all_agent_symbols_look_up): Likewise.
1631 (agent_loaded_p): Change return value to bool.
1632 (agent_look_up_symbols): Update.
1633 (agent_capability_check): Change return value to bool.
1634 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1635 (debug_agent): Change type to bool.
1636 (use_agent): Likewise.
1637 (agent_capability_check): Change return value to bool.
1638
808590ec
CB
16392019-10-30 Christian Biesinger <cbiesinger@google.com>
1640
1641 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1642 (build_minimal_symbol_hash_tables): Code to clear the table moved
1643 to clear_minimal_symbol_hash_tables.
1644 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1645 when needed.
1646
f18ad8a1
SM
16472019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1648
1649 * infcmd.c: Remove includes.
1650 * infrun.c: Remove includes.
1651
de93309a
SM
16522019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1655 (grow_vect): Remove declaration.
1656 (ada_type_of_array): Remove declaration.
1657 (ada_update_initial_language): Remove declaration.
1658 (ada_fold_name): Remove declaration.
1659 (ada_fill_in_ada_prototype): Remove declaration.
1660 (user_select_syms): Remove declaration.
1661 (get_selections): Remove declaration.
1662 (ada_tag_type): Remove declaration.
1663 (ada_value_tag): Remove declaration.
1664 (ada_is_others_clause): Remove declaration.
1665 (ada_in_variant): Remove declaration.
1666 (ada_value_struct_elt): Remove declaration.
1667 (ada_attribute_name): Remove declaration.
1668 (ada_system_address_type): Remove declaration.
1669 * ada-lang.c (ada_watch_location_expression): Make static.
1670 (GROW_VECT): Move here from ada-lang.h.
1671 (grow_vect): Make static.
1672 (ada_update_initial_language): Make static.
1673 (ada_fold_name): Make static.
1674 (ada_type_of_array): Make static.
1675 (encoded_ordered_before): Move up.
1676 (sort_choices): Move up.
1677 (print_signatures): Move up.
1678 (ada_print_symbol_signature): Move up.
1679 (get_selections): Move up and make static.
1680 (user_select_syms): Move up and make static.
1681 (ada_value_struct_elt): Move up and make static.
1682 (ada_tag_type): Make static.
1683 (ada_value_tag): Make static.
1684 (ada_is_others_clause): Make static.
1685 (ada_in_variant): Make static.
1686 (ada_attribute_name): Make static.
1687
cdc46a9f
SM
16882019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * ada-lang.c: Remove includes.
1691 * ada-typeprint.c: Remove includes.
1692 * ada-valprint.c: Remove includes.
1693
90421c56
SM
16942019-10-29 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * addrmap.c: Add static assertions of type size, moved from
1697 _initialize_addrmap.
1698 (_initialize_addrmap): Remove.
1699
31edb802
CB
17002019-10-29 Christian Biesinger <cbiesinger@google.com>
1701
1702 * coffread.c (record_minimal_symbol): Update.
1703 (process_coff_symbol): Update.
1704 * dbxread.c (read_dbx_symtab): Update.
1705 * dwarf2read.c (add_partial_symbol): Update.
1706 (fixup_go_packaging): Update.
1707 (load_partial_dies): Update.
1708 (new_symbol): Update.
1709 * elfread.c (record_minimal_symbol): Change signature to use
1710 gdb::string_view instead of name+len.
1711 (elf_symtab_read): Update.
1712 (elf_rel_plt_read): Update.
1713 * mdebugread.c (parse_partial_symbols): Update.
1714 (handle_psymbol_enumerators): Update.
1715 (new_symbol): Update.
1716 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1717 to use gdb::string_view instead of name+len.
1718 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1719 * psympriv.h (add_psymbol_to_list): Likewise.
1720 * psymtab.c (add_psymbol_to_bcache): Likewise.
1721 (add_psymbol_to_list): Likewise.
1722 * stabsread.c (define_symbol): Update.
1723 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1724 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1725 (symbol_set_names): Likewise.
1726 * xcoffread.c (scan_xcoff_symtab): Update.
1727
0c921b21
CB
17282019-10-29 Christian Biesinger <cbiesinger@google.com>
1729
1730 * symtab.h (symbol_set_names): Document that copy_name must be
1731 set to true for non-nullterminated strings.
1732 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1733 linkage_name if the entry was not found and we need to demangle.
1734
35e65c49
CB
17352019-10-29 Christian Biesinger <cbiesinger@google.com>
1736
1737 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1738 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1739 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1740 * gdbsupport/gdb_binary_search.h: New file.
1741
ed2a2229
CB
17422019-10-29 Christian Biesinger <cbiesinger@google.com>
1743
1744 * NEWS: Mention new --with-system-gdbinit-dir option.
1745 * config.in: Regenerate.
1746 * configure: Regenerate.
1747 * configure.ac: Add new option --with-system-gdbinit-dir.
1748 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1749 for a ".gdb" suffix.
1750 * main.c (get_init_files): Change system_gdbinit argument to
1751 a vector and return the files in SYSTEM_GDBINIT_DIR in
1752 addition to SYSTEM_GDBINIT.
1753 (captured_main_1): Update.
1754 (print_gdb_help): Update.
1755 * top.c (print_gdb_configuration): Also print the value of
1756 SYSTEM_GDBINIT_DIR.
1757
87f34879
CB
17582019-10-28 Christian Biesinger <cbiesinger@google.com>
1759
1760 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1761 that takes gdb::string_view arguments.
1762
30baf67b
TV
17632019-10-26 Tom de Vries <tdevries@suse.de>
1764
1765 * aarch64-linux-tdep.c: Fix typos in comments.
1766 * aarch64-tdep.c: Same.
1767 * ada-lang.c: Same.
1768 * amd64-nat.c: Same.
1769 * arc-tdep.c: Same.
1770 * arch/aarch64-insn.c: Same.
1771 * block.c: Same.
1772 * breakpoint.h: Same.
1773 * btrace.h: Same.
1774 * c-varobj.c: Same.
1775 * cli/cli-decode.c: Same.
1776 * cli/cli-script.c: Same.
1777 * cli/cli-utils.h: Same.
1778 * coff-pe-read.c: Same.
1779 * coffread.c: Same.
1780 * compile/compile-cplus-symbols.c: Same.
1781 * compile/compile-object-run.c: Same.
1782 * completer.c: Same.
1783 * corelow.c: Same.
1784 * cp-support.c: Same.
1785 * demangle.c: Same.
1786 * dwarf-index-write.c: Same.
1787 * dwarf2-frame.c: Same.
1788 * dwarf2-frame.h: Same.
1789 * eval.c: Same.
1790 * frame-base.h: Same.
1791 * frame.h: Same.
1792 * gdbcmd.h: Same.
1793 * gdbtypes.h: Same.
1794 * gnu-nat.c: Same.
1795 * guile/scm-objfile.c: Same.
1796 * i386-tdep.c: Same.
1797 * i386-tdep.h: Same.
1798 * infcall.c: Same.
1799 * infcall.h: Same.
1800 * linux-nat.c: Same.
1801 * m68k-tdep.c: Same.
1802 * macroexp.c: Same.
1803 * memattr.c: Same.
1804 * mi/mi-cmd-disas.c: Same.
1805 * mi/mi-getopt.h: Same.
1806 * mi/mi-main.c: Same.
1807 * minsyms.c: Same.
1808 * nat/aarch64-sve-linux-sigcontext.h: Same.
1809 * objfiles.h: Same.
1810 * ppc-linux-nat.c: Same.
1811 * ppc-linux-tdep.c: Same.
1812 * ppc-tdep.h: Same.
1813 * progspace.h: Same.
1814 * prologue-value.h: Same.
1815 * python/py-evtregistry.c: Same.
1816 * python/py-instruction.h: Same.
1817 * record-btrace.c: Same.
1818 * record-full.c: Same.
1819 * remote.c: Same.
1820 * rs6000-tdep.c: Same.
1821 * ser-tcp.c: Same.
1822 * sol-thread.c: Same.
1823 * sparc-sol2-tdep.c: Same.
1824 * sparc64-tdep.c: Same.
1825 * stabsread.c: Same.
1826 * symfile.c: Same.
1827 * symtab.h: Same.
1828 * target.c: Same.
1829 * tracepoint.c: Same.
1830 * tui/tui-data.h: Same.
1831 * tui/tui-io.c: Same.
1832 * tui/tui-win.c: Same.
1833 * tui/tui.c: Same.
1834 * unittests/rsp-low-selftests.c: Same.
1835 * user-regs.h: Same.
1836 * utils.c: Same.
1837 * utils.h: Same.
1838 * valarith.c: Same.
1839 * valops.c: Same.
1840 * valprint.c: Same.
1841 * valprint.h: Same.
1842 * value.c: Same.
1843 * value.h: Same.
1844 * varobj.c: Same.
1845 * x86-nat.h: Same.
1846 * xtensa-tdep.c: Same.
1847
1834d45f
AT
18482019-10-25 Ali Tamur <tamur@google.com>
1849
1850 * charset.c (find_charset_names): Reflect API change.
1851
5396ae17
CB
18522019-10-25 Christian Biesinger <cbiesinger@google.com>
1853
1854 * symtab.c (struct demangled_name_entry): Change demangled name
1855 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1856 part of the struct anymore.
1857 (symbol_set_names): No longer obstack allocate + copy the demangled
1858 name, just store the allocated name from bfd.
1859
93878f47
TT
18602019-10-25 Tom Tromey <tromey@adacore.com>
1861
1862 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1863 (bsearch_cie_cmp, add_cie): Remove.
1864 (find_cie): Reimplement.
1865 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1866 (dwarf2_build_frame_info): Update.
1867
7b71fc97
L
18682019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1869
1870 PR gdb/25126
1871 * symfile.c (reread_symbols): Call forget_cached_source_info to
1872 clear the stale source cache.
1873
cbb5a2ea
CB
18742019-10-24 Christian Biesinger <cbiesinger@google.com>
1875
1876 * configure: Regenerate.
1877 * configure.ac: Remove code that sets python_has_threads.
1878
71737c43
CB
18792019-10-24 Christian Biesinger <cbiesinger@google.com>
1880
1881 * config.in: Regenerate.
1882 * configure: Regenerate.
1883 * configure.ac: Remove the code that uses sed to get the python
1884 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1885
33d569b7
AB
18862019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1889 error paths.
1890
f16f7b7c
TT
18912019-10-23 Tom Tromey <tom@tromey.com>
1892
1893 * arc-tdep.c: Remove ".." from include.
1894 * frv-tdep.c: Remove ".." from include.
1895 * lm32-tdep.c: Remove ".." from include.
1896 * microblaze-tdep.c: Remove ".." from include.
1897 * or1k-tdep.h: Remove ".." from include.
1898 * s12z-tdep.c: Remove ".." from include.
1899 * Makefile.in (OPCODES_CFLAGS): Add comment.
1900 (TOP_CFLAGS): New variable.
1901 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1902
6999161a
TT
19032019-10-23 Tom Tromey <tom@tromey.com>
1904
1905 * Makefile.in (READLINE_DIR): Update.
1906
12e7c35e
TBA
19072019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1908
1909 * infcall.c (call_function_by_hand_dummy): Fix the function
1910 comment. And extract out a code section into...
1911 (reserve_stack_space): ...this new function.
1912
37055cad
TBA
19132019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1914
1915 * infcall.c (value_arg_coerce): Remove an unused parameter.
1916 (call_function_by_hand_dummy): Update the call to
1917 'value_arg_coerce'.
1918
39bcc47c
TBA
19192019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1920
1921 * infcall.c (call_function_by_hand_dummy): Refactor.
1922
bd888c0f
TBA
19232019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1924
1925 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1926
c12d372d
TT
19272019-10-23 Tom Tromey <tom@tromey.com>
1928
1929 * configure: Rebuild.
1930 * configure.ac: Don't check for sigprocmask.
1931 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1932
4d0b984b
TT
19332019-10-23 Tom Tromey <tom@tromey.com>
1934
1935 * configure: Rebuild.
1936 * acinclude.m4: Use m4_include, not sinclude.
1937
7e785608
TV
19382019-10-23 Tom de Vries <tdevries@suse.de>
1939
1940 PR breakpoints/24687
1941 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1942
403772ef
CB
19432019-10-22 Christian Biesinger <cbiesinger@google.com>
1944
1945 * symtab.c (struct demangled_name_entry) <language>: Change from
1946 bitfield to regular variable.
1947
3a494279
CB
19482019-10-22 Christian Biesinger <cbiesinger@google.com>
1949
1950 * symtab.c (struct demangled_name_entry): Add a constructor.
1951 (free_demangled_name_entry): New function to call the destructor
1952 for demangled_name_entry.
1953 (create_demangled_names_hash): Pass free_demangled_name_entry to
1954 htab_create_alloc.
1955 (symbol_set_names): Call placement new for demangled_name_entry.
1956 * utils.c: No longer include xxhash.h here, now that fast_hash
1957 is inlined in the header.
1958 * utils.h: Instead, include it here.
1959
ccb1ba62
CB
19602019-10-22 Christian Biesinger <cbiesinger@google.com>
1961
1962 * Makefile.in: Link with libxxhash.
1963 * config.in: Regenerate.
1964 * configure: Regenerate.
1965 * configure.ac: Search for libxxhash.
1966 * utils.c (fast_hash): Use xxhash if present.
1967
1a6ff1a9
CB
19682019-10-22 Christian Biesinger <cbiesinger@google.com>
1969
1970 * utils.h (fast_hash): New function.
1971 * symtab.c (hash_demangled_name_entry): Call new function
1972 fast_hash.
1973
7bb43059
CB
19742019-10-22 Christian Biesinger <cbiesinger@google.com>
1975
1976 * symtab.c (struct demangled_name_entry): Change type of mangled
1977 to gdb::string_view. Also adds a constructor that takes the
1978 mangled name.
1979 (hash_demangled_name_entry): Update.
1980 (eq_demangled_name_entry): Update.
1981 (free_demangled_name_entry): New function to call the destructor
1982 now that this is not a POD anymore.
1983 (create_demangled_names_hash): Pass free_demangled_name_entry to
1984 htab_create_alloc.
1985 (symbol_set_names): Update.
1986
7ba99d21
AT
19872019-10-21 Ali Tamur <tamu@google.com>
1988
1989 * dwarf2read.c (dir_index): Change type.
1990 (file_name_index): Likewise.
1991 (line_header::include_dir_at): Change comment and implementation on
1992 whether it is DWARF 5.
1993 (line_header::is_valid_file_index): New function.
1994 (line_header::file_name_at): Change comment and implementation on
1995 whether it is DWARF 5.
1996 (line_header::file_names): Change to private field renamed as
1997 m_file_names and introduce a new accessor method.
1998 (line_header::file_names_size): New method.
1999 (line_header::include_dirs): Change to private field and rename as
2000 m_include_dirs.
2001 (dw2_get_file_names_reader): Define local var at a smaller scope and
2002 reflect API change.
2003 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2004 (process_structure_scope): Likewise.
2005 (line_header::add_include_dir): Change message and reflect renaming.
2006 (line_header::add_file_name): Likewise.
2007 (read_formatted_entries): Handle DW_FORM_data16.
2008 (dwarf_decode_line_header): Fix line header length calculation.
2009 (psymtab_include_file_name): Change comment and API.
2010 (lnp_state_machine::m_file): Update comment and reflect type change.
2011 (lnp_state_machine::record_line): Reflect type change.
2012 (dwarf_decode_lines): Reflect API change.
2013 (file_file_name): Likewise.
2014 (file_full_name): Likewise.
2015
45f47c3a
AB
20162019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2019
e5f3c0e3
TT
20202019-10-21 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2023
a0a461e5
TT
20242019-10-21 Tom Tromey <tom@tromey.com>
2025
2026 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2027 NM_H. Use AC_CONFIG_LINKS.
2028 * configure: Rebuild.
2029 * Makefile.in (NM_H): New variable.
2030 (generated_files): Add NM_H. Remove gcore.
2031 (nm.h, stamp-nmh): New targets.
2032
54d83b8d
TT
20332019-10-20 Tom Tromey <tom@tromey.com>
2034
2035 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2036 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2037 obsolete comment.
2038 (put_objfile_before): Now static.
2039
23771117
SM
20402019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * gdbsupport/common-utils.h (startswith): Change return type to
2043 bool.
2044
39ef2f62
CB
20452019-10-19 Christian Biesinger <cbiesinger@google.com>
2046
2047 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2048 * breakpoint.c (bp_locations_compare): Rename to...
2049 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2050 (update_global_location_list): Use std::sort instead of qsort.
2051 * buildsym.c (compare_line_numbers): Rename to...
2052 (lte_is_less_than): ...this, and change to std::sort semantics.
2053 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2054 instead of qsort.
2055 * disasm.c (compare_lines): Rename to...
2056 (line_is_less_than): ...this, and change to std::sort semantics.
2057 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2058 of qsort.
2059 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2060 (fde_is_less_than): ...this, and change to std::sort semantics.
2061 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2062 * mdebugread.c (compare_blocks):
2063 (block_is_less_than): ...this, and change to std::sort semantics.
2064 (sort_blocks): Call std::sort instead of qsort.
2065 * objfiles.c (qsort_cmp): Rename to...
2066 (sort_cmp): ...this, and change to std::sort semantics.
2067 (update_section_map): Call std::sort instead of qsort.
2068 * remote.c (compare_pnums): Remove.
2069 (map_regcache_remote_table): Call std::sort instead of qsort.
2070 * utils.c (compare_positive_ints): Remove.
2071 * utils.h (compare_positive_ints): Remove.
2072 * xcoffread.c (compare_lte): Remove.
2073 (arrange_linetable): Call std::sort instead of qsort.
2074
f71433ee
SDJ
20752019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2076
2077 * symfile.c (init_entry_point_info): Fix typo.
2078 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2079
85102364
TV
20802019-10-18 Tom de Vries <tdevries@suse.de>
2081
2082 * aarch64-tdep.c: Fix typos in comments.
2083 * ada-lang.c: Same.
2084 * ada-tasks.c: Same.
2085 * alpha-tdep.c: Same.
2086 * alpha-tdep.h: Same.
2087 * amd64-nat.c: Same.
2088 * amd64-windows-tdep.c: Same.
2089 * arc-tdep.c: Same.
2090 * arc-tdep.h: Same.
2091 * arch-utils.c: Same.
2092 * arm-nbsd-tdep.c: Same.
2093 * arm-tdep.c: Same.
2094 * ax-gdb.c: Same.
2095 * blockframe.c: Same.
2096 * btrace.c: Same.
2097 * c-varobj.c: Same.
2098 * coff-pe-read.c: Same.
2099 * coffread.c: Same.
2100 * cris-tdep.c: Same.
2101 * darwin-nat.c: Same.
2102 * dbxread.c: Same.
2103 * dcache.c: Same.
2104 * disasm.c: Same.
2105 * dtrace-probe.c: Same.
2106 * dwarf-index-write.c: Same.
2107 * dwarf2-frame-tailcall.c: Same.
2108 * dwarf2-frame.c: Same.
2109 * dwarf2read.c: Same.
2110 * eval.c: Same.
2111 * exceptions.c: Same.
2112 * fbsd-tdep.c: Same.
2113 * findvar.c: Same.
2114 * frame.c: Same.
2115 * frv-tdep.c: Same.
2116 * gnu-v3-abi.c: Same.
2117 * go32-nat.c: Same.
2118 * h8300-tdep.c: Same.
2119 * hppa-tdep.c: Same.
2120 * i386-linux-tdep.c: Same.
2121 * i386-tdep.c: Same.
2122 * ia64-libunwind-tdep.c: Same.
2123 * ia64-tdep.c: Same.
2124 * infcmd.c: Same.
2125 * infrun.c: Same.
2126 * linespec.c: Same.
2127 * linux-nat.c: Same.
2128 * linux-thread-db.c: Same.
2129 * machoread.c: Same.
2130 * mdebugread.c: Same.
2131 * mep-tdep.c: Same.
2132 * mn10300-tdep.c: Same.
2133 * namespace.c: Same.
2134 * objfiles.c: Same.
2135 * opencl-lang.c: Same.
2136 * or1k-tdep.c: Same.
2137 * osabi.c: Same.
2138 * ppc-linux-nat.c: Same.
2139 * ppc-linux-tdep.c: Same.
2140 * ppc-sysv-tdep.c: Same.
2141 * printcmd.c: Same.
2142 * procfs.c: Same.
2143 * record-btrace.c: Same.
2144 * record-full.c: Same.
2145 * remote-fileio.c: Same.
2146 * remote.c: Same.
2147 * rs6000-tdep.c: Same.
2148 * s12z-tdep.c: Same.
2149 * score-tdep.c: Same.
2150 * ser-base.c: Same.
2151 * ser-go32.c: Same.
2152 * skip.c: Same.
2153 * sol-thread.c: Same.
2154 * solib-svr4.c: Same.
2155 * solib.c: Same.
2156 * source.c: Same.
2157 * sparc-nat.c: Same.
2158 * sparc-sol2-tdep.c: Same.
2159 * sparc-tdep.c: Same.
2160 * sparc64-tdep.c: Same.
2161 * stabsread.c: Same.
2162 * stack.c: Same.
2163 * symfile.c: Same.
2164 * symtab.c: Same.
2165 * target-descriptions.c: Same.
2166 * target-float.c: Same.
2167 * thread.c: Same.
2168 * utils.c: Same.
2169 * valops.c: Same.
2170 * valprint.c: Same.
2171 * value.c: Same.
2172 * varobj.c: Same.
2173 * windows-nat.c: Same.
2174 * xcoffread.c: Same.
2175 * xstormy16-tdep.c: Same.
2176 * xtensa-tdep.c: Same.
2177
c5adaa19
TT
21782019-10-17 Tom Tromey <tromey@adacore.com>
2179
2180 * configure: Rebuild.
2181 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2182 in AC_CONFIG_FILES invocation.
2183 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2184 new-style config.status invocation.
2185
405feb71
TV
21862019-10-17 Tom de Vries <tdevries@suse.de>
2187
2188 * arm-nbsd-nat.c: Fix typos in comments.
2189 * arm-tdep.c: Same.
2190 * darwin-nat-info.c: Same.
2191 * dwarf2read.c: Same.
2192 * elfread.c: Same.
2193 * event-top.c: Same.
2194 * findvar.c: Same.
2195 * gdbtypes.c: Same.
2196 * hppa-tdep.c: Same.
2197 * i386-tdep.c: Same.
2198 * jit.c: Same.
2199 * main.c: Same.
2200 * mdebugread.c: Same.
2201 * moxie-tdep.c: Same.
2202 * nto-procfs.c: Same.
2203 * osabi.c: Same.
2204 * ppc-linux-tdep.c: Same.
2205 * remote.c: Same.
2206 * riscv-tdep.c: Same.
2207 * s390-tdep.c: Same.
2208 * sh-tdep.c: Same.
2209 * sparc-linux-tdep.c: Same.
2210 * sparc-nat.c: Same.
2211 * stack.c: Same.
2212 * target-descriptions.c: Same.
2213 * top.c: Same.
2214 * varobj.c: Same.
2215
befcd486
TT
22162019-10-16 Tom Tromey <tom@tromey.com>
2217
2218 * objfiles.h (struct objfile) <original_name>: Now const.
2219
17bfe554
CB
22202019-10-16 Christian Biesinger <cbiesinger@google.com>
2221
2222 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2223 pass on to sigsetjmp's second argument.
2224 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2225
950b7495
KS
22262019-10-16 Keith Seitz <keiths@redhat.com>
2227
2228 PR gdb/23567
2229 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2230 sections whose size is greater than the file size.
2231
ff371ec9
JW
22322019-10-16 Jim Wilson <jimw@sifive.com>
2233
2234 * riscv-tdep.c (riscv_gcc_target_options): New.
2235 (riscv_gnu_triplet_regexp): New.
2236 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2237 set_gdbarch_gnu_triplet_regexp.
2238
fec4e896
CB
22392019-10-16 Christian Biesinger <cbiesinger@google.com>
2240
2241 * Makefile.in: Add xml-builtin.h.
2242 * features/feature_to_c.sh: Add an include for xml-builtin.h
2243 to ensure that the compiler checks that the types match.
2244 * xml-builtin.h: New file.
2245 * xml-support.c (fetch_xml_builtin): Add missing const.
2246 * xml-support.h: Remove declaration of xml_builtins.
2247
d10eccaa
TV
22482019-10-16 Tom de Vries <tdevries@suse.de>
2249
2250 PR tdep/25096
2251 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2252 (amd64_classify_aggregate): ... here.
2253 (amd64_classify_aggregate_field): Handled fiels of nested structs
2254 recursively.
2255
745ff14e
TV
22562019-10-16 Tom de Vries <tdevries@suse.de>
2257
2258 PR tdep/24104
2259 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2260 that handles 'theclass'.
2261
791b7405
AB
22622019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * linespec.c (decode_digits_ordinary): Update comment.
2265 * make-target-delegates: No longer need to handle VEC case.
2266 * memrange.c (normalize_mem_ranges): Update comment.
2267 * namespace.c (add_using_directive): Update comment.
2268 * objc-lang.c (uniquify_strings): Update comment.
2269 * ppc-linux-nat.c (struct thread_points): Update comment.
2270 * probe.h (find_probes_in_objfile): Update comment.
2271 * target.h (enum flash_preserve_mode): Update comment.
2272 * varobj.c (varobj_restrict_range): Update comment.
2273 * varobj.h (varobj_list_children): Update comment.
2274
0dc32745
AB
22752019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * Makefile.in: Remove references to vec.h and vec.c.
2278 * aarch64-tdep.c: No longer include vec.h.
2279 * ada-lang.c: Likewise.
2280 * ada-lang.h: Likewise.
2281 * arm-tdep.c: Likewise.
2282 * ax.h: Likewise.
2283 * breakpoint.h: Likewise.
2284 * charset.c: Likewise.
2285 * cp-support.h: Likewise.
2286 * dtrace-probe.c: Likewise.
2287 * dwarf2read.c: Likewise.
2288 * extension.h: Likewise.
2289 * gdb_bfd.c: Likewise.
2290 * gdbsupport/gdb_vecs.h: Likewise.
2291 * gdbsupport/vec.c: Remove.
2292 * gdbsupport/vec.h: Remove.
2293 * gdbthread.h: Likewise.
2294 * guile/scm-type.c: Likewise.
2295 * inline-frame.c: Likewise.
2296 * machoread.c: Likewise.
2297 * memattr.c: Likewise.
2298 * memrange.h: Likewise.
2299 * namespace.h: Likewise.
2300 * nat/linux-btrace.h: Likewise.
2301 * osdata.c: Likewise.
2302 * parser-defs.h: Likewise.
2303 * progspace.h: Likewise.
2304 * python/py-type.c: Likewise.
2305 * record-btrace.c: Likewise.
2306 * rust-exp.y: Likewise.
2307 * solib-target.c: Likewise.
2308 * stap-probe.c: Likewise.
2309 * target-descriptions.c: Likewise.
2310 * target-memory.c: Likewise.
2311 * target.h: Likewise.
2312 * varobj.c: Likewise.
2313 * varobj.h: Likewise.
2314 * xml-support.h: Likewise.
2315
ae640021
AB
23162019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2319 Update for new std::vector based implementation.
2320 (process_psymtab_comp_unit_reader): Likewise.
2321 (scan_partial_symbols): Likewise.
2322 (recursively_compute_inclusions): Likewise.
2323 (compute_compunit_symtab_includes): Likewise.
2324 (process_imported_unit_die): Likewise.
2325 (queue_and_load_dwo_tu): Likewise.
2326 (follow_die_sig_1): Likewise.
2327 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2328 (typedef dwarf2_per_cu_ptr): Remove.
2329 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2330 function.
2331 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2332 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2333 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2334 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2335 std::vector.
2336
55dfc88f
TT
23372019-10-15 Tom Tromey <tromey@adacore.com>
2338
2339 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2340 TID.
2341
96b49c5e
TT
23422019-10-15 Tom Tromey <tromey@adacore.com>
2343
2344 * windows-nat.c (windows_nat_target::fetch_registers)
2345 (windows_nat_target::store_registers): Rename "pid" to "tid".
2346
953cff56
TT
23472019-10-15 Tom Tromey <tromey@adacore.com>
2348
2349 * gdbarch.h, gdbarch.c: Rebuild.
2350 * gdbarch.sh (gcc_target_options): Change return type to
2351 std::string.
2352 * compile/compile.c (get_args): Update.
2353 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2354 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2355 std::string.
2356 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2357 std::string.
2358 * arch-utils.c (default_gcc_target_options): Return std::string.
2359 * arch-utils.h (default_gcc_target_options): Return std::string.
2360 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2361
81e6b8eb
CB
23622019-10-15 Christian Biesinger <cbiesinger@google.com>
2363
2364 * breakpoint.c (breakpoint_chain): Make static.
2365 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2366 of accessing breakpoint_chain.
2367
95da600f
CB
23682019-10-15 Christian Biesinger <cbiesinger@google.com>
2369
2370 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2371 to a gdb::function_view and return value to bool.
2372 * breakpoint.h (iterate_over_breakpoints): Likewise.
2373 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2374 (pop_dummy_frame): Update.
2375 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2376 (gdbscm_breakpoints): Update.
2377 * python/py-breakpoint.c (build_bp_list): Update.
2378 (gdbpy_breakpoints): Update.
2379 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2380 Update.
2381 (bpfinishpy_handle_stop): Update.
2382 (bpfinishpy_handle_exit): Update.
2383 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2384 (svr4_update_solib_event_breakpoints): Update.
2385
ba18312d
AA
23862019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2387
2388 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2389 when unwrapping single-field structs.
2390
6acc1a0b
SM
23912019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * dwarf2read.c: Remove includes.
2394
284782de
SM
23952019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * ui-out.c (ui_out::call_do_message): Silence
2398 -Wformat-nonliteral warning.
2399
073bbbb0
SM
24002019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2401
2402 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2403 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2404 include: readline/tilde.h.
2405
7b9a15e1
CB
24062019-10-12 Christian Biesinger <cbiesinger@google.com>
2407
2408 * remote.c (remote_target::get_trace_status): Remove declaration of
2409 trace_regblock_size.
2410
cc8dee1f
CB
24112019-10-12 Christian Biesinger <cbiesinger@google.com>
2412
2413 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2414 (show_user): Remove declaration of cmdlist.
2415 * cli/cli-cmds.h (max_user_call_depth): Declare.
2416 * cli/cli-script.c (execute_user_command): Remove declaration
2417 of max_user_call_depth.
2418
a83d4ef6
JW
24192019-10-11 Jim Wilson <jimw@sifive.com>
2420
5f93c5a6
JW
2421 * gdbsupport/print-utils.h (pulongest): Fix comment.
2422 (plongest): Likewise.
2423 (phex): Add missing comment, mention leading zeros.
2424 (phex_nz): Add mention of no leading zeros to comment.
2425
a83d4ef6
JW
2426 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2427 plongest instead of unsigned long long cast.
2428
26344e0c
CB
24292019-10-10 Christian Biesinger <cbiesinger@google.com>
2430
2431 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2432 for external_editor_command and gdbtk_test.
2433
c2c440a9
CB
24342019-10-10 Christian Biesinger <cbiesinger@google.com>
2435
2436 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2437 * varobj.c (varobjdebug): Move comment to...
2438 * varobj.h (varobjdebug): ...here, and declare.
2439
a31bff9d
TT
24402019-10-09 Tom Tromey <tom@tromey.com>
2441
2442 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2443 erase_data_content.
2444
7523da63
TT
24452019-10-09 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2448 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2449 * tui/tui-command.c (tui_cmd_window::resize)
2450 (tui_refresh_cmd_win): Update.
2451 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2452 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2453 * tui/tui-data.c (~tui_gen_win_info): Remove.
2454 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2455 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2456 (tui_redisplay_readline, tui_mld_flush)
2457 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2458 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2459 (tui_data_window::erase_data_content)
2460 (tui_data_item_window::rerender)
2461 (tui_data_item_window::refresh_window): Update.
2462 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2463 (box_win, tui_gen_win_info::make_window)
2464 (tui_gen_win_info::make_visible): Update.
2465 (tui_delete_win): Remove.
2466 * tui/tui-winsource.c
2467 (tui_source_window_base::do_erase_source_content): Update.
2468 (tui_show_source_line, tui_source_window_base::update_tab_width)
2469 (tui_source_window_base::update_exec_info): Update.
2470 * tui/tui-data.h (struct curses_deleter): New.
2471 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2472 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2473
a7798e7f
TT
24742019-10-09 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2477
5c45899e
TT
24782019-10-09 Tom Tromey <tom@tromey.com>
2479
2480 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2481 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2482
6d7fd9aa
TT
24832019-10-09 Tom Tromey <tom@tromey.com>
2484
2485 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2486 window height directly.
2487 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2488 declare.
2489 * tui/tui-layout.c (tui_default_win_height): Remove.
2490 (tui_default_win_viewport_height): Remove.
2491
d2dd1084
TT
24922019-10-09 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui.h: Remove comments.
2495
cff32449
TV
24962019-10-09 Tom de Vries <tdevries@suse.de>
2497
2498 * python/lib/gdb/printer/bound_registers.py: Use
2499 '^builtin_type_bound128' as regexp argument for
2500 add_builtin_pretty_printer.
2501
6a25e8a2
CB
25022019-10-09 Christian Biesinger <cbiesinger@google.com>
2503
2504 * guile/guile.c (guile_extension_script_ops): Remove forward
2505 declaration and mark as static.
2506 (guile_script_ops): Likewise.
2507 (extension_language_guile): Move further down in the file so
2508 it can reference the definitions for guile_{extension_,}script_ops.
2509
6d9d6da4
AA
25102019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2511
2512 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2513 except SORTL, DFLTCC, and KDSA.
2514
3abea05d
TT
25152019-10-08 Tom Tromey <tromey@adacore.com>
2516
2517 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2518 (struct safe_symbol_file_add_args): Remove.
2519
dde996e2
TT
25202019-10-08 Tom Tromey <tromey@adacore.com>
2521
2522 * windows-nat.c: Don't include buildsym-legacy.h.
2523
cd6fdaa1
TT
25242019-10-08 Tom Tromey <tromey@adacore.com>
2525
2526 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2527
79bb1944
CB
25282019-10-08 Christian Biesinger <cbiesinger@google.com>
2529
2530 * gdbtypes.c (overload_debug): Move comment to header.
2531 * gdbtypes.h (overload_debug): Declare.
2532 * valops.c: Remove declaration of overload_debug, instead
2533 include gdbtypes.h.
2534
34916edc
CB
25352019-10-08 Christian Biesinger <cbiesinger@google.com>
2536
2537 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2538 through _().
2539 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2540 move comment...
2541 * language.h (lang_frame_mismatch_warn): ... here. Also add
2542 declaration.
2543 * top.c (lang_frame_mismatch_warn): Remove declaration.
2544 (check_frame_language_change): Pass lang_frame_mismatch_warn
2545 through _().
2546
bad5c026
CB
25472019-10-07 Christian Biesinger <cbiesinger@google.com>
2548
2549 * c-lang.h (vtbl_ptr_name): Declare.
2550 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2551 it from the header.
2552 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2553
51f1fdc3
CB
25542019-10-07 Christian Biesinger <cbiesinger@google.com>
2555
2556 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2557 gdb_static_assert.
2558
30d1f018
WP
25592019-10-07 Weimin Pan <weimin.pan@oracle.com>
2560
606813d5
WP
2561 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2562 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2563 * ctfread.c: New file.
2564 * ctfread.h: New file.
2565 * elfread.c: Include ctfread.h.
2566 (struct elfinfo text_p): New member ctfsect.
2567 (elf_locate_sections): Mark CTF section.
2568 (elf_symfile_read): Call elfctf_build_psymtabs.
2569 * Makefile.in (LIBCTF): Add.
2570 (CLIBS): Use it.
2571 (CDEPS): Likewise.
2572 (DIST): Add ctfread.c.
606813d5
WP
2573
25742019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ctfread.c (struct nextfield): Renamed to ...
2577 (struct ctf_nextfield): ... this.
2578 (struct field_info): Renamed to ...
2579 (strut ctf_field_info): ... this.
2580 (attach_fields_to_type): Update for renamed structures.
2581 (ctf_add_member_cb): Likewise.
2582 (ctf_add_enum_member_cb): Likewise.
2583 (process_struct_members): Likewise.
2584 (process_enum_type): Likewise.
30d1f018 2585
518fe38c
WP
25862019-10-07 Weimin Pan <weimin.pan@oracle.com>
2587
2588 * tracectf.h: Rename, was ctf.h.
2589 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2590 * tracefile.c: Likewise.
2591 * tracepoint.c: Remove unused include ctf.h.
2592 * mi/mi-main.c: Likewise.
2593 * Makefile.in Replace ctf.c with tracectf.c.
2594
225f296a
JB
25952019-10-06 Joel Brobecker <brobecker@adacore.com>
2596
2597 * version.in: Change version number to "9.0.50.DATE-git".
2598
77c2dba3
TT
25992019-10-03 Tom Tromey <tom@tromey.com>
2600
2601 PR rust/24976:
2602 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2603
179aed7f
AB
26042019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2607 cp_search_name_hash.
2608 * NEWS: Add entry about nested function support.
2609
0a4b0913
AB
26102019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2611 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2614 for nested static variables when searchin VAR_DOMAIN.
2615 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2616 global scope, update comment.
2617 (add_partial_subprogram): Call add_partial_subprogram recursively
2618 for nested subroutines when processinng Fortran.
2619 (load_partial_dies): Process the child entities of a subprogram
2620 when processing Fortran.
2621 (partial_die_parent_scope): Handle building scope
2622 for Fortran nested functions.
2623 (process_die): Record that nested functions have a scope.
2624 (new_symbol): Always record Fortran subprograms on the global
2625 symbol list.
2626 (determine_prefix): How to build the prefix for Fortran
2627 subprograms.
2628
d8c06f22
AB
26292019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2632 have just sent the thread a SIGSTOP and are waiting for it to
2633 arrive.
2634
a8b3b8e9
AB
26352019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * btrace.c (btrace_add_pc): Remove whitespace before the template
2638 parameter in 'std::vector <...>'.
2639 (parse_xml_btrace_block): Likewise.
2640 (btrace_maint_decode_pt): Likewise.
2641 (btrace_maint_update_packets): Likewise.
2642 (btrace_maint_print_packets): Likewise.
2643 * btrace.h (struct btrace_maint_info): Likewise.
2644 * dwarf2read.c (struct type_unit_group): Likewise.
2645 (build_type_psymtabs_reader): Likewise.
2646 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2647 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2648 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2649
4d825eab
TV
26502019-10-03 Tom de Vries <tdevries@suse.de>
2651
2652 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2653 the first line of the help text for set/show style metadata.
2654
80fd2826
TT
26552019-10-02 Tom Tromey <tromey@adacore.com>
2656
2657 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2658 * gdbsupport/common-inferior.c: New file.
2659 * infcmd.c (startup_with_shell): Don't define.
2660 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2661 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2662 * inferior.h (startup_with_shell): Don't declare.
2663
70054538
CB
26642019-10-02 Christian Biesinger <cbiesinger@google.com>
2665
2666 * gdbsupport/gdb_assert.h: Include errors.h.
2667 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2668
37f6a7f4
TT
26692019-10-02 Tom Tromey <tromey@adacore.com>
2670
2671 * NEWS: Add $_ada_exception entry.
2672 * ada-lang.c (struct ada_catchpoint): Add constructor.
2673 <m_kind>: New member.
2674 (allocate_location_exception, re_set_exception): Remove
2675 "ex" parameter.
2676 (should_stop_exception): Compute $_ada_exception.
2677 (check_status_exception, print_it_exception)
2678 (print_one_exception, print_mention_exception): Remove
2679 "ex" parameter.
2680 (allocate_location_catch_exception, re_set_catch_exception)
2681 (check_status_exception, print_it_catch_exception)
2682 (print_one_catch_exception, print_mention_catch_exception)
2683 (print_recreate_catch_exception)
2684 (allocate_location_catch_exception_unhandled)
2685 (re_set_catch_exception_unhandled)
2686 (check_status_exception, print_it_catch_exception_unhandled)
2687 (print_one_catch_exception_unhandled)
2688 (print_mention_catch_exception_unhandled)
2689 (print_recreate_catch_exception_unhandled)
2690 (allocate_location_catch_assert, re_set_catch_assert)
2691 (check_status_assert, print_it_catch_assert)
2692 (print_one_catch_assert, print_mention_catch_assert)
2693 (print_recreate_catch_assert)
2694 (allocate_location_catch_handlers, re_set_catch_handlers)
2695 (check_status_handlers, print_it_catch_handlers)
2696 (print_one_catch_handlers, print_mention_catch_handlers)
2697 (print_recreate_catch_handlers): Remove.
2698 (create_ada_exception_catchpoint): Update.
2699 (initialize_ada_catchpoint_ops): Update.
2700
fccf9de1
TT
27012019-10-02 Tom Tromey <tromey@adacore.com>
2702
2703 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2704 (create_excep_cond_exprs): Simplify exception string computation.
2705 (ada_exception_catchpoint_cond_string): Likewise.
2706
4b610737
TT
27072019-10-02 Tom Tromey <tromey@adacore.com>
2708
2709 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2710 * ada-lang.c (lesseq_defined_than): Handle
2711 LOC_STATIC.
2712 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2713 parameter.
2714 (dwarf2_has_info): Likewise.
2715 (new_symbol): Set maybe_copied on symbol when
2716 appropriate.
2717 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2718 parameter.
2719 <can_copy>: New member.
2720 * elfread.c (record_minimal_symbol): Set maybe_copied
2721 on symbol when appropriate.
2722 (elf_symfile_read): Update call to dwarf2_has_info.
2723 * minsyms.c (lookup_minimal_symbol_linkage): New
2724 function.
2725 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2726 * symtab.c (get_symbol_address, get_msymbol_address):
2727 New functions.
2728 * symtab.h (get_symbol_address, get_msymbol_address):
2729 Declare.
2730 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2731 maybe_copied.
2732 (struct symbol, struct minimal_symbol) <maybe_copied>:
2733 New member.
2734
1dd58850
TT
27352019-10-02 Tom Tromey <tromey@adacore.com>
2736
2737 * source.c (struct current_source_location): New.
2738 (current_source_key): New global.
2739 (current_source_symtab, current_source_line)
2740 (current_source_pspace): Remove.
2741 (get_source_location): New function.
2742 (get_current_source_symtab_and_line)
2743 (set_default_source_symtab_and_line)
2744 (set_current_source_symtab_and_line)
2745 (clear_current_source_symtab_and_line, select_source_symtab)
2746 (info_source_command, print_source_lines_base)
2747 (info_line_command, search_command_helper, _initialize_source):
2748 Update.
2749
5c281dbb
TT
27502019-10-02 Tom Tromey <tromey@adacore.com>
2751
2752 * source.c (select_source_symtab): Don't call
2753 decode_line_with_current_source.
2754
d3d32391
AB
27552019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * symtab.c (lookup_global_symbol): Search global block.
2758
38583298
TT
27592019-10-02 Tom Tromey <tromey@adacore.com>
2760
2761 * coffread.c (process_coff_symbol): Update.
2762 * dwarf2read.c (var_decode_location, new_symbol): Update.
2763 * mdebugread.c (parse_symbol): Update.
2764 * objfiles.c (relocate_one_symbol): Update.
2765 * stabsread.c (define_symbol, fix_common_block)
2766 (scan_file_globals): Update.
2767 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2768 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2769 * xcoffread.c (process_xcoff_symbol): Update.
2770
9344c18f
AA
27712019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2772
2773 * MAINTAINERS: Update my email address.
2774
df07e2c7
AB
27752019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2778 std::vector.
2779 (build_type_psymtabs_reader): Update for std::vector.
2780 (build_type_psymtab_dependencies): Likewise.
2781 * dwarf2read.h: Remove use of DEF_VEC_P.
2782 (typedef sig_type_ptr): Delete.
2783
554ac434
AB
27842019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2787 to std::vector.
2788 (btrace_maint_decode_pt): Likewise, and move allocation of the
2789 vector outside of the loop.
2790 (btrace_maint_update_packets): Update to handle change from VEC to
2791 std::vector.
2792 (btrace_maint_print_packets): Likewise.
2793 (maint_info_btrace_cmd): Likewise.
2794 * btrace.h: Remove use of DEF_VEC_O.
2795 (typedef btrace_pt_packet_s): Delete.
2796 (struct btrace_maint_info) <packets>: Change fromm VEC to
2797 std::vector.
2798 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2799
46f29a9a
AB
28002019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2803 make accesses into the vector constant references.
2804 (btrace_add_pc): Update for std::vector.
2805 (btrace_stitch_bts): Likewise.
2806 (parse_xml_btrace_block): Likewise.
2807 (btrace_maint_update_packets): Likewise.
2808 (btrace_maint_print_packets): Likewise.
2809 (maint_info_btrace_cmd): Likewise.
2810 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2811 std::vector.
2812 (btrace_data::empty): Likewise.
2813 (btrace_data_append): Likewise.
2814 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2815 (typedef btrace_block_s): Delete.
2816 (struct btrace_block): Add constructor.
2817 (struct btrace_data_bts) <blocks>: Change to std::vector.
2818 * nat/linux-btrace.c (perf_event_read_bts): Update for
2819 std::vector.
2820 (linux_read_bts): Likewise.
2821
d770d56f
TT
28222019-10-01 Tom Tromey <tom@tromey.com>
2823
2824 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2825
9d636d67
TT
28262019-10-01 Tom Tromey <tom@tromey.com>
2827
2828 * stack.c (print_frame, info_frame_command_core): Use
2829 styled_string.
2830 * linux-thread-db.c (try_thread_db_load_1)
2831 (try_thread_db_load_from_pdir_1): Use styled_string.
2832 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2833 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2834 (maybe_print_unsupported_script_warning)
2835 (maybe_print_script_not_found_warning): Use styled_string.
2836 * ada-lang.c (user_select_syms): Use styled_string.
2837
7f6aba03
TT
28382019-10-01 Tom Tromey <tom@tromey.com>
2839
2840 * p-lang.c (pascal_printstr): Use metadata style.
2841 * value.c (show_convenience): Use metadata style.
2842 * valprint.c (valprint_check_validity, val_print_optimized_out)
2843 (val_print_not_saved, val_print_unavailable)
2844 (val_print_invalid_address, generic_val_print, val_print)
2845 (value_check_printable, val_print_array_elements): Use metadata
2846 style.
2847 * ui-out.h (class ui_out) <field_fmt>: New overload.
2848 <do_field_fmt>: Add style parameter.
2849 * ui-out.c (ui_out::field_fmt): New overload.
2850 * typeprint.c (type_print_unknown_return_type)
2851 (val_print_not_allocated, val_print_not_associated): Use metadata
2852 style.
2853 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2854 parameter.
2855 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2856 * tracepoint.c (tvariables_info_1): Use metadata style.
2857 * stack.c (print_frame_arg, print_frame_info, print_frame)
2858 (info_frame_command_core): Use metadata style.
2859 * skip.c (info_skip_command): Use metadata style.
2860 * rust-lang.c (rust_print_enum): Use metadata style.
2861 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2862 metadata style.
2863 * python/py-framefilter.c (py_print_single_arg): Use metadata
2864 style.
2865 * printcmd.c (do_one_display, print_variable_and_value): Use
2866 metadata style.
2867 * p-valprint.c (pascal_val_print)
2868 (pascal_object_print_value_fields): Use metadata style.
2869 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2870 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2871 parameter.
2872 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2873 * m2-valprint.c (m2_print_long_set): Use metadata style.
2874 * m2-typeprint.c (m2_print_type): Use metadata style.
2875 * infcmd.c (print_return_value_1): Use metadata style.
2876 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2877 * f-valprint.c (info_common_command_for_block): Use metadata
2878 style.
2879 * f-typeprint.c (f_type_print_base): Use metadata style.
2880 * expprint.c (print_subexp_standard): Use metadata style.
2881 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2882 * cli/cli-style.h (class cli_style_option): Add constructor.
2883 (metadata_style): Declare.
2884 * cli/cli-style.c (metadata_style): New global.
2885 (_initialize_cli_style): Register metadata style.
2886 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2887 parameter.
2888 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2889 * c-typeprint.c (c_type_print_base_struct_union)
2890 (c_type_print_base_1): Use metadata style.
2891 * breakpoint.c (watchpoint_value_print)
2892 (print_one_breakpoint_location): Use metadata style.
2893 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2894 style.
2895 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2896 style.
2897 * ada-valprint.c (val_print_packed_array_elements, printstr)
2898 (print_field_values, ada_val_print_ref, ada_val_print): Use
2899 metadata style.
2900 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2901 style.
2902 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2903 style.
2904 * ada-lang.c (user_select_syms): Use metadata style.
2905
14309bb6
TT
29062019-10-01 Tom Tromey <tom@tromey.com>
2907
2908 * cli/cli-cmds.c (pwd_command): Style output.
2909
6a831f06
PA
29102019-10-01 Pedro Alves <palves@redhat.com>
2911 Tom Tromey <tom@tromey.com>
2912
2913 * symtab.c (print_symbol_info): Use %ps.
2914 (print_msymbol_info): Use %ps.
2915 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2916 * printcmd.c (print_variable_and_value): Use %ps.
2917 * macrocmd.c (show_pp_source_pos): Use %ps.
2918 * infrun.c (print_exited_reason): Use ui_out::message.
2919 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2920 (describe_other_breakpoints): Use ui_out::message and new
2921 formats.
2922 (say_where): Use new formats.
2923 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2924 and new formats.
2925
2a3c1174
PA
29262019-10-01 Pedro Alves <palves@redhat.com>
2927 Tom Tromey <tom@tromey.com>
2928
2929 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2930 (test_gdb_formats): New function.
2931 (run_tests): Call it.
2932 (test_format_specifier): Update.
2933 * utils.h (fputs_filtered): Update comment.
2934 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2935 (fputs_styled_unfiltered): Declare.
2936 * utils.c (fputs_styled_unfiltered): New function.
2937 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2938 (vfprintf_filtered): Update.
2939 (vfprintf_unfiltered, vprintf_filtered): Update.
2940 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2941 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2942 disallow_ui_out_field>: New constants.
2943 (enum class field_kind): New.
2944 (struct base_field_s, struct signed_field_s): New.
2945 (signed_field): New function.
2946 (struct string_field_s): New.
2947 (string_field): New function.
2948 (struct styled_string_s): New.
2949 (styled_string): New function.
2950 (class ui_out) <message>: Add comment.
2951 <vmessage, call_do_message>: New methods.
2952 <do_message>: Add style parameter.
2953 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2954 methods.
2955 (ui_out::message): Rewrite.
2956 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2957 parameter.
2958 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2959 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2960 gdb_extensions parameter.
2961 (class format_piece): Add parameter to constructor.
2962 (n_int_args): New field.
2963 * gdbsupport/format.c (format_pieces::format_pieces): Add
2964 gdb_extensions parameter. Handle '*'.
2965 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2966 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2967 vfprintf_styled_no_gdbfmt.
2968 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2969 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2970 unfiltered output.
2971 * ui-style.h (struct ui_file_style) <ptr>: New method.
2972
0dfe5bfb
TT
29732019-10-01 Tom Tromey <tom@tromey.com>
2974
2975 * unittests/format_pieces-selftests.c: Update. Add final format.
2976 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2977 empty literal pieces.
2978
e43b10e1
TT
29792019-10-01 Tom Tromey <tom@tromey.com>
2980
2981 * ui-out.h (enum class ui_out_style_kind): Remove.
2982 (class ui_out) <field_string, field_stsream, do_field_string>:
2983 Change type of "style".
2984 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2985 (ui_out::field_string): Update.
2986 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2987 of "style".
2988 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2989 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2990 * stack.c (print_frame_arg, print_frame_info, print_frame):
2991 Update.
2992 * source.c (print_source_lines_base): Update.
2993 * solib.c (info_sharedlibrary_command): Update.
2994 * skip.c (info_skip_command): Update.
2995 * record-btrace.c (btrace_call_history_src_line)
2996 (btrace_call_history): Update.
2997 * python/py-framefilter.c (py_print_frame): Update.
2998 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2999 "style".
3000 * mi/mi-out.c (mi_ui_out::do_table_header)
3001 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3002 (mi_ui_out::do_field_string): Update.
3003 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3004 Update.
3005 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3006 "style".
3007 * cli-out.c (cli_ui_out::do_table_header)
3008 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3009 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3010 (cli_ui_out::do_field_fmt): Update.
3011 * breakpoint.c (print_breakpoint_location): Update.
3012 (update_static_tracepoint): Update.
3013
cd7c32c3
PW
30142019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3015
3016 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3017 conversion of gdb_datadir.
3018 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3019 remove not needed c_str ().
3020
8fe0f950
AT
30212019-09-30 Ali Tamur <tamur@google.com>
3022
3023 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3024 (dwarf2_string_attr): Likewise.
3025
5f48f8f3
AT
30262019-09-30 Ali Tamur <tamur@google.com>
3027
3028 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3029 (process_full_type_unit): Likewise.
3030 (dump_die_shallow): Likewise.
3031 (cu_debug_loc_section): Likewise.
3032
6fb08628
CB
30332019-09-28 Christian Biesinger <cbiesinger@google.com>
3034
3035 * minsyms.c (compare_minimal_symbols): Rename to...
3036 (minimal_symbol_is_less_than): ...this, and adjust to STL
3037 conventions (return bool, take arguments as references)
3038 (minimal_symbol_reader::install): Call std::sort instead
3039 of qsort.
3040
c7ee338a
CB
30412019-09-29 Christian Biesinger <cbiesinger@google.com>
3042
3043 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3044 hash and why.
3045 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3046 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3047
703a86c2
SM
30482019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3051 * psympriv.h (add_psymbol_to_list): Move comment here and update
3052 it.
3053
0df0352a
TV
30542019-09-29 Tom de Vries <tdevries@suse.de>
3055
3056 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3057 Use $tmpdir/$(basename "$output_file").dwz instead of
3058 "${output_file}.dwz".
3059
ad75efa6
SM
30602019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 PR gdb/25045
3063 * hppa-linux-nat.c: Include gdbarch.h.
3064
ececd218
CB
30652019-09-26 Christian Biesinger <cbiesinger@google.com>
3066
3067 * blockframe.c (find_pc_partial_function): Change return type to bool.
3068 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3069 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3070 (stub_gnu_ifunc_resolve_name): Likewise.
3071 * symtab.c (compare_filenames_for_search): Likewise.
3072 (compare_glob_filenames_for_search): Likewise.
3073 (matching_obj_sections): Likewise.
3074 (symbol_matches_domain): Likewise.
3075 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3076 (find_line_pc): Change return type to bool.
3077 (find_line_pc_range): Likewise.
3078 (producer_is_realview): Likewise.
3079 * symtab.h (symbol_matches_domain): Likewise.
3080 (find_pc_partial_function): Likewise.
3081 (find_pc_line_pc_range): Likewise.
3082 (in_gnu_ifunc_stub): Likewise.
3083 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3084 (find_line_pc): Likewise.
3085 (find_line_pc_range): Likewise.
3086 (matching_obj_sections): Likewise.
3087 (find_line_symtab): Change out parameter to bool.
3088 (producer_is_realview): Change return type to bool.
3089 (compare_filenames_for_search): Likewise.
3090 (compare_glob_filenames_for_search): Likewise.
3091
27a900b8
TT
30922019-09-26 Tom Tromey <tom@tromey.com>
3093
3094 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3095 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3096 * gdb_usleep.h: Remove.
3097 * gdb_usleep.c: Remove.
3098 * utils.c: Don't include gdb_usleep.h.
3099
5d63b30a
TT
31002019-09-26 Tom Tromey <tromey@adacore.com>
3101
3102 * python/py-type.c (type_to_type_object): Call check_typedef
3103 for stub types.
3104
12904d37
TT
31052019-09-26 Tom Tromey <tom@tromey.com>
3106
3107 * utils.h (initialize_utils): Don't declare.
3108 * top.c (gdb_init): Don't call initialize_utils.
3109 * utils.c (initialize_utils): Remove. Move contents...
3110 (_initialize_utils): ... here.
3111
858f25f0
TT
31122019-09-25 Tom Tromey <tom@tromey.com>
3113
3114 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3115 * utils.h (make_hex_string): Don't declare.
3116 * utils.c (make_hex_string): Remove.
3117
3d435220
TV
31182019-09-24 Tom de Vries <tdevries@suse.de>
3119
3120 PR gdb/23815
3121 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3122 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3123
ddd44b70
DD
31242019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3125
3126 * NEWS: Mention new simulator port for PRU.
3127
f945dedf
CB
31282019-09-23 Christian Biesinger <cbiesinger@google.com>
3129
3130 * ada-exp.y (write_object_remaining): Update.
3131 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3132 and eliminate the static buffer.
3133 (ada_decode_symbol): Update.
3134 (ada_la_decode): Update.
3135 (ada_sniff_from_mangled_name): Update.
3136 (is_valid_name_for_wild_match): Update.
3137 (ada_lookup_name_info::matches): Update and simplify.
3138 (name_matches_regex): Update.
3139 (ada_add_global_exceptions): Update.
3140 * ada-lang.h (ada_decode): Update signature.
3141 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3142 * dwarf-index-write.c (debug_names::insert): Update.
3143
7ab78ccb
SM
31442019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3147 formatting.
3148
9252448b
SM
31492019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3152 Change "nonzero" to "true" in documentation.
3153
626ca2c0
CB
31542019-09-20 Christian Biesinger <cbiesinger@google.com>
3155
3156 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3157 (_initialize_darwin_solib): Don't set
3158 darwin_so_ops.lookup_lib_global_symbol.
3159 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3160 set_gdbarch_iterate_over_objfiles_in_search_order.
3161 (elf_lookup_lib_symbol): Rename to...
3162 (svr4_iterate_over_objfiles_in_search_order): this, and update
3163 to iterate semantics.
3164 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3165 * solib.c (solib_global_lookup): Remove.
3166 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3167 (solib_global_lookup): Remove.
3168 * symtab.c (lookup_global_or_static_symbol): Remove call to
3169 solib_global_lookup.
3170
5a3a0d63
JB
31712019-09-20 Joel Brobecker <brobecker@adacore.com>
3172
3173 * NEWS: Move entries about default MI version now being
3174 version 3, and about the GDB/MI fix for multi-location
3175 breakpoints to the "since GDB 8.3" section.
3176
ffea1427
JB
31772019-09-20 Joel Brobecker <brobecker@adacore.com>
3178
3179 GDB 8.3.1 released.
3180
abf516c6
UW
31812019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3182
3183 * NEWS: Mention that Cell/B.E. debugging support was removed.
3184 * MAINTAINERS: Remove spu target.
3185
3186 * config/djgpp/fnchange.lst: Remove entries for removed files.
3187
3188 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3189 spu-multiarch.o, and spu-tdep.o.
3190 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3191 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3192 spu-multiarch.c, and spu-tdep.c.
3193 * spu-linux-nat.c: Remove file.
3194 * spu-multiarch.c: Remove file.
3195 * spu-tdep.c: Remove file.
3196 * spu-tdep.h: Remove file.
3197 * solib-spu.c: Remove file.
3198 * solib-spu.h: Remove file.
3199
3200 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3201 * configure.nat (spu-linux): Remove.
3202 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3203 solib-multiarch.o from gdb_target_obs.
3204 (spu*-*-*): Remove.
3205
3206 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3207 feature flag.
3208 (ppc_linux_no_features): Update.
3209 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3210 Cell/B.E. support.
3211 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3212 (tdesc_powerpc_cell64l): Likewise.
3213 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3214 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3215 Cell/B.E. support.
3216 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3217 Do not include "features/rs6000/powerpc-cell32l.c" or
3218 "features/rs6000/powerpc-cell64l.c".
3219 (ppc_linux_spu_section): Remove.
3220 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3221 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3222 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3223 (ppc_linux_spe_context_lookup): Remove.
3224 (ppc_linux_spe_context_inferior_created): Remove.
3225 (ppc_linux_spe_context_solib_loaded): Remove.
3226 (ppc_linux_spe_context_solib_unloaded): Remove.
3227 (ppc_linux_spe_context): Remove.
3228 (struct ppu2spu_cache): Remove.
3229 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3230 (struct ppu2spu_data): Remove.
3231 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3232 ppu2spu_unwind): Remove.
3233 (ppc_linux_init_abi): Remove Cell/B.E. support.
3234 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3235
3236 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3237 (rs6000/powerpc-cell64l-expedite): Likewise
3238 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3239 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3240 rs6000/powerpc-cell64l.xml.
3241 * features/rs6000/powerpc-cell32l.xml: Remove.
3242 * features/rs6000/powerpc-cell64l.xml: Likewise.
3243 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3244 * features/rs6000/powerpc-cell64l.c: Likewise.
3245 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3246 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3247 * regformats/reg-spu.dat: Remove.
3248
3249 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3250 * corelow.c (struct spuid_list): Remove.
3251 (add_to_spuid_list): Remove.
3252 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3253 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3254 (remote_protocol_features): Remove associated entries.
3255 (_initialize_remote): No longer initialize them.
3256 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3257 * linux-nat.c (SPUFS_MAGIC): Remove.
3258 (linux_proc_xfer_spu): Remove.
3259 (spu_enumerate_spu_ids): Remove.
3260 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3261 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3262 (linux_make_corefile_notes): No longer call it.
3263
3264 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3265 (cooked_write_test): Likewise.
3266
78e8cb91
TT
32672019-09-20 Tom Tromey <tom@tromey.com>
3268
3269 * NEWS: Mention case-sensitivity of TUI commands.
3270 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3271 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3272 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3273
f074b67e
TT
32742019-09-20 Tom Tromey <tom@tromey.com>
3275
3276 * tui/tui-source.c (tui_source_window::set_contents): Use
3277 make_unique_xstrdup.
3278 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3279 make_unique_xstrdup.
3280
63c4bf19
TT
32812019-09-20 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-data.c: Remove separator comments.
3284 * tui/tui-layout.c: Remove separator comments.
3285 * tui/tui-win.c: Remove separator comments.
3286 * tui/tui-wingeneral.c: Remove separator comments.
3287
43df9b2f
TT
32882019-09-20 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui.h (strcat_to_buf): Don't declare.
3291 * tui/tui.c (strcat_to_buf): Remove.
3292
7226433c
TT
32932019-09-20 Tom Tromey <tom@tromey.com>
3294
3295 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3296 from "fullname".
3297 * tui/tui-source.c (tui_source_window::set_contents)
3298 (tui_source_window::location_matches_p)
3299 (tui_source_window::maybe_update): Update.
3300
80df3337
TT
33012019-09-20 Tom Tromey <tom@tromey.com>
3302
3303 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3304 Update.
3305 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3306 prefix.
3307 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3308 (tui_data_window::line_from_reg_element_no)
3309 (tui_data_window::first_reg_element_no_inline)
3310 (tui_data_window::show_registers)
3311 (tui_data_window::show_register_group)
3312 (tui_data_window::display_registers_from)
3313 (tui_data_window::display_registers_from_line)
3314 (tui_data_window::first_data_item_displayed)
3315 (tui_data_window::delete_data_content_windows)
3316 (tui_data_window::erase_data_content)
3317 (tui_data_window::do_scroll_vertical)
3318 (tui_data_window::refresh_window)
3319 (tui_data_window::check_register_values): Update.
3320
9923f347
TT
33212019-09-20 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3324 (struct tui_locator_window) <full_name, proc_name>: Now
3325 std::string.
3326 * tui/tui-stack.c (tui_locator_window::make_status_line)
3327 (tui_locator_window::set_locator_fullname)
3328 (tui_locator_window::set_locator_info): Update.
3329 * tui/tui-source.c (tui_source_window::set_contents)
3330 (tui_source_window::showing_source_p): Update.
3331
b76251ab
TT
33322019-09-20 Tom Tromey <tom@tromey.com>
3333
3334 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3335 Don't call tui_locator_win_info_ptr.
3336
0891be08
TT
33372019-09-20 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3340
1b935acf
TT
33412019-09-20 Tom Tromey <tom@tromey.com>
3342
3343 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3344 height for locator.
3345 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3346 * tui/tui-layout.c (show_source_disasm_command, show_data)
3347 (show_source_or_disasm_and_command): Use 1 as height for locator.
3348
9abd8a65
TT
33492019-09-20 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui.c (tui_enable): Update.
3352 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3353 Update.
3354 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3355 Update.
3356 * tui/tui-data.c (win_resized): Now bool.
3357 (tui_win_resized): Return bool.
3358 (tui_set_win_resized_to): Accept a bool.
3359
b5457826
TT
33602019-09-20 Tom Tromey <tom@tromey.com>
3361
3362 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3363 Change type of "refresh_values_only".
3364 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3365 type of "refresh_values_only".
3366
6b915f7d
TT
33672019-09-20 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3370 std::string.
3371 (tui_disassemble): Add "pos" parameter.
3372 (tui_disasm_window::set_contents): Simplify.
3373
2ad52f6f
TT
33742019-09-20 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-winsource.h (struct tui_source_window_base)
3377 <show_source_content>: Now private.
3378 * tui/tui-winsource.c
3379 (tui_source_window_base::show_source_content): Don't handle empty
3380 content case.
3381
b3b1bde6
TT
33822019-09-20 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui-layout.c (show_source_disasm_command)
3385 (show_source_or_disasm_and_command): Don't call
3386 show_source_content.
3387
71a25ed2
TT
33882019-09-20 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3391 Declare.
3392 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3393 from tui_make_status_line.
3394 (tui_locator_window::rerender): Update.
3395
f8532154
TT
33962019-09-20 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3399 (tui_locator_window::rerender): Update.
3400
2d81b349
TT
34012019-09-20 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-winsource.h (struct tui_source_window_base)
3404 <~tui_source_window_base>: Don't declare.
3405 <fullname>: Remove.
3406 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3407 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3408 member.
3409 * tui/tui-source.c (tui_source_window::set_contents): Update.
3410 (tui_source_window::location_matches_p)
3411 (tui_source_window::maybe_update): Update.
3412
f14bec58
TT
34132019-09-20 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-winsource.h (~tui_source_element): Remove.
3416 (tui_source_element): Update.
3417 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3418 * tui/tui-winsource.c (tui_show_source_line): Update.
3419 * tui/tui-source.c (tui_source_window::set_contents): Update.
3420 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3421
78d5933a
TT
34222019-09-20 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3425 declare.
3426 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3427 tui_clear_source_windows_detail.
3428 * tui/tui-winsource.h (struct tui_source_window_base)
3429 <clear_detail>: Don't declare.
3430 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3431 Remove.
3432 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3433
d4207696
TT
34342019-09-20 Tom Tromey <tromey@adacore.com>
3435
3436 PR ada/24919:
3437 * block.c (contained_in): Fix final return value.
3438
00f93c44
AM
34392019-09-20 Alan Modra <amodra@gmail.com>
3440
3441 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3442 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3443 (read_indirect_string_from_dwz): Use bfd accessor.
3444 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3445 * machoread.c (macho_symfile_read_all_oso): Likewise.
3446 * solib.c (solib_bfd_open): Likewise.
3447
e4153ae6
CB
34482019-09-19 Christian Biesinger <cbiesinger@google.com>
3449
3450 * eval.c: Move declaration of overload_resolution to...
3451 * value.h: ...here.
3452
c7ae7675
CB
34532019-09-19 Christian Biesinger <cbiesinger@google.com>
3454
3455 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3456 * arm-linux-tdep.c: Likewise.
3457 * arm-nbsd-nat.c: Likewise.
3458 * arm-tdep.h: Declare arm_apcs_32.
3459 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3460
e86f08d2
CB
34612019-09-19 Christian Biesinger <cbiesinger@google.com>
3462
3463 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3464 * dwarf2read.h: Declare dwarf_always_disassemble.
3465
f64e2f40
TV
34662019-09-19 Tom de Vries <tdevries@suse.de>
3467
3468 PR gdb/25009
3469 * source-cache.c (source_cache::ensure): Catch exception thrown during
3470 construction of the highlighter.
3471
fd361982
AM
34722019-09-18 Alan Modra <amodra@gmail.com>
3473
3474 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3475 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3476 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3477 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3478 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3479 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3480 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3481 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3482 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3483 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3484 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3485 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3486 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3487 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3488 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3489 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3490 * mi/mi-interp.c: Update throughout for bfd section macro and
3491 function changes.
3492 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3493 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3494
11061048
TT
34952019-09-18 Tom Tromey <tom@tromey.com>
3496
3497 * NEWS: Add entry.
3498 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3499 call rl_initialize.
3500 (tui_enable): Do not call rl_initialize.
3501
7a27b85f
CG
35022019-09-18 Christian Groessler <chris@groessler.org>
3503
3504 * alpha-linux-nat.c: Include gdbarch.h.
3505
f64eea3a
SM
35062019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * ui-file.c: Include cli/cli-style.h.
3509 (term_cli_styling): Remove cli_styling declaration.
3510
e6f7f6d1
AM
35112019-09-18 Alan Modra <amodra@gmail.com>
3512
3513 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3514 to bfd_asymbol_section.
3515
1d38e9d1
AM
35162019-09-18 Alan Modra <amodra@gmail.com>
3517
3518 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3519 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3520 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3521
90d92a63
AM
35222019-09-18 Alan Modra <amodra@gmail.com>
3523
3524 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3525 * spu-linux-nat.c (spu_bfd_open): Likewise.
3526
a3d181d2
CB
35272019-09-18 Christian Biesinger <cbiesinger@google.com>
3528
3529 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3530 to bool to match definition in dwarf2read.c.
3531
491144b5
CB
35322019-09-17 Christian Biesinger <cbiesinger@google.com>
3533
3534 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3535 (print_signatures): Likewise.
3536 (trust_pad_over_xvs): Likewise.
3537 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3538 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3539 * arm-linux-nat.c (arm_apcs_32): Likewise.
3540 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3541 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3542 * arm-tdep.c (arm_debug): Likewise.
3543 (arm_apcs_32): Likewise.
3544 * auto-load.c (debug_auto_load): Likewise.
3545 (auto_load_gdb_scripts): Likewise.
3546 (global_auto_load): Likewise.
3547 (auto_load_local_gdbinit): Likewise.
3548 (auto_load_local_gdbinit_loaded): Likewise.
3549 * auto-load.h (global_auto_load): Likewise.
3550 (auto_load_local_gdbinit): Likewise.
3551 (auto_load_local_gdbinit_loaded): Likewise.
3552 * breakpoint.c (disconnected_dprintf): Likewise.
3553 (breakpoint_proceeded): Likewise.
3554 (automatic_hardware_breakpoints): Likewise.
3555 (always_inserted_mode): Likewise.
3556 (target_exact_watchpoints): Likewise.
3557 (_initialize_breakpoint): Update.
3558 * breakpoint.h (target_exact_watchpoints): Change to bool.
3559 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3560 * cli/cli-cmds.c (trace_commands): Likewise.
3561 * cli/cli-cmds.h (trace_commands): Likewise.
3562 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3563 to bool*.
3564 * cli/cli-logging.c (logging_overwrite): Change to bool.
3565 (logging_redirect): Likewise.
3566 (debug_redirect): Likewise.
3567 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3568 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3569 to bool.
3570 <boolean_option_def>: Update.
3571 (struct flag_option_def): Change default type of Context to bool
3572 from int.
3573 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3574 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3575 (get_setshow_command_value_string): Likewise.
3576 * cli/cli-style.c (cli_styling): Change to bool.
3577 (source_styling): Likewise.
3578 * cli/cli-style.h (source_styling): Likewise.
3579 (cli_styling): Likewise.
3580 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3581 to bool.
3582 * command.h (var_types): Update comment.
3583 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3584 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3585 bool.
3586 (debug_compile_cplus_scopes): Likewise.
3587 * compile/compile-internal.h (compile_debug): Likewise.
3588 * compile/compile.c (compile_debug): Likewise.
3589 (struct compile_options) <raw>: Likewise.
3590 * cp-support.c (catch_demangler_crashes): Likewise.
3591 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3592 (usr_cmd_cris_dwarf2_cfi): Likewise.
3593 * csky-tdep.c (csky_debug): Likewise.
3594 * darwin-nat.c (enable_mach_exceptions): Likewise.
3595 * dcache.c (dcache_enabled_p): Likewise.
3596 * defs.h (info_verbose): Likewise.
3597 * demangle.c (demangle): Likewise.
3598 (asm_demangle): Likewise.
3599 * dwarf-index-cache.c (debug_index_cache): Likewise.
3600 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3601 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3602 * dwarf2read.c (check_physname): Likewise.
3603 (use_deprecated_index_sections): Likewise.
3604 (dwarf_always_disassemble): Likewise.
3605 * eval.c (overload_resolution): Likewise.
3606 * event-top.c (set_editing_cmd_var): Likewise.
3607 (exec_done_display_p): Likewise.
3608 * event-top.h (set_editing_cmd_var): Likewise.
3609 (exec_done_display_p): Likewise.
3610 * exec.c (write_files): Likewise.
3611 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3612 (debug_fbsd_nat): Likewise.
3613 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3614 Likewise.
3615 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3616 <backtrace_past_entry> Likewise.
3617 * gdb-demangle.h (demangle): Likewise.
3618 (asm_demangle): Likewise.
3619 * gdb_bfd.c (bfd_sharing): Likewise.
3620 * gdbcore.h (write_files): Likewise.
3621 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3622 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3623 * gdbthread.h (print_thread_events): Likewise.
3624 * gdbtypes.c (opaque_type_resolution): Likewise.
3625 (strict_type_checking): Likewise.
3626 * gnu-nat.c (gnu_debug_flag): Likewise.
3627 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3628 * guile/scm-param.c (pascm_variable): Add boolval.
3629 (add_setshow_generic): Update.
3630 (pascm_param_value): Update.
3631 (pascm_set_param_value_x): Update.
3632 * hppa-tdep.c (hppa_debug): Change to bool..
3633 * infcall.c (may_call_functions_p): Likewise.
3634 (coerce_float_to_double_p): Likewise.
3635 (unwind_on_signal_p): Likewise.
3636 (unwind_on_terminating_exception_p): Likewise.
3637 * infcmd.c (startup_with_shell): Likewise.
3638 * inferior.c (print_inferior_events): Likewise.
3639 * inferior.h (startup_with_shell): Likewise.
3640 (print_inferior_events): Likewise.
3641 * infrun.c (step_stop_if_no_debug): Likewise.
3642 (detach_fork): Likewise.
3643 (debug_displaced): Likewise.
3644 (disable_randomization): Likewise.
3645 (non_stop): Likewise.
3646 (non_stop_1): Likewise.
3647 (observer_mode): Likewise.
3648 (observer_mode_1): Likewise.
3649 (set_observer_mode): Update.
3650 (sched_multi): Change to bool.
3651 * infrun.h (debug_displaced): Likewise.
3652 (sched_multi): Likewise.
3653 (step_stop_if_no_debug): Likewise.
3654 (non_stop): Likewise.
3655 (disable_randomization): Likewise.
3656 * linux-tdep.c (use_coredump_filter): Likewise.
3657 (dump_excluded_mappings): Likewise.
3658 * linux-thread-db.c (auto_load_thread_db): Likewise.
3659 (check_thread_db_on_load): Likewise.
3660 * main.c (captured_main_1): Update.
3661 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3662 xx2_opt, boolean_opt>: Change to bool.
3663 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3664 * maint.c (maintenance_profile_p): Likewise.
3665 (per_command_time): Likewise.
3666 (per_command_space): Likewise.
3667 (per_command_symtab): Likewise.
3668 * memattr.c (inaccessible_by_default): Likewise.
3669 * mi/mi-main.c (mi_async): Likewise.
3670 (mi_async_1): Likewise.
3671 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3672 * nat/fork-inferior.h (startup_with_shell): Likewise.
3673 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3674 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3675 * nios2-tdep.c (nios2_debug): Likewise.
3676 * or1k-tdep.c (or1k_debug): Likewise.
3677 * parse.c (parser_debug): Likewise.
3678 * parser-defs.h (parser_debug): Likewise.
3679 * printcmd.c (print_symbol_filename): Likewise.
3680 * proc-api.c (procfs_trace): Likewise.
3681 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3682 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3683 (set_parameter_value): Update.
3684 (add_setshow_generic): Update.
3685 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3686 to bool*.
3687 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3688 int*.
3689 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3690 * record-btrace.c (record_btrace_target::store_registers): Update.
3691 * record-full.c (record_full_memory_query): Change to bool.
3692 (record_full_stop_at_limit): Likewise.
3693 * record-full.h (record_full_memory_query): Likewise.
3694 * remote-notif.c (notif_debug): Likewise.
3695 * remote-notif.h (notif_debug): Likewise.
3696 * remote.c (use_range_stepping): Likewise.
3697 (interrupt_on_connect): Likewise.
3698 (remote_break): Likewise.
3699 * ser-tcp.c (tcp_auto_retry): Likewise.
3700 * ser-unix.c (serial_hwflow): Likewise.
3701 * skip.c (debug_skip): Likewise.
3702 * solib-aix.c (solib_aix_debug): Likewise.
3703 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3704 (spu_auto_flush_cache_p): Likewise.
3705 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3706 Likewise.
3707 (struct info_print_options) <quiet>: Likewise.
3708 * symfile-debug.c (debug_symfile): Likewise.
3709 * symfile.c (auto_solib_add): Likewise.
3710 (separate_debug_file_debug): Likewise.
3711 * symfile.h (auto_solib_add): Likewise.
3712 (separate_debug_file_debug): Likewise.
3713 * symtab.c (basenames_may_differ): Likewise.
3714 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3715 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3716 (struct info_types_options) <quiet>: Likewise.
3717 * symtab.h (demangle): Likewise.
3718 (basenames_may_differ): Likewise.
3719 * target-dcache.c (stack_cache_enabled_1): Likewise.
3720 (code_cache_enabled_1): Likewise.
3721 * target.c (trust_readonly): Likewise.
3722 (may_write_registers): Likewise.
3723 (may_write_memory): Likewise.
3724 (may_insert_breakpoints): Likewise.
3725 (may_insert_tracepoints): Likewise.
3726 (may_insert_fast_tracepoints): Likewise.
3727 (may_stop): Likewise.
3728 (auto_connect_native_target): Likewise.
3729 (target_stop_and_wait): Update.
3730 (target_async_permitted): Change to bool.
3731 (target_async_permitted_1): Likewise.
3732 (may_write_registers_1): Likewise.
3733 (may_write_memory_1): Likewise.
3734 (may_insert_breakpoints_1): Likewise.
3735 (may_insert_tracepoints_1): Likewise.
3736 (may_insert_fast_tracepoints_1): Likewise.
3737 (may_stop_1): Likewise.
3738 * target.h (target_async_permitted): Likewise.
3739 (may_write_registers): Likewise.
3740 (may_write_memory): Likewise.
3741 (may_insert_breakpoints): Likewise.
3742 (may_insert_tracepoints): Likewise.
3743 (may_insert_fast_tracepoints): Likewise.
3744 (may_stop): Likewise.
3745 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3746 (make_thread_apply_all_options_def_group): Change argument from int*
3747 to bool*.
3748 (thread_apply_all_command): Update.
3749 (print_thread_events): Change to bool.
3750 * top.c (confirm): Likewise.
3751 (command_editing_p): Likewise.
3752 (history_expansion_p): Likewise.
3753 (write_history_p): Likewise.
3754 (info_verbose): Likewise.
3755 * top.h (confirm): Likewise.
3756 (history_expansion_p): Likewise.
3757 * tracepoint.c (disconnected_tracing): Likewise.
3758 (circular_trace_buffer): Likewise.
3759 * typeprint.c (print_methods): Likewise.
3760 (print_typedefs): Likewise.
3761 * utils.c (debug_timestamp): Likewise.
3762 (sevenbit_strings): Likewise.
3763 (pagination_enabled): Likewise.
3764 * utils.h (sevenbit_strings): Likewise.
3765 (pagination_enabled): Likewise.
3766 * valops.c (overload_resolution): Likewise.
3767 * valprint.h (struct value_print_options) <prettyformat_arrays,
3768 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3769 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3770 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3771 Likewise.
3772 * windows-nat.c (new_console): Likewise.
3773 (cygwin_exceptions): Likewise.
3774 (new_group): Likewise.
3775 (debug_exec): Likewise.
3776 (debug_events): Likewise.
3777 (debug_memory): Likewise.
3778 (debug_exceptions): Likewise.
3779 (useshell): Likewise.
3780 * windows-tdep.c (maint_display_all_tib): Likewise.
3781 * xml-support.c (debug_xml): Likewise.
3782
f1b620e9
MG
37832019-09-17 Mike Gulick <mgulick@mathworks.com>
3784
3785 * source.c (prepare_path_for_appending): New function.
3786 (openp): Make use of new function.
3787 (find_and_open_source): Search for the compilation directory and
3788 source file as a relative path beneath the directory search path.
3789
67f3ed6a
AB
37902019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * source-cache.c (source_cache::get_line_charpos): Catch
3793 exceptions and return false, this matches the behaviour documented
3794 in the header file.
3795
74332189
JB
37962019-09-17 Joel Brobecker <brobecker@adacore.com>
3797
3798 * ada-tasks.c (info_task): Remove quoting of the task's name.
3799
f2f24aa9
CB
38002019-09-16 Christian Biesinger <cbiesinger@google.com>
3801
3802 * symfile.c (auto_solib_add): Replace comment with a reference
3803 to the header file.
3804
6a062a93
CB
38052019-09-14 Christian Biesinger <cbiesinger@google.com>
3806
3807 * NEWS: Mention that gdb can now be compiled with Python 3
3808 on Windows.
3809
ec6c8338
AB
38102019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * maint.c (maint_print_section_data::maint_print_section_data):
3813 Force use of 'float log10 (float)' by casting the argument to
3814 float.
3815
aa17805f
AB
38162019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * maint.c: Add 'cmath' include.
3819 (struct maint_print_section_data): New structure.
3820 (print_section_index): New function.
3821 (print_bfd_section_info): Add header comment, small whitespace
3822 cleanup, and update to call new print_section_index function.
3823 (print_objfile_section_info): Likewise.
3824 (maint_obj_section_from_bfd_section): New function.
3825 (print_bfd_section_info_maybe_relocated): New function.
3826 (maintenance_info_sections): Add header comment, always use
3827 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3828
3dd9bb46
AB
38292019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3832 inner scope, add check that the objfile has psymtabs before
3833 checking psymtabs_addrmap.
3834 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3835
4993045d
PW
38362019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3837
3838 * NEWS: Announce that Ada task names are now shown at more places,
3839 and between quotes (except in info task output).
3840 * gdb/ada-tasks.c (task_to_str): New function.
3841 (display_current_task_id): Call task_to_str.
3842 (task_command_1): Likewise.
3843 (print_ada_task_info): In non-mi mode, Properly align headers and data
3844 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3845
7a289707
RO
38462019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3847
3848 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3849 prstatus.pr_lwp.pr_info instead of making it up.
3850
f2aec7f6
CB
38512019-09-11 Christian Biesinger <cbiesinger@google.com>
3852
3853 * auto-load.c (auto_load_expand_dir_vars): Update.
3854 * defs.h (gdb_datadir): Change to std::string.
3855 (python_libdir): Likewise.
3856 (relocate_gdb_directory): Change return type to std::string.
3857 * guile/guile.c (gdbscm_data_directory): Update.
3858 (initialize_scheme_side): Update.
3859 * jit.c (jit_reader_dir): Change to std::string.
3860 (jit_reader_load_command): Update.
3861 * main.c (gdb_datadir): Change to std::string.
3862 (python_libdir): Likewise.
3863 (set_gdb_data_directory): Update.
3864 (relocate_path): Change to return std::string.
3865 (relocate_gdb_directory): Change to return std::string.
3866 (relocate_gdbinit_path_maybe_in_datadir): Update.
3867 (captured_main_1): Update.
3868 * python/python.c (do_start_initialization): Update.
3869 * top.c (show_gdb_datadir): Update.
3870 * xml-syscall.c (xml_init_syscalls_info): Update.
3871 (init_syscalls_info): Update.
3872
9224a013
CB
38732019-09-11 Christian Biesinger <cbiesinger@google.com>
3874
3875 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3876 out of get_init_files.
3877 (get_init_files): Update.
3878
f48cd836
CB
38792019-09-11 Christian Biesinger <cbiesinger@google.com>
3880
3881 * main.c (get_init_files): Change to use std::string.
3882 (captured_main_1): Update.
3883 (print_gdb_help): Update.
3884
9cab7ecd
AT
38852019-09-11 Ali Tamur <tamur@google.com>
3886
3887 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3888 implementation.
3889
67547d89
CB
38902019-09-11 Christian Biesinger <cbiesinger@google.com>
3891
3892 * dbxread.c (read_dbx_symtab): Update.
3893 * dwarf2read.c (load_partial_dies): Update.
3894 * mdebugread.c (parse_partial_symbols): Update.
3895 (handle_psymbol_enumerators): Update.
3896 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3897 * psymtab.c (add_psymbol_to_bcache): Likewise.
3898 (add_psymbol_to_list): Likewise.
3899 * symtab.c (symbol_set_names): Likewise.
3900 * symtab.h (symbol_set_names): Likewise.
3901 * xcoffread.c (scan_xcoff_symtab): Update.
3902
64b2d4a0
TT
39032019-09-11 Tom Tromey <tom@tromey.com>
3904
3905 * symfile-mem.c (symbol_file_add_from_memory): Use
3906 bfd_set_filename.
3907 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3908 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3909
3b00ef10
TT
39102019-09-10 Tom Tromey <tromey@adacore.com>
3911
3912 * dwarf-index-write.c (write_psymbols): Extend error message.
3913 (debug_names::insert): Add Ada code.
3914 (debug_names::write_psymbols): Remove Ada check.
3915 (debug_names) <m_string_obstack>: New member.
3916 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3917 (gdb_index_symbol_name_matcher::matches): Remove.
3918 (mapped_index_base::find_name_components_bounds): Add "lang"
3919 parameter.
3920 (mapped_index_base::build_name_components): Also split names
3921 according to Ada syntax.
3922 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3923 type of "match_callback".
3924 (check_match, check_find_bounds_finds)
3925 (dw2_expand_symtabs_matching): Update.
3926 (dw2_debug_names_iterator): Add new constructor.
3927 (dw2_debug_names_map_matching_symbols): New function.
3928 (dw2_debug_names_expand_symtabs_matching): Update.
3929 (dwarf2_debug_names_functions): Use
3930 dw2_debug_names_map_matching_symbols.
3931
aa391654
TT
39322019-09-10 Tom Tromey <tromey@adacore.com>
3933
3934 * dwarf2read.c (dw2_get_file_names_reader): Add the
3935 CU's file name to the results.
3936
b054970d
TT
39372019-09-10 Tom Tromey <tromey@adacore.com>
3938
3939 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3940 map_matching_symbols. Update.
3941 * dwarf2read.c (dw2_map_matching_symbols): Update.
3942 * psymtab.c (match_partial_symbol): Change type; update.
3943 (psym_map_matching_symbols): Likewise.
3944 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3945 type; update.
3946 * symfile.h (struct quick_symbol_functions)
3947 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3948 Remove "match".
3949
6a3dbf1b
TT
39502019-09-10 Tom Tromey <tromey@adacore.com>
3951
3952 * psymtab.c (map_block): Remove.
3953 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3954 * symtab.c (iterate_over_symbols_terminated): New function.
3955 * symtab.c (iterate_over_symbols_terminated): Declare.
3956
6969f124
TT
39572019-09-10 Tom Tromey <tromey@adacore.com>
3958
3959 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3960 * language.h (struct language_defn) <la_iterate_over_symbols>:
3961 Return bool.
3962 * symtab.c (iterate_over_symbols): Return bool.
3963 * symtab.h (iterate_over_symbols): Return bool.
3964
199b4314
TT
39652019-09-10 Tom Tromey <tromey@adacore.com>
3966
3967 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3968 (add_nonlocal_symbols): Update.
3969 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3970 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3971 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3972 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3973 Change type of "callback". Remove "data".
3974
a084a2a6
AT
3975
39762019-09-09 Ali Tamur <tamur@google.com>
3977
3978 * dwarf2read.c (comp_unit_head): Update comment.
3979 (dwarf2_dwo_name): New function declaration.
3980 (dwarf_unit_type_name): New function declaration.
3981 (read_comp_unit_head): Add support for new compilation units,
3982 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3983 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3984 (currently named as "signature") in their header. Also clarify error
3985 messages.
3986 (lookup_dwo_id): New function. Returns the dwo id of the given
3987 compile unit.
3988 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3989 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3990 functions.
3991 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3992 (dwarf2_dwo_name): Get the dwo name if present.
3993 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3994 purposes.
3995
25a2915e
TT
39962019-09-09 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3999
e4df0874
PW
40002019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4001
4002 * python/python.c (do_start_initialization): Make progname_copy static,
4003 to avoid a leak report.
4004
8634b462
TT
40052019-09-08 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4008
c7f839cb
SM
40092019-09-07 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4012 Change type to gdb::optional<block_enum>.
4013 (dw2_symtab_iter_init): Change block_index parameter type
4014 to gdb::optional<block_enum>.
4015 (dw2_lookup_symbol): Change block_index parameter
4016 type to block_enum.c
4017 (dw2_debug_names_lookup_symbol): Likewise.
4018 * psymtab.c (psym_lookup_symbol): Likewise.
4019 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4020 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4021 Likewise.
4022
ead0e69a
CB
40232019-09-06 Christian Biesinger <cbiesinger@google.com>
4024
4025 * defs.h (relocate_gdb_directory): Change int to bool in
4026 signature and rename flag to relocatable.
4027 * main.c (relocate_path): Likewise.
4028 (relocate_gdb_directory): Likewise.
4029
b16c44de
AM
40302019-09-06 Alan Modra <amodra@gmail.com>
4031
4032 * coffread.c (coff_symfile_read): Constify filename variable.
4033 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4034 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4035 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4036 * solib.c (reload_shared_libraries_1): Likewise.
4037 * symfile.c (reread_symbols): Likewise.
4038 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4039 * solib-darwin.c (darwin_bfd_open): Likewise.
4040 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4041
06ff036e
AB
40422019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4043
4044 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4045 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4046
4e962e74
TT
40472019-09-03 Tom Tromey <tromey@adacore.com>
4048
4049 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4050 types.
4051 (has_negatives): Unbias a range type bound.
4052 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4053 * gdbtypes.c (operator==): Handle new field.
4054 (create_range_type): Add "bias" parameter.
4055 (create_static_range_type, resolve_dynamic_range): Update.
4056 * gdbtypes.h (struct range_bounds) <bias>: New member.
4057 (create_range_type): Add bias parameter.
4058 * printcmd.c (print_scalar_formatted): Unbias range types.
4059 * value.c (unpack_long): Unbias range types.
4060 (pack_long): Bias range types.
4061
d90b8f26
AH
40622019-09-02 Alan Hayward <alan.hayward@arm.com>
4063
4064 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4065 probe arguments.
4066
fe01123e
AH
40672019-09-02 Alan Hayward <alan.hayward@arm.com>
4068
4069 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4070 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4071 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4072 (compile_probe_arg): Likewise.
4073 * probe.h (get_argument_count): Likewise.
4074 * solib-svr4.c (solib_event_probe_action): Likewise.
4075 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4076
e661ef01
AH
40772019-09-02 Alan Hayward <alan.hayward@arm.com>
4078
4079 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4080 code to here...
4081 (svr4_create_solib_event_breakpoints): ...from here.
4082
47a536d9
SDJ
40832019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4084
4085 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4086 suffix from warning message.
4087
d6a00eba
TT
40882019-08-30 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-winsource.h (struct tui_source_window_base)
4091 <refresh_all>: Don't declare.
4092 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4093 Remove.
4094 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4095 tui_show_locator_content.
4096 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4097 declare.
4098 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4099 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4100 declare.
4101
55b2657b
TT
41022019-08-30 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4105
12a8555a
TT
41062019-08-30 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4109 Remove unnecessary forward declarations.
4110
900ac242
TT
41112019-08-30 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4114 rerender.
4115 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4116 tui_show_locator_content.
4117
99ab33fb
TT
41182019-08-30 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4121 (tui_locator_window::rerender): Rewrite using body of previous
4122 tui_show_locator_content.
4123
e594a5d1
TT
41242019-08-30 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4127 set_locator_fullname>: New methods.
4128 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4129 Rename from tui_set_locator_fullname.
4130 (tui_locator_window::set_locator_info): Rename from
4131 tui_set_locator_info. Return bool.
4132 (tui_update_locator_fullname, tui_show_frame_info): Update.
4133
715bb467
TT
41342019-08-30 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4137
772f3f03
TT
41382019-08-30 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4141 call touchwin.
4142
108e13ab
TT
41432019-08-30 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-wingeneral.c (box_win): Assume win_info and
4146 win_info->handle cannot be NULL.
4147
cdaa6eb4
TT
41482019-08-30 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4151 refresh_window>: Declare.
4152 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4153 resize.
4154 (tui_data_item_window::rerender): Rename from
4155 tui_display_register.
4156 (tui_data_item_window::refresh_window): New method.
4157 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4158 no-op.
4159
89df7f90
TT
41602019-08-30 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4163 regs_column_count, current_group>: Move later. Now private.
4164 <get_current_group>: New method.
4165 * tui/tui-regs.c (tui_reg_command): Update.
4166 * tui/tui-layout.c (tui_set_layout): Update.
4167
1bf2866a
TT
41682019-08-30 Tom Tromey <tom@tromey.com>
4169
4170 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4171 (tui_data_window::rerender): Don't call
4172 check_and_display_highlight_if_needed.
4173 (tui_data_window::refresh_all): Remove call to
4174 erase_data_content.
4175
0670413d
TT
41762019-08-30 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4179 (tui_data_window::display_registers_from)
4180 (tui_data_window::display_reg_element_at_line)
4181 (tui_data_window::display_registers_from_line): Remove checks of
4182 "empty".
4183
18bb55c7
TT
41842019-08-30 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4187 Don't declare.
4188 * tui/tui-regs.c (tui_data_window::show_registers): Call
4189 rerender.
4190 (tui_data_window::rerender): Rename from display_all_data.
4191 (tui_data_window::rerender): Remove old implementation.
4192
1f6d2f10
TT
41932019-08-30 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4196 text.
4197 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4198
16d01f9c
BW
41992019-08-29 Bernhard Wodok <barto@gmx.net>
4200 Sergio Durigan Junior <sergiodj@redhat.com>
4201
4202 PR win32/24284
4203 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4204
d8f27c60
AB
42052019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4206
4207 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4208 when searching for types.
4209
1f20c35e
AB
42102019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4211
4212 * f-lang.c (f_language_defn): Use f_print_typedef.
4213 * f-lang.h (f_print_typedef): Declare.
4214 * f-typeprint.c (f_print_typedef): Define.
4215
550105b7
CB
42162019-08-27 Christian Biesinger <cbiesinger@google.com>
4217
4218 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4219
4acfdd20
AB
42202019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4221
4222 * cli/cli-utils.c (info_print_options_defs): Delete.
4223 (make_info_print_options_def_group): Delete.
4224 (extract_info_print_options): Delete.
4225 (info_print_command_completer): Delete.
4226 (info_print_args_help): Add extra parameter, and optionally
4227 include text about -n flag.
4228 * cli/cli-utils.h (struct info_print_options): Delete.
4229 (extract_info_print_options): Delete declaration.
4230 (info_print_command_completer): Delete declaration.
4231 (info_print_args_help): Add extra parameter, extend header
4232 comment.
4233 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4234 search_symbols.
4235 * stack.c (struct info_print_options): New type.
4236 (info_print_options_defs): New file scoped variable.
4237 (make_info_print_options_def_group): New static function.
4238 (info_print_command_completer): New static function.
4239 (info_locals_command): Update to use new local functions.
4240 (info_args_command): Likewise.
4241 (_initialize_stack): Add extra parameter to calls to
4242 info_print_args_help.
4243 * symtab.c (search_symbols): Add extra parameter, use this to
4244 possibly excluse non-debug symbols.
4245 (symtab_symbol_info): Add extra parameter, which is passed on to
4246 search_symbols.
4247 (struct info_print_options): New type.
4248 (info_print_options_defs): New file scoped variable.
4249 (make_info_print_options_def_group): New static function.
4250 (info_print_command_completer): New static function.
4251 (info_variables_command): Update to use local functions, and pass
4252 extra parameter through to symtab_symbol_info.
4253 (info_functions_command): Likewise.
4254 (info_types_command): Pass additional argument through to
4255 symtab_symbol_info.
4256 (rbreak_command): Pass extra argument to search_symbols.
4257 (_initialize_symtab): Add extra arguments for calls to
4258 info_print_args_help, and update help text for 'info variables',
4259 'whereis', and 'info functions' commands.
4260 * symtab.h (search_symbols): Add extra argument to declaration.
4261 * NEWS: Mention new flags.
4262
9aa55206
CB
42632019-08-26 Christian Biesinger <cbiesinger@google.com>
4264
4265 * symtab.c (lookup_static_symbol): Call the new function (and move
4266 it down to be next to lookup_global_symbol).
4267 (struct global_sym_lookup_data): Add block_enum member and rename to...
4268 (struct global_or_static_sym_lookup_data): ...this.
4269 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4270 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4271 (lookup_symbol_global_or_static_iterator_cb): ...this.
4272 (lookup_global_or_static_symbol): New function.
4273 (lookup_global_symbol): Call new function.
4274
5c31b358
TV
42752019-08-26 Tom de Vries <tdevries@suse.de>
4276
4277 PR c++/24852
4278 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4279 when pc_probe.prob == NULL.
4280
23c13d42
SM
42812019-08-25 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4284 variable symbol_linkage to symbol_linkage_.
4285
beadd3e8
SM
42862019-08-25 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4289 represent whether the symbol is static, dynamic, or we don't
4290 know.
4291
e3ec872f
YS
42922019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4293
4294 * gdb/rx-tdep.c (rx_register_names): New.
4295 (rx_register_name): Delete.
4296 (rx_psw_type): Delete.
4297 (rx_fpsw_type): Delete.
4298 (rx_register_type): Delete.
4299 (rx_gdbarch_init): Convert target-descriptions.
4300 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4301 * gdb/features/Makefile: Add rx.xml.
4302 * gdb/features/rx.xml: New.
4303 * gdb/features/rx.c: Generated.
4304 * gdb/NEWS: Mention target description support.
4305
d0509ba4
CB
43062019-08-22 Christian Biesinger <cbiesinger@google.com>
4307
4308 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4309 *slot_ptr.
4310
2d41fa11
SDJ
43112019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4312
4313 * configure.ac: Don't check for 'dlfcn.h' (moved to
4314 gdbsupport/common.m4).
4315 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4316 'gdbsupport/'.
4317 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4318 * compile/compile-c-support.c: Include
4319 'gdbsupport/gdb-dlfcn.h'.
4320 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4321 * gdb-dlfcn.c: Move to...
4322 * gdbsupport/gdb-dlfcn.c: ... here.
4323 * gdb-dlfcn.h: Move to...
4324 * gdbsupport/gdb-dlfcn.h: ... here.
4325
de8af808
SL
43262019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4327
4328 * nios2-tdep.c (struct reg_value): Improve comments. Make
4329 the offset field signed.
4330
27204489
CB
43312019-08-22 Christian Biesinger <cbiesinger@google.com>
4332
4333 * python/lib/gdb/__init__.py (_execute_file): New function.
4334 * python/python.c (python_run_simple_file): Call gdb._execute_file
4335 on Windows.
4336
43771869
AB
43372019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4340 all uses as this was never set to anything but a zero value.
4341
26c957f1
PA
43422019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4343
4344 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4345
c07aae6e
CB
43462019-08-21 Christian Biesinger <cbiesinger@google.com>
4347
4348 * tui/tui-data.h (tui_gen_win_info): Add an =default
4349 move constructor, required by some GCC versions.
4350
3960cb7a
JF
43512019-08-21 Jinke Fan <fanjinke51@yeah.net>
4352
4353 * go32-nat.c (go32_sysinfo): Add hygon_p.
4354
04c72a68
TT
43552019-08-20 Tom Tromey <tom@tromey.com>
4356
4357 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4358 line_from_reg_element_no, first_reg_element_no_inline,
4359 display_all_data, delete_data_content_windows,
4360 erase_data_content>: Now private.
4361
072272ce
TT
43622019-08-20 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4365 (tui_unhighlight_win, tui_highlight_win)
4366 (tui_win_info::make_window): Update.
4367 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4368
973961bd
TT
43692019-08-20 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4372 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4373 (MAX_PID_WIDTH): Move to tui-stack.c.
4374 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4375 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4376 (MAX_PID_WIDTH): Move from tui-data.h.
4377
ab0e1f1a
TT
43782019-08-20 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4381 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4382 (box_win): Update.
4383 (tui_gen_win_info::make_window): Rename from tui_make_window.
4384 (tui_win_info::make_window): New method.
4385 (tui_gen_win_info::make_visible): Update.
4386 * tui/tui-source.c (tui_source_window::set_contents): Update.
4387 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4388 (tui_data_window::display_registers_from): Update.
4389 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4390 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4391 Declare.
4392 <can_box>: Remove.
4393 <title>: Remove.
4394 (struct tui_win_info) <make_window>: Declare.
4395 <can_box>: Now virtual.
4396 <title>: New member.
4397 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4398 * tui/tui-command.c (tui_cmd_window::resize): Update.
4399
100c2bf3
TT
44002019-08-20 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4403 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4404 (tui_data_window::check_register_values): Update.
4405
fa4dc567
TT
44062019-08-20 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-regs.h (struct tui_data_window): Use
4409 DISABLE_COPY_AND_ASSIGN.
4410 <regs_content>: Change type, removing unique_ptr.
4411 <tui_data_window>: Add move constructor.
4412 * tui/tui-regs.c (tui_data_window::show_registers)
4413 (tui_data_window::show_register_group)
4414 (tui_data_window::display_registers_from)
4415 (tui_data_window::display_registers_from)
4416 (tui_data_window::first_data_item_displayed)
4417 (tui_data_window::delete_data_content_windows)
4418 (tui_data_window::rerender, tui_data_window::refresh_window)
4419 (tui_data_window::check_register_values): Update.
4420
ca02d7c8
TT
44212019-08-20 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4424 show_register_group>: Declare.
4425 (tui_show_register_group): Don't declare.
4426 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4427 tui_show_registers.
4428 (tui_data_window::show_register_group): Rename from
4429 tui_show_register_group.
4430 (tui_data_window::check_register_values, tui_reg_command):
4431 Update.
4432 * tui/tui-layout.c (tui_set_layout): Update.
4433
63356bfd
TT
44342019-08-20 Tom Tromey <tom@tromey.com>
4435
4436 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4437 Declare.
4438 (tui_check_register_values): Don't declare.
4439 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4440 from tui_check_register_values.
4441 * tui/tui-hooks.c (tui_register_changed): Update.
4442
42cc14a7
TT
44432019-08-20 Tom Tromey <tom@tromey.com>
4444
4445 * tui/tui-regs.c (tui_reg_layout): Move later.
4446 (tui_show_registers): Don't enable TUI mode or change layout.
4447
b9ad3686
TT
44482019-08-20 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-regs.h (struct tui_data_item_window)
4451 <~tui_data_item_window>: Remove.
4452 <content>: Now a unique_xmalloc_ptr.
4453 * tui/tui-regs.c (tui_register_format): Return a
4454 unique_xmalloc_ptr.
4455 (tui_get_register): Update.
4456 (~tui_data_item_window): Remove.
4457 (tui_data_window::display_registers_from, tui_display_register):
4458 Update.
4459 * tui/tui-io.h (tui_expand_tabs): Update.
4460 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4461 Remove "col" parameter.
4462
8e114aab
TT
44632019-08-20 Tom Tromey <tom@tromey.com>
4464
4465 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4466 field.
4467 * tui/tui-regs.c (~tui_data_item_window): Update.
4468
1a4f81dd
TT
44692019-08-20 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4472 earlier.
4473
0f8d8876
TT
44742019-08-20 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4477
605dc2c2
TT
44782019-08-20 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-source.h (struct tui_source_window): Update.
4481 * tui/tui-regs.c (tui_show_registers): Update.
4482 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4483 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4484 (NO_REGS_STRING): Remove defines.
4485
aedbe3bb
CM
44862019-08-20 Conrad Meyer <cem@FreeBSD.org>
4487
4488 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4489 unnecessary thread walk if remote doesn't support the packet.
4490
7ce8f214
TT
44912019-08-19 Tom Tromey <tromey@adacore.com>
4492
4493 * python/py-value.c (value_has_field): Fix indentation.
4494
f21c2bd7
TT
44952019-08-19 Tom Tromey <tromey@adacore.com>
4496
4497 * printcmd.c (do_one_display, info_display_command): Update.
4498 * block.h (contained_in): Return bool. Add allow_nested
4499 parameter.
4500 * block.c (contained_in): Return bool. Add allow_nested
4501 parameter.
4502
d806ea2d
TT
45032019-08-19 Tom Tromey <tom@tromey.com>
4504
4505 * configure: Rebuild.
4506 * configure.ac: Disallow the combination of -static-libstdc++ and
4507 source highlight.
4508 * source-cache.c (get_language_name): Handle rust.
4509 (source_cache::get_source_lines): Ignore highlighting exceptions.
4510
398fdd60
TT
45112019-08-16 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4514 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4515 (struct tui_source_window_base) <make_visible, refresh_window,
4516 resize>: Remove methods.
4517 <execution_info>: Remove field.
4518 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4519 (tui_show_source_line, tui_source_window_base)
4520 (~tui_source_window_base): Update.
4521 (tui_source_window_base::resize)
4522 (tui_source_window_base::make_visible)
4523 (tui_source_window_base::refresh_window): Remove.
4524 (tui_source_window_base::update_exec_info): Update.
4525 * tui/tui-source.c (tui_source_window::set_contents): Update.
4526 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4527
e699d331
TT
45282019-08-16 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4531 deprecated_query_hook.
4532
bb01dbfc
TT
45332019-08-16 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4536 (tui_update_source_windows_with_line): Update.
4537 * tui/tui-source.h (struct tui_source_window)
4538 <show_symtab_source>: Declare.
4539 (tui_show_symtab_source): Don't declare.
4540 * tui/tui-source.c (tui_show_symtab_source): Rename from
4541 tui_show_symtab_source.
4542
81c82c4b
TT
45432019-08-16 Tom Tromey <tom@tromey.com>
4544
4545 * tui/tui-winsource.h (struct tui_source_window_base)
4546 <set_contents>: Declare.
4547 * tui/tui-winsource.c
4548 (tui_source_window_base::update_source_window_as_is): Update.
4549 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4550 Declare.
4551 (tui_set_source_content): Don't declare.
4552 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4553 tui_set_source_content.
4554 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4555 Declare.
4556 (tui_set_disassem_content): Don't declare.
4557 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4558 tui_set_disassem_content.
4559
2ddaf614
TT
45602019-08-16 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-winsource.h (struct tui_source_window_base)
4563 <update_breakpoint_info>: Declare.
4564 (tui_update_breakpoint_info): Don't declare.
4565 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4566 (tui_update_all_breakpoint_info): Update.
4567 (tui_source_window_base::update_breakpoint_info): Rename from
4568 tui_update_breakpoint_info.
4569 (tui_source_window_base::update_exec_info): Update.
4570
017f9828
TT
45712019-08-16 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-winsource.h (struct tui_source_window_base)
4574 <update_source_window>: Declare.
4575 (tui_update_source_window): Don't declare.
4576 * tui/tui-winsource.c
4577 (tui_source_window_base::update_source_window): Rename from
4578 tui_update_source_window.
4579 (tui_source_window_base::rerender): Update.
4580 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4581 * tui/tui-disasm.c (tui_show_disassem)
4582 (tui_show_disassem_and_update_source)
4583 (tui_disasm_window::maybe_update): Update.
4584
ed8358e9
TT
45852019-08-16 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui-winsource.h (struct tui_source_window_base)
4588 <update_source_window_as_is>: Declare.
4589 (tui_update_source_window_as_is): Don't declare.
4590 * tui/tui-winsource.c (tui_update_source_window): Update
4591 (tui_source_window_base::update_source_window_as_is): Rename from
4592 tui_update_source_window_as_is.
4593 (tui_source_window_base::refill): Update.
4594 * tui/tui-source.c (tui_show_symtab_source): Update.
4595 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4596 Update.
4597
20149b6b
TT
45982019-08-16 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-winsource.h (tui_update_source_window)
4601 (tui_update_source_window_as_is): Remove "noerror" parameter.
4602 * tui/tui-winsource.c (tui_update_source_window)
4603 (tui_update_source_window_as_is): Remove "noerror" parameter.
4604 (tui_update_source_windows_with_addr)
4605 (tui_update_source_windows_with_line)
4606 (tui_source_window_base::rerender)
4607 (tui_source_window_base::refill): Update.
4608 * tui/tui-source.h (tui_set_source_content)
4609 (tui_show_symtab_source): Remove "noerror" parameter.
4610 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4611 parameter.
4612 (tui_show_symtab_source): Likewise.
4613 (tui_source_window::maybe_update): Update.
4614 * tui/tui-disasm.c (tui_show_disassem)
4615 (tui_show_disassem_and_update_source)
4616 (tui_disasm_window::do_scroll_vertical)
4617 (tui_disasm_window::maybe_update): Update.
4618
2d83e710
TT
46192019-08-16 Tom Tromey <tom@tromey.com>
4620
4621 * tui/tui.c (tui_is_window_visible): Update.
4622 * tui/tui-wingeneral.c (tui_make_window)
4623 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4624 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4625 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4626 (tui_set_win_height_command, parse_scrolling_args): Update.
4627 * tui/tui-source.c (tui_source_window::style_changed): Update.
4628 * tui/tui-regs.c (tui_show_registers)
4629 (tui_data_window::first_data_item_displayed)
4630 (tui_data_window::delete_data_content_windows)
4631 (tui_check_register_values, tui_reg_command): Update.
4632 * tui/tui-disasm.c (tui_show_disassem): Update.
4633 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4634 method.
4635 <is_visible>: Remove field.
4636 * tui/tui-data.c (tui_next_win, tui_prev_win)
4637 (tui_delete_invisible_windows): Update.
4638
d4ab829a
TT
46392019-08-16 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-winsource.h (struct tui_source_window_base)
4642 <m_has_locator>: Remove.
4643 * tui/tui-layout.c (show_source_disasm_command, show_data)
4644 (show_source_or_disasm_and_command): Update.
4645
aa7ca1bb
AH
46462019-08-16 Alan Hayward <alan.hayward@arm.com>
4647
4648 * NEWS (Other MI changes): New subsection.
4649 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4650 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4651 * arch-utils.c (default_get_pc_address_flags): New function.
4652 * arch-utils.h (default_get_pc_address_flags): New declaration.
4653 * gdbarch.sh: Add get_pc_address_flags.
4654 * gdbarch.c: Regenerate.
4655 * gdbarch.h: Likewise.
4656 * stack.c (print_pc): New function.
4657 (print_frame_info) (print_frame): Call print_pc.
4658
6eac171f
TV
46592019-08-16 Tom de Vries <tdevries@suse.de>
4660
4661 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4662 print_objfile_section_info.
4663
3df505f6
TT
46642019-08-15 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4667 calling update_cmdwin_start_line.
4668 * tui/tui-winsource.h (struct tui_source_window_base)
4669 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4670 <rerender>: Declare.
4671 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4672 Call rerender.
4673 (tui_source_window_base::set_new_height): Remove.
4674 (tui_source_window_base::rerender): Rename from
4675 do_make_visible_with_new_height.
4676 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4677 resize method.
4678 (tui_win_info::make_invisible_and_set_new_height)
4679 (tui_win_info::make_visible_with_new_height): Remove.
4680 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4681 Declare.
4682 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4683 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4684 do_make_visible_with_new_height>: Don't declare.
4685 <rerender>: Declare.
4686 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4687 set_new_height.
4688 (tui_data_window::do_make_visible_with_new_height): Remove.
4689 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4690 call tui_show_locator_content.
4691 (tui_gen_win_info::resize): Call rerender.
4692 (show_source_or_disasm_and_command): Don't call
4693 tui_show_locator_content.
4694 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4695 method.
4696 (struct tui_win_info) <rerender>: Declare.
4697 <set_new_height, make_invisible_and_set_new_height,
4698 make_visible_with_new_height>: Don't declare.
4699 * tui/tui-data.c (tui_win_list::rerender): New method.
4700 * tui/tui-command.h (struct tui_cmd_window)
4701 <do_make_visible_with_new_height>: Don't declare.
4702 * tui/tui-command.c
4703 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4704
272560b5
TT
47052019-08-15 Tom Tromey <tromey@adacore.com>
4706
4707 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4708 * ada-lang.c (ada_enum_name): Likewise.
4709
08235187
CB
47102019-08-15 Christian Biesinger <cbiesinger@google.com>
4711
4712 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4713 leading underscore.
4714 (GdbOutputErrorFile): Likewise.
4715 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4716 accordingly.
4717 (execute_unwinders): Rename to have a leading underscore.
4718 (auto_load_packages): Likewise.
4719 (global scope): Adjust call to auto_load_packages accordingly.
4720 (GdbSetPythonDirectory): Likewise.
4721 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4722 instead of execute_unwinders.
4723
db502012
TT
47242019-08-15 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4727 (show_data): Don't change window visibility.
4728 (tui_gen_win_info::resize): Remove special case for command
4729 window. Use wresize, when available.
4730 (show_source_or_disasm_and_command): Don't change window
4731 visibility.
4732 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4733 <make_visible>: New method.
4734 * tui/tui-command.c (tui_cmd_window::resize): New method.
4735
3891b65e
TT
47362019-08-15 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4739 (struct tui_source_windows): New.
4740 * tui/tui-winsource.c (tui_display_main): Update.
4741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4742 (new_height_ok, parse_scrolling_args): Update.
4743 * tui/tui-layout.c (show_layout, show_data): Update.
4744 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4745 (tui_add_to_source_windows): Don't declare.
4746 * tui/tui-data.c (source_windows, tui_source_windows)
4747 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4748
ee556432
TT
47492019-08-15 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4752 Rename from reset.
4753 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4754 * tui/tui-layout.c (show_source_disasm_command, show_data):
4755 Update.
4756 (tui_gen_win_info::resize): Rename.
4757 (show_source_or_disasm_and_command): Update.
4758 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4759 reset.
4760
46f438e3
TT
47612019-08-15 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4764 * tui/tui-interp.c (tui_interp::init): Don't call
4765 tui_initialize_static_data.
4766 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4767
f4ce562c
TT
47682019-08-15 Tom Tromey <tom@tromey.com>
4769
4770 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4771 examine tui_win_list.
4772
c398c3d0
TT
47732019-08-15 Tom Tromey <tom@tromey.com>
4774
4775 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4776 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4777 tui_clear_source_content.
4778 (tui_clear_source_content): Remove.
4779 (tui_source_window_base::do_erase_source_content): Hoist call to
4780 content.clear().
4781 * tui/tui-stack.c (tui_show_frame_info): Don't call
4782 tui_clear_source_content.
4783
e25d2004
TT
47842019-08-15 Tom Tromey <tom@tromey.com>
4785
4786 * tui/tui-winsource.h (struct tui_source_window_base)
4787 <do_erase_source_content>: New method.
4788 <erase_source_content>: New method.
4789 (tui_erase_source_content): Don't declare.
4790 * tui/tui-winsource.c (tui_clear_source_content): Update.
4791 (tui_source_window_base::do_erase_source_content): Rename from
4792 tui_erase_source_content.
4793 (tui_source_window_base::show_source_content): Update.
4794 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4795 * tui/tui-source.h (struct tui_source_window)
4796 <erase_source_content>: New method.
4797 * tui/tui-disasm.h (struct tui_disasm_window)
4798 <erase_source_content>: New method.
4799
002f15c2
TT
48002019-08-15 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4803 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4804 constructor.
4805 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4806 * tui/tui-source.c (tui_set_source_content): Update.
4807 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4808
c9033fe8
TT
48092019-08-15 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4812 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4813 tui-source.c.
4814 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4815 Declare.
4816 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4817 method.
4818 (tui_source_window::maybe_update): Update.
4819
088f37dd
TT
48202019-08-15 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4823 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4824 tui-disasm.c.
4825 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4826 Declare.
4827 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4828 method.
4829 (tui_disasm_window::maybe_update): Update.
4830
a54700c6
TT
48312019-08-15 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-winsource.h (struct tui_source_window_base)
4834 <maybe_update>: Declare.
4835 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4836 method.
4837 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4838 Declare.
4839 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4840 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4841 Declare.
4842 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4843
e2a678a5
TT
48442019-08-15 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4847
f2dda477
TT
48482019-08-15 Tom Tromey <tom@tromey.com>
4849
4850 * tui/tui-wingeneral.c: Include tui-stack.h.
4851 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4852 (struct tui_locator_window): Move from tui-data.h.
4853 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4854 (tui_initialize_static_data): Move from tui-data.c.
4855 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4856 (struct tui_locator_window): Move to tui-stack.c.
4857 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4858 (tui_initialize_static_data): Move to tui-stack.c.
4859
ed4a1084
TT
48602019-08-15 Tom Tromey <tom@tromey.com>
4861
4862 * tui/tui-layout.c (show_source_disasm_command)
4863 (show_source_or_disasm_and_command): Use make_visible method, not
4864 tui_make_window.
4865 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4866 Remove.
4867
65962b20
TT
48682019-08-15 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-wingeneral.h (tui_make_window): Update.
4871 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4872 parameter.
4873 (tui_gen_win_info::make_visible): Update.
4874 * tui/tui-regs.c (tui_data_window::display_registers_from):
4875 Update.
4876 * tui/tui-layout.c (show_source_disasm_command)
4877 (show_source_or_disasm_and_command): Update.
4878 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4879 (enum tui_box): Remove.
4880 (struct tui_win_info) <can_box>: New method.
4881 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4882 method.
4883
2208ee91
TV
48842019-08-15 Tom de Vries <tdevries@suse.de>
4885
4886 * linux-nat-trad.c: Include gdbarch.h.
4887
75faf5c4
AH
48882019-08-14 Alan Hayward <alan.hayward@arm.com>
4889
4890 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4891 register sizes.
4892
b1c896b3
TT
48932019-08-14 Tom Tromey <tromey@adacore.com>
4894
4895 * darwin-nat.c: Include gdbarch.h.
4896 * darwin-nat-info.c: Include gdbarch.h.
4897
6405cd73
TT
48982019-08-13 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4901 Remove.
4902 * tui/tui-data.c (tui_initialize_static_data): Update.
4903
5216580d
TT
49042019-08-13 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-winsource.h (struct tui_exec_info_window)
4907 <~tui_exec_info_window, maybe_allocate_content, get_content,
4908 m_content>: Remove.
4909 (struct tui_source_window_base) <set_exec_info_content,
4910 show_exec_info_content>: Don't declare.
4911 * tui/tui-winsource.c
4912 (tui_exec_info_window::maybe_allocate_content): Remove.
4913 (tui_source_window_base::update_exec_info): Rename from
4914 set_exec_info_content.
4915 (tui_source_window_base::show_exec_info_content)
4916 (tui_source_window_base::update_exec_info): Remove.
4917
93858ad3
TT
49182019-08-13 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4921 declare.
4922 * tui/tui-winsource.c (tui_update_source_window_as_is)
4923 (tui_update_source_windows_with_addr, tui_erase_source_content):
4924 Update.
4925 (tui_clear_exec_info_content): Remove.
4926
e321e7ce
TT
49272019-08-13 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4930 declare.
4931 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4932 call tui_erase_exec_info_content.
4933 (tui_clear_exec_info_content): Rename from
4934 tui_erase_exec_info_content.
4935 (tui_clear_exec_info_content): Delete.
4936
8270ac62
TT
49372019-08-13 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-winsource.h (struct tui_source_window_base)
4940 <show_exec_info_content>: Declare.
4941 (tui_show_exec_info_content): Don't declare.
4942 * tui/tui-winsource.c
4943 (tui_source_window_base::show_exec_info_content): Rename from
4944 tui_show_exec_info_content.
4945 (tui_source_window_base::update_exec_info): Update.
4946
7b56485d
TT
49472019-08-13 Tom Tromey <tom@tromey.com>
4948
4949 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4950 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4951 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4952 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4953 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4954 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4955 ... here.
4956
7ba913dc
TT
49572019-08-13 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-winsource.h (struct tui_source_window_base)
4960 <update_exec_info>: Declare.
4961 (tui_update_exec_info): Don't declare.
4962 * tui/tui-winsource.c (tui_update_source_window_as_is)
4963 (tui_source_window_base::refresh_all)
4964 (tui_update_all_breakpoint_info): Update.
4965 (tui_source_window_base::update_exec_info): Rename from
4966 tui_update_exec_info.
4967 * tui/tui-stack.c (tui_show_frame_info): Update.
4968
37a4a131
TT
49692019-08-13 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-winsource.h (struct tui_source_window_base)
4972 <set_exec_info_content>: Declare.
4973 (tui_set_exec_info_content): Don't declare.
4974 * tui/tui-winsource.c
4975 (tui_source_window_base::set_exec_info_content): Rename from
4976 tui_set_exec_info_content.
4977 (tui_update_exec_info): Update.
4978
0bd27e07
TT
49792019-08-13 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-winsource.h (struct tui_source_window_base)
4982 <show_source_content>: Declare.
4983 (tui_show_source_content): Don't declare.
4984 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4985 (tui_source_window_base::show_source_content): Rename from
4986 tui_show_source_content.
4987 (tui_source_window_base::refresh_all): Update.
4988 * tui/tui-layout.c (show_source_disasm_command)
4989 (show_source_or_disasm_and_command): Update.
4990
b4ef5aeb
TT
49912019-08-13 Tom Tromey <tom@tromey.com>
4992
4993 * tui/tui-winsource.c (tui_erase_source_content)
4994 (tui_show_source_content, tui_source_window_base::refresh_all):
4995 Update.
4996 * tui/tui-wingeneral.h
4997 (tui_check_and_display_highlight_if_needed): Don't declare.
4998 * tui/tui-wingeneral.c
4999 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5000 check_and_display_highlight_if_needed.
5001 * tui/tui-win.c (tui_rehighlight_all)
5002 (tui_win_info::make_visible_with_new_height): Update.
5003 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5004 (tui_data_window::erase_data_content)
5005 (tui_data_window::display_all_data): Update.
5006 * tui/tui-data.h (struct tui_win_info)
5007 <check_and_display_highlight_if_needed>: Declare.
5008
fede5273
TT
50092019-08-13 Tom Tromey <tom@tromey.com>
5010
5011 * tui/tui-win.c (tui_resize_all): Call
5012 tui_delete_invisible_windows.
5013 * tui/tui-layout.c (show_layout): Call
5014 tui_delete_invisible_windows.
5015 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5016 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5017
22c3f490
TT
50182019-08-13 Tom Tromey <tom@tromey.com>
5019
5020 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5021 tui_add_win_to_layout.
5022
16cb7910
TT
50232019-08-13 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5026 * tui/tui-layout.c (tui_default_win_height): Now static.
5027
cc0c3ffb
TT
50282019-08-13 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5031 single switch.
5032 (show_source_disasm_command, show_source_or_disasm_and_command):
5033 Don't check current layout.
5034
3f3ffe54
TT
50352019-08-13 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-wingeneral.c (make_all_visible): Remove.
5038 (tui_make_all_invisible): Simplify.
5039 * tui/tui-layout.c (tui_make_all_invisible): Move from
5040 tui-wingeneral.c; simplify.
5041 (show_layout): Hoist call to tui_make_all_invisible.
5042 (show_data): Don't call tui_make_all_invisible.
5043
69258091
TT
50442019-08-13 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5047 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5048
62cf57fe
TT
50492019-08-13 Tom Tromey <tom@tromey.com>
5050
5051 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5052 tui-data.c.
5053 (show_source_disasm_command, show_data)
5054 (show_source_or_disasm_and_command): Don't use
5055 tui_set_current_layout_to.
5056 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5057 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5058 tui-layout.c.
5059 (tui_set_current_layout_to): Remove.
5060
2afade5d
TT
50612019-08-13 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-layout.c (tui_set_layout): Update.
5064 * tui/tui-data.h (struct tui_layout_def): Remove.
5065 (tui_layout_def): Don't declare.
5066 * tui/tui-data.c (layout_def): Remove.
5067 (tui_layout_def): Remove.
5068
a3504e96
TT
50692019-08-13 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-winsource.h (struct tui_source_window_base)
5072 <clear_detail>: No longer "override".
5073 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5074 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5075 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5076 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5077 Remove.
5078 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5079
29c92911
TT
50802019-08-13 Tom Tromey <tromey@adacore.com>
5081
5082 * tracepoint.c: Don't include readline.h or history.h.
5083
86c6b807
TT
50842019-08-12 Tom Tromey <tom@tromey.com>
5085
5086 * configure: Rebuild.
5087 * configure.ac: Check for readline 7.
5088 * NEWS: Mention readline 7 requirement.
5089 * README: Update.
5090
5db2718c
TT
50912019-08-12 Tom Tromey <tom@tromey.com>
5092
5093 * mingw-hdep.c (gdb_select): Remove readline hack.
5094
dac36daf
PFC
50952019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5096
5097 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5098 when the function fails.
5099
1022c627
AA
51002019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5101
5102 * s390-tdep.c (s390_type_align): New function.
5103 (s390_gdbarch_init): Set it as type_align gdbarch method.
5104
eba4caf2
TV
51052019-08-09 Tom de Vries <tdevries@suse.de>
5106
5107 PR gdb/24591
5108 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5109 pc_low with relocation offset.
5110
123cd851
TT
51112019-08-07 Tom Tromey <tromey@adacore.com>
5112
5113 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5114 (print_frame_args): Update.
5115 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5116 Update.
5117 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5118 * frame.h (struct frame_arg): Add initializers.
5119 <error>: Now a unique_xmalloc_ptr.
5120
3d31bc39
AH
51212019-08-07 Alan Hayward <alan.hayward@arm.com>
5122
5123 * NEWS: Expand the Pointer Authentication entry.
5124 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5125 (aarch64_frame_unmask_lr): ... to this.
5126 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5127 Call aarch64_frame_unmask_lr.
5128 * frame.c (struct frame_info): Add "masked" variable.
5129 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5130 (fprint_frame): Check for masked pc.
5131 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5132 declarations.
5133 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5134 * stack.c (print_frame): Check for masked pc.
5135
0cf9feb9
TT
51362019-08-06 Tom Tromey <tom@tromey.com>
5137
5138 * stabsread.c (patch_block_stabs, read_one_struct_field)
5139 (read_enum_type): Use obstack_strndup.
5140 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5141 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5142 * dwarf2read.c (guess_full_die_structure_name)
5143 (anonymous_struct_prefix): Use obstack_strndup.
5144 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5145 * c-exp.y (yylex): Use obstack_strndup.
5146 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5147 (write_var_or_type): Use obstack_strndup.
5148
efba19b0
TT
51492019-08-06 Tom Tromey <tom@tromey.com>
5150
5151 * symfile.c (reread_symbols): Use obstack_strdup.
5152 * stabsread.c (read_type): Use obstack_strdup.
5153 * gdb_obstack.h (obstack_strdup): New overload.
5154 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5155 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5156 (dwarf2_canonicalize_name): Use obstack_strdup.
5157 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5158 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5159 Use obstack_strdup.
5160
f25102f7
TT
51612019-08-06 Tom Tromey <tom@tromey.com>
5162
5163 * gdb_obstack.h (obstack_strdup): Define.
5164 * gdb_obstack.c (obstack_strdup): Don't define.
5165
021887d8
TT
51662019-08-06 Tom Tromey <tom@tromey.com>
5167
5168 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5169 obstack_strdup.
5170 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5171 obstack_strdup.
5172 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5173 * stabsread.c (common_block_start): Use obstack_strdup.
5174 * objfiles.c (set_objfile_main_name, objfile): Use
5175 obstack_strdup.
5176 * namespace.c (add_using_directive): Use obstack_strdup.
5177 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5178 * jit.c (finalize_symtab): Use obstack_strdup.
5179 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5180 (guess_partial_die_structure_name, partial_die_info::fixup)
5181 (dwarf2_name): Use obstack_strdup.
5182 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5183 obstack_strdup.
5184 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5185 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5186 obstack_strdup.
5187 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5188
d2834edc
PW
51892019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5190
5191 * unittests/help-doc-selftests.c: New file.
5192 * Makefile.in: Add the new file.
5193
590042fc
PW
51942019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5197 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5198 the full first line, except when FOR_VALUE_PREFIX. In this case,
5199 the trailing '.' is not output, and the first character is uppercased.
5200 (print_help_for_command): Update call to print_doc_line.
5201 (print_doc_of_command): Likewise.
5202 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5203 * cli/cli-option.c (append_indented_doc): Do not append newline.
5204 (build_help_option): Append newline after first appended_indented_doc
5205 only if a second call is done.
5206 (build_help): Append 2 new lines before each option, except the first
5207 one.
5208 * compile/compile.c (_initialize_compile): Add new lines after
5209 %OPTIONS%, when not at the end of the help.
5210 Change help doc or code
5211 producing the help doc to respect the invariants.
5212 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5213 Also removed the new line after 'Options:', as all other commands
5214 do not put an empty line between 'Options:' and the first option.
5215 * printcmd.c (_initialize_printcmd): Likewise.
5216 * stack.c (_initialize_stack): Likewise.
5217 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5218 incorrectly telling COMMAND is optional.
5219 * ada-lang.c (_initialize_ada_language): Change help doc or code
5220 producing the help doc to respect the invariants.
5221 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5222 * breakpoint.c (_initialize_breakpoint): Likewise.
5223 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5224 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5225 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5226 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5227 _initialize_cli_style): Likewise.
5228 * corelow.c (core_target_info): Likewise.
5229 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5230 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5231 * filesystem.c (_initialize_filesystem): Likewise.
5232 * frame.c (_initialize_frame): Likewise.
5233 * gnu-nat.c (add_task_commands): Likewise.
5234 * infcall.c (_initialize_infcall): Likewise.
5235 * infcmd.c (_initialize_infcmd): Likewise.
5236 * interps.c (_initialize_interpreter): Likewise.
5237 * language.c (_initialize_language): Likewise.
5238 * linux-fork.c (_initialize_linux_fork): Likewise.
5239 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5240 * maint.c (_initialize_maint_cmds): Likewise.
5241 * memattr.c (_initialize_mem): Likewise.
5242 * printcmd.c (_initialize_printcmd): Likewise.
5243 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5244 _RegEx): Likewise.
5245 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5246 * record-btrace.c (_initialize_record_btrace): Likewise.
5247 * record-full.c (_initialize_record_full): Likewise.
5248 * record.c (_initialize_record): Likewise.
5249 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5250 * regcache.c (_initialize_regcache): Likewise.
5251 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5252 _initialize_remote): Likewise.
5253 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5254 * serial.c (_initialize_serial): Likewise.
5255 * skip.c (_initialize_step_skip): Likewise.
5256 * source.c (_initialize_source): Likewise.
5257 * stack.c (_initialize_stack): Likewise.
5258 * symfile.c (_initialize_symfile): Likewise.
5259 * symtab.c (_initialize_symtab): Likewise.
5260 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5261 * top.c (init_main): Likewise.
5262 * tracefile-tfile.c (tfile_target_info): Likewise.
5263 * tracepoint.c (_initialize_tracepoint): Likewise.
5264 * tui/tui-win.c (_initialize_tui_win): Likewise.
5265 * utils.c (add_internal_problem_command): Likewise.
5266 * valprint.c (value_print_option_defs): Likewise.
5267
404f2902
FCE
52682019-08-06 Frank Ch. Eigler <fche@redhat.com>
5269
5270 PR build/24886
5271 * configure.ac: Drop enable-libmcheck support.
5272 * configure, config.in: Rebuild.
5273 * libmcheck.m4: Remove.
5274 * acinclude.m4: Don't include it.
5275 * Makefile.in: Don't distribute it.
5276 * top.c (print_gdb_configuration): Don't mention it.
5277
046bebe1
TT
52782019-08-06 Tom Tromey <tom@tromey.com>
5279
5280 * utils.c (set_output_style): Sometimes pass stream to
5281 emit_style_escape.
5282 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5283 * record-btrace.c (btrace_insn_history): Update.
5284 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5285 method.
5286 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5287 Update initializers.
5288 <m_uiout>: New field.
5289 <m_di>: Move lower.
5290 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5291 Remove "uiout" parameter.
5292 (dump_insns): Update.
5293 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5294 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5295
ddbcedf5
CB
52962019-08-06 Christian Biesinger <cbiesinger@google.com>
5297
5298 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5299 (error_in_psymtab_expansion): Likewise.
5300 (lookup_symbol_via_quick_fns): Likewise.
5301 (basic_lookup_transparent_type_quick): Likewise.
5302 (basic_lookup_transparent_type_1): Likewise.
5303
b08b16c8
TT
53042019-08-06 Tom Tromey <tromey@adacore.com>
5305
5306 * source.c (last_source_error): Now bool.
5307 (print_source_lines_base): Make "noprint" bool. Only open
5308 source file when last_source_visited changes.
5309
cb44333d
TT
53102019-08-06 Tom Tromey <tromey@adacore.com>
5311
5312 * annotate.c (annotate_source_line): Use g_source_cache.
5313 * source-cache.c (source_cache::get_plain_source_lines): Change
5314 parameters. Populate m_offset_cache.
5315 (source_cache::ensure): New method.
5316 (source_cache::get_line_charpos): New method.
5317 (extract_lines): Move lower. Change parameters.
5318 (source_cache::get_source_lines): Move lower.
5319 * source-cache.h (class source_cache): Update comment.
5320 <get_line_charpos>: New method.
5321 <get_source_lines>: Update comment.
5322 <clear>: Clear m_offset_cache.
5323 <get_plain_source_lines>: Change parameters.
5324 <ensure>: New method
5325 <m_offset_cache>: New member.
5326 * source.c (forget_cached_source_info_for_objfile): Update.
5327 (info_source_command): Use g_source_cache.
5328 (find_source_lines, open_source_file_with_line_charpos): Remove.
5329 (print_source_lines_base, search_command_helper): Use g_source_cache.
5330 * source.h (open_source_file_with_line_charpos): Don't declare.
5331 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5332 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5333 Use g_source_cache.
5334
872dceaa
TT
53352019-08-06 Tom Tromey <tromey@adacore.com>
5336
5337 * source-cache.c (source_cache::get_plain_source_lines):
5338 Remove "first_line" and "last_line" parameters.
5339 (source_cache::get_source_lines): Cache plain text.
5340 * source-cache.h (class source_cache)
5341 <get_plain_source_lines>: Update.
5342
269249d9
TT
53432019-08-06 Tom Tromey <tromey@adacore.com>
5344
5345 * source-cache.c (extract_lines): No longer a method.
5346 Changed type of parameter. Include final newline.
5347 (selftests::extract_lines_test): New function.
5348 (_initialize_source_cache): Likewise.
5349 * source-cache.h (class source_cache)
5350 <extract_lines>: Don't declare.
5351
c0e8dcd8
TT
53522019-08-06 Tom Tromey <tromey@adacore.com>
5353
5354 * breakpoint.c (init_breakpoint_sal): Update.
5355 (breakpoint): Update.
5356 * breakpoint.h (struct breakpoint) <filter>: Now a
5357 unique_xmalloc_ptr.
5358
0b27c27d
CB
53592019-08-05 Christian Biesinger <cbiesinger@google.com>
5360
5361 * NEWS: Mention dictionary access on blocks.
5362 * python/py-block.c (blpy_getitem): New function.
5363 (block_object_as_mapping): New struct.
5364 (block_object_type): Use new struct for tp_as_mapping field.
5365
4ee94178
CB
53662019-08-05 Christian Biesinger <cbiesinger@google.com>
5367
5368 * objfiles.h (objfile): Add a comment describing partial symbols.
5369
8abfcabc
TT
53702019-08-05 Tom Tromey <tromey@adacore.com>
5371
5372 * compile/compile.c (_initialize_compile): Use _(), not N_().
5373 * thread.c (_initialize_thread): Use _(), not N_().
5374 * stack.c (_initialize_stack): Use _(), not N_().
5375 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5376
2b79f376
SM
53772019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * dwarf2read.c (struct dw2_symtab_iterator):
5380 <want_specific_block>: Remove.
5381 <block_index>: Change type to gdb::optional.
5382 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5383 change type of BLOCK_INDEX parameter to gdb::optional.
5384 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5385 (dw2_lookup_symbol): Don't pass argument for
5386 WANT_SPECIFIC_BLOCK.
5387 (dw2_expand_symtabs_for_function): Don't pass argument for
5388 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5389 (class dw2_debug_names_iterator)
5390 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5391 parameter, change BLOCK_INDEX type to gdb::optional.
5392 <m_want_specific_block>: Remove.
5393 <m_block_index>: Change type to gdb::optional.
5394 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5395 gdb::optional. Re-write in function of gdb::optional.
5396 (dw2_debug_names_lookup_symbol): Don't pass argument for
5397 WANT_SPECIFIC_BLOCK.
5398 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5399 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5400 BLOCK_INDEX.
5401
ae60f04e
PW
54022019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5403
5404 * NEWS: Mention changes to "info sources" command.
5405
28cd9371
PW
54062019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5407
5408 * symtab.c (filename_partial_match_opts): New struct type.
5409 (struct output_source_filename_data): New members
5410 regexp, c_regexp, partial_match.
5411 (output_source_filename): Use new members to decide to print file.
5412 (info_sources_option_defs): New variable.
5413 (make_info_sources_options_def_group, print_info_sources_header,
5414 info_sources_command_completer):
5415 New functions.
5416 (info_sources_command): Read new optional arguments.
5417 (_initialize_symtab): Update info sources help.
5418
ca683e3a
AO
54192019-08-02 Alexandre Oliva <oliva@adacore.com>
5420
5421 * ada-lang.c (exception_support_info_v0): Renamed from...
5422 (default_exception_support_info): ... this. Create new
5423 definition for v1.
5424 (ada_has_this_exception_support): Look up catch_handlers_sym.
5425 (ada_exception_support_info_sniffer): Try v0 after default.
5426
f1264162
TT
54272019-08-01 Tom Tromey <tromey@adacore.com>
5428
5429 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5430 gdbarch.h.
5431
0a7b2485
CB
54322019-08-01 Christian Biesinger <cbiesinger@google.com>
5433
5434 * s12z-tdep.c: Fix include path for s12z-opc.h.
5435
c6bdbeb7
AH
54362019-08-01 Alan Hayward <alan.hayward@arm.com>
5437
5438 * NEWS: Require GNU make 3.82.
5439
a2bd7b82
TT
54402019-07-16 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5443 declare.
5444
aa3b6533
TT
54452019-07-30 Tom Tromey <tromey@adacore.com>
5446
5447 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5448
a1530dc7
KB
54492019-07-30 Kevin Buettner <kevinb@redhat.com>
5450
5451 * printcmd.c (print_address_symbolic): Print negative offsets.
5452 (build_address_symbolic): Force signed arithmetic when computing
5453 offset.
5454
2906593f
CB
54552019-07-30 Christian Biesinger <cbiesinger@google.com>
5456
5457 PR/24474: Add a function to lookup static variables.
5458 * NEWS: Mention this new function.
5459 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5460 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5461 * python/python.c (python_GdbMethods): Add new function.
5462
c620ed88
CB
54632019-07-29 Christian Biesinger <cbiesinger@google.com>
5464
5465 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5466 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5467 (objfpy_lookup_static_symbol): New function.
5468 (objfile_object_methods): Add new functions.
5469
bc4268a5
PW
54702019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5471
5472 * NEWS: Mention 'set|show print frame-info'. Mention new
5473 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5474 backtrace argument. Mention that python frame filtering code
5475 is now consistent with what 'backtrace' command prints.
5476
4b5e8d19
PW
54772019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5478
5479 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5480 comments.
5481 (print_frame_info_auto, print_frame_info_source_line,
5482 print_frame_info_location, print_frame_info_source_and_location,
5483 print_frame_info_location_and_address, print_frame_info_short_location):
5484 New declarations.
5485 (struct frame_print_options): New member print_frame_info.
5486 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5487 * stack.h (get_user_print_what_frame_info): New declaration.
5488 (frame_show_address): New declaration.
5489 * stack.c (print_frame_arguments_choices): New value 'presence'.
5490 (print_frame_info_auto, print_frame_info_source_line,
5491 print_frame_info_location, print_frame_info_source_and_location,
5492 print_frame_info_location_and_address, print_frame_info_short_location,
5493 print_frame_info_choices, print_frame_info_print_what): New definitions.
5494 (print_frame_args): Only print dots for args if print frame-arguments
5495 is 'presence'.
5496 (frame_print_option_defs): New element for "frame-info".
5497 (get_user_print_what_frame_info): New function.
5498 (frame_show_address): Make non static. Move comment to stack.h.
5499 (print_frame_info_to_print_what): New function.
5500 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5501 to decide what to print.
5502 (backtrace_command_1): Handle the new print_frame_arguments_presence
5503 value.
5504 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5505 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5506 (py_print_frame): In non-mi mode, use LOCATION as default for
5507 print_what, similarly to frame information printed directly by
5508 backtrace command. Handle frame-info user option in non MI mode.
5509
6bdfee81
KB
55102019-07-27 Kevin Buettner <kevinb@redhat.com>
5511
5512 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5513 Add case for debugging 32-bit target on 64-bit host. Revise
5514 comment.
5515
98a617f8
KB
55162019-07-27 Kevin Buettner <kevinb@redhat.com>
5517
5518 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5519 instead of find_function_entry_range_from_pc.
5520
567238c9
KB
55212019-07-27 Kevin Buettner <kevinb@redhat.com>
5522
5523 * stack.c (find_frame_funname): Remove code which preferred
5524 minsym over symtab sym in "certain pathological cases".
5525
2dc80cf8
KB
5526 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5527 parameter. Change type of "do_demangle" to bool.
5528 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5529 Pass suitable "prefer_sym_over_minsym" flag to
5530 build_address_symbolic(). Don't output "+" for negative offsets.
5531 * printcmd.c (print_address_symbolic): Update invocation of
5532 build_address_symbolic to include a "prefer_sym_over_minsym"
5533 flag.
5534 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5535 Restrict cases in which use of minimal symbol is preferred to that
5536 of a found symbol. Update comments.
5537
1aff7173
KB
5538 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5539 for entry pc when entry pc is out of range for that FDE.
5540
89b085ac
BC
55412019-07-26 Brian Callahan <bcallah@openbsd.org>
5542
5543 PR gdb/24839:
5544 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5545 type.
5546
f32feb4a
CB
55472019-07-25 Christian Biesinger <cbiesinger@google.com>
5548
5549 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5550 this function's Python signature.
5551
5552
55532019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5554
5555 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5556 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5557 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5558 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5559 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5560
5561
c54e4253
YS
55622019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5563
5564 * h8300-tdep.c (h8300_register_name_common): New.
5565 h8300_register_name): Use h8300_register_name_common.
5566 (h8300s_register_name): Likewise.
5567 (h8300sx_register_name): Likewise.
5568 (h8300h_register_nam): New.
5569 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5570
5571
40eadf04
SP
55722019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5573
5574 * arm-tdep.c (arm_skip_cmse_entry): New function.
5575 (arm_is_sgstubs_section): New function.
5576 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5577
bfa2a36d
TT
55782019-07-22 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5581 Don't self-assign.
5582
a8e9d247
AB
55832019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5584
5585 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5586 type_print.
5587
eb86c5e2
AB
55882019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5591 so that GDB doesn't match any msymbols when searching in the
5592 TYPES_DOMAIN.
5593 (print_symbol_info): Print using typedef_print or type_print based
5594 on the type of the symbol. Add updated FIXME comment moved from...
5595 (_initialize_symtab): ... move and update FIXME comment to above.
5596
a8eab7c6
AB
55972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * NEWS: Mention adding -q option to "info types".
5600 * symtab.c (struct info_types_options): New struct.
5601 (info_types_options_defs): New variable.
5602 (make_info_types_options_def_group): New function.
5603 (info_types_command): Use gdb::option framework to parse options.
5604 (info_types_command_completer): New function.
5605 (_initialize_symtab): Extend the help text on "info types" and
5606 register command completer.
5607
b4603c34
CB
56082019-07-21 Christian Biesinger <cbiesinger@google.com>
5609
5610 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5611 (lookup_symbol_in_objfile): Change int to block_enum and add a
5612 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5613
c8cdc1e0
CB
56142019-07-20 Christian Biesinger <cbiesinger@google.com>
5615
5616 * MAINTAINERS (Write After Approval): Add self.
5617
01e175fe
AB
56182019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5619
5620 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5621 instruction to the dummy code region.
5622
56f79b63
TT
56232019-07-19 Tom Tromey <tromey@adacore.com>
5624
5625 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5626 (ARGSUSED, PARAMS, __func__): Remove rules.
5627
4c5aa8e0
AH
56282019-07-19 Alan Hayward <alan.hayward@arm.com>
5629
5630 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5631 * features/arm/arm-with-iwmmxt.c: Remove.
5632 * features/arm/arm-with-iwmmxt.xml: Remove.
5633 * features/arm/arm-with-m-fpa-layout.c: Remove.
5634 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5635 * features/arm/arm-with-m-vfp-d16.c: Remove.
5636 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5637 * features/arm/arm-with-m.c: Remove.
5638 * features/arm/arm-with-m.xml: Remove.
5639 * features/arm/arm-with-neon.c: Remove.
5640 * features/arm/arm-with-neon.xml: Remove.
5641 * features/arm/arm-with-vfpv2.c: Remove.
5642 * features/arm/arm-with-vfpv2.xml: Remove.
5643 * features/arm/arm-with-vfpv3.c: Remove.
5644 * features/arm/arm-with-vfpv3.xml: Remove.
5645
f42b2617
AH
56462019-07-19 Alan Hayward <alan.hayward@arm.com>
5647
5648 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5649
f29ec966
AH
56502019-07-19 Alan Hayward <alan.hayward@arm.com>
5651
5652 * arch/aarch32.c (aarch32_create_target_description): Create
5653 target descriptions using features.
5654 * arch/arm.c (arm_create_target_description)
5655 (arm_create_mprofile_target_description): Likewise.
5656 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5657
d105cce5
AH
56582019-07-19 Alan Hayward <alan.hayward@arm.com>
5659
5660 * Makefile.in: Add new files.
5661 * aarch32-tdep.c: New file.
5662 * aarch32-tdep.h: New file.
5663 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5664 Call aarch32_read_description.
5665 * arch/aarch32.c: New file.
5666 * arch/aarch32.h: New file.
5667 * arch/arm.c (arm_create_target_description)
5668 (arm_create_mprofile_target_description): New function.
5669 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5670 (arm_create_target_description)
5671 (arm_create_mprofile_target_description): New declaration.
5672 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5673 read_description functions.
5674 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5675 Likewise.
5676 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5677 * arm-tdep.c (tdesc_arm_list): New variable.
5678 (arm_register_g_packet_guesses): Call create description functions.
5679 (arm_read_description) (arm_read_mprofile_description): New
5680 function.
5681 * arm-tdep.h (arm_read_description)
5682 (arm_read_mprofile_description): Add declaration.
5683 * configure.tgt: Add new files.
5684
afe09f0b
GL
56852019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5686
5687 * top.c (new_ui_command): Open specified terminal just once.
5688
cd215b2e
TT
56892019-07-18 Tom Tromey <tromey@adacore.com>
5690
5691 * symtab.c (main_name): Constify return type.
5692 * symfile.c (set_initial_language): Update.
5693 * symtab.h (main_name): Constify return type.
5694
d8f68fcb
TT
56952019-07-17 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-winsource.c (tui_update_source_window)
5698 (tui_update_source_window_as_is)
5699 (tui_update_source_windows_with_line): Remove return.
5700 * tui/tui-disasm.c (tui_show_disassem)
5701 (tui_show_disassem_and_update_source): Remove return.
5702 * tui/tui.c (tui_reset): Remove return.
5703 * tui/tui-wingeneral.c
5704 (tui_check_and_display_highlight_if_needed): Remove return.
5705
ca5af91e
TT
57062019-07-17 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5709
5104fe36
TT
57102019-07-17 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-winsource.h (struct tui_exec_info_window)
5713 (struct tui_source_window_base): Move from tui-data.h.
5714 * tui/tui-winsource.c: Move many method definitions from
5715 elsewhere. Remove "structuring" comments.
5716 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5717 (tui_source_window_base::refresh_window): Move to
5718 tui-winsource.c.
5719 * tui/tui-win.c (tui_source_window_base::refresh_all)
5720 (tui_source_window_base::update_tab_width)
5721 (tui_source_window_base::set_new_height)
5722 (tui_source_window_base::do_make_visible_with_new_height): Move to
5723 tui-winsource.c.
5724 * tui/tui-source.h: Update.
5725 * tui/tui-source.c (tui_source_window_base::reset): Move to
5726 tui-winsource.c.
5727 * tui/tui-disasm.h: Update.
5728 * tui/tui-data.h (struct tui_exec_info_window): Move to
5729 tui-winsource.h.
5730 (struct tui_source_window_base): Likewise.
5731 * tui/tui-data.c (tui_source_window_base::clear_detail)
5732 (tui_source_window_base, ~tui_source_window_base): Move to
5733 tui-winsource.c.
5734
daa15dde
TT
57352019-07-17 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-win.c (tui_resize_all)
5738 (tui_source_window_base::update_tab_width)
5739 (tui_adjust_win_heights): Update.
5740 (tui_win_info::make_invisible_and_set_new_height): Rename from
5741 make_invisible_and_set_new_height.
5742 * tui/tui-data.h (struct tui_win_info)
5743 <make_invisible_and_set_new_height>: New method.
5744
bfad4537
TT
57452019-07-17 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui.c: Update.
5748 * tui/tui-source.h (struct tui_source_window): Move from
5749 tui-data.h.
5750 * tui/tui-layout.c: Update.
5751 * tui/tui-disasm.c: Update.
5752 * tui/tui-data.h (struct tui_source_window): Move to
5753 tui-source.h.
5754
88f7e873
TT
57552019-07-17 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5758 tui-data.h.
5759 * tui/tui-data.h (struct tui_disasm_window): Move to
5760 tui-disasm.h.
5761
96bd6233
TT
57622019-07-17 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-regs.h (struct tui_data_item_window): Move from
5765 tui-data.h.
5766 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5767 * tui/tui-data.h (struct tui_data_item_window): Move to
5768 tui-regs.h.
5769 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5770
ce38393b
TT
57712019-07-17 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui.c: Update.
5774 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5775 (tui_cmd_window::max_height): Move to tui-command.c.
5776 * tui/tui-layout.c: Update.
5777 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5778 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5779 tui-command.c.
5780 * tui/tui-command.h (struct tui_cmd_window): Move from
5781 tui-data.h.
5782 * tui/tui-command.c: Remove "structuring" comments.
5783 (tui_cmd_window::clear_detail)
5784 (tui_cmd_window::do_make_visible_with_new_height)
5785 (tui_cmd_window::max_height): Move from elsewhere.
5786
2d8b51cb
TT
57872019-07-17 Tom Tromey <tom@tromey.com>
5788
5789 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5790 Now static.
5791 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5792 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5793
18ab23af
TT
57942019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui.c: Update.
5797 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5798 tui-regs.c.
5799 * tui/tui-windata.h: Remove file.
5800 * tui/tui-windata.c: Remove file.
5801 * tui/tui-win.c (tui_data_window::set_new_height)
5802 (tui_data_window::do_make_visible_with_new_height): Move to
5803 tui-regs.c.
5804 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5805 * tui/tui-regs.c: Remove "structuring" comments.
5806 (tui_data_window::first_data_item_displayed)
5807 (tui_data_window::delete_data_content_windows)
5808 (tui_data_window::erase_data_content)
5809 (tui_data_window::display_all_data)
5810 (tui_data_window::refresh_all)
5811 (tui_data_window::do_scroll_vertical)
5812 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5813 (tui_data_window::do_make_visible_with_new_height)
5814 (tui_data_window::refresh_window): Move from elsewhere.
5815 (_initialize_tui_regs): Move to end of file.
5816 * tui/tui-layout.c: Update.
5817 * tui/tui-hooks.c: Update.
5818 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5819 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5820 tui-regs.c.
5821 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5822
88b7e7cc
TT
58232019-07-17 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5826 seen.
5827
0fcd3711
TT
58282019-07-17 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-win.c (tui_source_window_base::set_new_height)
5831 (tui_source_window_base::do_make_visible_with_new_height): Use
5832 m_has_locator field directly.
5833 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5834 method.
5835 (struct tui_source_window_base) <has_locator>: Likewise.
5836
4a38112d
TT
58372019-07-17 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5840 Don't declare.
5841 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5842 Remove.
5843 * tui/tui-win.c (tui_source_window_base::set_new_height)
5844 (tui_source_window_base::set_new_height)
5845 (make_invisible_and_set_new_height)
5846 (tui_source_window_base::do_make_visible_with_new_height)
5847 (tui_source_window_base::do_make_visible_with_new_height):
5848 Update.
5849 * tui/tui-layout.c (show_source_disasm_command, show_data)
5850 (show_source_or_disasm_and_command): Update.
5851 * tui/tui-layout.c (show_layout): Update.
5852
09129226
TT
58532019-07-17 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-layout.c (make_data_window): Remove.
5856 (show_data): Unify creation and re-initialization cases.
5857
4a8a5e84
TT
58582019-07-17 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui-layout.c (make_source_window, make_disasm_window):
5861 Remove.
5862 (show_data): Unify creation and re-initialization cases.
5863
76d2be8e
TT
58642019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-layout.c (make_command_window): Remove.
5867 (show_source_disasm_command, show_source_or_disasm_and_command):
5868 Unify creation and re-initialization cases.
5869
890b8bde
TT
58702019-07-17 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5873 creation and re-initialization cases.
5874
2cdfa113
TT
58752019-07-17 Tom Tromey <tom@tromey.com>
5876
5877 * tui/tui-regs.c (tui_get_register): Return void.
5878
8e3cfd09
TT
58792019-07-17 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5882 Simplify.
5883
f4e04977
TT
58842019-07-17 Tom Tromey <tom@tromey.com>
5885
5886 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5887 resetting.
5888
0379b883
TT
58892019-07-17 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5892 * tui/tui-regs.c (tui_reg_layout): New function.
5893 (tui_show_registers, tui_reg_command): Use it.
5894 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5895 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5896 parameters.
5897 (tui_layout_command): Remove.
5898
b7fbad91
TT
58992019-07-17 Tom Tromey <tom@tromey.com>
5900
5901 * tui/tui-layout.h (tui/tui-layout): Return void.
5902 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5903
4e1e56b9
TT
59042019-07-17 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-layout.c (show_source_disasm_command, show_data):
5907 Update.
5908 (reset_locator): Remove.
5909 (show_source_or_disasm_and_command): Update.
5910
1e0c09ba
TT
59112019-07-17 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-source.c (tui_source_window_base::reset): Remove
5914 win_type parameter.
5915 * tui/tui-layout.c (make_command_window, make_source_window)
5916 (make_disasm_window, make_data_window)
5917 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5918 (reset_locator, show_source_or_disasm_and_command): Update.
5919 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5920 win_type parameter.
5921 (struct tui_source_window_base) <reset>: Likewise.
5922
1bf605de
TT
59232019-07-17 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-layout.c (show_source_disasm_command): Use
5926 reset_locator.
5927 (reset_locator): New function.
5928 (init_and_make_win): Remove.
5929 (show_source_or_disasm_and_command): Use reset_locator.
5930
098f9ed4
TT
59312019-07-17 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5934 condition.
5935 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5936 Remove condition.
5937 * tui/tui-source.c (tui_source_window_base::reset): New method.
5938 * tui/tui-layout.c (make_command_window): Don't call
5939 init_and_make_win.
5940 (make_source_window, make_disasm_window): Don't call
5941 make_source_or_disasm_window.
5942 (make_data_window): Don't call init_and_make_win. Change calling
5943 convention.
5944 (show_source_disasm_command, show_data): Simplify.
5945 (make_source_or_disasm_window): Remove.
5946 (show_source_or_disasm_and_command): Simplify.
5947 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5948 (struct tui_source_window_base) <reset>: Likewise.
5949 <execution_info>: Remove initializer.
5950 * tui/tui-data.c (tui_source_window_base): Initialize
5951 execution_info.
5952
80110957
TT
59532019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5956 variable.
5957
cf82af05
TT
59582019-07-17 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui.c (tui_rl_other_window): Update.
5961 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5962 superclass method first. Always iterate over regs_content.
5963 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5964 method.
5965 * tui/tui-win.c (tui_set_focus_command): Update.
5966
01aeb396
TT
59672019-07-17 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui-win.c (tui_set_focus_command): Rename from
5970 tui_set_focus. Call tui_enable.
5971 (tui_set_focus_command): Remove.
5972
fd6c75ee
TT
59732019-07-17 Tom Tromey <tom@tromey.com>
5974
5975 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5976 refresh_window.
5977 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5978 touchwin.
5979 (tui_data_window::refresh_window): Call refresh_window on data
5980 items. Always call superclass refresh_window.
5981 (tui_win_info::refresh): Remove.
5982 (tui_source_window_base::refresh_window): Update.
5983 (tui_refresh_all): Update.
5984 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5985 refresh_window.
5986 (show_source_or_disasm_and_command): Likewise.
5987 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5988 (struct tui_source_window_base) <refresh>: Likewise.
5989
f6cc34a9
TT
59902019-07-17 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui-winsource.c (tui_clear_source_content)
5993 (tui_show_source_content): Update.
5994 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5995 whether content is empty.
5996 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5997 Remove.
5998
f31ec9af
TT
59992019-07-17 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6002 window's contents.
6003 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6004 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6005
d1b6f1e5
TT
60062019-07-17 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6009 (struct tui_data_item_window): Update.
6010
d9743a13
TT
60112019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6014 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6015 defines.
6016
caf0bc4e
TT
60172019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-winsource.h (tui_erase_source_content)
6020 (tui_clear_source_content): Remove "display_prompt" parameter.
6021 * tui/tui-winsource.c (tui_update_source_window_as_is)
6022 (tui_update_source_windows_with_addr): Update.
6023 (tui_clear_source_content): Remove "display_prompt" parameter.
6024 (tui_erase_source_content): Likewise. Simplify.
6025 (tui_show_source_content): Update.
6026 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6027 * tui/tui-stack.c (tui_show_frame_info): Update.
6028 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6029 Remove defines.
6030
9d391078
TT
60312019-07-17 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6034 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6035 parameter.
6036 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6037 parameter.
6038
a38da35d
TT
60392019-07-17 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-winsource.c (tui_clear_source_content)
6042 (tui_show_source_content, tui_show_exec_info_content)
6043 (tui_clear_exec_info_content): Update.
6044 * tui/tui-stack.c (tui_show_locator_content): Update.
6045 (tui_show_frame_info): Update.
6046 * tui/tui-source.h (tui_source_window): Don't declare.
6047 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6048 from tui_source_is_displayed.
6049 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6050 Remove field.
6051 (struct tui_source_window_base) <content_in_use>: New field. Now
6052 bool.
6053 (struct tui_source_window) <showing_source_p>: New method.
6054 (TUI_SRC_WIN): Change cast.
6055 * tui/tui-data.c (tui_initialize_static_data): Update.
6056
c2cd8994
TT
60572019-07-17 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6060 location_matches_p.
6061 * tui/tui-source.c (tui_source_window::location_matches_p): New
6062 method.
6063 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6064 method.
6065 * tui/tui-data.h (struct tui_source_window_base)
6066 <location_matches_p>: New method.
6067 (struct tui_source_window, struct tui_disasm_window)
6068 <location_matches_p>: Likewise.
6069
4dde7b34
TT
60702019-07-17 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-win.c (tui_set_win_height_command): Rename from
6073 tui_set_win_height.
6074 (tui_set_win_height_command): Remove.
6075
b73dd877
TT
60762019-07-17 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui-source.c (tui_source_window): New constructor. Add
6079 observer.
6080 (~tui_source_window): New destructor.
6081 (tui_source_window::style_changed): New method.
6082 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6083 (tui_attach_detach_observers): Update.
6084 * tui/tui-data.h (struct tui_source_window): Make constructor not
6085 inline. Add destructor.
6086 (struct tui_source_window) <style_changed>: New method.
6087 <m_observable>: New member.
6088
ae2b5380
TT
60892019-07-17 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6092 * tui/tui-win.c (tui_resize_all): Fix typo.
6093
1ce3e844
TT
60942019-07-17 Tom Tromey <tom@tromey.com>
6095
6096 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6097 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6098 (tui_refresh_all): Remove "list" parameter. Use foreach.
6099 * tui/tui-win.c (window_name_completer): Use foreach.
6100 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6101 (update_tab_width): Likewise.
6102 * tui/tui-layout.c (show_layout): Update.
6103 * tui/tui-data.h (class tui_window_iterator): New.
6104 (struct all_tui_windows): New.
6105 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6106
fe3eaf1c
TT
61072019-07-17 Tom Tromey <tom@tromey.com>
6108
6109 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6110 parameter. Don't reference globals.
6111 (tui_reg_command): Update.
6112
368c1354
TT
61132019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-regs.c (tui_show_registers): Simplify.
6116
e80cd204
TT
61172019-07-17 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-regs.c (tui_show_registers): Update.
6120 (tui_show_register_group): Add win_info parameter.
6121
aca2dd16
TT
61222019-07-17 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6125 Rename from tui_display_reg_element_at_line.
6126 (tui_data_window::display_registers_from_line): Update.
6127 * tui/tui-data.h (struct tui_data_window)
6128 <display_reg_element_at_line>: New method.
6129
517e9505
TT
61302019-07-17 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-regs.h (tui_display_registers_from)
6133 (tui_display_registers_from_line): Don't declare.
6134 * tui/tui-windata.c (tui_data_window::display_all_data)
6135 (tui_data_window::refresh_all)
6136 (tui_data_window::do_scroll_vertical): Update.
6137 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6138 from tui_display_registers_from.
6139 (tui_display_reg_element_at_line): Update.
6140 (tui_data_window::display_registers_from_line): Rename from
6141 tui_display_registers_from_line.
6142 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6143 display_registers_from_line>: New methods.
6144
f76d8b19
TT
61452019-07-17 Tom Tromey <tom@tromey.com>
6146
6147 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6148 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6149 from tui_erase_data_content.
6150 (tui_data_window::display_all_data)
6151 (tui_data_window::refresh_all)
6152 (tui_data_window::do_scroll_vertical): Update.
6153 * tui/tui-regs.c (tui_show_registers): Update.
6154 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6155 New method.
6156
b4094625
TT
61572019-07-17 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6160 declare.
6161 * tui/tui-windata.c
6162 (tui_data_window::delete_data_content_windows): Rename from
6163 tui_delete_data_content_windows.
6164 (tui_data_window::display_all_data)
6165 (tui_data_window::do_scroll_vertical): Update.
6166 * tui/tui-data.h (struct tui_data_window)
6167 <delete_data_content_windows>: New method.
6168
c223a729
TT
61692019-07-17 Tom Tromey <tom@tromey.com>
6170
6171 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6172 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6173
50daf268
TT
61742019-07-17 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6177 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6178 from tui_display_all_data.
6179 * tui/tui-win.c
6180 (tui_data_window::do_make_visible_with_new_height): Update.
6181 * tui/tui-regs.c (tui_show_registers): Update.
6182 * tui/tui-layout.c (tui_set_layout): Update.
6183 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6184 method.
6185
df5f8cab
TT
61862019-07-17 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6189 * tui/tui-windata.c (tui_display_data_from): Remove.
6190 (tui_data_window::refresh_all): Update.
6191
80cb6c27
TT
61922019-07-17 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6195 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6196 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6197 tui_display_registers_from_line.
6198 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6199 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6200 "force_display" parameter.
6201
baff0c28
TT
62022019-07-17 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6205 declare.
6206 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6207 Rename from tui_first_reg_element_no_inline.
6208 (tui_display_reg_element_at_line)
6209 (tui_display_registers_from_line): Update.
6210 * tui/tui-data.h (struct tui_data_window)
6211 <first_reg_element_no_inline>: New method.
6212
3b23c5f2
TT
62132019-07-17 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-windata.c (tui_display_data_from)
6216 (tui_data_window::do_scroll_vertical): Update.
6217 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6218 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6219 Rename from tui_line_from_reg_element_no.
6220 (tui_display_registers_from_line): Update.
6221 * tui/tui-data.h (struct tui_data_window)
6222 <line_from_reg_element_no>: New method.
6223
0b5ec218
TT
62242019-07-17 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6227 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6228 tui_last_regs_line_no.
6229 (tui_display_reg_element_at_line)
6230 (tui_display_registers_from_line): Update.
6231 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6232 method.
6233
0807ab7b
TT
62342019-07-17 Tom Tromey <tom@tromey.com>
6235
6236 PR tui/24722:
6237 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6238 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6239 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6240 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6241 (tui_update_breakpoint_info): Likewise.
6242 * tui/tui-hooks.c (tui_event_create_breakpoint)
6243 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6244 Update.
6245
9ad7fdef
TT
62462019-07-17 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6249
5813316f
TT
62502019-07-17 Tom Tromey <tom@tromey.com>
6251
6252 * tui/tui-winsource.c (tui_update_source_window_as_is)
6253 (tui_update_source_windows_with_addr): Update.
6254 * tui/tui-source.h (tui_set_source_content)
6255 (tui_show_symtab_source): Add "win_info" parameter.
6256 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6257 parameter.
6258 (tui_show_symtab_source): Likewise.
6259
00e264e7
TT
62602019-07-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-wingeneral.c
6263 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6264
06210ce4
TT
62652019-07-17 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6268 (struct tui_cmd_window) <can_scroll>: New method.
6269 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6270 method.
6271
381befee
TT
62722019-07-17 Tom Tromey <tromey@adacore.com>
6273
6274 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6275 do_field_signed>: Rename. Change type of "value".
6276 * ui-out.c (ui_out::field_signed): Rename from field_int.
6277 Change type of "value".
6278 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6279 type of "value".
6280 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6281 do_field_int. Change type of "value".
6282 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6283 do_field_int. Change type of "value".
6284 * tracepoint.c (trace_status_mi, tfind_1)
6285 (print_one_static_tracepoint_marker): Update.
6286 * thread.c (print_thread_info_1, print_selected_thread_frame):
6287 Update.
6288 * stack.c (print_frame, print_frame_info): Update.
6289 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6290 Update.
6291 * source.c (print_source_lines_base): Update.
6292 * skip.c (info_skip_command): Update.
6293 * record-btrace.c (btrace_ui_out_decode_error)
6294 (btrace_call_history_src_line): Update.
6295 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6296 Update.
6297 * progspace.c (print_program_space): Update.
6298 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6299 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6300 do_field_int. Change type of "value".
6301 * mi/mi-out.c (mi_ui_out::do_table_begin)
6302 (mi_ui_out::do_table_header): Update.
6303 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6304 type of "value".
6305 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6306 (mi_cmd_data_list_changed_registers, output_register)
6307 (mi_cmd_data_read_memory, mi_load_progress)
6308 (mi_cmd_trace_frame_collected): Update.
6309 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6310 Update.
6311 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6312 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6313 (mi_cmd_var_list_children, varobj_update_one): Update.
6314 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6315 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6317 * inferior.c (print_inferior): Update.
6318 * gdb_bfd.c (print_one_bfd): Update.
6319 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6320 Update.
6321 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6322 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6323 do_field_int. Change type of "value".
6324 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6325 do_field_int. Change type of "value".
6326 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6327 (print_one_breakpoint_location, print_it_catch_fork)
6328 (print_one_catch_fork, print_it_catch_vfork)
6329 (print_one_catch_vfork, print_it_catch_solib)
6330 (print_it_catch_exec, print_it_ranged_breakpoint)
6331 (print_mention_watchpoint, print_mention_masked_watchpoint)
6332 (bkpt_print_it, update_static_tracepoint): Update.
6333 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6334 * break-catch-syscall.c (print_it_catch_syscall): Update.
6335 * ada-tasks.c (print_ada_task_info): Update.
6336 * ada-lang.c (print_it_exception, print_mention_exception):
6337 Update.
6338
6b78c3f8
AB
63392019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6340
6341 PR breakpoints/24541
6342 * gdbarch.c: Regenerate.
6343 * gdbarch.h: Regenerate.
6344 * gdbarch.sh: Adjust return type and parameter types for
6345 'stap_adjust_register'.
6346 (i386_stap_adjust_register): Adjust signature and return new
6347 register name.
6348 * stap-probe.c (stap_parse_register_operand): Adjust use of
6349 'gdbarch_stap_adjust_register'.
6350
d72a9b85
TT
63512019-07-17 Tom Tromey <tromey@adacore.com>
6352
6353 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6354 declare VEC.
6355 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6356 std::vector.
6357 (struct s390_process_info): Add initializers.
6358 (s390_add_process): Use new.
6359 (s390_linux_nat_target::low_forget_process): Use delete.
6360 (s390_linux_nat_target::low_new_fork)
6361 (s390_linux_nat_target::stopped_by_watchpoint)
6362 (s390_linux_nat_target::low_prepare_to_resume)
6363 (s390_linux_nat_target::insert_watchpoint)
6364 (s390_linux_nat_target::insert_hw_breakpoint)
6365 (s390_linux_nat_target::remove_watchpoint)
6366 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6367
206e6c58
JB
63682019-07-16 John Baldwin <jhb@FreeBSD.org>
6369
6370 * aarch64-fbsd-nat.c: Include regcache.h.
6371 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6372 argument.
6373 (aarch64_fbsd_nat_target::fetch_registers)
6374 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6375 variable.
6376 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6377
cbde90f2
JB
63782019-07-16 John Baldwin <jhb@FreeBSD.org>
6379
6380 * fbsd-nat.c: Include gdbarch.h.
6381
07128006
TT
63822019-07-15 Tom Tromey <tromey@adacore.com>
6383
6384 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6385
1f77b012
TT
63862019-07-15 Tom Tromey <tromey@adacore.com>
6387
6388 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6389 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6390 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6391 * cli-out.c (cli_ui_out::do_field_int): New method.
6392 * ui-out.c (ui_out::field_unsigned): New method.
6393 * symfile.c (generic_load): Use field_unsigned.
6394 (print_transfer_performance): Likewise.
6395 * record-btrace.c (ui_out_field_uint): Remove.
6396 (btrace_call_history_insn_range, btrace_call_history): Use
6397 field_unsigned.
6398 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6399 field_unsigned.
6400 * ui-out.h (class ui_out) <field_unsigned>: New method.
6401 <do_field_unsigned>: Likewise.
6402
33eca680
TT
64032019-07-15 Tom Tromey <tromey@adacore.com>
6404
6405 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6406 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6407 * target.c (flash_erase_command): Use field_string.
6408 * infrun.c (print_signal_received_reason): Use field_string.
6409 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6410 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6411 field_string.
6412 * ada-tasks.c (print_ada_task_info): Use field_string.
6413
ca8d69be
TT
64142019-07-15 Tom Tromey <tromey@adacore.com>
6415
6416 * target.c (flash_erase_command): Use field_core_addr.
6417 * symfile.c (generic_load): Use field_core_addr.
6418 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6419 Use field_core_addr.
6420 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6421 field_core_addr.
6422
0d4e84ed
AB
64232019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6426 value if its desired type is smaller than a CORE_ADDR and signed.
6427
9a49df9d
AB
64282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6431 of changes to field names, and use new is_reference field to
6432 decide if a property is a reference or not.
6433 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6434 field.
6435 (struct dwarf2_property_baton): Update header comment, rename
6436 'referenced_type' to 'property_type' and update comments.
6437 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6438 default property type, store in property baton, update to take
6439 accound of renamed field.
6440 (read_func_scope): Update call to attr_to_dynamic_prop.
6441 (read_array_type): Likewise.
6442 (dwarf2_per_cu_addr_sized_int_type): New function.
6443 (read_subrange_index_type): Move type finding code to
6444 dwarf2_per_cu_addr_sized_int_type.
6445 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6446 (dwarf2_per_cu_addr_type): New function.
6447 (set_die_type): Update calls to attr_to_dynamic_prop.
6448
b86352cf
AB
64492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6450
6451 * dwarf2read.c (read_subrange_index_type): New function.
6452 (read_subrange_type): Move code into new function and call it.
6453 * gdbtypes.c (create_range_type): Add some asserts.
6454
603490bf
AB
64552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6458 update return statements.
6459 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6460 declaration, and update comment to match.
6461 * gdbtypes.c (resolve_dynamic_array): Update call to
6462 dwarf2_evaluate_property to match new return type.
6463
592f9d27
AB
64642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * valarith.c (value_subscripted_rvalue): Change lowerbound
6467 parameter type from int to LONGEST.
6468 * value.h (value_subscripted_rvalue): Likewise in declaration.
6469
60cfcb20
AB
64702019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * cli/cli-utils.c (info_print_command_completer): New function.
6473 * cli/cli-utils.h: Add 'completer.h' include, and forward
6474 declaration for 'struct cmd_list_element'.
6475 (info_print_command_completer): Declare.
6476 * stack.c (_initialize_stack): Add completer for 'info locals' and
6477 'info args'.
6478 * symtab.c (_initialize_symtab): Add completer for 'info
6479 variables' and 'info functions'.
6480 * NEWS: Mention completion for additional info commands.
6481
b16507e0
AB
64822019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * cli/cli-utils.c (extract_info_print_args): Delete.
6485 (extract_arg_maybe_quoted): Delete.
6486 (info_print_options_defs): New variable.
6487 (make_info_print_options_def_group): New function.
6488 (extract_info_print_options): Define new function.
6489 * cli/cli-utils.h (extract_info_print_args): Delete.
6490 (struct info_print_options): New structure.
6491 (extract_info_print_options): Declare new function.
6492 * stack.c (info_locals_command): Update to use new
6493 extract_info_print_options, also add a header comment.
6494 (info_args_command): Likewise.
6495 * symtab.c (info_variables_command): Likewise.
6496 (info_functions_command): Likewise.
6497
021d8588
AB
64982019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6501 to extract string arguments.
6502 * common/common-utils.c (extract_string_maybe_quoted): New function.
6503 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6504
b777eb6d
TT
65052019-07-11 Tom Tromey <tromey@adacore.com>
6506
6507 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6508 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6509 * top.h (gdbinit): Don't declare.
6510 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6511 into...
6512 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6513 * top.c (gdb_init): Don't call init_cli_cmds.
6514 (gdbinit): Remove.
6515 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6516
72ee03ff
TT
65172019-07-11 Tom Tromey <tromey@adacore.com>
6518
6519 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6520 after it has been moved.
6521
00db9531
SM
65222019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * valops.c (value_must_coerce_to_target): Change return type to
6525 bool.
6526 * value.h (value_must_coerce_to_target): Likewise.
6527
f2478a7e
SM
65282019-07-10 Simon Marchi <simon.marchi@efficios.com>
6529
6530 * breakpoint.c (is_hardware_watchpoint): Remove
6531 forward-declaration.
6532 (is_masked_watchpoint): Change return type to bool.
6533 (is_tracepoint): Likewise.
6534 (is_breakpoint): Likewise.
6535 (is_hardware_watchpoint): Likewise.
6536 (is_watchpoint): Likewise.
6537 (is_no_memory_software_watchpoint): Likewise.
6538 (is_catchpoint): Likewise.
6539 (breakpoint_1): Make FILTER parameter's return type bool.
6540 is_masked_watchpoint): Change return type to bool.
6541 (save_breakpoints): Make FILTER parameter's return type bool.
6542 * breakpoint.h (is_breakpoint): Change return type to bool.
6543 (is_watchpoint): Likewise.
6544 (is_catchpoint): Likewise.
6545 (is_tracepoint): Likewise.
6546
0d12e84c
TT
65472019-07-10 Tom Tromey <tom@tromey.com>
6548
6549 * defs.h: Don't include gdbarch.h.
6550 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6551 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6552 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6553 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6554 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6555 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6556 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6557 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6558 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6559 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6560 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6561 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6562 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6563 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6564 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6565 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6566 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6567 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6568 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6569 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6570 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6571 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6572 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6573 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6574 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6575 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6576 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6577
f06f1252
TT
65782019-07-10 Tom Tromey <tromey@adacore.com>
6579
6580 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6581 * breakpoint.c (init_ada_exception_breakpoint): Register as
6582 bp_catchpoint.
6583 (print_one_breakpoint_location, print_one_breakpoint): Use
6584 is_ada_exception_catchpoint.
6585 * ada-lang.c (class ada_catchpoint_location): Pass
6586 bp_loc_software_breakpoint to bp_location constructor.
6587 (is_ada_exception_catchpoint): New function.
6588
7a5d944b
TT
65892019-07-10 Tom Tromey <tromey@adacore.com>
6590
6591 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6592 VEC.
6593 (struct arm_exidx_entry): New method operator<.
6594 (struct arm_exidx_data) <section_maps>: Change type.
6595 (arm_exidx_data_free): Remove.
6596 (arm_exidx_data_key): Change type. Move lower.
6597 (arm_exidx_new_objfile): Update.
6598 (arm_compare_exidx_entries): Remove.
6599 (arm_find_exidx_entry, _initialize_arm_tdep)
6600
48c66e1d
TT
66012019-07-10 Tom Tromey <tromey@adacore.com>
6602
6603 * solib-spu.c (ocl_program_data_key): Change type.
6604 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6605 Update.
6606
a269fbf1
TT
66072019-07-10 Tom Tromey <tromey@adacore.com>
6608
6609 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6610 (struct solib_aix_inferior_data) <library_list>: Change type.
6611 (solib_aix_inferior_data_handle): Change type.
6612 (get_solib_aix_inferior_data): Update.
6613 (solib_aix_free_library_list): Remove.
6614 (library_list_start_library): Update.
6615 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6616 return type.
6617 (solib_aix_get_library_list)
6618 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6619 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6620
c294730c
TT
66212019-07-10 Tom Tromey <tromey@adacore.com>
6622
6623 * solib-dsbt.c (struct dsbt_info): Add initializers.
6624 (solib_dsbt_pspace_data): Change type.
6625 (dsbt_pspace_data_cleanup): Remove.
6626 (get_dsbt_info, _initialize_dsbt_solib): Update.
6627
9d52077d
TT
66282019-07-10 Tom Tromey <tromey@adacore.com>
6629
6630 * spu-tdep.c (spu_overlay_data): Change type.
6631 (spu_get_overlay_table, spu_overlay_new_objfile)
6632 (_initialize_spu_tdep): Update.
6633
22a20dca
TT
66342019-07-10 Tom Tromey <tromey@adacore.com>
6635
6636 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6637 destructor.
6638 (dbx_objfile_data_key): Change type and declare later.
6639 (DBX_SYMFILE_INFO): Rewrite.
6640 * dbxread.c (dbx_objfile_data_key): Change type.
6641 (dbx_symfile_init): Update.
6642 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6643 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6644 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6645
cb60f420
TT
66462019-07-10 Tom Tromey <tromey@adacore.com>
6647
6648 * jit.c (jit_program_space_key): Change type. Move lower.
6649 (get_jit_program_space_data): Update.
6650 (jit_program_space_data_cleanup): Remove.
6651 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6652 Update.
6653 (struct jit_program_space_data): Add initializers.
6654
51df2ae3
TT
66552019-07-10 Tom Tromey <tromey@adacore.com>
6656
6657 * solib-darwin.c (struct darwin_info): Add initializers.
6658 (solib_darwin_pspace_data): Change type.
6659 (darwin_pspace_data_cleanup): Remove.
6660 (get_darwin_info, _initialize_darwin_solib): Update.
6661
18101a35
TT
66622019-07-10 Tom Tromey <tromey@adacore.com>
6663
6664 * remote-sim.c (struct sim_inferior_data): Add initializers,
6665 constructor, and destructor.
6666 (sim_inferior_data_key): Change type. Move lower.
6667 (check_for_duplicate_sim_descriptor): Update.
6668 (get_sim_inferior_data): Use new. Update.
6669 (~sim_inferior_data_cleanup): Rename from
6670 sim_inferior_data_cleanup. Simplify.
6671 (gdbsim_close_inferior, simulator_command)
6672 (sim_command_completer, _initialize_remote_sim): Update.
6673 (next_pid, INITIAL_PID): Move earlier.
6674
05b08ac1
TT
66752019-07-10 Tom Tromey <tromey@adacore.com>
6676
6677 * python/python-internal.h (create_thread_object): Return
6678 gdbpy_ref.
6679 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6680 * python/py-inferior.c (struct threadlist_entry): Add
6681 constructor.
6682 <thread_obj>: Now a gdbpy_ref.
6683 (thread_to_thread_object): Update.
6684 (add_thread_object): Use new.
6685 (delete_thread_object): Use delete.
6686 (infpy_threads): Update.
6687 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6688 GIL.
6689
32372d80
TT
66902019-07-10 Tom Tromey <tromey@adacore.com>
6691
6692 * valops.c (value_cast): Specialize error message for Ada.
6693
5c458ae8
SM
66942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6695
6696 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6697
4c462cb0
SM
66982019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6699
6700 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6701 bpstat_should_step): Return bool, adjust comments.
6702 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6703 bpstat_should_step): Likewise.
6704
89abbcc2
AH
67052019-07-10 Alan Hayward <alan.hayward@arm.com>
6706
6707 * features/Makefile: Use feature target descriptions for Arm.
6708 * features/arm/arm-core.c: Generate new file.
6709 * features/arm/arm-fpa.c: Likewise.
6710 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6711 * features/arm/arm-m-profile.c: Likewise.
6712 * features/arm/arm-vfpv2.c: Likewise.
6713 * features/arm/arm-vfpv3.c: Likewise.
6714 * features/arm/xscale-iwmmxt.c: Likewise.
6715 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6716
166a82be
AH
67172019-07-10 Alan Hayward <alan.hayward@arm.com>
6718
6719 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6720 ptrace earlier.
6721
9fb4c7e9
AH
67222019-07-10 Alan Hayward <alan.hayward@arm.com>
6723
6724 * features/aarch64-pauth.c: Regenerate.
6725
e2d0f980
SM
67262019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6729 bool.
6730 (bpstat_what): Use false instead of 0.
6731
a38118e5
PA
67322019-07-09 Pedro Alves <palves@redhat.com>
6733
6734 * break-catch-throw.c (is_exception_catchpoint): New.
6735 * breakpoint.c (print_one_breakpoint_location): New parameter
6736 'raw_loc'. Handle it. Use
6737 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6738 looking at the breakpoint's type.
6739 (print_one_breakpoint): If handling "maint info breakpoints", also
6740 print locations of exception catchpoints.
6741 * breakpoint.h (is_exception_catchpoint): Declare.
6742
cb1e4e32
PA
67432019-07-09 Pedro Alves <palves@redhat.com>
6744
6745 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6746 "addr" field.
6747 (allocate_location_exception_catchpoint): New.
6748 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6749 (initialize_throw_catchpoint_ops): Install
6750 allocate_location_exception_catchpoint as allocate_location
6751 method.
6752 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6753 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6754 bp_loc_other.
6755 (breakpoint_address_is_meaningful): Delete.
6756 (bl_address_is_meaningful): New.
6757 (breakpoint_locations_match): Adjust comment.
6758 (bp_location_from_bp_type): New, factored out of...
6759 (bp_location::bp_location(breakpoint *)): ... this.
6760 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6761 factored out of...
6762 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6763 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6764 breakpoint_address_is_meaningful.
6765 (bp_locations_compare): Adjust comment.
6766 (update_global_location_list): Use bl_address_is_meaningful
6767 instead of breakpoint_address_is_meaningful.
6768 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6769 explicit.
6770 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6771 * python/py-breakpoint.c (bppy_get_location): No longer check
6772 whether location is null.
6773
b58a68fe
PA
67742019-07-09 Pedro Alves <palves@redhat.com>
6775
6776 PR c++/15468
6777 * breakpoint.c (print_one_breakpoint_location): Remove
6778 single-location assert.
6779
268a13a5
TT
67802019-07-09 Tom Tromey <tom@tromey.com>
6781
6782 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6783 * configure: Rebuild.
6784 * configure.ac: Change common to gdbsupport.
6785 * gdbsupport: Rename from common.
6786 * acinclude.m4: Change common to gdbsupport.
6787 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6788 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6789 gdbsupport.
6790 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6791 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6792 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6793 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6794 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6795 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6796 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6797 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6798 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6799 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6800 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6801 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6802 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6803 coff-pe-read.c, command.h, compile/compile-c-support.c,
6804 compile/compile-c.h, compile/compile-cplus-symbols.c,
6805 compile/compile-cplus-types.c, compile/compile-cplus.h,
6806 compile/compile-loc2c.c, compile/compile.c, completer.c,
6807 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6808 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6809 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6810 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6811 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6812 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6813 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6814 features/aarch64-core.c, features/aarch64-fpu.c,
6815 features/aarch64-pauth.c, features/aarch64-sve.c,
6816 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6817 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6818 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6819 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6820 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6821 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6822 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6823 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6824 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6825 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6826 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6827 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6828 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6829 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6830 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6831 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6832 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6833 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6834 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6835 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6836 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6837 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6838 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6839 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6840 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6841 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6842 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6843 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6844 minsyms.c, mips-linux-tdep.c, namespace.h,
6845 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6846 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6847 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6848 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6849 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6850 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6851 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6852 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6853 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6854 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6855 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6856 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6857 procfs.c, producer.c, progspace.h, psymtab.h,
6858 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6859 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6860 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6861 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6862 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6863 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6864 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6865 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6866 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6867 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6868 target-memory.c, target.c, target.h, target/waitstatus.c,
6869 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6870 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6871 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6872 unittests/array-view-selftests.c,
6873 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6874 unittests/common-utils-selftests.c,
6875 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6876 unittests/format_pieces-selftests.c,
6877 unittests/function-view-selftests.c,
6878 unittests/lookup_name_info-selftests.c,
6879 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6880 unittests/mkdir-recursive-selftests.c,
6881 unittests/observable-selftests.c,
6882 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6883 unittests/parse-connection-spec-selftests.c,
6884 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6885 unittests/scoped_fd-selftests.c,
6886 unittests/scoped_mmap-selftests.c,
6887 unittests/scoped_restore-selftests.c,
6888 unittests/string_view-selftests.c, unittests/style-selftests.c,
6889 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6890 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6891 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6892 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6893 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6894 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6895
5b0e2db4
AB
68962019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6897
6898 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6899 bool value.
6900 (decode_digits_ordinary): Set explicit_line field in sal.
6901 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6902 symtab_and_line that was set on an explicit line number in
6903 assembler code. Do always update the recorded symtab and line if
6904 we do skip the prologue.
6905
0ba852ab
AB
69062019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6907
6908 * breakpoint.c (set_breakpoint_location_function): Remove
6909 explicit_loc parameter.
6910 (momentary_breakpoint_from_master): Update call to
6911 set_breakpoint_location_function.
6912 (add_location_to_breakpoint): Likewise.
6913
b3a7d171
AB
69142019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6917 required features based on default bfd type when no specific bfd
6918 is present.
6919
1f6f6e21
PW
69202019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6921
6922 * NEWS: Mention that GDB printf and eval commands can now print
6923 C-style and Ada-style convenience var strings without
6924 calling the inferior.
6925 * printcmd.c (printf_c_string): Locally print GDB internal var
6926 instead of transiting via the inferior.
6927 (printf_wide_c_string): Likewise.
6928
69292019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6930
5862c886 6931 PR breakpoints/25011
ea142fbf
AH
6932 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6933
0598af48
TT
69342019-07-04 Tom Tromey <tom@tromey.com>
6935
6936 PR tui/24724:
6937 * tui/tui-winsource.c (tui_clear_source_content): Update.
6938 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6939 (tui_update_breakpoint_info): Update.
6940 (tui_set_exec_info_content): Update.
6941 * tui/tui-source.c (tui_set_source_content_nil): Update.
6942 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6943 has_break.
6944 * tui/tui-data.h (enum tui_bp_flag): New.
6945 (tui_bp_flags): New enum flags type.
6946 (struct tui_source_element) <break_mode>: Change type. Rename
6947 from has_break.
6948 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6949 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6950 constants.
6951 * tui/tui-winsource.h: Fix comment.
6952
350fab54
AH
69532019-07-04 Alan Hayward <alan.hayward@arm.com>
6954
6955 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6956 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6957 (store_fpregs_to_thread)
6958 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6959 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6960 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6961 (IWMMXT_REGS_SIZE): Add define.
6962 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6963 (fetch_vfp_regs, store_vfp_regs)
6964 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6965 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6966
f0452268
AH
69672019-07-04 Alan Hayward <alan.hayward@arm.com>
6968
6969 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6970 defines.
6971 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6972 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6973 (ARM_INT_REGISTER_SIZE): ...to this.
6974 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6975 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6976 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6977 (arm_linux_collect_gregset, supply_nwfpe_register)
6978 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6979 defines.
6980 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6981 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6982 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6983 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6984 (arm_return_in_memory, arm_store_return_value)
6985 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6986 (arm_record_ld_st_multiple): Likewise.
6987 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6988 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6989
e935475c
AH
69902019-07-04 Alan Hayward <alan.hayward@arm.com>
6991
6992 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6993 AARCH64_DISPLACED_MODIFIED_INSNS.
6994 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6995 (aarch64_displaced_step_copy_insn): Likewise.
6996 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6997 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6998 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6999 ARM_DISPLACED_MODIFIED_INSNS.
7000 * arm-tdep.c (arm_gdbarch_init): Likewise.
7001 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7002 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7003 (struct arm_displaced_step_closure): Use
7004 ARM_DISPLACED_MODIFIED_INSNS.
7005
df0bb381
AH
70062019-07-04 Alan Hayward <alan.hayward@arm.com>
7007
7008 * features/Makefile: Remove unused xml files.
7009 * features/aarch64.xml: Remove.
7010 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7011 * features/i386/amd64-avx-avx512.xml: Remove.
7012 * features/i386/amd64-avx-linux.xml: Remove.
7013 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7014 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7015 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7016 * features/i386/amd64-avx-mpx.xml: Remove.
7017 * features/i386/amd64-avx.xml: Remove.
7018 * features/i386/amd64-linux.xml: Remove.
7019 * features/i386/amd64-mpx-linux.xml: Remove.
7020 * features/i386/amd64-mpx.xml: Remove.
7021 * features/i386/amd64.xml: Remove.
7022 * features/i386/i386-avx-avx512-linux.xml: Remove.
7023 * features/i386/i386-avx-avx512.xml: Remove.
7024 * features/i386/i386-avx-linux.xml: Remove.
7025 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7026 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7027 * features/i386/i386-avx-mpx-linux.xml: Remove.
7028 * features/i386/i386-avx-mpx.xml: Remove.
7029 * features/i386/i386-avx.xml: Remove.
7030 * features/i386/i386-linux.xml: Remove.
7031 * features/i386/i386-mmx-linux.xml: Remove.
7032 * features/i386/i386-mmx.xml: Remove.
7033 * features/i386/i386-mpx-linux.xml: Remove.
7034 * features/i386/i386-mpx.xml: Remove.
7035 * features/i386/i386.xml: Remove.
7036 * features/i386/x32-avx-avx512-linux.xml: Remove.
7037 * features/i386/x32-avx-linux.xml: Remove.
7038 * features/i386/x32-linux.xml: Remove.
7039
edd6266a
AH
70402019-07-04 Alan Hayward <alan.hayward@arm.com>
7041
7042 * regformats/aarch64.dat: Remove.
7043 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7044 * regformats/i386/amd64-avx-linux.dat: Remove.
7045 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7046 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7047 * regformats/i386/amd64-linux.dat: Remove.
7048 * regformats/i386/amd64-mpx-linux.dat: Remove.
7049 * regformats/i386/amd64.dat: Remove.
7050 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7051 * regformats/i386/i386-avx-linux.dat: Remove.
7052 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7053 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7054 * regformats/i386/i386-linux.dat: Remove.
7055 * regformats/i386/i386-mmx-linux.dat: Remove.
7056 * regformats/i386/i386-mpx-linux.dat: Remove.
7057 * regformats/i386/i386.dat: Remove.
7058 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7059 * regformats/i386/x32-avx-linux.dat: Remove.
7060 * regformats/i386/x32-linux.dat: Remove.
7061
2b40fda7
AH
70622019-07-04 Alan Hayward <alan.hayward@arm.com>
7063
7064 * aarch64-tdep.c: Remove xml self tests.
7065 * amd64-linux-tdep.c: Likewise.
7066 * amd64-tdep.c: Likewise.
7067 * i386-linux-tdep.c: Likewise.
7068 * i386-tdep.c: Likewise.
7069
5f4ba3e7
PA
70702019-07-03 Pedro Alves <palves@redhat.com>
7071
7072 PR cli/24732
7073 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7074 (pipe_cmd_option_defs): New.
7075 (make_pipe_cmd_options_def_group): New.
7076 (pipe_command): Use gdb::option::process_options.
7077 (pipe_command_completer): New function.
7078 (_initialize_cli_cmds): Install completer for "pipe" command.
7079
3d9be6f5
PA
70802019-07-03 Pedro Alves <palves@redhat.com>
7081
7082 * cli/cli-option.c (union option_value) <string>: New field.
7083 (struct option_def_and_value): Add ctor, move ctor, dtor and
7084 use DISABLE_COPY_AND_ASSIGN.
7085 (option_def_and_value::clear_value): New.
7086 (parse_option, save_option_value_in_ctx, get_val_type_str)
7087 (add_setshow_cmds_for_options): Handle var_string.
7088 * cli-option.h (union option_def::var_address) <string>: New
7089 field.
7090 (struct string_option_def): New.
7091 * maint-test-options.c (struct test_options_opts): Add default
7092 ctor and use DISABLE_COPY_AND_ASSIGN.
7093 <string_opt>: New field.
7094 (test_options_opts::~test_options_opts): New.
7095 (test_options_opts::dump): Also dump "-string".
7096 (test_options_option_defs): Install "string.
7097
41fc454c
PA
70982019-07-03 Pedro Alves <palves@redhat.com>
7099
7100 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7101 option_value with a null enumeration.
7102 (complete_options): Save the option values in the context.
7103 (save_option_value_in_ctx): New, factored out from ...
7104 (process_options): ... here.
7105 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7106 of the function.
7107 * maint-test-options.c (test_options_opts::dump): New, factored
7108 out from ...
7109 (maintenance_test_options_command_mode): ... here.
7110 (maintenance_test_options_command_completion_result): Delete.
7111 (maintenance_test_options_command_completion_text): Update
7112 comment.
7113 (maintenance_show_test_options_completion_result): Change
7114 prototype. Just print
7115 maintenance_test_options_command_completion_text.
7116 (save_completion_result): New.
7117 (maintenance_test_options_completer_mode): Pass options context to
7118 complete_options, and then save a dump.
7119 (_initialize_maint_test_options): Use add_cmd to install "maint
7120 show test-options-completion-result".
7121
fdbc9870
PA
71222019-07-03 Pedro Alves <palves@redhat.com>
7123
7124 * NEWS (New commands): Mention "with" and "maint with".
7125 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7126 (with_command, with_command_completer): New.
7127 (pipe_command): Adjust to new repeat_previous
7128 interface.
7129 (_initialize_cli_cmds): Install the "with" command and its "w"
7130 alias.
7131 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7132 declarations.
7133 * cli/cli-setshow.c (parse_cli_var_uinteger)
7134 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7135 argument strings for all var_types.
7136 (get_setshow_command_value_string): New, factored out from ...
7137 (do_show_command): ... this.
7138 * cli/cli-setshow.h: Include <string>.
7139 (get_setshow_command_value_string): Declare.
7140 * command.h (repeat_previous): Now returns const char *. Adjust
7141 comment.
7142 * maint.c: Include "cli/cli-cmds.h".
7143 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7144 (_initialize_maint_cmds): Register the "maintenance with" command.
7145 * top.c (repeat_previous): Move bits from pipe_command here:
7146 Return the saved command line, if any; error out if there's no
7147 command to relaunch.
7148
c6ac8931
PA
71492019-07-03 Pedro Alves <palves@redhat.com>
7150
7151 * NEWS (New commands): Mention "maint set/show test-settings"
7152 instead of "maint test-settings".
7153 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7154 (maintenance_test_settings_set_list): Rename to ...
7155 (maintenance_set_test_settings_list): ... this.
7156 (maintenance_test_settings_show_list): Rename to ...
7157 (maintenance_show_test_settings_list): ... this.
7158 (maintenance_test_settings_cmd): Delete.
7159 (maintenance_test_settings_set_cmd): ...
7160 (maintenance_set_test_settings_cmd): ... this.
7161 (maintenance_test_settings_show_cmd): ...
7162 (maintenance_show_test_settings_cmd): ... this.
7163 (maintenance_test_settings_show_value_cmd):
7164 (maintenance_show_test_settings_value_cmd): ... this.
7165 (_initialize_maint_test_settings): No longer install the "maint
7166 test-settings" prefix command. Rename "maint test-settings set"
7167 to "maint set test-settings", and "maint test-settings show" to
7168 "maint show test-settings". Adjust all subcommands.
7169
d1fcf2fd
PA
71702019-07-03 Pedro Alves <palves@redhat.com>
7171
7172 * maint-test-settings.c: Fix file's intro comment. Replace all
7173 references to "test-options" with references to "test-settings",
7174 in comments.
7175
970f9d09
PA
71762019-07-03 Pedro Alves <palves@redhat.com>
7177
7178 * maint-test-settings.c (maintenance_test_settings_xxx)
7179 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7180 New.
7181 (maintenance_test_settings_enums): Use them.
7182 (maintenance_test_settings_enum): Default to
7183 maintenance_test_settings_xxx.
7184 (_initialize_maint_test_settings): Initialize
7185 MAINTENANCE_TEST_SETTINGS_FILENAME.
7186
f3869b1a
SM
71872019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7188
7189 * breakpoint.h (remove_breakpoints_inf): Change return type to
7190 void, move function documentation here.
7191 * breakpoint.c (remove_breakpoints_inf): Change return type to
7192 void, move function documentation to header.
7193
54d66006
PA
71942019-07-02 Pedro Alves <palves@redhat.com>
7195
7196 * NEWS (Completion improvements): Mention "info threads".
7197 * thread.c (struct info_threads_opts, info_threads_option_defs)
7198 (make_info_threads_options_def_group): New.
7199 (info_threads_command): Use gdb::option::process_options.
7200 (info_threads_command_completer): New.
7201 (_initialize_thread): Use gdb::option::build_help to build the
7202 help text for "info threads".
7203
854f6088
SM
72042019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7205
7206 * defs.h (generic_load): Move from here...
7207 * symfile.h (generic_load): ... to here. Rename name parameter
7208 to args.
7209 * symfile.c (generic_load): Add comment.
7210
54ee4252
TT
72112019-07-01 Tom Tromey <tromey@adacore.com>
7212
7213 * dwarf2read.c
7214 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7215 declaration of without_params. Fix formatting.
7216
65392b3e
TT
72172019-07-01 Tom Tromey <tromey@adacore.com>
7218
7219 * ada-exp.y (find_primitive_type): Update.
7220 * ada-lang.h (ada_lookup_symbol): Update.
7221 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7222 parameter.
7223 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7224
7d7571f0
SDJ
72252019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7226
7227 PR breakpoints/24541
7228 * gdbarch.c: Regenerate.
7229 * gdbarch.h: Regenerate.
7230 * gdbarch.sh: Add 'stap_adjust_register'.
7231 * i386-tdep.c: Include '<unordered_set>'.
7232 (i386_stap_adjust_register): New function.
7233 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7234 * stap-probe.c (stap_parse_register_operand): Call
7235 'gdbarch_stap_adjust_register'.
7236
5af5392a
SDJ
72372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7238
7239 PR python/24742
7240 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7241 * python/python.c (do_start_initialization): Use 'xmalloc'
7242 instead of 'PyMem_Malloc'.
7243
10d06d82
TT
72442019-06-28 Tom Tromey <tromey@adacore.com>
7245
7246 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7247 for Ada.
7248
1b7f24cd
TT
72492019-06-27 Tom Tromey <tromey@adacore.com>
7250
7251 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7252 objfile_key.
7253 (arm_find_mapping_symbol, arm_record_special_symbol)
7254 (_initialize_arm_tdep): Update.
7255 (arm_objfile_data_free): Remove.
7256
3d507ff2
TT
72572019-06-27 Tom Tromey <tromey@adacore.com>
7258
7259 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7260 to cp_print_static_field.
7261
762c164d
TT
72622019-06-26 Tom Tromey <tromey@adacore.com>
7263
7264 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7265 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7266 declare.
7267
aa2f9bcf
AH
72682019-06-26 Alan Hayward <alan.hayward@arm.com>
7269
7270 * features/aarch64-core.c (create_feature_aarch64_core):
7271 Regenerate.
7272 * features/aarch64-core.xml: Add cpsr flags.
7273
3426ae57
AH
72742019-06-26 Alan Hayward <alan.hayward@arm.com>
7275
7276 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7277 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7278
4838e44c
SM
72792019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7282 field.
7283 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7284 use.
7285 (arm_record_special_symbol): Don't insert new symbol in sorted
7286 position, push it at the end.
7287
54cc7474
SM
72882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7289
7290 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7291 (arm_mapping_symbol_s): Remove.
7292 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7293 (arm_mapping_symbol_vec): New typedef.
7294 (struct arm_per_objfile): Add constructor.
7295 <section_maps>: Change type to
7296 std::unique_ptr<arm_mapping_symbol_vec[]>.
7297 (arm_compare_mapping_symbols): Remove.
7298 (arm_find_mapping_symbol): Adjust to section_maps type change.
7299 (arm_objfile_data_free): Call delete on arm_per_objfile.
7300 (arm_record_special_symbol): Adjust to section_maps type change.
7301 Allocate arm_per_objfile with new.
7302
b65b566c
PW
73032019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7304
7305 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7306 with the command prefix.
7307
c2fc64f5
TT
73082019-06-25 Tom Tromey <tom@tromey.com>
7309
7310 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7311 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7312
fb54fa76
TT
73132019-06-25 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7316 type.
7317 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7318 protected.
7319
f7952c57
TT
73202019-06-25 Tom Tromey <tom@tromey.com>
7321
7322 * tui/tui-winsource.c
7323 (tui_source_window_base::set_is_exec_point_at): Add check against
7324 LOA_ADDRESS.
7325
17568d78
TT
73262019-06-25 Tom Tromey <tom@tromey.com>
7327
7328 * tui/tui-source.c (tui_set_source_content): Don't check before
7329 xfree.
7330 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7331
53e7cdba
TT
73322019-06-25 Tom Tromey <tom@tromey.com>
7333
7334 * tui/tui-winsource.h (tui_update_source_window_as_is)
7335 (tui_alloc_source_buffer, tui_line_is_displayed)
7336 (tui_addr_is_displayed): Change type of win_info.
7337 * tui/tui-winsource.c (tui_update_source_window_as_is)
7338 (tui_clear_source_content, tui_show_source_line)
7339 (tui_show_source_content, tui_source_window_base::refill)
7340 (tui_source_window_base::set_is_exec_point_at)
7341 (tui_source_window_base::set_is_exec_point_at)
7342 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7343 (tui_alloc_source_buffer, tui_line_is_displayed)
7344 (tui_addr_is_displayed): Change type of win_info. Update.
7345 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7346 (tui_source_window_base::do_make_visible_with_new_height):
7347 Update.
7348 * tui/tui-source.c (tui_set_source_content)
7349 (tui_set_source_content_nil)
7350 (tui_source_window::do_scroll_vertical): Update.
7351 * tui/tui-layout.c (show_layout): Update.
7352 * tui/tui-disasm.c (tui_set_disassem_content)
7353 (tui_disasm_window::do_scroll_vertical): Update.
7354 * tui/tui-data.h (tui_win_content): Remove.
7355 (struct tui_gen_win_info) <content, content_size>: Remove.
7356 (struct tui_source_element): Add initializers and destructor.
7357 (union tui_which_element, struct tui_win_element): Remove.
7358 (struct tui_source_window_base) <content>: New field.
7359 (struct tui_data_window): Remove destructor.
7360 (tui_alloc_content, tui_free_win_content)
7361 (tui_free_all_source_wins_content): Don't declare.
7362 * tui/tui-data.c (tui_initialize_static_data): Update.
7363 (init_content_element, tui_alloc_content): Remove.
7364 (~tui_gen_win_info): Update.
7365 (~tui_data_window, tui_free_all_source_wins_content)
7366 (tui_free_win_content, free_content, free_content_elements):
7367 Remove.
7368
7908abbf
TT
73692019-06-25 Tom Tromey <tom@tromey.com>
7370
7371 * tui/tui-winsource.h (tui_clear_source_content)
7372 (tui_erase_source_content, tui_show_source_content): Change type
7373 of win_info.
7374 * tui/tui-winsource.c (tui_clear_source_content)
7375 (tui_erase_source_content, tui_show_source_content): Change type
7376 of win_info.
7377 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7378 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7379 win_info.
7380 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7381 win_info.
7382 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7383
02c28df0
TT
73842019-06-25 Tom Tromey <tom@tromey.com>
7385
7386 * tui/tui-winsource.c (tui_clear_source_content)
7387 (tui_source_window_base::set_is_exec_point_at): Update.
7388 * tui/tui-source.c (tui_set_source_content_nil): Update.
7389 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7390 a bool.
7391 * tui/tui-data.c (init_content_element): Update.
7392
6658b1bf
TT
73932019-06-25 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7396 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7397 * tui/tui-layout.c (init_and_make_win): Update.
7398 * tui/tui.h (enum tui_win_type): Update.
7399 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7400 tui_win_is_auxillary.
7401 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7402 tui_win_is_auxillary.
7403
21e1c91e
TT
74042019-06-25 Tom Tromey <tom@tromey.com>
7405
7406 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7407 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7408 (tui_delete_data_content_windows, tui_display_all_data)
7409 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7410 Update.
7411 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7412 * tui/tui-regs.c (tui_last_regs_line_no)
7413 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7414 (tui_show_registers): Update.
7415 (tui_show_register_group): Return void. Update.
7416 (tui_display_registers_from, tui_display_reg_element_at_line)
7417 (tui_display_registers_from_line, tui_check_register_values):
7418 Update.
7419 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7420 member.
7421 (struct tui_data_window) <regs_content>: Now a std::vector.
7422 <regs_content_count>: Remove.
7423 (tui_add_content_elements, tui_free_data_content): Don't declare.
7424 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7425 (init_content_element): Remove DATA_WIN case. Add assert.
7426 (tui_add_content_elements): Remove.
7427 (tui_data_window): Update.
7428 (tui_free_data_content): Remove.
7429 (free_content_elements): Remove DATA_WIN case.
7430
115ac53b
TT
74312019-06-25 Tom Tromey <tom@tromey.com>
7432
7433 * tui/tui-data.c (tui_data_item_window): Update.
7434 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7435 * tui/tui-windata.c (tui_display_all_data)
7436 (tui_display_data_from_line): Update.
7437 (tui_check_data_values): Remove.
7438 * tui/tui-regs.c (tui_show_register_group)
7439 (tui_display_reg_element_at_line): Update.
7440 * tui/tui-hooks.c (tui_register_changed)
7441 (tui_refresh_frame_and_register_information): Call
7442 tui_check_register_values.
7443 * tui/tui-data.h (struct tui_data_window) <data_content,
7444 data_content_count, data_type>: Remove.
7445 (enum tui_data_type): Remove.
7446
7447 * tui/tui-data.c (tui_data_window::clear_detail)
7448 (~tui_data_window): Update.
7449
eaf9738b
TT
74502019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7453 declare.
7454 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7455 Rename from tui_first_data_item_displayed. Update.
7456 (tui_data_window::refresh_all)
7457 (tui_data_window::do_scroll_vertical): Update.
7458 * tui/tui-data.h (struct tui_data_window)
7459 <first_data_item_displayed>: Declare new method.
7460
31ca4723
TT
74612019-06-25 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7464 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7465 contents...
7466 (tui_initialize_static_data): ...here.
7467
41bcff7f
TT
74682019-06-25 Tom Tromey <tom@tromey.com>
7469
7470 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7471 (tui_display_registers_from, tui_check_register_values): Update.
7472 (tui_display_register): Remove win_info parameter; update.
7473 (tui_get_register): Change type of parameters.
7474 * tui/tui-data.h (struct tui_data_element): Remove.
7475 (union tui_which_element) <data>: Remove.
7476 <data_window>: Change type.
7477 (struct tui_data_item_window): New.
7478 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7479 case. Add assert.
7480 (~tui_data_item_window): New destructor.
7481 (free_content_elements): Remove DATA_ITEM_WIN case.
7482
d2802c33
TT
74832019-06-25 Tom Tromey <tom@tromey.com>
7484
7485 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7486 Remove.
7487
dd835f8b
TT
74882019-06-25 Tom Tromey <tom@tromey.com>
7489
7490 * tui/tui-data.h (struct tui_command_element): Remove.
7491 (union tui_which_element) <command>: Remove.
7492 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7493 assert.
7494 (free_content_elements): Remove CMD_WIN case.
7495
bd7db367
TT
74962019-06-25 Tom Tromey <tom@tromey.com>
7497
7498 * tui/tui-layout.c (tui_set_layout): Update.
7499 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7500 * tui/tui-data.c (layout_def): Update.
7501
3add462f
TT
75022019-06-25 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7505 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7506 (tui_source_window_base::set_new_height): Update.
7507 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7508 Update.
7509 (tui_set_locator_fullname, tui_set_locator_info)
7510 (tui_show_frame_info): Update.
7511 * tui/tui-source.c (tui_set_source_content)
7512 (tui_source_is_displayed): Update.
7513 * tui/tui-layout.c (show_source_disasm_command, show_data)
7514 (show_source_or_disasm_and_command): Update.
7515 * tui/tui-disasm.c (tui_set_disassem_content)
7516 (tui_get_begin_asm_address): Update.
7517 * tui/tui-data.h (struct tui_locator_element): Remove.
7518 (union tui_which_element) <locator>: Remove.
7519 (struct tui_locator_window): New.
7520 (tui_locator_win_info_ptr): Change return type.
7521 * tui/tui-data.c (_locator): Change type.
7522 (tui_locator_win_info_ptr): Change return type.
7523 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7524 (tui_alloc_content): Add assert.
7525
489e9d8b
TT
75262019-06-25 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-winsource.c
7529 (tui_exec_info_window::maybe_allocate_content): New method.
7530 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7531 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7532 (make_source_or_disasm_window): Add cast.
7533 * tui/tui-data.h (union tui_which_element) <simple_string>:
7534 Remove.
7535 (struct tui_source_info): New.
7536 (struct tui_source_window_base) <execution_info>: Change type.
7537 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7538 case, and add assert.
7539 (tui_alloc_content): Add assert.
7540
c3fabb7d
TT
75412019-06-25 Tom Tromey <tom@tromey.com>
7542
7543 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7544 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7545 * tui/tui-data.c (tui_alloc_win_info): Remove.
7546
bbc228ee
TT
75472019-06-25 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7550 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7551 can_highlight.
7552
5fcee43a
TT
75532019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7556 make_visible_with_new_height method.
7557 (tui_win_info::make_visible_with_new_height): New method.
7558 (tui_source_window_base::do_make_visible_with_new_height)
7559 (tui_data_window::do_make_visible_with_new_height)
7560 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7561 (make_visible_with_new_height): Remove.
7562 (tui_resize_all, tui_adjust_win_heights): Use
7563 make_visible_with_new_height method.
7564 * tui/tui-data.h (struct tui_win_info)
7565 <do_make_visible_with_new_height, make_visible_with_new_height>:
7566 New methods.
7567 (struct tui_source_window_base, struct tui_data_window)
7568 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7569 methods.
7570
d83f1fe6
TT
75712019-06-25 Tom Tromey <tom@tromey.com>
7572
7573 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7574 method.
7575 (update_tab_width): Call update_tab_width method.
7576 * tui/tui-data.h (struct tui_win_info)
7577 (struct tui_source_window_base) <update_tab_width>: New methods.
7578
17374de4
TT
75792019-06-25 Tom Tromey <tom@tromey.com>
7580
7581 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7582 parameter.
7583 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7584 parameter.
7585 (tui_gen_win_info::make_visible): Update.
7586 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7587 parameter.
7588 * tui/tui-data.h (enum tui_box): New enum.
7589 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7590
f936bca2
TT
75912019-06-25 Tom Tromey <tom@tromey.com>
7592
7593 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7594 init_and_make_win for EXEC_INFO_WIN.
7595 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7596 longer inline.
7597 (struct tui_win_info) <~tui_win_info>: Inline.
7598 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7599 Don't declare.
7600 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7601 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7602 Remove.
7603 (tui_initialize_static_data): Update.
7604 (~tui_gen_win_info): Handle more cleanup here.
7605 (~tui_source_window_base): Delete "execution_info".
7606 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7607
d6ba6a11
TT
76082019-06-25 Tom Tromey <tom@tromey.com>
7609
7610 * tui/tui-layout.c (make_command_window): Don't set
7611 can_highlight.
7612 (show_source_disasm_command): Call the reset method.
7613 (show_data): Don't set can_highlight. Call the reset method.
7614 (tui_gen_win_info::reset): Rename from init_gen_win_info
7615 (init_and_make_win): Simplify. Return tui_gen_win_info.
7616 (show_source_or_disasm_and_command): Call the reset method.
7617 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7618 (struct tui_cmd_window): Set can_highlight.
7619
48a3bd16
TT
76202019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7623 from make_visible.
7624 (tui_make_visible, tui_make_invisible): Rewrite.
7625 (tui_win_info::make_visible): Remove.
7626 (tui_source_window_base::make_visible): Update.
7627 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7628 method. Moved from...
7629 (struct tui_win_info) <make_visible>: ...here.
7630
c3bd716f
TT
76312019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-winsource.c
7634 (tui_source_window_base::do_scroll_horizontal): Remove direction
7635 parameter.
7636 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7637 direction parameter.
7638 * tui/tui-win.c (tui_win_info::forward_scroll)
7639 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7640 (tui_win_info::right_scroll): Update.
7641 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7642 direction parameter.
7643 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7644 direction parameter.
7645 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7646 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7647 Remove direction parameter.
7648 (struct tui_source_window_base, struct tui_source_window)
7649 (struct tui_disasm_window, struct tui_data_window)
7650 (struct tui_cmd_window): Update.
7651
21c32dca
TT
76522019-06-25 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-winsource.h (tui_set_exec_info_content)
7655 (tui_show_exec_info_content, tui_erase_exec_info_content)
7656 (tui_clear_exec_info_content, tui_update_exec_info): Change
7657 argument to tui_source_window_base.
7658 * tui/tui-winsource.c (tui_set_exec_info_content)
7659 (tui_show_exec_info_content, tui_erase_exec_info_content)
7660 (tui_clear_exec_info_content, tui_update_exec_info): Change
7661 argument to tui_source_window_base.
7662
73fbdc65
TT
76632019-06-25 Tom Tromey <tom@tromey.com>
7664
7665 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7666 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7667
33325343
TT
76682019-06-25 Tom Tromey <tom@tromey.com>
7669
7670 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7671 check.
7672
29d2c474
TT
76732019-06-25 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7676 type to void.
7677 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7678 type to void.
7679 * tui/tui-source.c (tui_set_source_content): Update.
7680 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7681
152f3f4b
TT
76822019-06-25 Tom Tromey <tom@tromey.com>
7683
7684 * tui/tui-win.c (window_name_completer, tui_set_focus)
7685 (tui_all_windows_info): Use name method.
7686 * tui/tui-data.h (struct tui_gen_win_info)
7687 (struct tui_source_window, struct tui_disasm_window)
7688 (struct tui_data_window, struct tui_cmd_window) <name>: New
7689 method.
7690 (tui_win_name): Don't declare.
7691 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7692 (tui_win_name): Remove.
7693
be4da588
TT
76942019-06-25 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui-winsource.h (tui_update_source_window)
7697 (tui_update_source_window_as_is): Change parameter type.
7698 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7699 to be a tui_source_window_base.
7700 (tui_update_source_window_as_is): Likewise.
7701 * tui/tui-win.c (make_visible_with_new_height): Update.
7702
5b81daba
TT
77032019-06-25 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-winsource.c (tui_erase_source_content)
7706 (tui_show_source_content, tui_show_exec_info_content)
7707 (tui_erase_exec_info_content): Use refresh_window method.
7708 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7709 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7710 from tui_refresh_win.
7711 (tui_data_window::refresh_window): New method.
7712 (tui_win_info::refresh, tui_source_window_base::refresh)
7713 (tui_refresh_all): Use refresh_window method.
7714 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7715 method.
7716 * tui/tui-regs.c (tui_display_register): Call refresh_window
7717 method.
7718 * tui/tui-layout.c (show_source_disasm_command)
7719 (show_source_or_disasm_and_command): Call refresh_window method.
7720 * tui/tui-data.h (struct tui_gen_win_info)
7721 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7722 New method.
7723
cb2ce893
TT
77242019-06-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui.c (tui_rl_other_window, tui_enable)
7727 (tui_is_window_visible, tui_get_command_dimension): Update.
7728 * tui/tui-winsource.c (tui_update_source_window_as_is)
7729 (tui_clear_source_content, tui_erase_source_content)
7730 (tui_show_source_line, tui_source_window_base::refill)
7731 (tui_source_window_base::do_scroll_horizontal)
7732 (tui_source_window_base::set_is_exec_point_at)
7733 (tui_update_breakpoint_info, tui_set_exec_info_content)
7734 (tui_alloc_source_buffer, tui_line_is_displayed)
7735 (tui_addr_is_displayed): Update.
7736 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7737 (tui_check_and_display_highlight_if_needed)
7738 (tui_win_info::make_visible, tui_win_info::refresh)
7739 (tui_refresh_all): Update.
7740 * tui/tui-windata.c (tui_first_data_item_displayed)
7741 (tui_delete_data_content_windows, tui_erase_data_content)
7742 (tui_display_all_data, tui_data_window::refresh_all)
7743 (tui_check_data_values): Update.
7744 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7745 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7746 (tui_win_info::backward_scroll, tui_refresh_all_win)
7747 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7748 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7749 (tui_source_window_base::set_new_height)
7750 (tui_data_window::set_new_height)
7751 (make_invisible_and_set_new_height)
7752 (make_visible_with_new_height, new_height_ok)
7753 (parse_scrolling_args): Update.
7754 * tui/tui-stack.c (tui_show_frame_info): Update.
7755 * tui/tui-source.c (tui_set_source_content)
7756 (tui_set_source_content_nil, tui_source_is_displayed)
7757 (tui_source_window::do_scroll_vertical): Update.
7758 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7759 (tui_display_registers_from, tui_display_reg_element_at_line)
7760 (tui_check_register_values, tui_reg_command): Update.
7761 * tui/tui-layout.c (tui_default_win_height)
7762 (show_source_disasm_command, show_data, init_and_make_win)
7763 (show_source_or_disasm_and_command): Update.
7764 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7765 (tui_redisplay_readline, tui_mld_flush)
7766 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7767 (tui_getc): Update.
7768 * tui/tui-disasm.c (tui_set_disassem_content)
7769 (tui_disasm_window::do_scroll_vertical): Update.
7770 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7771 Now virtual.
7772 (struct tui_win_info): Derive from tui_gen_win_info.
7773 <~tui_win_info>: Mark as override.
7774 <generic>: Remove member.
7775 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7776 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7777 (~tui_data_window, ~tui_win_info)
7778 (tui_free_all_source_wins_content): Update.
7779 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7780
ab313b35
TT
77812019-06-25 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-layout.c (init_and_make_win): Use new.
7784 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7785 destructor, initializers.
7786 (tui_alloc_generic_win_info): Don't declare.
7787 * tui/tui-data.c (_locator): Add argument to constructor.
7788 (source_win, disasm_win): New globals.
7789 (exec_info): Remove.
7790 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7791 Update.
7792 (tui_alloc_generic_win_info): Remove.
7793 (init_content_element): Use new.
7794 (tui_win_info::tui_win_info): Update.
7795 (free_content_elements) <case DATA_WIN>: Use delete.
7796
dc2c33e4
TT
77972019-06-25 Tom Tromey <tom@tromey.com>
7798
7799 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7800 * tui/tui-windata.c (tui_first_data_item_displayed)
7801 (tui_delete_data_content_windows): Update.
7802 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7803 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7804 (tui_display_registers_from, tui_check_register_values): Update.
7805 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7806 pointer.
7807 * tui/tui-data.c (init_content_element): Update. Allocate the new
7808 window.
7809 (tui_free_data_content): Update.
7810 (free_content_elements) <case DATA_WIN>: Free the window.
7811
214a5cbe
TT
78122019-06-25 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7815 Update.
7816 * tui/tui-layout.c (make_command_window)
7817 (show_source_disasm_command, show_data, init_and_make_win)
7818 (show_source_or_disasm_and_command): Update.
7819 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7820 method.
7821 <can_highight, is_highlighted>: Now bool.
7822 (tui_set_win_highlight): Don't declare.
7823 * tui/tui-data.c (tui_set_win_highlight): Remove.
7824
8e2daf15
TT
78252019-06-25 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui-wingeneral.c (make_visible): Remove check of window
7828 type.
7829
8903bd8a
TT
78302019-06-25 Tom Tromey <tom@tromey.com>
7831
7832 * tui/tui-win.c (tui_win_info::max_height)
7833 (tui_cmd_window::max_height): New methods.
7834 (new_height_ok): Call max_height.
7835 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7836 <max_height>: New method.
7837
3f02ce1e
TT
78382019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-win.c (tui_source_window_base::set_new_height)
7841 (tui_data_window::set_new_height): New methods.
7842 (make_invisible_and_set_new_height): Call set_new_height method.
7843 * tui/tui-data.h (struct tui_win_info)
7844 (struct tui_source_window_base, struct tui_data_window)
7845 <set_new_height>: New method.
7846
1825f487
TT
78472019-06-25 Tom Tromey <tom@tromey.com>
7848
7849 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7850 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7851 tui_refresh_data_win.
7852 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7853 method.
7854 (tui_refresh_all_win): Call the refresh_all method.
7855 (tui_set_focus): Likewise.
7856 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7857 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7858 Likewise.
7859
ad54d15b
TT
78602019-06-25 Tom Tromey <tom@tromey.com>
7861
7862 * tui/tui-winsource.h (tui_refill_source_window)
7863 (tui_set_is_exec_point_at): Don't declare.
7864 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7865 (tui_source_window_base::refill): Rename from
7866 tui_refill_source_window.
7867 (tui_source_window_base::do_scroll_horizontal): Update.
7868 (tui_source_window_base::set_is_exec_point_at): Rename from
7869 tui_set_is_exec_point_at.
7870 (tui_update_all_breakpoint_info): Update.
7871 * tui/tui-stack.c (tui_show_frame_info): Update.
7872 * tui/tui-layout.c (show_data): Add cast.
7873 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7874 * tui/tui-data.h (struct tui_source_window_base) <refill,
7875 set_is_exec_point_at>: New methods.
7876 (tui_source_windows, tui_add_to_source_windows): Update types.
7877 (tui_add_to_source_windows): Remove redundant declaration.
7878 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7879 (tui_source_windows): Change return type.
7880 (tui_clear_source_windows_detail): Update.
7881 (tui_add_to_source_windows): Change type of parameter.
7882 (tui_free_all_source_wins_content): Update.
7883
2042b506
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-wingeneral.c (tui_win_info::refresh)
7887 (tui_source_window_base::refresh): New methods.
7888 (tui_refresh_all): Call the refresh method.
7889 * tui/tui-data.h (struct tui_win_info)
7890 (struct tui_source_window_base) <refresh>: New method.
7891
56122977
TT
78922019-06-25 Tom Tromey <tom@tromey.com>
7893
7894 * tui/tui.h (tui_is_window_visible): Return bool.
7895 * tui/tui.c (tui_is_window_visible): Return bool.
7896 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7897 (tui_make_visible, tui_make_invisible)
7898 (tui_win_info::make_visible)
7899 (tui_source_window_base::make_visible, make_all_visible)
7900 (tui_make_all_visible, tui_make_all_invisible): Update.
7901 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7902 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7903 bool.
7904 (struct tui_win_info, struct tui_source_window_base)
7905 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7906 * tui/tui-data.c (tui_init_generic_part): Update.
7907
cda37efb
TT
79082019-06-25 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7911 (tui_source_window_base::make_visible): New methods.
7912 (make_all_visible): Make method call.
7913 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7914 (struct tui_source_window_base, struct tui_cmd_window): Override
7915 make_visible.
7916 (tui_win_is_source_type): Don't declare.
7917 * tui/tui-data.c (tui_win_is_source_type): Remove.
7918
6a0ee02c
TT
79192019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7922 NULL check.
7923
63901aec
TT
79242019-06-25 Tom Tromey <tom@tromey.com>
7925
7926 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7927 Inline constructor. Add initializers for members.
7928 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7929 constructors; now inline in class.
7930
ceb13a13
TT
79312019-06-25 Tom Tromey <tom@tromey.com>
7932
7933 * tui/tui-regs.c (tui_show_registers): Update.
7934 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7935 bool.
7936 * tui/tui-data.c (tui_data_window::clear_detail)
7937 (tui_data_window): Update.
7938
238eb706
TT
79392019-06-25 Tom Tromey <tom@tromey.com>
7940
7941 * tui/tui-windata.c (tui_display_all_data)
7942 (tui_display_data_from_line, tui_display_data_from)
7943 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7944 Update.
7945 * tui/tui-regs.c (tui_last_regs_line_no)
7946 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7947 (tui_show_registers, tui_show_register_group)
7948 (tui_display_registers_from, tui_display_reg_element_at_line)
7949 (tui_display_registers_from_line, tui_check_register_values)
7950 (tui_reg_next, tui_reg_prev): Update.
7951 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7952 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7953 tui_data_window.
7954 (struct tui_win_info) <detail>: Remove. Add new fields from
7955 tui_data_info.
7956 (TUI_DATA_WIN): Add cast.
7957 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7958 (~tui_data_window): Simplify.
7959
81491aa0
TT
79602019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-layout.c (show_source_disasm_command)
7963 (show_source_or_disasm_and_command): Update.
7964 * tui/tui-io.c (update_cmdwin_start_line)
7965 (tui_redisplay_readline): Update.
7966 * tui/tui-data.h (struct tui_command_info): Remove.
7967 (struct tui_win_info) <detail>: Remove command_info member.
7968 (struct tui_data_window) <start_line>: New member, from
7969 tui_command_info.
7970 (TUI_CMD_WIN): Add casts.
7971
e6e41501
TT
79722019-06-25 Tom Tromey <tom@tromey.com>
7973
7974 * tui/tui-winsource.c (tui_update_source_window)
7975 (tui_refill_source_window)
7976 (tui_source_window_base::do_scroll_horizontal)
7977 (tui_update_breakpoint_info, tui_set_exec_info_content)
7978 (tui_show_exec_info_content, tui_erase_exec_info_content)
7979 (tui_clear_exec_info_content): Update.
7980 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7981 Update.
7982 * tui/tui-win.c (make_invisible_and_set_new_height)
7983 (make_visible_with_new_height): Update.
7984 * tui/tui-source.c (tui_set_source_content)
7985 (tui_show_symtab_source): Update.
7986 * tui/tui-layout.c (extract_display_start_addr)
7987 (show_source_disasm_command, show_data)
7988 (make_source_or_disasm_window)
7989 (show_source_or_disasm_and_command): Update.
7990 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7991 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7992 "gdbarch".
7993 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7994 to tui_source_window_base.
7995 (struct tui_win_info) <detail>: Remove source_info member.
7996 (struct tui_source_window_base) <has_locator>: Inline.
7997 Move contents from tui_source_info; rename has_locator member to
7998 m_has_locator.
7999 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8000 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8001 header file.
8002 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8003 Simplify.
8004 (tui_free_all_source_wins_content): Cast to
8005 tui_source_window_base.
8006
44f0e208
TT
80072019-06-25 Tom Tromey <tom@tromey.com>
8008
8009 * tui/tui-win.c (make_invisible_and_set_new_height)
8010 (make_visible_with_new_height): Call has_locator method.
8011 * tui/tui-layout.c (show_source_disasm_command, show_data)
8012 (show_source_or_disasm_and_command): Update for bool change.
8013 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8014 (tui_win_info) <has_locator>: New method.
8015 (struct tui_source_window_base) <has_locator>: New method.
8016 (tui_win_has_locator): Don't declare.
8017 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8018 from tui_win_has_locator.
8019 (tui_source_window_base): Use false, not FALSE.
8020
7778b912
TT
80212019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8024 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8025 clear_detail method directly.
8026 (tui_clear_win_detail): Remove.
8027
f83d391c
TT
80282019-06-25 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8031 "this", not TUI_DISASM_WIN.
8032
13446e05
TT
80332019-06-25 Tom Tromey <tom@tromey.com>
8034
8035 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8036 declare.
8037 * tui/tui-winsource.c
8038 (tui_source_window_base::do_scroll_horizontal): Rename from
8039 tui_horizontal_source_scroll.
8040 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8041 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8042 from tui_vertical_data_scroll.
8043 * tui/tui-win.h (tui_scroll): Don't declare.
8044 * tui/tui-win.c (tui_win_info::forward_scroll)
8045 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8046 (tui_win_info::right_scroll): Rename and update.
8047 (tui_scroll_forward_command, tui_scroll_backward_command)
8048 (tui_scroll_left_command, tui_scroll_right_command): Update.
8049 (tui_scroll): Remove.
8050 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8051 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8052 from tui_vertical_source_scroll.
8053 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8054 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8055 from tui_vertical_disassem_scroll.
8056 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8057 do_scroll_horizontal>: New methods.
8058 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8059 Likewise.
8060 (struct tui_source_window_base): Add do_scroll_horizontal.
8061 (struct tui_source_window, struct tui_disasm_window): Add
8062 do_scroll_vertical.
8063 (struct tui_data_window, struct tui_cmd_window): Add
8064 do_scroll_horizontal and do_scroll_vertical.
8065 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8066
5cf82909
TT
80672019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-data.h (struct tui_source_window_base): New struct.
8070 (struct tui_source_window): Derive from tui_source_window_base.
8071 (struct tui_disasm_window): New struct.
8072 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8073 from tui_source_window::clear_detail.
8074 (tui_source_window_base): Rename from tui_source_window.
8075 (~tui_source_window_base): Rename from ~tui_source_window.
8076 (tui_alloc_win_info): Create a tui_disasm_window.
8077
ee1d42d6
TT
80782019-06-25 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui-data.h (struct tui_source_window)
8081 (struct tui_data_window): Declare destructors.
8082 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8083 destructors.
8084 (tui_win_info): Simplify.
8085
b4eb2452
TT
80862019-06-25 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-winsource.c (tui_display_main)
8089 (tui_update_source_windows_with_addr)
8090 (tui_update_all_breakpoint_info): Update.
8091 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8092 (new_height_ok, parse_scrolling_args): Update.
8093 * tui/tui-stack.c (tui_show_frame_info): Update.
8094 * tui/tui-data.h (struct tui_list): Remove.
8095 (tui_source_windows): Return a reference to a std::vector.
8096 * tui/tui-data.c (source_windows): Now a std::vector.
8097 (tui_source_windows): Change return type.
8098 (tui_clear_source_windows): Rewrite.
8099 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8100 (tui_free_all_source_wins_content): Rewrite.
8101
8761a91b
TT
81022019-06-25 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8105 (struct tui_data_window, struct tui_cmd_window): Declare
8106 clear_detail method.
8107 * tui/tui-data.c (tui_source_window::clear_detail)
8108 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8109 methods.
8110 (tui_clear_win_detail): Simplify.
8111
0ed69eda
TT
81122019-06-25 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-layout.c (make_source_window, make_disasm_window)
8115 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8116 Return the new window.
8117 (show_source_disasm_command, show_data)
8118 (show_source_or_disasm_and_command): Update.
8119
82432e10
TT
81202019-06-25 Tom Tromey <tom@tromey.com>
8121
8122 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8123 parameter. Return the new window.
8124 (show_source_disasm_command): Update and remove NULL check.
8125 (show_source_or_disasm_and_command): Update.
8126
ec328aa5
TT
81272019-06-25 Tom Tromey <tom@tromey.com>
8128
8129 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8130
33b906ab
TT
81312019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui-data.h (struct tui_win_info): Make constructor
8134 protected. Make destructor virtual. Add initializers.
8135 (tui_source_window, tui_data_window, tui_cmd_window): New
8136 classes.
8137 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8138 constructor. Add "type" parameter.
8139 (tui_source_window, tui_data_window, tui_cmd_window): New
8140 constructors.
8141 (tui_alloc_win_info): Instantiate the appropriate subclass.
8142
e7e11af4
TT
81432019-06-25 Tom Tromey <tom@tromey.com>
8144
8145 * tui/tui-win.c (tui_resize_all): Use delete.
8146 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8147 destructor.
8148 (tui_free_window): Don't declare.
8149 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8150 Update.
8151
6792b55e
TT
81522019-06-25 Tom Tromey <tom@tromey.com>
8153
8154 * tui/tui-data.h (struct tui_win_info): Add constructor.
8155 * tui/tui-data.c (tui_alloc_win_info): Use new.
8156 (tui_free_window): Use delete.
8157
f95675e1
TT
81582019-06-22 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8161 declare.
8162 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8163
5bff081c
TT
81642019-06-22 Tom Tromey <tom@tromey.com>
8165
8166 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8167 declare.
8168 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8169
47e3f474
TV
81702019-06-22 Tom de Vries <tdevries@suse.de>
8171
8172 * dwarf2read.c (create_addrmap_from_aranges)
8173 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8174 instead of '%zu'.
8175
fd5866f6
SM
81762019-06-21 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * dwarf2read.h (dwarf2_section_info_def): Remove.
8179 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8180 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8181 std::vector<dwarf2_section_info>.
8182 (struct dwo_file) <~dwo_file>: Remove.
8183 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8184 types field.
8185 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8186 (dwarf2_read_debug_names): Likewise.
8187 (create_debug_types_hash_table): Change parameter type to
8188 array_view, adjust code accordingly.
8189 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8190 (partial_die_info::fixup): Likewise.
8191 (determine_prefix): Likewise.
8192 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8193
fb1eb2f9
SM
81942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8195
8196 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8197 gdb_bfd_ref_ptr.
8198 <~dwo_file>: Remove call to gdb_bfd_unref.
8199 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8200 gdb_bfd_ref_ptr::get.
8201
51ac9db5
SM
82022019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8203
8204 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8205 type to htab_up.
8206 * dwarf2read.c (struct dwo_file): Initialize fields.
8207 <~dwo_file>: New.
8208 (free_dwo_file): Remove, move content to ~dwo_file.
8209 (struct dwo_file_deleter): Remove.
8210 (dwo_file_up>: Remove custom deleter.
8211 (free_dwo_files): Remove.
8212 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8213 dwo_files.
8214 (process_skeletonless_type_units): Call unique_ptr::get.
8215 (allocate_dwo_file_hash_table): Add deleter to created hash
8216 table. Change return type to htab_up.
8217 (lookup_dwo_file_slot): Don't memset dwo_file, call
8218 unique_ptr::get.
8219 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8220 (create_dwo_unit_in_dwp_v2): Likewise.
8221 (open_and_init_dwo_file): Likewise.
8222 (free_dwo_file_from_slot): Remove.
8223
dc4ccb6f
SM
82242019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * dwarf2read.h (struct dwarf2_section_info) <readin,
8227 is_virtual>: Change type to bool.
8228 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8229 true instead of 1.
8230
e6a1c5cb
TT
82312019-06-19 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-data.h (tui_init_content_element): Don't declare.
8234
6f6ffbeb
TT
82352019-06-19 Tom Tromey <tom@tromey.com>
8236
8237 * tui/tui-data.h (tui_init_win_info): Don't declare.
8238
f23f598e
TV
82392019-06-19 Tom de Vries <tdevries@suse.de>
8240
8241 * dwarf2read.h (abstract_to_concrete): Change type to
8242 std::unordered_map<sect_offset, std::vector<sect_offset>,
8243 gdb::hash_enum<sect_offset>>.
8244
680e1bee
TT
82452019-06-19 Tom Tromey <tromey@adacore.com>
8246
8247 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8248 EVAL_AVOID_SIDE_EFFECTS specially.
8249
dcf37923
TT
82502019-06-19 Tom Tromey <tromey@adacore.com>
8251
8252 * source-cache.c (highlighter): New global.
8253 (source_cache::get_source_lines): Create a highlighter on demand.
8254
494986d5
AB
82552019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * defs.h (deprecated_interactive_hook): Delete declaration.
8258 * interps.c (clear_interpreter_hooks): Remove use of
8259 deprecated_interactive_hook.
8260 * top.c (deprecated_interactive_hook): Delete definition.
8261 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8262
3360b6e7
TV
82632019-06-18 Tom de Vries <tdevries@suse.de>
8264
8265 PR gdb/24515
8266 * dwarf2read.h (abstract_to_concrete): Change type from
8267 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8268 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8269 * dwarf2read.c (read_variable): Update.
8270 (dwarf2_fetch_die_loc_sect_off): Update.
8271
310b3441
TV
82722019-06-17 Tom de Vries <tdevries@suse.de>
8273
8274 PR gdb/24617
8275 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8276 accessing parent[parent_len - 1].
8277
ba9777be
PP
82782019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8279
8280 PR gdb/24364
8281 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8282 call dtrace_process_dof with NULL dof.
8283
2b9f6e89
TV
82842019-06-16 Tom de Vries <tdevries@suse.de>
8285
8286 PR gdb/24445
8287 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8288
431b3ead
TT
82892019-06-16 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8292 (make_all_visible): Use address of member.
8293
d04b44a1
TT
82942019-06-16 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8297 (tui_free_window, free_content, free_content_elements): Remove
8298 unnecessary cast.
8299 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8300 cast.
8301 * tui/tui-regs.c (tui_show_register_group)
8302 (tui_display_registers_from, tui_display_reg_element_at_line):
8303 Remove unnecessary cast.
8304
bf5142e7
AB
83052019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8306
8307 * linux-nat.c (normal_mask): Delete.
8308 (_initialize_linux_nat): Don't initialise normal_mask.
8309
c4973306
SM
83102019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8311
8312 PR gdb/24445
8313 * dwarf-index-write.h (write_psymtabs_to_index): Add
8314 dwz_basename parameter.
8315 * dwarf-index-write.c (write_gdbindex): Move file writing to
8316 write_gdbindex_1. Change return type void.
8317 (assert_file_size): Move up, remove filename parameter.
8318 (write_gdbindex_1): New function.
8319 (write_debug_names): Change return type to void, call
8320 assert_file_size.
8321 (struct index_wip_file): New struct.
8322 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8323 file logic to index_wip_file. Write index for dwz file if
8324 needed.
8325 (save_gdb_index_command): Pass basename of dwz file, if present.
8326 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8327 build-id of dwz file, if present.
8328 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8329 (dwarf2_get_dwz_file): Likewise.
8330 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8331 (dwarf2_get_dwz_file): Likewise.
8332
395f9c91
TT
83332019-06-16 Tom Tromey <tom@tromey.com>
8334
8335 * coffread.c (process_coff_symbol): Use xstrdup.
8336 * value.c (create_internalvar): Use xstrdup.
8337
cafb3438
TT
83382019-06-16 Tom Tromey <tom@tromey.com>
8339
8340 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8341 * breakpoint.c (stopin_command, stopat_command)
8342 (until_break_command, decode_location_default): Remove unnecessary
8343 cast.
8344 * utils.c (subset_compare): Remove unnecessary cast.
8345 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8346 cast.
8347 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8348 cast.
8349 * infcmd.c (path_command): Remove unnecessary cast.
8350 * coffread.c (decode_type): Remove unnecessary cast.
8351 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8352 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8353 * tui/tui-stack.c (tui_show_locator_content)
8354 (tui_show_frame_info): Remove unnecessary cast.
8355 * tui/tui-win.c (tui_scroll_forward_command)
8356 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8357 (parse_scrolling_args): Remove unnecessary cast.
8358 * tui/tui-data.c (init_win_info, tui_del_window)
8359 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8360 (free_content_elements): Remove unnecessary cast.
8361 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8362 unnecessary cast.
8363 * tui/tui-source.c (tui_set_source_content)
8364 (tui_vertical_source_scroll): Remove unnecessary cast.
8365 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8366 cast.
8367 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8368 * tui/tui-regs.c (tui_display_registers_from)
8369 (tui_display_register): Remove unnecessary cast.
8370 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8371 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8372 (make_visible): Remove unnecessary cast.
8373 * tui/tui-winsource.c (tui_erase_source_content)
8374 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8375 unnecessary cast.
8376 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8377 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8378 * stabsread.c (read_type, read_array_type, read_range_type):
8379 Remove unnecessary cast.
8380 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8381 (parse_symbol, parse_type, upgrade_type, parse_external)
8382 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8383 unnecessary cast.
8384 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8385
730ead81
TT
83862019-06-16 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-data.c (tui_alloc_generic_win_info)
8389 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8390 checks.
8391
584a927c
AB
83922019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8393 Andrew Burgess <andrew.burgess@embecosm.com>
8394
8395 * f-typeprint.c (f_print_type): Don't return early for not
8396 associated or not allocated types.
8397 (f_type_print_varspec_suffix): Add print_rank parameter and print
8398 ranks of array types in case they dangling.
8399 (f_type_print_base): Add print_rank parameter.
8400
30056ea0
AB
84012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * NEWS: Mention new MI commands.
8404 * break-catch-throw.c (enum exception_event_kind): Move to
8405 breakpoint.h.
8406 (print_mention_exception_catchpoint): Output text as a single
8407 message.
8408 (catch_exception_command_1): Rename to...
8409 (catch_exception_event): ...this, make non-static, update header
8410 command, and change some parameter types.
8411 (catch_catch_command): Update for changes to
8412 catch_exception_command_1.
8413 (catch_throw_command): Likewise.
8414 (catch_rethrow_command): Likewise.
8415 * breakpoint.c (enum exception_event_kind): Delete.
8416 * breakpoint.h (enum exception_event_kind): Moved here from
8417 break-catch-throw.c.
8418 (catch_exception_event): Declare.
8419 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8420 (mi_cmd_catch_throw): New function.
8421 (mi_cmd_catch_rethrow): New function.
8422 (mi_cmd_catch_catch): New function.
8423 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8424 'catch-catch' entries.
8425 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8426 (mi_cmd_catch_rethrow): Declare.
8427 (mi_cmd_catch_catch): Declare.
8428
ec8e2b6d
AB
84292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8430
8431 * annotate.c (annotate_source_line): Change return type to void,
8432 update implementation to match.
8433 * annotate.h (annotate_source_line): Change return type to void,
8434 update header comment.
8435 * stack.c (print_frame_info): Don't change what frame information
8436 is printed based on whether annotations are on or not.
8437
0d3abd8c
AB
84382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8441 (annotate_source): Make static.
8442 (annotate_source_line): Moved from source.c and renamed from
8443 identify_source_line. Update the return type.
8444 * annotate.h (annotate_source): Delete declaration.
8445 (annotate_source_line): Declaration moved from source.h, and
8446 renamed from identify_source_line. Return type updated.
8447 * source.c (identify_source_line): Moved to annotate.c and renamed
8448 to annotate_source_line.
8449 (info_line_command): Remove check of annotation_level.
8450 * source.h (identify_source_line): Move declaration to annotate.h
8451 and rename to annotate_source_line.
8452 * stack.c: Add 'annotate.h' include.
8453 (print_frame_info): Remove check of annotation_level before
8454 calling annotate_source_line.
8455
00df30ae
AB
84562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * source-cache.c (source_cache::get_plain_source_lines): Use
8459 open_source_file_with_line_charpos instead of just
8460 open_source_file, remove call to find_source_lines.
8461 (source_cache::get_source_lines): Likewise.
8462 * source.c (find_source_lines): Make static.
8463 (get_filename_and_charpos): Renamed into...
8464 (open_source_file_with_line_charpos): ..this along with changes to
8465 return a scoped_fd, and some other minor clean ups.
8466 (identify_source_line): Use open_source_file_with_line_charpos.
8467 (search_command_helper): Use open_source_file_with_line_charpos
8468 instead of just open_source_file, remove call to
8469 find_source_lines.
8470 * source.h (open_source_file_with_line_charpos): Declare new
8471 function.
8472 (find_source_lines): Delete declaration.
8473
afda45a2
AB
84742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8475
8476 * source.c (get_filename_and_charpos): Remove fullname
8477 parameter.
8478 (identify_source_line): Update call to get_filename_and_charpos.
8479
0735b091
TT
84802019-06-14 Tom Tromey <tromey@adacore.com>
8481
8482 PR gdb/24502:
8483 * ui-style.h (skip_ansi_escape): Update comment.
8484 * ui-file.h (class no_terminal_escape_file): New class.
8485 * ui-file.c (no_terminal_escape_file::write)
8486 (no_terminal_escape_file::puts): New methods.
8487 * cli/cli-logging.c (handle_redirections): Use
8488 no_terminal_escape_file.
8489
52ce35e2
TT
84902019-06-14 Tom Tromey <tromey@adacore.com>
8491
8492 * NEWS: Move convenience variable news above Python news.
8493
73cc7272
TT
84942019-06-14 Tom Tromey <tom@tromey.com>
8495
8496 * gnulib: Move directory to top-level.
8497 * configure.ac: Don't configure gnulib.
8498 * configure: Rebuild.
8499 * common/common-defs.h: Use new path to gnulib.
8500 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8501 (GNULIB_H): Remove.
8502 (INCGNU): Look in new gnulib location.
8503 (HFILES_NO_SRCDIR): Remove gnulib files.
8504 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8505 (generated_files): Remove GNULIB_H.
8506 ($(LIBGNU), all-lib): Remove targets.
8507 (distclean): Don't mention GNULIB_BUILDDIR.
8508 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8509
f5686554
TT
85102019-06-14 Tom Tromey <tromey@adacore.com>
8511
8512 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8513 Warn if symbol file does not provide any symbols.
8514
a0c1ffed
TT
85152019-06-14 Tom Tromey <tromey@adacore.com>
8516
8517 * source.c (find_and_open_source): Respect basenames_may_differ.
8518
7c39e397
AB
85192019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 * annotate.c (annotate_breakpoints_invalid): Make use of
8522 scoped_restore_terminal_state.
8523 (annotate_frames_invalid): Likewise.
8524
f411722c
TT
85252019-06-14 Tom Tromey <tromey@adacore.com>
8526
8527 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8528 allow assignment to an internalvar.
8529
4268ec18
TT
85302019-06-14 Tom Tromey <tromey@adacore.com>
8531
8532 * ada-lex.l: Allow "_" in attribute names.
8533
abdb711e
TT
85342019-06-14 Tom Tromey <tromey@adacore.com>
8535
8536 PR gdb/24653:
8537 * regcache.c (registers_changed): Don't call alloca.
8538 * top.c (execute_command): Don't call alloca.
8539
4c048731
PA
85402019-06-13 Pedro Alves <palves@redhat.com>
8541
8542 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8543 'expression'. When parsing an expression, error out if there's
8544 junk after "unlimited".
8545 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8546 (do_set_command): Adjust calls to is_unlimited_literal.
8547
66eb1ed3
PA
85482019-06-13 Pedro Alves <palves@redhat.com>
8549
8550 * compile/compile.c (make_compile_options_def_group): Add braces
8551 around array_view initializer.
8552 * thread.c (make_thread_apply_all_options_def_group)
8553 (make_thread_apply_all_options_def_group): Likewise.
8554
3345721a
PA
85552019-06-13 Pedro Alves <palves@redhat.com>
8556
8557 * NEWS (New commands): Mention "maint test-options
8558 require-delimiter", "maint test-options unknown-is-error", "maint
8559 test-options unknown-is-operand" and "maint show
8560 test-options-completion-result".
8561 (New command options, command completion): New section.
8562 (Completion improvements): New section.
8563 Mention that you can abbreviate "unlimited".
8564
6206060d
PA
85652019-06-13 Pedro Alves <palves@redhat.com>
8566
8567 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8568 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8569 * unittests/cli-utils-selftests.c (test_parse_flags)
8570 (test_parse_flags_qcs): Delete.
8571 (test_cli_utils): Don't call deleted functions.
8572
6665660a
PA
85732019-06-13 Pedro Alves <palves@redhat.com>
8574
8575 * thread.c: Include "cli/cli-option.h".
8576 (tp_array_compar_ascending): Global.
8577 (tp_array_compar): Delete function.
8578 (tp_array_compar_ascending, tp_array_compar_descending): New
8579 functions.
8580 (ascending_option_def, qcs_flag_option_def)
8581 (thr_qcs_flags_option_defs)
8582 (make_thread_apply_all_options_def_group)
8583 (make_thread_apply_options_def_group): New.
8584 (thread_apply_all_command): Use gdb::option::process_options.
8585 (thread_apply_command_completer)
8586 (thread_apply_all_command_completer): New.
8587 (thread_apply_command): Use gdb::option::process_options.
8588 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8589 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8590 to generate help text of "thread apply". Adjust "taas"'s help.
8591 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8592 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8593
f7e13587
PA
85942019-06-13 Pedro Alves <palves@redhat.com>
8595
8596 * thread.c (thread_apply_command): Check for invalid TID with
8597 isdigit instead of !isalpha.
8598
5d707134
PA
85992019-06-13 Pedro Alves <palves@redhat.com>
8600
8601 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8602 (validate_flags_qcs): New.
8603 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8604 (validate_flags_qcs): Declare.
8605 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8606 (make_frame_apply_options_def_group): New.
8607 (frame_apply_command_count): Process options with
8608 gdb::option::process_options.
8609 (frame_apply_completer): New.
8610 (frame_apply_level_completer, frame_apply_all_completer)
8611 (frame_apply_completer): New.
8612 (_initialize_stack): Update help of "frame apply", "frame apply
8613 level", "frame apply all" and "faas" to mention supported options
8614 and install command completers.
8615 * stack.h (frame_apply_all_completer): Declare.
8616 * thread.c: Include "stack.h".
8617 (tfaas_command): Add "--".
8618 (_initialize_thread): Update help "tfaas" to mention supported
8619 options and install command completer.
8620
272d4594
PA
86212019-06-13 Pedro Alves <palves@redhat.com>
8622
8623 * completer.c (complete_nested_command_line): New.
8624 (gdb_completion_word_break_characters_throw): Add assertion.
8625 * completer.h (complete_nested_command_line): Declare.
8626
90a1ef87
PA
86272019-06-13 Pedro Alves <palves@redhat.com>
8628
8629 * stack.c (parse_backtrace_qualifiers): New.
8630 (backtrace_command): Use it.
8631 (backtrace_command_completer): Complete on qualifiers.
8632
d4c16835
PA
86332019-06-13 Pedro Alves <palves@redhat.com>
8634
8635 * frame.c: Include "cli/cli-option.h.
8636 (user_set_backtrace_options): New.
8637 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8638 Delete.
8639 (get_prev_frame): Adjust.
8640 (boolean_option_def, uinteger_option_def)
8641 (set_backtrace_option_defs): New.
8642 (_initialize_frame): Adjust and use
8643 gdb::option::add_setshow_cmds_for_options to install "set
8644 backtrace past-main" and "set backtrace past-entry".
8645 * frame.h: Include "cli/cli-option.h".
8646 (struct frame_print_options): Forward declare.
8647 (print_frame_arguments_all, print_frame_arguments_scalars)
8648 (print_frame_arguments_none): Declare.
8649 (print_entry_values): Delete declaration.
8650 (struct frame_print_options, user_frame_print_options): New.
8651 (struct set_backtrace_options): New.
8652 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8653 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8654 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8655 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8656 (list_args_or_locals): Add frame_print_options parameter.
8657 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8658 * python/py-framefilter.c (enumerate_args): Pass down
8659 USER_FRAME_PRINT_OPTIONS.
8660 * stack.c: Include "cli/cli-option.h".
8661 (print_frame_arguments_all, print_frame_arguments_scalars)
8662 (print_frame_arguments_none): Declare.
8663 (print_raw_frame_arguments, print_entry_values): Delete.
8664 (user_frame_print_options): New.
8665 (boolean_option_def, enum_option_def, frame_print_option_defs):
8666 New.
8667 (struct backtrace_cmd_options): New.
8668 (bt_flag_option_def): New.
8669 (backtrace_command_option_defs): New.
8670 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8671 (print_frame_arg, read_frame_arg, print_frame_args)
8672 (print_frame_info, print_frame): Add frame_print_options parameter
8673 and use it.
8674 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8675 (backtrace_command_1): Add frame_print_options and
8676 backtrace_cmd_options parameters and use them.
8677 (make_backtrace_options_def_group): New.
8678 (backtrace_command): Process command options with
8679 gdb::option::process_options.
8680 (backtrace_command_completer): New.
8681 (_initialize_stack): Extend "backtrace"'s help to mention
8682 supported options. Install completer for "backtrace".
8683 Install some settings commands with add_setshow_cmds_for_options.
8684
2daf894e
PA
86852019-06-13 Pedro Alves <palves@redhat.com>
8686
8687 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8688 and that "set/show print raw frame-arguments" are now deprecated.
8689
8690 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8691 command.
8692 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8693 * stack.c (_initialize_stack): Install "set/show print
8694 raw-frame-arguments", and deprecate "set/show print raw
8695 frame-arguments".
8696 * valprint.c (_initialize_valprint): Deprecate "set/show print
8697 raw".
8698
e6ed716c
PA
86992019-06-13 Pedro Alves <palves@redhat.com>
8700
8701 * compile/compile.c (struct compile_options): New.
8702 (compile_flag_option_def, compile_command_option_defs)
8703 (make_compile_options_def_group): New.
8704 (compile_file_command): Handle options with
8705 gdb::option::process_options.
8706 (compile_file_command_completer): New function.
8707 (compile_code_command): Handle options with
8708 gdb::option::process_options.
8709 (compile_code_command_completer): New function.
8710 (_initialize_compiler): Install completers for "compile code" and
8711 "compile file". Mention available options in "compile code" and
8712 "compile code"'s help.
8713 * completer.c (advance_to_completion_word): New, factored out from
8714 ...
8715 (advance_to_expression_complete_word_point): ... this.
8716 (advance_to_filename_complete_word_point): New.
8717 * completer.h (advance_to_filename_complete_word_point): New
8718 declaration.
8719
7d8062de
PA
87202019-06-13 Pedro Alves <palves@redhat.com>
8721
8722 * compile/compile.c: Include "cli/cli-option.h".
8723 (compile_print_value): Scope data pointer is now a
8724 value_print_options pointer; adjust.
8725 (compile_print_command): Process options. Scope data pointer is
8726 now a value_print_options pointer; adjust.
8727 (_initialize_compile): Update "compile print"'s help to include
8728 supported options. Install a completer for "compile print".
8729 * cp-valprint.c (show_vtblprint, show_objectprint)
8730 (show_static_field_print): Delete.
8731 (_initialize_cp_valprint): Don't install "set print
8732 static-members", "set print vtbl", "set print object" here.
8733 * printcmd.c: Include "cli/cli-option.h" and
8734 "common/gdb_optional.h".
8735 (print_command_parse_format): Rework to fill in a
8736 value_print_options instead of a format_data.
8737 (print_value): Change parameter type from format_data pointer to
8738 value_print_options reference. Adjust.
8739 (print_command_1): Process options. Adjust to pass down a
8740 value_print_options.
8741 (print_command_completer): New.
8742 (_initialize_printcmd): Install print_command_completer as
8743 handle_brkchars completer for the "print" command. Update
8744 "print"'s help to include supported options.
8745 * valprint.c: Include "cli/cli-option.h".
8746 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8747 here from cp-valprint.c.
8748 (boolean_option_def, uinteger_option_def)
8749 (value_print_option_defs, make_value_print_options_def_group):
8750 New. Use gdb::option::add_setshow_cmds_for_options to install
8751 "set print elements", "set print null-stop", "set print repeats",
8752 "set print pretty", "set print union", "set print array", "set
8753 print address", "set print symbol", "set print array-indexes".
8754 * valprint.h: Include <string> and "cli/cli-option.h".
8755 (make_value_print_options_def_group): Declare.
8756 (print_value): Change parameter type from format_data pointer to
8757 value_print_options reference.
8758 (print_command_completer): Declare.
8759
9d0faba9
PA
87602019-06-13 Pedro Alves <palves@redhat.com>
8761
8762 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8763 (COMMON_SFILES): Add maint-test-settings.c.
8764 * cli/cli-decode.c (boolean_enums): New global, factored out from
8765 ...
8766 (add_setshow_boolean_cmd): ... here.
8767 * cli/cli-decode.h (boolean_enums): Declare.
8768 * cli/cli-option.c: New file.
8769 * cli/cli-option.h: New file.
8770 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8771 factored out from ...
8772 (parse_cli_boolean_value(const char *)): ... this.
8773 (is_unlimited_literal): Change parameter type to pointer to
8774 pointer. Adjust and advance ARG pointer.
8775 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8776 (parse_cli_var_enum): New, factored out from ...
8777 (do_set_command): ... this. Adjust.
8778 * cli/cli-setshow.h (parse_cli_boolean_value)
8779 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8780 (parse_cli_var_enum): Declare.
8781 * cli/cli-utils.c: Include "cli/cli-option.h".
8782 (get_ulongest): New.
8783 * cli/cli-utils.h (get_ulongest): Declare.
8784 (check_for_argument): New overloads.
8785 * maint-test-options.c: New file.
8786
2c722807
PA
87872019-06-13 Pedro Alves <palves@redhat.com>
8788
8789 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8790 parse a range if "-" is at the end of the string.
8791
dee7b4c8
PA
87922019-06-13 Pedro Alves <palves@redhat.com>
8793
8794 * cli/cli-setshow.c (parse_auto_binary_operation)
8795 (parse_cli_boolean_value): Don't allow "o".
8796
dca0f6c0
PA
87972019-06-13 Pedro Alves <palves@redhat.com>
8798
8799 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8800 * NEWS: Mention maint test-settings KIND.
8801 * maint-test-settings.c: New file.
8802
597bf39d
PA
88032019-06-13 Pedro Alves <palves@redhat.com>
8804
8805 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8806 completer.
8807 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8808 "set" completers.
8809
48c410fb
PA
88102019-06-13 Pedro Alves <palves@redhat.com>
8811
8812 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8813 after item.
8814
93bcb043
PA
88152019-06-13 Pedro Alves <palves@redhat.com>
8816
8817 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8818
cbba3ecd
PA
88192019-06-13 Pedro Alves <palves@redhat.com>
8820
8821 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8822 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8823 call.
8824 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8825 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8826 calls.
8827 (check_for_argument): Skip spaces after argument.
8828
b9a3f842
PA
88292019-06-13 Pedro Alves <palves@redhat.com>
8830
8831 * thread.c (thread_apply_command): Adjust TID parsing.
8832 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8833 detected before end of string.
8834 (tid_is_in_list): Error out if LIST is invalid.
8835
3844e605
PA
88362019-06-13 Pedro Alves <palves@redhat.com>
8837
8838 * completer.c (complete_line_internal_1): Rewind completion word
8839 point.
8840 (completion_tracker::advance_custom_word_point_by): Change
8841 parameter type to int.
8842 * completer.h (completion_tracker::advance_custom_word_point_by):
8843 Likewise.
8844
00b56dbe
PA
88452019-06-13 Pedro Alves <palves@redhat.com>
8846
8847 * completer.c (advance_to_completion_word): Handle delimiters.
8848
d106773e
PA
88492019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8850
8851 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8852
08f10e02
TT
88532019-06-11 Tom Tromey <tom@tromey.com>
8854
8855 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8856 (xmalloc_failed): Move to alloc.c.
8857 * alloc.c: New file.
8858 * Makefile.in (COMMON_SFILES): Add alloc.c.
8859
1c7fe951
TT
88602019-06-11 Tom Tromey <tom@tromey.com>
8861
8862 * nat/linux-waitpid.c: Don't include server.h.
8863 (linux_debug): Remove.
8864 (my_waitpid): Update.
8865
89549d7f
TT
88662019-06-11 Tom Tromey <tromey@adacore.com>
8867
8868 * infcall.c (_initialize_infcall): Remove trailing newline from
8869 help.
8870 * user-regs.c (_initialize_user_regs): Remove trailing newline
8871 from help.
8872 * typeprint.c (_initialize_typeprint): Remove trailing newline
8873 from help.
8874 * reverse.c (_initialize_reverse): Remove trailing newlines from
8875 help.
8876 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8877 from help.
8878 * language.c (add_set_language_command): Remove trailing newline
8879 from help.
8880 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8881 help.
8882 * disasm.c (_initialize_disasm): Remove trailing newline from
8883 help.
8884 * top.c (init_main): Remove trailing newline from help.
8885 * interps.c (_initialize_interpreter): Remove trailing newline
8886 from help.
8887 * btrace.c (_initialize_btrace): Remove trailing newlines from
8888 help.
8889 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8890 from help.
8891 * python/python.c (_initialize_python): Remove trailing newline
8892 from help.
8893 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8894 help.
8895 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8896 from help. Reformat some text.
8897 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8898 from help.
8899 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8900 newline from help.
8901
86108c13
TT
89022019-06-11 Tom Tromey <tromey@adacore.com>
8903
8904 * darwin-nat.c (darwin_decode_exception_message)
8905 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8906
a7067863
AB
89072019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * valops.c (value_slice): Check for not allocated or not
8910 associated values.
8911
9ab08412
TV
89122019-06-10 Tom de Vries <tdevries@suse.de>
8913
8914 PR gdb/24618
8915 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8916 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8917 invalid.
8918
f19e22e9
TV
89192019-06-10 Tom de Vries <tdevries@suse.de>
8920
8921 PR gdb/24611
8922 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8923 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8924
e99f9db0
TV
89252019-06-10 Tom de Vries <tdevries@suse.de>
8926
8927 PR symtab/24545
8928 * symtab.c (struct demangled_name_entry): Add language field.
8929 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8930 static minimal symbol". Set and use language field.
8931
9bf7038b
TT
89322019-06-10 Tom Tromey <tromey@adacore.com>
8933
8934 * ada-lang.c (_initialize_ada_language): Update help text.
8935
422186a9
TT
89362019-06-10 Tom Tromey <tromey@adacore.com>
8937
8938 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8939 with a newline.
8940 * guile/guile.c (handle_boot_error): Don't end warning with a
8941 newline.
8942 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8943 warning with a newline.
8944 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8945 newline.
8946 (s12z_frame_cache): Likewise.
8947 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8948 a newline.
8949 * solib-svr4.c (disable_probes_interface): Don't end warning with
8950 a newline.
8951 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8952 newline.
8953 * python/python.c (do_finish_initialization): Don't end warning
8954 with a newline.
8955
25ce02ee
TT
89562019-06-10 Tom Tromey <tom@tromey.com>
8957
8958 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8959 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8960 gdbpy_enter.
8961
caa429d8
TT
89622019-06-10 Tom Tromey <tromey@adacore.com>
8963
8964 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8965 data.
8966 (elf_new_init): Don't call stabsread_new_init.
8967 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8968 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8969 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8970
81873cc8
TV
89712019-06-10 Tom de Vries <tdevries@suse.de>
8972
8973 PR symtab/16264
8974 PR symtab/24517
8975 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8976
4fa0265e
РИ
89772019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8978
8979 * source.c (find_and_open_source): Also rewrite relative file
8980 names.
8981
1a3da2cd
AB
89822019-04-26 Amos Bird <amosbird@gmail.com>
8983
8984 * annotate.c (annotate_thread_exited): Add "thread-exited"
8985 annotation.
8986
3847a7bf
TT
89872019-06-06 Tom Tromey <tromey@adacore.com>
8988
8989 * maint.h (class scoped_command_stats): Use
8990 DISABLE_COPY_AND_ASSIGN.
8991 <print_time>: New method.
8992 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8993 print_time.
8994 (scoped_command_stats::print_time): New method.
8995
312617a3
AB
89962019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8999 instructions of lengths 6 or 8 bytes.
9000
b02f78f9
PA
90012019-06-04 Pedro Alves <palves@redhat.com>
9002
9003 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9004
9005 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9006 * breakpoint.c (condition_completer): Likewise.
9007 * cli/cli-dump.c (scan_expression): Likewise.
9008 * common/filestuff.c (mkdir_recursive): Likewise.
9009 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9010 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9011 (gdb_abspath): Likewise.
9012 * compile/compile-cplus-types.c
9013 (compile_cplus_instance::decl_name): Likewise.
9014 * completer.c (complete_explicit_location):
9015 (signal_completer, reg_or_group_completer_1): Likewise.
9016 * cp-support.c (cp_remove_params_if_any): Likewise.
9017 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9018 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9019 * infcmd.c (strip_bg_char): Likewise.
9020 * linespec.c (copy_token_string): Likewise.
9021 * mi/mi-main.c (output_cores): Likewise.
9022 * psymtab.c (psymtab_search_name):
9023 * symfile.c (test_set_ext_lang_command): Likewise.
9024 * target.c (target_fileio_read_stralloc): Likewise.
9025 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9026 * value.c (complete_internalvar): Likewise.
9027
e1f2e1a2
CB
90282019-06-04 Christian Biesinger <cbiesinger@google.com>
9029
9030 Add objfile property to gdb.Type.
d3238f7d
PA
9031 * NEWS: Mention Python API addition.
9032 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9033
e664d728
PW
90342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9035
9036 * NEWS: Mention the new set|show style [title|highlight].
9037 Mention changes to "show style", "help" and "apropos".
9038
66d8c862
PW
90392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9040
9041 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9042 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9043 instead of print_help_for_command.
9044 (print_doc_of_command): New function.
9045 (help_list): Add 'apropos -v word' suggestion.
9046 (print_help_for_command): Style the command name using title style.
9047 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9048 (_initialize_cli_cmds): Describe -v in apropos_command help.
9049
9303eb2f
PW
90502019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9051
9052 * cli/cli-style.h (cli_style_option): Add name in constructor,
9053 add m_name class member, add constructor with intensity,
9054 add name class function.
9055 (cli_style_option::add_setshow_commands): Remove name argument.
9056 (highlight_style, title_style): New styles.
9057 * cli/cli-style.c (do_show): New function that shows a style
9058 characteristic styling the style name with itself.
9059 (set_style_name): New function.
9060 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9061 Update all callers according to the changes in cli/cli-style.h.
9062 * utils.h (fputs_highlighted): New function.
9063 * utils.c (fputs_highlighted): Likewise.
9064
e2c52041
PW
90652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9066
9067 * NEWS: Mention new pipe command and new convenience variables.
9068
947d3946
PW
90692019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9070
9071 * cli/cli-cmds.c (pipe_command): New function.
9072 (_initialize_cli_cmds): Call add_com for pipe_command.
9073 Define | as an alias for pipe.
9074 (exit_status_set_internal_vars): New function.
9075 (shell_escape): Call exit_status_set_internal_vars.
9076 cli/cli-decode.c (find_command_name_length): Recognize | as
9077 a single character command.
9078
b8fd0918
PW
90792019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9080
9081 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9082 top.c (execute_command_to_ui_file): New function, mostly a copy
9083 of execute_command_to_string.
9084 (execute_command_to_string): Implement by calling
9085 execute_command_to_ui_file.
9086
68bb5386
PW
90872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9088
9089 * top.h (saved_command_line): Remove declaration.
9090 * top.c (previous_saved_command_line, previous_repeat_arguments):
9091 New variables.
9092 (saved_command_line): Make static, define together with other
9093 'repeat variables'.
9094 (dont_repeat): Clear repeat_arguments.
9095 (repeat_previous, get_saved_command_line, save_command_line):
9096 New functions.
9097 (gdb_init): Initialize saved_command_line
9098 and previous_saved_command_line.
9099 * main.c (captured_main_1): Remove saved_command_line initialization.
9100 * event-top.c (handle_line_of_input): Update to use
9101 the new 'repeat' related functions instead of direct access to
9102 saved_command_line.
9103 * command.h (repeat_previous, get_saved_command_line,
9104 save_command_line): New declarations.
9105 (dont_repeat): Add comment.
9106
bfcdb852
TT
91072019-05-30 Tom Tromey <tromey@adacore.com>
9108
9109 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9110 Fix comment.
9111 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9112
0ef209f2
JV
91132019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9114
9115 PR cli/24587
9116 * completer.c (complete): Initialize variable word.
9117
955b06fa
SDJ
91182019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9119
9120 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9121 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9122 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9123 'body' is NULL to the outter 'if', protecting the '!is_define'
9124 situation as well.
9125
fa9c3fa0
TT
91262019-05-29 Tom Tromey <tromey@adacore.com>
9127
9128 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9129 (dwarf_unknown): New function.
9130 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9131 (dwarf_type_encoding_name): Use dwarf_unknown.
9132
4330d61d
TT
91332019-05-29 Tom Tromey <tromey@adacore.com>
9134
9135 PR c++/20020:
9136 * cp-valprint.c (cp_print_value_fields): Call
9137 cp_print_static_field inside "try".
9138
33a6bc35
TT
91392019-05-29 Tom Tromey <tromey@adacore.com>
9140
9141 * inflow.c (struct terminal_info): Add default operator=.
9142 * configure: Rebuild.
9143 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9144 -Wdeprecated-copy-dtor, -Wredundant-move.
9145
000439d5
TT
91462019-05-29 Tom Tromey <tromey@adacore.com>
9147
9148 * NEWS: Add entry.
9149 * infcmd.c (print_return_value_1): Handle finish_print
9150 option.
9151 (show_print_finish): New function.
9152 (_initialize_infcmd): Add "set/show print finish" commands.
9153 * valprint.c (user_print_options): Initialize new member.
9154 * valprint.h (struct value_print_options) <finish_print>: New
9155 member.
9156
c0e70c62
TT
91572019-05-28 Tom Tromey <tromey@adacore.com>
9158
9159 * ada-lang.c (ada_remove_Xbn_suffix)
9160 (find_old_style_renaming_symbol)
9161 (parse_old_style_renaming): Remove.
9162 (ada_find_renaming_symbol): Don't call
9163 find_old_style_renaming_symbol.
9164 (ada_is_renaming_symbol): Rename from
9165 ada_find_renaming_symbol. Remove "block" parameter. Return
9166 bool. Now static.
9167 (ada_read_var_value): Update and simplify.
9168 * ada-exp.y (write_var_or_type): Remove old code.
9169
766f8836
AH
91702019-05-28 Alan Hayward <alan.hayward@arm.com>
9171
68255adc 9172 PR gdb/25010
766f8836
AH
9173 * event-top.c: Remove include comment.
9174 * inflow.c (class scoped_ignore_sigttou): Move from here...
9175 * inflow.h (class scoped_ignore_sigttou): ...to here.
9176 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9177 * top.c: Remove include comment.
9178
eb41253a
TT
91792019-05-27 Tom Tromey <tom@tromey.com>
9180
9181 * NEWS: Fix typo.
9182
4ca51187
TT
91832019-05-22 Tom Tromey <tromey@adacore.com>
9184
9185 * target.c (target_follow_exec): Constify parameter.
9186 * target-delegates.c: Rebuild.
9187 * remote.c (remote_target::follow_exec): Constify parameter.
9188 * infrun.c (follow_exec): Constify parameter.
9189 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9190 (target_follow_exec): Likewise.
9191
8fca4da0
AH
91922019-05-22 Alan Hayward <alan.hayward@arm.com>
9193
9194 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9195 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9196
b7060614
AH
91972019-05-22 Alan Hayward <alan.hayward@arm.com>
9198
9199 * NEWS: Add debugredirect and testsuite sections.
9200
0a5954bd
SC
92012019-05-22 Simon Cook <simon.cook@embecosm.com>
9202
9203 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9204 target descriptions using exclusively floating point register name
9205 aliases.
9206
dc42e902
AB
92072019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 PR gdb/18644:
9210 * f-lang.c (build_fortran_types): Handle the case where
9211 gdbarch_floatformat_for_type returns a nullptr.
9212
fb7806c7
TV
92132019-05-21 Tom de Vries <tdevries@suse.de>
9214
9215 PR cli/24587
9216 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9217
34d11c68
AB
92182019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9219
9220 PR gdb/18644:
9221 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9222 16-byte floats.
9223 * i386-tdep.c (i386_floatformat_for_type): Use
9224 floatformats_ia64_quad for the 16-byte floating point component
9225 within a fortran 32-byte complex number.
9226
122cf0f2
AB
92272019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9228
9229 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9230 delete default constructor.
9231 (find_partial_die): Update to return const struct.
9232 (partial_die_parent_scope): Move variable declaration into scope
9233 of its use and change its type to auto.
9234 (guess_partial_die_structure_name): Likewise.
9235 (partial_die_info::fixup): Likewise.
9236
33d0e35a
TT
92372019-05-17 Tom Tromey <tromey@adacore.com>
9238
9239 * source.c (find_and_open_source): Remove cast.
9240
a45575b0
TT
92412019-05-17 Tom Tromey <tromey@adacore.com>
9242
9243 * annotate.c (annotate_source): Make "filename" const.
9244 * annotate.h (annotate_source): Use const.
9245
81f47ac2
AH
92462019-05-17 Alan Hayward <alan.hayward@arm.com>
9247
9248 * disasm.c (set_disassembler_options): Send errors to stderr.
9249
ca1285d1
AH
92502019-05-17 Alan Hayward <alan.hayward@arm.com>
9251
9252 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9253 (cli_interp_base::set_logging): Check debug_redirect.
9254 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9255 * cli/cli-logging.c (debug_redirect): Add static variable.
9256 (pop_output_files): Add default param.
9257 (handle_redirections): Print debug setting.
9258 (show_logging_command): Likewise.
9259 (_initialize_cli_logging): Add debugredirect command.
9260 * interps.c (current_interp_set_logging): Add debug_redirect
9261 parameter.
9262 * interps.h (set_logging): Add debug_redirect parameter.
9263 (current_interp_set_logging): Likewise.
9264 * mi/mi-common.h: Likewise.
9265 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9266
92672019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9268 Tom Tromey <tromey@adacore.com>
9269
9270 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9271 directly.
9272 * cli/cli-interp.h (make_logging_output): Remove declaration.
9273 * cli/cli-logging.c (make_logging_output): Remove function.
9274 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9275 directly.
9276 * ui-file.c (tee_file::tee_file): Remove bools.
9277 (tee_file::~tee_file): Remove deletes.
9278 * ui-file.h (tee_file): Remove bools.
9279
26648588
JV
92802019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9281
9282 * mi/mi-cmds.h (mi_cmd_complete): New function.
9283 * mi/mi-main.c (mi_cmd_complete): Likewise.
9284 * mi/mi-cmds.c: Define new MI command -complete.
9285 * NEWS: Mention new -complete command.
9286
6e035501
JV
92872019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9288
9289 * completer.h (complete): New function.
9290 * completer.c (complete): Likewise.
9291 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9292 function defined in completer.h.
9293
7d0e2ece
JV
92942019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9295
e79be6e5 9296 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9297
fb816e8b
TV
92982019-05-17 Tom de Vries <tdevries@suse.de>
9299
9300 PR gdb/24094
9301 * dwarf2read.c (struct cu_partial_die_info): New struct.
9302 (find_partial_die): Return cu_partial_die_info.
9303 (partial_die_parent_scope, guess_partial_die_structure_name)
9304 (partial_die_info::fixup): Handle new return type of find_partial_die.
9305
677052f2
SDJ
93062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9307
a1726c38 9308 PR breakpoints/24541
677052f2
SDJ
9309 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9310 "std::string", simplifying the algorithm.
9311
f3da9116
SDJ
93122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9313
9314 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9315 (stap_static_probe_ops::get_probes): Likewise.
9316
f1bb75ab
SDJ
93172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9318
9319 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9320 '-')" and "else if".
9321 (stap_parse_single_operand): Join checks for
9322 "gdbarch_stap_parse_special_token_p" and
9323 "gdbarch_stap_parse_special_token" in the same "if" statement.
9324 Invert check when verifying for operation on register
9325 displacement.
9326
3ca58cde
SDJ
93272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9328
9329 * stap-probe.c (stap_get_opcode): Update comment.
9330 (stap_get_expected_argument_type): Likewise.
9331 (handle_stap_probe): Likewise.
9332
af2d9bee
SDJ
93332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9334
9335 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9336 return type to 'bool'. Adjust comment. Use 'bool' when
9337 appropriate.
9338 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9339 * stap-probe.c (stap_parse_argument_1): Likewise.
9340 (stap_is_operator): Likewise.
9341 (stap_is_generic_prefix): Likewise.
9342 (stap_is_register_prefix): Likewise.
9343 (stap_is_register_indirection_prefix): Likewise.
9344 (stap_is_integer_prefix): Likewise.
9345 (stap_generic_check_suffix): Likewise.
9346 (stap_check_integer_suffix): Likewise.
9347 (stap_check_register_suffix): Likewise.
9348 (stap_check_register_indirection_suffix): Likewise.
9349 (stap_parse_register_operand): Likewise.
9350 (stap_parse_single_operand): Likewise.
9351 (stap_parse_argument_1): Likewise.
9352 (stap_probe::get_argument_count): Likewise.
9353 (stap_is_operator): Likewise.
9354
61c9c421
TT
93552019-05-16 Tom Tromey <tromey@adacore.com>
9356
9357 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9358 keyword to foreach.
9359
9ddc1af1
SM
93602019-05-15 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * linux-thread-db.c (try_thread_db_load_1): Change return type
9363 to bool.
9364 (try_thread_db_load): Likewise.
9365 (try_thread_db_load_from_pdir_1): Likewise.
9366 (try_thread_db_load_from_pdir): Likewise.
9367 (try_thread_db_load_from_sdir): Likewise.
9368 (try_thread_db_load_from_dir): Likewise.
9369 (thread_db_load_search): Likewise.
9370 (has_libpthread): Likewise.
9371 (thread_db_load): Likewise.
9372
7bede828
SDJ
93732019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9374
9375 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9376 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9377 NULL, and complain/return if that's the case.
9378
c5358db4
JD
93792019-05-15 John Darrington <john@darrington.wattle.id.au>
9380
9381 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9382 (advance, posn, abstract_read_memory): New functions.
9383 [struct mem_read_abstraction]: New struct.
9384 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9385
c408a94f
TT
93862019-05-14 Tom Tromey <tromey@adacore.com>
9387
9388 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9389 value is not lval_memory.
9390
e7bd7fba
TT
93912019-05-14 Tom Tromey <tromey@adacore.com>
9392
9393 * solib.c (info_sharedlibrary_command): Style the file name.
9394
a6d0f249
AH
93952019-05-14 Alan Hayward <alan.hayward@arm.com>
9396
9397 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9398 (aarch64_vnv_type): Likewise.
9399 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9400 * common/tdesc.c: Likewise.
9401 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9402 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9403 * features/aarch64-fpu.xml: Add ieee half view.
9404 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9405 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9406 * gdbtypes.h (struct builtin_type): Likewise.
9407 (struct objfile_type): Likewise.
9408
66b8bb74
SM
94092019-05-12 Paul Naert <paul.naert@polymtl.ca>
9410
9411 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9412 typo.
9413 * location.h (string_to_event_location): Likewise.
9414
21c219fd
JB
94152019-05-11 Joel Brobecker <brobecker@adacore.com>
9416
9417 GDB 8.3 released.
9418
13674803
SM
94192019-05-10 Simon Marchi <simon.marchi@efficios.com>
9420
9421 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9422 New variable declaration.
9423 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9424 New variable.
9425 (print_one_breakpoint): Use ui_out::test_flags and new global
9426 variable to compute use_fixed_output.
9427 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9428 Remove.
9429 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9430 (mi_multi_location_breakpoint_output_fixed): Remove.
9431 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9432 new variable.
9433 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9434 fix_multi_location_breakpoint_output flag if version >= 3.
9435 * ui-out.h (enum ui_out_flag)
9436 <fix_multi_location_breakpoint_output>: New enumerator.
9437
a9eac7f9
SM
94382019-05-10 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9441
71bed2db
TT
94422019-05-10 Tom Tromey <tromey@adacore.com>
9443
9444 * ada-lang.c (catch_ada_completer): New function.
9445 (_initialize_ada_language): Use it.
9446
24c54127
TT
94472019-05-10 Tom Tromey <tromey@adacore.com>
9448
9449 * thread.c (print_thread_info): Make "requested_threads" const.
9450 * gdbthread.h (print_thread_info): Make "requested_threads"
9451 const.
9452 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9453 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9454
7a102139
TT
94552019-05-08 Tom Tromey <tom@tromey.com>
9456
9457 * gdbtypes.c (objfile_type_data): Change type.
9458 (objfile_type, _initialize_gdbtypes): Update.
9459
924d79e2
TT
94602019-05-08 Tom Tromey <tom@tromey.com>
9461
9462 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9463 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9464 (_initialize_dwarf2_frame): Update.
9465
4c58e337
TT
94662019-05-08 Tom Tromey <tom@tromey.com>
9467
9468 * objc-lang.c (objc_objfile_data): Change type.
9469 (find_methods): Update.
9470 (_initialize_objc_lang): Remove.
9471
d772d2ab
TT
94722019-05-08 Tom Tromey <tom@tromey.com>
9473
9474 * stabsread.c (rs6000_builtin_type_data): Change type.
9475 (rs6000_builtin_type, _initialize_stabsread): Update.
9476
d11d83f4
TT
94772019-05-08 Tom Tromey <tom@tromey.com>
9478
9479 * mips-tdep.c (mips_pdr_data): Remove.
9480 (_initialize_mips_tdep): Update.
9481
9a73f0ad
TT
94822019-05-08 Tom Tromey <tom@tromey.com>
9483
9484 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9485 (hppa_init_objfile_priv_data, read_unwind_info)
9486 (find_unwind_entry, _initialize_hppa_tdep): Update.
9487
8127a2fa
TT
94882019-05-08 Tom Tromey <tom@tromey.com>
9489
9490 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9491 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9492 on obstack.
9493 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9494
91d3055d
TT
94952019-05-08 Tom Tromey <tom@tromey.com>
9496
9497 * mdebugread.c (basic_type_data): Change type.
9498 (basic_type, _initialize_mdebugread): Update.
9499
31930bd3
TT
95002019-05-08 Tom Tromey <tom@tromey.com>
9501
9502 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9503
bdb3ed9e
TT
95042019-05-08 Tom Tromey <tom@tromey.com>
9505
9506 * nto-tdep.c (nto_inferior_data_reg): Change type.
9507 (nto_inferior_data): Update.
9508 (nto_inferior_data_cleanup, nto_new_inferior_data)
9509 (_initialize_nto_tdep): Remove.
9510 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9511
f37b313d
TT
95122019-05-08 Tom Tromey <tom@tromey.com>
9513
9514 * ada-lang.c (struct ada_inferior_data): Add initializers.
9515 (ada_inferior_data): Change type.
9516 (ada_inferior_data_cleanup): Remove.
9517 (get_ada_inferior_data, ada_inferior_exit)
9518 (struct ada_pspace_data): Add initializers, destructor.
9519 (ada_pspace_data_handle): Change type.
9520 (get_ada_pspace_data): Update.
9521 (ada_pspace_data_cleanup): Remove.
9522
24699405
TT
95232019-05-08 Tom Tromey <tom@tromey.com>
9524
9525 * coffread.c (struct coff_symfile_info): Add initializers.
9526 (coff_objfile_data_key): Move lower. Change type.
9527 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9528 Update.
9529 (coff_free_info): Remove.
9530
d4e05d2f
TT
95312019-05-08 Tom Tromey <tom@tromey.com>
9532
9533 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9534 (fbsd_pspace_data_handle): Move lower. Change type.
9535 (get_fbsd_pspace_data): Update.
9536 (fbsd_pspace_data_cleanup): Remove.
9537 (_initialize_fbsd_tdep): Update.
9538
14ef6690
TT
95392019-05-08 Tom Tromey <tom@tromey.com>
9540
9541 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9542 (get_ada_tasks_pspace_data): Update.
9543 (ada_tasks_pspace_data_cleanup): Remove.
9544 (_initialize_tasks): Update.
9545 (ada_tasks_inferior_data_handle): Change type.
9546 (get_ada_tasks_inferior_data): Update.
9547 (ada_tasks_inferior_data_cleanup): Remove.
9548 (struct ada_tasks_pspace_data): Add initializers.
9549
814cf43a
TT
95502019-05-08 Tom Tromey <tom@tromey.com>
9551
9552 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9553 * symfile-debug.c (debug_sym_get_probes): Change type.
9554 * stap-probe.c (handle_stap_probe):
9555 (stap_static_probe_ops::get_probes): Change type.
9556 * probe.h (class static_probe_ops) <get_probes>: Change type.
9557 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9558 (parse_probes_in_pspace): Update.
9559 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9560 Update.
9561 (any_static_probe_ops::get_probes): Change type.
9562 * elfread.c (elfread_data): New typedef.
9563 (probe_key): Change type.
9564 (elf_get_probes): Likewise. Update.
9565 (probe_key_free): Remove.
9566 (_initialize_elfread): Update.
9567 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9568 Change type.
9569 (dtrace_process_dof_probe, dtrace_process_dof)
9570 (dtrace_static_probe_ops::get_probe): Change type.
9571
02dc647e
TT
95722019-05-08 Tom Tromey <tom@tromey.com>
9573
9574 * xcoffread.c (struct xcoff_symfile_info): Rename from
9575 coff_symfile_info. Add initializers.
9576 (xcoff_objfile_data_key): Move lower. Change type.
9577 (XCOFF_DATA): Rewrite.
9578 (xcoff_free_info): Remove.
9579 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9580 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9581 (xcoff_initial_scan): Update.
9582
09232438
TT
95832019-05-08 Tom Tromey <tom@tromey.com>
9584
9585 * solib-svr4.c (struct svr4_info): Add initializers and
9586 destructor.
9587 <probes_table>: Now an htab_up.
9588 (solib_svr4_pspace_data): Change type.
9589 (free_probes_table): Simplify.
9590 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9591 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9592 (probes_table_remove_objfile_probes, register_solib_event_probe)
9593 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9594 (_initialize_svr4_solib): Update.
9595
7b4a314f
TT
95962019-05-08 Tom Tromey <tom@tromey.com>
9597
9598 * remote.c (remote_pspace_data): Change type.
9599 (remote_pspace_data_cleanup): Remove.
9600 (get_remote_exec_file, set_pspace_remote_exec_file)
9601 (_initialize_remote): Update.
9602
51d3063a
TT
96032019-05-08 Tom Tromey <tom@tromey.com>
9604
9605 * breakpoint.c (breakpoint_objfile_key): Change type.
9606 (get_breakpoint_objfile_data): Update.
9607 (free_breakpoint_objfile_data): Remove.
9608 (_initialize_breakpoint): Update.
9609
89fb8848
TT
96102019-05-08 Tom Tromey <tom@tromey.com>
9611
9612 * linux-tdep.c (struct linux_info): Add initializers.
9613 (linux_inferior_data): Move. Change type.
9614 (invalidate_linux_cache_inf): Update.
9615 (linux_inferior_data_cleanup): Remove.
9616 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9617
e9b89e2d
TT
96182019-05-08 Tom Tromey <tom@tromey.com>
9619
9620 * auxv.c (auxv_inferior_data): Move. Change type.
9621 (auxv_inferior_data_cleanup): Remove.
9622 (invalidate_auxv_cache_inf): Rewrite.
9623 (get_auxv_inferior_data, _initialize_auxv): Update.
9624
8c42777c
TT
96252019-05-08 Tom Tromey <tom@tromey.com>
9626
9627 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9628 (symfile_debug_objfile_data_key): Change type.
9629 (symfile_debug_installed, debug_qf_has_symbols)
9630 (debug_qf_find_last_source_symtab)
9631 (debug_qf_forget_cached_source_info)
9632 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9633 (debug_qf_print_stats, debug_qf_dump)
9634 (debug_qf_expand_symtabs_for_function)
9635 (debug_qf_expand_all_symtabs)
9636 (debug_qf_expand_symtabs_with_fullname)
9637 (debug_qf_map_matching_symbols)
9638 (debug_qf_expand_symtabs_matching)
9639 (debug_qf_find_pc_sect_compunit_symtab)
9640 (debug_qf_map_symbol_filenames)
9641 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9642 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9643 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9644 (debug_sym_read_linetable, debug_sym_relocate): Update.
9645 (symfile_debug_free_objfile): Remove.
9646 (install_symfile_debug_logging, _initialize_symfile_debug):
9647 Update.
9648
5bfd760d
TT
96492019-05-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9652 allocate_on_obstack.
9653 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9654 (get_dwarf2_per_objfile): Update.
9655 (set_dwarf2_per_objfile): Remove.
9656 (dwarf2_has_info, dwarf2_get_section_info): Update.
9657 (dwarf2_free_objfile): Remove.
9658 (_initialize_dwarf2_read): Update.
9659
e85e19b4
TT
96602019-05-08 Tom Tromey <tom@tromey.com>
9661
9662 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9663 initializers.
9664 <unsupported_script_warning_printed,
9665 script_not_found_warning_printed>: Now bool.
9666 (auto_load_pspace_data): Change type.
9667 (~auto_load_pspace_info): Rename from
9668 auto_load_pspace_data_cleanup.
9669 (get_auto_load_pspace_data, init_loaded_scripts_info)
9670 (clear_section_scripts, maybe_print_unsupported_script_warning)
9671 (maybe_print_script_not_found_warning, _initialize_auto_load):
9672 Update.
9673
f6aa7436
TT
96742019-05-08 Tom Tromey <tom@tromey.com>
9675
9676 * objfiles.c (objfile_pspace_info): Add destructor and
9677 initializers.
9678 (objfiles_pspace_data): Change type.
9679 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9680 (get_objfile_pspace_data): Update.
9681 (objfiles_bfd_data): Change type.
9682 (get_objfile_bfd_data): Update.
9683 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9684
6ae614f6
TT
96852019-05-08 Tom Tromey <tom@tromey.com>
9686
9687 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9688 Change type.
9689 (get_catch_syscall_inferior_data): Update.
9690 (catch_syscall_inferior_data_cleanup): Remove.
9691 (_initialize_break_catch_syscall): Update.
9692
6509b8eb
TT
96932019-05-08 Tom Tromey <tom@tromey.com>
9694
9695 * inflow.c (struct terminal_info): Add destructor and
9696 initializers.
9697 (inflow_inferior_data): Change type.
9698 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9699 (get_inflow_inferior_data, inflow_inferior_exit)
9700 (swap_terminal_info, _initialize_inflow): Update.
9701
35632941
TT
97022019-05-08 Tom Tromey <tom@tromey.com>
9703
9704 * target-dcache.c (target_dcache_cleanup): Remove.
9705 (target_dcache_aspace_key): Change type.
9706 (target_dcache_init_p, target_dcache_invalidate)
9707 (target_dcache_get, target_dcache_get_or_init)
9708 (_initialize_target_dcache): Update.
9709 * dcache.h (struct dcache_deleter): New.
9710
3017b94d
TT
97112019-05-08 Tom Tromey <tom@tromey.com>
9712
9713 * symtab.c (struct symbol_cache): Add destructor and
9714 initializers.
9715 (symbol_cache_key): Move. Change type.
9716 (make_symbol_cache, free_symbol_cache): Remove.
9717 (get_symbol_cache): Update.
9718 (symbol_cache_cleanup): Remove.
9719 (ALL_PSPACES, symbol_cache_flush)
9720 (maintenance_print_symbol_cache)
9721 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9722 Update.
9723
a32ad8c5
TT
97242019-05-08 Tom Tromey <tom@tromey.com>
9725
9726 * symtab.c (struct main_info): Add destructor and initializers.
9727 (main_progspace_key): Move. Change type.
9728 (get_main_info): Update.
9729 (main_info_cleanup): Remove.
9730 (_initialize_symtab): Update.
9731
5f6e90a0
TT
97322019-05-08 Tom Tromey <tom@tromey.com>
9733
9734 * registry.h (DECLARE_REGISTRY): Define the _key class.
9735
1bd0c6e4
AB
97362019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9737
9738 * NEWS: Merge two 'New commands' sections.
9739
2228ef77
XR
97402019-05-08 Joel Brobecker <brobecker@adacore.com>
9741
9742 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9743 parameter and use Ada language definition instead.
9744 (ada_val_print_ptr): Remove unused language parameter.
9745 (ada_val_print_num): Remove language parameter and use Ada language
9746 definition instead.
9747 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9748 parameter.
9749 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9750 parameter and use Ada language definition instead.
9751 (ada_val_print_1): Update all ada_val_print_xxx calls.
9752 Remove language parameter.
9753 (ada_val_print): Update ada_val_print_1 call.
9754
60fcc1c3
TT
97552019-05-08 Tom Tromey <tromey@adacore.com>
9756
9757 * remote.c (remote_hw_watchpoint_limit)
9758 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9759 Now static.
9760
ed2b7c17
TT
97612019-05-08 Tom Tromey <tromey@adacore.com>
9762
9763 * maint.c (_initialize_maint_cmds): Move initialization code to
9764 remote.c.
9765 (watchdog, show_watchdog): Move to remote.c.
9766 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9767 "watchdog" static.
9768 (_initialize_remote): Move initialization code from maint.c.
9769 * defs.h (watchdog): Don't declare.
9770
b0be6c91
TT
97712019-05-08 Tom Tromey <tromey@adacore.com>
9772
9773 * tui/tui-interp.c: Include main.h.
9774 * interps.c: Include main.h.
9775 * main.h (interpreter_p): Declare.
9776 * defs.h (interpreter_p): Don't declare.
9777
587ee17b
TT
97782019-05-08 Tom Tromey <tromey@adacore.com>
9779
9780 * dwarf2loc.c: Include dwarf2read.h.
9781 * defs.h (read_unsigned_leb128): Don't declare.
9782 * dwarf2read.h (read_unsigned_leb128): Declare.
9783
ca1df239
TT
97842019-05-08 Tom Tromey <tromey@adacore.com>
9785
9786 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9787 method.
9788
99f20f08
TT
97892019-05-08 Tom Tromey <tromey@adacore.com>
9790
9791 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9792 when no wrap column is set.
9793
80e55b13
TT
97942019-05-08 Tom Tromey <tromey@adacore.com>
9795
9796 * c-lang.c (c_get_string): Handle non-C-style arrays.
9797
9d3421af
TT
97982019-05-08 Tom Tromey <tromey@adacore.com>
9799
9800 * typeprint.c (print_offset_data::update): Print the bit offset,
9801 not the number of bits remaining.
9802
844333e2
TT
98032019-05-08 Tom Tromey <tromey@adacore.com>
9804
9805 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9806 padding at end of comment.
9807
988915ee
TT
98082019-05-08 Tom Tromey <tromey@adacore.com>
9809
9810 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9811 Compare main types.
9812
26bfd823
TT
98132019-05-06 Tom Tromey <tom@tromey.com>
9814
9815 * common/scoped_mmap.c: Include common-defs.h.
9816 * common/scoped_mmap.h: Don't include config.h.
9817
89055eaa
TT
98182019-05-04 Tom Tromey <tom@tromey.com>
9819
9820 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9821 (struct aarch64_call_info): Add initializers.
9822 <si>: Now a std::vector.
9823 (pass_on_stack, aarch64_push_dummy_call): Update.
9824
5da01df5
TT
98252019-05-04 Simon Marchi <simon.marchi@efficios.com>
9826 Tom Tromey <tom@tromey.com>
9827
9828 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9829 (ppc_threads): Now a std::vector. Now static.
9830 (hwdebug_find_thread_points_by_tid)
9831 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9832 Update.
9833
fbdf05a1
TT
98342019-05-04 Tom Tromey <tom@tromey.com>
9835
9836 * arc-tdep.c (arc_tdesc_init): Return bool.
9837
06d16ec9
TT
98382019-05-04 Tom Tromey <tom@tromey.com>
9839
9840 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9841 Use gdb_assert_not_reached.
9842
9c056022
TT
98432019-05-04 Tom Tromey <tom@tromey.com>
9844
9845 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9846 "false".
9847
fa9c2a59
TT
98482019-05-04 Tom Tromey <tom@tromey.com>
9849
9850 * arc-tdep.c (arc_tdesc_init): Use bool.
9851
e2eb806a
TT
98522019-05-04 Tom Tromey <tom@tromey.com>
9853
9854 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9855
6fe87677
TT
98562019-05-04 Tom Tromey <tom@tromey.com>
9857
9858 * cli/cli-cmds.c (valid_command_p): Return bool.
9859
7f008c9e
TT
98602019-05-04 Tom Tromey <tom@tromey.com>
9861
9862 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9863 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9864
b6484282
RT
98652019-05-04 Raul Tambre <raul@tambre.ee>
9866
9867 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9868 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9869 operator for comparison.
9870
af97b416
TT
98712019-05-04 Tom Tromey <tom@tromey.com>
9872
9873 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9874 (lookup_partial_symbol, print_partial_symbols)
9875 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9876 (psymbol_compare): Update.
9877 (add_psymbol_to_bcache): Clear the entire psymbol.
9878 (maintenance_check_psymtabs): Update.
9879 * psympriv.h (struct partial_symbol): Don't derive from
9880 general_symbol_info.
9881 <obj_section, unrelocated_address, address,
9882 set_unrelocated_address>: Update.
9883 <ginfo>: New member.
9884 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9885 (debug_names::write_psymbols): Update.
9886
9d6d4be8
TV
98872019-05-04 Tom de Vries <tdevries@suse.de>
9888
9889 * contrib/cc-with-tweaks.sh: Support -n arg.
9890
66452beb
PW
98912019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9892
9893 * corelow.c (core_target::detach): Ensure frame cache and
9894 register caches are cleared.
9895 inferior.c (exit_inferior_1): Likewise.
9896
bde09ab7
TT
98972019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9898 Tom Tromey <tom@tromey.com>
9899
9900 * dictionary.c (collate_pending_symbols_by_language): Remove
9901 "struct" from foreach.
9902 * symtab.c (lookup_global_symbol_from_objfile)
9903 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9904 foreach.
9905 * ser-tcp.c (net_open): Remove "struct" from foreach.
9906 * objfiles.c (objfile_relocate, objfile_rebase)
9907 (objfile_has_symbols): Remove "struct" from foreach.
9908 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9909 from foreach.
9910 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9911 foreach.
9912 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9913 "struct" from foreach.
9914 * ada-lang.c (create_excep_cond_exprs)
9915 (ada_exception_catchpoint_cond_string): Remove "struct" from
9916 foreach.
9917
222a8d25
TT
99182019-05-03 Tom Tromey <tromey@adacore.com>
9919
9920 * ada-exp.y (convert_char_literal): Check suffix of each
9921 enumerator.
9922
fcd60b84
DP
99232019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9924
9925 PR ada/21406:
9926 * ada-exp.y (yywrap): Don't define.
9927 * ada-lex.l (%option): Add noyywrap
9928 (yywrap): Remove.
9929
5f2459c2
EZ
99302019-05-03 Eli Zaretskii <eliz@gnu.org>
9931
353ea2d1
EZ
9932 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9933 _WIN32_WINNT to the XP level, unless already defined to a higher
9934 level.
9935
9936 * unittests/parse-connection-spec-selftests.c:
9937 * ser-tcp.c:
9938 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9939 override.
9940
5f2459c2
EZ
9941 * symfile.c (find_separate_debug_file): Remove colon from the
9942 drive spec of DOS/Windows file names of the target, so that the
9943 file name produced from DEBUGDIR and the target's directory will
9944 be valid on DOS/Windows systems.
9945
80062eb9
AB
99462019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9947
9948 * rust-lang.c (val_print_struct): Handle printing structures
9949 containing strings.
9950
b8c05e85
TT
99512019-05-02 Tom Tromey <tromey@adacore.com>
9952
9953 * valarith.c (_initialize_valarith): Remove.
9954
4504bbde
TT
99552019-05-01 Tom Tromey <tromey@adacore.com>
9956
9957 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9958 bitfields.
9959
d48e62f4
TT
99602019-05-01 Tom Tromey <tromey@adacore.com>
9961
9962 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9963 for big-endian copies.
9964
15f18d14
AT
99652019-04-30 Ali Tamur <tamur@google.com>
9966 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9967 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9968 (read_3_bytes): New function.
9969
ab4ee614
JB
99702019-04-30 Joel Brobecker <brobecker@adacore.com>
9971
9972 * windows-nat.c (main_thread_id): Delete.
9973 (handle_output_debug_string): Replace main_thread_id by
9974 current_event.dwThreadId.
9975 (fake_create_process): Likewise.
9976 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9977 Do not set main_thread_id.
9978 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9979 current_event.dwThreadId.
9980 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9981
8ed5b76e
JB
99822019-04-30 Joel Brobecker <brobecker@adacore.com>
9983
9984 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9985 Use current_event.dwThreadId instead of main_thread_id.
9986
2ff0a947
TT
99872019-04-30 Tom Tromey <tromey@adacore.com>
9988
9989 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9990 (create_excep_cond_exprs): Iterate over program spaces.
9991 (ada_exception_catchpoint_cond_string): Examine all minimal
9992 symbols for exception types.
9993
a776957c
TT
99942019-04-30 Tom Tromey <tromey@adacore.com>
9995
9996 PR c++/24470:
9997 * dwarf2read.c (process_structure_scope): Handle case where type
9998 has template parameters but no symbol was created.
9999
bc68014d
AB
100002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10001 Chris January <chris.january@arm.com>
10002
10003 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10004 qualifier.
10005 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10006
f1fdc960
AB
100072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10008
10009 * f-typeprint.c (f_print_type): Update rules for printing
10010 whitespace.
10011 (f_type_print_varspec_suffix): Likewise.
10012
bf7a4de1
AB
100132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10014 Chris January <chris.january@arm.com>
10015
10016 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10017 function arguments.
10018
bbe75b9d
AB
100192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10020
10021 * f-lang.c (build_fortran_types): Change name of void type to
10022 lower case.
10023 * f-typeprint.c (f_type_print_base): Print the name of the void
10024 type, rather than a fixed string.
10025 * f-valprint.c (f_decorations): Use lower case void string.
10026
1db455a7
AB
100272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10028 Chris January <chris.january@arm.com>
10029
10030 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10031 types for Fortran.
10032
b6d03bb2
AB
100332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10034 Chris January <chris.january@arm.com>
10035 David Lecomber <david.lecomber@arm.com>
10036
10037 * f-exp.y (BINOP_INTRINSIC): New token.
10038 (exp): New parser rule handling BINOP_INTRINSIC.
10039 (f77_keywords): Add new builtin procedures.
10040 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10041 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10042 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10043 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10044 (print_unop_subexp_f): New function.
10045 (print_binop_subexp_f): New function.
10046 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10047 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10048 (dump_subexp_body_f): Likewise.
10049 (operator_check_f): Likewise.
10050 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10051 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10052
83228e93
AB
100532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10054
10055 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10056 UNOP_KIND.
10057 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10058 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10059 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10060 (operator_length_f): New fuction.
10061 (print_subexp_f): New function.
10062 (op_name_f): New function.
10063 (dump_subexp_body_f): New function.
10064 (operator_check_f): New function.
10065 (exp_descriptor_f): Replace standard expression handling functions
10066 with new functions.
10067 * gdb/fortran-operator.def: New file.
10068 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10069 * gdb/std-operator.def: Remove UNOP_KIND.
10070
6fdcd7cc
AB
100712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10072
10073 * std-operator.def: Remove unbalanced, stray double quote
10074 character.
10075
2e62ab40
AB
100762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10077 Chris January <chris.january@arm.com>
10078 Daniel Everett <daniel.everett@arm.com>
10079 Nick Forrington <nick.forrington@arm.com>
10080 Richard Bunt <richard.bunt@arm.com>
10081
10082 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10083 of depth when printing anonymous structs or unions.
10084 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10085 Don't print either the top-level value, or the children if the
10086 max-depth is exceeded.
10087 (ppscm_print_children): When printing the key of a map, allow one
10088 extra level of depth.
10089 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10090 print either the top-level value, or the children if the max-depth
10091 is exceeded.
10092 (print_children): When printing the key of a map, allow one extra
10093 level of depth.
10094 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10095 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10096 (user_print_options): Initialise max_depth field.
10097 (val_print_scalar_or_string_type_p): New function.
10098 (val_print): Check to see if the max depth has been reached.
10099 (val_print_check_max_depth): Define new function.
10100 (show_print_max_depth): New function.
10101 (_initialize_valprint): Add 'print max-depth' option.
10102 * valprint.h (struct value_print_options) <max_depth>: New field.
10103 (val_print_check_max_depth): Declare new function.
10104 * NEWS: Document new feature.
10105
4be290b2
AB
101062019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10107
10108 * ada-lang.c (ada_language_defn): Initialise new field.
10109 * c-lang.c (c_is_string_type_p): New function.
10110 (c_language_defn): Initialise new field.
10111 (cplus_language_defn): Initialise new field.
10112 (asm_language_defn): Initialise new field.
10113 (minimal_language_defn): Initialise new field.
10114 * c-lang.h (c_is_string_type_p): Declare new function.
10115 * d-lang.c (d_language_defn): Initialise new field.
10116 * f-lang.c (f_is_string_type_p): New function.
10117 (f_language_defn): Initialise new field.
10118 * go-lang.c (go_is_string_type_p): New function.
10119 (go_language_defn): Initialise new field.
10120 * language.c (default_is_string_type_p): New function.
10121 (unknown_language_defn): Initialise new field.
10122 (auto_language_defn): Initialise new field.
10123 * language.h (struct language_defn) <la_is_string_type_p>: New
10124 member variable.
10125 (default_is_string_type_p): Declare new function.
10126 * m2-lang.c (m2_language_defn): Initialise new field.
10127 * objc-lang.c (objc_language_defn): Initialise new field.
10128 * opencl-lang.c (opencl_language_defn): Initialise new field.
10129 * p-lang.c (pascal_is_string_type_p): New function.
10130 (pascal_language_defn): Initialise new field.
10131 * rust-lang.c (rust_is_string_type_p): New function.
10132 (rust_language_defn): Initialise new field.
10133
721b08c6
AB
101342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10135
10136 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10137 New field.
10138 * ada-lang.c (ada_language_defn): Initialise new field.
10139 * c-lang.c (c_language_defn): Likewise.
10140 (cplus_language_defn): Likewise.
10141 (asm_language_defn): Likewise.
10142 (minimal_language_defn): Likewise.
10143 * d-lang.c (d_language_defn): Likewise.
10144 * f-lang.c (f_language_defn): Likewise.
10145 * go-lang.c (go_language_defn): Likewise.
10146 * language.c (unknown_language_defn): Likewise.
10147 (auto_language_defn): Likewise.
10148 * m2-lang.c (m2_language_defn): Likewise.
10149 * objc-lang.c (objc_language_defn): Likewise.
10150 * opencl-lang.c (opencl_language_defn): Likewise.
10151 * p-lang.c (pascal_language_defn): Likewise.
10152 * rust-lang.c (rust_language_defn): Likewise.
10153
fc913e53
AB
101542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * ada-lang.c (ada_is_character_type): Change return type to bool.
10157 (ada_is_string_type): Likewise.
10158 * ada-lang.h (ada_is_character_type): Update declaration
10159 (ada_is_string_type): Likewise.
10160
fa731fa0
PW
101612019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10162
10163 Support style in 'frame|thread apply'
10164
10165 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10166 * record.c (record_start, record_stop): Update callers of
10167 execute_command_to_string with false.
10168 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10169 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10170 methods.
10171 (class string_file): New constructor with term_out parameter.
10172 Override methods term_out and can_emit_style_escape. New member
10173 term_out.
10174 (class stdio_file): Override can_emit_style_escape.
10175 (class tee_file): Override term_out and can_emit_style_escape.
10176 * utils.h (can_emit_style_escape): Remove.
10177 * utils.c (can_emit_style_escape): Likewise.
10178 Update all callers of can_emit_style_escape (SOMESTREAM) to
10179 SOMESTREAM->can_emit_style_escape.
10180 * source-cache.c (source_cache::get_source_lines): Likewise.
10181 * stack.c (frame_apply_command_count): Call execute_command_to_string
10182 passing the term_out characteristic of the current gdb_stdout.
10183 * thread.c (thr_try_catch_cmd): Likewise.
10184 * top.c (execute_command_to_string): pass term_out parameter
10185 to construct the string_file for the command output.
10186 * ui-file.c (term_cli_styling): New function (most code moved
10187 from utils.c can_emit_style_escape).
10188 (string_file::string_file, string_file::can_emit_style_escape,
10189 stdio_file::can_emit_style_escape, tee_file::term_out,
10190 tee_file::can_emit_style_escape): New functions.
10191
136afab8
PW
101922019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10193
10194 * NEWS: Mention the new set|show may-call-functions.
10195 * infcall.c (may_call_functions_p): New variable.
10196 (show_may_call_functions_p): New function.
10197 (call_function_by_hand_dummy): Throws an error if not
10198 may-call-functions.
10199 (_initialize_infcall): Call add_setshow_boolean_cmd for
10200 may-call-functions.
10201
725cbb63
KS
102022019-04-25 Keith Seitz <keiths@redhat.com>
10203
10204 PR c++/24367
10205 * cp-support.c (inspect_type): Don't attempt substitutions
10206 of symbol with the same name.
10207
3d1cbb78
TT
102082019-04-25 Tom Tromey <tromey@adacore.com>
10209
10210 PR gdb/24475:
10211 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10212 static.
10213
94aeb44b
TT
102142019-04-25 Tom Tromey <tromey@adacore.com>
10215
10216 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10217 rvalue reference.
10218 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10219 (gdb_xml_parser::parse): Use std::move.
10220 * python/python-internal.h (gdbpy_convert_exception): Take a const
10221 reference.
10222 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10223 std::move.
10224 * python/py-utils.c (gdbpy_convert_exception): Take a const
10225 reference.
10226 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10227 Use std::move.
10228 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10229 Use std::move.
10230 * mi/mi-main.c (mi_print_exception): Take a const reference.
10231 * main.c (handle_command_errors): Take a const reference.
10232 * linespec.c (parse_linespec): Use std::move.
10233 * infcall.c (run_inferior_call): Use std::move.
10234 (call_function_by_hand_dummy): Use std::move.
10235 * exec.c (try_open_exec_file): Use std::move.
10236 * exceptions.h (exception_print, exception_fprintf)
10237 (exception_print_same): Update.
10238 * exceptions.c (print_exception, exception_print)
10239 (exception_fprintf, exception_print_same): Change parameters to
10240 const reference.
10241 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10242 * common/new-op.c: Use std::move.
10243 * common/common-exceptions.h (struct gdb_exception): Add move
10244 constructor.
10245 (struct gdb_exception_error, struct gdb_exception_quit, struct
10246 gdb_quit_bad_alloc): Change constructor to move constructor.
10247 (throw_exception): Change parameter to rvalue reference.
10248 * common/common-exceptions.c (throw_exception): Take rvalue
10249 reference.
10250 * cli/cli-interp.c (safe_execute_command): Use std::move.
10251 * breakpoint.c (insert_bp_location, location_to_sals): Use
10252 std::move.
10253
680d7fd5
TT
102542019-04-25 Tom Tromey <tromey@adacore.com>
10255
10256 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10257 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10258 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10259 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10260 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10261 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10262 guile/scm-value.c: Use unpack.
10263 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10264 gdbscm_gdb_exception.
10265 (gdbscm_throw_gdb_exception): Likewise.
10266 (struct gdbscm_gdb_exception): New.
10267 (unpack): New function.
10268 (gdbscm_wrap): Use unpack.
10269
c6fdd8b2
TT
102702019-04-25 Tom Tromey <tromey@adacore.com>
10271
10272 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10273 (gdb_rl_callback_handler): Use std::move.
10274 * common/common-exceptions.h (struct gdb_exception): Add move
10275 assignment operator.
10276 (throw_exception_sjlj): Change "exception" to const reference.
10277 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10278 (throw_exception_sjlj): Change "exception" to const reference.
10279
cc06b668
TT
102802019-04-25 Tom Tromey <tromey@adacore.com>
10281
10282 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10283 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10284 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10285 Update.
10286 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10287 Update.
10288 * mi/mi-interp.c (mi_interp::exec): Update.
10289 * linespec.c (parse_linespec): Update.
10290 * infcall.c (run_inferior_call): Update.
10291 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10292 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10293 (gdbscm_lookup_global_symbol): Update.
10294 * guile/scm-param.c (gdbscm_parameter_value): Update.
10295 * guile/scm-frame.c (gdbscm_frame_read_register)
10296 (gdbscm_frame_read_var): Update.
10297 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10298 * exec.c (try_open_exec_file): Update.
10299 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10300 (gdb_rl_callback_handler): Update.
10301 * common/common-exceptions.h (exception_none): Don't declare.
10302 * common/common-exceptions.c (exception_none): Don't define.
10303 (struct catcher) <exception>: Update.
10304 * cli/cli-interp.c (safe_execute_command): Update.
10305 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10306
cf532bd1
AT
103072019-04-25 Ali Tamur <tamur@google.com>
10308
10309 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10310 (read_attribute_value): Likewise.
10311 (dwarf2_read_addr_index): Update comment.
10312 (read_str_index): Add DW_FORM_strx.
10313 (dwarf2_string_attr): Likewise.
10314 (dwarf2_const_value_attr): Likewise.
10315 (dump_die_shallow): Likewise.
10316 (dwarf2_fetch_constant_bytes): Likewise.
10317 (skip_form_bytes): Likewise.
10318 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10319
82433e3e
SDJ
103202019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10321
10322 PR corefiles/11608
10323 PR corefiles/18187
10324 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10325 OFFSET. Verify if current mapping contains an ELF header.
10326 (linux_find_memory_regions_full): Adjust call to
10327 dump_mapping_p.
10328
723adb65
SL
103292019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10330 Kang Li <kanglictf@gmail.com>
10331
10332 PR gdb/21600
10333
10334 * dwarf2-frame.c (read_initial_length): Be consistent about using
10335 unsigned representation of length.
10336 (decode_frame_entry_1): Likewise. Check for wraparound of
10337 end pointer as well as buffer overflow.
10338
596179f7
SDJ
103392019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10340
10341 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10342 "vq".
10343
a59240a4
TT
103442019-04-24 Tom Tromey <tromey@adacore.com>
10345
10346 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10347
f872fdbb
AB
103482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10349
10350 * s12z-tdep.c (s12z_unwind_pc): Delete.
10351 (s12z_unwind_sp): Delete.
10352 (s12z_gdbarch_init): Don't register deleted functions with
10353 gdbarch.
10354
b614e6f3
AB
103552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * rl78-tdep.c (rl78_unwind_sp): Delete.
10358 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10359
14faed38
AB
103602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10363 (xstormy16_unwind_pc): Delete.
10364 (xstormy16_dummy_id): Delete.
10365 (xstormy16_gdbarch_init): Don't register deleted functions with
10366 gdbarch.
10367
541aad8a
AB
103682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10369
10370 * vax-tdep.c (vax_unwind_pc): Delete.
10371 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10372
29222070
AB
103732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10374
10375 * v850-tdep.c (v850_unwind_sp): Delete.
10376 (v850_unwind_pc): Delete.
10377 (v850_dummy_id): Delete.
10378 (v850_gdbarch_init): Don't register deleted functions with
10379 gdbarch.
10380
0f534d76
AB
103812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10382
10383 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10384 (tilegx_unwind_pc): Delete.
10385 (tilegx_unwind_dummy_id): Delete.
10386 (tilegx_gdbarch_init): Don't register deleted functions with
10387 gdbarch.
10388
1ba7b7f9
AB
103892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10392 (tic6x_dummy_id): Delete.
10393 (tic6x_gdbarch_init): Don't register deleted functions with
10394 gdbarch.
10395
d31f262c
AB
103962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 * sparc-tdep.c (sparc_unwind_pc): Delete.
10399 (sparc32_gdbarch_init): Don't register deleted function with
10400 gdbarch.
10401
6d14d64d
AB
104022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10403
10404 * sh-tdep.c (sh_unwind_sp): Delete.
10405 (sh_unwind_pc): Delete.
10406 (sh_dummy_id): Delete.
10407 (sh_gdbarch_init): Don't register deleted functions with
10408 gdbarch.
10409
a40dde9d
AB
104102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10411
10412 * score-tdep.c (score_unwind_sp): Delete.
10413 (score_unwind_pc): Delete.
10414 (score_dummy_id): Delete.
10415 (score_gdbarch_init): Don't register deleted functions with
10416 gdbarch.
10417
47c47d69
AB
104182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10419
10420 * rx-tdep.c (rx_unwind_pc): Delete.
10421 (rx_unwind_sp): Delete.
10422 (rx_dummy_id): Delete.
10423 (rx_gdbarch_init): Don't register deleted functions with
10424 gdbarch. Update comment.
10425
833a4480
AB
104262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10427
10428 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10429 (rs6000_dummy_id): Delete.
10430 (rs6000_gdbarch_init): Don't register deleted functions with
10431 gdbarch.
10432
3f2cef49
AB
104332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * or1k-tdep.c (or1k_dummy_id): Delete.
10436 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10437
96acf884
AB
104382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * nios2-tdep.c (nios2_dummy_id): Delete.
10441 (nios2_unwind_sp): Delete.
10442 (nios2_gdbarch_init): Don't register deleted functions with
10443 gdbarch.
10444
ca0ab0aa
AB
104452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10446
10447 * nds32-tdep.c (nds32_dummy_id): Delete.
10448 (nds32_unwind_pc): Delete.
10449 (nds32_unwind_sp): Delete.
10450 (nds32_gdbarch_init): Don't register deleted functions with
10451 gdbarch.
10452
c8259044
AB
104532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * msp430-tdep.c (msp430_unwind_pc): Delete.
10456 (msp430_unwind_sp): Delete.
10457 (msp430_dummy_id): Delete.
10458 (msp430_gdbarch_init): Don't register deleted functions with
10459 gdbarch.
10460
27f113c8
AB
104612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10462
10463 * moxie-tdep.c (moxie_unwind_sp): Delete.
10464 (moxie_unwind_pc): Delete.
10465 (moxie_dummy_id): Delete.
10466 (moxie_gdbarch_init): Don't register deleted functions with
10467 gdbarch.
10468
aee6c3cd
AB
104692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10470
10471 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10472 (mn10300_unwind_pc): Delete.
10473 (mn10300_unwind_sp): Delete.
10474 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10475 mn10300_unwind_sp.
10476 (mn10300_frame_unwind_init): Don't register deleted functions with
10477 gdbarch.
10478
8e2b5aea
AB
104792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10480
10481 * mep-tdep.c (mep_unwind_pc): Delete.
10482 (mep_unwind_sp): Delete.
10483 (mep_dummy_id): Delete.
10484 (mep_gdbarch_init): Don't register deleted functions with
10485 gdbarch.
10486
43cf3ede
AB
104872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10488
10489 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10490 (m68hc11_unwind_sp): Delete.
10491 (m68hc11_gdbarch_init): Don't register deleted functions with
10492 gdbarch.
10493
5e79b7bb
AB
104942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * m32r-tdep.c (m32r_unwind_sp): Delete.
10497 (m32r_unwind_pc): Delete.
10498 (m32r_dummy_id): Delete.
10499 (m32r_gdbarch_init): Don't register deleted functions with
10500 gdbarch.
10501
89b268d8
AB
105022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * m32c-tdep.c (m32c_unwind_pc): Delete.
10505 (m32c_unwind_sp): Delete.
10506 (m32c_dummy_id): Delete.
10507 (m32c_gdbarch_init): Don't register deleted functions with
10508 gdbarch.
10509
946c28d2
AB
105102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10511
10512 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10513 (lm32_unwind_pc): Delete.
10514 (lm32_dummy_id): Delete.
10515 (lm32_gdbarch_init): Don't register deleted functions with
10516 gdbarch.
10517
bf12844a
AB
105182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10519
10520 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10521 (iq2000_unwind_pc): Delete.
10522 (iq2000_dummy_id): Delete.
10523 (iq2000_gdbarch_init): Don't register deleted functions with
10524 gdbarch.
10525
ecbc06d2
AB
105262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10527
10528 * nds32-tdep.c (nds32_type_align): Delete.
10529 (nds32_push_dummy_call): Use type_align instead.
10530
030197b4
AB
105312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10532
10533 * arm-tdep.c (arm_type_align): Only handle vector override case.
10534 (arm_push_dummy_call): Use type_align.
10535 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10536
b907456c
AB
105372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10538
10539 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10540 case.
10541 (pass_on_stack): Use type_align.
10542 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10543 function.
10544
9e97ba43
TT
105452019-04-23 Tom Tromey <tromey@adacore.com>
10546
10547 * dwarf2read.c (line_header::file_name_at): Remove unused
10548 overload.
10549
6892f601
TV
105502019-04-23 Tom de Vries <tdevries@suse.de>
10551
10552 PR gdb/24438
10553 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10554 invocation.
10555
336d760d
AT
10556
105572019-03-27 Ali Tamur <tamur@google.com>
10558
10559 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10560 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10561 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10562 (dwarf_expr_context::get_addr_index): Likewise
10563 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10564 (symbol_needs_eval_context::get_addr_index): Likewise
10565 (disassemble_dwarf_expression): Add DW_OP_addrx
10566 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10567 (read_cutu_die_from_dwo): Update comment
10568 (skip_one_die): Add DW_FORM_addrx
10569 (read_attribute_value): Likewise
10570 (var_decode_location): Add DW_OP_addrx
10571 (dwarf2_const_value_attr): Add DW_FORM_addrx
10572 (dump_die_shallow): Likewise
10573 (dwarf2_fetch_constant_bytes): Likewise
10574 (decode_locdesc): Add DW_OP_addrx
10575 (skip_form_bytes): Add DW_FORM_addrx
10576
ad9d13f8
AT
105772019-04-22 Ali Tamur <tamur@google.com>
10578
10579 * MAINTAINERS (Write After Approval): Add self.
10580
d70cc3ba
SM
105812019-04-22 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10584 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10585 (open_symbol_file_object): Likewise.
10586 (svr4_default_sos): Add info parameter.
10587 (svr4_read_so_list): Likewise.
10588 (svr4_current_sos_direct): Adjust functions calls to pass down
10589 info.
10590 (svr4_current_sos_1): Add info parameter.
10591 (svr4_current_sos): Call get_svr4_info, pass info down to
10592 svr4_current_sos_1.
10593 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10594 get_svr4_info.
10595 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10596 get_svr4_info.
10597 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10598 to get_svr4_info.
10599 (probes_table_remove_objfile_probes): Likewise.
10600 (register_solib_event_probe): Add info parameter.
10601 (solist_update_incremental): Pass info parameter down to
10602 svr4_read_so_list.
10603 (disable_probes_interface): Add info parameter.
10604 (svr4_handle_solib_event): Pass current_program_space to
10605 get_svr4_info. Adjust disable_probes_interface cleanup.
10606 (svr4_create_probe_breakpoints): Add info parameter, pass it
10607 down to register_solib_event_probe.
10608 (svr4_create_solib_event_breakpoints): Add info parameter,
10609 pass it down to svr4_create_probe_breakpoints.
10610 (enable_break): Pass info down to
10611 svr4_create_solib_event_breakpoints.
10612 (svr4_solib_create_inferior_hook): Pass current_program_space to
10613 get_svr4_info.
10614 (svr4_clear_solib): Likewise.
10615
7905fc35
PA
106162019-04-22 Pedro Alves <palves@redhat.com>
10617
10618 * solib-svr4.c (svr4_free_objfile_observer): New.
10619 (probe_and_action::objfile): New field.
10620 (probes_table_htab_remove_objfile_probes)
10621 (probes_table_remove_objfile_probes): New functions.
10622 (register_solib_event_probe): Add 'objfile' parameter. Store it
10623 in the new probe_and_action. Don't store the probe in 'lookup'.
10624 (svr4_create_probe_breakpoints): Pass objfile to
10625 register_solib_event_probe.
10626 (_initialize_svr4_solib): Register a free_objfile observer.
10627
fb881986
TT
106282019-04-19 Tom Tromey <tom@tromey.com>
10629
10630 * common/queue.h: Remove.
10631
8732db6c
TT
106322019-04-19 Tom Tromey <tom@tromey.com>
10633
10634 * event-loop.c: Don't include "common/queue.h".
10635
97dfbadd
TT
106362019-04-19 Tom Tromey <tom@tromey.com>
10637
10638 * remote.c (remote_target): Use delete.
10639 * remote-notif.h: Include <list>, not "common/queue.h".
10640 (notif_client_p): Remove typedef.
10641 (remote_notif_state): Add constructor, destructor, initializer.
10642 <notif_queue>: Now a std::list.
10643 (remote_notif_state_xfree): Don't declare.
10644 * remote-notif.c (remote_notif_process, handle_notification)
10645 (remote_notif_state_allocate): Update.
10646 (~remote_notif_state): Rename from remote_notif_state_xfree.
10647
cf250e36
TT
106482019-04-19 Tom Tromey <tom@tromey.com>
10649
10650 * symfile.c (reread_symbols): Update.
10651 * objfiles.c (objfile_register_static_link)
10652 (objfile_lookup_static_link): Update
10653 (~objfile) Don't delete static_links.
10654 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10655
61f4b350
TT
106562019-04-19 Tom Tromey <tom@tromey.com>
10657
10658 * type-stack.h (struct type_stack) <insert>: Constify string.
10659 * type-stack.c (type_stack::insert): Constify string.
10660 * gdbtypes.h (lookup_template_type): Update.
10661 (address_space_name_to_int): Update.
10662 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10663 const.
10664 (lookup_template_type): Make name const.
10665 * c-exp.y: Update rules.
10666 (lex_one_token, classify_name, classify_inner_name)
10667 (c_print_token): Update.
10668 * p-exp.y: Update rules.
10669 (yylex): Update.
10670 * f-exp.y: Update rules.
10671 (yylex): Update.
10672 * d-exp.y: Update rules.
10673 (lex_one_token, classify_name, classify_inner_name): Update.
10674 * parse.c (write_dollar_variable, copy_name): Return std::string.
10675 * parser-defs.h (copy_name): Change return type.
10676 * m2-exp.y: Update rules.
10677 (yylex): Update.
10678 * go-exp.y (lex_one_token): Update.
10679 Update rules.
10680 (classify_unsafe_function, classify_packaged_name)
10681 (classify_name, yylex): Update.
10682
189b8c2e
ST
106832019-04-19 Sergei Trofimovich <siarheit@google.com>
10684
10685 * configure.ac: add --enable-source-highlight switch.
10686 * configure: Regenerate.
10687 * top.c (print_gdb_version): plumb --enable-source-highlight
10688 status to "show configuration".
10689
8ecb59f8
TT
106902019-04-19 Tom Tromey <tromey@adacore.com>
10691
10692 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10693 Check ADA_TYPE_P.
10694 (empty_record, ada_template_to_fixed_record_type_1)
10695 (template_to_static_fixed_type)
10696 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10697 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10698 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10699 macros.
10700
62160ec9
TT
107012019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10702
10703 PR symtab/24423:
10704 * source.c (print_source_lines_base): Advance "iter" when a
10705 control character is seen.
10706
f2ae8bc8
PW
107072019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10708
10709 * inferior.h (struct infcall_suspend_state_deleter):
10710 Catch exception in destructor to avoid crash.
10711
d563b953
PW
107122019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10713
10714 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10715 close to the add_com "shell".
10716
dc34c897
TT
107172019-04-18 Tom Tromey <tromey@adacore.com>
10718
10719 * process-stratum-target.h (class process_stratum_target)
10720 <stratum>: Add "final".
10721
a12e5744
TT
107222019-04-17 Tom Tromey <tromey@adacore.com>
10723
10724 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10725 against nullptr before use.
10726
a7e559cc
AH
107272019-04-17 Alan Hayward <alan.hayward@arm.com>
10728
10729 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10730
c01660c6
AB
107312019-04-17 Jim Wilson <jimw@sifive.com>
10732 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10735 code read might fail, assume 4-byte breakpoint in that case.
10736
4aa866af
LS
107372019-04-15 Leszek Swirski <leszeks@google.com>
10738
10739 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10740 rather than a hand-rolled POD check when checking for forced MEMORY
10741 classification.
10742
48574d91
AH
107432019-04-15 Alan Hayward <alan.hayward@arm.com>
10744
10745 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10746 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10747 function.
10748 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10749 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10750 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10751 declaration.
10752
4da037ef
AH
107532019-04-15 Alan Hayward <alan.hayward@arm.com>
10754
10755 * aarch64-linux-nat.c
10756 (aarch64_linux_nat_target::thread_architecture): Add override.
10757 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10758 each VQ.
10759
ccb8d7e8
AH
107602019-04-15 Alan Hayward <alan.hayward@arm.com>
10761
10762 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10763
35add35e
AB
107642019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10767 target types of size 96-bits, add some additional comments, and
10768 check that the builtin type we found was the correct size.
10769
51196bbc
EZ
107702019-04-12 Eli Zaretskii <eliz@gnu.org>
10771
10772 * utils.c (prompt_for_continue): Don't restore the styling at the
10773 end, as applied_style has the wrong value. This fixes styling in
10774 long lists of file names that are interrupted by the "Continue?"
10775 prompt.
10776
62253a61
AB
107772019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10778
10779 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10780 * c-lang.c (c_language_defn): Likewise.
10781 (cplus_language_defn): Likewise.
10782 (asm_language_defn): Likewise.
10783 (minimal_language_defn): Likewise.
10784 * d-lang.c (d_language_defn): Likewise.
10785 * f-lang.c (f_language_defn): Likewise.
10786 * go-lang.c (go_language_defn): Likewise.
10787 * language.c (unknown_language_defn): Likewise.
10788 (auto_language_defn): Likewise.
10789 * language.h (struct language_defn): Remove la_magic field.
10790 (LANG_MAGIC): Delete.
10791 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10792 * objc-lang.c (objc_language_defn): Likewise.
10793 * opencl-lang.c (opencl_language_defn): Likewise.
10794 * p-lang.c (pascal_language_defn): Likewise.
10795 * rust-lang.c (rust_language_defn): Likewise.
10796
a9158a86
AB
107972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * riscv-tdep.c (riscv_type_align): New function.
10800 (riscv_type_alignment): Delete.
10801 (riscv_arg_location): Use 'type_align'.
10802 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10803
41077b66
AB
108042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * gdbtypes.c (type_align): A struct with no non-static fields also
10807 has alignment of 1.
10808
9f0272f8
AB
108092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10812 component to 0.
10813 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10814 member.
10815 (riscv_struct_info::analyse): New implementation using new
10816 analyse_inner member function.
10817 (riscv_struct_info::field_offset): New member function.
10818 (riscv_struct_info::m_offsets): New member variable.
10819 (riscv_struct_info::analyse_inner): New private member function,
10820 takes the old implementation of riscv_struct_info::analyse but
10821 extended to track field offsets.
10822 (riscv_call_arg_struct): Update the struct folding special cases
10823 to handle cases where empty C++ structs, which are non-zero
10824 length, are found.
10825 (riscv_arg_location): Initialise the length of each location, a
10826 non-zero length now indicates the location is in use.
10827 (riscv_push_dummy_call): Allow for the first location having a
10828 non-zero offset when setting up arguments.
10829 (riscv_return_value): Likewise, but for return values.
10830
02cf60c7
TT
108312019-04-11 Tom Tromey <tromey@adacore.com>
10832
10833 * utils.c (internal_vproblem): Make "msg" const.
10834
68811f8f
AH
108352019-04-11 Alan Hayward <alan.hayward@arm.com>
10836
10837 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10838 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10839 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10840 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10841
3f52fdbc
KB
108422019-04-10 Kevin Buettner <kevinb@redhat.com>
10843
10844 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10845 function.
10846 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10847 of amd64_collect_native_gregset.
10848 (amd64_linux_nat_target::store_registers): Likewise.
10849
e9ad22ee
TT
108502019-04-10 Tom Tromey <tom@tromey.com>
10851
10852 * symtab.c (lookup_global_symbol_from_objfile)
10853 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10854 * objfiles.h (class separate_debug_iterator): New.
10855 (class separate_debug_range): New.
10856 (struct objfile) <separate_debug_objfiles>: New method.
10857 (objfile_separate_debug_iterate): Don't declare.
10858 * objfiles.c (separate_debug_iterator::operator++): Rename from
10859 objfile_separate_debug_iterate.
10860 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10861 iterator.
10862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10863 iterator.
10864
ee371134
TT
108652019-04-10 Tom Tromey <tom@tromey.com>
10866
10867 * symfile.c (reread_symbols): Remove old comment.
10868 * objfiles.c (free_all_objfiles): Fix a typo.
10869
bf227d61
TT
108702019-04-10 Tom Tromey <tom@tromey.com>
10871
10872 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10873 * minsyms.c (lookup_minimal_symbol): Use foreach.
10874 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10875 (lookup_minimal_symbol_solib_trampoline): Likewise.
10876 * symfile.c (reread_symbols): Use foreach.
10877
8dc433a0
TT
108782019-04-09 Ivan Begert <ivanbegert@gmail.com>
10879 Tom Tromey <tromey@adacore.com>
10880
10881 PR rust/24414:
10882 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10883 (rust_lex_int_test): Change "value" to be LONGEST.
10884 (rust_lex_tests): Add test for long integer literal.
10885
9ab8741a
TT
108862019-04-09 Tom Tromey <tromey@adacore.com>
10887
10888 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10889 to bool.
10890 (extended_remote_target::attach): Update.
10891 (remote_target::remote_notice_new_inferior): Update.
10892 (remote_target::add_current_inferior_and_thread): Update.
10893 * inferior.c (exit_inferior_1): Use "false".
10894 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10895
e242fd12
SM
108962019-04-09 Simon Marchi <simon.marchi@efficios.com>
10897
9ca1957f 10898 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10899 the "start" command.
10900
2b0c8b01
KB
109012019-04-08 Kevin Buettner <kevinb@redhat.com>
10902
10903 * python/py-inferior.c (infpy_thread_from_thread_handle):
10904 Adjust comments to reflect renaming of thread_from_thread_handle
10905 to thread_from_handle. Adjust keywords. Fix type error message.
10906 (inferior_object_methods): Add thread_from_handle. Retain
10907 thread_from_thread_handle, but mark it as deprecated.
10908
50a82723
KB
109092019-04-08 Kevin Buettner <kevinb@redhat.com>
10910
10911 * gdbthread.h (find_thread_by_handle): Revise declaration.
10912 * thread.c (find_thread_by_handle): Likewise. Adjust
10913 implementation too.
10914 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10915 support for buffer objects as handles.
10916
cf63b016
KB
109172019-04-08 Kevin Buettner <kevinb@redhat.com>
10918
10919 * python/py-infthread.c (thpy_thread_handle): New function.
10920 (thread_object_methods): Register thpy_thread_handle.
10921
3d6c6204
KB
109222019-04-08 Kevin Buettner <kevinb@redhat.com>
10923
10924 * gdbthread.h (thread_to_thread_handle): Declare.
10925 * thread.c (gdbtypes.h): Include.
10926 (thread_to_thread_handle): New function.
10927
10928 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10929 (target_thread_info_to_thread_handle): Declare.
10930 * target.c (target_thread_info_to_thread_handle): New function.
10931 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10932 * target-delegates.c: Regenerate.
10933
10934 * linux-thread-db.c (class thread_db_target): Add method
10935 thread_info_to_thread_handle.
10936 (thread_db_target::thread_info_to_thread_handle): Define.
10937 * remote.c (class remote_target): Add new method
10938 thread_info_to_thread_handle.
10939 (remote_target::thread_info_to_thread_handle): Define.
10940
56be6ea8
PA
109412019-04-08 Pedro Alves <palves@redhat.com>
10942
10943 * common/common-exceptions.c (throw_exception): Don't create
10944 named object to throw; throw directly.
10945 (throw_it): Likewise. Don't initialize gdb_exception::message
10946 here, with new; pass FMT and AP to the ctor instead.
10947 * common/common-exceptions.h: Include <string>.
10948 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10949 const char *, va_list)): New ctor. Use std::make_shared.
10950 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10951 errors)): Delete.
10952 (gdb_exception_error::gdb_exception_error(enum errors, const char
10953 *, va_list)): New.
10954 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10955 Add assertion.
10956 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10957 errors)): Delete.
10958 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10959 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10960 Add assertion.
10961
eedc3f4f
TT
109622019-04-08 Tom Tromey <tom@tromey.com>
10963
10964 * valops.c (value_rtti_indirect_type): Replace throw_exception
10965 with throw.
10966 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10967 with throw.
10968 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10969 throw.
10970 * target.c (target_translate_tls_address): Replace throw_exception
10971 with throw.
10972 * stack.c (frame_apply_command_count): Replace throw_exception
10973 with throw.
10974 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10975 throw.
10976 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10977 with throw.
10978 * rs6000-tdep.c (rs6000_frame_cache)
10979 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10980 * remote.c: Replace throw_exception with throw.
10981 * record-full.c (record_full_message, record_full_wait_1)
10982 (record_full_restore): Replace throw_exception with throw.
10983 * record-btrace.c:
10984 (get_thread_current_frame_id, record_btrace_start_replaying)
10985 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10986 (cmd_record_btrace_start): Replace throw_exception with throw.
10987 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10988 throw.
10989 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10990 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10991 * linespec.c:
10992 (find_linespec_symbols): Replace throw_exception with throw.
10993 * infrun.c (displaced_step_prepare, resume): Replace
10994 throw_exception with throw.
10995 * infcmd.c (post_create_inferior): Replace throw_exception with
10996 throw.
10997 * inf-loop.c (inferior_event_handler): Replace throw_exception
10998 with throw.
10999 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11000 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11001 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11002 (get_prev_frame_always, get_frame_pc_if_available)
11003 (get_frame_address_in_block_if_available, get_frame_language):
11004 Replace throw_exception with throw.
11005 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11006 throw_exception with throw.
11007 * eval.c (fetch_subexp_value, evaluate_var_value)
11008 (evaluate_funcall, evaluate_subexp_standard): Replace
11009 throw_exception with throw.
11010 * dwarf2loc.c (call_site_find_chain)
11011 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11012 Replace throw_exception with throw.
11013 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11014 with throw.
11015 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11016 throw.
11017 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11018 * completer.c (complete_line_internal): Replace throw_exception
11019 with throw.
11020 * compile/compile-object-run.c (compile_object_run): Replace
11021 throw_exception with throw.
11022 * cli/cli-script.c (process_next_line): Replace throw_exception
11023 with throw.
11024 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11025 (btrace_enable, btrace_maint_update_pt_packets): Replace
11026 throw_exception with throw.
11027 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11028 throw_exception with throw.
11029 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11030 throw_exception with throw.
11031 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11032 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11033 * aarch64-tdep.c (aarch64_make_prologue_cache)
11034 (aarch64_make_stub_cache): Replace throw_exception with throw.
11035
26003a20
TT
110362019-04-08 Tom Tromey <tom@tromey.com>
11037
11038 * common/common-exceptions.c (throw_exception): Rename from
11039 throw_exception_cxx. Remove old copy. Make argument const.
11040 (throw_it): Create and throw exception objects directly.
11041 * common/common-exceptions.h (throw_exception): Make argument
11042 const.
11043 (struct gdb_exception_error): Add constructor.
11044 (struct gdb_exception_quit): Add constructor.
11045
d272eb37
TT
110462019-04-08 Tom Tromey <tom@tromey.com>
11047
11048 * common/common-exceptions.h (exception_rethrow): Don't declare.
11049 (TRY_SJLJ): Update comment.
11050 (TRY, CATCH, END_CATCH): Remove.
11051 * common/common-exceptions.c (exception_rethrow): Remove.
11052
230d2906
TT
110532019-04-08 Tom Tromey <tom@tromey.com>
11054
11055 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11056 Remove.
11057 (gdb_exception_error): Rename from
11058 gdb_exception_RETURN_MASK_ERROR.
11059 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11060 (gdb_quit_bad_alloc): Update.
11061 * aarch64-tdep.c: Update.
11062 * ada-lang.c: Update.
11063 * ada-typeprint.c: Update.
11064 * ada-valprint.c: Update.
11065 * amd64-tdep.c: Update.
11066 * arch-utils.c: Update.
11067 * break-catch-throw.c: Update.
11068 * breakpoint.c: Update.
11069 * btrace.c: Update.
11070 * c-varobj.c: Update.
11071 * cli/cli-cmds.c: Update.
11072 * cli/cli-interp.c: Update.
11073 * cli/cli-script.c: Update.
11074 * common/common-exceptions.c: Update.
11075 * common/new-op.c: Update.
11076 * common/selftest.c: Update.
11077 * compile/compile-c-symbols.c: Update.
11078 * compile/compile-cplus-symbols.c: Update.
11079 * compile/compile-object-load.c: Update.
11080 * compile/compile-object-run.c: Update.
11081 * completer.c: Update.
11082 * corelow.c: Update.
11083 * cp-abi.c: Update.
11084 * cp-support.c: Update.
11085 * cp-valprint.c: Update.
11086 * darwin-nat.c: Update.
11087 * disasm-selftests.c: Update.
11088 * dtrace-probe.c: Update.
11089 * dwarf-index-cache.c: Update.
11090 * dwarf-index-write.c: Update.
11091 * dwarf2-frame-tailcall.c: Update.
11092 * dwarf2-frame.c: Update.
11093 * dwarf2loc.c: Update.
11094 * dwarf2read.c: Update.
11095 * eval.c: Update.
11096 * event-loop.c: Update.
11097 * event-top.c: Update.
11098 * exec.c: Update.
11099 * f-valprint.c: Update.
11100 * fbsd-tdep.c: Update.
11101 * frame-unwind.c: Update.
11102 * frame.c: Update.
11103 * gdbtypes.c: Update.
11104 * gnu-v3-abi.c: Update.
11105 * guile/guile-internal.h: Update.
11106 * guile/scm-block.c: Update.
11107 * guile/scm-breakpoint.c: Update.
11108 * guile/scm-cmd.c: Update.
11109 * guile/scm-disasm.c: Update.
11110 * guile/scm-frame.c: Update.
11111 * guile/scm-lazy-string.c: Update.
11112 * guile/scm-math.c: Update.
11113 * guile/scm-param.c: Update.
11114 * guile/scm-ports.c: Update.
11115 * guile/scm-pretty-print.c: Update.
11116 * guile/scm-symbol.c: Update.
11117 * guile/scm-symtab.c: Update.
11118 * guile/scm-type.c: Update.
11119 * guile/scm-value.c: Update.
11120 * i386-linux-tdep.c: Update.
11121 * i386-tdep.c: Update.
11122 * inf-loop.c: Update.
11123 * infcall.c: Update.
11124 * infcmd.c: Update.
11125 * infrun.c: Update.
11126 * jit.c: Update.
11127 * language.c: Update.
11128 * linespec.c: Update.
11129 * linux-fork.c: Update.
11130 * linux-nat.c: Update.
11131 * linux-tdep.c: Update.
11132 * linux-thread-db.c: Update.
11133 * main.c: Update.
11134 * mi/mi-cmd-break.c: Update.
11135 * mi/mi-cmd-stack.c: Update.
11136 * mi/mi-interp.c: Update.
11137 * mi/mi-main.c: Update.
11138 * objc-lang.c: Update.
11139 * p-valprint.c: Update.
11140 * parse.c: Update.
11141 * ppc-linux-tdep.c: Update.
11142 * printcmd.c: Update.
11143 * python/py-arch.c: Update.
11144 * python/py-breakpoint.c: Update.
11145 * python/py-cmd.c: Update.
11146 * python/py-finishbreakpoint.c: Update.
11147 * python/py-frame.c: Update.
11148 * python/py-framefilter.c: Update.
11149 * python/py-gdb-readline.c: Update.
11150 * python/py-inferior.c: Update.
11151 * python/py-infthread.c: Update.
11152 * python/py-lazy-string.c: Update.
11153 * python/py-linetable.c: Update.
11154 * python/py-objfile.c: Update.
11155 * python/py-param.c: Update.
11156 * python/py-prettyprint.c: Update.
11157 * python/py-progspace.c: Update.
11158 * python/py-record-btrace.c: Update.
11159 * python/py-record.c: Update.
11160 * python/py-symbol.c: Update.
11161 * python/py-type.c: Update.
11162 * python/py-unwind.c: Update.
11163 * python/py-utils.c: Update.
11164 * python/py-value.c: Update.
11165 * python/python.c: Update.
11166 * record-btrace.c: Update.
11167 * record-full.c: Update.
11168 * remote-fileio.c: Update.
11169 * remote.c: Update.
11170 * riscv-tdep.c: Update.
11171 * rs6000-aix-tdep.c: Update.
11172 * rs6000-tdep.c: Update.
11173 * rust-exp.y: Update.
11174 * rust-lang.c: Update.
11175 * s390-tdep.c: Update.
11176 * selftest-arch.c: Update.
11177 * solib-dsbt.c: Update.
11178 * solib-frv.c: Update.
11179 * solib-spu.c: Update.
11180 * solib-svr4.c: Update.
11181 * solib.c: Update.
11182 * sparc64-linux-tdep.c: Update.
11183 * stack.c: Update.
11184 * symfile-mem.c: Update.
11185 * symmisc.c: Update.
11186 * target.c: Update.
11187 * thread.c: Update.
11188 * top.c: Update.
11189 * tracefile-tfile.c: Update.
11190 * tui/tui.c: Update.
11191 * typeprint.c: Update.
11192 * unittests/cli-utils-selftests.c: Update.
11193 * unittests/parse-connection-spec-selftests.c: Update.
11194 * valops.c: Update.
11195 * valprint.c: Update.
11196 * value.c: Update.
11197 * varobj.c: Update.
11198 * windows-nat.c: Update.
11199 * x86-linux-nat.c: Update.
11200 * xml-support.c: Update.
11201
a70b8144
TT
112022019-04-08 Tom Tromey <tom@tromey.com>
11203
11204 * xml-support.c: Use C++ exception handling.
11205 * x86-linux-nat.c: Use C++ exception handling.
11206 * windows-nat.c: Use C++ exception handling.
11207 * varobj.c: Use C++ exception handling.
11208 * value.c: Use C++ exception handling.
11209 * valprint.c: Use C++ exception handling.
11210 * valops.c: Use C++ exception handling.
11211 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11212 handling.
11213 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11214 * typeprint.c: Use C++ exception handling.
11215 * tui/tui.c: Use C++ exception handling.
11216 * tracefile-tfile.c: Use C++ exception handling.
11217 * top.c: Use C++ exception handling.
11218 * thread.c: Use C++ exception handling.
11219 * target.c: Use C++ exception handling.
11220 * symmisc.c: Use C++ exception handling.
11221 * symfile-mem.c: Use C++ exception handling.
11222 * stack.c: Use C++ exception handling.
11223 * sparc64-linux-tdep.c: Use C++ exception handling.
11224 * solib.c: Use C++ exception handling.
11225 * solib-svr4.c: Use C++ exception handling.
11226 * solib-spu.c: Use C++ exception handling.
11227 * solib-frv.c: Use C++ exception handling.
11228 * solib-dsbt.c: Use C++ exception handling.
11229 * selftest-arch.c: Use C++ exception handling.
11230 * s390-tdep.c: Use C++ exception handling.
11231 * rust-lang.c: Use C++ exception handling.
11232 * rust-exp.y: Use C++ exception handling.
11233 * rs6000-tdep.c: Use C++ exception handling.
11234 * rs6000-aix-tdep.c: Use C++ exception handling.
11235 * riscv-tdep.c: Use C++ exception handling.
11236 * remote.c: Use C++ exception handling.
11237 * remote-fileio.c: Use C++ exception handling.
11238 * record-full.c: Use C++ exception handling.
11239 * record-btrace.c: Use C++ exception handling.
11240 * python/python.c: Use C++ exception handling.
11241 * python/py-value.c: Use C++ exception handling.
11242 * python/py-utils.c: Use C++ exception handling.
11243 * python/py-unwind.c: Use C++ exception handling.
11244 * python/py-type.c: Use C++ exception handling.
11245 * python/py-symbol.c: Use C++ exception handling.
11246 * python/py-record.c: Use C++ exception handling.
11247 * python/py-record-btrace.c: Use C++ exception handling.
11248 * python/py-progspace.c: Use C++ exception handling.
11249 * python/py-prettyprint.c: Use C++ exception handling.
11250 * python/py-param.c: Use C++ exception handling.
11251 * python/py-objfile.c: Use C++ exception handling.
11252 * python/py-linetable.c: Use C++ exception handling.
11253 * python/py-lazy-string.c: Use C++ exception handling.
11254 * python/py-infthread.c: Use C++ exception handling.
11255 * python/py-inferior.c: Use C++ exception handling.
11256 * python/py-gdb-readline.c: Use C++ exception handling.
11257 * python/py-framefilter.c: Use C++ exception handling.
11258 * python/py-frame.c: Use C++ exception handling.
11259 * python/py-finishbreakpoint.c: Use C++ exception handling.
11260 * python/py-cmd.c: Use C++ exception handling.
11261 * python/py-breakpoint.c: Use C++ exception handling.
11262 * python/py-arch.c: Use C++ exception handling.
11263 * printcmd.c: Use C++ exception handling.
11264 * ppc-linux-tdep.c: Use C++ exception handling.
11265 * parse.c: Use C++ exception handling.
11266 * p-valprint.c: Use C++ exception handling.
11267 * objc-lang.c: Use C++ exception handling.
11268 * mi/mi-main.c: Use C++ exception handling.
11269 * mi/mi-interp.c: Use C++ exception handling.
11270 * mi/mi-cmd-stack.c: Use C++ exception handling.
11271 * mi/mi-cmd-break.c: Use C++ exception handling.
11272 * main.c: Use C++ exception handling.
11273 * linux-thread-db.c: Use C++ exception handling.
11274 * linux-tdep.c: Use C++ exception handling.
11275 * linux-nat.c: Use C++ exception handling.
11276 * linux-fork.c: Use C++ exception handling.
11277 * linespec.c: Use C++ exception handling.
11278 * language.c: Use C++ exception handling.
11279 * jit.c: Use C++ exception handling.
11280 * infrun.c: Use C++ exception handling.
11281 * infcmd.c: Use C++ exception handling.
11282 * infcall.c: Use C++ exception handling.
11283 * inf-loop.c: Use C++ exception handling.
11284 * i386-tdep.c: Use C++ exception handling.
11285 * i386-linux-tdep.c: Use C++ exception handling.
11286 * guile/scm-value.c: Use C++ exception handling.
11287 * guile/scm-type.c: Use C++ exception handling.
11288 * guile/scm-symtab.c: Use C++ exception handling.
11289 * guile/scm-symbol.c: Use C++ exception handling.
11290 * guile/scm-pretty-print.c: Use C++ exception handling.
11291 * guile/scm-ports.c: Use C++ exception handling.
11292 * guile/scm-param.c: Use C++ exception handling.
11293 * guile/scm-math.c: Use C++ exception handling.
11294 * guile/scm-lazy-string.c: Use C++ exception handling.
11295 * guile/scm-frame.c: Use C++ exception handling.
11296 * guile/scm-disasm.c: Use C++ exception handling.
11297 * guile/scm-cmd.c: Use C++ exception handling.
11298 * guile/scm-breakpoint.c: Use C++ exception handling.
11299 * guile/scm-block.c: Use C++ exception handling.
11300 * guile/guile-internal.h: Use C++ exception handling.
11301 * gnu-v3-abi.c: Use C++ exception handling.
11302 * gdbtypes.c: Use C++ exception handling.
11303 * frame.c: Use C++ exception handling.
11304 * frame-unwind.c: Use C++ exception handling.
11305 * fbsd-tdep.c: Use C++ exception handling.
11306 * f-valprint.c: Use C++ exception handling.
11307 * exec.c: Use C++ exception handling.
11308 * event-top.c: Use C++ exception handling.
11309 * event-loop.c: Use C++ exception handling.
11310 * eval.c: Use C++ exception handling.
11311 * dwarf2read.c: Use C++ exception handling.
11312 * dwarf2loc.c: Use C++ exception handling.
11313 * dwarf2-frame.c: Use C++ exception handling.
11314 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11315 * dwarf-index-write.c: Use C++ exception handling.
11316 * dwarf-index-cache.c: Use C++ exception handling.
11317 * dtrace-probe.c: Use C++ exception handling.
11318 * disasm-selftests.c: Use C++ exception handling.
11319 * darwin-nat.c: Use C++ exception handling.
11320 * cp-valprint.c: Use C++ exception handling.
11321 * cp-support.c: Use C++ exception handling.
11322 * cp-abi.c: Use C++ exception handling.
11323 * corelow.c: Use C++ exception handling.
11324 * completer.c: Use C++ exception handling.
11325 * compile/compile-object-run.c: Use C++ exception handling.
11326 * compile/compile-object-load.c: Use C++ exception handling.
11327 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11328 * compile/compile-c-symbols.c: Use C++ exception handling.
11329 * common/selftest.c: Use C++ exception handling.
11330 * common/new-op.c: Use C++ exception handling.
11331 * cli/cli-script.c: Use C++ exception handling.
11332 * cli/cli-interp.c: Use C++ exception handling.
11333 * cli/cli-cmds.c: Use C++ exception handling.
11334 * c-varobj.c: Use C++ exception handling.
11335 * btrace.c: Use C++ exception handling.
11336 * breakpoint.c: Use C++ exception handling.
11337 * break-catch-throw.c: Use C++ exception handling.
11338 * arch-utils.c: Use C++ exception handling.
11339 * amd64-tdep.c: Use C++ exception handling.
11340 * ada-valprint.c: Use C++ exception handling.
11341 * ada-typeprint.c: Use C++ exception handling.
11342 * ada-lang.c: Use C++ exception handling.
11343 * aarch64-tdep.c: Use C++ exception handling.
11344
3d6e9d23
TT
113452019-04-08 Tom Tromey <tom@tromey.com>
11346
11347 * xml-support.c (gdb_xml_parser::parse): Update.
11348 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11349 * value.c (show_convenience): Update.
11350 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11351 (test_parse_flags_qcs): Update.
11352 * thread.c (thr_try_catch_cmd): Update.
11353 * target.c (target_translate_tls_address): Update.
11354 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11355 (info_frame_command_core, frame_apply_command_count): Update.
11356 * rust-exp.y (rust_lex_exception_test): Update.
11357 * riscv-tdep.c (riscv_print_one_register_info): Update.
11358 * remote.c (remote_target::enable_btrace): Update.
11359 * record-btrace.c (record_btrace_enable_warn): Update.
11360 * python/py-utils.c (gdbpy_convert_exception): Update.
11361 * printcmd.c (do_one_display, print_variable_and_value): Update.
11362 * mi/mi-main.c (mi_print_exception): Update.
11363 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11364 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11365 * linux-nat.c (linux_nat_target::attach): Update.
11366 * linux-fork.c (class scoped_switch_fork_info): Update.
11367 * infrun.c (displaced_step_prepare): Update.
11368 * infcall.c (call_function_by_hand_dummy): Update.
11369 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11370 * gnu-v3-abi.c (print_one_vtable): Update.
11371 * frame.c (get_prev_frame_always): Update.
11372 * f-valprint.c (info_common_command_for_block): Update.
11373 * exec.c (try_open_exec_file): Update.
11374 * exceptions.c (print_exception, exception_print)
11375 (exception_fprintf, exception_print_same): Update.
11376 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11377 * dwarf-index-cache.c (index_cache::store)
11378 (index_cache::lookup_gdb_index): Update.
11379 * darwin-nat.c (maybe_cache_shell): Update.
11380 * cp-valprint.c (cp_print_value_fields): Update.
11381 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11382 (gcc_cplus_symbol_address): Update.
11383 * compile/compile-c-symbols.c (gcc_convert_symbol)
11384 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11385 * common/selftest.c: Update.
11386 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11387 a std::string.
11388 (exception_try_scope_entry, exception_try_scope_exit): Don't
11389 declare.
11390 (struct exception_try_scope): Remove.
11391 (TRY): Don't use exception_try_scope.
11392 (struct gdb_exception): Add constructor, operator=.
11393 <what>: New method.
11394 (struct gdb_exception_RETURN_MASK_ALL)
11395 (struct gdb_exception_RETURN_MASK_ERROR)
11396 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11397 (struct gdb_quit_bad_alloc): Update.
11398 * common/common-exceptions.c (exception_none): Change
11399 initializer.
11400 (struct catcher) <state, exception>: Initialize inline.
11401 <prev>: Remove member.
11402 (current_catcher): Remove.
11403 (catchers): New global.
11404 (exceptions_state_mc_init): Simplify.
11405 (catcher_pop): Remove.
11406 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11407 (try_scope_depth, exception_try_scope_entry)
11408 (exception_try_scope_exit): Remove.
11409 (throw_exception_sjlj): Update.
11410 (exception_messages, exception_messages_size): Remove.
11411 (throw_it): Simplify.
11412 (gdb_exception_sliced_copy): Remove.
11413 (throw_exception_cxx): Update.
11414 * cli/cli-script.c (script_from_file): Update.
11415 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11416 Update.
11417 * ada-valprint.c (ada_val_print): Update.
11418 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11419 (create_excep_cond_exprs): Update.
11420
c5c10118
TT
114212019-04-08 Tom Tromey <tom@tromey.com>
11422
11423 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11424 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11425 (TRY, CATCH, END_CATCH): Remove some definitions.
11426 * common/common-exceptions.c: Don't use GDB_XCPT.
11427 (catcher_list_size): Remove.
11428 (throw_exception, throw_it): Simplify.
11429
4de283e4
TT
114302019-04-05 Tom Tromey <tom@tromey.com>
11431
11432 Revert the header-sorting patch.
11433 * ft32-tdep.c: Revert.
11434 * frv-tdep.c: Revert.
11435 * frv-linux-tdep.c: Revert.
11436 * frame.c: Revert.
11437 * frame-unwind.c: Revert.
11438 * frame-base.c: Revert.
11439 * fork-child.c: Revert.
11440 * findvar.c: Revert.
11441 * findcmd.c: Revert.
11442 * filesystem.c: Revert.
11443 * filename-seen-cache.h: Revert.
11444 * filename-seen-cache.c: Revert.
11445 * fbsd-tdep.c: Revert.
11446 * fbsd-nat.h: Revert.
11447 * fbsd-nat.c: Revert.
11448 * f-valprint.c: Revert.
11449 * f-typeprint.c: Revert.
11450 * f-lang.c: Revert.
11451 * extension.h: Revert.
11452 * extension.c: Revert.
11453 * extension-priv.h: Revert.
11454 * expprint.c: Revert.
11455 * exec.h: Revert.
11456 * exec.c: Revert.
11457 * exceptions.c: Revert.
11458 * event-top.c: Revert.
11459 * event-loop.c: Revert.
11460 * eval.c: Revert.
11461 * elfread.c: Revert.
11462 * dwarf2read.h: Revert.
11463 * dwarf2read.c: Revert.
11464 * dwarf2loc.c: Revert.
11465 * dwarf2expr.h: Revert.
11466 * dwarf2expr.c: Revert.
11467 * dwarf2-frame.c: Revert.
11468 * dwarf2-frame-tailcall.c: Revert.
11469 * dwarf-index-write.h: Revert.
11470 * dwarf-index-write.c: Revert.
11471 * dwarf-index-common.c: Revert.
11472 * dwarf-index-cache.h: Revert.
11473 * dwarf-index-cache.c: Revert.
11474 * dummy-frame.c: Revert.
11475 * dtrace-probe.c: Revert.
11476 * disasm.h: Revert.
11477 * disasm.c: Revert.
11478 * disasm-selftests.c: Revert.
11479 * dictionary.c: Revert.
11480 * dicos-tdep.c: Revert.
11481 * demangle.c: Revert.
11482 * dcache.h: Revert.
11483 * dcache.c: Revert.
11484 * darwin-nat.h: Revert.
11485 * darwin-nat.c: Revert.
11486 * darwin-nat-info.c: Revert.
11487 * d-valprint.c: Revert.
11488 * d-namespace.c: Revert.
11489 * d-lang.c: Revert.
11490 * ctf.c: Revert.
11491 * csky-tdep.c: Revert.
11492 * csky-linux-tdep.c: Revert.
11493 * cris-tdep.c: Revert.
11494 * cris-linux-tdep.c: Revert.
11495 * cp-valprint.c: Revert.
11496 * cp-support.c: Revert.
11497 * cp-namespace.c: Revert.
11498 * cp-abi.c: Revert.
11499 * corelow.c: Revert.
11500 * corefile.c: Revert.
11501 * continuations.c: Revert.
11502 * completer.h: Revert.
11503 * completer.c: Revert.
11504 * complaints.c: Revert.
11505 * coffread.c: Revert.
11506 * coff-pe-read.c: Revert.
11507 * cli-out.h: Revert.
11508 * cli-out.c: Revert.
11509 * charset.c: Revert.
11510 * c-varobj.c: Revert.
11511 * c-valprint.c: Revert.
11512 * c-typeprint.c: Revert.
11513 * c-lang.c: Revert.
11514 * buildsym.c: Revert.
11515 * buildsym-legacy.c: Revert.
11516 * build-id.h: Revert.
11517 * build-id.c: Revert.
11518 * btrace.c: Revert.
11519 * bsd-uthread.c: Revert.
11520 * breakpoint.h: Revert.
11521 * breakpoint.c: Revert.
11522 * break-catch-throw.c: Revert.
11523 * break-catch-syscall.c: Revert.
11524 * break-catch-sig.c: Revert.
11525 * blockframe.c: Revert.
11526 * block.c: Revert.
11527 * bfin-tdep.c: Revert.
11528 * bfin-linux-tdep.c: Revert.
11529 * bfd-target.c: Revert.
11530 * bcache.c: Revert.
11531 * ax-general.c: Revert.
11532 * ax-gdb.h: Revert.
11533 * ax-gdb.c: Revert.
11534 * avr-tdep.c: Revert.
11535 * auxv.c: Revert.
11536 * auto-load.c: Revert.
11537 * arm-wince-tdep.c: Revert.
11538 * arm-tdep.c: Revert.
11539 * arm-symbian-tdep.c: Revert.
11540 * arm-pikeos-tdep.c: Revert.
11541 * arm-obsd-tdep.c: Revert.
11542 * arm-nbsd-tdep.c: Revert.
11543 * arm-nbsd-nat.c: Revert.
11544 * arm-linux-tdep.c: Revert.
11545 * arm-linux-nat.c: Revert.
11546 * arm-fbsd-tdep.c: Revert.
11547 * arm-fbsd-nat.c: Revert.
11548 * arm-bsd-tdep.c: Revert.
11549 * arch-utils.c: Revert.
11550 * arc-tdep.c: Revert.
11551 * arc-newlib-tdep.c: Revert.
11552 * annotate.h: Revert.
11553 * annotate.c: Revert.
11554 * amd64-windows-tdep.c: Revert.
11555 * amd64-windows-nat.c: Revert.
11556 * amd64-tdep.c: Revert.
11557 * amd64-sol2-tdep.c: Revert.
11558 * amd64-obsd-tdep.c: Revert.
11559 * amd64-obsd-nat.c: Revert.
11560 * amd64-nbsd-tdep.c: Revert.
11561 * amd64-nbsd-nat.c: Revert.
11562 * amd64-nat.c: Revert.
11563 * amd64-linux-tdep.c: Revert.
11564 * amd64-linux-nat.c: Revert.
11565 * amd64-fbsd-tdep.c: Revert.
11566 * amd64-fbsd-nat.c: Revert.
11567 * amd64-dicos-tdep.c: Revert.
11568 * amd64-darwin-tdep.c: Revert.
11569 * amd64-bsd-nat.c: Revert.
11570 * alpha-tdep.c: Revert.
11571 * alpha-obsd-tdep.c: Revert.
11572 * alpha-nbsd-tdep.c: Revert.
11573 * alpha-mdebug-tdep.c: Revert.
11574 * alpha-linux-tdep.c: Revert.
11575 * alpha-linux-nat.c: Revert.
11576 * alpha-bsd-tdep.c: Revert.
11577 * alpha-bsd-nat.c: Revert.
11578 * aix-thread.c: Revert.
11579 * agent.c: Revert.
11580 * addrmap.c: Revert.
11581 * ada-varobj.c: Revert.
11582 * ada-valprint.c: Revert.
11583 * ada-typeprint.c: Revert.
11584 * ada-tasks.c: Revert.
11585 * ada-lang.c: Revert.
11586 * aarch64-tdep.c: Revert.
11587 * aarch64-ravenscar-thread.c: Revert.
11588 * aarch64-newlib-tdep.c: Revert.
11589 * aarch64-linux-tdep.c: Revert.
11590 * aarch64-linux-nat.c: Revert.
11591 * aarch64-fbsd-tdep.c: Revert.
11592 * aarch64-fbsd-nat.c: Revert.
11593 * aarch32-linux-nat.c: Revert.
11594
d55e5aa6
TT
115952019-04-05 Tom Tromey <tom@tromey.com>
11596
11597 * ft32-tdep.c: Sort headers.
11598 * frv-tdep.c: Sort headers.
11599 * frv-linux-tdep.c: Sort headers.
11600 * frame.c: Sort headers.
11601 * frame-unwind.c: Sort headers.
11602 * frame-base.c: Sort headers.
11603 * fork-child.c: Sort headers.
11604 * findvar.c: Sort headers.
11605 * findcmd.c: Sort headers.
11606 * filesystem.c: Sort headers.
11607 * filename-seen-cache.h: Sort headers.
11608 * filename-seen-cache.c: Sort headers.
11609 * fbsd-tdep.c: Sort headers.
11610 * fbsd-nat.h: Sort headers.
11611 * fbsd-nat.c: Sort headers.
11612 * f-valprint.c: Sort headers.
11613 * f-typeprint.c: Sort headers.
11614 * f-lang.c: Sort headers.
11615 * extension.h: Sort headers.
11616 * extension.c: Sort headers.
11617 * extension-priv.h: Sort headers.
11618 * expprint.c: Sort headers.
11619 * exec.h: Sort headers.
11620 * exec.c: Sort headers.
11621 * exceptions.c: Sort headers.
11622 * event-top.c: Sort headers.
11623 * event-loop.c: Sort headers.
11624 * eval.c: Sort headers.
11625 * elfread.c: Sort headers.
11626 * dwarf2read.h: Sort headers.
11627 * dwarf2read.c: Sort headers.
11628 * dwarf2loc.c: Sort headers.
11629 * dwarf2expr.h: Sort headers.
11630 * dwarf2expr.c: Sort headers.
11631 * dwarf2-frame.c: Sort headers.
11632 * dwarf2-frame-tailcall.c: Sort headers.
11633 * dwarf-index-write.h: Sort headers.
11634 * dwarf-index-write.c: Sort headers.
11635 * dwarf-index-common.c: Sort headers.
11636 * dwarf-index-cache.h: Sort headers.
11637 * dwarf-index-cache.c: Sort headers.
11638 * dummy-frame.c: Sort headers.
11639 * dtrace-probe.c: Sort headers.
11640 * disasm.h: Sort headers.
11641 * disasm.c: Sort headers.
11642 * disasm-selftests.c: Sort headers.
11643 * dictionary.c: Sort headers.
11644 * dicos-tdep.c: Sort headers.
11645 * demangle.c: Sort headers.
11646 * dcache.h: Sort headers.
11647 * dcache.c: Sort headers.
11648 * darwin-nat.h: Sort headers.
11649 * darwin-nat.c: Sort headers.
11650 * darwin-nat-info.c: Sort headers.
11651 * d-valprint.c: Sort headers.
11652 * d-namespace.c: Sort headers.
11653 * d-lang.c: Sort headers.
11654 * ctf.c: Sort headers.
11655 * csky-tdep.c: Sort headers.
11656 * csky-linux-tdep.c: Sort headers.
11657 * cris-tdep.c: Sort headers.
11658 * cris-linux-tdep.c: Sort headers.
11659 * cp-valprint.c: Sort headers.
11660 * cp-support.c: Sort headers.
11661 * cp-namespace.c: Sort headers.
11662 * cp-abi.c: Sort headers.
11663 * corelow.c: Sort headers.
11664 * corefile.c: Sort headers.
11665 * continuations.c: Sort headers.
11666 * completer.h: Sort headers.
11667 * completer.c: Sort headers.
11668 * complaints.c: Sort headers.
11669 * coffread.c: Sort headers.
11670 * coff-pe-read.c: Sort headers.
11671 * cli-out.h: Sort headers.
11672 * cli-out.c: Sort headers.
11673 * charset.c: Sort headers.
11674 * c-varobj.c: Sort headers.
11675 * c-valprint.c: Sort headers.
11676 * c-typeprint.c: Sort headers.
11677 * c-lang.c: Sort headers.
11678 * buildsym.c: Sort headers.
11679 * buildsym-legacy.c: Sort headers.
11680 * build-id.h: Sort headers.
11681 * build-id.c: Sort headers.
11682 * btrace.c: Sort headers.
11683 * bsd-uthread.c: Sort headers.
11684 * breakpoint.h: Sort headers.
11685 * breakpoint.c: Sort headers.
11686 * break-catch-throw.c: Sort headers.
11687 * break-catch-syscall.c: Sort headers.
11688 * break-catch-sig.c: Sort headers.
11689 * blockframe.c: Sort headers.
11690 * block.c: Sort headers.
11691 * bfin-tdep.c: Sort headers.
11692 * bfin-linux-tdep.c: Sort headers.
11693 * bfd-target.c: Sort headers.
11694 * bcache.c: Sort headers.
11695 * ax-general.c: Sort headers.
11696 * ax-gdb.h: Sort headers.
11697 * ax-gdb.c: Sort headers.
11698 * avr-tdep.c: Sort headers.
11699 * auxv.c: Sort headers.
11700 * auto-load.c: Sort headers.
11701 * arm-wince-tdep.c: Sort headers.
11702 * arm-tdep.c: Sort headers.
11703 * arm-symbian-tdep.c: Sort headers.
11704 * arm-pikeos-tdep.c: Sort headers.
11705 * arm-obsd-tdep.c: Sort headers.
11706 * arm-nbsd-tdep.c: Sort headers.
11707 * arm-nbsd-nat.c: Sort headers.
11708 * arm-linux-tdep.c: Sort headers.
11709 * arm-linux-nat.c: Sort headers.
11710 * arm-fbsd-tdep.c: Sort headers.
11711 * arm-fbsd-nat.c: Sort headers.
11712 * arm-bsd-tdep.c: Sort headers.
11713 * arch-utils.c: Sort headers.
11714 * arc-tdep.c: Sort headers.
11715 * arc-newlib-tdep.c: Sort headers.
11716 * annotate.h: Sort headers.
11717 * annotate.c: Sort headers.
11718 * amd64-windows-tdep.c: Sort headers.
11719 * amd64-windows-nat.c: Sort headers.
11720 * amd64-tdep.c: Sort headers.
11721 * amd64-sol2-tdep.c: Sort headers.
11722 * amd64-obsd-tdep.c: Sort headers.
11723 * amd64-obsd-nat.c: Sort headers.
11724 * amd64-nbsd-tdep.c: Sort headers.
11725 * amd64-nbsd-nat.c: Sort headers.
11726 * amd64-nat.c: Sort headers.
11727 * amd64-linux-tdep.c: Sort headers.
11728 * amd64-linux-nat.c: Sort headers.
11729 * amd64-fbsd-tdep.c: Sort headers.
11730 * amd64-fbsd-nat.c: Sort headers.
11731 * amd64-dicos-tdep.c: Sort headers.
11732 * amd64-darwin-tdep.c: Sort headers.
11733 * amd64-bsd-nat.c: Sort headers.
11734 * alpha-tdep.c: Sort headers.
11735 * alpha-obsd-tdep.c: Sort headers.
11736 * alpha-nbsd-tdep.c: Sort headers.
11737 * alpha-mdebug-tdep.c: Sort headers.
11738 * alpha-linux-tdep.c: Sort headers.
11739 * alpha-linux-nat.c: Sort headers.
11740 * alpha-bsd-tdep.c: Sort headers.
11741 * alpha-bsd-nat.c: Sort headers.
11742 * aix-thread.c: Sort headers.
11743 * agent.c: Sort headers.
11744 * addrmap.c: Sort headers.
11745 * ada-varobj.c: Sort headers.
11746 * ada-valprint.c: Sort headers.
11747 * ada-typeprint.c: Sort headers.
11748 * ada-tasks.c: Sort headers.
11749 * ada-lang.c: Sort headers.
11750 * aarch64-tdep.c: Sort headers.
11751 * aarch64-ravenscar-thread.c: Sort headers.
11752 * aarch64-newlib-tdep.c: Sort headers.
11753 * aarch64-linux-tdep.c: Sort headers.
11754 * aarch64-linux-nat.c: Sort headers.
11755 * aarch64-fbsd-tdep.c: Sort headers.
11756 * aarch64-fbsd-nat.c: Sort headers.
11757 * aarch32-linux-nat.c: Sort headers.
11758
699bd4cf
TT
117592019-04-04 Tom Tromey <tom@tromey.com>
11760
11761 * varobj.c (varobj_create): Update.
11762 * rust-exp.y (struct rust_parser) <update_innermost_block,
11763 lookup_symbol>: New methods.
11764 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11765 Rename.
11766 (rust_parser::rust_lookup_type)
11767 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11768 * printcmd.c (display_command, do_one_display): Update.
11769 * parser-defs.h (struct parser_state) <parser_state>: Add
11770 "tracker" parameter.
11771 (block_tracker): New member.
11772 (class innermost_block_tracker) <innermost_block_tracker>: Add
11773 "types" parameter.
11774 <reset>: Remove method.
11775 (innermost_block): Don't declare.
11776 (null_post_parser): Update.
11777 * parse.c (innermost_block): Remove global.
11778 (write_dollar_variable): Update.
11779 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11780 Remove "tracker_types" parameter.
11781 (parse_expression): Add "tracker" parameter.
11782 (parse_expression_for_completion): Update.
11783 (null_post_parser): Add "tracker" parameter.
11784 * p-exp.y: Update rules.
11785 * m2-exp.y: Update rules.
11786 * language.h (struct language_defn) <la_post_parser>: Add
11787 "tracker" parameter.
11788 * go-exp.y: Update rules.
11789 * f-exp.y: Update rules.
11790 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11791 parameter.
11792 * d-exp.y: Update rules.
11793 * c-exp.y: Update rules.
11794 * breakpoint.c (set_breakpoint_condition): Create an
11795 innermost_block_tracker.
11796 (watch_command_1): Likewise.
11797 * ada-lang.c (resolve): Add "tracker" parameter.
11798 (resolve_subexp): Likewise.
11799 * ada-exp.y (write_var_from_sym): Update.
11800
dac43e32
TT
118012019-04-04 Tom Tromey <tom@tromey.com>
11802
11803 * type-stack.h: New file.
11804 * type-stack.c: New file.
11805 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11806 type-stack.h.
11807 (insert_into_type_stack, insert_type, push_type, push_type_int)
11808 (insert_type_address_space, pop_type, pop_type_int)
11809 (pop_typelist, pop_type_stack, append_type_stack)
11810 (push_type_stack, get_type_stack, push_typelist)
11811 (follow_type_instance_flags, follow_types): Don't declare.
11812 * parse.c (type_stack): Remove global.
11813 (parse_exp_in_context): Update.
11814 (insert_into_type_stack, insert_type, push_type, push_type_int)
11815 (insert_type_address_space, pop_type, pop_type_int)
11816 (pop_typelist, pop_type_stack, append_type_stack)
11817 (push_type_stack, get_type_stack, push_typelist)
11818 (follow_type_instance_flags, follow_types): Remove (moved to
11819 type-stack.c).
11820 * f-exp.y (type_stack): New global.
11821 Update rules.
11822 (push_kind_type, f_parse): Update.
11823 * d-exp.y (type_stack): New global.
11824 Update rules.
11825 (d_parse): Update.
11826 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11827 Update rules.
11828 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11829 (HFILES_NO_SRCDIR): Add type-stack.h.
11830
2a612529
TT
118312019-04-04 Tom Tromey <tom@tromey.com>
11832
11833 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11834 (rust_parser::convert_ast_to_expression, rust_parse)
11835 (rust_lex_test_completion, rust_lex_tests): Update.
11836 * parser-defs.h (struct expr_completion_state): New.
11837 (struct parser_state) <parser_state>: Add completion parameter.
11838 <mark_struct_expression, mark_completion_tag>: New methods.
11839 <parse_completion, m_completion_state>: New members.
11840 (prefixify_expression, null_post_parser): Update.
11841 (mark_struct_expression, mark_completion_tag): Don't declare.
11842 * parse.c (parse_completion, expout_last_struct)
11843 (expout_tag_completion_type, expout_completion_name): Remove
11844 globals.
11845 (parser_state::mark_struct_expression)
11846 (parser_state::mark_completion_tag): Now methods.
11847 (prefixify_expression): Add last_struct parameter.
11848 (prefixify_subexp): Likewise.
11849 (parse_exp_1): Update.
11850 (parse_exp_in_context): Add cstate parameter. Update.
11851 (parse_expression_for_completion): Create an
11852 expr_completion_state.
11853 (null_post_parser): Add "completion" parameter.
11854 * p-exp.y: Update rules.
11855 (yylex): Update.
11856 * language.h (struct language_defn) <la_post_parser>: Add
11857 "completing" parameter.
11858 * go-exp.y: Update rules.
11859 (lex_one_token): Update.
11860 * expression.h (parse_completion): Don't declare.
11861 * d-exp.y: Update rules.
11862 (lex_one_token): Update rules.
11863 * c-exp.y: Update rules.
11864 (lex_one_token): Update.
11865 * ada-lang.c (resolve): Add "parse_completion" parameter.
11866 (resolve_subexp): Likewise.
11867 (ada_resolve_function): Likewise.
11868
43476f0b
TT
118692019-04-04 Tom Tromey <tom@tromey.com>
11870
11871 * parser-defs.h (struct parser_state) <start_arglist,
11872 end_arglist>: New methods.
11873 <arglist_len, m_funcall_chain>: New members.
11874 (arglist_len, start_arglist, end_arglist): Don't declare.
11875 * parse.c (arglist_len, funcall_chain): Remove global.
11876 (start_arglist, end_arglist): Remove functions.
11877 (parse_exp_in_context): Update.
11878 * p-exp.y: Update rules.
11879 * m2-exp.y: Update rules.
11880 * go-exp.y: Update rules.
11881 * f-exp.y: Update rules.
11882 * d-exp.y: Update rules.
11883 * c-exp.y: Update rules.
11884
5776fca3
TT
118852019-04-04 Tom Tromey <tom@tromey.com>
11886
11887 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11888 lex_operator, push_back>: New methods.
11889 Update all rules.
11890 (rust_parser::lex_hex, lex_escape): Rename and update.
11891 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11892 (rust_parser::lex_operator): Rename and update.
11893 (rust_parser::lex_number, rustyylex, rustyyerror)
11894 (rust_lex_test_init, rust_lex_test_sequence)
11895 (rust_lex_test_push_back, rust_lex_tests): Update.
11896 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11897 parameter.
11898 <lexptr, prev_lexptr>: New members.
11899 (lexptr, prev_lexptr): Don't declare.
11900 * parse.c (lexptr, prev_lexptr): Remove globals.
11901 (parse_exp_in_context): Update.
11902 * p-exp.y (yylex, yyerror): Update.
11903 * m2-exp.y (parse_number, yylex, yyerror): Update.
11904 * go-exp.y (lex_one_token, yyerror): Update.
11905 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11906 * d-exp.y (lex_one_token, yyerror): Update.
11907 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11908 (lex_one_token, yyerror): Update.
11909 * ada-lex.l (YY_INPUT): Update.
11910 (rewind_to_char): Update.
11911 * ada-exp.y (yyerror): Update.
11912
8621b685
TT
119132019-04-04 Tom Tromey <tom@tromey.com>
11914
11915 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11916 * parser-defs.h (struct parser_state) <parser_state>: Add new
11917 parameter.
11918 <comma_terminates>: New member.
11919 (comma_terminates): Don't declare global.
11920 * parse.c (comma_terminates): Remove global.
11921 (parse_exp_in_context): Update.
11922 * p-exp.y (yylex): Update.
11923 * m2-exp.y (yylex): Update.
11924 * go-exp.y (lex_one_token): Update.
11925 * f-exp.y (yylex): Update.
11926 * d-exp.y (lex_one_token): Update.
11927 * c-exp.y (lex_one_token): Update.
11928 * ada-lex.l: Update.
11929
28aaf3fd
TT
119302019-04-04 Tom Tromey <tom@tromey.com>
11931
11932 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11933 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11934 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11935 * parser-defs.h (paren_depth): Don't declare.
11936 * parse.c (paren_depth): Remove global.
11937 (parse_exp_in_context): Update.
11938 * p-exp.y (paren_depth): New global.
11939 (pascal_parse): Initialize it.
11940 * m2-exp.y (paren_depth): New global.
11941 (m2_parse): Initialize it.
11942 * go-exp.y (paren_depth): New global.
11943 (go_parse): Initialize it.
11944 * f-exp.y (paren_depth): New global.
11945 (f_parse): Initialize it.
11946 * d-exp.y (paren_depth): New global.
11947 (d_parse): Initialize it.
11948 * c-exp.y (paren_depth): New global.
11949 (c_parse): Initialize it.
11950 * ada-lex.l (paren_depth): New global.
11951 (lexer_init): Initialize it.
11952
1e58a4a4
TT
119532019-04-04 Tom Tromey <tom@tromey.com>
11954
11955 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11956 (rust_parser::convert_ast_to_type)
11957 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11958 * parser-defs.h (struct parser_state) <parser_state>: Add
11959 parameters. Initialize new members.
11960 <expression_context_block, expression_context_pc>: New members.
11961 * parse.c (expression_context_block, expression_context_pc):
11962 Remove globals.
11963 (parse_exp_in_context): Update.
11964 * p-exp.y: Update all rules.
11965 (yylex): Update.
11966 * m2-exp.y: Update all rules.
11967 (yylex): Update.
11968 * go-exp.y (yylex): Update.
11969 * f-exp.y (yylex): Update.
11970 * d-exp.y: Update all rules.
11971 (yylex): Update.
11972 * c-exp.y: Update all rules.
11973 (lex_one_token, classify_name, yylex, c_parse): Update.
11974 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11975
37eedb39
TT
119762019-04-04 Tom Tromey <tom@tromey.com>
11977
11978 * gdbarch.h, gdbarch.c: Rebuild.
11979 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11980 * stap-probe.h:
11981 (struct stap_parse_info): Replace "parser_state" with
11982 "expr_builder".
11983 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11984 (parser_state): New class.
11985 * parse.c (expr_builder): Rename.
11986 (expr_builder::release): Rename.
11987 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11988 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11989 (write_exp_elt_longcst, write_exp_elt_floatcst)
11990 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11991 (write_exp_string_vector, write_exp_bitstring)
11992 (write_exp_msymbol, mark_struct_expression)
11993 (write_dollar_variable)
11994 (insert_type_address_space, increase_expout_size): Replace
11995 "parser_state" with "expr_builder".
11996 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11997 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11998 "parser_state" with "expr_builder".
11999
73923d7e
TT
120002019-04-04 Tom Tromey <tom@tromey.com>
12001
12002 * rust-exp.y: Replace "parse_language" with method call.
12003 * p-exp.y:
12004 (yylex): Replace "parse_language" with method call.
12005 * m2-exp.y:
12006 (yylex): Replace "parse_language" with method call.
12007 * go-exp.y (classify_name): Replace "parse_language" with method
12008 call.
12009 * f-exp.y (yylex): Replace "parse_language" with method call.
12010 * d-exp.y (lex_one_token): Replace "parse_language" with method
12011 call.
12012 * c-exp.y:
12013 (lex_one_token, classify_name, yylex): Replace "parse_language"
12014 with method call.
12015 * ada-exp.y (find_primitive_type, type_char)
12016 (type_system_address): Replace "parse_language" with method call.
12017
fa9f5be6
TT
120182019-04-04 Tom Tromey <tom@tromey.com>
12019
12020 * rust-exp.y: Replace "parse_gdbarch" with method call.
12021 * parse.c (write_dollar_variable, insert_type_address_space):
12022 Replace "parse_gdbarch" with method call.
12023 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12024 call.
12025 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12026 call.
12027 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12028 "parse_gdbarch" with method call.
12029 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12030 with method call.
12031 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12032 "parse_gdbarch" with method call.
12033 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12034 "parse_gdbarch" with method call.
12035 * c-exp.y (parse_type, parse_number, classify_name): Replace
12036 "parse_gdbarch" with method call.
12037 * ada-lex.l: Replace "parse_gdbarch" with method call.
12038 * ada-exp.y (parse_type, find_primitive_type, type_char)
12039 (type_system_address): Replace "parse_gdbarch" with method call.
12040
1201a264
TT
120412019-04-04 Tom Tromey <tom@tromey.com>
12042
12043 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12044 * stap-probe.c (stap_parse_argument): Update.
12045 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12046 initial_size parameter.
12047 * rust-exp.y (rust_lex_tests): Update.
12048 * parse.c (parser_state): Update.
12049 (parse_exp_in_context): Update.
12050 * parser-defs.h (struct parser_state) <parser_state>: Remove
12051 "initial_size" parameter.
12052
e3980ce2
TT
120532019-04-04 Tom Tromey <tom@tromey.com>
12054
12055 * parser-defs.h (increase_expout_size): Don't declare.
12056 * parse.c (increase_expout_size): Now static.
12057
e9f8e3f1
TS
120582019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12059
12060 * gnu-nat.c (gnu_nat_target::wait): Fix
12061 target_waitstatus_to_string call.
12062
d7df6549
AB
120632019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12064
12065 * eval.c (evaluate_subexp_standard): Handle internal functions
12066 during Fortran function call handling.
12067
8bdc1658
AB
120682019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12069
12070 * NEWS: Mention new internal functions.
12071 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12072 (read_base_type): Use dwarf2_init_complex_target_type.
12073 * value.c (creal_internal_fn): New function.
12074 (cimag_internal_fn): New function.
12075 (_initialize_values): Register new internal functions.
12076
c29705b7
PW
120772019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12078
12079 * infrun.c (stop_all_threads): If debug_infrun, always
12080 trace the wait status after wait_one, using
12081 target_waitstatus_to_string and target_pid_to_str.
12082 (handle_inferior_event): Replace various trace of
12083 wait status kind by a single trace.
12084 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12085 wait status kind image by target_waitstatus_to_string.
12086 * target/waitstatus.c (target_waitstatus_to_string): Fix
12087 obsolete comment.
12088
05caa1d2
TT
120892019-04-01 Tom Tromey <tromey@adacore.com>
12090
12091 PR symtab/23331:
12092 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12093
9d1447e0
SDJ
120942019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12095 Pedro Alves <palves@redhat.com>
12096
12097 * top.c (quit_force): Call 'finalize_values'.
12098 * value.c (finalize_values): New function.
12099 * value.h (finalize_values): Declare.
12100
7734102d
EZ
121012019-03-30 Eli Zaretskii <eliz@gnu.org>
12102
12103 * NEWS: Announce $_gdb_major and $_gdb_minor.
12104
12105 * top.c (init_gdb_version_vars): New function.
12106 (gdb_init): Call init_gdb_version_vars.
12107
188e1fa9
TT
121082019-03-29 Tom Tromey <tromey@adacore.com>
12109
12110 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12111 help text. Remove dead code.
12112
2880242d
KS
121132019-03-29 Keith Seitz <keiths@redhat.com>
12114
12115 From Siddhesh Poyarekar:
12116 * f-lang.h (f77_get_upperbound): Return LONGEST.
12117 (f77_get_lowerbound): Likewise.
12118 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12119 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12120 print them.
12121 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12122 plongest to format print it.
12123 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12124 (f77_get_upperbound): Likewise.
12125 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12126 LOWER_BOUND to LONGEST.
12127 (f77_create_arrayprint_offset_tbl): Likewise.
12128
cc1defb1
KS
121292019-03-29 Keith Seitz <keiths@redhat.com>
12130
12131 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12132 %s/pulongest for TYPE_LENGTH instead of %d in format
12133 strings.
12134 * ada-typerint.c (ada_print_type): Likewise.
12135 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12136 * compile/compile-c-support.c (generate_register_struct): Likewise.
12137 * gdbtypes.c (recursive_dump_type): Likewise.
12138 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12139 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12140 instead of %d in format strings.
12141 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12142 to std::min to ULONGEST.
12143 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12144 instead of %d in format strings.
12145 * tracepoint.c (info_scope_command): Likewise.
12146 * typeprint.c (print_offset_data::update)
12147 (print_offset_data::finish): Likewise.
12148 * xtensa-tdep.c (xtensa_store_return_value)
12149 (xtensa_push_dummy_call): Likewise.
12150
e432ccf1
JT
121512019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12152
12153 * windows-nat.c (display_selector): Fixed format specifications
12154 for 64-bit Cygwin.
12155
65d2b333
PW
121562019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12157
12158 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12159
f489207e
SL
121602019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12161
12162 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12163 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12164 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12165 (nios2_linux_init_abi): Install it.
12166
bffa1015
AH
121672019-03-28 Alan Hayward <alan.hayward@arm.com>
12168
12169 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12170
fc96163a
AH
121712019-03-28 Alan Hayward <alan.hayward@arm.com>
12172
12173 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12174
20dc7e9b
PW
121752019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12176 Tom Tromey <tromey@adacore.com>
12177
12178 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12179
7f5331a8
JB
121802019-03-26 Joel Brobecker <brobecker@adacore.com>
12181
12182 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12183 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12184 method to compute the bounds of range types. Also print "[evaluated]"
12185 if the bounds' values come from a dynamic evaluation.
12186
18c77628
AB
121872019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12188
12189 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12190 whitespace when pretty printing is on.
12191
53c973f2
AH
121922019-03-26 Alan Hayward <alan.hayward@arm.com>
12193
e79be6e5 12194 * ppc-linux-nat.c: Add include.
53c973f2 12195
d851aa71
AH
121962019-03-26 Alan Hayward <alan.hayward@arm.com>
12197
e79be6e5 12198 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12199
2fe7bab7
AH
122002019-03-26 Alan Hayward <alan.hayward@arm.com>
12201
e79be6e5 12202 * arm-linux-nat.c: Add include.
2fe7bab7 12203
068ef30e
SM
122042019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12205
12206 * source-cache.c (source_cache::get_source_lines): Re-read
12207 fullname after calling open_source_file.
12208
81a24d04
JB
122092019-03-25 John Baldwin <jhb@FreeBSD.org>
12210
12211 * NEWS: Mention TLS support for FreeBSD.
12212
79e7ae11
TT
122132019-03-25 Tom Tromey <tromey@adacore.com>
12214
12215 * minsyms.c (BUNCH_SIZE): Update comment.
12216 (~minimal_symbol_reader): Remove old comment.
12217 (compact_minimal_symbols): Update comment.
12218 (minimal_symbol_reader::install): Remove old comment. Update
12219 other comments.
12220
d45963c2
AH
122212019-03-25 Alan Hayward <alan.hayward@arm.com>
12222
12223 * s390-linux-nat.c: Add include.
12224
0f83012e
AH
122252019-03-25 Alan Hayward <alan.hayward@arm.com>
12226
12227 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12228 Call linux_get_hwcap.
12229 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12230 Likewise.
12231 (aarch64_linux_get_hwcap): Remove function.
12232 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12233 declaration.
12234 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12235 linux_get_hwcap.
12236 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12237 * linux-tdep.c (linux_get_hwcap): Add function.
12238 (linux_get_hwcap2): Likewise.
12239 * linux-tdep.h (linux_get_hwcap): Add declaration.
12240 (linux_get_hwcap2): Likewise.
12241 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12242 (ppc_linux_get_hwcap2): Likewise.
12243 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12244 linux_get_hwcap.
12245 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12246 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12247 (ppc_linux_nat_target::read_description): Likewise.
12248 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12249 * s390-linux-nat.c: Likewise.
12250 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12251
6640a367
TT
122522019-03-24 Tom Tromey <tom@tromey.com>
12253
12254 * ada-lang.c (standard_lookup): Simplify initialization.
12255 (ada_lookup_symbol_nonlocal): Simplify return.
12256 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12257 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12258 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12259 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12260 initialization.
12261 * solib.c (solib_global_lookup): Simplify.
12262 * symtab.c (null_block_symbol): Remove.
12263 (symbol_cache_lookup): Simplify returns.
12264 (lookup_language_this): Simplify returns.
12265 (lookup_symbol_aux): Simplify return.
12266 (lookup_local_symbol): Simplify returns.
12267 (lookup_global_symbol_from_objfile): Simplify return.
12268 (lookup_symbol_in_objfile_symtabs)
12269 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12270 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12271 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12272 * cp-namespace.c (cp_lookup_bare_symbol)
12273 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12274 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12275 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12276 (cp_lookup_symbol_via_imports): Simplify initialization.
12277 (find_symbol_in_baseclass): Likewise.
12278 * symtab.h (null_block_symbol): Remove.
12279 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12280 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12281 (d_lookup_symbol_module): Likewise.
12282 (find_symbol_in_baseclass): Simplify initialization.
12283
a930ebcd
TT
122842019-03-24 Tom Tromey <tom@tromey.com>
12285
12286 * expression.h: Don't include symtab.h.
12287 (struct block): Forward declare.
12288
582942f4
TT
122892019-03-24 Tom Tromey <tom@tromey.com>
12290
12291 * c-exp.y (typebase): Remove casts.
12292 * gdbtypes.c (lookup_unsigned_typename, )
12293 (lookup_signed_typename): Remove cast.
12294 * eval.c (parse_to_comma_and_eval): Remove cast.
12295 * parse.c (write_dollar_variable): Remove cast.
12296 * block.h (struct block) <superblock>: Now const.
12297 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12298 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12299 (map_block): Make "block" const.
12300 * symfile.h (struct quick_symbol_functions)
12301 <map_matching_symbols>: Constify block argument to "callback".
12302 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12303 const.
12304 (find_pc_sect_compunit_symtab): Make "b" const.
12305 (find_symbol_at_address): Likewise.
12306 (search_symbols): Likewise.
12307 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12308 (dw2_debug_names_lookup_symbol): Likewise.
12309 (dw2_map_matching_symbols): Update.
12310 * p-valprint.c (pascal_val_print): Remove "block".
12311 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12312 (aux_add_nonlocal_symbols): Make "block" const.
12313 (resolve_subexp): Remove cast.
12314 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12315 const.
12316 (iterate_over_file_blocks): Likewise.
12317 * f-exp.y (%union) <bval>: Remove.
12318 * coffread.c (patch_opaque_types): Make "b" const.
12319 * spu-tdep.c (spu_catch_start): Make "block" const.
12320 * c-valprint.c (print_unpacked_pointer): Remove "block".
12321 * symmisc.c (dump_symtab_1): Make "b" const.
12322 (block_depth): Make "block" const.
12323 * d-exp.y (%union) <bval>: Remove.
12324 * cp-support.h (cp_lookup_rtti_type): Update.
12325 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12326 * psymtab.c (psym_lookup_symbol): Make "block" const.
12327 (maintenance_check_psymtabs): Make "b" const.
12328 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12329 (enumerate_locals, enumerate_args): Update.
12330 * python/py-symtab.c (stpy_global_block): Make "block" const.
12331 (stpy_static_block): Likewise.
12332 * inline-frame.c (block_starting_point_at): Make "new_block"
12333 const.
12334 * block.c (find_block_in_blockvector): Make return type const.
12335 (blockvector_for_pc_sect): Make "b" const.
12336 (find_block_in_blockvector): Make "b" const.
12337
7ad417dd
TT
123382019-03-23 Tom Tromey <tom@tromey.com>
12339
12340 * varobj.c (varobj_create): Update.
12341 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12342 * printcmd.c (display_command, do_one_display): Don't reset
12343 innermost_block.
12344 * parser-defs.h (enum innermost_block_tracker_type): Move to
12345 expression.h.
12346 (innermost_block): Update comment.
12347 * parse.c (parse_exp_1): Add tracker_types parameter.
12348 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12349 tracker_types parameter. Reset innermost_block.
12350 (parse_exp_in_context): Remove.
12351 (parse_expression_for_completion): Update.
12352 * objfiles.c (~objfile): Don't reset expression_context_block or
12353 innermost_block.
12354 * expression.h (enum innermost_block_tracker_type): Move from
12355 parser-defs.h.
12356 (parse_exp_1): Add tracker_types parameter.
12357 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12358 reset innermost_block.
12359
b366c208
TT
123602019-03-23 Tom Tromey <tom@tromey.com>
12361
12362 * objfiles.h: Include bcache.h.
12363
9bb9b2f9
TT
123642019-03-23 Tom Tromey <tom@tromey.com>
12365
12366 * linespec.c (get_current_search_block): Use
12367 scoped_restore_current_language.
12368 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12369
59c28372
AH
123702019-03-22 Alan Hayward <alan.hayward@arm.com>
12371 Jiong Wang <jiong.wang@arm.com>
12372
12373 * aarch64-linux-tdep.c
12374 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12375 section.
12376 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12377
17e116a7
AH
123782019-03-22 Alan Hayward <alan.hayward@arm.com>
12379 Jiong Wang <jiong.wang@arm.com>
12380
12381 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12382 instructions.
12383 (aarch64_analyze_prologue_test): Add PACIASP test.
12384 (aarch64_prologue_prev_register): Unmask PC value.
12385
11e1b75f
AH
123862019-03-22 Alan Hayward <alan.hayward@arm.com>
12387 Jiong Wang <jiong.wang@arm.com>
12388
12389 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12390 (aarch64_dwarf2_prev_register): Unmask PC value.
12391 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12392 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12393 DW_CFA_AARCH64_negate_ra_state.
12394 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12395
34dcc7cf
AH
123962019-03-22 Alan Hayward <alan.hayward@arm.com>
12397 Jiong Wang <jiong.wang@arm.com>
12398
12399 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12400 registers.
12401 (aarch64_pseudo_register_name): Likewise.
12402 (aarch64_pseudo_register_type): Likewise.
12403 (aarch64_pseudo_register_reggroup_p): Likewise.
12404 (aarch64_gdbarch_init): Add pauth registers.
12405 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12406 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12407 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12408 (struct gdbarch_tdep): Add regnum for ra_state.
12409
1ef53e6b
AH
124102019-03-22 Alan Hayward <alan.hayward@arm.com>
12411 Jiong Wang <jiong.wang@arm.com>
12412
12413 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12414
76bed0fd
AH
124152019-03-22 Alan Hayward <alan.hayward@arm.com>
12416 Jiong Wang <jiong.wang@arm.com>
12417
12418 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12419 function.
12420 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12421 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12422 (aarch64_gdbarch_init): Add puth registers.
12423 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12424 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12425 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12426
ee4fbcfa
AH
124272019-03-22 Alan Hayward <alan.hayward@arm.com>
12428 Jiong Wang <jiong.wang@arm.com>
12429
12430 * aarch64-linux-nat.c
12431 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12432 * aarch64-linux-tdep.c
12433 (aarch64_linux_core_read_description): Likewise.
12434 (aarch64_linux_get_hwcap): New function.
12435 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12436 (aarch64_linux_get_hwcap): New declaration.
12437
6dc0ebde
AH
124382019-03-22 Alan Hayward <alan.hayward@arm.com>
12439 Jiong Wang <jiong.wang@arm.com>
12440
12441 * aarch64-linux-nat.c
12442 (aarch64_linux_nat_target::read_description): Add pauth param.
12443 * aarch64-linux-tdep.c
12444 (aarch64_linux_core_read_description): Likewise.
12445 * aarch64-tdep.c (struct target_desc): Add in pauth.
12446 (aarch64_read_description): Add pauth param.
12447 (aarch64_gdbarch_init): Likewise.
12448 * aarch64-tdep.h (aarch64_read_description): Likewise.
12449 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12450 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12451 * features/Makefile: Add new files.
12452 * features/aarch64-pauth.c: New file.
12453 * features/aarch64-pauth.xml: New file.
12454
595915c1
TT
124552019-03-20 Tom Tromey <tromey@adacore.com>
12456
12457 * infrun.c (handle_inferior_event): Rename from
12458 handle_inferior_event_1. Create a scoped_value_mark.
12459 (handle_inferior_event): Remove.
12460
4c7d57e7
TT
124612019-03-19 Tom Tromey <tromey@adacore.com>
12462
12463 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12464 * infrun.h (print_stop_event): Add "displays" parameter.
12465 * infrun.c (print_stop_event): Add "displays" parameter.
12466
cb246234
PA
124672019-03-19 Pedro Alves <palves@redhat.com>
12468
12469 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12470 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12471 to -1. Fix TABs vs spaces.
12472 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12473 * tui/tui-out.h (tui_ui_out) Add intro comments.
12474 <m_line, m_start_of_line>: In-class initialize, and add describing
12475 comment.
12476
3a0e45b2
AH
124772019-03-18 Alan Hayward <alan.hayward@arm.com>
12478
12479 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12480 variable names.
12481 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12482
5371b850
PA
124832019-03-18 Pedro Alves <palves@redhat.com>
12484 Eli Zaretskii <eliz@gnu.org>
12485
12486 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12487 m_line and m_start_of_line.
12488
b17c4cd0
EZ
124892019-03-18 Eli Zaretskii <eliz@gnu.org>
12490
12491 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12492 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12493 it returns a newline. This fixes a regression in TU mode, whereby
12494 the next line is output on the same screen line as the user input.
12495
4bd56d18
TT
124962019-03-18 Tom Tromey <tromey@adacore.com>
12497
12498 * minsyms.c (minimal_symbol_reader::install): Remove call to
12499 obstack_blank.
12500
55c10aca
PA
125012019-03-18 Pedro Alves <palves@redhat.com>
12502
12503 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12504 New globals.
12505 (apply_style): New, factored out from ...
12506 (apply_ansi_escape): ... this. Handle reverse video mode.
12507 (tui_set_reverse_mode): New function.
12508 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12509 * tui/tui-winsource.c (tui_show_source_line): Use
12510 tui_set_reverse_mode instead of setting A_STANDOUT.
12511 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12512 New setter methods.
12513
647bb750
HD
125142019-03-18 Hannes Domani <ssbssa@yahoo.de>
12515
12516 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12517 Handle tabs.
12518
bff8c71f
TT
125192019-03-18 Tom Tromey <tromey@adacore.com>
12520
12521 * ada-lang.c (empty_array): Add "high" parameter.
12522 (ada_evaluate_subexp): Update.
12523
58785d98
ST
125242019-03-17 Sergei Trofimovich <siarheit@google.com>
12525
12526 * unittests/string_view-selftests.c: Define
12527 _initialize_string_view_selftests unconditionally.
12528
d4cbef22
ВМ
125292019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12530
12531 PR gdb/24350
12532 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12533
fce4c071
ВМ
125342019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12535
12536 PR gdb/24351
12537 * windows-nat.c (display_selector): Fix format specifiers.
12538
f7f0a123
EZ
125392019-03-17 Eli Zaretskii <eliz@gnu.org>
12540
12541 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12542 tui_refill_source_window instead of tui_refresh_win, to update the
12543 current execution line. This fixes redisplay of the current line
12544 when stepping through the code with "next" or "step".
12545
ab42892f
EZ
125462019-03-16 Eli Zaretskii <eliz@gnu.org>
12547
12548 * source-cache.c (source_cache::get_source_lines): Call
12549 find_source_lines to initialize s->nlines. This fixes vertical
12550 scrolling of TUI source window when the DOWN arrow is pressed.
12551
8d8c087f
PW
125522019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12553
12554 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12555 linux-thread-db.c (_initialize_thread_db): Likewise.
12556
798e1c30
EZ
125572019-03-16 Eli Zaretskii <eliz@gnu.org>
12558
12559 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12560 wclrtoeol in tui_show_source_line". This reverts changes made in
12561 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12562
eefba3da
TT
125632019-03-15 Tom Tromey <tom@tromey.com>
12564
12565 * symtab.h (struct minimal_symbol): Derive from
12566 general_symbol_info.
12567 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12568 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12569 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12570 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12571 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12572 (MSYMBOL_SEARCH_NAME): Update.
12573 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12574 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12575 * minsyms.c (minimal_symbol_reader::record_full): Update.
12576
0de2420c
TT
125772019-03-15 Tom Tromey <tom@tromey.com>
12578
12579 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12580
042d75e4
TT
125812019-03-15 Tom Tromey <tom@tromey.com>
12582
12583 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12584 unique_xmalloc_ptr.
12585 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12586 Update.
12587 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12588 (build_minimal_symbol_hash_tables)
12589 (minimal_symbol_reader::install): Update.
12590
db92718b
TT
125912019-03-15 Tom Tromey <tom@tromey.com>
12592
12593 * symtab.c (create_demangled_names_hash): Update.
12594 (symbol_set_names): Update.
12595 * objfiles.h (struct objfile_per_bfd_storage)
12596 <demangled_names_hash>: Now an htab_up.
12597 * objfiles.c (objfile_per_bfd_storage): Simplify.
12598
d6797f46
TT
125992019-03-15 Tom Tromey <tom@tromey.com>
12600
12601 * objfiles.h (struct objfile_per_bfd_storage): Declare
12602 destructor.
12603 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12604 New.
12605 (get_objfile_bfd_data): Use new. Don't initialize
12606 language_of_main.
12607 (free_objfile_per_bfd_storage): Remove.
12608 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12609
741d7538
TT
126102019-03-15 Tom Tromey <tom@tromey.com>
12611
12612 * symfile.c (reread_symbols): Update.
12613 * objfiles.c (objfile::objfile): Update.
12614 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12615 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12616 comment.
12617 (minimal_symbol_reader::install): Update.
12618 (terminate_minimal_symbol_table): Remove.
12619 * jit.c (jit_object_close_impl): Update.
12620
788c80d1
TT
126212019-03-15 Tom Tromey <tom@tromey.com>
12622
12623 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12624 initializations.
12625
1b7a07cb
TT
126262019-03-15 Tom Tromey <tom@tromey.com>
12627
12628 * objfiles.h (struct objfile_per_bfd_storage)
12629 <demangled_hash_languages>: Now a bitset.
12630 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12631 (lookup_minimal_symbol): Update.
12632
3db066bc
TT
126332019-03-15 Tom Tromey <tom@tromey.com>
12634
12635 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12636 Don't return the symbol.
12637 * coffread.c (record_minimal_symbol): Use record_full.
12638
3fff2c37
EZ
126392019-03-14 Eli Zaretskii <eliz@gnu.org>
12640
12641 The MS-Windows port of ncurses fails to switch to a color pair if
12642 one or both of the colors are the implicit default colors. This
12643 change records the default colors when TUI is initialized, and
12644 then specifies them explicitly when a color pair uses the default
12645 colors. This allows color styling in TUI mode on MS-Windows.
12646
12647 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12648 ncurses_norm_attr.
12649 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12650 colors in ncurses_norm_attr.
12651 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12652 "none", replace it with the default color recorded in
12653 ncurses_norm_attr.
12654
3b336828
TT
126552019-03-14 Tom Tromey <tromey@adacore.com>
12656
12657 * source-cache.h (class source_cache) <get_source_lines>: Return
12658 std::string.
12659 * source-cache.c (source_cache::extract_lines): Handle case where
12660 first_pos==npos. Return std::string.
12661 (source_cache::get_source_lines): Update.
12662
d085f989
TT
126632019-03-14 Tom Tromey <tromey@adacore.com>
12664
12665 * NEWS: Add item for "style sources" commands.
12666 * source-cache.c (source_cache::get_source_lines): Check
12667 source_styling.
12668 * cli/cli-style.c (source_styling): New global.
12669 (_initialize_cli_style): Add "style sources" commands.
12670 (show_style_sources): New function.
12671 * cli/cli-style.h (source_styling): Declare.
12672
6f11e682
TT
126732019-03-14 Pedro Alves <palves@redhat.com>
12674 Tom Tromey <tromey@adacore.com>
12675
12676 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12677 * tui/tui-winsource.c (tui_refill_source_window): New function,
12678 from...
12679 (tui_horizontal_source_scroll): ... here. Move some logic.
12680 * cli/cli-style.c (set_style_enabled): Notify new observable.
12681 * tui/tui-hooks.c (tui_redisplay_source): New function.
12682 (tui_attach_detach_observers): Attach or detach
12683 tui_redisplay_source.
12684 * observable.h (source_styling_changed): New observable.
12685 * observable.c: Define source_styling_changed observable.
12686
a068643d
TT
126872019-03-13 Tom Tromey <tromey@adacore.com>
12688
12689 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12690 (i386_gnu_nat_target::store_registers): Update.
12691 * target-debug.h (target_debug_print_std_string): New macro.
12692 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12693 * windows-tdep.c (display_one_tib): Update.
12694 * tui/tui-stack.c (tui_make_status_line): Update.
12695 * top.c (print_inferior_quit_action): Update.
12696 * thread.c (thr_try_catch_cmd): Update.
12697 (add_thread_with_info): Update.
12698 (thread_target_id_str): Update.
12699 (thr_try_catch_cmd): Update.
12700 (thread_command): Update.
12701 (thread_find_command): Update.
12702 * record-btrace.c (record_btrace_target::info_record)
12703 (record_btrace_resume_thread, record_btrace_target::resume)
12704 (record_btrace_cancel_resume, record_btrace_step_thread)
12705 (record_btrace_target::wait, record_btrace_target::wait)
12706 (record_btrace_target::wait, record_btrace_target::stop): Update.
12707 * progspace.c (print_program_space): Update.
12708 * process-stratum-target.c
12709 (process_stratum_target::thread_address_space): Update.
12710 * linux-fork.c (linux_fork_mourn_inferior)
12711 (detach_checkpoint_command, info_checkpoints_command)
12712 (linux_fork_context): Update.
12713 (linux_fork_detach): Update.
12714 (class scoped_switch_fork_info): Update.
12715 (delete_checkpoint_command): Update.
12716 * infrun.c (follow_fork_inferior): Update.
12717 (follow_fork_inferior): Update.
12718 (proceed_after_vfork_done): Update.
12719 (handle_vfork_child_exec_or_exit): Update.
12720 (follow_exec): Update.
12721 (displaced_step_prepare_throw): Update.
12722 (displaced_step_restore): Update.
12723 (start_step_over): Update.
12724 (resume_1): Update.
12725 (clear_proceed_status_thread): Update.
12726 (proceed): Update.
12727 (print_target_wait_results): Update.
12728 (do_target_wait): Update.
12729 (context_switch): Update.
12730 (stop_all_threads): Update.
12731 (restart_threads): Update.
12732 (finish_step_over): Update.
12733 (handle_signal_stop): Update.
12734 (switch_back_to_stepped_thread): Update.
12735 (keep_going_pass_signal): Update.
12736 (print_exited_reason): Update.
12737 (normal_stop): Update.
12738 * inferior.c (inferior_pid_to_str): Change return type.
12739 (print_selected_inferior): Update.
12740 (add_inferior): Update.
12741 (detach_inferior): Update.
12742 * dummy-frame.c (fprint_dummy_frames): Update.
12743 * dcache.c (dcache_info_1): Update.
12744 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12745 (btrace_fetch, btrace_clear): Update.
12746 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12747 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12748 type.
12749 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12750 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12751 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12752 * gdbarch.c, gdbarch.h: Rebuild.
12753 * gdbarch.sh (core_pid_to_str): Change return type.
12754 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12755 return type.
12756 (windows_nat_target::pid_to_str): Change return type.
12757 (windows_delete_thread): Update.
12758 (windows_nat_target::attach): Update.
12759 (windows_nat_target::files_info): Update.
12760 * target-delegates.c: Rebuild.
12761 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12762 return type.
12763 (sol_thread_target::pid_to_str): Change return type.
12764 * remote.c (class remote_target) <pid_to_str>: Change return
12765 type.
12766 (remote_target::pid_to_str): Change return type.
12767 (extended_remote_target::attach, remote_target::remote_stop_ns)
12768 (remote_target::remote_notif_remove_queued_reply)
12769 (remote_target::push_stop_reply, remote_target::disable_btrace):
12770 Update.
12771 (extended_remote_target::attach): Update.
12772 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12773 type.
12774 (gdbsim_target::pid_to_str): Change return type.
12775 * ravenscar-thread.c (struct ravenscar_thread_target)
12776 <pid_to_str>: Change return type.
12777 (ravenscar_thread_target::pid_to_str): Change return type.
12778 * procfs.c (class procfs_target) <pid_to_str>: Change return
12779 type.
12780 (procfs_target::pid_to_str): Change return type.
12781 (procfs_target::attach): Update.
12782 (procfs_target::detach): Update.
12783 (procfs_target::fetch_registers): Update.
12784 (procfs_target::store_registers): Update.
12785 (procfs_target::wait): Update.
12786 (procfs_target::files_info): Update.
12787 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12788 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12789 return type.
12790 (nto_procfs_target::pid_to_str): Change return type.
12791 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12792 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12793 return type.
12794 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12795 (exit_lwp): Update.
12796 (attach_proc_task_lwp_callback, get_detach_signal)
12797 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12798 (linux_nat_target::resume, wait_lwp, stop_callback)
12799 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12800 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12801 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12802 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12803 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12804 type.
12805 (inf_ptrace_target::attach): Update.
12806 (inf_ptrace_target::files_info): Update.
12807 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12808 type.
12809 (go32_nat_target::pid_to_str): Change return type.
12810 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12811 (gnu_nat_target::wait): Update.
12812 (gnu_nat_target::wait): Update.
12813 (gnu_nat_target::resume): Update.
12814 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12815 (fbsd_nat_target::wait): Update.
12816 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12817 type.
12818 (darwin_nat_target::attach): Update.
12819 * corelow.c (class core_target) <pid_to_str>: Change return type.
12820 (core_target::pid_to_str): Change return type.
12821 * target.c (normal_pid_to_str): Change return type.
12822 (default_pid_to_str): Likewise.
12823 (target_pid_to_str): Change return type.
12824 (target_translate_tls_address): Update.
12825 (target_announce_detach): Update.
12826 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12827 return type.
12828 (bsd_uthread_target::pid_to_str): Change return type.
12829 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12830 type.
12831 (bsd_kvm_target::pid_to_str): Change return type.
12832 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12833 return type.
12834 (aix_thread_target::pid_to_str): Change return type.
12835 * target.h (struct target_ops) <pid_to_str>: Change return type.
12836 (target_pid_to_str, normal_pid_to_str): Likewise.
12837 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12838 type.
12839 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12840 type.
12841 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12842 return type.
12843 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12844 type.
12845 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12846 type.
12847 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12848 return type.
12849
b4be1b06
SM
128502019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12851
12852 * NEWS: Mention that the new default MI version is 3. Mention
12853 changes to the output of commands and events that deal with
12854 multi-location breakpoints.
12855 * breakpoint.c: Include "mi/mi-out.h".
12856 (print_one_breakpoint): Change output syntax if using MI version
12857 >= 3.
12858 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12859 New.
12860 (mi_multi_location_breakpoint_output_fixed): New.
12861 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12862 (mi_cmd_fix_multi_location_breakpoint_output): New.
12863 (mi_multi_location_breakpoint_output_fixed): New.
12864 * mi/mi-cmds.c (mi_cmds): Register command
12865 -fix-multi-location-breakpoint-output.
12866 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12867 interpreter "mi".
12868
8e5e5494
SM
128692019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12870
12871 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12872 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12873 instantiate mi_ui_out based on interpreter name.
12874 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12875 * mi/mi-main.c (mi_load_progress): Likewise.
12876
197df35e
JB
128772019-03-12 John Baldwin <jhb@FreeBSD.org>
12878
12879 * NEWS: Combine separate "New targets" sections for 8.3.
12880
8399425f
JB
128812019-03-12 John Baldwin <jhb@FreeBSD.org>
12882
12883 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12884 (ppcfbsd_init_abi): Install gdbarch
12885 "fetch_tls_load_module_address" and "get_thread_local_address"
12886 methods.
12887
b0f87ed0
JB
128882019-03-12 John Baldwin <jhb@FreeBSD.org>
12889
12890 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12891 (riscv_fbsd_init_abi): Install gdbarch
12892 "fetch_tls_load_module_address" and "get_thread_local_address"
12893 methods.
12894
ce25aa57
JB
128952019-03-12 John Baldwin <jhb@FreeBSD.org>
12896
12897 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12898 (i386fbsd_init_abi): Install gdbarch
12899 "fetch_tls_load_module_address" and "get_thread_local_address"
12900 methods.
12901
f5424cfa
JB
129022019-03-12 John Baldwin <jhb@FreeBSD.org>
12903
12904 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12905 (amd64fbsd_init_abi): Install gdbarch
12906 "fetch_tls_load_module_address" and "get_thread_local_address"
12907 methods.
12908
945f3901
JB
129092019-03-12 John Baldwin <jhb@FreeBSD.org>
12910
12911 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12912 (struct fbsd_pspace_data): New type.
12913 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12914 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12915 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12916 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12917 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12918
ef0bd204
JB
129192019-03-12 John Baldwin <jhb@FreeBSD.org>
12920
12921 * gdbtypes.c (lookup_struct_elt): New function.
12922 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12923 * gdbtypes.h (struct struct_elt): New type.
12924 (lookup_struct_elt): New prototype.
12925
36c53a02
JB
129262019-03-12 John Baldwin <jhb@FreeBSD.org>
12927
12928 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12929 remove disabled code block.
12930
6e056c81
JB
129312019-03-12 John Baldwin <jhb@FreeBSD.org>
12932
12933 * gdbarch.sh (get_thread_local_address): New method.
12934 * gdbarch.h, gdbarch.c: Regenerate.
12935 * target.c (target_translate_tls_address): Use
12936 gdbarch_get_thread_local_address if present instead of
12937 target::get_thread_local_address.
12938
cd250a18
JB
129392019-03-12 John Baldwin <jhb@FreeBSD.org>
12940
12941 * target.h (target::get_thread_local_address): Update comment.
12942
df22c1e5
JB
129432019-03-12 John Baldwin <jhb@FreeBSD.org>
12944
12945 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12946 objfile->separate_debug_objfile_backlink if not NULL.
12947
dd6876c9
JB
129482019-03-12 John Baldwin <jhb@FreeBSD.org>
12949
12950 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12951 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12952 (amd64bsd_store_inferior_registers): Likewise.
12953 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12954 Enable segment base registers.
12955 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12956 PT_GETFSBASE and PT_GETGSBASE.
12957 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12958 PT_SETGSBASE.
12959 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12960 segment base registers.
12961 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12962
1163a4b7
JB
129632019-03-12 John Baldwin <jhb@FreeBSD.org>
12964
12965 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12966 Update calls to i386_target_description to add 'segments'
12967 parameter.
12968 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12969 add segment base registers.
12970 * arch/i386.c (i386_create_target_description): Add 'segments'
12971 parameter to enable segment base registers.
12972 * arch/i386.h (i386_create_target_description): Likewise.
12973 * features/i386/32bit-segments.xml: New file.
12974 * features/i386/32bit-segments.c: Generate.
12975 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12976 call to i386_target_description to add 'segments' parameter.
12977 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12978 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12979 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12980 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12981 if feature is present.
12982 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12983 Add 'segments' parameter to call to i386_target_description.
12984 (i386_target_description): Add 'segments' parameter to enable
12985 segment base registers.
12986 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12987 to call to i386_target_description.
12988 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12989 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12990 Define I386_NUM_REGS.
12991 (i386_target_description): Add 'segments' parameter to enable
12992 segment base registers.
12993
3a350822
EZ
129942019-03-12 Eli Zaretskii <eliz@gnu.org>
12995
12996 PR/24325
12997 * source-cache.c: #undef open and close, to avoid unresolved
12998 externals during linking.
12999
ffdd69cf
TT
130002019-03-12 Tom Tromey <tromey@adacore.com>
13001
13002 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13003 const. Add initializers.
13004 (_initialize_remote): Don't initialize ptid globals.
13005
ec148c57
PA
130062019-03-12 Pedro Alves <palves@redhat.com>
13007
13008 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13009
32764270
PA
130102019-03-12 Pedro Alves <palves@redhat.com>
13011
13012 * cp-name-parser.y (main): Remove unused 'len' variable.
13013
17547186
TT
130142019-03-12 Tom Tromey <tromey@adacore.com>
13015
13016 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13017 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13018
d3a70e03
TT
130192019-03-12 Tom Tromey <tromey@adacore.com>
13020
13021 * linux-nat.c (iterate_over_lwps): Update.
13022 (stop_callback): Remove parameter.
13023 (stop_wait_callback, detach_callback, resume_set_callback)
13024 (select_singlestep_lwp_callback, set_ignore_sigint)
13025 (status_callback, resumed_callback, resume_clear_callback)
13026 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13027 data parameter.
13028 (linux_nat_target::detach, linux_nat_target::resume)
13029 (linux_stop_and_wait_all_lwps, select_event_lwp)
13030 (linux_nat_filter_event, linux_nat_wait_1)
13031 (linux_nat_target::kill, linux_nat_target::stop)
13032 (linux_nat_target::stop): Update.
13033 (linux_nat_resume_callback): Change type.
13034 (resume_stopped_resumed_lwps, count_events_callback)
13035 (select_event_lwp_callback): Likewise.
13036 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13037 * arm-linux-nat.c (struct update_registers_data): Remove.
13038 (update_registers_callback): Change type.
13039 (arm_linux_insert_hw_breakpoint1): Update.
13040 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13041 parameter.
13042 (x86_linux_dr_set_addr): Update.
13043 (x86_linux_dr_set_control): Update.
13044 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13045 (iterate_over_lwps): Use gdb::function_view.
13046 * nat/aarch64-linux-hw-point.c (struct
13047 aarch64_dr_update_callback_param): Remove.
13048 (debug_reg_change_callback): Change type.
13049 (aarch64_notify_debug_reg_change): Update.
13050 * s390-linux-nat.c (s390_refresh_per_info): Update.
13051
82cb27ff
TT
130522019-03-11 Tom Tromey <tromey@adacore.com>
13053
13054 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13055 redundant assignment to "this_cu".
13056
568c0683
SM
130572019-03-08 Simon Marchi <simon.marchi@efficios.com>
13058
13059 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13060
f09ce22d
SM
130612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13062
13063 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13064 from...
13065 (rank_one_type): ... this.
13066
595f96a9
SM
130672019-03-08 Simon Marchi <simon.marchi@efficios.com>
13068
13069 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13070 from...
13071 (rank_one_type): ... this.
13072
2598a94b
SM
130732019-03-08 Simon Marchi <simon.marchi@efficios.com>
13074
13075 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13076 from...
13077 (rank_one_type): ... this.
13078
7f17b20d
SM
130792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13080
13081 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13082 from...
13083 (rank_one_type): ... this.
13084
2c509035
SM
130852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13086
13087 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13088 from...
13089 (rank_one_type): ... this.
13090
0dd322dc
SM
130912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13092
13093 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13094 from...
13095 (rank_one_type): ... this.
13096
41ea4728
SM
130972019-03-08 Simon Marchi <simon.marchi@efficios.com>
13098
13099 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13100 from...
13101 (rank_one_type): ... this.
13102
793cd1d2
SM
131032019-03-08 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13106 from...
13107 (rank_one_type): ... this.
13108
34910087
SM
131092019-03-08 Simon Marchi <simon.marchi@efficios.com>
13110
13111 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13112 from...
13113 (rank_one_type): ... this.
13114
f1f832d6
SM
131152019-03-08 Simon Marchi <simon.marchi@efficios.com>
13116
13117 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13118 from...
13119 (rank_one_type): ... this.
13120
b9f4512f
SM
131212019-03-08 Simon Marchi <simon.marchi@efficios.com>
13122
13123 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13124 from...
13125 (rank_one_type): ... this.
13126
9293fc63
SM
131272019-03-08 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13130 from...
13131 (rank_one_type): ... this.
13132
e3abbe7e
PW
131332019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13134
13135 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13136 inferior-events' shows the example events.
13137
e4adb939
EZ
131382019-03-08 Eli Zaretskii <eliz@gnu.org>
13139
13140 Support styling on native MS-Windows console
13141
13142 PR/24315
13143 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13144 on MS-Windows if $TERM is not defined.
13145
13146 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13147
13148 * posix-hdep.c (gdb_console_fputs):
13149 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13150 functions.
13151 * ui-file.h (gdb_console_fputs): Add prototype.
13152
13153 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13154 back to fputs only if the former returns zero.
13155
25629dfd
TT
131562019-03-07 Tom Tromey <tom@tromey.com>
13157
13158 * symmisc.c (print_symbol_bcache_statistics): Update.
13159 (print_objfile_statistics): Update.
13160 * symfile.c (allocate_symtab): Update.
13161 * stabsread.c: Don't include bcache.h.
13162 * psymtab.h (struct psymbol_bcache): Don't declare.
13163 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13164 (psymbol_bcache_init, psymbol_bcache_free)
13165 (psymbol_bcache_get_bcache): Don't declare.
13166 * psymtab.c (struct psymbol_bcache): Remove.
13167 (psymtab_storage::psymtab_storage): Update.
13168 (psymtab_storage::~psymtab_storage): Update.
13169 (psymbol_bcache_init, psymbol_bcache_free)
13170 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13171 (add_psymbol_to_bcache): Update.
13172 (allocate_psymtab): Update.
13173 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13174 macro_cache>: No longer pointers.
13175 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13176 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13177 * macrotab.c (macro_bcache): Update.
13178 * macroexp.c: Don't include bcache.h.
13179 * gdbtypes.c (check_types_worklist): Update.
13180 (types_deeply_equal): Remove TRY/CATCH. Update.
13181 * elfread.c (elf_symtab_read): Update.
13182 * dwarf2read.c: Don't include bcache.h.
13183 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13184 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13185 (print_bcache_statistics, bcache_memory_used): Don't declare.
13186 (struct bcache): Move from bcache.c. Add constructor, destructor,
13187 methods. Rename all data members.
13188 * bcache.c (struct bcache): Move to bcache.h.
13189 (bcache::expand_hash_table): Rename from expand_hash_table.
13190 (bcache): Remove.
13191 (bcache::insert): Rename from bcache_full.
13192 (bcache::compare): Rename from bcache_compare.
13193 (bcache_xmalloc): Remove.
13194 (bcache::~bcache): Rename from bcache_xfree.
13195 (bcache::print_statistics): Rename from print_bcache_statistics.
13196 (bcache::memory_used): Rename from bcache_memory_used.
13197
fe726667
PA
131982019-03-07 Pedro Alves <palves@redhat.com>
13199
13200 * infrun.c (normal_stop): Also check for
13201 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13202
7584bb30
AB
132032019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13204
13205 * f-lang.c (value_from_host_double): Moved to...
13206 * value.c (value_from_host_double): ...here.
13207 * value.h (value_from_host_double): Declare.
13208 * guile/scm-math.c (vlscm_convert_typed_number): Use
13209 value_from_host_double.
13210 (vlscm_convert_number): Likewise.
13211 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13212 * python/py-value.c (convert_value_from_python): Likewise.
13213
a7b1986e
TT
132142019-03-06 Tom Tromey <tom@tromey.com>
13215
13216 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13217
0ccf4211
TT
132182019-03-06 Tom Tromey <tom@tromey.com>
13219
13220 * utils.h (free_current_contents): Don't declare.
13221 * utils.c (free_current_contents): Remove.
13222
fe7b42e5
TT
132232019-03-06 Tom Tromey <tom@tromey.com>
13224
13225 * top.c (quit_force): Update.
13226 * main.c (captured_command_loop): Update.
13227 * common/new-op.c (operator new): Update.
13228 * common/common-exceptions.c (struct catcher)
13229 <save_cleanup_chain>: Remove member.
13230 (exceptions_state_mc_init): Update.
13231 (exception_try_scope_entry): Return nullptr.
13232 (exception_try_scope_exit, exception_rethrow)
13233 (throw_exception_sjlj, throw_exception_cxx): Update.
13234 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13235 (all_cleanups, do_cleanups, discard_cleanups)
13236 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13237 (restore_cleanups, restore_final_cleanups): Don't declare.
13238 (do_final_cleanups): Remove parameter.
13239 * common/cleanups.c (cleanup_chain, make_cleanup)
13240 (make_cleanup_dtor, all_cleanups, do_cleanups)
13241 (discard_my_cleanups, discard_cleanups)
13242 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13243 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13244 (null_cleanup): Remove.
13245 (do_final_cleanups): Remove parameter.
13246
c6321f19
TT
132472019-03-06 Tom Tromey <tom@tromey.com>
13248
13249 * remote.c (remote_target::remote_parse_stop_reply): Use
13250 unique_xmalloc_ptr.
13251
61b30099
TT
132522019-03-06 Tom Tromey <tom@tromey.com>
13253
13254 * stabsread.c (struct stabs_field_info): Rename from field_info.
13255 <list, fnlist>: Add initializers.
13256 <obstack>: New member.
13257 (read_member_functions, read_struct_fields, read_baseclasses):
13258 Allocate on obstack. Don't use cleanups.
13259 (read_one_struct_field, read_member_functions, read_struct_fields)
13260 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13261 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13262 (read_struct_type): Update.
13263
6cceac94
TT
132642019-03-06 Tom Tromey <tom@tromey.com>
13265
13266 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13267 * common/filestuff.h (make_cleanup_close): Don't declare.
13268 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13269 Remove.
13270
72412762
TT
132712019-03-06 Tom Tromey <tom@tromey.com>
13272
13273 * solib-aix.c: Use make_scope_exit.
13274
2b6ff1c0
TT
132752019-03-06 Tom Tromey <tom@tromey.com>
13276
13277 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13278 Use make_scope_exit.
13279
d01c5877
TT
132802019-03-06 Tom Tromey <tom@tromey.com>
13281
13282 * solib-svr4.c (disable_probes_interface): Remove parameter.
13283 (svr4_handle_solib_event): Use make_scope_exit.
13284
32603266
TT
132852019-03-06 Tom Tromey <tom@tromey.com>
13286
13287 * remote.c (struct stop_reply_deleter): Remove.
13288 (stop_reply_up): Update.
13289 (struct stop_reply): Derive from notif_event. Don't typedef.
13290 <regcache>: Now a std::vector.
13291 (stop_reply_xfree): Remove.
13292 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13293 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13294 (remote_target::discard_pending_stop_replies): Use delete.
13295 (remote_target::remote_parse_stop_reply): Update.
13296 (remote_target::process_stop_reply): Update.
13297 * remote-notif.h (struct notif_event): Add virtual destructor.
13298 Remove "dtr" member.
13299 (struct notif_client) <alloc_event>: Return a unique_ptr.
13300 (notif_event_xfree): Don't declare.
13301 (notif_event_up): New typedef.
13302 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13303 (notif_event_xfree, do_notif_event_xfree): Remove.
13304 (remote_notif_state_xfree): Update.
13305
9799571e
TT
133062019-03-06 Tom Tromey <tom@tromey.com>
13307
13308 * infrun.c (displaced_step_clear_cleanup): Now a
13309 forward_scope_exit type.
13310 (displaced_step_prepare_throw): Update.
13311 (displaced_step_fixup): Update.
13312
09e3c4ca
TT
133132019-03-06 Tom Tromey <tom@tromey.com>
13314
13315 * inferior.h (class inferior): Update comment.
13316 * gdbthread.h (class thread_info): Update comment.
13317
e2a03548
TT
133182019-03-06 Joel Brobecker <brobecker@adacore.com>
13319 Tom Tromey <tom@tromey.com>
13320
13321 * stabsread.h (struct stab_section_list): Remove.
13322 (coffstab_build_psymtabs): Update.
13323 * dbxread.c (symbuf_sections): Now a std::vector.
13324 (sect_idx): New global.
13325 (fill_symbuf): Update.
13326 (coffstab_build_psymtabs): Change type of stabsects parameter.
13327 Update.
13328 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13329 std::vector.
13330 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13331 (coff_locate_sections): Update.
13332 (coff_symfile_read): Remove cleanups. Update.
13333 (init_stringtab): Add storage parameter.
13334 (free_stringtab, free_stringtab_cleanup): Remove.
13335 (init_lineno): Add storage parameter.
13336 (free_linetab, free_linetab_cleanup): Remove.
13337
b7e60d85
PA
133382019-03-06 Pedro Alves <palves@redhat.com>
13339
13340 * linux-fork.c (fork_info::clobber_regs): Delete.
13341 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13342 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13343 comment. Adjust.
13344 (scoped_switch_fork_info::scoped_switch_fork_info)
13345 (checkpoint_command, linux_fork_context): Adjust
13346 fork_save_infrun_state calls.
13347
e52c971f
PA
133482019-03-06 Pedro Alves <palves@redhat.com>
13349
13350 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13351 (inf_has_multiple_threads): Return 'bool' and rewrite using
13352 inferior_info::threads().
13353
06974e6c
PA
133542019-03-06 Pedro Alves <palves@redhat.com>
13355
13356 * linux-fork.c: Include <list>.
13357 (fork_list): Now a std::list instance.
13358 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13359 (forks_exist_p, find_last_fork): Adjust.
13360 (new_fork): Delete.
13361 (one_fork_p): New.
13362 (add_fork): Adjust.
13363 (free_fork): Delete, folded into fork_info::~fork_info().
13364 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13365 Adjust.
13366 (init_fork_list): Delete.
13367 (linux_fork_killall, linux_fork_mourn_inferior)
13368 (linux_fork_detach, info_checkpoints_command): Adjust.
13369 (_initialize_linux_fork): No longer call init_fork_list.
13370
72f31aea
PA
133712019-03-06 Pedro Alves <palves@redhat.com>
13372
13373 * linux-fork.c (new_fork): New, split out of ...
13374 (add_fork): ... this. Return void. Move "first fork" special
13375 case from here, to ...
13376 (checkpoint_command): ... here.
13377 * linux-linux.h (add_fork): Return void.
13378
efbecbc1
AB
133792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13380
13381 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13382
0841c79a
AB
133832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13384 Chris January <chris.january@arm.com>
13385 David Lecomber <david.lecomber@arm.com>
13386
13387 * f-exp.y: New token, UNOP_INTRINSIC.
13388 (exp): New pattern using UNOP_INTRINSIC token.
13389 (f77_keywords): Add 'abs' keyword.
13390 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13391 (value_from_host_double): New function.
13392 (evaluate_subexp_f): Support UNOP_ABS.
13393
4a270568
AB
133942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13395
13396 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13397 types.
13398
067630bd
AB
133992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13400
13401 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13402 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13403 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13404
3be47f7a
AB
134052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13406
13407 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13408
4d00f5d8
AB
134092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13410 Chris January <chris.january@arm.com>
13411
13412 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13413 * f-exp.y: Define 'KIND' token.
13414 (exp): New pattern for KIND expressions.
13415 (ptype): Handle types with a kind extension.
13416 (direct_abs_decl): Extend to spot kind extensions.
13417 (f77_keywords): Add 'kind' to the list.
13418 (push_kind_type): New function.
13419 (convert_to_kind_type): New function.
13420 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13421 * parse.c (operator_length_standard): Likewise.
13422 * parser-defs.h (enum type_pieces): Add tp_kind.
13423 * std-operator.def: Add UNOP_KIND.
13424
e454224f
AB
134252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13426
13427 * f-exp.y (f_parse): Set yydebug.
13428
9dad4a58
AB
134292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13430
13431 * f-lang.c (evaluate_subexp_f): New function.
13432 (exp_descriptor_f): New global.
13433 (f_language_defn): Use exp_descriptor_f instead of
13434 exp_descriptor_standard.
13435
c8f91604
AB
134362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13437
13438 * f-exp.y (struct token): Add comments.
13439 (dot_ops): Remove uppercase versions and the end marker.
13440 (f77_keywords): Likewise.
13441 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13442 entries in the dot_ops array are case insensitive, and use
13443 strncasecmp to compare strings. Also some whitespace cleanup in
13444 this area. Similar for the f77_keywords array, except entries in
13445 this list might be case sensitive.
13446
dd9f2c76
AB
134472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * f-exp.y (struct f77_boolean_val): Add comments.
13450 (boolean_values): Remove uppercase versions, and end marker.
13451 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13452 and use strncasecmp to achieve case insensitivity. Additionally,
13453 perform whitespace cleanup around this code.
13454
67a3048c
TT
134552019-03-06 Tom Tromey <tromey@adacore.com>
13456
13457 * remote-sim.c (gdbsim_target_open): Use result of
13458 gdb_argv::release.
13459
aa3cfbda
RB
134602019-03-06 Richard Bunt <richard.bunt@arm.com>
13461 Dirk Schubert <dirk.schubert@arm.com>
13462 Chris January <chris.january@arm.com>
13463
13464 * eval.c (evaluate_subexp_standard): Call Fortran argument
13465 wrapping logic.
13466 * f-lang.c (struct value): A value which can be passed into a
13467 Fortran function call.
13468 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13469 where appropriate.
13470 (struct type): Value ready for a Fortran function call.
13471 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13472 is needed.
13473 * f-lang.h (fortran_argument_convert): Declaration.
13474 (fortran_preserve_arg_pointer): Declaration.
13475 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13476
ea38e5df
TT
134772019-03-05 Tom Tromey <tromey@adacore.com>
13478
13479 * python/py-prettyprint.c (print_string_repr): Remove #if.
13480 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13481
06b5b831
TT
134822019-03-05 Tom Tromey <tromey@adacore.com>
13483
13484 * target.c (the_dummy_target): Move later. Change type to
13485 "dummy_target".
13486 (initialize_targets): Don't initialize the_dummy_target.
13487
edbd9e45
TT
134882019-03-05 Tom Tromey <tromey@adacore.com>
13489
13490 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13491 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13492
c119e040
TT
134932019-03-05 Tom Tromey <tromey@adacore.com>
13494
13495 * windows-nat.c (windows_nat_target::attach)
13496 (windows_nat_target::detach): Don't call gdb_flush.
13497 * valprint.c (generic_val_print, val_print, val_print_string):
13498 Don't call gdb_flush.
13499 * utils.c (defaulted_query): Don't call gdb_flush.
13500 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13501 * target.c (target_announce_detach): Don't call gdb_flush.
13502 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13503 * remote.c (extended_remote_target::attach): Don't call
13504 gdb_flush.
13505 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13506 * printcmd.c (do_examine): Don't call gdb_flush.
13507 (info_display_command): Don't call gdb_flush.
13508 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13509 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13510 * memattr.c (info_mem_command): Don't call gdb_flush.
13511 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13512 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13513 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13514 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13515 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13516 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13517 (gnu_nat_target::detach): Don't call gdb_flush.
13518 * f-valprint.c (f_val_print): Don't call gdb_flush.
13519 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13520 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13521 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13522 gdb_flush.
13523 * c-valprint.c (c_val_print): Don't call gdb_flush.
13524 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13525
895dafa6
TT
135262019-03-05 Tom Tromey <tromey@adacore.com>
13527
13528 * varobj.c (update_dynamic_varobj_children): Update.
13529 (install_default_visualizer): Use reset, not release.
13530 * value.c (set_internalvar): Update.
13531 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13532 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13533 ATTRIBUTE_UNUSED_RESULT.
13534
88a774b9
TT
135352019-03-05 Tom Tromey <tromey@adacore.com>
13536
13537 * remote.c (class scoped_remote_fd) <release>: Add
13538 ATTRIBUTE_UNUSED_RESULT.
13539
4e4a8b93
TT
135402019-03-05 Tom Tromey <tromey@adacore.com>
13541
13542 * macroexp.c (struct macro_buffer) <release>: Add
13543 ATTRIBUTE_UNUSED_RESULT.
13544
083eef1f
TT
135452019-03-05 Tom Tromey <tromey@adacore.com>
13546
13547 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13548 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13549 ATTRIBUTE_UNUSED_RESULT.
13550
3cabd438
TT
135512019-03-05 Tom Tromey <tromey@adacore.com>
13552
13553 * common/scoped_fd.h (class scoped_fd) <release>: Add
13554 ATTRIBUTE_UNUSED_RESULT.
13555
41e3300a
TT
135562019-03-05 Tom Tromey <tromey@adacore.com>
13557
13558 * parser-defs.h (struct parser_state) <release>: Add
13559 ATTRIBUTE_UNUSED_RESULT.
13560
18cb7c9f
TT
135612019-03-05 Tom Tromey <tromey@adacore.com>
13562
13563 * utils.h (class gdb_argv) <release>: Add
13564 ATTRIBUTE_UNUSED_RESULT.
13565 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13566
41fa577f
EZ
135672019-03-02 Eli Zaretskii <eliz@gnu.org>
13568
a6a4b2c6
EZ
13569 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13570 for-loop range, to avoid compiler warnings.
13571
13572 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13573 avoid compiler warnings about unused variables.
13574
742a7df5
EZ
13575 * NEWS: Mention end of support for native debugging on MS-Windows
13576 before XP.
13577
41fa577f
EZ
13578 PR gdb/24292
13579 * common/netstuff.c:
13580 * gdbserver/gdbreplay.c
13581 * gdbserver/remote-utils.c:
13582 * ser-tcp.c:
13583 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13584 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13585 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13586 'getaddrinfo' and 'freeaddrinfo' were not available before
13587 Windows XP, and mingw.org's MinGW headers by default define
13588 _WIN32_WINNT to 0x500.
13589
827f438f
GB
135902019-03-01 Gary Benson <gbenson@redhat.com>
13591
13592 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13593
92137da0
RO
135942019-02-28 Brian Vandenberg <phantall@gmail.com>
13595 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13596
13597 PR gdb/8527
13598 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13599 set_sigint_trap, clear_sigint_trap.
13600
799efbe8
PW
136012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602
13603 * target.c (target_detach): Clear the regcache and the
13604 frame cache.
13605
8ed25214
PA
136062019-02-27 Pedro Alves <palves@redhat.com>
13607
13608 * utils.c (set_screen_size): When we cap the height/width sizes,
13609 tweak the corresponding command variable to show "unlimited":
13610
23031e31
SJ
136112019-02-27 Saagar Jha <saagar@saagarjha.com>
13612 Pedro Alves <palves@redhat.com>
13613
13614 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13615 before calling rl_set_screen_size.
13616
6c28e44a
TT
136172019-02-27 Tom Tromey <tromey@adacore.com>
13618
13619 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13620 define.
13621 * python/py-value.c: Remove Python 2.4 workaround.
13622 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13623 workaround.
13624 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13625 Python 2.4 workaround.
13626 * python/python-internal.h: Remove Python 2.4 comment.
13627 (Py_ssize_t): Don't define.
13628 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13629 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13630 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13631 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13632 * python/python.c (do_start_initialization): Remove Python 2.4
13633 workaround.
13634 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13635 (print_children): Remove Python 2.4 workaround.
13636 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13637 workaround.
13638 (CHARBUFFERPROC_NAME): Remove.
13639 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13640 Python 2.4 workaround.
13641
2c3fc25d 136422019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13643
2c3fc25d
KB
13644 * NEWS: Note minimum Python version.
13645
6ca62222
KB
136462019-02-27 Kevin Buettner <kevinb@redhat.com>
13647
13648 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13649 code from these functions. Remove corresponding ifdefs. Use
13650 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13651 Remove gotos and target of gotos.
13652 (infpy_search_memory): Likewise.
13653
f4bc7d2c
AB
136542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13657 (hppa_gdbarch_init): Don't register deleted functions with
13658 gdbarch.
13659
9734a586
AB
136602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13661
13662 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13663 (h8300_unwind_sp): Delete.
13664 (h8300_dummy_id): Delete.
13665 (h8300_gdbarch_init): Don't register deleted functions with
13666 gdbarch.
13667
68b867f3
AB
136682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13671 (ft32_unwind_pc): Delete.
13672 (ft32_unwind_sp): Delete.
13673 (ft32_gdbarch_init): Don't register deleted functions with
13674 gdbarch.
13675
2fbe7ad0
AB
136762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13677
13678 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13679 (frv_unwind_pc): Delete.
13680 (frv_unwind_sp): Delete.
13681 (frv_gdbarch_init): Don't register deleted functions with
13682 gdbarch.
13683
76055cbe
AB
136842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13687 (riscv_unwind_pc): Delete.
13688 (riscv_unwind_sp): Delete.
13689 (riscv_gdbarch_init): Don't register deleted functions with
13690 gdbarch.
13691
4133e5a1
AB
136922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13695 (csky_unwind_pc): Delete.
13696 (csky_unwind_sp): Delete.
13697 (csky_gdbarch_init): Don't register deleted functions with
13698 gdbarch.
13699
8010f576
AB
137002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13701
13702 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13703 (cris_unwind_pc): Delete.
13704 (cris_unwind_sp): Delete.
13705 (cris_gdbarch_init): Don't register deleted functions with
13706 gdbarch.
13707
b56bf084
AB
137082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13709
13710 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13711 (bfin_unwind_pc): Delete.
13712 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13713
a19a650f
AB
137142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13715
13716 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13717 (arm_unwind_pc): Delete.
13718 (arm_unwind_sp): Delete.
13719 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13720
f8278c3c
AB
137212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13722
13723 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13724 (arc_unwind_pc): Delete.
13725 (arc_unwind_sp): Delete.
13726 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13727
480e46cf
AB
137282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13729
13730 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13731 (alpha_unwind_pc): Delete.
13732 (alpha_gdbarch_init): Don't register deleted functions with
13733 gdbarch.
13734
7a995095
AB
137352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13736
13737 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13738 (aarch64_unwind_pc): Delete.
13739 (aarch64_unwind_sp): Delete.
13740 (aarch64_gdbarch_init): Don't register deleted functions with
13741 gdbarch.
13742
bf9a735e
AB
137432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * gdbtypes.c (type_align): Don't consider static members when
13746 computing structure alignment.
13747
5561fc30
AB
137482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13751 return 0 for other types.
13752 * arch-utils.c (default_type_align): Always return 0.
13753 * gdbarch.h: Regenerate.
13754 * gdbarch.sh (type_align): Extend comment.
13755 * gdbtypes.c (type_align): Add additional comments, always call
13756 gdbarch_type_align before applying the default rules.
13757 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13758 generic code will then apply a suitable default.
13759 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13760 types, return 0 for other types.
13761
9335e75a
JB
137622019-02-27 Joel Brobecker <brobecker@adacore.com>
13763
13764 * NEWS: Create a new section for the next release branch.
13765 Rename the section of the current branch, now that it has
13766 been cut.
13767
3d34d8de
JB
137682019-02-27 Joel Brobecker <brobecker@adacore.com>
13769
13770 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13771 * version.in: Bump version to 8.3.50.DATE-git.
13772
143420fb
SM
137732019-02-26 Simon Marchi <simon.marchi@efficios.com>
13774
13775 * aix-thread.c (ptid_cmp): Remove unused variable.
13776 (get_signaled_thread): Likewise.
13777 (store_regs_user_thread): Likewise.
13778 (store_regs_kernel_thread): Likewise.
13779 (fetch_regs_kernel_thread): Remove shadowed variable.
13780
172fb711
AB
137812019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13782
13783 * features/riscv/32bit-cpu.xml: Add register numbers.
13784 * features/riscv/32bit-fpu.c: Regenerate.
13785 * features/riscv/32bit-fpu.xml: Add register numbers.
13786 * features/riscv/64bit-cpu.xml: Add register numbers.
13787 * features/riscv/64bit-fpu.c: Regenerate.
13788 * features/riscv/64bit-fpu.xml: Add register numbers.
13789
26c89782
KB
137902019-02-26 Kevin Buettner <kevinb@redhat.com>
13791
af54ade9 13792 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13793 * python/py-value.c (convert_buffer_and_type_to_value): New
13794 function.
13795 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13796 Add support for handling an optional second argument. Call
13797 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13798 * python/python-internal.h (Py_buffer_deleter): New struct.
13799 (Py_buffer_up): New typedef.
13800
0f58c9e8
JB
138012019-02-25 John Baldwin <jhb@FreeBSD.org>
13802
13803 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13804 instead of releasing ownership.
13805
0a0f4c01
JR
138062019-02-25 Jordan Rupprecht <rupprecht@google.com>
13807
13808 * dwarf2read.c (open_and_init_dwp_file): Call
13809 elf_numsections instead of bfd_count_sections to initialize
13810 dwp_file->num_sections.
13811
cd5a152c
TT
138122019-02-25 Tom Tromey <tromey@adacore.com>
13813
13814 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13815
8a6a8513
SDJ
138162019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13817
13818 * gcore.in: Add '--readnever' option when invoking GDB.
13819
04dcda9c
SM
138202019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13821
13822 * MAINTAINERS: Update my email address.
13823
07bc701d
SM
138242019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13825
13826 * build-id.c (build_id_to_debug_bfd_1): New function.
13827 (build_id_to_debug_bfd): Look for separate debug file in
13828 sysroot.
13829
c6f4a5d0
AB
138302019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13831
13832 * gdbarch.sh: Update the copyright year range that is placed into
13833 generated files.
13834
9600246d
KS
138352019-02-22 Keith Seitz <keiths@redhat.com>
13836
13837 PR symtab/23853
13838 * linespec.c (create_sals_line_offset): Search for the default
13839 symtab's filename instead of its fullname.
13840
7557a514
AH
138412019-02-21 Alan Hayward <alan.hayward@arm.com>
13842
13843 * NEWS: Update style defaults.
13844
ee2bcb0c
AH
138452019-02-21 Alan Hayward <alan.hayward@arm.com>
13846
13847 * main.c (captured_main_1): Disable styling in batch mode.
13848
0c95f9ed
TT
138492019-02-20 Tom Tromey <tom@tromey.com>
13850
13851 * symtab.c (symtab_symbol_info): Fix typos.
13852
c763b894
TT
138532019-02-20 Tom Tromey <tromey@adacore.com>
13854
13855 * findcmd.c (_initialize_mem_search): Use upper case for
13856 metasyntactic variables.
13857
0ef8a082
AH
138582019-02-20 Alan Hayward <alan.hayward@arm.com>
13859
13860 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13861 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13862
6caa91b6
SM
138632019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13864
13865 * top.h (source_file_name): Change to std::string.
13866 * top.c (source_file_name): Likewise.
13867 (command_line_input): Adjust.
13868 * cli/cli-script.c (script_from_file): Adjust.
13869
98814c6c
TT
138702019-02-19 Tom Tromey <tromey@adacore.com>
13871
13872 * ravenscar-thread.c
13873 (ravenscar_thread_target::update_thread_list): Don't call
13874 ada_build_task_list.
13875 * ada-lang.h (ada_build_task_list): Don't declare.
13876 * ada-tasks.c (struct ada_tasks_inferior_data)
13877 <task_list_valid_p>: Now bool.
13878 (read_known_tasks, ada_task_list_changed)
13879 (ada_tasks_invalidate_inferior_data): Update.
13880 (read_known_tasks_array): Return bool.
13881 (read_known_tasks_list): Likewise.
13882 (read_known_tasks): Return void.
13883 (ada_build_task_list): Now static.
13884
70cd633e
AB
138852019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13886
13887 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13888 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13889
040b3e95
PW
138902019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13891
13892 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13893 variant for ada_tasks_pspace_data_handle and
13894 ada_tasks_inferior_data_handle.
13895 (ada_tasks_pspace_data_cleanup): New function.
13896 (ada_tasks_inferior_data_cleanup): New function.
13897
9409233b
TT
138982019-02-17 Tom Tromey <tom@tromey.com>
13899
13900 * macrotab.h (macro_source_fullname): Return a std::string.
13901 * macrotab.c (macro_include, check_for_redefinition)
13902 (macro_undef, macro_lookup_definition, foreach_macro)
13903 (foreach_macro_in_scope): Update.
13904 (macro_source_fullname): Return a std::string.
13905 * macrocmd.c (show_pp_source_pos): Update.
13906
6506371f
TT
139072019-02-17 Tom Tromey <tom@tromey.com>
13908
13909 * macrocmd.c (show_pp_source_pos): Style the file names.
13910
0c820d67
TT
139112019-02-17 Tom Tromey <tom@tromey.com>
13912
13913 PR tui/24197:
13914 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13915
a0087920
TT
139162019-02-17 Tom Tromey <tom@tromey.com>
13917
13918 * ada-lang.c (user_select_syms): Use filtered printing.
13919 * utils.c (wrap_style): New global.
13920 (desired_style): Remove.
13921 (emit_style_escape): Add stream parameter.
13922 (set_output_style, reset_terminal_style, prompt_for_continue):
13923 Update.
13924 (flush_wrap_buffer): Only flush gdb_stdout.
13925 (wrap_here): Set wrap_style.
13926 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13927 treat escape sequences as a character. Change when wrap buffer is
13928 flushed.
13929 (fputs_styled): Do not set the output style when the default is
13930 requested.
13931 * ui-style.h (struct ui_file_style) <is_default>: New method.
13932 * source.c (print_source_lines_base): Emit escape sequences in one
13933 piece.
13934
75ba10dc
JB
139352019-02-17 Joel Brobecker <brobecker@adacore.com>
13936
13937 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13938 integers and enumeration types.
13939
a2cd4f14
JB
139402019-02-17 Joel Brobecker <brobecker@adacore.com>
13941
13942 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13943 instead of lookup_symbol_in_language
13944 (do_exact_match): New function.
13945 (ada_get_symbol_name_matcher): Return do_exact_match when
13946 doing a verbatim match.
13947
485b851b
TT
139482019-02-15 Tom Tromey <tromey@adacore.com>
13949
13950 * ravenscar-thread.c (ravenscar_thread_target::resume)
13951 (ravenscar_thread_target::wait): Special case wildcard requests.
13952
0b790b1e
TT
139532019-02-15 Tom Tromey <tromey@adacore.com>
13954
13955 * ravenscar-thread.c (base_ptid): Remove.
13956 (struct ravenscar_thread_target) <close>: New method.
13957 <m_base_ptid>: New member.
13958 <update_inferior_ptid, active_task, task_is_currently_active,
13959 runtime_initialized>: Declare methods.
13960 <ravenscar_thread_target>: Add constructor.
13961 (ravenscar_thread_target::task_is_currently_active)
13962 (ravenscar_thread_target::update_inferior_ptid)
13963 (ravenscar_runtime_initialized): Rename. Now methods.
13964 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13965 (ravenscar_thread_target::update_thread_list): Update.
13966 (ravenscar_thread_target::active_task): Now method.
13967 (ravenscar_thread_target::store_registers)
13968 (ravenscar_thread_target::prepare_to_store)
13969 (ravenscar_thread_target::prepare_to_store)
13970 (ravenscar_thread_target::mourn_inferior): Update.
13971 (ravenscar_inferior_created): Use "new" to create target.
13972 (ravenscar_thread_target::get_ada_task_ptid): Update.
13973 (_initialize_ravenscar): Don't initialize base_ptid.
13974 (ravenscar_ops): Remove global.
13975
dea57a62
TT
139762019-02-15 Tom Tromey <tromey@adacore.com>
13977
13978 * target.h (push_target): Declare new overload.
13979 * target.c (push_target): New overload, taking an rvalue reference.
13980 * remote.c (remote_target::open_1): Use push_target overload.
13981 * corelow.c (core_target_open): Use push_target overload.
13982
989f3c58
TT
139832019-02-15 Tom Tromey <tromey@adacore.com>
13984
13985 * ravenscar-thread.c (is_ravenscar_task)
13986 (ravenscar_task_is_currently_active): Return bool.
13987 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13988 (_initialize_ravenscar): Remove "(void)".
13989 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13990 Return bool.
13991
6cbcc006
TT
139922019-02-15 Tom Tromey <tromey@adacore.com>
13993
13994 * ravenscar-thread.c (ravenscar_runtime_initializer)
13995 (has_ravenscar_runtime, get_running_thread_id)
13996 (ravenscar_thread_target::resume): Fix indentation.
13997
7657f14d
TT
139982019-02-15 Tom Tromey <tromey@adacore.com>
13999
14000 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14001 from ravenscar_arch_ops.
14002 (sparc_ravenscar_ops::fetch_registers)
14003 (sparc_ravenscar_ops::store_registers): Now methods.
14004 (sparc_ravenscar_prepare_to_store): Remove.
14005 (sparc_ravenscar_ops): Redefine.
14006 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14007 methods and destructor. Remove members.
14008 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14009 (ravenscar_thread_target::store_registers)
14010 (ravenscar_thread_target::prepare_to_store): Update.
14011 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14012 Remove.
14013 (struct ppc_ravenscar_powerpc_ops): Derive from
14014 ravenscar_arch_ops.
14015 (ppc_ravenscar_powerpc_ops::fetch_registers)
14016 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14017 (ppc_ravenscar_powerpc_ops): Redefine.
14018 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14019 (ppc_ravenscar_e500_ops::fetch_registers)
14020 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14021 (ppc_ravenscar_e500_ops): Redefine.
14022 * aarch64-ravenscar-thread.c
14023 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14024 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14025 (aarch64_ravenscar_fetch_registers)
14026 (aarch64_ravenscar_store_registers): Now methods.
14027 (aarch64_ravenscar_ops): Redefine.
14028
5b6ea500
TT
140292019-02-15 Tom Tromey <tromey@adacore.com>
14030
14031 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14032 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14033 (ravenscar_thread_target::stopped_by_watchpoint)
14034 (ravenscar_thread_target::stopped_data_address)
14035 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14036
e397fd39
TT
140372019-02-15 Tom Tromey <tromey@adacore.com>
14038
14039 * ravenscar-thread.c: Fix some typos.
14040
cc12f4a8
TT
140412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14042 Tom Tromey <tromey@adacore.com>
14043
14044 * ada-lang.c (ada_exception_sal): Change addr_string to a
14045 std::string.
14046 (create_ada_exception_catchpoint): Update.
14047
5f486660
TT
140482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14049 Tom Tromey <tromey@adacore.com>
14050
14051 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14052 (bp_location_ops): Remove.
14053 (base_breakpoint_allocate_location): Update.
14054 (free_bp_location): Update.
14055 * ada-lang.c (class ada_catchpoint_location)
14056 <ada_catchpoint_location>: Remove ops parameter.
14057 (ada_catchpoint_location_dtor): Remove.
14058 (ada_catchpoint_location_ops): Remove.
14059 (allocate_location_exception): Update.
14060 * breakpoint.h (struct bp_location_ops): Remove.
14061 (class bp_location) <bp_location>: Remove bp_location_ops
14062 parameter.
14063 <~bp_location>: Add destructor.
14064 <ops>: Remove.
14065
b671c7fb
TS
140662019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14067 Pedro Alves <palves@redhat.com>
14068
14069 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14070 'PATH_MAX'.
14071
8071c5ce
DM
140722019-02-14 David Michael <fedora.dm0@gmail.com>
14073 Samuel Thibault <samuel.thibault@gnu.org>
14074 Thomas Schwinge <thomas@codesourcery.com>
14075
14076 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14077 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14078
b1041ae0
TS
140792019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14080
924514e1
TS
14081 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14082 (check_empty): Use "const char *".
14083
c29ee8d4
TS
14084 * gnu-nat.c (gnu_nat_target::detach): Instead of
14085 'detach_inferior (pid)' call
14086 'detach_inferior (find_inferior_pid (pid))'.
14087
6c6ef69f
TS
14088 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14089 'nat/fork-inferior.o'.
14090 * gnu-nat.c: #include "nat/fork-inferior.h".
14091
2d0a338c
TS
14092 * gnu-nat.c (gnu_nat_target::detach): Instead of
14093 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14094 * gnu-nat.h: #include "inf-child.h".
14095 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14096 'i386_gnu_nat_target::fetch_registers'.
14097 (gnu_store_registers): Rename/move to
14098 'i386_gnu_nat_target::store_registers'.
14099
cabb5f06
TS
14100 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14101 * gnu-nat.h (mach_thread_info): New function.
14102 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14103
b1041ae0
TS
14104 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14105
2988d01e
KF
141062019-02-14 Frederic Konrad <konrad@adacore.com>
14107
14108 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14109
c559d709
JB
141102019-02-14 Joel Brobecker <brobecker@adacore.com>
14111
14112 * windows-nat.c (windows_add_thread): Add new parameter
14113 "main_thread_p" with default value set to false. Update
14114 function documentation as well as all callers.
14115 (windows_delete_thread): Likewise.
14116 (fake_create_process): Update call to windows_add_thread.
14117 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14118 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14119 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14120 call to windows_delete_thread.
14121
007024cc
SM
141222019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14123
14124 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14125
f62318e9
JB
141262019-02-12 John Baldwin <jhb@FreeBSD.org>
14127
14128 * symfile.c (find_separate_debug_file): Use canonical path of
14129 sysroot with child_path instead of gdb_sysroot if it is valid.
14130
cd4b7848
JB
141312019-02-12 John Baldwin <jhb@FreeBSD.org>
14132
14133 * symfile.c (find_separate_debug_file): Use child_path to
14134 determine if an object file is under a sysroot.
14135
efac4bfe
JB
141362019-02-12 John Baldwin <jhb@FreeBSD.org>
14137
14138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14139 unittests/child-path-selftests.c.
14140 * common/pathstuff.c (child_path): New function.
14141 * common/pathstuff.h (child_path): New prototype.
14142 * unittests/child-path-selftests.c: New file.
14143
402d2bfe
JB
141442019-02-12 John Baldwin <jhb@FreeBSD.org>
14145
14146 * symfile.c (find_separate_debug_file): Look for separate debug
14147 files in debug directories under the sysroot.
14148
1ed9f74e
PW
141492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14150
14151 * symtab.h (struct minimal_symbol data_p): New const method.
14152 (struct minimal_symbol text_p): Likewise.
14153 * symtab.c (output_source_filename): Use file name style
14154 to print file name.
14155 (print_symbol_info): Likewise.
14156 (print_msymbol_info): Use address style to print addresses.
14157 Use function name style to print executable text symbols.
14158 (expand_symtab_containing_pc): Use data_p.
14159 (find_pc_sect_compunit_symtab): Likewise.
14160
2636d81d
PW
141612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14162
14163 * breakpoint.c (describe_other_breakpoints): Use address style
14164 to print addresses.
14165 (say_where): Likewise.
14166
ac8c53cc
PW
141672019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14168
14169 * ada-typeprint.c (print_func_type): Print function name
14170 style to print function name.
14171 * c-typeprint.c (c_print_type_1): Likewise.
14172
ea638c43
AH
141732019-02-11 Alan Hayward <alan.hayward@arm.com>
14174
14175 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14176 for execve.
14177
ab759ca8
PW
141782019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14179
14180 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14181 type_stack.
14182
aff29d1c
JB
141832019-02-10 Joel Brobecker <brobecker@adacore.com>
14184
14185 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14186 TYPE_CODE_REF types.
14187
617126bc
JW
141882019-02-08 Jim Wilson <jimw@sifive.com>
14189
14190 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14191 (riscv_linux_fregset): New.
14192 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14193
46e3ed7f
TT
141942019-02-07 Tom Tromey <tom@tromey.com>
14195
14196 * thread.c (thread_cancel_execution_command): Update.
14197 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14198 methods.
14199 (struct thread_fsm_ops): Remove.
14200 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14201 (thread_fsm_should_stop, thread_fsm_return_value)
14202 (thread_fsm_set_finished, thread_fsm_finished_p)
14203 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14204 Don't declare.
14205 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14206 * infrun.c (clear_proceed_status_thread)
14207 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14208 (print_stop_event): Update.
14209 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14210 Add constructor.
14211 (step_command_fsm_ops): Remove.
14212 (new_step_command_fsm): Remove.
14213 (step_1): Update.
14214 (step_command_fsm::should_stop): Rename from
14215 step_command_fsm_should_stop.
14216 (step_command_fsm::clean_up): Rename from
14217 step_command_fsm_clean_up.
14218 (step_command_fsm::do_async_reply_reason): Rename from
14219 step_command_fsm_async_reply_reason.
14220 (struct until_next_fsm): Inherit from thread_fsm. Add
14221 constructor.
14222 (until_next_fsm_ops): Remove.
14223 (new_until_next_fsm): Remove.
14224 (until_next_fsm::should_stop): Rename from
14225 until_next_fsm_should_stop.
14226 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14227 (until_next_fsm::do_async_reply_reason): Rename from
14228 until_next_fsm_async_reply_reason.
14229 (struct finish_command_fsm): Inherit from thread_fsm. Add
14230 constructor. Change type of breakpoint.
14231 (finish_command_fsm_ops): Remove.
14232 (new_finish_command_fsm): Remove.
14233 (finish_command_fsm::should_stop): Rename from
14234 finish_command_fsm_should_stop.
14235 (finish_command_fsm::clean_up): Rename from
14236 finish_command_fsm_clean_up.
14237 (finish_command_fsm::return_value): Rename from
14238 finish_command_fsm_return_value.
14239 (finish_command_fsm::do_async_reply_reason): Rename from
14240 finish_command_fsm_async_reply_reason.
14241 (finish_command): Update.
14242 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14243 Add constructor.
14244 (call_thread_fsm_ops): Remove.
14245 (call_thread_fsm::call_thread_fsm): Rename from
14246 new_call_thread_fsm.
14247 (call_thread_fsm::should_stop): Rename from
14248 call_thread_fsm_should_stop.
14249 (call_thread_fsm::should_notify_stop): Rename from
14250 call_thread_fsm_should_notify_stop.
14251 (run_inferior_call, call_function_by_hand_dummy): Update.
14252 * cli/cli-interp.c (should_print_stop_to_console): Update.
14253 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14254 Add constructor. Change type of location_breakpoint,
14255 caller_breakpoint.
14256 (until_break_fsm_ops): Remove.
14257 (new_until_break_fsm): Remove.
14258 (until_break_fsm::should_stop): Rename from
14259 until_break_fsm_should_stop.
14260 (until_break_fsm::clean_up): Rename from
14261 until_break_fsm_clean_up.
14262 (until_break_fsm::do_async_reply_reason): Rename from
14263 until_break_fsm_async_reply_reason.
14264 (until_break_command): Update.
14265 * thread-fsm.c: Remove.
14266 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14267
1a5c2598
TT
142682019-02-07 Tom Tromey <tom@tromey.com>
14269
14270 * yy-remap.h: Add include guard.
14271 * xtensa-tdep.h: Add include guard.
14272 * xcoffread.h: Rename include guard.
14273 * varobj-iter.h: Add include guard.
14274 * tui/tui.h: Rename include guard.
14275 * tui/tui-winsource.h: Rename include guard.
14276 * tui/tui-wingeneral.h: Rename include guard.
14277 * tui/tui-windata.h: Rename include guard.
14278 * tui/tui-win.h: Rename include guard.
14279 * tui/tui-stack.h: Rename include guard.
14280 * tui/tui-source.h: Rename include guard.
14281 * tui/tui-regs.h: Rename include guard.
14282 * tui/tui-out.h: Rename include guard.
14283 * tui/tui-layout.h: Rename include guard.
14284 * tui/tui-io.h: Rename include guard.
14285 * tui/tui-hooks.h: Rename include guard.
14286 * tui/tui-file.h: Rename include guard.
14287 * tui/tui-disasm.h: Rename include guard.
14288 * tui/tui-data.h: Rename include guard.
14289 * tui/tui-command.h: Rename include guard.
14290 * tic6x-tdep.h: Add include guard.
14291 * target/waitstatus.h: Rename include guard.
14292 * target/wait.h: Rename include guard.
14293 * target/target.h: Rename include guard.
14294 * target/resume.h: Rename include guard.
14295 * target-float.h: Rename include guard.
14296 * stabsread.h: Add include guard.
14297 * rs6000-tdep.h: Add include guard.
14298 * riscv-fbsd-tdep.h: Add include guard.
14299 * regformats/regdef.h: Rename include guard.
14300 * record.h: Rename include guard.
14301 * python/python.h: Rename include guard.
14302 * python/python-internal.h: Rename include guard.
14303 * python/py-stopevent.h: Rename include guard.
14304 * python/py-ref.h: Rename include guard.
14305 * python/py-record.h: Rename include guard.
14306 * python/py-record-full.h: Rename include guard.
14307 * python/py-record-btrace.h: Rename include guard.
14308 * python/py-instruction.h: Rename include guard.
14309 * python/py-events.h: Rename include guard.
14310 * python/py-event.h: Rename include guard.
14311 * procfs.h: Add include guard.
14312 * proc-utils.h: Add include guard.
14313 * p-lang.h: Add include guard.
14314 * or1k-tdep.h: Rename include guard.
14315 * observable.h: Rename include guard.
14316 * nto-tdep.h: Rename include guard.
14317 * nat/x86-linux.h: Rename include guard.
14318 * nat/x86-linux-dregs.h: Rename include guard.
14319 * nat/x86-gcc-cpuid.h: Add include guard.
14320 * nat/x86-dregs.h: Rename include guard.
14321 * nat/x86-cpuid.h: Rename include guard.
14322 * nat/ppc-linux.h: Rename include guard.
14323 * nat/mips-linux-watch.h: Rename include guard.
14324 * nat/linux-waitpid.h: Rename include guard.
14325 * nat/linux-ptrace.h: Rename include guard.
14326 * nat/linux-procfs.h: Rename include guard.
14327 * nat/linux-osdata.h: Rename include guard.
14328 * nat/linux-nat.h: Rename include guard.
14329 * nat/linux-namespaces.h: Rename include guard.
14330 * nat/linux-btrace.h: Rename include guard.
14331 * nat/glibc_thread_db.h: Rename include guard.
14332 * nat/gdb_thread_db.h: Rename include guard.
14333 * nat/gdb_ptrace.h: Rename include guard.
14334 * nat/fork-inferior.h: Rename include guard.
14335 * nat/amd64-linux-siginfo.h: Rename include guard.
14336 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14337 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14338 * nat/aarch64-linux.h: Rename include guard.
14339 * nat/aarch64-linux-hw-point.h: Rename include guard.
14340 * mn10300-tdep.h: Add include guard.
14341 * mips-linux-tdep.h: Add include guard.
14342 * mi/mi-parse.h: Rename include guard.
14343 * mi/mi-out.h: Rename include guard.
14344 * mi/mi-main.h: Rename include guard.
14345 * mi/mi-interp.h: Rename include guard.
14346 * mi/mi-getopt.h: Rename include guard.
14347 * mi/mi-console.h: Rename include guard.
14348 * mi/mi-common.h: Rename include guard.
14349 * mi/mi-cmds.h: Rename include guard.
14350 * mi/mi-cmd-break.h: Rename include guard.
14351 * m2-lang.h: Add include guard.
14352 * location.h: Rename include guard.
14353 * linux-record.h: Rename include guard.
14354 * linux-nat.h: Add include guard.
14355 * linux-fork.h: Add include guard.
14356 * i386-darwin-tdep.h: Rename include guard.
14357 * hppa-linux-offsets.h: Add include guard.
14358 * guile/guile.h: Rename include guard.
14359 * guile/guile-internal.h: Rename include guard.
14360 * gnu-nat.h: Rename include guard.
14361 * gdb-stabs.h: Rename include guard.
14362 * frv-tdep.h: Add include guard.
14363 * f-lang.h: Add include guard.
14364 * event-loop.h: Add include guard.
14365 * darwin-nat.h: Rename include guard.
14366 * cp-abi.h: Rename include guard.
14367 * config/sparc/nm-sol2.h: Rename include guard.
14368 * config/nm-nto.h: Rename include guard.
14369 * config/nm-linux.h: Add include guard.
14370 * config/i386/nm-i386gnu.h: Rename include guard.
14371 * config/djgpp/nl_types.h: Rename include guard.
14372 * config/djgpp/langinfo.h: Rename include guard.
14373 * compile/gcc-cp-plugin.h: Add include guard.
14374 * compile/gcc-c-plugin.h: Add include guard.
14375 * compile/compile.h: Rename include guard.
14376 * compile/compile-object-run.h: Rename include guard.
14377 * compile/compile-object-load.h: Rename include guard.
14378 * compile/compile-internal.h: Rename include guard.
14379 * compile/compile-cplus.h: Rename include guard.
14380 * compile/compile-c.h: Rename include guard.
14381 * common/xml-utils.h: Rename include guard.
14382 * common/x86-xstate.h: Rename include guard.
14383 * common/version.h: Rename include guard.
14384 * common/vec.h: Rename include guard.
14385 * common/tdesc.h: Rename include guard.
14386 * common/selftest.h: Rename include guard.
14387 * common/scoped_restore.h: Rename include guard.
14388 * common/scoped_mmap.h: Rename include guard.
14389 * common/scoped_fd.h: Rename include guard.
14390 * common/safe-iterator.h: Rename include guard.
14391 * common/run-time-clock.h: Rename include guard.
14392 * common/refcounted-object.h: Rename include guard.
14393 * common/queue.h: Rename include guard.
14394 * common/ptid.h: Rename include guard.
14395 * common/print-utils.h: Rename include guard.
14396 * common/preprocessor.h: Rename include guard.
14397 * common/pathstuff.h: Rename include guard.
14398 * common/observable.h: Rename include guard.
14399 * common/netstuff.h: Rename include guard.
14400 * common/job-control.h: Rename include guard.
14401 * common/host-defs.h: Rename include guard.
14402 * common/gdb_wait.h: Rename include guard.
14403 * common/gdb_vecs.h: Rename include guard.
14404 * common/gdb_unlinker.h: Rename include guard.
14405 * common/gdb_unique_ptr.h: Rename include guard.
14406 * common/gdb_tilde_expand.h: Rename include guard.
14407 * common/gdb_sys_time.h: Rename include guard.
14408 * common/gdb_string_view.h: Rename include guard.
14409 * common/gdb_splay_tree.h: Rename include guard.
14410 * common/gdb_setjmp.h: Rename include guard.
14411 * common/gdb_ref_ptr.h: Rename include guard.
14412 * common/gdb_optional.h: Rename include guard.
14413 * common/gdb_locale.h: Rename include guard.
14414 * common/gdb_assert.h: Rename include guard.
14415 * common/filtered-iterator.h: Rename include guard.
14416 * common/filestuff.h: Rename include guard.
14417 * common/fileio.h: Rename include guard.
14418 * common/environ.h: Rename include guard.
14419 * common/common-utils.h: Rename include guard.
14420 * common/common-types.h: Rename include guard.
14421 * common/common-regcache.h: Rename include guard.
14422 * common/common-inferior.h: Rename include guard.
14423 * common/common-gdbthread.h: Rename include guard.
14424 * common/common-exceptions.h: Rename include guard.
14425 * common/common-defs.h: Rename include guard.
14426 * common/common-debug.h: Rename include guard.
14427 * common/cleanups.h: Rename include guard.
14428 * common/buffer.h: Rename include guard.
14429 * common/btrace-common.h: Rename include guard.
14430 * common/break-common.h: Rename include guard.
14431 * cli/cli-utils.h: Rename include guard.
14432 * cli/cli-style.h: Rename include guard.
14433 * cli/cli-setshow.h: Rename include guard.
14434 * cli/cli-script.h: Rename include guard.
14435 * cli/cli-interp.h: Rename include guard.
14436 * cli/cli-decode.h: Rename include guard.
14437 * cli/cli-cmds.h: Rename include guard.
14438 * charset-list.h: Add include guard.
14439 * buildsym-legacy.h: Rename include guard.
14440 * bfin-tdep.h: Add include guard.
14441 * ax.h: Rename include guard.
14442 * arm-linux-tdep.h: Add include guard.
14443 * arm-fbsd-tdep.h: Add include guard.
14444 * arch/xtensa.h: Rename include guard.
14445 * arch/tic6x.h: Add include guard.
14446 * arch/i386.h: Add include guard.
14447 * arch/arm.h: Rename include guard.
14448 * arch/arm-linux.h: Rename include guard.
14449 * arch/arm-get-next-pcs.h: Rename include guard.
14450 * arch/amd64.h: Add include guard.
14451 * arch/aarch64-insn.h: Rename include guard.
14452 * arch-utils.h: Rename include guard.
14453 * annotate.h: Add include guard.
14454 * amd64-darwin-tdep.h: Rename include guard.
14455 * aarch64-linux-tdep.h: Add include guard.
14456 * aarch64-fbsd-tdep.h: Add include guard.
14457 * aarch32-linux-nat.h: Add include guard.
14458
ab9268d2
PW
144592019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14460
14461 * macrotab.c (macro_define_internal): New function that
14462 factorizes macro_define_object_internal and macro_define_function
14463 code.
14464 (macro_define_object_internal): Use macro_define_internal.
14465 (macro_define_function): Likewise.
14466
bb0da2b4
PW
144672019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14468
14469 * macrocmd.c (extract_identifier): Return
14470 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14471 callers.
14472
424eb552
JB
144732019-02-06 John Baldwin <jhb@FreeBSD.org>
14474
14475 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14476
1688cb29
TT
144772019-02-05 Tom Tromey <tom@tromey.com>
14478
14479 * target.c (target_stack::unpush): Move assertion earlier.
14480
b5eba2d8
TT
144812019-01-30 Tom Tromey <tom@tromey.com>
14482
14483 PR python/23615:
14484 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14485 (gdbpy_parse_and_eval): Likewise.
14486 * python/python-internal.h (gdbpy_allow_threads): New class.
14487
7054e2ff
JB
144882019-01-28 John Baldwin <jhb@FreeBSD.org>
14489
14490 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14491 (aarch64_fbsd_fpregmap): Move earlier.
14492 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14493 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14494 instead of individual calls to trad_frame_set_reg_addr.
14495 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14496 earlier.
14497 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14498 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14499 instead of individual calls to trad_frame_set_reg_addr.
14500
36c25ffa
AH
145012019-01-28 Alan Hayward <alan.hayward@arm.com>
14502
14503 * CONTRIBUTE: Replace contribution list with wiki link.
14504
a0707f3c
TT
145052019-01-25 Tom Tromey <tom@tromey.com>
14506
14507 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14508
0747795c
TT
145092019-01-25 Tom Tromey <tom@tromey.com>
14510
14511 * xtensa-linux-nat.c: Fix common/ includes.
14512 * xml-support.h: Fix common/ includes.
14513 * xml-support.c: Fix common/ includes.
14514 * x86-linux-nat.c: Fix common/ includes.
14515 * windows-nat.c: Fix common/ includes.
14516 * varobj.h: Fix common/ includes.
14517 * varobj.c: Fix common/ includes.
14518 * value.c: Fix common/ includes.
14519 * valops.c: Fix common/ includes.
14520 * utils.c: Fix common/ includes.
14521 * unittests/xml-utils-selftests.c: Fix common/ includes.
14522 * unittests/utils-selftests.c: Fix common/ includes.
14523 * unittests/unpack-selftests.c: Fix common/ includes.
14524 * unittests/tracepoint-selftests.c: Fix common/ includes.
14525 * unittests/style-selftests.c: Fix common/ includes.
14526 * unittests/string_view-selftests.c: Fix common/ includes.
14527 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14528 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14529 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14530 * unittests/rsp-low-selftests.c: Fix common/ includes.
14531 * unittests/parse-connection-spec-selftests.c: Fix common/
14532 includes.
14533 * unittests/optional-selftests.c: Fix common/ includes.
14534 * unittests/offset-type-selftests.c: Fix common/ includes.
14535 * unittests/observable-selftests.c: Fix common/ includes.
14536 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14537 * unittests/memrange-selftests.c: Fix common/ includes.
14538 * unittests/memory-map-selftests.c: Fix common/ includes.
14539 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14540 * unittests/function-view-selftests.c: Fix common/ includes.
14541 * unittests/environ-selftests.c: Fix common/ includes.
14542 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14543 * unittests/common-utils-selftests.c: Fix common/ includes.
14544 * unittests/cli-utils-selftests.c: Fix common/ includes.
14545 * unittests/array-view-selftests.c: Fix common/ includes.
14546 * ui-file.c: Fix common/ includes.
14547 * tui/tui-io.c: Fix common/ includes.
14548 * tracepoint.h: Fix common/ includes.
14549 * tracepoint.c: Fix common/ includes.
14550 * tracefile-tfile.c: Fix common/ includes.
14551 * top.h: Fix common/ includes.
14552 * top.c: Fix common/ includes.
14553 * thread.c: Fix common/ includes.
14554 * target/waitstatus.h: Fix common/ includes.
14555 * target/waitstatus.c: Fix common/ includes.
14556 * target.h: Fix common/ includes.
14557 * target.c: Fix common/ includes.
14558 * target-memory.c: Fix common/ includes.
14559 * target-descriptions.c: Fix common/ includes.
14560 * symtab.h: Fix common/ includes.
14561 * symfile.c: Fix common/ includes.
14562 * stap-probe.c: Fix common/ includes.
14563 * spu-linux-nat.c: Fix common/ includes.
14564 * sparc-nat.c: Fix common/ includes.
14565 * source.c: Fix common/ includes.
14566 * solib.c: Fix common/ includes.
14567 * solib-target.c: Fix common/ includes.
14568 * ser-unix.c: Fix common/ includes.
14569 * ser-tcp.c: Fix common/ includes.
14570 * ser-pipe.c: Fix common/ includes.
14571 * ser-base.c: Fix common/ includes.
14572 * selftest-arch.c: Fix common/ includes.
14573 * s12z-tdep.c: Fix common/ includes.
14574 * rust-exp.y: Fix common/ includes.
14575 * rs6000-aix-tdep.c: Fix common/ includes.
14576 * riscv-tdep.c: Fix common/ includes.
14577 * remote.c: Fix common/ includes.
14578 * remote-notif.h: Fix common/ includes.
14579 * remote-fileio.h: Fix common/ includes.
14580 * remote-fileio.c: Fix common/ includes.
14581 * regcache.h: Fix common/ includes.
14582 * regcache.c: Fix common/ includes.
14583 * record-btrace.c: Fix common/ includes.
14584 * python/python.c: Fix common/ includes.
14585 * python/py-type.c: Fix common/ includes.
14586 * python/py-inferior.c: Fix common/ includes.
14587 * progspace.h: Fix common/ includes.
14588 * producer.c: Fix common/ includes.
14589 * procfs.c: Fix common/ includes.
14590 * proc-api.c: Fix common/ includes.
14591 * printcmd.c: Fix common/ includes.
14592 * ppc-linux-nat.c: Fix common/ includes.
14593 * parser-defs.h: Fix common/ includes.
14594 * osdata.c: Fix common/ includes.
14595 * obsd-nat.c: Fix common/ includes.
14596 * nat/x86-linux.c: Fix common/ includes.
14597 * nat/x86-linux-dregs.c: Fix common/ includes.
14598 * nat/x86-dregs.h: Fix common/ includes.
14599 * nat/x86-dregs.c: Fix common/ includes.
14600 * nat/ppc-linux.c: Fix common/ includes.
14601 * nat/mips-linux-watch.h: Fix common/ includes.
14602 * nat/mips-linux-watch.c: Fix common/ includes.
14603 * nat/linux-waitpid.c: Fix common/ includes.
14604 * nat/linux-ptrace.h: Fix common/ includes.
14605 * nat/linux-ptrace.c: Fix common/ includes.
14606 * nat/linux-procfs.c: Fix common/ includes.
14607 * nat/linux-personality.c: Fix common/ includes.
14608 * nat/linux-osdata.c: Fix common/ includes.
14609 * nat/linux-namespaces.c: Fix common/ includes.
14610 * nat/linux-btrace.h: Fix common/ includes.
14611 * nat/linux-btrace.c: Fix common/ includes.
14612 * nat/fork-inferior.c: Fix common/ includes.
14613 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14614 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14615 * nat/aarch64-linux.c: Fix common/ includes.
14616 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14617 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14618 * namespace.h: Fix common/ includes.
14619 * mips-linux-tdep.c: Fix common/ includes.
14620 * minsyms.c: Fix common/ includes.
14621 * mi/mi-parse.h: Fix common/ includes.
14622 * mi/mi-main.c: Fix common/ includes.
14623 * mi/mi-cmd-env.c: Fix common/ includes.
14624 * memrange.h: Fix common/ includes.
14625 * memattr.c: Fix common/ includes.
14626 * maint.h: Fix common/ includes.
14627 * maint.c: Fix common/ includes.
14628 * main.c: Fix common/ includes.
14629 * machoread.c: Fix common/ includes.
14630 * location.c: Fix common/ includes.
14631 * linux-thread-db.c: Fix common/ includes.
14632 * linux-nat.c: Fix common/ includes.
14633 * linux-fork.c: Fix common/ includes.
14634 * inline-frame.c: Fix common/ includes.
14635 * infrun.c: Fix common/ includes.
14636 * inflow.c: Fix common/ includes.
14637 * inferior.h: Fix common/ includes.
14638 * inferior.c: Fix common/ includes.
14639 * infcmd.c: Fix common/ includes.
14640 * inf-ptrace.c: Fix common/ includes.
14641 * inf-child.c: Fix common/ includes.
14642 * ia64-linux-nat.c: Fix common/ includes.
14643 * i387-tdep.c: Fix common/ includes.
14644 * i386-tdep.c: Fix common/ includes.
14645 * i386-linux-tdep.c: Fix common/ includes.
14646 * i386-linux-nat.c: Fix common/ includes.
14647 * i386-go32-tdep.c: Fix common/ includes.
14648 * i386-fbsd-tdep.c: Fix common/ includes.
14649 * i386-fbsd-nat.c: Fix common/ includes.
14650 * guile/scm-type.c: Fix common/ includes.
14651 * guile/guile.c: Fix common/ includes.
14652 * go32-nat.c: Fix common/ includes.
14653 * gnu-nat.c: Fix common/ includes.
14654 * gdbthread.h: Fix common/ includes.
14655 * gdbarch-selftests.c: Fix common/ includes.
14656 * gdb_usleep.c: Fix common/ includes.
14657 * gdb_select.h: Fix common/ includes.
14658 * gdb_bfd.c: Fix common/ includes.
14659 * gcore.c: Fix common/ includes.
14660 * fork-child.c: Fix common/ includes.
14661 * findvar.c: Fix common/ includes.
14662 * fbsd-nat.c: Fix common/ includes.
14663 * event-top.c: Fix common/ includes.
14664 * event-loop.c: Fix common/ includes.
14665 * dwarf2read.c: Fix common/ includes.
14666 * dwarf2loc.c: Fix common/ includes.
14667 * dwarf2-frame.c: Fix common/ includes.
14668 * dwarf-index-cache.c: Fix common/ includes.
14669 * dtrace-probe.c: Fix common/ includes.
14670 * disasm-selftests.c: Fix common/ includes.
14671 * defs.h: Fix common/ includes.
14672 * csky-tdep.c: Fix common/ includes.
14673 * cp-valprint.c: Fix common/ includes.
14674 * cp-support.h: Fix common/ includes.
14675 * cp-support.c: Fix common/ includes.
14676 * corelow.c: Fix common/ includes.
14677 * completer.h: Fix common/ includes.
14678 * completer.c: Fix common/ includes.
14679 * compile/compile.c: Fix common/ includes.
14680 * compile/compile-loc2c.c: Fix common/ includes.
14681 * compile/compile-cplus-types.c: Fix common/ includes.
14682 * compile/compile-cplus-symbols.c: Fix common/ includes.
14683 * command.h: Fix common/ includes.
14684 * cli/cli-dump.c: Fix common/ includes.
14685 * cli/cli-cmds.c: Fix common/ includes.
14686 * charset.c: Fix common/ includes.
14687 * build-id.c: Fix common/ includes.
14688 * btrace.h: Fix common/ includes.
14689 * btrace.c: Fix common/ includes.
14690 * breakpoint.h: Fix common/ includes.
14691 * breakpoint.c: Fix common/ includes.
14692 * ax.h:
14693 (enum agent_op): Fix common/ includes.
14694 * ax-general.c (struct aop_map): Fix common/ includes.
14695 * ax-gdb.c: Fix common/ includes.
14696 * auxv.c: Fix common/ includes.
14697 * auto-load.c: Fix common/ includes.
14698 * arm-tdep.c: Fix common/ includes.
14699 * arch/riscv.c: Fix common/ includes.
14700 * arch/ppc-linux-common.c: Fix common/ includes.
14701 * arch/i386.c: Fix common/ includes.
14702 * arch/arm.c: Fix common/ includes.
14703 * arch/arm-linux.c: Fix common/ includes.
14704 * arch/arm-get-next-pcs.c: Fix common/ includes.
14705 * arch/amd64.c: Fix common/ includes.
14706 * arch/aarch64.c: Fix common/ includes.
14707 * arch/aarch64-insn.c: Fix common/ includes.
14708 * arch-utils.c: Fix common/ includes.
14709 * amd64-windows-tdep.c: Fix common/ includes.
14710 * amd64-tdep.c: Fix common/ includes.
14711 * amd64-sol2-tdep.c: Fix common/ includes.
14712 * amd64-obsd-tdep.c: Fix common/ includes.
14713 * amd64-nbsd-tdep.c: Fix common/ includes.
14714 * amd64-linux-tdep.c: Fix common/ includes.
14715 * amd64-linux-nat.c: Fix common/ includes.
14716 * amd64-fbsd-tdep.c: Fix common/ includes.
14717 * amd64-fbsd-nat.c: Fix common/ includes.
14718 * amd64-dicos-tdep.c: Fix common/ includes.
14719 * amd64-darwin-tdep.c: Fix common/ includes.
14720 * agent.c: Fix common/ includes.
14721 * ada-lang.h: Fix common/ includes.
14722 * ada-lang.c: Fix common/ includes.
14723 * aarch64-tdep.c: Fix common/ includes.
14724
2f5c153e
TT
147252019-01-25 Tom Tromey <tom@tromey.com>
14726
14727 * common/create-version.sh: Use common/version.h.
14728
adc6a863
PA
147292019-01-24 Pedro Alves <palves@redhat.com>
14730
14731 * infrun.c (signal_stop, signal_print, signal_program)
14732 (signal_catch, signal_pass): Now arrays instead of pointers.
14733 (update_signals_program_target, do_target_resume)
14734 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14735 * linux-nat.c (linux_nat_target::pass_signals)
14736 (linux_nat_target::create_inferior, linux_nat_target::attach):
14737 Adjust.
14738 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14739 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14740 * procfs.c (procfs_target::pass_signals): Adjust.
14741 * record-full.c (record_full_target::resume): Adjust.
14742 * remote.c (remote_target::pass_signals)
14743 (remote_target::program_signals): Adjust.
14744 * target-debug.h (target_debug_print_signals): Now takes a
14745 gdb::array_view as parameter. Adjust.
14746 * target.h (target_ops) <pass_signals, program_signals>: Replace
14747 pointer and length parameters with gdb::array_view.
14748 (target_pass_signals, target_program_signals): Likewise.
14749 * target-delegates.c: Regenerate.
14750
3046d67a
PA
147512019-01-24 Pedro Alves <palves@redhat.com>
14752
14753 * common/forward-scope-exit.h
14754 (forward_scope_exit::forward_scope_exit): Pass arguments to
14755 m_bind_function directly, instead of creating a std::bind and
14756 copying that.
14757
353229bf
AH
147582019-01-24 Alan Hayward <alan.hayward@arm.com>
14759
14760 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14761 for static members.
14762 (pass_in_v_vfp_candidate): Likewise.
14763
311dc83a
TT
147642019-01-23 Tom Tromey <tom@tromey.com>
14765 Pedro Alves <palves@redhat.com>
14766
14767 * regcache.c (class regcache_invalidator): Remove.
14768 (regcache::raw_write): Use make_scope_exit.
14769
296bd123
TT
147702019-01-23 Tom Tromey <tom@tromey.com>
14771
14772 * ui-out.h (class ui_out_emit_type): Update comment.
14773
979a0d13
TT
147742019-01-23 Tom Tromey <tom@tromey.com>
14775
14776 * infrun.c (fetch_inferior_event): Update comment.
14777
d238133d
TT
147782019-01-23 Tom Tromey <tom@tromey.com>
14779 Pedro Alves <palves@redhat.com>
14780
14781 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14782 parameter.
14783 (fetch_inferior_event): Use SCOPE_EXIT.
14784
14785
9885e6bb
TT
147862019-01-23 Tom Tromey <tom@tromey.com>
14787 Pedro Alves <palves@redhat.com>
14788
14789 * infrun.c (disable_thread_events): Delete.
14790 (stop_all_threads): Use SCOPE_EXIT.
14791
286526c1
TT
147922019-01-23 Tom Tromey <tom@tromey.com>
14793 Pedro Alves <palves@redhat.com>
14794
14795 * symfile.c: Include forward-scope-exit.h.
14796 (clear_symtab_users_cleanup): Replace forward declaration with
14797 a FORWARD_SCOPE_EXIT.
14798 (syms_from_objfile_1): Use the forward_scope_exit and
14799 gdb::optional instead of cleanup_function.
14800 (reread_symbols): Use the forward_scope_exit instead of
14801 cleanup_function.
14802 (clear_symtab_users_cleanup): Remove function.
14803
1db93f14
TT
148042019-01-23 Tom Tromey <tom@tromey.com>
14805 Pedro Alves <palves@redhat.com>
14806
14807 * linux-nat.c: Include scope-exit.h.
14808 (cleanup_target_stop): Remove.
14809 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14810 SCOPE_EXIT.
14811
2cc83d1e
TT
148122019-01-23 Tom Tromey <tom@tromey.com>
14813 Pedro Alves <palves@redhat.com>
14814
14815 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14816 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14817
694c6bf5
TT
148182019-01-23 Tom Tromey <tom@tromey.com>
14819 Andrew Burgess <andrew.burgess@embecosm.com>
14820 Pedro Alves <palves@redhat.com>
14821
14822 * infrun.c (fetch_inferior_event): Use scope_exit.
14823 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14824 * top.c (execute_command): Use scope_exit.
14825 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14826 * utils.c (do_bpstat_clear_actions_cleanup)
14827 (make_bpstat_clear_actions_cleanup): Remove.
14828
4c41382a
TT
148292019-01-23 Tom Tromey <tom@tromey.com>
14830 Pedro Alves <palves@redhat.com>
14831
14832 * infrun.c: Include "common/scope-exit.h"
14833 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14834 (wait_for_inferior): Use SCOPE_EXIT.
14835 (fetch_inferior_event): Use scope_exit.
14836
89f8fb50
TT
148372019-01-23 Tom Tromey <tom@tromey.com>
14838 Pedro Alves <palves@redhat.com>
14839
14840 * breakpoint.c (create_breakpoint): Remove cleanup.
14841
5419bdae
TT
148422019-01-23 Tom Tromey <tom@tromey.com>
14843 Andrew Burgess <andrew.burgess@embecosm.com>
14844 Pedro Alves <palves@redhat.com>
14845
e587ef42
PA
148462019-01-23 Pedro Alves <palves@redhat.com>
14847
14848 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14849
77f0e74c
PA
148502019-01-23 Pedro Alves <palves@redhat.com>
14851 Andrew Burgess <andrew.burgess@embecosm.com>
14852
14853 * gdbthread.h: Include "common/forward-scope-exit.h".
14854 (scoped_finish_thread_state): Redefine custom class in terms of
14855 forward_scope_exit.
14856
5b9b3e53
PA
148572019-01-23 Pedro Alves <palves@redhat.com>
14858 Andrew Burgess <andrew.burgess@embecosm.com>
14859
14860 * common/forward-scope-exit.h: New file.
14861
54b65c9b
PA
148622019-01-23 Pedro Alves <palves@redhat.com>
14863 Andrew Burgess <andrew.burgess@embecosm.com>
14864 Tom Tromey <tom@tromey.com>
14865
14866 * common/scope-exit.h: New file.
14867
cf08fb29
PA
148682019-01-23 Pedro Alves <palves@redhat.com>
14869
14870 * common/preprocessor.h (ESC): Rename to ...
14871 (ESC_PARENS): ... this.
14872 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14873 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14874
ae73e2e2
TT
148752019-01-23 Tom Tromey <tom@tromey.com>
14876
14877 * language.h (class scoped_switch_to_sym_language_if_auto):
14878 Initialize m_lang in both cases.
14879
6594e122
AH
148802019-01-23 Alan Hayward <alan.hayward@arm.com>
14881
14882 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14883 with XCNEW.
14884
a7c9855d
TT
148852019-01-22 Tom Tromey <tom@tromey.com>
14886
14887 * corelow.c: Do not include sys/file.h.
14888
93cc1d53
TT
148892019-01-22 Tom Tromey <tom@tromey.com>
14890
14891 * tui/tui-wingeneral.h: Include gdb_curses.h.
14892
38561778
TT
148932019-01-22 Tom Tromey <tom@tromey.com>
14894
14895 * source-cache.h (class source_cache) <get_source_lines,
14896 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14897
37b3ab5b
TT
148982019-01-22 Tom Tromey <tom@tromey.com>
14899
14900 * remote-fileio.h (struct remote_target): Declare.
14901
3fabc016
TT
149022019-01-22 Tom Tromey <tom@tromey.com>
14903
14904 * python/py-arch.c: Do not include py-ref.h.
14905 * python/py-bpevent.c: Do not include py-ref.h.
14906 * python/py-cmd.c: Do not include py-ref.h.
14907 * python/py-continueevent.c: Do not include py-ref.h.
14908 * python/py-event.h: Do not include py-ref.h.
14909 * python/py-evtregistry.c: Do not include py-ref.h.
14910 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14911 * python/py-frame.c: Do not include py-ref.h.
14912 * python/py-framefilter.c: Do not include py-ref.h.
14913 * python/py-function.c: Do not include py-ref.h.
14914 * python/py-infevents.c: Do not include py-ref.h.
14915 * python/py-linetable.c: Do not include py-ref.h.
14916 * python/py-objfile.c: Do not include py-ref.h.
14917 * python/py-param.c: Do not include py-ref.h.
14918 * python/py-prettyprint.c: Do not include py-ref.h.
14919 * python/py-progspace.c: Do not include py-ref.h.
14920 * python/py-symbol.c: Do not include py-ref.h.
14921 * python/py-symtab.c: Do not include py-ref.h.
14922 * python/py-type.c: Do not include py-ref.h.
14923 * python/py-unwind.c: Do not include py-ref.h.
14924 * python/py-utils.c: Do not include py-ref.h.
14925 * python/py-value.c: Do not include py-ref.h.
14926 * python/py-varobj.c: Do not include py-ref.h.
14927 * python/py-xmethods.c: Do not include py-ref.h.
14928 * python/python.c: Do not include py-ref.h.
14929 * varobj.c: Do not include py-ref.h.
14930
6b4d7774
TT
149312019-01-22 Tom Tromey <tom@tromey.com>
14932
14933 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14934 keyword for bcache.
14935
7af7e9b5
TT
149362019-01-22 Tom Tromey <tom@tromey.com>
14937
14938 * compile/compile-cplus-types.c: Remove a comment by #include.
14939
951d1049
TT
149402019-01-22 Tom Tromey <tom@tromey.com>
14941
14942 * compile/gcc-c-plugin.h: Include compile-internal.h.
14943
d65d5705
TT
149442019-01-22 Tom Tromey <tom@tromey.com>
14945
14946 * stabsread.c (EXTERN): Do not define.
14947 (symnum, next_symbol_text_func, processing_gcc_compilation)
14948 (within_function, global_sym_chain, global_stabs)
14949 (previous_stab_code, this_object_header_files)
14950 (n_this_object_header_files)
14951 (n_allocated_this_object_header_files): Define.
14952 * stabsread.h (EXTERN): Never define. Use "extern".
14953
b6fb1ee5
PW
149542019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14955
14956 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14957 history_value.
14958
be6d4f74
TT
149592019-01-21 Tom Tromey <tom@tromey.com>
14960
14961 * ui-out.c: Fix includes.
14962 * tui/tui-source.c: Fix includes.
14963 * target.c: Fix includes.
14964 * remote.c: Fix includes.
14965 * regcache.c: Fix includes.
14966 * python/py-block.c: Fix includes.
14967 * printcmd.c: Fix includes.
14968 * or1k-tdep.c: Fix includes.
14969 * mi/mi-main.c: Fix includes.
14970 * m32r-tdep.c: Fix includes.
14971 * csky-tdep.c: Fix includes.
14972 * compile/compile-cplus-types.c: Fix includes.
14973 * cli/cli-interp.c: Fix includes.
14974
73021deb
AH
149752019-01-21 Alan Hayward <alan.hayward@arm.com>
14976
14977 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14978 for padding.
14979
7932255d
TT
149802019-01-16 Tom Tromey <tom@tromey.com>
14981
14982 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14983 earlier.
14984 (struct objfile) <msymbols_range>: Move from top level.
14985 <msymbols>: New method.
14986 (class objfile_msymbols): Remove.
14987 * symtab.c (default_collect_symbol_completion_matches_break_on):
14988 Update.
14989 * symmisc.c (dump_msymbols): Update.
14990 * stabsread.c (scan_file_globals): Update.
14991 * objc-lang.c (info_selectors_command, info_classes_command)
14992 (find_methods): Update.
14993 * minsyms.c (find_solib_trampoline_target): Update.
14994 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14995 * coffread.c (coff_symfile_read): Update.
14996 * ada-lang.c (ada_lookup_simple_minsym)
14997 (ada_collect_symbol_completion_matches): Update.
14998
604b1bfb
TT
149992019-01-16 Tom Tromey <tom@tromey.com>
15000
15001 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15002 type. Remove no-argument constructor.
15003 <iterator::operator++>: Simplify.
15004 <begin>: Update.
15005 <end>: Use minimal_symbol_count.
15006
f252c6d5
TT
150072019-01-16 Tom Tromey <tom@tromey.com>
15008
15009 * objfiles.h (struct objfile) <psymtabs>: New method.
15010 (class objfile_psymtabs): Remove.
15011 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15012 typedef.
15013 <range>: New method.
15014 (require_partial_symbols): Change return type.
15015 * psymtab.c (require_partial_symbols)
15016 (psym_expand_symtabs_matching): Update.
15017 * mdebugread.c (parse_partial_symbols): Update.
15018 * dbxread.c (dbx_end_psymtab): Update.
15019
b669c953
TT
150202019-01-15 Tom Tromey <tom@tromey.com>
15021
15022 * symtab.c (lookup_objfile_from_block)
15023 (lookup_symbol_in_objfile_symtabs)
15024 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15025 (find_line_symtab, info_sources_command)
15026 (default_collect_symbol_completion_matches_break_on)
15027 (make_source_files_completion_list): Update.
15028 * symmisc.c (print_objfile_statistics, dump_objfile)
15029 (maintenance_print_symbols, maintenance_info_symtabs)
15030 (maintenance_check_symtabs, maintenance_info_line_tables):
15031 Update.
15032 * source.c (select_source_symtab)
15033 (forget_cached_source_info_for_objfile): Update.
15034 * objfiles.h (class objfile_compunits): Remove.
15035 (struct objfile) <compunits_range>: New typedef.
15036 (compunits): New method.
15037 * objfiles.c (objfile_relocate1): Update.
15038 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15039 * maint.c (count_symtabs_and_blocks): Update.
15040 * linespec.c (iterate_over_all_matching_symtabs): Update.
15041 * cp-support.c (add_symbol_overload_list_qualified): Update.
15042 * coffread.c (coff_symtab_read): Update.
15043 * ada-lang.c (add_nonlocal_symbols)
15044 (ada_collect_symbol_completion_matches)
15045 (ada_add_global_exceptions): Update.
15046
7e955d83
TT
150472019-01-15 Tom Tromey <tom@tromey.com>
15048
15049 * progspace.h (program_space) <objfiles_safe_range>: New
15050 typedef.
15051 <objfiles_safe>: New method.
15052 * objfiles.h (class all_objfiles_safe): Remove.
15053 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15054 * jit.c (jit_inferior_exit_hook): Update.
15055
2030c079
TT
150562019-01-17 Tom Tromey <tom@tromey.com>
15057
15058 * progspace.h (program_space) <objfiles_range>: New typedef.
15059 <objfiles>: New method.
15060 <objfiles_head>: Rename from objfiles.
15061 (object_files): Update.
15062 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15063 * guile/scm-pretty-print.c
15064 (ppscm_find_pretty_printer_from_objfiles): Update.
15065 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15066 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15067 Update.
15068 * python/py-progspace.c (pspy_get_objfiles): Update.
15069 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15070 Update.
15071 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15072 (objfpy_lookup_objfile_by_build_id): Update.
15073 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15074 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15075 Update.
15076 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15077 (expand_symtab_containing_pc, lookup_objfile_from_block)
15078 (lookup_static_symbol, basic_lookup_transparent_type)
15079 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15080 (find_line_symtab, info_sources_command)
15081 (default_collect_symbol_completion_matches_break_on)
15082 (make_source_files_completion_list, find_main_name): Update.
15083 * symmisc.c (print_symbol_bcache_statistics)
15084 (print_objfile_statistics, maintenance_print_symbols)
15085 (maintenance_print_msymbols, maintenance_print_objfiles)
15086 (maintenance_info_symtabs, maintenance_check_symtabs)
15087 (maintenance_expand_symtabs, maintenance_info_line_tables):
15088 Update.
15089 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15090 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15091 (map_overlay_command, unmap_overlay_command)
15092 (simple_overlay_update, expand_symtabs_matching)
15093 (map_symbol_filenames): Update.
15094 * symfile-debug.c (set_debug_symfile): Update.
15095 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15096 Update.
15097 * source.c (select_source_symtab, forget_cached_source_info):
15098 Update.
15099 * solib.c (solib_read_symbols): Update.
15100 * solib-spu.c (append_ocl_sos): Update.
15101 * psymtab.c (maintenance_print_psymbols)
15102 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15103 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15104 * printcmd.c (info_symbol_command): Update.
15105 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15106 Update.
15107 * objfiles.h (class all_objfiles): Remove.
15108 * objfiles.c (have_partial_symbols, have_full_symbols)
15109 (have_minimal_symbols, qsort_cmp, update_section_map)
15110 (shared_objfile_contains_address_p)
15111 (default_iterate_over_objfiles_in_search_order): Update.
15112 * objc-lang.c (info_selectors_command, info_classes_command)
15113 (find_methods): Update.
15114 * minsyms.c (find_solib_trampoline_target): Update.
15115 * maint.c (maintenance_info_sections)
15116 (maintenance_translate_address, count_symtabs_and_blocks):
15117 Update.
15118 * main.c (captured_main_1): Update.
15119 * linux-thread-db.c (try_thread_db_load_from_pdir)
15120 (has_libpthread): Update.
15121 * linespec.c (iterate_over_all_matching_symtabs)
15122 (search_minsyms_for_name): Update.
15123 * jit.c (jit_find_objf_with_entry_addr): Update.
15124 * hppa-tdep.c (find_unwind_entry)
15125 (hppa_lookup_stub_minimal_symbol): Update.
15126 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15127 Update.
15128 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15129 (elf_gnu_ifunc_resolve_by_got): Update.
15130 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15131 * dwarf-index-write.c (save_gdb_index_command): Update.
15132 * cp-support.c (add_symbol_overload_list_qualified): Update.
15133 * breakpoint.c (create_overlay_event_breakpoint)
15134 (create_longjmp_master_breakpoint)
15135 (create_std_terminate_master_breakpoint)
15136 (create_exception_master_breakpoint): Update.
15137 * blockframe.c (find_pc_partial_function): Update.
15138 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15139 (ada_collect_symbol_completion_matches)
15140 (ada_add_global_exceptions): Update.
15141
776489e0
TT
151422019-01-17 Tom Tromey <tom@tromey.com>
15143
15144 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15145 declare VEC.
15146 (solib_target_parse_libraries): Change return type.
15147 (library_list_start_segment, library_list_start_section)
15148 (library_list_end_library, library_list_start_library); Update.
15149 (solib_target_free_library_list): Remove.
15150 (solib_target_parse_libraries): Remove cleanup. Change return
15151 type.
15152 (solib_target_current_sos): Update.
15153
6471e7d2
TT
151542019-01-17 Tom Tromey <tromey@bapiya>
15155
15156 * valprint.c: Replace "the the" with "the".
15157 * symtab.c: Replace "the the" with "the".
15158 * solib.c: Replace "the the" with "the".
15159 * solib-dsbt.c: Replace "the the" with "the".
15160 * linespec.c: Replace "the the" with "the".
15161 * dwarf2loc.h: Replace "the the" with "the".
15162 * amd64-windows-tdep.c: Replace "the the" with "the".
15163 * aarch64-tdep.c: Replace "the the" with "the".
15164
c24bdb02
KS
151652019-01-16 Keith Seitz <keiths@redhat.com>
15166
15167 PR gdb/23773
15168 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15169 <builder>: Rename to ..
15170 <m_builder>: ... this and make private.
15171 (dwarf2_cu::get_builder): New method. Change all users of
15172 `builder' to use this method.
15173 (dwarf2_start_symtab): Move to ...
15174 (dwarf2_cu::start_symtab): ... here. Update all callers
15175 (setup_type_unit_groups): Move to ...
15176 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15177 callers.
15178 (dwarf2_cu::reset_builder): New method.
15179 (process_full_compunit, process_full_type_unit): Use
15180 dwarf2_cu::reset_builder.
15181 (follow_die_offset): Record the ancestor CU if it is different
15182 from the followed DIE's CU.
15183 (follow_die_sig_1): Likewise.
15184
8d64371b
TT
151852019-01-15 Tom Tromey <tom@tromey.com>
15186
15187 * remote.c (class remote_state) <buf>: Now a char_vector.
15188 <buf_size>: Remove.
15189 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15190 parameter.
15191 (remote_target::getpkt_or_notif_sane_1)
15192 (remote_target::getpkt_sane)
15193 (remote_target::getpkt_or_notif_sane): Likewise.
15194 (class remote_target) <putpkt>: New overload.
15195 (remote_target::read_frame): Change type of "buf_p". Remove
15196 sizeof_p parameter.
15197 (packet_ok): New overload.
15198 (packet_check_result): New overload.
15199 Update all uses.
15200
bb277751
TT
152012019-01-14 Tom Tromey <tom@tromey.com>
15202
15203 * remote-notif.c (handle_notification, remote_notif_ack)
15204 (remote_notif_parse): Make "buf" const.
15205 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15206 const.
15207 (remote_notif_parse, remote_notif_ack, handle_notification):
15208 Likewise.
15209 * remote.c (remote_notif_stop_parse): Make "buf" const.
15210 (remote_target::remote_parse_stop_reply): Make "buf" const.
15211 (remote_notif_stop_ack): Make "buf" const.
15212
05be00a8
TT
152132019-01-14 Tom Tromey <tom@tromey.com>
15214
15215 * remote.c (remote_console_output): Make parameter const.
15216
491adeca
TT
152172019-01-14 Tom Tromey <tom@tromey.com>
15218
15219 * target-debug.h (target_debug_print_signals): Constify.
15220 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15221 * procfs.c (procfs_target::pass_signals): Update.
15222 * linux-nat.c (linux_nat_target::pass_signals): Update.
15223 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15224 * target-delegates.c: Rebuild.
15225 * remote.c (remote_target::program_signals): Update.
15226 (remote_target::pass_signals): Update.
15227 * target.c (target_pass_signals): Constify argument.
15228 (target_program_signals): Likewise.
15229 * target.h (struct target_ops) <pass_signals, program_signals>:
15230 Constify argument.
15231 (target_pass_signals, target_program_signals): Constify argument.
15232
bbd94648
TT
152332019-01-14 Tom Tromey <tom@tromey.com>
15234
15235 PR tui/28819:
15236 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15237
6f072a10
PFC
152382019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15239
15240 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15241 field.
15242 * rs6000-tdep.c: Include reggroups.h.
15243 (IS_V_ALIAS_PSEUDOREG): Define.
15244 (rs6000_register_name): Return names for the "vX" aliases.
15245 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15246 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15247 aliases. Call default_register_reggroup_p for all other
15248 pseudo-registers.
15249 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15250 New functions.
15251 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15252 Handle "vX" aliases.
15253 (v_alias_pseudo_register_collect): New function.
15254 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15255 (rs6000_gdbarch_init): Initialize "vX" aliases as
15256 pseudo-registers. Restore registration of
15257 rs6000_pseudo_register_reggroup_p with
15258 set_tdesc_pseudo_register_reggroup_p.
15259
1a782351
MF
152602019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15261
15262 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15263 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15264 set_gdbarch_num_pseudo_regs.
15265
d73cff18
PW
152662019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15267
15268 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15269 Remove arg prefixname, add do_set and do_show.
15270 Add member functions set_list and show_list.
15271 * cli/cli-style.c (class cli_style_option): Update accordingly.
15272 (style_set_list): Move to file scope.
15273 (style_show_list): Likewise.
15274 (set_style): Call help_list.
15275 (show_style): Call cmd_show_list.
15276 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15277 Update to use the new macro.
15278
60a90376
JB
152792019-10-12 Joel Brobecker <brobecker@adacore.com>
15280
15281 * ada-lang.c (_initialize_ada_language): Expand the help text
15282 for the "catch exception" command.
15283
9d7c67bf
PW
152842019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15285
15286 * symtab.c (matching_obj_sections): Initialize obj,
15287 declare it closer to its usage.
15288
7cf47dc4
TT
152892019-01-10 Tom Tromey <tom@tromey.com>
15290
15291 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15292 (basic_inf_threads_range): Remove.
15293 (inf_threads_range, inf_non_exited_threads_range)
15294 (safe_inf_threads_range): Use next_adapter.
15295
d3cb6808
KS
152962019-01-10 Keith Seitz <keiths@redhat.com>
15297
15298 PR gdb/23712
15299 PR symtab/23010
15300 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15301 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15302
63a20375
KS
153032019-01-10 Keith Seitz <keiths@redhat.com>
15304
15305 PR gdb/23712
15306 PR symtab/23010
15307 * dictionary.c (pending_to_vector): Remove.
15308 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15309 Remove _1 suffix, replacing functions of the same name. Update
15310 all callers.
15311 (dict_create_hashed, dict_create_hashed_expandable)
15312 (dict_create_linear, dict_create_linear_expandable, dict_free)
15313 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15314 Make functions static.
15315
b026f593
KS
153162019-01-10 Keith Seitz <keiths@redhat.com>
15317
15318 PR gdb/23712
15319 PR symtab/23010
15320 * dictionary.h (struct dictionary): Replace declaration with
15321 multidictionary.
15322 (dict_create_hashed, dict_create_hashed_expandable)
15323 (dict_create_linear, dict_create_linear_expandable)
15324 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15325 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15326 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15327 taking multidictionary argument.
15328 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15329 * block.h (struct block) <dict>: Change to multidictionary
15330 and rename `multidict'.
15331 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15332 symmisc.c: Update all dictionary references to multidictionary.
15333
c7748ee9
KS
153342019-01-10 Keith Seitz <keiths@redhat.com>
15335
15336 PR gdb/23712
15337 PR symtab/23010
15338 * dictionary.c: Include unordered_map.
15339 (pending_to_vector): New function.
15340 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15341 Rewrite the non-"_1" functions to take vector instead
15342 of linked list.
15343 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15344 "new" _1 versions of the same name.
15345 (multidictionary): Define.
15346 (std::hash<enum language): New definition.
15347 (collate_pending_symbols_by_language, mdict_create_hashed)
15348 (mdict_create_hashed_expandable, mdict_create_linear)
15349 (mdict_create_linear_expandable, mdict_free)
15350 (find_language_dictionary, create_new_language_dictionary)
15351 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15352 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15353 (mdict_size, mdict_empty): New functions.
15354 * dictionary.h (mdict_iterator): Define.
15355
67aa1f3c
PA
153562019-01-10 Pedro Alves <palves@redhat.com>
15357
15358 * breakpoint.c (read_uploaded_action)
15359 (create_tracepoint_from_upload): Adjust to use
15360 gdb::unique_xmalloc_ptr.
15361 * ctf.c (ctf_write_uploaded_tp):
15362 (SET_ARRAY_FIELD): Use emplace_back.
15363 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15364 * tracefile-tfile.c (tfile_write_uploaded_tp):
15365 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15366 gdb::unique_xmalloc_ptr.
15367 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15368 at_string, cond_string, cmd_strings>: Replace char pointers
15369 with gdb::unique_xmalloc_ptr.
15370
2f667667
PA
153712019-01-10 Pedro Alves <palves@redhat.com>
15372
15373 * solib-target.c (library_list_start_library): Don't xstrdup name.
15374
36cb7237
PA
153752019-01-10 Pedro Alves <palves@redhat.com>
15376
15377 * mdebugread.c (parse_partial_symbols): Use
15378 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15379
da584958
AB
153802019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15381
15382 * linux-fork.c (scoped_switch_fork_info)
15383 <~scoped_switch_fork_info>: Fix incorrect variable name.
15384
1ef8573c
AB
153852019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15386
15387 * linux-fork.c (scoped_switch_fork_info)
15388 <scoped_switch_fork_info>: Make explicit.
15389 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15390
8d7bcccb
TT
153912019-01-10 Tom Tromey <tom@tromey.com>
15392
15393 * objfiles.h (objfile::reset_psymtabs): Update.
15394 * objfiles.c (objfile::objfile): Update.
15395 * psymtab.h (psymtab_storage::obstack): Update.
15396 (psymtab_storage::m_obstack): Use gdb::optional.
15397 (class psymtab_storage): Update comment. Remove objfile
15398 parameter.
15399 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15400
b596a3c7
TT
154012019-01-10 Tom Tromey <tom@tromey.com>
15402
15403 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15404 <free_psymtabs>: Now private.
15405 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15406 (allocate_psymtab): Use new method.
15407
a9342b62
TT
154082019-01-10 Tom Tromey <tom@tromey.com>
15409
15410 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15411 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15412 * mdebugread.c (parse_partial_symbols): Use
15413 allocate_dependencies.
15414 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15415 allocate_dependencies.
15416 (process_psymtab_comp_unit_reader)
15417 (build_type_psymtab_dependencies): Likewise.
15418 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15419
5af70966
TT
154202019-01-10 Tom Tromey <tom@tromey.com>
15421
15422 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15423 PSYMBOL_SET_LANGUAGE.
15424 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15425
5923a04c
TT
154262019-01-10 Tom Tromey <tom@tromey.com>
15427
15428 * psymtab.h (psymtab_storage::obstack): New method.
15429 <m_obstack>: Rename from obstack; now private.
15430 * psymtab.c (psymtab_storage): Update.
15431 * dwarf2read.c (create_addrmap_from_index)
15432 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15433 Update.
15434
6d6a12bf
TT
154352019-01-10 Tom Tromey <tom@tromey.com>
15436
15437 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15438 * objfiles.h (objfile::reset_psymtabs): New method.
15439
d320c2b5
TT
154402019-01-10 Tom Tromey <tom@tromey.com>
15441
15442 * symmisc.c (print_symbol_bcache_statistics): Update.
15443 (print_objfile_statistics): Update.
15444 * symfile.c (reread_symbols): Update.
15445 * psymtab.h (class psymtab_storage): New.
15446 * psymtab.c (psymtab_storage): New constructor.
15447 (~psymtab_storage): New destructor.
15448 (require_partial_symbols): Update.
15449 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15450 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15451 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15452 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15453 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15454 (start_psymtab_common, end_psymtab_common)
15455 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15456 (allocate_psymtab): Update.
15457 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15458 Update.
15459 (dump_psymtab_addrmap, maintenance_print_psymbols)
15460 (maintenance_check_psymtabs): Update.
15461 (class objfile_psymtabs): Move to objfiles.h.
15462 * psympriv.h (discard_psymtab): Now inline.
15463 (psymtab_discarder::psymtab_discarder): Update.
15464 (psymtab_discarder::~psymtab_discarder): Update.
15465 (ALL_OBJFILE_PSYMTABS): Rewrite.
15466 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15467 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15468 Remove fields.
15469 <partial_symtabs>: New field.
15470 (class objfile_psymtabs): Move from psymtab.h. Update.
15471 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15472 psymbol_cache.
15473 (objfile::~objfile): Don't destroy psymbol_cache.
15474 * mdebugread.c (parse_partial_symbols): Update.
15475 * dwarf2read.c (create_addrmap_from_index)
15476 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15477 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15478 (add_partial_subprogram, dwarf2_ranges_read): Update.
15479 * dwarf-index-write.c (write_address_map)
15480 (write_one_signatured_type, recursively_write_psymbols)
15481 (class debug_names, class debug_names, write_psymtabs_to_index):
15482 Update.
15483
1d94a5a3
TT
154842019-01-10 Tom Tromey <tom@tromey.com>
15485
15486 * symtab.h (SYMBOL_SET_NAMES): Update.
15487 (symbol_set_names): Update.
15488 (MSYMBOL_SET_NAMES): Update.
15489 * symtab.c (symbol_set_names): Change argument to be an
15490 objfile_per_bfd_storage.
15491 * psymtab.c (add_psymbol_to_bcache): Update.
15492 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15493
0f14768a
TT
154942019-01-10 Tom Tromey <tom@tromey.com>
15495
15496 * symtab.c (create_demangled_names_hash): Change argument to be an
15497 objfile_per_bfd_storage.
15498 (symbol_set_names): Update.
15499
6eee24ce
TT
155002019-01-10 Tom Tromey <tom@tromey.com>
15501
15502 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15503 init_psymbol_list.
15504 * psymtab.c (init_psymbol_list): Do nothing if already called.
15505 * psympriv.h (init_psymbol_list): Add comment.
15506 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15507 init_psymbol_list.
15508 * dbxread.c (dbx_symfile_read): Unconditionally call
15509 init_psymbol_list.
15510
75aedd27
TT
155112019-01-10 Tom Tromey <tom@tromey.com>
15512
15513 * xcoffread.c (scan_xcoff_symtab): Update.
15514 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15515 "where".
15516 * mdebugread.c (parse_partial_symbols)
15517 (handle_psymbol_enumerators): Update.
15518 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15519 * dbxread.c (read_dbx_symtab): Update.
15520 * psympriv.h (psymbol_placement): New enum.
15521 (add_psymbol_to_list): Update.
15522
939652a5
TT
155232019-01-10 Tom Tromey <tom@tromey.com>
15524
15525 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15526 static_psymbols parameters.
15527 (scan_xcoff_symtab): Update.
15528 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15529 static_psymbols parameters.
15530 * psympriv.h (start_psymtab_common): Update.
15531 * mdebugread.c (parse_partial_symbols): Update.
15532 * dwarf2read.c (create_partial_symtab): Update.
15533 * dbxread.c (read_dbx_symtab): Update.
15534 (start_psymtab): Remove global_psymbols and static_psymbols
15535 parameters.
15536
baa62830
TT
155372019-01-10 Tom Tromey <tom@tromey.com>
15538
15539 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15540 * psymtab.c (allocate_psymtab): Add comment.
15541 * psympriv.h (allocate_psymtab): Add comment.
15542 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15543 initializations.
15544 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15545
0e8f53ba
TT
155462019-01-10 Tom Tromey <tom@tromey.com>
15547
15548 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15549 Don't declare.
15550 * mipsread.c: Include mdebugread.h.
15551 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15552 Declare.
15553 * elfread.c: Include mdebugread.h.
15554
b22a7c6a
TT
155552019-01-09 Tom Tromey <tom@tromey.com>
15556
15557 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15558 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15559 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15560 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15561 (psym_lookup_symbol, psym_find_last_source_symtab)
15562 (psym_forget_cached_source_info, psym_print_stats)
15563 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15564 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15565 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15566 (psym_find_compunit_symtab_by_address)
15567 (maintenance_print_psymbols, maintenance_info_psymtabs)
15568 (maintenance_check_psymtabs): Use ranged for.
15569 * psymtab.h (class objfile_psymtabs): New.
15570 (require_partial_symbols): Return objfile_psymtabs.
15571 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15572
3b9d3ac2
TT
155732019-01-09 Tom Tromey <tom@tromey.com>
15574
15575 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15576 (find_pc_mapped_section, list_overlays_command)
15577 (map_overlay_command, unmap_overlay_command)
15578 (simple_overlay_update): Use all_objfiles.
15579 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15580 * printcmd.c (info_symbol_command): Use all_objfiles.
15581 * objfiles.h (ALL_OBJSECTIONS): Remove.
15582 * maint.c (maintenance_translate_address): Use all_objfiles.
15583 * gcore.c (gcore_create_callback): Use all_objfiles.
15584 (objfile_find_memory_regions): Likewise.
15585
8b31193a
TT
155862019-01-09 Tom Tromey <tom@tromey.com>
15587
15588 * symtab.c (find_line_symtab, info_sources_command)
15589 (make_source_files_completion_list): Use objfile_compunits.
15590 * source.c (select_source_symtab): Use objfile_compunits.
15591 * objfiles.h (struct objfile): Update comment.
15592 (ALL_OBJFILES): Remove.
15593 (ALL_FILETABS): Remove.
15594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15595 objfile_compunits.
15596
d5da8b3c
TT
155972019-01-09 Tom Tromey <tom@tromey.com>
15598
15599 * symmisc.c (print_objfile_statistics, dump_objfile)
15600 (maintenance_print_symbols): Use compunit_filetabs.
15601 * source.c (forget_cached_source_info_for_objfile): Use
15602 compunit_filetabs.
15603 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15604 (ALL_FILETABS): Use compunit_filetabs.
15605 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15606 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15607
5accd1a0
TT
156082019-01-09 Tom Tromey <tom@tromey.com>
15609
15610 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15611 (compunit_filetabs): New.
15612 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15613 compunit_filetabs.
15614 (info_sources_command, make_source_files_completion_list): Remove
15615 declaration.
15616 * symmisc.c (print_objfile_statistics, dump_objfile)
15617 (maintenance_print_symbols): Remove declaration.
15618 (maintenance_info_symtabs): Use compunit_filetabs.
15619 (maintenance_info_line_tables): Likewise.
15620 * source.c (select_source_symtab): Change local variable name.
15621 (forget_cached_source_info_for_objfile): Remove declaration.
15622 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15623 * objfiles.c (objfile_relocate1): Remove declaration.
15624 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15625 declaration.
15626 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15627 * coffread.c (coff_symtab_read): Remove declaration.
15628 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15629 compunit_filetabs.
15630
d8aeb77f
TT
156312019-01-09 Tom Tromey <tom@tromey.com>
15632
15633 * symtab.c (lookup_objfile_from_block)
15634 (find_pc_sect_compunit_symtab, search_symbols)
15635 (default_collect_symbol_completion_matches_break_on): Use
15636 objfile_compunits.
15637 * objfiles.h (ALL_COMPUNITS): Remove.
15638 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15639 * cp-support.c (add_symbol_overload_list_qualified): Use
15640 objfile_compunits.
15641 * ada-lang.c (ada_collect_symbol_completion_matches)
15642 (ada_add_global_exceptions): Use objfile_compunits.
15643
592553c4
TT
156442019-01-09 Tom Tromey <tom@tromey.com>
15645
15646 * source.c (select_source_symtab)
15647 (forget_cached_source_info_for_objfile): Remove declaration.
15648 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15649 declaration.
15650 * maint.c (count_symtabs_and_blocks): Remove declaration.
15651 * cp-support.c (add_symbol_overload_list_qualified): Remove
15652 declaration.
15653 * coffread.c (coff_symtab_read): Remove declaration.
15654 * symtab.c (lookup_symbol_in_objfile_symtabs)
15655 (basic_lookup_transparent_type_1): Use objfile_compunits.
15656 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15657 (info_sources_command, search_symbols)
15658 (default_collect_symbol_completion_matches_break_on)
15659 (make_source_files_completion_list): Remove declaration.
15660 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15661 (ada_collect_symbol_completion_matches)
15662 (ada_add_global_exceptions): Remove declaration.
15663 * linespec.c (iterate_over_all_matching_symtabs): Use
15664 objfile_compunits.
15665 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15666 (class objfile_compunits): New.
15667 (ALL_COMPUNITS): Use objfile_compunits.
15668 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15669 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15670 objfile_compunits.
15671 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15672
5325b9bf
TT
156732019-01-09 Tom Tromey <tom@tromey.com>
15674
15675 * symtab.c (search_symbols)
15676 (default_collect_symbol_completion_matches_break_on): Use
15677 objfile_msymbols.
15678 * ada-lang.c (ada_lookup_simple_minsym)
15679 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15680 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15681 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15682 objfile_msymbols.
15683 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15684 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15685 * objc-lang.c (find_methods): Use objfile_msymbols.
15686 (info_selectors_command, info_classes_command): Likewise.
15687 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15688 * objfiles.h (class objfile_msymbols): New.
15689 (ALL_OBJFILE_MSYMBOLS): Remove.
15690 (ALL_MSYMBOLS): Remove.
15691
cac85af2
TT
156922019-01-09 Tom Tromey <tom@tromey.com>
15693
15694 * common/next-iterator.h (next_adapter): Add Iterator template
15695 parameter.
15696 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15697 (class all_objfiles_safe): New.
15698 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15699 * objfiles.c (put_objfile_before): Update comment.
15700 (add_separate_debug_objfile): Likewise.
15701 (free_all_objfiles): Use all_objfiles_safe.
15702 (objfile_purge_solibs): Likewise.
15703
aed57c53
TT
157042019-01-09 Tom Tromey <tom@tromey.com>
15705
15706 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15707 (expand_symtab_containing_pc, lookup_static_symbol)
15708 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15709 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15710 all_objfiles.
15711 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15712 * breakpoint.c (create_overlay_event_breakpoint)
15713 (create_longjmp_master_breakpoint)
15714 (create_std_terminate_master_breakpoint)
15715 (create_exception_master_breakpoint): Use all_objfiles.
15716 * linux-thread-db.c (try_thread_db_load_from_pdir)
15717 (has_libpthread): Use all_objfiles.
15718 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15719 * linespec.c (iterate_over_all_matching_symtabs)
15720 (search_minsyms_for_name): Use all_objfiles.
15721 * maint.c (maintenance_info_sections): Use all_objfiles.
15722 * main.c (captured_main_1): Use all_objfiles.
15723 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15724 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15725 * guile/scm-pretty-print.c
15726 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15727 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15728 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15729 (maintenance_print_msymbols): Use all_objfiles.
15730 * source.c (select_source_symtab): Use all_objfiles.
15731 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15732 * symfile.c (remove_symbol_file_command)
15733 (expand_symtabs_matching, map_symbol_filenames): Use
15734 all_objfiles.
15735 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15736 all_objfiles.
15737 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15738 * objc-lang.c (find_methods): Use all_objfiles.
15739 * objfiles.c (have_partial_symbols, have_full_symbols)
15740 (have_minimal_symbols, qsort_cmp)
15741 (default_iterate_over_objfiles_in_search_order): Use
15742 all_objfiles.
15743 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15744 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15745 (maintenance_check_psymtabs): Use all_objfiles.
15746 (ALL_PSYMTABS): Remove.
15747 * compile/compile-object-run.c (do_module_cleanup): Use
15748 all_objfiles.
15749 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15750 * cp-support.c (add_symbol_overload_list_qualified): Use
15751 all_objfiles.
15752 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15753 Use all_objfiles.
15754 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15755 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15756 all_objfiles.
15757 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15758 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15759 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15760 Uses all_objfiles.
15761 * solib.c (solib_read_symbols): Use all_objfiles
15762
99d89cde
TT
157632019-01-09 Tom Tromey <tom@tromey.com>
15764
15765 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15766 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15767 all_objfiles.
15768 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15769 * symmisc.c (print_symbol_bcache_statistics)
15770 (print_objfile_statistics, maintenance_print_objfiles)
15771 (maintenance_info_symtabs, maintenance_check_symtabs)
15772 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15773 all_objfiles.
15774 * source.c (forget_cached_source_info): Use all_objfiles.
15775 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15776 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15777 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15778 * objfiles.c (update_section_map): Use all_objfiles.
15779 (shared_objfile_contains_address_p): Likewise.
15780 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15781 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15782
21708325
TT
157832019-01-09 Tom Tromey <tom@tromey.com>
15784
15785 * common/next-iterator.h: New file.
15786 * objfiles.h (class all_objfiles): New.
15787 (struct objfile_iterator): New.
15788
669e09f6
PW
157892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15790
15791 * NEWS: Move the description of the changed "frame", "select-frame",
15792 and "info frame" commands to the Changed commands section.
15793
041be526
SM
157942019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15795
15796 * gdbtypes.c (check_stub_method_group): Remove handling of old
15797 mangling schemes.
15798 * linespec.c (find_methods): Likewise.
15799 * stabsread.c (read_member_functions): Likewise.
15800 * valops.c (search_struct_method): Likewise.
15801 (value_struct_elt_for_reference): Likewise.
15802 * NEWS: Mention this change.
15803
0e2a2133
AB
158042019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15805
15806 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15807 print_source_lines.
15808 * source.c (print_source_lines_base): Update line number check.
15809 (print_source_lines): New function.
15810 (source_lines_range::source_lines_range): New function.
15811 * source.h (class source_lines_range): New class.
15812 (print_source_lines): New declaration.
15813
1055a3b4
PW
158142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15815
15816 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15817
cfeadda5
TT
158182019-01-08 Tom Tromey <tom@tromey.com>
15819 Simon Marchi <simon.marchi@ericsson.com>
15820
15821 PR gdb/24060
15822 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15823 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15824 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15825 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15826 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15827 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15828
583068ca
AB
158292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15830
15831 * source.c (select_source_symtab): Move header comment to
15832 declaration in source.h.
15833 (forget_cached_source_info_for_objfile): Likewise.
15834 (forget_cached_source_info): Likewise.
15835 (identify_source_line): Likewise.
15836 * source.h (identify_source_line): Move declaration from symtab.h
15837 and add comment from source.c
15838 (print_source_lines): Likewise.
15839 (forget_cached_source_info_for_objfile): Likewise.
15840 (forget_cached_source_info): Likewise.
15841 (select_source_symtab): Likewise.
15842 (enum print_source_lines_flag): Move definition from symtab.h.
15843 * symtab.h (identify_source_line): Move declaration to source.h.
15844 (print_source_lines): Likewise.
15845 (forget_cached_source_info_for_objfile): Likewise.
15846 (forget_cached_source_info): Likewise.
15847 (select_source_symtab): Likewise.
15848 (enum print_source_lines_flag): Move definition to source.h.
15849 * tui/tui-hooks.c: Add 'source.h' include.
15850
ec98a4ad
AB
158512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15852
15853 * source.c (print_source_lines_base): Handle requests to print
15854 reverse line number sequences, and guard against empty lines
15855 string.
15856
62ea19c1
AB
158572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15858
15859 * source.c (print_source_lines_base): Fix skip of '\r' if next
15860 character is '\n'.
15861
9d30e1fd
TT
158622019-01-06 Tom Tromey <tom@tromey.com>
15863
15864 * c-exp.y (struct c_parse_state) <macro_original_text,
15865 expansion_obstack>: New member.
15866 (macro_original_text, expansion_obstack): Remove globals.
15867 (scan_macro_expansion, scanning_macro_expansion)
15868 (finished_macro_expansion): Update.
15869 (scan_macro_cleanup): Remove.
15870 (yylex, c_parse): Update.
15871
c65bac38
TT
158722019-01-06 Tom Tromey <tom@tromey.com>
15873
15874 * c-exp.y (struct c_parse_state) <strings>: New member.
15875 (operator_stoken): Update.
15876
02e12e38
TT
158772019-01-06 Tom Tromey <tom@tromey.com>
15878
15879 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15880 (union type_stack_elt) <typelist_val>: Now a pointer to
15881 std::vector.
15882 (type_stack_cleanup): Don't declare.
15883 (push_typelist): Update.
15884 * parse.c (pop_typelist): Return a std::vector.
15885 (push_typelist): Take a std::vector.
15886 (follow_types): Update. Do not free args.
15887 (type_stack_cleanup): Remove.
15888 * c-exp.y (struct c_parse_state): New.
15889 (cpstate): New global.
15890 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15891 (nonempty_typelist): Update.
15892 (func_mod): Create a new vector.
15893 (c_parse): Create a c_parse_state.
15894 (check_parameter_typelist): Do not delete params.
15895 (function_method): Update. Do not delete type_list.
15896
f097f5ad
TT
158972019-01-06 Tom Tromey <tom@tromey.com>
15898
15899 PR gdb/28155:
15900 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15901 check_typedef.
15902 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15903 (print_return_value): Likewise.
15904
d2adf9f1
TT
159052019-01-05 Tom Tromey <tom@tromey.com>
15906
15907 * contrib/cleanup_check.py: Remove.
15908 * contrib/gcc-with-excheck: Remove.
15909 * contrib/exsummary.py: Remove.
15910 * contrib/excheck.py: Remove.
15911
2eab46b1
JB
159122019-01-05 Joel Brobecker <brobecker@adacore.com>
15913
15914 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15915 NULL. Initialize tpprev to NULL instead of assigning it
15916 to NULL on the next statement.
15917 * windows-nat.c (windows_delete_thread): Remove check for
15918 main_thread_id before printing thread exit notifications.
15919 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15920 Remove thread ID check against main_thread_id.
15921 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15922 windows_delete_thread.
15923 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15924
48c5e7e2
TT
159252019-01-04 Tom Tromey <tom@tromey.com>
15926
15927 * compile/compile.c (_initialize_compile): Use upper case for
15928 metasyntactic variables.
15929 * symmisc.c (_initialize_symmisc): Use upper case for
15930 metasyntactic variables.
15931 * psymtab.c (_initialize_psymtab): Use upper case for
15932 metasyntactic variables.
15933 * demangle.c (demangle_command): Use upper case for metasyntactic
15934 variables.
15935 (_initialize_demangler): Likewise.
15936 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15937 variables.
15938
986041cd
TT
159392019-01-03 Tom Tromey <tom@tromey.com>
15940
15941 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15942
7c711119
TT
159432019-01-03 Tom Tromey <tom@tromey.com>
15944
15945 * python/py-symtab.c (salpy_str): Update.
15946 (struct salpy_sal_object) <symtab>: Now a PyObject.
15947 (salpy_dealloc): Update.
15948 (del_objfile_sal): Use gdbpy_ref.
15949
1b20edf0
TT
159502019-01-03 Tom Tromey <tom@tromey.com>
15951
15952 * python/py-type.c (convert_field): Use new_reference. Return
15953 gdbpy_ref.
15954 (make_fielditem): Return gdbpy_ref.
15955 (typy_fields): Update.
15956 (typy_getitem): Update.
15957 (field_name): Return gdbpy_ref. Use new_reference.
15958 (typy_iterator_iternext): Update.
15959
ea41325b
TT
159602019-01-03 Tom Tromey <tom@tromey.com>
15961
15962 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15963
2a3c71d6
TT
159642019-01-03 Tom Tromey <tom@tromey.com>
15965
15966 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15967 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15968 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15969 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15970 (pspy_set_type_printers): Likewise.
15971 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15972 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15973 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15974 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15975 (objfpy_set_type_printers): Likewise.
15976
5c329e6a
TT
159772019-01-03 Tom Tromey <tom@tromey.com>
15978
15979 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15980 (gdbpy_print_stack): Use gdbpy_err_fetch.
15981 * python/python-internal.h (class gdbpy_err_fetch): New class.
15982 (class gdbpy_enter) <m_error_type, m_error_value,
15983 m_error_traceback>: Remove.
15984 <m_error>: New member.
15985 (gdbpy_exception_to_string): Don't declare.
15986 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15987 * python/py-value.c (convert_value_from_python): Use
15988 gdbpy_err_fetch.
15989 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15990 gdbpy_exception_to_string.
15991 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15992 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15993 gdbpy_err_fetch.
15994
169bb27b
AB
159952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15996
15997 * linux-nat.c (delete_lwp_cleanup): Delete.
15998 (struct lwp_deleter): New struct.
15999 (lwp_info_up): New typedef.
16000 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16001 lwp_info_up.
16002
a07c8880
AB
160032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16004
16005 * linux-fork.c (class scoped_switch_fork_info): New class.
16006 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16007
26089c49
AB
160082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16009
16010 * valops.c (find_overload_match): Remove use of null_cleanup, and
16011 calls to do_cleanups.
16012
06d3e5b0
AB
160132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16014
16015 * compile/compile-cplus-types.c
16016 (compile_cplus_instance::decl_name): Handle changes to
16017 cp_func_name.
16018 * cp-support.c (cp_func_name): Update header comment, update
16019 return type.
16020 * cp-support.h (cp_func_name): Update return type in declaration.
16021 * valops.c (find_overload_match): Move temp_func local to top
16022 level of function and change its type. Use temp_func to hold and
16023 delete temporary string obtained from cp_func_name.
16024
66644cd3
AB
160252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16026
16027 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16028 gdb::char_vector, remove cleanup, and update uses of `msg`.
16029
592d8c0a
JW
160302019-01-03 Jim Wilson <jimw@sifive.com>
16031
16032 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16033
c55d06ec
TT
160342019-01-02 Tom Tromey <tom@tromey.com>
16035
16036 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16037 (tdesc_parse_xml): Remove cleanups.
16038 * target-descriptions.h (make_cleanup_free_target_description):
16039 Don't declare.
16040 (target_desc_deleter): New struct.
16041 (target_desc_up): New typedef.
16042 * target-descriptions.c (target_desc_deleter::operator()): Rename
16043 from free_target_description.
16044 (make_cleanup_free_target_description): Remove.
16045
3a6ae42d
TT
160462019-01-02 Tom Tromey <tom@tromey.com>
16047
16048 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16049 constructor, destructor.
16050 (linespec_parser): Remove typedef.
16051 (~linespec_parser): Rename from linespec_parser_delete.
16052 (linespec_lex_to_end, linespec_complete_label)
16053 (linespec_complete): Update.
16054 (decode_line_full): Remove cleanups.
16055 (decode_line_1): Update.
16056
61fd3e73
TT
160572019-01-02 Tom Tromey <tom@tromey.com>
16058
16059 * python/python-internal.h (inferior_to_inferior_object): Change
16060 return type.
16061 * python/py-exitedevent.c (create_exited_event_object): Update.
16062 * python/py-inferior.c (inferior_to_inferior_object): Return
16063 gdbpy_ref.
16064 (python_new_inferior, python_inferior_deleted)
16065 (thread_to_thread_object, delete_thread_object)
16066 (build_inferior_list, gdbpy_selected_inferior): Update.
16067 * python/py-infthread.c (create_thread_object): Update. Also fail
16068 if inferior_to_inferior_object fails.
16069
d20172fc
SM
160702019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16071
16072 * inferior.h (class inferior) <displaced_step_state>: New field.
16073 * infrun.h (struct displaced_step_state): Move here from
16074 infrun.c. Initialize fields, add constructor.
16075 <inf>: Remove field.
16076 <reset>: New method.
16077 * infrun.c (struct displaced_step_inferior_state): Move to
16078 infrun.h.
16079 (displaced_step_inferior_states): Remove.
16080 (get_displaced_stepping_state): Adust.
16081 (displaced_step_in_progress_any_inferior): Adjust.
16082 (displaced_step_in_progress_thread): Adjust.
16083 (displaced_step_in_progress): Adjust.
16084 (add_displaced_stepping_state): Remove.
16085 (get_displaced_step_closure_by_addr): Adjust.
16086 (remove_displaced_stepping_state): Remove.
16087 (infrun_inferior_exit): Call displaced_step_state.reset.
16088 (use_displaced_stepping): Don't check for NULL.
16089 (displaced_step_prepare_throw): Call
16090 get_displaced_stepping_state.
16091 (displaced_step_fixup): Don't check for NULL.
16092 (prepare_for_detach): Don't check for NULL.
16093
e3319240
PW
160942019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16095
16096 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16097 in case of call that did not complete.
16098
5d36dfb9
AU
160992019-01-02 Andrey Utkin <autkin@undo.io>
16100
16101 * symfile.c (find_separate_debug_file): Fix search of debug files for
16102 remote debuggee.
16103
8833fbf0
TT
161042019-01-02 Tom Tromey <tom@tromey.com>
16105
16106 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16107 indentation.
16108 * python/py-frame.c (frapy_older): Remove cast.
16109 (frapy_newer): Likewise.
16110 * python/py-breakpoint.c (local_setattro): Remove cast.
16111 * python/py-arch.c (archpy_name): Remove local variable.
16112 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16113
4ada3dfd
JB
161142019-01-02 Joel Brobecker <brobecker@adacore.com>
16115
16116 * unittests/basic_string_view/element_access/char/empty.cc:
16117 Fix year range in copyright header.
16118
113b7b81
AB
161192019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16120
16121 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16122 Delete.
16123 <operator==>: Update with for removed field.
16124 <hash>: Likewise.
16125 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16126 <isa_features>: ...this.
16127 <abi_features>: New field.
16128 (riscv_isa_flen): Update comment.
16129 (riscv_abi_xlen): New declaration.
16130 (riscv_abi_flen): New declaration.
16131 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16132 isa_features.
16133 (riscv_abi_xlen): New function.
16134 (riscv_isa_flen): Update to get answer from isa_features.
16135 (riscv_abi_flen): New function.
16136 (riscv_has_fp_abi): Update to get answer from abi_features.
16137 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16138 xlen and flen.
16139 (riscv_call_info) <xlen, flen>: Update comment.
16140 (riscv_call_arg_struct): Remove invalid assertions
16141 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16142 is removed.
16143 (riscv_gdbarch_init): Gather isa features and abi features
16144 separately, ensure both match on the gdbarch when reusing an old
16145 gdbarch. Relax an error check to allow 32-bit abi float to run on
16146 a target with 64-bit float hardware.
16147
b18ca514
PW
161482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16149
16150 * source.c (search_command_helper): Stop reverse search
16151 when line 1 has been searched.
16152
ec70d8db
PW
161532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16154
16155 * record-full.c (record_full_base_target::close): Rewrite
16156 record_full_core_buf_list free logic.
16157
5b38f9c1
PW
161582019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16159
16160 * break-catch-syscall.c (print_one_catch_syscall): xfree
16161 the last text.
16162
66d91b39
JB
161632019-01-01 Joel Brobecker <brobecker@adacore.com>
16164
16165 * top.c (print_gdb_version): Update Copyright year in version
16166 message.
16167
42a4f53d
JB
161682019-01-01 Joel Brobecker <brobecker@adacore.com>
16169
16170 Update copyright year range in all GDB files.
16171
7e955d83 161722019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16173
5bbd631d 16174 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16175
5bbd631d 16176For older changes see ChangeLog-2018.
c906108c
SS
16177\f
16178Local Variables:
16179mode: change-log
16180left-margin: 8
16181fill-column: 74
16182version-control: never
57da7796 16183coding: utf-8
c906108c 16184End:
5bbd631d 16185