gdb/mi: Add -max-results parameter to some -symbol-info-* commands
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c2512106
AB
12019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
4 add it into the search spec.
5 (parse_max_results_option): New function.
6 (mi_info_functions_or_variables): Parse -max-results flag and pass
7 it to mi_symbol_info.
8 (mi_cmd_symbol_info_modules): Likewise.
9 (mi_cmd_symbol_info_types): Likewise.
10 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
11 return type to bool, change result container into a set, and don't
12 add new results if we have enough already.
13 (global_symbol_searcher::add_matching_msymbols): Change return
14 type to bool, and don't add new results if we have enough already.
15 (sort_search_symbols_remove_dups): Delete.
16 (global_symbol_searcher::search): Early exit from search loop when
17 we have enough results. Use a std::set to collect the results
18 from calling add_matching_symbols.
19 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
20 member function.
21 (global_symbol_searcher) <m_max_search_results>: New member
22 variable.
23 (global_symbol_searcher) <add_matching_symbols>: Update header
24 comment and change return type to bool.
25 (global_symbol_searcher) <add_matching_msymbols>: Update header
26 comment and change return type to bool.
27
f97a63c5
AB
282019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * symtab.c (symbol_search::compare_search_syms): Update header
31 comment.
32 (global_symbol_searcher::is_suitable_msymbol): New function.
33 (global_symbol_searcher::expand_symtabs): New function.
34 (global_symbol_searcher::add_matching_symbols): New function.
35 (global_symbol_searcher::add_matching_msymbols): New function.
36 (global_symbol_searcher::search): Move most of the content
37 into the new functions above, and call them as needed.
38 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
39 function.
40 (global_symbol_searcher) <add_matching_symbols>: New member
41 function.
42 (global_symbol_searcher) <add_matching_msymbols>: New member
43 function.
44 (global_symbol_searcher) <is_suitable_msymbol>: New member
45 function.
46
293b38d6
AB
472019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
50 -symbol-info-module-variables entries.
51 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
52 (mi_cmd_symbol_info_module_variables): Declare.
53 * mi/mi-symbol-cmds.c
54 (module_symbol_search_iterator): New typedef.
55 (output_module_symbols_in_single_module_and_file): New function.
56 (output_module_symbols_in_single_module): New function.
57 (mi_info_module_functions_or_variables): New function.
58 (mi_cmd_symbol_info_module_functions): New function.
59 (mi_cmd_symbol_info_module_variables): New function.
60 * NEWS: Mention new MI command.
61
4cbd39b2
CB
622019-12-03 Christian Biesinger <cbiesinger@google.com>
63
64 * bcache.c (hash): Remove.
65 (hash_continue): Remove.
66 * bcache.h (hash): Remove.
67 (hash_continue): Remove.
68 (struct bcache) <ctor>: Update.
69 * psymtab.c (psymbol_hash): Update.
70 * stabsread.c (hashname): Update.
71 * utils.h (fast_hash): Add an argument for a start value,
72 defaulting to zero.
73
82f910ea
PW
742019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
75 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
76 (destroy_block_symbol_cache): New function.
77 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
78 (resize_symbol_cache): Likewise.
79
de2396d0
TT
802019-12-02 Tom Tromey <tom@tromey.com>
81
82 * unittests/tui-selftests.c (run_tests): Make conditional.
83 (_initialize_tui_selftest): Make conditional.
84
638d85bc
CB
852019-12-02 Christian Biesinger <cbiesinger@google.com>
86
87 * aix-thread.c (debug_aix_thread): Change type to bool.
88
7532a164
LM
892019-12-02 Luis Machado <luis.machado@linaro.org>
90
91 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
92
216a7e6b
AB
932019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
94
95 * dwarf2read.c (read_tag_string_type): Read the fields required to
96 make a dynamic string, and possibly create a dynamic range for the
97 string.
98 (attr_to_dynamic_prop): Setup is_reference based on the type of
99 attribute being processed.
100 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
101 (resolve_dynamic_array): Rename to...
102 (resolve_dynamic_array_or_string): ...this, update header comment,
103 and accept TYPE_CODE_STRING.
104 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
105
11a8b164
AB
1062019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
109 of its implementation from...
110 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
111 the new function.
112
5bbd8269
AB
1132019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
116 create a range with stride where appropriate.
117 * f-valprint.c: Include 'gdbarch.h'.
118 (f77_print_array_1): Take the stride into account when walking the
119 array. Also convert the stride into addressable units.
120 * gdbtypes.c (create_range_type): Initialise the stride to
121 constant zero.
122 (create_range_type_with_stride): New function, initialise the
123 range as normal, and then setup the stride.
124 (has_static_range): Include the stride here. Also change the
125 return type to bool.
126 (create_array_type_with_stride): Consider the range stride if the
127 array isn't given its own stride.
128 (resolve_dynamic_range): Resolve the stride if needed.
129 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
130 (struct range_bounds) <flag_is_byte_stride>: New member variable.
131 (TYPE_BIT_STRIDE): Define.
132 (TYPE_ARRAY_BIT_STRIDE): Define.
133 (create_range_type_with_stride): Declare.
134 * valarith.c (value_subscripted_rvalue): Take range stride into
135 account when walking the array.
136
82e3b564
TT
1372019-12-01 Tom Tromey <tom@tromey.com>
138
139 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
140 specially.
141
517d261d
TT
1422019-12-01 Tom Tromey <tom@tromey.com>
143
144 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
145 \0.
146 * unittests/tui-selftests.c: New file.
147 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
148
484c9b64
TT
1492019-12-01 Tom Tromey <tom@tromey.com>
150
151 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
152
a2a7af0c
TT
1532019-12-01 Tom Tromey <tom@tromey.com>
154
155 * NEWS: Document new settings.
156 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
157 * tui/tui-win.c (_initialize_tui_win): Add border style
158 observers.
159 * tui/tui-io.h (tui_apply_style): Declare.
160 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
161 longer static.
162 (apply_ansi_escape, tui_set_reverse_mode): Update.
163 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
164 Add "skip_intensity" parameter.
165 <changed>: New member.
166 <do_set_value>: Declare.
167 (tui_border_style, tui_active_border_style): Declare.
168 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
169 globals.
170 (cli_style_option): Initialize "changed".
171 (cli_style_option::do_set_value): New function.
172 (cli_style_option::add_setshow_commands): Add "skip_intensity"
173 parameter. Update.
174 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
175 (_initialize_cli_style): Update. Create TUI border style
176 commands.
177
d1da6b01
TT
1782019-12-01 Tom Tromey <tom@tromey.com>
179
180 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
181 parameter.
182 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
183 parameter.
184 * tui/tui-win.h (compact_source): Declare.
185 * tui/tui-win.c (compact_source): New global.
186 (tui_set_compact_source, tui_show_compact_source): New functions.
187 (_initialize_tui_win): Add "compact-source" setting.
188 * tui/tui-source.c (tui_source_window::set_contents): Handle
189 compact_source setting.
190 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
191 * NEWS: Document new setting.
192
489dbda6
TT
1932019-11-30 Tom Tromey <tom@tromey.com>
194
195 * dwarf2read.c (dwarf2_add_field): Include field offset when
196 computing variant part length.
197
bf498525
PW
1982019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
199 * NEWS: Mention define-prefix. Tell that command names can now
200 contain a . character.
201
be09caf1
PW
2022019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
203
204 * command.h (valid_cmd_char_p): Declare.
205 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
206 the check of valid command char.
207 (find_command_name_length, valid_user_defined_cmd_name_p): Use
208 valid_cmd_char_p.
209 * cli/cli-script.c (validate_comname): Likewise.
210 * completer.c (gdb_completer_command_word_break_characters):
211 Do not remove . from the word break char, update comments.
212 (complete_line_internal_1): Use valid_cmd_char_p.
213 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
214 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
215
c6ac7fc9
PW
2162019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
217
218 * cli/cli-script.c (do_define_command): Ensure a redefined
219 prefix command is kept as a prefix command.
220 (define_prefix_command): New function.
221 (show_user_1): Report user defined prefixes.
222 (_initialize_cli_script): Create the new 'define-prefix' command.
223 Add completers for 'define' and 'document'.
224 * top.c (execute_command): If command is a user-defined prefix only
225 command, report the list of commands for this prefix command.
226
a992a3b0
TBA
2272019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
228
229 * valops.c (find_oload_champ): Improve debug output.
230
e9194a1a
TBA
2312019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232
233 * valops.c (find_oload_champ): Print part of debug messages
234 before the badness vector is std::move'd.
235
53a008a6
TT
2362019-11-28 Tom Tromey <tom@tromey.com>
237
238 * value.c (creal_internal_fn): Fix comment.
239
bab05c83
TT
2402019-11-28 Tom Tromey <tom@tromey.com>
241
242 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
243 flag_bound_evaluated>: Now unsigned.
244
2522f049
TT
2452019-11-28 Tom Tromey <tom@tromey.com>
246
247 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
248 declare.
249
38b49e22
MS
2502019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
251
252 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
253 debug output.
254 * jit.c (jit_unregister_code): Add debug print to match
255 `jit_register_code`.
256
35125921
CB
2572019-11-27 Christian Biesinger <cbiesinger@google.com>
258
259 * NEWS: Mention the new multithreaded symbol loading.
260
62e77f56
CB
2612019-11-27 Christian Biesinger <cbiesinger@google.com>
262
263 * maint.c (n_worker_threads): Default to 0.
264 (worker_threads_disabled): New function.
265 * maint.h (worker_threads_disabled): New function.
266 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
267 here if worker_threads_disabled () is true.
268 (minimal_symbol_reader::install): Skip all threading if
269 worker_threads_disabled () is true.
270
f29d7f6b
CB
2712019-11-27 Christian Biesinger <cbiesinger@google.com>
272
273 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
274 hash code if possible.
275 (add_minsym_to_demangled_hash_table): Likewise.
276 (minimal_symbol_reader::install): Compute the hash codes for msymbol
277 on the background thread.
278 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
279 Add these fields.
280
e76b2246
CB
2812019-11-27 Christian Biesinger <cbiesinger@google.com>
282
283 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
284 of the mangled name on the background thread.
285 * symtab.c (symbol_set_names): Allow passing in the hash of the
286 linkage_name.
287 * symtab.h (symbol_set_names): Likewise.
288
8d9a2568
KB
2892019-11-27 Kevin Buettner <kevinb@redhat.com>
290
291 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
292 physnames are computed for inherited DIEs.
293
fad03f6e
TT
2942019-11-27 Tom Tromey <tromey@adacore.com>
295
296 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
297 backslashes.
298 * cp-support.c: Remove unnecessary backslashes.
299
43678b0a
CB
3002019-11-27 Christian Biesinger <cbiesinger@google.com>
301
302 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
303 with sym->set_linkage_name.
304 * coffread.c (coff_read_enum_type): Likewise.
305 * mdebugread.c (parse_symbol): Likewise.
306 * stabsread.c (patch_block_stabs): Likewise.
307 (define_symbol): Likewise.
308 (read_enum_type): Likewise.
309 (common_block_end): Likewise.
310 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
311 function.
312 (SYMBOL_SET_LINKAGE_NAME): Remove.
313 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
314 with sym->set_linkage_name.
315
db5960b4
AB
3162019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
319 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
320 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
321 * NEWS: Mention new MI command.
322
7dc42066
AB
3232019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
326 '-symbol-info-types', and '-symbol-info-variables'.
327 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
328 (mi_cmd_symbol_info_types): Declare.
329 (mi_cmd_symbol_info_variables): Declare.
330 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
331 (output_debug_symbol): New function.
332 (output_nondebug_symbol): New function.
333 (mi_symbol_info): New function.
334 (mi_info_functions_or_variables): New function.
335 (mi_cmd_symbol_info_functions): New function.
336 (mi_cmd_symbol_info_types): New function.
337 (mi_cmd_symbol_info_variables): New function.
338 * NEWS: Mention new commands.
339
5f512a7d
AB
3402019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * symtab.c (symbol_to_info_string): New function, most content
343 moved from print_symbol_info, but updated to return a std::string.
344 (print_symbol_info): Update to use symbol_to_info_string and print
345 returned string.
346 * symtab.h (symbol_to_info_string): Declare new function.
347
470c0b1c
AB
3482019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * python/python.c (gdbpy_rbreak): Convert to using
351 global_symbol_searcher.
352 * symtab.c (file_matches): Convert return type to bool, change
353 file list to std::vector, update header comment.
354 (search_symbols): Rename to...
355 (global_symbol_searcher::search): ...this and update now its
356 a member function of global_symbol_searcher. Take account of the
357 changes to file_matches.
358 (symtab_symbol_info): Convert to using global_symbol_searcher.
359 (rbreak_command): Likewise.
360 (search_module_symbols): Likewise.
361 * symtab.h (enum symbol_search): Update comment.
362 (search_symbols): Remove declaration.
363 (class global_symbol_searcher): New class.
364
57357d9d
TT
3652019-11-26 Tom Tromey <tromey@adacore.com>
366
367 * cp-support.c (_initialize_cp_support): Conditionally initialize
368 gdb_demangle_attempt_core_dump.
369
3ea16160
TT
3702019-11-26 Tom Tromey <tom@tromey.com>
371
372 * python/py-function.c (fnpy_init): Update.
373 * value.h (add_internal_function): Adjust declaration.
374 * value.c (function_destroyer): Remove.
375 (do_add_internal_function): Don't set destroyer or copy name.
376 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
377 Set name_allocated.
378 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
379 (cmdpy_init): Set name_allocated.
380 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
381 member.
382 (~cmd_list_element): Free "name" if needed.
383
1a6d41c6
TT
3842019-11-26 Tom Tromey <tom@tromey.com>
385
386 * value.h (add_internal_function): Add new overload. Move
387 documentation from value.h.
388 * value.c (do_add_internal_function): New function.
389 (add_internal_function): Use it. Add new overload.
390 (function_destroyer): Don't free doc.
391 * python/py-function.c (fnpy_init): Update.
392
8318f3c3
TT
3932019-11-26 Tom Tromey <tom@tromey.com>
394
395 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
396 (cmdpy_init): Set "doc_allocated".
397
4da8c3a8
TT
3982019-11-26 Tom Tromey <tom@tromey.com>
399
400 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
401 name of worker thread.
402 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
403 pthread_setname_np.
404 * configure, config.in: Rebuild.
405
971db5e2
TT
4062019-11-26 Tom Tromey <tom@tromey.com>
407
408 * python/python.c (class gdbpy_gil): New.
409 (struct gdbpy_event): Add constructor, destructor, operator().
410 (gdbpy_post_event): Use run_on_main_thread.
411 (gdbpy_initialize_events): Remove.
412 (do_start_initialization): Update.
413
22138db6
TT
4142019-11-26 Tom Tromey <tom@tromey.com>
415
416 * NEWS: Add entry.
417 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
418 commands. Call update_thread_pool_size.
419 (update_thread_pool_size, maintenance_set_worker_threads): New
420 functions.
421 (n_worker_threads): New global.
422
d55c9a68
TT
4232019-11-26 Christian Biesinger <cbiesinger@google.com>
424 Tom Tromey <tom@tromey.com>
425
426 * minsyms.c (minimal_symbol_reader::install): Use
427 parallel_for_each.
428 * gdbsupport/parallel-for.h: New file.
429 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
430
a0b57563
CB
4312019-11-26 Christian Biesinger <cbiesinger@google.com>
432 Tom Tromey <tom@tromey.com>
433
434 * gdbsupport/thread-pool.h: New file.
435 * gdbsupport/thread-pool.c: New file.
436 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
437 (HFILES_NO_SRCDIR): Add thread-pool.h.
438
3b3978bc
TT
4392019-11-26 Tom Tromey <tom@tromey.com>
440
441 * event-top.h (thread_local_segv_handler): Declare.
442 * event-top.c (thread_local_segv_handler): New global.
443 (install_handle_sigsegv, handle_sigsegv): New functions.
444 (async_init_signals): Install SIGSEGV handler.
445 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
446 thread-local.
447 (report_failed_demangle): New function.
448 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
449 handler-setting code, instead use segv_handler. Run warning code
450 on main thread.
451
9411c49e
TT
4522019-11-26 Tom Tromey <tom@tromey.com>
453
454 * run-on-main-thread.c: New file.
455 * run-on-main-thread.h: New file.
456 * unittests/main-thread-selftests.c: New file.
457 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
458 main-thread-selftests.c.
459 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
460 (COMMON_SFILES): Add run-on-main-thread.c.
461
c3efb965
TT
4622019-11-26 Tom Tromey <tom@tromey.com>
463
464 * main.c (setup_alternate_signal_stack): Remove.
465 (captured_main_1): Use gdb::alternate_signal_stack.
466 * gdbsupport/alt-stack.h: New file.
467
21987b9c
TT
4682019-11-26 Tom Tromey <tom@tromey.com>
469
470 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
471 Remove comment.
472 (save_original_signals_state, restore_original_signals_state): Use
473 gdb_sigmask.
474 * linux-nat.c (block_child_signals, restore_child_signals_mask)
475 (_initialize_linux_nat): Use gdb_sigmask.
476 * guile/guile.c (_initialize_guile): Use block_signals.
477 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
478 * gdbsupport/gdb-sigmask.h: New file.
479 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
480 * cp-support.c (gdb_demangle): Use gdb_sigmask.
481 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
482 pthread_sigmask.
483 * configure, config.in: Rebuild.
484 * gdbsupport/block-signals.h: New file.
485
5e030278
TT
4862019-11-26 Tom Tromey <tom@tromey.com>
487
488 * acinclude.m4: Include ax_pthread.m4.
489 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
490 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
491 (CLIBS): Use PTHREAD_LIBS.
492 (aclocal_m4_deps): Add ax_pthread.m4.
493 * config.in, configure: Rebuild.
494 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
495
5a79c107
TT
4962019-11-26 Tom Tromey <tom@tromey.com>
497
498 * symtab.h (struct minimal_symbol) <name_set>: New member.
499 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
500 Don't call symbol_set_names.
501 (minimal_symbol_reader::install): Call symbol_set_names.
502
aa369509
PW
5032019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
504
505 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
506 restore_active_ext_lang, as GIL is needed for (indirectly)
507 called PyOS_InterruptOccurred.
508
cadc9cb8
SM
5092019-11-26 Simon Marchi <simon.marchi@efficios.com>
510
511 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
512 definition.
513
d04afd58
SM
5142019-11-26 Simon Marchi <simon.marchi@efficios.com>
515
516 * remote-sim.c (simulator_command): Make static, remove
517 declaration.
518
dd694d77
SM
5192019-11-26 Simon Marchi <simon.marchi@efficios.com>
520
521 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
522 static.
523 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
524 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
525 (main): Likewise.
526 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
527 (main): Likewise.
528 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
529 (main): Likewise.
530 * unittests/basic_string_view/element_access/char/1.cc (test01):
531 Likewise.
532 (main): Likewise.
533 * unittests/basic_string_view/element_access/char/empty.cc (main):
534 Likewise.
535 * unittests/basic_string_view/element_access/char/front_back.cc
536 (test01): Likewise.
537 (main): Likewise.
538 * unittests/basic_string_view/inserters/char/2.cc (test05):
539 Likewise.
540 (main): Likewise.
541 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
542 (test01): Likewise.
543 (main): Likewise.
544 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
545 (test01): Likewise.
546 (main): Likewise.
547 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
548 Likewise.
549 * unittests/basic_string_view/operations/compare/char/1.cc
550 (test01): Likewise.
551 (main): Likewise.
552 * unittests/basic_string_view/operations/compare/char/13650.cc
553 (test01): Likewise.
554 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
555 Likewise.
556 (main): Likewise.
557 * unittests/basic_string_view/operations/data/char/1.cc (test01):
558 Likewise.
559 (main): Likewise.
560 * unittests/basic_string_view/operations/find/char/1.cc (test01):
561 Likewise.
562 (main): Likewise.
563 * unittests/basic_string_view/operations/find/char/2.cc (test02):
564 Likewise.
565 (main): Likewise.
566 * unittests/basic_string_view/operations/find/char/3.cc (test03):
567 Likewise.
568 (main): Likewise.
569 * unittests/basic_string_view/operations/find/char/4.cc (main):
570 Likewise.
571 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
572 Likewise.
573 (main): Likewise.
574 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
575 Likewise.
576 (main): Likewise.
577 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
578 Likewise.
579 (main): Likewise.
580 * unittests/basic_string_view/operations/substr/char/1.cc
581 (test01): Likewise.
582 (main): Likewise.
583 * unittests/basic_string_view/operators/char/2.cc (main):
584 Likewise.
585 * unittests/optional/assignment/1.cc (test): Likewise.
586 * unittests/optional/assignment/2.cc (test): Likewise.
587 * unittests/optional/assignment/3.cc (test): Likewise.
588 * unittests/optional/assignment/4.cc (test): Likewise.
589 * unittests/optional/assignment/5.cc (test): Likewise.
590 * unittests/optional/assignment/6.cc (test): Likewise.
591 * unittests/optional/assignment/7.cc (test): Likewise.
592 * unittests/optional/cons/copy.cc (test): Likewise.
593 * unittests/optional/cons/default.cc (test): Likewise.
594 * unittests/optional/cons/move.cc (test): Likewise.
595 * unittests/optional/cons/value.cc (test): Likewise.
596 * unittests/optional/in_place.cc (test): Likewise.
597 * unittests/optional/observers/1.cc (test): Likewise.
598 * unittests/optional/observers/2.cc (test): Likewise.
599
3b5c1d49
SM
6002019-11-26 Simon Marchi <simon.marchi@efficios.com>
601
602 * tui-win.h (tui_set_var_cmd): Remove.
603 * tui-win.c (tui_set_var_cmd): Make static.
604
adce99fe
SM
6052019-11-26 Simon Marchi <simon.marchi@efficios.com>
606
607 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
608 rbreak_command_wrapper): Remove.
609 * symtab.c (rbreak_command_wrapper): Remove.
610
fe3adccf
SM
6112019-11-26 Simon Marchi <simon.marchi@efficios.com>
612
613 * inferior.h (info_terminal_command): Remove declaration.
614 * inflow.c (info_terminal_command): Make static.
615
b926335f
SM
6162019-11-26 Simon Marchi <simon.marchi@efficios.com>
617
618 * inferior.c (exit_inferior_silent): Remove.
619
b62f6f54
SM
6202019-11-26 Simon Marchi <simon.marchi@efficios.com>
621
622 * dictionary.c (dict_empty, mdict_empty): Remove.
623 * dictionary.c (mdict_empty): Remove.
624
cb8c24b6
SM
6252019-11-26 Simon Marchi <simon.marchi@efficios.com>
626
627 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
628 (arc_insn_get_memory_offset): Likewise.
629 (arc_insn_dump): Likewise.
630 * cp-support.c (test_cp_symbol_name_matches): Likewise.
631 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
632 * dictionary.c (dict_iterator_next): Likewise.
633 (dict_iter_match_first): Likewise.
634 (dict_iter_match_next): Likewise.
635 * f-lang.c (evaluate_subexp_f): Likewise.
636 * hppa-tdep.c (hppa_read_pc): Likewise.
637 * i386-tdep.c (i386_floatformat_for_type): Likewise.
638 * parse.c (write_exp_elt_msym): Likewise.
639 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
640 * remote.c (remote_packet_size): Likewise.
641 (remote_notif_stop_parse): Likewise.
642 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
643 * s12z-tdep.c (s12z_disassemble_info): Likewise.
644 * source.c (prepare_path_for_appending): Likewise.
645 * sparc64-linux-tdep.c
646 (sparc64_linux_handle_segmentation_fault); Likewise.
647 * stack.c (frame_selection_by_function_completer): Likewise.
648
781597ff
SM
6492019-11-26 Simon Marchi <simon.marchi@efficios.com>
650
651 * completer.c (set_gdb_completion_word_break_characters):
652 Remove.
653
23baa4cc
SM
6542019-11-26 Simon Marchi <simon.marchi@efficios.com>
655
656 * dwarf-index-write.c: Include dwarf-index-write.h.
657 * mi/mi-interp.c: Include mi/mi-interp.h.
658
23767560
SM
6592019-11-26 Simon Marchi <simon.marchi@efficios.com>
660
661 * aarch32-tdep.c: Include aarch32-tdep.h.
662 * aarch32-tdep.h: Forward-declare struct target_desc.
663
6d91ce9a
CB
6642019-11-26 Christian Biesinger <cbiesinger@google.com>
665
666 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
667 strerror.
668 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
669 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
670
3cf2f237
TV
6712019-11-25 Tom de Vries <tdevries@suse.de>
672
673 * contrib/words.sh: Add -c option.
674
5b89c67a
CB
6752019-11-25 Christian Biesinger <cbiesinger@google.com>
676
677 * solib.c (solib_find_1): Change int to bool.
678 (exec_file_find): Change int to bool.
679 (solib_find): Change int to bool.
680 (solib_read_symbols): Change int to bool.
681 (solib_used): Change int to bool.
682 (solib_add): Change int to bool.
683 (info_sharedlibrary_command): Change int to bool.
684 (solib_contains_address_p): Change int to bool.
685 (solib_keep_data_in_core): Change int to bool.
686 (in_solib_dynsym_resolve_code): Change int to bool.
687 (reload_shared_libraries_1): Change int to bool.
688 (gdb_sysroot_changed): Change int to bool.
689 * solib.h (solib_read_symbols): Change int to bool.
690 (solib_contains_address_p): Change int to bool.
691 (solib_keep_data_in_core): Change int to bool.
692 (in_solib_dynsym_resolve_code): Change int to bool.
693 (libpthread_name_p): Change int to bool.
694
6cc8564b
LM
6952019-11-25 Luis Machado <luis.machado@linaro.org>
696
697 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
698 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
699 (remote_packet_max_chars): New static global.
700 (show_remote_packet_max_chars): New function.
701 (remote_target::putpkt_binary): Adjust to use new
702 remote_packet_max_chars option.
703 (remote_target::getpkt_or_notif_sane_1): Likewise.
704 (_initialize_remote): Register new remote-packet-max-chars option.
705
a7cdaa91
SM
7062019-11-24 Simon Marchi <simon.marchi@efficios.com>
707
708 * m68k-linux-nat.c: Include gdbarch.h.
709
26abc753
TT
7102019-11-24 Tom Tromey <tom@tromey.com>
711
712 * symfile.c (read_symbols): Update.
713 * psymtab.c (require_partial_symbols): Change type of "verbose" to
714 bool.
715 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
716 (psym_lookup_symbol, psym_find_last_source_symtab)
717 (psym_forget_cached_source_info, psym_print_stats)
718 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
719 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
720 (psym_map_matching_symbols, psym_expand_symtabs_matching)
721 (psym_find_compunit_symtab_by_address)
722 (maintenance_print_psymbols, maintenance_info_psymtabs)
723 (maintenance_check_psymtabs): Update.
724 * psymtab.h (require_partial_symbols): Change type of "verbose" to
725 bool.
726
012fc909
TT
7272019-11-22 Tom Tromey <tom@tromey.com>
728
729 * observable.h: Update comments.
730
c83d8d32
TT
7312019-11-22 Tom Tromey <tromey@adacore.com>
732
733 * ada-tasks.c (ada_task_is_alive): Make parameter const.
734 (print_ada_task_info): Don't try to fetch thread id if task is not
735 alive.
736
987012b8
CB
7372019-11-22 Christian Biesinger <cbiesinger@google.com>
738
739 * ada-exp.y: Update.
740 * ada-lang.c (sort_choices): Update.
741 (ada_print_symbol_signature): Update.
742 (resolve_subexp): Update.
743 (ada_parse_renaming): Update.
744 (ada_read_renaming_var_value): Update.
745 (lesseq_defined_than): Update.
746 (remove_extra_symbols): Update.
747 (remove_irrelevant_renamings): Update.
748 (ada_add_block_symbols): Update.
749 (ada_collect_symbol_completion_matches): Update.
750 (ada_is_renaming_symbol): Update.
751 (aggregate_assign_from_choices): Update.
752 (ada_evaluate_subexp): Update.
753 (ada_has_this_exception_support): Update.
754 (ada_is_non_standard_exception_sym): Update.
755 (ada_add_exceptions_from_frame): Update.
756 (ada_add_global_exceptions): Update.
757 (ada_print_subexp): Update.
758 * ax-gdb.c (gen_var_ref): Update.
759 (gen_maybe_namespace_elt): Update.
760 (gen_expr_for_cast): Update.
761 (gen_expr): Update.
762 * block.h: Update.
763 * blockframe.c (find_pc_partial_function): Update.
764 * breakpoint.c (print_breakpoint_location): Update.
765 (update_static_tracepoint): Update.
766 * btrace.c (ftrace_print_function_name): Update.
767 (ftrace_function_switched): Update.
768 * buildsym.c (find_symbol_in_list): Update.
769 * c-exp.y: Update.
770 * c-typeprint.c (c_print_typedef): Update.
771 (c_type_print_template_args): Update.
772 * cli/cli-cmds.c (edit_command): Update.
773 (list_command): Update.
774 (print_sal_location): Update.
775 * coffread.c (patch_opaque_types): Update.
776 (process_coff_symbol): Update.
777 (coff_read_enum_type): Update.
778 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
779 (convert_one_symbol): Update.
780 (hash_symname): Update.
781 (eq_symname): Update.
782 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
783 * compile/compile-cplus-types.c (debug_print_scope): Update.
784 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
785 * compile/compile-object-load.c (get_out_value_type): Update.
786 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
787 (search_symbol_list): Update.
788 (cp_lookup_symbol_imports_or_template): Update.
789 * cp-support.c (overload_list_add_symbol): Update.
790 * ctfread.c (psymtab_to_symtab): Update.
791 * dbxread.c (cp_set_block_scope): Update.
792 * dictionary.c (iter_match_first_hashed): Update.
793 (iter_match_next_hashed): Update.
794 (insert_symbol_hashed): Update.
795 (iter_match_next_linear): Update.
796 * dictionary.h: Update.
797 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
798 (locexpr_describe_location_piece): Update.
799 (locexpr_describe_location_1): Update.
800 (locexpr_generate_c_location): Update.
801 (loclist_describe_location): Update.
802 (loclist_generate_c_location): Update.
803 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
804 (read_func_scope): Update.
805 (process_enumeration_scope): Update.
806 (new_symbol): Update.
807 (dwarf2_const_value): Update.
808 (dwarf2_symbol_mark_computed): Update.
809 * eval.c (evaluate_funcall): Update.
810 (evaluate_subexp_standard): Update.
811 * expprint.c (print_subexp_standard): Update.
812 (dump_subexp_body_standard): Update.
813 * f-valprint.c (info_common_command_for_block): Update.
814 * findvar.c (get_hosting_frame): Update.
815 (default_read_var_value): Update.
816 * go-lang.c (go_symbol_package_name): Update.
817 * guile/scm-block.c (bkscm_print_block_smob): Update.
818 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
819 (gdbscm_symbol_name): Update.
820 (gdbscm_symbol_linkage_name): Update.
821 (gdbscm_symbol_print_name): Update.
822 * infcall.c (get_function_name): Update.
823 * infcmd.c (jump_command): Update.
824 (finish_command): Update.
825 * infrun.c (insert_exception_resume_breakpoint): Update.
826 * linespec.c (canonicalize_linespec): Update.
827 (create_sals_line_offset): Update.
828 (convert_linespec_to_sals): Update.
829 (complete_label): Update.
830 (find_label_symbols_in_block): Update.
831 * m2-typeprint.c (m2_print_typedef): Update.
832 * mdebugread.c (mdebug_reg_to_regnum): Update.
833 (parse_symbol): Update.
834 (mylookup_symbol): Update.
835 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
836 (list_args_or_locals): Update.
837 * objc-lang.c (compare_selectors): Update.
838 (info_selectors_command): Update.
839 (compare_classes): Update.
840 (info_classes_command): Update.
841 (find_imps): Update.
842 * p-typeprint.c (pascal_print_typedef): Update.
843 * printcmd.c (build_address_symbolic): Update.
844 (info_address_command): Update.
845 (print_variable_and_value): Update.
846 * python/py-framefilter.c (extract_sym): Update.
847 (py_print_single_arg): Update.
848 * python/py-symbol.c (sympy_str): Update.
849 (sympy_get_name): Update.
850 (sympy_get_linkage_name): Update.
851 * python/python.c (gdbpy_rbreak): Update.
852 * record-btrace.c (btrace_get_bfun_name): Update.
853 (btrace_call_history): Update.
854 * rust-lang.c (rust_print_typedef): Update.
855 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
856 * stabsread.c (stab_reg_to_regnum): Update.
857 (define_symbol): Update.
858 (read_enum_type): Update.
859 (common_block_end): Update.
860 (cleanup_undefined_types_1): Update.
861 (scan_file_globals): Update.
862 * stack.c (print_frame_arg): Update.
863 (print_frame_args): Update.
864 (find_frame_funname): Update.
865 (info_frame_command_core): Update.
866 (iterate_over_block_locals): Update.
867 (print_block_frame_labels): Update.
868 (do_print_variable_and_value): Update.
869 (iterate_over_block_arg_vars): Update.
870 (return_command): Update.
871 * symmisc.c (dump_symtab_1): Update.
872 (print_symbol): Update.
873 * symtab.c (eq_symbol_entry): Update.
874 (symbol_cache_dump): Update.
875 (lookup_language_this): Update.
876 (find_pc_sect_line): Update.
877 (skip_prologue_sal): Update.
878 (symbol_search::compare_search_syms): Update.
879 (treg_matches_sym_type_name): Update.
880 (search_symbols): Update.
881 (print_symbol_info): Update.
882 (rbreak_command): Update.
883 (completion_list_add_symbol): Update.
884 (find_gnu_ifunc): Update.
885 (get_symbol_address): Update.
886 (search_module_symbols): Update.
887 (info_module_subcommand): Update.
888 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
889 (SYMBOL_LINKAGE_NAME): Remove.
890 (SYMBOL_DEMANGLED_NAME): Remove.
891 (SYMBOL_PRINT_NAME): Remove.
892 (SYMBOL_SEARCH_NAME): Remove.
893 * tracepoint.c (set_traceframe_context): Update.
894 (validate_actionline): Update.
895 (collection_list::collect_symbol): Update.
896 (encode_actions_1): Update.
897 (info_scope_command): Update.
898 (print_one_static_tracepoint_marker): Update.
899 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
900 * valops.c (address_of_variable): Update.
901 (find_overload_match): Update.
902 (find_oload_champ): Update.
903
c9d95fa3
CB
9042019-11-22 Christian Biesinger <cbiesinger@google.com>
905
906 * ada-lang.c (ada_lookup_simple_minsym): Update.
907 (ada_collect_symbol_completion_matches): Update.
908 * ada-tasks.c (read_atcb): Update.
909 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
910 (amd64_windows_skip_trampoline_code): Update.
911 * arm-tdep.c (skip_prologue_function): Update.
912 (arm_skip_stack_protector): Update.
913 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
914 (arm_wince_skip_main_prologue): Update.
915 * ax-gdb.c (gen_expr): Update.
916 * block.c (call_site_for_pc): Update.
917 * blockframe.c (find_pc_partial_function): Update.
918 * breakpoint.c (set_breakpoint_location_function): Update.
919 * btrace.c (ftrace_print_function_name): Update.
920 (ftrace_function_switched): Update.
921 * c-valprint.c (print_unpacked_pointer): Update.
922 * coffread.c (coff_symfile_read): Update.
923 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
924 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
925 * dwarf-index-write.c (write_psymbols): Update.
926 * dwarf2loc.c (call_site_to_target_addr): Update.
927 (func_verify_no_selftailcall): Update.
928 (tailcall_dump): Update.
929 (call_site_find_chain_1): Update.
930 (dwarf_expr_reg_to_entry_parameter): Update.
931 * elfread.c (elf_gnu_ifunc_record_cache): Update.
932 * eval.c (evaluate_funcall): Update.
933 (evaluate_subexp_standard): Update.
934 (evaluate_subexp_for_sizeof): Update.
935 * expprint.c (print_subexp_standard): Update.
936 (dump_subexp_body_standard): Update.
937 * frame.c (get_prev_frame_always_1): Update.
938 * frv-tdep.c (frv_skip_main_prologue): Update.
939 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
940 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
941 (gnuv3_get_typename_from_type_info): Update.
942 (gnuv3_skip_trampoline): Update.
943 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
944 * i386-tdep.c (i386_skip_main_prologue): Update.
945 (i386_pe_skip_trampoline_code): Update.
946 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
947 * infcall.c (get_function_name): Update.
948 * linespec.c (minsym_found): Update.
949 * linux-fork.c (info_checkpoints_command): Update.
950 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
951 (m32c_m16c_pointer_to_address): Update.
952 * maint.c (maintenance_translate_address): Update.
953 * minsyms.c (add_minsym_to_hash_table): Update.
954 (add_minsym_to_demangled_hash_table): Update.
955 (lookup_minimal_symbol_mangled): Update.
956 (lookup_minimal_symbol_demangled): Update.
957 (lookup_minimal_symbol_linkage): Update.
958 (lookup_minimal_symbol_text): Update.
959 (lookup_minimal_symbol_by_pc_name): Update.
960 (minimal_symbol_is_less_than): Update.
961 (compact_minimal_symbols): Update.
962 (build_minimal_symbol_hash_tables): Update.
963 (find_solib_trampoline_target): Update.
964 * mips-tdep.c (mips_stub_frame_sniffer): Update.
965 (mips_skip_pic_trampoline_code): Update.
966 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
967 * objc-lang.c (info_selectors_command): Update.
968 (info_classes_command): Update.
969 (find_methods): Update.
970 (find_imps): Update.
971 * p-valprint.c (pascal_val_print): Update.
972 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
973 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
974 * printcmd.c (build_address_symbolic): Update.
975 (info_symbol_command): Update.
976 * psymtab.c (psymbol_name_matches): Update.
977 (match_partial_symbol): Update.
978 (lookup_partial_symbol): Update.
979 (print_partial_symbols): Update.
980 (sort_pst_symbols): Update.
981 (maintenance_check_psymtabs): Update.
982 * python/py-framefilter.c (py_print_frame): Update.
983 * python/python.c (gdbpy_rbreak): Update.
984 * record-btrace.c (btrace_get_bfun_name): Update.
985 (btrace_call_history): Update.
986 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
987 (rs6000_skip_trampoline_code): Update.
988 * sol-thread.c (info_cb): Update.
989 * stabsread.c (scan_file_globals): Update.
990 * stack.c (find_frame_funname): Update.
991 (info_frame_command_core): Update.
992 * symmisc.c (dump_msymbols): Update.
993 * symtab.c (symbol_natural_name): Rename to..,
994 (general_symbol_info::natural_name): ...this.
995 (symbol_demangled_name): Rename to...
996 (general_symbol_info::demangled_name): ...this.
997 (symbol_search_name): Rename to...
998 (general_symbol_info::search_name): ...this.
999 (symbol_matches_search_name): Update.
1000 (find_pc_sect_line): Update.
1001 (skip_prologue_sal): Update.
1002 (search_symbols): Update.
1003 (print_msymbol_info): Update.
1004 (rbreak_command): Update.
1005 (completion_list_add_msymbol): Update.
1006 (completion_list_objc_symbol): Update.
1007 (get_msymbol_address): Update.
1008 * symtab.h (struct general_symbol_info): Add member functions
1009 natural_name (), linkage_name (), print_name (), demangled_name (),
1010 and search_name ().
1011 (SYMBOL_NATURAL_NAME): Update.
1012 (symbol_natural_name): Move to a member function on general_symbol_info.
1013 (SYMBOL_DEMANGLED_NAME): Update.
1014 (symbol_demangled_name): Move to a member function on
1015 general_symbol_info.
1016 (SYMBOL_SEARCH_NAME): Update.
1017 (symbol_search_name): Move to a member function on general_symbol_info.
1018 (MSYMBOL_NATURAL_NAME): Remove.
1019 (MSYMBOL_LINKAGE_NAME): Remove.
1020 (MSYMBOL_PRINT_NAME): Remove.
1021 (MSYMBOL_DEMANGLED_NAME): Remove.
1022 (MSYMBOL_SEARCH_NAME): Remove.
1023 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1024
f8bab2d6
CB
10252019-11-22 Christian Biesinger <cbiesinger@google.com>
1026
1027 * symtab.c (create_demangled_names_hash): Use per_bfd->
1028 minimal_symbol_count for computing the initial size, if greater
1029 than our default size.
1030
85e7588d
TV
10312019-11-22 Tom de Vries <tdevries@suse.de>
1032
1033 * contrib/words.sh: Improve words extraction.
1034
f6180073
TV
10352019-11-22 Tom de Vries <tdevries@suse.de>
1036
1037 * contrib/words.sh: Combine sed invocations.
1038
f10ffa41
CB
10392019-11-21 Christian Biesinger <cbiesinger@google.com>
1040
1041 * Makefile.in: Update.
1042 * demangle.c: Rename to...
1043 * gdb-demangle.c: ..this.
1044 (is_cplus_marker): Change return type to bool.
1045 (_initialize_demangler): Rename to...
1046 (_initialize_gdb_demangle): ...this.
1047 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1048 * symtab.h (demangle): Remove declaration; instead include
1049 gdb-demangle.h.
1050
6ba18521
TT
10512019-11-21 Tom Tromey <tromey@adacore.com>
1052
1053 * gdbsupport/format.c (format_pieces): Parse %I64d.
1054 * unittests/format_pieces-selftests.c (test_windows_formats): New
1055 function.
1056 (run_tests): Call it.
1057
34877895
PJ
10582019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1059
1060 Byte reverse display of variables with DW_END_big, DW_END_little
1061 (DW_AT_endianity) dwarf attributes if different than the native
1062 byte order.
1063 * ada-lang.c (ada_value_binop):
1064 Use type_byte_order instead of gdbarch_byte_order.
1065 * ada-valprint.c (printstr):
1066 (ada_val_print_string):
1067 * ada-lang.c (value_pointer):
1068 (ada_value_binop):
1069 Use type_byte_order instead of gdbarch_byte_order.
1070 * c-lang.c (c_get_string):
1071 Use type_byte_order instead of gdbarch_byte_order.
1072 * c-valprint.c (c_val_print_array):
1073 Use type_byte_order instead of gdbarch_byte_order.
1074 * cp-valprint.c (cp_print_class_member):
1075 Use type_byte_order instead of gdbarch_byte_order.
1076 * dwarf2loc.c (rw_pieced_value):
1077 Use type_byte_order instead of gdbarch_byte_order.
1078 * dwarf2read.c (read_base_type): Handle DW_END_big,
1079 DW_END_little
1080 * f-lang.c (f_get_encoding):
1081 Use type_byte_order instead of gdbarch_byte_order.
1082 * findvar.c (default_read_var_value):
1083 Use type_byte_order instead of gdbarch_byte_order.
1084 * gdbtypes.c (check_types_equal):
1085 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1086 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1087 and TYPE_ENDIANITY_LITTLE if set.
1088 (type_byte_order): new function.
1089 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1090 (struct main_type) <flag_endianity_not_default>:
1091 New field.
1092 (type_byte_order): New function.
1093 * infcmd.c (default_print_one_register_info):
1094 Use type_byte_order instead of gdbarch_byte_order.
1095 * p-lang.c (pascal_printstr):
1096 Use type_byte_order instead of gdbarch_byte_order.
1097 * p-valprint.c (pascal_val_print):
1098 Use type_byte_order instead of gdbarch_byte_order.
1099 * printcmd.c (print_scalar_formatted):
1100 Use type_byte_order instead of gdbarch_byte_order.
1101 * solib-darwin.c (darwin_current_sos):
1102 Use type_byte_order instead of gdbarch_byte_order.
1103 * solib-svr4.c (solib_svr4_r_ldsomap):
1104 Use type_byte_order instead of gdbarch_byte_order.
1105 * stap-probe.c (stap_modify_semaphore):
1106 Use type_byte_order instead of gdbarch_byte_order.
1107 * target-float.c (target_float_same_format_p):
1108 Use type_byte_order instead of gdbarch_byte_order.
1109 * valarith.c (scalar_binop):
1110 (value_bit_index):
1111 Use type_byte_order instead of gdbarch_byte_order.
1112 * valops.c (value_cast):
1113 Use type_byte_order instead of gdbarch_byte_order.
1114 * valprint.c (generic_emit_char):
1115 (generic_printstr):
1116 (val_print_string):
1117 Use type_byte_order instead of gdbarch_byte_order.
1118 * value.c (unpack_long):
1119 (unpack_bits_as_long):
1120 (unpack_value_bitfield):
1121 (modify_field):
1122 (pack_long):
1123 (pack_unsigned_long):
1124 Use type_byte_order instead of gdbarch_byte_order.
1125 * findvar.c (unsigned_pointer_to_address):
1126 (signed_pointer_to_address):
1127 (unsigned_address_to_pointer):
1128 (address_to_signed_pointer):
1129 (default_read_var_value):
1130 (default_value_from_register):
1131 Use type_byte_order instead of gdbarch_byte_order.
1132 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1133 Use type_byte_order instead of gdbarch_byte_order.
1134 * riscv-tdep.c (riscv_print_one_register_info):
1135 Use type_byte_order instead of gdbarch_byte_order.
1136
87fb00ea
SM
11372019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1140 (current_ui_gdb_stdin_ptr): Likewise.
1141 (current_ui_gdb_stderr_ptr): Likewise.
1142 (current_ui_gdb_stdlog_ptr): Likewise.
1143 (current_ui_current_uiout_ptr): Likewise.
1144 (gen_ret_current_ui_field_ptr): Remove.
1145
65d1cd5f
TV
11462019-11-21 Tom de Vries <tdevries@suse.de>
1147
1148 PR gdb/24956
1149 * cli/cli-script.c (execute_control_command): Only switch to
1150 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1151
9f6ad286
TT
11522019-11-19 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1155 Now static. Change type of "name".
1156 (tui_set_win_height_command): Don't copy "arg".
1157 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1158 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1159
435d3d88
AT
11602019-11-19 Ali Tamur <tamur@google.com>
1161
1162 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1163 "if (attr != nullptr)".
1164 (dwarf2_find_base_address): Likewise.
1165 (dwarf2_build_include_psymtabs): Likewise.
1166 (read_cutu_die_from_dwo): Likewise.
1167 (read_func_scope): Likewise.
1168 (read_call_site_scope): Likewise.
1169 (dwarf2_get_pc_bounds): Likewise.
1170 (dwarf2_record_block_ranges): Likewise.
1171 (dwarf2_add_field): Likewise.
1172 (dwarf2_add_member_fn): Likewise.
1173 (read_structure_type): Likewise.
1174 (read_enumeration_type): Likewise.
1175 (read_array_type): Likewise.
1176 (read_array_order): Likewise.
1177 (read_set_type): Likewise.
1178 (read_common_block): Likewise.
1179 (read_tag_reference_type): Likewise.
1180 (read_tag_string_type): Likewise.
1181 (read_subroutine_type): Likewise.
1182 (read_base_type): Likewise.
1183 (read_subrange_type): Likewise.
1184 (new_symbol): Likewise.
1185 (prepare_one_comp_unit): Likewise.
1186
c9739b6a
TT
11872019-11-19 Tom Tromey <tromey@adacore.com>
1188
1189 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1190 result in error when DebugActiveProcess fails.
1191
494409bb
SDJ
11922019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1193 Pedro Alves <palves@redhat.com>
1194
1195 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1196 * target.c (target_stack::push): Call 'unpush' if there's a
1197 target on top of the stack.
1198
2e953aca
PW
11992019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1200
1201 * python/py-block.c (blpy_dealloc): Call tp_free.
1202 (blpy_block_syms_dealloc): Likewise.
1203 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1204 * python/py-inferior.c (infpy_dealloc): Likewise.
1205 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1206 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1207 * python/py-symbol.c (sympy_dealloc): Likewise.
1208 * python/py-symtab.c (stpy_dealloc): Likewise.
1209 * python/py-type.c (typy_iterator_dealloc): Likewise.
1210
6edc43ec
CB
12112019-11-18 Christian Biesinger <cbiesinger@google.com>
1212
1213 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1214 constructor instead of using a class initializer.
1215
cd850b40
CB
12162019-11-15 Christian Biesinger <cbiesinger@google.com>
1217
1218 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1219 * configure: Regenerate.
1220 * configure.ac: Don't source common.host.
1221 * gdbsupport/common.host: Remove.
1222 * gdbsupport/mingw-strerror.c: Remove.
1223 * gdbsupport/posix-strerror.c: Rename to...
1224 * gdbsupport/safe-strerror.c: ...this.
1225
53fea9c7
CB
12262019-11-15 Christian Biesinger <cbiesinger@google.com>
1227
1228 * maint.c (scoped_command_stats::print_time): Use localtime_r
1229 instead of localtime (provided through gnulib if necessary).
1230 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1231 of ctime.
1232
f8e27d88
CB
12332019-11-15 Christian Biesinger <cbiesinger@google.com>
1234
1235 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1236 avoid compile errors.
1237
5abebf3c
CB
12382019-11-15 Christian Biesinger <cbiesinger@google.com>
1239
1240 * config.in: Regenerate.
1241 * configure: Regenerate.
1242 * gdbsupport/common.m4: No longer check for strerror_r.
1243 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1244 POSIX version of strerror_r, now that gnulib provides it if
1245 necessary.
1246
9a351667
CB
12472019-11-14 Christian Biesinger <cbiesinger@google.com>
1248
1249 * README (`configure' options): Update.
1250
55708e99
TT
12512019-11-14 Tom Tromey <tromey@adacore.com>
1252
1253 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1254 expected type for the RHS if the LHS is a convenience variable.
1255
4b09bb2e
SM
12562019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1259 Provide explicit default and copy constructor.
1260
bd454f8b
PW
12612019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1262
1263 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1264 only call Py_INCREF (newbp) in the bppy_pending_object case.
1265
d1aa3cf0
TT
12662019-11-13 Tom Tromey <tromey@adacore.com>
1267
1268 PR build/25182:
1269 * psympriv.h (partial_symbol): Remove static assert.
1270 * symtab.h (general_symbol_info, symbol): Remove static assert.
1271
e06f3d6e
AB
12722019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * gdbsupport/format.c (format_pieces::format_pieces): Support
1275 printf 'z' size modifier.
1276 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1277 * printcmd.c (ui_printf): Handle size_t_arg.
1278 * ui-out.c (ui_out::vmessage): Likewise.
1279 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1280 function.
1281 (run_tests): Call test_format_int_sizes.
1282
468c0cbb
CB
12832019-11-12 Christian Biesinger <cbiesinger@google.com>
1284
1285 * ada-exp.y (write_ambiguous_var): Update.
1286 * buildsym.c (add_symbol_to_list): Update.
1287 * dwarf2read.c (read_variable): Update.
1288 (new_symbol): Update.
1289 * jit.c (finalize_symtab): Update.
1290 * language.c (language_alloc_type_symbol): Update.
1291 * symtab.c (fixup_symbol_section): Update.
1292 (initialize_objfile_symbol_1): Move code to...
1293 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1294 (allocate_symbol): Update.
1295 (allocate_template_symbol): Update.
1296 (get_symbol_address): Update.
1297 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1298 of having as a field, and add a constructor.
1299 (SYMBOL_VALUE): Update.
1300 (SYMBOL_VALUE_ADDRESS): Update.
1301 (SET_SYMBOL_VALUE_ADDRESS): Update.
1302 (SYMBOL_VALUE_BYTES): Update.
1303 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1304 (SYMBOL_BLOCK_VALUE): Update.
1305 (SYMBOL_VALUE_CHAIN): Update.
1306 (SYMBOL_LANGUAGE): Update.
1307 (SYMBOL_SECTION): Update.
1308 (SYMBOL_OBJ_SECTION): Update.
1309 (SYMBOL_SET_LANGUAGE): Update.
1310 (SYMBOL_SET_LINKAGE_NAME): Update.
1311 (SYMBOL_SET_NAMES): Update.
1312 (SYMBOL_NATURAL_NAME): Update.
1313 (SYMBOL_LINKAGE_NAME): Update.
1314 (SYMBOL_DEMANGLED_NAME): Update.
1315 (SYMBOL_SEARCH_NAME): Update.
1316 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1317 (struct symbol): Update.
1318 (struct template_symbol): Update.
1319 (struct rust_vtable_symbol): Update.
1320 * xcoffread.c (SYMBOL_DUP): Update.
1321
ed2c82c3
TT
13222019-11-12 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-layout.c (show_layout): Set current_layout.
1325 (show_source_disasm_command, show_data)
1326 (show_source_or_disasm_and_command): Don't set current_layout.
1327
d9fcefd5
TT
13282019-11-12 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1331
45e42163
TT
13322019-11-12 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-win.c (resize_message): New global.
1335 (show_tui_resize_message): New function.
1336 (tui_async_resize_screen): Print message if requested.
1337 (_initialize_tui_win): Add tui-resize-message setting.
1338 * NEWS: Add entry for new commands.
1339
c86d74cc
TT
13402019-11-11 Tom Tromey <tom@tromey.com>
1341
1342 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1343 functions.
1344
7b7b9424
CB
13452019-11-11 Christian Biesinger <cbiesinger@google.com>
1346
1347 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1348
086baaf1
AB
13492019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1352 function.
1353 * python/python-internal.h (gdbpy_lookup_static_symbols):
1354 Declare new function.
1355 * python/python.c (python_GdbMethods): Add
1356 gdb.lookup_static_symbols method.
1357 * NEWS: Mention gdb.lookup_static_symbols.
1358
09ff83af
AB
13592019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1362 static block of current object file first. Also fix typo in
1363 header comment.
1364
eb2dd8df
AB
13652019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * stack.c (set_last_displayed_sal): Delete.
1368 (last_displayed_sal_valid): Delete.
1369 (last_displayed_pspace): Delete.
1370 (last_displayed_addr): Delete.
1371 (last_displayed_symtab): Delete.
1372 (last_displayed_line): Delete.
1373 (class last_displayed_symtab_info_type): New.
1374 (last_displayed_symtab_info): New static global variable.
1375 (print_frame_info): Call methods on last_displayed_symtab_info.
1376 (clear_last_displayed_sal): Update header comment, and make use of
1377 last_displayed_symtab_info.
1378 (last_displayed_sal_is_valid): Likewise.
1379 (get_last_displayed_pspace): Likewise.
1380 (get_last_displayed_addr): Likewise.
1381 (get_last_displayed_symtab): Likewise.
1382 (get_last_displayed_line): Likewise.
1383 (get_last_displayed_sal): Likewise.
1384 * stack.h (clear_last_displayed_sal): Update header comment.
1385 (last_displayed_sal_is_valid): Likewise.
1386 (get_last_displayed_pspace): Likewise.
1387 (get_last_displayed_addr): Likewise.
1388 (get_last_displayed_symtab): Likewise.
1389 (get_last_displayed_line): Likewise.
1390 (get_last_displayed_sal): Likewise.
1391
62137775
AB
13922019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * stack.c (frame_show_address): Convert return type to bool.
1395 * stack.h (frame_show_address): Likewise, and update header
1396 comment.
1397
cf57ad6d
AB
13982019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1401 * unittests/vec-utils-selftests.c: New file.
1402 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1403
0b026263
TT
14042019-11-10 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1407 (tui_highlight_win): Likewise.
1408 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1409 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1410 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1411 Don't set can_highlight.
1412
b049ce2d
TT
14132019-11-10 Tom Tromey <tom@tromey.com>
1414
1415 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1416 Remove unused declaration.
1417
992a7040
TT
14182019-11-08 Tom Tromey <tromey@adacore.com>
1419
1420 * top.c (read_command_file): Update.
1421 (command_line_input): Make return type const.
1422 * python/py-gdb-readline.c: Update.
1423 * linespec.c (decode_line_2): Update.
1424 * defs.h (command_line_input): Make return type const.
1425 * cli/cli-script.c (read_next_line): Make return type const.
1426 * ada-lang.c (get_selections): Update.
1427
ca3a04f6
CB
14282019-11-06 Christian Biesinger <cbiesinger@google.com>
1429
1430 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1431 * mi/mi-main.c (output_cores): Likewise.
1432 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1433 (linux_xfer_osdata_modules): Likewise.
1434 * remote.c (register_remote_support_xml): Likewise.
1435 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1436 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1437
e0eac551
TT
14382019-11-06 Tom Tromey <tom@tromey.com>
1439
1440 * tui/tui-interp.c: Don't include readline.h.
1441 * tui/tui-hooks.c: Don't include readline.h.
1442 * symmisc.c: Include tilde.h, not readline.h.
1443 * symfile.c: Include tilde.h, not readline.h.
1444 * source.c: Include tilde.h, not readline.h.
1445 * solib.c: Include tilde.h, not readline.h.
1446 * psymtab.c: Include tilde.h, not readline.h.
1447 * exec.c: Include tilde.h, not readline.h.
1448 * corelow.c: Include tilde.h, not readline.h.
1449 * cli/cli-dump.c: Include tilde.h, not readline.h.
1450 * cli/cli-cmds.c: Don't include readline.h.
1451
825165c5
TT
14522019-11-05 Tom Tromey <tom@tromey.com>
1453
1454 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1455 (tui_disassemble): Set addr_size.
1456 (tui_disasm_window::set_contents): Use addr_size.
1457
91ae903f
TT
14582019-11-05 Tom Tromey <tom@tromey.com>
1459
1460 * rust-lang.c (rust_language_defn): Update.
1461 * python/py-value.c (valpy_string): Call c_get_string.
1462 * p-lang.c (pascal_language_defn): Update.
1463 * opencl-lang.c (opencl_language_defn): Update.
1464 * objc-lang.c (objc_language_defn): Update.
1465 * m2-lang.c (m2_language_defn): Update.
1466 * language.c (unknown_language_defn, auto_language_defn): Update.
1467 (default_get_string): Remove.
1468 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1469 * go-lang.c (go_language_defn): Update.
1470 * f-lang.c (f_language_defn): Update.
1471 * d-lang.c (d_language_defn): Update.
1472 * c-lang.c (c_language_defn, cplus_language_defn)
1473 (asm_language_defn, minimal_language_defn): Update.
1474 * ada-lang.c (ada_language_defn): Update.
1475 * language.h (struct language_defn) <la_get_string>: Remove.
1476 (LA_GET_STRING): Remove.
1477 (default_get_string): Don't declare.
1478
1df2f9ef
TT
14792019-11-05 Tom Tromey <tom@tromey.com>
1480
1481 * tui/tui-source.h (struct tui_source_window): Inline
1482 constructor. Remove destructor.
1483 <style_changed, m_observable>: Move to superclass.
1484 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1485 (struct tui_source_window_base): Move private members to end.
1486 <style_changed, m_observable>: Move from tui_source_window.
1487 * tui/tui-winsource.c (tui_copy_source_line): Move from
1488 tui-source.c. Rename from copy_source_line. Add special handling
1489 for negative line number.
1490 (tui_source_window_base::style_changed): Move from
1491 tui_source_window.
1492 (tui_source_window_base): Register observer.
1493 (~tui_source_window_base): New.
1494 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1495 rename.
1496 (tui_source_window::set_contents): Use tui_copy_source_line.
1497 (tui_source_window::tui_source_window): Move to tui-source.h.
1498 (tui_source_window::~tui_source_window): Remove.
1499 (tui_source_window::style_changed): Move to superclass.
1500 * tui/tui-disasm.c (tui_disassemble): Create string file with
1501 styling, when possible. Add "addr_size" parameter.
1502 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1503 Don't compute maximum size.
1504 (len_without_escapes): New function
1505
5d051055
TT
15062019-11-05 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1509 std::string.
1510 * tui/tui-winsource.c (tui_show_source_line): Update.
1511 * tui/tui-source.c (tui_source_window::set_contents): Update.
1512 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1513
ade7beea
CB
15142019-11-05 Christian Biesinger <cbiesinger@google.com>
1515
1516 * symtab.h (gdb_static_assert): Put && operator at the beginning
1517 of the line instead of the end.
1518
3573abe1
CB
15192019-11-04 Christian Biesinger <cbiesinger@google.com>
1520
1521 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1522 and sizeof (symbol).
1523 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1524
dae8b3eb
RO
15252019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1526
1527 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1528 * configure.host: Mark *-*-solaris2.10* obsolete.
1529 * configure.tgt: Mark Solaris < 11 obsolete.
1530 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1531 Update target triplet.
1532
5df96a4e
TT
15332019-11-01 Tom Tromey <tromey@adacore.com>
1534
1535 * utils.c (print_sys_errmsg): Simplify.
1536
b7481649
TT
15372019-11-01 Tom Tromey <tromey@adacore.com>
1538
1539 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1540
e48f6033
CB
15412019-11-01 Christian Biesinger <cbiesinger@google.com>
1542
1543 * configure: Regenerate.
1544 * configure.ac: Remove check for strerror_r.
1545 * gdbsupport/common.m4: Check for strerror_r.
1546
bd5766ec
LM
15472019-11-01 Luis Machado <luis.machado@linaro.org>
1548
1549 PR gdb/25124
1550
1551 * arm-tdep.c (arm_per_objfile): Rename to ...
1552 (arm_per_bfd): ... this.
1553 (arm_objfile_data_key): Rename to ...
1554 (arm_bfd_data_key): ... this.
1555 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1556 data.
1557 (arm_record_special_symbol): Likewise.
1558
e1709896
AB
15592019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1562 end.
1563 * c-typeprint.c (c_print_typedef): Likewise.
1564 * f-typeprint.c (f_print_typedef): Likewise.
1565 * m2-typeprint.c (m2_print_typedef): Likewise.
1566 * p-typeprint.c (pascal_print_typedef): Likewise.
1567 * rust-lang.c (rust_print_typedef): Likewise.
1568 * symtab.c (print_symbol_info): Print a newline after calling
1569 typedef_print.
1570
165f8965
AB
15712019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * symtab.c (info_module_cmdlist): New variable.
1574 (info_module_command): New function.
1575 (search_module_symbols): New function.
1576 (info_module_subcommand): New function.
1577 (struct info_modules_var_func_options): New struct.
1578 (info_modules_var_func_options_defs): New variable.
1579 (make_info_modules_var_func_options_def_group): New function.
1580 (info_module_functions_command): New function.
1581 (info_module_variables_command): New function.
1582 (info_module_var_func_command_completer): New function.
1583 (_initialize_symtab): Register new 'info module functions' and
1584 'info module variables' commands.
1585 * symtab.h (typedef symbol_search_in_module): New typedef.
1586 (search_module_symbols): Declare new function.
1587 * NEWS: Mention new commands.
1588
59c35742
AB
15892019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1592 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1593 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1594 MODULES_DOMAIN.
1595 (scan_partial_symbols): Only create partial module symbols for non
1596 declarations.
1597 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1598 and MODULES_DOMAIN.
1599 * symtab.c (search_domain_name): Likewise.
1600 (search_symbols): Likewise.
1601 (print_symbol_info): Likewise.
1602 (symtab_symbol_info): Likewise.
1603 (info_modules_command): New function.
1604 (_initialize_symtab): Register 'info modules' command.
1605 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1606 * NEWS: Mention new 'info modules' command.
1607
aed61d02
PW
16082019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1609
1610 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1611 and $_gdb_maint_setting_str.
1612
9ad9b77d
PW
16132019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1614
1615 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1616 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1617 (str_value_from_setting, gdb_setting_str_internal_fn)
1618 (gdb_maint_setting_str_internal_fn): New functions.
1619 (_initialize_cli_cmds): Define the new convenience functions.
1620 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1621 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1622
8d6efaa2
CB
16232019-10-31 Christian Biesinger <cbiesinger@google.com>
1624
1625 * agent.c (set_can_use_agent): When the setting is turned on,
1626 look up agent symbols if we don't have them yet.
1627 (agent_new_objfile): Don't look up agent symbols when the agent
1628 setting is off.
1629
33cb1647
CB
16302019-10-31 Christian Biesinger <cbiesinger@google.com>
1631
1632 * config.in: Regenerate.
1633
b231e86a
CB
16342019-10-31 Christian Biesinger <cbiesinger@google.com>
1635
1636 * configure: Regenerate.
1637 * configure.ac: Check for strerror_r.
1638 * gdbsupport/common-utils.h (safe_strerror): Change return value
1639 to const char * and document that this function is now threadsafe.
1640 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1641 thread_local and call strerror_r, if available.
1642 * utils.c (perror_string): Update.
1643 (print_sys_errmsg): Update.
1644
a2726d4f
LM
16452019-10-31 Luis Machado <luis.machado@linaro.org>
1646
1647 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1648 objfile_key.
1649 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1650 objfile to fetch per-bfd data.
1651 (arm_find_exidx_entry): Likewise.
1652
75cafaa6
CB
16532019-10-31 Christian Biesinger <cbiesinger@google.com>
1654
1655 * gdbsupport/agent.c (debug_agent): Change type to bool.
1656 (use_agent): Likewise.
1657 (all_agent_symbols_look_up): Likewise.
1658 (agent_loaded_p): Change return value to bool.
1659 (agent_look_up_symbols): Update.
1660 (agent_capability_check): Change return value to bool.
1661 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1662 (debug_agent): Change type to bool.
1663 (use_agent): Likewise.
1664 (agent_capability_check): Change return value to bool.
1665
808590ec
CB
16662019-10-30 Christian Biesinger <cbiesinger@google.com>
1667
1668 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1669 (build_minimal_symbol_hash_tables): Code to clear the table moved
1670 to clear_minimal_symbol_hash_tables.
1671 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1672 when needed.
1673
f18ad8a1
SM
16742019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * infcmd.c: Remove includes.
1677 * infrun.c: Remove includes.
1678
de93309a
SM
16792019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1682 (grow_vect): Remove declaration.
1683 (ada_type_of_array): Remove declaration.
1684 (ada_update_initial_language): Remove declaration.
1685 (ada_fold_name): Remove declaration.
1686 (ada_fill_in_ada_prototype): Remove declaration.
1687 (user_select_syms): Remove declaration.
1688 (get_selections): Remove declaration.
1689 (ada_tag_type): Remove declaration.
1690 (ada_value_tag): Remove declaration.
1691 (ada_is_others_clause): Remove declaration.
1692 (ada_in_variant): Remove declaration.
1693 (ada_value_struct_elt): Remove declaration.
1694 (ada_attribute_name): Remove declaration.
1695 (ada_system_address_type): Remove declaration.
1696 * ada-lang.c (ada_watch_location_expression): Make static.
1697 (GROW_VECT): Move here from ada-lang.h.
1698 (grow_vect): Make static.
1699 (ada_update_initial_language): Make static.
1700 (ada_fold_name): Make static.
1701 (ada_type_of_array): Make static.
1702 (encoded_ordered_before): Move up.
1703 (sort_choices): Move up.
1704 (print_signatures): Move up.
1705 (ada_print_symbol_signature): Move up.
1706 (get_selections): Move up and make static.
1707 (user_select_syms): Move up and make static.
1708 (ada_value_struct_elt): Move up and make static.
1709 (ada_tag_type): Make static.
1710 (ada_value_tag): Make static.
1711 (ada_is_others_clause): Make static.
1712 (ada_in_variant): Make static.
1713 (ada_attribute_name): Make static.
1714
cdc46a9f
SM
17152019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1716
1717 * ada-lang.c: Remove includes.
1718 * ada-typeprint.c: Remove includes.
1719 * ada-valprint.c: Remove includes.
1720
90421c56
SM
17212019-10-29 Simon Marchi <simon.marchi@efficios.com>
1722
1723 * addrmap.c: Add static assertions of type size, moved from
1724 _initialize_addrmap.
1725 (_initialize_addrmap): Remove.
1726
31edb802
CB
17272019-10-29 Christian Biesinger <cbiesinger@google.com>
1728
1729 * coffread.c (record_minimal_symbol): Update.
1730 (process_coff_symbol): Update.
1731 * dbxread.c (read_dbx_symtab): Update.
1732 * dwarf2read.c (add_partial_symbol): Update.
1733 (fixup_go_packaging): Update.
1734 (load_partial_dies): Update.
1735 (new_symbol): Update.
1736 * elfread.c (record_minimal_symbol): Change signature to use
1737 gdb::string_view instead of name+len.
1738 (elf_symtab_read): Update.
1739 (elf_rel_plt_read): Update.
1740 * mdebugread.c (parse_partial_symbols): Update.
1741 (handle_psymbol_enumerators): Update.
1742 (new_symbol): Update.
1743 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1744 to use gdb::string_view instead of name+len.
1745 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1746 * psympriv.h (add_psymbol_to_list): Likewise.
1747 * psymtab.c (add_psymbol_to_bcache): Likewise.
1748 (add_psymbol_to_list): Likewise.
1749 * stabsread.c (define_symbol): Update.
1750 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1751 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1752 (symbol_set_names): Likewise.
1753 * xcoffread.c (scan_xcoff_symtab): Update.
1754
0c921b21
CB
17552019-10-29 Christian Biesinger <cbiesinger@google.com>
1756
1757 * symtab.h (symbol_set_names): Document that copy_name must be
1758 set to true for non-nullterminated strings.
1759 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1760 linkage_name if the entry was not found and we need to demangle.
1761
35e65c49
CB
17622019-10-29 Christian Biesinger <cbiesinger@google.com>
1763
1764 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1765 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1766 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1767 * gdbsupport/gdb_binary_search.h: New file.
1768
ed2a2229
CB
17692019-10-29 Christian Biesinger <cbiesinger@google.com>
1770
1771 * NEWS: Mention new --with-system-gdbinit-dir option.
1772 * config.in: Regenerate.
1773 * configure: Regenerate.
1774 * configure.ac: Add new option --with-system-gdbinit-dir.
1775 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1776 for a ".gdb" suffix.
1777 * main.c (get_init_files): Change system_gdbinit argument to
1778 a vector and return the files in SYSTEM_GDBINIT_DIR in
1779 addition to SYSTEM_GDBINIT.
1780 (captured_main_1): Update.
1781 (print_gdb_help): Update.
1782 * top.c (print_gdb_configuration): Also print the value of
1783 SYSTEM_GDBINIT_DIR.
1784
87f34879
CB
17852019-10-28 Christian Biesinger <cbiesinger@google.com>
1786
1787 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1788 that takes gdb::string_view arguments.
1789
30baf67b
TV
17902019-10-26 Tom de Vries <tdevries@suse.de>
1791
1792 * aarch64-linux-tdep.c: Fix typos in comments.
1793 * aarch64-tdep.c: Same.
1794 * ada-lang.c: Same.
1795 * amd64-nat.c: Same.
1796 * arc-tdep.c: Same.
1797 * arch/aarch64-insn.c: Same.
1798 * block.c: Same.
1799 * breakpoint.h: Same.
1800 * btrace.h: Same.
1801 * c-varobj.c: Same.
1802 * cli/cli-decode.c: Same.
1803 * cli/cli-script.c: Same.
1804 * cli/cli-utils.h: Same.
1805 * coff-pe-read.c: Same.
1806 * coffread.c: Same.
1807 * compile/compile-cplus-symbols.c: Same.
1808 * compile/compile-object-run.c: Same.
1809 * completer.c: Same.
1810 * corelow.c: Same.
1811 * cp-support.c: Same.
1812 * demangle.c: Same.
1813 * dwarf-index-write.c: Same.
1814 * dwarf2-frame.c: Same.
1815 * dwarf2-frame.h: Same.
1816 * eval.c: Same.
1817 * frame-base.h: Same.
1818 * frame.h: Same.
1819 * gdbcmd.h: Same.
1820 * gdbtypes.h: Same.
1821 * gnu-nat.c: Same.
1822 * guile/scm-objfile.c: Same.
1823 * i386-tdep.c: Same.
1824 * i386-tdep.h: Same.
1825 * infcall.c: Same.
1826 * infcall.h: Same.
1827 * linux-nat.c: Same.
1828 * m68k-tdep.c: Same.
1829 * macroexp.c: Same.
1830 * memattr.c: Same.
1831 * mi/mi-cmd-disas.c: Same.
1832 * mi/mi-getopt.h: Same.
1833 * mi/mi-main.c: Same.
1834 * minsyms.c: Same.
1835 * nat/aarch64-sve-linux-sigcontext.h: Same.
1836 * objfiles.h: Same.
1837 * ppc-linux-nat.c: Same.
1838 * ppc-linux-tdep.c: Same.
1839 * ppc-tdep.h: Same.
1840 * progspace.h: Same.
1841 * prologue-value.h: Same.
1842 * python/py-evtregistry.c: Same.
1843 * python/py-instruction.h: Same.
1844 * record-btrace.c: Same.
1845 * record-full.c: Same.
1846 * remote.c: Same.
1847 * rs6000-tdep.c: Same.
1848 * ser-tcp.c: Same.
1849 * sol-thread.c: Same.
1850 * sparc-sol2-tdep.c: Same.
1851 * sparc64-tdep.c: Same.
1852 * stabsread.c: Same.
1853 * symfile.c: Same.
1854 * symtab.h: Same.
1855 * target.c: Same.
1856 * tracepoint.c: Same.
1857 * tui/tui-data.h: Same.
1858 * tui/tui-io.c: Same.
1859 * tui/tui-win.c: Same.
1860 * tui/tui.c: Same.
1861 * unittests/rsp-low-selftests.c: Same.
1862 * user-regs.h: Same.
1863 * utils.c: Same.
1864 * utils.h: Same.
1865 * valarith.c: Same.
1866 * valops.c: Same.
1867 * valprint.c: Same.
1868 * valprint.h: Same.
1869 * value.c: Same.
1870 * value.h: Same.
1871 * varobj.c: Same.
1872 * x86-nat.h: Same.
1873 * xtensa-tdep.c: Same.
1874
1834d45f
AT
18752019-10-25 Ali Tamur <tamur@google.com>
1876
1877 * charset.c (find_charset_names): Reflect API change.
1878
5396ae17
CB
18792019-10-25 Christian Biesinger <cbiesinger@google.com>
1880
1881 * symtab.c (struct demangled_name_entry): Change demangled name
1882 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1883 part of the struct anymore.
1884 (symbol_set_names): No longer obstack allocate + copy the demangled
1885 name, just store the allocated name from bfd.
1886
93878f47
TT
18872019-10-25 Tom Tromey <tromey@adacore.com>
1888
1889 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1890 (bsearch_cie_cmp, add_cie): Remove.
1891 (find_cie): Reimplement.
1892 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1893 (dwarf2_build_frame_info): Update.
1894
7b71fc97
L
18952019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 PR gdb/25126
1898 * symfile.c (reread_symbols): Call forget_cached_source_info to
1899 clear the stale source cache.
1900
cbb5a2ea
CB
19012019-10-24 Christian Biesinger <cbiesinger@google.com>
1902
1903 * configure: Regenerate.
1904 * configure.ac: Remove code that sets python_has_threads.
1905
71737c43
CB
19062019-10-24 Christian Biesinger <cbiesinger@google.com>
1907
1908 * config.in: Regenerate.
1909 * configure: Regenerate.
1910 * configure.ac: Remove the code that uses sed to get the python
1911 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1912
33d569b7
AB
19132019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1916 error paths.
1917
f16f7b7c
TT
19182019-10-23 Tom Tromey <tom@tromey.com>
1919
1920 * arc-tdep.c: Remove ".." from include.
1921 * frv-tdep.c: Remove ".." from include.
1922 * lm32-tdep.c: Remove ".." from include.
1923 * microblaze-tdep.c: Remove ".." from include.
1924 * or1k-tdep.h: Remove ".." from include.
1925 * s12z-tdep.c: Remove ".." from include.
1926 * Makefile.in (OPCODES_CFLAGS): Add comment.
1927 (TOP_CFLAGS): New variable.
1928 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1929
6999161a
TT
19302019-10-23 Tom Tromey <tom@tromey.com>
1931
1932 * Makefile.in (READLINE_DIR): Update.
1933
12e7c35e
TBA
19342019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1935
1936 * infcall.c (call_function_by_hand_dummy): Fix the function
1937 comment. And extract out a code section into...
1938 (reserve_stack_space): ...this new function.
1939
37055cad
TBA
19402019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1941
1942 * infcall.c (value_arg_coerce): Remove an unused parameter.
1943 (call_function_by_hand_dummy): Update the call to
1944 'value_arg_coerce'.
1945
39bcc47c
TBA
19462019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1947
1948 * infcall.c (call_function_by_hand_dummy): Refactor.
1949
bd888c0f
TBA
19502019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1951
1952 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1953
c12d372d
TT
19542019-10-23 Tom Tromey <tom@tromey.com>
1955
1956 * configure: Rebuild.
1957 * configure.ac: Don't check for sigprocmask.
1958 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1959
4d0b984b
TT
19602019-10-23 Tom Tromey <tom@tromey.com>
1961
1962 * configure: Rebuild.
1963 * acinclude.m4: Use m4_include, not sinclude.
1964
7e785608
TV
19652019-10-23 Tom de Vries <tdevries@suse.de>
1966
1967 PR breakpoints/24687
1968 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1969
403772ef
CB
19702019-10-22 Christian Biesinger <cbiesinger@google.com>
1971
1972 * symtab.c (struct demangled_name_entry) <language>: Change from
1973 bitfield to regular variable.
1974
3a494279
CB
19752019-10-22 Christian Biesinger <cbiesinger@google.com>
1976
1977 * symtab.c (struct demangled_name_entry): Add a constructor.
1978 (free_demangled_name_entry): New function to call the destructor
1979 for demangled_name_entry.
1980 (create_demangled_names_hash): Pass free_demangled_name_entry to
1981 htab_create_alloc.
1982 (symbol_set_names): Call placement new for demangled_name_entry.
1983 * utils.c: No longer include xxhash.h here, now that fast_hash
1984 is inlined in the header.
1985 * utils.h: Instead, include it here.
1986
ccb1ba62
CB
19872019-10-22 Christian Biesinger <cbiesinger@google.com>
1988
1989 * Makefile.in: Link with libxxhash.
1990 * config.in: Regenerate.
1991 * configure: Regenerate.
1992 * configure.ac: Search for libxxhash.
1993 * utils.c (fast_hash): Use xxhash if present.
1994
1a6ff1a9
CB
19952019-10-22 Christian Biesinger <cbiesinger@google.com>
1996
1997 * utils.h (fast_hash): New function.
1998 * symtab.c (hash_demangled_name_entry): Call new function
1999 fast_hash.
2000
7bb43059
CB
20012019-10-22 Christian Biesinger <cbiesinger@google.com>
2002
2003 * symtab.c (struct demangled_name_entry): Change type of mangled
2004 to gdb::string_view. Also adds a constructor that takes the
2005 mangled name.
2006 (hash_demangled_name_entry): Update.
2007 (eq_demangled_name_entry): Update.
2008 (free_demangled_name_entry): New function to call the destructor
2009 now that this is not a POD anymore.
2010 (create_demangled_names_hash): Pass free_demangled_name_entry to
2011 htab_create_alloc.
2012 (symbol_set_names): Update.
2013
7ba99d21
AT
20142019-10-21 Ali Tamur <tamu@google.com>
2015
2016 * dwarf2read.c (dir_index): Change type.
2017 (file_name_index): Likewise.
2018 (line_header::include_dir_at): Change comment and implementation on
2019 whether it is DWARF 5.
2020 (line_header::is_valid_file_index): New function.
2021 (line_header::file_name_at): Change comment and implementation on
2022 whether it is DWARF 5.
2023 (line_header::file_names): Change to private field renamed as
2024 m_file_names and introduce a new accessor method.
2025 (line_header::file_names_size): New method.
2026 (line_header::include_dirs): Change to private field and rename as
2027 m_include_dirs.
2028 (dw2_get_file_names_reader): Define local var at a smaller scope and
2029 reflect API change.
2030 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2031 (process_structure_scope): Likewise.
2032 (line_header::add_include_dir): Change message and reflect renaming.
2033 (line_header::add_file_name): Likewise.
2034 (read_formatted_entries): Handle DW_FORM_data16.
2035 (dwarf_decode_line_header): Fix line header length calculation.
2036 (psymtab_include_file_name): Change comment and API.
2037 (lnp_state_machine::m_file): Update comment and reflect type change.
2038 (lnp_state_machine::record_line): Reflect type change.
2039 (dwarf_decode_lines): Reflect API change.
2040 (file_file_name): Likewise.
2041 (file_full_name): Likewise.
2042
45f47c3a
AB
20432019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2046
e5f3c0e3
TT
20472019-10-21 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2050
a0a461e5
TT
20512019-10-21 Tom Tromey <tom@tromey.com>
2052
2053 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2054 NM_H. Use AC_CONFIG_LINKS.
2055 * configure: Rebuild.
2056 * Makefile.in (NM_H): New variable.
2057 (generated_files): Add NM_H. Remove gcore.
2058 (nm.h, stamp-nmh): New targets.
2059
54d83b8d
TT
20602019-10-20 Tom Tromey <tom@tromey.com>
2061
2062 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2063 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2064 obsolete comment.
2065 (put_objfile_before): Now static.
2066
23771117
SM
20672019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * gdbsupport/common-utils.h (startswith): Change return type to
2070 bool.
2071
39ef2f62
CB
20722019-10-19 Christian Biesinger <cbiesinger@google.com>
2073
2074 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2075 * breakpoint.c (bp_locations_compare): Rename to...
2076 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2077 (update_global_location_list): Use std::sort instead of qsort.
2078 * buildsym.c (compare_line_numbers): Rename to...
2079 (lte_is_less_than): ...this, and change to std::sort semantics.
2080 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2081 instead of qsort.
2082 * disasm.c (compare_lines): Rename to...
2083 (line_is_less_than): ...this, and change to std::sort semantics.
2084 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2085 of qsort.
2086 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2087 (fde_is_less_than): ...this, and change to std::sort semantics.
2088 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2089 * mdebugread.c (compare_blocks):
2090 (block_is_less_than): ...this, and change to std::sort semantics.
2091 (sort_blocks): Call std::sort instead of qsort.
2092 * objfiles.c (qsort_cmp): Rename to...
2093 (sort_cmp): ...this, and change to std::sort semantics.
2094 (update_section_map): Call std::sort instead of qsort.
2095 * remote.c (compare_pnums): Remove.
2096 (map_regcache_remote_table): Call std::sort instead of qsort.
2097 * utils.c (compare_positive_ints): Remove.
2098 * utils.h (compare_positive_ints): Remove.
2099 * xcoffread.c (compare_lte): Remove.
2100 (arrange_linetable): Call std::sort instead of qsort.
2101
f71433ee
SDJ
21022019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2103
2104 * symfile.c (init_entry_point_info): Fix typo.
2105 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2106
85102364
TV
21072019-10-18 Tom de Vries <tdevries@suse.de>
2108
2109 * aarch64-tdep.c: Fix typos in comments.
2110 * ada-lang.c: Same.
2111 * ada-tasks.c: Same.
2112 * alpha-tdep.c: Same.
2113 * alpha-tdep.h: Same.
2114 * amd64-nat.c: Same.
2115 * amd64-windows-tdep.c: Same.
2116 * arc-tdep.c: Same.
2117 * arc-tdep.h: Same.
2118 * arch-utils.c: Same.
2119 * arm-nbsd-tdep.c: Same.
2120 * arm-tdep.c: Same.
2121 * ax-gdb.c: Same.
2122 * blockframe.c: Same.
2123 * btrace.c: Same.
2124 * c-varobj.c: Same.
2125 * coff-pe-read.c: Same.
2126 * coffread.c: Same.
2127 * cris-tdep.c: Same.
2128 * darwin-nat.c: Same.
2129 * dbxread.c: Same.
2130 * dcache.c: Same.
2131 * disasm.c: Same.
2132 * dtrace-probe.c: Same.
2133 * dwarf-index-write.c: Same.
2134 * dwarf2-frame-tailcall.c: Same.
2135 * dwarf2-frame.c: Same.
2136 * dwarf2read.c: Same.
2137 * eval.c: Same.
2138 * exceptions.c: Same.
2139 * fbsd-tdep.c: Same.
2140 * findvar.c: Same.
2141 * frame.c: Same.
2142 * frv-tdep.c: Same.
2143 * gnu-v3-abi.c: Same.
2144 * go32-nat.c: Same.
2145 * h8300-tdep.c: Same.
2146 * hppa-tdep.c: Same.
2147 * i386-linux-tdep.c: Same.
2148 * i386-tdep.c: Same.
2149 * ia64-libunwind-tdep.c: Same.
2150 * ia64-tdep.c: Same.
2151 * infcmd.c: Same.
2152 * infrun.c: Same.
2153 * linespec.c: Same.
2154 * linux-nat.c: Same.
2155 * linux-thread-db.c: Same.
2156 * machoread.c: Same.
2157 * mdebugread.c: Same.
2158 * mep-tdep.c: Same.
2159 * mn10300-tdep.c: Same.
2160 * namespace.c: Same.
2161 * objfiles.c: Same.
2162 * opencl-lang.c: Same.
2163 * or1k-tdep.c: Same.
2164 * osabi.c: Same.
2165 * ppc-linux-nat.c: Same.
2166 * ppc-linux-tdep.c: Same.
2167 * ppc-sysv-tdep.c: Same.
2168 * printcmd.c: Same.
2169 * procfs.c: Same.
2170 * record-btrace.c: Same.
2171 * record-full.c: Same.
2172 * remote-fileio.c: Same.
2173 * remote.c: Same.
2174 * rs6000-tdep.c: Same.
2175 * s12z-tdep.c: Same.
2176 * score-tdep.c: Same.
2177 * ser-base.c: Same.
2178 * ser-go32.c: Same.
2179 * skip.c: Same.
2180 * sol-thread.c: Same.
2181 * solib-svr4.c: Same.
2182 * solib.c: Same.
2183 * source.c: Same.
2184 * sparc-nat.c: Same.
2185 * sparc-sol2-tdep.c: Same.
2186 * sparc-tdep.c: Same.
2187 * sparc64-tdep.c: Same.
2188 * stabsread.c: Same.
2189 * stack.c: Same.
2190 * symfile.c: Same.
2191 * symtab.c: Same.
2192 * target-descriptions.c: Same.
2193 * target-float.c: Same.
2194 * thread.c: Same.
2195 * utils.c: Same.
2196 * valops.c: Same.
2197 * valprint.c: Same.
2198 * value.c: Same.
2199 * varobj.c: Same.
2200 * windows-nat.c: Same.
2201 * xcoffread.c: Same.
2202 * xstormy16-tdep.c: Same.
2203 * xtensa-tdep.c: Same.
2204
c5adaa19
TT
22052019-10-17 Tom Tromey <tromey@adacore.com>
2206
2207 * configure: Rebuild.
2208 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2209 in AC_CONFIG_FILES invocation.
2210 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2211 new-style config.status invocation.
2212
405feb71
TV
22132019-10-17 Tom de Vries <tdevries@suse.de>
2214
2215 * arm-nbsd-nat.c: Fix typos in comments.
2216 * arm-tdep.c: Same.
2217 * darwin-nat-info.c: Same.
2218 * dwarf2read.c: Same.
2219 * elfread.c: Same.
2220 * event-top.c: Same.
2221 * findvar.c: Same.
2222 * gdbtypes.c: Same.
2223 * hppa-tdep.c: Same.
2224 * i386-tdep.c: Same.
2225 * jit.c: Same.
2226 * main.c: Same.
2227 * mdebugread.c: Same.
2228 * moxie-tdep.c: Same.
2229 * nto-procfs.c: Same.
2230 * osabi.c: Same.
2231 * ppc-linux-tdep.c: Same.
2232 * remote.c: Same.
2233 * riscv-tdep.c: Same.
2234 * s390-tdep.c: Same.
2235 * sh-tdep.c: Same.
2236 * sparc-linux-tdep.c: Same.
2237 * sparc-nat.c: Same.
2238 * stack.c: Same.
2239 * target-descriptions.c: Same.
2240 * top.c: Same.
2241 * varobj.c: Same.
2242
befcd486
TT
22432019-10-16 Tom Tromey <tom@tromey.com>
2244
2245 * objfiles.h (struct objfile) <original_name>: Now const.
2246
17bfe554
CB
22472019-10-16 Christian Biesinger <cbiesinger@google.com>
2248
2249 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2250 pass on to sigsetjmp's second argument.
2251 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2252
950b7495
KS
22532019-10-16 Keith Seitz <keiths@redhat.com>
2254
2255 PR gdb/23567
2256 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2257 sections whose size is greater than the file size.
2258
ff371ec9
JW
22592019-10-16 Jim Wilson <jimw@sifive.com>
2260
2261 * riscv-tdep.c (riscv_gcc_target_options): New.
2262 (riscv_gnu_triplet_regexp): New.
2263 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2264 set_gdbarch_gnu_triplet_regexp.
2265
fec4e896
CB
22662019-10-16 Christian Biesinger <cbiesinger@google.com>
2267
2268 * Makefile.in: Add xml-builtin.h.
2269 * features/feature_to_c.sh: Add an include for xml-builtin.h
2270 to ensure that the compiler checks that the types match.
2271 * xml-builtin.h: New file.
2272 * xml-support.c (fetch_xml_builtin): Add missing const.
2273 * xml-support.h: Remove declaration of xml_builtins.
2274
d10eccaa
TV
22752019-10-16 Tom de Vries <tdevries@suse.de>
2276
2277 PR tdep/25096
2278 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2279 (amd64_classify_aggregate): ... here.
2280 (amd64_classify_aggregate_field): Handled fiels of nested structs
2281 recursively.
2282
745ff14e
TV
22832019-10-16 Tom de Vries <tdevries@suse.de>
2284
2285 PR tdep/24104
2286 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2287 that handles 'theclass'.
2288
791b7405
AB
22892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * linespec.c (decode_digits_ordinary): Update comment.
2292 * make-target-delegates: No longer need to handle VEC case.
2293 * memrange.c (normalize_mem_ranges): Update comment.
2294 * namespace.c (add_using_directive): Update comment.
2295 * objc-lang.c (uniquify_strings): Update comment.
2296 * ppc-linux-nat.c (struct thread_points): Update comment.
2297 * probe.h (find_probes_in_objfile): Update comment.
2298 * target.h (enum flash_preserve_mode): Update comment.
2299 * varobj.c (varobj_restrict_range): Update comment.
2300 * varobj.h (varobj_list_children): Update comment.
2301
0dc32745
AB
23022019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * Makefile.in: Remove references to vec.h and vec.c.
2305 * aarch64-tdep.c: No longer include vec.h.
2306 * ada-lang.c: Likewise.
2307 * ada-lang.h: Likewise.
2308 * arm-tdep.c: Likewise.
2309 * ax.h: Likewise.
2310 * breakpoint.h: Likewise.
2311 * charset.c: Likewise.
2312 * cp-support.h: Likewise.
2313 * dtrace-probe.c: Likewise.
2314 * dwarf2read.c: Likewise.
2315 * extension.h: Likewise.
2316 * gdb_bfd.c: Likewise.
2317 * gdbsupport/gdb_vecs.h: Likewise.
2318 * gdbsupport/vec.c: Remove.
2319 * gdbsupport/vec.h: Remove.
2320 * gdbthread.h: Likewise.
2321 * guile/scm-type.c: Likewise.
2322 * inline-frame.c: Likewise.
2323 * machoread.c: Likewise.
2324 * memattr.c: Likewise.
2325 * memrange.h: Likewise.
2326 * namespace.h: Likewise.
2327 * nat/linux-btrace.h: Likewise.
2328 * osdata.c: Likewise.
2329 * parser-defs.h: Likewise.
2330 * progspace.h: Likewise.
2331 * python/py-type.c: Likewise.
2332 * record-btrace.c: Likewise.
2333 * rust-exp.y: Likewise.
2334 * solib-target.c: Likewise.
2335 * stap-probe.c: Likewise.
2336 * target-descriptions.c: Likewise.
2337 * target-memory.c: Likewise.
2338 * target.h: Likewise.
2339 * varobj.c: Likewise.
2340 * varobj.h: Likewise.
2341 * xml-support.h: Likewise.
2342
ae640021
AB
23432019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2346 Update for new std::vector based implementation.
2347 (process_psymtab_comp_unit_reader): Likewise.
2348 (scan_partial_symbols): Likewise.
2349 (recursively_compute_inclusions): Likewise.
2350 (compute_compunit_symtab_includes): Likewise.
2351 (process_imported_unit_die): Likewise.
2352 (queue_and_load_dwo_tu): Likewise.
2353 (follow_die_sig_1): Likewise.
2354 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2355 (typedef dwarf2_per_cu_ptr): Remove.
2356 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2357 function.
2358 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2359 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2360 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2361 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2362 std::vector.
2363
55dfc88f
TT
23642019-10-15 Tom Tromey <tromey@adacore.com>
2365
2366 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2367 TID.
2368
96b49c5e
TT
23692019-10-15 Tom Tromey <tromey@adacore.com>
2370
2371 * windows-nat.c (windows_nat_target::fetch_registers)
2372 (windows_nat_target::store_registers): Rename "pid" to "tid".
2373
953cff56
TT
23742019-10-15 Tom Tromey <tromey@adacore.com>
2375
2376 * gdbarch.h, gdbarch.c: Rebuild.
2377 * gdbarch.sh (gcc_target_options): Change return type to
2378 std::string.
2379 * compile/compile.c (get_args): Update.
2380 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2381 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2382 std::string.
2383 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2384 std::string.
2385 * arch-utils.c (default_gcc_target_options): Return std::string.
2386 * arch-utils.h (default_gcc_target_options): Return std::string.
2387 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2388
81e6b8eb
CB
23892019-10-15 Christian Biesinger <cbiesinger@google.com>
2390
2391 * breakpoint.c (breakpoint_chain): Make static.
2392 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2393 of accessing breakpoint_chain.
2394
95da600f
CB
23952019-10-15 Christian Biesinger <cbiesinger@google.com>
2396
2397 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2398 to a gdb::function_view and return value to bool.
2399 * breakpoint.h (iterate_over_breakpoints): Likewise.
2400 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2401 (pop_dummy_frame): Update.
2402 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2403 (gdbscm_breakpoints): Update.
2404 * python/py-breakpoint.c (build_bp_list): Update.
2405 (gdbpy_breakpoints): Update.
2406 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2407 Update.
2408 (bpfinishpy_handle_stop): Update.
2409 (bpfinishpy_handle_exit): Update.
2410 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2411 (svr4_update_solib_event_breakpoints): Update.
2412
ba18312d
AA
24132019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2414
2415 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2416 when unwrapping single-field structs.
2417
6acc1a0b
SM
24182019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2419
2420 * dwarf2read.c: Remove includes.
2421
284782de
SM
24222019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * ui-out.c (ui_out::call_do_message): Silence
2425 -Wformat-nonliteral warning.
2426
073bbbb0
SM
24272019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2430 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2431 include: readline/tilde.h.
2432
7b9a15e1
CB
24332019-10-12 Christian Biesinger <cbiesinger@google.com>
2434
2435 * remote.c (remote_target::get_trace_status): Remove declaration of
2436 trace_regblock_size.
2437
cc8dee1f
CB
24382019-10-12 Christian Biesinger <cbiesinger@google.com>
2439
2440 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2441 (show_user): Remove declaration of cmdlist.
2442 * cli/cli-cmds.h (max_user_call_depth): Declare.
2443 * cli/cli-script.c (execute_user_command): Remove declaration
2444 of max_user_call_depth.
2445
a83d4ef6
JW
24462019-10-11 Jim Wilson <jimw@sifive.com>
2447
5f93c5a6
JW
2448 * gdbsupport/print-utils.h (pulongest): Fix comment.
2449 (plongest): Likewise.
2450 (phex): Add missing comment, mention leading zeros.
2451 (phex_nz): Add mention of no leading zeros to comment.
2452
a83d4ef6
JW
2453 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2454 plongest instead of unsigned long long cast.
2455
26344e0c
CB
24562019-10-10 Christian Biesinger <cbiesinger@google.com>
2457
2458 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2459 for external_editor_command and gdbtk_test.
2460
c2c440a9
CB
24612019-10-10 Christian Biesinger <cbiesinger@google.com>
2462
2463 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2464 * varobj.c (varobjdebug): Move comment to...
2465 * varobj.h (varobjdebug): ...here, and declare.
2466
a31bff9d
TT
24672019-10-09 Tom Tromey <tom@tromey.com>
2468
2469 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2470 erase_data_content.
2471
7523da63
TT
24722019-10-09 Tom Tromey <tom@tromey.com>
2473
2474 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2475 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2476 * tui/tui-command.c (tui_cmd_window::resize)
2477 (tui_refresh_cmd_win): Update.
2478 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2479 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2480 * tui/tui-data.c (~tui_gen_win_info): Remove.
2481 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2482 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2483 (tui_redisplay_readline, tui_mld_flush)
2484 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2485 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2486 (tui_data_window::erase_data_content)
2487 (tui_data_item_window::rerender)
2488 (tui_data_item_window::refresh_window): Update.
2489 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2490 (box_win, tui_gen_win_info::make_window)
2491 (tui_gen_win_info::make_visible): Update.
2492 (tui_delete_win): Remove.
2493 * tui/tui-winsource.c
2494 (tui_source_window_base::do_erase_source_content): Update.
2495 (tui_show_source_line, tui_source_window_base::update_tab_width)
2496 (tui_source_window_base::update_exec_info): Update.
2497 * tui/tui-data.h (struct curses_deleter): New.
2498 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2499 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2500
a7798e7f
TT
25012019-10-09 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2504
5c45899e
TT
25052019-10-09 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2508 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2509
6d7fd9aa
TT
25102019-10-09 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2513 window height directly.
2514 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2515 declare.
2516 * tui/tui-layout.c (tui_default_win_height): Remove.
2517 (tui_default_win_viewport_height): Remove.
2518
d2dd1084
TT
25192019-10-09 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui.h: Remove comments.
2522
cff32449
TV
25232019-10-09 Tom de Vries <tdevries@suse.de>
2524
2525 * python/lib/gdb/printer/bound_registers.py: Use
2526 '^builtin_type_bound128' as regexp argument for
2527 add_builtin_pretty_printer.
2528
6a25e8a2
CB
25292019-10-09 Christian Biesinger <cbiesinger@google.com>
2530
2531 * guile/guile.c (guile_extension_script_ops): Remove forward
2532 declaration and mark as static.
2533 (guile_script_ops): Likewise.
2534 (extension_language_guile): Move further down in the file so
2535 it can reference the definitions for guile_{extension_,}script_ops.
2536
6d9d6da4
AA
25372019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2538
2539 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2540 except SORTL, DFLTCC, and KDSA.
2541
3abea05d
TT
25422019-10-08 Tom Tromey <tromey@adacore.com>
2543
2544 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2545 (struct safe_symbol_file_add_args): Remove.
2546
dde996e2
TT
25472019-10-08 Tom Tromey <tromey@adacore.com>
2548
2549 * windows-nat.c: Don't include buildsym-legacy.h.
2550
cd6fdaa1
TT
25512019-10-08 Tom Tromey <tromey@adacore.com>
2552
2553 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2554
79bb1944
CB
25552019-10-08 Christian Biesinger <cbiesinger@google.com>
2556
2557 * gdbtypes.c (overload_debug): Move comment to header.
2558 * gdbtypes.h (overload_debug): Declare.
2559 * valops.c: Remove declaration of overload_debug, instead
2560 include gdbtypes.h.
2561
34916edc
CB
25622019-10-08 Christian Biesinger <cbiesinger@google.com>
2563
2564 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2565 through _().
2566 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2567 move comment...
2568 * language.h (lang_frame_mismatch_warn): ... here. Also add
2569 declaration.
2570 * top.c (lang_frame_mismatch_warn): Remove declaration.
2571 (check_frame_language_change): Pass lang_frame_mismatch_warn
2572 through _().
2573
bad5c026
CB
25742019-10-07 Christian Biesinger <cbiesinger@google.com>
2575
2576 * c-lang.h (vtbl_ptr_name): Declare.
2577 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2578 it from the header.
2579 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2580
51f1fdc3
CB
25812019-10-07 Christian Biesinger <cbiesinger@google.com>
2582
2583 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2584 gdb_static_assert.
2585
30d1f018
WP
25862019-10-07 Weimin Pan <weimin.pan@oracle.com>
2587
606813d5
WP
2588 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2589 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2590 * ctfread.c: New file.
2591 * ctfread.h: New file.
2592 * elfread.c: Include ctfread.h.
2593 (struct elfinfo text_p): New member ctfsect.
2594 (elf_locate_sections): Mark CTF section.
2595 (elf_symfile_read): Call elfctf_build_psymtabs.
2596 * Makefile.in (LIBCTF): Add.
2597 (CLIBS): Use it.
2598 (CDEPS): Likewise.
2599 (DIST): Add ctfread.c.
606813d5
WP
2600
26012019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * ctfread.c (struct nextfield): Renamed to ...
2604 (struct ctf_nextfield): ... this.
2605 (struct field_info): Renamed to ...
2606 (strut ctf_field_info): ... this.
2607 (attach_fields_to_type): Update for renamed structures.
2608 (ctf_add_member_cb): Likewise.
2609 (ctf_add_enum_member_cb): Likewise.
2610 (process_struct_members): Likewise.
2611 (process_enum_type): Likewise.
30d1f018 2612
518fe38c
WP
26132019-10-07 Weimin Pan <weimin.pan@oracle.com>
2614
2615 * tracectf.h: Rename, was ctf.h.
2616 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2617 * tracefile.c: Likewise.
2618 * tracepoint.c: Remove unused include ctf.h.
2619 * mi/mi-main.c: Likewise.
2620 * Makefile.in Replace ctf.c with tracectf.c.
2621
225f296a
JB
26222019-10-06 Joel Brobecker <brobecker@adacore.com>
2623
2624 * version.in: Change version number to "9.0.50.DATE-git".
2625
77c2dba3
TT
26262019-10-03 Tom Tromey <tom@tromey.com>
2627
2628 PR rust/24976:
2629 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2630
179aed7f
AB
26312019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2634 cp_search_name_hash.
2635 * NEWS: Add entry about nested function support.
2636
0a4b0913
AB
26372019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2638 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2641 for nested static variables when searchin VAR_DOMAIN.
2642 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2643 global scope, update comment.
2644 (add_partial_subprogram): Call add_partial_subprogram recursively
2645 for nested subroutines when processinng Fortran.
2646 (load_partial_dies): Process the child entities of a subprogram
2647 when processing Fortran.
2648 (partial_die_parent_scope): Handle building scope
2649 for Fortran nested functions.
2650 (process_die): Record that nested functions have a scope.
2651 (new_symbol): Always record Fortran subprograms on the global
2652 symbol list.
2653 (determine_prefix): How to build the prefix for Fortran
2654 subprograms.
2655
d8c06f22
AB
26562019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2659 have just sent the thread a SIGSTOP and are waiting for it to
2660 arrive.
2661
a8b3b8e9
AB
26622019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * btrace.c (btrace_add_pc): Remove whitespace before the template
2665 parameter in 'std::vector <...>'.
2666 (parse_xml_btrace_block): Likewise.
2667 (btrace_maint_decode_pt): Likewise.
2668 (btrace_maint_update_packets): Likewise.
2669 (btrace_maint_print_packets): Likewise.
2670 * btrace.h (struct btrace_maint_info): Likewise.
2671 * dwarf2read.c (struct type_unit_group): Likewise.
2672 (build_type_psymtabs_reader): Likewise.
2673 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2674 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2675 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2676
4d825eab
TV
26772019-10-03 Tom de Vries <tdevries@suse.de>
2678
2679 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2680 the first line of the help text for set/show style metadata.
2681
80fd2826
TT
26822019-10-02 Tom Tromey <tromey@adacore.com>
2683
2684 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2685 * gdbsupport/common-inferior.c: New file.
2686 * infcmd.c (startup_with_shell): Don't define.
2687 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2688 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2689 * inferior.h (startup_with_shell): Don't declare.
2690
70054538
CB
26912019-10-02 Christian Biesinger <cbiesinger@google.com>
2692
2693 * gdbsupport/gdb_assert.h: Include errors.h.
2694 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2695
37f6a7f4
TT
26962019-10-02 Tom Tromey <tromey@adacore.com>
2697
2698 * NEWS: Add $_ada_exception entry.
2699 * ada-lang.c (struct ada_catchpoint): Add constructor.
2700 <m_kind>: New member.
2701 (allocate_location_exception, re_set_exception): Remove
2702 "ex" parameter.
2703 (should_stop_exception): Compute $_ada_exception.
2704 (check_status_exception, print_it_exception)
2705 (print_one_exception, print_mention_exception): Remove
2706 "ex" parameter.
2707 (allocate_location_catch_exception, re_set_catch_exception)
2708 (check_status_exception, print_it_catch_exception)
2709 (print_one_catch_exception, print_mention_catch_exception)
2710 (print_recreate_catch_exception)
2711 (allocate_location_catch_exception_unhandled)
2712 (re_set_catch_exception_unhandled)
2713 (check_status_exception, print_it_catch_exception_unhandled)
2714 (print_one_catch_exception_unhandled)
2715 (print_mention_catch_exception_unhandled)
2716 (print_recreate_catch_exception_unhandled)
2717 (allocate_location_catch_assert, re_set_catch_assert)
2718 (check_status_assert, print_it_catch_assert)
2719 (print_one_catch_assert, print_mention_catch_assert)
2720 (print_recreate_catch_assert)
2721 (allocate_location_catch_handlers, re_set_catch_handlers)
2722 (check_status_handlers, print_it_catch_handlers)
2723 (print_one_catch_handlers, print_mention_catch_handlers)
2724 (print_recreate_catch_handlers): Remove.
2725 (create_ada_exception_catchpoint): Update.
2726 (initialize_ada_catchpoint_ops): Update.
2727
fccf9de1
TT
27282019-10-02 Tom Tromey <tromey@adacore.com>
2729
2730 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2731 (create_excep_cond_exprs): Simplify exception string computation.
2732 (ada_exception_catchpoint_cond_string): Likewise.
2733
4b610737
TT
27342019-10-02 Tom Tromey <tromey@adacore.com>
2735
2736 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2737 * ada-lang.c (lesseq_defined_than): Handle
2738 LOC_STATIC.
2739 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2740 parameter.
2741 (dwarf2_has_info): Likewise.
2742 (new_symbol): Set maybe_copied on symbol when
2743 appropriate.
2744 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2745 parameter.
2746 <can_copy>: New member.
2747 * elfread.c (record_minimal_symbol): Set maybe_copied
2748 on symbol when appropriate.
2749 (elf_symfile_read): Update call to dwarf2_has_info.
2750 * minsyms.c (lookup_minimal_symbol_linkage): New
2751 function.
2752 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2753 * symtab.c (get_symbol_address, get_msymbol_address):
2754 New functions.
2755 * symtab.h (get_symbol_address, get_msymbol_address):
2756 Declare.
2757 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2758 maybe_copied.
2759 (struct symbol, struct minimal_symbol) <maybe_copied>:
2760 New member.
2761
1dd58850
TT
27622019-10-02 Tom Tromey <tromey@adacore.com>
2763
2764 * source.c (struct current_source_location): New.
2765 (current_source_key): New global.
2766 (current_source_symtab, current_source_line)
2767 (current_source_pspace): Remove.
2768 (get_source_location): New function.
2769 (get_current_source_symtab_and_line)
2770 (set_default_source_symtab_and_line)
2771 (set_current_source_symtab_and_line)
2772 (clear_current_source_symtab_and_line, select_source_symtab)
2773 (info_source_command, print_source_lines_base)
2774 (info_line_command, search_command_helper, _initialize_source):
2775 Update.
2776
5c281dbb
TT
27772019-10-02 Tom Tromey <tromey@adacore.com>
2778
2779 * source.c (select_source_symtab): Don't call
2780 decode_line_with_current_source.
2781
d3d32391
AB
27822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * symtab.c (lookup_global_symbol): Search global block.
2785
38583298
TT
27862019-10-02 Tom Tromey <tromey@adacore.com>
2787
2788 * coffread.c (process_coff_symbol): Update.
2789 * dwarf2read.c (var_decode_location, new_symbol): Update.
2790 * mdebugread.c (parse_symbol): Update.
2791 * objfiles.c (relocate_one_symbol): Update.
2792 * stabsread.c (define_symbol, fix_common_block)
2793 (scan_file_globals): Update.
2794 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2795 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2796 * xcoffread.c (process_xcoff_symbol): Update.
2797
9344c18f
AA
27982019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2799
2800 * MAINTAINERS: Update my email address.
2801
df07e2c7
AB
28022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2805 std::vector.
2806 (build_type_psymtabs_reader): Update for std::vector.
2807 (build_type_psymtab_dependencies): Likewise.
2808 * dwarf2read.h: Remove use of DEF_VEC_P.
2809 (typedef sig_type_ptr): Delete.
2810
554ac434
AB
28112019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2814 to std::vector.
2815 (btrace_maint_decode_pt): Likewise, and move allocation of the
2816 vector outside of the loop.
2817 (btrace_maint_update_packets): Update to handle change from VEC to
2818 std::vector.
2819 (btrace_maint_print_packets): Likewise.
2820 (maint_info_btrace_cmd): Likewise.
2821 * btrace.h: Remove use of DEF_VEC_O.
2822 (typedef btrace_pt_packet_s): Delete.
2823 (struct btrace_maint_info) <packets>: Change fromm VEC to
2824 std::vector.
2825 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2826
46f29a9a
AB
28272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2828
2829 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2830 make accesses into the vector constant references.
2831 (btrace_add_pc): Update for std::vector.
2832 (btrace_stitch_bts): Likewise.
2833 (parse_xml_btrace_block): Likewise.
2834 (btrace_maint_update_packets): Likewise.
2835 (btrace_maint_print_packets): Likewise.
2836 (maint_info_btrace_cmd): Likewise.
2837 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2838 std::vector.
2839 (btrace_data::empty): Likewise.
2840 (btrace_data_append): Likewise.
2841 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2842 (typedef btrace_block_s): Delete.
2843 (struct btrace_block): Add constructor.
2844 (struct btrace_data_bts) <blocks>: Change to std::vector.
2845 * nat/linux-btrace.c (perf_event_read_bts): Update for
2846 std::vector.
2847 (linux_read_bts): Likewise.
2848
d770d56f
TT
28492019-10-01 Tom Tromey <tom@tromey.com>
2850
2851 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2852
9d636d67
TT
28532019-10-01 Tom Tromey <tom@tromey.com>
2854
2855 * stack.c (print_frame, info_frame_command_core): Use
2856 styled_string.
2857 * linux-thread-db.c (try_thread_db_load_1)
2858 (try_thread_db_load_from_pdir_1): Use styled_string.
2859 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2860 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2861 (maybe_print_unsupported_script_warning)
2862 (maybe_print_script_not_found_warning): Use styled_string.
2863 * ada-lang.c (user_select_syms): Use styled_string.
2864
7f6aba03
TT
28652019-10-01 Tom Tromey <tom@tromey.com>
2866
2867 * p-lang.c (pascal_printstr): Use metadata style.
2868 * value.c (show_convenience): Use metadata style.
2869 * valprint.c (valprint_check_validity, val_print_optimized_out)
2870 (val_print_not_saved, val_print_unavailable)
2871 (val_print_invalid_address, generic_val_print, val_print)
2872 (value_check_printable, val_print_array_elements): Use metadata
2873 style.
2874 * ui-out.h (class ui_out) <field_fmt>: New overload.
2875 <do_field_fmt>: Add style parameter.
2876 * ui-out.c (ui_out::field_fmt): New overload.
2877 * typeprint.c (type_print_unknown_return_type)
2878 (val_print_not_allocated, val_print_not_associated): Use metadata
2879 style.
2880 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2881 parameter.
2882 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2883 * tracepoint.c (tvariables_info_1): Use metadata style.
2884 * stack.c (print_frame_arg, print_frame_info, print_frame)
2885 (info_frame_command_core): Use metadata style.
2886 * skip.c (info_skip_command): Use metadata style.
2887 * rust-lang.c (rust_print_enum): Use metadata style.
2888 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2889 metadata style.
2890 * python/py-framefilter.c (py_print_single_arg): Use metadata
2891 style.
2892 * printcmd.c (do_one_display, print_variable_and_value): Use
2893 metadata style.
2894 * p-valprint.c (pascal_val_print)
2895 (pascal_object_print_value_fields): Use metadata style.
2896 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2897 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2898 parameter.
2899 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2900 * m2-valprint.c (m2_print_long_set): Use metadata style.
2901 * m2-typeprint.c (m2_print_type): Use metadata style.
2902 * infcmd.c (print_return_value_1): Use metadata style.
2903 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2904 * f-valprint.c (info_common_command_for_block): Use metadata
2905 style.
2906 * f-typeprint.c (f_type_print_base): Use metadata style.
2907 * expprint.c (print_subexp_standard): Use metadata style.
2908 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2909 * cli/cli-style.h (class cli_style_option): Add constructor.
2910 (metadata_style): Declare.
2911 * cli/cli-style.c (metadata_style): New global.
2912 (_initialize_cli_style): Register metadata style.
2913 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2914 parameter.
2915 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2916 * c-typeprint.c (c_type_print_base_struct_union)
2917 (c_type_print_base_1): Use metadata style.
2918 * breakpoint.c (watchpoint_value_print)
2919 (print_one_breakpoint_location): Use metadata style.
2920 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2921 style.
2922 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2923 style.
2924 * ada-valprint.c (val_print_packed_array_elements, printstr)
2925 (print_field_values, ada_val_print_ref, ada_val_print): Use
2926 metadata style.
2927 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2928 style.
2929 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2930 style.
2931 * ada-lang.c (user_select_syms): Use metadata style.
2932
14309bb6
TT
29332019-10-01 Tom Tromey <tom@tromey.com>
2934
2935 * cli/cli-cmds.c (pwd_command): Style output.
2936
6a831f06
PA
29372019-10-01 Pedro Alves <palves@redhat.com>
2938 Tom Tromey <tom@tromey.com>
2939
2940 * symtab.c (print_symbol_info): Use %ps.
2941 (print_msymbol_info): Use %ps.
2942 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2943 * printcmd.c (print_variable_and_value): Use %ps.
2944 * macrocmd.c (show_pp_source_pos): Use %ps.
2945 * infrun.c (print_exited_reason): Use ui_out::message.
2946 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2947 (describe_other_breakpoints): Use ui_out::message and new
2948 formats.
2949 (say_where): Use new formats.
2950 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2951 and new formats.
2952
2a3c1174
PA
29532019-10-01 Pedro Alves <palves@redhat.com>
2954 Tom Tromey <tom@tromey.com>
2955
2956 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2957 (test_gdb_formats): New function.
2958 (run_tests): Call it.
2959 (test_format_specifier): Update.
2960 * utils.h (fputs_filtered): Update comment.
2961 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2962 (fputs_styled_unfiltered): Declare.
2963 * utils.c (fputs_styled_unfiltered): New function.
2964 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2965 (vfprintf_filtered): Update.
2966 (vfprintf_unfiltered, vprintf_filtered): Update.
2967 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2968 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2969 disallow_ui_out_field>: New constants.
2970 (enum class field_kind): New.
2971 (struct base_field_s, struct signed_field_s): New.
2972 (signed_field): New function.
2973 (struct string_field_s): New.
2974 (string_field): New function.
2975 (struct styled_string_s): New.
2976 (styled_string): New function.
2977 (class ui_out) <message>: Add comment.
2978 <vmessage, call_do_message>: New methods.
2979 <do_message>: Add style parameter.
2980 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2981 methods.
2982 (ui_out::message): Rewrite.
2983 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2984 parameter.
2985 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2986 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2987 gdb_extensions parameter.
2988 (class format_piece): Add parameter to constructor.
2989 (n_int_args): New field.
2990 * gdbsupport/format.c (format_pieces::format_pieces): Add
2991 gdb_extensions parameter. Handle '*'.
2992 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2993 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2994 vfprintf_styled_no_gdbfmt.
2995 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2996 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2997 unfiltered output.
2998 * ui-style.h (struct ui_file_style) <ptr>: New method.
2999
0dfe5bfb
TT
30002019-10-01 Tom Tromey <tom@tromey.com>
3001
3002 * unittests/format_pieces-selftests.c: Update. Add final format.
3003 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3004 empty literal pieces.
3005
e43b10e1
TT
30062019-10-01 Tom Tromey <tom@tromey.com>
3007
3008 * ui-out.h (enum class ui_out_style_kind): Remove.
3009 (class ui_out) <field_string, field_stsream, do_field_string>:
3010 Change type of "style".
3011 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3012 (ui_out::field_string): Update.
3013 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3014 of "style".
3015 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3016 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3017 * stack.c (print_frame_arg, print_frame_info, print_frame):
3018 Update.
3019 * source.c (print_source_lines_base): Update.
3020 * solib.c (info_sharedlibrary_command): Update.
3021 * skip.c (info_skip_command): Update.
3022 * record-btrace.c (btrace_call_history_src_line)
3023 (btrace_call_history): Update.
3024 * python/py-framefilter.c (py_print_frame): Update.
3025 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3026 "style".
3027 * mi/mi-out.c (mi_ui_out::do_table_header)
3028 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3029 (mi_ui_out::do_field_string): Update.
3030 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3031 Update.
3032 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3033 "style".
3034 * cli-out.c (cli_ui_out::do_table_header)
3035 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3036 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3037 (cli_ui_out::do_field_fmt): Update.
3038 * breakpoint.c (print_breakpoint_location): Update.
3039 (update_static_tracepoint): Update.
3040
cd7c32c3
PW
30412019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3042
3043 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3044 conversion of gdb_datadir.
3045 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3046 remove not needed c_str ().
3047
8fe0f950
AT
30482019-09-30 Ali Tamur <tamur@google.com>
3049
3050 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3051 (dwarf2_string_attr): Likewise.
3052
5f48f8f3
AT
30532019-09-30 Ali Tamur <tamur@google.com>
3054
3055 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3056 (process_full_type_unit): Likewise.
3057 (dump_die_shallow): Likewise.
3058 (cu_debug_loc_section): Likewise.
3059
6fb08628
CB
30602019-09-28 Christian Biesinger <cbiesinger@google.com>
3061
3062 * minsyms.c (compare_minimal_symbols): Rename to...
3063 (minimal_symbol_is_less_than): ...this, and adjust to STL
3064 conventions (return bool, take arguments as references)
3065 (minimal_symbol_reader::install): Call std::sort instead
3066 of qsort.
3067
c7ee338a
CB
30682019-09-29 Christian Biesinger <cbiesinger@google.com>
3069
3070 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3071 hash and why.
3072 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3073 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3074
703a86c2
SM
30752019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3078 * psympriv.h (add_psymbol_to_list): Move comment here and update
3079 it.
3080
0df0352a
TV
30812019-09-29 Tom de Vries <tdevries@suse.de>
3082
3083 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3084 Use $tmpdir/$(basename "$output_file").dwz instead of
3085 "${output_file}.dwz".
3086
ad75efa6
SM
30872019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 PR gdb/25045
3090 * hppa-linux-nat.c: Include gdbarch.h.
3091
ececd218
CB
30922019-09-26 Christian Biesinger <cbiesinger@google.com>
3093
3094 * blockframe.c (find_pc_partial_function): Change return type to bool.
3095 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3096 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3097 (stub_gnu_ifunc_resolve_name): Likewise.
3098 * symtab.c (compare_filenames_for_search): Likewise.
3099 (compare_glob_filenames_for_search): Likewise.
3100 (matching_obj_sections): Likewise.
3101 (symbol_matches_domain): Likewise.
3102 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3103 (find_line_pc): Change return type to bool.
3104 (find_line_pc_range): Likewise.
3105 (producer_is_realview): Likewise.
3106 * symtab.h (symbol_matches_domain): Likewise.
3107 (find_pc_partial_function): Likewise.
3108 (find_pc_line_pc_range): Likewise.
3109 (in_gnu_ifunc_stub): Likewise.
3110 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3111 (find_line_pc): Likewise.
3112 (find_line_pc_range): Likewise.
3113 (matching_obj_sections): Likewise.
3114 (find_line_symtab): Change out parameter to bool.
3115 (producer_is_realview): Change return type to bool.
3116 (compare_filenames_for_search): Likewise.
3117 (compare_glob_filenames_for_search): Likewise.
3118
27a900b8
TT
31192019-09-26 Tom Tromey <tom@tromey.com>
3120
3121 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3122 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3123 * gdb_usleep.h: Remove.
3124 * gdb_usleep.c: Remove.
3125 * utils.c: Don't include gdb_usleep.h.
3126
5d63b30a
TT
31272019-09-26 Tom Tromey <tromey@adacore.com>
3128
3129 * python/py-type.c (type_to_type_object): Call check_typedef
3130 for stub types.
3131
12904d37
TT
31322019-09-26 Tom Tromey <tom@tromey.com>
3133
3134 * utils.h (initialize_utils): Don't declare.
3135 * top.c (gdb_init): Don't call initialize_utils.
3136 * utils.c (initialize_utils): Remove. Move contents...
3137 (_initialize_utils): ... here.
3138
858f25f0
TT
31392019-09-25 Tom Tromey <tom@tromey.com>
3140
3141 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3142 * utils.h (make_hex_string): Don't declare.
3143 * utils.c (make_hex_string): Remove.
3144
3d435220
TV
31452019-09-24 Tom de Vries <tdevries@suse.de>
3146
3147 PR gdb/23815
3148 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3149 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3150
ddd44b70
DD
31512019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3152
3153 * NEWS: Mention new simulator port for PRU.
3154
f945dedf
CB
31552019-09-23 Christian Biesinger <cbiesinger@google.com>
3156
3157 * ada-exp.y (write_object_remaining): Update.
3158 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3159 and eliminate the static buffer.
3160 (ada_decode_symbol): Update.
3161 (ada_la_decode): Update.
3162 (ada_sniff_from_mangled_name): Update.
3163 (is_valid_name_for_wild_match): Update.
3164 (ada_lookup_name_info::matches): Update and simplify.
3165 (name_matches_regex): Update.
3166 (ada_add_global_exceptions): Update.
3167 * ada-lang.h (ada_decode): Update signature.
3168 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3169 * dwarf-index-write.c (debug_names::insert): Update.
3170
7ab78ccb
SM
31712019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3172
3173 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3174 formatting.
3175
9252448b
SM
31762019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3177
3178 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3179 Change "nonzero" to "true" in documentation.
3180
626ca2c0
CB
31812019-09-20 Christian Biesinger <cbiesinger@google.com>
3182
3183 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3184 (_initialize_darwin_solib): Don't set
3185 darwin_so_ops.lookup_lib_global_symbol.
3186 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3187 set_gdbarch_iterate_over_objfiles_in_search_order.
3188 (elf_lookup_lib_symbol): Rename to...
3189 (svr4_iterate_over_objfiles_in_search_order): this, and update
3190 to iterate semantics.
3191 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3192 * solib.c (solib_global_lookup): Remove.
3193 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3194 (solib_global_lookup): Remove.
3195 * symtab.c (lookup_global_or_static_symbol): Remove call to
3196 solib_global_lookup.
3197
5a3a0d63
JB
31982019-09-20 Joel Brobecker <brobecker@adacore.com>
3199
3200 * NEWS: Move entries about default MI version now being
3201 version 3, and about the GDB/MI fix for multi-location
3202 breakpoints to the "since GDB 8.3" section.
3203
ffea1427
JB
32042019-09-20 Joel Brobecker <brobecker@adacore.com>
3205
3206 GDB 8.3.1 released.
3207
abf516c6
UW
32082019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3209
3210 * NEWS: Mention that Cell/B.E. debugging support was removed.
3211 * MAINTAINERS: Remove spu target.
3212
3213 * config/djgpp/fnchange.lst: Remove entries for removed files.
3214
3215 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3216 spu-multiarch.o, and spu-tdep.o.
3217 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3218 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3219 spu-multiarch.c, and spu-tdep.c.
3220 * spu-linux-nat.c: Remove file.
3221 * spu-multiarch.c: Remove file.
3222 * spu-tdep.c: Remove file.
3223 * spu-tdep.h: Remove file.
3224 * solib-spu.c: Remove file.
3225 * solib-spu.h: Remove file.
3226
3227 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3228 * configure.nat (spu-linux): Remove.
3229 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3230 solib-multiarch.o from gdb_target_obs.
3231 (spu*-*-*): Remove.
3232
3233 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3234 feature flag.
3235 (ppc_linux_no_features): Update.
3236 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3237 Cell/B.E. support.
3238 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3239 (tdesc_powerpc_cell64l): Likewise.
3240 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3241 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3242 Cell/B.E. support.
3243 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3244 Do not include "features/rs6000/powerpc-cell32l.c" or
3245 "features/rs6000/powerpc-cell64l.c".
3246 (ppc_linux_spu_section): Remove.
3247 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3248 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3249 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3250 (ppc_linux_spe_context_lookup): Remove.
3251 (ppc_linux_spe_context_inferior_created): Remove.
3252 (ppc_linux_spe_context_solib_loaded): Remove.
3253 (ppc_linux_spe_context_solib_unloaded): Remove.
3254 (ppc_linux_spe_context): Remove.
3255 (struct ppu2spu_cache): Remove.
3256 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3257 (struct ppu2spu_data): Remove.
3258 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3259 ppu2spu_unwind): Remove.
3260 (ppc_linux_init_abi): Remove Cell/B.E. support.
3261 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3262
3263 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3264 (rs6000/powerpc-cell64l-expedite): Likewise
3265 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3266 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3267 rs6000/powerpc-cell64l.xml.
3268 * features/rs6000/powerpc-cell32l.xml: Remove.
3269 * features/rs6000/powerpc-cell64l.xml: Likewise.
3270 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3271 * features/rs6000/powerpc-cell64l.c: Likewise.
3272 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3273 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3274 * regformats/reg-spu.dat: Remove.
3275
3276 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3277 * corelow.c (struct spuid_list): Remove.
3278 (add_to_spuid_list): Remove.
3279 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3280 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3281 (remote_protocol_features): Remove associated entries.
3282 (_initialize_remote): No longer initialize them.
3283 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3284 * linux-nat.c (SPUFS_MAGIC): Remove.
3285 (linux_proc_xfer_spu): Remove.
3286 (spu_enumerate_spu_ids): Remove.
3287 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3288 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3289 (linux_make_corefile_notes): No longer call it.
3290
3291 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3292 (cooked_write_test): Likewise.
3293
78e8cb91
TT
32942019-09-20 Tom Tromey <tom@tromey.com>
3295
3296 * NEWS: Mention case-sensitivity of TUI commands.
3297 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3298 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3299 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3300
f074b67e
TT
33012019-09-20 Tom Tromey <tom@tromey.com>
3302
3303 * tui/tui-source.c (tui_source_window::set_contents): Use
3304 make_unique_xstrdup.
3305 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3306 make_unique_xstrdup.
3307
63c4bf19
TT
33082019-09-20 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-data.c: Remove separator comments.
3311 * tui/tui-layout.c: Remove separator comments.
3312 * tui/tui-win.c: Remove separator comments.
3313 * tui/tui-wingeneral.c: Remove separator comments.
3314
43df9b2f
TT
33152019-09-20 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui.h (strcat_to_buf): Don't declare.
3318 * tui/tui.c (strcat_to_buf): Remove.
3319
7226433c
TT
33202019-09-20 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3323 from "fullname".
3324 * tui/tui-source.c (tui_source_window::set_contents)
3325 (tui_source_window::location_matches_p)
3326 (tui_source_window::maybe_update): Update.
3327
80df3337
TT
33282019-09-20 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3331 Update.
3332 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3333 prefix.
3334 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3335 (tui_data_window::line_from_reg_element_no)
3336 (tui_data_window::first_reg_element_no_inline)
3337 (tui_data_window::show_registers)
3338 (tui_data_window::show_register_group)
3339 (tui_data_window::display_registers_from)
3340 (tui_data_window::display_registers_from_line)
3341 (tui_data_window::first_data_item_displayed)
3342 (tui_data_window::delete_data_content_windows)
3343 (tui_data_window::erase_data_content)
3344 (tui_data_window::do_scroll_vertical)
3345 (tui_data_window::refresh_window)
3346 (tui_data_window::check_register_values): Update.
3347
9923f347
TT
33482019-09-20 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3351 (struct tui_locator_window) <full_name, proc_name>: Now
3352 std::string.
3353 * tui/tui-stack.c (tui_locator_window::make_status_line)
3354 (tui_locator_window::set_locator_fullname)
3355 (tui_locator_window::set_locator_info): Update.
3356 * tui/tui-source.c (tui_source_window::set_contents)
3357 (tui_source_window::showing_source_p): Update.
3358
b76251ab
TT
33592019-09-20 Tom Tromey <tom@tromey.com>
3360
3361 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3362 Don't call tui_locator_win_info_ptr.
3363
0891be08
TT
33642019-09-20 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3367
1b935acf
TT
33682019-09-20 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3371 height for locator.
3372 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3373 * tui/tui-layout.c (show_source_disasm_command, show_data)
3374 (show_source_or_disasm_and_command): Use 1 as height for locator.
3375
9abd8a65
TT
33762019-09-20 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui.c (tui_enable): Update.
3379 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3380 Update.
3381 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3382 Update.
3383 * tui/tui-data.c (win_resized): Now bool.
3384 (tui_win_resized): Return bool.
3385 (tui_set_win_resized_to): Accept a bool.
3386
b5457826
TT
33872019-09-20 Tom Tromey <tom@tromey.com>
3388
3389 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3390 Change type of "refresh_values_only".
3391 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3392 type of "refresh_values_only".
3393
6b915f7d
TT
33942019-09-20 Tom Tromey <tom@tromey.com>
3395
3396 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3397 std::string.
3398 (tui_disassemble): Add "pos" parameter.
3399 (tui_disasm_window::set_contents): Simplify.
3400
2ad52f6f
TT
34012019-09-20 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-winsource.h (struct tui_source_window_base)
3404 <show_source_content>: Now private.
3405 * tui/tui-winsource.c
3406 (tui_source_window_base::show_source_content): Don't handle empty
3407 content case.
3408
b3b1bde6
TT
34092019-09-20 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-layout.c (show_source_disasm_command)
3412 (show_source_or_disasm_and_command): Don't call
3413 show_source_content.
3414
71a25ed2
TT
34152019-09-20 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3418 Declare.
3419 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3420 from tui_make_status_line.
3421 (tui_locator_window::rerender): Update.
3422
f8532154
TT
34232019-09-20 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3426 (tui_locator_window::rerender): Update.
3427
2d81b349
TT
34282019-09-20 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui-winsource.h (struct tui_source_window_base)
3431 <~tui_source_window_base>: Don't declare.
3432 <fullname>: Remove.
3433 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3434 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3435 member.
3436 * tui/tui-source.c (tui_source_window::set_contents): Update.
3437 (tui_source_window::location_matches_p)
3438 (tui_source_window::maybe_update): Update.
3439
f14bec58
TT
34402019-09-20 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-winsource.h (~tui_source_element): Remove.
3443 (tui_source_element): Update.
3444 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3445 * tui/tui-winsource.c (tui_show_source_line): Update.
3446 * tui/tui-source.c (tui_source_window::set_contents): Update.
3447 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3448
78d5933a
TT
34492019-09-20 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3452 declare.
3453 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3454 tui_clear_source_windows_detail.
3455 * tui/tui-winsource.h (struct tui_source_window_base)
3456 <clear_detail>: Don't declare.
3457 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3458 Remove.
3459 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3460
d4207696
TT
34612019-09-20 Tom Tromey <tromey@adacore.com>
3462
3463 PR ada/24919:
3464 * block.c (contained_in): Fix final return value.
3465
00f93c44
AM
34662019-09-20 Alan Modra <amodra@gmail.com>
3467
3468 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3469 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3470 (read_indirect_string_from_dwz): Use bfd accessor.
3471 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3472 * machoread.c (macho_symfile_read_all_oso): Likewise.
3473 * solib.c (solib_bfd_open): Likewise.
3474
e4153ae6
CB
34752019-09-19 Christian Biesinger <cbiesinger@google.com>
3476
3477 * eval.c: Move declaration of overload_resolution to...
3478 * value.h: ...here.
3479
c7ae7675
CB
34802019-09-19 Christian Biesinger <cbiesinger@google.com>
3481
3482 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3483 * arm-linux-tdep.c: Likewise.
3484 * arm-nbsd-nat.c: Likewise.
3485 * arm-tdep.h: Declare arm_apcs_32.
3486 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3487
e86f08d2
CB
34882019-09-19 Christian Biesinger <cbiesinger@google.com>
3489
3490 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3491 * dwarf2read.h: Declare dwarf_always_disassemble.
3492
f64e2f40
TV
34932019-09-19 Tom de Vries <tdevries@suse.de>
3494
3495 PR gdb/25009
3496 * source-cache.c (source_cache::ensure): Catch exception thrown during
3497 construction of the highlighter.
3498
fd361982
AM
34992019-09-18 Alan Modra <amodra@gmail.com>
3500
3501 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3502 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3503 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3504 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3505 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3506 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3507 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3508 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3509 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3510 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3511 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3512 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3513 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3514 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3515 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3516 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3517 * mi/mi-interp.c: Update throughout for bfd section macro and
3518 function changes.
3519 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3520 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3521
11061048
TT
35222019-09-18 Tom Tromey <tom@tromey.com>
3523
3524 * NEWS: Add entry.
3525 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3526 call rl_initialize.
3527 (tui_enable): Do not call rl_initialize.
3528
7a27b85f
CG
35292019-09-18 Christian Groessler <chris@groessler.org>
3530
3531 * alpha-linux-nat.c: Include gdbarch.h.
3532
f64eea3a
SM
35332019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3534
3535 * ui-file.c: Include cli/cli-style.h.
3536 (term_cli_styling): Remove cli_styling declaration.
3537
e6f7f6d1
AM
35382019-09-18 Alan Modra <amodra@gmail.com>
3539
3540 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3541 to bfd_asymbol_section.
3542
1d38e9d1
AM
35432019-09-18 Alan Modra <amodra@gmail.com>
3544
3545 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3546 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3547 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3548
90d92a63
AM
35492019-09-18 Alan Modra <amodra@gmail.com>
3550
3551 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3552 * spu-linux-nat.c (spu_bfd_open): Likewise.
3553
a3d181d2
CB
35542019-09-18 Christian Biesinger <cbiesinger@google.com>
3555
3556 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3557 to bool to match definition in dwarf2read.c.
3558
491144b5
CB
35592019-09-17 Christian Biesinger <cbiesinger@google.com>
3560
3561 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3562 (print_signatures): Likewise.
3563 (trust_pad_over_xvs): Likewise.
3564 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3565 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3566 * arm-linux-nat.c (arm_apcs_32): Likewise.
3567 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3568 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3569 * arm-tdep.c (arm_debug): Likewise.
3570 (arm_apcs_32): Likewise.
3571 * auto-load.c (debug_auto_load): Likewise.
3572 (auto_load_gdb_scripts): Likewise.
3573 (global_auto_load): Likewise.
3574 (auto_load_local_gdbinit): Likewise.
3575 (auto_load_local_gdbinit_loaded): Likewise.
3576 * auto-load.h (global_auto_load): Likewise.
3577 (auto_load_local_gdbinit): Likewise.
3578 (auto_load_local_gdbinit_loaded): Likewise.
3579 * breakpoint.c (disconnected_dprintf): Likewise.
3580 (breakpoint_proceeded): Likewise.
3581 (automatic_hardware_breakpoints): Likewise.
3582 (always_inserted_mode): Likewise.
3583 (target_exact_watchpoints): Likewise.
3584 (_initialize_breakpoint): Update.
3585 * breakpoint.h (target_exact_watchpoints): Change to bool.
3586 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3587 * cli/cli-cmds.c (trace_commands): Likewise.
3588 * cli/cli-cmds.h (trace_commands): Likewise.
3589 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3590 to bool*.
3591 * cli/cli-logging.c (logging_overwrite): Change to bool.
3592 (logging_redirect): Likewise.
3593 (debug_redirect): Likewise.
3594 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3595 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3596 to bool.
3597 <boolean_option_def>: Update.
3598 (struct flag_option_def): Change default type of Context to bool
3599 from int.
3600 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3601 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3602 (get_setshow_command_value_string): Likewise.
3603 * cli/cli-style.c (cli_styling): Change to bool.
3604 (source_styling): Likewise.
3605 * cli/cli-style.h (source_styling): Likewise.
3606 (cli_styling): Likewise.
3607 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3608 to bool.
3609 * command.h (var_types): Update comment.
3610 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3611 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3612 bool.
3613 (debug_compile_cplus_scopes): Likewise.
3614 * compile/compile-internal.h (compile_debug): Likewise.
3615 * compile/compile.c (compile_debug): Likewise.
3616 (struct compile_options) <raw>: Likewise.
3617 * cp-support.c (catch_demangler_crashes): Likewise.
3618 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3619 (usr_cmd_cris_dwarf2_cfi): Likewise.
3620 * csky-tdep.c (csky_debug): Likewise.
3621 * darwin-nat.c (enable_mach_exceptions): Likewise.
3622 * dcache.c (dcache_enabled_p): Likewise.
3623 * defs.h (info_verbose): Likewise.
3624 * demangle.c (demangle): Likewise.
3625 (asm_demangle): Likewise.
3626 * dwarf-index-cache.c (debug_index_cache): Likewise.
3627 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3628 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3629 * dwarf2read.c (check_physname): Likewise.
3630 (use_deprecated_index_sections): Likewise.
3631 (dwarf_always_disassemble): Likewise.
3632 * eval.c (overload_resolution): Likewise.
3633 * event-top.c (set_editing_cmd_var): Likewise.
3634 (exec_done_display_p): Likewise.
3635 * event-top.h (set_editing_cmd_var): Likewise.
3636 (exec_done_display_p): Likewise.
3637 * exec.c (write_files): Likewise.
3638 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3639 (debug_fbsd_nat): Likewise.
3640 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3641 Likewise.
3642 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3643 <backtrace_past_entry> Likewise.
3644 * gdb-demangle.h (demangle): Likewise.
3645 (asm_demangle): Likewise.
3646 * gdb_bfd.c (bfd_sharing): Likewise.
3647 * gdbcore.h (write_files): Likewise.
3648 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3649 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3650 * gdbthread.h (print_thread_events): Likewise.
3651 * gdbtypes.c (opaque_type_resolution): Likewise.
3652 (strict_type_checking): Likewise.
3653 * gnu-nat.c (gnu_debug_flag): Likewise.
3654 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3655 * guile/scm-param.c (pascm_variable): Add boolval.
3656 (add_setshow_generic): Update.
3657 (pascm_param_value): Update.
3658 (pascm_set_param_value_x): Update.
3659 * hppa-tdep.c (hppa_debug): Change to bool..
3660 * infcall.c (may_call_functions_p): Likewise.
3661 (coerce_float_to_double_p): Likewise.
3662 (unwind_on_signal_p): Likewise.
3663 (unwind_on_terminating_exception_p): Likewise.
3664 * infcmd.c (startup_with_shell): Likewise.
3665 * inferior.c (print_inferior_events): Likewise.
3666 * inferior.h (startup_with_shell): Likewise.
3667 (print_inferior_events): Likewise.
3668 * infrun.c (step_stop_if_no_debug): Likewise.
3669 (detach_fork): Likewise.
3670 (debug_displaced): Likewise.
3671 (disable_randomization): Likewise.
3672 (non_stop): Likewise.
3673 (non_stop_1): Likewise.
3674 (observer_mode): Likewise.
3675 (observer_mode_1): Likewise.
3676 (set_observer_mode): Update.
3677 (sched_multi): Change to bool.
3678 * infrun.h (debug_displaced): Likewise.
3679 (sched_multi): Likewise.
3680 (step_stop_if_no_debug): Likewise.
3681 (non_stop): Likewise.
3682 (disable_randomization): Likewise.
3683 * linux-tdep.c (use_coredump_filter): Likewise.
3684 (dump_excluded_mappings): Likewise.
3685 * linux-thread-db.c (auto_load_thread_db): Likewise.
3686 (check_thread_db_on_load): Likewise.
3687 * main.c (captured_main_1): Update.
3688 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3689 xx2_opt, boolean_opt>: Change to bool.
3690 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3691 * maint.c (maintenance_profile_p): Likewise.
3692 (per_command_time): Likewise.
3693 (per_command_space): Likewise.
3694 (per_command_symtab): Likewise.
3695 * memattr.c (inaccessible_by_default): Likewise.
3696 * mi/mi-main.c (mi_async): Likewise.
3697 (mi_async_1): Likewise.
3698 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3699 * nat/fork-inferior.h (startup_with_shell): Likewise.
3700 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3701 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3702 * nios2-tdep.c (nios2_debug): Likewise.
3703 * or1k-tdep.c (or1k_debug): Likewise.
3704 * parse.c (parser_debug): Likewise.
3705 * parser-defs.h (parser_debug): Likewise.
3706 * printcmd.c (print_symbol_filename): Likewise.
3707 * proc-api.c (procfs_trace): Likewise.
3708 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3709 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3710 (set_parameter_value): Update.
3711 (add_setshow_generic): Update.
3712 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3713 to bool*.
3714 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3715 int*.
3716 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3717 * record-btrace.c (record_btrace_target::store_registers): Update.
3718 * record-full.c (record_full_memory_query): Change to bool.
3719 (record_full_stop_at_limit): Likewise.
3720 * record-full.h (record_full_memory_query): Likewise.
3721 * remote-notif.c (notif_debug): Likewise.
3722 * remote-notif.h (notif_debug): Likewise.
3723 * remote.c (use_range_stepping): Likewise.
3724 (interrupt_on_connect): Likewise.
3725 (remote_break): Likewise.
3726 * ser-tcp.c (tcp_auto_retry): Likewise.
3727 * ser-unix.c (serial_hwflow): Likewise.
3728 * skip.c (debug_skip): Likewise.
3729 * solib-aix.c (solib_aix_debug): Likewise.
3730 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3731 (spu_auto_flush_cache_p): Likewise.
3732 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3733 Likewise.
3734 (struct info_print_options) <quiet>: Likewise.
3735 * symfile-debug.c (debug_symfile): Likewise.
3736 * symfile.c (auto_solib_add): Likewise.
3737 (separate_debug_file_debug): Likewise.
3738 * symfile.h (auto_solib_add): Likewise.
3739 (separate_debug_file_debug): Likewise.
3740 * symtab.c (basenames_may_differ): Likewise.
3741 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3742 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3743 (struct info_types_options) <quiet>: Likewise.
3744 * symtab.h (demangle): Likewise.
3745 (basenames_may_differ): Likewise.
3746 * target-dcache.c (stack_cache_enabled_1): Likewise.
3747 (code_cache_enabled_1): Likewise.
3748 * target.c (trust_readonly): Likewise.
3749 (may_write_registers): Likewise.
3750 (may_write_memory): Likewise.
3751 (may_insert_breakpoints): Likewise.
3752 (may_insert_tracepoints): Likewise.
3753 (may_insert_fast_tracepoints): Likewise.
3754 (may_stop): Likewise.
3755 (auto_connect_native_target): Likewise.
3756 (target_stop_and_wait): Update.
3757 (target_async_permitted): Change to bool.
3758 (target_async_permitted_1): Likewise.
3759 (may_write_registers_1): Likewise.
3760 (may_write_memory_1): Likewise.
3761 (may_insert_breakpoints_1): Likewise.
3762 (may_insert_tracepoints_1): Likewise.
3763 (may_insert_fast_tracepoints_1): Likewise.
3764 (may_stop_1): Likewise.
3765 * target.h (target_async_permitted): Likewise.
3766 (may_write_registers): Likewise.
3767 (may_write_memory): Likewise.
3768 (may_insert_breakpoints): Likewise.
3769 (may_insert_tracepoints): Likewise.
3770 (may_insert_fast_tracepoints): Likewise.
3771 (may_stop): Likewise.
3772 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3773 (make_thread_apply_all_options_def_group): Change argument from int*
3774 to bool*.
3775 (thread_apply_all_command): Update.
3776 (print_thread_events): Change to bool.
3777 * top.c (confirm): Likewise.
3778 (command_editing_p): Likewise.
3779 (history_expansion_p): Likewise.
3780 (write_history_p): Likewise.
3781 (info_verbose): Likewise.
3782 * top.h (confirm): Likewise.
3783 (history_expansion_p): Likewise.
3784 * tracepoint.c (disconnected_tracing): Likewise.
3785 (circular_trace_buffer): Likewise.
3786 * typeprint.c (print_methods): Likewise.
3787 (print_typedefs): Likewise.
3788 * utils.c (debug_timestamp): Likewise.
3789 (sevenbit_strings): Likewise.
3790 (pagination_enabled): Likewise.
3791 * utils.h (sevenbit_strings): Likewise.
3792 (pagination_enabled): Likewise.
3793 * valops.c (overload_resolution): Likewise.
3794 * valprint.h (struct value_print_options) <prettyformat_arrays,
3795 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3796 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3797 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3798 Likewise.
3799 * windows-nat.c (new_console): Likewise.
3800 (cygwin_exceptions): Likewise.
3801 (new_group): Likewise.
3802 (debug_exec): Likewise.
3803 (debug_events): Likewise.
3804 (debug_memory): Likewise.
3805 (debug_exceptions): Likewise.
3806 (useshell): Likewise.
3807 * windows-tdep.c (maint_display_all_tib): Likewise.
3808 * xml-support.c (debug_xml): Likewise.
3809
f1b620e9
MG
38102019-09-17 Mike Gulick <mgulick@mathworks.com>
3811
3812 * source.c (prepare_path_for_appending): New function.
3813 (openp): Make use of new function.
3814 (find_and_open_source): Search for the compilation directory and
3815 source file as a relative path beneath the directory search path.
3816
67f3ed6a
AB
38172019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3818
3819 * source-cache.c (source_cache::get_line_charpos): Catch
3820 exceptions and return false, this matches the behaviour documented
3821 in the header file.
3822
74332189
JB
38232019-09-17 Joel Brobecker <brobecker@adacore.com>
3824
3825 * ada-tasks.c (info_task): Remove quoting of the task's name.
3826
f2f24aa9
CB
38272019-09-16 Christian Biesinger <cbiesinger@google.com>
3828
3829 * symfile.c (auto_solib_add): Replace comment with a reference
3830 to the header file.
3831
6a062a93
CB
38322019-09-14 Christian Biesinger <cbiesinger@google.com>
3833
3834 * NEWS: Mention that gdb can now be compiled with Python 3
3835 on Windows.
3836
ec6c8338
AB
38372019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * maint.c (maint_print_section_data::maint_print_section_data):
3840 Force use of 'float log10 (float)' by casting the argument to
3841 float.
3842
aa17805f
AB
38432019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3844
3845 * maint.c: Add 'cmath' include.
3846 (struct maint_print_section_data): New structure.
3847 (print_section_index): New function.
3848 (print_bfd_section_info): Add header comment, small whitespace
3849 cleanup, and update to call new print_section_index function.
3850 (print_objfile_section_info): Likewise.
3851 (maint_obj_section_from_bfd_section): New function.
3852 (print_bfd_section_info_maybe_relocated): New function.
3853 (maintenance_info_sections): Add header comment, always use
3854 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3855
3dd9bb46
AB
38562019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3859 inner scope, add check that the objfile has psymtabs before
3860 checking psymtabs_addrmap.
3861 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3862
4993045d
PW
38632019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3864
3865 * NEWS: Announce that Ada task names are now shown at more places,
3866 and between quotes (except in info task output).
3867 * gdb/ada-tasks.c (task_to_str): New function.
3868 (display_current_task_id): Call task_to_str.
3869 (task_command_1): Likewise.
3870 (print_ada_task_info): In non-mi mode, Properly align headers and data
3871 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3872
7a289707
RO
38732019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3874
3875 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3876 prstatus.pr_lwp.pr_info instead of making it up.
3877
f2aec7f6
CB
38782019-09-11 Christian Biesinger <cbiesinger@google.com>
3879
3880 * auto-load.c (auto_load_expand_dir_vars): Update.
3881 * defs.h (gdb_datadir): Change to std::string.
3882 (python_libdir): Likewise.
3883 (relocate_gdb_directory): Change return type to std::string.
3884 * guile/guile.c (gdbscm_data_directory): Update.
3885 (initialize_scheme_side): Update.
3886 * jit.c (jit_reader_dir): Change to std::string.
3887 (jit_reader_load_command): Update.
3888 * main.c (gdb_datadir): Change to std::string.
3889 (python_libdir): Likewise.
3890 (set_gdb_data_directory): Update.
3891 (relocate_path): Change to return std::string.
3892 (relocate_gdb_directory): Change to return std::string.
3893 (relocate_gdbinit_path_maybe_in_datadir): Update.
3894 (captured_main_1): Update.
3895 * python/python.c (do_start_initialization): Update.
3896 * top.c (show_gdb_datadir): Update.
3897 * xml-syscall.c (xml_init_syscalls_info): Update.
3898 (init_syscalls_info): Update.
3899
9224a013
CB
39002019-09-11 Christian Biesinger <cbiesinger@google.com>
3901
3902 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3903 out of get_init_files.
3904 (get_init_files): Update.
3905
f48cd836
CB
39062019-09-11 Christian Biesinger <cbiesinger@google.com>
3907
3908 * main.c (get_init_files): Change to use std::string.
3909 (captured_main_1): Update.
3910 (print_gdb_help): Update.
3911
9cab7ecd
AT
39122019-09-11 Ali Tamur <tamur@google.com>
3913
3914 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3915 implementation.
3916
67547d89
CB
39172019-09-11 Christian Biesinger <cbiesinger@google.com>
3918
3919 * dbxread.c (read_dbx_symtab): Update.
3920 * dwarf2read.c (load_partial_dies): Update.
3921 * mdebugread.c (parse_partial_symbols): Update.
3922 (handle_psymbol_enumerators): Update.
3923 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3924 * psymtab.c (add_psymbol_to_bcache): Likewise.
3925 (add_psymbol_to_list): Likewise.
3926 * symtab.c (symbol_set_names): Likewise.
3927 * symtab.h (symbol_set_names): Likewise.
3928 * xcoffread.c (scan_xcoff_symtab): Update.
3929
64b2d4a0
TT
39302019-09-11 Tom Tromey <tom@tromey.com>
3931
3932 * symfile-mem.c (symbol_file_add_from_memory): Use
3933 bfd_set_filename.
3934 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3935 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3936
3b00ef10
TT
39372019-09-10 Tom Tromey <tromey@adacore.com>
3938
3939 * dwarf-index-write.c (write_psymbols): Extend error message.
3940 (debug_names::insert): Add Ada code.
3941 (debug_names::write_psymbols): Remove Ada check.
3942 (debug_names) <m_string_obstack>: New member.
3943 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3944 (gdb_index_symbol_name_matcher::matches): Remove.
3945 (mapped_index_base::find_name_components_bounds): Add "lang"
3946 parameter.
3947 (mapped_index_base::build_name_components): Also split names
3948 according to Ada syntax.
3949 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3950 type of "match_callback".
3951 (check_match, check_find_bounds_finds)
3952 (dw2_expand_symtabs_matching): Update.
3953 (dw2_debug_names_iterator): Add new constructor.
3954 (dw2_debug_names_map_matching_symbols): New function.
3955 (dw2_debug_names_expand_symtabs_matching): Update.
3956 (dwarf2_debug_names_functions): Use
3957 dw2_debug_names_map_matching_symbols.
3958
aa391654
TT
39592019-09-10 Tom Tromey <tromey@adacore.com>
3960
3961 * dwarf2read.c (dw2_get_file_names_reader): Add the
3962 CU's file name to the results.
3963
b054970d
TT
39642019-09-10 Tom Tromey <tromey@adacore.com>
3965
3966 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3967 map_matching_symbols. Update.
3968 * dwarf2read.c (dw2_map_matching_symbols): Update.
3969 * psymtab.c (match_partial_symbol): Change type; update.
3970 (psym_map_matching_symbols): Likewise.
3971 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3972 type; update.
3973 * symfile.h (struct quick_symbol_functions)
3974 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3975 Remove "match".
3976
6a3dbf1b
TT
39772019-09-10 Tom Tromey <tromey@adacore.com>
3978
3979 * psymtab.c (map_block): Remove.
3980 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3981 * symtab.c (iterate_over_symbols_terminated): New function.
3982 * symtab.c (iterate_over_symbols_terminated): Declare.
3983
6969f124
TT
39842019-09-10 Tom Tromey <tromey@adacore.com>
3985
3986 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3987 * language.h (struct language_defn) <la_iterate_over_symbols>:
3988 Return bool.
3989 * symtab.c (iterate_over_symbols): Return bool.
3990 * symtab.h (iterate_over_symbols): Return bool.
3991
199b4314
TT
39922019-09-10 Tom Tromey <tromey@adacore.com>
3993
3994 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3995 (add_nonlocal_symbols): Update.
3996 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3997 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3998 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3999 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4000 Change type of "callback". Remove "data".
4001
a084a2a6
AT
4002
40032019-09-09 Ali Tamur <tamur@google.com>
4004
4005 * dwarf2read.c (comp_unit_head): Update comment.
4006 (dwarf2_dwo_name): New function declaration.
4007 (dwarf_unit_type_name): New function declaration.
4008 (read_comp_unit_head): Add support for new compilation units,
4009 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4010 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4011 (currently named as "signature") in their header. Also clarify error
4012 messages.
4013 (lookup_dwo_id): New function. Returns the dwo id of the given
4014 compile unit.
4015 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4016 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4017 functions.
4018 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4019 (dwarf2_dwo_name): Get the dwo name if present.
4020 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4021 purposes.
4022
25a2915e
TT
40232019-09-09 Tom Tromey <tom@tromey.com>
4024
4025 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4026
e4df0874
PW
40272019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4028
4029 * python/python.c (do_start_initialization): Make progname_copy static,
4030 to avoid a leak report.
4031
8634b462
TT
40322019-09-08 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4035
c7f839cb
SM
40362019-09-07 Simon Marchi <simon.marchi@efficios.com>
4037
4038 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4039 Change type to gdb::optional<block_enum>.
4040 (dw2_symtab_iter_init): Change block_index parameter type
4041 to gdb::optional<block_enum>.
4042 (dw2_lookup_symbol): Change block_index parameter
4043 type to block_enum.c
4044 (dw2_debug_names_lookup_symbol): Likewise.
4045 * psymtab.c (psym_lookup_symbol): Likewise.
4046 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4047 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4048 Likewise.
4049
ead0e69a
CB
40502019-09-06 Christian Biesinger <cbiesinger@google.com>
4051
4052 * defs.h (relocate_gdb_directory): Change int to bool in
4053 signature and rename flag to relocatable.
4054 * main.c (relocate_path): Likewise.
4055 (relocate_gdb_directory): Likewise.
4056
b16c44de
AM
40572019-09-06 Alan Modra <amodra@gmail.com>
4058
4059 * coffread.c (coff_symfile_read): Constify filename variable.
4060 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4061 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4062 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4063 * solib.c (reload_shared_libraries_1): Likewise.
4064 * symfile.c (reread_symbols): Likewise.
4065 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4066 * solib-darwin.c (darwin_bfd_open): Likewise.
4067 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4068
06ff036e
AB
40692019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4070
4071 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4072 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4073
4e962e74
TT
40742019-09-03 Tom Tromey <tromey@adacore.com>
4075
4076 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4077 types.
4078 (has_negatives): Unbias a range type bound.
4079 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4080 * gdbtypes.c (operator==): Handle new field.
4081 (create_range_type): Add "bias" parameter.
4082 (create_static_range_type, resolve_dynamic_range): Update.
4083 * gdbtypes.h (struct range_bounds) <bias>: New member.
4084 (create_range_type): Add bias parameter.
4085 * printcmd.c (print_scalar_formatted): Unbias range types.
4086 * value.c (unpack_long): Unbias range types.
4087 (pack_long): Bias range types.
4088
d90b8f26
AH
40892019-09-02 Alan Hayward <alan.hayward@arm.com>
4090
4091 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4092 probe arguments.
4093
fe01123e
AH
40942019-09-02 Alan Hayward <alan.hayward@arm.com>
4095
4096 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4097 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4098 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4099 (compile_probe_arg): Likewise.
4100 * probe.h (get_argument_count): Likewise.
4101 * solib-svr4.c (solib_event_probe_action): Likewise.
4102 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4103
e661ef01
AH
41042019-09-02 Alan Hayward <alan.hayward@arm.com>
4105
4106 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4107 code to here...
4108 (svr4_create_solib_event_breakpoints): ...from here.
4109
47a536d9
SDJ
41102019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4111
4112 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4113 suffix from warning message.
4114
d6a00eba
TT
41152019-08-30 Tom Tromey <tom@tromey.com>
4116
4117 * tui/tui-winsource.h (struct tui_source_window_base)
4118 <refresh_all>: Don't declare.
4119 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4120 Remove.
4121 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4122 tui_show_locator_content.
4123 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4124 declare.
4125 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4126 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4127 declare.
4128
55b2657b
TT
41292019-08-30 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4132
12a8555a
TT
41332019-08-30 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4136 Remove unnecessary forward declarations.
4137
900ac242
TT
41382019-08-30 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4141 rerender.
4142 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4143 tui_show_locator_content.
4144
99ab33fb
TT
41452019-08-30 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4148 (tui_locator_window::rerender): Rewrite using body of previous
4149 tui_show_locator_content.
4150
e594a5d1
TT
41512019-08-30 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4154 set_locator_fullname>: New methods.
4155 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4156 Rename from tui_set_locator_fullname.
4157 (tui_locator_window::set_locator_info): Rename from
4158 tui_set_locator_info. Return bool.
4159 (tui_update_locator_fullname, tui_show_frame_info): Update.
4160
715bb467
TT
41612019-08-30 Tom Tromey <tom@tromey.com>
4162
4163 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4164
772f3f03
TT
41652019-08-30 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4168 call touchwin.
4169
108e13ab
TT
41702019-08-30 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-wingeneral.c (box_win): Assume win_info and
4173 win_info->handle cannot be NULL.
4174
cdaa6eb4
TT
41752019-08-30 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4178 refresh_window>: Declare.
4179 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4180 resize.
4181 (tui_data_item_window::rerender): Rename from
4182 tui_display_register.
4183 (tui_data_item_window::refresh_window): New method.
4184 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4185 no-op.
4186
89df7f90
TT
41872019-08-30 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4190 regs_column_count, current_group>: Move later. Now private.
4191 <get_current_group>: New method.
4192 * tui/tui-regs.c (tui_reg_command): Update.
4193 * tui/tui-layout.c (tui_set_layout): Update.
4194
1bf2866a
TT
41952019-08-30 Tom Tromey <tom@tromey.com>
4196
4197 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4198 (tui_data_window::rerender): Don't call
4199 check_and_display_highlight_if_needed.
4200 (tui_data_window::refresh_all): Remove call to
4201 erase_data_content.
4202
0670413d
TT
42032019-08-30 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4206 (tui_data_window::display_registers_from)
4207 (tui_data_window::display_reg_element_at_line)
4208 (tui_data_window::display_registers_from_line): Remove checks of
4209 "empty".
4210
18bb55c7
TT
42112019-08-30 Tom Tromey <tom@tromey.com>
4212
4213 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4214 Don't declare.
4215 * tui/tui-regs.c (tui_data_window::show_registers): Call
4216 rerender.
4217 (tui_data_window::rerender): Rename from display_all_data.
4218 (tui_data_window::rerender): Remove old implementation.
4219
1f6d2f10
TT
42202019-08-30 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4223 text.
4224 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4225
16d01f9c
BW
42262019-08-29 Bernhard Wodok <barto@gmx.net>
4227 Sergio Durigan Junior <sergiodj@redhat.com>
4228
4229 PR win32/24284
4230 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4231
d8f27c60
AB
42322019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4235 when searching for types.
4236
1f20c35e
AB
42372019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4238
4239 * f-lang.c (f_language_defn): Use f_print_typedef.
4240 * f-lang.h (f_print_typedef): Declare.
4241 * f-typeprint.c (f_print_typedef): Define.
4242
550105b7
CB
42432019-08-27 Christian Biesinger <cbiesinger@google.com>
4244
4245 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4246
4acfdd20
AB
42472019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * cli/cli-utils.c (info_print_options_defs): Delete.
4250 (make_info_print_options_def_group): Delete.
4251 (extract_info_print_options): Delete.
4252 (info_print_command_completer): Delete.
4253 (info_print_args_help): Add extra parameter, and optionally
4254 include text about -n flag.
4255 * cli/cli-utils.h (struct info_print_options): Delete.
4256 (extract_info_print_options): Delete declaration.
4257 (info_print_command_completer): Delete declaration.
4258 (info_print_args_help): Add extra parameter, extend header
4259 comment.
4260 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4261 search_symbols.
4262 * stack.c (struct info_print_options): New type.
4263 (info_print_options_defs): New file scoped variable.
4264 (make_info_print_options_def_group): New static function.
4265 (info_print_command_completer): New static function.
4266 (info_locals_command): Update to use new local functions.
4267 (info_args_command): Likewise.
4268 (_initialize_stack): Add extra parameter to calls to
4269 info_print_args_help.
4270 * symtab.c (search_symbols): Add extra parameter, use this to
4271 possibly excluse non-debug symbols.
4272 (symtab_symbol_info): Add extra parameter, which is passed on to
4273 search_symbols.
4274 (struct info_print_options): New type.
4275 (info_print_options_defs): New file scoped variable.
4276 (make_info_print_options_def_group): New static function.
4277 (info_print_command_completer): New static function.
4278 (info_variables_command): Update to use local functions, and pass
4279 extra parameter through to symtab_symbol_info.
4280 (info_functions_command): Likewise.
4281 (info_types_command): Pass additional argument through to
4282 symtab_symbol_info.
4283 (rbreak_command): Pass extra argument to search_symbols.
4284 (_initialize_symtab): Add extra arguments for calls to
4285 info_print_args_help, and update help text for 'info variables',
4286 'whereis', and 'info functions' commands.
4287 * symtab.h (search_symbols): Add extra argument to declaration.
4288 * NEWS: Mention new flags.
4289
9aa55206
CB
42902019-08-26 Christian Biesinger <cbiesinger@google.com>
4291
4292 * symtab.c (lookup_static_symbol): Call the new function (and move
4293 it down to be next to lookup_global_symbol).
4294 (struct global_sym_lookup_data): Add block_enum member and rename to...
4295 (struct global_or_static_sym_lookup_data): ...this.
4296 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4297 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4298 (lookup_symbol_global_or_static_iterator_cb): ...this.
4299 (lookup_global_or_static_symbol): New function.
4300 (lookup_global_symbol): Call new function.
4301
5c31b358
TV
43022019-08-26 Tom de Vries <tdevries@suse.de>
4303
4304 PR c++/24852
4305 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4306 when pc_probe.prob == NULL.
4307
23c13d42
SM
43082019-08-25 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4311 variable symbol_linkage to symbol_linkage_.
4312
beadd3e8
SM
43132019-08-25 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4316 represent whether the symbol is static, dynamic, or we don't
4317 know.
4318
e3ec872f
YS
43192019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4320
4321 * gdb/rx-tdep.c (rx_register_names): New.
4322 (rx_register_name): Delete.
4323 (rx_psw_type): Delete.
4324 (rx_fpsw_type): Delete.
4325 (rx_register_type): Delete.
4326 (rx_gdbarch_init): Convert target-descriptions.
4327 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4328 * gdb/features/Makefile: Add rx.xml.
4329 * gdb/features/rx.xml: New.
4330 * gdb/features/rx.c: Generated.
4331 * gdb/NEWS: Mention target description support.
4332
d0509ba4
CB
43332019-08-22 Christian Biesinger <cbiesinger@google.com>
4334
4335 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4336 *slot_ptr.
4337
2d41fa11
SDJ
43382019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4339
4340 * configure.ac: Don't check for 'dlfcn.h' (moved to
4341 gdbsupport/common.m4).
4342 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4343 'gdbsupport/'.
4344 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4345 * compile/compile-c-support.c: Include
4346 'gdbsupport/gdb-dlfcn.h'.
4347 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4348 * gdb-dlfcn.c: Move to...
4349 * gdbsupport/gdb-dlfcn.c: ... here.
4350 * gdb-dlfcn.h: Move to...
4351 * gdbsupport/gdb-dlfcn.h: ... here.
4352
de8af808
SL
43532019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4354
4355 * nios2-tdep.c (struct reg_value): Improve comments. Make
4356 the offset field signed.
4357
27204489
CB
43582019-08-22 Christian Biesinger <cbiesinger@google.com>
4359
4360 * python/lib/gdb/__init__.py (_execute_file): New function.
4361 * python/python.c (python_run_simple_file): Call gdb._execute_file
4362 on Windows.
4363
43771869
AB
43642019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4367 all uses as this was never set to anything but a zero value.
4368
26c957f1
PA
43692019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4370
4371 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4372
c07aae6e
CB
43732019-08-21 Christian Biesinger <cbiesinger@google.com>
4374
4375 * tui/tui-data.h (tui_gen_win_info): Add an =default
4376 move constructor, required by some GCC versions.
4377
3960cb7a
JF
43782019-08-21 Jinke Fan <fanjinke51@yeah.net>
4379
4380 * go32-nat.c (go32_sysinfo): Add hygon_p.
4381
04c72a68
TT
43822019-08-20 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4385 line_from_reg_element_no, first_reg_element_no_inline,
4386 display_all_data, delete_data_content_windows,
4387 erase_data_content>: Now private.
4388
072272ce
TT
43892019-08-20 Tom Tromey <tom@tromey.com>
4390
4391 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4392 (tui_unhighlight_win, tui_highlight_win)
4393 (tui_win_info::make_window): Update.
4394 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4395
973961bd
TT
43962019-08-20 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4399 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4400 (MAX_PID_WIDTH): Move to tui-stack.c.
4401 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4402 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4403 (MAX_PID_WIDTH): Move from tui-data.h.
4404
ab0e1f1a
TT
44052019-08-20 Tom Tromey <tom@tromey.com>
4406
4407 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4408 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4409 (box_win): Update.
4410 (tui_gen_win_info::make_window): Rename from tui_make_window.
4411 (tui_win_info::make_window): New method.
4412 (tui_gen_win_info::make_visible): Update.
4413 * tui/tui-source.c (tui_source_window::set_contents): Update.
4414 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4415 (tui_data_window::display_registers_from): Update.
4416 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4417 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4418 Declare.
4419 <can_box>: Remove.
4420 <title>: Remove.
4421 (struct tui_win_info) <make_window>: Declare.
4422 <can_box>: Now virtual.
4423 <title>: New member.
4424 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4425 * tui/tui-command.c (tui_cmd_window::resize): Update.
4426
100c2bf3
TT
44272019-08-20 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4430 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4431 (tui_data_window::check_register_values): Update.
4432
fa4dc567
TT
44332019-08-20 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-regs.h (struct tui_data_window): Use
4436 DISABLE_COPY_AND_ASSIGN.
4437 <regs_content>: Change type, removing unique_ptr.
4438 <tui_data_window>: Add move constructor.
4439 * tui/tui-regs.c (tui_data_window::show_registers)
4440 (tui_data_window::show_register_group)
4441 (tui_data_window::display_registers_from)
4442 (tui_data_window::display_registers_from)
4443 (tui_data_window::first_data_item_displayed)
4444 (tui_data_window::delete_data_content_windows)
4445 (tui_data_window::rerender, tui_data_window::refresh_window)
4446 (tui_data_window::check_register_values): Update.
4447
ca02d7c8
TT
44482019-08-20 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4451 show_register_group>: Declare.
4452 (tui_show_register_group): Don't declare.
4453 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4454 tui_show_registers.
4455 (tui_data_window::show_register_group): Rename from
4456 tui_show_register_group.
4457 (tui_data_window::check_register_values, tui_reg_command):
4458 Update.
4459 * tui/tui-layout.c (tui_set_layout): Update.
4460
63356bfd
TT
44612019-08-20 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4464 Declare.
4465 (tui_check_register_values): Don't declare.
4466 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4467 from tui_check_register_values.
4468 * tui/tui-hooks.c (tui_register_changed): Update.
4469
42cc14a7
TT
44702019-08-20 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-regs.c (tui_reg_layout): Move later.
4473 (tui_show_registers): Don't enable TUI mode or change layout.
4474
b9ad3686
TT
44752019-08-20 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-regs.h (struct tui_data_item_window)
4478 <~tui_data_item_window>: Remove.
4479 <content>: Now a unique_xmalloc_ptr.
4480 * tui/tui-regs.c (tui_register_format): Return a
4481 unique_xmalloc_ptr.
4482 (tui_get_register): Update.
4483 (~tui_data_item_window): Remove.
4484 (tui_data_window::display_registers_from, tui_display_register):
4485 Update.
4486 * tui/tui-io.h (tui_expand_tabs): Update.
4487 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4488 Remove "col" parameter.
4489
8e114aab
TT
44902019-08-20 Tom Tromey <tom@tromey.com>
4491
4492 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4493 field.
4494 * tui/tui-regs.c (~tui_data_item_window): Update.
4495
1a4f81dd
TT
44962019-08-20 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4499 earlier.
4500
0f8d8876
TT
45012019-08-20 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4504
605dc2c2
TT
45052019-08-20 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-source.h (struct tui_source_window): Update.
4508 * tui/tui-regs.c (tui_show_registers): Update.
4509 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4510 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4511 (NO_REGS_STRING): Remove defines.
4512
aedbe3bb
CM
45132019-08-20 Conrad Meyer <cem@FreeBSD.org>
4514
4515 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4516 unnecessary thread walk if remote doesn't support the packet.
4517
7ce8f214
TT
45182019-08-19 Tom Tromey <tromey@adacore.com>
4519
4520 * python/py-value.c (value_has_field): Fix indentation.
4521
f21c2bd7
TT
45222019-08-19 Tom Tromey <tromey@adacore.com>
4523
4524 * printcmd.c (do_one_display, info_display_command): Update.
4525 * block.h (contained_in): Return bool. Add allow_nested
4526 parameter.
4527 * block.c (contained_in): Return bool. Add allow_nested
4528 parameter.
4529
d806ea2d
TT
45302019-08-19 Tom Tromey <tom@tromey.com>
4531
4532 * configure: Rebuild.
4533 * configure.ac: Disallow the combination of -static-libstdc++ and
4534 source highlight.
4535 * source-cache.c (get_language_name): Handle rust.
4536 (source_cache::get_source_lines): Ignore highlighting exceptions.
4537
398fdd60
TT
45382019-08-16 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4541 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4542 (struct tui_source_window_base) <make_visible, refresh_window,
4543 resize>: Remove methods.
4544 <execution_info>: Remove field.
4545 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4546 (tui_show_source_line, tui_source_window_base)
4547 (~tui_source_window_base): Update.
4548 (tui_source_window_base::resize)
4549 (tui_source_window_base::make_visible)
4550 (tui_source_window_base::refresh_window): Remove.
4551 (tui_source_window_base::update_exec_info): Update.
4552 * tui/tui-source.c (tui_source_window::set_contents): Update.
4553 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4554
e699d331
TT
45552019-08-16 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4558 deprecated_query_hook.
4559
bb01dbfc
TT
45602019-08-16 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4563 (tui_update_source_windows_with_line): Update.
4564 * tui/tui-source.h (struct tui_source_window)
4565 <show_symtab_source>: Declare.
4566 (tui_show_symtab_source): Don't declare.
4567 * tui/tui-source.c (tui_show_symtab_source): Rename from
4568 tui_show_symtab_source.
4569
81c82c4b
TT
45702019-08-16 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-winsource.h (struct tui_source_window_base)
4573 <set_contents>: Declare.
4574 * tui/tui-winsource.c
4575 (tui_source_window_base::update_source_window_as_is): Update.
4576 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4577 Declare.
4578 (tui_set_source_content): Don't declare.
4579 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4580 tui_set_source_content.
4581 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4582 Declare.
4583 (tui_set_disassem_content): Don't declare.
4584 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4585 tui_set_disassem_content.
4586
2ddaf614
TT
45872019-08-16 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-winsource.h (struct tui_source_window_base)
4590 <update_breakpoint_info>: Declare.
4591 (tui_update_breakpoint_info): Don't declare.
4592 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4593 (tui_update_all_breakpoint_info): Update.
4594 (tui_source_window_base::update_breakpoint_info): Rename from
4595 tui_update_breakpoint_info.
4596 (tui_source_window_base::update_exec_info): Update.
4597
017f9828
TT
45982019-08-16 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-winsource.h (struct tui_source_window_base)
4601 <update_source_window>: Declare.
4602 (tui_update_source_window): Don't declare.
4603 * tui/tui-winsource.c
4604 (tui_source_window_base::update_source_window): Rename from
4605 tui_update_source_window.
4606 (tui_source_window_base::rerender): Update.
4607 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4608 * tui/tui-disasm.c (tui_show_disassem)
4609 (tui_show_disassem_and_update_source)
4610 (tui_disasm_window::maybe_update): Update.
4611
ed8358e9
TT
46122019-08-16 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-winsource.h (struct tui_source_window_base)
4615 <update_source_window_as_is>: Declare.
4616 (tui_update_source_window_as_is): Don't declare.
4617 * tui/tui-winsource.c (tui_update_source_window): Update
4618 (tui_source_window_base::update_source_window_as_is): Rename from
4619 tui_update_source_window_as_is.
4620 (tui_source_window_base::refill): Update.
4621 * tui/tui-source.c (tui_show_symtab_source): Update.
4622 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4623 Update.
4624
20149b6b
TT
46252019-08-16 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-winsource.h (tui_update_source_window)
4628 (tui_update_source_window_as_is): Remove "noerror" parameter.
4629 * tui/tui-winsource.c (tui_update_source_window)
4630 (tui_update_source_window_as_is): Remove "noerror" parameter.
4631 (tui_update_source_windows_with_addr)
4632 (tui_update_source_windows_with_line)
4633 (tui_source_window_base::rerender)
4634 (tui_source_window_base::refill): Update.
4635 * tui/tui-source.h (tui_set_source_content)
4636 (tui_show_symtab_source): Remove "noerror" parameter.
4637 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4638 parameter.
4639 (tui_show_symtab_source): Likewise.
4640 (tui_source_window::maybe_update): Update.
4641 * tui/tui-disasm.c (tui_show_disassem)
4642 (tui_show_disassem_and_update_source)
4643 (tui_disasm_window::do_scroll_vertical)
4644 (tui_disasm_window::maybe_update): Update.
4645
2d83e710
TT
46462019-08-16 Tom Tromey <tom@tromey.com>
4647
4648 * tui/tui.c (tui_is_window_visible): Update.
4649 * tui/tui-wingeneral.c (tui_make_window)
4650 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4651 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4652 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4653 (tui_set_win_height_command, parse_scrolling_args): Update.
4654 * tui/tui-source.c (tui_source_window::style_changed): Update.
4655 * tui/tui-regs.c (tui_show_registers)
4656 (tui_data_window::first_data_item_displayed)
4657 (tui_data_window::delete_data_content_windows)
4658 (tui_check_register_values, tui_reg_command): Update.
4659 * tui/tui-disasm.c (tui_show_disassem): Update.
4660 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4661 method.
4662 <is_visible>: Remove field.
4663 * tui/tui-data.c (tui_next_win, tui_prev_win)
4664 (tui_delete_invisible_windows): Update.
4665
d4ab829a
TT
46662019-08-16 Tom Tromey <tom@tromey.com>
4667
4668 * tui/tui-winsource.h (struct tui_source_window_base)
4669 <m_has_locator>: Remove.
4670 * tui/tui-layout.c (show_source_disasm_command, show_data)
4671 (show_source_or_disasm_and_command): Update.
4672
aa7ca1bb
AH
46732019-08-16 Alan Hayward <alan.hayward@arm.com>
4674
4675 * NEWS (Other MI changes): New subsection.
4676 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4677 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4678 * arch-utils.c (default_get_pc_address_flags): New function.
4679 * arch-utils.h (default_get_pc_address_flags): New declaration.
4680 * gdbarch.sh: Add get_pc_address_flags.
4681 * gdbarch.c: Regenerate.
4682 * gdbarch.h: Likewise.
4683 * stack.c (print_pc): New function.
4684 (print_frame_info) (print_frame): Call print_pc.
4685
6eac171f
TV
46862019-08-16 Tom de Vries <tdevries@suse.de>
4687
4688 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4689 print_objfile_section_info.
4690
3df505f6
TT
46912019-08-15 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4694 calling update_cmdwin_start_line.
4695 * tui/tui-winsource.h (struct tui_source_window_base)
4696 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4697 <rerender>: Declare.
4698 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4699 Call rerender.
4700 (tui_source_window_base::set_new_height): Remove.
4701 (tui_source_window_base::rerender): Rename from
4702 do_make_visible_with_new_height.
4703 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4704 resize method.
4705 (tui_win_info::make_invisible_and_set_new_height)
4706 (tui_win_info::make_visible_with_new_height): Remove.
4707 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4708 Declare.
4709 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4710 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4711 do_make_visible_with_new_height>: Don't declare.
4712 <rerender>: Declare.
4713 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4714 set_new_height.
4715 (tui_data_window::do_make_visible_with_new_height): Remove.
4716 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4717 call tui_show_locator_content.
4718 (tui_gen_win_info::resize): Call rerender.
4719 (show_source_or_disasm_and_command): Don't call
4720 tui_show_locator_content.
4721 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4722 method.
4723 (struct tui_win_info) <rerender>: Declare.
4724 <set_new_height, make_invisible_and_set_new_height,
4725 make_visible_with_new_height>: Don't declare.
4726 * tui/tui-data.c (tui_win_list::rerender): New method.
4727 * tui/tui-command.h (struct tui_cmd_window)
4728 <do_make_visible_with_new_height>: Don't declare.
4729 * tui/tui-command.c
4730 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4731
272560b5
TT
47322019-08-15 Tom Tromey <tromey@adacore.com>
4733
4734 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4735 * ada-lang.c (ada_enum_name): Likewise.
4736
08235187
CB
47372019-08-15 Christian Biesinger <cbiesinger@google.com>
4738
4739 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4740 leading underscore.
4741 (GdbOutputErrorFile): Likewise.
4742 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4743 accordingly.
4744 (execute_unwinders): Rename to have a leading underscore.
4745 (auto_load_packages): Likewise.
4746 (global scope): Adjust call to auto_load_packages accordingly.
4747 (GdbSetPythonDirectory): Likewise.
4748 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4749 instead of execute_unwinders.
4750
db502012
TT
47512019-08-15 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4754 (show_data): Don't change window visibility.
4755 (tui_gen_win_info::resize): Remove special case for command
4756 window. Use wresize, when available.
4757 (show_source_or_disasm_and_command): Don't change window
4758 visibility.
4759 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4760 <make_visible>: New method.
4761 * tui/tui-command.c (tui_cmd_window::resize): New method.
4762
3891b65e
TT
47632019-08-15 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4766 (struct tui_source_windows): New.
4767 * tui/tui-winsource.c (tui_display_main): Update.
4768 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4769 (new_height_ok, parse_scrolling_args): Update.
4770 * tui/tui-layout.c (show_layout, show_data): Update.
4771 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4772 (tui_add_to_source_windows): Don't declare.
4773 * tui/tui-data.c (source_windows, tui_source_windows)
4774 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4775
ee556432
TT
47762019-08-15 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4779 Rename from reset.
4780 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4781 * tui/tui-layout.c (show_source_disasm_command, show_data):
4782 Update.
4783 (tui_gen_win_info::resize): Rename.
4784 (show_source_or_disasm_and_command): Update.
4785 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4786 reset.
4787
46f438e3
TT
47882019-08-15 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4791 * tui/tui-interp.c (tui_interp::init): Don't call
4792 tui_initialize_static_data.
4793 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4794
f4ce562c
TT
47952019-08-15 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4798 examine tui_win_list.
4799
c398c3d0
TT
48002019-08-15 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4803 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4804 tui_clear_source_content.
4805 (tui_clear_source_content): Remove.
4806 (tui_source_window_base::do_erase_source_content): Hoist call to
4807 content.clear().
4808 * tui/tui-stack.c (tui_show_frame_info): Don't call
4809 tui_clear_source_content.
4810
e25d2004
TT
48112019-08-15 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-winsource.h (struct tui_source_window_base)
4814 <do_erase_source_content>: New method.
4815 <erase_source_content>: New method.
4816 (tui_erase_source_content): Don't declare.
4817 * tui/tui-winsource.c (tui_clear_source_content): Update.
4818 (tui_source_window_base::do_erase_source_content): Rename from
4819 tui_erase_source_content.
4820 (tui_source_window_base::show_source_content): Update.
4821 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4822 * tui/tui-source.h (struct tui_source_window)
4823 <erase_source_content>: New method.
4824 * tui/tui-disasm.h (struct tui_disasm_window)
4825 <erase_source_content>: New method.
4826
002f15c2
TT
48272019-08-15 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4830 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4831 constructor.
4832 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4833 * tui/tui-source.c (tui_set_source_content): Update.
4834 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4835
c9033fe8
TT
48362019-08-15 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4839 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4840 tui-source.c.
4841 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4842 Declare.
4843 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4844 method.
4845 (tui_source_window::maybe_update): Update.
4846
088f37dd
TT
48472019-08-15 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4850 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4851 tui-disasm.c.
4852 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4853 Declare.
4854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4855 method.
4856 (tui_disasm_window::maybe_update): Update.
4857
a54700c6
TT
48582019-08-15 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-winsource.h (struct tui_source_window_base)
4861 <maybe_update>: Declare.
4862 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4863 method.
4864 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4865 Declare.
4866 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4867 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4868 Declare.
4869 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4870
e2a678a5
TT
48712019-08-15 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4874
f2dda477
TT
48752019-08-15 Tom Tromey <tom@tromey.com>
4876
4877 * tui/tui-wingeneral.c: Include tui-stack.h.
4878 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4879 (struct tui_locator_window): Move from tui-data.h.
4880 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4881 (tui_initialize_static_data): Move from tui-data.c.
4882 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4883 (struct tui_locator_window): Move to tui-stack.c.
4884 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4885 (tui_initialize_static_data): Move to tui-stack.c.
4886
ed4a1084
TT
48872019-08-15 Tom Tromey <tom@tromey.com>
4888
4889 * tui/tui-layout.c (show_source_disasm_command)
4890 (show_source_or_disasm_and_command): Use make_visible method, not
4891 tui_make_window.
4892 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4893 Remove.
4894
65962b20
TT
48952019-08-15 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-wingeneral.h (tui_make_window): Update.
4898 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4899 parameter.
4900 (tui_gen_win_info::make_visible): Update.
4901 * tui/tui-regs.c (tui_data_window::display_registers_from):
4902 Update.
4903 * tui/tui-layout.c (show_source_disasm_command)
4904 (show_source_or_disasm_and_command): Update.
4905 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4906 (enum tui_box): Remove.
4907 (struct tui_win_info) <can_box>: New method.
4908 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4909 method.
4910
2208ee91
TV
49112019-08-15 Tom de Vries <tdevries@suse.de>
4912
4913 * linux-nat-trad.c: Include gdbarch.h.
4914
75faf5c4
AH
49152019-08-14 Alan Hayward <alan.hayward@arm.com>
4916
4917 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4918 register sizes.
4919
b1c896b3
TT
49202019-08-14 Tom Tromey <tromey@adacore.com>
4921
4922 * darwin-nat.c: Include gdbarch.h.
4923 * darwin-nat-info.c: Include gdbarch.h.
4924
6405cd73
TT
49252019-08-13 Tom Tromey <tom@tromey.com>
4926
4927 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4928 Remove.
4929 * tui/tui-data.c (tui_initialize_static_data): Update.
4930
5216580d
TT
49312019-08-13 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-winsource.h (struct tui_exec_info_window)
4934 <~tui_exec_info_window, maybe_allocate_content, get_content,
4935 m_content>: Remove.
4936 (struct tui_source_window_base) <set_exec_info_content,
4937 show_exec_info_content>: Don't declare.
4938 * tui/tui-winsource.c
4939 (tui_exec_info_window::maybe_allocate_content): Remove.
4940 (tui_source_window_base::update_exec_info): Rename from
4941 set_exec_info_content.
4942 (tui_source_window_base::show_exec_info_content)
4943 (tui_source_window_base::update_exec_info): Remove.
4944
93858ad3
TT
49452019-08-13 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4948 declare.
4949 * tui/tui-winsource.c (tui_update_source_window_as_is)
4950 (tui_update_source_windows_with_addr, tui_erase_source_content):
4951 Update.
4952 (tui_clear_exec_info_content): Remove.
4953
e321e7ce
TT
49542019-08-13 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4957 declare.
4958 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4959 call tui_erase_exec_info_content.
4960 (tui_clear_exec_info_content): Rename from
4961 tui_erase_exec_info_content.
4962 (tui_clear_exec_info_content): Delete.
4963
8270ac62
TT
49642019-08-13 Tom Tromey <tom@tromey.com>
4965
4966 * tui/tui-winsource.h (struct tui_source_window_base)
4967 <show_exec_info_content>: Declare.
4968 (tui_show_exec_info_content): Don't declare.
4969 * tui/tui-winsource.c
4970 (tui_source_window_base::show_exec_info_content): Rename from
4971 tui_show_exec_info_content.
4972 (tui_source_window_base::update_exec_info): Update.
4973
7b56485d
TT
49742019-08-13 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4977 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4978 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4979 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4980 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4981 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4982 ... here.
4983
7ba913dc
TT
49842019-08-13 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-winsource.h (struct tui_source_window_base)
4987 <update_exec_info>: Declare.
4988 (tui_update_exec_info): Don't declare.
4989 * tui/tui-winsource.c (tui_update_source_window_as_is)
4990 (tui_source_window_base::refresh_all)
4991 (tui_update_all_breakpoint_info): Update.
4992 (tui_source_window_base::update_exec_info): Rename from
4993 tui_update_exec_info.
4994 * tui/tui-stack.c (tui_show_frame_info): Update.
4995
37a4a131
TT
49962019-08-13 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-winsource.h (struct tui_source_window_base)
4999 <set_exec_info_content>: Declare.
5000 (tui_set_exec_info_content): Don't declare.
5001 * tui/tui-winsource.c
5002 (tui_source_window_base::set_exec_info_content): Rename from
5003 tui_set_exec_info_content.
5004 (tui_update_exec_info): Update.
5005
0bd27e07
TT
50062019-08-13 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-winsource.h (struct tui_source_window_base)
5009 <show_source_content>: Declare.
5010 (tui_show_source_content): Don't declare.
5011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5012 (tui_source_window_base::show_source_content): Rename from
5013 tui_show_source_content.
5014 (tui_source_window_base::refresh_all): Update.
5015 * tui/tui-layout.c (show_source_disasm_command)
5016 (show_source_or_disasm_and_command): Update.
5017
b4ef5aeb
TT
50182019-08-13 Tom Tromey <tom@tromey.com>
5019
5020 * tui/tui-winsource.c (tui_erase_source_content)
5021 (tui_show_source_content, tui_source_window_base::refresh_all):
5022 Update.
5023 * tui/tui-wingeneral.h
5024 (tui_check_and_display_highlight_if_needed): Don't declare.
5025 * tui/tui-wingeneral.c
5026 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5027 check_and_display_highlight_if_needed.
5028 * tui/tui-win.c (tui_rehighlight_all)
5029 (tui_win_info::make_visible_with_new_height): Update.
5030 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5031 (tui_data_window::erase_data_content)
5032 (tui_data_window::display_all_data): Update.
5033 * tui/tui-data.h (struct tui_win_info)
5034 <check_and_display_highlight_if_needed>: Declare.
5035
fede5273
TT
50362019-08-13 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui-win.c (tui_resize_all): Call
5039 tui_delete_invisible_windows.
5040 * tui/tui-layout.c (show_layout): Call
5041 tui_delete_invisible_windows.
5042 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5043 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5044
22c3f490
TT
50452019-08-13 Tom Tromey <tom@tromey.com>
5046
5047 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5048 tui_add_win_to_layout.
5049
16cb7910
TT
50502019-08-13 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5053 * tui/tui-layout.c (tui_default_win_height): Now static.
5054
cc0c3ffb
TT
50552019-08-13 Tom Tromey <tom@tromey.com>
5056
5057 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5058 single switch.
5059 (show_source_disasm_command, show_source_or_disasm_and_command):
5060 Don't check current layout.
5061
3f3ffe54
TT
50622019-08-13 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui-wingeneral.c (make_all_visible): Remove.
5065 (tui_make_all_invisible): Simplify.
5066 * tui/tui-layout.c (tui_make_all_invisible): Move from
5067 tui-wingeneral.c; simplify.
5068 (show_layout): Hoist call to tui_make_all_invisible.
5069 (show_data): Don't call tui_make_all_invisible.
5070
69258091
TT
50712019-08-13 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5074 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5075
62cf57fe
TT
50762019-08-13 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5079 tui-data.c.
5080 (show_source_disasm_command, show_data)
5081 (show_source_or_disasm_and_command): Don't use
5082 tui_set_current_layout_to.
5083 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5084 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5085 tui-layout.c.
5086 (tui_set_current_layout_to): Remove.
5087
2afade5d
TT
50882019-08-13 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-layout.c (tui_set_layout): Update.
5091 * tui/tui-data.h (struct tui_layout_def): Remove.
5092 (tui_layout_def): Don't declare.
5093 * tui/tui-data.c (layout_def): Remove.
5094 (tui_layout_def): Remove.
5095
a3504e96
TT
50962019-08-13 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <clear_detail>: No longer "override".
5100 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5101 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5102 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5103 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5104 Remove.
5105 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5106
29c92911
TT
51072019-08-13 Tom Tromey <tromey@adacore.com>
5108
5109 * tracepoint.c: Don't include readline.h or history.h.
5110
86c6b807
TT
51112019-08-12 Tom Tromey <tom@tromey.com>
5112
5113 * configure: Rebuild.
5114 * configure.ac: Check for readline 7.
5115 * NEWS: Mention readline 7 requirement.
5116 * README: Update.
5117
5db2718c
TT
51182019-08-12 Tom Tromey <tom@tromey.com>
5119
5120 * mingw-hdep.c (gdb_select): Remove readline hack.
5121
dac36daf
PFC
51222019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5123
5124 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5125 when the function fails.
5126
1022c627
AA
51272019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5128
5129 * s390-tdep.c (s390_type_align): New function.
5130 (s390_gdbarch_init): Set it as type_align gdbarch method.
5131
eba4caf2
TV
51322019-08-09 Tom de Vries <tdevries@suse.de>
5133
5134 PR gdb/24591
5135 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5136 pc_low with relocation offset.
5137
123cd851
TT
51382019-08-07 Tom Tromey <tromey@adacore.com>
5139
5140 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5141 (print_frame_args): Update.
5142 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5143 Update.
5144 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5145 * frame.h (struct frame_arg): Add initializers.
5146 <error>: Now a unique_xmalloc_ptr.
5147
3d31bc39
AH
51482019-08-07 Alan Hayward <alan.hayward@arm.com>
5149
5150 * NEWS: Expand the Pointer Authentication entry.
5151 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5152 (aarch64_frame_unmask_lr): ... to this.
5153 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5154 Call aarch64_frame_unmask_lr.
5155 * frame.c (struct frame_info): Add "masked" variable.
5156 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5157 (fprint_frame): Check for masked pc.
5158 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5159 declarations.
5160 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5161 * stack.c (print_frame): Check for masked pc.
5162
0cf9feb9
TT
51632019-08-06 Tom Tromey <tom@tromey.com>
5164
5165 * stabsread.c (patch_block_stabs, read_one_struct_field)
5166 (read_enum_type): Use obstack_strndup.
5167 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5168 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5169 * dwarf2read.c (guess_full_die_structure_name)
5170 (anonymous_struct_prefix): Use obstack_strndup.
5171 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5172 * c-exp.y (yylex): Use obstack_strndup.
5173 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5174 (write_var_or_type): Use obstack_strndup.
5175
efba19b0
TT
51762019-08-06 Tom Tromey <tom@tromey.com>
5177
5178 * symfile.c (reread_symbols): Use obstack_strdup.
5179 * stabsread.c (read_type): Use obstack_strdup.
5180 * gdb_obstack.h (obstack_strdup): New overload.
5181 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5182 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5183 (dwarf2_canonicalize_name): Use obstack_strdup.
5184 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5185 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5186 Use obstack_strdup.
5187
f25102f7
TT
51882019-08-06 Tom Tromey <tom@tromey.com>
5189
5190 * gdb_obstack.h (obstack_strdup): Define.
5191 * gdb_obstack.c (obstack_strdup): Don't define.
5192
021887d8
TT
51932019-08-06 Tom Tromey <tom@tromey.com>
5194
5195 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5196 obstack_strdup.
5197 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5198 obstack_strdup.
5199 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5200 * stabsread.c (common_block_start): Use obstack_strdup.
5201 * objfiles.c (set_objfile_main_name, objfile): Use
5202 obstack_strdup.
5203 * namespace.c (add_using_directive): Use obstack_strdup.
5204 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5205 * jit.c (finalize_symtab): Use obstack_strdup.
5206 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5207 (guess_partial_die_structure_name, partial_die_info::fixup)
5208 (dwarf2_name): Use obstack_strdup.
5209 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5210 obstack_strdup.
5211 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5212 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5213 obstack_strdup.
5214 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5215
d2834edc
PW
52162019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5217
5218 * unittests/help-doc-selftests.c: New file.
5219 * Makefile.in: Add the new file.
5220
590042fc
PW
52212019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5222
5223 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5224 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5225 the full first line, except when FOR_VALUE_PREFIX. In this case,
5226 the trailing '.' is not output, and the first character is uppercased.
5227 (print_help_for_command): Update call to print_doc_line.
5228 (print_doc_of_command): Likewise.
5229 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5230 * cli/cli-option.c (append_indented_doc): Do not append newline.
5231 (build_help_option): Append newline after first appended_indented_doc
5232 only if a second call is done.
5233 (build_help): Append 2 new lines before each option, except the first
5234 one.
5235 * compile/compile.c (_initialize_compile): Add new lines after
5236 %OPTIONS%, when not at the end of the help.
5237 Change help doc or code
5238 producing the help doc to respect the invariants.
5239 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5240 Also removed the new line after 'Options:', as all other commands
5241 do not put an empty line between 'Options:' and the first option.
5242 * printcmd.c (_initialize_printcmd): Likewise.
5243 * stack.c (_initialize_stack): Likewise.
5244 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5245 incorrectly telling COMMAND is optional.
5246 * ada-lang.c (_initialize_ada_language): Change help doc or code
5247 producing the help doc to respect the invariants.
5248 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5249 * breakpoint.c (_initialize_breakpoint): Likewise.
5250 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5251 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5252 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5253 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5254 _initialize_cli_style): Likewise.
5255 * corelow.c (core_target_info): Likewise.
5256 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5257 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5258 * filesystem.c (_initialize_filesystem): Likewise.
5259 * frame.c (_initialize_frame): Likewise.
5260 * gnu-nat.c (add_task_commands): Likewise.
5261 * infcall.c (_initialize_infcall): Likewise.
5262 * infcmd.c (_initialize_infcmd): Likewise.
5263 * interps.c (_initialize_interpreter): Likewise.
5264 * language.c (_initialize_language): Likewise.
5265 * linux-fork.c (_initialize_linux_fork): Likewise.
5266 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5267 * maint.c (_initialize_maint_cmds): Likewise.
5268 * memattr.c (_initialize_mem): Likewise.
5269 * printcmd.c (_initialize_printcmd): Likewise.
5270 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5271 _RegEx): Likewise.
5272 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5273 * record-btrace.c (_initialize_record_btrace): Likewise.
5274 * record-full.c (_initialize_record_full): Likewise.
5275 * record.c (_initialize_record): Likewise.
5276 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5277 * regcache.c (_initialize_regcache): Likewise.
5278 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5279 _initialize_remote): Likewise.
5280 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5281 * serial.c (_initialize_serial): Likewise.
5282 * skip.c (_initialize_step_skip): Likewise.
5283 * source.c (_initialize_source): Likewise.
5284 * stack.c (_initialize_stack): Likewise.
5285 * symfile.c (_initialize_symfile): Likewise.
5286 * symtab.c (_initialize_symtab): Likewise.
5287 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5288 * top.c (init_main): Likewise.
5289 * tracefile-tfile.c (tfile_target_info): Likewise.
5290 * tracepoint.c (_initialize_tracepoint): Likewise.
5291 * tui/tui-win.c (_initialize_tui_win): Likewise.
5292 * utils.c (add_internal_problem_command): Likewise.
5293 * valprint.c (value_print_option_defs): Likewise.
5294
404f2902
FCE
52952019-08-06 Frank Ch. Eigler <fche@redhat.com>
5296
5297 PR build/24886
5298 * configure.ac: Drop enable-libmcheck support.
5299 * configure, config.in: Rebuild.
5300 * libmcheck.m4: Remove.
5301 * acinclude.m4: Don't include it.
5302 * Makefile.in: Don't distribute it.
5303 * top.c (print_gdb_configuration): Don't mention it.
5304
046bebe1
TT
53052019-08-06 Tom Tromey <tom@tromey.com>
5306
5307 * utils.c (set_output_style): Sometimes pass stream to
5308 emit_style_escape.
5309 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5310 * record-btrace.c (btrace_insn_history): Update.
5311 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5312 method.
5313 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5314 Update initializers.
5315 <m_uiout>: New field.
5316 <m_di>: Move lower.
5317 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5318 Remove "uiout" parameter.
5319 (dump_insns): Update.
5320 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5321 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5322
ddbcedf5
CB
53232019-08-06 Christian Biesinger <cbiesinger@google.com>
5324
5325 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5326 (error_in_psymtab_expansion): Likewise.
5327 (lookup_symbol_via_quick_fns): Likewise.
5328 (basic_lookup_transparent_type_quick): Likewise.
5329 (basic_lookup_transparent_type_1): Likewise.
5330
b08b16c8
TT
53312019-08-06 Tom Tromey <tromey@adacore.com>
5332
5333 * source.c (last_source_error): Now bool.
5334 (print_source_lines_base): Make "noprint" bool. Only open
5335 source file when last_source_visited changes.
5336
cb44333d
TT
53372019-08-06 Tom Tromey <tromey@adacore.com>
5338
5339 * annotate.c (annotate_source_line): Use g_source_cache.
5340 * source-cache.c (source_cache::get_plain_source_lines): Change
5341 parameters. Populate m_offset_cache.
5342 (source_cache::ensure): New method.
5343 (source_cache::get_line_charpos): New method.
5344 (extract_lines): Move lower. Change parameters.
5345 (source_cache::get_source_lines): Move lower.
5346 * source-cache.h (class source_cache): Update comment.
5347 <get_line_charpos>: New method.
5348 <get_source_lines>: Update comment.
5349 <clear>: Clear m_offset_cache.
5350 <get_plain_source_lines>: Change parameters.
5351 <ensure>: New method
5352 <m_offset_cache>: New member.
5353 * source.c (forget_cached_source_info_for_objfile): Update.
5354 (info_source_command): Use g_source_cache.
5355 (find_source_lines, open_source_file_with_line_charpos): Remove.
5356 (print_source_lines_base, search_command_helper): Use g_source_cache.
5357 * source.h (open_source_file_with_line_charpos): Don't declare.
5358 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5359 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5360 Use g_source_cache.
5361
872dceaa
TT
53622019-08-06 Tom Tromey <tromey@adacore.com>
5363
5364 * source-cache.c (source_cache::get_plain_source_lines):
5365 Remove "first_line" and "last_line" parameters.
5366 (source_cache::get_source_lines): Cache plain text.
5367 * source-cache.h (class source_cache)
5368 <get_plain_source_lines>: Update.
5369
269249d9
TT
53702019-08-06 Tom Tromey <tromey@adacore.com>
5371
5372 * source-cache.c (extract_lines): No longer a method.
5373 Changed type of parameter. Include final newline.
5374 (selftests::extract_lines_test): New function.
5375 (_initialize_source_cache): Likewise.
5376 * source-cache.h (class source_cache)
5377 <extract_lines>: Don't declare.
5378
c0e8dcd8
TT
53792019-08-06 Tom Tromey <tromey@adacore.com>
5380
5381 * breakpoint.c (init_breakpoint_sal): Update.
5382 (breakpoint): Update.
5383 * breakpoint.h (struct breakpoint) <filter>: Now a
5384 unique_xmalloc_ptr.
5385
0b27c27d
CB
53862019-08-05 Christian Biesinger <cbiesinger@google.com>
5387
5388 * NEWS: Mention dictionary access on blocks.
5389 * python/py-block.c (blpy_getitem): New function.
5390 (block_object_as_mapping): New struct.
5391 (block_object_type): Use new struct for tp_as_mapping field.
5392
4ee94178
CB
53932019-08-05 Christian Biesinger <cbiesinger@google.com>
5394
5395 * objfiles.h (objfile): Add a comment describing partial symbols.
5396
8abfcabc
TT
53972019-08-05 Tom Tromey <tromey@adacore.com>
5398
5399 * compile/compile.c (_initialize_compile): Use _(), not N_().
5400 * thread.c (_initialize_thread): Use _(), not N_().
5401 * stack.c (_initialize_stack): Use _(), not N_().
5402 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5403
2b79f376
SM
54042019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * dwarf2read.c (struct dw2_symtab_iterator):
5407 <want_specific_block>: Remove.
5408 <block_index>: Change type to gdb::optional.
5409 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5410 change type of BLOCK_INDEX parameter to gdb::optional.
5411 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5412 (dw2_lookup_symbol): Don't pass argument for
5413 WANT_SPECIFIC_BLOCK.
5414 (dw2_expand_symtabs_for_function): Don't pass argument for
5415 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5416 (class dw2_debug_names_iterator)
5417 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5418 parameter, change BLOCK_INDEX type to gdb::optional.
5419 <m_want_specific_block>: Remove.
5420 <m_block_index>: Change type to gdb::optional.
5421 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5422 gdb::optional. Re-write in function of gdb::optional.
5423 (dw2_debug_names_lookup_symbol): Don't pass argument for
5424 WANT_SPECIFIC_BLOCK.
5425 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5426 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5427 BLOCK_INDEX.
5428
ae60f04e
PW
54292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5430
5431 * NEWS: Mention changes to "info sources" command.
5432
28cd9371
PW
54332019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5434
5435 * symtab.c (filename_partial_match_opts): New struct type.
5436 (struct output_source_filename_data): New members
5437 regexp, c_regexp, partial_match.
5438 (output_source_filename): Use new members to decide to print file.
5439 (info_sources_option_defs): New variable.
5440 (make_info_sources_options_def_group, print_info_sources_header,
5441 info_sources_command_completer):
5442 New functions.
5443 (info_sources_command): Read new optional arguments.
5444 (_initialize_symtab): Update info sources help.
5445
ca683e3a
AO
54462019-08-02 Alexandre Oliva <oliva@adacore.com>
5447
5448 * ada-lang.c (exception_support_info_v0): Renamed from...
5449 (default_exception_support_info): ... this. Create new
5450 definition for v1.
5451 (ada_has_this_exception_support): Look up catch_handlers_sym.
5452 (ada_exception_support_info_sniffer): Try v0 after default.
5453
f1264162
TT
54542019-08-01 Tom Tromey <tromey@adacore.com>
5455
5456 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5457 gdbarch.h.
5458
0a7b2485
CB
54592019-08-01 Christian Biesinger <cbiesinger@google.com>
5460
5461 * s12z-tdep.c: Fix include path for s12z-opc.h.
5462
c6bdbeb7
AH
54632019-08-01 Alan Hayward <alan.hayward@arm.com>
5464
5465 * NEWS: Require GNU make 3.82.
5466
a2bd7b82
TT
54672019-07-16 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5470 declare.
5471
aa3b6533
TT
54722019-07-30 Tom Tromey <tromey@adacore.com>
5473
5474 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5475
a1530dc7
KB
54762019-07-30 Kevin Buettner <kevinb@redhat.com>
5477
5478 * printcmd.c (print_address_symbolic): Print negative offsets.
5479 (build_address_symbolic): Force signed arithmetic when computing
5480 offset.
5481
2906593f
CB
54822019-07-30 Christian Biesinger <cbiesinger@google.com>
5483
5484 PR/24474: Add a function to lookup static variables.
5485 * NEWS: Mention this new function.
5486 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5487 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5488 * python/python.c (python_GdbMethods): Add new function.
5489
c620ed88
CB
54902019-07-29 Christian Biesinger <cbiesinger@google.com>
5491
5492 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5493 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5494 (objfpy_lookup_static_symbol): New function.
5495 (objfile_object_methods): Add new functions.
5496
bc4268a5
PW
54972019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5498
5499 * NEWS: Mention 'set|show print frame-info'. Mention new
5500 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5501 backtrace argument. Mention that python frame filtering code
5502 is now consistent with what 'backtrace' command prints.
5503
4b5e8d19
PW
55042019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5505
5506 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5507 comments.
5508 (print_frame_info_auto, print_frame_info_source_line,
5509 print_frame_info_location, print_frame_info_source_and_location,
5510 print_frame_info_location_and_address, print_frame_info_short_location):
5511 New declarations.
5512 (struct frame_print_options): New member print_frame_info.
5513 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5514 * stack.h (get_user_print_what_frame_info): New declaration.
5515 (frame_show_address): New declaration.
5516 * stack.c (print_frame_arguments_choices): New value 'presence'.
5517 (print_frame_info_auto, print_frame_info_source_line,
5518 print_frame_info_location, print_frame_info_source_and_location,
5519 print_frame_info_location_and_address, print_frame_info_short_location,
5520 print_frame_info_choices, print_frame_info_print_what): New definitions.
5521 (print_frame_args): Only print dots for args if print frame-arguments
5522 is 'presence'.
5523 (frame_print_option_defs): New element for "frame-info".
5524 (get_user_print_what_frame_info): New function.
5525 (frame_show_address): Make non static. Move comment to stack.h.
5526 (print_frame_info_to_print_what): New function.
5527 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5528 to decide what to print.
5529 (backtrace_command_1): Handle the new print_frame_arguments_presence
5530 value.
5531 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5532 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5533 (py_print_frame): In non-mi mode, use LOCATION as default for
5534 print_what, similarly to frame information printed directly by
5535 backtrace command. Handle frame-info user option in non MI mode.
5536
6bdfee81
KB
55372019-07-27 Kevin Buettner <kevinb@redhat.com>
5538
5539 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5540 Add case for debugging 32-bit target on 64-bit host. Revise
5541 comment.
5542
98a617f8
KB
55432019-07-27 Kevin Buettner <kevinb@redhat.com>
5544
5545 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5546 instead of find_function_entry_range_from_pc.
5547
567238c9
KB
55482019-07-27 Kevin Buettner <kevinb@redhat.com>
5549
5550 * stack.c (find_frame_funname): Remove code which preferred
5551 minsym over symtab sym in "certain pathological cases".
5552
2dc80cf8
KB
5553 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5554 parameter. Change type of "do_demangle" to bool.
5555 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5556 Pass suitable "prefer_sym_over_minsym" flag to
5557 build_address_symbolic(). Don't output "+" for negative offsets.
5558 * printcmd.c (print_address_symbolic): Update invocation of
5559 build_address_symbolic to include a "prefer_sym_over_minsym"
5560 flag.
5561 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5562 Restrict cases in which use of minimal symbol is preferred to that
5563 of a found symbol. Update comments.
5564
1aff7173
KB
5565 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5566 for entry pc when entry pc is out of range for that FDE.
5567
89b085ac
BC
55682019-07-26 Brian Callahan <bcallah@openbsd.org>
5569
5570 PR gdb/24839:
5571 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5572 type.
5573
f32feb4a
CB
55742019-07-25 Christian Biesinger <cbiesinger@google.com>
5575
5576 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5577 this function's Python signature.
5578
5579
55802019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5581
5582 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5583 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5584 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5585 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5586 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5587
5588
c54e4253
YS
55892019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5590
5591 * h8300-tdep.c (h8300_register_name_common): New.
5592 h8300_register_name): Use h8300_register_name_common.
5593 (h8300s_register_name): Likewise.
5594 (h8300sx_register_name): Likewise.
5595 (h8300h_register_nam): New.
5596 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5597
5598
40eadf04
SP
55992019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5600
5601 * arm-tdep.c (arm_skip_cmse_entry): New function.
5602 (arm_is_sgstubs_section): New function.
5603 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5604
bfa2a36d
TT
56052019-07-22 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5608 Don't self-assign.
5609
a8e9d247
AB
56102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5613 type_print.
5614
eb86c5e2
AB
56152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5618 so that GDB doesn't match any msymbols when searching in the
5619 TYPES_DOMAIN.
5620 (print_symbol_info): Print using typedef_print or type_print based
5621 on the type of the symbol. Add updated FIXME comment moved from...
5622 (_initialize_symtab): ... move and update FIXME comment to above.
5623
a8eab7c6
AB
56242019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * NEWS: Mention adding -q option to "info types".
5627 * symtab.c (struct info_types_options): New struct.
5628 (info_types_options_defs): New variable.
5629 (make_info_types_options_def_group): New function.
5630 (info_types_command): Use gdb::option framework to parse options.
5631 (info_types_command_completer): New function.
5632 (_initialize_symtab): Extend the help text on "info types" and
5633 register command completer.
5634
b4603c34
CB
56352019-07-21 Christian Biesinger <cbiesinger@google.com>
5636
5637 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5638 (lookup_symbol_in_objfile): Change int to block_enum and add a
5639 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5640
c8cdc1e0
CB
56412019-07-20 Christian Biesinger <cbiesinger@google.com>
5642
5643 * MAINTAINERS (Write After Approval): Add self.
5644
01e175fe
AB
56452019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5648 instruction to the dummy code region.
5649
56f79b63
TT
56502019-07-19 Tom Tromey <tromey@adacore.com>
5651
5652 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5653 (ARGSUSED, PARAMS, __func__): Remove rules.
5654
4c5aa8e0
AH
56552019-07-19 Alan Hayward <alan.hayward@arm.com>
5656
5657 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5658 * features/arm/arm-with-iwmmxt.c: Remove.
5659 * features/arm/arm-with-iwmmxt.xml: Remove.
5660 * features/arm/arm-with-m-fpa-layout.c: Remove.
5661 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5662 * features/arm/arm-with-m-vfp-d16.c: Remove.
5663 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5664 * features/arm/arm-with-m.c: Remove.
5665 * features/arm/arm-with-m.xml: Remove.
5666 * features/arm/arm-with-neon.c: Remove.
5667 * features/arm/arm-with-neon.xml: Remove.
5668 * features/arm/arm-with-vfpv2.c: Remove.
5669 * features/arm/arm-with-vfpv2.xml: Remove.
5670 * features/arm/arm-with-vfpv3.c: Remove.
5671 * features/arm/arm-with-vfpv3.xml: Remove.
5672
f42b2617
AH
56732019-07-19 Alan Hayward <alan.hayward@arm.com>
5674
5675 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5676
f29ec966
AH
56772019-07-19 Alan Hayward <alan.hayward@arm.com>
5678
5679 * arch/aarch32.c (aarch32_create_target_description): Create
5680 target descriptions using features.
5681 * arch/arm.c (arm_create_target_description)
5682 (arm_create_mprofile_target_description): Likewise.
5683 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5684
d105cce5
AH
56852019-07-19 Alan Hayward <alan.hayward@arm.com>
5686
5687 * Makefile.in: Add new files.
5688 * aarch32-tdep.c: New file.
5689 * aarch32-tdep.h: New file.
5690 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5691 Call aarch32_read_description.
5692 * arch/aarch32.c: New file.
5693 * arch/aarch32.h: New file.
5694 * arch/arm.c (arm_create_target_description)
5695 (arm_create_mprofile_target_description): New function.
5696 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5697 (arm_create_target_description)
5698 (arm_create_mprofile_target_description): New declaration.
5699 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5700 read_description functions.
5701 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5702 Likewise.
5703 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5704 * arm-tdep.c (tdesc_arm_list): New variable.
5705 (arm_register_g_packet_guesses): Call create description functions.
5706 (arm_read_description) (arm_read_mprofile_description): New
5707 function.
5708 * arm-tdep.h (arm_read_description)
5709 (arm_read_mprofile_description): Add declaration.
5710 * configure.tgt: Add new files.
5711
afe09f0b
GL
57122019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5713
5714 * top.c (new_ui_command): Open specified terminal just once.
5715
cd215b2e
TT
57162019-07-18 Tom Tromey <tromey@adacore.com>
5717
5718 * symtab.c (main_name): Constify return type.
5719 * symfile.c (set_initial_language): Update.
5720 * symtab.h (main_name): Constify return type.
5721
d8f68fcb
TT
57222019-07-17 Tom Tromey <tom@tromey.com>
5723
5724 * tui/tui-winsource.c (tui_update_source_window)
5725 (tui_update_source_window_as_is)
5726 (tui_update_source_windows_with_line): Remove return.
5727 * tui/tui-disasm.c (tui_show_disassem)
5728 (tui_show_disassem_and_update_source): Remove return.
5729 * tui/tui.c (tui_reset): Remove return.
5730 * tui/tui-wingeneral.c
5731 (tui_check_and_display_highlight_if_needed): Remove return.
5732
ca5af91e
TT
57332019-07-17 Tom Tromey <tom@tromey.com>
5734
5735 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5736
5104fe36
TT
57372019-07-17 Tom Tromey <tom@tromey.com>
5738
5739 * tui/tui-winsource.h (struct tui_exec_info_window)
5740 (struct tui_source_window_base): Move from tui-data.h.
5741 * tui/tui-winsource.c: Move many method definitions from
5742 elsewhere. Remove "structuring" comments.
5743 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5744 (tui_source_window_base::refresh_window): Move to
5745 tui-winsource.c.
5746 * tui/tui-win.c (tui_source_window_base::refresh_all)
5747 (tui_source_window_base::update_tab_width)
5748 (tui_source_window_base::set_new_height)
5749 (tui_source_window_base::do_make_visible_with_new_height): Move to
5750 tui-winsource.c.
5751 * tui/tui-source.h: Update.
5752 * tui/tui-source.c (tui_source_window_base::reset): Move to
5753 tui-winsource.c.
5754 * tui/tui-disasm.h: Update.
5755 * tui/tui-data.h (struct tui_exec_info_window): Move to
5756 tui-winsource.h.
5757 (struct tui_source_window_base): Likewise.
5758 * tui/tui-data.c (tui_source_window_base::clear_detail)
5759 (tui_source_window_base, ~tui_source_window_base): Move to
5760 tui-winsource.c.
5761
daa15dde
TT
57622019-07-17 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-win.c (tui_resize_all)
5765 (tui_source_window_base::update_tab_width)
5766 (tui_adjust_win_heights): Update.
5767 (tui_win_info::make_invisible_and_set_new_height): Rename from
5768 make_invisible_and_set_new_height.
5769 * tui/tui-data.h (struct tui_win_info)
5770 <make_invisible_and_set_new_height>: New method.
5771
bfad4537
TT
57722019-07-17 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui.c: Update.
5775 * tui/tui-source.h (struct tui_source_window): Move from
5776 tui-data.h.
5777 * tui/tui-layout.c: Update.
5778 * tui/tui-disasm.c: Update.
5779 * tui/tui-data.h (struct tui_source_window): Move to
5780 tui-source.h.
5781
88f7e873
TT
57822019-07-17 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5785 tui-data.h.
5786 * tui/tui-data.h (struct tui_disasm_window): Move to
5787 tui-disasm.h.
5788
96bd6233
TT
57892019-07-17 Tom Tromey <tom@tromey.com>
5790
5791 * tui/tui-regs.h (struct tui_data_item_window): Move from
5792 tui-data.h.
5793 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5794 * tui/tui-data.h (struct tui_data_item_window): Move to
5795 tui-regs.h.
5796 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5797
ce38393b
TT
57982019-07-17 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui.c: Update.
5801 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5802 (tui_cmd_window::max_height): Move to tui-command.c.
5803 * tui/tui-layout.c: Update.
5804 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5805 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5806 tui-command.c.
5807 * tui/tui-command.h (struct tui_cmd_window): Move from
5808 tui-data.h.
5809 * tui/tui-command.c: Remove "structuring" comments.
5810 (tui_cmd_window::clear_detail)
5811 (tui_cmd_window::do_make_visible_with_new_height)
5812 (tui_cmd_window::max_height): Move from elsewhere.
5813
2d8b51cb
TT
58142019-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5817 Now static.
5818 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5819 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5820
18ab23af
TT
58212019-07-17 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui.c: Update.
5824 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5825 tui-regs.c.
5826 * tui/tui-windata.h: Remove file.
5827 * tui/tui-windata.c: Remove file.
5828 * tui/tui-win.c (tui_data_window::set_new_height)
5829 (tui_data_window::do_make_visible_with_new_height): Move to
5830 tui-regs.c.
5831 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5832 * tui/tui-regs.c: Remove "structuring" comments.
5833 (tui_data_window::first_data_item_displayed)
5834 (tui_data_window::delete_data_content_windows)
5835 (tui_data_window::erase_data_content)
5836 (tui_data_window::display_all_data)
5837 (tui_data_window::refresh_all)
5838 (tui_data_window::do_scroll_vertical)
5839 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5840 (tui_data_window::do_make_visible_with_new_height)
5841 (tui_data_window::refresh_window): Move from elsewhere.
5842 (_initialize_tui_regs): Move to end of file.
5843 * tui/tui-layout.c: Update.
5844 * tui/tui-hooks.c: Update.
5845 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5846 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5847 tui-regs.c.
5848 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5849
88b7e7cc
TT
58502019-07-17 Tom Tromey <tom@tromey.com>
5851
5852 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5853 seen.
5854
0fcd3711
TT
58552019-07-17 Tom Tromey <tom@tromey.com>
5856
5857 * tui/tui-win.c (tui_source_window_base::set_new_height)
5858 (tui_source_window_base::do_make_visible_with_new_height): Use
5859 m_has_locator field directly.
5860 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5861 method.
5862 (struct tui_source_window_base) <has_locator>: Likewise.
5863
4a38112d
TT
58642019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5867 Don't declare.
5868 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5869 Remove.
5870 * tui/tui-win.c (tui_source_window_base::set_new_height)
5871 (tui_source_window_base::set_new_height)
5872 (make_invisible_and_set_new_height)
5873 (tui_source_window_base::do_make_visible_with_new_height)
5874 (tui_source_window_base::do_make_visible_with_new_height):
5875 Update.
5876 * tui/tui-layout.c (show_source_disasm_command, show_data)
5877 (show_source_or_disasm_and_command): Update.
5878 * tui/tui-layout.c (show_layout): Update.
5879
09129226
TT
58802019-07-17 Tom Tromey <tom@tromey.com>
5881
5882 * tui/tui-layout.c (make_data_window): Remove.
5883 (show_data): Unify creation and re-initialization cases.
5884
4a8a5e84
TT
58852019-07-17 Tom Tromey <tom@tromey.com>
5886
5887 * tui/tui-layout.c (make_source_window, make_disasm_window):
5888 Remove.
5889 (show_data): Unify creation and re-initialization cases.
5890
76d2be8e
TT
58912019-07-17 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-layout.c (make_command_window): Remove.
5894 (show_source_disasm_command, show_source_or_disasm_and_command):
5895 Unify creation and re-initialization cases.
5896
890b8bde
TT
58972019-07-17 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5900 creation and re-initialization cases.
5901
2cdfa113
TT
59022019-07-17 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-regs.c (tui_get_register): Return void.
5905
8e3cfd09
TT
59062019-07-17 Tom Tromey <tom@tromey.com>
5907
5908 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5909 Simplify.
5910
f4e04977
TT
59112019-07-17 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5914 resetting.
5915
0379b883
TT
59162019-07-17 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5919 * tui/tui-regs.c (tui_reg_layout): New function.
5920 (tui_show_registers, tui_reg_command): Use it.
5921 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5922 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5923 parameters.
5924 (tui_layout_command): Remove.
5925
b7fbad91
TT
59262019-07-17 Tom Tromey <tom@tromey.com>
5927
5928 * tui/tui-layout.h (tui/tui-layout): Return void.
5929 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5930
4e1e56b9
TT
59312019-07-17 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-layout.c (show_source_disasm_command, show_data):
5934 Update.
5935 (reset_locator): Remove.
5936 (show_source_or_disasm_and_command): Update.
5937
1e0c09ba
TT
59382019-07-17 Tom Tromey <tom@tromey.com>
5939
5940 * tui/tui-source.c (tui_source_window_base::reset): Remove
5941 win_type parameter.
5942 * tui/tui-layout.c (make_command_window, make_source_window)
5943 (make_disasm_window, make_data_window)
5944 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5945 (reset_locator, show_source_or_disasm_and_command): Update.
5946 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5947 win_type parameter.
5948 (struct tui_source_window_base) <reset>: Likewise.
5949
1bf605de
TT
59502019-07-17 Tom Tromey <tom@tromey.com>
5951
5952 * tui/tui-layout.c (show_source_disasm_command): Use
5953 reset_locator.
5954 (reset_locator): New function.
5955 (init_and_make_win): Remove.
5956 (show_source_or_disasm_and_command): Use reset_locator.
5957
098f9ed4
TT
59582019-07-17 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5961 condition.
5962 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5963 Remove condition.
5964 * tui/tui-source.c (tui_source_window_base::reset): New method.
5965 * tui/tui-layout.c (make_command_window): Don't call
5966 init_and_make_win.
5967 (make_source_window, make_disasm_window): Don't call
5968 make_source_or_disasm_window.
5969 (make_data_window): Don't call init_and_make_win. Change calling
5970 convention.
5971 (show_source_disasm_command, show_data): Simplify.
5972 (make_source_or_disasm_window): Remove.
5973 (show_source_or_disasm_and_command): Simplify.
5974 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5975 (struct tui_source_window_base) <reset>: Likewise.
5976 <execution_info>: Remove initializer.
5977 * tui/tui-data.c (tui_source_window_base): Initialize
5978 execution_info.
5979
80110957
TT
59802019-07-17 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5983 variable.
5984
cf82af05
TT
59852019-07-17 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui.c (tui_rl_other_window): Update.
5988 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5989 superclass method first. Always iterate over regs_content.
5990 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5991 method.
5992 * tui/tui-win.c (tui_set_focus_command): Update.
5993
01aeb396
TT
59942019-07-17 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui-win.c (tui_set_focus_command): Rename from
5997 tui_set_focus. Call tui_enable.
5998 (tui_set_focus_command): Remove.
5999
fd6c75ee
TT
60002019-07-17 Tom Tromey <tom@tromey.com>
6001
6002 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6003 refresh_window.
6004 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6005 touchwin.
6006 (tui_data_window::refresh_window): Call refresh_window on data
6007 items. Always call superclass refresh_window.
6008 (tui_win_info::refresh): Remove.
6009 (tui_source_window_base::refresh_window): Update.
6010 (tui_refresh_all): Update.
6011 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6012 refresh_window.
6013 (show_source_or_disasm_and_command): Likewise.
6014 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6015 (struct tui_source_window_base) <refresh>: Likewise.
6016
f6cc34a9
TT
60172019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-winsource.c (tui_clear_source_content)
6020 (tui_show_source_content): Update.
6021 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6022 whether content is empty.
6023 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6024 Remove.
6025
f31ec9af
TT
60262019-07-17 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6029 window's contents.
6030 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6031 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6032
d1b6f1e5
TT
60332019-07-17 Tom Tromey <tom@tromey.com>
6034
6035 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6036 (struct tui_data_item_window): Update.
6037
d9743a13
TT
60382019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6041 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6042 defines.
6043
caf0bc4e
TT
60442019-07-17 Tom Tromey <tom@tromey.com>
6045
6046 * tui/tui-winsource.h (tui_erase_source_content)
6047 (tui_clear_source_content): Remove "display_prompt" parameter.
6048 * tui/tui-winsource.c (tui_update_source_window_as_is)
6049 (tui_update_source_windows_with_addr): Update.
6050 (tui_clear_source_content): Remove "display_prompt" parameter.
6051 (tui_erase_source_content): Likewise. Simplify.
6052 (tui_show_source_content): Update.
6053 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6054 * tui/tui-stack.c (tui_show_frame_info): Update.
6055 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6056 Remove defines.
6057
9d391078
TT
60582019-07-17 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6061 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6062 parameter.
6063 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6064 parameter.
6065
a38da35d
TT
60662019-07-17 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-winsource.c (tui_clear_source_content)
6069 (tui_show_source_content, tui_show_exec_info_content)
6070 (tui_clear_exec_info_content): Update.
6071 * tui/tui-stack.c (tui_show_locator_content): Update.
6072 (tui_show_frame_info): Update.
6073 * tui/tui-source.h (tui_source_window): Don't declare.
6074 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6075 from tui_source_is_displayed.
6076 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6077 Remove field.
6078 (struct tui_source_window_base) <content_in_use>: New field. Now
6079 bool.
6080 (struct tui_source_window) <showing_source_p>: New method.
6081 (TUI_SRC_WIN): Change cast.
6082 * tui/tui-data.c (tui_initialize_static_data): Update.
6083
c2cd8994
TT
60842019-07-17 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6087 location_matches_p.
6088 * tui/tui-source.c (tui_source_window::location_matches_p): New
6089 method.
6090 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6091 method.
6092 * tui/tui-data.h (struct tui_source_window_base)
6093 <location_matches_p>: New method.
6094 (struct tui_source_window, struct tui_disasm_window)
6095 <location_matches_p>: Likewise.
6096
4dde7b34
TT
60972019-07-17 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-win.c (tui_set_win_height_command): Rename from
6100 tui_set_win_height.
6101 (tui_set_win_height_command): Remove.
6102
b73dd877
TT
61032019-07-17 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-source.c (tui_source_window): New constructor. Add
6106 observer.
6107 (~tui_source_window): New destructor.
6108 (tui_source_window::style_changed): New method.
6109 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6110 (tui_attach_detach_observers): Update.
6111 * tui/tui-data.h (struct tui_source_window): Make constructor not
6112 inline. Add destructor.
6113 (struct tui_source_window) <style_changed>: New method.
6114 <m_observable>: New member.
6115
ae2b5380
TT
61162019-07-17 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6119 * tui/tui-win.c (tui_resize_all): Fix typo.
6120
1ce3e844
TT
61212019-07-17 Tom Tromey <tom@tromey.com>
6122
6123 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6124 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6125 (tui_refresh_all): Remove "list" parameter. Use foreach.
6126 * tui/tui-win.c (window_name_completer): Use foreach.
6127 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6128 (update_tab_width): Likewise.
6129 * tui/tui-layout.c (show_layout): Update.
6130 * tui/tui-data.h (class tui_window_iterator): New.
6131 (struct all_tui_windows): New.
6132 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6133
fe3eaf1c
TT
61342019-07-17 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6137 parameter. Don't reference globals.
6138 (tui_reg_command): Update.
6139
368c1354
TT
61402019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-regs.c (tui_show_registers): Simplify.
6143
e80cd204
TT
61442019-07-17 Tom Tromey <tom@tromey.com>
6145
6146 * tui/tui-regs.c (tui_show_registers): Update.
6147 (tui_show_register_group): Add win_info parameter.
6148
aca2dd16
TT
61492019-07-17 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6152 Rename from tui_display_reg_element_at_line.
6153 (tui_data_window::display_registers_from_line): Update.
6154 * tui/tui-data.h (struct tui_data_window)
6155 <display_reg_element_at_line>: New method.
6156
517e9505
TT
61572019-07-17 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-regs.h (tui_display_registers_from)
6160 (tui_display_registers_from_line): Don't declare.
6161 * tui/tui-windata.c (tui_data_window::display_all_data)
6162 (tui_data_window::refresh_all)
6163 (tui_data_window::do_scroll_vertical): Update.
6164 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6165 from tui_display_registers_from.
6166 (tui_display_reg_element_at_line): Update.
6167 (tui_data_window::display_registers_from_line): Rename from
6168 tui_display_registers_from_line.
6169 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6170 display_registers_from_line>: New methods.
6171
f76d8b19
TT
61722019-07-17 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6175 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6176 from tui_erase_data_content.
6177 (tui_data_window::display_all_data)
6178 (tui_data_window::refresh_all)
6179 (tui_data_window::do_scroll_vertical): Update.
6180 * tui/tui-regs.c (tui_show_registers): Update.
6181 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6182 New method.
6183
b4094625
TT
61842019-07-17 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6187 declare.
6188 * tui/tui-windata.c
6189 (tui_data_window::delete_data_content_windows): Rename from
6190 tui_delete_data_content_windows.
6191 (tui_data_window::display_all_data)
6192 (tui_data_window::do_scroll_vertical): Update.
6193 * tui/tui-data.h (struct tui_data_window)
6194 <delete_data_content_windows>: New method.
6195
c223a729
TT
61962019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6199 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6200
50daf268
TT
62012019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6204 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6205 from tui_display_all_data.
6206 * tui/tui-win.c
6207 (tui_data_window::do_make_visible_with_new_height): Update.
6208 * tui/tui-regs.c (tui_show_registers): Update.
6209 * tui/tui-layout.c (tui_set_layout): Update.
6210 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6211 method.
6212
df5f8cab
TT
62132019-07-17 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6216 * tui/tui-windata.c (tui_display_data_from): Remove.
6217 (tui_data_window::refresh_all): Update.
6218
80cb6c27
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6222 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6223 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6224 tui_display_registers_from_line.
6225 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6226 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6227 "force_display" parameter.
6228
baff0c28
TT
62292019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6232 declare.
6233 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6234 Rename from tui_first_reg_element_no_inline.
6235 (tui_display_reg_element_at_line)
6236 (tui_display_registers_from_line): Update.
6237 * tui/tui-data.h (struct tui_data_window)
6238 <first_reg_element_no_inline>: New method.
6239
3b23c5f2
TT
62402019-07-17 Tom Tromey <tom@tromey.com>
6241
6242 * tui/tui-windata.c (tui_display_data_from)
6243 (tui_data_window::do_scroll_vertical): Update.
6244 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6245 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6246 Rename from tui_line_from_reg_element_no.
6247 (tui_display_registers_from_line): Update.
6248 * tui/tui-data.h (struct tui_data_window)
6249 <line_from_reg_element_no>: New method.
6250
0b5ec218
TT
62512019-07-17 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6254 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6255 tui_last_regs_line_no.
6256 (tui_display_reg_element_at_line)
6257 (tui_display_registers_from_line): Update.
6258 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6259 method.
6260
0807ab7b
TT
62612019-07-17 Tom Tromey <tom@tromey.com>
6262
6263 PR tui/24722:
6264 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6265 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6266 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6267 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6268 (tui_update_breakpoint_info): Likewise.
6269 * tui/tui-hooks.c (tui_event_create_breakpoint)
6270 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6271 Update.
6272
9ad7fdef
TT
62732019-07-17 Tom Tromey <tom@tromey.com>
6274
6275 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6276
5813316f
TT
62772019-07-17 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-winsource.c (tui_update_source_window_as_is)
6280 (tui_update_source_windows_with_addr): Update.
6281 * tui/tui-source.h (tui_set_source_content)
6282 (tui_show_symtab_source): Add "win_info" parameter.
6283 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6284 parameter.
6285 (tui_show_symtab_source): Likewise.
6286
00e264e7
TT
62872019-07-17 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-wingeneral.c
6290 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6291
06210ce4
TT
62922019-07-17 Tom Tromey <tom@tromey.com>
6293
6294 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6295 (struct tui_cmd_window) <can_scroll>: New method.
6296 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6297 method.
6298
381befee
TT
62992019-07-17 Tom Tromey <tromey@adacore.com>
6300
6301 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6302 do_field_signed>: Rename. Change type of "value".
6303 * ui-out.c (ui_out::field_signed): Rename from field_int.
6304 Change type of "value".
6305 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6306 type of "value".
6307 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6308 do_field_int. Change type of "value".
6309 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6310 do_field_int. Change type of "value".
6311 * tracepoint.c (trace_status_mi, tfind_1)
6312 (print_one_static_tracepoint_marker): Update.
6313 * thread.c (print_thread_info_1, print_selected_thread_frame):
6314 Update.
6315 * stack.c (print_frame, print_frame_info): Update.
6316 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6317 Update.
6318 * source.c (print_source_lines_base): Update.
6319 * skip.c (info_skip_command): Update.
6320 * record-btrace.c (btrace_ui_out_decode_error)
6321 (btrace_call_history_src_line): Update.
6322 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6323 Update.
6324 * progspace.c (print_program_space): Update.
6325 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6326 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6327 do_field_int. Change type of "value".
6328 * mi/mi-out.c (mi_ui_out::do_table_begin)
6329 (mi_ui_out::do_table_header): Update.
6330 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6331 type of "value".
6332 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6333 (mi_cmd_data_list_changed_registers, output_register)
6334 (mi_cmd_data_read_memory, mi_load_progress)
6335 (mi_cmd_trace_frame_collected): Update.
6336 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6337 Update.
6338 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6339 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6340 (mi_cmd_var_list_children, varobj_update_one): Update.
6341 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6342 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6343 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6344 * inferior.c (print_inferior): Update.
6345 * gdb_bfd.c (print_one_bfd): Update.
6346 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6347 Update.
6348 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6349 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6350 do_field_int. Change type of "value".
6351 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6352 do_field_int. Change type of "value".
6353 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6354 (print_one_breakpoint_location, print_it_catch_fork)
6355 (print_one_catch_fork, print_it_catch_vfork)
6356 (print_one_catch_vfork, print_it_catch_solib)
6357 (print_it_catch_exec, print_it_ranged_breakpoint)
6358 (print_mention_watchpoint, print_mention_masked_watchpoint)
6359 (bkpt_print_it, update_static_tracepoint): Update.
6360 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6361 * break-catch-syscall.c (print_it_catch_syscall): Update.
6362 * ada-tasks.c (print_ada_task_info): Update.
6363 * ada-lang.c (print_it_exception, print_mention_exception):
6364 Update.
6365
6b78c3f8
AB
63662019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6367
6368 PR breakpoints/24541
6369 * gdbarch.c: Regenerate.
6370 * gdbarch.h: Regenerate.
6371 * gdbarch.sh: Adjust return type and parameter types for
6372 'stap_adjust_register'.
6373 (i386_stap_adjust_register): Adjust signature and return new
6374 register name.
6375 * stap-probe.c (stap_parse_register_operand): Adjust use of
6376 'gdbarch_stap_adjust_register'.
6377
d72a9b85
TT
63782019-07-17 Tom Tromey <tromey@adacore.com>
6379
6380 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6381 declare VEC.
6382 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6383 std::vector.
6384 (struct s390_process_info): Add initializers.
6385 (s390_add_process): Use new.
6386 (s390_linux_nat_target::low_forget_process): Use delete.
6387 (s390_linux_nat_target::low_new_fork)
6388 (s390_linux_nat_target::stopped_by_watchpoint)
6389 (s390_linux_nat_target::low_prepare_to_resume)
6390 (s390_linux_nat_target::insert_watchpoint)
6391 (s390_linux_nat_target::insert_hw_breakpoint)
6392 (s390_linux_nat_target::remove_watchpoint)
6393 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6394
206e6c58
JB
63952019-07-16 John Baldwin <jhb@FreeBSD.org>
6396
6397 * aarch64-fbsd-nat.c: Include regcache.h.
6398 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6399 argument.
6400 (aarch64_fbsd_nat_target::fetch_registers)
6401 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6402 variable.
6403 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6404
cbde90f2
JB
64052019-07-16 John Baldwin <jhb@FreeBSD.org>
6406
6407 * fbsd-nat.c: Include gdbarch.h.
6408
07128006
TT
64092019-07-15 Tom Tromey <tromey@adacore.com>
6410
6411 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6412
1f77b012
TT
64132019-07-15 Tom Tromey <tromey@adacore.com>
6414
6415 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6416 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6417 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6418 * cli-out.c (cli_ui_out::do_field_int): New method.
6419 * ui-out.c (ui_out::field_unsigned): New method.
6420 * symfile.c (generic_load): Use field_unsigned.
6421 (print_transfer_performance): Likewise.
6422 * record-btrace.c (ui_out_field_uint): Remove.
6423 (btrace_call_history_insn_range, btrace_call_history): Use
6424 field_unsigned.
6425 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6426 field_unsigned.
6427 * ui-out.h (class ui_out) <field_unsigned>: New method.
6428 <do_field_unsigned>: Likewise.
6429
33eca680
TT
64302019-07-15 Tom Tromey <tromey@adacore.com>
6431
6432 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6433 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6434 * target.c (flash_erase_command): Use field_string.
6435 * infrun.c (print_signal_received_reason): Use field_string.
6436 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6437 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6438 field_string.
6439 * ada-tasks.c (print_ada_task_info): Use field_string.
6440
ca8d69be
TT
64412019-07-15 Tom Tromey <tromey@adacore.com>
6442
6443 * target.c (flash_erase_command): Use field_core_addr.
6444 * symfile.c (generic_load): Use field_core_addr.
6445 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6446 Use field_core_addr.
6447 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6448 field_core_addr.
6449
0d4e84ed
AB
64502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6453 value if its desired type is smaller than a CORE_ADDR and signed.
6454
9a49df9d
AB
64552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6458 of changes to field names, and use new is_reference field to
6459 decide if a property is a reference or not.
6460 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6461 field.
6462 (struct dwarf2_property_baton): Update header comment, rename
6463 'referenced_type' to 'property_type' and update comments.
6464 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6465 default property type, store in property baton, update to take
6466 accound of renamed field.
6467 (read_func_scope): Update call to attr_to_dynamic_prop.
6468 (read_array_type): Likewise.
6469 (dwarf2_per_cu_addr_sized_int_type): New function.
6470 (read_subrange_index_type): Move type finding code to
6471 dwarf2_per_cu_addr_sized_int_type.
6472 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6473 (dwarf2_per_cu_addr_type): New function.
6474 (set_die_type): Update calls to attr_to_dynamic_prop.
6475
b86352cf
AB
64762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * dwarf2read.c (read_subrange_index_type): New function.
6479 (read_subrange_type): Move code into new function and call it.
6480 * gdbtypes.c (create_range_type): Add some asserts.
6481
603490bf
AB
64822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6485 update return statements.
6486 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6487 declaration, and update comment to match.
6488 * gdbtypes.c (resolve_dynamic_array): Update call to
6489 dwarf2_evaluate_property to match new return type.
6490
592f9d27
AB
64912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * valarith.c (value_subscripted_rvalue): Change lowerbound
6494 parameter type from int to LONGEST.
6495 * value.h (value_subscripted_rvalue): Likewise in declaration.
6496
60cfcb20
AB
64972019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * cli/cli-utils.c (info_print_command_completer): New function.
6500 * cli/cli-utils.h: Add 'completer.h' include, and forward
6501 declaration for 'struct cmd_list_element'.
6502 (info_print_command_completer): Declare.
6503 * stack.c (_initialize_stack): Add completer for 'info locals' and
6504 'info args'.
6505 * symtab.c (_initialize_symtab): Add completer for 'info
6506 variables' and 'info functions'.
6507 * NEWS: Mention completion for additional info commands.
6508
b16507e0
AB
65092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * cli/cli-utils.c (extract_info_print_args): Delete.
6512 (extract_arg_maybe_quoted): Delete.
6513 (info_print_options_defs): New variable.
6514 (make_info_print_options_def_group): New function.
6515 (extract_info_print_options): Define new function.
6516 * cli/cli-utils.h (extract_info_print_args): Delete.
6517 (struct info_print_options): New structure.
6518 (extract_info_print_options): Declare new function.
6519 * stack.c (info_locals_command): Update to use new
6520 extract_info_print_options, also add a header comment.
6521 (info_args_command): Likewise.
6522 * symtab.c (info_variables_command): Likewise.
6523 (info_functions_command): Likewise.
6524
021d8588
AB
65252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6528 to extract string arguments.
6529 * common/common-utils.c (extract_string_maybe_quoted): New function.
6530 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6531
b777eb6d
TT
65322019-07-11 Tom Tromey <tromey@adacore.com>
6533
6534 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6535 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6536 * top.h (gdbinit): Don't declare.
6537 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6538 into...
6539 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6540 * top.c (gdb_init): Don't call init_cli_cmds.
6541 (gdbinit): Remove.
6542 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6543
72ee03ff
TT
65442019-07-11 Tom Tromey <tromey@adacore.com>
6545
6546 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6547 after it has been moved.
6548
00db9531
SM
65492019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * valops.c (value_must_coerce_to_target): Change return type to
6552 bool.
6553 * value.h (value_must_coerce_to_target): Likewise.
6554
f2478a7e
SM
65552019-07-10 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * breakpoint.c (is_hardware_watchpoint): Remove
6558 forward-declaration.
6559 (is_masked_watchpoint): Change return type to bool.
6560 (is_tracepoint): Likewise.
6561 (is_breakpoint): Likewise.
6562 (is_hardware_watchpoint): Likewise.
6563 (is_watchpoint): Likewise.
6564 (is_no_memory_software_watchpoint): Likewise.
6565 (is_catchpoint): Likewise.
6566 (breakpoint_1): Make FILTER parameter's return type bool.
6567 is_masked_watchpoint): Change return type to bool.
6568 (save_breakpoints): Make FILTER parameter's return type bool.
6569 * breakpoint.h (is_breakpoint): Change return type to bool.
6570 (is_watchpoint): Likewise.
6571 (is_catchpoint): Likewise.
6572 (is_tracepoint): Likewise.
6573
0d12e84c
TT
65742019-07-10 Tom Tromey <tom@tromey.com>
6575
6576 * defs.h: Don't include gdbarch.h.
6577 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6578 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6579 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6580 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6581 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6582 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6583 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6584 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6585 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6586 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6587 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6588 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6589 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6590 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6591 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6592 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6593 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6594 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6595 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6596 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6597 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6598 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6599 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6600 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6601 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6602 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6603 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6604
f06f1252
TT
66052019-07-10 Tom Tromey <tromey@adacore.com>
6606
6607 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6608 * breakpoint.c (init_ada_exception_breakpoint): Register as
6609 bp_catchpoint.
6610 (print_one_breakpoint_location, print_one_breakpoint): Use
6611 is_ada_exception_catchpoint.
6612 * ada-lang.c (class ada_catchpoint_location): Pass
6613 bp_loc_software_breakpoint to bp_location constructor.
6614 (is_ada_exception_catchpoint): New function.
6615
7a5d944b
TT
66162019-07-10 Tom Tromey <tromey@adacore.com>
6617
6618 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6619 VEC.
6620 (struct arm_exidx_entry): New method operator<.
6621 (struct arm_exidx_data) <section_maps>: Change type.
6622 (arm_exidx_data_free): Remove.
6623 (arm_exidx_data_key): Change type. Move lower.
6624 (arm_exidx_new_objfile): Update.
6625 (arm_compare_exidx_entries): Remove.
6626 (arm_find_exidx_entry, _initialize_arm_tdep)
6627
48c66e1d
TT
66282019-07-10 Tom Tromey <tromey@adacore.com>
6629
6630 * solib-spu.c (ocl_program_data_key): Change type.
6631 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6632 Update.
6633
a269fbf1
TT
66342019-07-10 Tom Tromey <tromey@adacore.com>
6635
6636 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6637 (struct solib_aix_inferior_data) <library_list>: Change type.
6638 (solib_aix_inferior_data_handle): Change type.
6639 (get_solib_aix_inferior_data): Update.
6640 (solib_aix_free_library_list): Remove.
6641 (library_list_start_library): Update.
6642 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6643 return type.
6644 (solib_aix_get_library_list)
6645 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6646 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6647
c294730c
TT
66482019-07-10 Tom Tromey <tromey@adacore.com>
6649
6650 * solib-dsbt.c (struct dsbt_info): Add initializers.
6651 (solib_dsbt_pspace_data): Change type.
6652 (dsbt_pspace_data_cleanup): Remove.
6653 (get_dsbt_info, _initialize_dsbt_solib): Update.
6654
9d52077d
TT
66552019-07-10 Tom Tromey <tromey@adacore.com>
6656
6657 * spu-tdep.c (spu_overlay_data): Change type.
6658 (spu_get_overlay_table, spu_overlay_new_objfile)
6659 (_initialize_spu_tdep): Update.
6660
22a20dca
TT
66612019-07-10 Tom Tromey <tromey@adacore.com>
6662
6663 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6664 destructor.
6665 (dbx_objfile_data_key): Change type and declare later.
6666 (DBX_SYMFILE_INFO): Rewrite.
6667 * dbxread.c (dbx_objfile_data_key): Change type.
6668 (dbx_symfile_init): Update.
6669 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6670 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6671 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6672
cb60f420
TT
66732019-07-10 Tom Tromey <tromey@adacore.com>
6674
6675 * jit.c (jit_program_space_key): Change type. Move lower.
6676 (get_jit_program_space_data): Update.
6677 (jit_program_space_data_cleanup): Remove.
6678 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6679 Update.
6680 (struct jit_program_space_data): Add initializers.
6681
51df2ae3
TT
66822019-07-10 Tom Tromey <tromey@adacore.com>
6683
6684 * solib-darwin.c (struct darwin_info): Add initializers.
6685 (solib_darwin_pspace_data): Change type.
6686 (darwin_pspace_data_cleanup): Remove.
6687 (get_darwin_info, _initialize_darwin_solib): Update.
6688
18101a35
TT
66892019-07-10 Tom Tromey <tromey@adacore.com>
6690
6691 * remote-sim.c (struct sim_inferior_data): Add initializers,
6692 constructor, and destructor.
6693 (sim_inferior_data_key): Change type. Move lower.
6694 (check_for_duplicate_sim_descriptor): Update.
6695 (get_sim_inferior_data): Use new. Update.
6696 (~sim_inferior_data_cleanup): Rename from
6697 sim_inferior_data_cleanup. Simplify.
6698 (gdbsim_close_inferior, simulator_command)
6699 (sim_command_completer, _initialize_remote_sim): Update.
6700 (next_pid, INITIAL_PID): Move earlier.
6701
05b08ac1
TT
67022019-07-10 Tom Tromey <tromey@adacore.com>
6703
6704 * python/python-internal.h (create_thread_object): Return
6705 gdbpy_ref.
6706 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6707 * python/py-inferior.c (struct threadlist_entry): Add
6708 constructor.
6709 <thread_obj>: Now a gdbpy_ref.
6710 (thread_to_thread_object): Update.
6711 (add_thread_object): Use new.
6712 (delete_thread_object): Use delete.
6713 (infpy_threads): Update.
6714 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6715 GIL.
6716
32372d80
TT
67172019-07-10 Tom Tromey <tromey@adacore.com>
6718
6719 * valops.c (value_cast): Specialize error message for Ada.
6720
5c458ae8
SM
67212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6722
6723 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6724
4c462cb0
SM
67252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6726
6727 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6728 bpstat_should_step): Return bool, adjust comments.
6729 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6730 bpstat_should_step): Likewise.
6731
89abbcc2
AH
67322019-07-10 Alan Hayward <alan.hayward@arm.com>
6733
6734 * features/Makefile: Use feature target descriptions for Arm.
6735 * features/arm/arm-core.c: Generate new file.
6736 * features/arm/arm-fpa.c: Likewise.
6737 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6738 * features/arm/arm-m-profile.c: Likewise.
6739 * features/arm/arm-vfpv2.c: Likewise.
6740 * features/arm/arm-vfpv3.c: Likewise.
6741 * features/arm/xscale-iwmmxt.c: Likewise.
6742 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6743
166a82be
AH
67442019-07-10 Alan Hayward <alan.hayward@arm.com>
6745
6746 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6747 ptrace earlier.
6748
9fb4c7e9
AH
67492019-07-10 Alan Hayward <alan.hayward@arm.com>
6750
6751 * features/aarch64-pauth.c: Regenerate.
6752
e2d0f980
SM
67532019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6754
6755 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6756 bool.
6757 (bpstat_what): Use false instead of 0.
6758
a38118e5
PA
67592019-07-09 Pedro Alves <palves@redhat.com>
6760
6761 * break-catch-throw.c (is_exception_catchpoint): New.
6762 * breakpoint.c (print_one_breakpoint_location): New parameter
6763 'raw_loc'. Handle it. Use
6764 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6765 looking at the breakpoint's type.
6766 (print_one_breakpoint): If handling "maint info breakpoints", also
6767 print locations of exception catchpoints.
6768 * breakpoint.h (is_exception_catchpoint): Declare.
6769
cb1e4e32
PA
67702019-07-09 Pedro Alves <palves@redhat.com>
6771
6772 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6773 "addr" field.
6774 (allocate_location_exception_catchpoint): New.
6775 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6776 (initialize_throw_catchpoint_ops): Install
6777 allocate_location_exception_catchpoint as allocate_location
6778 method.
6779 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6780 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6781 bp_loc_other.
6782 (breakpoint_address_is_meaningful): Delete.
6783 (bl_address_is_meaningful): New.
6784 (breakpoint_locations_match): Adjust comment.
6785 (bp_location_from_bp_type): New, factored out of...
6786 (bp_location::bp_location(breakpoint *)): ... this.
6787 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6788 factored out of...
6789 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6790 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6791 breakpoint_address_is_meaningful.
6792 (bp_locations_compare): Adjust comment.
6793 (update_global_location_list): Use bl_address_is_meaningful
6794 instead of breakpoint_address_is_meaningful.
6795 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6796 explicit.
6797 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6798 * python/py-breakpoint.c (bppy_get_location): No longer check
6799 whether location is null.
6800
b58a68fe
PA
68012019-07-09 Pedro Alves <palves@redhat.com>
6802
6803 PR c++/15468
6804 * breakpoint.c (print_one_breakpoint_location): Remove
6805 single-location assert.
6806
268a13a5
TT
68072019-07-09 Tom Tromey <tom@tromey.com>
6808
6809 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6810 * configure: Rebuild.
6811 * configure.ac: Change common to gdbsupport.
6812 * gdbsupport: Rename from common.
6813 * acinclude.m4: Change common to gdbsupport.
6814 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6815 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6816 gdbsupport.
6817 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6818 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6819 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6820 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6821 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6822 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6823 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6824 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6825 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6826 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6827 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6828 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6829 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6830 coff-pe-read.c, command.h, compile/compile-c-support.c,
6831 compile/compile-c.h, compile/compile-cplus-symbols.c,
6832 compile/compile-cplus-types.c, compile/compile-cplus.h,
6833 compile/compile-loc2c.c, compile/compile.c, completer.c,
6834 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6835 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6836 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6837 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6838 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6839 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6840 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6841 features/aarch64-core.c, features/aarch64-fpu.c,
6842 features/aarch64-pauth.c, features/aarch64-sve.c,
6843 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6844 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6845 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6846 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6847 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6848 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6849 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6850 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6851 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6852 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6853 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6854 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6855 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6856 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6857 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6858 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6859 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6860 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6861 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6862 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6863 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6864 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6865 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6866 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6867 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6868 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6869 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6870 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6871 minsyms.c, mips-linux-tdep.c, namespace.h,
6872 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6873 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6874 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6875 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6876 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6877 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6878 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6879 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6880 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6881 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6882 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6883 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6884 procfs.c, producer.c, progspace.h, psymtab.h,
6885 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6886 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6887 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6888 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6889 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6890 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6891 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6892 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6893 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6894 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6895 target-memory.c, target.c, target.h, target/waitstatus.c,
6896 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6897 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6898 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6899 unittests/array-view-selftests.c,
6900 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6901 unittests/common-utils-selftests.c,
6902 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6903 unittests/format_pieces-selftests.c,
6904 unittests/function-view-selftests.c,
6905 unittests/lookup_name_info-selftests.c,
6906 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6907 unittests/mkdir-recursive-selftests.c,
6908 unittests/observable-selftests.c,
6909 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6910 unittests/parse-connection-spec-selftests.c,
6911 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6912 unittests/scoped_fd-selftests.c,
6913 unittests/scoped_mmap-selftests.c,
6914 unittests/scoped_restore-selftests.c,
6915 unittests/string_view-selftests.c, unittests/style-selftests.c,
6916 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6917 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6918 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6919 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6920 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6921 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6922
5b0e2db4
AB
69232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6924
6925 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6926 bool value.
6927 (decode_digits_ordinary): Set explicit_line field in sal.
6928 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6929 symtab_and_line that was set on an explicit line number in
6930 assembler code. Do always update the recorded symtab and line if
6931 we do skip the prologue.
6932
0ba852ab
AB
69332019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6934
6935 * breakpoint.c (set_breakpoint_location_function): Remove
6936 explicit_loc parameter.
6937 (momentary_breakpoint_from_master): Update call to
6938 set_breakpoint_location_function.
6939 (add_location_to_breakpoint): Likewise.
6940
b3a7d171
AB
69412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6944 required features based on default bfd type when no specific bfd
6945 is present.
6946
1f6f6e21
PW
69472019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * NEWS: Mention that GDB printf and eval commands can now print
6950 C-style and Ada-style convenience var strings without
6951 calling the inferior.
6952 * printcmd.c (printf_c_string): Locally print GDB internal var
6953 instead of transiting via the inferior.
6954 (printf_wide_c_string): Likewise.
6955
69562019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6957
5862c886 6958 PR breakpoints/25011
ea142fbf
AH
6959 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6960
0598af48
TT
69612019-07-04 Tom Tromey <tom@tromey.com>
6962
6963 PR tui/24724:
6964 * tui/tui-winsource.c (tui_clear_source_content): Update.
6965 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6966 (tui_update_breakpoint_info): Update.
6967 (tui_set_exec_info_content): Update.
6968 * tui/tui-source.c (tui_set_source_content_nil): Update.
6969 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6970 has_break.
6971 * tui/tui-data.h (enum tui_bp_flag): New.
6972 (tui_bp_flags): New enum flags type.
6973 (struct tui_source_element) <break_mode>: Change type. Rename
6974 from has_break.
6975 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6976 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6977 constants.
6978 * tui/tui-winsource.h: Fix comment.
6979
350fab54
AH
69802019-07-04 Alan Hayward <alan.hayward@arm.com>
6981
6982 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6983 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6984 (store_fpregs_to_thread)
6985 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6986 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6987 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6988 (IWMMXT_REGS_SIZE): Add define.
6989 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6990 (fetch_vfp_regs, store_vfp_regs)
6991 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6992 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6993
f0452268
AH
69942019-07-04 Alan Hayward <alan.hayward@arm.com>
6995
6996 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6997 defines.
6998 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6999 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7000 (ARM_INT_REGISTER_SIZE): ...to this.
7001 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7002 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7003 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7004 (arm_linux_collect_gregset, supply_nwfpe_register)
7005 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7006 defines.
7007 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7008 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7009 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7010 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7011 (arm_return_in_memory, arm_store_return_value)
7012 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7013 (arm_record_ld_st_multiple): Likewise.
7014 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7015 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7016
e935475c
AH
70172019-07-04 Alan Hayward <alan.hayward@arm.com>
7018
7019 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7020 AARCH64_DISPLACED_MODIFIED_INSNS.
7021 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7022 (aarch64_displaced_step_copy_insn): Likewise.
7023 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7024 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7025 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7026 ARM_DISPLACED_MODIFIED_INSNS.
7027 * arm-tdep.c (arm_gdbarch_init): Likewise.
7028 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7029 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7030 (struct arm_displaced_step_closure): Use
7031 ARM_DISPLACED_MODIFIED_INSNS.
7032
df0bb381
AH
70332019-07-04 Alan Hayward <alan.hayward@arm.com>
7034
7035 * features/Makefile: Remove unused xml files.
7036 * features/aarch64.xml: Remove.
7037 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7038 * features/i386/amd64-avx-avx512.xml: Remove.
7039 * features/i386/amd64-avx-linux.xml: Remove.
7040 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7041 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7042 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7043 * features/i386/amd64-avx-mpx.xml: Remove.
7044 * features/i386/amd64-avx.xml: Remove.
7045 * features/i386/amd64-linux.xml: Remove.
7046 * features/i386/amd64-mpx-linux.xml: Remove.
7047 * features/i386/amd64-mpx.xml: Remove.
7048 * features/i386/amd64.xml: Remove.
7049 * features/i386/i386-avx-avx512-linux.xml: Remove.
7050 * features/i386/i386-avx-avx512.xml: Remove.
7051 * features/i386/i386-avx-linux.xml: Remove.
7052 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7053 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7054 * features/i386/i386-avx-mpx-linux.xml: Remove.
7055 * features/i386/i386-avx-mpx.xml: Remove.
7056 * features/i386/i386-avx.xml: Remove.
7057 * features/i386/i386-linux.xml: Remove.
7058 * features/i386/i386-mmx-linux.xml: Remove.
7059 * features/i386/i386-mmx.xml: Remove.
7060 * features/i386/i386-mpx-linux.xml: Remove.
7061 * features/i386/i386-mpx.xml: Remove.
7062 * features/i386/i386.xml: Remove.
7063 * features/i386/x32-avx-avx512-linux.xml: Remove.
7064 * features/i386/x32-avx-linux.xml: Remove.
7065 * features/i386/x32-linux.xml: Remove.
7066
edd6266a
AH
70672019-07-04 Alan Hayward <alan.hayward@arm.com>
7068
7069 * regformats/aarch64.dat: Remove.
7070 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7071 * regformats/i386/amd64-avx-linux.dat: Remove.
7072 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7073 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7074 * regformats/i386/amd64-linux.dat: Remove.
7075 * regformats/i386/amd64-mpx-linux.dat: Remove.
7076 * regformats/i386/amd64.dat: Remove.
7077 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7078 * regformats/i386/i386-avx-linux.dat: Remove.
7079 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7080 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7081 * regformats/i386/i386-linux.dat: Remove.
7082 * regformats/i386/i386-mmx-linux.dat: Remove.
7083 * regformats/i386/i386-mpx-linux.dat: Remove.
7084 * regformats/i386/i386.dat: Remove.
7085 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7086 * regformats/i386/x32-avx-linux.dat: Remove.
7087 * regformats/i386/x32-linux.dat: Remove.
7088
2b40fda7
AH
70892019-07-04 Alan Hayward <alan.hayward@arm.com>
7090
7091 * aarch64-tdep.c: Remove xml self tests.
7092 * amd64-linux-tdep.c: Likewise.
7093 * amd64-tdep.c: Likewise.
7094 * i386-linux-tdep.c: Likewise.
7095 * i386-tdep.c: Likewise.
7096
5f4ba3e7
PA
70972019-07-03 Pedro Alves <palves@redhat.com>
7098
7099 PR cli/24732
7100 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7101 (pipe_cmd_option_defs): New.
7102 (make_pipe_cmd_options_def_group): New.
7103 (pipe_command): Use gdb::option::process_options.
7104 (pipe_command_completer): New function.
7105 (_initialize_cli_cmds): Install completer for "pipe" command.
7106
3d9be6f5
PA
71072019-07-03 Pedro Alves <palves@redhat.com>
7108
7109 * cli/cli-option.c (union option_value) <string>: New field.
7110 (struct option_def_and_value): Add ctor, move ctor, dtor and
7111 use DISABLE_COPY_AND_ASSIGN.
7112 (option_def_and_value::clear_value): New.
7113 (parse_option, save_option_value_in_ctx, get_val_type_str)
7114 (add_setshow_cmds_for_options): Handle var_string.
7115 * cli-option.h (union option_def::var_address) <string>: New
7116 field.
7117 (struct string_option_def): New.
7118 * maint-test-options.c (struct test_options_opts): Add default
7119 ctor and use DISABLE_COPY_AND_ASSIGN.
7120 <string_opt>: New field.
7121 (test_options_opts::~test_options_opts): New.
7122 (test_options_opts::dump): Also dump "-string".
7123 (test_options_option_defs): Install "string.
7124
41fc454c
PA
71252019-07-03 Pedro Alves <palves@redhat.com>
7126
7127 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7128 option_value with a null enumeration.
7129 (complete_options): Save the option values in the context.
7130 (save_option_value_in_ctx): New, factored out from ...
7131 (process_options): ... here.
7132 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7133 of the function.
7134 * maint-test-options.c (test_options_opts::dump): New, factored
7135 out from ...
7136 (maintenance_test_options_command_mode): ... here.
7137 (maintenance_test_options_command_completion_result): Delete.
7138 (maintenance_test_options_command_completion_text): Update
7139 comment.
7140 (maintenance_show_test_options_completion_result): Change
7141 prototype. Just print
7142 maintenance_test_options_command_completion_text.
7143 (save_completion_result): New.
7144 (maintenance_test_options_completer_mode): Pass options context to
7145 complete_options, and then save a dump.
7146 (_initialize_maint_test_options): Use add_cmd to install "maint
7147 show test-options-completion-result".
7148
fdbc9870
PA
71492019-07-03 Pedro Alves <palves@redhat.com>
7150
7151 * NEWS (New commands): Mention "with" and "maint with".
7152 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7153 (with_command, with_command_completer): New.
7154 (pipe_command): Adjust to new repeat_previous
7155 interface.
7156 (_initialize_cli_cmds): Install the "with" command and its "w"
7157 alias.
7158 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7159 declarations.
7160 * cli/cli-setshow.c (parse_cli_var_uinteger)
7161 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7162 argument strings for all var_types.
7163 (get_setshow_command_value_string): New, factored out from ...
7164 (do_show_command): ... this.
7165 * cli/cli-setshow.h: Include <string>.
7166 (get_setshow_command_value_string): Declare.
7167 * command.h (repeat_previous): Now returns const char *. Adjust
7168 comment.
7169 * maint.c: Include "cli/cli-cmds.h".
7170 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7171 (_initialize_maint_cmds): Register the "maintenance with" command.
7172 * top.c (repeat_previous): Move bits from pipe_command here:
7173 Return the saved command line, if any; error out if there's no
7174 command to relaunch.
7175
c6ac8931
PA
71762019-07-03 Pedro Alves <palves@redhat.com>
7177
7178 * NEWS (New commands): Mention "maint set/show test-settings"
7179 instead of "maint test-settings".
7180 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7181 (maintenance_test_settings_set_list): Rename to ...
7182 (maintenance_set_test_settings_list): ... this.
7183 (maintenance_test_settings_show_list): Rename to ...
7184 (maintenance_show_test_settings_list): ... this.
7185 (maintenance_test_settings_cmd): Delete.
7186 (maintenance_test_settings_set_cmd): ...
7187 (maintenance_set_test_settings_cmd): ... this.
7188 (maintenance_test_settings_show_cmd): ...
7189 (maintenance_show_test_settings_cmd): ... this.
7190 (maintenance_test_settings_show_value_cmd):
7191 (maintenance_show_test_settings_value_cmd): ... this.
7192 (_initialize_maint_test_settings): No longer install the "maint
7193 test-settings" prefix command. Rename "maint test-settings set"
7194 to "maint set test-settings", and "maint test-settings show" to
7195 "maint show test-settings". Adjust all subcommands.
7196
d1fcf2fd
PA
71972019-07-03 Pedro Alves <palves@redhat.com>
7198
7199 * maint-test-settings.c: Fix file's intro comment. Replace all
7200 references to "test-options" with references to "test-settings",
7201 in comments.
7202
970f9d09
PA
72032019-07-03 Pedro Alves <palves@redhat.com>
7204
7205 * maint-test-settings.c (maintenance_test_settings_xxx)
7206 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7207 New.
7208 (maintenance_test_settings_enums): Use them.
7209 (maintenance_test_settings_enum): Default to
7210 maintenance_test_settings_xxx.
7211 (_initialize_maint_test_settings): Initialize
7212 MAINTENANCE_TEST_SETTINGS_FILENAME.
7213
f3869b1a
SM
72142019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7215
7216 * breakpoint.h (remove_breakpoints_inf): Change return type to
7217 void, move function documentation here.
7218 * breakpoint.c (remove_breakpoints_inf): Change return type to
7219 void, move function documentation to header.
7220
54d66006
PA
72212019-07-02 Pedro Alves <palves@redhat.com>
7222
7223 * NEWS (Completion improvements): Mention "info threads".
7224 * thread.c (struct info_threads_opts, info_threads_option_defs)
7225 (make_info_threads_options_def_group): New.
7226 (info_threads_command): Use gdb::option::process_options.
7227 (info_threads_command_completer): New.
7228 (_initialize_thread): Use gdb::option::build_help to build the
7229 help text for "info threads".
7230
854f6088
SM
72312019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 * defs.h (generic_load): Move from here...
7234 * symfile.h (generic_load): ... to here. Rename name parameter
7235 to args.
7236 * symfile.c (generic_load): Add comment.
7237
54ee4252
TT
72382019-07-01 Tom Tromey <tromey@adacore.com>
7239
7240 * dwarf2read.c
7241 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7242 declaration of without_params. Fix formatting.
7243
65392b3e
TT
72442019-07-01 Tom Tromey <tromey@adacore.com>
7245
7246 * ada-exp.y (find_primitive_type): Update.
7247 * ada-lang.h (ada_lookup_symbol): Update.
7248 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7249 parameter.
7250 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7251
7d7571f0
SDJ
72522019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7253
7254 PR breakpoints/24541
7255 * gdbarch.c: Regenerate.
7256 * gdbarch.h: Regenerate.
7257 * gdbarch.sh: Add 'stap_adjust_register'.
7258 * i386-tdep.c: Include '<unordered_set>'.
7259 (i386_stap_adjust_register): New function.
7260 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7261 * stap-probe.c (stap_parse_register_operand): Call
7262 'gdbarch_stap_adjust_register'.
7263
5af5392a
SDJ
72642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7265
7266 PR python/24742
7267 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7268 * python/python.c (do_start_initialization): Use 'xmalloc'
7269 instead of 'PyMem_Malloc'.
7270
10d06d82
TT
72712019-06-28 Tom Tromey <tromey@adacore.com>
7272
7273 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7274 for Ada.
7275
1b7f24cd
TT
72762019-06-27 Tom Tromey <tromey@adacore.com>
7277
7278 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7279 objfile_key.
7280 (arm_find_mapping_symbol, arm_record_special_symbol)
7281 (_initialize_arm_tdep): Update.
7282 (arm_objfile_data_free): Remove.
7283
3d507ff2
TT
72842019-06-27 Tom Tromey <tromey@adacore.com>
7285
7286 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7287 to cp_print_static_field.
7288
762c164d
TT
72892019-06-26 Tom Tromey <tromey@adacore.com>
7290
7291 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7292 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7293 declare.
7294
aa2f9bcf
AH
72952019-06-26 Alan Hayward <alan.hayward@arm.com>
7296
7297 * features/aarch64-core.c (create_feature_aarch64_core):
7298 Regenerate.
7299 * features/aarch64-core.xml: Add cpsr flags.
7300
3426ae57
AH
73012019-06-26 Alan Hayward <alan.hayward@arm.com>
7302
7303 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7304 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7305
4838e44c
SM
73062019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7307
7308 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7309 field.
7310 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7311 use.
7312 (arm_record_special_symbol): Don't insert new symbol in sorted
7313 position, push it at the end.
7314
54cc7474
SM
73152019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7318 (arm_mapping_symbol_s): Remove.
7319 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7320 (arm_mapping_symbol_vec): New typedef.
7321 (struct arm_per_objfile): Add constructor.
7322 <section_maps>: Change type to
7323 std::unique_ptr<arm_mapping_symbol_vec[]>.
7324 (arm_compare_mapping_symbols): Remove.
7325 (arm_find_mapping_symbol): Adjust to section_maps type change.
7326 (arm_objfile_data_free): Call delete on arm_per_objfile.
7327 (arm_record_special_symbol): Adjust to section_maps type change.
7328 Allocate arm_per_objfile with new.
7329
b65b566c
PW
73302019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7331
7332 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7333 with the command prefix.
7334
c2fc64f5
TT
73352019-06-25 Tom Tromey <tom@tromey.com>
7336
7337 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7338 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7339
fb54fa76
TT
73402019-06-25 Tom Tromey <tom@tromey.com>
7341
7342 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7343 type.
7344 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7345 protected.
7346
f7952c57
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-winsource.c
7350 (tui_source_window_base::set_is_exec_point_at): Add check against
7351 LOA_ADDRESS.
7352
17568d78
TT
73532019-06-25 Tom Tromey <tom@tromey.com>
7354
7355 * tui/tui-source.c (tui_set_source_content): Don't check before
7356 xfree.
7357 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7358
53e7cdba
TT
73592019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-winsource.h (tui_update_source_window_as_is)
7362 (tui_alloc_source_buffer, tui_line_is_displayed)
7363 (tui_addr_is_displayed): Change type of win_info.
7364 * tui/tui-winsource.c (tui_update_source_window_as_is)
7365 (tui_clear_source_content, tui_show_source_line)
7366 (tui_show_source_content, tui_source_window_base::refill)
7367 (tui_source_window_base::set_is_exec_point_at)
7368 (tui_source_window_base::set_is_exec_point_at)
7369 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7370 (tui_alloc_source_buffer, tui_line_is_displayed)
7371 (tui_addr_is_displayed): Change type of win_info. Update.
7372 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7373 (tui_source_window_base::do_make_visible_with_new_height):
7374 Update.
7375 * tui/tui-source.c (tui_set_source_content)
7376 (tui_set_source_content_nil)
7377 (tui_source_window::do_scroll_vertical): Update.
7378 * tui/tui-layout.c (show_layout): Update.
7379 * tui/tui-disasm.c (tui_set_disassem_content)
7380 (tui_disasm_window::do_scroll_vertical): Update.
7381 * tui/tui-data.h (tui_win_content): Remove.
7382 (struct tui_gen_win_info) <content, content_size>: Remove.
7383 (struct tui_source_element): Add initializers and destructor.
7384 (union tui_which_element, struct tui_win_element): Remove.
7385 (struct tui_source_window_base) <content>: New field.
7386 (struct tui_data_window): Remove destructor.
7387 (tui_alloc_content, tui_free_win_content)
7388 (tui_free_all_source_wins_content): Don't declare.
7389 * tui/tui-data.c (tui_initialize_static_data): Update.
7390 (init_content_element, tui_alloc_content): Remove.
7391 (~tui_gen_win_info): Update.
7392 (~tui_data_window, tui_free_all_source_wins_content)
7393 (tui_free_win_content, free_content, free_content_elements):
7394 Remove.
7395
7908abbf
TT
73962019-06-25 Tom Tromey <tom@tromey.com>
7397
7398 * tui/tui-winsource.h (tui_clear_source_content)
7399 (tui_erase_source_content, tui_show_source_content): Change type
7400 of win_info.
7401 * tui/tui-winsource.c (tui_clear_source_content)
7402 (tui_erase_source_content, tui_show_source_content): Change type
7403 of win_info.
7404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7405 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7406 win_info.
7407 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7408 win_info.
7409 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7410
02c28df0
TT
74112019-06-25 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-winsource.c (tui_clear_source_content)
7414 (tui_source_window_base::set_is_exec_point_at): Update.
7415 * tui/tui-source.c (tui_set_source_content_nil): Update.
7416 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7417 a bool.
7418 * tui/tui-data.c (init_content_element): Update.
7419
6658b1bf
TT
74202019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7423 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7424 * tui/tui-layout.c (init_and_make_win): Update.
7425 * tui/tui.h (enum tui_win_type): Update.
7426 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7427 tui_win_is_auxillary.
7428 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7429 tui_win_is_auxillary.
7430
21e1c91e
TT
74312019-06-25 Tom Tromey <tom@tromey.com>
7432
7433 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7434 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7435 (tui_delete_data_content_windows, tui_display_all_data)
7436 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7437 Update.
7438 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7439 * tui/tui-regs.c (tui_last_regs_line_no)
7440 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7441 (tui_show_registers): Update.
7442 (tui_show_register_group): Return void. Update.
7443 (tui_display_registers_from, tui_display_reg_element_at_line)
7444 (tui_display_registers_from_line, tui_check_register_values):
7445 Update.
7446 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7447 member.
7448 (struct tui_data_window) <regs_content>: Now a std::vector.
7449 <regs_content_count>: Remove.
7450 (tui_add_content_elements, tui_free_data_content): Don't declare.
7451 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7452 (init_content_element): Remove DATA_WIN case. Add assert.
7453 (tui_add_content_elements): Remove.
7454 (tui_data_window): Update.
7455 (tui_free_data_content): Remove.
7456 (free_content_elements): Remove DATA_WIN case.
7457
115ac53b
TT
74582019-06-25 Tom Tromey <tom@tromey.com>
7459
7460 * tui/tui-data.c (tui_data_item_window): Update.
7461 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7462 * tui/tui-windata.c (tui_display_all_data)
7463 (tui_display_data_from_line): Update.
7464 (tui_check_data_values): Remove.
7465 * tui/tui-regs.c (tui_show_register_group)
7466 (tui_display_reg_element_at_line): Update.
7467 * tui/tui-hooks.c (tui_register_changed)
7468 (tui_refresh_frame_and_register_information): Call
7469 tui_check_register_values.
7470 * tui/tui-data.h (struct tui_data_window) <data_content,
7471 data_content_count, data_type>: Remove.
7472 (enum tui_data_type): Remove.
7473
7474 * tui/tui-data.c (tui_data_window::clear_detail)
7475 (~tui_data_window): Update.
7476
eaf9738b
TT
74772019-06-25 Tom Tromey <tom@tromey.com>
7478
7479 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7480 declare.
7481 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7482 Rename from tui_first_data_item_displayed. Update.
7483 (tui_data_window::refresh_all)
7484 (tui_data_window::do_scroll_vertical): Update.
7485 * tui/tui-data.h (struct tui_data_window)
7486 <first_data_item_displayed>: Declare new method.
7487
31ca4723
TT
74882019-06-25 Tom Tromey <tom@tromey.com>
7489
7490 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7491 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7492 contents...
7493 (tui_initialize_static_data): ...here.
7494
41bcff7f
TT
74952019-06-25 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7498 (tui_display_registers_from, tui_check_register_values): Update.
7499 (tui_display_register): Remove win_info parameter; update.
7500 (tui_get_register): Change type of parameters.
7501 * tui/tui-data.h (struct tui_data_element): Remove.
7502 (union tui_which_element) <data>: Remove.
7503 <data_window>: Change type.
7504 (struct tui_data_item_window): New.
7505 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7506 case. Add assert.
7507 (~tui_data_item_window): New destructor.
7508 (free_content_elements): Remove DATA_ITEM_WIN case.
7509
d2802c33
TT
75102019-06-25 Tom Tromey <tom@tromey.com>
7511
7512 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7513 Remove.
7514
dd835f8b
TT
75152019-06-25 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-data.h (struct tui_command_element): Remove.
7518 (union tui_which_element) <command>: Remove.
7519 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7520 assert.
7521 (free_content_elements): Remove CMD_WIN case.
7522
bd7db367
TT
75232019-06-25 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui-layout.c (tui_set_layout): Update.
7526 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7527 * tui/tui-data.c (layout_def): Update.
7528
3add462f
TT
75292019-06-25 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7533 (tui_source_window_base::set_new_height): Update.
7534 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7535 Update.
7536 (tui_set_locator_fullname, tui_set_locator_info)
7537 (tui_show_frame_info): Update.
7538 * tui/tui-source.c (tui_set_source_content)
7539 (tui_source_is_displayed): Update.
7540 * tui/tui-layout.c (show_source_disasm_command, show_data)
7541 (show_source_or_disasm_and_command): Update.
7542 * tui/tui-disasm.c (tui_set_disassem_content)
7543 (tui_get_begin_asm_address): Update.
7544 * tui/tui-data.h (struct tui_locator_element): Remove.
7545 (union tui_which_element) <locator>: Remove.
7546 (struct tui_locator_window): New.
7547 (tui_locator_win_info_ptr): Change return type.
7548 * tui/tui-data.c (_locator): Change type.
7549 (tui_locator_win_info_ptr): Change return type.
7550 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7551 (tui_alloc_content): Add assert.
7552
489e9d8b
TT
75532019-06-25 Tom Tromey <tom@tromey.com>
7554
7555 * tui/tui-winsource.c
7556 (tui_exec_info_window::maybe_allocate_content): New method.
7557 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7558 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7559 (make_source_or_disasm_window): Add cast.
7560 * tui/tui-data.h (union tui_which_element) <simple_string>:
7561 Remove.
7562 (struct tui_source_info): New.
7563 (struct tui_source_window_base) <execution_info>: Change type.
7564 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7565 case, and add assert.
7566 (tui_alloc_content): Add assert.
7567
c3fabb7d
TT
75682019-06-25 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7571 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7572 * tui/tui-data.c (tui_alloc_win_info): Remove.
7573
bbc228ee
TT
75742019-06-25 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7577 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7578 can_highlight.
7579
5fcee43a
TT
75802019-06-25 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7583 make_visible_with_new_height method.
7584 (tui_win_info::make_visible_with_new_height): New method.
7585 (tui_source_window_base::do_make_visible_with_new_height)
7586 (tui_data_window::do_make_visible_with_new_height)
7587 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7588 (make_visible_with_new_height): Remove.
7589 (tui_resize_all, tui_adjust_win_heights): Use
7590 make_visible_with_new_height method.
7591 * tui/tui-data.h (struct tui_win_info)
7592 <do_make_visible_with_new_height, make_visible_with_new_height>:
7593 New methods.
7594 (struct tui_source_window_base, struct tui_data_window)
7595 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7596 methods.
7597
d83f1fe6
TT
75982019-06-25 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7601 method.
7602 (update_tab_width): Call update_tab_width method.
7603 * tui/tui-data.h (struct tui_win_info)
7604 (struct tui_source_window_base) <update_tab_width>: New methods.
7605
17374de4
TT
76062019-06-25 Tom Tromey <tom@tromey.com>
7607
7608 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7609 parameter.
7610 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7611 parameter.
7612 (tui_gen_win_info::make_visible): Update.
7613 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7614 parameter.
7615 * tui/tui-data.h (enum tui_box): New enum.
7616 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7617
f936bca2
TT
76182019-06-25 Tom Tromey <tom@tromey.com>
7619
7620 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7621 init_and_make_win for EXEC_INFO_WIN.
7622 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7623 longer inline.
7624 (struct tui_win_info) <~tui_win_info>: Inline.
7625 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7626 Don't declare.
7627 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7628 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7629 Remove.
7630 (tui_initialize_static_data): Update.
7631 (~tui_gen_win_info): Handle more cleanup here.
7632 (~tui_source_window_base): Delete "execution_info".
7633 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7634
d6ba6a11
TT
76352019-06-25 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-layout.c (make_command_window): Don't set
7638 can_highlight.
7639 (show_source_disasm_command): Call the reset method.
7640 (show_data): Don't set can_highlight. Call the reset method.
7641 (tui_gen_win_info::reset): Rename from init_gen_win_info
7642 (init_and_make_win): Simplify. Return tui_gen_win_info.
7643 (show_source_or_disasm_and_command): Call the reset method.
7644 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7645 (struct tui_cmd_window): Set can_highlight.
7646
48a3bd16
TT
76472019-06-25 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7650 from make_visible.
7651 (tui_make_visible, tui_make_invisible): Rewrite.
7652 (tui_win_info::make_visible): Remove.
7653 (tui_source_window_base::make_visible): Update.
7654 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7655 method. Moved from...
7656 (struct tui_win_info) <make_visible>: ...here.
7657
c3bd716f
TT
76582019-06-25 Tom Tromey <tom@tromey.com>
7659
7660 * tui/tui-winsource.c
7661 (tui_source_window_base::do_scroll_horizontal): Remove direction
7662 parameter.
7663 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7664 direction parameter.
7665 * tui/tui-win.c (tui_win_info::forward_scroll)
7666 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7667 (tui_win_info::right_scroll): Update.
7668 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7669 direction parameter.
7670 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7671 direction parameter.
7672 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7673 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7674 Remove direction parameter.
7675 (struct tui_source_window_base, struct tui_source_window)
7676 (struct tui_disasm_window, struct tui_data_window)
7677 (struct tui_cmd_window): Update.
7678
21c32dca
TT
76792019-06-25 Tom Tromey <tom@tromey.com>
7680
7681 * tui/tui-winsource.h (tui_set_exec_info_content)
7682 (tui_show_exec_info_content, tui_erase_exec_info_content)
7683 (tui_clear_exec_info_content, tui_update_exec_info): Change
7684 argument to tui_source_window_base.
7685 * tui/tui-winsource.c (tui_set_exec_info_content)
7686 (tui_show_exec_info_content, tui_erase_exec_info_content)
7687 (tui_clear_exec_info_content, tui_update_exec_info): Change
7688 argument to tui_source_window_base.
7689
73fbdc65
TT
76902019-06-25 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7693 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7694
33325343
TT
76952019-06-25 Tom Tromey <tom@tromey.com>
7696
7697 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7698 check.
7699
29d2c474
TT
77002019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7703 type to void.
7704 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7705 type to void.
7706 * tui/tui-source.c (tui_set_source_content): Update.
7707 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7708
152f3f4b
TT
77092019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-win.c (window_name_completer, tui_set_focus)
7712 (tui_all_windows_info): Use name method.
7713 * tui/tui-data.h (struct tui_gen_win_info)
7714 (struct tui_source_window, struct tui_disasm_window)
7715 (struct tui_data_window, struct tui_cmd_window) <name>: New
7716 method.
7717 (tui_win_name): Don't declare.
7718 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7719 (tui_win_name): Remove.
7720
be4da588
TT
77212019-06-25 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-winsource.h (tui_update_source_window)
7724 (tui_update_source_window_as_is): Change parameter type.
7725 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7726 to be a tui_source_window_base.
7727 (tui_update_source_window_as_is): Likewise.
7728 * tui/tui-win.c (make_visible_with_new_height): Update.
7729
5b81daba
TT
77302019-06-25 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-winsource.c (tui_erase_source_content)
7733 (tui_show_source_content, tui_show_exec_info_content)
7734 (tui_erase_exec_info_content): Use refresh_window method.
7735 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7736 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7737 from tui_refresh_win.
7738 (tui_data_window::refresh_window): New method.
7739 (tui_win_info::refresh, tui_source_window_base::refresh)
7740 (tui_refresh_all): Use refresh_window method.
7741 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7742 method.
7743 * tui/tui-regs.c (tui_display_register): Call refresh_window
7744 method.
7745 * tui/tui-layout.c (show_source_disasm_command)
7746 (show_source_or_disasm_and_command): Call refresh_window method.
7747 * tui/tui-data.h (struct tui_gen_win_info)
7748 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7749 New method.
7750
cb2ce893
TT
77512019-06-25 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui.c (tui_rl_other_window, tui_enable)
7754 (tui_is_window_visible, tui_get_command_dimension): Update.
7755 * tui/tui-winsource.c (tui_update_source_window_as_is)
7756 (tui_clear_source_content, tui_erase_source_content)
7757 (tui_show_source_line, tui_source_window_base::refill)
7758 (tui_source_window_base::do_scroll_horizontal)
7759 (tui_source_window_base::set_is_exec_point_at)
7760 (tui_update_breakpoint_info, tui_set_exec_info_content)
7761 (tui_alloc_source_buffer, tui_line_is_displayed)
7762 (tui_addr_is_displayed): Update.
7763 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7764 (tui_check_and_display_highlight_if_needed)
7765 (tui_win_info::make_visible, tui_win_info::refresh)
7766 (tui_refresh_all): Update.
7767 * tui/tui-windata.c (tui_first_data_item_displayed)
7768 (tui_delete_data_content_windows, tui_erase_data_content)
7769 (tui_display_all_data, tui_data_window::refresh_all)
7770 (tui_check_data_values): Update.
7771 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7772 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7773 (tui_win_info::backward_scroll, tui_refresh_all_win)
7774 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7775 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7776 (tui_source_window_base::set_new_height)
7777 (tui_data_window::set_new_height)
7778 (make_invisible_and_set_new_height)
7779 (make_visible_with_new_height, new_height_ok)
7780 (parse_scrolling_args): Update.
7781 * tui/tui-stack.c (tui_show_frame_info): Update.
7782 * tui/tui-source.c (tui_set_source_content)
7783 (tui_set_source_content_nil, tui_source_is_displayed)
7784 (tui_source_window::do_scroll_vertical): Update.
7785 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7786 (tui_display_registers_from, tui_display_reg_element_at_line)
7787 (tui_check_register_values, tui_reg_command): Update.
7788 * tui/tui-layout.c (tui_default_win_height)
7789 (show_source_disasm_command, show_data, init_and_make_win)
7790 (show_source_or_disasm_and_command): Update.
7791 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7792 (tui_redisplay_readline, tui_mld_flush)
7793 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7794 (tui_getc): Update.
7795 * tui/tui-disasm.c (tui_set_disassem_content)
7796 (tui_disasm_window::do_scroll_vertical): Update.
7797 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7798 Now virtual.
7799 (struct tui_win_info): Derive from tui_gen_win_info.
7800 <~tui_win_info>: Mark as override.
7801 <generic>: Remove member.
7802 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7803 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7804 (~tui_data_window, ~tui_win_info)
7805 (tui_free_all_source_wins_content): Update.
7806 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7807
ab313b35
TT
78082019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-layout.c (init_and_make_win): Use new.
7811 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7812 destructor, initializers.
7813 (tui_alloc_generic_win_info): Don't declare.
7814 * tui/tui-data.c (_locator): Add argument to constructor.
7815 (source_win, disasm_win): New globals.
7816 (exec_info): Remove.
7817 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7818 Update.
7819 (tui_alloc_generic_win_info): Remove.
7820 (init_content_element): Use new.
7821 (tui_win_info::tui_win_info): Update.
7822 (free_content_elements) <case DATA_WIN>: Use delete.
7823
dc2c33e4
TT
78242019-06-25 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7827 * tui/tui-windata.c (tui_first_data_item_displayed)
7828 (tui_delete_data_content_windows): Update.
7829 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7830 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7831 (tui_display_registers_from, tui_check_register_values): Update.
7832 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7833 pointer.
7834 * tui/tui-data.c (init_content_element): Update. Allocate the new
7835 window.
7836 (tui_free_data_content): Update.
7837 (free_content_elements) <case DATA_WIN>: Free the window.
7838
214a5cbe
TT
78392019-06-25 Tom Tromey <tom@tromey.com>
7840
7841 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7842 Update.
7843 * tui/tui-layout.c (make_command_window)
7844 (show_source_disasm_command, show_data, init_and_make_win)
7845 (show_source_or_disasm_and_command): Update.
7846 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7847 method.
7848 <can_highight, is_highlighted>: Now bool.
7849 (tui_set_win_highlight): Don't declare.
7850 * tui/tui-data.c (tui_set_win_highlight): Remove.
7851
8e2daf15
TT
78522019-06-25 Tom Tromey <tom@tromey.com>
7853
7854 * tui/tui-wingeneral.c (make_visible): Remove check of window
7855 type.
7856
8903bd8a
TT
78572019-06-25 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-win.c (tui_win_info::max_height)
7860 (tui_cmd_window::max_height): New methods.
7861 (new_height_ok): Call max_height.
7862 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7863 <max_height>: New method.
7864
3f02ce1e
TT
78652019-06-25 Tom Tromey <tom@tromey.com>
7866
7867 * tui/tui-win.c (tui_source_window_base::set_new_height)
7868 (tui_data_window::set_new_height): New methods.
7869 (make_invisible_and_set_new_height): Call set_new_height method.
7870 * tui/tui-data.h (struct tui_win_info)
7871 (struct tui_source_window_base, struct tui_data_window)
7872 <set_new_height>: New method.
7873
1825f487
TT
78742019-06-25 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7877 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7878 tui_refresh_data_win.
7879 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7880 method.
7881 (tui_refresh_all_win): Call the refresh_all method.
7882 (tui_set_focus): Likewise.
7883 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7884 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7885 Likewise.
7886
ad54d15b
TT
78872019-06-25 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-winsource.h (tui_refill_source_window)
7890 (tui_set_is_exec_point_at): Don't declare.
7891 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7892 (tui_source_window_base::refill): Rename from
7893 tui_refill_source_window.
7894 (tui_source_window_base::do_scroll_horizontal): Update.
7895 (tui_source_window_base::set_is_exec_point_at): Rename from
7896 tui_set_is_exec_point_at.
7897 (tui_update_all_breakpoint_info): Update.
7898 * tui/tui-stack.c (tui_show_frame_info): Update.
7899 * tui/tui-layout.c (show_data): Add cast.
7900 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7901 * tui/tui-data.h (struct tui_source_window_base) <refill,
7902 set_is_exec_point_at>: New methods.
7903 (tui_source_windows, tui_add_to_source_windows): Update types.
7904 (tui_add_to_source_windows): Remove redundant declaration.
7905 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7906 (tui_source_windows): Change return type.
7907 (tui_clear_source_windows_detail): Update.
7908 (tui_add_to_source_windows): Change type of parameter.
7909 (tui_free_all_source_wins_content): Update.
7910
2042b506
TT
79112019-06-25 Tom Tromey <tom@tromey.com>
7912
7913 * tui/tui-wingeneral.c (tui_win_info::refresh)
7914 (tui_source_window_base::refresh): New methods.
7915 (tui_refresh_all): Call the refresh method.
7916 * tui/tui-data.h (struct tui_win_info)
7917 (struct tui_source_window_base) <refresh>: New method.
7918
56122977
TT
79192019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui.h (tui_is_window_visible): Return bool.
7922 * tui/tui.c (tui_is_window_visible): Return bool.
7923 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7924 (tui_make_visible, tui_make_invisible)
7925 (tui_win_info::make_visible)
7926 (tui_source_window_base::make_visible, make_all_visible)
7927 (tui_make_all_visible, tui_make_all_invisible): Update.
7928 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7929 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7930 bool.
7931 (struct tui_win_info, struct tui_source_window_base)
7932 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7933 * tui/tui-data.c (tui_init_generic_part): Update.
7934
cda37efb
TT
79352019-06-25 Tom Tromey <tom@tromey.com>
7936
7937 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7938 (tui_source_window_base::make_visible): New methods.
7939 (make_all_visible): Make method call.
7940 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7941 (struct tui_source_window_base, struct tui_cmd_window): Override
7942 make_visible.
7943 (tui_win_is_source_type): Don't declare.
7944 * tui/tui-data.c (tui_win_is_source_type): Remove.
7945
6a0ee02c
TT
79462019-06-25 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7949 NULL check.
7950
63901aec
TT
79512019-06-25 Tom Tromey <tom@tromey.com>
7952
7953 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7954 Inline constructor. Add initializers for members.
7955 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7956 constructors; now inline in class.
7957
ceb13a13
TT
79582019-06-25 Tom Tromey <tom@tromey.com>
7959
7960 * tui/tui-regs.c (tui_show_registers): Update.
7961 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7962 bool.
7963 * tui/tui-data.c (tui_data_window::clear_detail)
7964 (tui_data_window): Update.
7965
238eb706
TT
79662019-06-25 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui-windata.c (tui_display_all_data)
7969 (tui_display_data_from_line, tui_display_data_from)
7970 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7971 Update.
7972 * tui/tui-regs.c (tui_last_regs_line_no)
7973 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7974 (tui_show_registers, tui_show_register_group)
7975 (tui_display_registers_from, tui_display_reg_element_at_line)
7976 (tui_display_registers_from_line, tui_check_register_values)
7977 (tui_reg_next, tui_reg_prev): Update.
7978 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7979 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7980 tui_data_window.
7981 (struct tui_win_info) <detail>: Remove. Add new fields from
7982 tui_data_info.
7983 (TUI_DATA_WIN): Add cast.
7984 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7985 (~tui_data_window): Simplify.
7986
81491aa0
TT
79872019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-layout.c (show_source_disasm_command)
7990 (show_source_or_disasm_and_command): Update.
7991 * tui/tui-io.c (update_cmdwin_start_line)
7992 (tui_redisplay_readline): Update.
7993 * tui/tui-data.h (struct tui_command_info): Remove.
7994 (struct tui_win_info) <detail>: Remove command_info member.
7995 (struct tui_data_window) <start_line>: New member, from
7996 tui_command_info.
7997 (TUI_CMD_WIN): Add casts.
7998
e6e41501
TT
79992019-06-25 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-winsource.c (tui_update_source_window)
8002 (tui_refill_source_window)
8003 (tui_source_window_base::do_scroll_horizontal)
8004 (tui_update_breakpoint_info, tui_set_exec_info_content)
8005 (tui_show_exec_info_content, tui_erase_exec_info_content)
8006 (tui_clear_exec_info_content): Update.
8007 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8008 Update.
8009 * tui/tui-win.c (make_invisible_and_set_new_height)
8010 (make_visible_with_new_height): Update.
8011 * tui/tui-source.c (tui_set_source_content)
8012 (tui_show_symtab_source): Update.
8013 * tui/tui-layout.c (extract_display_start_addr)
8014 (show_source_disasm_command, show_data)
8015 (make_source_or_disasm_window)
8016 (show_source_or_disasm_and_command): Update.
8017 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8018 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8019 "gdbarch".
8020 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8021 to tui_source_window_base.
8022 (struct tui_win_info) <detail>: Remove source_info member.
8023 (struct tui_source_window_base) <has_locator>: Inline.
8024 Move contents from tui_source_info; rename has_locator member to
8025 m_has_locator.
8026 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8027 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8028 header file.
8029 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8030 Simplify.
8031 (tui_free_all_source_wins_content): Cast to
8032 tui_source_window_base.
8033
44f0e208
TT
80342019-06-25 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui-win.c (make_invisible_and_set_new_height)
8037 (make_visible_with_new_height): Call has_locator method.
8038 * tui/tui-layout.c (show_source_disasm_command, show_data)
8039 (show_source_or_disasm_and_command): Update for bool change.
8040 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8041 (tui_win_info) <has_locator>: New method.
8042 (struct tui_source_window_base) <has_locator>: New method.
8043 (tui_win_has_locator): Don't declare.
8044 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8045 from tui_win_has_locator.
8046 (tui_source_window_base): Use false, not FALSE.
8047
7778b912
TT
80482019-06-25 Tom Tromey <tom@tromey.com>
8049
8050 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8051 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8052 clear_detail method directly.
8053 (tui_clear_win_detail): Remove.
8054
f83d391c
TT
80552019-06-25 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8058 "this", not TUI_DISASM_WIN.
8059
13446e05
TT
80602019-06-25 Tom Tromey <tom@tromey.com>
8061
8062 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8063 declare.
8064 * tui/tui-winsource.c
8065 (tui_source_window_base::do_scroll_horizontal): Rename from
8066 tui_horizontal_source_scroll.
8067 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8068 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8069 from tui_vertical_data_scroll.
8070 * tui/tui-win.h (tui_scroll): Don't declare.
8071 * tui/tui-win.c (tui_win_info::forward_scroll)
8072 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8073 (tui_win_info::right_scroll): Rename and update.
8074 (tui_scroll_forward_command, tui_scroll_backward_command)
8075 (tui_scroll_left_command, tui_scroll_right_command): Update.
8076 (tui_scroll): Remove.
8077 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8078 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8079 from tui_vertical_source_scroll.
8080 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8081 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8082 from tui_vertical_disassem_scroll.
8083 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8084 do_scroll_horizontal>: New methods.
8085 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8086 Likewise.
8087 (struct tui_source_window_base): Add do_scroll_horizontal.
8088 (struct tui_source_window, struct tui_disasm_window): Add
8089 do_scroll_vertical.
8090 (struct tui_data_window, struct tui_cmd_window): Add
8091 do_scroll_horizontal and do_scroll_vertical.
8092 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8093
5cf82909
TT
80942019-06-25 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui-data.h (struct tui_source_window_base): New struct.
8097 (struct tui_source_window): Derive from tui_source_window_base.
8098 (struct tui_disasm_window): New struct.
8099 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8100 from tui_source_window::clear_detail.
8101 (tui_source_window_base): Rename from tui_source_window.
8102 (~tui_source_window_base): Rename from ~tui_source_window.
8103 (tui_alloc_win_info): Create a tui_disasm_window.
8104
ee1d42d6
TT
81052019-06-25 Tom Tromey <tom@tromey.com>
8106
8107 * tui/tui-data.h (struct tui_source_window)
8108 (struct tui_data_window): Declare destructors.
8109 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8110 destructors.
8111 (tui_win_info): Simplify.
8112
b4eb2452
TT
81132019-06-25 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-winsource.c (tui_display_main)
8116 (tui_update_source_windows_with_addr)
8117 (tui_update_all_breakpoint_info): Update.
8118 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8119 (new_height_ok, parse_scrolling_args): Update.
8120 * tui/tui-stack.c (tui_show_frame_info): Update.
8121 * tui/tui-data.h (struct tui_list): Remove.
8122 (tui_source_windows): Return a reference to a std::vector.
8123 * tui/tui-data.c (source_windows): Now a std::vector.
8124 (tui_source_windows): Change return type.
8125 (tui_clear_source_windows): Rewrite.
8126 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8127 (tui_free_all_source_wins_content): Rewrite.
8128
8761a91b
TT
81292019-06-25 Tom Tromey <tom@tromey.com>
8130
8131 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8132 (struct tui_data_window, struct tui_cmd_window): Declare
8133 clear_detail method.
8134 * tui/tui-data.c (tui_source_window::clear_detail)
8135 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8136 methods.
8137 (tui_clear_win_detail): Simplify.
8138
0ed69eda
TT
81392019-06-25 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui-layout.c (make_source_window, make_disasm_window)
8142 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8143 Return the new window.
8144 (show_source_disasm_command, show_data)
8145 (show_source_or_disasm_and_command): Update.
8146
82432e10
TT
81472019-06-25 Tom Tromey <tom@tromey.com>
8148
8149 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8150 parameter. Return the new window.
8151 (show_source_disasm_command): Update and remove NULL check.
8152 (show_source_or_disasm_and_command): Update.
8153
ec328aa5
TT
81542019-06-25 Tom Tromey <tom@tromey.com>
8155
8156 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8157
33b906ab
TT
81582019-06-25 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui-data.h (struct tui_win_info): Make constructor
8161 protected. Make destructor virtual. Add initializers.
8162 (tui_source_window, tui_data_window, tui_cmd_window): New
8163 classes.
8164 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8165 constructor. Add "type" parameter.
8166 (tui_source_window, tui_data_window, tui_cmd_window): New
8167 constructors.
8168 (tui_alloc_win_info): Instantiate the appropriate subclass.
8169
e7e11af4
TT
81702019-06-25 Tom Tromey <tom@tromey.com>
8171
8172 * tui/tui-win.c (tui_resize_all): Use delete.
8173 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8174 destructor.
8175 (tui_free_window): Don't declare.
8176 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8177 Update.
8178
6792b55e
TT
81792019-06-25 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui-data.h (struct tui_win_info): Add constructor.
8182 * tui/tui-data.c (tui_alloc_win_info): Use new.
8183 (tui_free_window): Use delete.
8184
f95675e1
TT
81852019-06-22 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8188 declare.
8189 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8190
5bff081c
TT
81912019-06-22 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8194 declare.
8195 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8196
47e3f474
TV
81972019-06-22 Tom de Vries <tdevries@suse.de>
8198
8199 * dwarf2read.c (create_addrmap_from_aranges)
8200 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8201 instead of '%zu'.
8202
fd5866f6
SM
82032019-06-21 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * dwarf2read.h (dwarf2_section_info_def): Remove.
8206 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8207 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8208 std::vector<dwarf2_section_info>.
8209 (struct dwo_file) <~dwo_file>: Remove.
8210 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8211 types field.
8212 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8213 (dwarf2_read_debug_names): Likewise.
8214 (create_debug_types_hash_table): Change parameter type to
8215 array_view, adjust code accordingly.
8216 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8217 (partial_die_info::fixup): Likewise.
8218 (determine_prefix): Likewise.
8219 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8220
fb1eb2f9
SM
82212019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8222
8223 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8224 gdb_bfd_ref_ptr.
8225 <~dwo_file>: Remove call to gdb_bfd_unref.
8226 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8227 gdb_bfd_ref_ptr::get.
8228
51ac9db5
SM
82292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8230
8231 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8232 type to htab_up.
8233 * dwarf2read.c (struct dwo_file): Initialize fields.
8234 <~dwo_file>: New.
8235 (free_dwo_file): Remove, move content to ~dwo_file.
8236 (struct dwo_file_deleter): Remove.
8237 (dwo_file_up>: Remove custom deleter.
8238 (free_dwo_files): Remove.
8239 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8240 dwo_files.
8241 (process_skeletonless_type_units): Call unique_ptr::get.
8242 (allocate_dwo_file_hash_table): Add deleter to created hash
8243 table. Change return type to htab_up.
8244 (lookup_dwo_file_slot): Don't memset dwo_file, call
8245 unique_ptr::get.
8246 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8247 (create_dwo_unit_in_dwp_v2): Likewise.
8248 (open_and_init_dwo_file): Likewise.
8249 (free_dwo_file_from_slot): Remove.
8250
dc4ccb6f
SM
82512019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8252
8253 * dwarf2read.h (struct dwarf2_section_info) <readin,
8254 is_virtual>: Change type to bool.
8255 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8256 true instead of 1.
8257
e6a1c5cb
TT
82582019-06-19 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-data.h (tui_init_content_element): Don't declare.
8261
6f6ffbeb
TT
82622019-06-19 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-data.h (tui_init_win_info): Don't declare.
8265
f23f598e
TV
82662019-06-19 Tom de Vries <tdevries@suse.de>
8267
8268 * dwarf2read.h (abstract_to_concrete): Change type to
8269 std::unordered_map<sect_offset, std::vector<sect_offset>,
8270 gdb::hash_enum<sect_offset>>.
8271
680e1bee
TT
82722019-06-19 Tom Tromey <tromey@adacore.com>
8273
8274 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8275 EVAL_AVOID_SIDE_EFFECTS specially.
8276
dcf37923
TT
82772019-06-19 Tom Tromey <tromey@adacore.com>
8278
8279 * source-cache.c (highlighter): New global.
8280 (source_cache::get_source_lines): Create a highlighter on demand.
8281
494986d5
AB
82822019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8283
8284 * defs.h (deprecated_interactive_hook): Delete declaration.
8285 * interps.c (clear_interpreter_hooks): Remove use of
8286 deprecated_interactive_hook.
8287 * top.c (deprecated_interactive_hook): Delete definition.
8288 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8289
3360b6e7
TV
82902019-06-18 Tom de Vries <tdevries@suse.de>
8291
8292 PR gdb/24515
8293 * dwarf2read.h (abstract_to_concrete): Change type from
8294 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8295 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8296 * dwarf2read.c (read_variable): Update.
8297 (dwarf2_fetch_die_loc_sect_off): Update.
8298
310b3441
TV
82992019-06-17 Tom de Vries <tdevries@suse.de>
8300
8301 PR gdb/24617
8302 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8303 accessing parent[parent_len - 1].
8304
ba9777be
PP
83052019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8306
8307 PR gdb/24364
8308 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8309 call dtrace_process_dof with NULL dof.
8310
2b9f6e89
TV
83112019-06-16 Tom de Vries <tdevries@suse.de>
8312
8313 PR gdb/24445
8314 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8315
431b3ead
TT
83162019-06-16 Tom Tromey <tom@tromey.com>
8317
8318 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8319 (make_all_visible): Use address of member.
8320
d04b44a1
TT
83212019-06-16 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8324 (tui_free_window, free_content, free_content_elements): Remove
8325 unnecessary cast.
8326 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8327 cast.
8328 * tui/tui-regs.c (tui_show_register_group)
8329 (tui_display_registers_from, tui_display_reg_element_at_line):
8330 Remove unnecessary cast.
8331
bf5142e7
AB
83322019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8333
8334 * linux-nat.c (normal_mask): Delete.
8335 (_initialize_linux_nat): Don't initialise normal_mask.
8336
c4973306
SM
83372019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 PR gdb/24445
8340 * dwarf-index-write.h (write_psymtabs_to_index): Add
8341 dwz_basename parameter.
8342 * dwarf-index-write.c (write_gdbindex): Move file writing to
8343 write_gdbindex_1. Change return type void.
8344 (assert_file_size): Move up, remove filename parameter.
8345 (write_gdbindex_1): New function.
8346 (write_debug_names): Change return type to void, call
8347 assert_file_size.
8348 (struct index_wip_file): New struct.
8349 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8350 file logic to index_wip_file. Write index for dwz file if
8351 needed.
8352 (save_gdb_index_command): Pass basename of dwz file, if present.
8353 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8354 build-id of dwz file, if present.
8355 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8356 (dwarf2_get_dwz_file): Likewise.
8357 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8358 (dwarf2_get_dwz_file): Likewise.
8359
395f9c91
TT
83602019-06-16 Tom Tromey <tom@tromey.com>
8361
8362 * coffread.c (process_coff_symbol): Use xstrdup.
8363 * value.c (create_internalvar): Use xstrdup.
8364
cafb3438
TT
83652019-06-16 Tom Tromey <tom@tromey.com>
8366
8367 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8368 * breakpoint.c (stopin_command, stopat_command)
8369 (until_break_command, decode_location_default): Remove unnecessary
8370 cast.
8371 * utils.c (subset_compare): Remove unnecessary cast.
8372 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8373 cast.
8374 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8375 cast.
8376 * infcmd.c (path_command): Remove unnecessary cast.
8377 * coffread.c (decode_type): Remove unnecessary cast.
8378 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8379 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8380 * tui/tui-stack.c (tui_show_locator_content)
8381 (tui_show_frame_info): Remove unnecessary cast.
8382 * tui/tui-win.c (tui_scroll_forward_command)
8383 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8384 (parse_scrolling_args): Remove unnecessary cast.
8385 * tui/tui-data.c (init_win_info, tui_del_window)
8386 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8387 (free_content_elements): Remove unnecessary cast.
8388 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8389 unnecessary cast.
8390 * tui/tui-source.c (tui_set_source_content)
8391 (tui_vertical_source_scroll): Remove unnecessary cast.
8392 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8393 cast.
8394 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8395 * tui/tui-regs.c (tui_display_registers_from)
8396 (tui_display_register): Remove unnecessary cast.
8397 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8398 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8399 (make_visible): Remove unnecessary cast.
8400 * tui/tui-winsource.c (tui_erase_source_content)
8401 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8402 unnecessary cast.
8403 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8404 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8405 * stabsread.c (read_type, read_array_type, read_range_type):
8406 Remove unnecessary cast.
8407 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8408 (parse_symbol, parse_type, upgrade_type, parse_external)
8409 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8410 unnecessary cast.
8411 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8412
730ead81
TT
84132019-06-16 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-data.c (tui_alloc_generic_win_info)
8416 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8417 checks.
8418
584a927c
AB
84192019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8420 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * f-typeprint.c (f_print_type): Don't return early for not
8423 associated or not allocated types.
8424 (f_type_print_varspec_suffix): Add print_rank parameter and print
8425 ranks of array types in case they dangling.
8426 (f_type_print_base): Add print_rank parameter.
8427
30056ea0
AB
84282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * NEWS: Mention new MI commands.
8431 * break-catch-throw.c (enum exception_event_kind): Move to
8432 breakpoint.h.
8433 (print_mention_exception_catchpoint): Output text as a single
8434 message.
8435 (catch_exception_command_1): Rename to...
8436 (catch_exception_event): ...this, make non-static, update header
8437 command, and change some parameter types.
8438 (catch_catch_command): Update for changes to
8439 catch_exception_command_1.
8440 (catch_throw_command): Likewise.
8441 (catch_rethrow_command): Likewise.
8442 * breakpoint.c (enum exception_event_kind): Delete.
8443 * breakpoint.h (enum exception_event_kind): Moved here from
8444 break-catch-throw.c.
8445 (catch_exception_event): Declare.
8446 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8447 (mi_cmd_catch_throw): New function.
8448 (mi_cmd_catch_rethrow): New function.
8449 (mi_cmd_catch_catch): New function.
8450 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8451 'catch-catch' entries.
8452 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8453 (mi_cmd_catch_rethrow): Declare.
8454 (mi_cmd_catch_catch): Declare.
8455
ec8e2b6d
AB
84562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * annotate.c (annotate_source_line): Change return type to void,
8459 update implementation to match.
8460 * annotate.h (annotate_source_line): Change return type to void,
8461 update header comment.
8462 * stack.c (print_frame_info): Don't change what frame information
8463 is printed based on whether annotations are on or not.
8464
0d3abd8c
AB
84652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8468 (annotate_source): Make static.
8469 (annotate_source_line): Moved from source.c and renamed from
8470 identify_source_line. Update the return type.
8471 * annotate.h (annotate_source): Delete declaration.
8472 (annotate_source_line): Declaration moved from source.h, and
8473 renamed from identify_source_line. Return type updated.
8474 * source.c (identify_source_line): Moved to annotate.c and renamed
8475 to annotate_source_line.
8476 (info_line_command): Remove check of annotation_level.
8477 * source.h (identify_source_line): Move declaration to annotate.h
8478 and rename to annotate_source_line.
8479 * stack.c: Add 'annotate.h' include.
8480 (print_frame_info): Remove check of annotation_level before
8481 calling annotate_source_line.
8482
00df30ae
AB
84832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8484
8485 * source-cache.c (source_cache::get_plain_source_lines): Use
8486 open_source_file_with_line_charpos instead of just
8487 open_source_file, remove call to find_source_lines.
8488 (source_cache::get_source_lines): Likewise.
8489 * source.c (find_source_lines): Make static.
8490 (get_filename_and_charpos): Renamed into...
8491 (open_source_file_with_line_charpos): ..this along with changes to
8492 return a scoped_fd, and some other minor clean ups.
8493 (identify_source_line): Use open_source_file_with_line_charpos.
8494 (search_command_helper): Use open_source_file_with_line_charpos
8495 instead of just open_source_file, remove call to
8496 find_source_lines.
8497 * source.h (open_source_file_with_line_charpos): Declare new
8498 function.
8499 (find_source_lines): Delete declaration.
8500
afda45a2
AB
85012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * source.c (get_filename_and_charpos): Remove fullname
8504 parameter.
8505 (identify_source_line): Update call to get_filename_and_charpos.
8506
0735b091
TT
85072019-06-14 Tom Tromey <tromey@adacore.com>
8508
8509 PR gdb/24502:
8510 * ui-style.h (skip_ansi_escape): Update comment.
8511 * ui-file.h (class no_terminal_escape_file): New class.
8512 * ui-file.c (no_terminal_escape_file::write)
8513 (no_terminal_escape_file::puts): New methods.
8514 * cli/cli-logging.c (handle_redirections): Use
8515 no_terminal_escape_file.
8516
52ce35e2
TT
85172019-06-14 Tom Tromey <tromey@adacore.com>
8518
8519 * NEWS: Move convenience variable news above Python news.
8520
73cc7272
TT
85212019-06-14 Tom Tromey <tom@tromey.com>
8522
8523 * gnulib: Move directory to top-level.
8524 * configure.ac: Don't configure gnulib.
8525 * configure: Rebuild.
8526 * common/common-defs.h: Use new path to gnulib.
8527 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8528 (GNULIB_H): Remove.
8529 (INCGNU): Look in new gnulib location.
8530 (HFILES_NO_SRCDIR): Remove gnulib files.
8531 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8532 (generated_files): Remove GNULIB_H.
8533 ($(LIBGNU), all-lib): Remove targets.
8534 (distclean): Don't mention GNULIB_BUILDDIR.
8535 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8536
f5686554
TT
85372019-06-14 Tom Tromey <tromey@adacore.com>
8538
8539 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8540 Warn if symbol file does not provide any symbols.
8541
a0c1ffed
TT
85422019-06-14 Tom Tromey <tromey@adacore.com>
8543
8544 * source.c (find_and_open_source): Respect basenames_may_differ.
8545
7c39e397
AB
85462019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * annotate.c (annotate_breakpoints_invalid): Make use of
8549 scoped_restore_terminal_state.
8550 (annotate_frames_invalid): Likewise.
8551
f411722c
TT
85522019-06-14 Tom Tromey <tromey@adacore.com>
8553
8554 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8555 allow assignment to an internalvar.
8556
4268ec18
TT
85572019-06-14 Tom Tromey <tromey@adacore.com>
8558
8559 * ada-lex.l: Allow "_" in attribute names.
8560
abdb711e
TT
85612019-06-14 Tom Tromey <tromey@adacore.com>
8562
8563 PR gdb/24653:
8564 * regcache.c (registers_changed): Don't call alloca.
8565 * top.c (execute_command): Don't call alloca.
8566
4c048731
PA
85672019-06-13 Pedro Alves <palves@redhat.com>
8568
8569 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8570 'expression'. When parsing an expression, error out if there's
8571 junk after "unlimited".
8572 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8573 (do_set_command): Adjust calls to is_unlimited_literal.
8574
66eb1ed3
PA
85752019-06-13 Pedro Alves <palves@redhat.com>
8576
8577 * compile/compile.c (make_compile_options_def_group): Add braces
8578 around array_view initializer.
8579 * thread.c (make_thread_apply_all_options_def_group)
8580 (make_thread_apply_all_options_def_group): Likewise.
8581
3345721a
PA
85822019-06-13 Pedro Alves <palves@redhat.com>
8583
8584 * NEWS (New commands): Mention "maint test-options
8585 require-delimiter", "maint test-options unknown-is-error", "maint
8586 test-options unknown-is-operand" and "maint show
8587 test-options-completion-result".
8588 (New command options, command completion): New section.
8589 (Completion improvements): New section.
8590 Mention that you can abbreviate "unlimited".
8591
6206060d
PA
85922019-06-13 Pedro Alves <palves@redhat.com>
8593
8594 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8595 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8596 * unittests/cli-utils-selftests.c (test_parse_flags)
8597 (test_parse_flags_qcs): Delete.
8598 (test_cli_utils): Don't call deleted functions.
8599
6665660a
PA
86002019-06-13 Pedro Alves <palves@redhat.com>
8601
8602 * thread.c: Include "cli/cli-option.h".
8603 (tp_array_compar_ascending): Global.
8604 (tp_array_compar): Delete function.
8605 (tp_array_compar_ascending, tp_array_compar_descending): New
8606 functions.
8607 (ascending_option_def, qcs_flag_option_def)
8608 (thr_qcs_flags_option_defs)
8609 (make_thread_apply_all_options_def_group)
8610 (make_thread_apply_options_def_group): New.
8611 (thread_apply_all_command): Use gdb::option::process_options.
8612 (thread_apply_command_completer)
8613 (thread_apply_all_command_completer): New.
8614 (thread_apply_command): Use gdb::option::process_options.
8615 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8616 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8617 to generate help text of "thread apply". Adjust "taas"'s help.
8618 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8619 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8620
f7e13587
PA
86212019-06-13 Pedro Alves <palves@redhat.com>
8622
8623 * thread.c (thread_apply_command): Check for invalid TID with
8624 isdigit instead of !isalpha.
8625
5d707134
PA
86262019-06-13 Pedro Alves <palves@redhat.com>
8627
8628 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8629 (validate_flags_qcs): New.
8630 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8631 (validate_flags_qcs): Declare.
8632 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8633 (make_frame_apply_options_def_group): New.
8634 (frame_apply_command_count): Process options with
8635 gdb::option::process_options.
8636 (frame_apply_completer): New.
8637 (frame_apply_level_completer, frame_apply_all_completer)
8638 (frame_apply_completer): New.
8639 (_initialize_stack): Update help of "frame apply", "frame apply
8640 level", "frame apply all" and "faas" to mention supported options
8641 and install command completers.
8642 * stack.h (frame_apply_all_completer): Declare.
8643 * thread.c: Include "stack.h".
8644 (tfaas_command): Add "--".
8645 (_initialize_thread): Update help "tfaas" to mention supported
8646 options and install command completer.
8647
272d4594
PA
86482019-06-13 Pedro Alves <palves@redhat.com>
8649
8650 * completer.c (complete_nested_command_line): New.
8651 (gdb_completion_word_break_characters_throw): Add assertion.
8652 * completer.h (complete_nested_command_line): Declare.
8653
90a1ef87
PA
86542019-06-13 Pedro Alves <palves@redhat.com>
8655
8656 * stack.c (parse_backtrace_qualifiers): New.
8657 (backtrace_command): Use it.
8658 (backtrace_command_completer): Complete on qualifiers.
8659
d4c16835
PA
86602019-06-13 Pedro Alves <palves@redhat.com>
8661
8662 * frame.c: Include "cli/cli-option.h.
8663 (user_set_backtrace_options): New.
8664 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8665 Delete.
8666 (get_prev_frame): Adjust.
8667 (boolean_option_def, uinteger_option_def)
8668 (set_backtrace_option_defs): New.
8669 (_initialize_frame): Adjust and use
8670 gdb::option::add_setshow_cmds_for_options to install "set
8671 backtrace past-main" and "set backtrace past-entry".
8672 * frame.h: Include "cli/cli-option.h".
8673 (struct frame_print_options): Forward declare.
8674 (print_frame_arguments_all, print_frame_arguments_scalars)
8675 (print_frame_arguments_none): Declare.
8676 (print_entry_values): Delete declaration.
8677 (struct frame_print_options, user_frame_print_options): New.
8678 (struct set_backtrace_options): New.
8679 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8680 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8681 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8682 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8683 (list_args_or_locals): Add frame_print_options parameter.
8684 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8685 * python/py-framefilter.c (enumerate_args): Pass down
8686 USER_FRAME_PRINT_OPTIONS.
8687 * stack.c: Include "cli/cli-option.h".
8688 (print_frame_arguments_all, print_frame_arguments_scalars)
8689 (print_frame_arguments_none): Declare.
8690 (print_raw_frame_arguments, print_entry_values): Delete.
8691 (user_frame_print_options): New.
8692 (boolean_option_def, enum_option_def, frame_print_option_defs):
8693 New.
8694 (struct backtrace_cmd_options): New.
8695 (bt_flag_option_def): New.
8696 (backtrace_command_option_defs): New.
8697 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8698 (print_frame_arg, read_frame_arg, print_frame_args)
8699 (print_frame_info, print_frame): Add frame_print_options parameter
8700 and use it.
8701 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8702 (backtrace_command_1): Add frame_print_options and
8703 backtrace_cmd_options parameters and use them.
8704 (make_backtrace_options_def_group): New.
8705 (backtrace_command): Process command options with
8706 gdb::option::process_options.
8707 (backtrace_command_completer): New.
8708 (_initialize_stack): Extend "backtrace"'s help to mention
8709 supported options. Install completer for "backtrace".
8710 Install some settings commands with add_setshow_cmds_for_options.
8711
2daf894e
PA
87122019-06-13 Pedro Alves <palves@redhat.com>
8713
8714 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8715 and that "set/show print raw frame-arguments" are now deprecated.
8716
8717 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8718 command.
8719 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8720 * stack.c (_initialize_stack): Install "set/show print
8721 raw-frame-arguments", and deprecate "set/show print raw
8722 frame-arguments".
8723 * valprint.c (_initialize_valprint): Deprecate "set/show print
8724 raw".
8725
e6ed716c
PA
87262019-06-13 Pedro Alves <palves@redhat.com>
8727
8728 * compile/compile.c (struct compile_options): New.
8729 (compile_flag_option_def, compile_command_option_defs)
8730 (make_compile_options_def_group): New.
8731 (compile_file_command): Handle options with
8732 gdb::option::process_options.
8733 (compile_file_command_completer): New function.
8734 (compile_code_command): Handle options with
8735 gdb::option::process_options.
8736 (compile_code_command_completer): New function.
8737 (_initialize_compiler): Install completers for "compile code" and
8738 "compile file". Mention available options in "compile code" and
8739 "compile code"'s help.
8740 * completer.c (advance_to_completion_word): New, factored out from
8741 ...
8742 (advance_to_expression_complete_word_point): ... this.
8743 (advance_to_filename_complete_word_point): New.
8744 * completer.h (advance_to_filename_complete_word_point): New
8745 declaration.
8746
7d8062de
PA
87472019-06-13 Pedro Alves <palves@redhat.com>
8748
8749 * compile/compile.c: Include "cli/cli-option.h".
8750 (compile_print_value): Scope data pointer is now a
8751 value_print_options pointer; adjust.
8752 (compile_print_command): Process options. Scope data pointer is
8753 now a value_print_options pointer; adjust.
8754 (_initialize_compile): Update "compile print"'s help to include
8755 supported options. Install a completer for "compile print".
8756 * cp-valprint.c (show_vtblprint, show_objectprint)
8757 (show_static_field_print): Delete.
8758 (_initialize_cp_valprint): Don't install "set print
8759 static-members", "set print vtbl", "set print object" here.
8760 * printcmd.c: Include "cli/cli-option.h" and
8761 "common/gdb_optional.h".
8762 (print_command_parse_format): Rework to fill in a
8763 value_print_options instead of a format_data.
8764 (print_value): Change parameter type from format_data pointer to
8765 value_print_options reference. Adjust.
8766 (print_command_1): Process options. Adjust to pass down a
8767 value_print_options.
8768 (print_command_completer): New.
8769 (_initialize_printcmd): Install print_command_completer as
8770 handle_brkchars completer for the "print" command. Update
8771 "print"'s help to include supported options.
8772 * valprint.c: Include "cli/cli-option.h".
8773 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8774 here from cp-valprint.c.
8775 (boolean_option_def, uinteger_option_def)
8776 (value_print_option_defs, make_value_print_options_def_group):
8777 New. Use gdb::option::add_setshow_cmds_for_options to install
8778 "set print elements", "set print null-stop", "set print repeats",
8779 "set print pretty", "set print union", "set print array", "set
8780 print address", "set print symbol", "set print array-indexes".
8781 * valprint.h: Include <string> and "cli/cli-option.h".
8782 (make_value_print_options_def_group): Declare.
8783 (print_value): Change parameter type from format_data pointer to
8784 value_print_options reference.
8785 (print_command_completer): Declare.
8786
9d0faba9
PA
87872019-06-13 Pedro Alves <palves@redhat.com>
8788
8789 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8790 (COMMON_SFILES): Add maint-test-settings.c.
8791 * cli/cli-decode.c (boolean_enums): New global, factored out from
8792 ...
8793 (add_setshow_boolean_cmd): ... here.
8794 * cli/cli-decode.h (boolean_enums): Declare.
8795 * cli/cli-option.c: New file.
8796 * cli/cli-option.h: New file.
8797 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8798 factored out from ...
8799 (parse_cli_boolean_value(const char *)): ... this.
8800 (is_unlimited_literal): Change parameter type to pointer to
8801 pointer. Adjust and advance ARG pointer.
8802 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8803 (parse_cli_var_enum): New, factored out from ...
8804 (do_set_command): ... this. Adjust.
8805 * cli/cli-setshow.h (parse_cli_boolean_value)
8806 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8807 (parse_cli_var_enum): Declare.
8808 * cli/cli-utils.c: Include "cli/cli-option.h".
8809 (get_ulongest): New.
8810 * cli/cli-utils.h (get_ulongest): Declare.
8811 (check_for_argument): New overloads.
8812 * maint-test-options.c: New file.
8813
2c722807
PA
88142019-06-13 Pedro Alves <palves@redhat.com>
8815
8816 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8817 parse a range if "-" is at the end of the string.
8818
dee7b4c8
PA
88192019-06-13 Pedro Alves <palves@redhat.com>
8820
8821 * cli/cli-setshow.c (parse_auto_binary_operation)
8822 (parse_cli_boolean_value): Don't allow "o".
8823
dca0f6c0
PA
88242019-06-13 Pedro Alves <palves@redhat.com>
8825
8826 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8827 * NEWS: Mention maint test-settings KIND.
8828 * maint-test-settings.c: New file.
8829
597bf39d
PA
88302019-06-13 Pedro Alves <palves@redhat.com>
8831
8832 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8833 completer.
8834 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8835 "set" completers.
8836
48c410fb
PA
88372019-06-13 Pedro Alves <palves@redhat.com>
8838
8839 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8840 after item.
8841
93bcb043
PA
88422019-06-13 Pedro Alves <palves@redhat.com>
8843
8844 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8845
cbba3ecd
PA
88462019-06-13 Pedro Alves <palves@redhat.com>
8847
8848 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8849 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8850 call.
8851 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8852 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8853 calls.
8854 (check_for_argument): Skip spaces after argument.
8855
b9a3f842
PA
88562019-06-13 Pedro Alves <palves@redhat.com>
8857
8858 * thread.c (thread_apply_command): Adjust TID parsing.
8859 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8860 detected before end of string.
8861 (tid_is_in_list): Error out if LIST is invalid.
8862
3844e605
PA
88632019-06-13 Pedro Alves <palves@redhat.com>
8864
8865 * completer.c (complete_line_internal_1): Rewind completion word
8866 point.
8867 (completion_tracker::advance_custom_word_point_by): Change
8868 parameter type to int.
8869 * completer.h (completion_tracker::advance_custom_word_point_by):
8870 Likewise.
8871
00b56dbe
PA
88722019-06-13 Pedro Alves <palves@redhat.com>
8873
8874 * completer.c (advance_to_completion_word): Handle delimiters.
8875
d106773e
PA
88762019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8877
8878 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8879
08f10e02
TT
88802019-06-11 Tom Tromey <tom@tromey.com>
8881
8882 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8883 (xmalloc_failed): Move to alloc.c.
8884 * alloc.c: New file.
8885 * Makefile.in (COMMON_SFILES): Add alloc.c.
8886
1c7fe951
TT
88872019-06-11 Tom Tromey <tom@tromey.com>
8888
8889 * nat/linux-waitpid.c: Don't include server.h.
8890 (linux_debug): Remove.
8891 (my_waitpid): Update.
8892
89549d7f
TT
88932019-06-11 Tom Tromey <tromey@adacore.com>
8894
8895 * infcall.c (_initialize_infcall): Remove trailing newline from
8896 help.
8897 * user-regs.c (_initialize_user_regs): Remove trailing newline
8898 from help.
8899 * typeprint.c (_initialize_typeprint): Remove trailing newline
8900 from help.
8901 * reverse.c (_initialize_reverse): Remove trailing newlines from
8902 help.
8903 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8904 from help.
8905 * language.c (add_set_language_command): Remove trailing newline
8906 from help.
8907 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8908 help.
8909 * disasm.c (_initialize_disasm): Remove trailing newline from
8910 help.
8911 * top.c (init_main): Remove trailing newline from help.
8912 * interps.c (_initialize_interpreter): Remove trailing newline
8913 from help.
8914 * btrace.c (_initialize_btrace): Remove trailing newlines from
8915 help.
8916 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8917 from help.
8918 * python/python.c (_initialize_python): Remove trailing newline
8919 from help.
8920 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8921 help.
8922 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8923 from help. Reformat some text.
8924 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8925 from help.
8926 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8927 newline from help.
8928
86108c13
TT
89292019-06-11 Tom Tromey <tromey@adacore.com>
8930
8931 * darwin-nat.c (darwin_decode_exception_message)
8932 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8933
a7067863
AB
89342019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8935
8936 * valops.c (value_slice): Check for not allocated or not
8937 associated values.
8938
9ab08412
TV
89392019-06-10 Tom de Vries <tdevries@suse.de>
8940
8941 PR gdb/24618
8942 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8943 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8944 invalid.
8945
f19e22e9
TV
89462019-06-10 Tom de Vries <tdevries@suse.de>
8947
8948 PR gdb/24611
8949 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8950 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8951
e99f9db0
TV
89522019-06-10 Tom de Vries <tdevries@suse.de>
8953
8954 PR symtab/24545
8955 * symtab.c (struct demangled_name_entry): Add language field.
8956 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8957 static minimal symbol". Set and use language field.
8958
9bf7038b
TT
89592019-06-10 Tom Tromey <tromey@adacore.com>
8960
8961 * ada-lang.c (_initialize_ada_language): Update help text.
8962
422186a9
TT
89632019-06-10 Tom Tromey <tromey@adacore.com>
8964
8965 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8966 with a newline.
8967 * guile/guile.c (handle_boot_error): Don't end warning with a
8968 newline.
8969 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8970 warning with a newline.
8971 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8972 newline.
8973 (s12z_frame_cache): Likewise.
8974 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8975 a newline.
8976 * solib-svr4.c (disable_probes_interface): Don't end warning with
8977 a newline.
8978 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8979 newline.
8980 * python/python.c (do_finish_initialization): Don't end warning
8981 with a newline.
8982
25ce02ee
TT
89832019-06-10 Tom Tromey <tom@tromey.com>
8984
8985 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8986 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8987 gdbpy_enter.
8988
caa429d8
TT
89892019-06-10 Tom Tromey <tromey@adacore.com>
8990
8991 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8992 data.
8993 (elf_new_init): Don't call stabsread_new_init.
8994 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8995 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8996 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8997
81873cc8
TV
89982019-06-10 Tom de Vries <tdevries@suse.de>
8999
9000 PR symtab/16264
9001 PR symtab/24517
9002 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9003
4fa0265e
РИ
90042019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9005
9006 * source.c (find_and_open_source): Also rewrite relative file
9007 names.
9008
1a3da2cd
AB
90092019-04-26 Amos Bird <amosbird@gmail.com>
9010
9011 * annotate.c (annotate_thread_exited): Add "thread-exited"
9012 annotation.
9013
3847a7bf
TT
90142019-06-06 Tom Tromey <tromey@adacore.com>
9015
9016 * maint.h (class scoped_command_stats): Use
9017 DISABLE_COPY_AND_ASSIGN.
9018 <print_time>: New method.
9019 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9020 print_time.
9021 (scoped_command_stats::print_time): New method.
9022
312617a3
AB
90232019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9024
9025 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9026 instructions of lengths 6 or 8 bytes.
9027
b02f78f9
PA
90282019-06-04 Pedro Alves <palves@redhat.com>
9029
9030 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9031
9032 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9033 * breakpoint.c (condition_completer): Likewise.
9034 * cli/cli-dump.c (scan_expression): Likewise.
9035 * common/filestuff.c (mkdir_recursive): Likewise.
9036 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9037 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9038 (gdb_abspath): Likewise.
9039 * compile/compile-cplus-types.c
9040 (compile_cplus_instance::decl_name): Likewise.
9041 * completer.c (complete_explicit_location):
9042 (signal_completer, reg_or_group_completer_1): Likewise.
9043 * cp-support.c (cp_remove_params_if_any): Likewise.
9044 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9045 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9046 * infcmd.c (strip_bg_char): Likewise.
9047 * linespec.c (copy_token_string): Likewise.
9048 * mi/mi-main.c (output_cores): Likewise.
9049 * psymtab.c (psymtab_search_name):
9050 * symfile.c (test_set_ext_lang_command): Likewise.
9051 * target.c (target_fileio_read_stralloc): Likewise.
9052 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9053 * value.c (complete_internalvar): Likewise.
9054
e1f2e1a2
CB
90552019-06-04 Christian Biesinger <cbiesinger@google.com>
9056
9057 Add objfile property to gdb.Type.
d3238f7d
PA
9058 * NEWS: Mention Python API addition.
9059 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9060
e664d728
PW
90612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9062
9063 * NEWS: Mention the new set|show style [title|highlight].
9064 Mention changes to "show style", "help" and "apropos".
9065
66d8c862
PW
90662019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9067
9068 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9069 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9070 instead of print_help_for_command.
9071 (print_doc_of_command): New function.
9072 (help_list): Add 'apropos -v word' suggestion.
9073 (print_help_for_command): Style the command name using title style.
9074 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9075 (_initialize_cli_cmds): Describe -v in apropos_command help.
9076
9303eb2f
PW
90772019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9078
9079 * cli/cli-style.h (cli_style_option): Add name in constructor,
9080 add m_name class member, add constructor with intensity,
9081 add name class function.
9082 (cli_style_option::add_setshow_commands): Remove name argument.
9083 (highlight_style, title_style): New styles.
9084 * cli/cli-style.c (do_show): New function that shows a style
9085 characteristic styling the style name with itself.
9086 (set_style_name): New function.
9087 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9088 Update all callers according to the changes in cli/cli-style.h.
9089 * utils.h (fputs_highlighted): New function.
9090 * utils.c (fputs_highlighted): Likewise.
9091
e2c52041
PW
90922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9093
9094 * NEWS: Mention new pipe command and new convenience variables.
9095
947d3946
PW
90962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9097
9098 * cli/cli-cmds.c (pipe_command): New function.
9099 (_initialize_cli_cmds): Call add_com for pipe_command.
9100 Define | as an alias for pipe.
9101 (exit_status_set_internal_vars): New function.
9102 (shell_escape): Call exit_status_set_internal_vars.
9103 cli/cli-decode.c (find_command_name_length): Recognize | as
9104 a single character command.
9105
b8fd0918
PW
91062019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9107
9108 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9109 top.c (execute_command_to_ui_file): New function, mostly a copy
9110 of execute_command_to_string.
9111 (execute_command_to_string): Implement by calling
9112 execute_command_to_ui_file.
9113
68bb5386
PW
91142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9115
9116 * top.h (saved_command_line): Remove declaration.
9117 * top.c (previous_saved_command_line, previous_repeat_arguments):
9118 New variables.
9119 (saved_command_line): Make static, define together with other
9120 'repeat variables'.
9121 (dont_repeat): Clear repeat_arguments.
9122 (repeat_previous, get_saved_command_line, save_command_line):
9123 New functions.
9124 (gdb_init): Initialize saved_command_line
9125 and previous_saved_command_line.
9126 * main.c (captured_main_1): Remove saved_command_line initialization.
9127 * event-top.c (handle_line_of_input): Update to use
9128 the new 'repeat' related functions instead of direct access to
9129 saved_command_line.
9130 * command.h (repeat_previous, get_saved_command_line,
9131 save_command_line): New declarations.
9132 (dont_repeat): Add comment.
9133
bfcdb852
TT
91342019-05-30 Tom Tromey <tromey@adacore.com>
9135
9136 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9137 Fix comment.
9138 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9139
0ef209f2
JV
91402019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9141
9142 PR cli/24587
9143 * completer.c (complete): Initialize variable word.
9144
955b06fa
SDJ
91452019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9146
9147 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9148 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9149 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9150 'body' is NULL to the outter 'if', protecting the '!is_define'
9151 situation as well.
9152
fa9c3fa0
TT
91532019-05-29 Tom Tromey <tromey@adacore.com>
9154
9155 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9156 (dwarf_unknown): New function.
9157 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9158 (dwarf_type_encoding_name): Use dwarf_unknown.
9159
4330d61d
TT
91602019-05-29 Tom Tromey <tromey@adacore.com>
9161
9162 PR c++/20020:
9163 * cp-valprint.c (cp_print_value_fields): Call
9164 cp_print_static_field inside "try".
9165
33a6bc35
TT
91662019-05-29 Tom Tromey <tromey@adacore.com>
9167
9168 * inflow.c (struct terminal_info): Add default operator=.
9169 * configure: Rebuild.
9170 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9171 -Wdeprecated-copy-dtor, -Wredundant-move.
9172
000439d5
TT
91732019-05-29 Tom Tromey <tromey@adacore.com>
9174
9175 * NEWS: Add entry.
9176 * infcmd.c (print_return_value_1): Handle finish_print
9177 option.
9178 (show_print_finish): New function.
9179 (_initialize_infcmd): Add "set/show print finish" commands.
9180 * valprint.c (user_print_options): Initialize new member.
9181 * valprint.h (struct value_print_options) <finish_print>: New
9182 member.
9183
c0e70c62
TT
91842019-05-28 Tom Tromey <tromey@adacore.com>
9185
9186 * ada-lang.c (ada_remove_Xbn_suffix)
9187 (find_old_style_renaming_symbol)
9188 (parse_old_style_renaming): Remove.
9189 (ada_find_renaming_symbol): Don't call
9190 find_old_style_renaming_symbol.
9191 (ada_is_renaming_symbol): Rename from
9192 ada_find_renaming_symbol. Remove "block" parameter. Return
9193 bool. Now static.
9194 (ada_read_var_value): Update and simplify.
9195 * ada-exp.y (write_var_or_type): Remove old code.
9196
766f8836
AH
91972019-05-28 Alan Hayward <alan.hayward@arm.com>
9198
68255adc 9199 PR gdb/25010
766f8836
AH
9200 * event-top.c: Remove include comment.
9201 * inflow.c (class scoped_ignore_sigttou): Move from here...
9202 * inflow.h (class scoped_ignore_sigttou): ...to here.
9203 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9204 * top.c: Remove include comment.
9205
eb41253a
TT
92062019-05-27 Tom Tromey <tom@tromey.com>
9207
9208 * NEWS: Fix typo.
9209
4ca51187
TT
92102019-05-22 Tom Tromey <tromey@adacore.com>
9211
9212 * target.c (target_follow_exec): Constify parameter.
9213 * target-delegates.c: Rebuild.
9214 * remote.c (remote_target::follow_exec): Constify parameter.
9215 * infrun.c (follow_exec): Constify parameter.
9216 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9217 (target_follow_exec): Likewise.
9218
8fca4da0
AH
92192019-05-22 Alan Hayward <alan.hayward@arm.com>
9220
9221 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9222 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9223
b7060614
AH
92242019-05-22 Alan Hayward <alan.hayward@arm.com>
9225
9226 * NEWS: Add debugredirect and testsuite sections.
9227
0a5954bd
SC
92282019-05-22 Simon Cook <simon.cook@embecosm.com>
9229
9230 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9231 target descriptions using exclusively floating point register name
9232 aliases.
9233
dc42e902
AB
92342019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 PR gdb/18644:
9237 * f-lang.c (build_fortran_types): Handle the case where
9238 gdbarch_floatformat_for_type returns a nullptr.
9239
fb7806c7
TV
92402019-05-21 Tom de Vries <tdevries@suse.de>
9241
9242 PR cli/24587
9243 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9244
34d11c68
AB
92452019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9246
9247 PR gdb/18644:
9248 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9249 16-byte floats.
9250 * i386-tdep.c (i386_floatformat_for_type): Use
9251 floatformats_ia64_quad for the 16-byte floating point component
9252 within a fortran 32-byte complex number.
9253
122cf0f2
AB
92542019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9257 delete default constructor.
9258 (find_partial_die): Update to return const struct.
9259 (partial_die_parent_scope): Move variable declaration into scope
9260 of its use and change its type to auto.
9261 (guess_partial_die_structure_name): Likewise.
9262 (partial_die_info::fixup): Likewise.
9263
33d0e35a
TT
92642019-05-17 Tom Tromey <tromey@adacore.com>
9265
9266 * source.c (find_and_open_source): Remove cast.
9267
a45575b0
TT
92682019-05-17 Tom Tromey <tromey@adacore.com>
9269
9270 * annotate.c (annotate_source): Make "filename" const.
9271 * annotate.h (annotate_source): Use const.
9272
81f47ac2
AH
92732019-05-17 Alan Hayward <alan.hayward@arm.com>
9274
9275 * disasm.c (set_disassembler_options): Send errors to stderr.
9276
ca1285d1
AH
92772019-05-17 Alan Hayward <alan.hayward@arm.com>
9278
9279 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9280 (cli_interp_base::set_logging): Check debug_redirect.
9281 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9282 * cli/cli-logging.c (debug_redirect): Add static variable.
9283 (pop_output_files): Add default param.
9284 (handle_redirections): Print debug setting.
9285 (show_logging_command): Likewise.
9286 (_initialize_cli_logging): Add debugredirect command.
9287 * interps.c (current_interp_set_logging): Add debug_redirect
9288 parameter.
9289 * interps.h (set_logging): Add debug_redirect parameter.
9290 (current_interp_set_logging): Likewise.
9291 * mi/mi-common.h: Likewise.
9292 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9293
92942019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9295 Tom Tromey <tromey@adacore.com>
9296
9297 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9298 directly.
9299 * cli/cli-interp.h (make_logging_output): Remove declaration.
9300 * cli/cli-logging.c (make_logging_output): Remove function.
9301 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9302 directly.
9303 * ui-file.c (tee_file::tee_file): Remove bools.
9304 (tee_file::~tee_file): Remove deletes.
9305 * ui-file.h (tee_file): Remove bools.
9306
26648588
JV
93072019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9308
9309 * mi/mi-cmds.h (mi_cmd_complete): New function.
9310 * mi/mi-main.c (mi_cmd_complete): Likewise.
9311 * mi/mi-cmds.c: Define new MI command -complete.
9312 * NEWS: Mention new -complete command.
9313
6e035501
JV
93142019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9315
9316 * completer.h (complete): New function.
9317 * completer.c (complete): Likewise.
9318 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9319 function defined in completer.h.
9320
7d0e2ece
JV
93212019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9322
e79be6e5 9323 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9324
fb816e8b
TV
93252019-05-17 Tom de Vries <tdevries@suse.de>
9326
9327 PR gdb/24094
9328 * dwarf2read.c (struct cu_partial_die_info): New struct.
9329 (find_partial_die): Return cu_partial_die_info.
9330 (partial_die_parent_scope, guess_partial_die_structure_name)
9331 (partial_die_info::fixup): Handle new return type of find_partial_die.
9332
677052f2
SDJ
93332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9334
a1726c38 9335 PR breakpoints/24541
677052f2
SDJ
9336 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9337 "std::string", simplifying the algorithm.
9338
f3da9116
SDJ
93392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9342 (stap_static_probe_ops::get_probes): Likewise.
9343
f1bb75ab
SDJ
93442019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9345
9346 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9347 '-')" and "else if".
9348 (stap_parse_single_operand): Join checks for
9349 "gdbarch_stap_parse_special_token_p" and
9350 "gdbarch_stap_parse_special_token" in the same "if" statement.
9351 Invert check when verifying for operation on register
9352 displacement.
9353
3ca58cde
SDJ
93542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9355
9356 * stap-probe.c (stap_get_opcode): Update comment.
9357 (stap_get_expected_argument_type): Likewise.
9358 (handle_stap_probe): Likewise.
9359
af2d9bee
SDJ
93602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9361
9362 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9363 return type to 'bool'. Adjust comment. Use 'bool' when
9364 appropriate.
9365 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9366 * stap-probe.c (stap_parse_argument_1): Likewise.
9367 (stap_is_operator): Likewise.
9368 (stap_is_generic_prefix): Likewise.
9369 (stap_is_register_prefix): Likewise.
9370 (stap_is_register_indirection_prefix): Likewise.
9371 (stap_is_integer_prefix): Likewise.
9372 (stap_generic_check_suffix): Likewise.
9373 (stap_check_integer_suffix): Likewise.
9374 (stap_check_register_suffix): Likewise.
9375 (stap_check_register_indirection_suffix): Likewise.
9376 (stap_parse_register_operand): Likewise.
9377 (stap_parse_single_operand): Likewise.
9378 (stap_parse_argument_1): Likewise.
9379 (stap_probe::get_argument_count): Likewise.
9380 (stap_is_operator): Likewise.
9381
61c9c421
TT
93822019-05-16 Tom Tromey <tromey@adacore.com>
9383
9384 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9385 keyword to foreach.
9386
9ddc1af1
SM
93872019-05-15 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * linux-thread-db.c (try_thread_db_load_1): Change return type
9390 to bool.
9391 (try_thread_db_load): Likewise.
9392 (try_thread_db_load_from_pdir_1): Likewise.
9393 (try_thread_db_load_from_pdir): Likewise.
9394 (try_thread_db_load_from_sdir): Likewise.
9395 (try_thread_db_load_from_dir): Likewise.
9396 (thread_db_load_search): Likewise.
9397 (has_libpthread): Likewise.
9398 (thread_db_load): Likewise.
9399
7bede828
SDJ
94002019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9401
9402 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9403 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9404 NULL, and complain/return if that's the case.
9405
c5358db4
JD
94062019-05-15 John Darrington <john@darrington.wattle.id.au>
9407
9408 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9409 (advance, posn, abstract_read_memory): New functions.
9410 [struct mem_read_abstraction]: New struct.
9411 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9412
c408a94f
TT
94132019-05-14 Tom Tromey <tromey@adacore.com>
9414
9415 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9416 value is not lval_memory.
9417
e7bd7fba
TT
94182019-05-14 Tom Tromey <tromey@adacore.com>
9419
9420 * solib.c (info_sharedlibrary_command): Style the file name.
9421
a6d0f249
AH
94222019-05-14 Alan Hayward <alan.hayward@arm.com>
9423
9424 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9425 (aarch64_vnv_type): Likewise.
9426 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9427 * common/tdesc.c: Likewise.
9428 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9429 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9430 * features/aarch64-fpu.xml: Add ieee half view.
9431 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9432 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9433 * gdbtypes.h (struct builtin_type): Likewise.
9434 (struct objfile_type): Likewise.
9435
66b8bb74
SM
94362019-05-12 Paul Naert <paul.naert@polymtl.ca>
9437
9438 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9439 typo.
9440 * location.h (string_to_event_location): Likewise.
9441
21c219fd
JB
94422019-05-11 Joel Brobecker <brobecker@adacore.com>
9443
9444 GDB 8.3 released.
9445
13674803
SM
94462019-05-10 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9449 New variable declaration.
9450 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9451 New variable.
9452 (print_one_breakpoint): Use ui_out::test_flags and new global
9453 variable to compute use_fixed_output.
9454 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9455 Remove.
9456 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9457 (mi_multi_location_breakpoint_output_fixed): Remove.
9458 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9459 new variable.
9460 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9461 fix_multi_location_breakpoint_output flag if version >= 3.
9462 * ui-out.h (enum ui_out_flag)
9463 <fix_multi_location_breakpoint_output>: New enumerator.
9464
a9eac7f9
SM
94652019-05-10 Simon Marchi <simon.marchi@efficios.com>
9466
9467 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9468
71bed2db
TT
94692019-05-10 Tom Tromey <tromey@adacore.com>
9470
9471 * ada-lang.c (catch_ada_completer): New function.
9472 (_initialize_ada_language): Use it.
9473
24c54127
TT
94742019-05-10 Tom Tromey <tromey@adacore.com>
9475
9476 * thread.c (print_thread_info): Make "requested_threads" const.
9477 * gdbthread.h (print_thread_info): Make "requested_threads"
9478 const.
9479 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9480 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9481
7a102139
TT
94822019-05-08 Tom Tromey <tom@tromey.com>
9483
9484 * gdbtypes.c (objfile_type_data): Change type.
9485 (objfile_type, _initialize_gdbtypes): Update.
9486
924d79e2
TT
94872019-05-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9490 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9491 (_initialize_dwarf2_frame): Update.
9492
4c58e337
TT
94932019-05-08 Tom Tromey <tom@tromey.com>
9494
9495 * objc-lang.c (objc_objfile_data): Change type.
9496 (find_methods): Update.
9497 (_initialize_objc_lang): Remove.
9498
d772d2ab
TT
94992019-05-08 Tom Tromey <tom@tromey.com>
9500
9501 * stabsread.c (rs6000_builtin_type_data): Change type.
9502 (rs6000_builtin_type, _initialize_stabsread): Update.
9503
d11d83f4
TT
95042019-05-08 Tom Tromey <tom@tromey.com>
9505
9506 * mips-tdep.c (mips_pdr_data): Remove.
9507 (_initialize_mips_tdep): Update.
9508
9a73f0ad
TT
95092019-05-08 Tom Tromey <tom@tromey.com>
9510
9511 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9512 (hppa_init_objfile_priv_data, read_unwind_info)
9513 (find_unwind_entry, _initialize_hppa_tdep): Update.
9514
8127a2fa
TT
95152019-05-08 Tom Tromey <tom@tromey.com>
9516
9517 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9518 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9519 on obstack.
9520 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9521
91d3055d
TT
95222019-05-08 Tom Tromey <tom@tromey.com>
9523
9524 * mdebugread.c (basic_type_data): Change type.
9525 (basic_type, _initialize_mdebugread): Update.
9526
31930bd3
TT
95272019-05-08 Tom Tromey <tom@tromey.com>
9528
9529 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9530
bdb3ed9e
TT
95312019-05-08 Tom Tromey <tom@tromey.com>
9532
9533 * nto-tdep.c (nto_inferior_data_reg): Change type.
9534 (nto_inferior_data): Update.
9535 (nto_inferior_data_cleanup, nto_new_inferior_data)
9536 (_initialize_nto_tdep): Remove.
9537 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9538
f37b313d
TT
95392019-05-08 Tom Tromey <tom@tromey.com>
9540
9541 * ada-lang.c (struct ada_inferior_data): Add initializers.
9542 (ada_inferior_data): Change type.
9543 (ada_inferior_data_cleanup): Remove.
9544 (get_ada_inferior_data, ada_inferior_exit)
9545 (struct ada_pspace_data): Add initializers, destructor.
9546 (ada_pspace_data_handle): Change type.
9547 (get_ada_pspace_data): Update.
9548 (ada_pspace_data_cleanup): Remove.
9549
24699405
TT
95502019-05-08 Tom Tromey <tom@tromey.com>
9551
9552 * coffread.c (struct coff_symfile_info): Add initializers.
9553 (coff_objfile_data_key): Move lower. Change type.
9554 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9555 Update.
9556 (coff_free_info): Remove.
9557
d4e05d2f
TT
95582019-05-08 Tom Tromey <tom@tromey.com>
9559
9560 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9561 (fbsd_pspace_data_handle): Move lower. Change type.
9562 (get_fbsd_pspace_data): Update.
9563 (fbsd_pspace_data_cleanup): Remove.
9564 (_initialize_fbsd_tdep): Update.
9565
14ef6690
TT
95662019-05-08 Tom Tromey <tom@tromey.com>
9567
9568 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9569 (get_ada_tasks_pspace_data): Update.
9570 (ada_tasks_pspace_data_cleanup): Remove.
9571 (_initialize_tasks): Update.
9572 (ada_tasks_inferior_data_handle): Change type.
9573 (get_ada_tasks_inferior_data): Update.
9574 (ada_tasks_inferior_data_cleanup): Remove.
9575 (struct ada_tasks_pspace_data): Add initializers.
9576
814cf43a
TT
95772019-05-08 Tom Tromey <tom@tromey.com>
9578
9579 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9580 * symfile-debug.c (debug_sym_get_probes): Change type.
9581 * stap-probe.c (handle_stap_probe):
9582 (stap_static_probe_ops::get_probes): Change type.
9583 * probe.h (class static_probe_ops) <get_probes>: Change type.
9584 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9585 (parse_probes_in_pspace): Update.
9586 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9587 Update.
9588 (any_static_probe_ops::get_probes): Change type.
9589 * elfread.c (elfread_data): New typedef.
9590 (probe_key): Change type.
9591 (elf_get_probes): Likewise. Update.
9592 (probe_key_free): Remove.
9593 (_initialize_elfread): Update.
9594 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9595 Change type.
9596 (dtrace_process_dof_probe, dtrace_process_dof)
9597 (dtrace_static_probe_ops::get_probe): Change type.
9598
02dc647e
TT
95992019-05-08 Tom Tromey <tom@tromey.com>
9600
9601 * xcoffread.c (struct xcoff_symfile_info): Rename from
9602 coff_symfile_info. Add initializers.
9603 (xcoff_objfile_data_key): Move lower. Change type.
9604 (XCOFF_DATA): Rewrite.
9605 (xcoff_free_info): Remove.
9606 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9607 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9608 (xcoff_initial_scan): Update.
9609
09232438
TT
96102019-05-08 Tom Tromey <tom@tromey.com>
9611
9612 * solib-svr4.c (struct svr4_info): Add initializers and
9613 destructor.
9614 <probes_table>: Now an htab_up.
9615 (solib_svr4_pspace_data): Change type.
9616 (free_probes_table): Simplify.
9617 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9618 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9619 (probes_table_remove_objfile_probes, register_solib_event_probe)
9620 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9621 (_initialize_svr4_solib): Update.
9622
7b4a314f
TT
96232019-05-08 Tom Tromey <tom@tromey.com>
9624
9625 * remote.c (remote_pspace_data): Change type.
9626 (remote_pspace_data_cleanup): Remove.
9627 (get_remote_exec_file, set_pspace_remote_exec_file)
9628 (_initialize_remote): Update.
9629
51d3063a
TT
96302019-05-08 Tom Tromey <tom@tromey.com>
9631
9632 * breakpoint.c (breakpoint_objfile_key): Change type.
9633 (get_breakpoint_objfile_data): Update.
9634 (free_breakpoint_objfile_data): Remove.
9635 (_initialize_breakpoint): Update.
9636
89fb8848
TT
96372019-05-08 Tom Tromey <tom@tromey.com>
9638
9639 * linux-tdep.c (struct linux_info): Add initializers.
9640 (linux_inferior_data): Move. Change type.
9641 (invalidate_linux_cache_inf): Update.
9642 (linux_inferior_data_cleanup): Remove.
9643 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9644
e9b89e2d
TT
96452019-05-08 Tom Tromey <tom@tromey.com>
9646
9647 * auxv.c (auxv_inferior_data): Move. Change type.
9648 (auxv_inferior_data_cleanup): Remove.
9649 (invalidate_auxv_cache_inf): Rewrite.
9650 (get_auxv_inferior_data, _initialize_auxv): Update.
9651
8c42777c
TT
96522019-05-08 Tom Tromey <tom@tromey.com>
9653
9654 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9655 (symfile_debug_objfile_data_key): Change type.
9656 (symfile_debug_installed, debug_qf_has_symbols)
9657 (debug_qf_find_last_source_symtab)
9658 (debug_qf_forget_cached_source_info)
9659 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9660 (debug_qf_print_stats, debug_qf_dump)
9661 (debug_qf_expand_symtabs_for_function)
9662 (debug_qf_expand_all_symtabs)
9663 (debug_qf_expand_symtabs_with_fullname)
9664 (debug_qf_map_matching_symbols)
9665 (debug_qf_expand_symtabs_matching)
9666 (debug_qf_find_pc_sect_compunit_symtab)
9667 (debug_qf_map_symbol_filenames)
9668 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9669 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9670 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9671 (debug_sym_read_linetable, debug_sym_relocate): Update.
9672 (symfile_debug_free_objfile): Remove.
9673 (install_symfile_debug_logging, _initialize_symfile_debug):
9674 Update.
9675
5bfd760d
TT
96762019-05-08 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9679 allocate_on_obstack.
9680 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9681 (get_dwarf2_per_objfile): Update.
9682 (set_dwarf2_per_objfile): Remove.
9683 (dwarf2_has_info, dwarf2_get_section_info): Update.
9684 (dwarf2_free_objfile): Remove.
9685 (_initialize_dwarf2_read): Update.
9686
e85e19b4
TT
96872019-05-08 Tom Tromey <tom@tromey.com>
9688
9689 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9690 initializers.
9691 <unsupported_script_warning_printed,
9692 script_not_found_warning_printed>: Now bool.
9693 (auto_load_pspace_data): Change type.
9694 (~auto_load_pspace_info): Rename from
9695 auto_load_pspace_data_cleanup.
9696 (get_auto_load_pspace_data, init_loaded_scripts_info)
9697 (clear_section_scripts, maybe_print_unsupported_script_warning)
9698 (maybe_print_script_not_found_warning, _initialize_auto_load):
9699 Update.
9700
f6aa7436
TT
97012019-05-08 Tom Tromey <tom@tromey.com>
9702
9703 * objfiles.c (objfile_pspace_info): Add destructor and
9704 initializers.
9705 (objfiles_pspace_data): Change type.
9706 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9707 (get_objfile_pspace_data): Update.
9708 (objfiles_bfd_data): Change type.
9709 (get_objfile_bfd_data): Update.
9710 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9711
6ae614f6
TT
97122019-05-08 Tom Tromey <tom@tromey.com>
9713
9714 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9715 Change type.
9716 (get_catch_syscall_inferior_data): Update.
9717 (catch_syscall_inferior_data_cleanup): Remove.
9718 (_initialize_break_catch_syscall): Update.
9719
6509b8eb
TT
97202019-05-08 Tom Tromey <tom@tromey.com>
9721
9722 * inflow.c (struct terminal_info): Add destructor and
9723 initializers.
9724 (inflow_inferior_data): Change type.
9725 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9726 (get_inflow_inferior_data, inflow_inferior_exit)
9727 (swap_terminal_info, _initialize_inflow): Update.
9728
35632941
TT
97292019-05-08 Tom Tromey <tom@tromey.com>
9730
9731 * target-dcache.c (target_dcache_cleanup): Remove.
9732 (target_dcache_aspace_key): Change type.
9733 (target_dcache_init_p, target_dcache_invalidate)
9734 (target_dcache_get, target_dcache_get_or_init)
9735 (_initialize_target_dcache): Update.
9736 * dcache.h (struct dcache_deleter): New.
9737
3017b94d
TT
97382019-05-08 Tom Tromey <tom@tromey.com>
9739
9740 * symtab.c (struct symbol_cache): Add destructor and
9741 initializers.
9742 (symbol_cache_key): Move. Change type.
9743 (make_symbol_cache, free_symbol_cache): Remove.
9744 (get_symbol_cache): Update.
9745 (symbol_cache_cleanup): Remove.
9746 (ALL_PSPACES, symbol_cache_flush)
9747 (maintenance_print_symbol_cache)
9748 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9749 Update.
9750
a32ad8c5
TT
97512019-05-08 Tom Tromey <tom@tromey.com>
9752
9753 * symtab.c (struct main_info): Add destructor and initializers.
9754 (main_progspace_key): Move. Change type.
9755 (get_main_info): Update.
9756 (main_info_cleanup): Remove.
9757 (_initialize_symtab): Update.
9758
5f6e90a0
TT
97592019-05-08 Tom Tromey <tom@tromey.com>
9760
9761 * registry.h (DECLARE_REGISTRY): Define the _key class.
9762
1bd0c6e4
AB
97632019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9764
9765 * NEWS: Merge two 'New commands' sections.
9766
2228ef77
XR
97672019-05-08 Joel Brobecker <brobecker@adacore.com>
9768
9769 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9770 parameter and use Ada language definition instead.
9771 (ada_val_print_ptr): Remove unused language parameter.
9772 (ada_val_print_num): Remove language parameter and use Ada language
9773 definition instead.
9774 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9775 parameter.
9776 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9777 parameter and use Ada language definition instead.
9778 (ada_val_print_1): Update all ada_val_print_xxx calls.
9779 Remove language parameter.
9780 (ada_val_print): Update ada_val_print_1 call.
9781
60fcc1c3
TT
97822019-05-08 Tom Tromey <tromey@adacore.com>
9783
9784 * remote.c (remote_hw_watchpoint_limit)
9785 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9786 Now static.
9787
ed2b7c17
TT
97882019-05-08 Tom Tromey <tromey@adacore.com>
9789
9790 * maint.c (_initialize_maint_cmds): Move initialization code to
9791 remote.c.
9792 (watchdog, show_watchdog): Move to remote.c.
9793 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9794 "watchdog" static.
9795 (_initialize_remote): Move initialization code from maint.c.
9796 * defs.h (watchdog): Don't declare.
9797
b0be6c91
TT
97982019-05-08 Tom Tromey <tromey@adacore.com>
9799
9800 * tui/tui-interp.c: Include main.h.
9801 * interps.c: Include main.h.
9802 * main.h (interpreter_p): Declare.
9803 * defs.h (interpreter_p): Don't declare.
9804
587ee17b
TT
98052019-05-08 Tom Tromey <tromey@adacore.com>
9806
9807 * dwarf2loc.c: Include dwarf2read.h.
9808 * defs.h (read_unsigned_leb128): Don't declare.
9809 * dwarf2read.h (read_unsigned_leb128): Declare.
9810
ca1df239
TT
98112019-05-08 Tom Tromey <tromey@adacore.com>
9812
9813 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9814 method.
9815
99f20f08
TT
98162019-05-08 Tom Tromey <tromey@adacore.com>
9817
9818 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9819 when no wrap column is set.
9820
80e55b13
TT
98212019-05-08 Tom Tromey <tromey@adacore.com>
9822
9823 * c-lang.c (c_get_string): Handle non-C-style arrays.
9824
9d3421af
TT
98252019-05-08 Tom Tromey <tromey@adacore.com>
9826
9827 * typeprint.c (print_offset_data::update): Print the bit offset,
9828 not the number of bits remaining.
9829
844333e2
TT
98302019-05-08 Tom Tromey <tromey@adacore.com>
9831
9832 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9833 padding at end of comment.
9834
988915ee
TT
98352019-05-08 Tom Tromey <tromey@adacore.com>
9836
9837 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9838 Compare main types.
9839
26bfd823
TT
98402019-05-06 Tom Tromey <tom@tromey.com>
9841
9842 * common/scoped_mmap.c: Include common-defs.h.
9843 * common/scoped_mmap.h: Don't include config.h.
9844
89055eaa
TT
98452019-05-04 Tom Tromey <tom@tromey.com>
9846
9847 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9848 (struct aarch64_call_info): Add initializers.
9849 <si>: Now a std::vector.
9850 (pass_on_stack, aarch64_push_dummy_call): Update.
9851
5da01df5
TT
98522019-05-04 Simon Marchi <simon.marchi@efficios.com>
9853 Tom Tromey <tom@tromey.com>
9854
9855 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9856 (ppc_threads): Now a std::vector. Now static.
9857 (hwdebug_find_thread_points_by_tid)
9858 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9859 Update.
9860
fbdf05a1
TT
98612019-05-04 Tom Tromey <tom@tromey.com>
9862
9863 * arc-tdep.c (arc_tdesc_init): Return bool.
9864
06d16ec9
TT
98652019-05-04 Tom Tromey <tom@tromey.com>
9866
9867 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9868 Use gdb_assert_not_reached.
9869
9c056022
TT
98702019-05-04 Tom Tromey <tom@tromey.com>
9871
9872 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9873 "false".
9874
fa9c2a59
TT
98752019-05-04 Tom Tromey <tom@tromey.com>
9876
9877 * arc-tdep.c (arc_tdesc_init): Use bool.
9878
e2eb806a
TT
98792019-05-04 Tom Tromey <tom@tromey.com>
9880
9881 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9882
6fe87677
TT
98832019-05-04 Tom Tromey <tom@tromey.com>
9884
9885 * cli/cli-cmds.c (valid_command_p): Return bool.
9886
7f008c9e
TT
98872019-05-04 Tom Tromey <tom@tromey.com>
9888
9889 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9890 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9891
b6484282
RT
98922019-05-04 Raul Tambre <raul@tambre.ee>
9893
9894 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9895 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9896 operator for comparison.
9897
af97b416
TT
98982019-05-04 Tom Tromey <tom@tromey.com>
9899
9900 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9901 (lookup_partial_symbol, print_partial_symbols)
9902 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9903 (psymbol_compare): Update.
9904 (add_psymbol_to_bcache): Clear the entire psymbol.
9905 (maintenance_check_psymtabs): Update.
9906 * psympriv.h (struct partial_symbol): Don't derive from
9907 general_symbol_info.
9908 <obj_section, unrelocated_address, address,
9909 set_unrelocated_address>: Update.
9910 <ginfo>: New member.
9911 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9912 (debug_names::write_psymbols): Update.
9913
9d6d4be8
TV
99142019-05-04 Tom de Vries <tdevries@suse.de>
9915
9916 * contrib/cc-with-tweaks.sh: Support -n arg.
9917
66452beb
PW
99182019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9919
9920 * corelow.c (core_target::detach): Ensure frame cache and
9921 register caches are cleared.
9922 inferior.c (exit_inferior_1): Likewise.
9923
bde09ab7
TT
99242019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9925 Tom Tromey <tom@tromey.com>
9926
9927 * dictionary.c (collate_pending_symbols_by_language): Remove
9928 "struct" from foreach.
9929 * symtab.c (lookup_global_symbol_from_objfile)
9930 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9931 foreach.
9932 * ser-tcp.c (net_open): Remove "struct" from foreach.
9933 * objfiles.c (objfile_relocate, objfile_rebase)
9934 (objfile_has_symbols): Remove "struct" from foreach.
9935 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9936 from foreach.
9937 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9938 foreach.
9939 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9940 "struct" from foreach.
9941 * ada-lang.c (create_excep_cond_exprs)
9942 (ada_exception_catchpoint_cond_string): Remove "struct" from
9943 foreach.
9944
222a8d25
TT
99452019-05-03 Tom Tromey <tromey@adacore.com>
9946
9947 * ada-exp.y (convert_char_literal): Check suffix of each
9948 enumerator.
9949
fcd60b84
DP
99502019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9951
9952 PR ada/21406:
9953 * ada-exp.y (yywrap): Don't define.
9954 * ada-lex.l (%option): Add noyywrap
9955 (yywrap): Remove.
9956
5f2459c2
EZ
99572019-05-03 Eli Zaretskii <eliz@gnu.org>
9958
353ea2d1
EZ
9959 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9960 _WIN32_WINNT to the XP level, unless already defined to a higher
9961 level.
9962
9963 * unittests/parse-connection-spec-selftests.c:
9964 * ser-tcp.c:
9965 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9966 override.
9967
5f2459c2
EZ
9968 * symfile.c (find_separate_debug_file): Remove colon from the
9969 drive spec of DOS/Windows file names of the target, so that the
9970 file name produced from DEBUGDIR and the target's directory will
9971 be valid on DOS/Windows systems.
9972
80062eb9
AB
99732019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * rust-lang.c (val_print_struct): Handle printing structures
9976 containing strings.
9977
b8c05e85
TT
99782019-05-02 Tom Tromey <tromey@adacore.com>
9979
9980 * valarith.c (_initialize_valarith): Remove.
9981
4504bbde
TT
99822019-05-01 Tom Tromey <tromey@adacore.com>
9983
9984 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9985 bitfields.
9986
d48e62f4
TT
99872019-05-01 Tom Tromey <tromey@adacore.com>
9988
9989 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9990 for big-endian copies.
9991
15f18d14
AT
99922019-04-30 Ali Tamur <tamur@google.com>
9993 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9994 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9995 (read_3_bytes): New function.
9996
ab4ee614
JB
99972019-04-30 Joel Brobecker <brobecker@adacore.com>
9998
9999 * windows-nat.c (main_thread_id): Delete.
10000 (handle_output_debug_string): Replace main_thread_id by
10001 current_event.dwThreadId.
10002 (fake_create_process): Likewise.
10003 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10004 Do not set main_thread_id.
10005 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10006 current_event.dwThreadId.
10007 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10008
8ed5b76e
JB
100092019-04-30 Joel Brobecker <brobecker@adacore.com>
10010
10011 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10012 Use current_event.dwThreadId instead of main_thread_id.
10013
2ff0a947
TT
100142019-04-30 Tom Tromey <tromey@adacore.com>
10015
10016 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10017 (create_excep_cond_exprs): Iterate over program spaces.
10018 (ada_exception_catchpoint_cond_string): Examine all minimal
10019 symbols for exception types.
10020
a776957c
TT
100212019-04-30 Tom Tromey <tromey@adacore.com>
10022
10023 PR c++/24470:
10024 * dwarf2read.c (process_structure_scope): Handle case where type
10025 has template parameters but no symbol was created.
10026
bc68014d
AB
100272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10028 Chris January <chris.january@arm.com>
10029
10030 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10031 qualifier.
10032 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10033
f1fdc960
AB
100342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10035
10036 * f-typeprint.c (f_print_type): Update rules for printing
10037 whitespace.
10038 (f_type_print_varspec_suffix): Likewise.
10039
bf7a4de1
AB
100402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10041 Chris January <chris.january@arm.com>
10042
10043 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10044 function arguments.
10045
bbe75b9d
AB
100462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * f-lang.c (build_fortran_types): Change name of void type to
10049 lower case.
10050 * f-typeprint.c (f_type_print_base): Print the name of the void
10051 type, rather than a fixed string.
10052 * f-valprint.c (f_decorations): Use lower case void string.
10053
1db455a7
AB
100542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10055 Chris January <chris.january@arm.com>
10056
10057 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10058 types for Fortran.
10059
b6d03bb2
AB
100602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10061 Chris January <chris.january@arm.com>
10062 David Lecomber <david.lecomber@arm.com>
10063
10064 * f-exp.y (BINOP_INTRINSIC): New token.
10065 (exp): New parser rule handling BINOP_INTRINSIC.
10066 (f77_keywords): Add new builtin procedures.
10067 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10068 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10069 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10070 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10071 (print_unop_subexp_f): New function.
10072 (print_binop_subexp_f): New function.
10073 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10074 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10075 (dump_subexp_body_f): Likewise.
10076 (operator_check_f): Likewise.
10077 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10078 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10079
83228e93
AB
100802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10081
10082 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10083 UNOP_KIND.
10084 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10085 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10086 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10087 (operator_length_f): New fuction.
10088 (print_subexp_f): New function.
10089 (op_name_f): New function.
10090 (dump_subexp_body_f): New function.
10091 (operator_check_f): New function.
10092 (exp_descriptor_f): Replace standard expression handling functions
10093 with new functions.
10094 * gdb/fortran-operator.def: New file.
10095 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10096 * gdb/std-operator.def: Remove UNOP_KIND.
10097
6fdcd7cc
AB
100982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10099
10100 * std-operator.def: Remove unbalanced, stray double quote
10101 character.
10102
2e62ab40
AB
101032019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10104 Chris January <chris.january@arm.com>
10105 Daniel Everett <daniel.everett@arm.com>
10106 Nick Forrington <nick.forrington@arm.com>
10107 Richard Bunt <richard.bunt@arm.com>
10108
10109 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10110 of depth when printing anonymous structs or unions.
10111 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10112 Don't print either the top-level value, or the children if the
10113 max-depth is exceeded.
10114 (ppscm_print_children): When printing the key of a map, allow one
10115 extra level of depth.
10116 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10117 print either the top-level value, or the children if the max-depth
10118 is exceeded.
10119 (print_children): When printing the key of a map, allow one extra
10120 level of depth.
10121 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10122 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10123 (user_print_options): Initialise max_depth field.
10124 (val_print_scalar_or_string_type_p): New function.
10125 (val_print): Check to see if the max depth has been reached.
10126 (val_print_check_max_depth): Define new function.
10127 (show_print_max_depth): New function.
10128 (_initialize_valprint): Add 'print max-depth' option.
10129 * valprint.h (struct value_print_options) <max_depth>: New field.
10130 (val_print_check_max_depth): Declare new function.
10131 * NEWS: Document new feature.
10132
4be290b2
AB
101332019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10134
10135 * ada-lang.c (ada_language_defn): Initialise new field.
10136 * c-lang.c (c_is_string_type_p): New function.
10137 (c_language_defn): Initialise new field.
10138 (cplus_language_defn): Initialise new field.
10139 (asm_language_defn): Initialise new field.
10140 (minimal_language_defn): Initialise new field.
10141 * c-lang.h (c_is_string_type_p): Declare new function.
10142 * d-lang.c (d_language_defn): Initialise new field.
10143 * f-lang.c (f_is_string_type_p): New function.
10144 (f_language_defn): Initialise new field.
10145 * go-lang.c (go_is_string_type_p): New function.
10146 (go_language_defn): Initialise new field.
10147 * language.c (default_is_string_type_p): New function.
10148 (unknown_language_defn): Initialise new field.
10149 (auto_language_defn): Initialise new field.
10150 * language.h (struct language_defn) <la_is_string_type_p>: New
10151 member variable.
10152 (default_is_string_type_p): Declare new function.
10153 * m2-lang.c (m2_language_defn): Initialise new field.
10154 * objc-lang.c (objc_language_defn): Initialise new field.
10155 * opencl-lang.c (opencl_language_defn): Initialise new field.
10156 * p-lang.c (pascal_is_string_type_p): New function.
10157 (pascal_language_defn): Initialise new field.
10158 * rust-lang.c (rust_is_string_type_p): New function.
10159 (rust_language_defn): Initialise new field.
10160
721b08c6
AB
101612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10164 New field.
10165 * ada-lang.c (ada_language_defn): Initialise new field.
10166 * c-lang.c (c_language_defn): Likewise.
10167 (cplus_language_defn): Likewise.
10168 (asm_language_defn): Likewise.
10169 (minimal_language_defn): Likewise.
10170 * d-lang.c (d_language_defn): Likewise.
10171 * f-lang.c (f_language_defn): Likewise.
10172 * go-lang.c (go_language_defn): Likewise.
10173 * language.c (unknown_language_defn): Likewise.
10174 (auto_language_defn): Likewise.
10175 * m2-lang.c (m2_language_defn): Likewise.
10176 * objc-lang.c (objc_language_defn): Likewise.
10177 * opencl-lang.c (opencl_language_defn): Likewise.
10178 * p-lang.c (pascal_language_defn): Likewise.
10179 * rust-lang.c (rust_language_defn): Likewise.
10180
fc913e53
AB
101812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * ada-lang.c (ada_is_character_type): Change return type to bool.
10184 (ada_is_string_type): Likewise.
10185 * ada-lang.h (ada_is_character_type): Update declaration
10186 (ada_is_string_type): Likewise.
10187
fa731fa0
PW
101882019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10189
10190 Support style in 'frame|thread apply'
10191
10192 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10193 * record.c (record_start, record_stop): Update callers of
10194 execute_command_to_string with false.
10195 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10196 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10197 methods.
10198 (class string_file): New constructor with term_out parameter.
10199 Override methods term_out and can_emit_style_escape. New member
10200 term_out.
10201 (class stdio_file): Override can_emit_style_escape.
10202 (class tee_file): Override term_out and can_emit_style_escape.
10203 * utils.h (can_emit_style_escape): Remove.
10204 * utils.c (can_emit_style_escape): Likewise.
10205 Update all callers of can_emit_style_escape (SOMESTREAM) to
10206 SOMESTREAM->can_emit_style_escape.
10207 * source-cache.c (source_cache::get_source_lines): Likewise.
10208 * stack.c (frame_apply_command_count): Call execute_command_to_string
10209 passing the term_out characteristic of the current gdb_stdout.
10210 * thread.c (thr_try_catch_cmd): Likewise.
10211 * top.c (execute_command_to_string): pass term_out parameter
10212 to construct the string_file for the command output.
10213 * ui-file.c (term_cli_styling): New function (most code moved
10214 from utils.c can_emit_style_escape).
10215 (string_file::string_file, string_file::can_emit_style_escape,
10216 stdio_file::can_emit_style_escape, tee_file::term_out,
10217 tee_file::can_emit_style_escape): New functions.
10218
136afab8
PW
102192019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10220
10221 * NEWS: Mention the new set|show may-call-functions.
10222 * infcall.c (may_call_functions_p): New variable.
10223 (show_may_call_functions_p): New function.
10224 (call_function_by_hand_dummy): Throws an error if not
10225 may-call-functions.
10226 (_initialize_infcall): Call add_setshow_boolean_cmd for
10227 may-call-functions.
10228
725cbb63
KS
102292019-04-25 Keith Seitz <keiths@redhat.com>
10230
10231 PR c++/24367
10232 * cp-support.c (inspect_type): Don't attempt substitutions
10233 of symbol with the same name.
10234
3d1cbb78
TT
102352019-04-25 Tom Tromey <tromey@adacore.com>
10236
10237 PR gdb/24475:
10238 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10239 static.
10240
94aeb44b
TT
102412019-04-25 Tom Tromey <tromey@adacore.com>
10242
10243 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10244 rvalue reference.
10245 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10246 (gdb_xml_parser::parse): Use std::move.
10247 * python/python-internal.h (gdbpy_convert_exception): Take a const
10248 reference.
10249 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10250 std::move.
10251 * python/py-utils.c (gdbpy_convert_exception): Take a const
10252 reference.
10253 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10254 Use std::move.
10255 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10256 Use std::move.
10257 * mi/mi-main.c (mi_print_exception): Take a const reference.
10258 * main.c (handle_command_errors): Take a const reference.
10259 * linespec.c (parse_linespec): Use std::move.
10260 * infcall.c (run_inferior_call): Use std::move.
10261 (call_function_by_hand_dummy): Use std::move.
10262 * exec.c (try_open_exec_file): Use std::move.
10263 * exceptions.h (exception_print, exception_fprintf)
10264 (exception_print_same): Update.
10265 * exceptions.c (print_exception, exception_print)
10266 (exception_fprintf, exception_print_same): Change parameters to
10267 const reference.
10268 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10269 * common/new-op.c: Use std::move.
10270 * common/common-exceptions.h (struct gdb_exception): Add move
10271 constructor.
10272 (struct gdb_exception_error, struct gdb_exception_quit, struct
10273 gdb_quit_bad_alloc): Change constructor to move constructor.
10274 (throw_exception): Change parameter to rvalue reference.
10275 * common/common-exceptions.c (throw_exception): Take rvalue
10276 reference.
10277 * cli/cli-interp.c (safe_execute_command): Use std::move.
10278 * breakpoint.c (insert_bp_location, location_to_sals): Use
10279 std::move.
10280
680d7fd5
TT
102812019-04-25 Tom Tromey <tromey@adacore.com>
10282
10283 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10284 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10285 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10286 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10287 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10288 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10289 guile/scm-value.c: Use unpack.
10290 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10291 gdbscm_gdb_exception.
10292 (gdbscm_throw_gdb_exception): Likewise.
10293 (struct gdbscm_gdb_exception): New.
10294 (unpack): New function.
10295 (gdbscm_wrap): Use unpack.
10296
c6fdd8b2
TT
102972019-04-25 Tom Tromey <tromey@adacore.com>
10298
10299 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10300 (gdb_rl_callback_handler): Use std::move.
10301 * common/common-exceptions.h (struct gdb_exception): Add move
10302 assignment operator.
10303 (throw_exception_sjlj): Change "exception" to const reference.
10304 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10305 (throw_exception_sjlj): Change "exception" to const reference.
10306
cc06b668
TT
103072019-04-25 Tom Tromey <tromey@adacore.com>
10308
10309 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10310 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10311 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10312 Update.
10313 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10314 Update.
10315 * mi/mi-interp.c (mi_interp::exec): Update.
10316 * linespec.c (parse_linespec): Update.
10317 * infcall.c (run_inferior_call): Update.
10318 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10319 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10320 (gdbscm_lookup_global_symbol): Update.
10321 * guile/scm-param.c (gdbscm_parameter_value): Update.
10322 * guile/scm-frame.c (gdbscm_frame_read_register)
10323 (gdbscm_frame_read_var): Update.
10324 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10325 * exec.c (try_open_exec_file): Update.
10326 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10327 (gdb_rl_callback_handler): Update.
10328 * common/common-exceptions.h (exception_none): Don't declare.
10329 * common/common-exceptions.c (exception_none): Don't define.
10330 (struct catcher) <exception>: Update.
10331 * cli/cli-interp.c (safe_execute_command): Update.
10332 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10333
cf532bd1
AT
103342019-04-25 Ali Tamur <tamur@google.com>
10335
10336 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10337 (read_attribute_value): Likewise.
10338 (dwarf2_read_addr_index): Update comment.
10339 (read_str_index): Add DW_FORM_strx.
10340 (dwarf2_string_attr): Likewise.
10341 (dwarf2_const_value_attr): Likewise.
10342 (dump_die_shallow): Likewise.
10343 (dwarf2_fetch_constant_bytes): Likewise.
10344 (skip_form_bytes): Likewise.
10345 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10346
82433e3e
SDJ
103472019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10348
10349 PR corefiles/11608
10350 PR corefiles/18187
10351 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10352 OFFSET. Verify if current mapping contains an ELF header.
10353 (linux_find_memory_regions_full): Adjust call to
10354 dump_mapping_p.
10355
723adb65
SL
103562019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10357 Kang Li <kanglictf@gmail.com>
10358
10359 PR gdb/21600
10360
10361 * dwarf2-frame.c (read_initial_length): Be consistent about using
10362 unsigned representation of length.
10363 (decode_frame_entry_1): Likewise. Check for wraparound of
10364 end pointer as well as buffer overflow.
10365
596179f7
SDJ
103662019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10367
10368 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10369 "vq".
10370
a59240a4
TT
103712019-04-24 Tom Tromey <tromey@adacore.com>
10372
10373 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10374
f872fdbb
AB
103752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10376
10377 * s12z-tdep.c (s12z_unwind_pc): Delete.
10378 (s12z_unwind_sp): Delete.
10379 (s12z_gdbarch_init): Don't register deleted functions with
10380 gdbarch.
10381
b614e6f3
AB
103822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10383
10384 * rl78-tdep.c (rl78_unwind_sp): Delete.
10385 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10386
14faed38
AB
103872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10390 (xstormy16_unwind_pc): Delete.
10391 (xstormy16_dummy_id): Delete.
10392 (xstormy16_gdbarch_init): Don't register deleted functions with
10393 gdbarch.
10394
541aad8a
AB
103952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10396
10397 * vax-tdep.c (vax_unwind_pc): Delete.
10398 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10399
29222070
AB
104002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * v850-tdep.c (v850_unwind_sp): Delete.
10403 (v850_unwind_pc): Delete.
10404 (v850_dummy_id): Delete.
10405 (v850_gdbarch_init): Don't register deleted functions with
10406 gdbarch.
10407
0f534d76
AB
104082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10409
10410 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10411 (tilegx_unwind_pc): Delete.
10412 (tilegx_unwind_dummy_id): Delete.
10413 (tilegx_gdbarch_init): Don't register deleted functions with
10414 gdbarch.
10415
1ba7b7f9
AB
104162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10417
10418 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10419 (tic6x_dummy_id): Delete.
10420 (tic6x_gdbarch_init): Don't register deleted functions with
10421 gdbarch.
10422
d31f262c
AB
104232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10424
10425 * sparc-tdep.c (sparc_unwind_pc): Delete.
10426 (sparc32_gdbarch_init): Don't register deleted function with
10427 gdbarch.
10428
6d14d64d
AB
104292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10430
10431 * sh-tdep.c (sh_unwind_sp): Delete.
10432 (sh_unwind_pc): Delete.
10433 (sh_dummy_id): Delete.
10434 (sh_gdbarch_init): Don't register deleted functions with
10435 gdbarch.
10436
a40dde9d
AB
104372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10438
10439 * score-tdep.c (score_unwind_sp): Delete.
10440 (score_unwind_pc): Delete.
10441 (score_dummy_id): Delete.
10442 (score_gdbarch_init): Don't register deleted functions with
10443 gdbarch.
10444
47c47d69
AB
104452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10446
10447 * rx-tdep.c (rx_unwind_pc): Delete.
10448 (rx_unwind_sp): Delete.
10449 (rx_dummy_id): Delete.
10450 (rx_gdbarch_init): Don't register deleted functions with
10451 gdbarch. Update comment.
10452
833a4480
AB
104532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10456 (rs6000_dummy_id): Delete.
10457 (rs6000_gdbarch_init): Don't register deleted functions with
10458 gdbarch.
10459
3f2cef49
AB
104602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * or1k-tdep.c (or1k_dummy_id): Delete.
10463 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10464
96acf884
AB
104652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * nios2-tdep.c (nios2_dummy_id): Delete.
10468 (nios2_unwind_sp): Delete.
10469 (nios2_gdbarch_init): Don't register deleted functions with
10470 gdbarch.
10471
ca0ab0aa
AB
104722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * nds32-tdep.c (nds32_dummy_id): Delete.
10475 (nds32_unwind_pc): Delete.
10476 (nds32_unwind_sp): Delete.
10477 (nds32_gdbarch_init): Don't register deleted functions with
10478 gdbarch.
10479
c8259044
AB
104802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10481
10482 * msp430-tdep.c (msp430_unwind_pc): Delete.
10483 (msp430_unwind_sp): Delete.
10484 (msp430_dummy_id): Delete.
10485 (msp430_gdbarch_init): Don't register deleted functions with
10486 gdbarch.
10487
27f113c8
AB
104882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10489
10490 * moxie-tdep.c (moxie_unwind_sp): Delete.
10491 (moxie_unwind_pc): Delete.
10492 (moxie_dummy_id): Delete.
10493 (moxie_gdbarch_init): Don't register deleted functions with
10494 gdbarch.
10495
aee6c3cd
AB
104962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10497
10498 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10499 (mn10300_unwind_pc): Delete.
10500 (mn10300_unwind_sp): Delete.
10501 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10502 mn10300_unwind_sp.
10503 (mn10300_frame_unwind_init): Don't register deleted functions with
10504 gdbarch.
10505
8e2b5aea
AB
105062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10507
10508 * mep-tdep.c (mep_unwind_pc): Delete.
10509 (mep_unwind_sp): Delete.
10510 (mep_dummy_id): Delete.
10511 (mep_gdbarch_init): Don't register deleted functions with
10512 gdbarch.
10513
43cf3ede
AB
105142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10515
10516 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10517 (m68hc11_unwind_sp): Delete.
10518 (m68hc11_gdbarch_init): Don't register deleted functions with
10519 gdbarch.
10520
5e79b7bb
AB
105212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * m32r-tdep.c (m32r_unwind_sp): Delete.
10524 (m32r_unwind_pc): Delete.
10525 (m32r_dummy_id): Delete.
10526 (m32r_gdbarch_init): Don't register deleted functions with
10527 gdbarch.
10528
89b268d8
AB
105292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * m32c-tdep.c (m32c_unwind_pc): Delete.
10532 (m32c_unwind_sp): Delete.
10533 (m32c_dummy_id): Delete.
10534 (m32c_gdbarch_init): Don't register deleted functions with
10535 gdbarch.
10536
946c28d2
AB
105372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10538
10539 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10540 (lm32_unwind_pc): Delete.
10541 (lm32_dummy_id): Delete.
10542 (lm32_gdbarch_init): Don't register deleted functions with
10543 gdbarch.
10544
bf12844a
AB
105452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10546
10547 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10548 (iq2000_unwind_pc): Delete.
10549 (iq2000_dummy_id): Delete.
10550 (iq2000_gdbarch_init): Don't register deleted functions with
10551 gdbarch.
10552
ecbc06d2
AB
105532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * nds32-tdep.c (nds32_type_align): Delete.
10556 (nds32_push_dummy_call): Use type_align instead.
10557
030197b4
AB
105582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10559
10560 * arm-tdep.c (arm_type_align): Only handle vector override case.
10561 (arm_push_dummy_call): Use type_align.
10562 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10563
b907456c
AB
105642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10565
10566 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10567 case.
10568 (pass_on_stack): Use type_align.
10569 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10570 function.
10571
9e97ba43
TT
105722019-04-23 Tom Tromey <tromey@adacore.com>
10573
10574 * dwarf2read.c (line_header::file_name_at): Remove unused
10575 overload.
10576
6892f601
TV
105772019-04-23 Tom de Vries <tdevries@suse.de>
10578
10579 PR gdb/24438
10580 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10581 invocation.
10582
336d760d
AT
10583
105842019-03-27 Ali Tamur <tamur@google.com>
10585
10586 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10587 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10588 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10589 (dwarf_expr_context::get_addr_index): Likewise
10590 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10591 (symbol_needs_eval_context::get_addr_index): Likewise
10592 (disassemble_dwarf_expression): Add DW_OP_addrx
10593 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10594 (read_cutu_die_from_dwo): Update comment
10595 (skip_one_die): Add DW_FORM_addrx
10596 (read_attribute_value): Likewise
10597 (var_decode_location): Add DW_OP_addrx
10598 (dwarf2_const_value_attr): Add DW_FORM_addrx
10599 (dump_die_shallow): Likewise
10600 (dwarf2_fetch_constant_bytes): Likewise
10601 (decode_locdesc): Add DW_OP_addrx
10602 (skip_form_bytes): Add DW_FORM_addrx
10603
ad9d13f8
AT
106042019-04-22 Ali Tamur <tamur@google.com>
10605
10606 * MAINTAINERS (Write After Approval): Add self.
10607
d70cc3ba
SM
106082019-04-22 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10611 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10612 (open_symbol_file_object): Likewise.
10613 (svr4_default_sos): Add info parameter.
10614 (svr4_read_so_list): Likewise.
10615 (svr4_current_sos_direct): Adjust functions calls to pass down
10616 info.
10617 (svr4_current_sos_1): Add info parameter.
10618 (svr4_current_sos): Call get_svr4_info, pass info down to
10619 svr4_current_sos_1.
10620 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10621 get_svr4_info.
10622 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10623 get_svr4_info.
10624 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10625 to get_svr4_info.
10626 (probes_table_remove_objfile_probes): Likewise.
10627 (register_solib_event_probe): Add info parameter.
10628 (solist_update_incremental): Pass info parameter down to
10629 svr4_read_so_list.
10630 (disable_probes_interface): Add info parameter.
10631 (svr4_handle_solib_event): Pass current_program_space to
10632 get_svr4_info. Adjust disable_probes_interface cleanup.
10633 (svr4_create_probe_breakpoints): Add info parameter, pass it
10634 down to register_solib_event_probe.
10635 (svr4_create_solib_event_breakpoints): Add info parameter,
10636 pass it down to svr4_create_probe_breakpoints.
10637 (enable_break): Pass info down to
10638 svr4_create_solib_event_breakpoints.
10639 (svr4_solib_create_inferior_hook): Pass current_program_space to
10640 get_svr4_info.
10641 (svr4_clear_solib): Likewise.
10642
7905fc35
PA
106432019-04-22 Pedro Alves <palves@redhat.com>
10644
10645 * solib-svr4.c (svr4_free_objfile_observer): New.
10646 (probe_and_action::objfile): New field.
10647 (probes_table_htab_remove_objfile_probes)
10648 (probes_table_remove_objfile_probes): New functions.
10649 (register_solib_event_probe): Add 'objfile' parameter. Store it
10650 in the new probe_and_action. Don't store the probe in 'lookup'.
10651 (svr4_create_probe_breakpoints): Pass objfile to
10652 register_solib_event_probe.
10653 (_initialize_svr4_solib): Register a free_objfile observer.
10654
fb881986
TT
106552019-04-19 Tom Tromey <tom@tromey.com>
10656
10657 * common/queue.h: Remove.
10658
8732db6c
TT
106592019-04-19 Tom Tromey <tom@tromey.com>
10660
10661 * event-loop.c: Don't include "common/queue.h".
10662
97dfbadd
TT
106632019-04-19 Tom Tromey <tom@tromey.com>
10664
10665 * remote.c (remote_target): Use delete.
10666 * remote-notif.h: Include <list>, not "common/queue.h".
10667 (notif_client_p): Remove typedef.
10668 (remote_notif_state): Add constructor, destructor, initializer.
10669 <notif_queue>: Now a std::list.
10670 (remote_notif_state_xfree): Don't declare.
10671 * remote-notif.c (remote_notif_process, handle_notification)
10672 (remote_notif_state_allocate): Update.
10673 (~remote_notif_state): Rename from remote_notif_state_xfree.
10674
cf250e36
TT
106752019-04-19 Tom Tromey <tom@tromey.com>
10676
10677 * symfile.c (reread_symbols): Update.
10678 * objfiles.c (objfile_register_static_link)
10679 (objfile_lookup_static_link): Update
10680 (~objfile) Don't delete static_links.
10681 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10682
61f4b350
TT
106832019-04-19 Tom Tromey <tom@tromey.com>
10684
10685 * type-stack.h (struct type_stack) <insert>: Constify string.
10686 * type-stack.c (type_stack::insert): Constify string.
10687 * gdbtypes.h (lookup_template_type): Update.
10688 (address_space_name_to_int): Update.
10689 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10690 const.
10691 (lookup_template_type): Make name const.
10692 * c-exp.y: Update rules.
10693 (lex_one_token, classify_name, classify_inner_name)
10694 (c_print_token): Update.
10695 * p-exp.y: Update rules.
10696 (yylex): Update.
10697 * f-exp.y: Update rules.
10698 (yylex): Update.
10699 * d-exp.y: Update rules.
10700 (lex_one_token, classify_name, classify_inner_name): Update.
10701 * parse.c (write_dollar_variable, copy_name): Return std::string.
10702 * parser-defs.h (copy_name): Change return type.
10703 * m2-exp.y: Update rules.
10704 (yylex): Update.
10705 * go-exp.y (lex_one_token): Update.
10706 Update rules.
10707 (classify_unsafe_function, classify_packaged_name)
10708 (classify_name, yylex): Update.
10709
189b8c2e
ST
107102019-04-19 Sergei Trofimovich <siarheit@google.com>
10711
10712 * configure.ac: add --enable-source-highlight switch.
10713 * configure: Regenerate.
10714 * top.c (print_gdb_version): plumb --enable-source-highlight
10715 status to "show configuration".
10716
8ecb59f8
TT
107172019-04-19 Tom Tromey <tromey@adacore.com>
10718
10719 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10720 Check ADA_TYPE_P.
10721 (empty_record, ada_template_to_fixed_record_type_1)
10722 (template_to_static_fixed_type)
10723 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10724 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10725 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10726 macros.
10727
62160ec9
TT
107282019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10729
10730 PR symtab/24423:
10731 * source.c (print_source_lines_base): Advance "iter" when a
10732 control character is seen.
10733
f2ae8bc8
PW
107342019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10735
10736 * inferior.h (struct infcall_suspend_state_deleter):
10737 Catch exception in destructor to avoid crash.
10738
d563b953
PW
107392019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10740
10741 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10742 close to the add_com "shell".
10743
dc34c897
TT
107442019-04-18 Tom Tromey <tromey@adacore.com>
10745
10746 * process-stratum-target.h (class process_stratum_target)
10747 <stratum>: Add "final".
10748
a12e5744
TT
107492019-04-17 Tom Tromey <tromey@adacore.com>
10750
10751 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10752 against nullptr before use.
10753
a7e559cc
AH
107542019-04-17 Alan Hayward <alan.hayward@arm.com>
10755
10756 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10757
c01660c6
AB
107582019-04-17 Jim Wilson <jimw@sifive.com>
10759 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10762 code read might fail, assume 4-byte breakpoint in that case.
10763
4aa866af
LS
107642019-04-15 Leszek Swirski <leszeks@google.com>
10765
10766 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10767 rather than a hand-rolled POD check when checking for forced MEMORY
10768 classification.
10769
48574d91
AH
107702019-04-15 Alan Hayward <alan.hayward@arm.com>
10771
10772 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10773 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10774 function.
10775 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10776 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10777 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10778 declaration.
10779
4da037ef
AH
107802019-04-15 Alan Hayward <alan.hayward@arm.com>
10781
10782 * aarch64-linux-nat.c
10783 (aarch64_linux_nat_target::thread_architecture): Add override.
10784 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10785 each VQ.
10786
ccb8d7e8
AH
107872019-04-15 Alan Hayward <alan.hayward@arm.com>
10788
10789 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10790
35add35e
AB
107912019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10794 target types of size 96-bits, add some additional comments, and
10795 check that the builtin type we found was the correct size.
10796
51196bbc
EZ
107972019-04-12 Eli Zaretskii <eliz@gnu.org>
10798
10799 * utils.c (prompt_for_continue): Don't restore the styling at the
10800 end, as applied_style has the wrong value. This fixes styling in
10801 long lists of file names that are interrupted by the "Continue?"
10802 prompt.
10803
62253a61
AB
108042019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10807 * c-lang.c (c_language_defn): Likewise.
10808 (cplus_language_defn): Likewise.
10809 (asm_language_defn): Likewise.
10810 (minimal_language_defn): Likewise.
10811 * d-lang.c (d_language_defn): Likewise.
10812 * f-lang.c (f_language_defn): Likewise.
10813 * go-lang.c (go_language_defn): Likewise.
10814 * language.c (unknown_language_defn): Likewise.
10815 (auto_language_defn): Likewise.
10816 * language.h (struct language_defn): Remove la_magic field.
10817 (LANG_MAGIC): Delete.
10818 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10819 * objc-lang.c (objc_language_defn): Likewise.
10820 * opencl-lang.c (opencl_language_defn): Likewise.
10821 * p-lang.c (pascal_language_defn): Likewise.
10822 * rust-lang.c (rust_language_defn): Likewise.
10823
a9158a86
AB
108242019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * riscv-tdep.c (riscv_type_align): New function.
10827 (riscv_type_alignment): Delete.
10828 (riscv_arg_location): Use 'type_align'.
10829 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10830
41077b66
AB
108312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * gdbtypes.c (type_align): A struct with no non-static fields also
10834 has alignment of 1.
10835
9f0272f8
AB
108362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10839 component to 0.
10840 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10841 member.
10842 (riscv_struct_info::analyse): New implementation using new
10843 analyse_inner member function.
10844 (riscv_struct_info::field_offset): New member function.
10845 (riscv_struct_info::m_offsets): New member variable.
10846 (riscv_struct_info::analyse_inner): New private member function,
10847 takes the old implementation of riscv_struct_info::analyse but
10848 extended to track field offsets.
10849 (riscv_call_arg_struct): Update the struct folding special cases
10850 to handle cases where empty C++ structs, which are non-zero
10851 length, are found.
10852 (riscv_arg_location): Initialise the length of each location, a
10853 non-zero length now indicates the location is in use.
10854 (riscv_push_dummy_call): Allow for the first location having a
10855 non-zero offset when setting up arguments.
10856 (riscv_return_value): Likewise, but for return values.
10857
02cf60c7
TT
108582019-04-11 Tom Tromey <tromey@adacore.com>
10859
10860 * utils.c (internal_vproblem): Make "msg" const.
10861
68811f8f
AH
108622019-04-11 Alan Hayward <alan.hayward@arm.com>
10863
10864 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10865 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10866 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10867 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10868
3f52fdbc
KB
108692019-04-10 Kevin Buettner <kevinb@redhat.com>
10870
10871 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10872 function.
10873 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10874 of amd64_collect_native_gregset.
10875 (amd64_linux_nat_target::store_registers): Likewise.
10876
e9ad22ee
TT
108772019-04-10 Tom Tromey <tom@tromey.com>
10878
10879 * symtab.c (lookup_global_symbol_from_objfile)
10880 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10881 * objfiles.h (class separate_debug_iterator): New.
10882 (class separate_debug_range): New.
10883 (struct objfile) <separate_debug_objfiles>: New method.
10884 (objfile_separate_debug_iterate): Don't declare.
10885 * objfiles.c (separate_debug_iterator::operator++): Rename from
10886 objfile_separate_debug_iterate.
10887 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10888 iterator.
10889 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10890 iterator.
10891
ee371134
TT
108922019-04-10 Tom Tromey <tom@tromey.com>
10893
10894 * symfile.c (reread_symbols): Remove old comment.
10895 * objfiles.c (free_all_objfiles): Fix a typo.
10896
bf227d61
TT
108972019-04-10 Tom Tromey <tom@tromey.com>
10898
10899 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10900 * minsyms.c (lookup_minimal_symbol): Use foreach.
10901 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10902 (lookup_minimal_symbol_solib_trampoline): Likewise.
10903 * symfile.c (reread_symbols): Use foreach.
10904
8dc433a0
TT
109052019-04-09 Ivan Begert <ivanbegert@gmail.com>
10906 Tom Tromey <tromey@adacore.com>
10907
10908 PR rust/24414:
10909 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10910 (rust_lex_int_test): Change "value" to be LONGEST.
10911 (rust_lex_tests): Add test for long integer literal.
10912
9ab8741a
TT
109132019-04-09 Tom Tromey <tromey@adacore.com>
10914
10915 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10916 to bool.
10917 (extended_remote_target::attach): Update.
10918 (remote_target::remote_notice_new_inferior): Update.
10919 (remote_target::add_current_inferior_and_thread): Update.
10920 * inferior.c (exit_inferior_1): Use "false".
10921 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10922
e242fd12
SM
109232019-04-09 Simon Marchi <simon.marchi@efficios.com>
10924
9ca1957f 10925 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10926 the "start" command.
10927
2b0c8b01
KB
109282019-04-08 Kevin Buettner <kevinb@redhat.com>
10929
10930 * python/py-inferior.c (infpy_thread_from_thread_handle):
10931 Adjust comments to reflect renaming of thread_from_thread_handle
10932 to thread_from_handle. Adjust keywords. Fix type error message.
10933 (inferior_object_methods): Add thread_from_handle. Retain
10934 thread_from_thread_handle, but mark it as deprecated.
10935
50a82723
KB
109362019-04-08 Kevin Buettner <kevinb@redhat.com>
10937
10938 * gdbthread.h (find_thread_by_handle): Revise declaration.
10939 * thread.c (find_thread_by_handle): Likewise. Adjust
10940 implementation too.
10941 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10942 support for buffer objects as handles.
10943
cf63b016
KB
109442019-04-08 Kevin Buettner <kevinb@redhat.com>
10945
10946 * python/py-infthread.c (thpy_thread_handle): New function.
10947 (thread_object_methods): Register thpy_thread_handle.
10948
3d6c6204
KB
109492019-04-08 Kevin Buettner <kevinb@redhat.com>
10950
10951 * gdbthread.h (thread_to_thread_handle): Declare.
10952 * thread.c (gdbtypes.h): Include.
10953 (thread_to_thread_handle): New function.
10954
10955 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10956 (target_thread_info_to_thread_handle): Declare.
10957 * target.c (target_thread_info_to_thread_handle): New function.
10958 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10959 * target-delegates.c: Regenerate.
10960
10961 * linux-thread-db.c (class thread_db_target): Add method
10962 thread_info_to_thread_handle.
10963 (thread_db_target::thread_info_to_thread_handle): Define.
10964 * remote.c (class remote_target): Add new method
10965 thread_info_to_thread_handle.
10966 (remote_target::thread_info_to_thread_handle): Define.
10967
56be6ea8
PA
109682019-04-08 Pedro Alves <palves@redhat.com>
10969
10970 * common/common-exceptions.c (throw_exception): Don't create
10971 named object to throw; throw directly.
10972 (throw_it): Likewise. Don't initialize gdb_exception::message
10973 here, with new; pass FMT and AP to the ctor instead.
10974 * common/common-exceptions.h: Include <string>.
10975 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10976 const char *, va_list)): New ctor. Use std::make_shared.
10977 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10978 errors)): Delete.
10979 (gdb_exception_error::gdb_exception_error(enum errors, const char
10980 *, va_list)): New.
10981 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10982 Add assertion.
10983 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10984 errors)): Delete.
10985 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10986 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10987 Add assertion.
10988
eedc3f4f
TT
109892019-04-08 Tom Tromey <tom@tromey.com>
10990
10991 * valops.c (value_rtti_indirect_type): Replace throw_exception
10992 with throw.
10993 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10994 with throw.
10995 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10996 throw.
10997 * target.c (target_translate_tls_address): Replace throw_exception
10998 with throw.
10999 * stack.c (frame_apply_command_count): Replace throw_exception
11000 with throw.
11001 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11002 throw.
11003 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11004 with throw.
11005 * rs6000-tdep.c (rs6000_frame_cache)
11006 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11007 * remote.c: Replace throw_exception with throw.
11008 * record-full.c (record_full_message, record_full_wait_1)
11009 (record_full_restore): Replace throw_exception with throw.
11010 * record-btrace.c:
11011 (get_thread_current_frame_id, record_btrace_start_replaying)
11012 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11013 (cmd_record_btrace_start): Replace throw_exception with throw.
11014 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11015 throw.
11016 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11017 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11018 * linespec.c:
11019 (find_linespec_symbols): Replace throw_exception with throw.
11020 * infrun.c (displaced_step_prepare, resume): Replace
11021 throw_exception with throw.
11022 * infcmd.c (post_create_inferior): Replace throw_exception with
11023 throw.
11024 * inf-loop.c (inferior_event_handler): Replace throw_exception
11025 with throw.
11026 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11027 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11028 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11029 (get_prev_frame_always, get_frame_pc_if_available)
11030 (get_frame_address_in_block_if_available, get_frame_language):
11031 Replace throw_exception with throw.
11032 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11033 throw_exception with throw.
11034 * eval.c (fetch_subexp_value, evaluate_var_value)
11035 (evaluate_funcall, evaluate_subexp_standard): Replace
11036 throw_exception with throw.
11037 * dwarf2loc.c (call_site_find_chain)
11038 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11039 Replace throw_exception with throw.
11040 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11041 with throw.
11042 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11043 throw.
11044 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11045 * completer.c (complete_line_internal): Replace throw_exception
11046 with throw.
11047 * compile/compile-object-run.c (compile_object_run): Replace
11048 throw_exception with throw.
11049 * cli/cli-script.c (process_next_line): Replace throw_exception
11050 with throw.
11051 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11052 (btrace_enable, btrace_maint_update_pt_packets): Replace
11053 throw_exception with throw.
11054 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11055 throw_exception with throw.
11056 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11057 throw_exception with throw.
11058 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11059 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11060 * aarch64-tdep.c (aarch64_make_prologue_cache)
11061 (aarch64_make_stub_cache): Replace throw_exception with throw.
11062
26003a20
TT
110632019-04-08 Tom Tromey <tom@tromey.com>
11064
11065 * common/common-exceptions.c (throw_exception): Rename from
11066 throw_exception_cxx. Remove old copy. Make argument const.
11067 (throw_it): Create and throw exception objects directly.
11068 * common/common-exceptions.h (throw_exception): Make argument
11069 const.
11070 (struct gdb_exception_error): Add constructor.
11071 (struct gdb_exception_quit): Add constructor.
11072
d272eb37
TT
110732019-04-08 Tom Tromey <tom@tromey.com>
11074
11075 * common/common-exceptions.h (exception_rethrow): Don't declare.
11076 (TRY_SJLJ): Update comment.
11077 (TRY, CATCH, END_CATCH): Remove.
11078 * common/common-exceptions.c (exception_rethrow): Remove.
11079
230d2906
TT
110802019-04-08 Tom Tromey <tom@tromey.com>
11081
11082 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11083 Remove.
11084 (gdb_exception_error): Rename from
11085 gdb_exception_RETURN_MASK_ERROR.
11086 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11087 (gdb_quit_bad_alloc): Update.
11088 * aarch64-tdep.c: Update.
11089 * ada-lang.c: Update.
11090 * ada-typeprint.c: Update.
11091 * ada-valprint.c: Update.
11092 * amd64-tdep.c: Update.
11093 * arch-utils.c: Update.
11094 * break-catch-throw.c: Update.
11095 * breakpoint.c: Update.
11096 * btrace.c: Update.
11097 * c-varobj.c: Update.
11098 * cli/cli-cmds.c: Update.
11099 * cli/cli-interp.c: Update.
11100 * cli/cli-script.c: Update.
11101 * common/common-exceptions.c: Update.
11102 * common/new-op.c: Update.
11103 * common/selftest.c: Update.
11104 * compile/compile-c-symbols.c: Update.
11105 * compile/compile-cplus-symbols.c: Update.
11106 * compile/compile-object-load.c: Update.
11107 * compile/compile-object-run.c: Update.
11108 * completer.c: Update.
11109 * corelow.c: Update.
11110 * cp-abi.c: Update.
11111 * cp-support.c: Update.
11112 * cp-valprint.c: Update.
11113 * darwin-nat.c: Update.
11114 * disasm-selftests.c: Update.
11115 * dtrace-probe.c: Update.
11116 * dwarf-index-cache.c: Update.
11117 * dwarf-index-write.c: Update.
11118 * dwarf2-frame-tailcall.c: Update.
11119 * dwarf2-frame.c: Update.
11120 * dwarf2loc.c: Update.
11121 * dwarf2read.c: Update.
11122 * eval.c: Update.
11123 * event-loop.c: Update.
11124 * event-top.c: Update.
11125 * exec.c: Update.
11126 * f-valprint.c: Update.
11127 * fbsd-tdep.c: Update.
11128 * frame-unwind.c: Update.
11129 * frame.c: Update.
11130 * gdbtypes.c: Update.
11131 * gnu-v3-abi.c: Update.
11132 * guile/guile-internal.h: Update.
11133 * guile/scm-block.c: Update.
11134 * guile/scm-breakpoint.c: Update.
11135 * guile/scm-cmd.c: Update.
11136 * guile/scm-disasm.c: Update.
11137 * guile/scm-frame.c: Update.
11138 * guile/scm-lazy-string.c: Update.
11139 * guile/scm-math.c: Update.
11140 * guile/scm-param.c: Update.
11141 * guile/scm-ports.c: Update.
11142 * guile/scm-pretty-print.c: Update.
11143 * guile/scm-symbol.c: Update.
11144 * guile/scm-symtab.c: Update.
11145 * guile/scm-type.c: Update.
11146 * guile/scm-value.c: Update.
11147 * i386-linux-tdep.c: Update.
11148 * i386-tdep.c: Update.
11149 * inf-loop.c: Update.
11150 * infcall.c: Update.
11151 * infcmd.c: Update.
11152 * infrun.c: Update.
11153 * jit.c: Update.
11154 * language.c: Update.
11155 * linespec.c: Update.
11156 * linux-fork.c: Update.
11157 * linux-nat.c: Update.
11158 * linux-tdep.c: Update.
11159 * linux-thread-db.c: Update.
11160 * main.c: Update.
11161 * mi/mi-cmd-break.c: Update.
11162 * mi/mi-cmd-stack.c: Update.
11163 * mi/mi-interp.c: Update.
11164 * mi/mi-main.c: Update.
11165 * objc-lang.c: Update.
11166 * p-valprint.c: Update.
11167 * parse.c: Update.
11168 * ppc-linux-tdep.c: Update.
11169 * printcmd.c: Update.
11170 * python/py-arch.c: Update.
11171 * python/py-breakpoint.c: Update.
11172 * python/py-cmd.c: Update.
11173 * python/py-finishbreakpoint.c: Update.
11174 * python/py-frame.c: Update.
11175 * python/py-framefilter.c: Update.
11176 * python/py-gdb-readline.c: Update.
11177 * python/py-inferior.c: Update.
11178 * python/py-infthread.c: Update.
11179 * python/py-lazy-string.c: Update.
11180 * python/py-linetable.c: Update.
11181 * python/py-objfile.c: Update.
11182 * python/py-param.c: Update.
11183 * python/py-prettyprint.c: Update.
11184 * python/py-progspace.c: Update.
11185 * python/py-record-btrace.c: Update.
11186 * python/py-record.c: Update.
11187 * python/py-symbol.c: Update.
11188 * python/py-type.c: Update.
11189 * python/py-unwind.c: Update.
11190 * python/py-utils.c: Update.
11191 * python/py-value.c: Update.
11192 * python/python.c: Update.
11193 * record-btrace.c: Update.
11194 * record-full.c: Update.
11195 * remote-fileio.c: Update.
11196 * remote.c: Update.
11197 * riscv-tdep.c: Update.
11198 * rs6000-aix-tdep.c: Update.
11199 * rs6000-tdep.c: Update.
11200 * rust-exp.y: Update.
11201 * rust-lang.c: Update.
11202 * s390-tdep.c: Update.
11203 * selftest-arch.c: Update.
11204 * solib-dsbt.c: Update.
11205 * solib-frv.c: Update.
11206 * solib-spu.c: Update.
11207 * solib-svr4.c: Update.
11208 * solib.c: Update.
11209 * sparc64-linux-tdep.c: Update.
11210 * stack.c: Update.
11211 * symfile-mem.c: Update.
11212 * symmisc.c: Update.
11213 * target.c: Update.
11214 * thread.c: Update.
11215 * top.c: Update.
11216 * tracefile-tfile.c: Update.
11217 * tui/tui.c: Update.
11218 * typeprint.c: Update.
11219 * unittests/cli-utils-selftests.c: Update.
11220 * unittests/parse-connection-spec-selftests.c: Update.
11221 * valops.c: Update.
11222 * valprint.c: Update.
11223 * value.c: Update.
11224 * varobj.c: Update.
11225 * windows-nat.c: Update.
11226 * x86-linux-nat.c: Update.
11227 * xml-support.c: Update.
11228
a70b8144
TT
112292019-04-08 Tom Tromey <tom@tromey.com>
11230
11231 * xml-support.c: Use C++ exception handling.
11232 * x86-linux-nat.c: Use C++ exception handling.
11233 * windows-nat.c: Use C++ exception handling.
11234 * varobj.c: Use C++ exception handling.
11235 * value.c: Use C++ exception handling.
11236 * valprint.c: Use C++ exception handling.
11237 * valops.c: Use C++ exception handling.
11238 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11239 handling.
11240 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11241 * typeprint.c: Use C++ exception handling.
11242 * tui/tui.c: Use C++ exception handling.
11243 * tracefile-tfile.c: Use C++ exception handling.
11244 * top.c: Use C++ exception handling.
11245 * thread.c: Use C++ exception handling.
11246 * target.c: Use C++ exception handling.
11247 * symmisc.c: Use C++ exception handling.
11248 * symfile-mem.c: Use C++ exception handling.
11249 * stack.c: Use C++ exception handling.
11250 * sparc64-linux-tdep.c: Use C++ exception handling.
11251 * solib.c: Use C++ exception handling.
11252 * solib-svr4.c: Use C++ exception handling.
11253 * solib-spu.c: Use C++ exception handling.
11254 * solib-frv.c: Use C++ exception handling.
11255 * solib-dsbt.c: Use C++ exception handling.
11256 * selftest-arch.c: Use C++ exception handling.
11257 * s390-tdep.c: Use C++ exception handling.
11258 * rust-lang.c: Use C++ exception handling.
11259 * rust-exp.y: Use C++ exception handling.
11260 * rs6000-tdep.c: Use C++ exception handling.
11261 * rs6000-aix-tdep.c: Use C++ exception handling.
11262 * riscv-tdep.c: Use C++ exception handling.
11263 * remote.c: Use C++ exception handling.
11264 * remote-fileio.c: Use C++ exception handling.
11265 * record-full.c: Use C++ exception handling.
11266 * record-btrace.c: Use C++ exception handling.
11267 * python/python.c: Use C++ exception handling.
11268 * python/py-value.c: Use C++ exception handling.
11269 * python/py-utils.c: Use C++ exception handling.
11270 * python/py-unwind.c: Use C++ exception handling.
11271 * python/py-type.c: Use C++ exception handling.
11272 * python/py-symbol.c: Use C++ exception handling.
11273 * python/py-record.c: Use C++ exception handling.
11274 * python/py-record-btrace.c: Use C++ exception handling.
11275 * python/py-progspace.c: Use C++ exception handling.
11276 * python/py-prettyprint.c: Use C++ exception handling.
11277 * python/py-param.c: Use C++ exception handling.
11278 * python/py-objfile.c: Use C++ exception handling.
11279 * python/py-linetable.c: Use C++ exception handling.
11280 * python/py-lazy-string.c: Use C++ exception handling.
11281 * python/py-infthread.c: Use C++ exception handling.
11282 * python/py-inferior.c: Use C++ exception handling.
11283 * python/py-gdb-readline.c: Use C++ exception handling.
11284 * python/py-framefilter.c: Use C++ exception handling.
11285 * python/py-frame.c: Use C++ exception handling.
11286 * python/py-finishbreakpoint.c: Use C++ exception handling.
11287 * python/py-cmd.c: Use C++ exception handling.
11288 * python/py-breakpoint.c: Use C++ exception handling.
11289 * python/py-arch.c: Use C++ exception handling.
11290 * printcmd.c: Use C++ exception handling.
11291 * ppc-linux-tdep.c: Use C++ exception handling.
11292 * parse.c: Use C++ exception handling.
11293 * p-valprint.c: Use C++ exception handling.
11294 * objc-lang.c: Use C++ exception handling.
11295 * mi/mi-main.c: Use C++ exception handling.
11296 * mi/mi-interp.c: Use C++ exception handling.
11297 * mi/mi-cmd-stack.c: Use C++ exception handling.
11298 * mi/mi-cmd-break.c: Use C++ exception handling.
11299 * main.c: Use C++ exception handling.
11300 * linux-thread-db.c: Use C++ exception handling.
11301 * linux-tdep.c: Use C++ exception handling.
11302 * linux-nat.c: Use C++ exception handling.
11303 * linux-fork.c: Use C++ exception handling.
11304 * linespec.c: Use C++ exception handling.
11305 * language.c: Use C++ exception handling.
11306 * jit.c: Use C++ exception handling.
11307 * infrun.c: Use C++ exception handling.
11308 * infcmd.c: Use C++ exception handling.
11309 * infcall.c: Use C++ exception handling.
11310 * inf-loop.c: Use C++ exception handling.
11311 * i386-tdep.c: Use C++ exception handling.
11312 * i386-linux-tdep.c: Use C++ exception handling.
11313 * guile/scm-value.c: Use C++ exception handling.
11314 * guile/scm-type.c: Use C++ exception handling.
11315 * guile/scm-symtab.c: Use C++ exception handling.
11316 * guile/scm-symbol.c: Use C++ exception handling.
11317 * guile/scm-pretty-print.c: Use C++ exception handling.
11318 * guile/scm-ports.c: Use C++ exception handling.
11319 * guile/scm-param.c: Use C++ exception handling.
11320 * guile/scm-math.c: Use C++ exception handling.
11321 * guile/scm-lazy-string.c: Use C++ exception handling.
11322 * guile/scm-frame.c: Use C++ exception handling.
11323 * guile/scm-disasm.c: Use C++ exception handling.
11324 * guile/scm-cmd.c: Use C++ exception handling.
11325 * guile/scm-breakpoint.c: Use C++ exception handling.
11326 * guile/scm-block.c: Use C++ exception handling.
11327 * guile/guile-internal.h: Use C++ exception handling.
11328 * gnu-v3-abi.c: Use C++ exception handling.
11329 * gdbtypes.c: Use C++ exception handling.
11330 * frame.c: Use C++ exception handling.
11331 * frame-unwind.c: Use C++ exception handling.
11332 * fbsd-tdep.c: Use C++ exception handling.
11333 * f-valprint.c: Use C++ exception handling.
11334 * exec.c: Use C++ exception handling.
11335 * event-top.c: Use C++ exception handling.
11336 * event-loop.c: Use C++ exception handling.
11337 * eval.c: Use C++ exception handling.
11338 * dwarf2read.c: Use C++ exception handling.
11339 * dwarf2loc.c: Use C++ exception handling.
11340 * dwarf2-frame.c: Use C++ exception handling.
11341 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11342 * dwarf-index-write.c: Use C++ exception handling.
11343 * dwarf-index-cache.c: Use C++ exception handling.
11344 * dtrace-probe.c: Use C++ exception handling.
11345 * disasm-selftests.c: Use C++ exception handling.
11346 * darwin-nat.c: Use C++ exception handling.
11347 * cp-valprint.c: Use C++ exception handling.
11348 * cp-support.c: Use C++ exception handling.
11349 * cp-abi.c: Use C++ exception handling.
11350 * corelow.c: Use C++ exception handling.
11351 * completer.c: Use C++ exception handling.
11352 * compile/compile-object-run.c: Use C++ exception handling.
11353 * compile/compile-object-load.c: Use C++ exception handling.
11354 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11355 * compile/compile-c-symbols.c: Use C++ exception handling.
11356 * common/selftest.c: Use C++ exception handling.
11357 * common/new-op.c: Use C++ exception handling.
11358 * cli/cli-script.c: Use C++ exception handling.
11359 * cli/cli-interp.c: Use C++ exception handling.
11360 * cli/cli-cmds.c: Use C++ exception handling.
11361 * c-varobj.c: Use C++ exception handling.
11362 * btrace.c: Use C++ exception handling.
11363 * breakpoint.c: Use C++ exception handling.
11364 * break-catch-throw.c: Use C++ exception handling.
11365 * arch-utils.c: Use C++ exception handling.
11366 * amd64-tdep.c: Use C++ exception handling.
11367 * ada-valprint.c: Use C++ exception handling.
11368 * ada-typeprint.c: Use C++ exception handling.
11369 * ada-lang.c: Use C++ exception handling.
11370 * aarch64-tdep.c: Use C++ exception handling.
11371
3d6e9d23
TT
113722019-04-08 Tom Tromey <tom@tromey.com>
11373
11374 * xml-support.c (gdb_xml_parser::parse): Update.
11375 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11376 * value.c (show_convenience): Update.
11377 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11378 (test_parse_flags_qcs): Update.
11379 * thread.c (thr_try_catch_cmd): Update.
11380 * target.c (target_translate_tls_address): Update.
11381 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11382 (info_frame_command_core, frame_apply_command_count): Update.
11383 * rust-exp.y (rust_lex_exception_test): Update.
11384 * riscv-tdep.c (riscv_print_one_register_info): Update.
11385 * remote.c (remote_target::enable_btrace): Update.
11386 * record-btrace.c (record_btrace_enable_warn): Update.
11387 * python/py-utils.c (gdbpy_convert_exception): Update.
11388 * printcmd.c (do_one_display, print_variable_and_value): Update.
11389 * mi/mi-main.c (mi_print_exception): Update.
11390 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11391 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11392 * linux-nat.c (linux_nat_target::attach): Update.
11393 * linux-fork.c (class scoped_switch_fork_info): Update.
11394 * infrun.c (displaced_step_prepare): Update.
11395 * infcall.c (call_function_by_hand_dummy): Update.
11396 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11397 * gnu-v3-abi.c (print_one_vtable): Update.
11398 * frame.c (get_prev_frame_always): Update.
11399 * f-valprint.c (info_common_command_for_block): Update.
11400 * exec.c (try_open_exec_file): Update.
11401 * exceptions.c (print_exception, exception_print)
11402 (exception_fprintf, exception_print_same): Update.
11403 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11404 * dwarf-index-cache.c (index_cache::store)
11405 (index_cache::lookup_gdb_index): Update.
11406 * darwin-nat.c (maybe_cache_shell): Update.
11407 * cp-valprint.c (cp_print_value_fields): Update.
11408 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11409 (gcc_cplus_symbol_address): Update.
11410 * compile/compile-c-symbols.c (gcc_convert_symbol)
11411 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11412 * common/selftest.c: Update.
11413 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11414 a std::string.
11415 (exception_try_scope_entry, exception_try_scope_exit): Don't
11416 declare.
11417 (struct exception_try_scope): Remove.
11418 (TRY): Don't use exception_try_scope.
11419 (struct gdb_exception): Add constructor, operator=.
11420 <what>: New method.
11421 (struct gdb_exception_RETURN_MASK_ALL)
11422 (struct gdb_exception_RETURN_MASK_ERROR)
11423 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11424 (struct gdb_quit_bad_alloc): Update.
11425 * common/common-exceptions.c (exception_none): Change
11426 initializer.
11427 (struct catcher) <state, exception>: Initialize inline.
11428 <prev>: Remove member.
11429 (current_catcher): Remove.
11430 (catchers): New global.
11431 (exceptions_state_mc_init): Simplify.
11432 (catcher_pop): Remove.
11433 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11434 (try_scope_depth, exception_try_scope_entry)
11435 (exception_try_scope_exit): Remove.
11436 (throw_exception_sjlj): Update.
11437 (exception_messages, exception_messages_size): Remove.
11438 (throw_it): Simplify.
11439 (gdb_exception_sliced_copy): Remove.
11440 (throw_exception_cxx): Update.
11441 * cli/cli-script.c (script_from_file): Update.
11442 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11443 Update.
11444 * ada-valprint.c (ada_val_print): Update.
11445 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11446 (create_excep_cond_exprs): Update.
11447
c5c10118
TT
114482019-04-08 Tom Tromey <tom@tromey.com>
11449
11450 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11451 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11452 (TRY, CATCH, END_CATCH): Remove some definitions.
11453 * common/common-exceptions.c: Don't use GDB_XCPT.
11454 (catcher_list_size): Remove.
11455 (throw_exception, throw_it): Simplify.
11456
4de283e4
TT
114572019-04-05 Tom Tromey <tom@tromey.com>
11458
11459 Revert the header-sorting patch.
11460 * ft32-tdep.c: Revert.
11461 * frv-tdep.c: Revert.
11462 * frv-linux-tdep.c: Revert.
11463 * frame.c: Revert.
11464 * frame-unwind.c: Revert.
11465 * frame-base.c: Revert.
11466 * fork-child.c: Revert.
11467 * findvar.c: Revert.
11468 * findcmd.c: Revert.
11469 * filesystem.c: Revert.
11470 * filename-seen-cache.h: Revert.
11471 * filename-seen-cache.c: Revert.
11472 * fbsd-tdep.c: Revert.
11473 * fbsd-nat.h: Revert.
11474 * fbsd-nat.c: Revert.
11475 * f-valprint.c: Revert.
11476 * f-typeprint.c: Revert.
11477 * f-lang.c: Revert.
11478 * extension.h: Revert.
11479 * extension.c: Revert.
11480 * extension-priv.h: Revert.
11481 * expprint.c: Revert.
11482 * exec.h: Revert.
11483 * exec.c: Revert.
11484 * exceptions.c: Revert.
11485 * event-top.c: Revert.
11486 * event-loop.c: Revert.
11487 * eval.c: Revert.
11488 * elfread.c: Revert.
11489 * dwarf2read.h: Revert.
11490 * dwarf2read.c: Revert.
11491 * dwarf2loc.c: Revert.
11492 * dwarf2expr.h: Revert.
11493 * dwarf2expr.c: Revert.
11494 * dwarf2-frame.c: Revert.
11495 * dwarf2-frame-tailcall.c: Revert.
11496 * dwarf-index-write.h: Revert.
11497 * dwarf-index-write.c: Revert.
11498 * dwarf-index-common.c: Revert.
11499 * dwarf-index-cache.h: Revert.
11500 * dwarf-index-cache.c: Revert.
11501 * dummy-frame.c: Revert.
11502 * dtrace-probe.c: Revert.
11503 * disasm.h: Revert.
11504 * disasm.c: Revert.
11505 * disasm-selftests.c: Revert.
11506 * dictionary.c: Revert.
11507 * dicos-tdep.c: Revert.
11508 * demangle.c: Revert.
11509 * dcache.h: Revert.
11510 * dcache.c: Revert.
11511 * darwin-nat.h: Revert.
11512 * darwin-nat.c: Revert.
11513 * darwin-nat-info.c: Revert.
11514 * d-valprint.c: Revert.
11515 * d-namespace.c: Revert.
11516 * d-lang.c: Revert.
11517 * ctf.c: Revert.
11518 * csky-tdep.c: Revert.
11519 * csky-linux-tdep.c: Revert.
11520 * cris-tdep.c: Revert.
11521 * cris-linux-tdep.c: Revert.
11522 * cp-valprint.c: Revert.
11523 * cp-support.c: Revert.
11524 * cp-namespace.c: Revert.
11525 * cp-abi.c: Revert.
11526 * corelow.c: Revert.
11527 * corefile.c: Revert.
11528 * continuations.c: Revert.
11529 * completer.h: Revert.
11530 * completer.c: Revert.
11531 * complaints.c: Revert.
11532 * coffread.c: Revert.
11533 * coff-pe-read.c: Revert.
11534 * cli-out.h: Revert.
11535 * cli-out.c: Revert.
11536 * charset.c: Revert.
11537 * c-varobj.c: Revert.
11538 * c-valprint.c: Revert.
11539 * c-typeprint.c: Revert.
11540 * c-lang.c: Revert.
11541 * buildsym.c: Revert.
11542 * buildsym-legacy.c: Revert.
11543 * build-id.h: Revert.
11544 * build-id.c: Revert.
11545 * btrace.c: Revert.
11546 * bsd-uthread.c: Revert.
11547 * breakpoint.h: Revert.
11548 * breakpoint.c: Revert.
11549 * break-catch-throw.c: Revert.
11550 * break-catch-syscall.c: Revert.
11551 * break-catch-sig.c: Revert.
11552 * blockframe.c: Revert.
11553 * block.c: Revert.
11554 * bfin-tdep.c: Revert.
11555 * bfin-linux-tdep.c: Revert.
11556 * bfd-target.c: Revert.
11557 * bcache.c: Revert.
11558 * ax-general.c: Revert.
11559 * ax-gdb.h: Revert.
11560 * ax-gdb.c: Revert.
11561 * avr-tdep.c: Revert.
11562 * auxv.c: Revert.
11563 * auto-load.c: Revert.
11564 * arm-wince-tdep.c: Revert.
11565 * arm-tdep.c: Revert.
11566 * arm-symbian-tdep.c: Revert.
11567 * arm-pikeos-tdep.c: Revert.
11568 * arm-obsd-tdep.c: Revert.
11569 * arm-nbsd-tdep.c: Revert.
11570 * arm-nbsd-nat.c: Revert.
11571 * arm-linux-tdep.c: Revert.
11572 * arm-linux-nat.c: Revert.
11573 * arm-fbsd-tdep.c: Revert.
11574 * arm-fbsd-nat.c: Revert.
11575 * arm-bsd-tdep.c: Revert.
11576 * arch-utils.c: Revert.
11577 * arc-tdep.c: Revert.
11578 * arc-newlib-tdep.c: Revert.
11579 * annotate.h: Revert.
11580 * annotate.c: Revert.
11581 * amd64-windows-tdep.c: Revert.
11582 * amd64-windows-nat.c: Revert.
11583 * amd64-tdep.c: Revert.
11584 * amd64-sol2-tdep.c: Revert.
11585 * amd64-obsd-tdep.c: Revert.
11586 * amd64-obsd-nat.c: Revert.
11587 * amd64-nbsd-tdep.c: Revert.
11588 * amd64-nbsd-nat.c: Revert.
11589 * amd64-nat.c: Revert.
11590 * amd64-linux-tdep.c: Revert.
11591 * amd64-linux-nat.c: Revert.
11592 * amd64-fbsd-tdep.c: Revert.
11593 * amd64-fbsd-nat.c: Revert.
11594 * amd64-dicos-tdep.c: Revert.
11595 * amd64-darwin-tdep.c: Revert.
11596 * amd64-bsd-nat.c: Revert.
11597 * alpha-tdep.c: Revert.
11598 * alpha-obsd-tdep.c: Revert.
11599 * alpha-nbsd-tdep.c: Revert.
11600 * alpha-mdebug-tdep.c: Revert.
11601 * alpha-linux-tdep.c: Revert.
11602 * alpha-linux-nat.c: Revert.
11603 * alpha-bsd-tdep.c: Revert.
11604 * alpha-bsd-nat.c: Revert.
11605 * aix-thread.c: Revert.
11606 * agent.c: Revert.
11607 * addrmap.c: Revert.
11608 * ada-varobj.c: Revert.
11609 * ada-valprint.c: Revert.
11610 * ada-typeprint.c: Revert.
11611 * ada-tasks.c: Revert.
11612 * ada-lang.c: Revert.
11613 * aarch64-tdep.c: Revert.
11614 * aarch64-ravenscar-thread.c: Revert.
11615 * aarch64-newlib-tdep.c: Revert.
11616 * aarch64-linux-tdep.c: Revert.
11617 * aarch64-linux-nat.c: Revert.
11618 * aarch64-fbsd-tdep.c: Revert.
11619 * aarch64-fbsd-nat.c: Revert.
11620 * aarch32-linux-nat.c: Revert.
11621
d55e5aa6
TT
116222019-04-05 Tom Tromey <tom@tromey.com>
11623
11624 * ft32-tdep.c: Sort headers.
11625 * frv-tdep.c: Sort headers.
11626 * frv-linux-tdep.c: Sort headers.
11627 * frame.c: Sort headers.
11628 * frame-unwind.c: Sort headers.
11629 * frame-base.c: Sort headers.
11630 * fork-child.c: Sort headers.
11631 * findvar.c: Sort headers.
11632 * findcmd.c: Sort headers.
11633 * filesystem.c: Sort headers.
11634 * filename-seen-cache.h: Sort headers.
11635 * filename-seen-cache.c: Sort headers.
11636 * fbsd-tdep.c: Sort headers.
11637 * fbsd-nat.h: Sort headers.
11638 * fbsd-nat.c: Sort headers.
11639 * f-valprint.c: Sort headers.
11640 * f-typeprint.c: Sort headers.
11641 * f-lang.c: Sort headers.
11642 * extension.h: Sort headers.
11643 * extension.c: Sort headers.
11644 * extension-priv.h: Sort headers.
11645 * expprint.c: Sort headers.
11646 * exec.h: Sort headers.
11647 * exec.c: Sort headers.
11648 * exceptions.c: Sort headers.
11649 * event-top.c: Sort headers.
11650 * event-loop.c: Sort headers.
11651 * eval.c: Sort headers.
11652 * elfread.c: Sort headers.
11653 * dwarf2read.h: Sort headers.
11654 * dwarf2read.c: Sort headers.
11655 * dwarf2loc.c: Sort headers.
11656 * dwarf2expr.h: Sort headers.
11657 * dwarf2expr.c: Sort headers.
11658 * dwarf2-frame.c: Sort headers.
11659 * dwarf2-frame-tailcall.c: Sort headers.
11660 * dwarf-index-write.h: Sort headers.
11661 * dwarf-index-write.c: Sort headers.
11662 * dwarf-index-common.c: Sort headers.
11663 * dwarf-index-cache.h: Sort headers.
11664 * dwarf-index-cache.c: Sort headers.
11665 * dummy-frame.c: Sort headers.
11666 * dtrace-probe.c: Sort headers.
11667 * disasm.h: Sort headers.
11668 * disasm.c: Sort headers.
11669 * disasm-selftests.c: Sort headers.
11670 * dictionary.c: Sort headers.
11671 * dicos-tdep.c: Sort headers.
11672 * demangle.c: Sort headers.
11673 * dcache.h: Sort headers.
11674 * dcache.c: Sort headers.
11675 * darwin-nat.h: Sort headers.
11676 * darwin-nat.c: Sort headers.
11677 * darwin-nat-info.c: Sort headers.
11678 * d-valprint.c: Sort headers.
11679 * d-namespace.c: Sort headers.
11680 * d-lang.c: Sort headers.
11681 * ctf.c: Sort headers.
11682 * csky-tdep.c: Sort headers.
11683 * csky-linux-tdep.c: Sort headers.
11684 * cris-tdep.c: Sort headers.
11685 * cris-linux-tdep.c: Sort headers.
11686 * cp-valprint.c: Sort headers.
11687 * cp-support.c: Sort headers.
11688 * cp-namespace.c: Sort headers.
11689 * cp-abi.c: Sort headers.
11690 * corelow.c: Sort headers.
11691 * corefile.c: Sort headers.
11692 * continuations.c: Sort headers.
11693 * completer.h: Sort headers.
11694 * completer.c: Sort headers.
11695 * complaints.c: Sort headers.
11696 * coffread.c: Sort headers.
11697 * coff-pe-read.c: Sort headers.
11698 * cli-out.h: Sort headers.
11699 * cli-out.c: Sort headers.
11700 * charset.c: Sort headers.
11701 * c-varobj.c: Sort headers.
11702 * c-valprint.c: Sort headers.
11703 * c-typeprint.c: Sort headers.
11704 * c-lang.c: Sort headers.
11705 * buildsym.c: Sort headers.
11706 * buildsym-legacy.c: Sort headers.
11707 * build-id.h: Sort headers.
11708 * build-id.c: Sort headers.
11709 * btrace.c: Sort headers.
11710 * bsd-uthread.c: Sort headers.
11711 * breakpoint.h: Sort headers.
11712 * breakpoint.c: Sort headers.
11713 * break-catch-throw.c: Sort headers.
11714 * break-catch-syscall.c: Sort headers.
11715 * break-catch-sig.c: Sort headers.
11716 * blockframe.c: Sort headers.
11717 * block.c: Sort headers.
11718 * bfin-tdep.c: Sort headers.
11719 * bfin-linux-tdep.c: Sort headers.
11720 * bfd-target.c: Sort headers.
11721 * bcache.c: Sort headers.
11722 * ax-general.c: Sort headers.
11723 * ax-gdb.h: Sort headers.
11724 * ax-gdb.c: Sort headers.
11725 * avr-tdep.c: Sort headers.
11726 * auxv.c: Sort headers.
11727 * auto-load.c: Sort headers.
11728 * arm-wince-tdep.c: Sort headers.
11729 * arm-tdep.c: Sort headers.
11730 * arm-symbian-tdep.c: Sort headers.
11731 * arm-pikeos-tdep.c: Sort headers.
11732 * arm-obsd-tdep.c: Sort headers.
11733 * arm-nbsd-tdep.c: Sort headers.
11734 * arm-nbsd-nat.c: Sort headers.
11735 * arm-linux-tdep.c: Sort headers.
11736 * arm-linux-nat.c: Sort headers.
11737 * arm-fbsd-tdep.c: Sort headers.
11738 * arm-fbsd-nat.c: Sort headers.
11739 * arm-bsd-tdep.c: Sort headers.
11740 * arch-utils.c: Sort headers.
11741 * arc-tdep.c: Sort headers.
11742 * arc-newlib-tdep.c: Sort headers.
11743 * annotate.h: Sort headers.
11744 * annotate.c: Sort headers.
11745 * amd64-windows-tdep.c: Sort headers.
11746 * amd64-windows-nat.c: Sort headers.
11747 * amd64-tdep.c: Sort headers.
11748 * amd64-sol2-tdep.c: Sort headers.
11749 * amd64-obsd-tdep.c: Sort headers.
11750 * amd64-obsd-nat.c: Sort headers.
11751 * amd64-nbsd-tdep.c: Sort headers.
11752 * amd64-nbsd-nat.c: Sort headers.
11753 * amd64-nat.c: Sort headers.
11754 * amd64-linux-tdep.c: Sort headers.
11755 * amd64-linux-nat.c: Sort headers.
11756 * amd64-fbsd-tdep.c: Sort headers.
11757 * amd64-fbsd-nat.c: Sort headers.
11758 * amd64-dicos-tdep.c: Sort headers.
11759 * amd64-darwin-tdep.c: Sort headers.
11760 * amd64-bsd-nat.c: Sort headers.
11761 * alpha-tdep.c: Sort headers.
11762 * alpha-obsd-tdep.c: Sort headers.
11763 * alpha-nbsd-tdep.c: Sort headers.
11764 * alpha-mdebug-tdep.c: Sort headers.
11765 * alpha-linux-tdep.c: Sort headers.
11766 * alpha-linux-nat.c: Sort headers.
11767 * alpha-bsd-tdep.c: Sort headers.
11768 * alpha-bsd-nat.c: Sort headers.
11769 * aix-thread.c: Sort headers.
11770 * agent.c: Sort headers.
11771 * addrmap.c: Sort headers.
11772 * ada-varobj.c: Sort headers.
11773 * ada-valprint.c: Sort headers.
11774 * ada-typeprint.c: Sort headers.
11775 * ada-tasks.c: Sort headers.
11776 * ada-lang.c: Sort headers.
11777 * aarch64-tdep.c: Sort headers.
11778 * aarch64-ravenscar-thread.c: Sort headers.
11779 * aarch64-newlib-tdep.c: Sort headers.
11780 * aarch64-linux-tdep.c: Sort headers.
11781 * aarch64-linux-nat.c: Sort headers.
11782 * aarch64-fbsd-tdep.c: Sort headers.
11783 * aarch64-fbsd-nat.c: Sort headers.
11784 * aarch32-linux-nat.c: Sort headers.
11785
699bd4cf
TT
117862019-04-04 Tom Tromey <tom@tromey.com>
11787
11788 * varobj.c (varobj_create): Update.
11789 * rust-exp.y (struct rust_parser) <update_innermost_block,
11790 lookup_symbol>: New methods.
11791 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11792 Rename.
11793 (rust_parser::rust_lookup_type)
11794 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11795 * printcmd.c (display_command, do_one_display): Update.
11796 * parser-defs.h (struct parser_state) <parser_state>: Add
11797 "tracker" parameter.
11798 (block_tracker): New member.
11799 (class innermost_block_tracker) <innermost_block_tracker>: Add
11800 "types" parameter.
11801 <reset>: Remove method.
11802 (innermost_block): Don't declare.
11803 (null_post_parser): Update.
11804 * parse.c (innermost_block): Remove global.
11805 (write_dollar_variable): Update.
11806 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11807 Remove "tracker_types" parameter.
11808 (parse_expression): Add "tracker" parameter.
11809 (parse_expression_for_completion): Update.
11810 (null_post_parser): Add "tracker" parameter.
11811 * p-exp.y: Update rules.
11812 * m2-exp.y: Update rules.
11813 * language.h (struct language_defn) <la_post_parser>: Add
11814 "tracker" parameter.
11815 * go-exp.y: Update rules.
11816 * f-exp.y: Update rules.
11817 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11818 parameter.
11819 * d-exp.y: Update rules.
11820 * c-exp.y: Update rules.
11821 * breakpoint.c (set_breakpoint_condition): Create an
11822 innermost_block_tracker.
11823 (watch_command_1): Likewise.
11824 * ada-lang.c (resolve): Add "tracker" parameter.
11825 (resolve_subexp): Likewise.
11826 * ada-exp.y (write_var_from_sym): Update.
11827
dac43e32
TT
118282019-04-04 Tom Tromey <tom@tromey.com>
11829
11830 * type-stack.h: New file.
11831 * type-stack.c: New file.
11832 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11833 type-stack.h.
11834 (insert_into_type_stack, insert_type, push_type, push_type_int)
11835 (insert_type_address_space, pop_type, pop_type_int)
11836 (pop_typelist, pop_type_stack, append_type_stack)
11837 (push_type_stack, get_type_stack, push_typelist)
11838 (follow_type_instance_flags, follow_types): Don't declare.
11839 * parse.c (type_stack): Remove global.
11840 (parse_exp_in_context): Update.
11841 (insert_into_type_stack, insert_type, push_type, push_type_int)
11842 (insert_type_address_space, pop_type, pop_type_int)
11843 (pop_typelist, pop_type_stack, append_type_stack)
11844 (push_type_stack, get_type_stack, push_typelist)
11845 (follow_type_instance_flags, follow_types): Remove (moved to
11846 type-stack.c).
11847 * f-exp.y (type_stack): New global.
11848 Update rules.
11849 (push_kind_type, f_parse): Update.
11850 * d-exp.y (type_stack): New global.
11851 Update rules.
11852 (d_parse): Update.
11853 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11854 Update rules.
11855 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11856 (HFILES_NO_SRCDIR): Add type-stack.h.
11857
2a612529
TT
118582019-04-04 Tom Tromey <tom@tromey.com>
11859
11860 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11861 (rust_parser::convert_ast_to_expression, rust_parse)
11862 (rust_lex_test_completion, rust_lex_tests): Update.
11863 * parser-defs.h (struct expr_completion_state): New.
11864 (struct parser_state) <parser_state>: Add completion parameter.
11865 <mark_struct_expression, mark_completion_tag>: New methods.
11866 <parse_completion, m_completion_state>: New members.
11867 (prefixify_expression, null_post_parser): Update.
11868 (mark_struct_expression, mark_completion_tag): Don't declare.
11869 * parse.c (parse_completion, expout_last_struct)
11870 (expout_tag_completion_type, expout_completion_name): Remove
11871 globals.
11872 (parser_state::mark_struct_expression)
11873 (parser_state::mark_completion_tag): Now methods.
11874 (prefixify_expression): Add last_struct parameter.
11875 (prefixify_subexp): Likewise.
11876 (parse_exp_1): Update.
11877 (parse_exp_in_context): Add cstate parameter. Update.
11878 (parse_expression_for_completion): Create an
11879 expr_completion_state.
11880 (null_post_parser): Add "completion" parameter.
11881 * p-exp.y: Update rules.
11882 (yylex): Update.
11883 * language.h (struct language_defn) <la_post_parser>: Add
11884 "completing" parameter.
11885 * go-exp.y: Update rules.
11886 (lex_one_token): Update.
11887 * expression.h (parse_completion): Don't declare.
11888 * d-exp.y: Update rules.
11889 (lex_one_token): Update rules.
11890 * c-exp.y: Update rules.
11891 (lex_one_token): Update.
11892 * ada-lang.c (resolve): Add "parse_completion" parameter.
11893 (resolve_subexp): Likewise.
11894 (ada_resolve_function): Likewise.
11895
43476f0b
TT
118962019-04-04 Tom Tromey <tom@tromey.com>
11897
11898 * parser-defs.h (struct parser_state) <start_arglist,
11899 end_arglist>: New methods.
11900 <arglist_len, m_funcall_chain>: New members.
11901 (arglist_len, start_arglist, end_arglist): Don't declare.
11902 * parse.c (arglist_len, funcall_chain): Remove global.
11903 (start_arglist, end_arglist): Remove functions.
11904 (parse_exp_in_context): Update.
11905 * p-exp.y: Update rules.
11906 * m2-exp.y: Update rules.
11907 * go-exp.y: Update rules.
11908 * f-exp.y: Update rules.
11909 * d-exp.y: Update rules.
11910 * c-exp.y: Update rules.
11911
5776fca3
TT
119122019-04-04 Tom Tromey <tom@tromey.com>
11913
11914 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11915 lex_operator, push_back>: New methods.
11916 Update all rules.
11917 (rust_parser::lex_hex, lex_escape): Rename and update.
11918 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11919 (rust_parser::lex_operator): Rename and update.
11920 (rust_parser::lex_number, rustyylex, rustyyerror)
11921 (rust_lex_test_init, rust_lex_test_sequence)
11922 (rust_lex_test_push_back, rust_lex_tests): Update.
11923 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11924 parameter.
11925 <lexptr, prev_lexptr>: New members.
11926 (lexptr, prev_lexptr): Don't declare.
11927 * parse.c (lexptr, prev_lexptr): Remove globals.
11928 (parse_exp_in_context): Update.
11929 * p-exp.y (yylex, yyerror): Update.
11930 * m2-exp.y (parse_number, yylex, yyerror): Update.
11931 * go-exp.y (lex_one_token, yyerror): Update.
11932 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11933 * d-exp.y (lex_one_token, yyerror): Update.
11934 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11935 (lex_one_token, yyerror): Update.
11936 * ada-lex.l (YY_INPUT): Update.
11937 (rewind_to_char): Update.
11938 * ada-exp.y (yyerror): Update.
11939
8621b685
TT
119402019-04-04 Tom Tromey <tom@tromey.com>
11941
11942 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11943 * parser-defs.h (struct parser_state) <parser_state>: Add new
11944 parameter.
11945 <comma_terminates>: New member.
11946 (comma_terminates): Don't declare global.
11947 * parse.c (comma_terminates): Remove global.
11948 (parse_exp_in_context): Update.
11949 * p-exp.y (yylex): Update.
11950 * m2-exp.y (yylex): Update.
11951 * go-exp.y (lex_one_token): Update.
11952 * f-exp.y (yylex): Update.
11953 * d-exp.y (lex_one_token): Update.
11954 * c-exp.y (lex_one_token): Update.
11955 * ada-lex.l: Update.
11956
28aaf3fd
TT
119572019-04-04 Tom Tromey <tom@tromey.com>
11958
11959 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11960 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11961 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11962 * parser-defs.h (paren_depth): Don't declare.
11963 * parse.c (paren_depth): Remove global.
11964 (parse_exp_in_context): Update.
11965 * p-exp.y (paren_depth): New global.
11966 (pascal_parse): Initialize it.
11967 * m2-exp.y (paren_depth): New global.
11968 (m2_parse): Initialize it.
11969 * go-exp.y (paren_depth): New global.
11970 (go_parse): Initialize it.
11971 * f-exp.y (paren_depth): New global.
11972 (f_parse): Initialize it.
11973 * d-exp.y (paren_depth): New global.
11974 (d_parse): Initialize it.
11975 * c-exp.y (paren_depth): New global.
11976 (c_parse): Initialize it.
11977 * ada-lex.l (paren_depth): New global.
11978 (lexer_init): Initialize it.
11979
1e58a4a4
TT
119802019-04-04 Tom Tromey <tom@tromey.com>
11981
11982 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11983 (rust_parser::convert_ast_to_type)
11984 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11985 * parser-defs.h (struct parser_state) <parser_state>: Add
11986 parameters. Initialize new members.
11987 <expression_context_block, expression_context_pc>: New members.
11988 * parse.c (expression_context_block, expression_context_pc):
11989 Remove globals.
11990 (parse_exp_in_context): Update.
11991 * p-exp.y: Update all rules.
11992 (yylex): Update.
11993 * m2-exp.y: Update all rules.
11994 (yylex): Update.
11995 * go-exp.y (yylex): Update.
11996 * f-exp.y (yylex): Update.
11997 * d-exp.y: Update all rules.
11998 (yylex): Update.
11999 * c-exp.y: Update all rules.
12000 (lex_one_token, classify_name, yylex, c_parse): Update.
12001 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12002
37eedb39
TT
120032019-04-04 Tom Tromey <tom@tromey.com>
12004
12005 * gdbarch.h, gdbarch.c: Rebuild.
12006 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12007 * stap-probe.h:
12008 (struct stap_parse_info): Replace "parser_state" with
12009 "expr_builder".
12010 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12011 (parser_state): New class.
12012 * parse.c (expr_builder): Rename.
12013 (expr_builder::release): Rename.
12014 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12015 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12016 (write_exp_elt_longcst, write_exp_elt_floatcst)
12017 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12018 (write_exp_string_vector, write_exp_bitstring)
12019 (write_exp_msymbol, mark_struct_expression)
12020 (write_dollar_variable)
12021 (insert_type_address_space, increase_expout_size): Replace
12022 "parser_state" with "expr_builder".
12023 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12024 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12025 "parser_state" with "expr_builder".
12026
73923d7e
TT
120272019-04-04 Tom Tromey <tom@tromey.com>
12028
12029 * rust-exp.y: Replace "parse_language" with method call.
12030 * p-exp.y:
12031 (yylex): Replace "parse_language" with method call.
12032 * m2-exp.y:
12033 (yylex): Replace "parse_language" with method call.
12034 * go-exp.y (classify_name): Replace "parse_language" with method
12035 call.
12036 * f-exp.y (yylex): Replace "parse_language" with method call.
12037 * d-exp.y (lex_one_token): Replace "parse_language" with method
12038 call.
12039 * c-exp.y:
12040 (lex_one_token, classify_name, yylex): Replace "parse_language"
12041 with method call.
12042 * ada-exp.y (find_primitive_type, type_char)
12043 (type_system_address): Replace "parse_language" with method call.
12044
fa9f5be6
TT
120452019-04-04 Tom Tromey <tom@tromey.com>
12046
12047 * rust-exp.y: Replace "parse_gdbarch" with method call.
12048 * parse.c (write_dollar_variable, insert_type_address_space):
12049 Replace "parse_gdbarch" with method call.
12050 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12051 call.
12052 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12053 call.
12054 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12055 "parse_gdbarch" with method call.
12056 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12057 with method call.
12058 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12059 "parse_gdbarch" with method call.
12060 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12061 "parse_gdbarch" with method call.
12062 * c-exp.y (parse_type, parse_number, classify_name): Replace
12063 "parse_gdbarch" with method call.
12064 * ada-lex.l: Replace "parse_gdbarch" with method call.
12065 * ada-exp.y (parse_type, find_primitive_type, type_char)
12066 (type_system_address): Replace "parse_gdbarch" with method call.
12067
1201a264
TT
120682019-04-04 Tom Tromey <tom@tromey.com>
12069
12070 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12071 * stap-probe.c (stap_parse_argument): Update.
12072 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12073 initial_size parameter.
12074 * rust-exp.y (rust_lex_tests): Update.
12075 * parse.c (parser_state): Update.
12076 (parse_exp_in_context): Update.
12077 * parser-defs.h (struct parser_state) <parser_state>: Remove
12078 "initial_size" parameter.
12079
e3980ce2
TT
120802019-04-04 Tom Tromey <tom@tromey.com>
12081
12082 * parser-defs.h (increase_expout_size): Don't declare.
12083 * parse.c (increase_expout_size): Now static.
12084
e9f8e3f1
TS
120852019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12086
12087 * gnu-nat.c (gnu_nat_target::wait): Fix
12088 target_waitstatus_to_string call.
12089
d7df6549
AB
120902019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12091
12092 * eval.c (evaluate_subexp_standard): Handle internal functions
12093 during Fortran function call handling.
12094
8bdc1658
AB
120952019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12096
12097 * NEWS: Mention new internal functions.
12098 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12099 (read_base_type): Use dwarf2_init_complex_target_type.
12100 * value.c (creal_internal_fn): New function.
12101 (cimag_internal_fn): New function.
12102 (_initialize_values): Register new internal functions.
12103
c29705b7
PW
121042019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12105
12106 * infrun.c (stop_all_threads): If debug_infrun, always
12107 trace the wait status after wait_one, using
12108 target_waitstatus_to_string and target_pid_to_str.
12109 (handle_inferior_event): Replace various trace of
12110 wait status kind by a single trace.
12111 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12112 wait status kind image by target_waitstatus_to_string.
12113 * target/waitstatus.c (target_waitstatus_to_string): Fix
12114 obsolete comment.
12115
05caa1d2
TT
121162019-04-01 Tom Tromey <tromey@adacore.com>
12117
12118 PR symtab/23331:
12119 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12120
9d1447e0
SDJ
121212019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12122 Pedro Alves <palves@redhat.com>
12123
12124 * top.c (quit_force): Call 'finalize_values'.
12125 * value.c (finalize_values): New function.
12126 * value.h (finalize_values): Declare.
12127
7734102d
EZ
121282019-03-30 Eli Zaretskii <eliz@gnu.org>
12129
12130 * NEWS: Announce $_gdb_major and $_gdb_minor.
12131
12132 * top.c (init_gdb_version_vars): New function.
12133 (gdb_init): Call init_gdb_version_vars.
12134
188e1fa9
TT
121352019-03-29 Tom Tromey <tromey@adacore.com>
12136
12137 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12138 help text. Remove dead code.
12139
2880242d
KS
121402019-03-29 Keith Seitz <keiths@redhat.com>
12141
12142 From Siddhesh Poyarekar:
12143 * f-lang.h (f77_get_upperbound): Return LONGEST.
12144 (f77_get_lowerbound): Likewise.
12145 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12146 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12147 print them.
12148 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12149 plongest to format print it.
12150 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12151 (f77_get_upperbound): Likewise.
12152 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12153 LOWER_BOUND to LONGEST.
12154 (f77_create_arrayprint_offset_tbl): Likewise.
12155
cc1defb1
KS
121562019-03-29 Keith Seitz <keiths@redhat.com>
12157
12158 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12159 %s/pulongest for TYPE_LENGTH instead of %d in format
12160 strings.
12161 * ada-typerint.c (ada_print_type): Likewise.
12162 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12163 * compile/compile-c-support.c (generate_register_struct): Likewise.
12164 * gdbtypes.c (recursive_dump_type): Likewise.
12165 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12166 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12167 instead of %d in format strings.
12168 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12169 to std::min to ULONGEST.
12170 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12171 instead of %d in format strings.
12172 * tracepoint.c (info_scope_command): Likewise.
12173 * typeprint.c (print_offset_data::update)
12174 (print_offset_data::finish): Likewise.
12175 * xtensa-tdep.c (xtensa_store_return_value)
12176 (xtensa_push_dummy_call): Likewise.
12177
e432ccf1
JT
121782019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12179
12180 * windows-nat.c (display_selector): Fixed format specifications
12181 for 64-bit Cygwin.
12182
65d2b333
PW
121832019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12184
12185 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12186
f489207e
SL
121872019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12188
12189 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12190 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12191 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12192 (nios2_linux_init_abi): Install it.
12193
bffa1015
AH
121942019-03-28 Alan Hayward <alan.hayward@arm.com>
12195
12196 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12197
fc96163a
AH
121982019-03-28 Alan Hayward <alan.hayward@arm.com>
12199
12200 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12201
20dc7e9b
PW
122022019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12203 Tom Tromey <tromey@adacore.com>
12204
12205 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12206
7f5331a8
JB
122072019-03-26 Joel Brobecker <brobecker@adacore.com>
12208
12209 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12210 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12211 method to compute the bounds of range types. Also print "[evaluated]"
12212 if the bounds' values come from a dynamic evaluation.
12213
18c77628
AB
122142019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12215
12216 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12217 whitespace when pretty printing is on.
12218
53c973f2
AH
122192019-03-26 Alan Hayward <alan.hayward@arm.com>
12220
e79be6e5 12221 * ppc-linux-nat.c: Add include.
53c973f2 12222
d851aa71
AH
122232019-03-26 Alan Hayward <alan.hayward@arm.com>
12224
e79be6e5 12225 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12226
2fe7bab7
AH
122272019-03-26 Alan Hayward <alan.hayward@arm.com>
12228
e79be6e5 12229 * arm-linux-nat.c: Add include.
2fe7bab7 12230
068ef30e
SM
122312019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12232
12233 * source-cache.c (source_cache::get_source_lines): Re-read
12234 fullname after calling open_source_file.
12235
81a24d04
JB
122362019-03-25 John Baldwin <jhb@FreeBSD.org>
12237
12238 * NEWS: Mention TLS support for FreeBSD.
12239
79e7ae11
TT
122402019-03-25 Tom Tromey <tromey@adacore.com>
12241
12242 * minsyms.c (BUNCH_SIZE): Update comment.
12243 (~minimal_symbol_reader): Remove old comment.
12244 (compact_minimal_symbols): Update comment.
12245 (minimal_symbol_reader::install): Remove old comment. Update
12246 other comments.
12247
d45963c2
AH
122482019-03-25 Alan Hayward <alan.hayward@arm.com>
12249
12250 * s390-linux-nat.c: Add include.
12251
0f83012e
AH
122522019-03-25 Alan Hayward <alan.hayward@arm.com>
12253
12254 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12255 Call linux_get_hwcap.
12256 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12257 Likewise.
12258 (aarch64_linux_get_hwcap): Remove function.
12259 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12260 declaration.
12261 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12262 linux_get_hwcap.
12263 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12264 * linux-tdep.c (linux_get_hwcap): Add function.
12265 (linux_get_hwcap2): Likewise.
12266 * linux-tdep.h (linux_get_hwcap): Add declaration.
12267 (linux_get_hwcap2): Likewise.
12268 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12269 (ppc_linux_get_hwcap2): Likewise.
12270 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12271 linux_get_hwcap.
12272 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12273 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12274 (ppc_linux_nat_target::read_description): Likewise.
12275 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12276 * s390-linux-nat.c: Likewise.
12277 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12278
6640a367
TT
122792019-03-24 Tom Tromey <tom@tromey.com>
12280
12281 * ada-lang.c (standard_lookup): Simplify initialization.
12282 (ada_lookup_symbol_nonlocal): Simplify return.
12283 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12284 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12285 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12286 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12287 initialization.
12288 * solib.c (solib_global_lookup): Simplify.
12289 * symtab.c (null_block_symbol): Remove.
12290 (symbol_cache_lookup): Simplify returns.
12291 (lookup_language_this): Simplify returns.
12292 (lookup_symbol_aux): Simplify return.
12293 (lookup_local_symbol): Simplify returns.
12294 (lookup_global_symbol_from_objfile): Simplify return.
12295 (lookup_symbol_in_objfile_symtabs)
12296 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12297 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12298 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12299 * cp-namespace.c (cp_lookup_bare_symbol)
12300 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12301 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12302 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12303 (cp_lookup_symbol_via_imports): Simplify initialization.
12304 (find_symbol_in_baseclass): Likewise.
12305 * symtab.h (null_block_symbol): Remove.
12306 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12307 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12308 (d_lookup_symbol_module): Likewise.
12309 (find_symbol_in_baseclass): Simplify initialization.
12310
a930ebcd
TT
123112019-03-24 Tom Tromey <tom@tromey.com>
12312
12313 * expression.h: Don't include symtab.h.
12314 (struct block): Forward declare.
12315
582942f4
TT
123162019-03-24 Tom Tromey <tom@tromey.com>
12317
12318 * c-exp.y (typebase): Remove casts.
12319 * gdbtypes.c (lookup_unsigned_typename, )
12320 (lookup_signed_typename): Remove cast.
12321 * eval.c (parse_to_comma_and_eval): Remove cast.
12322 * parse.c (write_dollar_variable): Remove cast.
12323 * block.h (struct block) <superblock>: Now const.
12324 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12325 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12326 (map_block): Make "block" const.
12327 * symfile.h (struct quick_symbol_functions)
12328 <map_matching_symbols>: Constify block argument to "callback".
12329 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12330 const.
12331 (find_pc_sect_compunit_symtab): Make "b" const.
12332 (find_symbol_at_address): Likewise.
12333 (search_symbols): Likewise.
12334 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12335 (dw2_debug_names_lookup_symbol): Likewise.
12336 (dw2_map_matching_symbols): Update.
12337 * p-valprint.c (pascal_val_print): Remove "block".
12338 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12339 (aux_add_nonlocal_symbols): Make "block" const.
12340 (resolve_subexp): Remove cast.
12341 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12342 const.
12343 (iterate_over_file_blocks): Likewise.
12344 * f-exp.y (%union) <bval>: Remove.
12345 * coffread.c (patch_opaque_types): Make "b" const.
12346 * spu-tdep.c (spu_catch_start): Make "block" const.
12347 * c-valprint.c (print_unpacked_pointer): Remove "block".
12348 * symmisc.c (dump_symtab_1): Make "b" const.
12349 (block_depth): Make "block" const.
12350 * d-exp.y (%union) <bval>: Remove.
12351 * cp-support.h (cp_lookup_rtti_type): Update.
12352 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12353 * psymtab.c (psym_lookup_symbol): Make "block" const.
12354 (maintenance_check_psymtabs): Make "b" const.
12355 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12356 (enumerate_locals, enumerate_args): Update.
12357 * python/py-symtab.c (stpy_global_block): Make "block" const.
12358 (stpy_static_block): Likewise.
12359 * inline-frame.c (block_starting_point_at): Make "new_block"
12360 const.
12361 * block.c (find_block_in_blockvector): Make return type const.
12362 (blockvector_for_pc_sect): Make "b" const.
12363 (find_block_in_blockvector): Make "b" const.
12364
7ad417dd
TT
123652019-03-23 Tom Tromey <tom@tromey.com>
12366
12367 * varobj.c (varobj_create): Update.
12368 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12369 * printcmd.c (display_command, do_one_display): Don't reset
12370 innermost_block.
12371 * parser-defs.h (enum innermost_block_tracker_type): Move to
12372 expression.h.
12373 (innermost_block): Update comment.
12374 * parse.c (parse_exp_1): Add tracker_types parameter.
12375 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12376 tracker_types parameter. Reset innermost_block.
12377 (parse_exp_in_context): Remove.
12378 (parse_expression_for_completion): Update.
12379 * objfiles.c (~objfile): Don't reset expression_context_block or
12380 innermost_block.
12381 * expression.h (enum innermost_block_tracker_type): Move from
12382 parser-defs.h.
12383 (parse_exp_1): Add tracker_types parameter.
12384 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12385 reset innermost_block.
12386
b366c208
TT
123872019-03-23 Tom Tromey <tom@tromey.com>
12388
12389 * objfiles.h: Include bcache.h.
12390
9bb9b2f9
TT
123912019-03-23 Tom Tromey <tom@tromey.com>
12392
12393 * linespec.c (get_current_search_block): Use
12394 scoped_restore_current_language.
12395 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12396
59c28372
AH
123972019-03-22 Alan Hayward <alan.hayward@arm.com>
12398 Jiong Wang <jiong.wang@arm.com>
12399
12400 * aarch64-linux-tdep.c
12401 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12402 section.
12403 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12404
17e116a7
AH
124052019-03-22 Alan Hayward <alan.hayward@arm.com>
12406 Jiong Wang <jiong.wang@arm.com>
12407
12408 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12409 instructions.
12410 (aarch64_analyze_prologue_test): Add PACIASP test.
12411 (aarch64_prologue_prev_register): Unmask PC value.
12412
11e1b75f
AH
124132019-03-22 Alan Hayward <alan.hayward@arm.com>
12414 Jiong Wang <jiong.wang@arm.com>
12415
12416 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12417 (aarch64_dwarf2_prev_register): Unmask PC value.
12418 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12419 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12420 DW_CFA_AARCH64_negate_ra_state.
12421 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12422
34dcc7cf
AH
124232019-03-22 Alan Hayward <alan.hayward@arm.com>
12424 Jiong Wang <jiong.wang@arm.com>
12425
12426 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12427 registers.
12428 (aarch64_pseudo_register_name): Likewise.
12429 (aarch64_pseudo_register_type): Likewise.
12430 (aarch64_pseudo_register_reggroup_p): Likewise.
12431 (aarch64_gdbarch_init): Add pauth registers.
12432 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12433 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12434 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12435 (struct gdbarch_tdep): Add regnum for ra_state.
12436
1ef53e6b
AH
124372019-03-22 Alan Hayward <alan.hayward@arm.com>
12438 Jiong Wang <jiong.wang@arm.com>
12439
12440 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12441
76bed0fd
AH
124422019-03-22 Alan Hayward <alan.hayward@arm.com>
12443 Jiong Wang <jiong.wang@arm.com>
12444
12445 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12446 function.
12447 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12448 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12449 (aarch64_gdbarch_init): Add puth registers.
12450 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12451 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12452 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12453
ee4fbcfa
AH
124542019-03-22 Alan Hayward <alan.hayward@arm.com>
12455 Jiong Wang <jiong.wang@arm.com>
12456
12457 * aarch64-linux-nat.c
12458 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12459 * aarch64-linux-tdep.c
12460 (aarch64_linux_core_read_description): Likewise.
12461 (aarch64_linux_get_hwcap): New function.
12462 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12463 (aarch64_linux_get_hwcap): New declaration.
12464
6dc0ebde
AH
124652019-03-22 Alan Hayward <alan.hayward@arm.com>
12466 Jiong Wang <jiong.wang@arm.com>
12467
12468 * aarch64-linux-nat.c
12469 (aarch64_linux_nat_target::read_description): Add pauth param.
12470 * aarch64-linux-tdep.c
12471 (aarch64_linux_core_read_description): Likewise.
12472 * aarch64-tdep.c (struct target_desc): Add in pauth.
12473 (aarch64_read_description): Add pauth param.
12474 (aarch64_gdbarch_init): Likewise.
12475 * aarch64-tdep.h (aarch64_read_description): Likewise.
12476 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12477 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12478 * features/Makefile: Add new files.
12479 * features/aarch64-pauth.c: New file.
12480 * features/aarch64-pauth.xml: New file.
12481
595915c1
TT
124822019-03-20 Tom Tromey <tromey@adacore.com>
12483
12484 * infrun.c (handle_inferior_event): Rename from
12485 handle_inferior_event_1. Create a scoped_value_mark.
12486 (handle_inferior_event): Remove.
12487
4c7d57e7
TT
124882019-03-19 Tom Tromey <tromey@adacore.com>
12489
12490 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12491 * infrun.h (print_stop_event): Add "displays" parameter.
12492 * infrun.c (print_stop_event): Add "displays" parameter.
12493
cb246234
PA
124942019-03-19 Pedro Alves <palves@redhat.com>
12495
12496 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12497 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12498 to -1. Fix TABs vs spaces.
12499 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12500 * tui/tui-out.h (tui_ui_out) Add intro comments.
12501 <m_line, m_start_of_line>: In-class initialize, and add describing
12502 comment.
12503
3a0e45b2
AH
125042019-03-18 Alan Hayward <alan.hayward@arm.com>
12505
12506 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12507 variable names.
12508 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12509
5371b850
PA
125102019-03-18 Pedro Alves <palves@redhat.com>
12511 Eli Zaretskii <eliz@gnu.org>
12512
12513 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12514 m_line and m_start_of_line.
12515
b17c4cd0
EZ
125162019-03-18 Eli Zaretskii <eliz@gnu.org>
12517
12518 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12519 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12520 it returns a newline. This fixes a regression in TU mode, whereby
12521 the next line is output on the same screen line as the user input.
12522
4bd56d18
TT
125232019-03-18 Tom Tromey <tromey@adacore.com>
12524
12525 * minsyms.c (minimal_symbol_reader::install): Remove call to
12526 obstack_blank.
12527
55c10aca
PA
125282019-03-18 Pedro Alves <palves@redhat.com>
12529
12530 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12531 New globals.
12532 (apply_style): New, factored out from ...
12533 (apply_ansi_escape): ... this. Handle reverse video mode.
12534 (tui_set_reverse_mode): New function.
12535 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12536 * tui/tui-winsource.c (tui_show_source_line): Use
12537 tui_set_reverse_mode instead of setting A_STANDOUT.
12538 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12539 New setter methods.
12540
647bb750
HD
125412019-03-18 Hannes Domani <ssbssa@yahoo.de>
12542
12543 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12544 Handle tabs.
12545
bff8c71f
TT
125462019-03-18 Tom Tromey <tromey@adacore.com>
12547
12548 * ada-lang.c (empty_array): Add "high" parameter.
12549 (ada_evaluate_subexp): Update.
12550
58785d98
ST
125512019-03-17 Sergei Trofimovich <siarheit@google.com>
12552
12553 * unittests/string_view-selftests.c: Define
12554 _initialize_string_view_selftests unconditionally.
12555
d4cbef22
ВМ
125562019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12557
12558 PR gdb/24350
12559 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12560
fce4c071
ВМ
125612019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12562
12563 PR gdb/24351
12564 * windows-nat.c (display_selector): Fix format specifiers.
12565
f7f0a123
EZ
125662019-03-17 Eli Zaretskii <eliz@gnu.org>
12567
12568 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12569 tui_refill_source_window instead of tui_refresh_win, to update the
12570 current execution line. This fixes redisplay of the current line
12571 when stepping through the code with "next" or "step".
12572
ab42892f
EZ
125732019-03-16 Eli Zaretskii <eliz@gnu.org>
12574
12575 * source-cache.c (source_cache::get_source_lines): Call
12576 find_source_lines to initialize s->nlines. This fixes vertical
12577 scrolling of TUI source window when the DOWN arrow is pressed.
12578
8d8c087f
PW
125792019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12580
12581 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12582 linux-thread-db.c (_initialize_thread_db): Likewise.
12583
798e1c30
EZ
125842019-03-16 Eli Zaretskii <eliz@gnu.org>
12585
12586 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12587 wclrtoeol in tui_show_source_line". This reverts changes made in
12588 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12589
eefba3da
TT
125902019-03-15 Tom Tromey <tom@tromey.com>
12591
12592 * symtab.h (struct minimal_symbol): Derive from
12593 general_symbol_info.
12594 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12595 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12596 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12597 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12598 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12599 (MSYMBOL_SEARCH_NAME): Update.
12600 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12601 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12602 * minsyms.c (minimal_symbol_reader::record_full): Update.
12603
0de2420c
TT
126042019-03-15 Tom Tromey <tom@tromey.com>
12605
12606 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12607
042d75e4
TT
126082019-03-15 Tom Tromey <tom@tromey.com>
12609
12610 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12611 unique_xmalloc_ptr.
12612 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12613 Update.
12614 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12615 (build_minimal_symbol_hash_tables)
12616 (minimal_symbol_reader::install): Update.
12617
db92718b
TT
126182019-03-15 Tom Tromey <tom@tromey.com>
12619
12620 * symtab.c (create_demangled_names_hash): Update.
12621 (symbol_set_names): Update.
12622 * objfiles.h (struct objfile_per_bfd_storage)
12623 <demangled_names_hash>: Now an htab_up.
12624 * objfiles.c (objfile_per_bfd_storage): Simplify.
12625
d6797f46
TT
126262019-03-15 Tom Tromey <tom@tromey.com>
12627
12628 * objfiles.h (struct objfile_per_bfd_storage): Declare
12629 destructor.
12630 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12631 New.
12632 (get_objfile_bfd_data): Use new. Don't initialize
12633 language_of_main.
12634 (free_objfile_per_bfd_storage): Remove.
12635 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12636
741d7538
TT
126372019-03-15 Tom Tromey <tom@tromey.com>
12638
12639 * symfile.c (reread_symbols): Update.
12640 * objfiles.c (objfile::objfile): Update.
12641 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12642 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12643 comment.
12644 (minimal_symbol_reader::install): Update.
12645 (terminate_minimal_symbol_table): Remove.
12646 * jit.c (jit_object_close_impl): Update.
12647
788c80d1
TT
126482019-03-15 Tom Tromey <tom@tromey.com>
12649
12650 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12651 initializations.
12652
1b7a07cb
TT
126532019-03-15 Tom Tromey <tom@tromey.com>
12654
12655 * objfiles.h (struct objfile_per_bfd_storage)
12656 <demangled_hash_languages>: Now a bitset.
12657 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12658 (lookup_minimal_symbol): Update.
12659
3db066bc
TT
126602019-03-15 Tom Tromey <tom@tromey.com>
12661
12662 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12663 Don't return the symbol.
12664 * coffread.c (record_minimal_symbol): Use record_full.
12665
3fff2c37
EZ
126662019-03-14 Eli Zaretskii <eliz@gnu.org>
12667
12668 The MS-Windows port of ncurses fails to switch to a color pair if
12669 one or both of the colors are the implicit default colors. This
12670 change records the default colors when TUI is initialized, and
12671 then specifies them explicitly when a color pair uses the default
12672 colors. This allows color styling in TUI mode on MS-Windows.
12673
12674 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12675 ncurses_norm_attr.
12676 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12677 colors in ncurses_norm_attr.
12678 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12679 "none", replace it with the default color recorded in
12680 ncurses_norm_attr.
12681
3b336828
TT
126822019-03-14 Tom Tromey <tromey@adacore.com>
12683
12684 * source-cache.h (class source_cache) <get_source_lines>: Return
12685 std::string.
12686 * source-cache.c (source_cache::extract_lines): Handle case where
12687 first_pos==npos. Return std::string.
12688 (source_cache::get_source_lines): Update.
12689
d085f989
TT
126902019-03-14 Tom Tromey <tromey@adacore.com>
12691
12692 * NEWS: Add item for "style sources" commands.
12693 * source-cache.c (source_cache::get_source_lines): Check
12694 source_styling.
12695 * cli/cli-style.c (source_styling): New global.
12696 (_initialize_cli_style): Add "style sources" commands.
12697 (show_style_sources): New function.
12698 * cli/cli-style.h (source_styling): Declare.
12699
6f11e682
TT
127002019-03-14 Pedro Alves <palves@redhat.com>
12701 Tom Tromey <tromey@adacore.com>
12702
12703 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12704 * tui/tui-winsource.c (tui_refill_source_window): New function,
12705 from...
12706 (tui_horizontal_source_scroll): ... here. Move some logic.
12707 * cli/cli-style.c (set_style_enabled): Notify new observable.
12708 * tui/tui-hooks.c (tui_redisplay_source): New function.
12709 (tui_attach_detach_observers): Attach or detach
12710 tui_redisplay_source.
12711 * observable.h (source_styling_changed): New observable.
12712 * observable.c: Define source_styling_changed observable.
12713
a068643d
TT
127142019-03-13 Tom Tromey <tromey@adacore.com>
12715
12716 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12717 (i386_gnu_nat_target::store_registers): Update.
12718 * target-debug.h (target_debug_print_std_string): New macro.
12719 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12720 * windows-tdep.c (display_one_tib): Update.
12721 * tui/tui-stack.c (tui_make_status_line): Update.
12722 * top.c (print_inferior_quit_action): Update.
12723 * thread.c (thr_try_catch_cmd): Update.
12724 (add_thread_with_info): Update.
12725 (thread_target_id_str): Update.
12726 (thr_try_catch_cmd): Update.
12727 (thread_command): Update.
12728 (thread_find_command): Update.
12729 * record-btrace.c (record_btrace_target::info_record)
12730 (record_btrace_resume_thread, record_btrace_target::resume)
12731 (record_btrace_cancel_resume, record_btrace_step_thread)
12732 (record_btrace_target::wait, record_btrace_target::wait)
12733 (record_btrace_target::wait, record_btrace_target::stop): Update.
12734 * progspace.c (print_program_space): Update.
12735 * process-stratum-target.c
12736 (process_stratum_target::thread_address_space): Update.
12737 * linux-fork.c (linux_fork_mourn_inferior)
12738 (detach_checkpoint_command, info_checkpoints_command)
12739 (linux_fork_context): Update.
12740 (linux_fork_detach): Update.
12741 (class scoped_switch_fork_info): Update.
12742 (delete_checkpoint_command): Update.
12743 * infrun.c (follow_fork_inferior): Update.
12744 (follow_fork_inferior): Update.
12745 (proceed_after_vfork_done): Update.
12746 (handle_vfork_child_exec_or_exit): Update.
12747 (follow_exec): Update.
12748 (displaced_step_prepare_throw): Update.
12749 (displaced_step_restore): Update.
12750 (start_step_over): Update.
12751 (resume_1): Update.
12752 (clear_proceed_status_thread): Update.
12753 (proceed): Update.
12754 (print_target_wait_results): Update.
12755 (do_target_wait): Update.
12756 (context_switch): Update.
12757 (stop_all_threads): Update.
12758 (restart_threads): Update.
12759 (finish_step_over): Update.
12760 (handle_signal_stop): Update.
12761 (switch_back_to_stepped_thread): Update.
12762 (keep_going_pass_signal): Update.
12763 (print_exited_reason): Update.
12764 (normal_stop): Update.
12765 * inferior.c (inferior_pid_to_str): Change return type.
12766 (print_selected_inferior): Update.
12767 (add_inferior): Update.
12768 (detach_inferior): Update.
12769 * dummy-frame.c (fprint_dummy_frames): Update.
12770 * dcache.c (dcache_info_1): Update.
12771 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12772 (btrace_fetch, btrace_clear): Update.
12773 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12774 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12775 type.
12776 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12777 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12778 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12779 * gdbarch.c, gdbarch.h: Rebuild.
12780 * gdbarch.sh (core_pid_to_str): Change return type.
12781 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12782 return type.
12783 (windows_nat_target::pid_to_str): Change return type.
12784 (windows_delete_thread): Update.
12785 (windows_nat_target::attach): Update.
12786 (windows_nat_target::files_info): Update.
12787 * target-delegates.c: Rebuild.
12788 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12789 return type.
12790 (sol_thread_target::pid_to_str): Change return type.
12791 * remote.c (class remote_target) <pid_to_str>: Change return
12792 type.
12793 (remote_target::pid_to_str): Change return type.
12794 (extended_remote_target::attach, remote_target::remote_stop_ns)
12795 (remote_target::remote_notif_remove_queued_reply)
12796 (remote_target::push_stop_reply, remote_target::disable_btrace):
12797 Update.
12798 (extended_remote_target::attach): Update.
12799 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12800 type.
12801 (gdbsim_target::pid_to_str): Change return type.
12802 * ravenscar-thread.c (struct ravenscar_thread_target)
12803 <pid_to_str>: Change return type.
12804 (ravenscar_thread_target::pid_to_str): Change return type.
12805 * procfs.c (class procfs_target) <pid_to_str>: Change return
12806 type.
12807 (procfs_target::pid_to_str): Change return type.
12808 (procfs_target::attach): Update.
12809 (procfs_target::detach): Update.
12810 (procfs_target::fetch_registers): Update.
12811 (procfs_target::store_registers): Update.
12812 (procfs_target::wait): Update.
12813 (procfs_target::files_info): Update.
12814 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12815 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12816 return type.
12817 (nto_procfs_target::pid_to_str): Change return type.
12818 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12819 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12820 return type.
12821 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12822 (exit_lwp): Update.
12823 (attach_proc_task_lwp_callback, get_detach_signal)
12824 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12825 (linux_nat_target::resume, wait_lwp, stop_callback)
12826 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12827 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12828 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12829 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12830 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12831 type.
12832 (inf_ptrace_target::attach): Update.
12833 (inf_ptrace_target::files_info): Update.
12834 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12835 type.
12836 (go32_nat_target::pid_to_str): Change return type.
12837 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12838 (gnu_nat_target::wait): Update.
12839 (gnu_nat_target::wait): Update.
12840 (gnu_nat_target::resume): Update.
12841 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12842 (fbsd_nat_target::wait): Update.
12843 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12844 type.
12845 (darwin_nat_target::attach): Update.
12846 * corelow.c (class core_target) <pid_to_str>: Change return type.
12847 (core_target::pid_to_str): Change return type.
12848 * target.c (normal_pid_to_str): Change return type.
12849 (default_pid_to_str): Likewise.
12850 (target_pid_to_str): Change return type.
12851 (target_translate_tls_address): Update.
12852 (target_announce_detach): Update.
12853 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12854 return type.
12855 (bsd_uthread_target::pid_to_str): Change return type.
12856 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12857 type.
12858 (bsd_kvm_target::pid_to_str): Change return type.
12859 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12860 return type.
12861 (aix_thread_target::pid_to_str): Change return type.
12862 * target.h (struct target_ops) <pid_to_str>: Change return type.
12863 (target_pid_to_str, normal_pid_to_str): Likewise.
12864 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12865 type.
12866 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12867 type.
12868 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12869 return type.
12870 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12871 type.
12872 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12873 type.
12874 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12875 return type.
12876
b4be1b06
SM
128772019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12878
12879 * NEWS: Mention that the new default MI version is 3. Mention
12880 changes to the output of commands and events that deal with
12881 multi-location breakpoints.
12882 * breakpoint.c: Include "mi/mi-out.h".
12883 (print_one_breakpoint): Change output syntax if using MI version
12884 >= 3.
12885 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12886 New.
12887 (mi_multi_location_breakpoint_output_fixed): New.
12888 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12889 (mi_cmd_fix_multi_location_breakpoint_output): New.
12890 (mi_multi_location_breakpoint_output_fixed): New.
12891 * mi/mi-cmds.c (mi_cmds): Register command
12892 -fix-multi-location-breakpoint-output.
12893 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12894 interpreter "mi".
12895
8e5e5494
SM
128962019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12897
12898 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12899 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12900 instantiate mi_ui_out based on interpreter name.
12901 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12902 * mi/mi-main.c (mi_load_progress): Likewise.
12903
197df35e
JB
129042019-03-12 John Baldwin <jhb@FreeBSD.org>
12905
12906 * NEWS: Combine separate "New targets" sections for 8.3.
12907
8399425f
JB
129082019-03-12 John Baldwin <jhb@FreeBSD.org>
12909
12910 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12911 (ppcfbsd_init_abi): Install gdbarch
12912 "fetch_tls_load_module_address" and "get_thread_local_address"
12913 methods.
12914
b0f87ed0
JB
129152019-03-12 John Baldwin <jhb@FreeBSD.org>
12916
12917 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12918 (riscv_fbsd_init_abi): Install gdbarch
12919 "fetch_tls_load_module_address" and "get_thread_local_address"
12920 methods.
12921
ce25aa57
JB
129222019-03-12 John Baldwin <jhb@FreeBSD.org>
12923
12924 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12925 (i386fbsd_init_abi): Install gdbarch
12926 "fetch_tls_load_module_address" and "get_thread_local_address"
12927 methods.
12928
f5424cfa
JB
129292019-03-12 John Baldwin <jhb@FreeBSD.org>
12930
12931 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12932 (amd64fbsd_init_abi): Install gdbarch
12933 "fetch_tls_load_module_address" and "get_thread_local_address"
12934 methods.
12935
945f3901
JB
129362019-03-12 John Baldwin <jhb@FreeBSD.org>
12937
12938 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12939 (struct fbsd_pspace_data): New type.
12940 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12941 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12942 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12943 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12944 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12945
ef0bd204
JB
129462019-03-12 John Baldwin <jhb@FreeBSD.org>
12947
12948 * gdbtypes.c (lookup_struct_elt): New function.
12949 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12950 * gdbtypes.h (struct struct_elt): New type.
12951 (lookup_struct_elt): New prototype.
12952
36c53a02
JB
129532019-03-12 John Baldwin <jhb@FreeBSD.org>
12954
12955 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12956 remove disabled code block.
12957
6e056c81
JB
129582019-03-12 John Baldwin <jhb@FreeBSD.org>
12959
12960 * gdbarch.sh (get_thread_local_address): New method.
12961 * gdbarch.h, gdbarch.c: Regenerate.
12962 * target.c (target_translate_tls_address): Use
12963 gdbarch_get_thread_local_address if present instead of
12964 target::get_thread_local_address.
12965
cd250a18
JB
129662019-03-12 John Baldwin <jhb@FreeBSD.org>
12967
12968 * target.h (target::get_thread_local_address): Update comment.
12969
df22c1e5
JB
129702019-03-12 John Baldwin <jhb@FreeBSD.org>
12971
12972 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12973 objfile->separate_debug_objfile_backlink if not NULL.
12974
dd6876c9
JB
129752019-03-12 John Baldwin <jhb@FreeBSD.org>
12976
12977 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12978 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12979 (amd64bsd_store_inferior_registers): Likewise.
12980 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12981 Enable segment base registers.
12982 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12983 PT_GETFSBASE and PT_GETGSBASE.
12984 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12985 PT_SETGSBASE.
12986 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12987 segment base registers.
12988 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12989
1163a4b7
JB
129902019-03-12 John Baldwin <jhb@FreeBSD.org>
12991
12992 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12993 Update calls to i386_target_description to add 'segments'
12994 parameter.
12995 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12996 add segment base registers.
12997 * arch/i386.c (i386_create_target_description): Add 'segments'
12998 parameter to enable segment base registers.
12999 * arch/i386.h (i386_create_target_description): Likewise.
13000 * features/i386/32bit-segments.xml: New file.
13001 * features/i386/32bit-segments.c: Generate.
13002 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13003 call to i386_target_description to add 'segments' parameter.
13004 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13005 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13006 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13007 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13008 if feature is present.
13009 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13010 Add 'segments' parameter to call to i386_target_description.
13011 (i386_target_description): Add 'segments' parameter to enable
13012 segment base registers.
13013 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13014 to call to i386_target_description.
13015 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13016 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13017 Define I386_NUM_REGS.
13018 (i386_target_description): Add 'segments' parameter to enable
13019 segment base registers.
13020
3a350822
EZ
130212019-03-12 Eli Zaretskii <eliz@gnu.org>
13022
13023 PR/24325
13024 * source-cache.c: #undef open and close, to avoid unresolved
13025 externals during linking.
13026
ffdd69cf
TT
130272019-03-12 Tom Tromey <tromey@adacore.com>
13028
13029 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13030 const. Add initializers.
13031 (_initialize_remote): Don't initialize ptid globals.
13032
ec148c57
PA
130332019-03-12 Pedro Alves <palves@redhat.com>
13034
13035 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13036
32764270
PA
130372019-03-12 Pedro Alves <palves@redhat.com>
13038
13039 * cp-name-parser.y (main): Remove unused 'len' variable.
13040
17547186
TT
130412019-03-12 Tom Tromey <tromey@adacore.com>
13042
13043 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13044 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13045
d3a70e03
TT
130462019-03-12 Tom Tromey <tromey@adacore.com>
13047
13048 * linux-nat.c (iterate_over_lwps): Update.
13049 (stop_callback): Remove parameter.
13050 (stop_wait_callback, detach_callback, resume_set_callback)
13051 (select_singlestep_lwp_callback, set_ignore_sigint)
13052 (status_callback, resumed_callback, resume_clear_callback)
13053 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13054 data parameter.
13055 (linux_nat_target::detach, linux_nat_target::resume)
13056 (linux_stop_and_wait_all_lwps, select_event_lwp)
13057 (linux_nat_filter_event, linux_nat_wait_1)
13058 (linux_nat_target::kill, linux_nat_target::stop)
13059 (linux_nat_target::stop): Update.
13060 (linux_nat_resume_callback): Change type.
13061 (resume_stopped_resumed_lwps, count_events_callback)
13062 (select_event_lwp_callback): Likewise.
13063 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13064 * arm-linux-nat.c (struct update_registers_data): Remove.
13065 (update_registers_callback): Change type.
13066 (arm_linux_insert_hw_breakpoint1): Update.
13067 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13068 parameter.
13069 (x86_linux_dr_set_addr): Update.
13070 (x86_linux_dr_set_control): Update.
13071 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13072 (iterate_over_lwps): Use gdb::function_view.
13073 * nat/aarch64-linux-hw-point.c (struct
13074 aarch64_dr_update_callback_param): Remove.
13075 (debug_reg_change_callback): Change type.
13076 (aarch64_notify_debug_reg_change): Update.
13077 * s390-linux-nat.c (s390_refresh_per_info): Update.
13078
82cb27ff
TT
130792019-03-11 Tom Tromey <tromey@adacore.com>
13080
13081 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13082 redundant assignment to "this_cu".
13083
568c0683
SM
130842019-03-08 Simon Marchi <simon.marchi@efficios.com>
13085
13086 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13087
f09ce22d
SM
130882019-03-08 Simon Marchi <simon.marchi@efficios.com>
13089
13090 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13091 from...
13092 (rank_one_type): ... this.
13093
595f96a9
SM
130942019-03-08 Simon Marchi <simon.marchi@efficios.com>
13095
13096 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13097 from...
13098 (rank_one_type): ... this.
13099
2598a94b
SM
131002019-03-08 Simon Marchi <simon.marchi@efficios.com>
13101
13102 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13103 from...
13104 (rank_one_type): ... this.
13105
7f17b20d
SM
131062019-03-08 Simon Marchi <simon.marchi@efficios.com>
13107
13108 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13109 from...
13110 (rank_one_type): ... this.
13111
2c509035
SM
131122019-03-08 Simon Marchi <simon.marchi@efficios.com>
13113
13114 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13115 from...
13116 (rank_one_type): ... this.
13117
0dd322dc
SM
131182019-03-08 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13121 from...
13122 (rank_one_type): ... this.
13123
41ea4728
SM
131242019-03-08 Simon Marchi <simon.marchi@efficios.com>
13125
13126 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13127 from...
13128 (rank_one_type): ... this.
13129
793cd1d2
SM
131302019-03-08 Simon Marchi <simon.marchi@efficios.com>
13131
13132 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13133 from...
13134 (rank_one_type): ... this.
13135
34910087
SM
131362019-03-08 Simon Marchi <simon.marchi@efficios.com>
13137
13138 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13139 from...
13140 (rank_one_type): ... this.
13141
f1f832d6
SM
131422019-03-08 Simon Marchi <simon.marchi@efficios.com>
13143
13144 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13145 from...
13146 (rank_one_type): ... this.
13147
b9f4512f
SM
131482019-03-08 Simon Marchi <simon.marchi@efficios.com>
13149
13150 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13151 from...
13152 (rank_one_type): ... this.
13153
9293fc63
SM
131542019-03-08 Simon Marchi <simon.marchi@efficios.com>
13155
13156 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13157 from...
13158 (rank_one_type): ... this.
13159
e3abbe7e
PW
131602019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13161
13162 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13163 inferior-events' shows the example events.
13164
e4adb939
EZ
131652019-03-08 Eli Zaretskii <eliz@gnu.org>
13166
13167 Support styling on native MS-Windows console
13168
13169 PR/24315
13170 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13171 on MS-Windows if $TERM is not defined.
13172
13173 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13174
13175 * posix-hdep.c (gdb_console_fputs):
13176 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13177 functions.
13178 * ui-file.h (gdb_console_fputs): Add prototype.
13179
13180 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13181 back to fputs only if the former returns zero.
13182
25629dfd
TT
131832019-03-07 Tom Tromey <tom@tromey.com>
13184
13185 * symmisc.c (print_symbol_bcache_statistics): Update.
13186 (print_objfile_statistics): Update.
13187 * symfile.c (allocate_symtab): Update.
13188 * stabsread.c: Don't include bcache.h.
13189 * psymtab.h (struct psymbol_bcache): Don't declare.
13190 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13191 (psymbol_bcache_init, psymbol_bcache_free)
13192 (psymbol_bcache_get_bcache): Don't declare.
13193 * psymtab.c (struct psymbol_bcache): Remove.
13194 (psymtab_storage::psymtab_storage): Update.
13195 (psymtab_storage::~psymtab_storage): Update.
13196 (psymbol_bcache_init, psymbol_bcache_free)
13197 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13198 (add_psymbol_to_bcache): Update.
13199 (allocate_psymtab): Update.
13200 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13201 macro_cache>: No longer pointers.
13202 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13203 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13204 * macrotab.c (macro_bcache): Update.
13205 * macroexp.c: Don't include bcache.h.
13206 * gdbtypes.c (check_types_worklist): Update.
13207 (types_deeply_equal): Remove TRY/CATCH. Update.
13208 * elfread.c (elf_symtab_read): Update.
13209 * dwarf2read.c: Don't include bcache.h.
13210 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13211 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13212 (print_bcache_statistics, bcache_memory_used): Don't declare.
13213 (struct bcache): Move from bcache.c. Add constructor, destructor,
13214 methods. Rename all data members.
13215 * bcache.c (struct bcache): Move to bcache.h.
13216 (bcache::expand_hash_table): Rename from expand_hash_table.
13217 (bcache): Remove.
13218 (bcache::insert): Rename from bcache_full.
13219 (bcache::compare): Rename from bcache_compare.
13220 (bcache_xmalloc): Remove.
13221 (bcache::~bcache): Rename from bcache_xfree.
13222 (bcache::print_statistics): Rename from print_bcache_statistics.
13223 (bcache::memory_used): Rename from bcache_memory_used.
13224
fe726667
PA
132252019-03-07 Pedro Alves <palves@redhat.com>
13226
13227 * infrun.c (normal_stop): Also check for
13228 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13229
7584bb30
AB
132302019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * f-lang.c (value_from_host_double): Moved to...
13233 * value.c (value_from_host_double): ...here.
13234 * value.h (value_from_host_double): Declare.
13235 * guile/scm-math.c (vlscm_convert_typed_number): Use
13236 value_from_host_double.
13237 (vlscm_convert_number): Likewise.
13238 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13239 * python/py-value.c (convert_value_from_python): Likewise.
13240
a7b1986e
TT
132412019-03-06 Tom Tromey <tom@tromey.com>
13242
13243 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13244
0ccf4211
TT
132452019-03-06 Tom Tromey <tom@tromey.com>
13246
13247 * utils.h (free_current_contents): Don't declare.
13248 * utils.c (free_current_contents): Remove.
13249
fe7b42e5
TT
132502019-03-06 Tom Tromey <tom@tromey.com>
13251
13252 * top.c (quit_force): Update.
13253 * main.c (captured_command_loop): Update.
13254 * common/new-op.c (operator new): Update.
13255 * common/common-exceptions.c (struct catcher)
13256 <save_cleanup_chain>: Remove member.
13257 (exceptions_state_mc_init): Update.
13258 (exception_try_scope_entry): Return nullptr.
13259 (exception_try_scope_exit, exception_rethrow)
13260 (throw_exception_sjlj, throw_exception_cxx): Update.
13261 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13262 (all_cleanups, do_cleanups, discard_cleanups)
13263 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13264 (restore_cleanups, restore_final_cleanups): Don't declare.
13265 (do_final_cleanups): Remove parameter.
13266 * common/cleanups.c (cleanup_chain, make_cleanup)
13267 (make_cleanup_dtor, all_cleanups, do_cleanups)
13268 (discard_my_cleanups, discard_cleanups)
13269 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13270 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13271 (null_cleanup): Remove.
13272 (do_final_cleanups): Remove parameter.
13273
c6321f19
TT
132742019-03-06 Tom Tromey <tom@tromey.com>
13275
13276 * remote.c (remote_target::remote_parse_stop_reply): Use
13277 unique_xmalloc_ptr.
13278
61b30099
TT
132792019-03-06 Tom Tromey <tom@tromey.com>
13280
13281 * stabsread.c (struct stabs_field_info): Rename from field_info.
13282 <list, fnlist>: Add initializers.
13283 <obstack>: New member.
13284 (read_member_functions, read_struct_fields, read_baseclasses):
13285 Allocate on obstack. Don't use cleanups.
13286 (read_one_struct_field, read_member_functions, read_struct_fields)
13287 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13288 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13289 (read_struct_type): Update.
13290
6cceac94
TT
132912019-03-06 Tom Tromey <tom@tromey.com>
13292
13293 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13294 * common/filestuff.h (make_cleanup_close): Don't declare.
13295 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13296 Remove.
13297
72412762
TT
132982019-03-06 Tom Tromey <tom@tromey.com>
13299
13300 * solib-aix.c: Use make_scope_exit.
13301
2b6ff1c0
TT
133022019-03-06 Tom Tromey <tom@tromey.com>
13303
13304 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13305 Use make_scope_exit.
13306
d01c5877
TT
133072019-03-06 Tom Tromey <tom@tromey.com>
13308
13309 * solib-svr4.c (disable_probes_interface): Remove parameter.
13310 (svr4_handle_solib_event): Use make_scope_exit.
13311
32603266
TT
133122019-03-06 Tom Tromey <tom@tromey.com>
13313
13314 * remote.c (struct stop_reply_deleter): Remove.
13315 (stop_reply_up): Update.
13316 (struct stop_reply): Derive from notif_event. Don't typedef.
13317 <regcache>: Now a std::vector.
13318 (stop_reply_xfree): Remove.
13319 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13320 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13321 (remote_target::discard_pending_stop_replies): Use delete.
13322 (remote_target::remote_parse_stop_reply): Update.
13323 (remote_target::process_stop_reply): Update.
13324 * remote-notif.h (struct notif_event): Add virtual destructor.
13325 Remove "dtr" member.
13326 (struct notif_client) <alloc_event>: Return a unique_ptr.
13327 (notif_event_xfree): Don't declare.
13328 (notif_event_up): New typedef.
13329 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13330 (notif_event_xfree, do_notif_event_xfree): Remove.
13331 (remote_notif_state_xfree): Update.
13332
9799571e
TT
133332019-03-06 Tom Tromey <tom@tromey.com>
13334
13335 * infrun.c (displaced_step_clear_cleanup): Now a
13336 forward_scope_exit type.
13337 (displaced_step_prepare_throw): Update.
13338 (displaced_step_fixup): Update.
13339
09e3c4ca
TT
133402019-03-06 Tom Tromey <tom@tromey.com>
13341
13342 * inferior.h (class inferior): Update comment.
13343 * gdbthread.h (class thread_info): Update comment.
13344
e2a03548
TT
133452019-03-06 Joel Brobecker <brobecker@adacore.com>
13346 Tom Tromey <tom@tromey.com>
13347
13348 * stabsread.h (struct stab_section_list): Remove.
13349 (coffstab_build_psymtabs): Update.
13350 * dbxread.c (symbuf_sections): Now a std::vector.
13351 (sect_idx): New global.
13352 (fill_symbuf): Update.
13353 (coffstab_build_psymtabs): Change type of stabsects parameter.
13354 Update.
13355 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13356 std::vector.
13357 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13358 (coff_locate_sections): Update.
13359 (coff_symfile_read): Remove cleanups. Update.
13360 (init_stringtab): Add storage parameter.
13361 (free_stringtab, free_stringtab_cleanup): Remove.
13362 (init_lineno): Add storage parameter.
13363 (free_linetab, free_linetab_cleanup): Remove.
13364
b7e60d85
PA
133652019-03-06 Pedro Alves <palves@redhat.com>
13366
13367 * linux-fork.c (fork_info::clobber_regs): Delete.
13368 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13369 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13370 comment. Adjust.
13371 (scoped_switch_fork_info::scoped_switch_fork_info)
13372 (checkpoint_command, linux_fork_context): Adjust
13373 fork_save_infrun_state calls.
13374
e52c971f
PA
133752019-03-06 Pedro Alves <palves@redhat.com>
13376
13377 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13378 (inf_has_multiple_threads): Return 'bool' and rewrite using
13379 inferior_info::threads().
13380
06974e6c
PA
133812019-03-06 Pedro Alves <palves@redhat.com>
13382
13383 * linux-fork.c: Include <list>.
13384 (fork_list): Now a std::list instance.
13385 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13386 (forks_exist_p, find_last_fork): Adjust.
13387 (new_fork): Delete.
13388 (one_fork_p): New.
13389 (add_fork): Adjust.
13390 (free_fork): Delete, folded into fork_info::~fork_info().
13391 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13392 Adjust.
13393 (init_fork_list): Delete.
13394 (linux_fork_killall, linux_fork_mourn_inferior)
13395 (linux_fork_detach, info_checkpoints_command): Adjust.
13396 (_initialize_linux_fork): No longer call init_fork_list.
13397
72f31aea
PA
133982019-03-06 Pedro Alves <palves@redhat.com>
13399
13400 * linux-fork.c (new_fork): New, split out of ...
13401 (add_fork): ... this. Return void. Move "first fork" special
13402 case from here, to ...
13403 (checkpoint_command): ... here.
13404 * linux-linux.h (add_fork): Return void.
13405
efbecbc1
AB
134062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13407
13408 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13409
0841c79a
AB
134102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13411 Chris January <chris.january@arm.com>
13412 David Lecomber <david.lecomber@arm.com>
13413
13414 * f-exp.y: New token, UNOP_INTRINSIC.
13415 (exp): New pattern using UNOP_INTRINSIC token.
13416 (f77_keywords): Add 'abs' keyword.
13417 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13418 (value_from_host_double): New function.
13419 (evaluate_subexp_f): Support UNOP_ABS.
13420
4a270568
AB
134212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13422
13423 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13424 types.
13425
067630bd
AB
134262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13427
13428 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13429 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13430 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13431
3be47f7a
AB
134322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13433
13434 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13435
4d00f5d8
AB
134362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13437 Chris January <chris.january@arm.com>
13438
13439 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13440 * f-exp.y: Define 'KIND' token.
13441 (exp): New pattern for KIND expressions.
13442 (ptype): Handle types with a kind extension.
13443 (direct_abs_decl): Extend to spot kind extensions.
13444 (f77_keywords): Add 'kind' to the list.
13445 (push_kind_type): New function.
13446 (convert_to_kind_type): New function.
13447 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13448 * parse.c (operator_length_standard): Likewise.
13449 * parser-defs.h (enum type_pieces): Add tp_kind.
13450 * std-operator.def: Add UNOP_KIND.
13451
e454224f
AB
134522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13453
13454 * f-exp.y (f_parse): Set yydebug.
13455
9dad4a58
AB
134562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13457
13458 * f-lang.c (evaluate_subexp_f): New function.
13459 (exp_descriptor_f): New global.
13460 (f_language_defn): Use exp_descriptor_f instead of
13461 exp_descriptor_standard.
13462
c8f91604
AB
134632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13464
13465 * f-exp.y (struct token): Add comments.
13466 (dot_ops): Remove uppercase versions and the end marker.
13467 (f77_keywords): Likewise.
13468 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13469 entries in the dot_ops array are case insensitive, and use
13470 strncasecmp to compare strings. Also some whitespace cleanup in
13471 this area. Similar for the f77_keywords array, except entries in
13472 this list might be case sensitive.
13473
dd9f2c76
AB
134742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13475
13476 * f-exp.y (struct f77_boolean_val): Add comments.
13477 (boolean_values): Remove uppercase versions, and end marker.
13478 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13479 and use strncasecmp to achieve case insensitivity. Additionally,
13480 perform whitespace cleanup around this code.
13481
67a3048c
TT
134822019-03-06 Tom Tromey <tromey@adacore.com>
13483
13484 * remote-sim.c (gdbsim_target_open): Use result of
13485 gdb_argv::release.
13486
aa3cfbda
RB
134872019-03-06 Richard Bunt <richard.bunt@arm.com>
13488 Dirk Schubert <dirk.schubert@arm.com>
13489 Chris January <chris.january@arm.com>
13490
13491 * eval.c (evaluate_subexp_standard): Call Fortran argument
13492 wrapping logic.
13493 * f-lang.c (struct value): A value which can be passed into a
13494 Fortran function call.
13495 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13496 where appropriate.
13497 (struct type): Value ready for a Fortran function call.
13498 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13499 is needed.
13500 * f-lang.h (fortran_argument_convert): Declaration.
13501 (fortran_preserve_arg_pointer): Declaration.
13502 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13503
ea38e5df
TT
135042019-03-05 Tom Tromey <tromey@adacore.com>
13505
13506 * python/py-prettyprint.c (print_string_repr): Remove #if.
13507 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13508
06b5b831
TT
135092019-03-05 Tom Tromey <tromey@adacore.com>
13510
13511 * target.c (the_dummy_target): Move later. Change type to
13512 "dummy_target".
13513 (initialize_targets): Don't initialize the_dummy_target.
13514
edbd9e45
TT
135152019-03-05 Tom Tromey <tromey@adacore.com>
13516
13517 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13518 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13519
c119e040
TT
135202019-03-05 Tom Tromey <tromey@adacore.com>
13521
13522 * windows-nat.c (windows_nat_target::attach)
13523 (windows_nat_target::detach): Don't call gdb_flush.
13524 * valprint.c (generic_val_print, val_print, val_print_string):
13525 Don't call gdb_flush.
13526 * utils.c (defaulted_query): Don't call gdb_flush.
13527 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13528 * target.c (target_announce_detach): Don't call gdb_flush.
13529 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13530 * remote.c (extended_remote_target::attach): Don't call
13531 gdb_flush.
13532 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13533 * printcmd.c (do_examine): Don't call gdb_flush.
13534 (info_display_command): Don't call gdb_flush.
13535 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13536 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13537 * memattr.c (info_mem_command): Don't call gdb_flush.
13538 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13539 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13540 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13541 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13542 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13543 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13544 (gnu_nat_target::detach): Don't call gdb_flush.
13545 * f-valprint.c (f_val_print): Don't call gdb_flush.
13546 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13547 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13548 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13549 gdb_flush.
13550 * c-valprint.c (c_val_print): Don't call gdb_flush.
13551 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13552
895dafa6
TT
135532019-03-05 Tom Tromey <tromey@adacore.com>
13554
13555 * varobj.c (update_dynamic_varobj_children): Update.
13556 (install_default_visualizer): Use reset, not release.
13557 * value.c (set_internalvar): Update.
13558 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13559 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13560 ATTRIBUTE_UNUSED_RESULT.
13561
88a774b9
TT
135622019-03-05 Tom Tromey <tromey@adacore.com>
13563
13564 * remote.c (class scoped_remote_fd) <release>: Add
13565 ATTRIBUTE_UNUSED_RESULT.
13566
4e4a8b93
TT
135672019-03-05 Tom Tromey <tromey@adacore.com>
13568
13569 * macroexp.c (struct macro_buffer) <release>: Add
13570 ATTRIBUTE_UNUSED_RESULT.
13571
083eef1f
TT
135722019-03-05 Tom Tromey <tromey@adacore.com>
13573
13574 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13575 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13576 ATTRIBUTE_UNUSED_RESULT.
13577
3cabd438
TT
135782019-03-05 Tom Tromey <tromey@adacore.com>
13579
13580 * common/scoped_fd.h (class scoped_fd) <release>: Add
13581 ATTRIBUTE_UNUSED_RESULT.
13582
41e3300a
TT
135832019-03-05 Tom Tromey <tromey@adacore.com>
13584
13585 * parser-defs.h (struct parser_state) <release>: Add
13586 ATTRIBUTE_UNUSED_RESULT.
13587
18cb7c9f
TT
135882019-03-05 Tom Tromey <tromey@adacore.com>
13589
13590 * utils.h (class gdb_argv) <release>: Add
13591 ATTRIBUTE_UNUSED_RESULT.
13592 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13593
41fa577f
EZ
135942019-03-02 Eli Zaretskii <eliz@gnu.org>
13595
a6a4b2c6
EZ
13596 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13597 for-loop range, to avoid compiler warnings.
13598
13599 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13600 avoid compiler warnings about unused variables.
13601
742a7df5
EZ
13602 * NEWS: Mention end of support for native debugging on MS-Windows
13603 before XP.
13604
41fa577f
EZ
13605 PR gdb/24292
13606 * common/netstuff.c:
13607 * gdbserver/gdbreplay.c
13608 * gdbserver/remote-utils.c:
13609 * ser-tcp.c:
13610 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13611 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13612 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13613 'getaddrinfo' and 'freeaddrinfo' were not available before
13614 Windows XP, and mingw.org's MinGW headers by default define
13615 _WIN32_WINNT to 0x500.
13616
827f438f
GB
136172019-03-01 Gary Benson <gbenson@redhat.com>
13618
13619 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13620
92137da0
RO
136212019-02-28 Brian Vandenberg <phantall@gmail.com>
13622 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13623
13624 PR gdb/8527
13625 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13626 set_sigint_trap, clear_sigint_trap.
13627
799efbe8
PW
136282019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13629
13630 * target.c (target_detach): Clear the regcache and the
13631 frame cache.
13632
8ed25214
PA
136332019-02-27 Pedro Alves <palves@redhat.com>
13634
13635 * utils.c (set_screen_size): When we cap the height/width sizes,
13636 tweak the corresponding command variable to show "unlimited":
13637
23031e31
SJ
136382019-02-27 Saagar Jha <saagar@saagarjha.com>
13639 Pedro Alves <palves@redhat.com>
13640
13641 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13642 before calling rl_set_screen_size.
13643
6c28e44a
TT
136442019-02-27 Tom Tromey <tromey@adacore.com>
13645
13646 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13647 define.
13648 * python/py-value.c: Remove Python 2.4 workaround.
13649 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13650 workaround.
13651 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13652 Python 2.4 workaround.
13653 * python/python-internal.h: Remove Python 2.4 comment.
13654 (Py_ssize_t): Don't define.
13655 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13656 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13657 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13658 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13659 * python/python.c (do_start_initialization): Remove Python 2.4
13660 workaround.
13661 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13662 (print_children): Remove Python 2.4 workaround.
13663 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13664 workaround.
13665 (CHARBUFFERPROC_NAME): Remove.
13666 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13667 Python 2.4 workaround.
13668
2c3fc25d 136692019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13670
2c3fc25d
KB
13671 * NEWS: Note minimum Python version.
13672
6ca62222
KB
136732019-02-27 Kevin Buettner <kevinb@redhat.com>
13674
13675 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13676 code from these functions. Remove corresponding ifdefs. Use
13677 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13678 Remove gotos and target of gotos.
13679 (infpy_search_memory): Likewise.
13680
f4bc7d2c
AB
136812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13684 (hppa_gdbarch_init): Don't register deleted functions with
13685 gdbarch.
13686
9734a586
AB
136872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13690 (h8300_unwind_sp): Delete.
13691 (h8300_dummy_id): Delete.
13692 (h8300_gdbarch_init): Don't register deleted functions with
13693 gdbarch.
13694
68b867f3
AB
136952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13696
13697 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13698 (ft32_unwind_pc): Delete.
13699 (ft32_unwind_sp): Delete.
13700 (ft32_gdbarch_init): Don't register deleted functions with
13701 gdbarch.
13702
2fbe7ad0
AB
137032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13704
13705 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13706 (frv_unwind_pc): Delete.
13707 (frv_unwind_sp): Delete.
13708 (frv_gdbarch_init): Don't register deleted functions with
13709 gdbarch.
13710
76055cbe
AB
137112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13714 (riscv_unwind_pc): Delete.
13715 (riscv_unwind_sp): Delete.
13716 (riscv_gdbarch_init): Don't register deleted functions with
13717 gdbarch.
13718
4133e5a1
AB
137192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13720
13721 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13722 (csky_unwind_pc): Delete.
13723 (csky_unwind_sp): Delete.
13724 (csky_gdbarch_init): Don't register deleted functions with
13725 gdbarch.
13726
8010f576
AB
137272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13728
13729 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13730 (cris_unwind_pc): Delete.
13731 (cris_unwind_sp): Delete.
13732 (cris_gdbarch_init): Don't register deleted functions with
13733 gdbarch.
13734
b56bf084
AB
137352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13736
13737 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13738 (bfin_unwind_pc): Delete.
13739 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13740
a19a650f
AB
137412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13742
13743 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13744 (arm_unwind_pc): Delete.
13745 (arm_unwind_sp): Delete.
13746 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13747
f8278c3c
AB
137482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13751 (arc_unwind_pc): Delete.
13752 (arc_unwind_sp): Delete.
13753 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13754
480e46cf
AB
137552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13756
13757 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13758 (alpha_unwind_pc): Delete.
13759 (alpha_gdbarch_init): Don't register deleted functions with
13760 gdbarch.
13761
7a995095
AB
137622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13763
13764 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13765 (aarch64_unwind_pc): Delete.
13766 (aarch64_unwind_sp): Delete.
13767 (aarch64_gdbarch_init): Don't register deleted functions with
13768 gdbarch.
13769
bf9a735e
AB
137702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13771
13772 * gdbtypes.c (type_align): Don't consider static members when
13773 computing structure alignment.
13774
5561fc30
AB
137752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13776
13777 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13778 return 0 for other types.
13779 * arch-utils.c (default_type_align): Always return 0.
13780 * gdbarch.h: Regenerate.
13781 * gdbarch.sh (type_align): Extend comment.
13782 * gdbtypes.c (type_align): Add additional comments, always call
13783 gdbarch_type_align before applying the default rules.
13784 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13785 generic code will then apply a suitable default.
13786 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13787 types, return 0 for other types.
13788
9335e75a
JB
137892019-02-27 Joel Brobecker <brobecker@adacore.com>
13790
13791 * NEWS: Create a new section for the next release branch.
13792 Rename the section of the current branch, now that it has
13793 been cut.
13794
3d34d8de
JB
137952019-02-27 Joel Brobecker <brobecker@adacore.com>
13796
13797 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13798 * version.in: Bump version to 8.3.50.DATE-git.
13799
143420fb
SM
138002019-02-26 Simon Marchi <simon.marchi@efficios.com>
13801
13802 * aix-thread.c (ptid_cmp): Remove unused variable.
13803 (get_signaled_thread): Likewise.
13804 (store_regs_user_thread): Likewise.
13805 (store_regs_kernel_thread): Likewise.
13806 (fetch_regs_kernel_thread): Remove shadowed variable.
13807
172fb711
AB
138082019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13809
13810 * features/riscv/32bit-cpu.xml: Add register numbers.
13811 * features/riscv/32bit-fpu.c: Regenerate.
13812 * features/riscv/32bit-fpu.xml: Add register numbers.
13813 * features/riscv/64bit-cpu.xml: Add register numbers.
13814 * features/riscv/64bit-fpu.c: Regenerate.
13815 * features/riscv/64bit-fpu.xml: Add register numbers.
13816
26c89782
KB
138172019-02-26 Kevin Buettner <kevinb@redhat.com>
13818
af54ade9 13819 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13820 * python/py-value.c (convert_buffer_and_type_to_value): New
13821 function.
13822 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13823 Add support for handling an optional second argument. Call
13824 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13825 * python/python-internal.h (Py_buffer_deleter): New struct.
13826 (Py_buffer_up): New typedef.
13827
0f58c9e8
JB
138282019-02-25 John Baldwin <jhb@FreeBSD.org>
13829
13830 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13831 instead of releasing ownership.
13832
0a0f4c01
JR
138332019-02-25 Jordan Rupprecht <rupprecht@google.com>
13834
13835 * dwarf2read.c (open_and_init_dwp_file): Call
13836 elf_numsections instead of bfd_count_sections to initialize
13837 dwp_file->num_sections.
13838
cd5a152c
TT
138392019-02-25 Tom Tromey <tromey@adacore.com>
13840
13841 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13842
8a6a8513
SDJ
138432019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13844
13845 * gcore.in: Add '--readnever' option when invoking GDB.
13846
04dcda9c
SM
138472019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13848
13849 * MAINTAINERS: Update my email address.
13850
07bc701d
SM
138512019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13852
13853 * build-id.c (build_id_to_debug_bfd_1): New function.
13854 (build_id_to_debug_bfd): Look for separate debug file in
13855 sysroot.
13856
c6f4a5d0
AB
138572019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13858
13859 * gdbarch.sh: Update the copyright year range that is placed into
13860 generated files.
13861
9600246d
KS
138622019-02-22 Keith Seitz <keiths@redhat.com>
13863
13864 PR symtab/23853
13865 * linespec.c (create_sals_line_offset): Search for the default
13866 symtab's filename instead of its fullname.
13867
7557a514
AH
138682019-02-21 Alan Hayward <alan.hayward@arm.com>
13869
13870 * NEWS: Update style defaults.
13871
ee2bcb0c
AH
138722019-02-21 Alan Hayward <alan.hayward@arm.com>
13873
13874 * main.c (captured_main_1): Disable styling in batch mode.
13875
0c95f9ed
TT
138762019-02-20 Tom Tromey <tom@tromey.com>
13877
13878 * symtab.c (symtab_symbol_info): Fix typos.
13879
c763b894
TT
138802019-02-20 Tom Tromey <tromey@adacore.com>
13881
13882 * findcmd.c (_initialize_mem_search): Use upper case for
13883 metasyntactic variables.
13884
0ef8a082
AH
138852019-02-20 Alan Hayward <alan.hayward@arm.com>
13886
13887 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13888 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13889
6caa91b6
SM
138902019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13891
13892 * top.h (source_file_name): Change to std::string.
13893 * top.c (source_file_name): Likewise.
13894 (command_line_input): Adjust.
13895 * cli/cli-script.c (script_from_file): Adjust.
13896
98814c6c
TT
138972019-02-19 Tom Tromey <tromey@adacore.com>
13898
13899 * ravenscar-thread.c
13900 (ravenscar_thread_target::update_thread_list): Don't call
13901 ada_build_task_list.
13902 * ada-lang.h (ada_build_task_list): Don't declare.
13903 * ada-tasks.c (struct ada_tasks_inferior_data)
13904 <task_list_valid_p>: Now bool.
13905 (read_known_tasks, ada_task_list_changed)
13906 (ada_tasks_invalidate_inferior_data): Update.
13907 (read_known_tasks_array): Return bool.
13908 (read_known_tasks_list): Likewise.
13909 (read_known_tasks): Return void.
13910 (ada_build_task_list): Now static.
13911
70cd633e
AB
139122019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13915 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13916
040b3e95
PW
139172019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13918
13919 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13920 variant for ada_tasks_pspace_data_handle and
13921 ada_tasks_inferior_data_handle.
13922 (ada_tasks_pspace_data_cleanup): New function.
13923 (ada_tasks_inferior_data_cleanup): New function.
13924
9409233b
TT
139252019-02-17 Tom Tromey <tom@tromey.com>
13926
13927 * macrotab.h (macro_source_fullname): Return a std::string.
13928 * macrotab.c (macro_include, check_for_redefinition)
13929 (macro_undef, macro_lookup_definition, foreach_macro)
13930 (foreach_macro_in_scope): Update.
13931 (macro_source_fullname): Return a std::string.
13932 * macrocmd.c (show_pp_source_pos): Update.
13933
6506371f
TT
139342019-02-17 Tom Tromey <tom@tromey.com>
13935
13936 * macrocmd.c (show_pp_source_pos): Style the file names.
13937
0c820d67
TT
139382019-02-17 Tom Tromey <tom@tromey.com>
13939
13940 PR tui/24197:
13941 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13942
a0087920
TT
139432019-02-17 Tom Tromey <tom@tromey.com>
13944
13945 * ada-lang.c (user_select_syms): Use filtered printing.
13946 * utils.c (wrap_style): New global.
13947 (desired_style): Remove.
13948 (emit_style_escape): Add stream parameter.
13949 (set_output_style, reset_terminal_style, prompt_for_continue):
13950 Update.
13951 (flush_wrap_buffer): Only flush gdb_stdout.
13952 (wrap_here): Set wrap_style.
13953 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13954 treat escape sequences as a character. Change when wrap buffer is
13955 flushed.
13956 (fputs_styled): Do not set the output style when the default is
13957 requested.
13958 * ui-style.h (struct ui_file_style) <is_default>: New method.
13959 * source.c (print_source_lines_base): Emit escape sequences in one
13960 piece.
13961
75ba10dc
JB
139622019-02-17 Joel Brobecker <brobecker@adacore.com>
13963
13964 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13965 integers and enumeration types.
13966
a2cd4f14
JB
139672019-02-17 Joel Brobecker <brobecker@adacore.com>
13968
13969 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13970 instead of lookup_symbol_in_language
13971 (do_exact_match): New function.
13972 (ada_get_symbol_name_matcher): Return do_exact_match when
13973 doing a verbatim match.
13974
485b851b
TT
139752019-02-15 Tom Tromey <tromey@adacore.com>
13976
13977 * ravenscar-thread.c (ravenscar_thread_target::resume)
13978 (ravenscar_thread_target::wait): Special case wildcard requests.
13979
0b790b1e
TT
139802019-02-15 Tom Tromey <tromey@adacore.com>
13981
13982 * ravenscar-thread.c (base_ptid): Remove.
13983 (struct ravenscar_thread_target) <close>: New method.
13984 <m_base_ptid>: New member.
13985 <update_inferior_ptid, active_task, task_is_currently_active,
13986 runtime_initialized>: Declare methods.
13987 <ravenscar_thread_target>: Add constructor.
13988 (ravenscar_thread_target::task_is_currently_active)
13989 (ravenscar_thread_target::update_inferior_ptid)
13990 (ravenscar_runtime_initialized): Rename. Now methods.
13991 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13992 (ravenscar_thread_target::update_thread_list): Update.
13993 (ravenscar_thread_target::active_task): Now method.
13994 (ravenscar_thread_target::store_registers)
13995 (ravenscar_thread_target::prepare_to_store)
13996 (ravenscar_thread_target::prepare_to_store)
13997 (ravenscar_thread_target::mourn_inferior): Update.
13998 (ravenscar_inferior_created): Use "new" to create target.
13999 (ravenscar_thread_target::get_ada_task_ptid): Update.
14000 (_initialize_ravenscar): Don't initialize base_ptid.
14001 (ravenscar_ops): Remove global.
14002
dea57a62
TT
140032019-02-15 Tom Tromey <tromey@adacore.com>
14004
14005 * target.h (push_target): Declare new overload.
14006 * target.c (push_target): New overload, taking an rvalue reference.
14007 * remote.c (remote_target::open_1): Use push_target overload.
14008 * corelow.c (core_target_open): Use push_target overload.
14009
989f3c58
TT
140102019-02-15 Tom Tromey <tromey@adacore.com>
14011
14012 * ravenscar-thread.c (is_ravenscar_task)
14013 (ravenscar_task_is_currently_active): Return bool.
14014 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14015 (_initialize_ravenscar): Remove "(void)".
14016 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14017 Return bool.
14018
6cbcc006
TT
140192019-02-15 Tom Tromey <tromey@adacore.com>
14020
14021 * ravenscar-thread.c (ravenscar_runtime_initializer)
14022 (has_ravenscar_runtime, get_running_thread_id)
14023 (ravenscar_thread_target::resume): Fix indentation.
14024
7657f14d
TT
140252019-02-15 Tom Tromey <tromey@adacore.com>
14026
14027 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14028 from ravenscar_arch_ops.
14029 (sparc_ravenscar_ops::fetch_registers)
14030 (sparc_ravenscar_ops::store_registers): Now methods.
14031 (sparc_ravenscar_prepare_to_store): Remove.
14032 (sparc_ravenscar_ops): Redefine.
14033 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14034 methods and destructor. Remove members.
14035 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14036 (ravenscar_thread_target::store_registers)
14037 (ravenscar_thread_target::prepare_to_store): Update.
14038 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14039 Remove.
14040 (struct ppc_ravenscar_powerpc_ops): Derive from
14041 ravenscar_arch_ops.
14042 (ppc_ravenscar_powerpc_ops::fetch_registers)
14043 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14044 (ppc_ravenscar_powerpc_ops): Redefine.
14045 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14046 (ppc_ravenscar_e500_ops::fetch_registers)
14047 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14048 (ppc_ravenscar_e500_ops): Redefine.
14049 * aarch64-ravenscar-thread.c
14050 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14051 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14052 (aarch64_ravenscar_fetch_registers)
14053 (aarch64_ravenscar_store_registers): Now methods.
14054 (aarch64_ravenscar_ops): Redefine.
14055
5b6ea500
TT
140562019-02-15 Tom Tromey <tromey@adacore.com>
14057
14058 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14059 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14060 (ravenscar_thread_target::stopped_by_watchpoint)
14061 (ravenscar_thread_target::stopped_data_address)
14062 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14063
e397fd39
TT
140642019-02-15 Tom Tromey <tromey@adacore.com>
14065
14066 * ravenscar-thread.c: Fix some typos.
14067
cc12f4a8
TT
140682019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14069 Tom Tromey <tromey@adacore.com>
14070
14071 * ada-lang.c (ada_exception_sal): Change addr_string to a
14072 std::string.
14073 (create_ada_exception_catchpoint): Update.
14074
5f486660
TT
140752019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14076 Tom Tromey <tromey@adacore.com>
14077
14078 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14079 (bp_location_ops): Remove.
14080 (base_breakpoint_allocate_location): Update.
14081 (free_bp_location): Update.
14082 * ada-lang.c (class ada_catchpoint_location)
14083 <ada_catchpoint_location>: Remove ops parameter.
14084 (ada_catchpoint_location_dtor): Remove.
14085 (ada_catchpoint_location_ops): Remove.
14086 (allocate_location_exception): Update.
14087 * breakpoint.h (struct bp_location_ops): Remove.
14088 (class bp_location) <bp_location>: Remove bp_location_ops
14089 parameter.
14090 <~bp_location>: Add destructor.
14091 <ops>: Remove.
14092
b671c7fb
TS
140932019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14094 Pedro Alves <palves@redhat.com>
14095
14096 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14097 'PATH_MAX'.
14098
8071c5ce
DM
140992019-02-14 David Michael <fedora.dm0@gmail.com>
14100 Samuel Thibault <samuel.thibault@gnu.org>
14101 Thomas Schwinge <thomas@codesourcery.com>
14102
14103 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14104 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14105
b1041ae0
TS
141062019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14107
924514e1
TS
14108 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14109 (check_empty): Use "const char *".
14110
c29ee8d4
TS
14111 * gnu-nat.c (gnu_nat_target::detach): Instead of
14112 'detach_inferior (pid)' call
14113 'detach_inferior (find_inferior_pid (pid))'.
14114
6c6ef69f
TS
14115 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14116 'nat/fork-inferior.o'.
14117 * gnu-nat.c: #include "nat/fork-inferior.h".
14118
2d0a338c
TS
14119 * gnu-nat.c (gnu_nat_target::detach): Instead of
14120 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14121 * gnu-nat.h: #include "inf-child.h".
14122 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14123 'i386_gnu_nat_target::fetch_registers'.
14124 (gnu_store_registers): Rename/move to
14125 'i386_gnu_nat_target::store_registers'.
14126
cabb5f06
TS
14127 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14128 * gnu-nat.h (mach_thread_info): New function.
14129 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14130
b1041ae0
TS
14131 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14132
2988d01e
KF
141332019-02-14 Frederic Konrad <konrad@adacore.com>
14134
14135 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14136
c559d709
JB
141372019-02-14 Joel Brobecker <brobecker@adacore.com>
14138
14139 * windows-nat.c (windows_add_thread): Add new parameter
14140 "main_thread_p" with default value set to false. Update
14141 function documentation as well as all callers.
14142 (windows_delete_thread): Likewise.
14143 (fake_create_process): Update call to windows_add_thread.
14144 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14145 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14146 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14147 call to windows_delete_thread.
14148
007024cc
SM
141492019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14150
14151 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14152
f62318e9
JB
141532019-02-12 John Baldwin <jhb@FreeBSD.org>
14154
14155 * symfile.c (find_separate_debug_file): Use canonical path of
14156 sysroot with child_path instead of gdb_sysroot if it is valid.
14157
cd4b7848
JB
141582019-02-12 John Baldwin <jhb@FreeBSD.org>
14159
14160 * symfile.c (find_separate_debug_file): Use child_path to
14161 determine if an object file is under a sysroot.
14162
efac4bfe
JB
141632019-02-12 John Baldwin <jhb@FreeBSD.org>
14164
14165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14166 unittests/child-path-selftests.c.
14167 * common/pathstuff.c (child_path): New function.
14168 * common/pathstuff.h (child_path): New prototype.
14169 * unittests/child-path-selftests.c: New file.
14170
402d2bfe
JB
141712019-02-12 John Baldwin <jhb@FreeBSD.org>
14172
14173 * symfile.c (find_separate_debug_file): Look for separate debug
14174 files in debug directories under the sysroot.
14175
1ed9f74e
PW
141762019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14177
14178 * symtab.h (struct minimal_symbol data_p): New const method.
14179 (struct minimal_symbol text_p): Likewise.
14180 * symtab.c (output_source_filename): Use file name style
14181 to print file name.
14182 (print_symbol_info): Likewise.
14183 (print_msymbol_info): Use address style to print addresses.
14184 Use function name style to print executable text symbols.
14185 (expand_symtab_containing_pc): Use data_p.
14186 (find_pc_sect_compunit_symtab): Likewise.
14187
2636d81d
PW
141882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14189
14190 * breakpoint.c (describe_other_breakpoints): Use address style
14191 to print addresses.
14192 (say_where): Likewise.
14193
ac8c53cc
PW
141942019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14195
14196 * ada-typeprint.c (print_func_type): Print function name
14197 style to print function name.
14198 * c-typeprint.c (c_print_type_1): Likewise.
14199
ea638c43
AH
142002019-02-11 Alan Hayward <alan.hayward@arm.com>
14201
14202 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14203 for execve.
14204
ab759ca8
PW
142052019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14206
14207 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14208 type_stack.
14209
aff29d1c
JB
142102019-02-10 Joel Brobecker <brobecker@adacore.com>
14211
14212 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14213 TYPE_CODE_REF types.
14214
617126bc
JW
142152019-02-08 Jim Wilson <jimw@sifive.com>
14216
14217 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14218 (riscv_linux_fregset): New.
14219 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14220
46e3ed7f
TT
142212019-02-07 Tom Tromey <tom@tromey.com>
14222
14223 * thread.c (thread_cancel_execution_command): Update.
14224 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14225 methods.
14226 (struct thread_fsm_ops): Remove.
14227 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14228 (thread_fsm_should_stop, thread_fsm_return_value)
14229 (thread_fsm_set_finished, thread_fsm_finished_p)
14230 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14231 Don't declare.
14232 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14233 * infrun.c (clear_proceed_status_thread)
14234 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14235 (print_stop_event): Update.
14236 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14237 Add constructor.
14238 (step_command_fsm_ops): Remove.
14239 (new_step_command_fsm): Remove.
14240 (step_1): Update.
14241 (step_command_fsm::should_stop): Rename from
14242 step_command_fsm_should_stop.
14243 (step_command_fsm::clean_up): Rename from
14244 step_command_fsm_clean_up.
14245 (step_command_fsm::do_async_reply_reason): Rename from
14246 step_command_fsm_async_reply_reason.
14247 (struct until_next_fsm): Inherit from thread_fsm. Add
14248 constructor.
14249 (until_next_fsm_ops): Remove.
14250 (new_until_next_fsm): Remove.
14251 (until_next_fsm::should_stop): Rename from
14252 until_next_fsm_should_stop.
14253 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14254 (until_next_fsm::do_async_reply_reason): Rename from
14255 until_next_fsm_async_reply_reason.
14256 (struct finish_command_fsm): Inherit from thread_fsm. Add
14257 constructor. Change type of breakpoint.
14258 (finish_command_fsm_ops): Remove.
14259 (new_finish_command_fsm): Remove.
14260 (finish_command_fsm::should_stop): Rename from
14261 finish_command_fsm_should_stop.
14262 (finish_command_fsm::clean_up): Rename from
14263 finish_command_fsm_clean_up.
14264 (finish_command_fsm::return_value): Rename from
14265 finish_command_fsm_return_value.
14266 (finish_command_fsm::do_async_reply_reason): Rename from
14267 finish_command_fsm_async_reply_reason.
14268 (finish_command): Update.
14269 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14270 Add constructor.
14271 (call_thread_fsm_ops): Remove.
14272 (call_thread_fsm::call_thread_fsm): Rename from
14273 new_call_thread_fsm.
14274 (call_thread_fsm::should_stop): Rename from
14275 call_thread_fsm_should_stop.
14276 (call_thread_fsm::should_notify_stop): Rename from
14277 call_thread_fsm_should_notify_stop.
14278 (run_inferior_call, call_function_by_hand_dummy): Update.
14279 * cli/cli-interp.c (should_print_stop_to_console): Update.
14280 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14281 Add constructor. Change type of location_breakpoint,
14282 caller_breakpoint.
14283 (until_break_fsm_ops): Remove.
14284 (new_until_break_fsm): Remove.
14285 (until_break_fsm::should_stop): Rename from
14286 until_break_fsm_should_stop.
14287 (until_break_fsm::clean_up): Rename from
14288 until_break_fsm_clean_up.
14289 (until_break_fsm::do_async_reply_reason): Rename from
14290 until_break_fsm_async_reply_reason.
14291 (until_break_command): Update.
14292 * thread-fsm.c: Remove.
14293 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14294
1a5c2598
TT
142952019-02-07 Tom Tromey <tom@tromey.com>
14296
14297 * yy-remap.h: Add include guard.
14298 * xtensa-tdep.h: Add include guard.
14299 * xcoffread.h: Rename include guard.
14300 * varobj-iter.h: Add include guard.
14301 * tui/tui.h: Rename include guard.
14302 * tui/tui-winsource.h: Rename include guard.
14303 * tui/tui-wingeneral.h: Rename include guard.
14304 * tui/tui-windata.h: Rename include guard.
14305 * tui/tui-win.h: Rename include guard.
14306 * tui/tui-stack.h: Rename include guard.
14307 * tui/tui-source.h: Rename include guard.
14308 * tui/tui-regs.h: Rename include guard.
14309 * tui/tui-out.h: Rename include guard.
14310 * tui/tui-layout.h: Rename include guard.
14311 * tui/tui-io.h: Rename include guard.
14312 * tui/tui-hooks.h: Rename include guard.
14313 * tui/tui-file.h: Rename include guard.
14314 * tui/tui-disasm.h: Rename include guard.
14315 * tui/tui-data.h: Rename include guard.
14316 * tui/tui-command.h: Rename include guard.
14317 * tic6x-tdep.h: Add include guard.
14318 * target/waitstatus.h: Rename include guard.
14319 * target/wait.h: Rename include guard.
14320 * target/target.h: Rename include guard.
14321 * target/resume.h: Rename include guard.
14322 * target-float.h: Rename include guard.
14323 * stabsread.h: Add include guard.
14324 * rs6000-tdep.h: Add include guard.
14325 * riscv-fbsd-tdep.h: Add include guard.
14326 * regformats/regdef.h: Rename include guard.
14327 * record.h: Rename include guard.
14328 * python/python.h: Rename include guard.
14329 * python/python-internal.h: Rename include guard.
14330 * python/py-stopevent.h: Rename include guard.
14331 * python/py-ref.h: Rename include guard.
14332 * python/py-record.h: Rename include guard.
14333 * python/py-record-full.h: Rename include guard.
14334 * python/py-record-btrace.h: Rename include guard.
14335 * python/py-instruction.h: Rename include guard.
14336 * python/py-events.h: Rename include guard.
14337 * python/py-event.h: Rename include guard.
14338 * procfs.h: Add include guard.
14339 * proc-utils.h: Add include guard.
14340 * p-lang.h: Add include guard.
14341 * or1k-tdep.h: Rename include guard.
14342 * observable.h: Rename include guard.
14343 * nto-tdep.h: Rename include guard.
14344 * nat/x86-linux.h: Rename include guard.
14345 * nat/x86-linux-dregs.h: Rename include guard.
14346 * nat/x86-gcc-cpuid.h: Add include guard.
14347 * nat/x86-dregs.h: Rename include guard.
14348 * nat/x86-cpuid.h: Rename include guard.
14349 * nat/ppc-linux.h: Rename include guard.
14350 * nat/mips-linux-watch.h: Rename include guard.
14351 * nat/linux-waitpid.h: Rename include guard.
14352 * nat/linux-ptrace.h: Rename include guard.
14353 * nat/linux-procfs.h: Rename include guard.
14354 * nat/linux-osdata.h: Rename include guard.
14355 * nat/linux-nat.h: Rename include guard.
14356 * nat/linux-namespaces.h: Rename include guard.
14357 * nat/linux-btrace.h: Rename include guard.
14358 * nat/glibc_thread_db.h: Rename include guard.
14359 * nat/gdb_thread_db.h: Rename include guard.
14360 * nat/gdb_ptrace.h: Rename include guard.
14361 * nat/fork-inferior.h: Rename include guard.
14362 * nat/amd64-linux-siginfo.h: Rename include guard.
14363 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14364 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14365 * nat/aarch64-linux.h: Rename include guard.
14366 * nat/aarch64-linux-hw-point.h: Rename include guard.
14367 * mn10300-tdep.h: Add include guard.
14368 * mips-linux-tdep.h: Add include guard.
14369 * mi/mi-parse.h: Rename include guard.
14370 * mi/mi-out.h: Rename include guard.
14371 * mi/mi-main.h: Rename include guard.
14372 * mi/mi-interp.h: Rename include guard.
14373 * mi/mi-getopt.h: Rename include guard.
14374 * mi/mi-console.h: Rename include guard.
14375 * mi/mi-common.h: Rename include guard.
14376 * mi/mi-cmds.h: Rename include guard.
14377 * mi/mi-cmd-break.h: Rename include guard.
14378 * m2-lang.h: Add include guard.
14379 * location.h: Rename include guard.
14380 * linux-record.h: Rename include guard.
14381 * linux-nat.h: Add include guard.
14382 * linux-fork.h: Add include guard.
14383 * i386-darwin-tdep.h: Rename include guard.
14384 * hppa-linux-offsets.h: Add include guard.
14385 * guile/guile.h: Rename include guard.
14386 * guile/guile-internal.h: Rename include guard.
14387 * gnu-nat.h: Rename include guard.
14388 * gdb-stabs.h: Rename include guard.
14389 * frv-tdep.h: Add include guard.
14390 * f-lang.h: Add include guard.
14391 * event-loop.h: Add include guard.
14392 * darwin-nat.h: Rename include guard.
14393 * cp-abi.h: Rename include guard.
14394 * config/sparc/nm-sol2.h: Rename include guard.
14395 * config/nm-nto.h: Rename include guard.
14396 * config/nm-linux.h: Add include guard.
14397 * config/i386/nm-i386gnu.h: Rename include guard.
14398 * config/djgpp/nl_types.h: Rename include guard.
14399 * config/djgpp/langinfo.h: Rename include guard.
14400 * compile/gcc-cp-plugin.h: Add include guard.
14401 * compile/gcc-c-plugin.h: Add include guard.
14402 * compile/compile.h: Rename include guard.
14403 * compile/compile-object-run.h: Rename include guard.
14404 * compile/compile-object-load.h: Rename include guard.
14405 * compile/compile-internal.h: Rename include guard.
14406 * compile/compile-cplus.h: Rename include guard.
14407 * compile/compile-c.h: Rename include guard.
14408 * common/xml-utils.h: Rename include guard.
14409 * common/x86-xstate.h: Rename include guard.
14410 * common/version.h: Rename include guard.
14411 * common/vec.h: Rename include guard.
14412 * common/tdesc.h: Rename include guard.
14413 * common/selftest.h: Rename include guard.
14414 * common/scoped_restore.h: Rename include guard.
14415 * common/scoped_mmap.h: Rename include guard.
14416 * common/scoped_fd.h: Rename include guard.
14417 * common/safe-iterator.h: Rename include guard.
14418 * common/run-time-clock.h: Rename include guard.
14419 * common/refcounted-object.h: Rename include guard.
14420 * common/queue.h: Rename include guard.
14421 * common/ptid.h: Rename include guard.
14422 * common/print-utils.h: Rename include guard.
14423 * common/preprocessor.h: Rename include guard.
14424 * common/pathstuff.h: Rename include guard.
14425 * common/observable.h: Rename include guard.
14426 * common/netstuff.h: Rename include guard.
14427 * common/job-control.h: Rename include guard.
14428 * common/host-defs.h: Rename include guard.
14429 * common/gdb_wait.h: Rename include guard.
14430 * common/gdb_vecs.h: Rename include guard.
14431 * common/gdb_unlinker.h: Rename include guard.
14432 * common/gdb_unique_ptr.h: Rename include guard.
14433 * common/gdb_tilde_expand.h: Rename include guard.
14434 * common/gdb_sys_time.h: Rename include guard.
14435 * common/gdb_string_view.h: Rename include guard.
14436 * common/gdb_splay_tree.h: Rename include guard.
14437 * common/gdb_setjmp.h: Rename include guard.
14438 * common/gdb_ref_ptr.h: Rename include guard.
14439 * common/gdb_optional.h: Rename include guard.
14440 * common/gdb_locale.h: Rename include guard.
14441 * common/gdb_assert.h: Rename include guard.
14442 * common/filtered-iterator.h: Rename include guard.
14443 * common/filestuff.h: Rename include guard.
14444 * common/fileio.h: Rename include guard.
14445 * common/environ.h: Rename include guard.
14446 * common/common-utils.h: Rename include guard.
14447 * common/common-types.h: Rename include guard.
14448 * common/common-regcache.h: Rename include guard.
14449 * common/common-inferior.h: Rename include guard.
14450 * common/common-gdbthread.h: Rename include guard.
14451 * common/common-exceptions.h: Rename include guard.
14452 * common/common-defs.h: Rename include guard.
14453 * common/common-debug.h: Rename include guard.
14454 * common/cleanups.h: Rename include guard.
14455 * common/buffer.h: Rename include guard.
14456 * common/btrace-common.h: Rename include guard.
14457 * common/break-common.h: Rename include guard.
14458 * cli/cli-utils.h: Rename include guard.
14459 * cli/cli-style.h: Rename include guard.
14460 * cli/cli-setshow.h: Rename include guard.
14461 * cli/cli-script.h: Rename include guard.
14462 * cli/cli-interp.h: Rename include guard.
14463 * cli/cli-decode.h: Rename include guard.
14464 * cli/cli-cmds.h: Rename include guard.
14465 * charset-list.h: Add include guard.
14466 * buildsym-legacy.h: Rename include guard.
14467 * bfin-tdep.h: Add include guard.
14468 * ax.h: Rename include guard.
14469 * arm-linux-tdep.h: Add include guard.
14470 * arm-fbsd-tdep.h: Add include guard.
14471 * arch/xtensa.h: Rename include guard.
14472 * arch/tic6x.h: Add include guard.
14473 * arch/i386.h: Add include guard.
14474 * arch/arm.h: Rename include guard.
14475 * arch/arm-linux.h: Rename include guard.
14476 * arch/arm-get-next-pcs.h: Rename include guard.
14477 * arch/amd64.h: Add include guard.
14478 * arch/aarch64-insn.h: Rename include guard.
14479 * arch-utils.h: Rename include guard.
14480 * annotate.h: Add include guard.
14481 * amd64-darwin-tdep.h: Rename include guard.
14482 * aarch64-linux-tdep.h: Add include guard.
14483 * aarch64-fbsd-tdep.h: Add include guard.
14484 * aarch32-linux-nat.h: Add include guard.
14485
ab9268d2
PW
144862019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14487
14488 * macrotab.c (macro_define_internal): New function that
14489 factorizes macro_define_object_internal and macro_define_function
14490 code.
14491 (macro_define_object_internal): Use macro_define_internal.
14492 (macro_define_function): Likewise.
14493
bb0da2b4
PW
144942019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14495
14496 * macrocmd.c (extract_identifier): Return
14497 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14498 callers.
14499
424eb552
JB
145002019-02-06 John Baldwin <jhb@FreeBSD.org>
14501
14502 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14503
1688cb29
TT
145042019-02-05 Tom Tromey <tom@tromey.com>
14505
14506 * target.c (target_stack::unpush): Move assertion earlier.
14507
b5eba2d8
TT
145082019-01-30 Tom Tromey <tom@tromey.com>
14509
14510 PR python/23615:
14511 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14512 (gdbpy_parse_and_eval): Likewise.
14513 * python/python-internal.h (gdbpy_allow_threads): New class.
14514
7054e2ff
JB
145152019-01-28 John Baldwin <jhb@FreeBSD.org>
14516
14517 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14518 (aarch64_fbsd_fpregmap): Move earlier.
14519 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14520 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14521 instead of individual calls to trad_frame_set_reg_addr.
14522 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14523 earlier.
14524 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14525 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14526 instead of individual calls to trad_frame_set_reg_addr.
14527
36c25ffa
AH
145282019-01-28 Alan Hayward <alan.hayward@arm.com>
14529
14530 * CONTRIBUTE: Replace contribution list with wiki link.
14531
a0707f3c
TT
145322019-01-25 Tom Tromey <tom@tromey.com>
14533
14534 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14535
0747795c
TT
145362019-01-25 Tom Tromey <tom@tromey.com>
14537
14538 * xtensa-linux-nat.c: Fix common/ includes.
14539 * xml-support.h: Fix common/ includes.
14540 * xml-support.c: Fix common/ includes.
14541 * x86-linux-nat.c: Fix common/ includes.
14542 * windows-nat.c: Fix common/ includes.
14543 * varobj.h: Fix common/ includes.
14544 * varobj.c: Fix common/ includes.
14545 * value.c: Fix common/ includes.
14546 * valops.c: Fix common/ includes.
14547 * utils.c: Fix common/ includes.
14548 * unittests/xml-utils-selftests.c: Fix common/ includes.
14549 * unittests/utils-selftests.c: Fix common/ includes.
14550 * unittests/unpack-selftests.c: Fix common/ includes.
14551 * unittests/tracepoint-selftests.c: Fix common/ includes.
14552 * unittests/style-selftests.c: Fix common/ includes.
14553 * unittests/string_view-selftests.c: Fix common/ includes.
14554 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14555 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14556 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14557 * unittests/rsp-low-selftests.c: Fix common/ includes.
14558 * unittests/parse-connection-spec-selftests.c: Fix common/
14559 includes.
14560 * unittests/optional-selftests.c: Fix common/ includes.
14561 * unittests/offset-type-selftests.c: Fix common/ includes.
14562 * unittests/observable-selftests.c: Fix common/ includes.
14563 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14564 * unittests/memrange-selftests.c: Fix common/ includes.
14565 * unittests/memory-map-selftests.c: Fix common/ includes.
14566 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14567 * unittests/function-view-selftests.c: Fix common/ includes.
14568 * unittests/environ-selftests.c: Fix common/ includes.
14569 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14570 * unittests/common-utils-selftests.c: Fix common/ includes.
14571 * unittests/cli-utils-selftests.c: Fix common/ includes.
14572 * unittests/array-view-selftests.c: Fix common/ includes.
14573 * ui-file.c: Fix common/ includes.
14574 * tui/tui-io.c: Fix common/ includes.
14575 * tracepoint.h: Fix common/ includes.
14576 * tracepoint.c: Fix common/ includes.
14577 * tracefile-tfile.c: Fix common/ includes.
14578 * top.h: Fix common/ includes.
14579 * top.c: Fix common/ includes.
14580 * thread.c: Fix common/ includes.
14581 * target/waitstatus.h: Fix common/ includes.
14582 * target/waitstatus.c: Fix common/ includes.
14583 * target.h: Fix common/ includes.
14584 * target.c: Fix common/ includes.
14585 * target-memory.c: Fix common/ includes.
14586 * target-descriptions.c: Fix common/ includes.
14587 * symtab.h: Fix common/ includes.
14588 * symfile.c: Fix common/ includes.
14589 * stap-probe.c: Fix common/ includes.
14590 * spu-linux-nat.c: Fix common/ includes.
14591 * sparc-nat.c: Fix common/ includes.
14592 * source.c: Fix common/ includes.
14593 * solib.c: Fix common/ includes.
14594 * solib-target.c: Fix common/ includes.
14595 * ser-unix.c: Fix common/ includes.
14596 * ser-tcp.c: Fix common/ includes.
14597 * ser-pipe.c: Fix common/ includes.
14598 * ser-base.c: Fix common/ includes.
14599 * selftest-arch.c: Fix common/ includes.
14600 * s12z-tdep.c: Fix common/ includes.
14601 * rust-exp.y: Fix common/ includes.
14602 * rs6000-aix-tdep.c: Fix common/ includes.
14603 * riscv-tdep.c: Fix common/ includes.
14604 * remote.c: Fix common/ includes.
14605 * remote-notif.h: Fix common/ includes.
14606 * remote-fileio.h: Fix common/ includes.
14607 * remote-fileio.c: Fix common/ includes.
14608 * regcache.h: Fix common/ includes.
14609 * regcache.c: Fix common/ includes.
14610 * record-btrace.c: Fix common/ includes.
14611 * python/python.c: Fix common/ includes.
14612 * python/py-type.c: Fix common/ includes.
14613 * python/py-inferior.c: Fix common/ includes.
14614 * progspace.h: Fix common/ includes.
14615 * producer.c: Fix common/ includes.
14616 * procfs.c: Fix common/ includes.
14617 * proc-api.c: Fix common/ includes.
14618 * printcmd.c: Fix common/ includes.
14619 * ppc-linux-nat.c: Fix common/ includes.
14620 * parser-defs.h: Fix common/ includes.
14621 * osdata.c: Fix common/ includes.
14622 * obsd-nat.c: Fix common/ includes.
14623 * nat/x86-linux.c: Fix common/ includes.
14624 * nat/x86-linux-dregs.c: Fix common/ includes.
14625 * nat/x86-dregs.h: Fix common/ includes.
14626 * nat/x86-dregs.c: Fix common/ includes.
14627 * nat/ppc-linux.c: Fix common/ includes.
14628 * nat/mips-linux-watch.h: Fix common/ includes.
14629 * nat/mips-linux-watch.c: Fix common/ includes.
14630 * nat/linux-waitpid.c: Fix common/ includes.
14631 * nat/linux-ptrace.h: Fix common/ includes.
14632 * nat/linux-ptrace.c: Fix common/ includes.
14633 * nat/linux-procfs.c: Fix common/ includes.
14634 * nat/linux-personality.c: Fix common/ includes.
14635 * nat/linux-osdata.c: Fix common/ includes.
14636 * nat/linux-namespaces.c: Fix common/ includes.
14637 * nat/linux-btrace.h: Fix common/ includes.
14638 * nat/linux-btrace.c: Fix common/ includes.
14639 * nat/fork-inferior.c: Fix common/ includes.
14640 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14641 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14642 * nat/aarch64-linux.c: Fix common/ includes.
14643 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14644 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14645 * namespace.h: Fix common/ includes.
14646 * mips-linux-tdep.c: Fix common/ includes.
14647 * minsyms.c: Fix common/ includes.
14648 * mi/mi-parse.h: Fix common/ includes.
14649 * mi/mi-main.c: Fix common/ includes.
14650 * mi/mi-cmd-env.c: Fix common/ includes.
14651 * memrange.h: Fix common/ includes.
14652 * memattr.c: Fix common/ includes.
14653 * maint.h: Fix common/ includes.
14654 * maint.c: Fix common/ includes.
14655 * main.c: Fix common/ includes.
14656 * machoread.c: Fix common/ includes.
14657 * location.c: Fix common/ includes.
14658 * linux-thread-db.c: Fix common/ includes.
14659 * linux-nat.c: Fix common/ includes.
14660 * linux-fork.c: Fix common/ includes.
14661 * inline-frame.c: Fix common/ includes.
14662 * infrun.c: Fix common/ includes.
14663 * inflow.c: Fix common/ includes.
14664 * inferior.h: Fix common/ includes.
14665 * inferior.c: Fix common/ includes.
14666 * infcmd.c: Fix common/ includes.
14667 * inf-ptrace.c: Fix common/ includes.
14668 * inf-child.c: Fix common/ includes.
14669 * ia64-linux-nat.c: Fix common/ includes.
14670 * i387-tdep.c: Fix common/ includes.
14671 * i386-tdep.c: Fix common/ includes.
14672 * i386-linux-tdep.c: Fix common/ includes.
14673 * i386-linux-nat.c: Fix common/ includes.
14674 * i386-go32-tdep.c: Fix common/ includes.
14675 * i386-fbsd-tdep.c: Fix common/ includes.
14676 * i386-fbsd-nat.c: Fix common/ includes.
14677 * guile/scm-type.c: Fix common/ includes.
14678 * guile/guile.c: Fix common/ includes.
14679 * go32-nat.c: Fix common/ includes.
14680 * gnu-nat.c: Fix common/ includes.
14681 * gdbthread.h: Fix common/ includes.
14682 * gdbarch-selftests.c: Fix common/ includes.
14683 * gdb_usleep.c: Fix common/ includes.
14684 * gdb_select.h: Fix common/ includes.
14685 * gdb_bfd.c: Fix common/ includes.
14686 * gcore.c: Fix common/ includes.
14687 * fork-child.c: Fix common/ includes.
14688 * findvar.c: Fix common/ includes.
14689 * fbsd-nat.c: Fix common/ includes.
14690 * event-top.c: Fix common/ includes.
14691 * event-loop.c: Fix common/ includes.
14692 * dwarf2read.c: Fix common/ includes.
14693 * dwarf2loc.c: Fix common/ includes.
14694 * dwarf2-frame.c: Fix common/ includes.
14695 * dwarf-index-cache.c: Fix common/ includes.
14696 * dtrace-probe.c: Fix common/ includes.
14697 * disasm-selftests.c: Fix common/ includes.
14698 * defs.h: Fix common/ includes.
14699 * csky-tdep.c: Fix common/ includes.
14700 * cp-valprint.c: Fix common/ includes.
14701 * cp-support.h: Fix common/ includes.
14702 * cp-support.c: Fix common/ includes.
14703 * corelow.c: Fix common/ includes.
14704 * completer.h: Fix common/ includes.
14705 * completer.c: Fix common/ includes.
14706 * compile/compile.c: Fix common/ includes.
14707 * compile/compile-loc2c.c: Fix common/ includes.
14708 * compile/compile-cplus-types.c: Fix common/ includes.
14709 * compile/compile-cplus-symbols.c: Fix common/ includes.
14710 * command.h: Fix common/ includes.
14711 * cli/cli-dump.c: Fix common/ includes.
14712 * cli/cli-cmds.c: Fix common/ includes.
14713 * charset.c: Fix common/ includes.
14714 * build-id.c: Fix common/ includes.
14715 * btrace.h: Fix common/ includes.
14716 * btrace.c: Fix common/ includes.
14717 * breakpoint.h: Fix common/ includes.
14718 * breakpoint.c: Fix common/ includes.
14719 * ax.h:
14720 (enum agent_op): Fix common/ includes.
14721 * ax-general.c (struct aop_map): Fix common/ includes.
14722 * ax-gdb.c: Fix common/ includes.
14723 * auxv.c: Fix common/ includes.
14724 * auto-load.c: Fix common/ includes.
14725 * arm-tdep.c: Fix common/ includes.
14726 * arch/riscv.c: Fix common/ includes.
14727 * arch/ppc-linux-common.c: Fix common/ includes.
14728 * arch/i386.c: Fix common/ includes.
14729 * arch/arm.c: Fix common/ includes.
14730 * arch/arm-linux.c: Fix common/ includes.
14731 * arch/arm-get-next-pcs.c: Fix common/ includes.
14732 * arch/amd64.c: Fix common/ includes.
14733 * arch/aarch64.c: Fix common/ includes.
14734 * arch/aarch64-insn.c: Fix common/ includes.
14735 * arch-utils.c: Fix common/ includes.
14736 * amd64-windows-tdep.c: Fix common/ includes.
14737 * amd64-tdep.c: Fix common/ includes.
14738 * amd64-sol2-tdep.c: Fix common/ includes.
14739 * amd64-obsd-tdep.c: Fix common/ includes.
14740 * amd64-nbsd-tdep.c: Fix common/ includes.
14741 * amd64-linux-tdep.c: Fix common/ includes.
14742 * amd64-linux-nat.c: Fix common/ includes.
14743 * amd64-fbsd-tdep.c: Fix common/ includes.
14744 * amd64-fbsd-nat.c: Fix common/ includes.
14745 * amd64-dicos-tdep.c: Fix common/ includes.
14746 * amd64-darwin-tdep.c: Fix common/ includes.
14747 * agent.c: Fix common/ includes.
14748 * ada-lang.h: Fix common/ includes.
14749 * ada-lang.c: Fix common/ includes.
14750 * aarch64-tdep.c: Fix common/ includes.
14751
2f5c153e
TT
147522019-01-25 Tom Tromey <tom@tromey.com>
14753
14754 * common/create-version.sh: Use common/version.h.
14755
adc6a863
PA
147562019-01-24 Pedro Alves <palves@redhat.com>
14757
14758 * infrun.c (signal_stop, signal_print, signal_program)
14759 (signal_catch, signal_pass): Now arrays instead of pointers.
14760 (update_signals_program_target, do_target_resume)
14761 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14762 * linux-nat.c (linux_nat_target::pass_signals)
14763 (linux_nat_target::create_inferior, linux_nat_target::attach):
14764 Adjust.
14765 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14766 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14767 * procfs.c (procfs_target::pass_signals): Adjust.
14768 * record-full.c (record_full_target::resume): Adjust.
14769 * remote.c (remote_target::pass_signals)
14770 (remote_target::program_signals): Adjust.
14771 * target-debug.h (target_debug_print_signals): Now takes a
14772 gdb::array_view as parameter. Adjust.
14773 * target.h (target_ops) <pass_signals, program_signals>: Replace
14774 pointer and length parameters with gdb::array_view.
14775 (target_pass_signals, target_program_signals): Likewise.
14776 * target-delegates.c: Regenerate.
14777
3046d67a
PA
147782019-01-24 Pedro Alves <palves@redhat.com>
14779
14780 * common/forward-scope-exit.h
14781 (forward_scope_exit::forward_scope_exit): Pass arguments to
14782 m_bind_function directly, instead of creating a std::bind and
14783 copying that.
14784
353229bf
AH
147852019-01-24 Alan Hayward <alan.hayward@arm.com>
14786
14787 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14788 for static members.
14789 (pass_in_v_vfp_candidate): Likewise.
14790
311dc83a
TT
147912019-01-23 Tom Tromey <tom@tromey.com>
14792 Pedro Alves <palves@redhat.com>
14793
14794 * regcache.c (class regcache_invalidator): Remove.
14795 (regcache::raw_write): Use make_scope_exit.
14796
296bd123
TT
147972019-01-23 Tom Tromey <tom@tromey.com>
14798
14799 * ui-out.h (class ui_out_emit_type): Update comment.
14800
979a0d13
TT
148012019-01-23 Tom Tromey <tom@tromey.com>
14802
14803 * infrun.c (fetch_inferior_event): Update comment.
14804
d238133d
TT
148052019-01-23 Tom Tromey <tom@tromey.com>
14806 Pedro Alves <palves@redhat.com>
14807
14808 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14809 parameter.
14810 (fetch_inferior_event): Use SCOPE_EXIT.
14811
14812
9885e6bb
TT
148132019-01-23 Tom Tromey <tom@tromey.com>
14814 Pedro Alves <palves@redhat.com>
14815
14816 * infrun.c (disable_thread_events): Delete.
14817 (stop_all_threads): Use SCOPE_EXIT.
14818
286526c1
TT
148192019-01-23 Tom Tromey <tom@tromey.com>
14820 Pedro Alves <palves@redhat.com>
14821
14822 * symfile.c: Include forward-scope-exit.h.
14823 (clear_symtab_users_cleanup): Replace forward declaration with
14824 a FORWARD_SCOPE_EXIT.
14825 (syms_from_objfile_1): Use the forward_scope_exit and
14826 gdb::optional instead of cleanup_function.
14827 (reread_symbols): Use the forward_scope_exit instead of
14828 cleanup_function.
14829 (clear_symtab_users_cleanup): Remove function.
14830
1db93f14
TT
148312019-01-23 Tom Tromey <tom@tromey.com>
14832 Pedro Alves <palves@redhat.com>
14833
14834 * linux-nat.c: Include scope-exit.h.
14835 (cleanup_target_stop): Remove.
14836 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14837 SCOPE_EXIT.
14838
2cc83d1e
TT
148392019-01-23 Tom Tromey <tom@tromey.com>
14840 Pedro Alves <palves@redhat.com>
14841
14842 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14843 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14844
694c6bf5
TT
148452019-01-23 Tom Tromey <tom@tromey.com>
14846 Andrew Burgess <andrew.burgess@embecosm.com>
14847 Pedro Alves <palves@redhat.com>
14848
14849 * infrun.c (fetch_inferior_event): Use scope_exit.
14850 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14851 * top.c (execute_command): Use scope_exit.
14852 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14853 * utils.c (do_bpstat_clear_actions_cleanup)
14854 (make_bpstat_clear_actions_cleanup): Remove.
14855
4c41382a
TT
148562019-01-23 Tom Tromey <tom@tromey.com>
14857 Pedro Alves <palves@redhat.com>
14858
14859 * infrun.c: Include "common/scope-exit.h"
14860 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14861 (wait_for_inferior): Use SCOPE_EXIT.
14862 (fetch_inferior_event): Use scope_exit.
14863
89f8fb50
TT
148642019-01-23 Tom Tromey <tom@tromey.com>
14865 Pedro Alves <palves@redhat.com>
14866
14867 * breakpoint.c (create_breakpoint): Remove cleanup.
14868
5419bdae
TT
148692019-01-23 Tom Tromey <tom@tromey.com>
14870 Andrew Burgess <andrew.burgess@embecosm.com>
14871 Pedro Alves <palves@redhat.com>
14872
e587ef42
PA
148732019-01-23 Pedro Alves <palves@redhat.com>
14874
14875 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14876
77f0e74c
PA
148772019-01-23 Pedro Alves <palves@redhat.com>
14878 Andrew Burgess <andrew.burgess@embecosm.com>
14879
14880 * gdbthread.h: Include "common/forward-scope-exit.h".
14881 (scoped_finish_thread_state): Redefine custom class in terms of
14882 forward_scope_exit.
14883
5b9b3e53
PA
148842019-01-23 Pedro Alves <palves@redhat.com>
14885 Andrew Burgess <andrew.burgess@embecosm.com>
14886
14887 * common/forward-scope-exit.h: New file.
14888
54b65c9b
PA
148892019-01-23 Pedro Alves <palves@redhat.com>
14890 Andrew Burgess <andrew.burgess@embecosm.com>
14891 Tom Tromey <tom@tromey.com>
14892
14893 * common/scope-exit.h: New file.
14894
cf08fb29
PA
148952019-01-23 Pedro Alves <palves@redhat.com>
14896
14897 * common/preprocessor.h (ESC): Rename to ...
14898 (ESC_PARENS): ... this.
14899 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14900 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14901
ae73e2e2
TT
149022019-01-23 Tom Tromey <tom@tromey.com>
14903
14904 * language.h (class scoped_switch_to_sym_language_if_auto):
14905 Initialize m_lang in both cases.
14906
6594e122
AH
149072019-01-23 Alan Hayward <alan.hayward@arm.com>
14908
14909 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14910 with XCNEW.
14911
a7c9855d
TT
149122019-01-22 Tom Tromey <tom@tromey.com>
14913
14914 * corelow.c: Do not include sys/file.h.
14915
93cc1d53
TT
149162019-01-22 Tom Tromey <tom@tromey.com>
14917
14918 * tui/tui-wingeneral.h: Include gdb_curses.h.
14919
38561778
TT
149202019-01-22 Tom Tromey <tom@tromey.com>
14921
14922 * source-cache.h (class source_cache) <get_source_lines,
14923 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14924
37b3ab5b
TT
149252019-01-22 Tom Tromey <tom@tromey.com>
14926
14927 * remote-fileio.h (struct remote_target): Declare.
14928
3fabc016
TT
149292019-01-22 Tom Tromey <tom@tromey.com>
14930
14931 * python/py-arch.c: Do not include py-ref.h.
14932 * python/py-bpevent.c: Do not include py-ref.h.
14933 * python/py-cmd.c: Do not include py-ref.h.
14934 * python/py-continueevent.c: Do not include py-ref.h.
14935 * python/py-event.h: Do not include py-ref.h.
14936 * python/py-evtregistry.c: Do not include py-ref.h.
14937 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14938 * python/py-frame.c: Do not include py-ref.h.
14939 * python/py-framefilter.c: Do not include py-ref.h.
14940 * python/py-function.c: Do not include py-ref.h.
14941 * python/py-infevents.c: Do not include py-ref.h.
14942 * python/py-linetable.c: Do not include py-ref.h.
14943 * python/py-objfile.c: Do not include py-ref.h.
14944 * python/py-param.c: Do not include py-ref.h.
14945 * python/py-prettyprint.c: Do not include py-ref.h.
14946 * python/py-progspace.c: Do not include py-ref.h.
14947 * python/py-symbol.c: Do not include py-ref.h.
14948 * python/py-symtab.c: Do not include py-ref.h.
14949 * python/py-type.c: Do not include py-ref.h.
14950 * python/py-unwind.c: Do not include py-ref.h.
14951 * python/py-utils.c: Do not include py-ref.h.
14952 * python/py-value.c: Do not include py-ref.h.
14953 * python/py-varobj.c: Do not include py-ref.h.
14954 * python/py-xmethods.c: Do not include py-ref.h.
14955 * python/python.c: Do not include py-ref.h.
14956 * varobj.c: Do not include py-ref.h.
14957
6b4d7774
TT
149582019-01-22 Tom Tromey <tom@tromey.com>
14959
14960 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14961 keyword for bcache.
14962
7af7e9b5
TT
149632019-01-22 Tom Tromey <tom@tromey.com>
14964
14965 * compile/compile-cplus-types.c: Remove a comment by #include.
14966
951d1049
TT
149672019-01-22 Tom Tromey <tom@tromey.com>
14968
14969 * compile/gcc-c-plugin.h: Include compile-internal.h.
14970
d65d5705
TT
149712019-01-22 Tom Tromey <tom@tromey.com>
14972
14973 * stabsread.c (EXTERN): Do not define.
14974 (symnum, next_symbol_text_func, processing_gcc_compilation)
14975 (within_function, global_sym_chain, global_stabs)
14976 (previous_stab_code, this_object_header_files)
14977 (n_this_object_header_files)
14978 (n_allocated_this_object_header_files): Define.
14979 * stabsread.h (EXTERN): Never define. Use "extern".
14980
b6fb1ee5
PW
149812019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14982
14983 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14984 history_value.
14985
be6d4f74
TT
149862019-01-21 Tom Tromey <tom@tromey.com>
14987
14988 * ui-out.c: Fix includes.
14989 * tui/tui-source.c: Fix includes.
14990 * target.c: Fix includes.
14991 * remote.c: Fix includes.
14992 * regcache.c: Fix includes.
14993 * python/py-block.c: Fix includes.
14994 * printcmd.c: Fix includes.
14995 * or1k-tdep.c: Fix includes.
14996 * mi/mi-main.c: Fix includes.
14997 * m32r-tdep.c: Fix includes.
14998 * csky-tdep.c: Fix includes.
14999 * compile/compile-cplus-types.c: Fix includes.
15000 * cli/cli-interp.c: Fix includes.
15001
73021deb
AH
150022019-01-21 Alan Hayward <alan.hayward@arm.com>
15003
15004 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15005 for padding.
15006
7932255d
TT
150072019-01-16 Tom Tromey <tom@tromey.com>
15008
15009 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15010 earlier.
15011 (struct objfile) <msymbols_range>: Move from top level.
15012 <msymbols>: New method.
15013 (class objfile_msymbols): Remove.
15014 * symtab.c (default_collect_symbol_completion_matches_break_on):
15015 Update.
15016 * symmisc.c (dump_msymbols): Update.
15017 * stabsread.c (scan_file_globals): Update.
15018 * objc-lang.c (info_selectors_command, info_classes_command)
15019 (find_methods): Update.
15020 * minsyms.c (find_solib_trampoline_target): Update.
15021 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15022 * coffread.c (coff_symfile_read): Update.
15023 * ada-lang.c (ada_lookup_simple_minsym)
15024 (ada_collect_symbol_completion_matches): Update.
15025
604b1bfb
TT
150262019-01-16 Tom Tromey <tom@tromey.com>
15027
15028 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15029 type. Remove no-argument constructor.
15030 <iterator::operator++>: Simplify.
15031 <begin>: Update.
15032 <end>: Use minimal_symbol_count.
15033
f252c6d5
TT
150342019-01-16 Tom Tromey <tom@tromey.com>
15035
15036 * objfiles.h (struct objfile) <psymtabs>: New method.
15037 (class objfile_psymtabs): Remove.
15038 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15039 typedef.
15040 <range>: New method.
15041 (require_partial_symbols): Change return type.
15042 * psymtab.c (require_partial_symbols)
15043 (psym_expand_symtabs_matching): Update.
15044 * mdebugread.c (parse_partial_symbols): Update.
15045 * dbxread.c (dbx_end_psymtab): Update.
15046
b669c953
TT
150472019-01-15 Tom Tromey <tom@tromey.com>
15048
15049 * symtab.c (lookup_objfile_from_block)
15050 (lookup_symbol_in_objfile_symtabs)
15051 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15052 (find_line_symtab, info_sources_command)
15053 (default_collect_symbol_completion_matches_break_on)
15054 (make_source_files_completion_list): Update.
15055 * symmisc.c (print_objfile_statistics, dump_objfile)
15056 (maintenance_print_symbols, maintenance_info_symtabs)
15057 (maintenance_check_symtabs, maintenance_info_line_tables):
15058 Update.
15059 * source.c (select_source_symtab)
15060 (forget_cached_source_info_for_objfile): Update.
15061 * objfiles.h (class objfile_compunits): Remove.
15062 (struct objfile) <compunits_range>: New typedef.
15063 (compunits): New method.
15064 * objfiles.c (objfile_relocate1): Update.
15065 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15066 * maint.c (count_symtabs_and_blocks): Update.
15067 * linespec.c (iterate_over_all_matching_symtabs): Update.
15068 * cp-support.c (add_symbol_overload_list_qualified): Update.
15069 * coffread.c (coff_symtab_read): Update.
15070 * ada-lang.c (add_nonlocal_symbols)
15071 (ada_collect_symbol_completion_matches)
15072 (ada_add_global_exceptions): Update.
15073
7e955d83
TT
150742019-01-15 Tom Tromey <tom@tromey.com>
15075
15076 * progspace.h (program_space) <objfiles_safe_range>: New
15077 typedef.
15078 <objfiles_safe>: New method.
15079 * objfiles.h (class all_objfiles_safe): Remove.
15080 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15081 * jit.c (jit_inferior_exit_hook): Update.
15082
2030c079
TT
150832019-01-17 Tom Tromey <tom@tromey.com>
15084
15085 * progspace.h (program_space) <objfiles_range>: New typedef.
15086 <objfiles>: New method.
15087 <objfiles_head>: Rename from objfiles.
15088 (object_files): Update.
15089 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15090 * guile/scm-pretty-print.c
15091 (ppscm_find_pretty_printer_from_objfiles): Update.
15092 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15093 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15094 Update.
15095 * python/py-progspace.c (pspy_get_objfiles): Update.
15096 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15097 Update.
15098 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15099 (objfpy_lookup_objfile_by_build_id): Update.
15100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15101 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15102 Update.
15103 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15104 (expand_symtab_containing_pc, lookup_objfile_from_block)
15105 (lookup_static_symbol, basic_lookup_transparent_type)
15106 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15107 (find_line_symtab, info_sources_command)
15108 (default_collect_symbol_completion_matches_break_on)
15109 (make_source_files_completion_list, find_main_name): Update.
15110 * symmisc.c (print_symbol_bcache_statistics)
15111 (print_objfile_statistics, maintenance_print_symbols)
15112 (maintenance_print_msymbols, maintenance_print_objfiles)
15113 (maintenance_info_symtabs, maintenance_check_symtabs)
15114 (maintenance_expand_symtabs, maintenance_info_line_tables):
15115 Update.
15116 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15117 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15118 (map_overlay_command, unmap_overlay_command)
15119 (simple_overlay_update, expand_symtabs_matching)
15120 (map_symbol_filenames): Update.
15121 * symfile-debug.c (set_debug_symfile): Update.
15122 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15123 Update.
15124 * source.c (select_source_symtab, forget_cached_source_info):
15125 Update.
15126 * solib.c (solib_read_symbols): Update.
15127 * solib-spu.c (append_ocl_sos): Update.
15128 * psymtab.c (maintenance_print_psymbols)
15129 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15130 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15131 * printcmd.c (info_symbol_command): Update.
15132 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15133 Update.
15134 * objfiles.h (class all_objfiles): Remove.
15135 * objfiles.c (have_partial_symbols, have_full_symbols)
15136 (have_minimal_symbols, qsort_cmp, update_section_map)
15137 (shared_objfile_contains_address_p)
15138 (default_iterate_over_objfiles_in_search_order): Update.
15139 * objc-lang.c (info_selectors_command, info_classes_command)
15140 (find_methods): Update.
15141 * minsyms.c (find_solib_trampoline_target): Update.
15142 * maint.c (maintenance_info_sections)
15143 (maintenance_translate_address, count_symtabs_and_blocks):
15144 Update.
15145 * main.c (captured_main_1): Update.
15146 * linux-thread-db.c (try_thread_db_load_from_pdir)
15147 (has_libpthread): Update.
15148 * linespec.c (iterate_over_all_matching_symtabs)
15149 (search_minsyms_for_name): Update.
15150 * jit.c (jit_find_objf_with_entry_addr): Update.
15151 * hppa-tdep.c (find_unwind_entry)
15152 (hppa_lookup_stub_minimal_symbol): Update.
15153 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15154 Update.
15155 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15156 (elf_gnu_ifunc_resolve_by_got): Update.
15157 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15158 * dwarf-index-write.c (save_gdb_index_command): Update.
15159 * cp-support.c (add_symbol_overload_list_qualified): Update.
15160 * breakpoint.c (create_overlay_event_breakpoint)
15161 (create_longjmp_master_breakpoint)
15162 (create_std_terminate_master_breakpoint)
15163 (create_exception_master_breakpoint): Update.
15164 * blockframe.c (find_pc_partial_function): Update.
15165 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15166 (ada_collect_symbol_completion_matches)
15167 (ada_add_global_exceptions): Update.
15168
776489e0
TT
151692019-01-17 Tom Tromey <tom@tromey.com>
15170
15171 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15172 declare VEC.
15173 (solib_target_parse_libraries): Change return type.
15174 (library_list_start_segment, library_list_start_section)
15175 (library_list_end_library, library_list_start_library); Update.
15176 (solib_target_free_library_list): Remove.
15177 (solib_target_parse_libraries): Remove cleanup. Change return
15178 type.
15179 (solib_target_current_sos): Update.
15180
6471e7d2
TT
151812019-01-17 Tom Tromey <tromey@bapiya>
15182
15183 * valprint.c: Replace "the the" with "the".
15184 * symtab.c: Replace "the the" with "the".
15185 * solib.c: Replace "the the" with "the".
15186 * solib-dsbt.c: Replace "the the" with "the".
15187 * linespec.c: Replace "the the" with "the".
15188 * dwarf2loc.h: Replace "the the" with "the".
15189 * amd64-windows-tdep.c: Replace "the the" with "the".
15190 * aarch64-tdep.c: Replace "the the" with "the".
15191
c24bdb02
KS
151922019-01-16 Keith Seitz <keiths@redhat.com>
15193
15194 PR gdb/23773
15195 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15196 <builder>: Rename to ..
15197 <m_builder>: ... this and make private.
15198 (dwarf2_cu::get_builder): New method. Change all users of
15199 `builder' to use this method.
15200 (dwarf2_start_symtab): Move to ...
15201 (dwarf2_cu::start_symtab): ... here. Update all callers
15202 (setup_type_unit_groups): Move to ...
15203 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15204 callers.
15205 (dwarf2_cu::reset_builder): New method.
15206 (process_full_compunit, process_full_type_unit): Use
15207 dwarf2_cu::reset_builder.
15208 (follow_die_offset): Record the ancestor CU if it is different
15209 from the followed DIE's CU.
15210 (follow_die_sig_1): Likewise.
15211
8d64371b
TT
152122019-01-15 Tom Tromey <tom@tromey.com>
15213
15214 * remote.c (class remote_state) <buf>: Now a char_vector.
15215 <buf_size>: Remove.
15216 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15217 parameter.
15218 (remote_target::getpkt_or_notif_sane_1)
15219 (remote_target::getpkt_sane)
15220 (remote_target::getpkt_or_notif_sane): Likewise.
15221 (class remote_target) <putpkt>: New overload.
15222 (remote_target::read_frame): Change type of "buf_p". Remove
15223 sizeof_p parameter.
15224 (packet_ok): New overload.
15225 (packet_check_result): New overload.
15226 Update all uses.
15227
bb277751
TT
152282019-01-14 Tom Tromey <tom@tromey.com>
15229
15230 * remote-notif.c (handle_notification, remote_notif_ack)
15231 (remote_notif_parse): Make "buf" const.
15232 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15233 const.
15234 (remote_notif_parse, remote_notif_ack, handle_notification):
15235 Likewise.
15236 * remote.c (remote_notif_stop_parse): Make "buf" const.
15237 (remote_target::remote_parse_stop_reply): Make "buf" const.
15238 (remote_notif_stop_ack): Make "buf" const.
15239
05be00a8
TT
152402019-01-14 Tom Tromey <tom@tromey.com>
15241
15242 * remote.c (remote_console_output): Make parameter const.
15243
491adeca
TT
152442019-01-14 Tom Tromey <tom@tromey.com>
15245
15246 * target-debug.h (target_debug_print_signals): Constify.
15247 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15248 * procfs.c (procfs_target::pass_signals): Update.
15249 * linux-nat.c (linux_nat_target::pass_signals): Update.
15250 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15251 * target-delegates.c: Rebuild.
15252 * remote.c (remote_target::program_signals): Update.
15253 (remote_target::pass_signals): Update.
15254 * target.c (target_pass_signals): Constify argument.
15255 (target_program_signals): Likewise.
15256 * target.h (struct target_ops) <pass_signals, program_signals>:
15257 Constify argument.
15258 (target_pass_signals, target_program_signals): Constify argument.
15259
bbd94648
TT
152602019-01-14 Tom Tromey <tom@tromey.com>
15261
15262 PR tui/28819:
15263 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15264
6f072a10
PFC
152652019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15266
15267 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15268 field.
15269 * rs6000-tdep.c: Include reggroups.h.
15270 (IS_V_ALIAS_PSEUDOREG): Define.
15271 (rs6000_register_name): Return names for the "vX" aliases.
15272 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15273 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15274 aliases. Call default_register_reggroup_p for all other
15275 pseudo-registers.
15276 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15277 New functions.
15278 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15279 Handle "vX" aliases.
15280 (v_alias_pseudo_register_collect): New function.
15281 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15282 (rs6000_gdbarch_init): Initialize "vX" aliases as
15283 pseudo-registers. Restore registration of
15284 rs6000_pseudo_register_reggroup_p with
15285 set_tdesc_pseudo_register_reggroup_p.
15286
1a782351
MF
152872019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15288
15289 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15290 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15291 set_gdbarch_num_pseudo_regs.
15292
d73cff18
PW
152932019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15294
15295 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15296 Remove arg prefixname, add do_set and do_show.
15297 Add member functions set_list and show_list.
15298 * cli/cli-style.c (class cli_style_option): Update accordingly.
15299 (style_set_list): Move to file scope.
15300 (style_show_list): Likewise.
15301 (set_style): Call help_list.
15302 (show_style): Call cmd_show_list.
15303 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15304 Update to use the new macro.
15305
60a90376
JB
153062019-10-12 Joel Brobecker <brobecker@adacore.com>
15307
15308 * ada-lang.c (_initialize_ada_language): Expand the help text
15309 for the "catch exception" command.
15310
9d7c67bf
PW
153112019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15312
15313 * symtab.c (matching_obj_sections): Initialize obj,
15314 declare it closer to its usage.
15315
7cf47dc4
TT
153162019-01-10 Tom Tromey <tom@tromey.com>
15317
15318 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15319 (basic_inf_threads_range): Remove.
15320 (inf_threads_range, inf_non_exited_threads_range)
15321 (safe_inf_threads_range): Use next_adapter.
15322
d3cb6808
KS
153232019-01-10 Keith Seitz <keiths@redhat.com>
15324
15325 PR gdb/23712
15326 PR symtab/23010
15327 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15328 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15329
63a20375
KS
153302019-01-10 Keith Seitz <keiths@redhat.com>
15331
15332 PR gdb/23712
15333 PR symtab/23010
15334 * dictionary.c (pending_to_vector): Remove.
15335 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15336 Remove _1 suffix, replacing functions of the same name. Update
15337 all callers.
15338 (dict_create_hashed, dict_create_hashed_expandable)
15339 (dict_create_linear, dict_create_linear_expandable, dict_free)
15340 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15341 Make functions static.
15342
b026f593
KS
153432019-01-10 Keith Seitz <keiths@redhat.com>
15344
15345 PR gdb/23712
15346 PR symtab/23010
15347 * dictionary.h (struct dictionary): Replace declaration with
15348 multidictionary.
15349 (dict_create_hashed, dict_create_hashed_expandable)
15350 (dict_create_linear, dict_create_linear_expandable)
15351 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15352 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15353 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15354 taking multidictionary argument.
15355 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15356 * block.h (struct block) <dict>: Change to multidictionary
15357 and rename `multidict'.
15358 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15359 symmisc.c: Update all dictionary references to multidictionary.
15360
c7748ee9
KS
153612019-01-10 Keith Seitz <keiths@redhat.com>
15362
15363 PR gdb/23712
15364 PR symtab/23010
15365 * dictionary.c: Include unordered_map.
15366 (pending_to_vector): New function.
15367 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15368 Rewrite the non-"_1" functions to take vector instead
15369 of linked list.
15370 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15371 "new" _1 versions of the same name.
15372 (multidictionary): Define.
15373 (std::hash<enum language): New definition.
15374 (collate_pending_symbols_by_language, mdict_create_hashed)
15375 (mdict_create_hashed_expandable, mdict_create_linear)
15376 (mdict_create_linear_expandable, mdict_free)
15377 (find_language_dictionary, create_new_language_dictionary)
15378 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15379 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15380 (mdict_size, mdict_empty): New functions.
15381 * dictionary.h (mdict_iterator): Define.
15382
67aa1f3c
PA
153832019-01-10 Pedro Alves <palves@redhat.com>
15384
15385 * breakpoint.c (read_uploaded_action)
15386 (create_tracepoint_from_upload): Adjust to use
15387 gdb::unique_xmalloc_ptr.
15388 * ctf.c (ctf_write_uploaded_tp):
15389 (SET_ARRAY_FIELD): Use emplace_back.
15390 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15391 * tracefile-tfile.c (tfile_write_uploaded_tp):
15392 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15393 gdb::unique_xmalloc_ptr.
15394 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15395 at_string, cond_string, cmd_strings>: Replace char pointers
15396 with gdb::unique_xmalloc_ptr.
15397
2f667667
PA
153982019-01-10 Pedro Alves <palves@redhat.com>
15399
15400 * solib-target.c (library_list_start_library): Don't xstrdup name.
15401
36cb7237
PA
154022019-01-10 Pedro Alves <palves@redhat.com>
15403
15404 * mdebugread.c (parse_partial_symbols): Use
15405 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15406
da584958
AB
154072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15408
15409 * linux-fork.c (scoped_switch_fork_info)
15410 <~scoped_switch_fork_info>: Fix incorrect variable name.
15411
1ef8573c
AB
154122019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15413
15414 * linux-fork.c (scoped_switch_fork_info)
15415 <scoped_switch_fork_info>: Make explicit.
15416 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15417
8d7bcccb
TT
154182019-01-10 Tom Tromey <tom@tromey.com>
15419
15420 * objfiles.h (objfile::reset_psymtabs): Update.
15421 * objfiles.c (objfile::objfile): Update.
15422 * psymtab.h (psymtab_storage::obstack): Update.
15423 (psymtab_storage::m_obstack): Use gdb::optional.
15424 (class psymtab_storage): Update comment. Remove objfile
15425 parameter.
15426 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15427
b596a3c7
TT
154282019-01-10 Tom Tromey <tom@tromey.com>
15429
15430 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15431 <free_psymtabs>: Now private.
15432 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15433 (allocate_psymtab): Use new method.
15434
a9342b62
TT
154352019-01-10 Tom Tromey <tom@tromey.com>
15436
15437 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15438 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15439 * mdebugread.c (parse_partial_symbols): Use
15440 allocate_dependencies.
15441 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15442 allocate_dependencies.
15443 (process_psymtab_comp_unit_reader)
15444 (build_type_psymtab_dependencies): Likewise.
15445 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15446
5af70966
TT
154472019-01-10 Tom Tromey <tom@tromey.com>
15448
15449 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15450 PSYMBOL_SET_LANGUAGE.
15451 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15452
5923a04c
TT
154532019-01-10 Tom Tromey <tom@tromey.com>
15454
15455 * psymtab.h (psymtab_storage::obstack): New method.
15456 <m_obstack>: Rename from obstack; now private.
15457 * psymtab.c (psymtab_storage): Update.
15458 * dwarf2read.c (create_addrmap_from_index)
15459 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15460 Update.
15461
6d6a12bf
TT
154622019-01-10 Tom Tromey <tom@tromey.com>
15463
15464 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15465 * objfiles.h (objfile::reset_psymtabs): New method.
15466
d320c2b5
TT
154672019-01-10 Tom Tromey <tom@tromey.com>
15468
15469 * symmisc.c (print_symbol_bcache_statistics): Update.
15470 (print_objfile_statistics): Update.
15471 * symfile.c (reread_symbols): Update.
15472 * psymtab.h (class psymtab_storage): New.
15473 * psymtab.c (psymtab_storage): New constructor.
15474 (~psymtab_storage): New destructor.
15475 (require_partial_symbols): Update.
15476 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15477 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15478 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15479 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15480 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15481 (start_psymtab_common, end_psymtab_common)
15482 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15483 (allocate_psymtab): Update.
15484 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15485 Update.
15486 (dump_psymtab_addrmap, maintenance_print_psymbols)
15487 (maintenance_check_psymtabs): Update.
15488 (class objfile_psymtabs): Move to objfiles.h.
15489 * psympriv.h (discard_psymtab): Now inline.
15490 (psymtab_discarder::psymtab_discarder): Update.
15491 (psymtab_discarder::~psymtab_discarder): Update.
15492 (ALL_OBJFILE_PSYMTABS): Rewrite.
15493 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15494 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15495 Remove fields.
15496 <partial_symtabs>: New field.
15497 (class objfile_psymtabs): Move from psymtab.h. Update.
15498 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15499 psymbol_cache.
15500 (objfile::~objfile): Don't destroy psymbol_cache.
15501 * mdebugread.c (parse_partial_symbols): Update.
15502 * dwarf2read.c (create_addrmap_from_index)
15503 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15504 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15505 (add_partial_subprogram, dwarf2_ranges_read): Update.
15506 * dwarf-index-write.c (write_address_map)
15507 (write_one_signatured_type, recursively_write_psymbols)
15508 (class debug_names, class debug_names, write_psymtabs_to_index):
15509 Update.
15510
1d94a5a3
TT
155112019-01-10 Tom Tromey <tom@tromey.com>
15512
15513 * symtab.h (SYMBOL_SET_NAMES): Update.
15514 (symbol_set_names): Update.
15515 (MSYMBOL_SET_NAMES): Update.
15516 * symtab.c (symbol_set_names): Change argument to be an
15517 objfile_per_bfd_storage.
15518 * psymtab.c (add_psymbol_to_bcache): Update.
15519 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15520
0f14768a
TT
155212019-01-10 Tom Tromey <tom@tromey.com>
15522
15523 * symtab.c (create_demangled_names_hash): Change argument to be an
15524 objfile_per_bfd_storage.
15525 (symbol_set_names): Update.
15526
6eee24ce
TT
155272019-01-10 Tom Tromey <tom@tromey.com>
15528
15529 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15530 init_psymbol_list.
15531 * psymtab.c (init_psymbol_list): Do nothing if already called.
15532 * psympriv.h (init_psymbol_list): Add comment.
15533 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15534 init_psymbol_list.
15535 * dbxread.c (dbx_symfile_read): Unconditionally call
15536 init_psymbol_list.
15537
75aedd27
TT
155382019-01-10 Tom Tromey <tom@tromey.com>
15539
15540 * xcoffread.c (scan_xcoff_symtab): Update.
15541 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15542 "where".
15543 * mdebugread.c (parse_partial_symbols)
15544 (handle_psymbol_enumerators): Update.
15545 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15546 * dbxread.c (read_dbx_symtab): Update.
15547 * psympriv.h (psymbol_placement): New enum.
15548 (add_psymbol_to_list): Update.
15549
939652a5
TT
155502019-01-10 Tom Tromey <tom@tromey.com>
15551
15552 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15553 static_psymbols parameters.
15554 (scan_xcoff_symtab): Update.
15555 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15556 static_psymbols parameters.
15557 * psympriv.h (start_psymtab_common): Update.
15558 * mdebugread.c (parse_partial_symbols): Update.
15559 * dwarf2read.c (create_partial_symtab): Update.
15560 * dbxread.c (read_dbx_symtab): Update.
15561 (start_psymtab): Remove global_psymbols and static_psymbols
15562 parameters.
15563
baa62830
TT
155642019-01-10 Tom Tromey <tom@tromey.com>
15565
15566 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15567 * psymtab.c (allocate_psymtab): Add comment.
15568 * psympriv.h (allocate_psymtab): Add comment.
15569 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15570 initializations.
15571 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15572
0e8f53ba
TT
155732019-01-10 Tom Tromey <tom@tromey.com>
15574
15575 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15576 Don't declare.
15577 * mipsread.c: Include mdebugread.h.
15578 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15579 Declare.
15580 * elfread.c: Include mdebugread.h.
15581
b22a7c6a
TT
155822019-01-09 Tom Tromey <tom@tromey.com>
15583
15584 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15585 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15586 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15587 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15588 (psym_lookup_symbol, psym_find_last_source_symtab)
15589 (psym_forget_cached_source_info, psym_print_stats)
15590 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15591 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15592 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15593 (psym_find_compunit_symtab_by_address)
15594 (maintenance_print_psymbols, maintenance_info_psymtabs)
15595 (maintenance_check_psymtabs): Use ranged for.
15596 * psymtab.h (class objfile_psymtabs): New.
15597 (require_partial_symbols): Return objfile_psymtabs.
15598 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15599
3b9d3ac2
TT
156002019-01-09 Tom Tromey <tom@tromey.com>
15601
15602 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15603 (find_pc_mapped_section, list_overlays_command)
15604 (map_overlay_command, unmap_overlay_command)
15605 (simple_overlay_update): Use all_objfiles.
15606 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15607 * printcmd.c (info_symbol_command): Use all_objfiles.
15608 * objfiles.h (ALL_OBJSECTIONS): Remove.
15609 * maint.c (maintenance_translate_address): Use all_objfiles.
15610 * gcore.c (gcore_create_callback): Use all_objfiles.
15611 (objfile_find_memory_regions): Likewise.
15612
8b31193a
TT
156132019-01-09 Tom Tromey <tom@tromey.com>
15614
15615 * symtab.c (find_line_symtab, info_sources_command)
15616 (make_source_files_completion_list): Use objfile_compunits.
15617 * source.c (select_source_symtab): Use objfile_compunits.
15618 * objfiles.h (struct objfile): Update comment.
15619 (ALL_OBJFILES): Remove.
15620 (ALL_FILETABS): Remove.
15621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15622 objfile_compunits.
15623
d5da8b3c
TT
156242019-01-09 Tom Tromey <tom@tromey.com>
15625
15626 * symmisc.c (print_objfile_statistics, dump_objfile)
15627 (maintenance_print_symbols): Use compunit_filetabs.
15628 * source.c (forget_cached_source_info_for_objfile): Use
15629 compunit_filetabs.
15630 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15631 (ALL_FILETABS): Use compunit_filetabs.
15632 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15633 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15634
5accd1a0
TT
156352019-01-09 Tom Tromey <tom@tromey.com>
15636
15637 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15638 (compunit_filetabs): New.
15639 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15640 compunit_filetabs.
15641 (info_sources_command, make_source_files_completion_list): Remove
15642 declaration.
15643 * symmisc.c (print_objfile_statistics, dump_objfile)
15644 (maintenance_print_symbols): Remove declaration.
15645 (maintenance_info_symtabs): Use compunit_filetabs.
15646 (maintenance_info_line_tables): Likewise.
15647 * source.c (select_source_symtab): Change local variable name.
15648 (forget_cached_source_info_for_objfile): Remove declaration.
15649 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15650 * objfiles.c (objfile_relocate1): Remove declaration.
15651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15652 declaration.
15653 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15654 * coffread.c (coff_symtab_read): Remove declaration.
15655 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15656 compunit_filetabs.
15657
d8aeb77f
TT
156582019-01-09 Tom Tromey <tom@tromey.com>
15659
15660 * symtab.c (lookup_objfile_from_block)
15661 (find_pc_sect_compunit_symtab, search_symbols)
15662 (default_collect_symbol_completion_matches_break_on): Use
15663 objfile_compunits.
15664 * objfiles.h (ALL_COMPUNITS): Remove.
15665 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15666 * cp-support.c (add_symbol_overload_list_qualified): Use
15667 objfile_compunits.
15668 * ada-lang.c (ada_collect_symbol_completion_matches)
15669 (ada_add_global_exceptions): Use objfile_compunits.
15670
592553c4
TT
156712019-01-09 Tom Tromey <tom@tromey.com>
15672
15673 * source.c (select_source_symtab)
15674 (forget_cached_source_info_for_objfile): Remove declaration.
15675 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15676 declaration.
15677 * maint.c (count_symtabs_and_blocks): Remove declaration.
15678 * cp-support.c (add_symbol_overload_list_qualified): Remove
15679 declaration.
15680 * coffread.c (coff_symtab_read): Remove declaration.
15681 * symtab.c (lookup_symbol_in_objfile_symtabs)
15682 (basic_lookup_transparent_type_1): Use objfile_compunits.
15683 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15684 (info_sources_command, search_symbols)
15685 (default_collect_symbol_completion_matches_break_on)
15686 (make_source_files_completion_list): Remove declaration.
15687 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15688 (ada_collect_symbol_completion_matches)
15689 (ada_add_global_exceptions): Remove declaration.
15690 * linespec.c (iterate_over_all_matching_symtabs): Use
15691 objfile_compunits.
15692 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15693 (class objfile_compunits): New.
15694 (ALL_COMPUNITS): Use objfile_compunits.
15695 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15696 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15697 objfile_compunits.
15698 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15699
5325b9bf
TT
157002019-01-09 Tom Tromey <tom@tromey.com>
15701
15702 * symtab.c (search_symbols)
15703 (default_collect_symbol_completion_matches_break_on): Use
15704 objfile_msymbols.
15705 * ada-lang.c (ada_lookup_simple_minsym)
15706 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15707 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15708 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15709 objfile_msymbols.
15710 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15711 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15712 * objc-lang.c (find_methods): Use objfile_msymbols.
15713 (info_selectors_command, info_classes_command): Likewise.
15714 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15715 * objfiles.h (class objfile_msymbols): New.
15716 (ALL_OBJFILE_MSYMBOLS): Remove.
15717 (ALL_MSYMBOLS): Remove.
15718
cac85af2
TT
157192019-01-09 Tom Tromey <tom@tromey.com>
15720
15721 * common/next-iterator.h (next_adapter): Add Iterator template
15722 parameter.
15723 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15724 (class all_objfiles_safe): New.
15725 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15726 * objfiles.c (put_objfile_before): Update comment.
15727 (add_separate_debug_objfile): Likewise.
15728 (free_all_objfiles): Use all_objfiles_safe.
15729 (objfile_purge_solibs): Likewise.
15730
aed57c53
TT
157312019-01-09 Tom Tromey <tom@tromey.com>
15732
15733 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15734 (expand_symtab_containing_pc, lookup_static_symbol)
15735 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15736 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15737 all_objfiles.
15738 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15739 * breakpoint.c (create_overlay_event_breakpoint)
15740 (create_longjmp_master_breakpoint)
15741 (create_std_terminate_master_breakpoint)
15742 (create_exception_master_breakpoint): Use all_objfiles.
15743 * linux-thread-db.c (try_thread_db_load_from_pdir)
15744 (has_libpthread): Use all_objfiles.
15745 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15746 * linespec.c (iterate_over_all_matching_symtabs)
15747 (search_minsyms_for_name): Use all_objfiles.
15748 * maint.c (maintenance_info_sections): Use all_objfiles.
15749 * main.c (captured_main_1): Use all_objfiles.
15750 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15751 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15752 * guile/scm-pretty-print.c
15753 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15754 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15755 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15756 (maintenance_print_msymbols): Use all_objfiles.
15757 * source.c (select_source_symtab): Use all_objfiles.
15758 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15759 * symfile.c (remove_symbol_file_command)
15760 (expand_symtabs_matching, map_symbol_filenames): Use
15761 all_objfiles.
15762 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15763 all_objfiles.
15764 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15765 * objc-lang.c (find_methods): Use all_objfiles.
15766 * objfiles.c (have_partial_symbols, have_full_symbols)
15767 (have_minimal_symbols, qsort_cmp)
15768 (default_iterate_over_objfiles_in_search_order): Use
15769 all_objfiles.
15770 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15771 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15772 (maintenance_check_psymtabs): Use all_objfiles.
15773 (ALL_PSYMTABS): Remove.
15774 * compile/compile-object-run.c (do_module_cleanup): Use
15775 all_objfiles.
15776 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15777 * cp-support.c (add_symbol_overload_list_qualified): Use
15778 all_objfiles.
15779 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15780 Use all_objfiles.
15781 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15782 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15783 all_objfiles.
15784 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15785 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15786 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15787 Uses all_objfiles.
15788 * solib.c (solib_read_symbols): Use all_objfiles
15789
99d89cde
TT
157902019-01-09 Tom Tromey <tom@tromey.com>
15791
15792 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15793 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15794 all_objfiles.
15795 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15796 * symmisc.c (print_symbol_bcache_statistics)
15797 (print_objfile_statistics, maintenance_print_objfiles)
15798 (maintenance_info_symtabs, maintenance_check_symtabs)
15799 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15800 all_objfiles.
15801 * source.c (forget_cached_source_info): Use all_objfiles.
15802 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15803 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15804 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15805 * objfiles.c (update_section_map): Use all_objfiles.
15806 (shared_objfile_contains_address_p): Likewise.
15807 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15808 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15809
21708325
TT
158102019-01-09 Tom Tromey <tom@tromey.com>
15811
15812 * common/next-iterator.h: New file.
15813 * objfiles.h (class all_objfiles): New.
15814 (struct objfile_iterator): New.
15815
669e09f6
PW
158162019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15817
15818 * NEWS: Move the description of the changed "frame", "select-frame",
15819 and "info frame" commands to the Changed commands section.
15820
041be526
SM
158212019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15822
15823 * gdbtypes.c (check_stub_method_group): Remove handling of old
15824 mangling schemes.
15825 * linespec.c (find_methods): Likewise.
15826 * stabsread.c (read_member_functions): Likewise.
15827 * valops.c (search_struct_method): Likewise.
15828 (value_struct_elt_for_reference): Likewise.
15829 * NEWS: Mention this change.
15830
0e2a2133
AB
158312019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15832
15833 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15834 print_source_lines.
15835 * source.c (print_source_lines_base): Update line number check.
15836 (print_source_lines): New function.
15837 (source_lines_range::source_lines_range): New function.
15838 * source.h (class source_lines_range): New class.
15839 (print_source_lines): New declaration.
15840
1055a3b4
PW
158412019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15842
15843 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15844
cfeadda5
TT
158452019-01-08 Tom Tromey <tom@tromey.com>
15846 Simon Marchi <simon.marchi@ericsson.com>
15847
15848 PR gdb/24060
15849 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15850 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15851 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15852 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15853 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15854 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15855
583068ca
AB
158562019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15857
15858 * source.c (select_source_symtab): Move header comment to
15859 declaration in source.h.
15860 (forget_cached_source_info_for_objfile): Likewise.
15861 (forget_cached_source_info): Likewise.
15862 (identify_source_line): Likewise.
15863 * source.h (identify_source_line): Move declaration from symtab.h
15864 and add comment from source.c
15865 (print_source_lines): Likewise.
15866 (forget_cached_source_info_for_objfile): Likewise.
15867 (forget_cached_source_info): Likewise.
15868 (select_source_symtab): Likewise.
15869 (enum print_source_lines_flag): Move definition from symtab.h.
15870 * symtab.h (identify_source_line): Move declaration to source.h.
15871 (print_source_lines): Likewise.
15872 (forget_cached_source_info_for_objfile): Likewise.
15873 (forget_cached_source_info): Likewise.
15874 (select_source_symtab): Likewise.
15875 (enum print_source_lines_flag): Move definition to source.h.
15876 * tui/tui-hooks.c: Add 'source.h' include.
15877
ec98a4ad
AB
158782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15879
15880 * source.c (print_source_lines_base): Handle requests to print
15881 reverse line number sequences, and guard against empty lines
15882 string.
15883
62ea19c1
AB
158842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15885
15886 * source.c (print_source_lines_base): Fix skip of '\r' if next
15887 character is '\n'.
15888
9d30e1fd
TT
158892019-01-06 Tom Tromey <tom@tromey.com>
15890
15891 * c-exp.y (struct c_parse_state) <macro_original_text,
15892 expansion_obstack>: New member.
15893 (macro_original_text, expansion_obstack): Remove globals.
15894 (scan_macro_expansion, scanning_macro_expansion)
15895 (finished_macro_expansion): Update.
15896 (scan_macro_cleanup): Remove.
15897 (yylex, c_parse): Update.
15898
c65bac38
TT
158992019-01-06 Tom Tromey <tom@tromey.com>
15900
15901 * c-exp.y (struct c_parse_state) <strings>: New member.
15902 (operator_stoken): Update.
15903
02e12e38
TT
159042019-01-06 Tom Tromey <tom@tromey.com>
15905
15906 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15907 (union type_stack_elt) <typelist_val>: Now a pointer to
15908 std::vector.
15909 (type_stack_cleanup): Don't declare.
15910 (push_typelist): Update.
15911 * parse.c (pop_typelist): Return a std::vector.
15912 (push_typelist): Take a std::vector.
15913 (follow_types): Update. Do not free args.
15914 (type_stack_cleanup): Remove.
15915 * c-exp.y (struct c_parse_state): New.
15916 (cpstate): New global.
15917 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15918 (nonempty_typelist): Update.
15919 (func_mod): Create a new vector.
15920 (c_parse): Create a c_parse_state.
15921 (check_parameter_typelist): Do not delete params.
15922 (function_method): Update. Do not delete type_list.
15923
f097f5ad
TT
159242019-01-06 Tom Tromey <tom@tromey.com>
15925
15926 PR gdb/28155:
15927 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15928 check_typedef.
15929 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15930 (print_return_value): Likewise.
15931
d2adf9f1
TT
159322019-01-05 Tom Tromey <tom@tromey.com>
15933
15934 * contrib/cleanup_check.py: Remove.
15935 * contrib/gcc-with-excheck: Remove.
15936 * contrib/exsummary.py: Remove.
15937 * contrib/excheck.py: Remove.
15938
2eab46b1
JB
159392019-01-05 Joel Brobecker <brobecker@adacore.com>
15940
15941 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15942 NULL. Initialize tpprev to NULL instead of assigning it
15943 to NULL on the next statement.
15944 * windows-nat.c (windows_delete_thread): Remove check for
15945 main_thread_id before printing thread exit notifications.
15946 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15947 Remove thread ID check against main_thread_id.
15948 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15949 windows_delete_thread.
15950 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15951
48c5e7e2
TT
159522019-01-04 Tom Tromey <tom@tromey.com>
15953
15954 * compile/compile.c (_initialize_compile): Use upper case for
15955 metasyntactic variables.
15956 * symmisc.c (_initialize_symmisc): Use upper case for
15957 metasyntactic variables.
15958 * psymtab.c (_initialize_psymtab): Use upper case for
15959 metasyntactic variables.
15960 * demangle.c (demangle_command): Use upper case for metasyntactic
15961 variables.
15962 (_initialize_demangler): Likewise.
15963 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15964 variables.
15965
986041cd
TT
159662019-01-03 Tom Tromey <tom@tromey.com>
15967
15968 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15969
7c711119
TT
159702019-01-03 Tom Tromey <tom@tromey.com>
15971
15972 * python/py-symtab.c (salpy_str): Update.
15973 (struct salpy_sal_object) <symtab>: Now a PyObject.
15974 (salpy_dealloc): Update.
15975 (del_objfile_sal): Use gdbpy_ref.
15976
1b20edf0
TT
159772019-01-03 Tom Tromey <tom@tromey.com>
15978
15979 * python/py-type.c (convert_field): Use new_reference. Return
15980 gdbpy_ref.
15981 (make_fielditem): Return gdbpy_ref.
15982 (typy_fields): Update.
15983 (typy_getitem): Update.
15984 (field_name): Return gdbpy_ref. Use new_reference.
15985 (typy_iterator_iternext): Update.
15986
ea41325b
TT
159872019-01-03 Tom Tromey <tom@tromey.com>
15988
15989 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15990
2a3c71d6
TT
159912019-01-03 Tom Tromey <tom@tromey.com>
15992
15993 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15994 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15995 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15996 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15997 (pspy_set_type_printers): Likewise.
15998 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15999 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16000 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16001 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16002 (objfpy_set_type_printers): Likewise.
16003
5c329e6a
TT
160042019-01-03 Tom Tromey <tom@tromey.com>
16005
16006 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16007 (gdbpy_print_stack): Use gdbpy_err_fetch.
16008 * python/python-internal.h (class gdbpy_err_fetch): New class.
16009 (class gdbpy_enter) <m_error_type, m_error_value,
16010 m_error_traceback>: Remove.
16011 <m_error>: New member.
16012 (gdbpy_exception_to_string): Don't declare.
16013 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16014 * python/py-value.c (convert_value_from_python): Use
16015 gdbpy_err_fetch.
16016 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16017 gdbpy_exception_to_string.
16018 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16019 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16020 gdbpy_err_fetch.
16021
169bb27b
AB
160222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16023
16024 * linux-nat.c (delete_lwp_cleanup): Delete.
16025 (struct lwp_deleter): New struct.
16026 (lwp_info_up): New typedef.
16027 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16028 lwp_info_up.
16029
a07c8880
AB
160302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16031
16032 * linux-fork.c (class scoped_switch_fork_info): New class.
16033 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16034
26089c49
AB
160352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16036
16037 * valops.c (find_overload_match): Remove use of null_cleanup, and
16038 calls to do_cleanups.
16039
06d3e5b0
AB
160402019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16041
16042 * compile/compile-cplus-types.c
16043 (compile_cplus_instance::decl_name): Handle changes to
16044 cp_func_name.
16045 * cp-support.c (cp_func_name): Update header comment, update
16046 return type.
16047 * cp-support.h (cp_func_name): Update return type in declaration.
16048 * valops.c (find_overload_match): Move temp_func local to top
16049 level of function and change its type. Use temp_func to hold and
16050 delete temporary string obtained from cp_func_name.
16051
66644cd3
AB
160522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16053
16054 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16055 gdb::char_vector, remove cleanup, and update uses of `msg`.
16056
592d8c0a
JW
160572019-01-03 Jim Wilson <jimw@sifive.com>
16058
16059 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16060
c55d06ec
TT
160612019-01-02 Tom Tromey <tom@tromey.com>
16062
16063 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16064 (tdesc_parse_xml): Remove cleanups.
16065 * target-descriptions.h (make_cleanup_free_target_description):
16066 Don't declare.
16067 (target_desc_deleter): New struct.
16068 (target_desc_up): New typedef.
16069 * target-descriptions.c (target_desc_deleter::operator()): Rename
16070 from free_target_description.
16071 (make_cleanup_free_target_description): Remove.
16072
3a6ae42d
TT
160732019-01-02 Tom Tromey <tom@tromey.com>
16074
16075 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16076 constructor, destructor.
16077 (linespec_parser): Remove typedef.
16078 (~linespec_parser): Rename from linespec_parser_delete.
16079 (linespec_lex_to_end, linespec_complete_label)
16080 (linespec_complete): Update.
16081 (decode_line_full): Remove cleanups.
16082 (decode_line_1): Update.
16083
61fd3e73
TT
160842019-01-02 Tom Tromey <tom@tromey.com>
16085
16086 * python/python-internal.h (inferior_to_inferior_object): Change
16087 return type.
16088 * python/py-exitedevent.c (create_exited_event_object): Update.
16089 * python/py-inferior.c (inferior_to_inferior_object): Return
16090 gdbpy_ref.
16091 (python_new_inferior, python_inferior_deleted)
16092 (thread_to_thread_object, delete_thread_object)
16093 (build_inferior_list, gdbpy_selected_inferior): Update.
16094 * python/py-infthread.c (create_thread_object): Update. Also fail
16095 if inferior_to_inferior_object fails.
16096
d20172fc
SM
160972019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16098
16099 * inferior.h (class inferior) <displaced_step_state>: New field.
16100 * infrun.h (struct displaced_step_state): Move here from
16101 infrun.c. Initialize fields, add constructor.
16102 <inf>: Remove field.
16103 <reset>: New method.
16104 * infrun.c (struct displaced_step_inferior_state): Move to
16105 infrun.h.
16106 (displaced_step_inferior_states): Remove.
16107 (get_displaced_stepping_state): Adust.
16108 (displaced_step_in_progress_any_inferior): Adjust.
16109 (displaced_step_in_progress_thread): Adjust.
16110 (displaced_step_in_progress): Adjust.
16111 (add_displaced_stepping_state): Remove.
16112 (get_displaced_step_closure_by_addr): Adjust.
16113 (remove_displaced_stepping_state): Remove.
16114 (infrun_inferior_exit): Call displaced_step_state.reset.
16115 (use_displaced_stepping): Don't check for NULL.
16116 (displaced_step_prepare_throw): Call
16117 get_displaced_stepping_state.
16118 (displaced_step_fixup): Don't check for NULL.
16119 (prepare_for_detach): Don't check for NULL.
16120
e3319240
PW
161212019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16122
16123 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16124 in case of call that did not complete.
16125
5d36dfb9
AU
161262019-01-02 Andrey Utkin <autkin@undo.io>
16127
16128 * symfile.c (find_separate_debug_file): Fix search of debug files for
16129 remote debuggee.
16130
8833fbf0
TT
161312019-01-02 Tom Tromey <tom@tromey.com>
16132
16133 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16134 indentation.
16135 * python/py-frame.c (frapy_older): Remove cast.
16136 (frapy_newer): Likewise.
16137 * python/py-breakpoint.c (local_setattro): Remove cast.
16138 * python/py-arch.c (archpy_name): Remove local variable.
16139 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16140
4ada3dfd
JB
161412019-01-02 Joel Brobecker <brobecker@adacore.com>
16142
16143 * unittests/basic_string_view/element_access/char/empty.cc:
16144 Fix year range in copyright header.
16145
113b7b81
AB
161462019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16147
16148 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16149 Delete.
16150 <operator==>: Update with for removed field.
16151 <hash>: Likewise.
16152 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16153 <isa_features>: ...this.
16154 <abi_features>: New field.
16155 (riscv_isa_flen): Update comment.
16156 (riscv_abi_xlen): New declaration.
16157 (riscv_abi_flen): New declaration.
16158 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16159 isa_features.
16160 (riscv_abi_xlen): New function.
16161 (riscv_isa_flen): Update to get answer from isa_features.
16162 (riscv_abi_flen): New function.
16163 (riscv_has_fp_abi): Update to get answer from abi_features.
16164 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16165 xlen and flen.
16166 (riscv_call_info) <xlen, flen>: Update comment.
16167 (riscv_call_arg_struct): Remove invalid assertions
16168 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16169 is removed.
16170 (riscv_gdbarch_init): Gather isa features and abi features
16171 separately, ensure both match on the gdbarch when reusing an old
16172 gdbarch. Relax an error check to allow 32-bit abi float to run on
16173 a target with 64-bit float hardware.
16174
b18ca514
PW
161752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16176
16177 * source.c (search_command_helper): Stop reverse search
16178 when line 1 has been searched.
16179
ec70d8db
PW
161802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16181
16182 * record-full.c (record_full_base_target::close): Rewrite
16183 record_full_core_buf_list free logic.
16184
5b38f9c1
PW
161852019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16186
16187 * break-catch-syscall.c (print_one_catch_syscall): xfree
16188 the last text.
16189
66d91b39
JB
161902019-01-01 Joel Brobecker <brobecker@adacore.com>
16191
16192 * top.c (print_gdb_version): Update Copyright year in version
16193 message.
16194
42a4f53d
JB
161952019-01-01 Joel Brobecker <brobecker@adacore.com>
16196
16197 Update copyright year range in all GDB files.
16198
7e955d83 161992019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16200
5bbd631d 16201 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16202
5bbd631d 16203For older changes see ChangeLog-2018.
c906108c
SS
16204\f
16205Local Variables:
16206mode: change-log
16207left-margin: 8
16208fill-column: 74
16209version-control: never
57da7796 16210coding: utf-8
c906108c 16211End:
5bbd631d 16212
This page took 3.273143 seconds and 4 git commands to generate.