]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix leak of symbol name in block_symbol_cache
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
82f910ea
PW
12019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
3 (destroy_block_symbol_cache): New function.
4 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
5 (resize_symbol_cache): Likewise.
6
de2396d0
TT
72019-12-02 Tom Tromey <tom@tromey.com>
8
9 * unittests/tui-selftests.c (run_tests): Make conditional.
10 (_initialize_tui_selftest): Make conditional.
11
638d85bc
CB
122019-12-02 Christian Biesinger <cbiesinger@google.com>
13
14 * aix-thread.c (debug_aix_thread): Change type to bool.
15
7532a164
LM
162019-12-02 Luis Machado <luis.machado@linaro.org>
17
18 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
19
216a7e6b
AB
202019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * dwarf2read.c (read_tag_string_type): Read the fields required to
23 make a dynamic string, and possibly create a dynamic range for the
24 string.
25 (attr_to_dynamic_prop): Setup is_reference based on the type of
26 attribute being processed.
27 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
28 (resolve_dynamic_array): Rename to...
29 (resolve_dynamic_array_or_string): ...this, update header comment,
30 and accept TYPE_CODE_STRING.
31 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
32
11a8b164
AB
332019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
36 of its implementation from...
37 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
38 the new function.
39
5bbd8269
AB
402019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
43 create a range with stride where appropriate.
44 * f-valprint.c: Include 'gdbarch.h'.
45 (f77_print_array_1): Take the stride into account when walking the
46 array. Also convert the stride into addressable units.
47 * gdbtypes.c (create_range_type): Initialise the stride to
48 constant zero.
49 (create_range_type_with_stride): New function, initialise the
50 range as normal, and then setup the stride.
51 (has_static_range): Include the stride here. Also change the
52 return type to bool.
53 (create_array_type_with_stride): Consider the range stride if the
54 array isn't given its own stride.
55 (resolve_dynamic_range): Resolve the stride if needed.
56 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
57 (struct range_bounds) <flag_is_byte_stride>: New member variable.
58 (TYPE_BIT_STRIDE): Define.
59 (TYPE_ARRAY_BIT_STRIDE): Define.
60 (create_range_type_with_stride): Declare.
61 * valarith.c (value_subscripted_rvalue): Take range stride into
62 account when walking the array.
63
82e3b564
TT
642019-12-01 Tom Tromey <tom@tromey.com>
65
66 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
67 specially.
68
517d261d
TT
692019-12-01 Tom Tromey <tom@tromey.com>
70
71 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
72 \0.
73 * unittests/tui-selftests.c: New file.
74 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
75
484c9b64
TT
762019-12-01 Tom Tromey <tom@tromey.com>
77
78 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
79
a2a7af0c
TT
802019-12-01 Tom Tromey <tom@tromey.com>
81
82 * NEWS: Document new settings.
83 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
84 * tui/tui-win.c (_initialize_tui_win): Add border style
85 observers.
86 * tui/tui-io.h (tui_apply_style): Declare.
87 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
88 longer static.
89 (apply_ansi_escape, tui_set_reverse_mode): Update.
90 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
91 Add "skip_intensity" parameter.
92 <changed>: New member.
93 <do_set_value>: Declare.
94 (tui_border_style, tui_active_border_style): Declare.
95 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
96 globals.
97 (cli_style_option): Initialize "changed".
98 (cli_style_option::do_set_value): New function.
99 (cli_style_option::add_setshow_commands): Add "skip_intensity"
100 parameter. Update.
101 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
102 (_initialize_cli_style): Update. Create TUI border style
103 commands.
104
d1da6b01
TT
1052019-12-01 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
108 parameter.
109 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
110 parameter.
111 * tui/tui-win.h (compact_source): Declare.
112 * tui/tui-win.c (compact_source): New global.
113 (tui_set_compact_source, tui_show_compact_source): New functions.
114 (_initialize_tui_win): Add "compact-source" setting.
115 * tui/tui-source.c (tui_source_window::set_contents): Handle
116 compact_source setting.
117 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
118 * NEWS: Document new setting.
119
489dbda6
TT
1202019-11-30 Tom Tromey <tom@tromey.com>
121
122 * dwarf2read.c (dwarf2_add_field): Include field offset when
123 computing variant part length.
124
bf498525
PW
1252019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
126 * NEWS: Mention define-prefix. Tell that command names can now
127 contain a . character.
128
be09caf1
PW
1292019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
130
131 * command.h (valid_cmd_char_p): Declare.
132 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
133 the check of valid command char.
134 (find_command_name_length, valid_user_defined_cmd_name_p): Use
135 valid_cmd_char_p.
136 * cli/cli-script.c (validate_comname): Likewise.
137 * completer.c (gdb_completer_command_word_break_characters):
138 Do not remove . from the word break char, update comments.
139 (complete_line_internal_1): Use valid_cmd_char_p.
140 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
141 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
142
c6ac7fc9
PW
1432019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
144
145 * cli/cli-script.c (do_define_command): Ensure a redefined
146 prefix command is kept as a prefix command.
147 (define_prefix_command): New function.
148 (show_user_1): Report user defined prefixes.
149 (_initialize_cli_script): Create the new 'define-prefix' command.
150 Add completers for 'define' and 'document'.
151 * top.c (execute_command): If command is a user-defined prefix only
152 command, report the list of commands for this prefix command.
153
a992a3b0
TBA
1542019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
155
156 * valops.c (find_oload_champ): Improve debug output.
157
e9194a1a
TBA
1582019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
159
160 * valops.c (find_oload_champ): Print part of debug messages
161 before the badness vector is std::move'd.
162
53a008a6
TT
1632019-11-28 Tom Tromey <tom@tromey.com>
164
165 * value.c (creal_internal_fn): Fix comment.
166
bab05c83
TT
1672019-11-28 Tom Tromey <tom@tromey.com>
168
169 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
170 flag_bound_evaluated>: Now unsigned.
171
2522f049
TT
1722019-11-28 Tom Tromey <tom@tromey.com>
173
174 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
175 declare.
176
38b49e22
MS
1772019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
178
179 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
180 debug output.
181 * jit.c (jit_unregister_code): Add debug print to match
182 `jit_register_code`.
183
35125921
CB
1842019-11-27 Christian Biesinger <cbiesinger@google.com>
185
186 * NEWS: Mention the new multithreaded symbol loading.
187
62e77f56
CB
1882019-11-27 Christian Biesinger <cbiesinger@google.com>
189
190 * maint.c (n_worker_threads): Default to 0.
191 (worker_threads_disabled): New function.
192 * maint.h (worker_threads_disabled): New function.
193 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
194 here if worker_threads_disabled () is true.
195 (minimal_symbol_reader::install): Skip all threading if
196 worker_threads_disabled () is true.
197
f29d7f6b
CB
1982019-11-27 Christian Biesinger <cbiesinger@google.com>
199
200 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
201 hash code if possible.
202 (add_minsym_to_demangled_hash_table): Likewise.
203 (minimal_symbol_reader::install): Compute the hash codes for msymbol
204 on the background thread.
205 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
206 Add these fields.
207
e76b2246
CB
2082019-11-27 Christian Biesinger <cbiesinger@google.com>
209
210 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
211 of the mangled name on the background thread.
212 * symtab.c (symbol_set_names): Allow passing in the hash of the
213 linkage_name.
214 * symtab.h (symbol_set_names): Likewise.
215
8d9a2568
KB
2162019-11-27 Kevin Buettner <kevinb@redhat.com>
217
218 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
219 physnames are computed for inherited DIEs.
220
fad03f6e
TT
2212019-11-27 Tom Tromey <tromey@adacore.com>
222
223 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
224 backslashes.
225 * cp-support.c: Remove unnecessary backslashes.
226
43678b0a
CB
2272019-11-27 Christian Biesinger <cbiesinger@google.com>
228
229 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
230 with sym->set_linkage_name.
231 * coffread.c (coff_read_enum_type): Likewise.
232 * mdebugread.c (parse_symbol): Likewise.
233 * stabsread.c (patch_block_stabs): Likewise.
234 (define_symbol): Likewise.
235 (read_enum_type): Likewise.
236 (common_block_end): Likewise.
237 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
238 function.
239 (SYMBOL_SET_LINKAGE_NAME): Remove.
240 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
241 with sym->set_linkage_name.
242
db5960b4
AB
2432019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
246 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
247 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
248 * NEWS: Mention new MI command.
249
7dc42066
AB
2502019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
253 '-symbol-info-types', and '-symbol-info-variables'.
254 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
255 (mi_cmd_symbol_info_types): Declare.
256 (mi_cmd_symbol_info_variables): Declare.
257 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
258 (output_debug_symbol): New function.
259 (output_nondebug_symbol): New function.
260 (mi_symbol_info): New function.
261 (mi_info_functions_or_variables): New function.
262 (mi_cmd_symbol_info_functions): New function.
263 (mi_cmd_symbol_info_types): New function.
264 (mi_cmd_symbol_info_variables): New function.
265 * NEWS: Mention new commands.
266
5f512a7d
AB
2672019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * symtab.c (symbol_to_info_string): New function, most content
270 moved from print_symbol_info, but updated to return a std::string.
271 (print_symbol_info): Update to use symbol_to_info_string and print
272 returned string.
273 * symtab.h (symbol_to_info_string): Declare new function.
274
470c0b1c
AB
2752019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * python/python.c (gdbpy_rbreak): Convert to using
278 global_symbol_searcher.
279 * symtab.c (file_matches): Convert return type to bool, change
280 file list to std::vector, update header comment.
281 (search_symbols): Rename to...
282 (global_symbol_searcher::search): ...this and update now its
283 a member function of global_symbol_searcher. Take account of the
284 changes to file_matches.
285 (symtab_symbol_info): Convert to using global_symbol_searcher.
286 (rbreak_command): Likewise.
287 (search_module_symbols): Likewise.
288 * symtab.h (enum symbol_search): Update comment.
289 (search_symbols): Remove declaration.
290 (class global_symbol_searcher): New class.
291
57357d9d
TT
2922019-11-26 Tom Tromey <tromey@adacore.com>
293
294 * cp-support.c (_initialize_cp_support): Conditionally initialize
295 gdb_demangle_attempt_core_dump.
296
3ea16160
TT
2972019-11-26 Tom Tromey <tom@tromey.com>
298
299 * python/py-function.c (fnpy_init): Update.
300 * value.h (add_internal_function): Adjust declaration.
301 * value.c (function_destroyer): Remove.
302 (do_add_internal_function): Don't set destroyer or copy name.
303 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
304 Set name_allocated.
305 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
306 (cmdpy_init): Set name_allocated.
307 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
308 member.
309 (~cmd_list_element): Free "name" if needed.
310
1a6d41c6
TT
3112019-11-26 Tom Tromey <tom@tromey.com>
312
313 * value.h (add_internal_function): Add new overload. Move
314 documentation from value.h.
315 * value.c (do_add_internal_function): New function.
316 (add_internal_function): Use it. Add new overload.
317 (function_destroyer): Don't free doc.
318 * python/py-function.c (fnpy_init): Update.
319
8318f3c3
TT
3202019-11-26 Tom Tromey <tom@tromey.com>
321
322 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
323 (cmdpy_init): Set "doc_allocated".
324
4da8c3a8
TT
3252019-11-26 Tom Tromey <tom@tromey.com>
326
327 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
328 name of worker thread.
329 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
330 pthread_setname_np.
331 * configure, config.in: Rebuild.
332
971db5e2
TT
3332019-11-26 Tom Tromey <tom@tromey.com>
334
335 * python/python.c (class gdbpy_gil): New.
336 (struct gdbpy_event): Add constructor, destructor, operator().
337 (gdbpy_post_event): Use run_on_main_thread.
338 (gdbpy_initialize_events): Remove.
339 (do_start_initialization): Update.
340
22138db6
TT
3412019-11-26 Tom Tromey <tom@tromey.com>
342
343 * NEWS: Add entry.
344 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
345 commands. Call update_thread_pool_size.
346 (update_thread_pool_size, maintenance_set_worker_threads): New
347 functions.
348 (n_worker_threads): New global.
349
d55c9a68
TT
3502019-11-26 Christian Biesinger <cbiesinger@google.com>
351 Tom Tromey <tom@tromey.com>
352
353 * minsyms.c (minimal_symbol_reader::install): Use
354 parallel_for_each.
355 * gdbsupport/parallel-for.h: New file.
356 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
357
a0b57563
CB
3582019-11-26 Christian Biesinger <cbiesinger@google.com>
359 Tom Tromey <tom@tromey.com>
360
361 * gdbsupport/thread-pool.h: New file.
362 * gdbsupport/thread-pool.c: New file.
363 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
364 (HFILES_NO_SRCDIR): Add thread-pool.h.
365
3b3978bc
TT
3662019-11-26 Tom Tromey <tom@tromey.com>
367
368 * event-top.h (thread_local_segv_handler): Declare.
369 * event-top.c (thread_local_segv_handler): New global.
370 (install_handle_sigsegv, handle_sigsegv): New functions.
371 (async_init_signals): Install SIGSEGV handler.
372 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
373 thread-local.
374 (report_failed_demangle): New function.
375 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
376 handler-setting code, instead use segv_handler. Run warning code
377 on main thread.
378
9411c49e
TT
3792019-11-26 Tom Tromey <tom@tromey.com>
380
381 * run-on-main-thread.c: New file.
382 * run-on-main-thread.h: New file.
383 * unittests/main-thread-selftests.c: New file.
384 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
385 main-thread-selftests.c.
386 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
387 (COMMON_SFILES): Add run-on-main-thread.c.
388
c3efb965
TT
3892019-11-26 Tom Tromey <tom@tromey.com>
390
391 * main.c (setup_alternate_signal_stack): Remove.
392 (captured_main_1): Use gdb::alternate_signal_stack.
393 * gdbsupport/alt-stack.h: New file.
394
21987b9c
TT
3952019-11-26 Tom Tromey <tom@tromey.com>
396
397 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
398 Remove comment.
399 (save_original_signals_state, restore_original_signals_state): Use
400 gdb_sigmask.
401 * linux-nat.c (block_child_signals, restore_child_signals_mask)
402 (_initialize_linux_nat): Use gdb_sigmask.
403 * guile/guile.c (_initialize_guile): Use block_signals.
404 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
405 * gdbsupport/gdb-sigmask.h: New file.
406 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
407 * cp-support.c (gdb_demangle): Use gdb_sigmask.
408 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
409 pthread_sigmask.
410 * configure, config.in: Rebuild.
411 * gdbsupport/block-signals.h: New file.
412
5e030278
TT
4132019-11-26 Tom Tromey <tom@tromey.com>
414
415 * acinclude.m4: Include ax_pthread.m4.
416 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
417 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
418 (CLIBS): Use PTHREAD_LIBS.
419 (aclocal_m4_deps): Add ax_pthread.m4.
420 * config.in, configure: Rebuild.
421 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
422
5a79c107
TT
4232019-11-26 Tom Tromey <tom@tromey.com>
424
425 * symtab.h (struct minimal_symbol) <name_set>: New member.
426 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
427 Don't call symbol_set_names.
428 (minimal_symbol_reader::install): Call symbol_set_names.
429
aa369509
PW
4302019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
431
432 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
433 restore_active_ext_lang, as GIL is needed for (indirectly)
434 called PyOS_InterruptOccurred.
435
cadc9cb8
SM
4362019-11-26 Simon Marchi <simon.marchi@efficios.com>
437
438 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
439 definition.
440
d04afd58
SM
4412019-11-26 Simon Marchi <simon.marchi@efficios.com>
442
443 * remote-sim.c (simulator_command): Make static, remove
444 declaration.
445
dd694d77
SM
4462019-11-26 Simon Marchi <simon.marchi@efficios.com>
447
448 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
449 static.
450 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
451 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
452 (main): Likewise.
453 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
454 (main): Likewise.
455 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
456 (main): Likewise.
457 * unittests/basic_string_view/element_access/char/1.cc (test01):
458 Likewise.
459 (main): Likewise.
460 * unittests/basic_string_view/element_access/char/empty.cc (main):
461 Likewise.
462 * unittests/basic_string_view/element_access/char/front_back.cc
463 (test01): Likewise.
464 (main): Likewise.
465 * unittests/basic_string_view/inserters/char/2.cc (test05):
466 Likewise.
467 (main): Likewise.
468 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
469 (test01): Likewise.
470 (main): Likewise.
471 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
472 (test01): Likewise.
473 (main): Likewise.
474 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
475 Likewise.
476 * unittests/basic_string_view/operations/compare/char/1.cc
477 (test01): Likewise.
478 (main): Likewise.
479 * unittests/basic_string_view/operations/compare/char/13650.cc
480 (test01): Likewise.
481 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
482 Likewise.
483 (main): Likewise.
484 * unittests/basic_string_view/operations/data/char/1.cc (test01):
485 Likewise.
486 (main): Likewise.
487 * unittests/basic_string_view/operations/find/char/1.cc (test01):
488 Likewise.
489 (main): Likewise.
490 * unittests/basic_string_view/operations/find/char/2.cc (test02):
491 Likewise.
492 (main): Likewise.
493 * unittests/basic_string_view/operations/find/char/3.cc (test03):
494 Likewise.
495 (main): Likewise.
496 * unittests/basic_string_view/operations/find/char/4.cc (main):
497 Likewise.
498 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
499 Likewise.
500 (main): Likewise.
501 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
502 Likewise.
503 (main): Likewise.
504 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
505 Likewise.
506 (main): Likewise.
507 * unittests/basic_string_view/operations/substr/char/1.cc
508 (test01): Likewise.
509 (main): Likewise.
510 * unittests/basic_string_view/operators/char/2.cc (main):
511 Likewise.
512 * unittests/optional/assignment/1.cc (test): Likewise.
513 * unittests/optional/assignment/2.cc (test): Likewise.
514 * unittests/optional/assignment/3.cc (test): Likewise.
515 * unittests/optional/assignment/4.cc (test): Likewise.
516 * unittests/optional/assignment/5.cc (test): Likewise.
517 * unittests/optional/assignment/6.cc (test): Likewise.
518 * unittests/optional/assignment/7.cc (test): Likewise.
519 * unittests/optional/cons/copy.cc (test): Likewise.
520 * unittests/optional/cons/default.cc (test): Likewise.
521 * unittests/optional/cons/move.cc (test): Likewise.
522 * unittests/optional/cons/value.cc (test): Likewise.
523 * unittests/optional/in_place.cc (test): Likewise.
524 * unittests/optional/observers/1.cc (test): Likewise.
525 * unittests/optional/observers/2.cc (test): Likewise.
526
3b5c1d49
SM
5272019-11-26 Simon Marchi <simon.marchi@efficios.com>
528
529 * tui-win.h (tui_set_var_cmd): Remove.
530 * tui-win.c (tui_set_var_cmd): Make static.
531
adce99fe
SM
5322019-11-26 Simon Marchi <simon.marchi@efficios.com>
533
534 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
535 rbreak_command_wrapper): Remove.
536 * symtab.c (rbreak_command_wrapper): Remove.
537
fe3adccf
SM
5382019-11-26 Simon Marchi <simon.marchi@efficios.com>
539
540 * inferior.h (info_terminal_command): Remove declaration.
541 * inflow.c (info_terminal_command): Make static.
542
b926335f
SM
5432019-11-26 Simon Marchi <simon.marchi@efficios.com>
544
545 * inferior.c (exit_inferior_silent): Remove.
546
b62f6f54
SM
5472019-11-26 Simon Marchi <simon.marchi@efficios.com>
548
549 * dictionary.c (dict_empty, mdict_empty): Remove.
550 * dictionary.c (mdict_empty): Remove.
551
cb8c24b6
SM
5522019-11-26 Simon Marchi <simon.marchi@efficios.com>
553
554 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
555 (arc_insn_get_memory_offset): Likewise.
556 (arc_insn_dump): Likewise.
557 * cp-support.c (test_cp_symbol_name_matches): Likewise.
558 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
559 * dictionary.c (dict_iterator_next): Likewise.
560 (dict_iter_match_first): Likewise.
561 (dict_iter_match_next): Likewise.
562 * f-lang.c (evaluate_subexp_f): Likewise.
563 * hppa-tdep.c (hppa_read_pc): Likewise.
564 * i386-tdep.c (i386_floatformat_for_type): Likewise.
565 * parse.c (write_exp_elt_msym): Likewise.
566 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
567 * remote.c (remote_packet_size): Likewise.
568 (remote_notif_stop_parse): Likewise.
569 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
570 * s12z-tdep.c (s12z_disassemble_info): Likewise.
571 * source.c (prepare_path_for_appending): Likewise.
572 * sparc64-linux-tdep.c
573 (sparc64_linux_handle_segmentation_fault); Likewise.
574 * stack.c (frame_selection_by_function_completer): Likewise.
575
781597ff
SM
5762019-11-26 Simon Marchi <simon.marchi@efficios.com>
577
578 * completer.c (set_gdb_completion_word_break_characters):
579 Remove.
580
23baa4cc
SM
5812019-11-26 Simon Marchi <simon.marchi@efficios.com>
582
583 * dwarf-index-write.c: Include dwarf-index-write.h.
584 * mi/mi-interp.c: Include mi/mi-interp.h.
585
23767560
SM
5862019-11-26 Simon Marchi <simon.marchi@efficios.com>
587
588 * aarch32-tdep.c: Include aarch32-tdep.h.
589 * aarch32-tdep.h: Forward-declare struct target_desc.
590
6d91ce9a
CB
5912019-11-26 Christian Biesinger <cbiesinger@google.com>
592
593 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
594 strerror.
595 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
596 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
597
3cf2f237
TV
5982019-11-25 Tom de Vries <tdevries@suse.de>
599
600 * contrib/words.sh: Add -c option.
601
5b89c67a
CB
6022019-11-25 Christian Biesinger <cbiesinger@google.com>
603
604 * solib.c (solib_find_1): Change int to bool.
605 (exec_file_find): Change int to bool.
606 (solib_find): Change int to bool.
607 (solib_read_symbols): Change int to bool.
608 (solib_used): Change int to bool.
609 (solib_add): Change int to bool.
610 (info_sharedlibrary_command): Change int to bool.
611 (solib_contains_address_p): Change int to bool.
612 (solib_keep_data_in_core): Change int to bool.
613 (in_solib_dynsym_resolve_code): Change int to bool.
614 (reload_shared_libraries_1): Change int to bool.
615 (gdb_sysroot_changed): Change int to bool.
616 * solib.h (solib_read_symbols): Change int to bool.
617 (solib_contains_address_p): Change int to bool.
618 (solib_keep_data_in_core): Change int to bool.
619 (in_solib_dynsym_resolve_code): Change int to bool.
620 (libpthread_name_p): Change int to bool.
621
6cc8564b
LM
6222019-11-25 Luis Machado <luis.machado@linaro.org>
623
624 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
625 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
626 (remote_packet_max_chars): New static global.
627 (show_remote_packet_max_chars): New function.
628 (remote_target::putpkt_binary): Adjust to use new
629 remote_packet_max_chars option.
630 (remote_target::getpkt_or_notif_sane_1): Likewise.
631 (_initialize_remote): Register new remote-packet-max-chars option.
632
a7cdaa91
SM
6332019-11-24 Simon Marchi <simon.marchi@efficios.com>
634
635 * m68k-linux-nat.c: Include gdbarch.h.
636
26abc753
TT
6372019-11-24 Tom Tromey <tom@tromey.com>
638
639 * symfile.c (read_symbols): Update.
640 * psymtab.c (require_partial_symbols): Change type of "verbose" to
641 bool.
642 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
643 (psym_lookup_symbol, psym_find_last_source_symtab)
644 (psym_forget_cached_source_info, psym_print_stats)
645 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
646 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
647 (psym_map_matching_symbols, psym_expand_symtabs_matching)
648 (psym_find_compunit_symtab_by_address)
649 (maintenance_print_psymbols, maintenance_info_psymtabs)
650 (maintenance_check_psymtabs): Update.
651 * psymtab.h (require_partial_symbols): Change type of "verbose" to
652 bool.
653
012fc909
TT
6542019-11-22 Tom Tromey <tom@tromey.com>
655
656 * observable.h: Update comments.
657
c83d8d32
TT
6582019-11-22 Tom Tromey <tromey@adacore.com>
659
660 * ada-tasks.c (ada_task_is_alive): Make parameter const.
661 (print_ada_task_info): Don't try to fetch thread id if task is not
662 alive.
663
987012b8
CB
6642019-11-22 Christian Biesinger <cbiesinger@google.com>
665
666 * ada-exp.y: Update.
667 * ada-lang.c (sort_choices): Update.
668 (ada_print_symbol_signature): Update.
669 (resolve_subexp): Update.
670 (ada_parse_renaming): Update.
671 (ada_read_renaming_var_value): Update.
672 (lesseq_defined_than): Update.
673 (remove_extra_symbols): Update.
674 (remove_irrelevant_renamings): Update.
675 (ada_add_block_symbols): Update.
676 (ada_collect_symbol_completion_matches): Update.
677 (ada_is_renaming_symbol): Update.
678 (aggregate_assign_from_choices): Update.
679 (ada_evaluate_subexp): Update.
680 (ada_has_this_exception_support): Update.
681 (ada_is_non_standard_exception_sym): Update.
682 (ada_add_exceptions_from_frame): Update.
683 (ada_add_global_exceptions): Update.
684 (ada_print_subexp): Update.
685 * ax-gdb.c (gen_var_ref): Update.
686 (gen_maybe_namespace_elt): Update.
687 (gen_expr_for_cast): Update.
688 (gen_expr): Update.
689 * block.h: Update.
690 * blockframe.c (find_pc_partial_function): Update.
691 * breakpoint.c (print_breakpoint_location): Update.
692 (update_static_tracepoint): Update.
693 * btrace.c (ftrace_print_function_name): Update.
694 (ftrace_function_switched): Update.
695 * buildsym.c (find_symbol_in_list): Update.
696 * c-exp.y: Update.
697 * c-typeprint.c (c_print_typedef): Update.
698 (c_type_print_template_args): Update.
699 * cli/cli-cmds.c (edit_command): Update.
700 (list_command): Update.
701 (print_sal_location): Update.
702 * coffread.c (patch_opaque_types): Update.
703 (process_coff_symbol): Update.
704 (coff_read_enum_type): Update.
705 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
706 (convert_one_symbol): Update.
707 (hash_symname): Update.
708 (eq_symname): Update.
709 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
710 * compile/compile-cplus-types.c (debug_print_scope): Update.
711 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
712 * compile/compile-object-load.c (get_out_value_type): Update.
713 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
714 (search_symbol_list): Update.
715 (cp_lookup_symbol_imports_or_template): Update.
716 * cp-support.c (overload_list_add_symbol): Update.
717 * ctfread.c (psymtab_to_symtab): Update.
718 * dbxread.c (cp_set_block_scope): Update.
719 * dictionary.c (iter_match_first_hashed): Update.
720 (iter_match_next_hashed): Update.
721 (insert_symbol_hashed): Update.
722 (iter_match_next_linear): Update.
723 * dictionary.h: Update.
724 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
725 (locexpr_describe_location_piece): Update.
726 (locexpr_describe_location_1): Update.
727 (locexpr_generate_c_location): Update.
728 (loclist_describe_location): Update.
729 (loclist_generate_c_location): Update.
730 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
731 (read_func_scope): Update.
732 (process_enumeration_scope): Update.
733 (new_symbol): Update.
734 (dwarf2_const_value): Update.
735 (dwarf2_symbol_mark_computed): Update.
736 * eval.c (evaluate_funcall): Update.
737 (evaluate_subexp_standard): Update.
738 * expprint.c (print_subexp_standard): Update.
739 (dump_subexp_body_standard): Update.
740 * f-valprint.c (info_common_command_for_block): Update.
741 * findvar.c (get_hosting_frame): Update.
742 (default_read_var_value): Update.
743 * go-lang.c (go_symbol_package_name): Update.
744 * guile/scm-block.c (bkscm_print_block_smob): Update.
745 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
746 (gdbscm_symbol_name): Update.
747 (gdbscm_symbol_linkage_name): Update.
748 (gdbscm_symbol_print_name): Update.
749 * infcall.c (get_function_name): Update.
750 * infcmd.c (jump_command): Update.
751 (finish_command): Update.
752 * infrun.c (insert_exception_resume_breakpoint): Update.
753 * linespec.c (canonicalize_linespec): Update.
754 (create_sals_line_offset): Update.
755 (convert_linespec_to_sals): Update.
756 (complete_label): Update.
757 (find_label_symbols_in_block): Update.
758 * m2-typeprint.c (m2_print_typedef): Update.
759 * mdebugread.c (mdebug_reg_to_regnum): Update.
760 (parse_symbol): Update.
761 (mylookup_symbol): Update.
762 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
763 (list_args_or_locals): Update.
764 * objc-lang.c (compare_selectors): Update.
765 (info_selectors_command): Update.
766 (compare_classes): Update.
767 (info_classes_command): Update.
768 (find_imps): Update.
769 * p-typeprint.c (pascal_print_typedef): Update.
770 * printcmd.c (build_address_symbolic): Update.
771 (info_address_command): Update.
772 (print_variable_and_value): Update.
773 * python/py-framefilter.c (extract_sym): Update.
774 (py_print_single_arg): Update.
775 * python/py-symbol.c (sympy_str): Update.
776 (sympy_get_name): Update.
777 (sympy_get_linkage_name): Update.
778 * python/python.c (gdbpy_rbreak): Update.
779 * record-btrace.c (btrace_get_bfun_name): Update.
780 (btrace_call_history): Update.
781 * rust-lang.c (rust_print_typedef): Update.
782 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
783 * stabsread.c (stab_reg_to_regnum): Update.
784 (define_symbol): Update.
785 (read_enum_type): Update.
786 (common_block_end): Update.
787 (cleanup_undefined_types_1): Update.
788 (scan_file_globals): Update.
789 * stack.c (print_frame_arg): Update.
790 (print_frame_args): Update.
791 (find_frame_funname): Update.
792 (info_frame_command_core): Update.
793 (iterate_over_block_locals): Update.
794 (print_block_frame_labels): Update.
795 (do_print_variable_and_value): Update.
796 (iterate_over_block_arg_vars): Update.
797 (return_command): Update.
798 * symmisc.c (dump_symtab_1): Update.
799 (print_symbol): Update.
800 * symtab.c (eq_symbol_entry): Update.
801 (symbol_cache_dump): Update.
802 (lookup_language_this): Update.
803 (find_pc_sect_line): Update.
804 (skip_prologue_sal): Update.
805 (symbol_search::compare_search_syms): Update.
806 (treg_matches_sym_type_name): Update.
807 (search_symbols): Update.
808 (print_symbol_info): Update.
809 (rbreak_command): Update.
810 (completion_list_add_symbol): Update.
811 (find_gnu_ifunc): Update.
812 (get_symbol_address): Update.
813 (search_module_symbols): Update.
814 (info_module_subcommand): Update.
815 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
816 (SYMBOL_LINKAGE_NAME): Remove.
817 (SYMBOL_DEMANGLED_NAME): Remove.
818 (SYMBOL_PRINT_NAME): Remove.
819 (SYMBOL_SEARCH_NAME): Remove.
820 * tracepoint.c (set_traceframe_context): Update.
821 (validate_actionline): Update.
822 (collection_list::collect_symbol): Update.
823 (encode_actions_1): Update.
824 (info_scope_command): Update.
825 (print_one_static_tracepoint_marker): Update.
826 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
827 * valops.c (address_of_variable): Update.
828 (find_overload_match): Update.
829 (find_oload_champ): Update.
830
c9d95fa3
CB
8312019-11-22 Christian Biesinger <cbiesinger@google.com>
832
833 * ada-lang.c (ada_lookup_simple_minsym): Update.
834 (ada_collect_symbol_completion_matches): Update.
835 * ada-tasks.c (read_atcb): Update.
836 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
837 (amd64_windows_skip_trampoline_code): Update.
838 * arm-tdep.c (skip_prologue_function): Update.
839 (arm_skip_stack_protector): Update.
840 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
841 (arm_wince_skip_main_prologue): Update.
842 * ax-gdb.c (gen_expr): Update.
843 * block.c (call_site_for_pc): Update.
844 * blockframe.c (find_pc_partial_function): Update.
845 * breakpoint.c (set_breakpoint_location_function): Update.
846 * btrace.c (ftrace_print_function_name): Update.
847 (ftrace_function_switched): Update.
848 * c-valprint.c (print_unpacked_pointer): Update.
849 * coffread.c (coff_symfile_read): Update.
850 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
851 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
852 * dwarf-index-write.c (write_psymbols): Update.
853 * dwarf2loc.c (call_site_to_target_addr): Update.
854 (func_verify_no_selftailcall): Update.
855 (tailcall_dump): Update.
856 (call_site_find_chain_1): Update.
857 (dwarf_expr_reg_to_entry_parameter): Update.
858 * elfread.c (elf_gnu_ifunc_record_cache): Update.
859 * eval.c (evaluate_funcall): Update.
860 (evaluate_subexp_standard): Update.
861 (evaluate_subexp_for_sizeof): Update.
862 * expprint.c (print_subexp_standard): Update.
863 (dump_subexp_body_standard): Update.
864 * frame.c (get_prev_frame_always_1): Update.
865 * frv-tdep.c (frv_skip_main_prologue): Update.
866 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
867 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
868 (gnuv3_get_typename_from_type_info): Update.
869 (gnuv3_skip_trampoline): Update.
870 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
871 * i386-tdep.c (i386_skip_main_prologue): Update.
872 (i386_pe_skip_trampoline_code): Update.
873 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
874 * infcall.c (get_function_name): Update.
875 * linespec.c (minsym_found): Update.
876 * linux-fork.c (info_checkpoints_command): Update.
877 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
878 (m32c_m16c_pointer_to_address): Update.
879 * maint.c (maintenance_translate_address): Update.
880 * minsyms.c (add_minsym_to_hash_table): Update.
881 (add_minsym_to_demangled_hash_table): Update.
882 (lookup_minimal_symbol_mangled): Update.
883 (lookup_minimal_symbol_demangled): Update.
884 (lookup_minimal_symbol_linkage): Update.
885 (lookup_minimal_symbol_text): Update.
886 (lookup_minimal_symbol_by_pc_name): Update.
887 (minimal_symbol_is_less_than): Update.
888 (compact_minimal_symbols): Update.
889 (build_minimal_symbol_hash_tables): Update.
890 (find_solib_trampoline_target): Update.
891 * mips-tdep.c (mips_stub_frame_sniffer): Update.
892 (mips_skip_pic_trampoline_code): Update.
893 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
894 * objc-lang.c (info_selectors_command): Update.
895 (info_classes_command): Update.
896 (find_methods): Update.
897 (find_imps): Update.
898 * p-valprint.c (pascal_val_print): Update.
899 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
900 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
901 * printcmd.c (build_address_symbolic): Update.
902 (info_symbol_command): Update.
903 * psymtab.c (psymbol_name_matches): Update.
904 (match_partial_symbol): Update.
905 (lookup_partial_symbol): Update.
906 (print_partial_symbols): Update.
907 (sort_pst_symbols): Update.
908 (maintenance_check_psymtabs): Update.
909 * python/py-framefilter.c (py_print_frame): Update.
910 * python/python.c (gdbpy_rbreak): Update.
911 * record-btrace.c (btrace_get_bfun_name): Update.
912 (btrace_call_history): Update.
913 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
914 (rs6000_skip_trampoline_code): Update.
915 * sol-thread.c (info_cb): Update.
916 * stabsread.c (scan_file_globals): Update.
917 * stack.c (find_frame_funname): Update.
918 (info_frame_command_core): Update.
919 * symmisc.c (dump_msymbols): Update.
920 * symtab.c (symbol_natural_name): Rename to..,
921 (general_symbol_info::natural_name): ...this.
922 (symbol_demangled_name): Rename to...
923 (general_symbol_info::demangled_name): ...this.
924 (symbol_search_name): Rename to...
925 (general_symbol_info::search_name): ...this.
926 (symbol_matches_search_name): Update.
927 (find_pc_sect_line): Update.
928 (skip_prologue_sal): Update.
929 (search_symbols): Update.
930 (print_msymbol_info): Update.
931 (rbreak_command): Update.
932 (completion_list_add_msymbol): Update.
933 (completion_list_objc_symbol): Update.
934 (get_msymbol_address): Update.
935 * symtab.h (struct general_symbol_info): Add member functions
936 natural_name (), linkage_name (), print_name (), demangled_name (),
937 and search_name ().
938 (SYMBOL_NATURAL_NAME): Update.
939 (symbol_natural_name): Move to a member function on general_symbol_info.
940 (SYMBOL_DEMANGLED_NAME): Update.
941 (symbol_demangled_name): Move to a member function on
942 general_symbol_info.
943 (SYMBOL_SEARCH_NAME): Update.
944 (symbol_search_name): Move to a member function on general_symbol_info.
945 (MSYMBOL_NATURAL_NAME): Remove.
946 (MSYMBOL_LINKAGE_NAME): Remove.
947 (MSYMBOL_PRINT_NAME): Remove.
948 (MSYMBOL_DEMANGLED_NAME): Remove.
949 (MSYMBOL_SEARCH_NAME): Remove.
950 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
951
f8bab2d6
CB
9522019-11-22 Christian Biesinger <cbiesinger@google.com>
953
954 * symtab.c (create_demangled_names_hash): Use per_bfd->
955 minimal_symbol_count for computing the initial size, if greater
956 than our default size.
957
85e7588d
TV
9582019-11-22 Tom de Vries <tdevries@suse.de>
959
960 * contrib/words.sh: Improve words extraction.
961
f6180073
TV
9622019-11-22 Tom de Vries <tdevries@suse.de>
963
964 * contrib/words.sh: Combine sed invocations.
965
f10ffa41
CB
9662019-11-21 Christian Biesinger <cbiesinger@google.com>
967
968 * Makefile.in: Update.
969 * demangle.c: Rename to...
970 * gdb-demangle.c: ..this.
971 (is_cplus_marker): Change return type to bool.
972 (_initialize_demangler): Rename to...
973 (_initialize_gdb_demangle): ...this.
974 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
975 * symtab.h (demangle): Remove declaration; instead include
976 gdb-demangle.h.
977
6ba18521
TT
9782019-11-21 Tom Tromey <tromey@adacore.com>
979
980 * gdbsupport/format.c (format_pieces): Parse %I64d.
981 * unittests/format_pieces-selftests.c (test_windows_formats): New
982 function.
983 (run_tests): Call it.
984
34877895
PJ
9852019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
986
987 Byte reverse display of variables with DW_END_big, DW_END_little
988 (DW_AT_endianity) dwarf attributes if different than the native
989 byte order.
990 * ada-lang.c (ada_value_binop):
991 Use type_byte_order instead of gdbarch_byte_order.
992 * ada-valprint.c (printstr):
993 (ada_val_print_string):
994 * ada-lang.c (value_pointer):
995 (ada_value_binop):
996 Use type_byte_order instead of gdbarch_byte_order.
997 * c-lang.c (c_get_string):
998 Use type_byte_order instead of gdbarch_byte_order.
999 * c-valprint.c (c_val_print_array):
1000 Use type_byte_order instead of gdbarch_byte_order.
1001 * cp-valprint.c (cp_print_class_member):
1002 Use type_byte_order instead of gdbarch_byte_order.
1003 * dwarf2loc.c (rw_pieced_value):
1004 Use type_byte_order instead of gdbarch_byte_order.
1005 * dwarf2read.c (read_base_type): Handle DW_END_big,
1006 DW_END_little
1007 * f-lang.c (f_get_encoding):
1008 Use type_byte_order instead of gdbarch_byte_order.
1009 * findvar.c (default_read_var_value):
1010 Use type_byte_order instead of gdbarch_byte_order.
1011 * gdbtypes.c (check_types_equal):
1012 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1013 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1014 and TYPE_ENDIANITY_LITTLE if set.
1015 (type_byte_order): new function.
1016 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1017 (struct main_type) <flag_endianity_not_default>:
1018 New field.
1019 (type_byte_order): New function.
1020 * infcmd.c (default_print_one_register_info):
1021 Use type_byte_order instead of gdbarch_byte_order.
1022 * p-lang.c (pascal_printstr):
1023 Use type_byte_order instead of gdbarch_byte_order.
1024 * p-valprint.c (pascal_val_print):
1025 Use type_byte_order instead of gdbarch_byte_order.
1026 * printcmd.c (print_scalar_formatted):
1027 Use type_byte_order instead of gdbarch_byte_order.
1028 * solib-darwin.c (darwin_current_sos):
1029 Use type_byte_order instead of gdbarch_byte_order.
1030 * solib-svr4.c (solib_svr4_r_ldsomap):
1031 Use type_byte_order instead of gdbarch_byte_order.
1032 * stap-probe.c (stap_modify_semaphore):
1033 Use type_byte_order instead of gdbarch_byte_order.
1034 * target-float.c (target_float_same_format_p):
1035 Use type_byte_order instead of gdbarch_byte_order.
1036 * valarith.c (scalar_binop):
1037 (value_bit_index):
1038 Use type_byte_order instead of gdbarch_byte_order.
1039 * valops.c (value_cast):
1040 Use type_byte_order instead of gdbarch_byte_order.
1041 * valprint.c (generic_emit_char):
1042 (generic_printstr):
1043 (val_print_string):
1044 Use type_byte_order instead of gdbarch_byte_order.
1045 * value.c (unpack_long):
1046 (unpack_bits_as_long):
1047 (unpack_value_bitfield):
1048 (modify_field):
1049 (pack_long):
1050 (pack_unsigned_long):
1051 Use type_byte_order instead of gdbarch_byte_order.
1052 * findvar.c (unsigned_pointer_to_address):
1053 (signed_pointer_to_address):
1054 (unsigned_address_to_pointer):
1055 (address_to_signed_pointer):
1056 (default_read_var_value):
1057 (default_value_from_register):
1058 Use type_byte_order instead of gdbarch_byte_order.
1059 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1060 Use type_byte_order instead of gdbarch_byte_order.
1061 * riscv-tdep.c (riscv_print_one_register_info):
1062 Use type_byte_order instead of gdbarch_byte_order.
1063
87fb00ea
SM
10642019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1067 (current_ui_gdb_stdin_ptr): Likewise.
1068 (current_ui_gdb_stderr_ptr): Likewise.
1069 (current_ui_gdb_stdlog_ptr): Likewise.
1070 (current_ui_current_uiout_ptr): Likewise.
1071 (gen_ret_current_ui_field_ptr): Remove.
1072
65d1cd5f
TV
10732019-11-21 Tom de Vries <tdevries@suse.de>
1074
1075 PR gdb/24956
1076 * cli/cli-script.c (execute_control_command): Only switch to
1077 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1078
9f6ad286
TT
10792019-11-19 Tom Tromey <tom@tromey.com>
1080
1081 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1082 Now static. Change type of "name".
1083 (tui_set_win_height_command): Don't copy "arg".
1084 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1085 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1086
435d3d88
AT
10872019-11-19 Ali Tamur <tamur@google.com>
1088
1089 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1090 "if (attr != nullptr)".
1091 (dwarf2_find_base_address): Likewise.
1092 (dwarf2_build_include_psymtabs): Likewise.
1093 (read_cutu_die_from_dwo): Likewise.
1094 (read_func_scope): Likewise.
1095 (read_call_site_scope): Likewise.
1096 (dwarf2_get_pc_bounds): Likewise.
1097 (dwarf2_record_block_ranges): Likewise.
1098 (dwarf2_add_field): Likewise.
1099 (dwarf2_add_member_fn): Likewise.
1100 (read_structure_type): Likewise.
1101 (read_enumeration_type): Likewise.
1102 (read_array_type): Likewise.
1103 (read_array_order): Likewise.
1104 (read_set_type): Likewise.
1105 (read_common_block): Likewise.
1106 (read_tag_reference_type): Likewise.
1107 (read_tag_string_type): Likewise.
1108 (read_subroutine_type): Likewise.
1109 (read_base_type): Likewise.
1110 (read_subrange_type): Likewise.
1111 (new_symbol): Likewise.
1112 (prepare_one_comp_unit): Likewise.
1113
c9739b6a
TT
11142019-11-19 Tom Tromey <tromey@adacore.com>
1115
1116 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1117 result in error when DebugActiveProcess fails.
1118
494409bb
SDJ
11192019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1120 Pedro Alves <palves@redhat.com>
1121
1122 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1123 * target.c (target_stack::push): Call 'unpush' if there's a
1124 target on top of the stack.
1125
2e953aca
PW
11262019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1127
1128 * python/py-block.c (blpy_dealloc): Call tp_free.
1129 (blpy_block_syms_dealloc): Likewise.
1130 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1131 * python/py-inferior.c (infpy_dealloc): Likewise.
1132 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1133 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1134 * python/py-symbol.c (sympy_dealloc): Likewise.
1135 * python/py-symtab.c (stpy_dealloc): Likewise.
1136 * python/py-type.c (typy_iterator_dealloc): Likewise.
1137
6edc43ec
CB
11382019-11-18 Christian Biesinger <cbiesinger@google.com>
1139
1140 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1141 constructor instead of using a class initializer.
1142
cd850b40
CB
11432019-11-15 Christian Biesinger <cbiesinger@google.com>
1144
1145 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1146 * configure: Regenerate.
1147 * configure.ac: Don't source common.host.
1148 * gdbsupport/common.host: Remove.
1149 * gdbsupport/mingw-strerror.c: Remove.
1150 * gdbsupport/posix-strerror.c: Rename to...
1151 * gdbsupport/safe-strerror.c: ...this.
1152
53fea9c7
CB
11532019-11-15 Christian Biesinger <cbiesinger@google.com>
1154
1155 * maint.c (scoped_command_stats::print_time): Use localtime_r
1156 instead of localtime (provided through gnulib if necessary).
1157 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1158 of ctime.
1159
f8e27d88
CB
11602019-11-15 Christian Biesinger <cbiesinger@google.com>
1161
1162 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1163 avoid compile errors.
1164
5abebf3c
CB
11652019-11-15 Christian Biesinger <cbiesinger@google.com>
1166
1167 * config.in: Regenerate.
1168 * configure: Regenerate.
1169 * gdbsupport/common.m4: No longer check for strerror_r.
1170 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1171 POSIX version of strerror_r, now that gnulib provides it if
1172 necessary.
1173
9a351667
CB
11742019-11-14 Christian Biesinger <cbiesinger@google.com>
1175
1176 * README (`configure' options): Update.
1177
55708e99
TT
11782019-11-14 Tom Tromey <tromey@adacore.com>
1179
1180 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1181 expected type for the RHS if the LHS is a convenience variable.
1182
4b09bb2e
SM
11832019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1186 Provide explicit default and copy constructor.
1187
bd454f8b
PW
11882019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1189
1190 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1191 only call Py_INCREF (newbp) in the bppy_pending_object case.
1192
d1aa3cf0
TT
11932019-11-13 Tom Tromey <tromey@adacore.com>
1194
1195 PR build/25182:
1196 * psympriv.h (partial_symbol): Remove static assert.
1197 * symtab.h (general_symbol_info, symbol): Remove static assert.
1198
e06f3d6e
AB
11992019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * gdbsupport/format.c (format_pieces::format_pieces): Support
1202 printf 'z' size modifier.
1203 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1204 * printcmd.c (ui_printf): Handle size_t_arg.
1205 * ui-out.c (ui_out::vmessage): Likewise.
1206 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1207 function.
1208 (run_tests): Call test_format_int_sizes.
1209
468c0cbb
CB
12102019-11-12 Christian Biesinger <cbiesinger@google.com>
1211
1212 * ada-exp.y (write_ambiguous_var): Update.
1213 * buildsym.c (add_symbol_to_list): Update.
1214 * dwarf2read.c (read_variable): Update.
1215 (new_symbol): Update.
1216 * jit.c (finalize_symtab): Update.
1217 * language.c (language_alloc_type_symbol): Update.
1218 * symtab.c (fixup_symbol_section): Update.
1219 (initialize_objfile_symbol_1): Move code to...
1220 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1221 (allocate_symbol): Update.
1222 (allocate_template_symbol): Update.
1223 (get_symbol_address): Update.
1224 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1225 of having as a field, and add a constructor.
1226 (SYMBOL_VALUE): Update.
1227 (SYMBOL_VALUE_ADDRESS): Update.
1228 (SET_SYMBOL_VALUE_ADDRESS): Update.
1229 (SYMBOL_VALUE_BYTES): Update.
1230 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1231 (SYMBOL_BLOCK_VALUE): Update.
1232 (SYMBOL_VALUE_CHAIN): Update.
1233 (SYMBOL_LANGUAGE): Update.
1234 (SYMBOL_SECTION): Update.
1235 (SYMBOL_OBJ_SECTION): Update.
1236 (SYMBOL_SET_LANGUAGE): Update.
1237 (SYMBOL_SET_LINKAGE_NAME): Update.
1238 (SYMBOL_SET_NAMES): Update.
1239 (SYMBOL_NATURAL_NAME): Update.
1240 (SYMBOL_LINKAGE_NAME): Update.
1241 (SYMBOL_DEMANGLED_NAME): Update.
1242 (SYMBOL_SEARCH_NAME): Update.
1243 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1244 (struct symbol): Update.
1245 (struct template_symbol): Update.
1246 (struct rust_vtable_symbol): Update.
1247 * xcoffread.c (SYMBOL_DUP): Update.
1248
ed2c82c3
TT
12492019-11-12 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-layout.c (show_layout): Set current_layout.
1252 (show_source_disasm_command, show_data)
1253 (show_source_or_disasm_and_command): Don't set current_layout.
1254
d9fcefd5
TT
12552019-11-12 Tom Tromey <tom@tromey.com>
1256
1257 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1258
45e42163
TT
12592019-11-12 Tom Tromey <tom@tromey.com>
1260
1261 * tui/tui-win.c (resize_message): New global.
1262 (show_tui_resize_message): New function.
1263 (tui_async_resize_screen): Print message if requested.
1264 (_initialize_tui_win): Add tui-resize-message setting.
1265 * NEWS: Add entry for new commands.
1266
c86d74cc
TT
12672019-11-11 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1270 functions.
1271
7b7b9424
CB
12722019-11-11 Christian Biesinger <cbiesinger@google.com>
1273
1274 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1275
086baaf1
AB
12762019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1279 function.
1280 * python/python-internal.h (gdbpy_lookup_static_symbols):
1281 Declare new function.
1282 * python/python.c (python_GdbMethods): Add
1283 gdb.lookup_static_symbols method.
1284 * NEWS: Mention gdb.lookup_static_symbols.
1285
09ff83af
AB
12862019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1289 static block of current object file first. Also fix typo in
1290 header comment.
1291
eb2dd8df
AB
12922019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1293
1294 * stack.c (set_last_displayed_sal): Delete.
1295 (last_displayed_sal_valid): Delete.
1296 (last_displayed_pspace): Delete.
1297 (last_displayed_addr): Delete.
1298 (last_displayed_symtab): Delete.
1299 (last_displayed_line): Delete.
1300 (class last_displayed_symtab_info_type): New.
1301 (last_displayed_symtab_info): New static global variable.
1302 (print_frame_info): Call methods on last_displayed_symtab_info.
1303 (clear_last_displayed_sal): Update header comment, and make use of
1304 last_displayed_symtab_info.
1305 (last_displayed_sal_is_valid): Likewise.
1306 (get_last_displayed_pspace): Likewise.
1307 (get_last_displayed_addr): Likewise.
1308 (get_last_displayed_symtab): Likewise.
1309 (get_last_displayed_line): Likewise.
1310 (get_last_displayed_sal): Likewise.
1311 * stack.h (clear_last_displayed_sal): Update header comment.
1312 (last_displayed_sal_is_valid): Likewise.
1313 (get_last_displayed_pspace): Likewise.
1314 (get_last_displayed_addr): Likewise.
1315 (get_last_displayed_symtab): Likewise.
1316 (get_last_displayed_line): Likewise.
1317 (get_last_displayed_sal): Likewise.
1318
62137775
AB
13192019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * stack.c (frame_show_address): Convert return type to bool.
1322 * stack.h (frame_show_address): Likewise, and update header
1323 comment.
1324
cf57ad6d
AB
13252019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1328 * unittests/vec-utils-selftests.c: New file.
1329 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1330
0b026263
TT
13312019-11-10 Tom Tromey <tom@tromey.com>
1332
1333 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1334 (tui_highlight_win): Likewise.
1335 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1336 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1337 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1338 Don't set can_highlight.
1339
b049ce2d
TT
13402019-11-10 Tom Tromey <tom@tromey.com>
1341
1342 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1343 Remove unused declaration.
1344
992a7040
TT
13452019-11-08 Tom Tromey <tromey@adacore.com>
1346
1347 * top.c (read_command_file): Update.
1348 (command_line_input): Make return type const.
1349 * python/py-gdb-readline.c: Update.
1350 * linespec.c (decode_line_2): Update.
1351 * defs.h (command_line_input): Make return type const.
1352 * cli/cli-script.c (read_next_line): Make return type const.
1353 * ada-lang.c (get_selections): Update.
1354
ca3a04f6
CB
13552019-11-06 Christian Biesinger <cbiesinger@google.com>
1356
1357 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1358 * mi/mi-main.c (output_cores): Likewise.
1359 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1360 (linux_xfer_osdata_modules): Likewise.
1361 * remote.c (register_remote_support_xml): Likewise.
1362 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1363 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1364
e0eac551
TT
13652019-11-06 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-interp.c: Don't include readline.h.
1368 * tui/tui-hooks.c: Don't include readline.h.
1369 * symmisc.c: Include tilde.h, not readline.h.
1370 * symfile.c: Include tilde.h, not readline.h.
1371 * source.c: Include tilde.h, not readline.h.
1372 * solib.c: Include tilde.h, not readline.h.
1373 * psymtab.c: Include tilde.h, not readline.h.
1374 * exec.c: Include tilde.h, not readline.h.
1375 * corelow.c: Include tilde.h, not readline.h.
1376 * cli/cli-dump.c: Include tilde.h, not readline.h.
1377 * cli/cli-cmds.c: Don't include readline.h.
1378
825165c5
TT
13792019-11-05 Tom Tromey <tom@tromey.com>
1380
1381 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1382 (tui_disassemble): Set addr_size.
1383 (tui_disasm_window::set_contents): Use addr_size.
1384
91ae903f
TT
13852019-11-05 Tom Tromey <tom@tromey.com>
1386
1387 * rust-lang.c (rust_language_defn): Update.
1388 * python/py-value.c (valpy_string): Call c_get_string.
1389 * p-lang.c (pascal_language_defn): Update.
1390 * opencl-lang.c (opencl_language_defn): Update.
1391 * objc-lang.c (objc_language_defn): Update.
1392 * m2-lang.c (m2_language_defn): Update.
1393 * language.c (unknown_language_defn, auto_language_defn): Update.
1394 (default_get_string): Remove.
1395 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1396 * go-lang.c (go_language_defn): Update.
1397 * f-lang.c (f_language_defn): Update.
1398 * d-lang.c (d_language_defn): Update.
1399 * c-lang.c (c_language_defn, cplus_language_defn)
1400 (asm_language_defn, minimal_language_defn): Update.
1401 * ada-lang.c (ada_language_defn): Update.
1402 * language.h (struct language_defn) <la_get_string>: Remove.
1403 (LA_GET_STRING): Remove.
1404 (default_get_string): Don't declare.
1405
1df2f9ef
TT
14062019-11-05 Tom Tromey <tom@tromey.com>
1407
1408 * tui/tui-source.h (struct tui_source_window): Inline
1409 constructor. Remove destructor.
1410 <style_changed, m_observable>: Move to superclass.
1411 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1412 (struct tui_source_window_base): Move private members to end.
1413 <style_changed, m_observable>: Move from tui_source_window.
1414 * tui/tui-winsource.c (tui_copy_source_line): Move from
1415 tui-source.c. Rename from copy_source_line. Add special handling
1416 for negative line number.
1417 (tui_source_window_base::style_changed): Move from
1418 tui_source_window.
1419 (tui_source_window_base): Register observer.
1420 (~tui_source_window_base): New.
1421 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1422 rename.
1423 (tui_source_window::set_contents): Use tui_copy_source_line.
1424 (tui_source_window::tui_source_window): Move to tui-source.h.
1425 (tui_source_window::~tui_source_window): Remove.
1426 (tui_source_window::style_changed): Move to superclass.
1427 * tui/tui-disasm.c (tui_disassemble): Create string file with
1428 styling, when possible. Add "addr_size" parameter.
1429 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1430 Don't compute maximum size.
1431 (len_without_escapes): New function
1432
5d051055
TT
14332019-11-05 Tom Tromey <tom@tromey.com>
1434
1435 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1436 std::string.
1437 * tui/tui-winsource.c (tui_show_source_line): Update.
1438 * tui/tui-source.c (tui_source_window::set_contents): Update.
1439 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1440
ade7beea
CB
14412019-11-05 Christian Biesinger <cbiesinger@google.com>
1442
1443 * symtab.h (gdb_static_assert): Put && operator at the beginning
1444 of the line instead of the end.
1445
3573abe1
CB
14462019-11-04 Christian Biesinger <cbiesinger@google.com>
1447
1448 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1449 and sizeof (symbol).
1450 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1451
dae8b3eb
RO
14522019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1453
1454 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1455 * configure.host: Mark *-*-solaris2.10* obsolete.
1456 * configure.tgt: Mark Solaris < 11 obsolete.
1457 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1458 Update target triplet.
1459
5df96a4e
TT
14602019-11-01 Tom Tromey <tromey@adacore.com>
1461
1462 * utils.c (print_sys_errmsg): Simplify.
1463
b7481649
TT
14642019-11-01 Tom Tromey <tromey@adacore.com>
1465
1466 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1467
e48f6033
CB
14682019-11-01 Christian Biesinger <cbiesinger@google.com>
1469
1470 * configure: Regenerate.
1471 * configure.ac: Remove check for strerror_r.
1472 * gdbsupport/common.m4: Check for strerror_r.
1473
bd5766ec
LM
14742019-11-01 Luis Machado <luis.machado@linaro.org>
1475
1476 PR gdb/25124
1477
1478 * arm-tdep.c (arm_per_objfile): Rename to ...
1479 (arm_per_bfd): ... this.
1480 (arm_objfile_data_key): Rename to ...
1481 (arm_bfd_data_key): ... this.
1482 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1483 data.
1484 (arm_record_special_symbol): Likewise.
1485
e1709896
AB
14862019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1489 end.
1490 * c-typeprint.c (c_print_typedef): Likewise.
1491 * f-typeprint.c (f_print_typedef): Likewise.
1492 * m2-typeprint.c (m2_print_typedef): Likewise.
1493 * p-typeprint.c (pascal_print_typedef): Likewise.
1494 * rust-lang.c (rust_print_typedef): Likewise.
1495 * symtab.c (print_symbol_info): Print a newline after calling
1496 typedef_print.
1497
165f8965
AB
14982019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * symtab.c (info_module_cmdlist): New variable.
1501 (info_module_command): New function.
1502 (search_module_symbols): New function.
1503 (info_module_subcommand): New function.
1504 (struct info_modules_var_func_options): New struct.
1505 (info_modules_var_func_options_defs): New variable.
1506 (make_info_modules_var_func_options_def_group): New function.
1507 (info_module_functions_command): New function.
1508 (info_module_variables_command): New function.
1509 (info_module_var_func_command_completer): New function.
1510 (_initialize_symtab): Register new 'info module functions' and
1511 'info module variables' commands.
1512 * symtab.h (typedef symbol_search_in_module): New typedef.
1513 (search_module_symbols): Declare new function.
1514 * NEWS: Mention new commands.
1515
59c35742
AB
15162019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1519 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1520 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1521 MODULES_DOMAIN.
1522 (scan_partial_symbols): Only create partial module symbols for non
1523 declarations.
1524 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1525 and MODULES_DOMAIN.
1526 * symtab.c (search_domain_name): Likewise.
1527 (search_symbols): Likewise.
1528 (print_symbol_info): Likewise.
1529 (symtab_symbol_info): Likewise.
1530 (info_modules_command): New function.
1531 (_initialize_symtab): Register 'info modules' command.
1532 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1533 * NEWS: Mention new 'info modules' command.
1534
aed61d02
PW
15352019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1536
1537 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1538 and $_gdb_maint_setting_str.
1539
9ad9b77d
PW
15402019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1541
1542 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1543 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1544 (str_value_from_setting, gdb_setting_str_internal_fn)
1545 (gdb_maint_setting_str_internal_fn): New functions.
1546 (_initialize_cli_cmds): Define the new convenience functions.
1547 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1548 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1549
8d6efaa2
CB
15502019-10-31 Christian Biesinger <cbiesinger@google.com>
1551
1552 * agent.c (set_can_use_agent): When the setting is turned on,
1553 look up agent symbols if we don't have them yet.
1554 (agent_new_objfile): Don't look up agent symbols when the agent
1555 setting is off.
1556
33cb1647
CB
15572019-10-31 Christian Biesinger <cbiesinger@google.com>
1558
1559 * config.in: Regenerate.
1560
b231e86a
CB
15612019-10-31 Christian Biesinger <cbiesinger@google.com>
1562
1563 * configure: Regenerate.
1564 * configure.ac: Check for strerror_r.
1565 * gdbsupport/common-utils.h (safe_strerror): Change return value
1566 to const char * and document that this function is now threadsafe.
1567 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1568 thread_local and call strerror_r, if available.
1569 * utils.c (perror_string): Update.
1570 (print_sys_errmsg): Update.
1571
a2726d4f
LM
15722019-10-31 Luis Machado <luis.machado@linaro.org>
1573
1574 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1575 objfile_key.
1576 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1577 objfile to fetch per-bfd data.
1578 (arm_find_exidx_entry): Likewise.
1579
75cafaa6
CB
15802019-10-31 Christian Biesinger <cbiesinger@google.com>
1581
1582 * gdbsupport/agent.c (debug_agent): Change type to bool.
1583 (use_agent): Likewise.
1584 (all_agent_symbols_look_up): Likewise.
1585 (agent_loaded_p): Change return value to bool.
1586 (agent_look_up_symbols): Update.
1587 (agent_capability_check): Change return value to bool.
1588 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1589 (debug_agent): Change type to bool.
1590 (use_agent): Likewise.
1591 (agent_capability_check): Change return value to bool.
1592
808590ec
CB
15932019-10-30 Christian Biesinger <cbiesinger@google.com>
1594
1595 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1596 (build_minimal_symbol_hash_tables): Code to clear the table moved
1597 to clear_minimal_symbol_hash_tables.
1598 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1599 when needed.
1600
f18ad8a1
SM
16012019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 * infcmd.c: Remove includes.
1604 * infrun.c: Remove includes.
1605
de93309a
SM
16062019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1609 (grow_vect): Remove declaration.
1610 (ada_type_of_array): Remove declaration.
1611 (ada_update_initial_language): Remove declaration.
1612 (ada_fold_name): Remove declaration.
1613 (ada_fill_in_ada_prototype): Remove declaration.
1614 (user_select_syms): Remove declaration.
1615 (get_selections): Remove declaration.
1616 (ada_tag_type): Remove declaration.
1617 (ada_value_tag): Remove declaration.
1618 (ada_is_others_clause): Remove declaration.
1619 (ada_in_variant): Remove declaration.
1620 (ada_value_struct_elt): Remove declaration.
1621 (ada_attribute_name): Remove declaration.
1622 (ada_system_address_type): Remove declaration.
1623 * ada-lang.c (ada_watch_location_expression): Make static.
1624 (GROW_VECT): Move here from ada-lang.h.
1625 (grow_vect): Make static.
1626 (ada_update_initial_language): Make static.
1627 (ada_fold_name): Make static.
1628 (ada_type_of_array): Make static.
1629 (encoded_ordered_before): Move up.
1630 (sort_choices): Move up.
1631 (print_signatures): Move up.
1632 (ada_print_symbol_signature): Move up.
1633 (get_selections): Move up and make static.
1634 (user_select_syms): Move up and make static.
1635 (ada_value_struct_elt): Move up and make static.
1636 (ada_tag_type): Make static.
1637 (ada_value_tag): Make static.
1638 (ada_is_others_clause): Make static.
1639 (ada_in_variant): Make static.
1640 (ada_attribute_name): Make static.
1641
cdc46a9f
SM
16422019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1643
1644 * ada-lang.c: Remove includes.
1645 * ada-typeprint.c: Remove includes.
1646 * ada-valprint.c: Remove includes.
1647
90421c56
SM
16482019-10-29 Simon Marchi <simon.marchi@efficios.com>
1649
1650 * addrmap.c: Add static assertions of type size, moved from
1651 _initialize_addrmap.
1652 (_initialize_addrmap): Remove.
1653
31edb802
CB
16542019-10-29 Christian Biesinger <cbiesinger@google.com>
1655
1656 * coffread.c (record_minimal_symbol): Update.
1657 (process_coff_symbol): Update.
1658 * dbxread.c (read_dbx_symtab): Update.
1659 * dwarf2read.c (add_partial_symbol): Update.
1660 (fixup_go_packaging): Update.
1661 (load_partial_dies): Update.
1662 (new_symbol): Update.
1663 * elfread.c (record_minimal_symbol): Change signature to use
1664 gdb::string_view instead of name+len.
1665 (elf_symtab_read): Update.
1666 (elf_rel_plt_read): Update.
1667 * mdebugread.c (parse_partial_symbols): Update.
1668 (handle_psymbol_enumerators): Update.
1669 (new_symbol): Update.
1670 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1671 to use gdb::string_view instead of name+len.
1672 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1673 * psympriv.h (add_psymbol_to_list): Likewise.
1674 * psymtab.c (add_psymbol_to_bcache): Likewise.
1675 (add_psymbol_to_list): Likewise.
1676 * stabsread.c (define_symbol): Update.
1677 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1678 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1679 (symbol_set_names): Likewise.
1680 * xcoffread.c (scan_xcoff_symtab): Update.
1681
0c921b21
CB
16822019-10-29 Christian Biesinger <cbiesinger@google.com>
1683
1684 * symtab.h (symbol_set_names): Document that copy_name must be
1685 set to true for non-nullterminated strings.
1686 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1687 linkage_name if the entry was not found and we need to demangle.
1688
35e65c49
CB
16892019-10-29 Christian Biesinger <cbiesinger@google.com>
1690
1691 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1692 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1693 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1694 * gdbsupport/gdb_binary_search.h: New file.
1695
ed2a2229
CB
16962019-10-29 Christian Biesinger <cbiesinger@google.com>
1697
1698 * NEWS: Mention new --with-system-gdbinit-dir option.
1699 * config.in: Regenerate.
1700 * configure: Regenerate.
1701 * configure.ac: Add new option --with-system-gdbinit-dir.
1702 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1703 for a ".gdb" suffix.
1704 * main.c (get_init_files): Change system_gdbinit argument to
1705 a vector and return the files in SYSTEM_GDBINIT_DIR in
1706 addition to SYSTEM_GDBINIT.
1707 (captured_main_1): Update.
1708 (print_gdb_help): Update.
1709 * top.c (print_gdb_configuration): Also print the value of
1710 SYSTEM_GDBINIT_DIR.
1711
87f34879
CB
17122019-10-28 Christian Biesinger <cbiesinger@google.com>
1713
1714 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1715 that takes gdb::string_view arguments.
1716
30baf67b
TV
17172019-10-26 Tom de Vries <tdevries@suse.de>
1718
1719 * aarch64-linux-tdep.c: Fix typos in comments.
1720 * aarch64-tdep.c: Same.
1721 * ada-lang.c: Same.
1722 * amd64-nat.c: Same.
1723 * arc-tdep.c: Same.
1724 * arch/aarch64-insn.c: Same.
1725 * block.c: Same.
1726 * breakpoint.h: Same.
1727 * btrace.h: Same.
1728 * c-varobj.c: Same.
1729 * cli/cli-decode.c: Same.
1730 * cli/cli-script.c: Same.
1731 * cli/cli-utils.h: Same.
1732 * coff-pe-read.c: Same.
1733 * coffread.c: Same.
1734 * compile/compile-cplus-symbols.c: Same.
1735 * compile/compile-object-run.c: Same.
1736 * completer.c: Same.
1737 * corelow.c: Same.
1738 * cp-support.c: Same.
1739 * demangle.c: Same.
1740 * dwarf-index-write.c: Same.
1741 * dwarf2-frame.c: Same.
1742 * dwarf2-frame.h: Same.
1743 * eval.c: Same.
1744 * frame-base.h: Same.
1745 * frame.h: Same.
1746 * gdbcmd.h: Same.
1747 * gdbtypes.h: Same.
1748 * gnu-nat.c: Same.
1749 * guile/scm-objfile.c: Same.
1750 * i386-tdep.c: Same.
1751 * i386-tdep.h: Same.
1752 * infcall.c: Same.
1753 * infcall.h: Same.
1754 * linux-nat.c: Same.
1755 * m68k-tdep.c: Same.
1756 * macroexp.c: Same.
1757 * memattr.c: Same.
1758 * mi/mi-cmd-disas.c: Same.
1759 * mi/mi-getopt.h: Same.
1760 * mi/mi-main.c: Same.
1761 * minsyms.c: Same.
1762 * nat/aarch64-sve-linux-sigcontext.h: Same.
1763 * objfiles.h: Same.
1764 * ppc-linux-nat.c: Same.
1765 * ppc-linux-tdep.c: Same.
1766 * ppc-tdep.h: Same.
1767 * progspace.h: Same.
1768 * prologue-value.h: Same.
1769 * python/py-evtregistry.c: Same.
1770 * python/py-instruction.h: Same.
1771 * record-btrace.c: Same.
1772 * record-full.c: Same.
1773 * remote.c: Same.
1774 * rs6000-tdep.c: Same.
1775 * ser-tcp.c: Same.
1776 * sol-thread.c: Same.
1777 * sparc-sol2-tdep.c: Same.
1778 * sparc64-tdep.c: Same.
1779 * stabsread.c: Same.
1780 * symfile.c: Same.
1781 * symtab.h: Same.
1782 * target.c: Same.
1783 * tracepoint.c: Same.
1784 * tui/tui-data.h: Same.
1785 * tui/tui-io.c: Same.
1786 * tui/tui-win.c: Same.
1787 * tui/tui.c: Same.
1788 * unittests/rsp-low-selftests.c: Same.
1789 * user-regs.h: Same.
1790 * utils.c: Same.
1791 * utils.h: Same.
1792 * valarith.c: Same.
1793 * valops.c: Same.
1794 * valprint.c: Same.
1795 * valprint.h: Same.
1796 * value.c: Same.
1797 * value.h: Same.
1798 * varobj.c: Same.
1799 * x86-nat.h: Same.
1800 * xtensa-tdep.c: Same.
1801
1834d45f
AT
18022019-10-25 Ali Tamur <tamur@google.com>
1803
1804 * charset.c (find_charset_names): Reflect API change.
1805
5396ae17
CB
18062019-10-25 Christian Biesinger <cbiesinger@google.com>
1807
1808 * symtab.c (struct demangled_name_entry): Change demangled name
1809 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1810 part of the struct anymore.
1811 (symbol_set_names): No longer obstack allocate + copy the demangled
1812 name, just store the allocated name from bfd.
1813
93878f47
TT
18142019-10-25 Tom Tromey <tromey@adacore.com>
1815
1816 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1817 (bsearch_cie_cmp, add_cie): Remove.
1818 (find_cie): Reimplement.
1819 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1820 (dwarf2_build_frame_info): Update.
1821
7b71fc97
L
18222019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1823
1824 PR gdb/25126
1825 * symfile.c (reread_symbols): Call forget_cached_source_info to
1826 clear the stale source cache.
1827
cbb5a2ea
CB
18282019-10-24 Christian Biesinger <cbiesinger@google.com>
1829
1830 * configure: Regenerate.
1831 * configure.ac: Remove code that sets python_has_threads.
1832
71737c43
CB
18332019-10-24 Christian Biesinger <cbiesinger@google.com>
1834
1835 * config.in: Regenerate.
1836 * configure: Regenerate.
1837 * configure.ac: Remove the code that uses sed to get the python
1838 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1839
33d569b7
AB
18402019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1843 error paths.
1844
f16f7b7c
TT
18452019-10-23 Tom Tromey <tom@tromey.com>
1846
1847 * arc-tdep.c: Remove ".." from include.
1848 * frv-tdep.c: Remove ".." from include.
1849 * lm32-tdep.c: Remove ".." from include.
1850 * microblaze-tdep.c: Remove ".." from include.
1851 * or1k-tdep.h: Remove ".." from include.
1852 * s12z-tdep.c: Remove ".." from include.
1853 * Makefile.in (OPCODES_CFLAGS): Add comment.
1854 (TOP_CFLAGS): New variable.
1855 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1856
6999161a
TT
18572019-10-23 Tom Tromey <tom@tromey.com>
1858
1859 * Makefile.in (READLINE_DIR): Update.
1860
12e7c35e
TBA
18612019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 * infcall.c (call_function_by_hand_dummy): Fix the function
1864 comment. And extract out a code section into...
1865 (reserve_stack_space): ...this new function.
1866
37055cad
TBA
18672019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1868
1869 * infcall.c (value_arg_coerce): Remove an unused parameter.
1870 (call_function_by_hand_dummy): Update the call to
1871 'value_arg_coerce'.
1872
39bcc47c
TBA
18732019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874
1875 * infcall.c (call_function_by_hand_dummy): Refactor.
1876
bd888c0f
TBA
18772019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1878
1879 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1880
c12d372d
TT
18812019-10-23 Tom Tromey <tom@tromey.com>
1882
1883 * configure: Rebuild.
1884 * configure.ac: Don't check for sigprocmask.
1885 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1886
4d0b984b
TT
18872019-10-23 Tom Tromey <tom@tromey.com>
1888
1889 * configure: Rebuild.
1890 * acinclude.m4: Use m4_include, not sinclude.
1891
7e785608
TV
18922019-10-23 Tom de Vries <tdevries@suse.de>
1893
1894 PR breakpoints/24687
1895 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1896
403772ef
CB
18972019-10-22 Christian Biesinger <cbiesinger@google.com>
1898
1899 * symtab.c (struct demangled_name_entry) <language>: Change from
1900 bitfield to regular variable.
1901
3a494279
CB
19022019-10-22 Christian Biesinger <cbiesinger@google.com>
1903
1904 * symtab.c (struct demangled_name_entry): Add a constructor.
1905 (free_demangled_name_entry): New function to call the destructor
1906 for demangled_name_entry.
1907 (create_demangled_names_hash): Pass free_demangled_name_entry to
1908 htab_create_alloc.
1909 (symbol_set_names): Call placement new for demangled_name_entry.
1910 * utils.c: No longer include xxhash.h here, now that fast_hash
1911 is inlined in the header.
1912 * utils.h: Instead, include it here.
1913
ccb1ba62
CB
19142019-10-22 Christian Biesinger <cbiesinger@google.com>
1915
1916 * Makefile.in: Link with libxxhash.
1917 * config.in: Regenerate.
1918 * configure: Regenerate.
1919 * configure.ac: Search for libxxhash.
1920 * utils.c (fast_hash): Use xxhash if present.
1921
1a6ff1a9
CB
19222019-10-22 Christian Biesinger <cbiesinger@google.com>
1923
1924 * utils.h (fast_hash): New function.
1925 * symtab.c (hash_demangled_name_entry): Call new function
1926 fast_hash.
1927
7bb43059
CB
19282019-10-22 Christian Biesinger <cbiesinger@google.com>
1929
1930 * symtab.c (struct demangled_name_entry): Change type of mangled
1931 to gdb::string_view. Also adds a constructor that takes the
1932 mangled name.
1933 (hash_demangled_name_entry): Update.
1934 (eq_demangled_name_entry): Update.
1935 (free_demangled_name_entry): New function to call the destructor
1936 now that this is not a POD anymore.
1937 (create_demangled_names_hash): Pass free_demangled_name_entry to
1938 htab_create_alloc.
1939 (symbol_set_names): Update.
1940
7ba99d21
AT
19412019-10-21 Ali Tamur <tamu@google.com>
1942
1943 * dwarf2read.c (dir_index): Change type.
1944 (file_name_index): Likewise.
1945 (line_header::include_dir_at): Change comment and implementation on
1946 whether it is DWARF 5.
1947 (line_header::is_valid_file_index): New function.
1948 (line_header::file_name_at): Change comment and implementation on
1949 whether it is DWARF 5.
1950 (line_header::file_names): Change to private field renamed as
1951 m_file_names and introduce a new accessor method.
1952 (line_header::file_names_size): New method.
1953 (line_header::include_dirs): Change to private field and rename as
1954 m_include_dirs.
1955 (dw2_get_file_names_reader): Define local var at a smaller scope and
1956 reflect API change.
1957 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1958 (process_structure_scope): Likewise.
1959 (line_header::add_include_dir): Change message and reflect renaming.
1960 (line_header::add_file_name): Likewise.
1961 (read_formatted_entries): Handle DW_FORM_data16.
1962 (dwarf_decode_line_header): Fix line header length calculation.
1963 (psymtab_include_file_name): Change comment and API.
1964 (lnp_state_machine::m_file): Update comment and reflect type change.
1965 (lnp_state_machine::record_line): Reflect type change.
1966 (dwarf_decode_lines): Reflect API change.
1967 (file_file_name): Likewise.
1968 (file_full_name): Likewise.
1969
45f47c3a
AB
19702019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1973
e5f3c0e3
TT
19742019-10-21 Tom Tromey <tom@tromey.com>
1975
1976 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1977
a0a461e5
TT
19782019-10-21 Tom Tromey <tom@tromey.com>
1979
1980 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1981 NM_H. Use AC_CONFIG_LINKS.
1982 * configure: Rebuild.
1983 * Makefile.in (NM_H): New variable.
1984 (generated_files): Add NM_H. Remove gcore.
1985 (nm.h, stamp-nmh): New targets.
1986
54d83b8d
TT
19872019-10-20 Tom Tromey <tom@tromey.com>
1988
1989 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1990 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1991 obsolete comment.
1992 (put_objfile_before): Now static.
1993
23771117
SM
19942019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * gdbsupport/common-utils.h (startswith): Change return type to
1997 bool.
1998
39ef2f62
CB
19992019-10-19 Christian Biesinger <cbiesinger@google.com>
2000
2001 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2002 * breakpoint.c (bp_locations_compare): Rename to...
2003 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2004 (update_global_location_list): Use std::sort instead of qsort.
2005 * buildsym.c (compare_line_numbers): Rename to...
2006 (lte_is_less_than): ...this, and change to std::sort semantics.
2007 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2008 instead of qsort.
2009 * disasm.c (compare_lines): Rename to...
2010 (line_is_less_than): ...this, and change to std::sort semantics.
2011 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2012 of qsort.
2013 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2014 (fde_is_less_than): ...this, and change to std::sort semantics.
2015 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2016 * mdebugread.c (compare_blocks):
2017 (block_is_less_than): ...this, and change to std::sort semantics.
2018 (sort_blocks): Call std::sort instead of qsort.
2019 * objfiles.c (qsort_cmp): Rename to...
2020 (sort_cmp): ...this, and change to std::sort semantics.
2021 (update_section_map): Call std::sort instead of qsort.
2022 * remote.c (compare_pnums): Remove.
2023 (map_regcache_remote_table): Call std::sort instead of qsort.
2024 * utils.c (compare_positive_ints): Remove.
2025 * utils.h (compare_positive_ints): Remove.
2026 * xcoffread.c (compare_lte): Remove.
2027 (arrange_linetable): Call std::sort instead of qsort.
2028
f71433ee
SDJ
20292019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2030
2031 * symfile.c (init_entry_point_info): Fix typo.
2032 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2033
85102364
TV
20342019-10-18 Tom de Vries <tdevries@suse.de>
2035
2036 * aarch64-tdep.c: Fix typos in comments.
2037 * ada-lang.c: Same.
2038 * ada-tasks.c: Same.
2039 * alpha-tdep.c: Same.
2040 * alpha-tdep.h: Same.
2041 * amd64-nat.c: Same.
2042 * amd64-windows-tdep.c: Same.
2043 * arc-tdep.c: Same.
2044 * arc-tdep.h: Same.
2045 * arch-utils.c: Same.
2046 * arm-nbsd-tdep.c: Same.
2047 * arm-tdep.c: Same.
2048 * ax-gdb.c: Same.
2049 * blockframe.c: Same.
2050 * btrace.c: Same.
2051 * c-varobj.c: Same.
2052 * coff-pe-read.c: Same.
2053 * coffread.c: Same.
2054 * cris-tdep.c: Same.
2055 * darwin-nat.c: Same.
2056 * dbxread.c: Same.
2057 * dcache.c: Same.
2058 * disasm.c: Same.
2059 * dtrace-probe.c: Same.
2060 * dwarf-index-write.c: Same.
2061 * dwarf2-frame-tailcall.c: Same.
2062 * dwarf2-frame.c: Same.
2063 * dwarf2read.c: Same.
2064 * eval.c: Same.
2065 * exceptions.c: Same.
2066 * fbsd-tdep.c: Same.
2067 * findvar.c: Same.
2068 * frame.c: Same.
2069 * frv-tdep.c: Same.
2070 * gnu-v3-abi.c: Same.
2071 * go32-nat.c: Same.
2072 * h8300-tdep.c: Same.
2073 * hppa-tdep.c: Same.
2074 * i386-linux-tdep.c: Same.
2075 * i386-tdep.c: Same.
2076 * ia64-libunwind-tdep.c: Same.
2077 * ia64-tdep.c: Same.
2078 * infcmd.c: Same.
2079 * infrun.c: Same.
2080 * linespec.c: Same.
2081 * linux-nat.c: Same.
2082 * linux-thread-db.c: Same.
2083 * machoread.c: Same.
2084 * mdebugread.c: Same.
2085 * mep-tdep.c: Same.
2086 * mn10300-tdep.c: Same.
2087 * namespace.c: Same.
2088 * objfiles.c: Same.
2089 * opencl-lang.c: Same.
2090 * or1k-tdep.c: Same.
2091 * osabi.c: Same.
2092 * ppc-linux-nat.c: Same.
2093 * ppc-linux-tdep.c: Same.
2094 * ppc-sysv-tdep.c: Same.
2095 * printcmd.c: Same.
2096 * procfs.c: Same.
2097 * record-btrace.c: Same.
2098 * record-full.c: Same.
2099 * remote-fileio.c: Same.
2100 * remote.c: Same.
2101 * rs6000-tdep.c: Same.
2102 * s12z-tdep.c: Same.
2103 * score-tdep.c: Same.
2104 * ser-base.c: Same.
2105 * ser-go32.c: Same.
2106 * skip.c: Same.
2107 * sol-thread.c: Same.
2108 * solib-svr4.c: Same.
2109 * solib.c: Same.
2110 * source.c: Same.
2111 * sparc-nat.c: Same.
2112 * sparc-sol2-tdep.c: Same.
2113 * sparc-tdep.c: Same.
2114 * sparc64-tdep.c: Same.
2115 * stabsread.c: Same.
2116 * stack.c: Same.
2117 * symfile.c: Same.
2118 * symtab.c: Same.
2119 * target-descriptions.c: Same.
2120 * target-float.c: Same.
2121 * thread.c: Same.
2122 * utils.c: Same.
2123 * valops.c: Same.
2124 * valprint.c: Same.
2125 * value.c: Same.
2126 * varobj.c: Same.
2127 * windows-nat.c: Same.
2128 * xcoffread.c: Same.
2129 * xstormy16-tdep.c: Same.
2130 * xtensa-tdep.c: Same.
2131
c5adaa19
TT
21322019-10-17 Tom Tromey <tromey@adacore.com>
2133
2134 * configure: Rebuild.
2135 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2136 in AC_CONFIG_FILES invocation.
2137 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2138 new-style config.status invocation.
2139
405feb71
TV
21402019-10-17 Tom de Vries <tdevries@suse.de>
2141
2142 * arm-nbsd-nat.c: Fix typos in comments.
2143 * arm-tdep.c: Same.
2144 * darwin-nat-info.c: Same.
2145 * dwarf2read.c: Same.
2146 * elfread.c: Same.
2147 * event-top.c: Same.
2148 * findvar.c: Same.
2149 * gdbtypes.c: Same.
2150 * hppa-tdep.c: Same.
2151 * i386-tdep.c: Same.
2152 * jit.c: Same.
2153 * main.c: Same.
2154 * mdebugread.c: Same.
2155 * moxie-tdep.c: Same.
2156 * nto-procfs.c: Same.
2157 * osabi.c: Same.
2158 * ppc-linux-tdep.c: Same.
2159 * remote.c: Same.
2160 * riscv-tdep.c: Same.
2161 * s390-tdep.c: Same.
2162 * sh-tdep.c: Same.
2163 * sparc-linux-tdep.c: Same.
2164 * sparc-nat.c: Same.
2165 * stack.c: Same.
2166 * target-descriptions.c: Same.
2167 * top.c: Same.
2168 * varobj.c: Same.
2169
befcd486
TT
21702019-10-16 Tom Tromey <tom@tromey.com>
2171
2172 * objfiles.h (struct objfile) <original_name>: Now const.
2173
17bfe554
CB
21742019-10-16 Christian Biesinger <cbiesinger@google.com>
2175
2176 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2177 pass on to sigsetjmp's second argument.
2178 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2179
950b7495
KS
21802019-10-16 Keith Seitz <keiths@redhat.com>
2181
2182 PR gdb/23567
2183 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2184 sections whose size is greater than the file size.
2185
ff371ec9
JW
21862019-10-16 Jim Wilson <jimw@sifive.com>
2187
2188 * riscv-tdep.c (riscv_gcc_target_options): New.
2189 (riscv_gnu_triplet_regexp): New.
2190 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2191 set_gdbarch_gnu_triplet_regexp.
2192
fec4e896
CB
21932019-10-16 Christian Biesinger <cbiesinger@google.com>
2194
2195 * Makefile.in: Add xml-builtin.h.
2196 * features/feature_to_c.sh: Add an include for xml-builtin.h
2197 to ensure that the compiler checks that the types match.
2198 * xml-builtin.h: New file.
2199 * xml-support.c (fetch_xml_builtin): Add missing const.
2200 * xml-support.h: Remove declaration of xml_builtins.
2201
d10eccaa
TV
22022019-10-16 Tom de Vries <tdevries@suse.de>
2203
2204 PR tdep/25096
2205 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2206 (amd64_classify_aggregate): ... here.
2207 (amd64_classify_aggregate_field): Handled fiels of nested structs
2208 recursively.
2209
745ff14e
TV
22102019-10-16 Tom de Vries <tdevries@suse.de>
2211
2212 PR tdep/24104
2213 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2214 that handles 'theclass'.
2215
791b7405
AB
22162019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * linespec.c (decode_digits_ordinary): Update comment.
2219 * make-target-delegates: No longer need to handle VEC case.
2220 * memrange.c (normalize_mem_ranges): Update comment.
2221 * namespace.c (add_using_directive): Update comment.
2222 * objc-lang.c (uniquify_strings): Update comment.
2223 * ppc-linux-nat.c (struct thread_points): Update comment.
2224 * probe.h (find_probes_in_objfile): Update comment.
2225 * target.h (enum flash_preserve_mode): Update comment.
2226 * varobj.c (varobj_restrict_range): Update comment.
2227 * varobj.h (varobj_list_children): Update comment.
2228
0dc32745
AB
22292019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * Makefile.in: Remove references to vec.h and vec.c.
2232 * aarch64-tdep.c: No longer include vec.h.
2233 * ada-lang.c: Likewise.
2234 * ada-lang.h: Likewise.
2235 * arm-tdep.c: Likewise.
2236 * ax.h: Likewise.
2237 * breakpoint.h: Likewise.
2238 * charset.c: Likewise.
2239 * cp-support.h: Likewise.
2240 * dtrace-probe.c: Likewise.
2241 * dwarf2read.c: Likewise.
2242 * extension.h: Likewise.
2243 * gdb_bfd.c: Likewise.
2244 * gdbsupport/gdb_vecs.h: Likewise.
2245 * gdbsupport/vec.c: Remove.
2246 * gdbsupport/vec.h: Remove.
2247 * gdbthread.h: Likewise.
2248 * guile/scm-type.c: Likewise.
2249 * inline-frame.c: Likewise.
2250 * machoread.c: Likewise.
2251 * memattr.c: Likewise.
2252 * memrange.h: Likewise.
2253 * namespace.h: Likewise.
2254 * nat/linux-btrace.h: Likewise.
2255 * osdata.c: Likewise.
2256 * parser-defs.h: Likewise.
2257 * progspace.h: Likewise.
2258 * python/py-type.c: Likewise.
2259 * record-btrace.c: Likewise.
2260 * rust-exp.y: Likewise.
2261 * solib-target.c: Likewise.
2262 * stap-probe.c: Likewise.
2263 * target-descriptions.c: Likewise.
2264 * target-memory.c: Likewise.
2265 * target.h: Likewise.
2266 * varobj.c: Likewise.
2267 * varobj.h: Likewise.
2268 * xml-support.h: Likewise.
2269
ae640021
AB
22702019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2273 Update for new std::vector based implementation.
2274 (process_psymtab_comp_unit_reader): Likewise.
2275 (scan_partial_symbols): Likewise.
2276 (recursively_compute_inclusions): Likewise.
2277 (compute_compunit_symtab_includes): Likewise.
2278 (process_imported_unit_die): Likewise.
2279 (queue_and_load_dwo_tu): Likewise.
2280 (follow_die_sig_1): Likewise.
2281 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2282 (typedef dwarf2_per_cu_ptr): Remove.
2283 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2284 function.
2285 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2286 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2287 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2288 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2289 std::vector.
2290
55dfc88f
TT
22912019-10-15 Tom Tromey <tromey@adacore.com>
2292
2293 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2294 TID.
2295
96b49c5e
TT
22962019-10-15 Tom Tromey <tromey@adacore.com>
2297
2298 * windows-nat.c (windows_nat_target::fetch_registers)
2299 (windows_nat_target::store_registers): Rename "pid" to "tid".
2300
953cff56
TT
23012019-10-15 Tom Tromey <tromey@adacore.com>
2302
2303 * gdbarch.h, gdbarch.c: Rebuild.
2304 * gdbarch.sh (gcc_target_options): Change return type to
2305 std::string.
2306 * compile/compile.c (get_args): Update.
2307 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2308 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2309 std::string.
2310 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2311 std::string.
2312 * arch-utils.c (default_gcc_target_options): Return std::string.
2313 * arch-utils.h (default_gcc_target_options): Return std::string.
2314 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2315
81e6b8eb
CB
23162019-10-15 Christian Biesinger <cbiesinger@google.com>
2317
2318 * breakpoint.c (breakpoint_chain): Make static.
2319 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2320 of accessing breakpoint_chain.
2321
95da600f
CB
23222019-10-15 Christian Biesinger <cbiesinger@google.com>
2323
2324 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2325 to a gdb::function_view and return value to bool.
2326 * breakpoint.h (iterate_over_breakpoints): Likewise.
2327 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2328 (pop_dummy_frame): Update.
2329 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2330 (gdbscm_breakpoints): Update.
2331 * python/py-breakpoint.c (build_bp_list): Update.
2332 (gdbpy_breakpoints): Update.
2333 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2334 Update.
2335 (bpfinishpy_handle_stop): Update.
2336 (bpfinishpy_handle_exit): Update.
2337 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2338 (svr4_update_solib_event_breakpoints): Update.
2339
ba18312d
AA
23402019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2341
2342 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2343 when unwrapping single-field structs.
2344
6acc1a0b
SM
23452019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2346
2347 * dwarf2read.c: Remove includes.
2348
284782de
SM
23492019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * ui-out.c (ui_out::call_do_message): Silence
2352 -Wformat-nonliteral warning.
2353
073bbbb0
SM
23542019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2357 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2358 include: readline/tilde.h.
2359
7b9a15e1
CB
23602019-10-12 Christian Biesinger <cbiesinger@google.com>
2361
2362 * remote.c (remote_target::get_trace_status): Remove declaration of
2363 trace_regblock_size.
2364
cc8dee1f
CB
23652019-10-12 Christian Biesinger <cbiesinger@google.com>
2366
2367 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2368 (show_user): Remove declaration of cmdlist.
2369 * cli/cli-cmds.h (max_user_call_depth): Declare.
2370 * cli/cli-script.c (execute_user_command): Remove declaration
2371 of max_user_call_depth.
2372
a83d4ef6
JW
23732019-10-11 Jim Wilson <jimw@sifive.com>
2374
5f93c5a6
JW
2375 * gdbsupport/print-utils.h (pulongest): Fix comment.
2376 (plongest): Likewise.
2377 (phex): Add missing comment, mention leading zeros.
2378 (phex_nz): Add mention of no leading zeros to comment.
2379
a83d4ef6
JW
2380 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2381 plongest instead of unsigned long long cast.
2382
26344e0c
CB
23832019-10-10 Christian Biesinger <cbiesinger@google.com>
2384
2385 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2386 for external_editor_command and gdbtk_test.
2387
c2c440a9
CB
23882019-10-10 Christian Biesinger <cbiesinger@google.com>
2389
2390 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2391 * varobj.c (varobjdebug): Move comment to...
2392 * varobj.h (varobjdebug): ...here, and declare.
2393
a31bff9d
TT
23942019-10-09 Tom Tromey <tom@tromey.com>
2395
2396 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2397 erase_data_content.
2398
7523da63
TT
23992019-10-09 Tom Tromey <tom@tromey.com>
2400
2401 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2402 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2403 * tui/tui-command.c (tui_cmd_window::resize)
2404 (tui_refresh_cmd_win): Update.
2405 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2406 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2407 * tui/tui-data.c (~tui_gen_win_info): Remove.
2408 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2409 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2410 (tui_redisplay_readline, tui_mld_flush)
2411 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2412 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2413 (tui_data_window::erase_data_content)
2414 (tui_data_item_window::rerender)
2415 (tui_data_item_window::refresh_window): Update.
2416 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2417 (box_win, tui_gen_win_info::make_window)
2418 (tui_gen_win_info::make_visible): Update.
2419 (tui_delete_win): Remove.
2420 * tui/tui-winsource.c
2421 (tui_source_window_base::do_erase_source_content): Update.
2422 (tui_show_source_line, tui_source_window_base::update_tab_width)
2423 (tui_source_window_base::update_exec_info): Update.
2424 * tui/tui-data.h (struct curses_deleter): New.
2425 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2426 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2427
a7798e7f
TT
24282019-10-09 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2431
5c45899e
TT
24322019-10-09 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2435 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2436
6d7fd9aa
TT
24372019-10-09 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2440 window height directly.
2441 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2442 declare.
2443 * tui/tui-layout.c (tui_default_win_height): Remove.
2444 (tui_default_win_viewport_height): Remove.
2445
d2dd1084
TT
24462019-10-09 Tom Tromey <tom@tromey.com>
2447
2448 * tui/tui.h: Remove comments.
2449
cff32449
TV
24502019-10-09 Tom de Vries <tdevries@suse.de>
2451
2452 * python/lib/gdb/printer/bound_registers.py: Use
2453 '^builtin_type_bound128' as regexp argument for
2454 add_builtin_pretty_printer.
2455
6a25e8a2
CB
24562019-10-09 Christian Biesinger <cbiesinger@google.com>
2457
2458 * guile/guile.c (guile_extension_script_ops): Remove forward
2459 declaration and mark as static.
2460 (guile_script_ops): Likewise.
2461 (extension_language_guile): Move further down in the file so
2462 it can reference the definitions for guile_{extension_,}script_ops.
2463
6d9d6da4
AA
24642019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2465
2466 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2467 except SORTL, DFLTCC, and KDSA.
2468
3abea05d
TT
24692019-10-08 Tom Tromey <tromey@adacore.com>
2470
2471 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2472 (struct safe_symbol_file_add_args): Remove.
2473
dde996e2
TT
24742019-10-08 Tom Tromey <tromey@adacore.com>
2475
2476 * windows-nat.c: Don't include buildsym-legacy.h.
2477
cd6fdaa1
TT
24782019-10-08 Tom Tromey <tromey@adacore.com>
2479
2480 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2481
79bb1944
CB
24822019-10-08 Christian Biesinger <cbiesinger@google.com>
2483
2484 * gdbtypes.c (overload_debug): Move comment to header.
2485 * gdbtypes.h (overload_debug): Declare.
2486 * valops.c: Remove declaration of overload_debug, instead
2487 include gdbtypes.h.
2488
34916edc
CB
24892019-10-08 Christian Biesinger <cbiesinger@google.com>
2490
2491 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2492 through _().
2493 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2494 move comment...
2495 * language.h (lang_frame_mismatch_warn): ... here. Also add
2496 declaration.
2497 * top.c (lang_frame_mismatch_warn): Remove declaration.
2498 (check_frame_language_change): Pass lang_frame_mismatch_warn
2499 through _().
2500
bad5c026
CB
25012019-10-07 Christian Biesinger <cbiesinger@google.com>
2502
2503 * c-lang.h (vtbl_ptr_name): Declare.
2504 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2505 it from the header.
2506 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2507
51f1fdc3
CB
25082019-10-07 Christian Biesinger <cbiesinger@google.com>
2509
2510 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2511 gdb_static_assert.
2512
30d1f018
WP
25132019-10-07 Weimin Pan <weimin.pan@oracle.com>
2514
606813d5
WP
2515 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2516 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2517 * ctfread.c: New file.
2518 * ctfread.h: New file.
2519 * elfread.c: Include ctfread.h.
2520 (struct elfinfo text_p): New member ctfsect.
2521 (elf_locate_sections): Mark CTF section.
2522 (elf_symfile_read): Call elfctf_build_psymtabs.
2523 * Makefile.in (LIBCTF): Add.
2524 (CLIBS): Use it.
2525 (CDEPS): Likewise.
2526 (DIST): Add ctfread.c.
606813d5
WP
2527
25282019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 * ctfread.c (struct nextfield): Renamed to ...
2531 (struct ctf_nextfield): ... this.
2532 (struct field_info): Renamed to ...
2533 (strut ctf_field_info): ... this.
2534 (attach_fields_to_type): Update for renamed structures.
2535 (ctf_add_member_cb): Likewise.
2536 (ctf_add_enum_member_cb): Likewise.
2537 (process_struct_members): Likewise.
2538 (process_enum_type): Likewise.
30d1f018 2539
518fe38c
WP
25402019-10-07 Weimin Pan <weimin.pan@oracle.com>
2541
2542 * tracectf.h: Rename, was ctf.h.
2543 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2544 * tracefile.c: Likewise.
2545 * tracepoint.c: Remove unused include ctf.h.
2546 * mi/mi-main.c: Likewise.
2547 * Makefile.in Replace ctf.c with tracectf.c.
2548
225f296a
JB
25492019-10-06 Joel Brobecker <brobecker@adacore.com>
2550
2551 * version.in: Change version number to "9.0.50.DATE-git".
2552
77c2dba3
TT
25532019-10-03 Tom Tromey <tom@tromey.com>
2554
2555 PR rust/24976:
2556 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2557
179aed7f
AB
25582019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2561 cp_search_name_hash.
2562 * NEWS: Add entry about nested function support.
2563
0a4b0913
AB
25642019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2565 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2568 for nested static variables when searchin VAR_DOMAIN.
2569 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2570 global scope, update comment.
2571 (add_partial_subprogram): Call add_partial_subprogram recursively
2572 for nested subroutines when processinng Fortran.
2573 (load_partial_dies): Process the child entities of a subprogram
2574 when processing Fortran.
2575 (partial_die_parent_scope): Handle building scope
2576 for Fortran nested functions.
2577 (process_die): Record that nested functions have a scope.
2578 (new_symbol): Always record Fortran subprograms on the global
2579 symbol list.
2580 (determine_prefix): How to build the prefix for Fortran
2581 subprograms.
2582
d8c06f22
AB
25832019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2586 have just sent the thread a SIGSTOP and are waiting for it to
2587 arrive.
2588
a8b3b8e9
AB
25892019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2590
2591 * btrace.c (btrace_add_pc): Remove whitespace before the template
2592 parameter in 'std::vector <...>'.
2593 (parse_xml_btrace_block): Likewise.
2594 (btrace_maint_decode_pt): Likewise.
2595 (btrace_maint_update_packets): Likewise.
2596 (btrace_maint_print_packets): Likewise.
2597 * btrace.h (struct btrace_maint_info): Likewise.
2598 * dwarf2read.c (struct type_unit_group): Likewise.
2599 (build_type_psymtabs_reader): Likewise.
2600 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2601 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2602 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2603
4d825eab
TV
26042019-10-03 Tom de Vries <tdevries@suse.de>
2605
2606 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2607 the first line of the help text for set/show style metadata.
2608
80fd2826
TT
26092019-10-02 Tom Tromey <tromey@adacore.com>
2610
2611 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2612 * gdbsupport/common-inferior.c: New file.
2613 * infcmd.c (startup_with_shell): Don't define.
2614 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2615 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2616 * inferior.h (startup_with_shell): Don't declare.
2617
70054538
CB
26182019-10-02 Christian Biesinger <cbiesinger@google.com>
2619
2620 * gdbsupport/gdb_assert.h: Include errors.h.
2621 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2622
37f6a7f4
TT
26232019-10-02 Tom Tromey <tromey@adacore.com>
2624
2625 * NEWS: Add $_ada_exception entry.
2626 * ada-lang.c (struct ada_catchpoint): Add constructor.
2627 <m_kind>: New member.
2628 (allocate_location_exception, re_set_exception): Remove
2629 "ex" parameter.
2630 (should_stop_exception): Compute $_ada_exception.
2631 (check_status_exception, print_it_exception)
2632 (print_one_exception, print_mention_exception): Remove
2633 "ex" parameter.
2634 (allocate_location_catch_exception, re_set_catch_exception)
2635 (check_status_exception, print_it_catch_exception)
2636 (print_one_catch_exception, print_mention_catch_exception)
2637 (print_recreate_catch_exception)
2638 (allocate_location_catch_exception_unhandled)
2639 (re_set_catch_exception_unhandled)
2640 (check_status_exception, print_it_catch_exception_unhandled)
2641 (print_one_catch_exception_unhandled)
2642 (print_mention_catch_exception_unhandled)
2643 (print_recreate_catch_exception_unhandled)
2644 (allocate_location_catch_assert, re_set_catch_assert)
2645 (check_status_assert, print_it_catch_assert)
2646 (print_one_catch_assert, print_mention_catch_assert)
2647 (print_recreate_catch_assert)
2648 (allocate_location_catch_handlers, re_set_catch_handlers)
2649 (check_status_handlers, print_it_catch_handlers)
2650 (print_one_catch_handlers, print_mention_catch_handlers)
2651 (print_recreate_catch_handlers): Remove.
2652 (create_ada_exception_catchpoint): Update.
2653 (initialize_ada_catchpoint_ops): Update.
2654
fccf9de1
TT
26552019-10-02 Tom Tromey <tromey@adacore.com>
2656
2657 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2658 (create_excep_cond_exprs): Simplify exception string computation.
2659 (ada_exception_catchpoint_cond_string): Likewise.
2660
4b610737
TT
26612019-10-02 Tom Tromey <tromey@adacore.com>
2662
2663 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2664 * ada-lang.c (lesseq_defined_than): Handle
2665 LOC_STATIC.
2666 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2667 parameter.
2668 (dwarf2_has_info): Likewise.
2669 (new_symbol): Set maybe_copied on symbol when
2670 appropriate.
2671 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2672 parameter.
2673 <can_copy>: New member.
2674 * elfread.c (record_minimal_symbol): Set maybe_copied
2675 on symbol when appropriate.
2676 (elf_symfile_read): Update call to dwarf2_has_info.
2677 * minsyms.c (lookup_minimal_symbol_linkage): New
2678 function.
2679 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2680 * symtab.c (get_symbol_address, get_msymbol_address):
2681 New functions.
2682 * symtab.h (get_symbol_address, get_msymbol_address):
2683 Declare.
2684 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2685 maybe_copied.
2686 (struct symbol, struct minimal_symbol) <maybe_copied>:
2687 New member.
2688
1dd58850
TT
26892019-10-02 Tom Tromey <tromey@adacore.com>
2690
2691 * source.c (struct current_source_location): New.
2692 (current_source_key): New global.
2693 (current_source_symtab, current_source_line)
2694 (current_source_pspace): Remove.
2695 (get_source_location): New function.
2696 (get_current_source_symtab_and_line)
2697 (set_default_source_symtab_and_line)
2698 (set_current_source_symtab_and_line)
2699 (clear_current_source_symtab_and_line, select_source_symtab)
2700 (info_source_command, print_source_lines_base)
2701 (info_line_command, search_command_helper, _initialize_source):
2702 Update.
2703
5c281dbb
TT
27042019-10-02 Tom Tromey <tromey@adacore.com>
2705
2706 * source.c (select_source_symtab): Don't call
2707 decode_line_with_current_source.
2708
d3d32391
AB
27092019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * symtab.c (lookup_global_symbol): Search global block.
2712
38583298
TT
27132019-10-02 Tom Tromey <tromey@adacore.com>
2714
2715 * coffread.c (process_coff_symbol): Update.
2716 * dwarf2read.c (var_decode_location, new_symbol): Update.
2717 * mdebugread.c (parse_symbol): Update.
2718 * objfiles.c (relocate_one_symbol): Update.
2719 * stabsread.c (define_symbol, fix_common_block)
2720 (scan_file_globals): Update.
2721 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2722 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2723 * xcoffread.c (process_xcoff_symbol): Update.
2724
9344c18f
AA
27252019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2726
2727 * MAINTAINERS: Update my email address.
2728
df07e2c7
AB
27292019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2732 std::vector.
2733 (build_type_psymtabs_reader): Update for std::vector.
2734 (build_type_psymtab_dependencies): Likewise.
2735 * dwarf2read.h: Remove use of DEF_VEC_P.
2736 (typedef sig_type_ptr): Delete.
2737
554ac434
AB
27382019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2741 to std::vector.
2742 (btrace_maint_decode_pt): Likewise, and move allocation of the
2743 vector outside of the loop.
2744 (btrace_maint_update_packets): Update to handle change from VEC to
2745 std::vector.
2746 (btrace_maint_print_packets): Likewise.
2747 (maint_info_btrace_cmd): Likewise.
2748 * btrace.h: Remove use of DEF_VEC_O.
2749 (typedef btrace_pt_packet_s): Delete.
2750 (struct btrace_maint_info) <packets>: Change fromm VEC to
2751 std::vector.
2752 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2753
46f29a9a
AB
27542019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2757 make accesses into the vector constant references.
2758 (btrace_add_pc): Update for std::vector.
2759 (btrace_stitch_bts): Likewise.
2760 (parse_xml_btrace_block): Likewise.
2761 (btrace_maint_update_packets): Likewise.
2762 (btrace_maint_print_packets): Likewise.
2763 (maint_info_btrace_cmd): Likewise.
2764 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2765 std::vector.
2766 (btrace_data::empty): Likewise.
2767 (btrace_data_append): Likewise.
2768 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2769 (typedef btrace_block_s): Delete.
2770 (struct btrace_block): Add constructor.
2771 (struct btrace_data_bts) <blocks>: Change to std::vector.
2772 * nat/linux-btrace.c (perf_event_read_bts): Update for
2773 std::vector.
2774 (linux_read_bts): Likewise.
2775
d770d56f
TT
27762019-10-01 Tom Tromey <tom@tromey.com>
2777
2778 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2779
9d636d67
TT
27802019-10-01 Tom Tromey <tom@tromey.com>
2781
2782 * stack.c (print_frame, info_frame_command_core): Use
2783 styled_string.
2784 * linux-thread-db.c (try_thread_db_load_1)
2785 (try_thread_db_load_from_pdir_1): Use styled_string.
2786 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2787 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2788 (maybe_print_unsupported_script_warning)
2789 (maybe_print_script_not_found_warning): Use styled_string.
2790 * ada-lang.c (user_select_syms): Use styled_string.
2791
7f6aba03
TT
27922019-10-01 Tom Tromey <tom@tromey.com>
2793
2794 * p-lang.c (pascal_printstr): Use metadata style.
2795 * value.c (show_convenience): Use metadata style.
2796 * valprint.c (valprint_check_validity, val_print_optimized_out)
2797 (val_print_not_saved, val_print_unavailable)
2798 (val_print_invalid_address, generic_val_print, val_print)
2799 (value_check_printable, val_print_array_elements): Use metadata
2800 style.
2801 * ui-out.h (class ui_out) <field_fmt>: New overload.
2802 <do_field_fmt>: Add style parameter.
2803 * ui-out.c (ui_out::field_fmt): New overload.
2804 * typeprint.c (type_print_unknown_return_type)
2805 (val_print_not_allocated, val_print_not_associated): Use metadata
2806 style.
2807 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2808 parameter.
2809 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2810 * tracepoint.c (tvariables_info_1): Use metadata style.
2811 * stack.c (print_frame_arg, print_frame_info, print_frame)
2812 (info_frame_command_core): Use metadata style.
2813 * skip.c (info_skip_command): Use metadata style.
2814 * rust-lang.c (rust_print_enum): Use metadata style.
2815 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2816 metadata style.
2817 * python/py-framefilter.c (py_print_single_arg): Use metadata
2818 style.
2819 * printcmd.c (do_one_display, print_variable_and_value): Use
2820 metadata style.
2821 * p-valprint.c (pascal_val_print)
2822 (pascal_object_print_value_fields): Use metadata style.
2823 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2824 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2825 parameter.
2826 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2827 * m2-valprint.c (m2_print_long_set): Use metadata style.
2828 * m2-typeprint.c (m2_print_type): Use metadata style.
2829 * infcmd.c (print_return_value_1): Use metadata style.
2830 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2831 * f-valprint.c (info_common_command_for_block): Use metadata
2832 style.
2833 * f-typeprint.c (f_type_print_base): Use metadata style.
2834 * expprint.c (print_subexp_standard): Use metadata style.
2835 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2836 * cli/cli-style.h (class cli_style_option): Add constructor.
2837 (metadata_style): Declare.
2838 * cli/cli-style.c (metadata_style): New global.
2839 (_initialize_cli_style): Register metadata style.
2840 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2841 parameter.
2842 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2843 * c-typeprint.c (c_type_print_base_struct_union)
2844 (c_type_print_base_1): Use metadata style.
2845 * breakpoint.c (watchpoint_value_print)
2846 (print_one_breakpoint_location): Use metadata style.
2847 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2848 style.
2849 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2850 style.
2851 * ada-valprint.c (val_print_packed_array_elements, printstr)
2852 (print_field_values, ada_val_print_ref, ada_val_print): Use
2853 metadata style.
2854 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2855 style.
2856 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2857 style.
2858 * ada-lang.c (user_select_syms): Use metadata style.
2859
14309bb6
TT
28602019-10-01 Tom Tromey <tom@tromey.com>
2861
2862 * cli/cli-cmds.c (pwd_command): Style output.
2863
6a831f06
PA
28642019-10-01 Pedro Alves <palves@redhat.com>
2865 Tom Tromey <tom@tromey.com>
2866
2867 * symtab.c (print_symbol_info): Use %ps.
2868 (print_msymbol_info): Use %ps.
2869 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2870 * printcmd.c (print_variable_and_value): Use %ps.
2871 * macrocmd.c (show_pp_source_pos): Use %ps.
2872 * infrun.c (print_exited_reason): Use ui_out::message.
2873 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2874 (describe_other_breakpoints): Use ui_out::message and new
2875 formats.
2876 (say_where): Use new formats.
2877 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2878 and new formats.
2879
2a3c1174
PA
28802019-10-01 Pedro Alves <palves@redhat.com>
2881 Tom Tromey <tom@tromey.com>
2882
2883 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2884 (test_gdb_formats): New function.
2885 (run_tests): Call it.
2886 (test_format_specifier): Update.
2887 * utils.h (fputs_filtered): Update comment.
2888 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2889 (fputs_styled_unfiltered): Declare.
2890 * utils.c (fputs_styled_unfiltered): New function.
2891 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2892 (vfprintf_filtered): Update.
2893 (vfprintf_unfiltered, vprintf_filtered): Update.
2894 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2895 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2896 disallow_ui_out_field>: New constants.
2897 (enum class field_kind): New.
2898 (struct base_field_s, struct signed_field_s): New.
2899 (signed_field): New function.
2900 (struct string_field_s): New.
2901 (string_field): New function.
2902 (struct styled_string_s): New.
2903 (styled_string): New function.
2904 (class ui_out) <message>: Add comment.
2905 <vmessage, call_do_message>: New methods.
2906 <do_message>: Add style parameter.
2907 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2908 methods.
2909 (ui_out::message): Rewrite.
2910 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2911 parameter.
2912 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2913 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2914 gdb_extensions parameter.
2915 (class format_piece): Add parameter to constructor.
2916 (n_int_args): New field.
2917 * gdbsupport/format.c (format_pieces::format_pieces): Add
2918 gdb_extensions parameter. Handle '*'.
2919 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2920 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2921 vfprintf_styled_no_gdbfmt.
2922 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2923 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2924 unfiltered output.
2925 * ui-style.h (struct ui_file_style) <ptr>: New method.
2926
0dfe5bfb
TT
29272019-10-01 Tom Tromey <tom@tromey.com>
2928
2929 * unittests/format_pieces-selftests.c: Update. Add final format.
2930 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2931 empty literal pieces.
2932
e43b10e1
TT
29332019-10-01 Tom Tromey <tom@tromey.com>
2934
2935 * ui-out.h (enum class ui_out_style_kind): Remove.
2936 (class ui_out) <field_string, field_stsream, do_field_string>:
2937 Change type of "style".
2938 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2939 (ui_out::field_string): Update.
2940 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2941 of "style".
2942 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2943 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2944 * stack.c (print_frame_arg, print_frame_info, print_frame):
2945 Update.
2946 * source.c (print_source_lines_base): Update.
2947 * solib.c (info_sharedlibrary_command): Update.
2948 * skip.c (info_skip_command): Update.
2949 * record-btrace.c (btrace_call_history_src_line)
2950 (btrace_call_history): Update.
2951 * python/py-framefilter.c (py_print_frame): Update.
2952 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2953 "style".
2954 * mi/mi-out.c (mi_ui_out::do_table_header)
2955 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2956 (mi_ui_out::do_field_string): Update.
2957 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2958 Update.
2959 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2960 "style".
2961 * cli-out.c (cli_ui_out::do_table_header)
2962 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2963 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2964 (cli_ui_out::do_field_fmt): Update.
2965 * breakpoint.c (print_breakpoint_location): Update.
2966 (update_static_tracepoint): Update.
2967
cd7c32c3
PW
29682019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2969
2970 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2971 conversion of gdb_datadir.
2972 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2973 remove not needed c_str ().
2974
8fe0f950
AT
29752019-09-30 Ali Tamur <tamur@google.com>
2976
2977 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2978 (dwarf2_string_attr): Likewise.
2979
5f48f8f3
AT
29802019-09-30 Ali Tamur <tamur@google.com>
2981
2982 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2983 (process_full_type_unit): Likewise.
2984 (dump_die_shallow): Likewise.
2985 (cu_debug_loc_section): Likewise.
2986
6fb08628
CB
29872019-09-28 Christian Biesinger <cbiesinger@google.com>
2988
2989 * minsyms.c (compare_minimal_symbols): Rename to...
2990 (minimal_symbol_is_less_than): ...this, and adjust to STL
2991 conventions (return bool, take arguments as references)
2992 (minimal_symbol_reader::install): Call std::sort instead
2993 of qsort.
2994
c7ee338a
CB
29952019-09-29 Christian Biesinger <cbiesinger@google.com>
2996
2997 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2998 hash and why.
2999 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3000 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3001
703a86c2
SM
30022019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3003
3004 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3005 * psympriv.h (add_psymbol_to_list): Move comment here and update
3006 it.
3007
0df0352a
TV
30082019-09-29 Tom de Vries <tdevries@suse.de>
3009
3010 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3011 Use $tmpdir/$(basename "$output_file").dwz instead of
3012 "${output_file}.dwz".
3013
ad75efa6
SM
30142019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 PR gdb/25045
3017 * hppa-linux-nat.c: Include gdbarch.h.
3018
ececd218
CB
30192019-09-26 Christian Biesinger <cbiesinger@google.com>
3020
3021 * blockframe.c (find_pc_partial_function): Change return type to bool.
3022 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3023 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3024 (stub_gnu_ifunc_resolve_name): Likewise.
3025 * symtab.c (compare_filenames_for_search): Likewise.
3026 (compare_glob_filenames_for_search): Likewise.
3027 (matching_obj_sections): Likewise.
3028 (symbol_matches_domain): Likewise.
3029 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3030 (find_line_pc): Change return type to bool.
3031 (find_line_pc_range): Likewise.
3032 (producer_is_realview): Likewise.
3033 * symtab.h (symbol_matches_domain): Likewise.
3034 (find_pc_partial_function): Likewise.
3035 (find_pc_line_pc_range): Likewise.
3036 (in_gnu_ifunc_stub): Likewise.
3037 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3038 (find_line_pc): Likewise.
3039 (find_line_pc_range): Likewise.
3040 (matching_obj_sections): Likewise.
3041 (find_line_symtab): Change out parameter to bool.
3042 (producer_is_realview): Change return type to bool.
3043 (compare_filenames_for_search): Likewise.
3044 (compare_glob_filenames_for_search): Likewise.
3045
27a900b8
TT
30462019-09-26 Tom Tromey <tom@tromey.com>
3047
3048 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3049 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3050 * gdb_usleep.h: Remove.
3051 * gdb_usleep.c: Remove.
3052 * utils.c: Don't include gdb_usleep.h.
3053
5d63b30a
TT
30542019-09-26 Tom Tromey <tromey@adacore.com>
3055
3056 * python/py-type.c (type_to_type_object): Call check_typedef
3057 for stub types.
3058
12904d37
TT
30592019-09-26 Tom Tromey <tom@tromey.com>
3060
3061 * utils.h (initialize_utils): Don't declare.
3062 * top.c (gdb_init): Don't call initialize_utils.
3063 * utils.c (initialize_utils): Remove. Move contents...
3064 (_initialize_utils): ... here.
3065
858f25f0
TT
30662019-09-25 Tom Tromey <tom@tromey.com>
3067
3068 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3069 * utils.h (make_hex_string): Don't declare.
3070 * utils.c (make_hex_string): Remove.
3071
3d435220
TV
30722019-09-24 Tom de Vries <tdevries@suse.de>
3073
3074 PR gdb/23815
3075 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3076 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3077
ddd44b70
DD
30782019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3079
3080 * NEWS: Mention new simulator port for PRU.
3081
f945dedf
CB
30822019-09-23 Christian Biesinger <cbiesinger@google.com>
3083
3084 * ada-exp.y (write_object_remaining): Update.
3085 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3086 and eliminate the static buffer.
3087 (ada_decode_symbol): Update.
3088 (ada_la_decode): Update.
3089 (ada_sniff_from_mangled_name): Update.
3090 (is_valid_name_for_wild_match): Update.
3091 (ada_lookup_name_info::matches): Update and simplify.
3092 (name_matches_regex): Update.
3093 (ada_add_global_exceptions): Update.
3094 * ada-lang.h (ada_decode): Update signature.
3095 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3096 * dwarf-index-write.c (debug_names::insert): Update.
3097
7ab78ccb
SM
30982019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3099
3100 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3101 formatting.
3102
9252448b
SM
31032019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3106 Change "nonzero" to "true" in documentation.
3107
626ca2c0
CB
31082019-09-20 Christian Biesinger <cbiesinger@google.com>
3109
3110 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3111 (_initialize_darwin_solib): Don't set
3112 darwin_so_ops.lookup_lib_global_symbol.
3113 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3114 set_gdbarch_iterate_over_objfiles_in_search_order.
3115 (elf_lookup_lib_symbol): Rename to...
3116 (svr4_iterate_over_objfiles_in_search_order): this, and update
3117 to iterate semantics.
3118 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3119 * solib.c (solib_global_lookup): Remove.
3120 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3121 (solib_global_lookup): Remove.
3122 * symtab.c (lookup_global_or_static_symbol): Remove call to
3123 solib_global_lookup.
3124
5a3a0d63
JB
31252019-09-20 Joel Brobecker <brobecker@adacore.com>
3126
3127 * NEWS: Move entries about default MI version now being
3128 version 3, and about the GDB/MI fix for multi-location
3129 breakpoints to the "since GDB 8.3" section.
3130
ffea1427
JB
31312019-09-20 Joel Brobecker <brobecker@adacore.com>
3132
3133 GDB 8.3.1 released.
3134
abf516c6
UW
31352019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3136
3137 * NEWS: Mention that Cell/B.E. debugging support was removed.
3138 * MAINTAINERS: Remove spu target.
3139
3140 * config/djgpp/fnchange.lst: Remove entries for removed files.
3141
3142 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3143 spu-multiarch.o, and spu-tdep.o.
3144 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3145 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3146 spu-multiarch.c, and spu-tdep.c.
3147 * spu-linux-nat.c: Remove file.
3148 * spu-multiarch.c: Remove file.
3149 * spu-tdep.c: Remove file.
3150 * spu-tdep.h: Remove file.
3151 * solib-spu.c: Remove file.
3152 * solib-spu.h: Remove file.
3153
3154 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3155 * configure.nat (spu-linux): Remove.
3156 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3157 solib-multiarch.o from gdb_target_obs.
3158 (spu*-*-*): Remove.
3159
3160 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3161 feature flag.
3162 (ppc_linux_no_features): Update.
3163 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3164 Cell/B.E. support.
3165 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3166 (tdesc_powerpc_cell64l): Likewise.
3167 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3168 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3169 Cell/B.E. support.
3170 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3171 Do not include "features/rs6000/powerpc-cell32l.c" or
3172 "features/rs6000/powerpc-cell64l.c".
3173 (ppc_linux_spu_section): Remove.
3174 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3175 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3176 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3177 (ppc_linux_spe_context_lookup): Remove.
3178 (ppc_linux_spe_context_inferior_created): Remove.
3179 (ppc_linux_spe_context_solib_loaded): Remove.
3180 (ppc_linux_spe_context_solib_unloaded): Remove.
3181 (ppc_linux_spe_context): Remove.
3182 (struct ppu2spu_cache): Remove.
3183 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3184 (struct ppu2spu_data): Remove.
3185 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3186 ppu2spu_unwind): Remove.
3187 (ppc_linux_init_abi): Remove Cell/B.E. support.
3188 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3189
3190 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3191 (rs6000/powerpc-cell64l-expedite): Likewise
3192 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3193 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3194 rs6000/powerpc-cell64l.xml.
3195 * features/rs6000/powerpc-cell32l.xml: Remove.
3196 * features/rs6000/powerpc-cell64l.xml: Likewise.
3197 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3198 * features/rs6000/powerpc-cell64l.c: Likewise.
3199 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3200 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3201 * regformats/reg-spu.dat: Remove.
3202
3203 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3204 * corelow.c (struct spuid_list): Remove.
3205 (add_to_spuid_list): Remove.
3206 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3207 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3208 (remote_protocol_features): Remove associated entries.
3209 (_initialize_remote): No longer initialize them.
3210 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3211 * linux-nat.c (SPUFS_MAGIC): Remove.
3212 (linux_proc_xfer_spu): Remove.
3213 (spu_enumerate_spu_ids): Remove.
3214 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3215 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3216 (linux_make_corefile_notes): No longer call it.
3217
3218 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3219 (cooked_write_test): Likewise.
3220
78e8cb91
TT
32212019-09-20 Tom Tromey <tom@tromey.com>
3222
3223 * NEWS: Mention case-sensitivity of TUI commands.
3224 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3225 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3226 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3227
f074b67e
TT
32282019-09-20 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-source.c (tui_source_window::set_contents): Use
3231 make_unique_xstrdup.
3232 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3233 make_unique_xstrdup.
3234
63c4bf19
TT
32352019-09-20 Tom Tromey <tom@tromey.com>
3236
3237 * tui/tui-data.c: Remove separator comments.
3238 * tui/tui-layout.c: Remove separator comments.
3239 * tui/tui-win.c: Remove separator comments.
3240 * tui/tui-wingeneral.c: Remove separator comments.
3241
43df9b2f
TT
32422019-09-20 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui.h (strcat_to_buf): Don't declare.
3245 * tui/tui.c (strcat_to_buf): Remove.
3246
7226433c
TT
32472019-09-20 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3250 from "fullname".
3251 * tui/tui-source.c (tui_source_window::set_contents)
3252 (tui_source_window::location_matches_p)
3253 (tui_source_window::maybe_update): Update.
3254
80df3337
TT
32552019-09-20 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3258 Update.
3259 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3260 prefix.
3261 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3262 (tui_data_window::line_from_reg_element_no)
3263 (tui_data_window::first_reg_element_no_inline)
3264 (tui_data_window::show_registers)
3265 (tui_data_window::show_register_group)
3266 (tui_data_window::display_registers_from)
3267 (tui_data_window::display_registers_from_line)
3268 (tui_data_window::first_data_item_displayed)
3269 (tui_data_window::delete_data_content_windows)
3270 (tui_data_window::erase_data_content)
3271 (tui_data_window::do_scroll_vertical)
3272 (tui_data_window::refresh_window)
3273 (tui_data_window::check_register_values): Update.
3274
9923f347
TT
32752019-09-20 Tom Tromey <tom@tromey.com>
3276
3277 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3278 (struct tui_locator_window) <full_name, proc_name>: Now
3279 std::string.
3280 * tui/tui-stack.c (tui_locator_window::make_status_line)
3281 (tui_locator_window::set_locator_fullname)
3282 (tui_locator_window::set_locator_info): Update.
3283 * tui/tui-source.c (tui_source_window::set_contents)
3284 (tui_source_window::showing_source_p): Update.
3285
b76251ab
TT
32862019-09-20 Tom Tromey <tom@tromey.com>
3287
3288 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3289 Don't call tui_locator_win_info_ptr.
3290
0891be08
TT
32912019-09-20 Tom Tromey <tom@tromey.com>
3292
3293 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3294
1b935acf
TT
32952019-09-20 Tom Tromey <tom@tromey.com>
3296
3297 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3298 height for locator.
3299 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3300 * tui/tui-layout.c (show_source_disasm_command, show_data)
3301 (show_source_or_disasm_and_command): Use 1 as height for locator.
3302
9abd8a65
TT
33032019-09-20 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui.c (tui_enable): Update.
3306 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3307 Update.
3308 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3309 Update.
3310 * tui/tui-data.c (win_resized): Now bool.
3311 (tui_win_resized): Return bool.
3312 (tui_set_win_resized_to): Accept a bool.
3313
b5457826
TT
33142019-09-20 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3317 Change type of "refresh_values_only".
3318 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3319 type of "refresh_values_only".
3320
6b915f7d
TT
33212019-09-20 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3324 std::string.
3325 (tui_disassemble): Add "pos" parameter.
3326 (tui_disasm_window::set_contents): Simplify.
3327
2ad52f6f
TT
33282019-09-20 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-winsource.h (struct tui_source_window_base)
3331 <show_source_content>: Now private.
3332 * tui/tui-winsource.c
3333 (tui_source_window_base::show_source_content): Don't handle empty
3334 content case.
3335
b3b1bde6
TT
33362019-09-20 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-layout.c (show_source_disasm_command)
3339 (show_source_or_disasm_and_command): Don't call
3340 show_source_content.
3341
71a25ed2
TT
33422019-09-20 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3345 Declare.
3346 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3347 from tui_make_status_line.
3348 (tui_locator_window::rerender): Update.
3349
f8532154
TT
33502019-09-20 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3353 (tui_locator_window::rerender): Update.
3354
2d81b349
TT
33552019-09-20 Tom Tromey <tom@tromey.com>
3356
3357 * tui/tui-winsource.h (struct tui_source_window_base)
3358 <~tui_source_window_base>: Don't declare.
3359 <fullname>: Remove.
3360 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3361 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3362 member.
3363 * tui/tui-source.c (tui_source_window::set_contents): Update.
3364 (tui_source_window::location_matches_p)
3365 (tui_source_window::maybe_update): Update.
3366
f14bec58
TT
33672019-09-20 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-winsource.h (~tui_source_element): Remove.
3370 (tui_source_element): Update.
3371 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3372 * tui/tui-winsource.c (tui_show_source_line): Update.
3373 * tui/tui-source.c (tui_source_window::set_contents): Update.
3374 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3375
78d5933a
TT
33762019-09-20 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3379 declare.
3380 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3381 tui_clear_source_windows_detail.
3382 * tui/tui-winsource.h (struct tui_source_window_base)
3383 <clear_detail>: Don't declare.
3384 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3385 Remove.
3386 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3387
d4207696
TT
33882019-09-20 Tom Tromey <tromey@adacore.com>
3389
3390 PR ada/24919:
3391 * block.c (contained_in): Fix final return value.
3392
00f93c44
AM
33932019-09-20 Alan Modra <amodra@gmail.com>
3394
3395 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3396 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3397 (read_indirect_string_from_dwz): Use bfd accessor.
3398 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3399 * machoread.c (macho_symfile_read_all_oso): Likewise.
3400 * solib.c (solib_bfd_open): Likewise.
3401
e4153ae6
CB
34022019-09-19 Christian Biesinger <cbiesinger@google.com>
3403
3404 * eval.c: Move declaration of overload_resolution to...
3405 * value.h: ...here.
3406
c7ae7675
CB
34072019-09-19 Christian Biesinger <cbiesinger@google.com>
3408
3409 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3410 * arm-linux-tdep.c: Likewise.
3411 * arm-nbsd-nat.c: Likewise.
3412 * arm-tdep.h: Declare arm_apcs_32.
3413 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3414
e86f08d2
CB
34152019-09-19 Christian Biesinger <cbiesinger@google.com>
3416
3417 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3418 * dwarf2read.h: Declare dwarf_always_disassemble.
3419
f64e2f40
TV
34202019-09-19 Tom de Vries <tdevries@suse.de>
3421
3422 PR gdb/25009
3423 * source-cache.c (source_cache::ensure): Catch exception thrown during
3424 construction of the highlighter.
3425
fd361982
AM
34262019-09-18 Alan Modra <amodra@gmail.com>
3427
3428 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3429 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3430 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3431 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3432 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3433 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3434 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3435 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3436 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3437 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3438 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3439 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3440 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3441 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3442 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3443 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3444 * mi/mi-interp.c: Update throughout for bfd section macro and
3445 function changes.
3446 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3447 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3448
11061048
TT
34492019-09-18 Tom Tromey <tom@tromey.com>
3450
3451 * NEWS: Add entry.
3452 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3453 call rl_initialize.
3454 (tui_enable): Do not call rl_initialize.
3455
7a27b85f
CG
34562019-09-18 Christian Groessler <chris@groessler.org>
3457
3458 * alpha-linux-nat.c: Include gdbarch.h.
3459
f64eea3a
SM
34602019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * ui-file.c: Include cli/cli-style.h.
3463 (term_cli_styling): Remove cli_styling declaration.
3464
e6f7f6d1
AM
34652019-09-18 Alan Modra <amodra@gmail.com>
3466
3467 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3468 to bfd_asymbol_section.
3469
1d38e9d1
AM
34702019-09-18 Alan Modra <amodra@gmail.com>
3471
3472 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3473 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3474 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3475
90d92a63
AM
34762019-09-18 Alan Modra <amodra@gmail.com>
3477
3478 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3479 * spu-linux-nat.c (spu_bfd_open): Likewise.
3480
a3d181d2
CB
34812019-09-18 Christian Biesinger <cbiesinger@google.com>
3482
3483 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3484 to bool to match definition in dwarf2read.c.
3485
491144b5
CB
34862019-09-17 Christian Biesinger <cbiesinger@google.com>
3487
3488 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3489 (print_signatures): Likewise.
3490 (trust_pad_over_xvs): Likewise.
3491 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3492 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3493 * arm-linux-nat.c (arm_apcs_32): Likewise.
3494 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3495 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3496 * arm-tdep.c (arm_debug): Likewise.
3497 (arm_apcs_32): Likewise.
3498 * auto-load.c (debug_auto_load): Likewise.
3499 (auto_load_gdb_scripts): Likewise.
3500 (global_auto_load): Likewise.
3501 (auto_load_local_gdbinit): Likewise.
3502 (auto_load_local_gdbinit_loaded): Likewise.
3503 * auto-load.h (global_auto_load): Likewise.
3504 (auto_load_local_gdbinit): Likewise.
3505 (auto_load_local_gdbinit_loaded): Likewise.
3506 * breakpoint.c (disconnected_dprintf): Likewise.
3507 (breakpoint_proceeded): Likewise.
3508 (automatic_hardware_breakpoints): Likewise.
3509 (always_inserted_mode): Likewise.
3510 (target_exact_watchpoints): Likewise.
3511 (_initialize_breakpoint): Update.
3512 * breakpoint.h (target_exact_watchpoints): Change to bool.
3513 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3514 * cli/cli-cmds.c (trace_commands): Likewise.
3515 * cli/cli-cmds.h (trace_commands): Likewise.
3516 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3517 to bool*.
3518 * cli/cli-logging.c (logging_overwrite): Change to bool.
3519 (logging_redirect): Likewise.
3520 (debug_redirect): Likewise.
3521 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3522 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3523 to bool.
3524 <boolean_option_def>: Update.
3525 (struct flag_option_def): Change default type of Context to bool
3526 from int.
3527 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3528 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3529 (get_setshow_command_value_string): Likewise.
3530 * cli/cli-style.c (cli_styling): Change to bool.
3531 (source_styling): Likewise.
3532 * cli/cli-style.h (source_styling): Likewise.
3533 (cli_styling): Likewise.
3534 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3535 to bool.
3536 * command.h (var_types): Update comment.
3537 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3538 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3539 bool.
3540 (debug_compile_cplus_scopes): Likewise.
3541 * compile/compile-internal.h (compile_debug): Likewise.
3542 * compile/compile.c (compile_debug): Likewise.
3543 (struct compile_options) <raw>: Likewise.
3544 * cp-support.c (catch_demangler_crashes): Likewise.
3545 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3546 (usr_cmd_cris_dwarf2_cfi): Likewise.
3547 * csky-tdep.c (csky_debug): Likewise.
3548 * darwin-nat.c (enable_mach_exceptions): Likewise.
3549 * dcache.c (dcache_enabled_p): Likewise.
3550 * defs.h (info_verbose): Likewise.
3551 * demangle.c (demangle): Likewise.
3552 (asm_demangle): Likewise.
3553 * dwarf-index-cache.c (debug_index_cache): Likewise.
3554 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3555 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3556 * dwarf2read.c (check_physname): Likewise.
3557 (use_deprecated_index_sections): Likewise.
3558 (dwarf_always_disassemble): Likewise.
3559 * eval.c (overload_resolution): Likewise.
3560 * event-top.c (set_editing_cmd_var): Likewise.
3561 (exec_done_display_p): Likewise.
3562 * event-top.h (set_editing_cmd_var): Likewise.
3563 (exec_done_display_p): Likewise.
3564 * exec.c (write_files): Likewise.
3565 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3566 (debug_fbsd_nat): Likewise.
3567 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3568 Likewise.
3569 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3570 <backtrace_past_entry> Likewise.
3571 * gdb-demangle.h (demangle): Likewise.
3572 (asm_demangle): Likewise.
3573 * gdb_bfd.c (bfd_sharing): Likewise.
3574 * gdbcore.h (write_files): Likewise.
3575 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3576 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3577 * gdbthread.h (print_thread_events): Likewise.
3578 * gdbtypes.c (opaque_type_resolution): Likewise.
3579 (strict_type_checking): Likewise.
3580 * gnu-nat.c (gnu_debug_flag): Likewise.
3581 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3582 * guile/scm-param.c (pascm_variable): Add boolval.
3583 (add_setshow_generic): Update.
3584 (pascm_param_value): Update.
3585 (pascm_set_param_value_x): Update.
3586 * hppa-tdep.c (hppa_debug): Change to bool..
3587 * infcall.c (may_call_functions_p): Likewise.
3588 (coerce_float_to_double_p): Likewise.
3589 (unwind_on_signal_p): Likewise.
3590 (unwind_on_terminating_exception_p): Likewise.
3591 * infcmd.c (startup_with_shell): Likewise.
3592 * inferior.c (print_inferior_events): Likewise.
3593 * inferior.h (startup_with_shell): Likewise.
3594 (print_inferior_events): Likewise.
3595 * infrun.c (step_stop_if_no_debug): Likewise.
3596 (detach_fork): Likewise.
3597 (debug_displaced): Likewise.
3598 (disable_randomization): Likewise.
3599 (non_stop): Likewise.
3600 (non_stop_1): Likewise.
3601 (observer_mode): Likewise.
3602 (observer_mode_1): Likewise.
3603 (set_observer_mode): Update.
3604 (sched_multi): Change to bool.
3605 * infrun.h (debug_displaced): Likewise.
3606 (sched_multi): Likewise.
3607 (step_stop_if_no_debug): Likewise.
3608 (non_stop): Likewise.
3609 (disable_randomization): Likewise.
3610 * linux-tdep.c (use_coredump_filter): Likewise.
3611 (dump_excluded_mappings): Likewise.
3612 * linux-thread-db.c (auto_load_thread_db): Likewise.
3613 (check_thread_db_on_load): Likewise.
3614 * main.c (captured_main_1): Update.
3615 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3616 xx2_opt, boolean_opt>: Change to bool.
3617 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3618 * maint.c (maintenance_profile_p): Likewise.
3619 (per_command_time): Likewise.
3620 (per_command_space): Likewise.
3621 (per_command_symtab): Likewise.
3622 * memattr.c (inaccessible_by_default): Likewise.
3623 * mi/mi-main.c (mi_async): Likewise.
3624 (mi_async_1): Likewise.
3625 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3626 * nat/fork-inferior.h (startup_with_shell): Likewise.
3627 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3628 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3629 * nios2-tdep.c (nios2_debug): Likewise.
3630 * or1k-tdep.c (or1k_debug): Likewise.
3631 * parse.c (parser_debug): Likewise.
3632 * parser-defs.h (parser_debug): Likewise.
3633 * printcmd.c (print_symbol_filename): Likewise.
3634 * proc-api.c (procfs_trace): Likewise.
3635 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3636 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3637 (set_parameter_value): Update.
3638 (add_setshow_generic): Update.
3639 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3640 to bool*.
3641 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3642 int*.
3643 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3644 * record-btrace.c (record_btrace_target::store_registers): Update.
3645 * record-full.c (record_full_memory_query): Change to bool.
3646 (record_full_stop_at_limit): Likewise.
3647 * record-full.h (record_full_memory_query): Likewise.
3648 * remote-notif.c (notif_debug): Likewise.
3649 * remote-notif.h (notif_debug): Likewise.
3650 * remote.c (use_range_stepping): Likewise.
3651 (interrupt_on_connect): Likewise.
3652 (remote_break): Likewise.
3653 * ser-tcp.c (tcp_auto_retry): Likewise.
3654 * ser-unix.c (serial_hwflow): Likewise.
3655 * skip.c (debug_skip): Likewise.
3656 * solib-aix.c (solib_aix_debug): Likewise.
3657 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3658 (spu_auto_flush_cache_p): Likewise.
3659 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3660 Likewise.
3661 (struct info_print_options) <quiet>: Likewise.
3662 * symfile-debug.c (debug_symfile): Likewise.
3663 * symfile.c (auto_solib_add): Likewise.
3664 (separate_debug_file_debug): Likewise.
3665 * symfile.h (auto_solib_add): Likewise.
3666 (separate_debug_file_debug): Likewise.
3667 * symtab.c (basenames_may_differ): Likewise.
3668 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3669 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3670 (struct info_types_options) <quiet>: Likewise.
3671 * symtab.h (demangle): Likewise.
3672 (basenames_may_differ): Likewise.
3673 * target-dcache.c (stack_cache_enabled_1): Likewise.
3674 (code_cache_enabled_1): Likewise.
3675 * target.c (trust_readonly): Likewise.
3676 (may_write_registers): Likewise.
3677 (may_write_memory): Likewise.
3678 (may_insert_breakpoints): Likewise.
3679 (may_insert_tracepoints): Likewise.
3680 (may_insert_fast_tracepoints): Likewise.
3681 (may_stop): Likewise.
3682 (auto_connect_native_target): Likewise.
3683 (target_stop_and_wait): Update.
3684 (target_async_permitted): Change to bool.
3685 (target_async_permitted_1): Likewise.
3686 (may_write_registers_1): Likewise.
3687 (may_write_memory_1): Likewise.
3688 (may_insert_breakpoints_1): Likewise.
3689 (may_insert_tracepoints_1): Likewise.
3690 (may_insert_fast_tracepoints_1): Likewise.
3691 (may_stop_1): Likewise.
3692 * target.h (target_async_permitted): Likewise.
3693 (may_write_registers): Likewise.
3694 (may_write_memory): Likewise.
3695 (may_insert_breakpoints): Likewise.
3696 (may_insert_tracepoints): Likewise.
3697 (may_insert_fast_tracepoints): Likewise.
3698 (may_stop): Likewise.
3699 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3700 (make_thread_apply_all_options_def_group): Change argument from int*
3701 to bool*.
3702 (thread_apply_all_command): Update.
3703 (print_thread_events): Change to bool.
3704 * top.c (confirm): Likewise.
3705 (command_editing_p): Likewise.
3706 (history_expansion_p): Likewise.
3707 (write_history_p): Likewise.
3708 (info_verbose): Likewise.
3709 * top.h (confirm): Likewise.
3710 (history_expansion_p): Likewise.
3711 * tracepoint.c (disconnected_tracing): Likewise.
3712 (circular_trace_buffer): Likewise.
3713 * typeprint.c (print_methods): Likewise.
3714 (print_typedefs): Likewise.
3715 * utils.c (debug_timestamp): Likewise.
3716 (sevenbit_strings): Likewise.
3717 (pagination_enabled): Likewise.
3718 * utils.h (sevenbit_strings): Likewise.
3719 (pagination_enabled): Likewise.
3720 * valops.c (overload_resolution): Likewise.
3721 * valprint.h (struct value_print_options) <prettyformat_arrays,
3722 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3723 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3724 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3725 Likewise.
3726 * windows-nat.c (new_console): Likewise.
3727 (cygwin_exceptions): Likewise.
3728 (new_group): Likewise.
3729 (debug_exec): Likewise.
3730 (debug_events): Likewise.
3731 (debug_memory): Likewise.
3732 (debug_exceptions): Likewise.
3733 (useshell): Likewise.
3734 * windows-tdep.c (maint_display_all_tib): Likewise.
3735 * xml-support.c (debug_xml): Likewise.
3736
f1b620e9
MG
37372019-09-17 Mike Gulick <mgulick@mathworks.com>
3738
3739 * source.c (prepare_path_for_appending): New function.
3740 (openp): Make use of new function.
3741 (find_and_open_source): Search for the compilation directory and
3742 source file as a relative path beneath the directory search path.
3743
67f3ed6a
AB
37442019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * source-cache.c (source_cache::get_line_charpos): Catch
3747 exceptions and return false, this matches the behaviour documented
3748 in the header file.
3749
74332189
JB
37502019-09-17 Joel Brobecker <brobecker@adacore.com>
3751
3752 * ada-tasks.c (info_task): Remove quoting of the task's name.
3753
f2f24aa9
CB
37542019-09-16 Christian Biesinger <cbiesinger@google.com>
3755
3756 * symfile.c (auto_solib_add): Replace comment with a reference
3757 to the header file.
3758
6a062a93
CB
37592019-09-14 Christian Biesinger <cbiesinger@google.com>
3760
3761 * NEWS: Mention that gdb can now be compiled with Python 3
3762 on Windows.
3763
ec6c8338
AB
37642019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * maint.c (maint_print_section_data::maint_print_section_data):
3767 Force use of 'float log10 (float)' by casting the argument to
3768 float.
3769
aa17805f
AB
37702019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * maint.c: Add 'cmath' include.
3773 (struct maint_print_section_data): New structure.
3774 (print_section_index): New function.
3775 (print_bfd_section_info): Add header comment, small whitespace
3776 cleanup, and update to call new print_section_index function.
3777 (print_objfile_section_info): Likewise.
3778 (maint_obj_section_from_bfd_section): New function.
3779 (print_bfd_section_info_maybe_relocated): New function.
3780 (maintenance_info_sections): Add header comment, always use
3781 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3782
3dd9bb46
AB
37832019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3786 inner scope, add check that the objfile has psymtabs before
3787 checking psymtabs_addrmap.
3788 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3789
4993045d
PW
37902019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3791
3792 * NEWS: Announce that Ada task names are now shown at more places,
3793 and between quotes (except in info task output).
3794 * gdb/ada-tasks.c (task_to_str): New function.
3795 (display_current_task_id): Call task_to_str.
3796 (task_command_1): Likewise.
3797 (print_ada_task_info): In non-mi mode, Properly align headers and data
3798 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3799
7a289707
RO
38002019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3801
3802 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3803 prstatus.pr_lwp.pr_info instead of making it up.
3804
f2aec7f6
CB
38052019-09-11 Christian Biesinger <cbiesinger@google.com>
3806
3807 * auto-load.c (auto_load_expand_dir_vars): Update.
3808 * defs.h (gdb_datadir): Change to std::string.
3809 (python_libdir): Likewise.
3810 (relocate_gdb_directory): Change return type to std::string.
3811 * guile/guile.c (gdbscm_data_directory): Update.
3812 (initialize_scheme_side): Update.
3813 * jit.c (jit_reader_dir): Change to std::string.
3814 (jit_reader_load_command): Update.
3815 * main.c (gdb_datadir): Change to std::string.
3816 (python_libdir): Likewise.
3817 (set_gdb_data_directory): Update.
3818 (relocate_path): Change to return std::string.
3819 (relocate_gdb_directory): Change to return std::string.
3820 (relocate_gdbinit_path_maybe_in_datadir): Update.
3821 (captured_main_1): Update.
3822 * python/python.c (do_start_initialization): Update.
3823 * top.c (show_gdb_datadir): Update.
3824 * xml-syscall.c (xml_init_syscalls_info): Update.
3825 (init_syscalls_info): Update.
3826
9224a013
CB
38272019-09-11 Christian Biesinger <cbiesinger@google.com>
3828
3829 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3830 out of get_init_files.
3831 (get_init_files): Update.
3832
f48cd836
CB
38332019-09-11 Christian Biesinger <cbiesinger@google.com>
3834
3835 * main.c (get_init_files): Change to use std::string.
3836 (captured_main_1): Update.
3837 (print_gdb_help): Update.
3838
9cab7ecd
AT
38392019-09-11 Ali Tamur <tamur@google.com>
3840
3841 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3842 implementation.
3843
67547d89
CB
38442019-09-11 Christian Biesinger <cbiesinger@google.com>
3845
3846 * dbxread.c (read_dbx_symtab): Update.
3847 * dwarf2read.c (load_partial_dies): Update.
3848 * mdebugread.c (parse_partial_symbols): Update.
3849 (handle_psymbol_enumerators): Update.
3850 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3851 * psymtab.c (add_psymbol_to_bcache): Likewise.
3852 (add_psymbol_to_list): Likewise.
3853 * symtab.c (symbol_set_names): Likewise.
3854 * symtab.h (symbol_set_names): Likewise.
3855 * xcoffread.c (scan_xcoff_symtab): Update.
3856
64b2d4a0
TT
38572019-09-11 Tom Tromey <tom@tromey.com>
3858
3859 * symfile-mem.c (symbol_file_add_from_memory): Use
3860 bfd_set_filename.
3861 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3862 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3863
3b00ef10
TT
38642019-09-10 Tom Tromey <tromey@adacore.com>
3865
3866 * dwarf-index-write.c (write_psymbols): Extend error message.
3867 (debug_names::insert): Add Ada code.
3868 (debug_names::write_psymbols): Remove Ada check.
3869 (debug_names) <m_string_obstack>: New member.
3870 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3871 (gdb_index_symbol_name_matcher::matches): Remove.
3872 (mapped_index_base::find_name_components_bounds): Add "lang"
3873 parameter.
3874 (mapped_index_base::build_name_components): Also split names
3875 according to Ada syntax.
3876 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3877 type of "match_callback".
3878 (check_match, check_find_bounds_finds)
3879 (dw2_expand_symtabs_matching): Update.
3880 (dw2_debug_names_iterator): Add new constructor.
3881 (dw2_debug_names_map_matching_symbols): New function.
3882 (dw2_debug_names_expand_symtabs_matching): Update.
3883 (dwarf2_debug_names_functions): Use
3884 dw2_debug_names_map_matching_symbols.
3885
aa391654
TT
38862019-09-10 Tom Tromey <tromey@adacore.com>
3887
3888 * dwarf2read.c (dw2_get_file_names_reader): Add the
3889 CU's file name to the results.
3890
b054970d
TT
38912019-09-10 Tom Tromey <tromey@adacore.com>
3892
3893 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3894 map_matching_symbols. Update.
3895 * dwarf2read.c (dw2_map_matching_symbols): Update.
3896 * psymtab.c (match_partial_symbol): Change type; update.
3897 (psym_map_matching_symbols): Likewise.
3898 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3899 type; update.
3900 * symfile.h (struct quick_symbol_functions)
3901 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3902 Remove "match".
3903
6a3dbf1b
TT
39042019-09-10 Tom Tromey <tromey@adacore.com>
3905
3906 * psymtab.c (map_block): Remove.
3907 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3908 * symtab.c (iterate_over_symbols_terminated): New function.
3909 * symtab.c (iterate_over_symbols_terminated): Declare.
3910
6969f124
TT
39112019-09-10 Tom Tromey <tromey@adacore.com>
3912
3913 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3914 * language.h (struct language_defn) <la_iterate_over_symbols>:
3915 Return bool.
3916 * symtab.c (iterate_over_symbols): Return bool.
3917 * symtab.h (iterate_over_symbols): Return bool.
3918
199b4314
TT
39192019-09-10 Tom Tromey <tromey@adacore.com>
3920
3921 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3922 (add_nonlocal_symbols): Update.
3923 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3924 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3925 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3926 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3927 Change type of "callback". Remove "data".
3928
a084a2a6
AT
3929
39302019-09-09 Ali Tamur <tamur@google.com>
3931
3932 * dwarf2read.c (comp_unit_head): Update comment.
3933 (dwarf2_dwo_name): New function declaration.
3934 (dwarf_unit_type_name): New function declaration.
3935 (read_comp_unit_head): Add support for new compilation units,
3936 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3937 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3938 (currently named as "signature") in their header. Also clarify error
3939 messages.
3940 (lookup_dwo_id): New function. Returns the dwo id of the given
3941 compile unit.
3942 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3943 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3944 functions.
3945 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3946 (dwarf2_dwo_name): Get the dwo name if present.
3947 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3948 purposes.
3949
25a2915e
TT
39502019-09-09 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3953
e4df0874
PW
39542019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3955
3956 * python/python.c (do_start_initialization): Make progname_copy static,
3957 to avoid a leak report.
3958
8634b462
TT
39592019-09-08 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3962
c7f839cb
SM
39632019-09-07 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3966 Change type to gdb::optional<block_enum>.
3967 (dw2_symtab_iter_init): Change block_index parameter type
3968 to gdb::optional<block_enum>.
3969 (dw2_lookup_symbol): Change block_index parameter
3970 type to block_enum.c
3971 (dw2_debug_names_lookup_symbol): Likewise.
3972 * psymtab.c (psym_lookup_symbol): Likewise.
3973 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3974 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3975 Likewise.
3976
ead0e69a
CB
39772019-09-06 Christian Biesinger <cbiesinger@google.com>
3978
3979 * defs.h (relocate_gdb_directory): Change int to bool in
3980 signature and rename flag to relocatable.
3981 * main.c (relocate_path): Likewise.
3982 (relocate_gdb_directory): Likewise.
3983
b16c44de
AM
39842019-09-06 Alan Modra <amodra@gmail.com>
3985
3986 * coffread.c (coff_symfile_read): Constify filename variable.
3987 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3988 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3989 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3990 * solib.c (reload_shared_libraries_1): Likewise.
3991 * symfile.c (reread_symbols): Likewise.
3992 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3993 * solib-darwin.c (darwin_bfd_open): Likewise.
3994 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3995
06ff036e
AB
39962019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3999 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4000
4e962e74
TT
40012019-09-03 Tom Tromey <tromey@adacore.com>
4002
4003 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4004 types.
4005 (has_negatives): Unbias a range type bound.
4006 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4007 * gdbtypes.c (operator==): Handle new field.
4008 (create_range_type): Add "bias" parameter.
4009 (create_static_range_type, resolve_dynamic_range): Update.
4010 * gdbtypes.h (struct range_bounds) <bias>: New member.
4011 (create_range_type): Add bias parameter.
4012 * printcmd.c (print_scalar_formatted): Unbias range types.
4013 * value.c (unpack_long): Unbias range types.
4014 (pack_long): Bias range types.
4015
d90b8f26
AH
40162019-09-02 Alan Hayward <alan.hayward@arm.com>
4017
4018 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4019 probe arguments.
4020
fe01123e
AH
40212019-09-02 Alan Hayward <alan.hayward@arm.com>
4022
4023 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4024 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4025 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4026 (compile_probe_arg): Likewise.
4027 * probe.h (get_argument_count): Likewise.
4028 * solib-svr4.c (solib_event_probe_action): Likewise.
4029 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4030
e661ef01
AH
40312019-09-02 Alan Hayward <alan.hayward@arm.com>
4032
4033 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4034 code to here...
4035 (svr4_create_solib_event_breakpoints): ...from here.
4036
47a536d9
SDJ
40372019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4038
4039 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4040 suffix from warning message.
4041
d6a00eba
TT
40422019-08-30 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-winsource.h (struct tui_source_window_base)
4045 <refresh_all>: Don't declare.
4046 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4047 Remove.
4048 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4049 tui_show_locator_content.
4050 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4051 declare.
4052 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4053 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4054 declare.
4055
55b2657b
TT
40562019-08-30 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4059
12a8555a
TT
40602019-08-30 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4063 Remove unnecessary forward declarations.
4064
900ac242
TT
40652019-08-30 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4068 rerender.
4069 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4070 tui_show_locator_content.
4071
99ab33fb
TT
40722019-08-30 Tom Tromey <tom@tromey.com>
4073
4074 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4075 (tui_locator_window::rerender): Rewrite using body of previous
4076 tui_show_locator_content.
4077
e594a5d1
TT
40782019-08-30 Tom Tromey <tom@tromey.com>
4079
4080 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4081 set_locator_fullname>: New methods.
4082 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4083 Rename from tui_set_locator_fullname.
4084 (tui_locator_window::set_locator_info): Rename from
4085 tui_set_locator_info. Return bool.
4086 (tui_update_locator_fullname, tui_show_frame_info): Update.
4087
715bb467
TT
40882019-08-30 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4091
772f3f03
TT
40922019-08-30 Tom Tromey <tom@tromey.com>
4093
4094 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4095 call touchwin.
4096
108e13ab
TT
40972019-08-30 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-wingeneral.c (box_win): Assume win_info and
4100 win_info->handle cannot be NULL.
4101
cdaa6eb4
TT
41022019-08-30 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4105 refresh_window>: Declare.
4106 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4107 resize.
4108 (tui_data_item_window::rerender): Rename from
4109 tui_display_register.
4110 (tui_data_item_window::refresh_window): New method.
4111 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4112 no-op.
4113
89df7f90
TT
41142019-08-30 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4117 regs_column_count, current_group>: Move later. Now private.
4118 <get_current_group>: New method.
4119 * tui/tui-regs.c (tui_reg_command): Update.
4120 * tui/tui-layout.c (tui_set_layout): Update.
4121
1bf2866a
TT
41222019-08-30 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4125 (tui_data_window::rerender): Don't call
4126 check_and_display_highlight_if_needed.
4127 (tui_data_window::refresh_all): Remove call to
4128 erase_data_content.
4129
0670413d
TT
41302019-08-30 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4133 (tui_data_window::display_registers_from)
4134 (tui_data_window::display_reg_element_at_line)
4135 (tui_data_window::display_registers_from_line): Remove checks of
4136 "empty".
4137
18bb55c7
TT
41382019-08-30 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4141 Don't declare.
4142 * tui/tui-regs.c (tui_data_window::show_registers): Call
4143 rerender.
4144 (tui_data_window::rerender): Rename from display_all_data.
4145 (tui_data_window::rerender): Remove old implementation.
4146
1f6d2f10
TT
41472019-08-30 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4150 text.
4151 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4152
16d01f9c
BW
41532019-08-29 Bernhard Wodok <barto@gmx.net>
4154 Sergio Durigan Junior <sergiodj@redhat.com>
4155
4156 PR win32/24284
4157 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4158
d8f27c60
AB
41592019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4162 when searching for types.
4163
1f20c35e
AB
41642019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4165
4166 * f-lang.c (f_language_defn): Use f_print_typedef.
4167 * f-lang.h (f_print_typedef): Declare.
4168 * f-typeprint.c (f_print_typedef): Define.
4169
550105b7
CB
41702019-08-27 Christian Biesinger <cbiesinger@google.com>
4171
4172 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4173
4acfdd20
AB
41742019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * cli/cli-utils.c (info_print_options_defs): Delete.
4177 (make_info_print_options_def_group): Delete.
4178 (extract_info_print_options): Delete.
4179 (info_print_command_completer): Delete.
4180 (info_print_args_help): Add extra parameter, and optionally
4181 include text about -n flag.
4182 * cli/cli-utils.h (struct info_print_options): Delete.
4183 (extract_info_print_options): Delete declaration.
4184 (info_print_command_completer): Delete declaration.
4185 (info_print_args_help): Add extra parameter, extend header
4186 comment.
4187 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4188 search_symbols.
4189 * stack.c (struct info_print_options): New type.
4190 (info_print_options_defs): New file scoped variable.
4191 (make_info_print_options_def_group): New static function.
4192 (info_print_command_completer): New static function.
4193 (info_locals_command): Update to use new local functions.
4194 (info_args_command): Likewise.
4195 (_initialize_stack): Add extra parameter to calls to
4196 info_print_args_help.
4197 * symtab.c (search_symbols): Add extra parameter, use this to
4198 possibly excluse non-debug symbols.
4199 (symtab_symbol_info): Add extra parameter, which is passed on to
4200 search_symbols.
4201 (struct info_print_options): New type.
4202 (info_print_options_defs): New file scoped variable.
4203 (make_info_print_options_def_group): New static function.
4204 (info_print_command_completer): New static function.
4205 (info_variables_command): Update to use local functions, and pass
4206 extra parameter through to symtab_symbol_info.
4207 (info_functions_command): Likewise.
4208 (info_types_command): Pass additional argument through to
4209 symtab_symbol_info.
4210 (rbreak_command): Pass extra argument to search_symbols.
4211 (_initialize_symtab): Add extra arguments for calls to
4212 info_print_args_help, and update help text for 'info variables',
4213 'whereis', and 'info functions' commands.
4214 * symtab.h (search_symbols): Add extra argument to declaration.
4215 * NEWS: Mention new flags.
4216
9aa55206
CB
42172019-08-26 Christian Biesinger <cbiesinger@google.com>
4218
4219 * symtab.c (lookup_static_symbol): Call the new function (and move
4220 it down to be next to lookup_global_symbol).
4221 (struct global_sym_lookup_data): Add block_enum member and rename to...
4222 (struct global_or_static_sym_lookup_data): ...this.
4223 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4224 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4225 (lookup_symbol_global_or_static_iterator_cb): ...this.
4226 (lookup_global_or_static_symbol): New function.
4227 (lookup_global_symbol): Call new function.
4228
5c31b358
TV
42292019-08-26 Tom de Vries <tdevries@suse.de>
4230
4231 PR c++/24852
4232 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4233 when pc_probe.prob == NULL.
4234
23c13d42
SM
42352019-08-25 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4238 variable symbol_linkage to symbol_linkage_.
4239
beadd3e8
SM
42402019-08-25 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4243 represent whether the symbol is static, dynamic, or we don't
4244 know.
4245
e3ec872f
YS
42462019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4247
4248 * gdb/rx-tdep.c (rx_register_names): New.
4249 (rx_register_name): Delete.
4250 (rx_psw_type): Delete.
4251 (rx_fpsw_type): Delete.
4252 (rx_register_type): Delete.
4253 (rx_gdbarch_init): Convert target-descriptions.
4254 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4255 * gdb/features/Makefile: Add rx.xml.
4256 * gdb/features/rx.xml: New.
4257 * gdb/features/rx.c: Generated.
4258 * gdb/NEWS: Mention target description support.
4259
d0509ba4
CB
42602019-08-22 Christian Biesinger <cbiesinger@google.com>
4261
4262 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4263 *slot_ptr.
4264
2d41fa11
SDJ
42652019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4266
4267 * configure.ac: Don't check for 'dlfcn.h' (moved to
4268 gdbsupport/common.m4).
4269 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4270 'gdbsupport/'.
4271 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4272 * compile/compile-c-support.c: Include
4273 'gdbsupport/gdb-dlfcn.h'.
4274 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4275 * gdb-dlfcn.c: Move to...
4276 * gdbsupport/gdb-dlfcn.c: ... here.
4277 * gdb-dlfcn.h: Move to...
4278 * gdbsupport/gdb-dlfcn.h: ... here.
4279
de8af808
SL
42802019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4281
4282 * nios2-tdep.c (struct reg_value): Improve comments. Make
4283 the offset field signed.
4284
27204489
CB
42852019-08-22 Christian Biesinger <cbiesinger@google.com>
4286
4287 * python/lib/gdb/__init__.py (_execute_file): New function.
4288 * python/python.c (python_run_simple_file): Call gdb._execute_file
4289 on Windows.
4290
43771869
AB
42912019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4292
4293 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4294 all uses as this was never set to anything but a zero value.
4295
26c957f1
PA
42962019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4297
4298 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4299
c07aae6e
CB
43002019-08-21 Christian Biesinger <cbiesinger@google.com>
4301
4302 * tui/tui-data.h (tui_gen_win_info): Add an =default
4303 move constructor, required by some GCC versions.
4304
3960cb7a
JF
43052019-08-21 Jinke Fan <fanjinke51@yeah.net>
4306
4307 * go32-nat.c (go32_sysinfo): Add hygon_p.
4308
04c72a68
TT
43092019-08-20 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4312 line_from_reg_element_no, first_reg_element_no_inline,
4313 display_all_data, delete_data_content_windows,
4314 erase_data_content>: Now private.
4315
072272ce
TT
43162019-08-20 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4319 (tui_unhighlight_win, tui_highlight_win)
4320 (tui_win_info::make_window): Update.
4321 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4322
973961bd
TT
43232019-08-20 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4326 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4327 (MAX_PID_WIDTH): Move to tui-stack.c.
4328 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4329 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4330 (MAX_PID_WIDTH): Move from tui-data.h.
4331
ab0e1f1a
TT
43322019-08-20 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4335 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4336 (box_win): Update.
4337 (tui_gen_win_info::make_window): Rename from tui_make_window.
4338 (tui_win_info::make_window): New method.
4339 (tui_gen_win_info::make_visible): Update.
4340 * tui/tui-source.c (tui_source_window::set_contents): Update.
4341 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4342 (tui_data_window::display_registers_from): Update.
4343 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4344 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4345 Declare.
4346 <can_box>: Remove.
4347 <title>: Remove.
4348 (struct tui_win_info) <make_window>: Declare.
4349 <can_box>: Now virtual.
4350 <title>: New member.
4351 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4352 * tui/tui-command.c (tui_cmd_window::resize): Update.
4353
100c2bf3
TT
43542019-08-20 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4357 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4358 (tui_data_window::check_register_values): Update.
4359
fa4dc567
TT
43602019-08-20 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-regs.h (struct tui_data_window): Use
4363 DISABLE_COPY_AND_ASSIGN.
4364 <regs_content>: Change type, removing unique_ptr.
4365 <tui_data_window>: Add move constructor.
4366 * tui/tui-regs.c (tui_data_window::show_registers)
4367 (tui_data_window::show_register_group)
4368 (tui_data_window::display_registers_from)
4369 (tui_data_window::display_registers_from)
4370 (tui_data_window::first_data_item_displayed)
4371 (tui_data_window::delete_data_content_windows)
4372 (tui_data_window::rerender, tui_data_window::refresh_window)
4373 (tui_data_window::check_register_values): Update.
4374
ca02d7c8
TT
43752019-08-20 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4378 show_register_group>: Declare.
4379 (tui_show_register_group): Don't declare.
4380 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4381 tui_show_registers.
4382 (tui_data_window::show_register_group): Rename from
4383 tui_show_register_group.
4384 (tui_data_window::check_register_values, tui_reg_command):
4385 Update.
4386 * tui/tui-layout.c (tui_set_layout): Update.
4387
63356bfd
TT
43882019-08-20 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4391 Declare.
4392 (tui_check_register_values): Don't declare.
4393 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4394 from tui_check_register_values.
4395 * tui/tui-hooks.c (tui_register_changed): Update.
4396
42cc14a7
TT
43972019-08-20 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-regs.c (tui_reg_layout): Move later.
4400 (tui_show_registers): Don't enable TUI mode or change layout.
4401
b9ad3686
TT
44022019-08-20 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-regs.h (struct tui_data_item_window)
4405 <~tui_data_item_window>: Remove.
4406 <content>: Now a unique_xmalloc_ptr.
4407 * tui/tui-regs.c (tui_register_format): Return a
4408 unique_xmalloc_ptr.
4409 (tui_get_register): Update.
4410 (~tui_data_item_window): Remove.
4411 (tui_data_window::display_registers_from, tui_display_register):
4412 Update.
4413 * tui/tui-io.h (tui_expand_tabs): Update.
4414 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4415 Remove "col" parameter.
4416
8e114aab
TT
44172019-08-20 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4420 field.
4421 * tui/tui-regs.c (~tui_data_item_window): Update.
4422
1a4f81dd
TT
44232019-08-20 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4426 earlier.
4427
0f8d8876
TT
44282019-08-20 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4431
605dc2c2
TT
44322019-08-20 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-source.h (struct tui_source_window): Update.
4435 * tui/tui-regs.c (tui_show_registers): Update.
4436 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4437 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4438 (NO_REGS_STRING): Remove defines.
4439
aedbe3bb
CM
44402019-08-20 Conrad Meyer <cem@FreeBSD.org>
4441
4442 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4443 unnecessary thread walk if remote doesn't support the packet.
4444
7ce8f214
TT
44452019-08-19 Tom Tromey <tromey@adacore.com>
4446
4447 * python/py-value.c (value_has_field): Fix indentation.
4448
f21c2bd7
TT
44492019-08-19 Tom Tromey <tromey@adacore.com>
4450
4451 * printcmd.c (do_one_display, info_display_command): Update.
4452 * block.h (contained_in): Return bool. Add allow_nested
4453 parameter.
4454 * block.c (contained_in): Return bool. Add allow_nested
4455 parameter.
4456
d806ea2d
TT
44572019-08-19 Tom Tromey <tom@tromey.com>
4458
4459 * configure: Rebuild.
4460 * configure.ac: Disallow the combination of -static-libstdc++ and
4461 source highlight.
4462 * source-cache.c (get_language_name): Handle rust.
4463 (source_cache::get_source_lines): Ignore highlighting exceptions.
4464
398fdd60
TT
44652019-08-16 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4468 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4469 (struct tui_source_window_base) <make_visible, refresh_window,
4470 resize>: Remove methods.
4471 <execution_info>: Remove field.
4472 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4473 (tui_show_source_line, tui_source_window_base)
4474 (~tui_source_window_base): Update.
4475 (tui_source_window_base::resize)
4476 (tui_source_window_base::make_visible)
4477 (tui_source_window_base::refresh_window): Remove.
4478 (tui_source_window_base::update_exec_info): Update.
4479 * tui/tui-source.c (tui_source_window::set_contents): Update.
4480 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4481
e699d331
TT
44822019-08-16 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4485 deprecated_query_hook.
4486
bb01dbfc
TT
44872019-08-16 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4490 (tui_update_source_windows_with_line): Update.
4491 * tui/tui-source.h (struct tui_source_window)
4492 <show_symtab_source>: Declare.
4493 (tui_show_symtab_source): Don't declare.
4494 * tui/tui-source.c (tui_show_symtab_source): Rename from
4495 tui_show_symtab_source.
4496
81c82c4b
TT
44972019-08-16 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-winsource.h (struct tui_source_window_base)
4500 <set_contents>: Declare.
4501 * tui/tui-winsource.c
4502 (tui_source_window_base::update_source_window_as_is): Update.
4503 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4504 Declare.
4505 (tui_set_source_content): Don't declare.
4506 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4507 tui_set_source_content.
4508 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4509 Declare.
4510 (tui_set_disassem_content): Don't declare.
4511 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4512 tui_set_disassem_content.
4513
2ddaf614
TT
45142019-08-16 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-winsource.h (struct tui_source_window_base)
4517 <update_breakpoint_info>: Declare.
4518 (tui_update_breakpoint_info): Don't declare.
4519 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4520 (tui_update_all_breakpoint_info): Update.
4521 (tui_source_window_base::update_breakpoint_info): Rename from
4522 tui_update_breakpoint_info.
4523 (tui_source_window_base::update_exec_info): Update.
4524
017f9828
TT
45252019-08-16 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-winsource.h (struct tui_source_window_base)
4528 <update_source_window>: Declare.
4529 (tui_update_source_window): Don't declare.
4530 * tui/tui-winsource.c
4531 (tui_source_window_base::update_source_window): Rename from
4532 tui_update_source_window.
4533 (tui_source_window_base::rerender): Update.
4534 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4535 * tui/tui-disasm.c (tui_show_disassem)
4536 (tui_show_disassem_and_update_source)
4537 (tui_disasm_window::maybe_update): Update.
4538
ed8358e9
TT
45392019-08-16 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-winsource.h (struct tui_source_window_base)
4542 <update_source_window_as_is>: Declare.
4543 (tui_update_source_window_as_is): Don't declare.
4544 * tui/tui-winsource.c (tui_update_source_window): Update
4545 (tui_source_window_base::update_source_window_as_is): Rename from
4546 tui_update_source_window_as_is.
4547 (tui_source_window_base::refill): Update.
4548 * tui/tui-source.c (tui_show_symtab_source): Update.
4549 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4550 Update.
4551
20149b6b
TT
45522019-08-16 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-winsource.h (tui_update_source_window)
4555 (tui_update_source_window_as_is): Remove "noerror" parameter.
4556 * tui/tui-winsource.c (tui_update_source_window)
4557 (tui_update_source_window_as_is): Remove "noerror" parameter.
4558 (tui_update_source_windows_with_addr)
4559 (tui_update_source_windows_with_line)
4560 (tui_source_window_base::rerender)
4561 (tui_source_window_base::refill): Update.
4562 * tui/tui-source.h (tui_set_source_content)
4563 (tui_show_symtab_source): Remove "noerror" parameter.
4564 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4565 parameter.
4566 (tui_show_symtab_source): Likewise.
4567 (tui_source_window::maybe_update): Update.
4568 * tui/tui-disasm.c (tui_show_disassem)
4569 (tui_show_disassem_and_update_source)
4570 (tui_disasm_window::do_scroll_vertical)
4571 (tui_disasm_window::maybe_update): Update.
4572
2d83e710
TT
45732019-08-16 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui.c (tui_is_window_visible): Update.
4576 * tui/tui-wingeneral.c (tui_make_window)
4577 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4578 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4579 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4580 (tui_set_win_height_command, parse_scrolling_args): Update.
4581 * tui/tui-source.c (tui_source_window::style_changed): Update.
4582 * tui/tui-regs.c (tui_show_registers)
4583 (tui_data_window::first_data_item_displayed)
4584 (tui_data_window::delete_data_content_windows)
4585 (tui_check_register_values, tui_reg_command): Update.
4586 * tui/tui-disasm.c (tui_show_disassem): Update.
4587 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4588 method.
4589 <is_visible>: Remove field.
4590 * tui/tui-data.c (tui_next_win, tui_prev_win)
4591 (tui_delete_invisible_windows): Update.
4592
d4ab829a
TT
45932019-08-16 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-winsource.h (struct tui_source_window_base)
4596 <m_has_locator>: Remove.
4597 * tui/tui-layout.c (show_source_disasm_command, show_data)
4598 (show_source_or_disasm_and_command): Update.
4599
aa7ca1bb
AH
46002019-08-16 Alan Hayward <alan.hayward@arm.com>
4601
4602 * NEWS (Other MI changes): New subsection.
4603 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4604 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4605 * arch-utils.c (default_get_pc_address_flags): New function.
4606 * arch-utils.h (default_get_pc_address_flags): New declaration.
4607 * gdbarch.sh: Add get_pc_address_flags.
4608 * gdbarch.c: Regenerate.
4609 * gdbarch.h: Likewise.
4610 * stack.c (print_pc): New function.
4611 (print_frame_info) (print_frame): Call print_pc.
4612
6eac171f
TV
46132019-08-16 Tom de Vries <tdevries@suse.de>
4614
4615 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4616 print_objfile_section_info.
4617
3df505f6
TT
46182019-08-15 Tom Tromey <tom@tromey.com>
4619
4620 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4621 calling update_cmdwin_start_line.
4622 * tui/tui-winsource.h (struct tui_source_window_base)
4623 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4624 <rerender>: Declare.
4625 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4626 Call rerender.
4627 (tui_source_window_base::set_new_height): Remove.
4628 (tui_source_window_base::rerender): Rename from
4629 do_make_visible_with_new_height.
4630 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4631 resize method.
4632 (tui_win_info::make_invisible_and_set_new_height)
4633 (tui_win_info::make_visible_with_new_height): Remove.
4634 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4635 Declare.
4636 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4637 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4638 do_make_visible_with_new_height>: Don't declare.
4639 <rerender>: Declare.
4640 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4641 set_new_height.
4642 (tui_data_window::do_make_visible_with_new_height): Remove.
4643 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4644 call tui_show_locator_content.
4645 (tui_gen_win_info::resize): Call rerender.
4646 (show_source_or_disasm_and_command): Don't call
4647 tui_show_locator_content.
4648 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4649 method.
4650 (struct tui_win_info) <rerender>: Declare.
4651 <set_new_height, make_invisible_and_set_new_height,
4652 make_visible_with_new_height>: Don't declare.
4653 * tui/tui-data.c (tui_win_list::rerender): New method.
4654 * tui/tui-command.h (struct tui_cmd_window)
4655 <do_make_visible_with_new_height>: Don't declare.
4656 * tui/tui-command.c
4657 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4658
272560b5
TT
46592019-08-15 Tom Tromey <tromey@adacore.com>
4660
4661 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4662 * ada-lang.c (ada_enum_name): Likewise.
4663
08235187
CB
46642019-08-15 Christian Biesinger <cbiesinger@google.com>
4665
4666 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4667 leading underscore.
4668 (GdbOutputErrorFile): Likewise.
4669 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4670 accordingly.
4671 (execute_unwinders): Rename to have a leading underscore.
4672 (auto_load_packages): Likewise.
4673 (global scope): Adjust call to auto_load_packages accordingly.
4674 (GdbSetPythonDirectory): Likewise.
4675 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4676 instead of execute_unwinders.
4677
db502012
TT
46782019-08-15 Tom Tromey <tom@tromey.com>
4679
4680 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4681 (show_data): Don't change window visibility.
4682 (tui_gen_win_info::resize): Remove special case for command
4683 window. Use wresize, when available.
4684 (show_source_or_disasm_and_command): Don't change window
4685 visibility.
4686 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4687 <make_visible>: New method.
4688 * tui/tui-command.c (tui_cmd_window::resize): New method.
4689
3891b65e
TT
46902019-08-15 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4693 (struct tui_source_windows): New.
4694 * tui/tui-winsource.c (tui_display_main): Update.
4695 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4696 (new_height_ok, parse_scrolling_args): Update.
4697 * tui/tui-layout.c (show_layout, show_data): Update.
4698 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4699 (tui_add_to_source_windows): Don't declare.
4700 * tui/tui-data.c (source_windows, tui_source_windows)
4701 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4702
ee556432
TT
47032019-08-15 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4706 Rename from reset.
4707 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4708 * tui/tui-layout.c (show_source_disasm_command, show_data):
4709 Update.
4710 (tui_gen_win_info::resize): Rename.
4711 (show_source_or_disasm_and_command): Update.
4712 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4713 reset.
4714
46f438e3
TT
47152019-08-15 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4718 * tui/tui-interp.c (tui_interp::init): Don't call
4719 tui_initialize_static_data.
4720 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4721
f4ce562c
TT
47222019-08-15 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4725 examine tui_win_list.
4726
c398c3d0
TT
47272019-08-15 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4730 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4731 tui_clear_source_content.
4732 (tui_clear_source_content): Remove.
4733 (tui_source_window_base::do_erase_source_content): Hoist call to
4734 content.clear().
4735 * tui/tui-stack.c (tui_show_frame_info): Don't call
4736 tui_clear_source_content.
4737
e25d2004
TT
47382019-08-15 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-winsource.h (struct tui_source_window_base)
4741 <do_erase_source_content>: New method.
4742 <erase_source_content>: New method.
4743 (tui_erase_source_content): Don't declare.
4744 * tui/tui-winsource.c (tui_clear_source_content): Update.
4745 (tui_source_window_base::do_erase_source_content): Rename from
4746 tui_erase_source_content.
4747 (tui_source_window_base::show_source_content): Update.
4748 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4749 * tui/tui-source.h (struct tui_source_window)
4750 <erase_source_content>: New method.
4751 * tui/tui-disasm.h (struct tui_disasm_window)
4752 <erase_source_content>: New method.
4753
002f15c2
TT
47542019-08-15 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4757 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4758 constructor.
4759 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4760 * tui/tui-source.c (tui_set_source_content): Update.
4761 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4762
c9033fe8
TT
47632019-08-15 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4766 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4767 tui-source.c.
4768 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4769 Declare.
4770 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4771 method.
4772 (tui_source_window::maybe_update): Update.
4773
088f37dd
TT
47742019-08-15 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4777 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4778 tui-disasm.c.
4779 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4780 Declare.
4781 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4782 method.
4783 (tui_disasm_window::maybe_update): Update.
4784
a54700c6
TT
47852019-08-15 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-winsource.h (struct tui_source_window_base)
4788 <maybe_update>: Declare.
4789 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4790 method.
4791 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4792 Declare.
4793 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4794 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4795 Declare.
4796 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4797
e2a678a5
TT
47982019-08-15 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4801
f2dda477
TT
48022019-08-15 Tom Tromey <tom@tromey.com>
4803
4804 * tui/tui-wingeneral.c: Include tui-stack.h.
4805 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4806 (struct tui_locator_window): Move from tui-data.h.
4807 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4808 (tui_initialize_static_data): Move from tui-data.c.
4809 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4810 (struct tui_locator_window): Move to tui-stack.c.
4811 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4812 (tui_initialize_static_data): Move to tui-stack.c.
4813
ed4a1084
TT
48142019-08-15 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-layout.c (show_source_disasm_command)
4817 (show_source_or_disasm_and_command): Use make_visible method, not
4818 tui_make_window.
4819 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4820 Remove.
4821
65962b20
TT
48222019-08-15 Tom Tromey <tom@tromey.com>
4823
4824 * tui/tui-wingeneral.h (tui_make_window): Update.
4825 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4826 parameter.
4827 (tui_gen_win_info::make_visible): Update.
4828 * tui/tui-regs.c (tui_data_window::display_registers_from):
4829 Update.
4830 * tui/tui-layout.c (show_source_disasm_command)
4831 (show_source_or_disasm_and_command): Update.
4832 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4833 (enum tui_box): Remove.
4834 (struct tui_win_info) <can_box>: New method.
4835 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4836 method.
4837
2208ee91
TV
48382019-08-15 Tom de Vries <tdevries@suse.de>
4839
4840 * linux-nat-trad.c: Include gdbarch.h.
4841
75faf5c4
AH
48422019-08-14 Alan Hayward <alan.hayward@arm.com>
4843
4844 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4845 register sizes.
4846
b1c896b3
TT
48472019-08-14 Tom Tromey <tromey@adacore.com>
4848
4849 * darwin-nat.c: Include gdbarch.h.
4850 * darwin-nat-info.c: Include gdbarch.h.
4851
6405cd73
TT
48522019-08-13 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4855 Remove.
4856 * tui/tui-data.c (tui_initialize_static_data): Update.
4857
5216580d
TT
48582019-08-13 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-winsource.h (struct tui_exec_info_window)
4861 <~tui_exec_info_window, maybe_allocate_content, get_content,
4862 m_content>: Remove.
4863 (struct tui_source_window_base) <set_exec_info_content,
4864 show_exec_info_content>: Don't declare.
4865 * tui/tui-winsource.c
4866 (tui_exec_info_window::maybe_allocate_content): Remove.
4867 (tui_source_window_base::update_exec_info): Rename from
4868 set_exec_info_content.
4869 (tui_source_window_base::show_exec_info_content)
4870 (tui_source_window_base::update_exec_info): Remove.
4871
93858ad3
TT
48722019-08-13 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4875 declare.
4876 * tui/tui-winsource.c (tui_update_source_window_as_is)
4877 (tui_update_source_windows_with_addr, tui_erase_source_content):
4878 Update.
4879 (tui_clear_exec_info_content): Remove.
4880
e321e7ce
TT
48812019-08-13 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4884 declare.
4885 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4886 call tui_erase_exec_info_content.
4887 (tui_clear_exec_info_content): Rename from
4888 tui_erase_exec_info_content.
4889 (tui_clear_exec_info_content): Delete.
4890
8270ac62
TT
48912019-08-13 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.h (struct tui_source_window_base)
4894 <show_exec_info_content>: Declare.
4895 (tui_show_exec_info_content): Don't declare.
4896 * tui/tui-winsource.c
4897 (tui_source_window_base::show_exec_info_content): Rename from
4898 tui_show_exec_info_content.
4899 (tui_source_window_base::update_exec_info): Update.
4900
7b56485d
TT
49012019-08-13 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4904 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4905 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4906 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4907 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4908 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4909 ... here.
4910
7ba913dc
TT
49112019-08-13 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-winsource.h (struct tui_source_window_base)
4914 <update_exec_info>: Declare.
4915 (tui_update_exec_info): Don't declare.
4916 * tui/tui-winsource.c (tui_update_source_window_as_is)
4917 (tui_source_window_base::refresh_all)
4918 (tui_update_all_breakpoint_info): Update.
4919 (tui_source_window_base::update_exec_info): Rename from
4920 tui_update_exec_info.
4921 * tui/tui-stack.c (tui_show_frame_info): Update.
4922
37a4a131
TT
49232019-08-13 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-winsource.h (struct tui_source_window_base)
4926 <set_exec_info_content>: Declare.
4927 (tui_set_exec_info_content): Don't declare.
4928 * tui/tui-winsource.c
4929 (tui_source_window_base::set_exec_info_content): Rename from
4930 tui_set_exec_info_content.
4931 (tui_update_exec_info): Update.
4932
0bd27e07
TT
49332019-08-13 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-winsource.h (struct tui_source_window_base)
4936 <show_source_content>: Declare.
4937 (tui_show_source_content): Don't declare.
4938 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4939 (tui_source_window_base::show_source_content): Rename from
4940 tui_show_source_content.
4941 (tui_source_window_base::refresh_all): Update.
4942 * tui/tui-layout.c (show_source_disasm_command)
4943 (show_source_or_disasm_and_command): Update.
4944
b4ef5aeb
TT
49452019-08-13 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-winsource.c (tui_erase_source_content)
4948 (tui_show_source_content, tui_source_window_base::refresh_all):
4949 Update.
4950 * tui/tui-wingeneral.h
4951 (tui_check_and_display_highlight_if_needed): Don't declare.
4952 * tui/tui-wingeneral.c
4953 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4954 check_and_display_highlight_if_needed.
4955 * tui/tui-win.c (tui_rehighlight_all)
4956 (tui_win_info::make_visible_with_new_height): Update.
4957 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4958 (tui_data_window::erase_data_content)
4959 (tui_data_window::display_all_data): Update.
4960 * tui/tui-data.h (struct tui_win_info)
4961 <check_and_display_highlight_if_needed>: Declare.
4962
fede5273
TT
49632019-08-13 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-win.c (tui_resize_all): Call
4966 tui_delete_invisible_windows.
4967 * tui/tui-layout.c (show_layout): Call
4968 tui_delete_invisible_windows.
4969 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4970 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4971
22c3f490
TT
49722019-08-13 Tom Tromey <tom@tromey.com>
4973
4974 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4975 tui_add_win_to_layout.
4976
16cb7910
TT
49772019-08-13 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4980 * tui/tui-layout.c (tui_default_win_height): Now static.
4981
cc0c3ffb
TT
49822019-08-13 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4985 single switch.
4986 (show_source_disasm_command, show_source_or_disasm_and_command):
4987 Don't check current layout.
4988
3f3ffe54
TT
49892019-08-13 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-wingeneral.c (make_all_visible): Remove.
4992 (tui_make_all_invisible): Simplify.
4993 * tui/tui-layout.c (tui_make_all_invisible): Move from
4994 tui-wingeneral.c; simplify.
4995 (show_layout): Hoist call to tui_make_all_invisible.
4996 (show_data): Don't call tui_make_all_invisible.
4997
69258091
TT
49982019-08-13 Tom Tromey <tom@tromey.com>
4999
5000 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5001 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5002
62cf57fe
TT
50032019-08-13 Tom Tromey <tom@tromey.com>
5004
5005 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5006 tui-data.c.
5007 (show_source_disasm_command, show_data)
5008 (show_source_or_disasm_and_command): Don't use
5009 tui_set_current_layout_to.
5010 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5011 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5012 tui-layout.c.
5013 (tui_set_current_layout_to): Remove.
5014
2afade5d
TT
50152019-08-13 Tom Tromey <tom@tromey.com>
5016
5017 * tui/tui-layout.c (tui_set_layout): Update.
5018 * tui/tui-data.h (struct tui_layout_def): Remove.
5019 (tui_layout_def): Don't declare.
5020 * tui/tui-data.c (layout_def): Remove.
5021 (tui_layout_def): Remove.
5022
a3504e96
TT
50232019-08-13 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-winsource.h (struct tui_source_window_base)
5026 <clear_detail>: No longer "override".
5027 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5028 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5029 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5030 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5031 Remove.
5032 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5033
29c92911
TT
50342019-08-13 Tom Tromey <tromey@adacore.com>
5035
5036 * tracepoint.c: Don't include readline.h or history.h.
5037
86c6b807
TT
50382019-08-12 Tom Tromey <tom@tromey.com>
5039
5040 * configure: Rebuild.
5041 * configure.ac: Check for readline 7.
5042 * NEWS: Mention readline 7 requirement.
5043 * README: Update.
5044
5db2718c
TT
50452019-08-12 Tom Tromey <tom@tromey.com>
5046
5047 * mingw-hdep.c (gdb_select): Remove readline hack.
5048
dac36daf
PFC
50492019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5050
5051 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5052 when the function fails.
5053
1022c627
AA
50542019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5055
5056 * s390-tdep.c (s390_type_align): New function.
5057 (s390_gdbarch_init): Set it as type_align gdbarch method.
5058
eba4caf2
TV
50592019-08-09 Tom de Vries <tdevries@suse.de>
5060
5061 PR gdb/24591
5062 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5063 pc_low with relocation offset.
5064
123cd851
TT
50652019-08-07 Tom Tromey <tromey@adacore.com>
5066
5067 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5068 (print_frame_args): Update.
5069 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5070 Update.
5071 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5072 * frame.h (struct frame_arg): Add initializers.
5073 <error>: Now a unique_xmalloc_ptr.
5074
3d31bc39
AH
50752019-08-07 Alan Hayward <alan.hayward@arm.com>
5076
5077 * NEWS: Expand the Pointer Authentication entry.
5078 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5079 (aarch64_frame_unmask_lr): ... to this.
5080 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5081 Call aarch64_frame_unmask_lr.
5082 * frame.c (struct frame_info): Add "masked" variable.
5083 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5084 (fprint_frame): Check for masked pc.
5085 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5086 declarations.
5087 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5088 * stack.c (print_frame): Check for masked pc.
5089
0cf9feb9
TT
50902019-08-06 Tom Tromey <tom@tromey.com>
5091
5092 * stabsread.c (patch_block_stabs, read_one_struct_field)
5093 (read_enum_type): Use obstack_strndup.
5094 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5095 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5096 * dwarf2read.c (guess_full_die_structure_name)
5097 (anonymous_struct_prefix): Use obstack_strndup.
5098 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5099 * c-exp.y (yylex): Use obstack_strndup.
5100 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5101 (write_var_or_type): Use obstack_strndup.
5102
efba19b0
TT
51032019-08-06 Tom Tromey <tom@tromey.com>
5104
5105 * symfile.c (reread_symbols): Use obstack_strdup.
5106 * stabsread.c (read_type): Use obstack_strdup.
5107 * gdb_obstack.h (obstack_strdup): New overload.
5108 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5109 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5110 (dwarf2_canonicalize_name): Use obstack_strdup.
5111 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5112 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5113 Use obstack_strdup.
5114
f25102f7
TT
51152019-08-06 Tom Tromey <tom@tromey.com>
5116
5117 * gdb_obstack.h (obstack_strdup): Define.
5118 * gdb_obstack.c (obstack_strdup): Don't define.
5119
021887d8
TT
51202019-08-06 Tom Tromey <tom@tromey.com>
5121
5122 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5123 obstack_strdup.
5124 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5125 obstack_strdup.
5126 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5127 * stabsread.c (common_block_start): Use obstack_strdup.
5128 * objfiles.c (set_objfile_main_name, objfile): Use
5129 obstack_strdup.
5130 * namespace.c (add_using_directive): Use obstack_strdup.
5131 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5132 * jit.c (finalize_symtab): Use obstack_strdup.
5133 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5134 (guess_partial_die_structure_name, partial_die_info::fixup)
5135 (dwarf2_name): Use obstack_strdup.
5136 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5137 obstack_strdup.
5138 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5139 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5140 obstack_strdup.
5141 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5142
d2834edc
PW
51432019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5144
5145 * unittests/help-doc-selftests.c: New file.
5146 * Makefile.in: Add the new file.
5147
590042fc
PW
51482019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5149
5150 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5151 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5152 the full first line, except when FOR_VALUE_PREFIX. In this case,
5153 the trailing '.' is not output, and the first character is uppercased.
5154 (print_help_for_command): Update call to print_doc_line.
5155 (print_doc_of_command): Likewise.
5156 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5157 * cli/cli-option.c (append_indented_doc): Do not append newline.
5158 (build_help_option): Append newline after first appended_indented_doc
5159 only if a second call is done.
5160 (build_help): Append 2 new lines before each option, except the first
5161 one.
5162 * compile/compile.c (_initialize_compile): Add new lines after
5163 %OPTIONS%, when not at the end of the help.
5164 Change help doc or code
5165 producing the help doc to respect the invariants.
5166 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5167 Also removed the new line after 'Options:', as all other commands
5168 do not put an empty line between 'Options:' and the first option.
5169 * printcmd.c (_initialize_printcmd): Likewise.
5170 * stack.c (_initialize_stack): Likewise.
5171 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5172 incorrectly telling COMMAND is optional.
5173 * ada-lang.c (_initialize_ada_language): Change help doc or code
5174 producing the help doc to respect the invariants.
5175 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5176 * breakpoint.c (_initialize_breakpoint): Likewise.
5177 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5178 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5179 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5180 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5181 _initialize_cli_style): Likewise.
5182 * corelow.c (core_target_info): Likewise.
5183 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5184 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5185 * filesystem.c (_initialize_filesystem): Likewise.
5186 * frame.c (_initialize_frame): Likewise.
5187 * gnu-nat.c (add_task_commands): Likewise.
5188 * infcall.c (_initialize_infcall): Likewise.
5189 * infcmd.c (_initialize_infcmd): Likewise.
5190 * interps.c (_initialize_interpreter): Likewise.
5191 * language.c (_initialize_language): Likewise.
5192 * linux-fork.c (_initialize_linux_fork): Likewise.
5193 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5194 * maint.c (_initialize_maint_cmds): Likewise.
5195 * memattr.c (_initialize_mem): Likewise.
5196 * printcmd.c (_initialize_printcmd): Likewise.
5197 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5198 _RegEx): Likewise.
5199 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5200 * record-btrace.c (_initialize_record_btrace): Likewise.
5201 * record-full.c (_initialize_record_full): Likewise.
5202 * record.c (_initialize_record): Likewise.
5203 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5204 * regcache.c (_initialize_regcache): Likewise.
5205 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5206 _initialize_remote): Likewise.
5207 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5208 * serial.c (_initialize_serial): Likewise.
5209 * skip.c (_initialize_step_skip): Likewise.
5210 * source.c (_initialize_source): Likewise.
5211 * stack.c (_initialize_stack): Likewise.
5212 * symfile.c (_initialize_symfile): Likewise.
5213 * symtab.c (_initialize_symtab): Likewise.
5214 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5215 * top.c (init_main): Likewise.
5216 * tracefile-tfile.c (tfile_target_info): Likewise.
5217 * tracepoint.c (_initialize_tracepoint): Likewise.
5218 * tui/tui-win.c (_initialize_tui_win): Likewise.
5219 * utils.c (add_internal_problem_command): Likewise.
5220 * valprint.c (value_print_option_defs): Likewise.
5221
404f2902
FCE
52222019-08-06 Frank Ch. Eigler <fche@redhat.com>
5223
5224 PR build/24886
5225 * configure.ac: Drop enable-libmcheck support.
5226 * configure, config.in: Rebuild.
5227 * libmcheck.m4: Remove.
5228 * acinclude.m4: Don't include it.
5229 * Makefile.in: Don't distribute it.
5230 * top.c (print_gdb_configuration): Don't mention it.
5231
046bebe1
TT
52322019-08-06 Tom Tromey <tom@tromey.com>
5233
5234 * utils.c (set_output_style): Sometimes pass stream to
5235 emit_style_escape.
5236 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5237 * record-btrace.c (btrace_insn_history): Update.
5238 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5239 method.
5240 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5241 Update initializers.
5242 <m_uiout>: New field.
5243 <m_di>: Move lower.
5244 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5245 Remove "uiout" parameter.
5246 (dump_insns): Update.
5247 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5248 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5249
ddbcedf5
CB
52502019-08-06 Christian Biesinger <cbiesinger@google.com>
5251
5252 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5253 (error_in_psymtab_expansion): Likewise.
5254 (lookup_symbol_via_quick_fns): Likewise.
5255 (basic_lookup_transparent_type_quick): Likewise.
5256 (basic_lookup_transparent_type_1): Likewise.
5257
b08b16c8
TT
52582019-08-06 Tom Tromey <tromey@adacore.com>
5259
5260 * source.c (last_source_error): Now bool.
5261 (print_source_lines_base): Make "noprint" bool. Only open
5262 source file when last_source_visited changes.
5263
cb44333d
TT
52642019-08-06 Tom Tromey <tromey@adacore.com>
5265
5266 * annotate.c (annotate_source_line): Use g_source_cache.
5267 * source-cache.c (source_cache::get_plain_source_lines): Change
5268 parameters. Populate m_offset_cache.
5269 (source_cache::ensure): New method.
5270 (source_cache::get_line_charpos): New method.
5271 (extract_lines): Move lower. Change parameters.
5272 (source_cache::get_source_lines): Move lower.
5273 * source-cache.h (class source_cache): Update comment.
5274 <get_line_charpos>: New method.
5275 <get_source_lines>: Update comment.
5276 <clear>: Clear m_offset_cache.
5277 <get_plain_source_lines>: Change parameters.
5278 <ensure>: New method
5279 <m_offset_cache>: New member.
5280 * source.c (forget_cached_source_info_for_objfile): Update.
5281 (info_source_command): Use g_source_cache.
5282 (find_source_lines, open_source_file_with_line_charpos): Remove.
5283 (print_source_lines_base, search_command_helper): Use g_source_cache.
5284 * source.h (open_source_file_with_line_charpos): Don't declare.
5285 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5286 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5287 Use g_source_cache.
5288
872dceaa
TT
52892019-08-06 Tom Tromey <tromey@adacore.com>
5290
5291 * source-cache.c (source_cache::get_plain_source_lines):
5292 Remove "first_line" and "last_line" parameters.
5293 (source_cache::get_source_lines): Cache plain text.
5294 * source-cache.h (class source_cache)
5295 <get_plain_source_lines>: Update.
5296
269249d9
TT
52972019-08-06 Tom Tromey <tromey@adacore.com>
5298
5299 * source-cache.c (extract_lines): No longer a method.
5300 Changed type of parameter. Include final newline.
5301 (selftests::extract_lines_test): New function.
5302 (_initialize_source_cache): Likewise.
5303 * source-cache.h (class source_cache)
5304 <extract_lines>: Don't declare.
5305
c0e8dcd8
TT
53062019-08-06 Tom Tromey <tromey@adacore.com>
5307
5308 * breakpoint.c (init_breakpoint_sal): Update.
5309 (breakpoint): Update.
5310 * breakpoint.h (struct breakpoint) <filter>: Now a
5311 unique_xmalloc_ptr.
5312
0b27c27d
CB
53132019-08-05 Christian Biesinger <cbiesinger@google.com>
5314
5315 * NEWS: Mention dictionary access on blocks.
5316 * python/py-block.c (blpy_getitem): New function.
5317 (block_object_as_mapping): New struct.
5318 (block_object_type): Use new struct for tp_as_mapping field.
5319
4ee94178
CB
53202019-08-05 Christian Biesinger <cbiesinger@google.com>
5321
5322 * objfiles.h (objfile): Add a comment describing partial symbols.
5323
8abfcabc
TT
53242019-08-05 Tom Tromey <tromey@adacore.com>
5325
5326 * compile/compile.c (_initialize_compile): Use _(), not N_().
5327 * thread.c (_initialize_thread): Use _(), not N_().
5328 * stack.c (_initialize_stack): Use _(), not N_().
5329 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5330
2b79f376
SM
53312019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * dwarf2read.c (struct dw2_symtab_iterator):
5334 <want_specific_block>: Remove.
5335 <block_index>: Change type to gdb::optional.
5336 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5337 change type of BLOCK_INDEX parameter to gdb::optional.
5338 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5339 (dw2_lookup_symbol): Don't pass argument for
5340 WANT_SPECIFIC_BLOCK.
5341 (dw2_expand_symtabs_for_function): Don't pass argument for
5342 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5343 (class dw2_debug_names_iterator)
5344 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5345 parameter, change BLOCK_INDEX type to gdb::optional.
5346 <m_want_specific_block>: Remove.
5347 <m_block_index>: Change type to gdb::optional.
5348 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5349 gdb::optional. Re-write in function of gdb::optional.
5350 (dw2_debug_names_lookup_symbol): Don't pass argument for
5351 WANT_SPECIFIC_BLOCK.
5352 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5353 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5354 BLOCK_INDEX.
5355
ae60f04e
PW
53562019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357
5358 * NEWS: Mention changes to "info sources" command.
5359
28cd9371
PW
53602019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5361
5362 * symtab.c (filename_partial_match_opts): New struct type.
5363 (struct output_source_filename_data): New members
5364 regexp, c_regexp, partial_match.
5365 (output_source_filename): Use new members to decide to print file.
5366 (info_sources_option_defs): New variable.
5367 (make_info_sources_options_def_group, print_info_sources_header,
5368 info_sources_command_completer):
5369 New functions.
5370 (info_sources_command): Read new optional arguments.
5371 (_initialize_symtab): Update info sources help.
5372
ca683e3a
AO
53732019-08-02 Alexandre Oliva <oliva@adacore.com>
5374
5375 * ada-lang.c (exception_support_info_v0): Renamed from...
5376 (default_exception_support_info): ... this. Create new
5377 definition for v1.
5378 (ada_has_this_exception_support): Look up catch_handlers_sym.
5379 (ada_exception_support_info_sniffer): Try v0 after default.
5380
f1264162
TT
53812019-08-01 Tom Tromey <tromey@adacore.com>
5382
5383 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5384 gdbarch.h.
5385
0a7b2485
CB
53862019-08-01 Christian Biesinger <cbiesinger@google.com>
5387
5388 * s12z-tdep.c: Fix include path for s12z-opc.h.
5389
c6bdbeb7
AH
53902019-08-01 Alan Hayward <alan.hayward@arm.com>
5391
5392 * NEWS: Require GNU make 3.82.
5393
a2bd7b82
TT
53942019-07-16 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5397 declare.
5398
aa3b6533
TT
53992019-07-30 Tom Tromey <tromey@adacore.com>
5400
5401 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5402
a1530dc7
KB
54032019-07-30 Kevin Buettner <kevinb@redhat.com>
5404
5405 * printcmd.c (print_address_symbolic): Print negative offsets.
5406 (build_address_symbolic): Force signed arithmetic when computing
5407 offset.
5408
2906593f
CB
54092019-07-30 Christian Biesinger <cbiesinger@google.com>
5410
5411 PR/24474: Add a function to lookup static variables.
5412 * NEWS: Mention this new function.
5413 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5414 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5415 * python/python.c (python_GdbMethods): Add new function.
5416
c620ed88
CB
54172019-07-29 Christian Biesinger <cbiesinger@google.com>
5418
5419 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5420 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5421 (objfpy_lookup_static_symbol): New function.
5422 (objfile_object_methods): Add new functions.
5423
bc4268a5
PW
54242019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5425
5426 * NEWS: Mention 'set|show print frame-info'. Mention new
5427 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5428 backtrace argument. Mention that python frame filtering code
5429 is now consistent with what 'backtrace' command prints.
5430
4b5e8d19
PW
54312019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5432
5433 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5434 comments.
5435 (print_frame_info_auto, print_frame_info_source_line,
5436 print_frame_info_location, print_frame_info_source_and_location,
5437 print_frame_info_location_and_address, print_frame_info_short_location):
5438 New declarations.
5439 (struct frame_print_options): New member print_frame_info.
5440 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5441 * stack.h (get_user_print_what_frame_info): New declaration.
5442 (frame_show_address): New declaration.
5443 * stack.c (print_frame_arguments_choices): New value 'presence'.
5444 (print_frame_info_auto, print_frame_info_source_line,
5445 print_frame_info_location, print_frame_info_source_and_location,
5446 print_frame_info_location_and_address, print_frame_info_short_location,
5447 print_frame_info_choices, print_frame_info_print_what): New definitions.
5448 (print_frame_args): Only print dots for args if print frame-arguments
5449 is 'presence'.
5450 (frame_print_option_defs): New element for "frame-info".
5451 (get_user_print_what_frame_info): New function.
5452 (frame_show_address): Make non static. Move comment to stack.h.
5453 (print_frame_info_to_print_what): New function.
5454 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5455 to decide what to print.
5456 (backtrace_command_1): Handle the new print_frame_arguments_presence
5457 value.
5458 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5459 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5460 (py_print_frame): In non-mi mode, use LOCATION as default for
5461 print_what, similarly to frame information printed directly by
5462 backtrace command. Handle frame-info user option in non MI mode.
5463
6bdfee81
KB
54642019-07-27 Kevin Buettner <kevinb@redhat.com>
5465
5466 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5467 Add case for debugging 32-bit target on 64-bit host. Revise
5468 comment.
5469
98a617f8
KB
54702019-07-27 Kevin Buettner <kevinb@redhat.com>
5471
5472 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5473 instead of find_function_entry_range_from_pc.
5474
567238c9
KB
54752019-07-27 Kevin Buettner <kevinb@redhat.com>
5476
5477 * stack.c (find_frame_funname): Remove code which preferred
5478 minsym over symtab sym in "certain pathological cases".
5479
2dc80cf8
KB
5480 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5481 parameter. Change type of "do_demangle" to bool.
5482 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5483 Pass suitable "prefer_sym_over_minsym" flag to
5484 build_address_symbolic(). Don't output "+" for negative offsets.
5485 * printcmd.c (print_address_symbolic): Update invocation of
5486 build_address_symbolic to include a "prefer_sym_over_minsym"
5487 flag.
5488 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5489 Restrict cases in which use of minimal symbol is preferred to that
5490 of a found symbol. Update comments.
5491
1aff7173
KB
5492 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5493 for entry pc when entry pc is out of range for that FDE.
5494
89b085ac
BC
54952019-07-26 Brian Callahan <bcallah@openbsd.org>
5496
5497 PR gdb/24839:
5498 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5499 type.
5500
f32feb4a
CB
55012019-07-25 Christian Biesinger <cbiesinger@google.com>
5502
5503 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5504 this function's Python signature.
5505
5506
55072019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5508
5509 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5510 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5511 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5512 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5513 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5514
5515
c54e4253
YS
55162019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5517
5518 * h8300-tdep.c (h8300_register_name_common): New.
5519 h8300_register_name): Use h8300_register_name_common.
5520 (h8300s_register_name): Likewise.
5521 (h8300sx_register_name): Likewise.
5522 (h8300h_register_nam): New.
5523 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5524
5525
40eadf04
SP
55262019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5527
5528 * arm-tdep.c (arm_skip_cmse_entry): New function.
5529 (arm_is_sgstubs_section): New function.
5530 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5531
bfa2a36d
TT
55322019-07-22 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5535 Don't self-assign.
5536
a8e9d247
AB
55372019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5540 type_print.
5541
eb86c5e2
AB
55422019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5543
5544 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5545 so that GDB doesn't match any msymbols when searching in the
5546 TYPES_DOMAIN.
5547 (print_symbol_info): Print using typedef_print or type_print based
5548 on the type of the symbol. Add updated FIXME comment moved from...
5549 (_initialize_symtab): ... move and update FIXME comment to above.
5550
a8eab7c6
AB
55512019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5552
5553 * NEWS: Mention adding -q option to "info types".
5554 * symtab.c (struct info_types_options): New struct.
5555 (info_types_options_defs): New variable.
5556 (make_info_types_options_def_group): New function.
5557 (info_types_command): Use gdb::option framework to parse options.
5558 (info_types_command_completer): New function.
5559 (_initialize_symtab): Extend the help text on "info types" and
5560 register command completer.
5561
b4603c34
CB
55622019-07-21 Christian Biesinger <cbiesinger@google.com>
5563
5564 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5565 (lookup_symbol_in_objfile): Change int to block_enum and add a
5566 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5567
c8cdc1e0
CB
55682019-07-20 Christian Biesinger <cbiesinger@google.com>
5569
5570 * MAINTAINERS (Write After Approval): Add self.
5571
01e175fe
AB
55722019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5575 instruction to the dummy code region.
5576
56f79b63
TT
55772019-07-19 Tom Tromey <tromey@adacore.com>
5578
5579 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5580 (ARGSUSED, PARAMS, __func__): Remove rules.
5581
4c5aa8e0
AH
55822019-07-19 Alan Hayward <alan.hayward@arm.com>
5583
5584 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5585 * features/arm/arm-with-iwmmxt.c: Remove.
5586 * features/arm/arm-with-iwmmxt.xml: Remove.
5587 * features/arm/arm-with-m-fpa-layout.c: Remove.
5588 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5589 * features/arm/arm-with-m-vfp-d16.c: Remove.
5590 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5591 * features/arm/arm-with-m.c: Remove.
5592 * features/arm/arm-with-m.xml: Remove.
5593 * features/arm/arm-with-neon.c: Remove.
5594 * features/arm/arm-with-neon.xml: Remove.
5595 * features/arm/arm-with-vfpv2.c: Remove.
5596 * features/arm/arm-with-vfpv2.xml: Remove.
5597 * features/arm/arm-with-vfpv3.c: Remove.
5598 * features/arm/arm-with-vfpv3.xml: Remove.
5599
f42b2617
AH
56002019-07-19 Alan Hayward <alan.hayward@arm.com>
5601
5602 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5603
f29ec966
AH
56042019-07-19 Alan Hayward <alan.hayward@arm.com>
5605
5606 * arch/aarch32.c (aarch32_create_target_description): Create
5607 target descriptions using features.
5608 * arch/arm.c (arm_create_target_description)
5609 (arm_create_mprofile_target_description): Likewise.
5610 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5611
d105cce5
AH
56122019-07-19 Alan Hayward <alan.hayward@arm.com>
5613
5614 * Makefile.in: Add new files.
5615 * aarch32-tdep.c: New file.
5616 * aarch32-tdep.h: New file.
5617 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5618 Call aarch32_read_description.
5619 * arch/aarch32.c: New file.
5620 * arch/aarch32.h: New file.
5621 * arch/arm.c (arm_create_target_description)
5622 (arm_create_mprofile_target_description): New function.
5623 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5624 (arm_create_target_description)
5625 (arm_create_mprofile_target_description): New declaration.
5626 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5627 read_description functions.
5628 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5629 Likewise.
5630 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5631 * arm-tdep.c (tdesc_arm_list): New variable.
5632 (arm_register_g_packet_guesses): Call create description functions.
5633 (arm_read_description) (arm_read_mprofile_description): New
5634 function.
5635 * arm-tdep.h (arm_read_description)
5636 (arm_read_mprofile_description): Add declaration.
5637 * configure.tgt: Add new files.
5638
afe09f0b
GL
56392019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5640
5641 * top.c (new_ui_command): Open specified terminal just once.
5642
cd215b2e
TT
56432019-07-18 Tom Tromey <tromey@adacore.com>
5644
5645 * symtab.c (main_name): Constify return type.
5646 * symfile.c (set_initial_language): Update.
5647 * symtab.h (main_name): Constify return type.
5648
d8f68fcb
TT
56492019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-winsource.c (tui_update_source_window)
5652 (tui_update_source_window_as_is)
5653 (tui_update_source_windows_with_line): Remove return.
5654 * tui/tui-disasm.c (tui_show_disassem)
5655 (tui_show_disassem_and_update_source): Remove return.
5656 * tui/tui.c (tui_reset): Remove return.
5657 * tui/tui-wingeneral.c
5658 (tui_check_and_display_highlight_if_needed): Remove return.
5659
ca5af91e
TT
56602019-07-17 Tom Tromey <tom@tromey.com>
5661
5662 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5663
5104fe36
TT
56642019-07-17 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui-winsource.h (struct tui_exec_info_window)
5667 (struct tui_source_window_base): Move from tui-data.h.
5668 * tui/tui-winsource.c: Move many method definitions from
5669 elsewhere. Remove "structuring" comments.
5670 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5671 (tui_source_window_base::refresh_window): Move to
5672 tui-winsource.c.
5673 * tui/tui-win.c (tui_source_window_base::refresh_all)
5674 (tui_source_window_base::update_tab_width)
5675 (tui_source_window_base::set_new_height)
5676 (tui_source_window_base::do_make_visible_with_new_height): Move to
5677 tui-winsource.c.
5678 * tui/tui-source.h: Update.
5679 * tui/tui-source.c (tui_source_window_base::reset): Move to
5680 tui-winsource.c.
5681 * tui/tui-disasm.h: Update.
5682 * tui/tui-data.h (struct tui_exec_info_window): Move to
5683 tui-winsource.h.
5684 (struct tui_source_window_base): Likewise.
5685 * tui/tui-data.c (tui_source_window_base::clear_detail)
5686 (tui_source_window_base, ~tui_source_window_base): Move to
5687 tui-winsource.c.
5688
daa15dde
TT
56892019-07-17 Tom Tromey <tom@tromey.com>
5690
5691 * tui/tui-win.c (tui_resize_all)
5692 (tui_source_window_base::update_tab_width)
5693 (tui_adjust_win_heights): Update.
5694 (tui_win_info::make_invisible_and_set_new_height): Rename from
5695 make_invisible_and_set_new_height.
5696 * tui/tui-data.h (struct tui_win_info)
5697 <make_invisible_and_set_new_height>: New method.
5698
bfad4537
TT
56992019-07-17 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui.c: Update.
5702 * tui/tui-source.h (struct tui_source_window): Move from
5703 tui-data.h.
5704 * tui/tui-layout.c: Update.
5705 * tui/tui-disasm.c: Update.
5706 * tui/tui-data.h (struct tui_source_window): Move to
5707 tui-source.h.
5708
88f7e873
TT
57092019-07-17 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5712 tui-data.h.
5713 * tui/tui-data.h (struct tui_disasm_window): Move to
5714 tui-disasm.h.
5715
96bd6233
TT
57162019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-regs.h (struct tui_data_item_window): Move from
5719 tui-data.h.
5720 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5721 * tui/tui-data.h (struct tui_data_item_window): Move to
5722 tui-regs.h.
5723 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5724
ce38393b
TT
57252019-07-17 Tom Tromey <tom@tromey.com>
5726
5727 * tui/tui.c: Update.
5728 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5729 (tui_cmd_window::max_height): Move to tui-command.c.
5730 * tui/tui-layout.c: Update.
5731 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5732 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5733 tui-command.c.
5734 * tui/tui-command.h (struct tui_cmd_window): Move from
5735 tui-data.h.
5736 * tui/tui-command.c: Remove "structuring" comments.
5737 (tui_cmd_window::clear_detail)
5738 (tui_cmd_window::do_make_visible_with_new_height)
5739 (tui_cmd_window::max_height): Move from elsewhere.
5740
2d8b51cb
TT
57412019-07-17 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5744 Now static.
5745 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5746 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5747
18ab23af
TT
57482019-07-17 Tom Tromey <tom@tromey.com>
5749
5750 * tui/tui.c: Update.
5751 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5752 tui-regs.c.
5753 * tui/tui-windata.h: Remove file.
5754 * tui/tui-windata.c: Remove file.
5755 * tui/tui-win.c (tui_data_window::set_new_height)
5756 (tui_data_window::do_make_visible_with_new_height): Move to
5757 tui-regs.c.
5758 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5759 * tui/tui-regs.c: Remove "structuring" comments.
5760 (tui_data_window::first_data_item_displayed)
5761 (tui_data_window::delete_data_content_windows)
5762 (tui_data_window::erase_data_content)
5763 (tui_data_window::display_all_data)
5764 (tui_data_window::refresh_all)
5765 (tui_data_window::do_scroll_vertical)
5766 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5767 (tui_data_window::do_make_visible_with_new_height)
5768 (tui_data_window::refresh_window): Move from elsewhere.
5769 (_initialize_tui_regs): Move to end of file.
5770 * tui/tui-layout.c: Update.
5771 * tui/tui-hooks.c: Update.
5772 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5773 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5774 tui-regs.c.
5775 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5776
88b7e7cc
TT
57772019-07-17 Tom Tromey <tom@tromey.com>
5778
5779 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5780 seen.
5781
0fcd3711
TT
57822019-07-17 Tom Tromey <tom@tromey.com>
5783
5784 * tui/tui-win.c (tui_source_window_base::set_new_height)
5785 (tui_source_window_base::do_make_visible_with_new_height): Use
5786 m_has_locator field directly.
5787 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5788 method.
5789 (struct tui_source_window_base) <has_locator>: Likewise.
5790
4a38112d
TT
57912019-07-17 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5794 Don't declare.
5795 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5796 Remove.
5797 * tui/tui-win.c (tui_source_window_base::set_new_height)
5798 (tui_source_window_base::set_new_height)
5799 (make_invisible_and_set_new_height)
5800 (tui_source_window_base::do_make_visible_with_new_height)
5801 (tui_source_window_base::do_make_visible_with_new_height):
5802 Update.
5803 * tui/tui-layout.c (show_source_disasm_command, show_data)
5804 (show_source_or_disasm_and_command): Update.
5805 * tui/tui-layout.c (show_layout): Update.
5806
09129226
TT
58072019-07-17 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui-layout.c (make_data_window): Remove.
5810 (show_data): Unify creation and re-initialization cases.
5811
4a8a5e84
TT
58122019-07-17 Tom Tromey <tom@tromey.com>
5813
5814 * tui/tui-layout.c (make_source_window, make_disasm_window):
5815 Remove.
5816 (show_data): Unify creation and re-initialization cases.
5817
76d2be8e
TT
58182019-07-17 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-layout.c (make_command_window): Remove.
5821 (show_source_disasm_command, show_source_or_disasm_and_command):
5822 Unify creation and re-initialization cases.
5823
890b8bde
TT
58242019-07-17 Tom Tromey <tom@tromey.com>
5825
5826 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5827 creation and re-initialization cases.
5828
2cdfa113
TT
58292019-07-17 Tom Tromey <tom@tromey.com>
5830
5831 * tui/tui-regs.c (tui_get_register): Return void.
5832
8e3cfd09
TT
58332019-07-17 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5836 Simplify.
5837
f4e04977
TT
58382019-07-17 Tom Tromey <tom@tromey.com>
5839
5840 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5841 resetting.
5842
0379b883
TT
58432019-07-17 Tom Tromey <tom@tromey.com>
5844
5845 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5846 * tui/tui-regs.c (tui_reg_layout): New function.
5847 (tui_show_registers, tui_reg_command): Use it.
5848 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5849 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5850 parameters.
5851 (tui_layout_command): Remove.
5852
b7fbad91
TT
58532019-07-17 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-layout.h (tui/tui-layout): Return void.
5856 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5857
4e1e56b9
TT
58582019-07-17 Tom Tromey <tom@tromey.com>
5859
5860 * tui/tui-layout.c (show_source_disasm_command, show_data):
5861 Update.
5862 (reset_locator): Remove.
5863 (show_source_or_disasm_and_command): Update.
5864
1e0c09ba
TT
58652019-07-17 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-source.c (tui_source_window_base::reset): Remove
5868 win_type parameter.
5869 * tui/tui-layout.c (make_command_window, make_source_window)
5870 (make_disasm_window, make_data_window)
5871 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5872 (reset_locator, show_source_or_disasm_and_command): Update.
5873 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5874 win_type parameter.
5875 (struct tui_source_window_base) <reset>: Likewise.
5876
1bf605de
TT
58772019-07-17 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-layout.c (show_source_disasm_command): Use
5880 reset_locator.
5881 (reset_locator): New function.
5882 (init_and_make_win): Remove.
5883 (show_source_or_disasm_and_command): Use reset_locator.
5884
098f9ed4
TT
58852019-07-17 Tom Tromey <tom@tromey.com>
5886
5887 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5888 condition.
5889 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5890 Remove condition.
5891 * tui/tui-source.c (tui_source_window_base::reset): New method.
5892 * tui/tui-layout.c (make_command_window): Don't call
5893 init_and_make_win.
5894 (make_source_window, make_disasm_window): Don't call
5895 make_source_or_disasm_window.
5896 (make_data_window): Don't call init_and_make_win. Change calling
5897 convention.
5898 (show_source_disasm_command, show_data): Simplify.
5899 (make_source_or_disasm_window): Remove.
5900 (show_source_or_disasm_and_command): Simplify.
5901 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5902 (struct tui_source_window_base) <reset>: Likewise.
5903 <execution_info>: Remove initializer.
5904 * tui/tui-data.c (tui_source_window_base): Initialize
5905 execution_info.
5906
80110957
TT
59072019-07-17 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5910 variable.
5911
cf82af05
TT
59122019-07-17 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui.c (tui_rl_other_window): Update.
5915 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5916 superclass method first. Always iterate over regs_content.
5917 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5918 method.
5919 * tui/tui-win.c (tui_set_focus_command): Update.
5920
01aeb396
TT
59212019-07-17 Tom Tromey <tom@tromey.com>
5922
5923 * tui/tui-win.c (tui_set_focus_command): Rename from
5924 tui_set_focus. Call tui_enable.
5925 (tui_set_focus_command): Remove.
5926
fd6c75ee
TT
59272019-07-17 Tom Tromey <tom@tromey.com>
5928
5929 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5930 refresh_window.
5931 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5932 touchwin.
5933 (tui_data_window::refresh_window): Call refresh_window on data
5934 items. Always call superclass refresh_window.
5935 (tui_win_info::refresh): Remove.
5936 (tui_source_window_base::refresh_window): Update.
5937 (tui_refresh_all): Update.
5938 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5939 refresh_window.
5940 (show_source_or_disasm_and_command): Likewise.
5941 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5942 (struct tui_source_window_base) <refresh>: Likewise.
5943
f6cc34a9
TT
59442019-07-17 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-winsource.c (tui_clear_source_content)
5947 (tui_show_source_content): Update.
5948 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5949 whether content is empty.
5950 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5951 Remove.
5952
f31ec9af
TT
59532019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5956 window's contents.
5957 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5958 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5959
d1b6f1e5
TT
59602019-07-17 Tom Tromey <tom@tromey.com>
5961
5962 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5963 (struct tui_data_item_window): Update.
5964
d9743a13
TT
59652019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5968 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5969 defines.
5970
caf0bc4e
TT
59712019-07-17 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-winsource.h (tui_erase_source_content)
5974 (tui_clear_source_content): Remove "display_prompt" parameter.
5975 * tui/tui-winsource.c (tui_update_source_window_as_is)
5976 (tui_update_source_windows_with_addr): Update.
5977 (tui_clear_source_content): Remove "display_prompt" parameter.
5978 (tui_erase_source_content): Likewise. Simplify.
5979 (tui_show_source_content): Update.
5980 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5981 * tui/tui-stack.c (tui_show_frame_info): Update.
5982 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5983 Remove defines.
5984
9d391078
TT
59852019-07-17 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5988 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5989 parameter.
5990 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5991 parameter.
5992
a38da35d
TT
59932019-07-17 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-winsource.c (tui_clear_source_content)
5996 (tui_show_source_content, tui_show_exec_info_content)
5997 (tui_clear_exec_info_content): Update.
5998 * tui/tui-stack.c (tui_show_locator_content): Update.
5999 (tui_show_frame_info): Update.
6000 * tui/tui-source.h (tui_source_window): Don't declare.
6001 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6002 from tui_source_is_displayed.
6003 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6004 Remove field.
6005 (struct tui_source_window_base) <content_in_use>: New field. Now
6006 bool.
6007 (struct tui_source_window) <showing_source_p>: New method.
6008 (TUI_SRC_WIN): Change cast.
6009 * tui/tui-data.c (tui_initialize_static_data): Update.
6010
c2cd8994
TT
60112019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6014 location_matches_p.
6015 * tui/tui-source.c (tui_source_window::location_matches_p): New
6016 method.
6017 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6018 method.
6019 * tui/tui-data.h (struct tui_source_window_base)
6020 <location_matches_p>: New method.
6021 (struct tui_source_window, struct tui_disasm_window)
6022 <location_matches_p>: Likewise.
6023
4dde7b34
TT
60242019-07-17 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-win.c (tui_set_win_height_command): Rename from
6027 tui_set_win_height.
6028 (tui_set_win_height_command): Remove.
6029
b73dd877
TT
60302019-07-17 Tom Tromey <tom@tromey.com>
6031
6032 * tui/tui-source.c (tui_source_window): New constructor. Add
6033 observer.
6034 (~tui_source_window): New destructor.
6035 (tui_source_window::style_changed): New method.
6036 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6037 (tui_attach_detach_observers): Update.
6038 * tui/tui-data.h (struct tui_source_window): Make constructor not
6039 inline. Add destructor.
6040 (struct tui_source_window) <style_changed>: New method.
6041 <m_observable>: New member.
6042
ae2b5380
TT
60432019-07-17 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6046 * tui/tui-win.c (tui_resize_all): Fix typo.
6047
1ce3e844
TT
60482019-07-17 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6051 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6052 (tui_refresh_all): Remove "list" parameter. Use foreach.
6053 * tui/tui-win.c (window_name_completer): Use foreach.
6054 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6055 (update_tab_width): Likewise.
6056 * tui/tui-layout.c (show_layout): Update.
6057 * tui/tui-data.h (class tui_window_iterator): New.
6058 (struct all_tui_windows): New.
6059 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6060
fe3eaf1c
TT
60612019-07-17 Tom Tromey <tom@tromey.com>
6062
6063 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6064 parameter. Don't reference globals.
6065 (tui_reg_command): Update.
6066
368c1354
TT
60672019-07-17 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-regs.c (tui_show_registers): Simplify.
6070
e80cd204
TT
60712019-07-17 Tom Tromey <tom@tromey.com>
6072
6073 * tui/tui-regs.c (tui_show_registers): Update.
6074 (tui_show_register_group): Add win_info parameter.
6075
aca2dd16
TT
60762019-07-17 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6079 Rename from tui_display_reg_element_at_line.
6080 (tui_data_window::display_registers_from_line): Update.
6081 * tui/tui-data.h (struct tui_data_window)
6082 <display_reg_element_at_line>: New method.
6083
517e9505
TT
60842019-07-17 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-regs.h (tui_display_registers_from)
6087 (tui_display_registers_from_line): Don't declare.
6088 * tui/tui-windata.c (tui_data_window::display_all_data)
6089 (tui_data_window::refresh_all)
6090 (tui_data_window::do_scroll_vertical): Update.
6091 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6092 from tui_display_registers_from.
6093 (tui_display_reg_element_at_line): Update.
6094 (tui_data_window::display_registers_from_line): Rename from
6095 tui_display_registers_from_line.
6096 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6097 display_registers_from_line>: New methods.
6098
f76d8b19
TT
60992019-07-17 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6102 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6103 from tui_erase_data_content.
6104 (tui_data_window::display_all_data)
6105 (tui_data_window::refresh_all)
6106 (tui_data_window::do_scroll_vertical): Update.
6107 * tui/tui-regs.c (tui_show_registers): Update.
6108 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6109 New method.
6110
b4094625
TT
61112019-07-17 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6114 declare.
6115 * tui/tui-windata.c
6116 (tui_data_window::delete_data_content_windows): Rename from
6117 tui_delete_data_content_windows.
6118 (tui_data_window::display_all_data)
6119 (tui_data_window::do_scroll_vertical): Update.
6120 * tui/tui-data.h (struct tui_data_window)
6121 <delete_data_content_windows>: New method.
6122
c223a729
TT
61232019-07-17 Tom Tromey <tom@tromey.com>
6124
6125 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6126 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6127
50daf268
TT
61282019-07-17 Tom Tromey <tom@tromey.com>
6129
6130 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6131 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6132 from tui_display_all_data.
6133 * tui/tui-win.c
6134 (tui_data_window::do_make_visible_with_new_height): Update.
6135 * tui/tui-regs.c (tui_show_registers): Update.
6136 * tui/tui-layout.c (tui_set_layout): Update.
6137 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6138 method.
6139
df5f8cab
TT
61402019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6143 * tui/tui-windata.c (tui_display_data_from): Remove.
6144 (tui_data_window::refresh_all): Update.
6145
80cb6c27
TT
61462019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6149 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6150 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6151 tui_display_registers_from_line.
6152 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6153 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6154 "force_display" parameter.
6155
baff0c28
TT
61562019-07-17 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6159 declare.
6160 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6161 Rename from tui_first_reg_element_no_inline.
6162 (tui_display_reg_element_at_line)
6163 (tui_display_registers_from_line): Update.
6164 * tui/tui-data.h (struct tui_data_window)
6165 <first_reg_element_no_inline>: New method.
6166
3b23c5f2
TT
61672019-07-17 Tom Tromey <tom@tromey.com>
6168
6169 * tui/tui-windata.c (tui_display_data_from)
6170 (tui_data_window::do_scroll_vertical): Update.
6171 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6172 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6173 Rename from tui_line_from_reg_element_no.
6174 (tui_display_registers_from_line): Update.
6175 * tui/tui-data.h (struct tui_data_window)
6176 <line_from_reg_element_no>: New method.
6177
0b5ec218
TT
61782019-07-17 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6181 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6182 tui_last_regs_line_no.
6183 (tui_display_reg_element_at_line)
6184 (tui_display_registers_from_line): Update.
6185 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6186 method.
6187
0807ab7b
TT
61882019-07-17 Tom Tromey <tom@tromey.com>
6189
6190 PR tui/24722:
6191 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6192 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6193 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6194 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6195 (tui_update_breakpoint_info): Likewise.
6196 * tui/tui-hooks.c (tui_event_create_breakpoint)
6197 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6198 Update.
6199
9ad7fdef
TT
62002019-07-17 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6203
5813316f
TT
62042019-07-17 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-winsource.c (tui_update_source_window_as_is)
6207 (tui_update_source_windows_with_addr): Update.
6208 * tui/tui-source.h (tui_set_source_content)
6209 (tui_show_symtab_source): Add "win_info" parameter.
6210 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6211 parameter.
6212 (tui_show_symtab_source): Likewise.
6213
00e264e7
TT
62142019-07-17 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-wingeneral.c
6217 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6218
06210ce4
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6222 (struct tui_cmd_window) <can_scroll>: New method.
6223 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6224 method.
6225
381befee
TT
62262019-07-17 Tom Tromey <tromey@adacore.com>
6227
6228 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6229 do_field_signed>: Rename. Change type of "value".
6230 * ui-out.c (ui_out::field_signed): Rename from field_int.
6231 Change type of "value".
6232 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6233 type of "value".
6234 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6235 do_field_int. Change type of "value".
6236 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6237 do_field_int. Change type of "value".
6238 * tracepoint.c (trace_status_mi, tfind_1)
6239 (print_one_static_tracepoint_marker): Update.
6240 * thread.c (print_thread_info_1, print_selected_thread_frame):
6241 Update.
6242 * stack.c (print_frame, print_frame_info): Update.
6243 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6244 Update.
6245 * source.c (print_source_lines_base): Update.
6246 * skip.c (info_skip_command): Update.
6247 * record-btrace.c (btrace_ui_out_decode_error)
6248 (btrace_call_history_src_line): Update.
6249 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6250 Update.
6251 * progspace.c (print_program_space): Update.
6252 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6253 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6254 do_field_int. Change type of "value".
6255 * mi/mi-out.c (mi_ui_out::do_table_begin)
6256 (mi_ui_out::do_table_header): Update.
6257 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6258 type of "value".
6259 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6260 (mi_cmd_data_list_changed_registers, output_register)
6261 (mi_cmd_data_read_memory, mi_load_progress)
6262 (mi_cmd_trace_frame_collected): Update.
6263 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6264 Update.
6265 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6266 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6267 (mi_cmd_var_list_children, varobj_update_one): Update.
6268 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6269 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6270 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6271 * inferior.c (print_inferior): Update.
6272 * gdb_bfd.c (print_one_bfd): Update.
6273 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6274 Update.
6275 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6276 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6277 do_field_int. Change type of "value".
6278 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6279 do_field_int. Change type of "value".
6280 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6281 (print_one_breakpoint_location, print_it_catch_fork)
6282 (print_one_catch_fork, print_it_catch_vfork)
6283 (print_one_catch_vfork, print_it_catch_solib)
6284 (print_it_catch_exec, print_it_ranged_breakpoint)
6285 (print_mention_watchpoint, print_mention_masked_watchpoint)
6286 (bkpt_print_it, update_static_tracepoint): Update.
6287 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6288 * break-catch-syscall.c (print_it_catch_syscall): Update.
6289 * ada-tasks.c (print_ada_task_info): Update.
6290 * ada-lang.c (print_it_exception, print_mention_exception):
6291 Update.
6292
6b78c3f8
AB
62932019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6294
6295 PR breakpoints/24541
6296 * gdbarch.c: Regenerate.
6297 * gdbarch.h: Regenerate.
6298 * gdbarch.sh: Adjust return type and parameter types for
6299 'stap_adjust_register'.
6300 (i386_stap_adjust_register): Adjust signature and return new
6301 register name.
6302 * stap-probe.c (stap_parse_register_operand): Adjust use of
6303 'gdbarch_stap_adjust_register'.
6304
d72a9b85
TT
63052019-07-17 Tom Tromey <tromey@adacore.com>
6306
6307 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6308 declare VEC.
6309 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6310 std::vector.
6311 (struct s390_process_info): Add initializers.
6312 (s390_add_process): Use new.
6313 (s390_linux_nat_target::low_forget_process): Use delete.
6314 (s390_linux_nat_target::low_new_fork)
6315 (s390_linux_nat_target::stopped_by_watchpoint)
6316 (s390_linux_nat_target::low_prepare_to_resume)
6317 (s390_linux_nat_target::insert_watchpoint)
6318 (s390_linux_nat_target::insert_hw_breakpoint)
6319 (s390_linux_nat_target::remove_watchpoint)
6320 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6321
206e6c58
JB
63222019-07-16 John Baldwin <jhb@FreeBSD.org>
6323
6324 * aarch64-fbsd-nat.c: Include regcache.h.
6325 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6326 argument.
6327 (aarch64_fbsd_nat_target::fetch_registers)
6328 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6329 variable.
6330 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6331
cbde90f2
JB
63322019-07-16 John Baldwin <jhb@FreeBSD.org>
6333
6334 * fbsd-nat.c: Include gdbarch.h.
6335
07128006
TT
63362019-07-15 Tom Tromey <tromey@adacore.com>
6337
6338 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6339
1f77b012
TT
63402019-07-15 Tom Tromey <tromey@adacore.com>
6341
6342 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6343 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6344 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6345 * cli-out.c (cli_ui_out::do_field_int): New method.
6346 * ui-out.c (ui_out::field_unsigned): New method.
6347 * symfile.c (generic_load): Use field_unsigned.
6348 (print_transfer_performance): Likewise.
6349 * record-btrace.c (ui_out_field_uint): Remove.
6350 (btrace_call_history_insn_range, btrace_call_history): Use
6351 field_unsigned.
6352 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6353 field_unsigned.
6354 * ui-out.h (class ui_out) <field_unsigned>: New method.
6355 <do_field_unsigned>: Likewise.
6356
33eca680
TT
63572019-07-15 Tom Tromey <tromey@adacore.com>
6358
6359 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6360 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6361 * target.c (flash_erase_command): Use field_string.
6362 * infrun.c (print_signal_received_reason): Use field_string.
6363 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6364 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6365 field_string.
6366 * ada-tasks.c (print_ada_task_info): Use field_string.
6367
ca8d69be
TT
63682019-07-15 Tom Tromey <tromey@adacore.com>
6369
6370 * target.c (flash_erase_command): Use field_core_addr.
6371 * symfile.c (generic_load): Use field_core_addr.
6372 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6373 Use field_core_addr.
6374 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6375 field_core_addr.
6376
0d4e84ed
AB
63772019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6380 value if its desired type is smaller than a CORE_ADDR and signed.
6381
9a49df9d
AB
63822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6383
6384 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6385 of changes to field names, and use new is_reference field to
6386 decide if a property is a reference or not.
6387 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6388 field.
6389 (struct dwarf2_property_baton): Update header comment, rename
6390 'referenced_type' to 'property_type' and update comments.
6391 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6392 default property type, store in property baton, update to take
6393 accound of renamed field.
6394 (read_func_scope): Update call to attr_to_dynamic_prop.
6395 (read_array_type): Likewise.
6396 (dwarf2_per_cu_addr_sized_int_type): New function.
6397 (read_subrange_index_type): Move type finding code to
6398 dwarf2_per_cu_addr_sized_int_type.
6399 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6400 (dwarf2_per_cu_addr_type): New function.
6401 (set_die_type): Update calls to attr_to_dynamic_prop.
6402
b86352cf
AB
64032019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * dwarf2read.c (read_subrange_index_type): New function.
6406 (read_subrange_type): Move code into new function and call it.
6407 * gdbtypes.c (create_range_type): Add some asserts.
6408
603490bf
AB
64092019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6412 update return statements.
6413 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6414 declaration, and update comment to match.
6415 * gdbtypes.c (resolve_dynamic_array): Update call to
6416 dwarf2_evaluate_property to match new return type.
6417
592f9d27
AB
64182019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * valarith.c (value_subscripted_rvalue): Change lowerbound
6421 parameter type from int to LONGEST.
6422 * value.h (value_subscripted_rvalue): Likewise in declaration.
6423
60cfcb20
AB
64242019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * cli/cli-utils.c (info_print_command_completer): New function.
6427 * cli/cli-utils.h: Add 'completer.h' include, and forward
6428 declaration for 'struct cmd_list_element'.
6429 (info_print_command_completer): Declare.
6430 * stack.c (_initialize_stack): Add completer for 'info locals' and
6431 'info args'.
6432 * symtab.c (_initialize_symtab): Add completer for 'info
6433 variables' and 'info functions'.
6434 * NEWS: Mention completion for additional info commands.
6435
b16507e0
AB
64362019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * cli/cli-utils.c (extract_info_print_args): Delete.
6439 (extract_arg_maybe_quoted): Delete.
6440 (info_print_options_defs): New variable.
6441 (make_info_print_options_def_group): New function.
6442 (extract_info_print_options): Define new function.
6443 * cli/cli-utils.h (extract_info_print_args): Delete.
6444 (struct info_print_options): New structure.
6445 (extract_info_print_options): Declare new function.
6446 * stack.c (info_locals_command): Update to use new
6447 extract_info_print_options, also add a header comment.
6448 (info_args_command): Likewise.
6449 * symtab.c (info_variables_command): Likewise.
6450 (info_functions_command): Likewise.
6451
021d8588
AB
64522019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6453
6454 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6455 to extract string arguments.
6456 * common/common-utils.c (extract_string_maybe_quoted): New function.
6457 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6458
b777eb6d
TT
64592019-07-11 Tom Tromey <tromey@adacore.com>
6460
6461 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6462 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6463 * top.h (gdbinit): Don't declare.
6464 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6465 into...
6466 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6467 * top.c (gdb_init): Don't call init_cli_cmds.
6468 (gdbinit): Remove.
6469 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6470
72ee03ff
TT
64712019-07-11 Tom Tromey <tromey@adacore.com>
6472
6473 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6474 after it has been moved.
6475
00db9531
SM
64762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * valops.c (value_must_coerce_to_target): Change return type to
6479 bool.
6480 * value.h (value_must_coerce_to_target): Likewise.
6481
f2478a7e
SM
64822019-07-10 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * breakpoint.c (is_hardware_watchpoint): Remove
6485 forward-declaration.
6486 (is_masked_watchpoint): Change return type to bool.
6487 (is_tracepoint): Likewise.
6488 (is_breakpoint): Likewise.
6489 (is_hardware_watchpoint): Likewise.
6490 (is_watchpoint): Likewise.
6491 (is_no_memory_software_watchpoint): Likewise.
6492 (is_catchpoint): Likewise.
6493 (breakpoint_1): Make FILTER parameter's return type bool.
6494 is_masked_watchpoint): Change return type to bool.
6495 (save_breakpoints): Make FILTER parameter's return type bool.
6496 * breakpoint.h (is_breakpoint): Change return type to bool.
6497 (is_watchpoint): Likewise.
6498 (is_catchpoint): Likewise.
6499 (is_tracepoint): Likewise.
6500
0d12e84c
TT
65012019-07-10 Tom Tromey <tom@tromey.com>
6502
6503 * defs.h: Don't include gdbarch.h.
6504 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6505 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6506 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6507 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6508 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6509 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6510 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6511 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6512 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6513 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6514 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6515 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6516 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6517 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6518 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6519 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6520 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6521 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6522 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6523 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6524 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6525 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6526 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6527 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6528 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6529 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6530 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6531
f06f1252
TT
65322019-07-10 Tom Tromey <tromey@adacore.com>
6533
6534 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6535 * breakpoint.c (init_ada_exception_breakpoint): Register as
6536 bp_catchpoint.
6537 (print_one_breakpoint_location, print_one_breakpoint): Use
6538 is_ada_exception_catchpoint.
6539 * ada-lang.c (class ada_catchpoint_location): Pass
6540 bp_loc_software_breakpoint to bp_location constructor.
6541 (is_ada_exception_catchpoint): New function.
6542
7a5d944b
TT
65432019-07-10 Tom Tromey <tromey@adacore.com>
6544
6545 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6546 VEC.
6547 (struct arm_exidx_entry): New method operator<.
6548 (struct arm_exidx_data) <section_maps>: Change type.
6549 (arm_exidx_data_free): Remove.
6550 (arm_exidx_data_key): Change type. Move lower.
6551 (arm_exidx_new_objfile): Update.
6552 (arm_compare_exidx_entries): Remove.
6553 (arm_find_exidx_entry, _initialize_arm_tdep)
6554
48c66e1d
TT
65552019-07-10 Tom Tromey <tromey@adacore.com>
6556
6557 * solib-spu.c (ocl_program_data_key): Change type.
6558 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6559 Update.
6560
a269fbf1
TT
65612019-07-10 Tom Tromey <tromey@adacore.com>
6562
6563 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6564 (struct solib_aix_inferior_data) <library_list>: Change type.
6565 (solib_aix_inferior_data_handle): Change type.
6566 (get_solib_aix_inferior_data): Update.
6567 (solib_aix_free_library_list): Remove.
6568 (library_list_start_library): Update.
6569 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6570 return type.
6571 (solib_aix_get_library_list)
6572 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6573 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6574
c294730c
TT
65752019-07-10 Tom Tromey <tromey@adacore.com>
6576
6577 * solib-dsbt.c (struct dsbt_info): Add initializers.
6578 (solib_dsbt_pspace_data): Change type.
6579 (dsbt_pspace_data_cleanup): Remove.
6580 (get_dsbt_info, _initialize_dsbt_solib): Update.
6581
9d52077d
TT
65822019-07-10 Tom Tromey <tromey@adacore.com>
6583
6584 * spu-tdep.c (spu_overlay_data): Change type.
6585 (spu_get_overlay_table, spu_overlay_new_objfile)
6586 (_initialize_spu_tdep): Update.
6587
22a20dca
TT
65882019-07-10 Tom Tromey <tromey@adacore.com>
6589
6590 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6591 destructor.
6592 (dbx_objfile_data_key): Change type and declare later.
6593 (DBX_SYMFILE_INFO): Rewrite.
6594 * dbxread.c (dbx_objfile_data_key): Change type.
6595 (dbx_symfile_init): Update.
6596 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6597 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6598 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6599
cb60f420
TT
66002019-07-10 Tom Tromey <tromey@adacore.com>
6601
6602 * jit.c (jit_program_space_key): Change type. Move lower.
6603 (get_jit_program_space_data): Update.
6604 (jit_program_space_data_cleanup): Remove.
6605 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6606 Update.
6607 (struct jit_program_space_data): Add initializers.
6608
51df2ae3
TT
66092019-07-10 Tom Tromey <tromey@adacore.com>
6610
6611 * solib-darwin.c (struct darwin_info): Add initializers.
6612 (solib_darwin_pspace_data): Change type.
6613 (darwin_pspace_data_cleanup): Remove.
6614 (get_darwin_info, _initialize_darwin_solib): Update.
6615
18101a35
TT
66162019-07-10 Tom Tromey <tromey@adacore.com>
6617
6618 * remote-sim.c (struct sim_inferior_data): Add initializers,
6619 constructor, and destructor.
6620 (sim_inferior_data_key): Change type. Move lower.
6621 (check_for_duplicate_sim_descriptor): Update.
6622 (get_sim_inferior_data): Use new. Update.
6623 (~sim_inferior_data_cleanup): Rename from
6624 sim_inferior_data_cleanup. Simplify.
6625 (gdbsim_close_inferior, simulator_command)
6626 (sim_command_completer, _initialize_remote_sim): Update.
6627 (next_pid, INITIAL_PID): Move earlier.
6628
05b08ac1
TT
66292019-07-10 Tom Tromey <tromey@adacore.com>
6630
6631 * python/python-internal.h (create_thread_object): Return
6632 gdbpy_ref.
6633 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6634 * python/py-inferior.c (struct threadlist_entry): Add
6635 constructor.
6636 <thread_obj>: Now a gdbpy_ref.
6637 (thread_to_thread_object): Update.
6638 (add_thread_object): Use new.
6639 (delete_thread_object): Use delete.
6640 (infpy_threads): Update.
6641 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6642 GIL.
6643
32372d80
TT
66442019-07-10 Tom Tromey <tromey@adacore.com>
6645
6646 * valops.c (value_cast): Specialize error message for Ada.
6647
5c458ae8
SM
66482019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6651
4c462cb0
SM
66522019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6653
6654 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6655 bpstat_should_step): Return bool, adjust comments.
6656 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6657 bpstat_should_step): Likewise.
6658
89abbcc2
AH
66592019-07-10 Alan Hayward <alan.hayward@arm.com>
6660
6661 * features/Makefile: Use feature target descriptions for Arm.
6662 * features/arm/arm-core.c: Generate new file.
6663 * features/arm/arm-fpa.c: Likewise.
6664 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6665 * features/arm/arm-m-profile.c: Likewise.
6666 * features/arm/arm-vfpv2.c: Likewise.
6667 * features/arm/arm-vfpv3.c: Likewise.
6668 * features/arm/xscale-iwmmxt.c: Likewise.
6669 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6670
166a82be
AH
66712019-07-10 Alan Hayward <alan.hayward@arm.com>
6672
6673 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6674 ptrace earlier.
6675
9fb4c7e9
AH
66762019-07-10 Alan Hayward <alan.hayward@arm.com>
6677
6678 * features/aarch64-pauth.c: Regenerate.
6679
e2d0f980
SM
66802019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6683 bool.
6684 (bpstat_what): Use false instead of 0.
6685
a38118e5
PA
66862019-07-09 Pedro Alves <palves@redhat.com>
6687
6688 * break-catch-throw.c (is_exception_catchpoint): New.
6689 * breakpoint.c (print_one_breakpoint_location): New parameter
6690 'raw_loc'. Handle it. Use
6691 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6692 looking at the breakpoint's type.
6693 (print_one_breakpoint): If handling "maint info breakpoints", also
6694 print locations of exception catchpoints.
6695 * breakpoint.h (is_exception_catchpoint): Declare.
6696
cb1e4e32
PA
66972019-07-09 Pedro Alves <palves@redhat.com>
6698
6699 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6700 "addr" field.
6701 (allocate_location_exception_catchpoint): New.
6702 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6703 (initialize_throw_catchpoint_ops): Install
6704 allocate_location_exception_catchpoint as allocate_location
6705 method.
6706 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6707 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6708 bp_loc_other.
6709 (breakpoint_address_is_meaningful): Delete.
6710 (bl_address_is_meaningful): New.
6711 (breakpoint_locations_match): Adjust comment.
6712 (bp_location_from_bp_type): New, factored out of...
6713 (bp_location::bp_location(breakpoint *)): ... this.
6714 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6715 factored out of...
6716 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6717 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6718 breakpoint_address_is_meaningful.
6719 (bp_locations_compare): Adjust comment.
6720 (update_global_location_list): Use bl_address_is_meaningful
6721 instead of breakpoint_address_is_meaningful.
6722 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6723 explicit.
6724 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6725 * python/py-breakpoint.c (bppy_get_location): No longer check
6726 whether location is null.
6727
b58a68fe
PA
67282019-07-09 Pedro Alves <palves@redhat.com>
6729
6730 PR c++/15468
6731 * breakpoint.c (print_one_breakpoint_location): Remove
6732 single-location assert.
6733
268a13a5
TT
67342019-07-09 Tom Tromey <tom@tromey.com>
6735
6736 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6737 * configure: Rebuild.
6738 * configure.ac: Change common to gdbsupport.
6739 * gdbsupport: Rename from common.
6740 * acinclude.m4: Change common to gdbsupport.
6741 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6742 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6743 gdbsupport.
6744 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6745 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6746 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6747 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6748 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6749 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6750 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6751 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6752 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6753 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6754 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6755 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6756 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6757 coff-pe-read.c, command.h, compile/compile-c-support.c,
6758 compile/compile-c.h, compile/compile-cplus-symbols.c,
6759 compile/compile-cplus-types.c, compile/compile-cplus.h,
6760 compile/compile-loc2c.c, compile/compile.c, completer.c,
6761 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6762 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6763 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6764 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6765 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6766 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6767 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6768 features/aarch64-core.c, features/aarch64-fpu.c,
6769 features/aarch64-pauth.c, features/aarch64-sve.c,
6770 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6771 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6772 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6773 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6774 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6775 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6776 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6777 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6778 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6779 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6780 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6781 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6782 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6783 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6784 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6785 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6786 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6787 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6788 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6789 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6790 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6791 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6792 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6793 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6794 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6795 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6796 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6797 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6798 minsyms.c, mips-linux-tdep.c, namespace.h,
6799 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6800 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6801 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6802 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6803 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6804 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6805 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6806 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6807 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6808 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6809 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6810 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6811 procfs.c, producer.c, progspace.h, psymtab.h,
6812 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6813 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6814 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6815 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6816 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6817 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6818 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6819 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6820 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6821 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6822 target-memory.c, target.c, target.h, target/waitstatus.c,
6823 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6824 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6825 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6826 unittests/array-view-selftests.c,
6827 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6828 unittests/common-utils-selftests.c,
6829 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6830 unittests/format_pieces-selftests.c,
6831 unittests/function-view-selftests.c,
6832 unittests/lookup_name_info-selftests.c,
6833 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6834 unittests/mkdir-recursive-selftests.c,
6835 unittests/observable-selftests.c,
6836 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6837 unittests/parse-connection-spec-selftests.c,
6838 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6839 unittests/scoped_fd-selftests.c,
6840 unittests/scoped_mmap-selftests.c,
6841 unittests/scoped_restore-selftests.c,
6842 unittests/string_view-selftests.c, unittests/style-selftests.c,
6843 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6844 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6845 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6846 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6847 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6848 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6849
5b0e2db4
AB
68502019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6853 bool value.
6854 (decode_digits_ordinary): Set explicit_line field in sal.
6855 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6856 symtab_and_line that was set on an explicit line number in
6857 assembler code. Do always update the recorded symtab and line if
6858 we do skip the prologue.
6859
0ba852ab
AB
68602019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * breakpoint.c (set_breakpoint_location_function): Remove
6863 explicit_loc parameter.
6864 (momentary_breakpoint_from_master): Update call to
6865 set_breakpoint_location_function.
6866 (add_location_to_breakpoint): Likewise.
6867
b3a7d171
AB
68682019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6871 required features based on default bfd type when no specific bfd
6872 is present.
6873
1f6f6e21
PW
68742019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6875
6876 * NEWS: Mention that GDB printf and eval commands can now print
6877 C-style and Ada-style convenience var strings without
6878 calling the inferior.
6879 * printcmd.c (printf_c_string): Locally print GDB internal var
6880 instead of transiting via the inferior.
6881 (printf_wide_c_string): Likewise.
6882
68832019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6884
5862c886 6885 PR breakpoints/25011
ea142fbf
AH
6886 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6887
0598af48
TT
68882019-07-04 Tom Tromey <tom@tromey.com>
6889
6890 PR tui/24724:
6891 * tui/tui-winsource.c (tui_clear_source_content): Update.
6892 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6893 (tui_update_breakpoint_info): Update.
6894 (tui_set_exec_info_content): Update.
6895 * tui/tui-source.c (tui_set_source_content_nil): Update.
6896 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6897 has_break.
6898 * tui/tui-data.h (enum tui_bp_flag): New.
6899 (tui_bp_flags): New enum flags type.
6900 (struct tui_source_element) <break_mode>: Change type. Rename
6901 from has_break.
6902 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6903 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6904 constants.
6905 * tui/tui-winsource.h: Fix comment.
6906
350fab54
AH
69072019-07-04 Alan Hayward <alan.hayward@arm.com>
6908
6909 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6910 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6911 (store_fpregs_to_thread)
6912 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6913 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6914 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6915 (IWMMXT_REGS_SIZE): Add define.
6916 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6917 (fetch_vfp_regs, store_vfp_regs)
6918 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6919 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6920
f0452268
AH
69212019-07-04 Alan Hayward <alan.hayward@arm.com>
6922
6923 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6924 defines.
6925 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6926 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6927 (ARM_INT_REGISTER_SIZE): ...to this.
6928 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6929 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6930 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6931 (arm_linux_collect_gregset, supply_nwfpe_register)
6932 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6933 defines.
6934 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6935 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6936 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6937 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6938 (arm_return_in_memory, arm_store_return_value)
6939 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6940 (arm_record_ld_st_multiple): Likewise.
6941 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6942 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6943
e935475c
AH
69442019-07-04 Alan Hayward <alan.hayward@arm.com>
6945
6946 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6947 AARCH64_DISPLACED_MODIFIED_INSNS.
6948 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6949 (aarch64_displaced_step_copy_insn): Likewise.
6950 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6951 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6952 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6953 ARM_DISPLACED_MODIFIED_INSNS.
6954 * arm-tdep.c (arm_gdbarch_init): Likewise.
6955 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6956 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6957 (struct arm_displaced_step_closure): Use
6958 ARM_DISPLACED_MODIFIED_INSNS.
6959
df0bb381
AH
69602019-07-04 Alan Hayward <alan.hayward@arm.com>
6961
6962 * features/Makefile: Remove unused xml files.
6963 * features/aarch64.xml: Remove.
6964 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6965 * features/i386/amd64-avx-avx512.xml: Remove.
6966 * features/i386/amd64-avx-linux.xml: Remove.
6967 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6968 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6969 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6970 * features/i386/amd64-avx-mpx.xml: Remove.
6971 * features/i386/amd64-avx.xml: Remove.
6972 * features/i386/amd64-linux.xml: Remove.
6973 * features/i386/amd64-mpx-linux.xml: Remove.
6974 * features/i386/amd64-mpx.xml: Remove.
6975 * features/i386/amd64.xml: Remove.
6976 * features/i386/i386-avx-avx512-linux.xml: Remove.
6977 * features/i386/i386-avx-avx512.xml: Remove.
6978 * features/i386/i386-avx-linux.xml: Remove.
6979 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6980 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6981 * features/i386/i386-avx-mpx-linux.xml: Remove.
6982 * features/i386/i386-avx-mpx.xml: Remove.
6983 * features/i386/i386-avx.xml: Remove.
6984 * features/i386/i386-linux.xml: Remove.
6985 * features/i386/i386-mmx-linux.xml: Remove.
6986 * features/i386/i386-mmx.xml: Remove.
6987 * features/i386/i386-mpx-linux.xml: Remove.
6988 * features/i386/i386-mpx.xml: Remove.
6989 * features/i386/i386.xml: Remove.
6990 * features/i386/x32-avx-avx512-linux.xml: Remove.
6991 * features/i386/x32-avx-linux.xml: Remove.
6992 * features/i386/x32-linux.xml: Remove.
6993
edd6266a
AH
69942019-07-04 Alan Hayward <alan.hayward@arm.com>
6995
6996 * regformats/aarch64.dat: Remove.
6997 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6998 * regformats/i386/amd64-avx-linux.dat: Remove.
6999 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7000 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7001 * regformats/i386/amd64-linux.dat: Remove.
7002 * regformats/i386/amd64-mpx-linux.dat: Remove.
7003 * regformats/i386/amd64.dat: Remove.
7004 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7005 * regformats/i386/i386-avx-linux.dat: Remove.
7006 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7007 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7008 * regformats/i386/i386-linux.dat: Remove.
7009 * regformats/i386/i386-mmx-linux.dat: Remove.
7010 * regformats/i386/i386-mpx-linux.dat: Remove.
7011 * regformats/i386/i386.dat: Remove.
7012 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7013 * regformats/i386/x32-avx-linux.dat: Remove.
7014 * regformats/i386/x32-linux.dat: Remove.
7015
2b40fda7
AH
70162019-07-04 Alan Hayward <alan.hayward@arm.com>
7017
7018 * aarch64-tdep.c: Remove xml self tests.
7019 * amd64-linux-tdep.c: Likewise.
7020 * amd64-tdep.c: Likewise.
7021 * i386-linux-tdep.c: Likewise.
7022 * i386-tdep.c: Likewise.
7023
5f4ba3e7
PA
70242019-07-03 Pedro Alves <palves@redhat.com>
7025
7026 PR cli/24732
7027 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7028 (pipe_cmd_option_defs): New.
7029 (make_pipe_cmd_options_def_group): New.
7030 (pipe_command): Use gdb::option::process_options.
7031 (pipe_command_completer): New function.
7032 (_initialize_cli_cmds): Install completer for "pipe" command.
7033
3d9be6f5
PA
70342019-07-03 Pedro Alves <palves@redhat.com>
7035
7036 * cli/cli-option.c (union option_value) <string>: New field.
7037 (struct option_def_and_value): Add ctor, move ctor, dtor and
7038 use DISABLE_COPY_AND_ASSIGN.
7039 (option_def_and_value::clear_value): New.
7040 (parse_option, save_option_value_in_ctx, get_val_type_str)
7041 (add_setshow_cmds_for_options): Handle var_string.
7042 * cli-option.h (union option_def::var_address) <string>: New
7043 field.
7044 (struct string_option_def): New.
7045 * maint-test-options.c (struct test_options_opts): Add default
7046 ctor and use DISABLE_COPY_AND_ASSIGN.
7047 <string_opt>: New field.
7048 (test_options_opts::~test_options_opts): New.
7049 (test_options_opts::dump): Also dump "-string".
7050 (test_options_option_defs): Install "string.
7051
41fc454c
PA
70522019-07-03 Pedro Alves <palves@redhat.com>
7053
7054 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7055 option_value with a null enumeration.
7056 (complete_options): Save the option values in the context.
7057 (save_option_value_in_ctx): New, factored out from ...
7058 (process_options): ... here.
7059 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7060 of the function.
7061 * maint-test-options.c (test_options_opts::dump): New, factored
7062 out from ...
7063 (maintenance_test_options_command_mode): ... here.
7064 (maintenance_test_options_command_completion_result): Delete.
7065 (maintenance_test_options_command_completion_text): Update
7066 comment.
7067 (maintenance_show_test_options_completion_result): Change
7068 prototype. Just print
7069 maintenance_test_options_command_completion_text.
7070 (save_completion_result): New.
7071 (maintenance_test_options_completer_mode): Pass options context to
7072 complete_options, and then save a dump.
7073 (_initialize_maint_test_options): Use add_cmd to install "maint
7074 show test-options-completion-result".
7075
fdbc9870
PA
70762019-07-03 Pedro Alves <palves@redhat.com>
7077
7078 * NEWS (New commands): Mention "with" and "maint with".
7079 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7080 (with_command, with_command_completer): New.
7081 (pipe_command): Adjust to new repeat_previous
7082 interface.
7083 (_initialize_cli_cmds): Install the "with" command and its "w"
7084 alias.
7085 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7086 declarations.
7087 * cli/cli-setshow.c (parse_cli_var_uinteger)
7088 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7089 argument strings for all var_types.
7090 (get_setshow_command_value_string): New, factored out from ...
7091 (do_show_command): ... this.
7092 * cli/cli-setshow.h: Include <string>.
7093 (get_setshow_command_value_string): Declare.
7094 * command.h (repeat_previous): Now returns const char *. Adjust
7095 comment.
7096 * maint.c: Include "cli/cli-cmds.h".
7097 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7098 (_initialize_maint_cmds): Register the "maintenance with" command.
7099 * top.c (repeat_previous): Move bits from pipe_command here:
7100 Return the saved command line, if any; error out if there's no
7101 command to relaunch.
7102
c6ac8931
PA
71032019-07-03 Pedro Alves <palves@redhat.com>
7104
7105 * NEWS (New commands): Mention "maint set/show test-settings"
7106 instead of "maint test-settings".
7107 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7108 (maintenance_test_settings_set_list): Rename to ...
7109 (maintenance_set_test_settings_list): ... this.
7110 (maintenance_test_settings_show_list): Rename to ...
7111 (maintenance_show_test_settings_list): ... this.
7112 (maintenance_test_settings_cmd): Delete.
7113 (maintenance_test_settings_set_cmd): ...
7114 (maintenance_set_test_settings_cmd): ... this.
7115 (maintenance_test_settings_show_cmd): ...
7116 (maintenance_show_test_settings_cmd): ... this.
7117 (maintenance_test_settings_show_value_cmd):
7118 (maintenance_show_test_settings_value_cmd): ... this.
7119 (_initialize_maint_test_settings): No longer install the "maint
7120 test-settings" prefix command. Rename "maint test-settings set"
7121 to "maint set test-settings", and "maint test-settings show" to
7122 "maint show test-settings". Adjust all subcommands.
7123
d1fcf2fd
PA
71242019-07-03 Pedro Alves <palves@redhat.com>
7125
7126 * maint-test-settings.c: Fix file's intro comment. Replace all
7127 references to "test-options" with references to "test-settings",
7128 in comments.
7129
970f9d09
PA
71302019-07-03 Pedro Alves <palves@redhat.com>
7131
7132 * maint-test-settings.c (maintenance_test_settings_xxx)
7133 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7134 New.
7135 (maintenance_test_settings_enums): Use them.
7136 (maintenance_test_settings_enum): Default to
7137 maintenance_test_settings_xxx.
7138 (_initialize_maint_test_settings): Initialize
7139 MAINTENANCE_TEST_SETTINGS_FILENAME.
7140
f3869b1a
SM
71412019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * breakpoint.h (remove_breakpoints_inf): Change return type to
7144 void, move function documentation here.
7145 * breakpoint.c (remove_breakpoints_inf): Change return type to
7146 void, move function documentation to header.
7147
54d66006
PA
71482019-07-02 Pedro Alves <palves@redhat.com>
7149
7150 * NEWS (Completion improvements): Mention "info threads".
7151 * thread.c (struct info_threads_opts, info_threads_option_defs)
7152 (make_info_threads_options_def_group): New.
7153 (info_threads_command): Use gdb::option::process_options.
7154 (info_threads_command_completer): New.
7155 (_initialize_thread): Use gdb::option::build_help to build the
7156 help text for "info threads".
7157
854f6088
SM
71582019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * defs.h (generic_load): Move from here...
7161 * symfile.h (generic_load): ... to here. Rename name parameter
7162 to args.
7163 * symfile.c (generic_load): Add comment.
7164
54ee4252
TT
71652019-07-01 Tom Tromey <tromey@adacore.com>
7166
7167 * dwarf2read.c
7168 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7169 declaration of without_params. Fix formatting.
7170
65392b3e
TT
71712019-07-01 Tom Tromey <tromey@adacore.com>
7172
7173 * ada-exp.y (find_primitive_type): Update.
7174 * ada-lang.h (ada_lookup_symbol): Update.
7175 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7176 parameter.
7177 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7178
7d7571f0
SDJ
71792019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7180
7181 PR breakpoints/24541
7182 * gdbarch.c: Regenerate.
7183 * gdbarch.h: Regenerate.
7184 * gdbarch.sh: Add 'stap_adjust_register'.
7185 * i386-tdep.c: Include '<unordered_set>'.
7186 (i386_stap_adjust_register): New function.
7187 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7188 * stap-probe.c (stap_parse_register_operand): Call
7189 'gdbarch_stap_adjust_register'.
7190
5af5392a
SDJ
71912019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7192
7193 PR python/24742
7194 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7195 * python/python.c (do_start_initialization): Use 'xmalloc'
7196 instead of 'PyMem_Malloc'.
7197
10d06d82
TT
71982019-06-28 Tom Tromey <tromey@adacore.com>
7199
7200 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7201 for Ada.
7202
1b7f24cd
TT
72032019-06-27 Tom Tromey <tromey@adacore.com>
7204
7205 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7206 objfile_key.
7207 (arm_find_mapping_symbol, arm_record_special_symbol)
7208 (_initialize_arm_tdep): Update.
7209 (arm_objfile_data_free): Remove.
7210
3d507ff2
TT
72112019-06-27 Tom Tromey <tromey@adacore.com>
7212
7213 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7214 to cp_print_static_field.
7215
762c164d
TT
72162019-06-26 Tom Tromey <tromey@adacore.com>
7217
7218 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7219 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7220 declare.
7221
aa2f9bcf
AH
72222019-06-26 Alan Hayward <alan.hayward@arm.com>
7223
7224 * features/aarch64-core.c (create_feature_aarch64_core):
7225 Regenerate.
7226 * features/aarch64-core.xml: Add cpsr flags.
7227
3426ae57
AH
72282019-06-26 Alan Hayward <alan.hayward@arm.com>
7229
7230 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7231 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7232
4838e44c
SM
72332019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7234
7235 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7236 field.
7237 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7238 use.
7239 (arm_record_special_symbol): Don't insert new symbol in sorted
7240 position, push it at the end.
7241
54cc7474
SM
72422019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7243
7244 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7245 (arm_mapping_symbol_s): Remove.
7246 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7247 (arm_mapping_symbol_vec): New typedef.
7248 (struct arm_per_objfile): Add constructor.
7249 <section_maps>: Change type to
7250 std::unique_ptr<arm_mapping_symbol_vec[]>.
7251 (arm_compare_mapping_symbols): Remove.
7252 (arm_find_mapping_symbol): Adjust to section_maps type change.
7253 (arm_objfile_data_free): Call delete on arm_per_objfile.
7254 (arm_record_special_symbol): Adjust to section_maps type change.
7255 Allocate arm_per_objfile with new.
7256
b65b566c
PW
72572019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7258
7259 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7260 with the command prefix.
7261
c2fc64f5
TT
72622019-06-25 Tom Tromey <tom@tromey.com>
7263
7264 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7265 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7266
fb54fa76
TT
72672019-06-25 Tom Tromey <tom@tromey.com>
7268
7269 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7270 type.
7271 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7272 protected.
7273
f7952c57
TT
72742019-06-25 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-winsource.c
7277 (tui_source_window_base::set_is_exec_point_at): Add check against
7278 LOA_ADDRESS.
7279
17568d78
TT
72802019-06-25 Tom Tromey <tom@tromey.com>
7281
7282 * tui/tui-source.c (tui_set_source_content): Don't check before
7283 xfree.
7284 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7285
53e7cdba
TT
72862019-06-25 Tom Tromey <tom@tromey.com>
7287
7288 * tui/tui-winsource.h (tui_update_source_window_as_is)
7289 (tui_alloc_source_buffer, tui_line_is_displayed)
7290 (tui_addr_is_displayed): Change type of win_info.
7291 * tui/tui-winsource.c (tui_update_source_window_as_is)
7292 (tui_clear_source_content, tui_show_source_line)
7293 (tui_show_source_content, tui_source_window_base::refill)
7294 (tui_source_window_base::set_is_exec_point_at)
7295 (tui_source_window_base::set_is_exec_point_at)
7296 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7297 (tui_alloc_source_buffer, tui_line_is_displayed)
7298 (tui_addr_is_displayed): Change type of win_info. Update.
7299 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7300 (tui_source_window_base::do_make_visible_with_new_height):
7301 Update.
7302 * tui/tui-source.c (tui_set_source_content)
7303 (tui_set_source_content_nil)
7304 (tui_source_window::do_scroll_vertical): Update.
7305 * tui/tui-layout.c (show_layout): Update.
7306 * tui/tui-disasm.c (tui_set_disassem_content)
7307 (tui_disasm_window::do_scroll_vertical): Update.
7308 * tui/tui-data.h (tui_win_content): Remove.
7309 (struct tui_gen_win_info) <content, content_size>: Remove.
7310 (struct tui_source_element): Add initializers and destructor.
7311 (union tui_which_element, struct tui_win_element): Remove.
7312 (struct tui_source_window_base) <content>: New field.
7313 (struct tui_data_window): Remove destructor.
7314 (tui_alloc_content, tui_free_win_content)
7315 (tui_free_all_source_wins_content): Don't declare.
7316 * tui/tui-data.c (tui_initialize_static_data): Update.
7317 (init_content_element, tui_alloc_content): Remove.
7318 (~tui_gen_win_info): Update.
7319 (~tui_data_window, tui_free_all_source_wins_content)
7320 (tui_free_win_content, free_content, free_content_elements):
7321 Remove.
7322
7908abbf
TT
73232019-06-25 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-winsource.h (tui_clear_source_content)
7326 (tui_erase_source_content, tui_show_source_content): Change type
7327 of win_info.
7328 * tui/tui-winsource.c (tui_clear_source_content)
7329 (tui_erase_source_content, tui_show_source_content): Change type
7330 of win_info.
7331 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7332 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7333 win_info.
7334 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7335 win_info.
7336 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7337
02c28df0
TT
73382019-06-25 Tom Tromey <tom@tromey.com>
7339
7340 * tui/tui-winsource.c (tui_clear_source_content)
7341 (tui_source_window_base::set_is_exec_point_at): Update.
7342 * tui/tui-source.c (tui_set_source_content_nil): Update.
7343 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7344 a bool.
7345 * tui/tui-data.c (init_content_element): Update.
7346
6658b1bf
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7350 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7351 * tui/tui-layout.c (init_and_make_win): Update.
7352 * tui/tui.h (enum tui_win_type): Update.
7353 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7354 tui_win_is_auxillary.
7355 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7356 tui_win_is_auxillary.
7357
21e1c91e
TT
73582019-06-25 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7361 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7362 (tui_delete_data_content_windows, tui_display_all_data)
7363 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7364 Update.
7365 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7366 * tui/tui-regs.c (tui_last_regs_line_no)
7367 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7368 (tui_show_registers): Update.
7369 (tui_show_register_group): Return void. Update.
7370 (tui_display_registers_from, tui_display_reg_element_at_line)
7371 (tui_display_registers_from_line, tui_check_register_values):
7372 Update.
7373 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7374 member.
7375 (struct tui_data_window) <regs_content>: Now a std::vector.
7376 <regs_content_count>: Remove.
7377 (tui_add_content_elements, tui_free_data_content): Don't declare.
7378 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7379 (init_content_element): Remove DATA_WIN case. Add assert.
7380 (tui_add_content_elements): Remove.
7381 (tui_data_window): Update.
7382 (tui_free_data_content): Remove.
7383 (free_content_elements): Remove DATA_WIN case.
7384
115ac53b
TT
73852019-06-25 Tom Tromey <tom@tromey.com>
7386
7387 * tui/tui-data.c (tui_data_item_window): Update.
7388 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7389 * tui/tui-windata.c (tui_display_all_data)
7390 (tui_display_data_from_line): Update.
7391 (tui_check_data_values): Remove.
7392 * tui/tui-regs.c (tui_show_register_group)
7393 (tui_display_reg_element_at_line): Update.
7394 * tui/tui-hooks.c (tui_register_changed)
7395 (tui_refresh_frame_and_register_information): Call
7396 tui_check_register_values.
7397 * tui/tui-data.h (struct tui_data_window) <data_content,
7398 data_content_count, data_type>: Remove.
7399 (enum tui_data_type): Remove.
7400
7401 * tui/tui-data.c (tui_data_window::clear_detail)
7402 (~tui_data_window): Update.
7403
eaf9738b
TT
74042019-06-25 Tom Tromey <tom@tromey.com>
7405
7406 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7407 declare.
7408 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7409 Rename from tui_first_data_item_displayed. Update.
7410 (tui_data_window::refresh_all)
7411 (tui_data_window::do_scroll_vertical): Update.
7412 * tui/tui-data.h (struct tui_data_window)
7413 <first_data_item_displayed>: Declare new method.
7414
31ca4723
TT
74152019-06-25 Tom Tromey <tom@tromey.com>
7416
7417 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7418 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7419 contents...
7420 (tui_initialize_static_data): ...here.
7421
41bcff7f
TT
74222019-06-25 Tom Tromey <tom@tromey.com>
7423
7424 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7425 (tui_display_registers_from, tui_check_register_values): Update.
7426 (tui_display_register): Remove win_info parameter; update.
7427 (tui_get_register): Change type of parameters.
7428 * tui/tui-data.h (struct tui_data_element): Remove.
7429 (union tui_which_element) <data>: Remove.
7430 <data_window>: Change type.
7431 (struct tui_data_item_window): New.
7432 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7433 case. Add assert.
7434 (~tui_data_item_window): New destructor.
7435 (free_content_elements): Remove DATA_ITEM_WIN case.
7436
d2802c33
TT
74372019-06-25 Tom Tromey <tom@tromey.com>
7438
7439 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7440 Remove.
7441
dd835f8b
TT
74422019-06-25 Tom Tromey <tom@tromey.com>
7443
7444 * tui/tui-data.h (struct tui_command_element): Remove.
7445 (union tui_which_element) <command>: Remove.
7446 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7447 assert.
7448 (free_content_elements): Remove CMD_WIN case.
7449
bd7db367
TT
74502019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-layout.c (tui_set_layout): Update.
7453 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7454 * tui/tui-data.c (layout_def): Update.
7455
3add462f
TT
74562019-06-25 Tom Tromey <tom@tromey.com>
7457
7458 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7459 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7460 (tui_source_window_base::set_new_height): Update.
7461 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7462 Update.
7463 (tui_set_locator_fullname, tui_set_locator_info)
7464 (tui_show_frame_info): Update.
7465 * tui/tui-source.c (tui_set_source_content)
7466 (tui_source_is_displayed): Update.
7467 * tui/tui-layout.c (show_source_disasm_command, show_data)
7468 (show_source_or_disasm_and_command): Update.
7469 * tui/tui-disasm.c (tui_set_disassem_content)
7470 (tui_get_begin_asm_address): Update.
7471 * tui/tui-data.h (struct tui_locator_element): Remove.
7472 (union tui_which_element) <locator>: Remove.
7473 (struct tui_locator_window): New.
7474 (tui_locator_win_info_ptr): Change return type.
7475 * tui/tui-data.c (_locator): Change type.
7476 (tui_locator_win_info_ptr): Change return type.
7477 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7478 (tui_alloc_content): Add assert.
7479
489e9d8b
TT
74802019-06-25 Tom Tromey <tom@tromey.com>
7481
7482 * tui/tui-winsource.c
7483 (tui_exec_info_window::maybe_allocate_content): New method.
7484 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7485 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7486 (make_source_or_disasm_window): Add cast.
7487 * tui/tui-data.h (union tui_which_element) <simple_string>:
7488 Remove.
7489 (struct tui_source_info): New.
7490 (struct tui_source_window_base) <execution_info>: Change type.
7491 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7492 case, and add assert.
7493 (tui_alloc_content): Add assert.
7494
c3fabb7d
TT
74952019-06-25 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7498 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7499 * tui/tui-data.c (tui_alloc_win_info): Remove.
7500
bbc228ee
TT
75012019-06-25 Tom Tromey <tom@tromey.com>
7502
7503 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7504 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7505 can_highlight.
7506
5fcee43a
TT
75072019-06-25 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7510 make_visible_with_new_height method.
7511 (tui_win_info::make_visible_with_new_height): New method.
7512 (tui_source_window_base::do_make_visible_with_new_height)
7513 (tui_data_window::do_make_visible_with_new_height)
7514 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7515 (make_visible_with_new_height): Remove.
7516 (tui_resize_all, tui_adjust_win_heights): Use
7517 make_visible_with_new_height method.
7518 * tui/tui-data.h (struct tui_win_info)
7519 <do_make_visible_with_new_height, make_visible_with_new_height>:
7520 New methods.
7521 (struct tui_source_window_base, struct tui_data_window)
7522 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7523 methods.
7524
d83f1fe6
TT
75252019-06-25 Tom Tromey <tom@tromey.com>
7526
7527 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7528 method.
7529 (update_tab_width): Call update_tab_width method.
7530 * tui/tui-data.h (struct tui_win_info)
7531 (struct tui_source_window_base) <update_tab_width>: New methods.
7532
17374de4
TT
75332019-06-25 Tom Tromey <tom@tromey.com>
7534
7535 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7536 parameter.
7537 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7538 parameter.
7539 (tui_gen_win_info::make_visible): Update.
7540 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7541 parameter.
7542 * tui/tui-data.h (enum tui_box): New enum.
7543 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7544
f936bca2
TT
75452019-06-25 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7548 init_and_make_win for EXEC_INFO_WIN.
7549 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7550 longer inline.
7551 (struct tui_win_info) <~tui_win_info>: Inline.
7552 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7553 Don't declare.
7554 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7555 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7556 Remove.
7557 (tui_initialize_static_data): Update.
7558 (~tui_gen_win_info): Handle more cleanup here.
7559 (~tui_source_window_base): Delete "execution_info".
7560 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7561
d6ba6a11
TT
75622019-06-25 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-layout.c (make_command_window): Don't set
7565 can_highlight.
7566 (show_source_disasm_command): Call the reset method.
7567 (show_data): Don't set can_highlight. Call the reset method.
7568 (tui_gen_win_info::reset): Rename from init_gen_win_info
7569 (init_and_make_win): Simplify. Return tui_gen_win_info.
7570 (show_source_or_disasm_and_command): Call the reset method.
7571 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7572 (struct tui_cmd_window): Set can_highlight.
7573
48a3bd16
TT
75742019-06-25 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7577 from make_visible.
7578 (tui_make_visible, tui_make_invisible): Rewrite.
7579 (tui_win_info::make_visible): Remove.
7580 (tui_source_window_base::make_visible): Update.
7581 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7582 method. Moved from...
7583 (struct tui_win_info) <make_visible>: ...here.
7584
c3bd716f
TT
75852019-06-25 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-winsource.c
7588 (tui_source_window_base::do_scroll_horizontal): Remove direction
7589 parameter.
7590 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7591 direction parameter.
7592 * tui/tui-win.c (tui_win_info::forward_scroll)
7593 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7594 (tui_win_info::right_scroll): Update.
7595 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7596 direction parameter.
7597 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7598 direction parameter.
7599 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7600 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7601 Remove direction parameter.
7602 (struct tui_source_window_base, struct tui_source_window)
7603 (struct tui_disasm_window, struct tui_data_window)
7604 (struct tui_cmd_window): Update.
7605
21c32dca
TT
76062019-06-25 Tom Tromey <tom@tromey.com>
7607
7608 * tui/tui-winsource.h (tui_set_exec_info_content)
7609 (tui_show_exec_info_content, tui_erase_exec_info_content)
7610 (tui_clear_exec_info_content, tui_update_exec_info): Change
7611 argument to tui_source_window_base.
7612 * tui/tui-winsource.c (tui_set_exec_info_content)
7613 (tui_show_exec_info_content, tui_erase_exec_info_content)
7614 (tui_clear_exec_info_content, tui_update_exec_info): Change
7615 argument to tui_source_window_base.
7616
73fbdc65
TT
76172019-06-25 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7620 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7621
33325343
TT
76222019-06-25 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7625 check.
7626
29d2c474
TT
76272019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7630 type to void.
7631 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7632 type to void.
7633 * tui/tui-source.c (tui_set_source_content): Update.
7634 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7635
152f3f4b
TT
76362019-06-25 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-win.c (window_name_completer, tui_set_focus)
7639 (tui_all_windows_info): Use name method.
7640 * tui/tui-data.h (struct tui_gen_win_info)
7641 (struct tui_source_window, struct tui_disasm_window)
7642 (struct tui_data_window, struct tui_cmd_window) <name>: New
7643 method.
7644 (tui_win_name): Don't declare.
7645 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7646 (tui_win_name): Remove.
7647
be4da588
TT
76482019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-winsource.h (tui_update_source_window)
7651 (tui_update_source_window_as_is): Change parameter type.
7652 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7653 to be a tui_source_window_base.
7654 (tui_update_source_window_as_is): Likewise.
7655 * tui/tui-win.c (make_visible_with_new_height): Update.
7656
5b81daba
TT
76572019-06-25 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-winsource.c (tui_erase_source_content)
7660 (tui_show_source_content, tui_show_exec_info_content)
7661 (tui_erase_exec_info_content): Use refresh_window method.
7662 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7663 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7664 from tui_refresh_win.
7665 (tui_data_window::refresh_window): New method.
7666 (tui_win_info::refresh, tui_source_window_base::refresh)
7667 (tui_refresh_all): Use refresh_window method.
7668 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7669 method.
7670 * tui/tui-regs.c (tui_display_register): Call refresh_window
7671 method.
7672 * tui/tui-layout.c (show_source_disasm_command)
7673 (show_source_or_disasm_and_command): Call refresh_window method.
7674 * tui/tui-data.h (struct tui_gen_win_info)
7675 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7676 New method.
7677
cb2ce893
TT
76782019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui.c (tui_rl_other_window, tui_enable)
7681 (tui_is_window_visible, tui_get_command_dimension): Update.
7682 * tui/tui-winsource.c (tui_update_source_window_as_is)
7683 (tui_clear_source_content, tui_erase_source_content)
7684 (tui_show_source_line, tui_source_window_base::refill)
7685 (tui_source_window_base::do_scroll_horizontal)
7686 (tui_source_window_base::set_is_exec_point_at)
7687 (tui_update_breakpoint_info, tui_set_exec_info_content)
7688 (tui_alloc_source_buffer, tui_line_is_displayed)
7689 (tui_addr_is_displayed): Update.
7690 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7691 (tui_check_and_display_highlight_if_needed)
7692 (tui_win_info::make_visible, tui_win_info::refresh)
7693 (tui_refresh_all): Update.
7694 * tui/tui-windata.c (tui_first_data_item_displayed)
7695 (tui_delete_data_content_windows, tui_erase_data_content)
7696 (tui_display_all_data, tui_data_window::refresh_all)
7697 (tui_check_data_values): Update.
7698 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7699 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7700 (tui_win_info::backward_scroll, tui_refresh_all_win)
7701 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7702 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7703 (tui_source_window_base::set_new_height)
7704 (tui_data_window::set_new_height)
7705 (make_invisible_and_set_new_height)
7706 (make_visible_with_new_height, new_height_ok)
7707 (parse_scrolling_args): Update.
7708 * tui/tui-stack.c (tui_show_frame_info): Update.
7709 * tui/tui-source.c (tui_set_source_content)
7710 (tui_set_source_content_nil, tui_source_is_displayed)
7711 (tui_source_window::do_scroll_vertical): Update.
7712 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7713 (tui_display_registers_from, tui_display_reg_element_at_line)
7714 (tui_check_register_values, tui_reg_command): Update.
7715 * tui/tui-layout.c (tui_default_win_height)
7716 (show_source_disasm_command, show_data, init_and_make_win)
7717 (show_source_or_disasm_and_command): Update.
7718 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7719 (tui_redisplay_readline, tui_mld_flush)
7720 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7721 (tui_getc): Update.
7722 * tui/tui-disasm.c (tui_set_disassem_content)
7723 (tui_disasm_window::do_scroll_vertical): Update.
7724 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7725 Now virtual.
7726 (struct tui_win_info): Derive from tui_gen_win_info.
7727 <~tui_win_info>: Mark as override.
7728 <generic>: Remove member.
7729 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7730 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7731 (~tui_data_window, ~tui_win_info)
7732 (tui_free_all_source_wins_content): Update.
7733 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7734
ab313b35
TT
77352019-06-25 Tom Tromey <tom@tromey.com>
7736
7737 * tui/tui-layout.c (init_and_make_win): Use new.
7738 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7739 destructor, initializers.
7740 (tui_alloc_generic_win_info): Don't declare.
7741 * tui/tui-data.c (_locator): Add argument to constructor.
7742 (source_win, disasm_win): New globals.
7743 (exec_info): Remove.
7744 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7745 Update.
7746 (tui_alloc_generic_win_info): Remove.
7747 (init_content_element): Use new.
7748 (tui_win_info::tui_win_info): Update.
7749 (free_content_elements) <case DATA_WIN>: Use delete.
7750
dc2c33e4
TT
77512019-06-25 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7754 * tui/tui-windata.c (tui_first_data_item_displayed)
7755 (tui_delete_data_content_windows): Update.
7756 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7757 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7758 (tui_display_registers_from, tui_check_register_values): Update.
7759 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7760 pointer.
7761 * tui/tui-data.c (init_content_element): Update. Allocate the new
7762 window.
7763 (tui_free_data_content): Update.
7764 (free_content_elements) <case DATA_WIN>: Free the window.
7765
214a5cbe
TT
77662019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7769 Update.
7770 * tui/tui-layout.c (make_command_window)
7771 (show_source_disasm_command, show_data, init_and_make_win)
7772 (show_source_or_disasm_and_command): Update.
7773 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7774 method.
7775 <can_highight, is_highlighted>: Now bool.
7776 (tui_set_win_highlight): Don't declare.
7777 * tui/tui-data.c (tui_set_win_highlight): Remove.
7778
8e2daf15
TT
77792019-06-25 Tom Tromey <tom@tromey.com>
7780
7781 * tui/tui-wingeneral.c (make_visible): Remove check of window
7782 type.
7783
8903bd8a
TT
77842019-06-25 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-win.c (tui_win_info::max_height)
7787 (tui_cmd_window::max_height): New methods.
7788 (new_height_ok): Call max_height.
7789 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7790 <max_height>: New method.
7791
3f02ce1e
TT
77922019-06-25 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-win.c (tui_source_window_base::set_new_height)
7795 (tui_data_window::set_new_height): New methods.
7796 (make_invisible_and_set_new_height): Call set_new_height method.
7797 * tui/tui-data.h (struct tui_win_info)
7798 (struct tui_source_window_base, struct tui_data_window)
7799 <set_new_height>: New method.
7800
1825f487
TT
78012019-06-25 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7804 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7805 tui_refresh_data_win.
7806 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7807 method.
7808 (tui_refresh_all_win): Call the refresh_all method.
7809 (tui_set_focus): Likewise.
7810 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7811 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7812 Likewise.
7813
ad54d15b
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-winsource.h (tui_refill_source_window)
7817 (tui_set_is_exec_point_at): Don't declare.
7818 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7819 (tui_source_window_base::refill): Rename from
7820 tui_refill_source_window.
7821 (tui_source_window_base::do_scroll_horizontal): Update.
7822 (tui_source_window_base::set_is_exec_point_at): Rename from
7823 tui_set_is_exec_point_at.
7824 (tui_update_all_breakpoint_info): Update.
7825 * tui/tui-stack.c (tui_show_frame_info): Update.
7826 * tui/tui-layout.c (show_data): Add cast.
7827 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7828 * tui/tui-data.h (struct tui_source_window_base) <refill,
7829 set_is_exec_point_at>: New methods.
7830 (tui_source_windows, tui_add_to_source_windows): Update types.
7831 (tui_add_to_source_windows): Remove redundant declaration.
7832 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7833 (tui_source_windows): Change return type.
7834 (tui_clear_source_windows_detail): Update.
7835 (tui_add_to_source_windows): Change type of parameter.
7836 (tui_free_all_source_wins_content): Update.
7837
2042b506
TT
78382019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-wingeneral.c (tui_win_info::refresh)
7841 (tui_source_window_base::refresh): New methods.
7842 (tui_refresh_all): Call the refresh method.
7843 * tui/tui-data.h (struct tui_win_info)
7844 (struct tui_source_window_base) <refresh>: New method.
7845
56122977
TT
78462019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui.h (tui_is_window_visible): Return bool.
7849 * tui/tui.c (tui_is_window_visible): Return bool.
7850 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7851 (tui_make_visible, tui_make_invisible)
7852 (tui_win_info::make_visible)
7853 (tui_source_window_base::make_visible, make_all_visible)
7854 (tui_make_all_visible, tui_make_all_invisible): Update.
7855 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7856 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7857 bool.
7858 (struct tui_win_info, struct tui_source_window_base)
7859 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7860 * tui/tui-data.c (tui_init_generic_part): Update.
7861
cda37efb
TT
78622019-06-25 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7865 (tui_source_window_base::make_visible): New methods.
7866 (make_all_visible): Make method call.
7867 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7868 (struct tui_source_window_base, struct tui_cmd_window): Override
7869 make_visible.
7870 (tui_win_is_source_type): Don't declare.
7871 * tui/tui-data.c (tui_win_is_source_type): Remove.
7872
6a0ee02c
TT
78732019-06-25 Tom Tromey <tom@tromey.com>
7874
7875 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7876 NULL check.
7877
63901aec
TT
78782019-06-25 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7881 Inline constructor. Add initializers for members.
7882 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7883 constructors; now inline in class.
7884
ceb13a13
TT
78852019-06-25 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-regs.c (tui_show_registers): Update.
7888 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7889 bool.
7890 * tui/tui-data.c (tui_data_window::clear_detail)
7891 (tui_data_window): Update.
7892
238eb706
TT
78932019-06-25 Tom Tromey <tom@tromey.com>
7894
7895 * tui/tui-windata.c (tui_display_all_data)
7896 (tui_display_data_from_line, tui_display_data_from)
7897 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7898 Update.
7899 * tui/tui-regs.c (tui_last_regs_line_no)
7900 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7901 (tui_show_registers, tui_show_register_group)
7902 (tui_display_registers_from, tui_display_reg_element_at_line)
7903 (tui_display_registers_from_line, tui_check_register_values)
7904 (tui_reg_next, tui_reg_prev): Update.
7905 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7906 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7907 tui_data_window.
7908 (struct tui_win_info) <detail>: Remove. Add new fields from
7909 tui_data_info.
7910 (TUI_DATA_WIN): Add cast.
7911 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7912 (~tui_data_window): Simplify.
7913
81491aa0
TT
79142019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-layout.c (show_source_disasm_command)
7917 (show_source_or_disasm_and_command): Update.
7918 * tui/tui-io.c (update_cmdwin_start_line)
7919 (tui_redisplay_readline): Update.
7920 * tui/tui-data.h (struct tui_command_info): Remove.
7921 (struct tui_win_info) <detail>: Remove command_info member.
7922 (struct tui_data_window) <start_line>: New member, from
7923 tui_command_info.
7924 (TUI_CMD_WIN): Add casts.
7925
e6e41501
TT
79262019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-winsource.c (tui_update_source_window)
7929 (tui_refill_source_window)
7930 (tui_source_window_base::do_scroll_horizontal)
7931 (tui_update_breakpoint_info, tui_set_exec_info_content)
7932 (tui_show_exec_info_content, tui_erase_exec_info_content)
7933 (tui_clear_exec_info_content): Update.
7934 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7935 Update.
7936 * tui/tui-win.c (make_invisible_and_set_new_height)
7937 (make_visible_with_new_height): Update.
7938 * tui/tui-source.c (tui_set_source_content)
7939 (tui_show_symtab_source): Update.
7940 * tui/tui-layout.c (extract_display_start_addr)
7941 (show_source_disasm_command, show_data)
7942 (make_source_or_disasm_window)
7943 (show_source_or_disasm_and_command): Update.
7944 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7945 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7946 "gdbarch".
7947 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7948 to tui_source_window_base.
7949 (struct tui_win_info) <detail>: Remove source_info member.
7950 (struct tui_source_window_base) <has_locator>: Inline.
7951 Move contents from tui_source_info; rename has_locator member to
7952 m_has_locator.
7953 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7954 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7955 header file.
7956 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7957 Simplify.
7958 (tui_free_all_source_wins_content): Cast to
7959 tui_source_window_base.
7960
44f0e208
TT
79612019-06-25 Tom Tromey <tom@tromey.com>
7962
7963 * tui/tui-win.c (make_invisible_and_set_new_height)
7964 (make_visible_with_new_height): Call has_locator method.
7965 * tui/tui-layout.c (show_source_disasm_command, show_data)
7966 (show_source_or_disasm_and_command): Update for bool change.
7967 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7968 (tui_win_info) <has_locator>: New method.
7969 (struct tui_source_window_base) <has_locator>: New method.
7970 (tui_win_has_locator): Don't declare.
7971 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7972 from tui_win_has_locator.
7973 (tui_source_window_base): Use false, not FALSE.
7974
7778b912
TT
79752019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7978 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7979 clear_detail method directly.
7980 (tui_clear_win_detail): Remove.
7981
f83d391c
TT
79822019-06-25 Tom Tromey <tom@tromey.com>
7983
7984 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7985 "this", not TUI_DISASM_WIN.
7986
13446e05
TT
79872019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7990 declare.
7991 * tui/tui-winsource.c
7992 (tui_source_window_base::do_scroll_horizontal): Rename from
7993 tui_horizontal_source_scroll.
7994 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7995 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7996 from tui_vertical_data_scroll.
7997 * tui/tui-win.h (tui_scroll): Don't declare.
7998 * tui/tui-win.c (tui_win_info::forward_scroll)
7999 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8000 (tui_win_info::right_scroll): Rename and update.
8001 (tui_scroll_forward_command, tui_scroll_backward_command)
8002 (tui_scroll_left_command, tui_scroll_right_command): Update.
8003 (tui_scroll): Remove.
8004 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8006 from tui_vertical_source_scroll.
8007 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8008 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8009 from tui_vertical_disassem_scroll.
8010 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8011 do_scroll_horizontal>: New methods.
8012 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8013 Likewise.
8014 (struct tui_source_window_base): Add do_scroll_horizontal.
8015 (struct tui_source_window, struct tui_disasm_window): Add
8016 do_scroll_vertical.
8017 (struct tui_data_window, struct tui_cmd_window): Add
8018 do_scroll_horizontal and do_scroll_vertical.
8019 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8020
5cf82909
TT
80212019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-data.h (struct tui_source_window_base): New struct.
8024 (struct tui_source_window): Derive from tui_source_window_base.
8025 (struct tui_disasm_window): New struct.
8026 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8027 from tui_source_window::clear_detail.
8028 (tui_source_window_base): Rename from tui_source_window.
8029 (~tui_source_window_base): Rename from ~tui_source_window.
8030 (tui_alloc_win_info): Create a tui_disasm_window.
8031
ee1d42d6
TT
80322019-06-25 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-data.h (struct tui_source_window)
8035 (struct tui_data_window): Declare destructors.
8036 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8037 destructors.
8038 (tui_win_info): Simplify.
8039
b4eb2452
TT
80402019-06-25 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-winsource.c (tui_display_main)
8043 (tui_update_source_windows_with_addr)
8044 (tui_update_all_breakpoint_info): Update.
8045 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8046 (new_height_ok, parse_scrolling_args): Update.
8047 * tui/tui-stack.c (tui_show_frame_info): Update.
8048 * tui/tui-data.h (struct tui_list): Remove.
8049 (tui_source_windows): Return a reference to a std::vector.
8050 * tui/tui-data.c (source_windows): Now a std::vector.
8051 (tui_source_windows): Change return type.
8052 (tui_clear_source_windows): Rewrite.
8053 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8054 (tui_free_all_source_wins_content): Rewrite.
8055
8761a91b
TT
80562019-06-25 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8059 (struct tui_data_window, struct tui_cmd_window): Declare
8060 clear_detail method.
8061 * tui/tui-data.c (tui_source_window::clear_detail)
8062 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8063 methods.
8064 (tui_clear_win_detail): Simplify.
8065
0ed69eda
TT
80662019-06-25 Tom Tromey <tom@tromey.com>
8067
8068 * tui/tui-layout.c (make_source_window, make_disasm_window)
8069 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8070 Return the new window.
8071 (show_source_disasm_command, show_data)
8072 (show_source_or_disasm_and_command): Update.
8073
82432e10
TT
80742019-06-25 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8077 parameter. Return the new window.
8078 (show_source_disasm_command): Update and remove NULL check.
8079 (show_source_or_disasm_and_command): Update.
8080
ec328aa5
TT
80812019-06-25 Tom Tromey <tom@tromey.com>
8082
8083 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8084
33b906ab
TT
80852019-06-25 Tom Tromey <tom@tromey.com>
8086
8087 * tui/tui-data.h (struct tui_win_info): Make constructor
8088 protected. Make destructor virtual. Add initializers.
8089 (tui_source_window, tui_data_window, tui_cmd_window): New
8090 classes.
8091 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8092 constructor. Add "type" parameter.
8093 (tui_source_window, tui_data_window, tui_cmd_window): New
8094 constructors.
8095 (tui_alloc_win_info): Instantiate the appropriate subclass.
8096
e7e11af4
TT
80972019-06-25 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-win.c (tui_resize_all): Use delete.
8100 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8101 destructor.
8102 (tui_free_window): Don't declare.
8103 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8104 Update.
8105
6792b55e
TT
81062019-06-25 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-data.h (struct tui_win_info): Add constructor.
8109 * tui/tui-data.c (tui_alloc_win_info): Use new.
8110 (tui_free_window): Use delete.
8111
f95675e1
TT
81122019-06-22 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8115 declare.
8116 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8117
5bff081c
TT
81182019-06-22 Tom Tromey <tom@tromey.com>
8119
8120 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8121 declare.
8122 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8123
47e3f474
TV
81242019-06-22 Tom de Vries <tdevries@suse.de>
8125
8126 * dwarf2read.c (create_addrmap_from_aranges)
8127 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8128 instead of '%zu'.
8129
fd5866f6
SM
81302019-06-21 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * dwarf2read.h (dwarf2_section_info_def): Remove.
8133 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8134 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8135 std::vector<dwarf2_section_info>.
8136 (struct dwo_file) <~dwo_file>: Remove.
8137 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8138 types field.
8139 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8140 (dwarf2_read_debug_names): Likewise.
8141 (create_debug_types_hash_table): Change parameter type to
8142 array_view, adjust code accordingly.
8143 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8144 (partial_die_info::fixup): Likewise.
8145 (determine_prefix): Likewise.
8146 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8147
fb1eb2f9
SM
81482019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8149
8150 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8151 gdb_bfd_ref_ptr.
8152 <~dwo_file>: Remove call to gdb_bfd_unref.
8153 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8154 gdb_bfd_ref_ptr::get.
8155
51ac9db5
SM
81562019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8157
8158 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8159 type to htab_up.
8160 * dwarf2read.c (struct dwo_file): Initialize fields.
8161 <~dwo_file>: New.
8162 (free_dwo_file): Remove, move content to ~dwo_file.
8163 (struct dwo_file_deleter): Remove.
8164 (dwo_file_up>: Remove custom deleter.
8165 (free_dwo_files): Remove.
8166 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8167 dwo_files.
8168 (process_skeletonless_type_units): Call unique_ptr::get.
8169 (allocate_dwo_file_hash_table): Add deleter to created hash
8170 table. Change return type to htab_up.
8171 (lookup_dwo_file_slot): Don't memset dwo_file, call
8172 unique_ptr::get.
8173 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8174 (create_dwo_unit_in_dwp_v2): Likewise.
8175 (open_and_init_dwo_file): Likewise.
8176 (free_dwo_file_from_slot): Remove.
8177
dc4ccb6f
SM
81782019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8179
8180 * dwarf2read.h (struct dwarf2_section_info) <readin,
8181 is_virtual>: Change type to bool.
8182 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8183 true instead of 1.
8184
e6a1c5cb
TT
81852019-06-19 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-data.h (tui_init_content_element): Don't declare.
8188
6f6ffbeb
TT
81892019-06-19 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-data.h (tui_init_win_info): Don't declare.
8192
f23f598e
TV
81932019-06-19 Tom de Vries <tdevries@suse.de>
8194
8195 * dwarf2read.h (abstract_to_concrete): Change type to
8196 std::unordered_map<sect_offset, std::vector<sect_offset>,
8197 gdb::hash_enum<sect_offset>>.
8198
680e1bee
TT
81992019-06-19 Tom Tromey <tromey@adacore.com>
8200
8201 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8202 EVAL_AVOID_SIDE_EFFECTS specially.
8203
dcf37923
TT
82042019-06-19 Tom Tromey <tromey@adacore.com>
8205
8206 * source-cache.c (highlighter): New global.
8207 (source_cache::get_source_lines): Create a highlighter on demand.
8208
494986d5
AB
82092019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * defs.h (deprecated_interactive_hook): Delete declaration.
8212 * interps.c (clear_interpreter_hooks): Remove use of
8213 deprecated_interactive_hook.
8214 * top.c (deprecated_interactive_hook): Delete definition.
8215 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8216
3360b6e7
TV
82172019-06-18 Tom de Vries <tdevries@suse.de>
8218
8219 PR gdb/24515
8220 * dwarf2read.h (abstract_to_concrete): Change type from
8221 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8222 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8223 * dwarf2read.c (read_variable): Update.
8224 (dwarf2_fetch_die_loc_sect_off): Update.
8225
310b3441
TV
82262019-06-17 Tom de Vries <tdevries@suse.de>
8227
8228 PR gdb/24617
8229 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8230 accessing parent[parent_len - 1].
8231
ba9777be
PP
82322019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8233
8234 PR gdb/24364
8235 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8236 call dtrace_process_dof with NULL dof.
8237
2b9f6e89
TV
82382019-06-16 Tom de Vries <tdevries@suse.de>
8239
8240 PR gdb/24445
8241 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8242
431b3ead
TT
82432019-06-16 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8246 (make_all_visible): Use address of member.
8247
d04b44a1
TT
82482019-06-16 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8251 (tui_free_window, free_content, free_content_elements): Remove
8252 unnecessary cast.
8253 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8254 cast.
8255 * tui/tui-regs.c (tui_show_register_group)
8256 (tui_display_registers_from, tui_display_reg_element_at_line):
8257 Remove unnecessary cast.
8258
bf5142e7
AB
82592019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8260
8261 * linux-nat.c (normal_mask): Delete.
8262 (_initialize_linux_nat): Don't initialise normal_mask.
8263
c4973306
SM
82642019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8265
8266 PR gdb/24445
8267 * dwarf-index-write.h (write_psymtabs_to_index): Add
8268 dwz_basename parameter.
8269 * dwarf-index-write.c (write_gdbindex): Move file writing to
8270 write_gdbindex_1. Change return type void.
8271 (assert_file_size): Move up, remove filename parameter.
8272 (write_gdbindex_1): New function.
8273 (write_debug_names): Change return type to void, call
8274 assert_file_size.
8275 (struct index_wip_file): New struct.
8276 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8277 file logic to index_wip_file. Write index for dwz file if
8278 needed.
8279 (save_gdb_index_command): Pass basename of dwz file, if present.
8280 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8281 build-id of dwz file, if present.
8282 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8283 (dwarf2_get_dwz_file): Likewise.
8284 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8285 (dwarf2_get_dwz_file): Likewise.
8286
395f9c91
TT
82872019-06-16 Tom Tromey <tom@tromey.com>
8288
8289 * coffread.c (process_coff_symbol): Use xstrdup.
8290 * value.c (create_internalvar): Use xstrdup.
8291
cafb3438
TT
82922019-06-16 Tom Tromey <tom@tromey.com>
8293
8294 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8295 * breakpoint.c (stopin_command, stopat_command)
8296 (until_break_command, decode_location_default): Remove unnecessary
8297 cast.
8298 * utils.c (subset_compare): Remove unnecessary cast.
8299 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8300 cast.
8301 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8302 cast.
8303 * infcmd.c (path_command): Remove unnecessary cast.
8304 * coffread.c (decode_type): Remove unnecessary cast.
8305 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8306 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8307 * tui/tui-stack.c (tui_show_locator_content)
8308 (tui_show_frame_info): Remove unnecessary cast.
8309 * tui/tui-win.c (tui_scroll_forward_command)
8310 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8311 (parse_scrolling_args): Remove unnecessary cast.
8312 * tui/tui-data.c (init_win_info, tui_del_window)
8313 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8314 (free_content_elements): Remove unnecessary cast.
8315 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8316 unnecessary cast.
8317 * tui/tui-source.c (tui_set_source_content)
8318 (tui_vertical_source_scroll): Remove unnecessary cast.
8319 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8320 cast.
8321 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8322 * tui/tui-regs.c (tui_display_registers_from)
8323 (tui_display_register): Remove unnecessary cast.
8324 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8325 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8326 (make_visible): Remove unnecessary cast.
8327 * tui/tui-winsource.c (tui_erase_source_content)
8328 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8329 unnecessary cast.
8330 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8331 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8332 * stabsread.c (read_type, read_array_type, read_range_type):
8333 Remove unnecessary cast.
8334 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8335 (parse_symbol, parse_type, upgrade_type, parse_external)
8336 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8337 unnecessary cast.
8338 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8339
730ead81
TT
83402019-06-16 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-data.c (tui_alloc_generic_win_info)
8343 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8344 checks.
8345
584a927c
AB
83462019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8347 Andrew Burgess <andrew.burgess@embecosm.com>
8348
8349 * f-typeprint.c (f_print_type): Don't return early for not
8350 associated or not allocated types.
8351 (f_type_print_varspec_suffix): Add print_rank parameter and print
8352 ranks of array types in case they dangling.
8353 (f_type_print_base): Add print_rank parameter.
8354
30056ea0
AB
83552019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 * NEWS: Mention new MI commands.
8358 * break-catch-throw.c (enum exception_event_kind): Move to
8359 breakpoint.h.
8360 (print_mention_exception_catchpoint): Output text as a single
8361 message.
8362 (catch_exception_command_1): Rename to...
8363 (catch_exception_event): ...this, make non-static, update header
8364 command, and change some parameter types.
8365 (catch_catch_command): Update for changes to
8366 catch_exception_command_1.
8367 (catch_throw_command): Likewise.
8368 (catch_rethrow_command): Likewise.
8369 * breakpoint.c (enum exception_event_kind): Delete.
8370 * breakpoint.h (enum exception_event_kind): Moved here from
8371 break-catch-throw.c.
8372 (catch_exception_event): Declare.
8373 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8374 (mi_cmd_catch_throw): New function.
8375 (mi_cmd_catch_rethrow): New function.
8376 (mi_cmd_catch_catch): New function.
8377 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8378 'catch-catch' entries.
8379 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8380 (mi_cmd_catch_rethrow): Declare.
8381 (mi_cmd_catch_catch): Declare.
8382
ec8e2b6d
AB
83832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8384
8385 * annotate.c (annotate_source_line): Change return type to void,
8386 update implementation to match.
8387 * annotate.h (annotate_source_line): Change return type to void,
8388 update header comment.
8389 * stack.c (print_frame_info): Don't change what frame information
8390 is printed based on whether annotations are on or not.
8391
0d3abd8c
AB
83922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8393
8394 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8395 (annotate_source): Make static.
8396 (annotate_source_line): Moved from source.c and renamed from
8397 identify_source_line. Update the return type.
8398 * annotate.h (annotate_source): Delete declaration.
8399 (annotate_source_line): Declaration moved from source.h, and
8400 renamed from identify_source_line. Return type updated.
8401 * source.c (identify_source_line): Moved to annotate.c and renamed
8402 to annotate_source_line.
8403 (info_line_command): Remove check of annotation_level.
8404 * source.h (identify_source_line): Move declaration to annotate.h
8405 and rename to annotate_source_line.
8406 * stack.c: Add 'annotate.h' include.
8407 (print_frame_info): Remove check of annotation_level before
8408 calling annotate_source_line.
8409
00df30ae
AB
84102019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * source-cache.c (source_cache::get_plain_source_lines): Use
8413 open_source_file_with_line_charpos instead of just
8414 open_source_file, remove call to find_source_lines.
8415 (source_cache::get_source_lines): Likewise.
8416 * source.c (find_source_lines): Make static.
8417 (get_filename_and_charpos): Renamed into...
8418 (open_source_file_with_line_charpos): ..this along with changes to
8419 return a scoped_fd, and some other minor clean ups.
8420 (identify_source_line): Use open_source_file_with_line_charpos.
8421 (search_command_helper): Use open_source_file_with_line_charpos
8422 instead of just open_source_file, remove call to
8423 find_source_lines.
8424 * source.h (open_source_file_with_line_charpos): Declare new
8425 function.
8426 (find_source_lines): Delete declaration.
8427
afda45a2
AB
84282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * source.c (get_filename_and_charpos): Remove fullname
8431 parameter.
8432 (identify_source_line): Update call to get_filename_and_charpos.
8433
0735b091
TT
84342019-06-14 Tom Tromey <tromey@adacore.com>
8435
8436 PR gdb/24502:
8437 * ui-style.h (skip_ansi_escape): Update comment.
8438 * ui-file.h (class no_terminal_escape_file): New class.
8439 * ui-file.c (no_terminal_escape_file::write)
8440 (no_terminal_escape_file::puts): New methods.
8441 * cli/cli-logging.c (handle_redirections): Use
8442 no_terminal_escape_file.
8443
52ce35e2
TT
84442019-06-14 Tom Tromey <tromey@adacore.com>
8445
8446 * NEWS: Move convenience variable news above Python news.
8447
73cc7272
TT
84482019-06-14 Tom Tromey <tom@tromey.com>
8449
8450 * gnulib: Move directory to top-level.
8451 * configure.ac: Don't configure gnulib.
8452 * configure: Rebuild.
8453 * common/common-defs.h: Use new path to gnulib.
8454 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8455 (GNULIB_H): Remove.
8456 (INCGNU): Look in new gnulib location.
8457 (HFILES_NO_SRCDIR): Remove gnulib files.
8458 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8459 (generated_files): Remove GNULIB_H.
8460 ($(LIBGNU), all-lib): Remove targets.
8461 (distclean): Don't mention GNULIB_BUILDDIR.
8462 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8463
f5686554
TT
84642019-06-14 Tom Tromey <tromey@adacore.com>
8465
8466 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8467 Warn if symbol file does not provide any symbols.
8468
a0c1ffed
TT
84692019-06-14 Tom Tromey <tromey@adacore.com>
8470
8471 * source.c (find_and_open_source): Respect basenames_may_differ.
8472
7c39e397
AB
84732019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8474
8475 * annotate.c (annotate_breakpoints_invalid): Make use of
8476 scoped_restore_terminal_state.
8477 (annotate_frames_invalid): Likewise.
8478
f411722c
TT
84792019-06-14 Tom Tromey <tromey@adacore.com>
8480
8481 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8482 allow assignment to an internalvar.
8483
4268ec18
TT
84842019-06-14 Tom Tromey <tromey@adacore.com>
8485
8486 * ada-lex.l: Allow "_" in attribute names.
8487
abdb711e
TT
84882019-06-14 Tom Tromey <tromey@adacore.com>
8489
8490 PR gdb/24653:
8491 * regcache.c (registers_changed): Don't call alloca.
8492 * top.c (execute_command): Don't call alloca.
8493
4c048731
PA
84942019-06-13 Pedro Alves <palves@redhat.com>
8495
8496 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8497 'expression'. When parsing an expression, error out if there's
8498 junk after "unlimited".
8499 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8500 (do_set_command): Adjust calls to is_unlimited_literal.
8501
66eb1ed3
PA
85022019-06-13 Pedro Alves <palves@redhat.com>
8503
8504 * compile/compile.c (make_compile_options_def_group): Add braces
8505 around array_view initializer.
8506 * thread.c (make_thread_apply_all_options_def_group)
8507 (make_thread_apply_all_options_def_group): Likewise.
8508
3345721a
PA
85092019-06-13 Pedro Alves <palves@redhat.com>
8510
8511 * NEWS (New commands): Mention "maint test-options
8512 require-delimiter", "maint test-options unknown-is-error", "maint
8513 test-options unknown-is-operand" and "maint show
8514 test-options-completion-result".
8515 (New command options, command completion): New section.
8516 (Completion improvements): New section.
8517 Mention that you can abbreviate "unlimited".
8518
6206060d
PA
85192019-06-13 Pedro Alves <palves@redhat.com>
8520
8521 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8522 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8523 * unittests/cli-utils-selftests.c (test_parse_flags)
8524 (test_parse_flags_qcs): Delete.
8525 (test_cli_utils): Don't call deleted functions.
8526
6665660a
PA
85272019-06-13 Pedro Alves <palves@redhat.com>
8528
8529 * thread.c: Include "cli/cli-option.h".
8530 (tp_array_compar_ascending): Global.
8531 (tp_array_compar): Delete function.
8532 (tp_array_compar_ascending, tp_array_compar_descending): New
8533 functions.
8534 (ascending_option_def, qcs_flag_option_def)
8535 (thr_qcs_flags_option_defs)
8536 (make_thread_apply_all_options_def_group)
8537 (make_thread_apply_options_def_group): New.
8538 (thread_apply_all_command): Use gdb::option::process_options.
8539 (thread_apply_command_completer)
8540 (thread_apply_all_command_completer): New.
8541 (thread_apply_command): Use gdb::option::process_options.
8542 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8543 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8544 to generate help text of "thread apply". Adjust "taas"'s help.
8545 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8546 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8547
f7e13587
PA
85482019-06-13 Pedro Alves <palves@redhat.com>
8549
8550 * thread.c (thread_apply_command): Check for invalid TID with
8551 isdigit instead of !isalpha.
8552
5d707134
PA
85532019-06-13 Pedro Alves <palves@redhat.com>
8554
8555 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8556 (validate_flags_qcs): New.
8557 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8558 (validate_flags_qcs): Declare.
8559 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8560 (make_frame_apply_options_def_group): New.
8561 (frame_apply_command_count): Process options with
8562 gdb::option::process_options.
8563 (frame_apply_completer): New.
8564 (frame_apply_level_completer, frame_apply_all_completer)
8565 (frame_apply_completer): New.
8566 (_initialize_stack): Update help of "frame apply", "frame apply
8567 level", "frame apply all" and "faas" to mention supported options
8568 and install command completers.
8569 * stack.h (frame_apply_all_completer): Declare.
8570 * thread.c: Include "stack.h".
8571 (tfaas_command): Add "--".
8572 (_initialize_thread): Update help "tfaas" to mention supported
8573 options and install command completer.
8574
272d4594
PA
85752019-06-13 Pedro Alves <palves@redhat.com>
8576
8577 * completer.c (complete_nested_command_line): New.
8578 (gdb_completion_word_break_characters_throw): Add assertion.
8579 * completer.h (complete_nested_command_line): Declare.
8580
90a1ef87
PA
85812019-06-13 Pedro Alves <palves@redhat.com>
8582
8583 * stack.c (parse_backtrace_qualifiers): New.
8584 (backtrace_command): Use it.
8585 (backtrace_command_completer): Complete on qualifiers.
8586
d4c16835
PA
85872019-06-13 Pedro Alves <palves@redhat.com>
8588
8589 * frame.c: Include "cli/cli-option.h.
8590 (user_set_backtrace_options): New.
8591 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8592 Delete.
8593 (get_prev_frame): Adjust.
8594 (boolean_option_def, uinteger_option_def)
8595 (set_backtrace_option_defs): New.
8596 (_initialize_frame): Adjust and use
8597 gdb::option::add_setshow_cmds_for_options to install "set
8598 backtrace past-main" and "set backtrace past-entry".
8599 * frame.h: Include "cli/cli-option.h".
8600 (struct frame_print_options): Forward declare.
8601 (print_frame_arguments_all, print_frame_arguments_scalars)
8602 (print_frame_arguments_none): Declare.
8603 (print_entry_values): Delete declaration.
8604 (struct frame_print_options, user_frame_print_options): New.
8605 (struct set_backtrace_options): New.
8606 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8607 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8608 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8609 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8610 (list_args_or_locals): Add frame_print_options parameter.
8611 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8612 * python/py-framefilter.c (enumerate_args): Pass down
8613 USER_FRAME_PRINT_OPTIONS.
8614 * stack.c: Include "cli/cli-option.h".
8615 (print_frame_arguments_all, print_frame_arguments_scalars)
8616 (print_frame_arguments_none): Declare.
8617 (print_raw_frame_arguments, print_entry_values): Delete.
8618 (user_frame_print_options): New.
8619 (boolean_option_def, enum_option_def, frame_print_option_defs):
8620 New.
8621 (struct backtrace_cmd_options): New.
8622 (bt_flag_option_def): New.
8623 (backtrace_command_option_defs): New.
8624 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8625 (print_frame_arg, read_frame_arg, print_frame_args)
8626 (print_frame_info, print_frame): Add frame_print_options parameter
8627 and use it.
8628 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8629 (backtrace_command_1): Add frame_print_options and
8630 backtrace_cmd_options parameters and use them.
8631 (make_backtrace_options_def_group): New.
8632 (backtrace_command): Process command options with
8633 gdb::option::process_options.
8634 (backtrace_command_completer): New.
8635 (_initialize_stack): Extend "backtrace"'s help to mention
8636 supported options. Install completer for "backtrace".
8637 Install some settings commands with add_setshow_cmds_for_options.
8638
2daf894e
PA
86392019-06-13 Pedro Alves <palves@redhat.com>
8640
8641 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8642 and that "set/show print raw frame-arguments" are now deprecated.
8643
8644 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8645 command.
8646 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8647 * stack.c (_initialize_stack): Install "set/show print
8648 raw-frame-arguments", and deprecate "set/show print raw
8649 frame-arguments".
8650 * valprint.c (_initialize_valprint): Deprecate "set/show print
8651 raw".
8652
e6ed716c
PA
86532019-06-13 Pedro Alves <palves@redhat.com>
8654
8655 * compile/compile.c (struct compile_options): New.
8656 (compile_flag_option_def, compile_command_option_defs)
8657 (make_compile_options_def_group): New.
8658 (compile_file_command): Handle options with
8659 gdb::option::process_options.
8660 (compile_file_command_completer): New function.
8661 (compile_code_command): Handle options with
8662 gdb::option::process_options.
8663 (compile_code_command_completer): New function.
8664 (_initialize_compiler): Install completers for "compile code" and
8665 "compile file". Mention available options in "compile code" and
8666 "compile code"'s help.
8667 * completer.c (advance_to_completion_word): New, factored out from
8668 ...
8669 (advance_to_expression_complete_word_point): ... this.
8670 (advance_to_filename_complete_word_point): New.
8671 * completer.h (advance_to_filename_complete_word_point): New
8672 declaration.
8673
7d8062de
PA
86742019-06-13 Pedro Alves <palves@redhat.com>
8675
8676 * compile/compile.c: Include "cli/cli-option.h".
8677 (compile_print_value): Scope data pointer is now a
8678 value_print_options pointer; adjust.
8679 (compile_print_command): Process options. Scope data pointer is
8680 now a value_print_options pointer; adjust.
8681 (_initialize_compile): Update "compile print"'s help to include
8682 supported options. Install a completer for "compile print".
8683 * cp-valprint.c (show_vtblprint, show_objectprint)
8684 (show_static_field_print): Delete.
8685 (_initialize_cp_valprint): Don't install "set print
8686 static-members", "set print vtbl", "set print object" here.
8687 * printcmd.c: Include "cli/cli-option.h" and
8688 "common/gdb_optional.h".
8689 (print_command_parse_format): Rework to fill in a
8690 value_print_options instead of a format_data.
8691 (print_value): Change parameter type from format_data pointer to
8692 value_print_options reference. Adjust.
8693 (print_command_1): Process options. Adjust to pass down a
8694 value_print_options.
8695 (print_command_completer): New.
8696 (_initialize_printcmd): Install print_command_completer as
8697 handle_brkchars completer for the "print" command. Update
8698 "print"'s help to include supported options.
8699 * valprint.c: Include "cli/cli-option.h".
8700 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8701 here from cp-valprint.c.
8702 (boolean_option_def, uinteger_option_def)
8703 (value_print_option_defs, make_value_print_options_def_group):
8704 New. Use gdb::option::add_setshow_cmds_for_options to install
8705 "set print elements", "set print null-stop", "set print repeats",
8706 "set print pretty", "set print union", "set print array", "set
8707 print address", "set print symbol", "set print array-indexes".
8708 * valprint.h: Include <string> and "cli/cli-option.h".
8709 (make_value_print_options_def_group): Declare.
8710 (print_value): Change parameter type from format_data pointer to
8711 value_print_options reference.
8712 (print_command_completer): Declare.
8713
9d0faba9
PA
87142019-06-13 Pedro Alves <palves@redhat.com>
8715
8716 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8717 (COMMON_SFILES): Add maint-test-settings.c.
8718 * cli/cli-decode.c (boolean_enums): New global, factored out from
8719 ...
8720 (add_setshow_boolean_cmd): ... here.
8721 * cli/cli-decode.h (boolean_enums): Declare.
8722 * cli/cli-option.c: New file.
8723 * cli/cli-option.h: New file.
8724 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8725 factored out from ...
8726 (parse_cli_boolean_value(const char *)): ... this.
8727 (is_unlimited_literal): Change parameter type to pointer to
8728 pointer. Adjust and advance ARG pointer.
8729 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8730 (parse_cli_var_enum): New, factored out from ...
8731 (do_set_command): ... this. Adjust.
8732 * cli/cli-setshow.h (parse_cli_boolean_value)
8733 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8734 (parse_cli_var_enum): Declare.
8735 * cli/cli-utils.c: Include "cli/cli-option.h".
8736 (get_ulongest): New.
8737 * cli/cli-utils.h (get_ulongest): Declare.
8738 (check_for_argument): New overloads.
8739 * maint-test-options.c: New file.
8740
2c722807
PA
87412019-06-13 Pedro Alves <palves@redhat.com>
8742
8743 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8744 parse a range if "-" is at the end of the string.
8745
dee7b4c8
PA
87462019-06-13 Pedro Alves <palves@redhat.com>
8747
8748 * cli/cli-setshow.c (parse_auto_binary_operation)
8749 (parse_cli_boolean_value): Don't allow "o".
8750
dca0f6c0
PA
87512019-06-13 Pedro Alves <palves@redhat.com>
8752
8753 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8754 * NEWS: Mention maint test-settings KIND.
8755 * maint-test-settings.c: New file.
8756
597bf39d
PA
87572019-06-13 Pedro Alves <palves@redhat.com>
8758
8759 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8760 completer.
8761 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8762 "set" completers.
8763
48c410fb
PA
87642019-06-13 Pedro Alves <palves@redhat.com>
8765
8766 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8767 after item.
8768
93bcb043
PA
87692019-06-13 Pedro Alves <palves@redhat.com>
8770
8771 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8772
cbba3ecd
PA
87732019-06-13 Pedro Alves <palves@redhat.com>
8774
8775 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8776 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8777 call.
8778 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8779 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8780 calls.
8781 (check_for_argument): Skip spaces after argument.
8782
b9a3f842
PA
87832019-06-13 Pedro Alves <palves@redhat.com>
8784
8785 * thread.c (thread_apply_command): Adjust TID parsing.
8786 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8787 detected before end of string.
8788 (tid_is_in_list): Error out if LIST is invalid.
8789
3844e605
PA
87902019-06-13 Pedro Alves <palves@redhat.com>
8791
8792 * completer.c (complete_line_internal_1): Rewind completion word
8793 point.
8794 (completion_tracker::advance_custom_word_point_by): Change
8795 parameter type to int.
8796 * completer.h (completion_tracker::advance_custom_word_point_by):
8797 Likewise.
8798
00b56dbe
PA
87992019-06-13 Pedro Alves <palves@redhat.com>
8800
8801 * completer.c (advance_to_completion_word): Handle delimiters.
8802
d106773e
PA
88032019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8804
8805 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8806
08f10e02
TT
88072019-06-11 Tom Tromey <tom@tromey.com>
8808
8809 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8810 (xmalloc_failed): Move to alloc.c.
8811 * alloc.c: New file.
8812 * Makefile.in (COMMON_SFILES): Add alloc.c.
8813
1c7fe951
TT
88142019-06-11 Tom Tromey <tom@tromey.com>
8815
8816 * nat/linux-waitpid.c: Don't include server.h.
8817 (linux_debug): Remove.
8818 (my_waitpid): Update.
8819
89549d7f
TT
88202019-06-11 Tom Tromey <tromey@adacore.com>
8821
8822 * infcall.c (_initialize_infcall): Remove trailing newline from
8823 help.
8824 * user-regs.c (_initialize_user_regs): Remove trailing newline
8825 from help.
8826 * typeprint.c (_initialize_typeprint): Remove trailing newline
8827 from help.
8828 * reverse.c (_initialize_reverse): Remove trailing newlines from
8829 help.
8830 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8831 from help.
8832 * language.c (add_set_language_command): Remove trailing newline
8833 from help.
8834 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8835 help.
8836 * disasm.c (_initialize_disasm): Remove trailing newline from
8837 help.
8838 * top.c (init_main): Remove trailing newline from help.
8839 * interps.c (_initialize_interpreter): Remove trailing newline
8840 from help.
8841 * btrace.c (_initialize_btrace): Remove trailing newlines from
8842 help.
8843 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8844 from help.
8845 * python/python.c (_initialize_python): Remove trailing newline
8846 from help.
8847 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8848 help.
8849 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8850 from help. Reformat some text.
8851 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8852 from help.
8853 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8854 newline from help.
8855
86108c13
TT
88562019-06-11 Tom Tromey <tromey@adacore.com>
8857
8858 * darwin-nat.c (darwin_decode_exception_message)
8859 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8860
a7067863
AB
88612019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8862
8863 * valops.c (value_slice): Check for not allocated or not
8864 associated values.
8865
9ab08412
TV
88662019-06-10 Tom de Vries <tdevries@suse.de>
8867
8868 PR gdb/24618
8869 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8870 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8871 invalid.
8872
f19e22e9
TV
88732019-06-10 Tom de Vries <tdevries@suse.de>
8874
8875 PR gdb/24611
8876 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8877 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8878
e99f9db0
TV
88792019-06-10 Tom de Vries <tdevries@suse.de>
8880
8881 PR symtab/24545
8882 * symtab.c (struct demangled_name_entry): Add language field.
8883 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8884 static minimal symbol". Set and use language field.
8885
9bf7038b
TT
88862019-06-10 Tom Tromey <tromey@adacore.com>
8887
8888 * ada-lang.c (_initialize_ada_language): Update help text.
8889
422186a9
TT
88902019-06-10 Tom Tromey <tromey@adacore.com>
8891
8892 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8893 with a newline.
8894 * guile/guile.c (handle_boot_error): Don't end warning with a
8895 newline.
8896 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8897 warning with a newline.
8898 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8899 newline.
8900 (s12z_frame_cache): Likewise.
8901 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8902 a newline.
8903 * solib-svr4.c (disable_probes_interface): Don't end warning with
8904 a newline.
8905 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8906 newline.
8907 * python/python.c (do_finish_initialization): Don't end warning
8908 with a newline.
8909
25ce02ee
TT
89102019-06-10 Tom Tromey <tom@tromey.com>
8911
8912 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8913 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8914 gdbpy_enter.
8915
caa429d8
TT
89162019-06-10 Tom Tromey <tromey@adacore.com>
8917
8918 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8919 data.
8920 (elf_new_init): Don't call stabsread_new_init.
8921 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8922 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8923 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8924
81873cc8
TV
89252019-06-10 Tom de Vries <tdevries@suse.de>
8926
8927 PR symtab/16264
8928 PR symtab/24517
8929 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8930
4fa0265e
РИ
89312019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8932
8933 * source.c (find_and_open_source): Also rewrite relative file
8934 names.
8935
1a3da2cd
AB
89362019-04-26 Amos Bird <amosbird@gmail.com>
8937
8938 * annotate.c (annotate_thread_exited): Add "thread-exited"
8939 annotation.
8940
3847a7bf
TT
89412019-06-06 Tom Tromey <tromey@adacore.com>
8942
8943 * maint.h (class scoped_command_stats): Use
8944 DISABLE_COPY_AND_ASSIGN.
8945 <print_time>: New method.
8946 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8947 print_time.
8948 (scoped_command_stats::print_time): New method.
8949
312617a3
AB
89502019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8951
8952 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8953 instructions of lengths 6 or 8 bytes.
8954
b02f78f9
PA
89552019-06-04 Pedro Alves <palves@redhat.com>
8956
8957 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8958
8959 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8960 * breakpoint.c (condition_completer): Likewise.
8961 * cli/cli-dump.c (scan_expression): Likewise.
8962 * common/filestuff.c (mkdir_recursive): Likewise.
8963 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8964 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8965 (gdb_abspath): Likewise.
8966 * compile/compile-cplus-types.c
8967 (compile_cplus_instance::decl_name): Likewise.
8968 * completer.c (complete_explicit_location):
8969 (signal_completer, reg_or_group_completer_1): Likewise.
8970 * cp-support.c (cp_remove_params_if_any): Likewise.
8971 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8972 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8973 * infcmd.c (strip_bg_char): Likewise.
8974 * linespec.c (copy_token_string): Likewise.
8975 * mi/mi-main.c (output_cores): Likewise.
8976 * psymtab.c (psymtab_search_name):
8977 * symfile.c (test_set_ext_lang_command): Likewise.
8978 * target.c (target_fileio_read_stralloc): Likewise.
8979 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8980 * value.c (complete_internalvar): Likewise.
8981
e1f2e1a2
CB
89822019-06-04 Christian Biesinger <cbiesinger@google.com>
8983
8984 Add objfile property to gdb.Type.
d3238f7d
PA
8985 * NEWS: Mention Python API addition.
8986 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8987
e664d728
PW
89882019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8989
8990 * NEWS: Mention the new set|show style [title|highlight].
8991 Mention changes to "show style", "help" and "apropos".
8992
66d8c862
PW
89932019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8994
8995 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8996 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8997 instead of print_help_for_command.
8998 (print_doc_of_command): New function.
8999 (help_list): Add 'apropos -v word' suggestion.
9000 (print_help_for_command): Style the command name using title style.
9001 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9002 (_initialize_cli_cmds): Describe -v in apropos_command help.
9003
9303eb2f
PW
90042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9005
9006 * cli/cli-style.h (cli_style_option): Add name in constructor,
9007 add m_name class member, add constructor with intensity,
9008 add name class function.
9009 (cli_style_option::add_setshow_commands): Remove name argument.
9010 (highlight_style, title_style): New styles.
9011 * cli/cli-style.c (do_show): New function that shows a style
9012 characteristic styling the style name with itself.
9013 (set_style_name): New function.
9014 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9015 Update all callers according to the changes in cli/cli-style.h.
9016 * utils.h (fputs_highlighted): New function.
9017 * utils.c (fputs_highlighted): Likewise.
9018
e2c52041
PW
90192019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9020
9021 * NEWS: Mention new pipe command and new convenience variables.
9022
947d3946
PW
90232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9024
9025 * cli/cli-cmds.c (pipe_command): New function.
9026 (_initialize_cli_cmds): Call add_com for pipe_command.
9027 Define | as an alias for pipe.
9028 (exit_status_set_internal_vars): New function.
9029 (shell_escape): Call exit_status_set_internal_vars.
9030 cli/cli-decode.c (find_command_name_length): Recognize | as
9031 a single character command.
9032
b8fd0918
PW
90332019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9034
9035 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9036 top.c (execute_command_to_ui_file): New function, mostly a copy
9037 of execute_command_to_string.
9038 (execute_command_to_string): Implement by calling
9039 execute_command_to_ui_file.
9040
68bb5386
PW
90412019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9042
9043 * top.h (saved_command_line): Remove declaration.
9044 * top.c (previous_saved_command_line, previous_repeat_arguments):
9045 New variables.
9046 (saved_command_line): Make static, define together with other
9047 'repeat variables'.
9048 (dont_repeat): Clear repeat_arguments.
9049 (repeat_previous, get_saved_command_line, save_command_line):
9050 New functions.
9051 (gdb_init): Initialize saved_command_line
9052 and previous_saved_command_line.
9053 * main.c (captured_main_1): Remove saved_command_line initialization.
9054 * event-top.c (handle_line_of_input): Update to use
9055 the new 'repeat' related functions instead of direct access to
9056 saved_command_line.
9057 * command.h (repeat_previous, get_saved_command_line,
9058 save_command_line): New declarations.
9059 (dont_repeat): Add comment.
9060
bfcdb852
TT
90612019-05-30 Tom Tromey <tromey@adacore.com>
9062
9063 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9064 Fix comment.
9065 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9066
0ef209f2
JV
90672019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9068
9069 PR cli/24587
9070 * completer.c (complete): Initialize variable word.
9071
955b06fa
SDJ
90722019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9073
9074 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9075 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9076 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9077 'body' is NULL to the outter 'if', protecting the '!is_define'
9078 situation as well.
9079
fa9c3fa0
TT
90802019-05-29 Tom Tromey <tromey@adacore.com>
9081
9082 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9083 (dwarf_unknown): New function.
9084 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9085 (dwarf_type_encoding_name): Use dwarf_unknown.
9086
4330d61d
TT
90872019-05-29 Tom Tromey <tromey@adacore.com>
9088
9089 PR c++/20020:
9090 * cp-valprint.c (cp_print_value_fields): Call
9091 cp_print_static_field inside "try".
9092
33a6bc35
TT
90932019-05-29 Tom Tromey <tromey@adacore.com>
9094
9095 * inflow.c (struct terminal_info): Add default operator=.
9096 * configure: Rebuild.
9097 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9098 -Wdeprecated-copy-dtor, -Wredundant-move.
9099
000439d5
TT
91002019-05-29 Tom Tromey <tromey@adacore.com>
9101
9102 * NEWS: Add entry.
9103 * infcmd.c (print_return_value_1): Handle finish_print
9104 option.
9105 (show_print_finish): New function.
9106 (_initialize_infcmd): Add "set/show print finish" commands.
9107 * valprint.c (user_print_options): Initialize new member.
9108 * valprint.h (struct value_print_options) <finish_print>: New
9109 member.
9110
c0e70c62
TT
91112019-05-28 Tom Tromey <tromey@adacore.com>
9112
9113 * ada-lang.c (ada_remove_Xbn_suffix)
9114 (find_old_style_renaming_symbol)
9115 (parse_old_style_renaming): Remove.
9116 (ada_find_renaming_symbol): Don't call
9117 find_old_style_renaming_symbol.
9118 (ada_is_renaming_symbol): Rename from
9119 ada_find_renaming_symbol. Remove "block" parameter. Return
9120 bool. Now static.
9121 (ada_read_var_value): Update and simplify.
9122 * ada-exp.y (write_var_or_type): Remove old code.
9123
766f8836
AH
91242019-05-28 Alan Hayward <alan.hayward@arm.com>
9125
68255adc 9126 PR gdb/25010
766f8836
AH
9127 * event-top.c: Remove include comment.
9128 * inflow.c (class scoped_ignore_sigttou): Move from here...
9129 * inflow.h (class scoped_ignore_sigttou): ...to here.
9130 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9131 * top.c: Remove include comment.
9132
eb41253a
TT
91332019-05-27 Tom Tromey <tom@tromey.com>
9134
9135 * NEWS: Fix typo.
9136
4ca51187
TT
91372019-05-22 Tom Tromey <tromey@adacore.com>
9138
9139 * target.c (target_follow_exec): Constify parameter.
9140 * target-delegates.c: Rebuild.
9141 * remote.c (remote_target::follow_exec): Constify parameter.
9142 * infrun.c (follow_exec): Constify parameter.
9143 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9144 (target_follow_exec): Likewise.
9145
8fca4da0
AH
91462019-05-22 Alan Hayward <alan.hayward@arm.com>
9147
9148 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9149 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9150
b7060614
AH
91512019-05-22 Alan Hayward <alan.hayward@arm.com>
9152
9153 * NEWS: Add debugredirect and testsuite sections.
9154
0a5954bd
SC
91552019-05-22 Simon Cook <simon.cook@embecosm.com>
9156
9157 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9158 target descriptions using exclusively floating point register name
9159 aliases.
9160
dc42e902
AB
91612019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 PR gdb/18644:
9164 * f-lang.c (build_fortran_types): Handle the case where
9165 gdbarch_floatformat_for_type returns a nullptr.
9166
fb7806c7
TV
91672019-05-21 Tom de Vries <tdevries@suse.de>
9168
9169 PR cli/24587
9170 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9171
34d11c68
AB
91722019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9173
9174 PR gdb/18644:
9175 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9176 16-byte floats.
9177 * i386-tdep.c (i386_floatformat_for_type): Use
9178 floatformats_ia64_quad for the 16-byte floating point component
9179 within a fortran 32-byte complex number.
9180
122cf0f2
AB
91812019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9182
9183 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9184 delete default constructor.
9185 (find_partial_die): Update to return const struct.
9186 (partial_die_parent_scope): Move variable declaration into scope
9187 of its use and change its type to auto.
9188 (guess_partial_die_structure_name): Likewise.
9189 (partial_die_info::fixup): Likewise.
9190
33d0e35a
TT
91912019-05-17 Tom Tromey <tromey@adacore.com>
9192
9193 * source.c (find_and_open_source): Remove cast.
9194
a45575b0
TT
91952019-05-17 Tom Tromey <tromey@adacore.com>
9196
9197 * annotate.c (annotate_source): Make "filename" const.
9198 * annotate.h (annotate_source): Use const.
9199
81f47ac2
AH
92002019-05-17 Alan Hayward <alan.hayward@arm.com>
9201
9202 * disasm.c (set_disassembler_options): Send errors to stderr.
9203
ca1285d1
AH
92042019-05-17 Alan Hayward <alan.hayward@arm.com>
9205
9206 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9207 (cli_interp_base::set_logging): Check debug_redirect.
9208 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9209 * cli/cli-logging.c (debug_redirect): Add static variable.
9210 (pop_output_files): Add default param.
9211 (handle_redirections): Print debug setting.
9212 (show_logging_command): Likewise.
9213 (_initialize_cli_logging): Add debugredirect command.
9214 * interps.c (current_interp_set_logging): Add debug_redirect
9215 parameter.
9216 * interps.h (set_logging): Add debug_redirect parameter.
9217 (current_interp_set_logging): Likewise.
9218 * mi/mi-common.h: Likewise.
9219 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9220
92212019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9222 Tom Tromey <tromey@adacore.com>
9223
9224 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9225 directly.
9226 * cli/cli-interp.h (make_logging_output): Remove declaration.
9227 * cli/cli-logging.c (make_logging_output): Remove function.
9228 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9229 directly.
9230 * ui-file.c (tee_file::tee_file): Remove bools.
9231 (tee_file::~tee_file): Remove deletes.
9232 * ui-file.h (tee_file): Remove bools.
9233
26648588
JV
92342019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9235
9236 * mi/mi-cmds.h (mi_cmd_complete): New function.
9237 * mi/mi-main.c (mi_cmd_complete): Likewise.
9238 * mi/mi-cmds.c: Define new MI command -complete.
9239 * NEWS: Mention new -complete command.
9240
6e035501
JV
92412019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9242
9243 * completer.h (complete): New function.
9244 * completer.c (complete): Likewise.
9245 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9246 function defined in completer.h.
9247
7d0e2ece
JV
92482019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9249
e79be6e5 9250 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9251
fb816e8b
TV
92522019-05-17 Tom de Vries <tdevries@suse.de>
9253
9254 PR gdb/24094
9255 * dwarf2read.c (struct cu_partial_die_info): New struct.
9256 (find_partial_die): Return cu_partial_die_info.
9257 (partial_die_parent_scope, guess_partial_die_structure_name)
9258 (partial_die_info::fixup): Handle new return type of find_partial_die.
9259
677052f2
SDJ
92602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9261
a1726c38 9262 PR breakpoints/24541
677052f2
SDJ
9263 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9264 "std::string", simplifying the algorithm.
9265
f3da9116
SDJ
92662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9267
9268 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9269 (stap_static_probe_ops::get_probes): Likewise.
9270
f1bb75ab
SDJ
92712019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9272
9273 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9274 '-')" and "else if".
9275 (stap_parse_single_operand): Join checks for
9276 "gdbarch_stap_parse_special_token_p" and
9277 "gdbarch_stap_parse_special_token" in the same "if" statement.
9278 Invert check when verifying for operation on register
9279 displacement.
9280
3ca58cde
SDJ
92812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9282
9283 * stap-probe.c (stap_get_opcode): Update comment.
9284 (stap_get_expected_argument_type): Likewise.
9285 (handle_stap_probe): Likewise.
9286
af2d9bee
SDJ
92872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9288
9289 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9290 return type to 'bool'. Adjust comment. Use 'bool' when
9291 appropriate.
9292 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9293 * stap-probe.c (stap_parse_argument_1): Likewise.
9294 (stap_is_operator): Likewise.
9295 (stap_is_generic_prefix): Likewise.
9296 (stap_is_register_prefix): Likewise.
9297 (stap_is_register_indirection_prefix): Likewise.
9298 (stap_is_integer_prefix): Likewise.
9299 (stap_generic_check_suffix): Likewise.
9300 (stap_check_integer_suffix): Likewise.
9301 (stap_check_register_suffix): Likewise.
9302 (stap_check_register_indirection_suffix): Likewise.
9303 (stap_parse_register_operand): Likewise.
9304 (stap_parse_single_operand): Likewise.
9305 (stap_parse_argument_1): Likewise.
9306 (stap_probe::get_argument_count): Likewise.
9307 (stap_is_operator): Likewise.
9308
61c9c421
TT
93092019-05-16 Tom Tromey <tromey@adacore.com>
9310
9311 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9312 keyword to foreach.
9313
9ddc1af1
SM
93142019-05-15 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * linux-thread-db.c (try_thread_db_load_1): Change return type
9317 to bool.
9318 (try_thread_db_load): Likewise.
9319 (try_thread_db_load_from_pdir_1): Likewise.
9320 (try_thread_db_load_from_pdir): Likewise.
9321 (try_thread_db_load_from_sdir): Likewise.
9322 (try_thread_db_load_from_dir): Likewise.
9323 (thread_db_load_search): Likewise.
9324 (has_libpthread): Likewise.
9325 (thread_db_load): Likewise.
9326
7bede828
SDJ
93272019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9328
9329 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9330 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9331 NULL, and complain/return if that's the case.
9332
c5358db4
JD
93332019-05-15 John Darrington <john@darrington.wattle.id.au>
9334
9335 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9336 (advance, posn, abstract_read_memory): New functions.
9337 [struct mem_read_abstraction]: New struct.
9338 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9339
c408a94f
TT
93402019-05-14 Tom Tromey <tromey@adacore.com>
9341
9342 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9343 value is not lval_memory.
9344
e7bd7fba
TT
93452019-05-14 Tom Tromey <tromey@adacore.com>
9346
9347 * solib.c (info_sharedlibrary_command): Style the file name.
9348
a6d0f249
AH
93492019-05-14 Alan Hayward <alan.hayward@arm.com>
9350
9351 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9352 (aarch64_vnv_type): Likewise.
9353 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9354 * common/tdesc.c: Likewise.
9355 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9356 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9357 * features/aarch64-fpu.xml: Add ieee half view.
9358 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9359 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9360 * gdbtypes.h (struct builtin_type): Likewise.
9361 (struct objfile_type): Likewise.
9362
66b8bb74
SM
93632019-05-12 Paul Naert <paul.naert@polymtl.ca>
9364
9365 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9366 typo.
9367 * location.h (string_to_event_location): Likewise.
9368
21c219fd
JB
93692019-05-11 Joel Brobecker <brobecker@adacore.com>
9370
9371 GDB 8.3 released.
9372
13674803
SM
93732019-05-10 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9376 New variable declaration.
9377 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9378 New variable.
9379 (print_one_breakpoint): Use ui_out::test_flags and new global
9380 variable to compute use_fixed_output.
9381 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9382 Remove.
9383 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9384 (mi_multi_location_breakpoint_output_fixed): Remove.
9385 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9386 new variable.
9387 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9388 fix_multi_location_breakpoint_output flag if version >= 3.
9389 * ui-out.h (enum ui_out_flag)
9390 <fix_multi_location_breakpoint_output>: New enumerator.
9391
a9eac7f9
SM
93922019-05-10 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9395
71bed2db
TT
93962019-05-10 Tom Tromey <tromey@adacore.com>
9397
9398 * ada-lang.c (catch_ada_completer): New function.
9399 (_initialize_ada_language): Use it.
9400
24c54127
TT
94012019-05-10 Tom Tromey <tromey@adacore.com>
9402
9403 * thread.c (print_thread_info): Make "requested_threads" const.
9404 * gdbthread.h (print_thread_info): Make "requested_threads"
9405 const.
9406 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9407 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9408
7a102139
TT
94092019-05-08 Tom Tromey <tom@tromey.com>
9410
9411 * gdbtypes.c (objfile_type_data): Change type.
9412 (objfile_type, _initialize_gdbtypes): Update.
9413
924d79e2
TT
94142019-05-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9417 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9418 (_initialize_dwarf2_frame): Update.
9419
4c58e337
TT
94202019-05-08 Tom Tromey <tom@tromey.com>
9421
9422 * objc-lang.c (objc_objfile_data): Change type.
9423 (find_methods): Update.
9424 (_initialize_objc_lang): Remove.
9425
d772d2ab
TT
94262019-05-08 Tom Tromey <tom@tromey.com>
9427
9428 * stabsread.c (rs6000_builtin_type_data): Change type.
9429 (rs6000_builtin_type, _initialize_stabsread): Update.
9430
d11d83f4
TT
94312019-05-08 Tom Tromey <tom@tromey.com>
9432
9433 * mips-tdep.c (mips_pdr_data): Remove.
9434 (_initialize_mips_tdep): Update.
9435
9a73f0ad
TT
94362019-05-08 Tom Tromey <tom@tromey.com>
9437
9438 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9439 (hppa_init_objfile_priv_data, read_unwind_info)
9440 (find_unwind_entry, _initialize_hppa_tdep): Update.
9441
8127a2fa
TT
94422019-05-08 Tom Tromey <tom@tromey.com>
9443
9444 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9445 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9446 on obstack.
9447 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9448
91d3055d
TT
94492019-05-08 Tom Tromey <tom@tromey.com>
9450
9451 * mdebugread.c (basic_type_data): Change type.
9452 (basic_type, _initialize_mdebugread): Update.
9453
31930bd3
TT
94542019-05-08 Tom Tromey <tom@tromey.com>
9455
9456 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9457
bdb3ed9e
TT
94582019-05-08 Tom Tromey <tom@tromey.com>
9459
9460 * nto-tdep.c (nto_inferior_data_reg): Change type.
9461 (nto_inferior_data): Update.
9462 (nto_inferior_data_cleanup, nto_new_inferior_data)
9463 (_initialize_nto_tdep): Remove.
9464 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9465
f37b313d
TT
94662019-05-08 Tom Tromey <tom@tromey.com>
9467
9468 * ada-lang.c (struct ada_inferior_data): Add initializers.
9469 (ada_inferior_data): Change type.
9470 (ada_inferior_data_cleanup): Remove.
9471 (get_ada_inferior_data, ada_inferior_exit)
9472 (struct ada_pspace_data): Add initializers, destructor.
9473 (ada_pspace_data_handle): Change type.
9474 (get_ada_pspace_data): Update.
9475 (ada_pspace_data_cleanup): Remove.
9476
24699405
TT
94772019-05-08 Tom Tromey <tom@tromey.com>
9478
9479 * coffread.c (struct coff_symfile_info): Add initializers.
9480 (coff_objfile_data_key): Move lower. Change type.
9481 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9482 Update.
9483 (coff_free_info): Remove.
9484
d4e05d2f
TT
94852019-05-08 Tom Tromey <tom@tromey.com>
9486
9487 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9488 (fbsd_pspace_data_handle): Move lower. Change type.
9489 (get_fbsd_pspace_data): Update.
9490 (fbsd_pspace_data_cleanup): Remove.
9491 (_initialize_fbsd_tdep): Update.
9492
14ef6690
TT
94932019-05-08 Tom Tromey <tom@tromey.com>
9494
9495 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9496 (get_ada_tasks_pspace_data): Update.
9497 (ada_tasks_pspace_data_cleanup): Remove.
9498 (_initialize_tasks): Update.
9499 (ada_tasks_inferior_data_handle): Change type.
9500 (get_ada_tasks_inferior_data): Update.
9501 (ada_tasks_inferior_data_cleanup): Remove.
9502 (struct ada_tasks_pspace_data): Add initializers.
9503
814cf43a
TT
95042019-05-08 Tom Tromey <tom@tromey.com>
9505
9506 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9507 * symfile-debug.c (debug_sym_get_probes): Change type.
9508 * stap-probe.c (handle_stap_probe):
9509 (stap_static_probe_ops::get_probes): Change type.
9510 * probe.h (class static_probe_ops) <get_probes>: Change type.
9511 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9512 (parse_probes_in_pspace): Update.
9513 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9514 Update.
9515 (any_static_probe_ops::get_probes): Change type.
9516 * elfread.c (elfread_data): New typedef.
9517 (probe_key): Change type.
9518 (elf_get_probes): Likewise. Update.
9519 (probe_key_free): Remove.
9520 (_initialize_elfread): Update.
9521 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9522 Change type.
9523 (dtrace_process_dof_probe, dtrace_process_dof)
9524 (dtrace_static_probe_ops::get_probe): Change type.
9525
02dc647e
TT
95262019-05-08 Tom Tromey <tom@tromey.com>
9527
9528 * xcoffread.c (struct xcoff_symfile_info): Rename from
9529 coff_symfile_info. Add initializers.
9530 (xcoff_objfile_data_key): Move lower. Change type.
9531 (XCOFF_DATA): Rewrite.
9532 (xcoff_free_info): Remove.
9533 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9534 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9535 (xcoff_initial_scan): Update.
9536
09232438
TT
95372019-05-08 Tom Tromey <tom@tromey.com>
9538
9539 * solib-svr4.c (struct svr4_info): Add initializers and
9540 destructor.
9541 <probes_table>: Now an htab_up.
9542 (solib_svr4_pspace_data): Change type.
9543 (free_probes_table): Simplify.
9544 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9545 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9546 (probes_table_remove_objfile_probes, register_solib_event_probe)
9547 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9548 (_initialize_svr4_solib): Update.
9549
7b4a314f
TT
95502019-05-08 Tom Tromey <tom@tromey.com>
9551
9552 * remote.c (remote_pspace_data): Change type.
9553 (remote_pspace_data_cleanup): Remove.
9554 (get_remote_exec_file, set_pspace_remote_exec_file)
9555 (_initialize_remote): Update.
9556
51d3063a
TT
95572019-05-08 Tom Tromey <tom@tromey.com>
9558
9559 * breakpoint.c (breakpoint_objfile_key): Change type.
9560 (get_breakpoint_objfile_data): Update.
9561 (free_breakpoint_objfile_data): Remove.
9562 (_initialize_breakpoint): Update.
9563
89fb8848
TT
95642019-05-08 Tom Tromey <tom@tromey.com>
9565
9566 * linux-tdep.c (struct linux_info): Add initializers.
9567 (linux_inferior_data): Move. Change type.
9568 (invalidate_linux_cache_inf): Update.
9569 (linux_inferior_data_cleanup): Remove.
9570 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9571
e9b89e2d
TT
95722019-05-08 Tom Tromey <tom@tromey.com>
9573
9574 * auxv.c (auxv_inferior_data): Move. Change type.
9575 (auxv_inferior_data_cleanup): Remove.
9576 (invalidate_auxv_cache_inf): Rewrite.
9577 (get_auxv_inferior_data, _initialize_auxv): Update.
9578
8c42777c
TT
95792019-05-08 Tom Tromey <tom@tromey.com>
9580
9581 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9582 (symfile_debug_objfile_data_key): Change type.
9583 (symfile_debug_installed, debug_qf_has_symbols)
9584 (debug_qf_find_last_source_symtab)
9585 (debug_qf_forget_cached_source_info)
9586 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9587 (debug_qf_print_stats, debug_qf_dump)
9588 (debug_qf_expand_symtabs_for_function)
9589 (debug_qf_expand_all_symtabs)
9590 (debug_qf_expand_symtabs_with_fullname)
9591 (debug_qf_map_matching_symbols)
9592 (debug_qf_expand_symtabs_matching)
9593 (debug_qf_find_pc_sect_compunit_symtab)
9594 (debug_qf_map_symbol_filenames)
9595 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9596 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9597 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9598 (debug_sym_read_linetable, debug_sym_relocate): Update.
9599 (symfile_debug_free_objfile): Remove.
9600 (install_symfile_debug_logging, _initialize_symfile_debug):
9601 Update.
9602
5bfd760d
TT
96032019-05-08 Tom Tromey <tom@tromey.com>
9604
9605 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9606 allocate_on_obstack.
9607 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9608 (get_dwarf2_per_objfile): Update.
9609 (set_dwarf2_per_objfile): Remove.
9610 (dwarf2_has_info, dwarf2_get_section_info): Update.
9611 (dwarf2_free_objfile): Remove.
9612 (_initialize_dwarf2_read): Update.
9613
e85e19b4
TT
96142019-05-08 Tom Tromey <tom@tromey.com>
9615
9616 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9617 initializers.
9618 <unsupported_script_warning_printed,
9619 script_not_found_warning_printed>: Now bool.
9620 (auto_load_pspace_data): Change type.
9621 (~auto_load_pspace_info): Rename from
9622 auto_load_pspace_data_cleanup.
9623 (get_auto_load_pspace_data, init_loaded_scripts_info)
9624 (clear_section_scripts, maybe_print_unsupported_script_warning)
9625 (maybe_print_script_not_found_warning, _initialize_auto_load):
9626 Update.
9627
f6aa7436
TT
96282019-05-08 Tom Tromey <tom@tromey.com>
9629
9630 * objfiles.c (objfile_pspace_info): Add destructor and
9631 initializers.
9632 (objfiles_pspace_data): Change type.
9633 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9634 (get_objfile_pspace_data): Update.
9635 (objfiles_bfd_data): Change type.
9636 (get_objfile_bfd_data): Update.
9637 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9638
6ae614f6
TT
96392019-05-08 Tom Tromey <tom@tromey.com>
9640
9641 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9642 Change type.
9643 (get_catch_syscall_inferior_data): Update.
9644 (catch_syscall_inferior_data_cleanup): Remove.
9645 (_initialize_break_catch_syscall): Update.
9646
6509b8eb
TT
96472019-05-08 Tom Tromey <tom@tromey.com>
9648
9649 * inflow.c (struct terminal_info): Add destructor and
9650 initializers.
9651 (inflow_inferior_data): Change type.
9652 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9653 (get_inflow_inferior_data, inflow_inferior_exit)
9654 (swap_terminal_info, _initialize_inflow): Update.
9655
35632941
TT
96562019-05-08 Tom Tromey <tom@tromey.com>
9657
9658 * target-dcache.c (target_dcache_cleanup): Remove.
9659 (target_dcache_aspace_key): Change type.
9660 (target_dcache_init_p, target_dcache_invalidate)
9661 (target_dcache_get, target_dcache_get_or_init)
9662 (_initialize_target_dcache): Update.
9663 * dcache.h (struct dcache_deleter): New.
9664
3017b94d
TT
96652019-05-08 Tom Tromey <tom@tromey.com>
9666
9667 * symtab.c (struct symbol_cache): Add destructor and
9668 initializers.
9669 (symbol_cache_key): Move. Change type.
9670 (make_symbol_cache, free_symbol_cache): Remove.
9671 (get_symbol_cache): Update.
9672 (symbol_cache_cleanup): Remove.
9673 (ALL_PSPACES, symbol_cache_flush)
9674 (maintenance_print_symbol_cache)
9675 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9676 Update.
9677
a32ad8c5
TT
96782019-05-08 Tom Tromey <tom@tromey.com>
9679
9680 * symtab.c (struct main_info): Add destructor and initializers.
9681 (main_progspace_key): Move. Change type.
9682 (get_main_info): Update.
9683 (main_info_cleanup): Remove.
9684 (_initialize_symtab): Update.
9685
5f6e90a0
TT
96862019-05-08 Tom Tromey <tom@tromey.com>
9687
9688 * registry.h (DECLARE_REGISTRY): Define the _key class.
9689
1bd0c6e4
AB
96902019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * NEWS: Merge two 'New commands' sections.
9693
2228ef77
XR
96942019-05-08 Joel Brobecker <brobecker@adacore.com>
9695
9696 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9697 parameter and use Ada language definition instead.
9698 (ada_val_print_ptr): Remove unused language parameter.
9699 (ada_val_print_num): Remove language parameter and use Ada language
9700 definition instead.
9701 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9702 parameter.
9703 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9704 parameter and use Ada language definition instead.
9705 (ada_val_print_1): Update all ada_val_print_xxx calls.
9706 Remove language parameter.
9707 (ada_val_print): Update ada_val_print_1 call.
9708
60fcc1c3
TT
97092019-05-08 Tom Tromey <tromey@adacore.com>
9710
9711 * remote.c (remote_hw_watchpoint_limit)
9712 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9713 Now static.
9714
ed2b7c17
TT
97152019-05-08 Tom Tromey <tromey@adacore.com>
9716
9717 * maint.c (_initialize_maint_cmds): Move initialization code to
9718 remote.c.
9719 (watchdog, show_watchdog): Move to remote.c.
9720 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9721 "watchdog" static.
9722 (_initialize_remote): Move initialization code from maint.c.
9723 * defs.h (watchdog): Don't declare.
9724
b0be6c91
TT
97252019-05-08 Tom Tromey <tromey@adacore.com>
9726
9727 * tui/tui-interp.c: Include main.h.
9728 * interps.c: Include main.h.
9729 * main.h (interpreter_p): Declare.
9730 * defs.h (interpreter_p): Don't declare.
9731
587ee17b
TT
97322019-05-08 Tom Tromey <tromey@adacore.com>
9733
9734 * dwarf2loc.c: Include dwarf2read.h.
9735 * defs.h (read_unsigned_leb128): Don't declare.
9736 * dwarf2read.h (read_unsigned_leb128): Declare.
9737
ca1df239
TT
97382019-05-08 Tom Tromey <tromey@adacore.com>
9739
9740 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9741 method.
9742
99f20f08
TT
97432019-05-08 Tom Tromey <tromey@adacore.com>
9744
9745 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9746 when no wrap column is set.
9747
80e55b13
TT
97482019-05-08 Tom Tromey <tromey@adacore.com>
9749
9750 * c-lang.c (c_get_string): Handle non-C-style arrays.
9751
9d3421af
TT
97522019-05-08 Tom Tromey <tromey@adacore.com>
9753
9754 * typeprint.c (print_offset_data::update): Print the bit offset,
9755 not the number of bits remaining.
9756
844333e2
TT
97572019-05-08 Tom Tromey <tromey@adacore.com>
9758
9759 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9760 padding at end of comment.
9761
988915ee
TT
97622019-05-08 Tom Tromey <tromey@adacore.com>
9763
9764 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9765 Compare main types.
9766
26bfd823
TT
97672019-05-06 Tom Tromey <tom@tromey.com>
9768
9769 * common/scoped_mmap.c: Include common-defs.h.
9770 * common/scoped_mmap.h: Don't include config.h.
9771
89055eaa
TT
97722019-05-04 Tom Tromey <tom@tromey.com>
9773
9774 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9775 (struct aarch64_call_info): Add initializers.
9776 <si>: Now a std::vector.
9777 (pass_on_stack, aarch64_push_dummy_call): Update.
9778
5da01df5
TT
97792019-05-04 Simon Marchi <simon.marchi@efficios.com>
9780 Tom Tromey <tom@tromey.com>
9781
9782 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9783 (ppc_threads): Now a std::vector. Now static.
9784 (hwdebug_find_thread_points_by_tid)
9785 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9786 Update.
9787
fbdf05a1
TT
97882019-05-04 Tom Tromey <tom@tromey.com>
9789
9790 * arc-tdep.c (arc_tdesc_init): Return bool.
9791
06d16ec9
TT
97922019-05-04 Tom Tromey <tom@tromey.com>
9793
9794 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9795 Use gdb_assert_not_reached.
9796
9c056022
TT
97972019-05-04 Tom Tromey <tom@tromey.com>
9798
9799 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9800 "false".
9801
fa9c2a59
TT
98022019-05-04 Tom Tromey <tom@tromey.com>
9803
9804 * arc-tdep.c (arc_tdesc_init): Use bool.
9805
e2eb806a
TT
98062019-05-04 Tom Tromey <tom@tromey.com>
9807
9808 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9809
6fe87677
TT
98102019-05-04 Tom Tromey <tom@tromey.com>
9811
9812 * cli/cli-cmds.c (valid_command_p): Return bool.
9813
7f008c9e
TT
98142019-05-04 Tom Tromey <tom@tromey.com>
9815
9816 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9817 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9818
b6484282
RT
98192019-05-04 Raul Tambre <raul@tambre.ee>
9820
9821 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9822 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9823 operator for comparison.
9824
af97b416
TT
98252019-05-04 Tom Tromey <tom@tromey.com>
9826
9827 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9828 (lookup_partial_symbol, print_partial_symbols)
9829 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9830 (psymbol_compare): Update.
9831 (add_psymbol_to_bcache): Clear the entire psymbol.
9832 (maintenance_check_psymtabs): Update.
9833 * psympriv.h (struct partial_symbol): Don't derive from
9834 general_symbol_info.
9835 <obj_section, unrelocated_address, address,
9836 set_unrelocated_address>: Update.
9837 <ginfo>: New member.
9838 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9839 (debug_names::write_psymbols): Update.
9840
9d6d4be8
TV
98412019-05-04 Tom de Vries <tdevries@suse.de>
9842
9843 * contrib/cc-with-tweaks.sh: Support -n arg.
9844
66452beb
PW
98452019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9846
9847 * corelow.c (core_target::detach): Ensure frame cache and
9848 register caches are cleared.
9849 inferior.c (exit_inferior_1): Likewise.
9850
bde09ab7
TT
98512019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9852 Tom Tromey <tom@tromey.com>
9853
9854 * dictionary.c (collate_pending_symbols_by_language): Remove
9855 "struct" from foreach.
9856 * symtab.c (lookup_global_symbol_from_objfile)
9857 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9858 foreach.
9859 * ser-tcp.c (net_open): Remove "struct" from foreach.
9860 * objfiles.c (objfile_relocate, objfile_rebase)
9861 (objfile_has_symbols): Remove "struct" from foreach.
9862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9863 from foreach.
9864 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9865 foreach.
9866 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9867 "struct" from foreach.
9868 * ada-lang.c (create_excep_cond_exprs)
9869 (ada_exception_catchpoint_cond_string): Remove "struct" from
9870 foreach.
9871
222a8d25
TT
98722019-05-03 Tom Tromey <tromey@adacore.com>
9873
9874 * ada-exp.y (convert_char_literal): Check suffix of each
9875 enumerator.
9876
fcd60b84
DP
98772019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9878
9879 PR ada/21406:
9880 * ada-exp.y (yywrap): Don't define.
9881 * ada-lex.l (%option): Add noyywrap
9882 (yywrap): Remove.
9883
5f2459c2
EZ
98842019-05-03 Eli Zaretskii <eliz@gnu.org>
9885
353ea2d1
EZ
9886 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9887 _WIN32_WINNT to the XP level, unless already defined to a higher
9888 level.
9889
9890 * unittests/parse-connection-spec-selftests.c:
9891 * ser-tcp.c:
9892 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9893 override.
9894
5f2459c2
EZ
9895 * symfile.c (find_separate_debug_file): Remove colon from the
9896 drive spec of DOS/Windows file names of the target, so that the
9897 file name produced from DEBUGDIR and the target's directory will
9898 be valid on DOS/Windows systems.
9899
80062eb9
AB
99002019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9901
9902 * rust-lang.c (val_print_struct): Handle printing structures
9903 containing strings.
9904
b8c05e85
TT
99052019-05-02 Tom Tromey <tromey@adacore.com>
9906
9907 * valarith.c (_initialize_valarith): Remove.
9908
4504bbde
TT
99092019-05-01 Tom Tromey <tromey@adacore.com>
9910
9911 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9912 bitfields.
9913
d48e62f4
TT
99142019-05-01 Tom Tromey <tromey@adacore.com>
9915
9916 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9917 for big-endian copies.
9918
15f18d14
AT
99192019-04-30 Ali Tamur <tamur@google.com>
9920 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9921 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9922 (read_3_bytes): New function.
9923
ab4ee614
JB
99242019-04-30 Joel Brobecker <brobecker@adacore.com>
9925
9926 * windows-nat.c (main_thread_id): Delete.
9927 (handle_output_debug_string): Replace main_thread_id by
9928 current_event.dwThreadId.
9929 (fake_create_process): Likewise.
9930 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9931 Do not set main_thread_id.
9932 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9933 current_event.dwThreadId.
9934 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9935
8ed5b76e
JB
99362019-04-30 Joel Brobecker <brobecker@adacore.com>
9937
9938 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9939 Use current_event.dwThreadId instead of main_thread_id.
9940
2ff0a947
TT
99412019-04-30 Tom Tromey <tromey@adacore.com>
9942
9943 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9944 (create_excep_cond_exprs): Iterate over program spaces.
9945 (ada_exception_catchpoint_cond_string): Examine all minimal
9946 symbols for exception types.
9947
a776957c
TT
99482019-04-30 Tom Tromey <tromey@adacore.com>
9949
9950 PR c++/24470:
9951 * dwarf2read.c (process_structure_scope): Handle case where type
9952 has template parameters but no symbol was created.
9953
bc68014d
AB
99542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9955 Chris January <chris.january@arm.com>
9956
9957 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9958 qualifier.
9959 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9960
f1fdc960
AB
99612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9962
9963 * f-typeprint.c (f_print_type): Update rules for printing
9964 whitespace.
9965 (f_type_print_varspec_suffix): Likewise.
9966
bf7a4de1
AB
99672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9968 Chris January <chris.january@arm.com>
9969
9970 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9971 function arguments.
9972
bbe75b9d
AB
99732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * f-lang.c (build_fortran_types): Change name of void type to
9976 lower case.
9977 * f-typeprint.c (f_type_print_base): Print the name of the void
9978 type, rather than a fixed string.
9979 * f-valprint.c (f_decorations): Use lower case void string.
9980
1db455a7
AB
99812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9982 Chris January <chris.january@arm.com>
9983
9984 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9985 types for Fortran.
9986
b6d03bb2
AB
99872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9988 Chris January <chris.january@arm.com>
9989 David Lecomber <david.lecomber@arm.com>
9990
9991 * f-exp.y (BINOP_INTRINSIC): New token.
9992 (exp): New parser rule handling BINOP_INTRINSIC.
9993 (f77_keywords): Add new builtin procedures.
9994 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9995 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9996 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9997 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9998 (print_unop_subexp_f): New function.
9999 (print_binop_subexp_f): New function.
10000 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10001 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10002 (dump_subexp_body_f): Likewise.
10003 (operator_check_f): Likewise.
10004 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10005 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10006
83228e93
AB
100072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10008
10009 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10010 UNOP_KIND.
10011 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10012 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10013 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10014 (operator_length_f): New fuction.
10015 (print_subexp_f): New function.
10016 (op_name_f): New function.
10017 (dump_subexp_body_f): New function.
10018 (operator_check_f): New function.
10019 (exp_descriptor_f): Replace standard expression handling functions
10020 with new functions.
10021 * gdb/fortran-operator.def: New file.
10022 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10023 * gdb/std-operator.def: Remove UNOP_KIND.
10024
6fdcd7cc
AB
100252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10026
10027 * std-operator.def: Remove unbalanced, stray double quote
10028 character.
10029
2e62ab40
AB
100302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10031 Chris January <chris.january@arm.com>
10032 Daniel Everett <daniel.everett@arm.com>
10033 Nick Forrington <nick.forrington@arm.com>
10034 Richard Bunt <richard.bunt@arm.com>
10035
10036 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10037 of depth when printing anonymous structs or unions.
10038 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10039 Don't print either the top-level value, or the children if the
10040 max-depth is exceeded.
10041 (ppscm_print_children): When printing the key of a map, allow one
10042 extra level of depth.
10043 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10044 print either the top-level value, or the children if the max-depth
10045 is exceeded.
10046 (print_children): When printing the key of a map, allow one extra
10047 level of depth.
10048 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10049 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10050 (user_print_options): Initialise max_depth field.
10051 (val_print_scalar_or_string_type_p): New function.
10052 (val_print): Check to see if the max depth has been reached.
10053 (val_print_check_max_depth): Define new function.
10054 (show_print_max_depth): New function.
10055 (_initialize_valprint): Add 'print max-depth' option.
10056 * valprint.h (struct value_print_options) <max_depth>: New field.
10057 (val_print_check_max_depth): Declare new function.
10058 * NEWS: Document new feature.
10059
4be290b2
AB
100602019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * ada-lang.c (ada_language_defn): Initialise new field.
10063 * c-lang.c (c_is_string_type_p): New function.
10064 (c_language_defn): Initialise new field.
10065 (cplus_language_defn): Initialise new field.
10066 (asm_language_defn): Initialise new field.
10067 (minimal_language_defn): Initialise new field.
10068 * c-lang.h (c_is_string_type_p): Declare new function.
10069 * d-lang.c (d_language_defn): Initialise new field.
10070 * f-lang.c (f_is_string_type_p): New function.
10071 (f_language_defn): Initialise new field.
10072 * go-lang.c (go_is_string_type_p): New function.
10073 (go_language_defn): Initialise new field.
10074 * language.c (default_is_string_type_p): New function.
10075 (unknown_language_defn): Initialise new field.
10076 (auto_language_defn): Initialise new field.
10077 * language.h (struct language_defn) <la_is_string_type_p>: New
10078 member variable.
10079 (default_is_string_type_p): Declare new function.
10080 * m2-lang.c (m2_language_defn): Initialise new field.
10081 * objc-lang.c (objc_language_defn): Initialise new field.
10082 * opencl-lang.c (opencl_language_defn): Initialise new field.
10083 * p-lang.c (pascal_is_string_type_p): New function.
10084 (pascal_language_defn): Initialise new field.
10085 * rust-lang.c (rust_is_string_type_p): New function.
10086 (rust_language_defn): Initialise new field.
10087
721b08c6
AB
100882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10089
10090 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10091 New field.
10092 * ada-lang.c (ada_language_defn): Initialise new field.
10093 * c-lang.c (c_language_defn): Likewise.
10094 (cplus_language_defn): Likewise.
10095 (asm_language_defn): Likewise.
10096 (minimal_language_defn): Likewise.
10097 * d-lang.c (d_language_defn): Likewise.
10098 * f-lang.c (f_language_defn): Likewise.
10099 * go-lang.c (go_language_defn): Likewise.
10100 * language.c (unknown_language_defn): Likewise.
10101 (auto_language_defn): Likewise.
10102 * m2-lang.c (m2_language_defn): Likewise.
10103 * objc-lang.c (objc_language_defn): Likewise.
10104 * opencl-lang.c (opencl_language_defn): Likewise.
10105 * p-lang.c (pascal_language_defn): Likewise.
10106 * rust-lang.c (rust_language_defn): Likewise.
10107
fc913e53
AB
101082019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10109
10110 * ada-lang.c (ada_is_character_type): Change return type to bool.
10111 (ada_is_string_type): Likewise.
10112 * ada-lang.h (ada_is_character_type): Update declaration
10113 (ada_is_string_type): Likewise.
10114
fa731fa0
PW
101152019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10116
10117 Support style in 'frame|thread apply'
10118
10119 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10120 * record.c (record_start, record_stop): Update callers of
10121 execute_command_to_string with false.
10122 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10123 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10124 methods.
10125 (class string_file): New constructor with term_out parameter.
10126 Override methods term_out and can_emit_style_escape. New member
10127 term_out.
10128 (class stdio_file): Override can_emit_style_escape.
10129 (class tee_file): Override term_out and can_emit_style_escape.
10130 * utils.h (can_emit_style_escape): Remove.
10131 * utils.c (can_emit_style_escape): Likewise.
10132 Update all callers of can_emit_style_escape (SOMESTREAM) to
10133 SOMESTREAM->can_emit_style_escape.
10134 * source-cache.c (source_cache::get_source_lines): Likewise.
10135 * stack.c (frame_apply_command_count): Call execute_command_to_string
10136 passing the term_out characteristic of the current gdb_stdout.
10137 * thread.c (thr_try_catch_cmd): Likewise.
10138 * top.c (execute_command_to_string): pass term_out parameter
10139 to construct the string_file for the command output.
10140 * ui-file.c (term_cli_styling): New function (most code moved
10141 from utils.c can_emit_style_escape).
10142 (string_file::string_file, string_file::can_emit_style_escape,
10143 stdio_file::can_emit_style_escape, tee_file::term_out,
10144 tee_file::can_emit_style_escape): New functions.
10145
136afab8
PW
101462019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10147
10148 * NEWS: Mention the new set|show may-call-functions.
10149 * infcall.c (may_call_functions_p): New variable.
10150 (show_may_call_functions_p): New function.
10151 (call_function_by_hand_dummy): Throws an error if not
10152 may-call-functions.
10153 (_initialize_infcall): Call add_setshow_boolean_cmd for
10154 may-call-functions.
10155
725cbb63
KS
101562019-04-25 Keith Seitz <keiths@redhat.com>
10157
10158 PR c++/24367
10159 * cp-support.c (inspect_type): Don't attempt substitutions
10160 of symbol with the same name.
10161
3d1cbb78
TT
101622019-04-25 Tom Tromey <tromey@adacore.com>
10163
10164 PR gdb/24475:
10165 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10166 static.
10167
94aeb44b
TT
101682019-04-25 Tom Tromey <tromey@adacore.com>
10169
10170 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10171 rvalue reference.
10172 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10173 (gdb_xml_parser::parse): Use std::move.
10174 * python/python-internal.h (gdbpy_convert_exception): Take a const
10175 reference.
10176 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10177 std::move.
10178 * python/py-utils.c (gdbpy_convert_exception): Take a const
10179 reference.
10180 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10181 Use std::move.
10182 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10183 Use std::move.
10184 * mi/mi-main.c (mi_print_exception): Take a const reference.
10185 * main.c (handle_command_errors): Take a const reference.
10186 * linespec.c (parse_linespec): Use std::move.
10187 * infcall.c (run_inferior_call): Use std::move.
10188 (call_function_by_hand_dummy): Use std::move.
10189 * exec.c (try_open_exec_file): Use std::move.
10190 * exceptions.h (exception_print, exception_fprintf)
10191 (exception_print_same): Update.
10192 * exceptions.c (print_exception, exception_print)
10193 (exception_fprintf, exception_print_same): Change parameters to
10194 const reference.
10195 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10196 * common/new-op.c: Use std::move.
10197 * common/common-exceptions.h (struct gdb_exception): Add move
10198 constructor.
10199 (struct gdb_exception_error, struct gdb_exception_quit, struct
10200 gdb_quit_bad_alloc): Change constructor to move constructor.
10201 (throw_exception): Change parameter to rvalue reference.
10202 * common/common-exceptions.c (throw_exception): Take rvalue
10203 reference.
10204 * cli/cli-interp.c (safe_execute_command): Use std::move.
10205 * breakpoint.c (insert_bp_location, location_to_sals): Use
10206 std::move.
10207
680d7fd5
TT
102082019-04-25 Tom Tromey <tromey@adacore.com>
10209
10210 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10211 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10212 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10213 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10214 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10215 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10216 guile/scm-value.c: Use unpack.
10217 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10218 gdbscm_gdb_exception.
10219 (gdbscm_throw_gdb_exception): Likewise.
10220 (struct gdbscm_gdb_exception): New.
10221 (unpack): New function.
10222 (gdbscm_wrap): Use unpack.
10223
c6fdd8b2
TT
102242019-04-25 Tom Tromey <tromey@adacore.com>
10225
10226 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10227 (gdb_rl_callback_handler): Use std::move.
10228 * common/common-exceptions.h (struct gdb_exception): Add move
10229 assignment operator.
10230 (throw_exception_sjlj): Change "exception" to const reference.
10231 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10232 (throw_exception_sjlj): Change "exception" to const reference.
10233
cc06b668
TT
102342019-04-25 Tom Tromey <tromey@adacore.com>
10235
10236 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10237 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10238 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10239 Update.
10240 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10241 Update.
10242 * mi/mi-interp.c (mi_interp::exec): Update.
10243 * linespec.c (parse_linespec): Update.
10244 * infcall.c (run_inferior_call): Update.
10245 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10246 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10247 (gdbscm_lookup_global_symbol): Update.
10248 * guile/scm-param.c (gdbscm_parameter_value): Update.
10249 * guile/scm-frame.c (gdbscm_frame_read_register)
10250 (gdbscm_frame_read_var): Update.
10251 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10252 * exec.c (try_open_exec_file): Update.
10253 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10254 (gdb_rl_callback_handler): Update.
10255 * common/common-exceptions.h (exception_none): Don't declare.
10256 * common/common-exceptions.c (exception_none): Don't define.
10257 (struct catcher) <exception>: Update.
10258 * cli/cli-interp.c (safe_execute_command): Update.
10259 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10260
cf532bd1
AT
102612019-04-25 Ali Tamur <tamur@google.com>
10262
10263 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10264 (read_attribute_value): Likewise.
10265 (dwarf2_read_addr_index): Update comment.
10266 (read_str_index): Add DW_FORM_strx.
10267 (dwarf2_string_attr): Likewise.
10268 (dwarf2_const_value_attr): Likewise.
10269 (dump_die_shallow): Likewise.
10270 (dwarf2_fetch_constant_bytes): Likewise.
10271 (skip_form_bytes): Likewise.
10272 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10273
82433e3e
SDJ
102742019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10275
10276 PR corefiles/11608
10277 PR corefiles/18187
10278 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10279 OFFSET. Verify if current mapping contains an ELF header.
10280 (linux_find_memory_regions_full): Adjust call to
10281 dump_mapping_p.
10282
723adb65
SL
102832019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10284 Kang Li <kanglictf@gmail.com>
10285
10286 PR gdb/21600
10287
10288 * dwarf2-frame.c (read_initial_length): Be consistent about using
10289 unsigned representation of length.
10290 (decode_frame_entry_1): Likewise. Check for wraparound of
10291 end pointer as well as buffer overflow.
10292
596179f7
SDJ
102932019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10294
10295 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10296 "vq".
10297
a59240a4
TT
102982019-04-24 Tom Tromey <tromey@adacore.com>
10299
10300 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10301
f872fdbb
AB
103022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10303
10304 * s12z-tdep.c (s12z_unwind_pc): Delete.
10305 (s12z_unwind_sp): Delete.
10306 (s12z_gdbarch_init): Don't register deleted functions with
10307 gdbarch.
10308
b614e6f3
AB
103092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10310
10311 * rl78-tdep.c (rl78_unwind_sp): Delete.
10312 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10313
14faed38
AB
103142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10317 (xstormy16_unwind_pc): Delete.
10318 (xstormy16_dummy_id): Delete.
10319 (xstormy16_gdbarch_init): Don't register deleted functions with
10320 gdbarch.
10321
541aad8a
AB
103222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * vax-tdep.c (vax_unwind_pc): Delete.
10325 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10326
29222070
AB
103272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10328
10329 * v850-tdep.c (v850_unwind_sp): Delete.
10330 (v850_unwind_pc): Delete.
10331 (v850_dummy_id): Delete.
10332 (v850_gdbarch_init): Don't register deleted functions with
10333 gdbarch.
10334
0f534d76
AB
103352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10338 (tilegx_unwind_pc): Delete.
10339 (tilegx_unwind_dummy_id): Delete.
10340 (tilegx_gdbarch_init): Don't register deleted functions with
10341 gdbarch.
10342
1ba7b7f9
AB
103432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10344
10345 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10346 (tic6x_dummy_id): Delete.
10347 (tic6x_gdbarch_init): Don't register deleted functions with
10348 gdbarch.
10349
d31f262c
AB
103502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10351
10352 * sparc-tdep.c (sparc_unwind_pc): Delete.
10353 (sparc32_gdbarch_init): Don't register deleted function with
10354 gdbarch.
10355
6d14d64d
AB
103562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10357
10358 * sh-tdep.c (sh_unwind_sp): Delete.
10359 (sh_unwind_pc): Delete.
10360 (sh_dummy_id): Delete.
10361 (sh_gdbarch_init): Don't register deleted functions with
10362 gdbarch.
10363
a40dde9d
AB
103642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10365
10366 * score-tdep.c (score_unwind_sp): Delete.
10367 (score_unwind_pc): Delete.
10368 (score_dummy_id): Delete.
10369 (score_gdbarch_init): Don't register deleted functions with
10370 gdbarch.
10371
47c47d69
AB
103722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10373
10374 * rx-tdep.c (rx_unwind_pc): Delete.
10375 (rx_unwind_sp): Delete.
10376 (rx_dummy_id): Delete.
10377 (rx_gdbarch_init): Don't register deleted functions with
10378 gdbarch. Update comment.
10379
833a4480
AB
103802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10381
10382 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10383 (rs6000_dummy_id): Delete.
10384 (rs6000_gdbarch_init): Don't register deleted functions with
10385 gdbarch.
10386
3f2cef49
AB
103872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * or1k-tdep.c (or1k_dummy_id): Delete.
10390 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10391
96acf884
AB
103922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 * nios2-tdep.c (nios2_dummy_id): Delete.
10395 (nios2_unwind_sp): Delete.
10396 (nios2_gdbarch_init): Don't register deleted functions with
10397 gdbarch.
10398
ca0ab0aa
AB
103992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10400
10401 * nds32-tdep.c (nds32_dummy_id): Delete.
10402 (nds32_unwind_pc): Delete.
10403 (nds32_unwind_sp): Delete.
10404 (nds32_gdbarch_init): Don't register deleted functions with
10405 gdbarch.
10406
c8259044
AB
104072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10408
10409 * msp430-tdep.c (msp430_unwind_pc): Delete.
10410 (msp430_unwind_sp): Delete.
10411 (msp430_dummy_id): Delete.
10412 (msp430_gdbarch_init): Don't register deleted functions with
10413 gdbarch.
10414
27f113c8
AB
104152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10416
10417 * moxie-tdep.c (moxie_unwind_sp): Delete.
10418 (moxie_unwind_pc): Delete.
10419 (moxie_dummy_id): Delete.
10420 (moxie_gdbarch_init): Don't register deleted functions with
10421 gdbarch.
10422
aee6c3cd
AB
104232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10424
10425 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10426 (mn10300_unwind_pc): Delete.
10427 (mn10300_unwind_sp): Delete.
10428 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10429 mn10300_unwind_sp.
10430 (mn10300_frame_unwind_init): Don't register deleted functions with
10431 gdbarch.
10432
8e2b5aea
AB
104332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * mep-tdep.c (mep_unwind_pc): Delete.
10436 (mep_unwind_sp): Delete.
10437 (mep_dummy_id): Delete.
10438 (mep_gdbarch_init): Don't register deleted functions with
10439 gdbarch.
10440
43cf3ede
AB
104412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10444 (m68hc11_unwind_sp): Delete.
10445 (m68hc11_gdbarch_init): Don't register deleted functions with
10446 gdbarch.
10447
5e79b7bb
AB
104482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10449
10450 * m32r-tdep.c (m32r_unwind_sp): Delete.
10451 (m32r_unwind_pc): Delete.
10452 (m32r_dummy_id): Delete.
10453 (m32r_gdbarch_init): Don't register deleted functions with
10454 gdbarch.
10455
89b268d8
AB
104562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10457
10458 * m32c-tdep.c (m32c_unwind_pc): Delete.
10459 (m32c_unwind_sp): Delete.
10460 (m32c_dummy_id): Delete.
10461 (m32c_gdbarch_init): Don't register deleted functions with
10462 gdbarch.
10463
946c28d2
AB
104642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10467 (lm32_unwind_pc): Delete.
10468 (lm32_dummy_id): Delete.
10469 (lm32_gdbarch_init): Don't register deleted functions with
10470 gdbarch.
10471
bf12844a
AB
104722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10475 (iq2000_unwind_pc): Delete.
10476 (iq2000_dummy_id): Delete.
10477 (iq2000_gdbarch_init): Don't register deleted functions with
10478 gdbarch.
10479
ecbc06d2
AB
104802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10481
10482 * nds32-tdep.c (nds32_type_align): Delete.
10483 (nds32_push_dummy_call): Use type_align instead.
10484
030197b4
AB
104852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10486
10487 * arm-tdep.c (arm_type_align): Only handle vector override case.
10488 (arm_push_dummy_call): Use type_align.
10489 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10490
b907456c
AB
104912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10492
10493 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10494 case.
10495 (pass_on_stack): Use type_align.
10496 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10497 function.
10498
9e97ba43
TT
104992019-04-23 Tom Tromey <tromey@adacore.com>
10500
10501 * dwarf2read.c (line_header::file_name_at): Remove unused
10502 overload.
10503
6892f601
TV
105042019-04-23 Tom de Vries <tdevries@suse.de>
10505
10506 PR gdb/24438
10507 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10508 invocation.
10509
336d760d
AT
10510
105112019-03-27 Ali Tamur <tamur@google.com>
10512
10513 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10514 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10515 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10516 (dwarf_expr_context::get_addr_index): Likewise
10517 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10518 (symbol_needs_eval_context::get_addr_index): Likewise
10519 (disassemble_dwarf_expression): Add DW_OP_addrx
10520 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10521 (read_cutu_die_from_dwo): Update comment
10522 (skip_one_die): Add DW_FORM_addrx
10523 (read_attribute_value): Likewise
10524 (var_decode_location): Add DW_OP_addrx
10525 (dwarf2_const_value_attr): Add DW_FORM_addrx
10526 (dump_die_shallow): Likewise
10527 (dwarf2_fetch_constant_bytes): Likewise
10528 (decode_locdesc): Add DW_OP_addrx
10529 (skip_form_bytes): Add DW_FORM_addrx
10530
ad9d13f8
AT
105312019-04-22 Ali Tamur <tamur@google.com>
10532
10533 * MAINTAINERS (Write After Approval): Add self.
10534
d70cc3ba
SM
105352019-04-22 Simon Marchi <simon.marchi@efficios.com>
10536
10537 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10538 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10539 (open_symbol_file_object): Likewise.
10540 (svr4_default_sos): Add info parameter.
10541 (svr4_read_so_list): Likewise.
10542 (svr4_current_sos_direct): Adjust functions calls to pass down
10543 info.
10544 (svr4_current_sos_1): Add info parameter.
10545 (svr4_current_sos): Call get_svr4_info, pass info down to
10546 svr4_current_sos_1.
10547 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10548 get_svr4_info.
10549 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10550 get_svr4_info.
10551 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10552 to get_svr4_info.
10553 (probes_table_remove_objfile_probes): Likewise.
10554 (register_solib_event_probe): Add info parameter.
10555 (solist_update_incremental): Pass info parameter down to
10556 svr4_read_so_list.
10557 (disable_probes_interface): Add info parameter.
10558 (svr4_handle_solib_event): Pass current_program_space to
10559 get_svr4_info. Adjust disable_probes_interface cleanup.
10560 (svr4_create_probe_breakpoints): Add info parameter, pass it
10561 down to register_solib_event_probe.
10562 (svr4_create_solib_event_breakpoints): Add info parameter,
10563 pass it down to svr4_create_probe_breakpoints.
10564 (enable_break): Pass info down to
10565 svr4_create_solib_event_breakpoints.
10566 (svr4_solib_create_inferior_hook): Pass current_program_space to
10567 get_svr4_info.
10568 (svr4_clear_solib): Likewise.
10569
7905fc35
PA
105702019-04-22 Pedro Alves <palves@redhat.com>
10571
10572 * solib-svr4.c (svr4_free_objfile_observer): New.
10573 (probe_and_action::objfile): New field.
10574 (probes_table_htab_remove_objfile_probes)
10575 (probes_table_remove_objfile_probes): New functions.
10576 (register_solib_event_probe): Add 'objfile' parameter. Store it
10577 in the new probe_and_action. Don't store the probe in 'lookup'.
10578 (svr4_create_probe_breakpoints): Pass objfile to
10579 register_solib_event_probe.
10580 (_initialize_svr4_solib): Register a free_objfile observer.
10581
fb881986
TT
105822019-04-19 Tom Tromey <tom@tromey.com>
10583
10584 * common/queue.h: Remove.
10585
8732db6c
TT
105862019-04-19 Tom Tromey <tom@tromey.com>
10587
10588 * event-loop.c: Don't include "common/queue.h".
10589
97dfbadd
TT
105902019-04-19 Tom Tromey <tom@tromey.com>
10591
10592 * remote.c (remote_target): Use delete.
10593 * remote-notif.h: Include <list>, not "common/queue.h".
10594 (notif_client_p): Remove typedef.
10595 (remote_notif_state): Add constructor, destructor, initializer.
10596 <notif_queue>: Now a std::list.
10597 (remote_notif_state_xfree): Don't declare.
10598 * remote-notif.c (remote_notif_process, handle_notification)
10599 (remote_notif_state_allocate): Update.
10600 (~remote_notif_state): Rename from remote_notif_state_xfree.
10601
cf250e36
TT
106022019-04-19 Tom Tromey <tom@tromey.com>
10603
10604 * symfile.c (reread_symbols): Update.
10605 * objfiles.c (objfile_register_static_link)
10606 (objfile_lookup_static_link): Update
10607 (~objfile) Don't delete static_links.
10608 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10609
61f4b350
TT
106102019-04-19 Tom Tromey <tom@tromey.com>
10611
10612 * type-stack.h (struct type_stack) <insert>: Constify string.
10613 * type-stack.c (type_stack::insert): Constify string.
10614 * gdbtypes.h (lookup_template_type): Update.
10615 (address_space_name_to_int): Update.
10616 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10617 const.
10618 (lookup_template_type): Make name const.
10619 * c-exp.y: Update rules.
10620 (lex_one_token, classify_name, classify_inner_name)
10621 (c_print_token): Update.
10622 * p-exp.y: Update rules.
10623 (yylex): Update.
10624 * f-exp.y: Update rules.
10625 (yylex): Update.
10626 * d-exp.y: Update rules.
10627 (lex_one_token, classify_name, classify_inner_name): Update.
10628 * parse.c (write_dollar_variable, copy_name): Return std::string.
10629 * parser-defs.h (copy_name): Change return type.
10630 * m2-exp.y: Update rules.
10631 (yylex): Update.
10632 * go-exp.y (lex_one_token): Update.
10633 Update rules.
10634 (classify_unsafe_function, classify_packaged_name)
10635 (classify_name, yylex): Update.
10636
189b8c2e
ST
106372019-04-19 Sergei Trofimovich <siarheit@google.com>
10638
10639 * configure.ac: add --enable-source-highlight switch.
10640 * configure: Regenerate.
10641 * top.c (print_gdb_version): plumb --enable-source-highlight
10642 status to "show configuration".
10643
8ecb59f8
TT
106442019-04-19 Tom Tromey <tromey@adacore.com>
10645
10646 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10647 Check ADA_TYPE_P.
10648 (empty_record, ada_template_to_fixed_record_type_1)
10649 (template_to_static_fixed_type)
10650 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10651 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10652 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10653 macros.
10654
62160ec9
TT
106552019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10656
10657 PR symtab/24423:
10658 * source.c (print_source_lines_base): Advance "iter" when a
10659 control character is seen.
10660
f2ae8bc8
PW
106612019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10662
10663 * inferior.h (struct infcall_suspend_state_deleter):
10664 Catch exception in destructor to avoid crash.
10665
d563b953
PW
106662019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10667
10668 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10669 close to the add_com "shell".
10670
dc34c897
TT
106712019-04-18 Tom Tromey <tromey@adacore.com>
10672
10673 * process-stratum-target.h (class process_stratum_target)
10674 <stratum>: Add "final".
10675
a12e5744
TT
106762019-04-17 Tom Tromey <tromey@adacore.com>
10677
10678 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10679 against nullptr before use.
10680
a7e559cc
AH
106812019-04-17 Alan Hayward <alan.hayward@arm.com>
10682
10683 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10684
c01660c6
AB
106852019-04-17 Jim Wilson <jimw@sifive.com>
10686 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10689 code read might fail, assume 4-byte breakpoint in that case.
10690
4aa866af
LS
106912019-04-15 Leszek Swirski <leszeks@google.com>
10692
10693 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10694 rather than a hand-rolled POD check when checking for forced MEMORY
10695 classification.
10696
48574d91
AH
106972019-04-15 Alan Hayward <alan.hayward@arm.com>
10698
10699 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10700 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10701 function.
10702 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10703 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10704 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10705 declaration.
10706
4da037ef
AH
107072019-04-15 Alan Hayward <alan.hayward@arm.com>
10708
10709 * aarch64-linux-nat.c
10710 (aarch64_linux_nat_target::thread_architecture): Add override.
10711 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10712 each VQ.
10713
ccb8d7e8
AH
107142019-04-15 Alan Hayward <alan.hayward@arm.com>
10715
10716 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10717
35add35e
AB
107182019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10721 target types of size 96-bits, add some additional comments, and
10722 check that the builtin type we found was the correct size.
10723
51196bbc
EZ
107242019-04-12 Eli Zaretskii <eliz@gnu.org>
10725
10726 * utils.c (prompt_for_continue): Don't restore the styling at the
10727 end, as applied_style has the wrong value. This fixes styling in
10728 long lists of file names that are interrupted by the "Continue?"
10729 prompt.
10730
62253a61
AB
107312019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10732
10733 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10734 * c-lang.c (c_language_defn): Likewise.
10735 (cplus_language_defn): Likewise.
10736 (asm_language_defn): Likewise.
10737 (minimal_language_defn): Likewise.
10738 * d-lang.c (d_language_defn): Likewise.
10739 * f-lang.c (f_language_defn): Likewise.
10740 * go-lang.c (go_language_defn): Likewise.
10741 * language.c (unknown_language_defn): Likewise.
10742 (auto_language_defn): Likewise.
10743 * language.h (struct language_defn): Remove la_magic field.
10744 (LANG_MAGIC): Delete.
10745 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10746 * objc-lang.c (objc_language_defn): Likewise.
10747 * opencl-lang.c (opencl_language_defn): Likewise.
10748 * p-lang.c (pascal_language_defn): Likewise.
10749 * rust-lang.c (rust_language_defn): Likewise.
10750
a9158a86
AB
107512019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * riscv-tdep.c (riscv_type_align): New function.
10754 (riscv_type_alignment): Delete.
10755 (riscv_arg_location): Use 'type_align'.
10756 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10757
41077b66
AB
107582019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10759
10760 * gdbtypes.c (type_align): A struct with no non-static fields also
10761 has alignment of 1.
10762
9f0272f8
AB
107632019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10766 component to 0.
10767 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10768 member.
10769 (riscv_struct_info::analyse): New implementation using new
10770 analyse_inner member function.
10771 (riscv_struct_info::field_offset): New member function.
10772 (riscv_struct_info::m_offsets): New member variable.
10773 (riscv_struct_info::analyse_inner): New private member function,
10774 takes the old implementation of riscv_struct_info::analyse but
10775 extended to track field offsets.
10776 (riscv_call_arg_struct): Update the struct folding special cases
10777 to handle cases where empty C++ structs, which are non-zero
10778 length, are found.
10779 (riscv_arg_location): Initialise the length of each location, a
10780 non-zero length now indicates the location is in use.
10781 (riscv_push_dummy_call): Allow for the first location having a
10782 non-zero offset when setting up arguments.
10783 (riscv_return_value): Likewise, but for return values.
10784
02cf60c7
TT
107852019-04-11 Tom Tromey <tromey@adacore.com>
10786
10787 * utils.c (internal_vproblem): Make "msg" const.
10788
68811f8f
AH
107892019-04-11 Alan Hayward <alan.hayward@arm.com>
10790
10791 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10792 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10793 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10794 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10795
3f52fdbc
KB
107962019-04-10 Kevin Buettner <kevinb@redhat.com>
10797
10798 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10799 function.
10800 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10801 of amd64_collect_native_gregset.
10802 (amd64_linux_nat_target::store_registers): Likewise.
10803
e9ad22ee
TT
108042019-04-10 Tom Tromey <tom@tromey.com>
10805
10806 * symtab.c (lookup_global_symbol_from_objfile)
10807 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10808 * objfiles.h (class separate_debug_iterator): New.
10809 (class separate_debug_range): New.
10810 (struct objfile) <separate_debug_objfiles>: New method.
10811 (objfile_separate_debug_iterate): Don't declare.
10812 * objfiles.c (separate_debug_iterator::operator++): Rename from
10813 objfile_separate_debug_iterate.
10814 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10815 iterator.
10816 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10817 iterator.
10818
ee371134
TT
108192019-04-10 Tom Tromey <tom@tromey.com>
10820
10821 * symfile.c (reread_symbols): Remove old comment.
10822 * objfiles.c (free_all_objfiles): Fix a typo.
10823
bf227d61
TT
108242019-04-10 Tom Tromey <tom@tromey.com>
10825
10826 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10827 * minsyms.c (lookup_minimal_symbol): Use foreach.
10828 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10829 (lookup_minimal_symbol_solib_trampoline): Likewise.
10830 * symfile.c (reread_symbols): Use foreach.
10831
8dc433a0
TT
108322019-04-09 Ivan Begert <ivanbegert@gmail.com>
10833 Tom Tromey <tromey@adacore.com>
10834
10835 PR rust/24414:
10836 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10837 (rust_lex_int_test): Change "value" to be LONGEST.
10838 (rust_lex_tests): Add test for long integer literal.
10839
9ab8741a
TT
108402019-04-09 Tom Tromey <tromey@adacore.com>
10841
10842 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10843 to bool.
10844 (extended_remote_target::attach): Update.
10845 (remote_target::remote_notice_new_inferior): Update.
10846 (remote_target::add_current_inferior_and_thread): Update.
10847 * inferior.c (exit_inferior_1): Use "false".
10848 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10849
e242fd12
SM
108502019-04-09 Simon Marchi <simon.marchi@efficios.com>
10851
9ca1957f 10852 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10853 the "start" command.
10854
2b0c8b01
KB
108552019-04-08 Kevin Buettner <kevinb@redhat.com>
10856
10857 * python/py-inferior.c (infpy_thread_from_thread_handle):
10858 Adjust comments to reflect renaming of thread_from_thread_handle
10859 to thread_from_handle. Adjust keywords. Fix type error message.
10860 (inferior_object_methods): Add thread_from_handle. Retain
10861 thread_from_thread_handle, but mark it as deprecated.
10862
50a82723
KB
108632019-04-08 Kevin Buettner <kevinb@redhat.com>
10864
10865 * gdbthread.h (find_thread_by_handle): Revise declaration.
10866 * thread.c (find_thread_by_handle): Likewise. Adjust
10867 implementation too.
10868 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10869 support for buffer objects as handles.
10870
cf63b016
KB
108712019-04-08 Kevin Buettner <kevinb@redhat.com>
10872
10873 * python/py-infthread.c (thpy_thread_handle): New function.
10874 (thread_object_methods): Register thpy_thread_handle.
10875
3d6c6204
KB
108762019-04-08 Kevin Buettner <kevinb@redhat.com>
10877
10878 * gdbthread.h (thread_to_thread_handle): Declare.
10879 * thread.c (gdbtypes.h): Include.
10880 (thread_to_thread_handle): New function.
10881
10882 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10883 (target_thread_info_to_thread_handle): Declare.
10884 * target.c (target_thread_info_to_thread_handle): New function.
10885 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10886 * target-delegates.c: Regenerate.
10887
10888 * linux-thread-db.c (class thread_db_target): Add method
10889 thread_info_to_thread_handle.
10890 (thread_db_target::thread_info_to_thread_handle): Define.
10891 * remote.c (class remote_target): Add new method
10892 thread_info_to_thread_handle.
10893 (remote_target::thread_info_to_thread_handle): Define.
10894
56be6ea8
PA
108952019-04-08 Pedro Alves <palves@redhat.com>
10896
10897 * common/common-exceptions.c (throw_exception): Don't create
10898 named object to throw; throw directly.
10899 (throw_it): Likewise. Don't initialize gdb_exception::message
10900 here, with new; pass FMT and AP to the ctor instead.
10901 * common/common-exceptions.h: Include <string>.
10902 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10903 const char *, va_list)): New ctor. Use std::make_shared.
10904 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10905 errors)): Delete.
10906 (gdb_exception_error::gdb_exception_error(enum errors, const char
10907 *, va_list)): New.
10908 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10909 Add assertion.
10910 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10911 errors)): Delete.
10912 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10913 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10914 Add assertion.
10915
eedc3f4f
TT
109162019-04-08 Tom Tromey <tom@tromey.com>
10917
10918 * valops.c (value_rtti_indirect_type): Replace throw_exception
10919 with throw.
10920 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10921 with throw.
10922 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10923 throw.
10924 * target.c (target_translate_tls_address): Replace throw_exception
10925 with throw.
10926 * stack.c (frame_apply_command_count): Replace throw_exception
10927 with throw.
10928 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10929 throw.
10930 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10931 with throw.
10932 * rs6000-tdep.c (rs6000_frame_cache)
10933 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10934 * remote.c: Replace throw_exception with throw.
10935 * record-full.c (record_full_message, record_full_wait_1)
10936 (record_full_restore): Replace throw_exception with throw.
10937 * record-btrace.c:
10938 (get_thread_current_frame_id, record_btrace_start_replaying)
10939 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10940 (cmd_record_btrace_start): Replace throw_exception with throw.
10941 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10942 throw.
10943 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10944 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10945 * linespec.c:
10946 (find_linespec_symbols): Replace throw_exception with throw.
10947 * infrun.c (displaced_step_prepare, resume): Replace
10948 throw_exception with throw.
10949 * infcmd.c (post_create_inferior): Replace throw_exception with
10950 throw.
10951 * inf-loop.c (inferior_event_handler): Replace throw_exception
10952 with throw.
10953 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10954 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10955 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10956 (get_prev_frame_always, get_frame_pc_if_available)
10957 (get_frame_address_in_block_if_available, get_frame_language):
10958 Replace throw_exception with throw.
10959 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10960 throw_exception with throw.
10961 * eval.c (fetch_subexp_value, evaluate_var_value)
10962 (evaluate_funcall, evaluate_subexp_standard): Replace
10963 throw_exception with throw.
10964 * dwarf2loc.c (call_site_find_chain)
10965 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10966 Replace throw_exception with throw.
10967 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10968 with throw.
10969 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10970 throw.
10971 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10972 * completer.c (complete_line_internal): Replace throw_exception
10973 with throw.
10974 * compile/compile-object-run.c (compile_object_run): Replace
10975 throw_exception with throw.
10976 * cli/cli-script.c (process_next_line): Replace throw_exception
10977 with throw.
10978 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10979 (btrace_enable, btrace_maint_update_pt_packets): Replace
10980 throw_exception with throw.
10981 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10982 throw_exception with throw.
10983 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10984 throw_exception with throw.
10985 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10986 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10987 * aarch64-tdep.c (aarch64_make_prologue_cache)
10988 (aarch64_make_stub_cache): Replace throw_exception with throw.
10989
26003a20
TT
109902019-04-08 Tom Tromey <tom@tromey.com>
10991
10992 * common/common-exceptions.c (throw_exception): Rename from
10993 throw_exception_cxx. Remove old copy. Make argument const.
10994 (throw_it): Create and throw exception objects directly.
10995 * common/common-exceptions.h (throw_exception): Make argument
10996 const.
10997 (struct gdb_exception_error): Add constructor.
10998 (struct gdb_exception_quit): Add constructor.
10999
d272eb37
TT
110002019-04-08 Tom Tromey <tom@tromey.com>
11001
11002 * common/common-exceptions.h (exception_rethrow): Don't declare.
11003 (TRY_SJLJ): Update comment.
11004 (TRY, CATCH, END_CATCH): Remove.
11005 * common/common-exceptions.c (exception_rethrow): Remove.
11006
230d2906
TT
110072019-04-08 Tom Tromey <tom@tromey.com>
11008
11009 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11010 Remove.
11011 (gdb_exception_error): Rename from
11012 gdb_exception_RETURN_MASK_ERROR.
11013 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11014 (gdb_quit_bad_alloc): Update.
11015 * aarch64-tdep.c: Update.
11016 * ada-lang.c: Update.
11017 * ada-typeprint.c: Update.
11018 * ada-valprint.c: Update.
11019 * amd64-tdep.c: Update.
11020 * arch-utils.c: Update.
11021 * break-catch-throw.c: Update.
11022 * breakpoint.c: Update.
11023 * btrace.c: Update.
11024 * c-varobj.c: Update.
11025 * cli/cli-cmds.c: Update.
11026 * cli/cli-interp.c: Update.
11027 * cli/cli-script.c: Update.
11028 * common/common-exceptions.c: Update.
11029 * common/new-op.c: Update.
11030 * common/selftest.c: Update.
11031 * compile/compile-c-symbols.c: Update.
11032 * compile/compile-cplus-symbols.c: Update.
11033 * compile/compile-object-load.c: Update.
11034 * compile/compile-object-run.c: Update.
11035 * completer.c: Update.
11036 * corelow.c: Update.
11037 * cp-abi.c: Update.
11038 * cp-support.c: Update.
11039 * cp-valprint.c: Update.
11040 * darwin-nat.c: Update.
11041 * disasm-selftests.c: Update.
11042 * dtrace-probe.c: Update.
11043 * dwarf-index-cache.c: Update.
11044 * dwarf-index-write.c: Update.
11045 * dwarf2-frame-tailcall.c: Update.
11046 * dwarf2-frame.c: Update.
11047 * dwarf2loc.c: Update.
11048 * dwarf2read.c: Update.
11049 * eval.c: Update.
11050 * event-loop.c: Update.
11051 * event-top.c: Update.
11052 * exec.c: Update.
11053 * f-valprint.c: Update.
11054 * fbsd-tdep.c: Update.
11055 * frame-unwind.c: Update.
11056 * frame.c: Update.
11057 * gdbtypes.c: Update.
11058 * gnu-v3-abi.c: Update.
11059 * guile/guile-internal.h: Update.
11060 * guile/scm-block.c: Update.
11061 * guile/scm-breakpoint.c: Update.
11062 * guile/scm-cmd.c: Update.
11063 * guile/scm-disasm.c: Update.
11064 * guile/scm-frame.c: Update.
11065 * guile/scm-lazy-string.c: Update.
11066 * guile/scm-math.c: Update.
11067 * guile/scm-param.c: Update.
11068 * guile/scm-ports.c: Update.
11069 * guile/scm-pretty-print.c: Update.
11070 * guile/scm-symbol.c: Update.
11071 * guile/scm-symtab.c: Update.
11072 * guile/scm-type.c: Update.
11073 * guile/scm-value.c: Update.
11074 * i386-linux-tdep.c: Update.
11075 * i386-tdep.c: Update.
11076 * inf-loop.c: Update.
11077 * infcall.c: Update.
11078 * infcmd.c: Update.
11079 * infrun.c: Update.
11080 * jit.c: Update.
11081 * language.c: Update.
11082 * linespec.c: Update.
11083 * linux-fork.c: Update.
11084 * linux-nat.c: Update.
11085 * linux-tdep.c: Update.
11086 * linux-thread-db.c: Update.
11087 * main.c: Update.
11088 * mi/mi-cmd-break.c: Update.
11089 * mi/mi-cmd-stack.c: Update.
11090 * mi/mi-interp.c: Update.
11091 * mi/mi-main.c: Update.
11092 * objc-lang.c: Update.
11093 * p-valprint.c: Update.
11094 * parse.c: Update.
11095 * ppc-linux-tdep.c: Update.
11096 * printcmd.c: Update.
11097 * python/py-arch.c: Update.
11098 * python/py-breakpoint.c: Update.
11099 * python/py-cmd.c: Update.
11100 * python/py-finishbreakpoint.c: Update.
11101 * python/py-frame.c: Update.
11102 * python/py-framefilter.c: Update.
11103 * python/py-gdb-readline.c: Update.
11104 * python/py-inferior.c: Update.
11105 * python/py-infthread.c: Update.
11106 * python/py-lazy-string.c: Update.
11107 * python/py-linetable.c: Update.
11108 * python/py-objfile.c: Update.
11109 * python/py-param.c: Update.
11110 * python/py-prettyprint.c: Update.
11111 * python/py-progspace.c: Update.
11112 * python/py-record-btrace.c: Update.
11113 * python/py-record.c: Update.
11114 * python/py-symbol.c: Update.
11115 * python/py-type.c: Update.
11116 * python/py-unwind.c: Update.
11117 * python/py-utils.c: Update.
11118 * python/py-value.c: Update.
11119 * python/python.c: Update.
11120 * record-btrace.c: Update.
11121 * record-full.c: Update.
11122 * remote-fileio.c: Update.
11123 * remote.c: Update.
11124 * riscv-tdep.c: Update.
11125 * rs6000-aix-tdep.c: Update.
11126 * rs6000-tdep.c: Update.
11127 * rust-exp.y: Update.
11128 * rust-lang.c: Update.
11129 * s390-tdep.c: Update.
11130 * selftest-arch.c: Update.
11131 * solib-dsbt.c: Update.
11132 * solib-frv.c: Update.
11133 * solib-spu.c: Update.
11134 * solib-svr4.c: Update.
11135 * solib.c: Update.
11136 * sparc64-linux-tdep.c: Update.
11137 * stack.c: Update.
11138 * symfile-mem.c: Update.
11139 * symmisc.c: Update.
11140 * target.c: Update.
11141 * thread.c: Update.
11142 * top.c: Update.
11143 * tracefile-tfile.c: Update.
11144 * tui/tui.c: Update.
11145 * typeprint.c: Update.
11146 * unittests/cli-utils-selftests.c: Update.
11147 * unittests/parse-connection-spec-selftests.c: Update.
11148 * valops.c: Update.
11149 * valprint.c: Update.
11150 * value.c: Update.
11151 * varobj.c: Update.
11152 * windows-nat.c: Update.
11153 * x86-linux-nat.c: Update.
11154 * xml-support.c: Update.
11155
a70b8144
TT
111562019-04-08 Tom Tromey <tom@tromey.com>
11157
11158 * xml-support.c: Use C++ exception handling.
11159 * x86-linux-nat.c: Use C++ exception handling.
11160 * windows-nat.c: Use C++ exception handling.
11161 * varobj.c: Use C++ exception handling.
11162 * value.c: Use C++ exception handling.
11163 * valprint.c: Use C++ exception handling.
11164 * valops.c: Use C++ exception handling.
11165 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11166 handling.
11167 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11168 * typeprint.c: Use C++ exception handling.
11169 * tui/tui.c: Use C++ exception handling.
11170 * tracefile-tfile.c: Use C++ exception handling.
11171 * top.c: Use C++ exception handling.
11172 * thread.c: Use C++ exception handling.
11173 * target.c: Use C++ exception handling.
11174 * symmisc.c: Use C++ exception handling.
11175 * symfile-mem.c: Use C++ exception handling.
11176 * stack.c: Use C++ exception handling.
11177 * sparc64-linux-tdep.c: Use C++ exception handling.
11178 * solib.c: Use C++ exception handling.
11179 * solib-svr4.c: Use C++ exception handling.
11180 * solib-spu.c: Use C++ exception handling.
11181 * solib-frv.c: Use C++ exception handling.
11182 * solib-dsbt.c: Use C++ exception handling.
11183 * selftest-arch.c: Use C++ exception handling.
11184 * s390-tdep.c: Use C++ exception handling.
11185 * rust-lang.c: Use C++ exception handling.
11186 * rust-exp.y: Use C++ exception handling.
11187 * rs6000-tdep.c: Use C++ exception handling.
11188 * rs6000-aix-tdep.c: Use C++ exception handling.
11189 * riscv-tdep.c: Use C++ exception handling.
11190 * remote.c: Use C++ exception handling.
11191 * remote-fileio.c: Use C++ exception handling.
11192 * record-full.c: Use C++ exception handling.
11193 * record-btrace.c: Use C++ exception handling.
11194 * python/python.c: Use C++ exception handling.
11195 * python/py-value.c: Use C++ exception handling.
11196 * python/py-utils.c: Use C++ exception handling.
11197 * python/py-unwind.c: Use C++ exception handling.
11198 * python/py-type.c: Use C++ exception handling.
11199 * python/py-symbol.c: Use C++ exception handling.
11200 * python/py-record.c: Use C++ exception handling.
11201 * python/py-record-btrace.c: Use C++ exception handling.
11202 * python/py-progspace.c: Use C++ exception handling.
11203 * python/py-prettyprint.c: Use C++ exception handling.
11204 * python/py-param.c: Use C++ exception handling.
11205 * python/py-objfile.c: Use C++ exception handling.
11206 * python/py-linetable.c: Use C++ exception handling.
11207 * python/py-lazy-string.c: Use C++ exception handling.
11208 * python/py-infthread.c: Use C++ exception handling.
11209 * python/py-inferior.c: Use C++ exception handling.
11210 * python/py-gdb-readline.c: Use C++ exception handling.
11211 * python/py-framefilter.c: Use C++ exception handling.
11212 * python/py-frame.c: Use C++ exception handling.
11213 * python/py-finishbreakpoint.c: Use C++ exception handling.
11214 * python/py-cmd.c: Use C++ exception handling.
11215 * python/py-breakpoint.c: Use C++ exception handling.
11216 * python/py-arch.c: Use C++ exception handling.
11217 * printcmd.c: Use C++ exception handling.
11218 * ppc-linux-tdep.c: Use C++ exception handling.
11219 * parse.c: Use C++ exception handling.
11220 * p-valprint.c: Use C++ exception handling.
11221 * objc-lang.c: Use C++ exception handling.
11222 * mi/mi-main.c: Use C++ exception handling.
11223 * mi/mi-interp.c: Use C++ exception handling.
11224 * mi/mi-cmd-stack.c: Use C++ exception handling.
11225 * mi/mi-cmd-break.c: Use C++ exception handling.
11226 * main.c: Use C++ exception handling.
11227 * linux-thread-db.c: Use C++ exception handling.
11228 * linux-tdep.c: Use C++ exception handling.
11229 * linux-nat.c: Use C++ exception handling.
11230 * linux-fork.c: Use C++ exception handling.
11231 * linespec.c: Use C++ exception handling.
11232 * language.c: Use C++ exception handling.
11233 * jit.c: Use C++ exception handling.
11234 * infrun.c: Use C++ exception handling.
11235 * infcmd.c: Use C++ exception handling.
11236 * infcall.c: Use C++ exception handling.
11237 * inf-loop.c: Use C++ exception handling.
11238 * i386-tdep.c: Use C++ exception handling.
11239 * i386-linux-tdep.c: Use C++ exception handling.
11240 * guile/scm-value.c: Use C++ exception handling.
11241 * guile/scm-type.c: Use C++ exception handling.
11242 * guile/scm-symtab.c: Use C++ exception handling.
11243 * guile/scm-symbol.c: Use C++ exception handling.
11244 * guile/scm-pretty-print.c: Use C++ exception handling.
11245 * guile/scm-ports.c: Use C++ exception handling.
11246 * guile/scm-param.c: Use C++ exception handling.
11247 * guile/scm-math.c: Use C++ exception handling.
11248 * guile/scm-lazy-string.c: Use C++ exception handling.
11249 * guile/scm-frame.c: Use C++ exception handling.
11250 * guile/scm-disasm.c: Use C++ exception handling.
11251 * guile/scm-cmd.c: Use C++ exception handling.
11252 * guile/scm-breakpoint.c: Use C++ exception handling.
11253 * guile/scm-block.c: Use C++ exception handling.
11254 * guile/guile-internal.h: Use C++ exception handling.
11255 * gnu-v3-abi.c: Use C++ exception handling.
11256 * gdbtypes.c: Use C++ exception handling.
11257 * frame.c: Use C++ exception handling.
11258 * frame-unwind.c: Use C++ exception handling.
11259 * fbsd-tdep.c: Use C++ exception handling.
11260 * f-valprint.c: Use C++ exception handling.
11261 * exec.c: Use C++ exception handling.
11262 * event-top.c: Use C++ exception handling.
11263 * event-loop.c: Use C++ exception handling.
11264 * eval.c: Use C++ exception handling.
11265 * dwarf2read.c: Use C++ exception handling.
11266 * dwarf2loc.c: Use C++ exception handling.
11267 * dwarf2-frame.c: Use C++ exception handling.
11268 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11269 * dwarf-index-write.c: Use C++ exception handling.
11270 * dwarf-index-cache.c: Use C++ exception handling.
11271 * dtrace-probe.c: Use C++ exception handling.
11272 * disasm-selftests.c: Use C++ exception handling.
11273 * darwin-nat.c: Use C++ exception handling.
11274 * cp-valprint.c: Use C++ exception handling.
11275 * cp-support.c: Use C++ exception handling.
11276 * cp-abi.c: Use C++ exception handling.
11277 * corelow.c: Use C++ exception handling.
11278 * completer.c: Use C++ exception handling.
11279 * compile/compile-object-run.c: Use C++ exception handling.
11280 * compile/compile-object-load.c: Use C++ exception handling.
11281 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11282 * compile/compile-c-symbols.c: Use C++ exception handling.
11283 * common/selftest.c: Use C++ exception handling.
11284 * common/new-op.c: Use C++ exception handling.
11285 * cli/cli-script.c: Use C++ exception handling.
11286 * cli/cli-interp.c: Use C++ exception handling.
11287 * cli/cli-cmds.c: Use C++ exception handling.
11288 * c-varobj.c: Use C++ exception handling.
11289 * btrace.c: Use C++ exception handling.
11290 * breakpoint.c: Use C++ exception handling.
11291 * break-catch-throw.c: Use C++ exception handling.
11292 * arch-utils.c: Use C++ exception handling.
11293 * amd64-tdep.c: Use C++ exception handling.
11294 * ada-valprint.c: Use C++ exception handling.
11295 * ada-typeprint.c: Use C++ exception handling.
11296 * ada-lang.c: Use C++ exception handling.
11297 * aarch64-tdep.c: Use C++ exception handling.
11298
3d6e9d23
TT
112992019-04-08 Tom Tromey <tom@tromey.com>
11300
11301 * xml-support.c (gdb_xml_parser::parse): Update.
11302 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11303 * value.c (show_convenience): Update.
11304 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11305 (test_parse_flags_qcs): Update.
11306 * thread.c (thr_try_catch_cmd): Update.
11307 * target.c (target_translate_tls_address): Update.
11308 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11309 (info_frame_command_core, frame_apply_command_count): Update.
11310 * rust-exp.y (rust_lex_exception_test): Update.
11311 * riscv-tdep.c (riscv_print_one_register_info): Update.
11312 * remote.c (remote_target::enable_btrace): Update.
11313 * record-btrace.c (record_btrace_enable_warn): Update.
11314 * python/py-utils.c (gdbpy_convert_exception): Update.
11315 * printcmd.c (do_one_display, print_variable_and_value): Update.
11316 * mi/mi-main.c (mi_print_exception): Update.
11317 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11318 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11319 * linux-nat.c (linux_nat_target::attach): Update.
11320 * linux-fork.c (class scoped_switch_fork_info): Update.
11321 * infrun.c (displaced_step_prepare): Update.
11322 * infcall.c (call_function_by_hand_dummy): Update.
11323 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11324 * gnu-v3-abi.c (print_one_vtable): Update.
11325 * frame.c (get_prev_frame_always): Update.
11326 * f-valprint.c (info_common_command_for_block): Update.
11327 * exec.c (try_open_exec_file): Update.
11328 * exceptions.c (print_exception, exception_print)
11329 (exception_fprintf, exception_print_same): Update.
11330 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11331 * dwarf-index-cache.c (index_cache::store)
11332 (index_cache::lookup_gdb_index): Update.
11333 * darwin-nat.c (maybe_cache_shell): Update.
11334 * cp-valprint.c (cp_print_value_fields): Update.
11335 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11336 (gcc_cplus_symbol_address): Update.
11337 * compile/compile-c-symbols.c (gcc_convert_symbol)
11338 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11339 * common/selftest.c: Update.
11340 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11341 a std::string.
11342 (exception_try_scope_entry, exception_try_scope_exit): Don't
11343 declare.
11344 (struct exception_try_scope): Remove.
11345 (TRY): Don't use exception_try_scope.
11346 (struct gdb_exception): Add constructor, operator=.
11347 <what>: New method.
11348 (struct gdb_exception_RETURN_MASK_ALL)
11349 (struct gdb_exception_RETURN_MASK_ERROR)
11350 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11351 (struct gdb_quit_bad_alloc): Update.
11352 * common/common-exceptions.c (exception_none): Change
11353 initializer.
11354 (struct catcher) <state, exception>: Initialize inline.
11355 <prev>: Remove member.
11356 (current_catcher): Remove.
11357 (catchers): New global.
11358 (exceptions_state_mc_init): Simplify.
11359 (catcher_pop): Remove.
11360 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11361 (try_scope_depth, exception_try_scope_entry)
11362 (exception_try_scope_exit): Remove.
11363 (throw_exception_sjlj): Update.
11364 (exception_messages, exception_messages_size): Remove.
11365 (throw_it): Simplify.
11366 (gdb_exception_sliced_copy): Remove.
11367 (throw_exception_cxx): Update.
11368 * cli/cli-script.c (script_from_file): Update.
11369 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11370 Update.
11371 * ada-valprint.c (ada_val_print): Update.
11372 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11373 (create_excep_cond_exprs): Update.
11374
c5c10118
TT
113752019-04-08 Tom Tromey <tom@tromey.com>
11376
11377 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11378 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11379 (TRY, CATCH, END_CATCH): Remove some definitions.
11380 * common/common-exceptions.c: Don't use GDB_XCPT.
11381 (catcher_list_size): Remove.
11382 (throw_exception, throw_it): Simplify.
11383
4de283e4
TT
113842019-04-05 Tom Tromey <tom@tromey.com>
11385
11386 Revert the header-sorting patch.
11387 * ft32-tdep.c: Revert.
11388 * frv-tdep.c: Revert.
11389 * frv-linux-tdep.c: Revert.
11390 * frame.c: Revert.
11391 * frame-unwind.c: Revert.
11392 * frame-base.c: Revert.
11393 * fork-child.c: Revert.
11394 * findvar.c: Revert.
11395 * findcmd.c: Revert.
11396 * filesystem.c: Revert.
11397 * filename-seen-cache.h: Revert.
11398 * filename-seen-cache.c: Revert.
11399 * fbsd-tdep.c: Revert.
11400 * fbsd-nat.h: Revert.
11401 * fbsd-nat.c: Revert.
11402 * f-valprint.c: Revert.
11403 * f-typeprint.c: Revert.
11404 * f-lang.c: Revert.
11405 * extension.h: Revert.
11406 * extension.c: Revert.
11407 * extension-priv.h: Revert.
11408 * expprint.c: Revert.
11409 * exec.h: Revert.
11410 * exec.c: Revert.
11411 * exceptions.c: Revert.
11412 * event-top.c: Revert.
11413 * event-loop.c: Revert.
11414 * eval.c: Revert.
11415 * elfread.c: Revert.
11416 * dwarf2read.h: Revert.
11417 * dwarf2read.c: Revert.
11418 * dwarf2loc.c: Revert.
11419 * dwarf2expr.h: Revert.
11420 * dwarf2expr.c: Revert.
11421 * dwarf2-frame.c: Revert.
11422 * dwarf2-frame-tailcall.c: Revert.
11423 * dwarf-index-write.h: Revert.
11424 * dwarf-index-write.c: Revert.
11425 * dwarf-index-common.c: Revert.
11426 * dwarf-index-cache.h: Revert.
11427 * dwarf-index-cache.c: Revert.
11428 * dummy-frame.c: Revert.
11429 * dtrace-probe.c: Revert.
11430 * disasm.h: Revert.
11431 * disasm.c: Revert.
11432 * disasm-selftests.c: Revert.
11433 * dictionary.c: Revert.
11434 * dicos-tdep.c: Revert.
11435 * demangle.c: Revert.
11436 * dcache.h: Revert.
11437 * dcache.c: Revert.
11438 * darwin-nat.h: Revert.
11439 * darwin-nat.c: Revert.
11440 * darwin-nat-info.c: Revert.
11441 * d-valprint.c: Revert.
11442 * d-namespace.c: Revert.
11443 * d-lang.c: Revert.
11444 * ctf.c: Revert.
11445 * csky-tdep.c: Revert.
11446 * csky-linux-tdep.c: Revert.
11447 * cris-tdep.c: Revert.
11448 * cris-linux-tdep.c: Revert.
11449 * cp-valprint.c: Revert.
11450 * cp-support.c: Revert.
11451 * cp-namespace.c: Revert.
11452 * cp-abi.c: Revert.
11453 * corelow.c: Revert.
11454 * corefile.c: Revert.
11455 * continuations.c: Revert.
11456 * completer.h: Revert.
11457 * completer.c: Revert.
11458 * complaints.c: Revert.
11459 * coffread.c: Revert.
11460 * coff-pe-read.c: Revert.
11461 * cli-out.h: Revert.
11462 * cli-out.c: Revert.
11463 * charset.c: Revert.
11464 * c-varobj.c: Revert.
11465 * c-valprint.c: Revert.
11466 * c-typeprint.c: Revert.
11467 * c-lang.c: Revert.
11468 * buildsym.c: Revert.
11469 * buildsym-legacy.c: Revert.
11470 * build-id.h: Revert.
11471 * build-id.c: Revert.
11472 * btrace.c: Revert.
11473 * bsd-uthread.c: Revert.
11474 * breakpoint.h: Revert.
11475 * breakpoint.c: Revert.
11476 * break-catch-throw.c: Revert.
11477 * break-catch-syscall.c: Revert.
11478 * break-catch-sig.c: Revert.
11479 * blockframe.c: Revert.
11480 * block.c: Revert.
11481 * bfin-tdep.c: Revert.
11482 * bfin-linux-tdep.c: Revert.
11483 * bfd-target.c: Revert.
11484 * bcache.c: Revert.
11485 * ax-general.c: Revert.
11486 * ax-gdb.h: Revert.
11487 * ax-gdb.c: Revert.
11488 * avr-tdep.c: Revert.
11489 * auxv.c: Revert.
11490 * auto-load.c: Revert.
11491 * arm-wince-tdep.c: Revert.
11492 * arm-tdep.c: Revert.
11493 * arm-symbian-tdep.c: Revert.
11494 * arm-pikeos-tdep.c: Revert.
11495 * arm-obsd-tdep.c: Revert.
11496 * arm-nbsd-tdep.c: Revert.
11497 * arm-nbsd-nat.c: Revert.
11498 * arm-linux-tdep.c: Revert.
11499 * arm-linux-nat.c: Revert.
11500 * arm-fbsd-tdep.c: Revert.
11501 * arm-fbsd-nat.c: Revert.
11502 * arm-bsd-tdep.c: Revert.
11503 * arch-utils.c: Revert.
11504 * arc-tdep.c: Revert.
11505 * arc-newlib-tdep.c: Revert.
11506 * annotate.h: Revert.
11507 * annotate.c: Revert.
11508 * amd64-windows-tdep.c: Revert.
11509 * amd64-windows-nat.c: Revert.
11510 * amd64-tdep.c: Revert.
11511 * amd64-sol2-tdep.c: Revert.
11512 * amd64-obsd-tdep.c: Revert.
11513 * amd64-obsd-nat.c: Revert.
11514 * amd64-nbsd-tdep.c: Revert.
11515 * amd64-nbsd-nat.c: Revert.
11516 * amd64-nat.c: Revert.
11517 * amd64-linux-tdep.c: Revert.
11518 * amd64-linux-nat.c: Revert.
11519 * amd64-fbsd-tdep.c: Revert.
11520 * amd64-fbsd-nat.c: Revert.
11521 * amd64-dicos-tdep.c: Revert.
11522 * amd64-darwin-tdep.c: Revert.
11523 * amd64-bsd-nat.c: Revert.
11524 * alpha-tdep.c: Revert.
11525 * alpha-obsd-tdep.c: Revert.
11526 * alpha-nbsd-tdep.c: Revert.
11527 * alpha-mdebug-tdep.c: Revert.
11528 * alpha-linux-tdep.c: Revert.
11529 * alpha-linux-nat.c: Revert.
11530 * alpha-bsd-tdep.c: Revert.
11531 * alpha-bsd-nat.c: Revert.
11532 * aix-thread.c: Revert.
11533 * agent.c: Revert.
11534 * addrmap.c: Revert.
11535 * ada-varobj.c: Revert.
11536 * ada-valprint.c: Revert.
11537 * ada-typeprint.c: Revert.
11538 * ada-tasks.c: Revert.
11539 * ada-lang.c: Revert.
11540 * aarch64-tdep.c: Revert.
11541 * aarch64-ravenscar-thread.c: Revert.
11542 * aarch64-newlib-tdep.c: Revert.
11543 * aarch64-linux-tdep.c: Revert.
11544 * aarch64-linux-nat.c: Revert.
11545 * aarch64-fbsd-tdep.c: Revert.
11546 * aarch64-fbsd-nat.c: Revert.
11547 * aarch32-linux-nat.c: Revert.
11548
d55e5aa6
TT
115492019-04-05 Tom Tromey <tom@tromey.com>
11550
11551 * ft32-tdep.c: Sort headers.
11552 * frv-tdep.c: Sort headers.
11553 * frv-linux-tdep.c: Sort headers.
11554 * frame.c: Sort headers.
11555 * frame-unwind.c: Sort headers.
11556 * frame-base.c: Sort headers.
11557 * fork-child.c: Sort headers.
11558 * findvar.c: Sort headers.
11559 * findcmd.c: Sort headers.
11560 * filesystem.c: Sort headers.
11561 * filename-seen-cache.h: Sort headers.
11562 * filename-seen-cache.c: Sort headers.
11563 * fbsd-tdep.c: Sort headers.
11564 * fbsd-nat.h: Sort headers.
11565 * fbsd-nat.c: Sort headers.
11566 * f-valprint.c: Sort headers.
11567 * f-typeprint.c: Sort headers.
11568 * f-lang.c: Sort headers.
11569 * extension.h: Sort headers.
11570 * extension.c: Sort headers.
11571 * extension-priv.h: Sort headers.
11572 * expprint.c: Sort headers.
11573 * exec.h: Sort headers.
11574 * exec.c: Sort headers.
11575 * exceptions.c: Sort headers.
11576 * event-top.c: Sort headers.
11577 * event-loop.c: Sort headers.
11578 * eval.c: Sort headers.
11579 * elfread.c: Sort headers.
11580 * dwarf2read.h: Sort headers.
11581 * dwarf2read.c: Sort headers.
11582 * dwarf2loc.c: Sort headers.
11583 * dwarf2expr.h: Sort headers.
11584 * dwarf2expr.c: Sort headers.
11585 * dwarf2-frame.c: Sort headers.
11586 * dwarf2-frame-tailcall.c: Sort headers.
11587 * dwarf-index-write.h: Sort headers.
11588 * dwarf-index-write.c: Sort headers.
11589 * dwarf-index-common.c: Sort headers.
11590 * dwarf-index-cache.h: Sort headers.
11591 * dwarf-index-cache.c: Sort headers.
11592 * dummy-frame.c: Sort headers.
11593 * dtrace-probe.c: Sort headers.
11594 * disasm.h: Sort headers.
11595 * disasm.c: Sort headers.
11596 * disasm-selftests.c: Sort headers.
11597 * dictionary.c: Sort headers.
11598 * dicos-tdep.c: Sort headers.
11599 * demangle.c: Sort headers.
11600 * dcache.h: Sort headers.
11601 * dcache.c: Sort headers.
11602 * darwin-nat.h: Sort headers.
11603 * darwin-nat.c: Sort headers.
11604 * darwin-nat-info.c: Sort headers.
11605 * d-valprint.c: Sort headers.
11606 * d-namespace.c: Sort headers.
11607 * d-lang.c: Sort headers.
11608 * ctf.c: Sort headers.
11609 * csky-tdep.c: Sort headers.
11610 * csky-linux-tdep.c: Sort headers.
11611 * cris-tdep.c: Sort headers.
11612 * cris-linux-tdep.c: Sort headers.
11613 * cp-valprint.c: Sort headers.
11614 * cp-support.c: Sort headers.
11615 * cp-namespace.c: Sort headers.
11616 * cp-abi.c: Sort headers.
11617 * corelow.c: Sort headers.
11618 * corefile.c: Sort headers.
11619 * continuations.c: Sort headers.
11620 * completer.h: Sort headers.
11621 * completer.c: Sort headers.
11622 * complaints.c: Sort headers.
11623 * coffread.c: Sort headers.
11624 * coff-pe-read.c: Sort headers.
11625 * cli-out.h: Sort headers.
11626 * cli-out.c: Sort headers.
11627 * charset.c: Sort headers.
11628 * c-varobj.c: Sort headers.
11629 * c-valprint.c: Sort headers.
11630 * c-typeprint.c: Sort headers.
11631 * c-lang.c: Sort headers.
11632 * buildsym.c: Sort headers.
11633 * buildsym-legacy.c: Sort headers.
11634 * build-id.h: Sort headers.
11635 * build-id.c: Sort headers.
11636 * btrace.c: Sort headers.
11637 * bsd-uthread.c: Sort headers.
11638 * breakpoint.h: Sort headers.
11639 * breakpoint.c: Sort headers.
11640 * break-catch-throw.c: Sort headers.
11641 * break-catch-syscall.c: Sort headers.
11642 * break-catch-sig.c: Sort headers.
11643 * blockframe.c: Sort headers.
11644 * block.c: Sort headers.
11645 * bfin-tdep.c: Sort headers.
11646 * bfin-linux-tdep.c: Sort headers.
11647 * bfd-target.c: Sort headers.
11648 * bcache.c: Sort headers.
11649 * ax-general.c: Sort headers.
11650 * ax-gdb.h: Sort headers.
11651 * ax-gdb.c: Sort headers.
11652 * avr-tdep.c: Sort headers.
11653 * auxv.c: Sort headers.
11654 * auto-load.c: Sort headers.
11655 * arm-wince-tdep.c: Sort headers.
11656 * arm-tdep.c: Sort headers.
11657 * arm-symbian-tdep.c: Sort headers.
11658 * arm-pikeos-tdep.c: Sort headers.
11659 * arm-obsd-tdep.c: Sort headers.
11660 * arm-nbsd-tdep.c: Sort headers.
11661 * arm-nbsd-nat.c: Sort headers.
11662 * arm-linux-tdep.c: Sort headers.
11663 * arm-linux-nat.c: Sort headers.
11664 * arm-fbsd-tdep.c: Sort headers.
11665 * arm-fbsd-nat.c: Sort headers.
11666 * arm-bsd-tdep.c: Sort headers.
11667 * arch-utils.c: Sort headers.
11668 * arc-tdep.c: Sort headers.
11669 * arc-newlib-tdep.c: Sort headers.
11670 * annotate.h: Sort headers.
11671 * annotate.c: Sort headers.
11672 * amd64-windows-tdep.c: Sort headers.
11673 * amd64-windows-nat.c: Sort headers.
11674 * amd64-tdep.c: Sort headers.
11675 * amd64-sol2-tdep.c: Sort headers.
11676 * amd64-obsd-tdep.c: Sort headers.
11677 * amd64-obsd-nat.c: Sort headers.
11678 * amd64-nbsd-tdep.c: Sort headers.
11679 * amd64-nbsd-nat.c: Sort headers.
11680 * amd64-nat.c: Sort headers.
11681 * amd64-linux-tdep.c: Sort headers.
11682 * amd64-linux-nat.c: Sort headers.
11683 * amd64-fbsd-tdep.c: Sort headers.
11684 * amd64-fbsd-nat.c: Sort headers.
11685 * amd64-dicos-tdep.c: Sort headers.
11686 * amd64-darwin-tdep.c: Sort headers.
11687 * amd64-bsd-nat.c: Sort headers.
11688 * alpha-tdep.c: Sort headers.
11689 * alpha-obsd-tdep.c: Sort headers.
11690 * alpha-nbsd-tdep.c: Sort headers.
11691 * alpha-mdebug-tdep.c: Sort headers.
11692 * alpha-linux-tdep.c: Sort headers.
11693 * alpha-linux-nat.c: Sort headers.
11694 * alpha-bsd-tdep.c: Sort headers.
11695 * alpha-bsd-nat.c: Sort headers.
11696 * aix-thread.c: Sort headers.
11697 * agent.c: Sort headers.
11698 * addrmap.c: Sort headers.
11699 * ada-varobj.c: Sort headers.
11700 * ada-valprint.c: Sort headers.
11701 * ada-typeprint.c: Sort headers.
11702 * ada-tasks.c: Sort headers.
11703 * ada-lang.c: Sort headers.
11704 * aarch64-tdep.c: Sort headers.
11705 * aarch64-ravenscar-thread.c: Sort headers.
11706 * aarch64-newlib-tdep.c: Sort headers.
11707 * aarch64-linux-tdep.c: Sort headers.
11708 * aarch64-linux-nat.c: Sort headers.
11709 * aarch64-fbsd-tdep.c: Sort headers.
11710 * aarch64-fbsd-nat.c: Sort headers.
11711 * aarch32-linux-nat.c: Sort headers.
11712
699bd4cf
TT
117132019-04-04 Tom Tromey <tom@tromey.com>
11714
11715 * varobj.c (varobj_create): Update.
11716 * rust-exp.y (struct rust_parser) <update_innermost_block,
11717 lookup_symbol>: New methods.
11718 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11719 Rename.
11720 (rust_parser::rust_lookup_type)
11721 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11722 * printcmd.c (display_command, do_one_display): Update.
11723 * parser-defs.h (struct parser_state) <parser_state>: Add
11724 "tracker" parameter.
11725 (block_tracker): New member.
11726 (class innermost_block_tracker) <innermost_block_tracker>: Add
11727 "types" parameter.
11728 <reset>: Remove method.
11729 (innermost_block): Don't declare.
11730 (null_post_parser): Update.
11731 * parse.c (innermost_block): Remove global.
11732 (write_dollar_variable): Update.
11733 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11734 Remove "tracker_types" parameter.
11735 (parse_expression): Add "tracker" parameter.
11736 (parse_expression_for_completion): Update.
11737 (null_post_parser): Add "tracker" parameter.
11738 * p-exp.y: Update rules.
11739 * m2-exp.y: Update rules.
11740 * language.h (struct language_defn) <la_post_parser>: Add
11741 "tracker" parameter.
11742 * go-exp.y: Update rules.
11743 * f-exp.y: Update rules.
11744 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11745 parameter.
11746 * d-exp.y: Update rules.
11747 * c-exp.y: Update rules.
11748 * breakpoint.c (set_breakpoint_condition): Create an
11749 innermost_block_tracker.
11750 (watch_command_1): Likewise.
11751 * ada-lang.c (resolve): Add "tracker" parameter.
11752 (resolve_subexp): Likewise.
11753 * ada-exp.y (write_var_from_sym): Update.
11754
dac43e32
TT
117552019-04-04 Tom Tromey <tom@tromey.com>
11756
11757 * type-stack.h: New file.
11758 * type-stack.c: New file.
11759 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11760 type-stack.h.
11761 (insert_into_type_stack, insert_type, push_type, push_type_int)
11762 (insert_type_address_space, pop_type, pop_type_int)
11763 (pop_typelist, pop_type_stack, append_type_stack)
11764 (push_type_stack, get_type_stack, push_typelist)
11765 (follow_type_instance_flags, follow_types): Don't declare.
11766 * parse.c (type_stack): Remove global.
11767 (parse_exp_in_context): Update.
11768 (insert_into_type_stack, insert_type, push_type, push_type_int)
11769 (insert_type_address_space, pop_type, pop_type_int)
11770 (pop_typelist, pop_type_stack, append_type_stack)
11771 (push_type_stack, get_type_stack, push_typelist)
11772 (follow_type_instance_flags, follow_types): Remove (moved to
11773 type-stack.c).
11774 * f-exp.y (type_stack): New global.
11775 Update rules.
11776 (push_kind_type, f_parse): Update.
11777 * d-exp.y (type_stack): New global.
11778 Update rules.
11779 (d_parse): Update.
11780 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11781 Update rules.
11782 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11783 (HFILES_NO_SRCDIR): Add type-stack.h.
11784
2a612529
TT
117852019-04-04 Tom Tromey <tom@tromey.com>
11786
11787 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11788 (rust_parser::convert_ast_to_expression, rust_parse)
11789 (rust_lex_test_completion, rust_lex_tests): Update.
11790 * parser-defs.h (struct expr_completion_state): New.
11791 (struct parser_state) <parser_state>: Add completion parameter.
11792 <mark_struct_expression, mark_completion_tag>: New methods.
11793 <parse_completion, m_completion_state>: New members.
11794 (prefixify_expression, null_post_parser): Update.
11795 (mark_struct_expression, mark_completion_tag): Don't declare.
11796 * parse.c (parse_completion, expout_last_struct)
11797 (expout_tag_completion_type, expout_completion_name): Remove
11798 globals.
11799 (parser_state::mark_struct_expression)
11800 (parser_state::mark_completion_tag): Now methods.
11801 (prefixify_expression): Add last_struct parameter.
11802 (prefixify_subexp): Likewise.
11803 (parse_exp_1): Update.
11804 (parse_exp_in_context): Add cstate parameter. Update.
11805 (parse_expression_for_completion): Create an
11806 expr_completion_state.
11807 (null_post_parser): Add "completion" parameter.
11808 * p-exp.y: Update rules.
11809 (yylex): Update.
11810 * language.h (struct language_defn) <la_post_parser>: Add
11811 "completing" parameter.
11812 * go-exp.y: Update rules.
11813 (lex_one_token): Update.
11814 * expression.h (parse_completion): Don't declare.
11815 * d-exp.y: Update rules.
11816 (lex_one_token): Update rules.
11817 * c-exp.y: Update rules.
11818 (lex_one_token): Update.
11819 * ada-lang.c (resolve): Add "parse_completion" parameter.
11820 (resolve_subexp): Likewise.
11821 (ada_resolve_function): Likewise.
11822
43476f0b
TT
118232019-04-04 Tom Tromey <tom@tromey.com>
11824
11825 * parser-defs.h (struct parser_state) <start_arglist,
11826 end_arglist>: New methods.
11827 <arglist_len, m_funcall_chain>: New members.
11828 (arglist_len, start_arglist, end_arglist): Don't declare.
11829 * parse.c (arglist_len, funcall_chain): Remove global.
11830 (start_arglist, end_arglist): Remove functions.
11831 (parse_exp_in_context): Update.
11832 * p-exp.y: Update rules.
11833 * m2-exp.y: Update rules.
11834 * go-exp.y: Update rules.
11835 * f-exp.y: Update rules.
11836 * d-exp.y: Update rules.
11837 * c-exp.y: Update rules.
11838
5776fca3
TT
118392019-04-04 Tom Tromey <tom@tromey.com>
11840
11841 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11842 lex_operator, push_back>: New methods.
11843 Update all rules.
11844 (rust_parser::lex_hex, lex_escape): Rename and update.
11845 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11846 (rust_parser::lex_operator): Rename and update.
11847 (rust_parser::lex_number, rustyylex, rustyyerror)
11848 (rust_lex_test_init, rust_lex_test_sequence)
11849 (rust_lex_test_push_back, rust_lex_tests): Update.
11850 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11851 parameter.
11852 <lexptr, prev_lexptr>: New members.
11853 (lexptr, prev_lexptr): Don't declare.
11854 * parse.c (lexptr, prev_lexptr): Remove globals.
11855 (parse_exp_in_context): Update.
11856 * p-exp.y (yylex, yyerror): Update.
11857 * m2-exp.y (parse_number, yylex, yyerror): Update.
11858 * go-exp.y (lex_one_token, yyerror): Update.
11859 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11860 * d-exp.y (lex_one_token, yyerror): Update.
11861 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11862 (lex_one_token, yyerror): Update.
11863 * ada-lex.l (YY_INPUT): Update.
11864 (rewind_to_char): Update.
11865 * ada-exp.y (yyerror): Update.
11866
8621b685
TT
118672019-04-04 Tom Tromey <tom@tromey.com>
11868
11869 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11870 * parser-defs.h (struct parser_state) <parser_state>: Add new
11871 parameter.
11872 <comma_terminates>: New member.
11873 (comma_terminates): Don't declare global.
11874 * parse.c (comma_terminates): Remove global.
11875 (parse_exp_in_context): Update.
11876 * p-exp.y (yylex): Update.
11877 * m2-exp.y (yylex): Update.
11878 * go-exp.y (lex_one_token): Update.
11879 * f-exp.y (yylex): Update.
11880 * d-exp.y (lex_one_token): Update.
11881 * c-exp.y (lex_one_token): Update.
11882 * ada-lex.l: Update.
11883
28aaf3fd
TT
118842019-04-04 Tom Tromey <tom@tromey.com>
11885
11886 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11887 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11888 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11889 * parser-defs.h (paren_depth): Don't declare.
11890 * parse.c (paren_depth): Remove global.
11891 (parse_exp_in_context): Update.
11892 * p-exp.y (paren_depth): New global.
11893 (pascal_parse): Initialize it.
11894 * m2-exp.y (paren_depth): New global.
11895 (m2_parse): Initialize it.
11896 * go-exp.y (paren_depth): New global.
11897 (go_parse): Initialize it.
11898 * f-exp.y (paren_depth): New global.
11899 (f_parse): Initialize it.
11900 * d-exp.y (paren_depth): New global.
11901 (d_parse): Initialize it.
11902 * c-exp.y (paren_depth): New global.
11903 (c_parse): Initialize it.
11904 * ada-lex.l (paren_depth): New global.
11905 (lexer_init): Initialize it.
11906
1e58a4a4
TT
119072019-04-04 Tom Tromey <tom@tromey.com>
11908
11909 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11910 (rust_parser::convert_ast_to_type)
11911 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11912 * parser-defs.h (struct parser_state) <parser_state>: Add
11913 parameters. Initialize new members.
11914 <expression_context_block, expression_context_pc>: New members.
11915 * parse.c (expression_context_block, expression_context_pc):
11916 Remove globals.
11917 (parse_exp_in_context): Update.
11918 * p-exp.y: Update all rules.
11919 (yylex): Update.
11920 * m2-exp.y: Update all rules.
11921 (yylex): Update.
11922 * go-exp.y (yylex): Update.
11923 * f-exp.y (yylex): Update.
11924 * d-exp.y: Update all rules.
11925 (yylex): Update.
11926 * c-exp.y: Update all rules.
11927 (lex_one_token, classify_name, yylex, c_parse): Update.
11928 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11929
37eedb39
TT
119302019-04-04 Tom Tromey <tom@tromey.com>
11931
11932 * gdbarch.h, gdbarch.c: Rebuild.
11933 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11934 * stap-probe.h:
11935 (struct stap_parse_info): Replace "parser_state" with
11936 "expr_builder".
11937 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11938 (parser_state): New class.
11939 * parse.c (expr_builder): Rename.
11940 (expr_builder::release): Rename.
11941 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11942 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11943 (write_exp_elt_longcst, write_exp_elt_floatcst)
11944 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11945 (write_exp_string_vector, write_exp_bitstring)
11946 (write_exp_msymbol, mark_struct_expression)
11947 (write_dollar_variable)
11948 (insert_type_address_space, increase_expout_size): Replace
11949 "parser_state" with "expr_builder".
11950 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11951 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11952 "parser_state" with "expr_builder".
11953
73923d7e
TT
119542019-04-04 Tom Tromey <tom@tromey.com>
11955
11956 * rust-exp.y: Replace "parse_language" with method call.
11957 * p-exp.y:
11958 (yylex): Replace "parse_language" with method call.
11959 * m2-exp.y:
11960 (yylex): Replace "parse_language" with method call.
11961 * go-exp.y (classify_name): Replace "parse_language" with method
11962 call.
11963 * f-exp.y (yylex): Replace "parse_language" with method call.
11964 * d-exp.y (lex_one_token): Replace "parse_language" with method
11965 call.
11966 * c-exp.y:
11967 (lex_one_token, classify_name, yylex): Replace "parse_language"
11968 with method call.
11969 * ada-exp.y (find_primitive_type, type_char)
11970 (type_system_address): Replace "parse_language" with method call.
11971
fa9f5be6
TT
119722019-04-04 Tom Tromey <tom@tromey.com>
11973
11974 * rust-exp.y: Replace "parse_gdbarch" with method call.
11975 * parse.c (write_dollar_variable, insert_type_address_space):
11976 Replace "parse_gdbarch" with method call.
11977 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11978 call.
11979 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11980 call.
11981 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11982 "parse_gdbarch" with method call.
11983 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11984 with method call.
11985 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11986 "parse_gdbarch" with method call.
11987 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11988 "parse_gdbarch" with method call.
11989 * c-exp.y (parse_type, parse_number, classify_name): Replace
11990 "parse_gdbarch" with method call.
11991 * ada-lex.l: Replace "parse_gdbarch" with method call.
11992 * ada-exp.y (parse_type, find_primitive_type, type_char)
11993 (type_system_address): Replace "parse_gdbarch" with method call.
11994
1201a264
TT
119952019-04-04 Tom Tromey <tom@tromey.com>
11996
11997 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11998 * stap-probe.c (stap_parse_argument): Update.
11999 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12000 initial_size parameter.
12001 * rust-exp.y (rust_lex_tests): Update.
12002 * parse.c (parser_state): Update.
12003 (parse_exp_in_context): Update.
12004 * parser-defs.h (struct parser_state) <parser_state>: Remove
12005 "initial_size" parameter.
12006
e3980ce2
TT
120072019-04-04 Tom Tromey <tom@tromey.com>
12008
12009 * parser-defs.h (increase_expout_size): Don't declare.
12010 * parse.c (increase_expout_size): Now static.
12011
e9f8e3f1
TS
120122019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12013
12014 * gnu-nat.c (gnu_nat_target::wait): Fix
12015 target_waitstatus_to_string call.
12016
d7df6549
AB
120172019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12018
12019 * eval.c (evaluate_subexp_standard): Handle internal functions
12020 during Fortran function call handling.
12021
8bdc1658
AB
120222019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12023
12024 * NEWS: Mention new internal functions.
12025 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12026 (read_base_type): Use dwarf2_init_complex_target_type.
12027 * value.c (creal_internal_fn): New function.
12028 (cimag_internal_fn): New function.
12029 (_initialize_values): Register new internal functions.
12030
c29705b7
PW
120312019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12032
12033 * infrun.c (stop_all_threads): If debug_infrun, always
12034 trace the wait status after wait_one, using
12035 target_waitstatus_to_string and target_pid_to_str.
12036 (handle_inferior_event): Replace various trace of
12037 wait status kind by a single trace.
12038 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12039 wait status kind image by target_waitstatus_to_string.
12040 * target/waitstatus.c (target_waitstatus_to_string): Fix
12041 obsolete comment.
12042
05caa1d2
TT
120432019-04-01 Tom Tromey <tromey@adacore.com>
12044
12045 PR symtab/23331:
12046 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12047
9d1447e0
SDJ
120482019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12049 Pedro Alves <palves@redhat.com>
12050
12051 * top.c (quit_force): Call 'finalize_values'.
12052 * value.c (finalize_values): New function.
12053 * value.h (finalize_values): Declare.
12054
7734102d
EZ
120552019-03-30 Eli Zaretskii <eliz@gnu.org>
12056
12057 * NEWS: Announce $_gdb_major and $_gdb_minor.
12058
12059 * top.c (init_gdb_version_vars): New function.
12060 (gdb_init): Call init_gdb_version_vars.
12061
188e1fa9
TT
120622019-03-29 Tom Tromey <tromey@adacore.com>
12063
12064 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12065 help text. Remove dead code.
12066
2880242d
KS
120672019-03-29 Keith Seitz <keiths@redhat.com>
12068
12069 From Siddhesh Poyarekar:
12070 * f-lang.h (f77_get_upperbound): Return LONGEST.
12071 (f77_get_lowerbound): Likewise.
12072 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12073 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12074 print them.
12075 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12076 plongest to format print it.
12077 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12078 (f77_get_upperbound): Likewise.
12079 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12080 LOWER_BOUND to LONGEST.
12081 (f77_create_arrayprint_offset_tbl): Likewise.
12082
cc1defb1
KS
120832019-03-29 Keith Seitz <keiths@redhat.com>
12084
12085 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12086 %s/pulongest for TYPE_LENGTH instead of %d in format
12087 strings.
12088 * ada-typerint.c (ada_print_type): Likewise.
12089 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12090 * compile/compile-c-support.c (generate_register_struct): Likewise.
12091 * gdbtypes.c (recursive_dump_type): Likewise.
12092 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12093 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12094 instead of %d in format strings.
12095 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12096 to std::min to ULONGEST.
12097 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12098 instead of %d in format strings.
12099 * tracepoint.c (info_scope_command): Likewise.
12100 * typeprint.c (print_offset_data::update)
12101 (print_offset_data::finish): Likewise.
12102 * xtensa-tdep.c (xtensa_store_return_value)
12103 (xtensa_push_dummy_call): Likewise.
12104
e432ccf1
JT
121052019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12106
12107 * windows-nat.c (display_selector): Fixed format specifications
12108 for 64-bit Cygwin.
12109
65d2b333
PW
121102019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12111
12112 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12113
f489207e
SL
121142019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12115
12116 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12117 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12118 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12119 (nios2_linux_init_abi): Install it.
12120
bffa1015
AH
121212019-03-28 Alan Hayward <alan.hayward@arm.com>
12122
12123 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12124
fc96163a
AH
121252019-03-28 Alan Hayward <alan.hayward@arm.com>
12126
12127 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12128
20dc7e9b
PW
121292019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12130 Tom Tromey <tromey@adacore.com>
12131
12132 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12133
7f5331a8
JB
121342019-03-26 Joel Brobecker <brobecker@adacore.com>
12135
12136 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12137 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12138 method to compute the bounds of range types. Also print "[evaluated]"
12139 if the bounds' values come from a dynamic evaluation.
12140
18c77628
AB
121412019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12142
12143 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12144 whitespace when pretty printing is on.
12145
53c973f2
AH
121462019-03-26 Alan Hayward <alan.hayward@arm.com>
12147
e79be6e5 12148 * ppc-linux-nat.c: Add include.
53c973f2 12149
d851aa71
AH
121502019-03-26 Alan Hayward <alan.hayward@arm.com>
12151
e79be6e5 12152 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12153
2fe7bab7
AH
121542019-03-26 Alan Hayward <alan.hayward@arm.com>
12155
e79be6e5 12156 * arm-linux-nat.c: Add include.
2fe7bab7 12157
068ef30e
SM
121582019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * source-cache.c (source_cache::get_source_lines): Re-read
12161 fullname after calling open_source_file.
12162
81a24d04
JB
121632019-03-25 John Baldwin <jhb@FreeBSD.org>
12164
12165 * NEWS: Mention TLS support for FreeBSD.
12166
79e7ae11
TT
121672019-03-25 Tom Tromey <tromey@adacore.com>
12168
12169 * minsyms.c (BUNCH_SIZE): Update comment.
12170 (~minimal_symbol_reader): Remove old comment.
12171 (compact_minimal_symbols): Update comment.
12172 (minimal_symbol_reader::install): Remove old comment. Update
12173 other comments.
12174
d45963c2
AH
121752019-03-25 Alan Hayward <alan.hayward@arm.com>
12176
12177 * s390-linux-nat.c: Add include.
12178
0f83012e
AH
121792019-03-25 Alan Hayward <alan.hayward@arm.com>
12180
12181 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12182 Call linux_get_hwcap.
12183 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12184 Likewise.
12185 (aarch64_linux_get_hwcap): Remove function.
12186 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12187 declaration.
12188 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12189 linux_get_hwcap.
12190 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12191 * linux-tdep.c (linux_get_hwcap): Add function.
12192 (linux_get_hwcap2): Likewise.
12193 * linux-tdep.h (linux_get_hwcap): Add declaration.
12194 (linux_get_hwcap2): Likewise.
12195 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12196 (ppc_linux_get_hwcap2): Likewise.
12197 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12198 linux_get_hwcap.
12199 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12200 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12201 (ppc_linux_nat_target::read_description): Likewise.
12202 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12203 * s390-linux-nat.c: Likewise.
12204 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12205
6640a367
TT
122062019-03-24 Tom Tromey <tom@tromey.com>
12207
12208 * ada-lang.c (standard_lookup): Simplify initialization.
12209 (ada_lookup_symbol_nonlocal): Simplify return.
12210 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12211 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12212 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12213 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12214 initialization.
12215 * solib.c (solib_global_lookup): Simplify.
12216 * symtab.c (null_block_symbol): Remove.
12217 (symbol_cache_lookup): Simplify returns.
12218 (lookup_language_this): Simplify returns.
12219 (lookup_symbol_aux): Simplify return.
12220 (lookup_local_symbol): Simplify returns.
12221 (lookup_global_symbol_from_objfile): Simplify return.
12222 (lookup_symbol_in_objfile_symtabs)
12223 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12224 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12225 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12226 * cp-namespace.c (cp_lookup_bare_symbol)
12227 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12228 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12229 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12230 (cp_lookup_symbol_via_imports): Simplify initialization.
12231 (find_symbol_in_baseclass): Likewise.
12232 * symtab.h (null_block_symbol): Remove.
12233 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12234 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12235 (d_lookup_symbol_module): Likewise.
12236 (find_symbol_in_baseclass): Simplify initialization.
12237
a930ebcd
TT
122382019-03-24 Tom Tromey <tom@tromey.com>
12239
12240 * expression.h: Don't include symtab.h.
12241 (struct block): Forward declare.
12242
582942f4
TT
122432019-03-24 Tom Tromey <tom@tromey.com>
12244
12245 * c-exp.y (typebase): Remove casts.
12246 * gdbtypes.c (lookup_unsigned_typename, )
12247 (lookup_signed_typename): Remove cast.
12248 * eval.c (parse_to_comma_and_eval): Remove cast.
12249 * parse.c (write_dollar_variable): Remove cast.
12250 * block.h (struct block) <superblock>: Now const.
12251 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12252 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12253 (map_block): Make "block" const.
12254 * symfile.h (struct quick_symbol_functions)
12255 <map_matching_symbols>: Constify block argument to "callback".
12256 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12257 const.
12258 (find_pc_sect_compunit_symtab): Make "b" const.
12259 (find_symbol_at_address): Likewise.
12260 (search_symbols): Likewise.
12261 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12262 (dw2_debug_names_lookup_symbol): Likewise.
12263 (dw2_map_matching_symbols): Update.
12264 * p-valprint.c (pascal_val_print): Remove "block".
12265 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12266 (aux_add_nonlocal_symbols): Make "block" const.
12267 (resolve_subexp): Remove cast.
12268 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12269 const.
12270 (iterate_over_file_blocks): Likewise.
12271 * f-exp.y (%union) <bval>: Remove.
12272 * coffread.c (patch_opaque_types): Make "b" const.
12273 * spu-tdep.c (spu_catch_start): Make "block" const.
12274 * c-valprint.c (print_unpacked_pointer): Remove "block".
12275 * symmisc.c (dump_symtab_1): Make "b" const.
12276 (block_depth): Make "block" const.
12277 * d-exp.y (%union) <bval>: Remove.
12278 * cp-support.h (cp_lookup_rtti_type): Update.
12279 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12280 * psymtab.c (psym_lookup_symbol): Make "block" const.
12281 (maintenance_check_psymtabs): Make "b" const.
12282 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12283 (enumerate_locals, enumerate_args): Update.
12284 * python/py-symtab.c (stpy_global_block): Make "block" const.
12285 (stpy_static_block): Likewise.
12286 * inline-frame.c (block_starting_point_at): Make "new_block"
12287 const.
12288 * block.c (find_block_in_blockvector): Make return type const.
12289 (blockvector_for_pc_sect): Make "b" const.
12290 (find_block_in_blockvector): Make "b" const.
12291
7ad417dd
TT
122922019-03-23 Tom Tromey <tom@tromey.com>
12293
12294 * varobj.c (varobj_create): Update.
12295 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12296 * printcmd.c (display_command, do_one_display): Don't reset
12297 innermost_block.
12298 * parser-defs.h (enum innermost_block_tracker_type): Move to
12299 expression.h.
12300 (innermost_block): Update comment.
12301 * parse.c (parse_exp_1): Add tracker_types parameter.
12302 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12303 tracker_types parameter. Reset innermost_block.
12304 (parse_exp_in_context): Remove.
12305 (parse_expression_for_completion): Update.
12306 * objfiles.c (~objfile): Don't reset expression_context_block or
12307 innermost_block.
12308 * expression.h (enum innermost_block_tracker_type): Move from
12309 parser-defs.h.
12310 (parse_exp_1): Add tracker_types parameter.
12311 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12312 reset innermost_block.
12313
b366c208
TT
123142019-03-23 Tom Tromey <tom@tromey.com>
12315
12316 * objfiles.h: Include bcache.h.
12317
9bb9b2f9
TT
123182019-03-23 Tom Tromey <tom@tromey.com>
12319
12320 * linespec.c (get_current_search_block): Use
12321 scoped_restore_current_language.
12322 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12323
59c28372
AH
123242019-03-22 Alan Hayward <alan.hayward@arm.com>
12325 Jiong Wang <jiong.wang@arm.com>
12326
12327 * aarch64-linux-tdep.c
12328 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12329 section.
12330 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12331
17e116a7
AH
123322019-03-22 Alan Hayward <alan.hayward@arm.com>
12333 Jiong Wang <jiong.wang@arm.com>
12334
12335 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12336 instructions.
12337 (aarch64_analyze_prologue_test): Add PACIASP test.
12338 (aarch64_prologue_prev_register): Unmask PC value.
12339
11e1b75f
AH
123402019-03-22 Alan Hayward <alan.hayward@arm.com>
12341 Jiong Wang <jiong.wang@arm.com>
12342
12343 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12344 (aarch64_dwarf2_prev_register): Unmask PC value.
12345 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12346 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12347 DW_CFA_AARCH64_negate_ra_state.
12348 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12349
34dcc7cf
AH
123502019-03-22 Alan Hayward <alan.hayward@arm.com>
12351 Jiong Wang <jiong.wang@arm.com>
12352
12353 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12354 registers.
12355 (aarch64_pseudo_register_name): Likewise.
12356 (aarch64_pseudo_register_type): Likewise.
12357 (aarch64_pseudo_register_reggroup_p): Likewise.
12358 (aarch64_gdbarch_init): Add pauth registers.
12359 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12360 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12361 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12362 (struct gdbarch_tdep): Add regnum for ra_state.
12363
1ef53e6b
AH
123642019-03-22 Alan Hayward <alan.hayward@arm.com>
12365 Jiong Wang <jiong.wang@arm.com>
12366
12367 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12368
76bed0fd
AH
123692019-03-22 Alan Hayward <alan.hayward@arm.com>
12370 Jiong Wang <jiong.wang@arm.com>
12371
12372 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12373 function.
12374 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12375 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12376 (aarch64_gdbarch_init): Add puth registers.
12377 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12378 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12379 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12380
ee4fbcfa
AH
123812019-03-22 Alan Hayward <alan.hayward@arm.com>
12382 Jiong Wang <jiong.wang@arm.com>
12383
12384 * aarch64-linux-nat.c
12385 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12386 * aarch64-linux-tdep.c
12387 (aarch64_linux_core_read_description): Likewise.
12388 (aarch64_linux_get_hwcap): New function.
12389 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12390 (aarch64_linux_get_hwcap): New declaration.
12391
6dc0ebde
AH
123922019-03-22 Alan Hayward <alan.hayward@arm.com>
12393 Jiong Wang <jiong.wang@arm.com>
12394
12395 * aarch64-linux-nat.c
12396 (aarch64_linux_nat_target::read_description): Add pauth param.
12397 * aarch64-linux-tdep.c
12398 (aarch64_linux_core_read_description): Likewise.
12399 * aarch64-tdep.c (struct target_desc): Add in pauth.
12400 (aarch64_read_description): Add pauth param.
12401 (aarch64_gdbarch_init): Likewise.
12402 * aarch64-tdep.h (aarch64_read_description): Likewise.
12403 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12404 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12405 * features/Makefile: Add new files.
12406 * features/aarch64-pauth.c: New file.
12407 * features/aarch64-pauth.xml: New file.
12408
595915c1
TT
124092019-03-20 Tom Tromey <tromey@adacore.com>
12410
12411 * infrun.c (handle_inferior_event): Rename from
12412 handle_inferior_event_1. Create a scoped_value_mark.
12413 (handle_inferior_event): Remove.
12414
4c7d57e7
TT
124152019-03-19 Tom Tromey <tromey@adacore.com>
12416
12417 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12418 * infrun.h (print_stop_event): Add "displays" parameter.
12419 * infrun.c (print_stop_event): Add "displays" parameter.
12420
cb246234
PA
124212019-03-19 Pedro Alves <palves@redhat.com>
12422
12423 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12424 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12425 to -1. Fix TABs vs spaces.
12426 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12427 * tui/tui-out.h (tui_ui_out) Add intro comments.
12428 <m_line, m_start_of_line>: In-class initialize, and add describing
12429 comment.
12430
3a0e45b2
AH
124312019-03-18 Alan Hayward <alan.hayward@arm.com>
12432
12433 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12434 variable names.
12435 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12436
5371b850
PA
124372019-03-18 Pedro Alves <palves@redhat.com>
12438 Eli Zaretskii <eliz@gnu.org>
12439
12440 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12441 m_line and m_start_of_line.
12442
b17c4cd0
EZ
124432019-03-18 Eli Zaretskii <eliz@gnu.org>
12444
12445 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12446 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12447 it returns a newline. This fixes a regression in TU mode, whereby
12448 the next line is output on the same screen line as the user input.
12449
4bd56d18
TT
124502019-03-18 Tom Tromey <tromey@adacore.com>
12451
12452 * minsyms.c (minimal_symbol_reader::install): Remove call to
12453 obstack_blank.
12454
55c10aca
PA
124552019-03-18 Pedro Alves <palves@redhat.com>
12456
12457 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12458 New globals.
12459 (apply_style): New, factored out from ...
12460 (apply_ansi_escape): ... this. Handle reverse video mode.
12461 (tui_set_reverse_mode): New function.
12462 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12463 * tui/tui-winsource.c (tui_show_source_line): Use
12464 tui_set_reverse_mode instead of setting A_STANDOUT.
12465 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12466 New setter methods.
12467
647bb750
HD
124682019-03-18 Hannes Domani <ssbssa@yahoo.de>
12469
12470 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12471 Handle tabs.
12472
bff8c71f
TT
124732019-03-18 Tom Tromey <tromey@adacore.com>
12474
12475 * ada-lang.c (empty_array): Add "high" parameter.
12476 (ada_evaluate_subexp): Update.
12477
58785d98
ST
124782019-03-17 Sergei Trofimovich <siarheit@google.com>
12479
12480 * unittests/string_view-selftests.c: Define
12481 _initialize_string_view_selftests unconditionally.
12482
d4cbef22
ВМ
124832019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12484
12485 PR gdb/24350
12486 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12487
fce4c071
ВМ
124882019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12489
12490 PR gdb/24351
12491 * windows-nat.c (display_selector): Fix format specifiers.
12492
f7f0a123
EZ
124932019-03-17 Eli Zaretskii <eliz@gnu.org>
12494
12495 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12496 tui_refill_source_window instead of tui_refresh_win, to update the
12497 current execution line. This fixes redisplay of the current line
12498 when stepping through the code with "next" or "step".
12499
ab42892f
EZ
125002019-03-16 Eli Zaretskii <eliz@gnu.org>
12501
12502 * source-cache.c (source_cache::get_source_lines): Call
12503 find_source_lines to initialize s->nlines. This fixes vertical
12504 scrolling of TUI source window when the DOWN arrow is pressed.
12505
8d8c087f
PW
125062019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12507
12508 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12509 linux-thread-db.c (_initialize_thread_db): Likewise.
12510
798e1c30
EZ
125112019-03-16 Eli Zaretskii <eliz@gnu.org>
12512
12513 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12514 wclrtoeol in tui_show_source_line". This reverts changes made in
12515 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12516
eefba3da
TT
125172019-03-15 Tom Tromey <tom@tromey.com>
12518
12519 * symtab.h (struct minimal_symbol): Derive from
12520 general_symbol_info.
12521 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12522 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12523 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12524 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12525 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12526 (MSYMBOL_SEARCH_NAME): Update.
12527 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12528 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12529 * minsyms.c (minimal_symbol_reader::record_full): Update.
12530
0de2420c
TT
125312019-03-15 Tom Tromey <tom@tromey.com>
12532
12533 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12534
042d75e4
TT
125352019-03-15 Tom Tromey <tom@tromey.com>
12536
12537 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12538 unique_xmalloc_ptr.
12539 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12540 Update.
12541 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12542 (build_minimal_symbol_hash_tables)
12543 (minimal_symbol_reader::install): Update.
12544
db92718b
TT
125452019-03-15 Tom Tromey <tom@tromey.com>
12546
12547 * symtab.c (create_demangled_names_hash): Update.
12548 (symbol_set_names): Update.
12549 * objfiles.h (struct objfile_per_bfd_storage)
12550 <demangled_names_hash>: Now an htab_up.
12551 * objfiles.c (objfile_per_bfd_storage): Simplify.
12552
d6797f46
TT
125532019-03-15 Tom Tromey <tom@tromey.com>
12554
12555 * objfiles.h (struct objfile_per_bfd_storage): Declare
12556 destructor.
12557 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12558 New.
12559 (get_objfile_bfd_data): Use new. Don't initialize
12560 language_of_main.
12561 (free_objfile_per_bfd_storage): Remove.
12562 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12563
741d7538
TT
125642019-03-15 Tom Tromey <tom@tromey.com>
12565
12566 * symfile.c (reread_symbols): Update.
12567 * objfiles.c (objfile::objfile): Update.
12568 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12569 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12570 comment.
12571 (minimal_symbol_reader::install): Update.
12572 (terminate_minimal_symbol_table): Remove.
12573 * jit.c (jit_object_close_impl): Update.
12574
788c80d1
TT
125752019-03-15 Tom Tromey <tom@tromey.com>
12576
12577 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12578 initializations.
12579
1b7a07cb
TT
125802019-03-15 Tom Tromey <tom@tromey.com>
12581
12582 * objfiles.h (struct objfile_per_bfd_storage)
12583 <demangled_hash_languages>: Now a bitset.
12584 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12585 (lookup_minimal_symbol): Update.
12586
3db066bc
TT
125872019-03-15 Tom Tromey <tom@tromey.com>
12588
12589 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12590 Don't return the symbol.
12591 * coffread.c (record_minimal_symbol): Use record_full.
12592
3fff2c37
EZ
125932019-03-14 Eli Zaretskii <eliz@gnu.org>
12594
12595 The MS-Windows port of ncurses fails to switch to a color pair if
12596 one or both of the colors are the implicit default colors. This
12597 change records the default colors when TUI is initialized, and
12598 then specifies them explicitly when a color pair uses the default
12599 colors. This allows color styling in TUI mode on MS-Windows.
12600
12601 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12602 ncurses_norm_attr.
12603 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12604 colors in ncurses_norm_attr.
12605 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12606 "none", replace it with the default color recorded in
12607 ncurses_norm_attr.
12608
3b336828
TT
126092019-03-14 Tom Tromey <tromey@adacore.com>
12610
12611 * source-cache.h (class source_cache) <get_source_lines>: Return
12612 std::string.
12613 * source-cache.c (source_cache::extract_lines): Handle case where
12614 first_pos==npos. Return std::string.
12615 (source_cache::get_source_lines): Update.
12616
d085f989
TT
126172019-03-14 Tom Tromey <tromey@adacore.com>
12618
12619 * NEWS: Add item for "style sources" commands.
12620 * source-cache.c (source_cache::get_source_lines): Check
12621 source_styling.
12622 * cli/cli-style.c (source_styling): New global.
12623 (_initialize_cli_style): Add "style sources" commands.
12624 (show_style_sources): New function.
12625 * cli/cli-style.h (source_styling): Declare.
12626
6f11e682
TT
126272019-03-14 Pedro Alves <palves@redhat.com>
12628 Tom Tromey <tromey@adacore.com>
12629
12630 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12631 * tui/tui-winsource.c (tui_refill_source_window): New function,
12632 from...
12633 (tui_horizontal_source_scroll): ... here. Move some logic.
12634 * cli/cli-style.c (set_style_enabled): Notify new observable.
12635 * tui/tui-hooks.c (tui_redisplay_source): New function.
12636 (tui_attach_detach_observers): Attach or detach
12637 tui_redisplay_source.
12638 * observable.h (source_styling_changed): New observable.
12639 * observable.c: Define source_styling_changed observable.
12640
a068643d
TT
126412019-03-13 Tom Tromey <tromey@adacore.com>
12642
12643 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12644 (i386_gnu_nat_target::store_registers): Update.
12645 * target-debug.h (target_debug_print_std_string): New macro.
12646 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12647 * windows-tdep.c (display_one_tib): Update.
12648 * tui/tui-stack.c (tui_make_status_line): Update.
12649 * top.c (print_inferior_quit_action): Update.
12650 * thread.c (thr_try_catch_cmd): Update.
12651 (add_thread_with_info): Update.
12652 (thread_target_id_str): Update.
12653 (thr_try_catch_cmd): Update.
12654 (thread_command): Update.
12655 (thread_find_command): Update.
12656 * record-btrace.c (record_btrace_target::info_record)
12657 (record_btrace_resume_thread, record_btrace_target::resume)
12658 (record_btrace_cancel_resume, record_btrace_step_thread)
12659 (record_btrace_target::wait, record_btrace_target::wait)
12660 (record_btrace_target::wait, record_btrace_target::stop): Update.
12661 * progspace.c (print_program_space): Update.
12662 * process-stratum-target.c
12663 (process_stratum_target::thread_address_space): Update.
12664 * linux-fork.c (linux_fork_mourn_inferior)
12665 (detach_checkpoint_command, info_checkpoints_command)
12666 (linux_fork_context): Update.
12667 (linux_fork_detach): Update.
12668 (class scoped_switch_fork_info): Update.
12669 (delete_checkpoint_command): Update.
12670 * infrun.c (follow_fork_inferior): Update.
12671 (follow_fork_inferior): Update.
12672 (proceed_after_vfork_done): Update.
12673 (handle_vfork_child_exec_or_exit): Update.
12674 (follow_exec): Update.
12675 (displaced_step_prepare_throw): Update.
12676 (displaced_step_restore): Update.
12677 (start_step_over): Update.
12678 (resume_1): Update.
12679 (clear_proceed_status_thread): Update.
12680 (proceed): Update.
12681 (print_target_wait_results): Update.
12682 (do_target_wait): Update.
12683 (context_switch): Update.
12684 (stop_all_threads): Update.
12685 (restart_threads): Update.
12686 (finish_step_over): Update.
12687 (handle_signal_stop): Update.
12688 (switch_back_to_stepped_thread): Update.
12689 (keep_going_pass_signal): Update.
12690 (print_exited_reason): Update.
12691 (normal_stop): Update.
12692 * inferior.c (inferior_pid_to_str): Change return type.
12693 (print_selected_inferior): Update.
12694 (add_inferior): Update.
12695 (detach_inferior): Update.
12696 * dummy-frame.c (fprint_dummy_frames): Update.
12697 * dcache.c (dcache_info_1): Update.
12698 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12699 (btrace_fetch, btrace_clear): Update.
12700 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12701 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12702 type.
12703 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12704 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12705 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12706 * gdbarch.c, gdbarch.h: Rebuild.
12707 * gdbarch.sh (core_pid_to_str): Change return type.
12708 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12709 return type.
12710 (windows_nat_target::pid_to_str): Change return type.
12711 (windows_delete_thread): Update.
12712 (windows_nat_target::attach): Update.
12713 (windows_nat_target::files_info): Update.
12714 * target-delegates.c: Rebuild.
12715 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12716 return type.
12717 (sol_thread_target::pid_to_str): Change return type.
12718 * remote.c (class remote_target) <pid_to_str>: Change return
12719 type.
12720 (remote_target::pid_to_str): Change return type.
12721 (extended_remote_target::attach, remote_target::remote_stop_ns)
12722 (remote_target::remote_notif_remove_queued_reply)
12723 (remote_target::push_stop_reply, remote_target::disable_btrace):
12724 Update.
12725 (extended_remote_target::attach): Update.
12726 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12727 type.
12728 (gdbsim_target::pid_to_str): Change return type.
12729 * ravenscar-thread.c (struct ravenscar_thread_target)
12730 <pid_to_str>: Change return type.
12731 (ravenscar_thread_target::pid_to_str): Change return type.
12732 * procfs.c (class procfs_target) <pid_to_str>: Change return
12733 type.
12734 (procfs_target::pid_to_str): Change return type.
12735 (procfs_target::attach): Update.
12736 (procfs_target::detach): Update.
12737 (procfs_target::fetch_registers): Update.
12738 (procfs_target::store_registers): Update.
12739 (procfs_target::wait): Update.
12740 (procfs_target::files_info): Update.
12741 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12742 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12743 return type.
12744 (nto_procfs_target::pid_to_str): Change return type.
12745 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12746 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12747 return type.
12748 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12749 (exit_lwp): Update.
12750 (attach_proc_task_lwp_callback, get_detach_signal)
12751 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12752 (linux_nat_target::resume, wait_lwp, stop_callback)
12753 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12754 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12755 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12756 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12757 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12758 type.
12759 (inf_ptrace_target::attach): Update.
12760 (inf_ptrace_target::files_info): Update.
12761 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12762 type.
12763 (go32_nat_target::pid_to_str): Change return type.
12764 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12765 (gnu_nat_target::wait): Update.
12766 (gnu_nat_target::wait): Update.
12767 (gnu_nat_target::resume): Update.
12768 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12769 (fbsd_nat_target::wait): Update.
12770 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12771 type.
12772 (darwin_nat_target::attach): Update.
12773 * corelow.c (class core_target) <pid_to_str>: Change return type.
12774 (core_target::pid_to_str): Change return type.
12775 * target.c (normal_pid_to_str): Change return type.
12776 (default_pid_to_str): Likewise.
12777 (target_pid_to_str): Change return type.
12778 (target_translate_tls_address): Update.
12779 (target_announce_detach): Update.
12780 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12781 return type.
12782 (bsd_uthread_target::pid_to_str): Change return type.
12783 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12784 type.
12785 (bsd_kvm_target::pid_to_str): Change return type.
12786 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12787 return type.
12788 (aix_thread_target::pid_to_str): Change return type.
12789 * target.h (struct target_ops) <pid_to_str>: Change return type.
12790 (target_pid_to_str, normal_pid_to_str): Likewise.
12791 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12792 type.
12793 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12794 type.
12795 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12796 return type.
12797 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12798 type.
12799 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12800 type.
12801 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12802 return type.
12803
b4be1b06
SM
128042019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12805
12806 * NEWS: Mention that the new default MI version is 3. Mention
12807 changes to the output of commands and events that deal with
12808 multi-location breakpoints.
12809 * breakpoint.c: Include "mi/mi-out.h".
12810 (print_one_breakpoint): Change output syntax if using MI version
12811 >= 3.
12812 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12813 New.
12814 (mi_multi_location_breakpoint_output_fixed): New.
12815 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12816 (mi_cmd_fix_multi_location_breakpoint_output): New.
12817 (mi_multi_location_breakpoint_output_fixed): New.
12818 * mi/mi-cmds.c (mi_cmds): Register command
12819 -fix-multi-location-breakpoint-output.
12820 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12821 interpreter "mi".
12822
8e5e5494
SM
128232019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12824
12825 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12826 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12827 instantiate mi_ui_out based on interpreter name.
12828 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12829 * mi/mi-main.c (mi_load_progress): Likewise.
12830
197df35e
JB
128312019-03-12 John Baldwin <jhb@FreeBSD.org>
12832
12833 * NEWS: Combine separate "New targets" sections for 8.3.
12834
8399425f
JB
128352019-03-12 John Baldwin <jhb@FreeBSD.org>
12836
12837 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12838 (ppcfbsd_init_abi): Install gdbarch
12839 "fetch_tls_load_module_address" and "get_thread_local_address"
12840 methods.
12841
b0f87ed0
JB
128422019-03-12 John Baldwin <jhb@FreeBSD.org>
12843
12844 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12845 (riscv_fbsd_init_abi): Install gdbarch
12846 "fetch_tls_load_module_address" and "get_thread_local_address"
12847 methods.
12848
ce25aa57
JB
128492019-03-12 John Baldwin <jhb@FreeBSD.org>
12850
12851 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12852 (i386fbsd_init_abi): Install gdbarch
12853 "fetch_tls_load_module_address" and "get_thread_local_address"
12854 methods.
12855
f5424cfa
JB
128562019-03-12 John Baldwin <jhb@FreeBSD.org>
12857
12858 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12859 (amd64fbsd_init_abi): Install gdbarch
12860 "fetch_tls_load_module_address" and "get_thread_local_address"
12861 methods.
12862
945f3901
JB
128632019-03-12 John Baldwin <jhb@FreeBSD.org>
12864
12865 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12866 (struct fbsd_pspace_data): New type.
12867 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12868 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12869 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12870 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12871 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12872
ef0bd204
JB
128732019-03-12 John Baldwin <jhb@FreeBSD.org>
12874
12875 * gdbtypes.c (lookup_struct_elt): New function.
12876 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12877 * gdbtypes.h (struct struct_elt): New type.
12878 (lookup_struct_elt): New prototype.
12879
36c53a02
JB
128802019-03-12 John Baldwin <jhb@FreeBSD.org>
12881
12882 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12883 remove disabled code block.
12884
6e056c81
JB
128852019-03-12 John Baldwin <jhb@FreeBSD.org>
12886
12887 * gdbarch.sh (get_thread_local_address): New method.
12888 * gdbarch.h, gdbarch.c: Regenerate.
12889 * target.c (target_translate_tls_address): Use
12890 gdbarch_get_thread_local_address if present instead of
12891 target::get_thread_local_address.
12892
cd250a18
JB
128932019-03-12 John Baldwin <jhb@FreeBSD.org>
12894
12895 * target.h (target::get_thread_local_address): Update comment.
12896
df22c1e5
JB
128972019-03-12 John Baldwin <jhb@FreeBSD.org>
12898
12899 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12900 objfile->separate_debug_objfile_backlink if not NULL.
12901
dd6876c9
JB
129022019-03-12 John Baldwin <jhb@FreeBSD.org>
12903
12904 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12905 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12906 (amd64bsd_store_inferior_registers): Likewise.
12907 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12908 Enable segment base registers.
12909 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12910 PT_GETFSBASE and PT_GETGSBASE.
12911 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12912 PT_SETGSBASE.
12913 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12914 segment base registers.
12915 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12916
1163a4b7
JB
129172019-03-12 John Baldwin <jhb@FreeBSD.org>
12918
12919 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12920 Update calls to i386_target_description to add 'segments'
12921 parameter.
12922 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12923 add segment base registers.
12924 * arch/i386.c (i386_create_target_description): Add 'segments'
12925 parameter to enable segment base registers.
12926 * arch/i386.h (i386_create_target_description): Likewise.
12927 * features/i386/32bit-segments.xml: New file.
12928 * features/i386/32bit-segments.c: Generate.
12929 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12930 call to i386_target_description to add 'segments' parameter.
12931 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12932 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12933 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12934 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12935 if feature is present.
12936 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12937 Add 'segments' parameter to call to i386_target_description.
12938 (i386_target_description): Add 'segments' parameter to enable
12939 segment base registers.
12940 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12941 to call to i386_target_description.
12942 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12943 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12944 Define I386_NUM_REGS.
12945 (i386_target_description): Add 'segments' parameter to enable
12946 segment base registers.
12947
3a350822
EZ
129482019-03-12 Eli Zaretskii <eliz@gnu.org>
12949
12950 PR/24325
12951 * source-cache.c: #undef open and close, to avoid unresolved
12952 externals during linking.
12953
ffdd69cf
TT
129542019-03-12 Tom Tromey <tromey@adacore.com>
12955
12956 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12957 const. Add initializers.
12958 (_initialize_remote): Don't initialize ptid globals.
12959
ec148c57
PA
129602019-03-12 Pedro Alves <palves@redhat.com>
12961
12962 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12963
32764270
PA
129642019-03-12 Pedro Alves <palves@redhat.com>
12965
12966 * cp-name-parser.y (main): Remove unused 'len' variable.
12967
17547186
TT
129682019-03-12 Tom Tromey <tromey@adacore.com>
12969
12970 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12971 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12972
d3a70e03
TT
129732019-03-12 Tom Tromey <tromey@adacore.com>
12974
12975 * linux-nat.c (iterate_over_lwps): Update.
12976 (stop_callback): Remove parameter.
12977 (stop_wait_callback, detach_callback, resume_set_callback)
12978 (select_singlestep_lwp_callback, set_ignore_sigint)
12979 (status_callback, resumed_callback, resume_clear_callback)
12980 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12981 data parameter.
12982 (linux_nat_target::detach, linux_nat_target::resume)
12983 (linux_stop_and_wait_all_lwps, select_event_lwp)
12984 (linux_nat_filter_event, linux_nat_wait_1)
12985 (linux_nat_target::kill, linux_nat_target::stop)
12986 (linux_nat_target::stop): Update.
12987 (linux_nat_resume_callback): Change type.
12988 (resume_stopped_resumed_lwps, count_events_callback)
12989 (select_event_lwp_callback): Likewise.
12990 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12991 * arm-linux-nat.c (struct update_registers_data): Remove.
12992 (update_registers_callback): Change type.
12993 (arm_linux_insert_hw_breakpoint1): Update.
12994 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12995 parameter.
12996 (x86_linux_dr_set_addr): Update.
12997 (x86_linux_dr_set_control): Update.
12998 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12999 (iterate_over_lwps): Use gdb::function_view.
13000 * nat/aarch64-linux-hw-point.c (struct
13001 aarch64_dr_update_callback_param): Remove.
13002 (debug_reg_change_callback): Change type.
13003 (aarch64_notify_debug_reg_change): Update.
13004 * s390-linux-nat.c (s390_refresh_per_info): Update.
13005
82cb27ff
TT
130062019-03-11 Tom Tromey <tromey@adacore.com>
13007
13008 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13009 redundant assignment to "this_cu".
13010
568c0683
SM
130112019-03-08 Simon Marchi <simon.marchi@efficios.com>
13012
13013 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13014
f09ce22d
SM
130152019-03-08 Simon Marchi <simon.marchi@efficios.com>
13016
13017 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13018 from...
13019 (rank_one_type): ... this.
13020
595f96a9
SM
130212019-03-08 Simon Marchi <simon.marchi@efficios.com>
13022
13023 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13024 from...
13025 (rank_one_type): ... this.
13026
2598a94b
SM
130272019-03-08 Simon Marchi <simon.marchi@efficios.com>
13028
13029 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13030 from...
13031 (rank_one_type): ... this.
13032
7f17b20d
SM
130332019-03-08 Simon Marchi <simon.marchi@efficios.com>
13034
13035 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13036 from...
13037 (rank_one_type): ... this.
13038
2c509035
SM
130392019-03-08 Simon Marchi <simon.marchi@efficios.com>
13040
13041 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13042 from...
13043 (rank_one_type): ... this.
13044
0dd322dc
SM
130452019-03-08 Simon Marchi <simon.marchi@efficios.com>
13046
13047 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13048 from...
13049 (rank_one_type): ... this.
13050
41ea4728
SM
130512019-03-08 Simon Marchi <simon.marchi@efficios.com>
13052
13053 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13054 from...
13055 (rank_one_type): ... this.
13056
793cd1d2
SM
130572019-03-08 Simon Marchi <simon.marchi@efficios.com>
13058
13059 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13060 from...
13061 (rank_one_type): ... this.
13062
34910087
SM
130632019-03-08 Simon Marchi <simon.marchi@efficios.com>
13064
13065 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13066 from...
13067 (rank_one_type): ... this.
13068
f1f832d6
SM
130692019-03-08 Simon Marchi <simon.marchi@efficios.com>
13070
13071 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13072 from...
13073 (rank_one_type): ... this.
13074
b9f4512f
SM
130752019-03-08 Simon Marchi <simon.marchi@efficios.com>
13076
13077 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13078 from...
13079 (rank_one_type): ... this.
13080
9293fc63
SM
130812019-03-08 Simon Marchi <simon.marchi@efficios.com>
13082
13083 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13084 from...
13085 (rank_one_type): ... this.
13086
e3abbe7e
PW
130872019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13088
13089 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13090 inferior-events' shows the example events.
13091
e4adb939
EZ
130922019-03-08 Eli Zaretskii <eliz@gnu.org>
13093
13094 Support styling on native MS-Windows console
13095
13096 PR/24315
13097 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13098 on MS-Windows if $TERM is not defined.
13099
13100 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13101
13102 * posix-hdep.c (gdb_console_fputs):
13103 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13104 functions.
13105 * ui-file.h (gdb_console_fputs): Add prototype.
13106
13107 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13108 back to fputs only if the former returns zero.
13109
25629dfd
TT
131102019-03-07 Tom Tromey <tom@tromey.com>
13111
13112 * symmisc.c (print_symbol_bcache_statistics): Update.
13113 (print_objfile_statistics): Update.
13114 * symfile.c (allocate_symtab): Update.
13115 * stabsread.c: Don't include bcache.h.
13116 * psymtab.h (struct psymbol_bcache): Don't declare.
13117 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13118 (psymbol_bcache_init, psymbol_bcache_free)
13119 (psymbol_bcache_get_bcache): Don't declare.
13120 * psymtab.c (struct psymbol_bcache): Remove.
13121 (psymtab_storage::psymtab_storage): Update.
13122 (psymtab_storage::~psymtab_storage): Update.
13123 (psymbol_bcache_init, psymbol_bcache_free)
13124 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13125 (add_psymbol_to_bcache): Update.
13126 (allocate_psymtab): Update.
13127 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13128 macro_cache>: No longer pointers.
13129 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13130 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13131 * macrotab.c (macro_bcache): Update.
13132 * macroexp.c: Don't include bcache.h.
13133 * gdbtypes.c (check_types_worklist): Update.
13134 (types_deeply_equal): Remove TRY/CATCH. Update.
13135 * elfread.c (elf_symtab_read): Update.
13136 * dwarf2read.c: Don't include bcache.h.
13137 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13138 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13139 (print_bcache_statistics, bcache_memory_used): Don't declare.
13140 (struct bcache): Move from bcache.c. Add constructor, destructor,
13141 methods. Rename all data members.
13142 * bcache.c (struct bcache): Move to bcache.h.
13143 (bcache::expand_hash_table): Rename from expand_hash_table.
13144 (bcache): Remove.
13145 (bcache::insert): Rename from bcache_full.
13146 (bcache::compare): Rename from bcache_compare.
13147 (bcache_xmalloc): Remove.
13148 (bcache::~bcache): Rename from bcache_xfree.
13149 (bcache::print_statistics): Rename from print_bcache_statistics.
13150 (bcache::memory_used): Rename from bcache_memory_used.
13151
fe726667
PA
131522019-03-07 Pedro Alves <palves@redhat.com>
13153
13154 * infrun.c (normal_stop): Also check for
13155 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13156
7584bb30
AB
131572019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13158
13159 * f-lang.c (value_from_host_double): Moved to...
13160 * value.c (value_from_host_double): ...here.
13161 * value.h (value_from_host_double): Declare.
13162 * guile/scm-math.c (vlscm_convert_typed_number): Use
13163 value_from_host_double.
13164 (vlscm_convert_number): Likewise.
13165 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13166 * python/py-value.c (convert_value_from_python): Likewise.
13167
a7b1986e
TT
131682019-03-06 Tom Tromey <tom@tromey.com>
13169
13170 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13171
0ccf4211
TT
131722019-03-06 Tom Tromey <tom@tromey.com>
13173
13174 * utils.h (free_current_contents): Don't declare.
13175 * utils.c (free_current_contents): Remove.
13176
fe7b42e5
TT
131772019-03-06 Tom Tromey <tom@tromey.com>
13178
13179 * top.c (quit_force): Update.
13180 * main.c (captured_command_loop): Update.
13181 * common/new-op.c (operator new): Update.
13182 * common/common-exceptions.c (struct catcher)
13183 <save_cleanup_chain>: Remove member.
13184 (exceptions_state_mc_init): Update.
13185 (exception_try_scope_entry): Return nullptr.
13186 (exception_try_scope_exit, exception_rethrow)
13187 (throw_exception_sjlj, throw_exception_cxx): Update.
13188 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13189 (all_cleanups, do_cleanups, discard_cleanups)
13190 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13191 (restore_cleanups, restore_final_cleanups): Don't declare.
13192 (do_final_cleanups): Remove parameter.
13193 * common/cleanups.c (cleanup_chain, make_cleanup)
13194 (make_cleanup_dtor, all_cleanups, do_cleanups)
13195 (discard_my_cleanups, discard_cleanups)
13196 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13197 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13198 (null_cleanup): Remove.
13199 (do_final_cleanups): Remove parameter.
13200
c6321f19
TT
132012019-03-06 Tom Tromey <tom@tromey.com>
13202
13203 * remote.c (remote_target::remote_parse_stop_reply): Use
13204 unique_xmalloc_ptr.
13205
61b30099
TT
132062019-03-06 Tom Tromey <tom@tromey.com>
13207
13208 * stabsread.c (struct stabs_field_info): Rename from field_info.
13209 <list, fnlist>: Add initializers.
13210 <obstack>: New member.
13211 (read_member_functions, read_struct_fields, read_baseclasses):
13212 Allocate on obstack. Don't use cleanups.
13213 (read_one_struct_field, read_member_functions, read_struct_fields)
13214 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13215 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13216 (read_struct_type): Update.
13217
6cceac94
TT
132182019-03-06 Tom Tromey <tom@tromey.com>
13219
13220 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13221 * common/filestuff.h (make_cleanup_close): Don't declare.
13222 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13223 Remove.
13224
72412762
TT
132252019-03-06 Tom Tromey <tom@tromey.com>
13226
13227 * solib-aix.c: Use make_scope_exit.
13228
2b6ff1c0
TT
132292019-03-06 Tom Tromey <tom@tromey.com>
13230
13231 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13232 Use make_scope_exit.
13233
d01c5877
TT
132342019-03-06 Tom Tromey <tom@tromey.com>
13235
13236 * solib-svr4.c (disable_probes_interface): Remove parameter.
13237 (svr4_handle_solib_event): Use make_scope_exit.
13238
32603266
TT
132392019-03-06 Tom Tromey <tom@tromey.com>
13240
13241 * remote.c (struct stop_reply_deleter): Remove.
13242 (stop_reply_up): Update.
13243 (struct stop_reply): Derive from notif_event. Don't typedef.
13244 <regcache>: Now a std::vector.
13245 (stop_reply_xfree): Remove.
13246 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13247 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13248 (remote_target::discard_pending_stop_replies): Use delete.
13249 (remote_target::remote_parse_stop_reply): Update.
13250 (remote_target::process_stop_reply): Update.
13251 * remote-notif.h (struct notif_event): Add virtual destructor.
13252 Remove "dtr" member.
13253 (struct notif_client) <alloc_event>: Return a unique_ptr.
13254 (notif_event_xfree): Don't declare.
13255 (notif_event_up): New typedef.
13256 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13257 (notif_event_xfree, do_notif_event_xfree): Remove.
13258 (remote_notif_state_xfree): Update.
13259
9799571e
TT
132602019-03-06 Tom Tromey <tom@tromey.com>
13261
13262 * infrun.c (displaced_step_clear_cleanup): Now a
13263 forward_scope_exit type.
13264 (displaced_step_prepare_throw): Update.
13265 (displaced_step_fixup): Update.
13266
09e3c4ca
TT
132672019-03-06 Tom Tromey <tom@tromey.com>
13268
13269 * inferior.h (class inferior): Update comment.
13270 * gdbthread.h (class thread_info): Update comment.
13271
e2a03548
TT
132722019-03-06 Joel Brobecker <brobecker@adacore.com>
13273 Tom Tromey <tom@tromey.com>
13274
13275 * stabsread.h (struct stab_section_list): Remove.
13276 (coffstab_build_psymtabs): Update.
13277 * dbxread.c (symbuf_sections): Now a std::vector.
13278 (sect_idx): New global.
13279 (fill_symbuf): Update.
13280 (coffstab_build_psymtabs): Change type of stabsects parameter.
13281 Update.
13282 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13283 std::vector.
13284 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13285 (coff_locate_sections): Update.
13286 (coff_symfile_read): Remove cleanups. Update.
13287 (init_stringtab): Add storage parameter.
13288 (free_stringtab, free_stringtab_cleanup): Remove.
13289 (init_lineno): Add storage parameter.
13290 (free_linetab, free_linetab_cleanup): Remove.
13291
b7e60d85
PA
132922019-03-06 Pedro Alves <palves@redhat.com>
13293
13294 * linux-fork.c (fork_info::clobber_regs): Delete.
13295 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13296 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13297 comment. Adjust.
13298 (scoped_switch_fork_info::scoped_switch_fork_info)
13299 (checkpoint_command, linux_fork_context): Adjust
13300 fork_save_infrun_state calls.
13301
e52c971f
PA
133022019-03-06 Pedro Alves <palves@redhat.com>
13303
13304 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13305 (inf_has_multiple_threads): Return 'bool' and rewrite using
13306 inferior_info::threads().
13307
06974e6c
PA
133082019-03-06 Pedro Alves <palves@redhat.com>
13309
13310 * linux-fork.c: Include <list>.
13311 (fork_list): Now a std::list instance.
13312 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13313 (forks_exist_p, find_last_fork): Adjust.
13314 (new_fork): Delete.
13315 (one_fork_p): New.
13316 (add_fork): Adjust.
13317 (free_fork): Delete, folded into fork_info::~fork_info().
13318 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13319 Adjust.
13320 (init_fork_list): Delete.
13321 (linux_fork_killall, linux_fork_mourn_inferior)
13322 (linux_fork_detach, info_checkpoints_command): Adjust.
13323 (_initialize_linux_fork): No longer call init_fork_list.
13324
72f31aea
PA
133252019-03-06 Pedro Alves <palves@redhat.com>
13326
13327 * linux-fork.c (new_fork): New, split out of ...
13328 (add_fork): ... this. Return void. Move "first fork" special
13329 case from here, to ...
13330 (checkpoint_command): ... here.
13331 * linux-linux.h (add_fork): Return void.
13332
efbecbc1
AB
133332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13334
13335 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13336
0841c79a
AB
133372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13338 Chris January <chris.january@arm.com>
13339 David Lecomber <david.lecomber@arm.com>
13340
13341 * f-exp.y: New token, UNOP_INTRINSIC.
13342 (exp): New pattern using UNOP_INTRINSIC token.
13343 (f77_keywords): Add 'abs' keyword.
13344 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13345 (value_from_host_double): New function.
13346 (evaluate_subexp_f): Support UNOP_ABS.
13347
4a270568
AB
133482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13349
13350 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13351 types.
13352
067630bd
AB
133532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13354
13355 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13356 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13357 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13358
3be47f7a
AB
133592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13360
13361 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13362
4d00f5d8
AB
133632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13364 Chris January <chris.january@arm.com>
13365
13366 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13367 * f-exp.y: Define 'KIND' token.
13368 (exp): New pattern for KIND expressions.
13369 (ptype): Handle types with a kind extension.
13370 (direct_abs_decl): Extend to spot kind extensions.
13371 (f77_keywords): Add 'kind' to the list.
13372 (push_kind_type): New function.
13373 (convert_to_kind_type): New function.
13374 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13375 * parse.c (operator_length_standard): Likewise.
13376 * parser-defs.h (enum type_pieces): Add tp_kind.
13377 * std-operator.def: Add UNOP_KIND.
13378
e454224f
AB
133792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13380
13381 * f-exp.y (f_parse): Set yydebug.
13382
9dad4a58
AB
133832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13384
13385 * f-lang.c (evaluate_subexp_f): New function.
13386 (exp_descriptor_f): New global.
13387 (f_language_defn): Use exp_descriptor_f instead of
13388 exp_descriptor_standard.
13389
c8f91604
AB
133902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13391
13392 * f-exp.y (struct token): Add comments.
13393 (dot_ops): Remove uppercase versions and the end marker.
13394 (f77_keywords): Likewise.
13395 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13396 entries in the dot_ops array are case insensitive, and use
13397 strncasecmp to compare strings. Also some whitespace cleanup in
13398 this area. Similar for the f77_keywords array, except entries in
13399 this list might be case sensitive.
13400
dd9f2c76
AB
134012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13402
13403 * f-exp.y (struct f77_boolean_val): Add comments.
13404 (boolean_values): Remove uppercase versions, and end marker.
13405 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13406 and use strncasecmp to achieve case insensitivity. Additionally,
13407 perform whitespace cleanup around this code.
13408
67a3048c
TT
134092019-03-06 Tom Tromey <tromey@adacore.com>
13410
13411 * remote-sim.c (gdbsim_target_open): Use result of
13412 gdb_argv::release.
13413
aa3cfbda
RB
134142019-03-06 Richard Bunt <richard.bunt@arm.com>
13415 Dirk Schubert <dirk.schubert@arm.com>
13416 Chris January <chris.january@arm.com>
13417
13418 * eval.c (evaluate_subexp_standard): Call Fortran argument
13419 wrapping logic.
13420 * f-lang.c (struct value): A value which can be passed into a
13421 Fortran function call.
13422 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13423 where appropriate.
13424 (struct type): Value ready for a Fortran function call.
13425 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13426 is needed.
13427 * f-lang.h (fortran_argument_convert): Declaration.
13428 (fortran_preserve_arg_pointer): Declaration.
13429 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13430
ea38e5df
TT
134312019-03-05 Tom Tromey <tromey@adacore.com>
13432
13433 * python/py-prettyprint.c (print_string_repr): Remove #if.
13434 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13435
06b5b831
TT
134362019-03-05 Tom Tromey <tromey@adacore.com>
13437
13438 * target.c (the_dummy_target): Move later. Change type to
13439 "dummy_target".
13440 (initialize_targets): Don't initialize the_dummy_target.
13441
edbd9e45
TT
134422019-03-05 Tom Tromey <tromey@adacore.com>
13443
13444 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13445 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13446
c119e040
TT
134472019-03-05 Tom Tromey <tromey@adacore.com>
13448
13449 * windows-nat.c (windows_nat_target::attach)
13450 (windows_nat_target::detach): Don't call gdb_flush.
13451 * valprint.c (generic_val_print, val_print, val_print_string):
13452 Don't call gdb_flush.
13453 * utils.c (defaulted_query): Don't call gdb_flush.
13454 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13455 * target.c (target_announce_detach): Don't call gdb_flush.
13456 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13457 * remote.c (extended_remote_target::attach): Don't call
13458 gdb_flush.
13459 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13460 * printcmd.c (do_examine): Don't call gdb_flush.
13461 (info_display_command): Don't call gdb_flush.
13462 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13463 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13464 * memattr.c (info_mem_command): Don't call gdb_flush.
13465 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13466 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13467 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13468 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13469 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13470 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13471 (gnu_nat_target::detach): Don't call gdb_flush.
13472 * f-valprint.c (f_val_print): Don't call gdb_flush.
13473 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13474 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13475 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13476 gdb_flush.
13477 * c-valprint.c (c_val_print): Don't call gdb_flush.
13478 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13479
895dafa6
TT
134802019-03-05 Tom Tromey <tromey@adacore.com>
13481
13482 * varobj.c (update_dynamic_varobj_children): Update.
13483 (install_default_visualizer): Use reset, not release.
13484 * value.c (set_internalvar): Update.
13485 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13486 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13487 ATTRIBUTE_UNUSED_RESULT.
13488
88a774b9
TT
134892019-03-05 Tom Tromey <tromey@adacore.com>
13490
13491 * remote.c (class scoped_remote_fd) <release>: Add
13492 ATTRIBUTE_UNUSED_RESULT.
13493
4e4a8b93
TT
134942019-03-05 Tom Tromey <tromey@adacore.com>
13495
13496 * macroexp.c (struct macro_buffer) <release>: Add
13497 ATTRIBUTE_UNUSED_RESULT.
13498
083eef1f
TT
134992019-03-05 Tom Tromey <tromey@adacore.com>
13500
13501 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13502 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13503 ATTRIBUTE_UNUSED_RESULT.
13504
3cabd438
TT
135052019-03-05 Tom Tromey <tromey@adacore.com>
13506
13507 * common/scoped_fd.h (class scoped_fd) <release>: Add
13508 ATTRIBUTE_UNUSED_RESULT.
13509
41e3300a
TT
135102019-03-05 Tom Tromey <tromey@adacore.com>
13511
13512 * parser-defs.h (struct parser_state) <release>: Add
13513 ATTRIBUTE_UNUSED_RESULT.
13514
18cb7c9f
TT
135152019-03-05 Tom Tromey <tromey@adacore.com>
13516
13517 * utils.h (class gdb_argv) <release>: Add
13518 ATTRIBUTE_UNUSED_RESULT.
13519 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13520
41fa577f
EZ
135212019-03-02 Eli Zaretskii <eliz@gnu.org>
13522
a6a4b2c6
EZ
13523 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13524 for-loop range, to avoid compiler warnings.
13525
13526 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13527 avoid compiler warnings about unused variables.
13528
742a7df5
EZ
13529 * NEWS: Mention end of support for native debugging on MS-Windows
13530 before XP.
13531
41fa577f
EZ
13532 PR gdb/24292
13533 * common/netstuff.c:
13534 * gdbserver/gdbreplay.c
13535 * gdbserver/remote-utils.c:
13536 * ser-tcp.c:
13537 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13538 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13539 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13540 'getaddrinfo' and 'freeaddrinfo' were not available before
13541 Windows XP, and mingw.org's MinGW headers by default define
13542 _WIN32_WINNT to 0x500.
13543
827f438f
GB
135442019-03-01 Gary Benson <gbenson@redhat.com>
13545
13546 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13547
92137da0
RO
135482019-02-28 Brian Vandenberg <phantall@gmail.com>
13549 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13550
13551 PR gdb/8527
13552 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13553 set_sigint_trap, clear_sigint_trap.
13554
799efbe8
PW
135552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13556
13557 * target.c (target_detach): Clear the regcache and the
13558 frame cache.
13559
8ed25214
PA
135602019-02-27 Pedro Alves <palves@redhat.com>
13561
13562 * utils.c (set_screen_size): When we cap the height/width sizes,
13563 tweak the corresponding command variable to show "unlimited":
13564
23031e31
SJ
135652019-02-27 Saagar Jha <saagar@saagarjha.com>
13566 Pedro Alves <palves@redhat.com>
13567
13568 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13569 before calling rl_set_screen_size.
13570
6c28e44a
TT
135712019-02-27 Tom Tromey <tromey@adacore.com>
13572
13573 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13574 define.
13575 * python/py-value.c: Remove Python 2.4 workaround.
13576 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13577 workaround.
13578 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13579 Python 2.4 workaround.
13580 * python/python-internal.h: Remove Python 2.4 comment.
13581 (Py_ssize_t): Don't define.
13582 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13583 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13584 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13585 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13586 * python/python.c (do_start_initialization): Remove Python 2.4
13587 workaround.
13588 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13589 (print_children): Remove Python 2.4 workaround.
13590 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13591 workaround.
13592 (CHARBUFFERPROC_NAME): Remove.
13593 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13594 Python 2.4 workaround.
13595
2c3fc25d 135962019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13597
2c3fc25d
KB
13598 * NEWS: Note minimum Python version.
13599
6ca62222
KB
136002019-02-27 Kevin Buettner <kevinb@redhat.com>
13601
13602 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13603 code from these functions. Remove corresponding ifdefs. Use
13604 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13605 Remove gotos and target of gotos.
13606 (infpy_search_memory): Likewise.
13607
f4bc7d2c
AB
136082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13609
13610 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13611 (hppa_gdbarch_init): Don't register deleted functions with
13612 gdbarch.
13613
9734a586
AB
136142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13617 (h8300_unwind_sp): Delete.
13618 (h8300_dummy_id): Delete.
13619 (h8300_gdbarch_init): Don't register deleted functions with
13620 gdbarch.
13621
68b867f3
AB
136222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13623
13624 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13625 (ft32_unwind_pc): Delete.
13626 (ft32_unwind_sp): Delete.
13627 (ft32_gdbarch_init): Don't register deleted functions with
13628 gdbarch.
13629
2fbe7ad0
AB
136302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13631
13632 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13633 (frv_unwind_pc): Delete.
13634 (frv_unwind_sp): Delete.
13635 (frv_gdbarch_init): Don't register deleted functions with
13636 gdbarch.
13637
76055cbe
AB
136382019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13639
13640 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13641 (riscv_unwind_pc): Delete.
13642 (riscv_unwind_sp): Delete.
13643 (riscv_gdbarch_init): Don't register deleted functions with
13644 gdbarch.
13645
4133e5a1
AB
136462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13647
13648 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13649 (csky_unwind_pc): Delete.
13650 (csky_unwind_sp): Delete.
13651 (csky_gdbarch_init): Don't register deleted functions with
13652 gdbarch.
13653
8010f576
AB
136542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13657 (cris_unwind_pc): Delete.
13658 (cris_unwind_sp): Delete.
13659 (cris_gdbarch_init): Don't register deleted functions with
13660 gdbarch.
13661
b56bf084
AB
136622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13663
13664 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13665 (bfin_unwind_pc): Delete.
13666 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13667
a19a650f
AB
136682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13671 (arm_unwind_pc): Delete.
13672 (arm_unwind_sp): Delete.
13673 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13674
f8278c3c
AB
136752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13676
13677 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13678 (arc_unwind_pc): Delete.
13679 (arc_unwind_sp): Delete.
13680 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13681
480e46cf
AB
136822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13683
13684 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13685 (alpha_unwind_pc): Delete.
13686 (alpha_gdbarch_init): Don't register deleted functions with
13687 gdbarch.
13688
7a995095
AB
136892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13690
13691 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13692 (aarch64_unwind_pc): Delete.
13693 (aarch64_unwind_sp): Delete.
13694 (aarch64_gdbarch_init): Don't register deleted functions with
13695 gdbarch.
13696
bf9a735e
AB
136972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13698
13699 * gdbtypes.c (type_align): Don't consider static members when
13700 computing structure alignment.
13701
5561fc30
AB
137022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13703
13704 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13705 return 0 for other types.
13706 * arch-utils.c (default_type_align): Always return 0.
13707 * gdbarch.h: Regenerate.
13708 * gdbarch.sh (type_align): Extend comment.
13709 * gdbtypes.c (type_align): Add additional comments, always call
13710 gdbarch_type_align before applying the default rules.
13711 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13712 generic code will then apply a suitable default.
13713 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13714 types, return 0 for other types.
13715
9335e75a
JB
137162019-02-27 Joel Brobecker <brobecker@adacore.com>
13717
13718 * NEWS: Create a new section for the next release branch.
13719 Rename the section of the current branch, now that it has
13720 been cut.
13721
3d34d8de
JB
137222019-02-27 Joel Brobecker <brobecker@adacore.com>
13723
13724 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13725 * version.in: Bump version to 8.3.50.DATE-git.
13726
143420fb
SM
137272019-02-26 Simon Marchi <simon.marchi@efficios.com>
13728
13729 * aix-thread.c (ptid_cmp): Remove unused variable.
13730 (get_signaled_thread): Likewise.
13731 (store_regs_user_thread): Likewise.
13732 (store_regs_kernel_thread): Likewise.
13733 (fetch_regs_kernel_thread): Remove shadowed variable.
13734
172fb711
AB
137352019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13736
13737 * features/riscv/32bit-cpu.xml: Add register numbers.
13738 * features/riscv/32bit-fpu.c: Regenerate.
13739 * features/riscv/32bit-fpu.xml: Add register numbers.
13740 * features/riscv/64bit-cpu.xml: Add register numbers.
13741 * features/riscv/64bit-fpu.c: Regenerate.
13742 * features/riscv/64bit-fpu.xml: Add register numbers.
13743
26c89782
KB
137442019-02-26 Kevin Buettner <kevinb@redhat.com>
13745
af54ade9 13746 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13747 * python/py-value.c (convert_buffer_and_type_to_value): New
13748 function.
13749 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13750 Add support for handling an optional second argument. Call
13751 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13752 * python/python-internal.h (Py_buffer_deleter): New struct.
13753 (Py_buffer_up): New typedef.
13754
0f58c9e8
JB
137552019-02-25 John Baldwin <jhb@FreeBSD.org>
13756
13757 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13758 instead of releasing ownership.
13759
0a0f4c01
JR
137602019-02-25 Jordan Rupprecht <rupprecht@google.com>
13761
13762 * dwarf2read.c (open_and_init_dwp_file): Call
13763 elf_numsections instead of bfd_count_sections to initialize
13764 dwp_file->num_sections.
13765
cd5a152c
TT
137662019-02-25 Tom Tromey <tromey@adacore.com>
13767
13768 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13769
8a6a8513
SDJ
137702019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13771
13772 * gcore.in: Add '--readnever' option when invoking GDB.
13773
04dcda9c
SM
137742019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13775
13776 * MAINTAINERS: Update my email address.
13777
07bc701d
SM
137782019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13779
13780 * build-id.c (build_id_to_debug_bfd_1): New function.
13781 (build_id_to_debug_bfd): Look for separate debug file in
13782 sysroot.
13783
c6f4a5d0
AB
137842019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13785
13786 * gdbarch.sh: Update the copyright year range that is placed into
13787 generated files.
13788
9600246d
KS
137892019-02-22 Keith Seitz <keiths@redhat.com>
13790
13791 PR symtab/23853
13792 * linespec.c (create_sals_line_offset): Search for the default
13793 symtab's filename instead of its fullname.
13794
7557a514
AH
137952019-02-21 Alan Hayward <alan.hayward@arm.com>
13796
13797 * NEWS: Update style defaults.
13798
ee2bcb0c
AH
137992019-02-21 Alan Hayward <alan.hayward@arm.com>
13800
13801 * main.c (captured_main_1): Disable styling in batch mode.
13802
0c95f9ed
TT
138032019-02-20 Tom Tromey <tom@tromey.com>
13804
13805 * symtab.c (symtab_symbol_info): Fix typos.
13806
c763b894
TT
138072019-02-20 Tom Tromey <tromey@adacore.com>
13808
13809 * findcmd.c (_initialize_mem_search): Use upper case for
13810 metasyntactic variables.
13811
0ef8a082
AH
138122019-02-20 Alan Hayward <alan.hayward@arm.com>
13813
13814 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13815 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13816
6caa91b6
SM
138172019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13818
13819 * top.h (source_file_name): Change to std::string.
13820 * top.c (source_file_name): Likewise.
13821 (command_line_input): Adjust.
13822 * cli/cli-script.c (script_from_file): Adjust.
13823
98814c6c
TT
138242019-02-19 Tom Tromey <tromey@adacore.com>
13825
13826 * ravenscar-thread.c
13827 (ravenscar_thread_target::update_thread_list): Don't call
13828 ada_build_task_list.
13829 * ada-lang.h (ada_build_task_list): Don't declare.
13830 * ada-tasks.c (struct ada_tasks_inferior_data)
13831 <task_list_valid_p>: Now bool.
13832 (read_known_tasks, ada_task_list_changed)
13833 (ada_tasks_invalidate_inferior_data): Update.
13834 (read_known_tasks_array): Return bool.
13835 (read_known_tasks_list): Likewise.
13836 (read_known_tasks): Return void.
13837 (ada_build_task_list): Now static.
13838
70cd633e
AB
138392019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13840
13841 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13842 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13843
040b3e95
PW
138442019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13845
13846 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13847 variant for ada_tasks_pspace_data_handle and
13848 ada_tasks_inferior_data_handle.
13849 (ada_tasks_pspace_data_cleanup): New function.
13850 (ada_tasks_inferior_data_cleanup): New function.
13851
9409233b
TT
138522019-02-17 Tom Tromey <tom@tromey.com>
13853
13854 * macrotab.h (macro_source_fullname): Return a std::string.
13855 * macrotab.c (macro_include, check_for_redefinition)
13856 (macro_undef, macro_lookup_definition, foreach_macro)
13857 (foreach_macro_in_scope): Update.
13858 (macro_source_fullname): Return a std::string.
13859 * macrocmd.c (show_pp_source_pos): Update.
13860
6506371f
TT
138612019-02-17 Tom Tromey <tom@tromey.com>
13862
13863 * macrocmd.c (show_pp_source_pos): Style the file names.
13864
0c820d67
TT
138652019-02-17 Tom Tromey <tom@tromey.com>
13866
13867 PR tui/24197:
13868 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13869
a0087920
TT
138702019-02-17 Tom Tromey <tom@tromey.com>
13871
13872 * ada-lang.c (user_select_syms): Use filtered printing.
13873 * utils.c (wrap_style): New global.
13874 (desired_style): Remove.
13875 (emit_style_escape): Add stream parameter.
13876 (set_output_style, reset_terminal_style, prompt_for_continue):
13877 Update.
13878 (flush_wrap_buffer): Only flush gdb_stdout.
13879 (wrap_here): Set wrap_style.
13880 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13881 treat escape sequences as a character. Change when wrap buffer is
13882 flushed.
13883 (fputs_styled): Do not set the output style when the default is
13884 requested.
13885 * ui-style.h (struct ui_file_style) <is_default>: New method.
13886 * source.c (print_source_lines_base): Emit escape sequences in one
13887 piece.
13888
75ba10dc
JB
138892019-02-17 Joel Brobecker <brobecker@adacore.com>
13890
13891 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13892 integers and enumeration types.
13893
a2cd4f14
JB
138942019-02-17 Joel Brobecker <brobecker@adacore.com>
13895
13896 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13897 instead of lookup_symbol_in_language
13898 (do_exact_match): New function.
13899 (ada_get_symbol_name_matcher): Return do_exact_match when
13900 doing a verbatim match.
13901
485b851b
TT
139022019-02-15 Tom Tromey <tromey@adacore.com>
13903
13904 * ravenscar-thread.c (ravenscar_thread_target::resume)
13905 (ravenscar_thread_target::wait): Special case wildcard requests.
13906
0b790b1e
TT
139072019-02-15 Tom Tromey <tromey@adacore.com>
13908
13909 * ravenscar-thread.c (base_ptid): Remove.
13910 (struct ravenscar_thread_target) <close>: New method.
13911 <m_base_ptid>: New member.
13912 <update_inferior_ptid, active_task, task_is_currently_active,
13913 runtime_initialized>: Declare methods.
13914 <ravenscar_thread_target>: Add constructor.
13915 (ravenscar_thread_target::task_is_currently_active)
13916 (ravenscar_thread_target::update_inferior_ptid)
13917 (ravenscar_runtime_initialized): Rename. Now methods.
13918 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13919 (ravenscar_thread_target::update_thread_list): Update.
13920 (ravenscar_thread_target::active_task): Now method.
13921 (ravenscar_thread_target::store_registers)
13922 (ravenscar_thread_target::prepare_to_store)
13923 (ravenscar_thread_target::prepare_to_store)
13924 (ravenscar_thread_target::mourn_inferior): Update.
13925 (ravenscar_inferior_created): Use "new" to create target.
13926 (ravenscar_thread_target::get_ada_task_ptid): Update.
13927 (_initialize_ravenscar): Don't initialize base_ptid.
13928 (ravenscar_ops): Remove global.
13929
dea57a62
TT
139302019-02-15 Tom Tromey <tromey@adacore.com>
13931
13932 * target.h (push_target): Declare new overload.
13933 * target.c (push_target): New overload, taking an rvalue reference.
13934 * remote.c (remote_target::open_1): Use push_target overload.
13935 * corelow.c (core_target_open): Use push_target overload.
13936
989f3c58
TT
139372019-02-15 Tom Tromey <tromey@adacore.com>
13938
13939 * ravenscar-thread.c (is_ravenscar_task)
13940 (ravenscar_task_is_currently_active): Return bool.
13941 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13942 (_initialize_ravenscar): Remove "(void)".
13943 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13944 Return bool.
13945
6cbcc006
TT
139462019-02-15 Tom Tromey <tromey@adacore.com>
13947
13948 * ravenscar-thread.c (ravenscar_runtime_initializer)
13949 (has_ravenscar_runtime, get_running_thread_id)
13950 (ravenscar_thread_target::resume): Fix indentation.
13951
7657f14d
TT
139522019-02-15 Tom Tromey <tromey@adacore.com>
13953
13954 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13955 from ravenscar_arch_ops.
13956 (sparc_ravenscar_ops::fetch_registers)
13957 (sparc_ravenscar_ops::store_registers): Now methods.
13958 (sparc_ravenscar_prepare_to_store): Remove.
13959 (sparc_ravenscar_ops): Redefine.
13960 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13961 methods and destructor. Remove members.
13962 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13963 (ravenscar_thread_target::store_registers)
13964 (ravenscar_thread_target::prepare_to_store): Update.
13965 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13966 Remove.
13967 (struct ppc_ravenscar_powerpc_ops): Derive from
13968 ravenscar_arch_ops.
13969 (ppc_ravenscar_powerpc_ops::fetch_registers)
13970 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13971 (ppc_ravenscar_powerpc_ops): Redefine.
13972 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13973 (ppc_ravenscar_e500_ops::fetch_registers)
13974 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13975 (ppc_ravenscar_e500_ops): Redefine.
13976 * aarch64-ravenscar-thread.c
13977 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13978 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13979 (aarch64_ravenscar_fetch_registers)
13980 (aarch64_ravenscar_store_registers): Now methods.
13981 (aarch64_ravenscar_ops): Redefine.
13982
5b6ea500
TT
139832019-02-15 Tom Tromey <tromey@adacore.com>
13984
13985 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13986 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13987 (ravenscar_thread_target::stopped_by_watchpoint)
13988 (ravenscar_thread_target::stopped_data_address)
13989 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13990
e397fd39
TT
139912019-02-15 Tom Tromey <tromey@adacore.com>
13992
13993 * ravenscar-thread.c: Fix some typos.
13994
cc12f4a8
TT
139952019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13996 Tom Tromey <tromey@adacore.com>
13997
13998 * ada-lang.c (ada_exception_sal): Change addr_string to a
13999 std::string.
14000 (create_ada_exception_catchpoint): Update.
14001
5f486660
TT
140022019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14003 Tom Tromey <tromey@adacore.com>
14004
14005 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14006 (bp_location_ops): Remove.
14007 (base_breakpoint_allocate_location): Update.
14008 (free_bp_location): Update.
14009 * ada-lang.c (class ada_catchpoint_location)
14010 <ada_catchpoint_location>: Remove ops parameter.
14011 (ada_catchpoint_location_dtor): Remove.
14012 (ada_catchpoint_location_ops): Remove.
14013 (allocate_location_exception): Update.
14014 * breakpoint.h (struct bp_location_ops): Remove.
14015 (class bp_location) <bp_location>: Remove bp_location_ops
14016 parameter.
14017 <~bp_location>: Add destructor.
14018 <ops>: Remove.
14019
b671c7fb
TS
140202019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14021 Pedro Alves <palves@redhat.com>
14022
14023 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14024 'PATH_MAX'.
14025
8071c5ce
DM
140262019-02-14 David Michael <fedora.dm0@gmail.com>
14027 Samuel Thibault <samuel.thibault@gnu.org>
14028 Thomas Schwinge <thomas@codesourcery.com>
14029
14030 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14031 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14032
b1041ae0
TS
140332019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14034
924514e1
TS
14035 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14036 (check_empty): Use "const char *".
14037
c29ee8d4
TS
14038 * gnu-nat.c (gnu_nat_target::detach): Instead of
14039 'detach_inferior (pid)' call
14040 'detach_inferior (find_inferior_pid (pid))'.
14041
6c6ef69f
TS
14042 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14043 'nat/fork-inferior.o'.
14044 * gnu-nat.c: #include "nat/fork-inferior.h".
14045
2d0a338c
TS
14046 * gnu-nat.c (gnu_nat_target::detach): Instead of
14047 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14048 * gnu-nat.h: #include "inf-child.h".
14049 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14050 'i386_gnu_nat_target::fetch_registers'.
14051 (gnu_store_registers): Rename/move to
14052 'i386_gnu_nat_target::store_registers'.
14053
cabb5f06
TS
14054 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14055 * gnu-nat.h (mach_thread_info): New function.
14056 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14057
b1041ae0
TS
14058 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14059
2988d01e
KF
140602019-02-14 Frederic Konrad <konrad@adacore.com>
14061
14062 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14063
c559d709
JB
140642019-02-14 Joel Brobecker <brobecker@adacore.com>
14065
14066 * windows-nat.c (windows_add_thread): Add new parameter
14067 "main_thread_p" with default value set to false. Update
14068 function documentation as well as all callers.
14069 (windows_delete_thread): Likewise.
14070 (fake_create_process): Update call to windows_add_thread.
14071 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14072 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14073 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14074 call to windows_delete_thread.
14075
007024cc
SM
140762019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14077
14078 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14079
f62318e9
JB
140802019-02-12 John Baldwin <jhb@FreeBSD.org>
14081
14082 * symfile.c (find_separate_debug_file): Use canonical path of
14083 sysroot with child_path instead of gdb_sysroot if it is valid.
14084
cd4b7848
JB
140852019-02-12 John Baldwin <jhb@FreeBSD.org>
14086
14087 * symfile.c (find_separate_debug_file): Use child_path to
14088 determine if an object file is under a sysroot.
14089
efac4bfe
JB
140902019-02-12 John Baldwin <jhb@FreeBSD.org>
14091
14092 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14093 unittests/child-path-selftests.c.
14094 * common/pathstuff.c (child_path): New function.
14095 * common/pathstuff.h (child_path): New prototype.
14096 * unittests/child-path-selftests.c: New file.
14097
402d2bfe
JB
140982019-02-12 John Baldwin <jhb@FreeBSD.org>
14099
14100 * symfile.c (find_separate_debug_file): Look for separate debug
14101 files in debug directories under the sysroot.
14102
1ed9f74e
PW
141032019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14104
14105 * symtab.h (struct minimal_symbol data_p): New const method.
14106 (struct minimal_symbol text_p): Likewise.
14107 * symtab.c (output_source_filename): Use file name style
14108 to print file name.
14109 (print_symbol_info): Likewise.
14110 (print_msymbol_info): Use address style to print addresses.
14111 Use function name style to print executable text symbols.
14112 (expand_symtab_containing_pc): Use data_p.
14113 (find_pc_sect_compunit_symtab): Likewise.
14114
2636d81d
PW
141152019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14116
14117 * breakpoint.c (describe_other_breakpoints): Use address style
14118 to print addresses.
14119 (say_where): Likewise.
14120
ac8c53cc
PW
141212019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14122
14123 * ada-typeprint.c (print_func_type): Print function name
14124 style to print function name.
14125 * c-typeprint.c (c_print_type_1): Likewise.
14126
ea638c43
AH
141272019-02-11 Alan Hayward <alan.hayward@arm.com>
14128
14129 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14130 for execve.
14131
ab759ca8
PW
141322019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14133
14134 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14135 type_stack.
14136
aff29d1c
JB
141372019-02-10 Joel Brobecker <brobecker@adacore.com>
14138
14139 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14140 TYPE_CODE_REF types.
14141
617126bc
JW
141422019-02-08 Jim Wilson <jimw@sifive.com>
14143
14144 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14145 (riscv_linux_fregset): New.
14146 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14147
46e3ed7f
TT
141482019-02-07 Tom Tromey <tom@tromey.com>
14149
14150 * thread.c (thread_cancel_execution_command): Update.
14151 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14152 methods.
14153 (struct thread_fsm_ops): Remove.
14154 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14155 (thread_fsm_should_stop, thread_fsm_return_value)
14156 (thread_fsm_set_finished, thread_fsm_finished_p)
14157 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14158 Don't declare.
14159 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14160 * infrun.c (clear_proceed_status_thread)
14161 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14162 (print_stop_event): Update.
14163 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14164 Add constructor.
14165 (step_command_fsm_ops): Remove.
14166 (new_step_command_fsm): Remove.
14167 (step_1): Update.
14168 (step_command_fsm::should_stop): Rename from
14169 step_command_fsm_should_stop.
14170 (step_command_fsm::clean_up): Rename from
14171 step_command_fsm_clean_up.
14172 (step_command_fsm::do_async_reply_reason): Rename from
14173 step_command_fsm_async_reply_reason.
14174 (struct until_next_fsm): Inherit from thread_fsm. Add
14175 constructor.
14176 (until_next_fsm_ops): Remove.
14177 (new_until_next_fsm): Remove.
14178 (until_next_fsm::should_stop): Rename from
14179 until_next_fsm_should_stop.
14180 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14181 (until_next_fsm::do_async_reply_reason): Rename from
14182 until_next_fsm_async_reply_reason.
14183 (struct finish_command_fsm): Inherit from thread_fsm. Add
14184 constructor. Change type of breakpoint.
14185 (finish_command_fsm_ops): Remove.
14186 (new_finish_command_fsm): Remove.
14187 (finish_command_fsm::should_stop): Rename from
14188 finish_command_fsm_should_stop.
14189 (finish_command_fsm::clean_up): Rename from
14190 finish_command_fsm_clean_up.
14191 (finish_command_fsm::return_value): Rename from
14192 finish_command_fsm_return_value.
14193 (finish_command_fsm::do_async_reply_reason): Rename from
14194 finish_command_fsm_async_reply_reason.
14195 (finish_command): Update.
14196 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14197 Add constructor.
14198 (call_thread_fsm_ops): Remove.
14199 (call_thread_fsm::call_thread_fsm): Rename from
14200 new_call_thread_fsm.
14201 (call_thread_fsm::should_stop): Rename from
14202 call_thread_fsm_should_stop.
14203 (call_thread_fsm::should_notify_stop): Rename from
14204 call_thread_fsm_should_notify_stop.
14205 (run_inferior_call, call_function_by_hand_dummy): Update.
14206 * cli/cli-interp.c (should_print_stop_to_console): Update.
14207 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14208 Add constructor. Change type of location_breakpoint,
14209 caller_breakpoint.
14210 (until_break_fsm_ops): Remove.
14211 (new_until_break_fsm): Remove.
14212 (until_break_fsm::should_stop): Rename from
14213 until_break_fsm_should_stop.
14214 (until_break_fsm::clean_up): Rename from
14215 until_break_fsm_clean_up.
14216 (until_break_fsm::do_async_reply_reason): Rename from
14217 until_break_fsm_async_reply_reason.
14218 (until_break_command): Update.
14219 * thread-fsm.c: Remove.
14220 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14221
1a5c2598
TT
142222019-02-07 Tom Tromey <tom@tromey.com>
14223
14224 * yy-remap.h: Add include guard.
14225 * xtensa-tdep.h: Add include guard.
14226 * xcoffread.h: Rename include guard.
14227 * varobj-iter.h: Add include guard.
14228 * tui/tui.h: Rename include guard.
14229 * tui/tui-winsource.h: Rename include guard.
14230 * tui/tui-wingeneral.h: Rename include guard.
14231 * tui/tui-windata.h: Rename include guard.
14232 * tui/tui-win.h: Rename include guard.
14233 * tui/tui-stack.h: Rename include guard.
14234 * tui/tui-source.h: Rename include guard.
14235 * tui/tui-regs.h: Rename include guard.
14236 * tui/tui-out.h: Rename include guard.
14237 * tui/tui-layout.h: Rename include guard.
14238 * tui/tui-io.h: Rename include guard.
14239 * tui/tui-hooks.h: Rename include guard.
14240 * tui/tui-file.h: Rename include guard.
14241 * tui/tui-disasm.h: Rename include guard.
14242 * tui/tui-data.h: Rename include guard.
14243 * tui/tui-command.h: Rename include guard.
14244 * tic6x-tdep.h: Add include guard.
14245 * target/waitstatus.h: Rename include guard.
14246 * target/wait.h: Rename include guard.
14247 * target/target.h: Rename include guard.
14248 * target/resume.h: Rename include guard.
14249 * target-float.h: Rename include guard.
14250 * stabsread.h: Add include guard.
14251 * rs6000-tdep.h: Add include guard.
14252 * riscv-fbsd-tdep.h: Add include guard.
14253 * regformats/regdef.h: Rename include guard.
14254 * record.h: Rename include guard.
14255 * python/python.h: Rename include guard.
14256 * python/python-internal.h: Rename include guard.
14257 * python/py-stopevent.h: Rename include guard.
14258 * python/py-ref.h: Rename include guard.
14259 * python/py-record.h: Rename include guard.
14260 * python/py-record-full.h: Rename include guard.
14261 * python/py-record-btrace.h: Rename include guard.
14262 * python/py-instruction.h: Rename include guard.
14263 * python/py-events.h: Rename include guard.
14264 * python/py-event.h: Rename include guard.
14265 * procfs.h: Add include guard.
14266 * proc-utils.h: Add include guard.
14267 * p-lang.h: Add include guard.
14268 * or1k-tdep.h: Rename include guard.
14269 * observable.h: Rename include guard.
14270 * nto-tdep.h: Rename include guard.
14271 * nat/x86-linux.h: Rename include guard.
14272 * nat/x86-linux-dregs.h: Rename include guard.
14273 * nat/x86-gcc-cpuid.h: Add include guard.
14274 * nat/x86-dregs.h: Rename include guard.
14275 * nat/x86-cpuid.h: Rename include guard.
14276 * nat/ppc-linux.h: Rename include guard.
14277 * nat/mips-linux-watch.h: Rename include guard.
14278 * nat/linux-waitpid.h: Rename include guard.
14279 * nat/linux-ptrace.h: Rename include guard.
14280 * nat/linux-procfs.h: Rename include guard.
14281 * nat/linux-osdata.h: Rename include guard.
14282 * nat/linux-nat.h: Rename include guard.
14283 * nat/linux-namespaces.h: Rename include guard.
14284 * nat/linux-btrace.h: Rename include guard.
14285 * nat/glibc_thread_db.h: Rename include guard.
14286 * nat/gdb_thread_db.h: Rename include guard.
14287 * nat/gdb_ptrace.h: Rename include guard.
14288 * nat/fork-inferior.h: Rename include guard.
14289 * nat/amd64-linux-siginfo.h: Rename include guard.
14290 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14291 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14292 * nat/aarch64-linux.h: Rename include guard.
14293 * nat/aarch64-linux-hw-point.h: Rename include guard.
14294 * mn10300-tdep.h: Add include guard.
14295 * mips-linux-tdep.h: Add include guard.
14296 * mi/mi-parse.h: Rename include guard.
14297 * mi/mi-out.h: Rename include guard.
14298 * mi/mi-main.h: Rename include guard.
14299 * mi/mi-interp.h: Rename include guard.
14300 * mi/mi-getopt.h: Rename include guard.
14301 * mi/mi-console.h: Rename include guard.
14302 * mi/mi-common.h: Rename include guard.
14303 * mi/mi-cmds.h: Rename include guard.
14304 * mi/mi-cmd-break.h: Rename include guard.
14305 * m2-lang.h: Add include guard.
14306 * location.h: Rename include guard.
14307 * linux-record.h: Rename include guard.
14308 * linux-nat.h: Add include guard.
14309 * linux-fork.h: Add include guard.
14310 * i386-darwin-tdep.h: Rename include guard.
14311 * hppa-linux-offsets.h: Add include guard.
14312 * guile/guile.h: Rename include guard.
14313 * guile/guile-internal.h: Rename include guard.
14314 * gnu-nat.h: Rename include guard.
14315 * gdb-stabs.h: Rename include guard.
14316 * frv-tdep.h: Add include guard.
14317 * f-lang.h: Add include guard.
14318 * event-loop.h: Add include guard.
14319 * darwin-nat.h: Rename include guard.
14320 * cp-abi.h: Rename include guard.
14321 * config/sparc/nm-sol2.h: Rename include guard.
14322 * config/nm-nto.h: Rename include guard.
14323 * config/nm-linux.h: Add include guard.
14324 * config/i386/nm-i386gnu.h: Rename include guard.
14325 * config/djgpp/nl_types.h: Rename include guard.
14326 * config/djgpp/langinfo.h: Rename include guard.
14327 * compile/gcc-cp-plugin.h: Add include guard.
14328 * compile/gcc-c-plugin.h: Add include guard.
14329 * compile/compile.h: Rename include guard.
14330 * compile/compile-object-run.h: Rename include guard.
14331 * compile/compile-object-load.h: Rename include guard.
14332 * compile/compile-internal.h: Rename include guard.
14333 * compile/compile-cplus.h: Rename include guard.
14334 * compile/compile-c.h: Rename include guard.
14335 * common/xml-utils.h: Rename include guard.
14336 * common/x86-xstate.h: Rename include guard.
14337 * common/version.h: Rename include guard.
14338 * common/vec.h: Rename include guard.
14339 * common/tdesc.h: Rename include guard.
14340 * common/selftest.h: Rename include guard.
14341 * common/scoped_restore.h: Rename include guard.
14342 * common/scoped_mmap.h: Rename include guard.
14343 * common/scoped_fd.h: Rename include guard.
14344 * common/safe-iterator.h: Rename include guard.
14345 * common/run-time-clock.h: Rename include guard.
14346 * common/refcounted-object.h: Rename include guard.
14347 * common/queue.h: Rename include guard.
14348 * common/ptid.h: Rename include guard.
14349 * common/print-utils.h: Rename include guard.
14350 * common/preprocessor.h: Rename include guard.
14351 * common/pathstuff.h: Rename include guard.
14352 * common/observable.h: Rename include guard.
14353 * common/netstuff.h: Rename include guard.
14354 * common/job-control.h: Rename include guard.
14355 * common/host-defs.h: Rename include guard.
14356 * common/gdb_wait.h: Rename include guard.
14357 * common/gdb_vecs.h: Rename include guard.
14358 * common/gdb_unlinker.h: Rename include guard.
14359 * common/gdb_unique_ptr.h: Rename include guard.
14360 * common/gdb_tilde_expand.h: Rename include guard.
14361 * common/gdb_sys_time.h: Rename include guard.
14362 * common/gdb_string_view.h: Rename include guard.
14363 * common/gdb_splay_tree.h: Rename include guard.
14364 * common/gdb_setjmp.h: Rename include guard.
14365 * common/gdb_ref_ptr.h: Rename include guard.
14366 * common/gdb_optional.h: Rename include guard.
14367 * common/gdb_locale.h: Rename include guard.
14368 * common/gdb_assert.h: Rename include guard.
14369 * common/filtered-iterator.h: Rename include guard.
14370 * common/filestuff.h: Rename include guard.
14371 * common/fileio.h: Rename include guard.
14372 * common/environ.h: Rename include guard.
14373 * common/common-utils.h: Rename include guard.
14374 * common/common-types.h: Rename include guard.
14375 * common/common-regcache.h: Rename include guard.
14376 * common/common-inferior.h: Rename include guard.
14377 * common/common-gdbthread.h: Rename include guard.
14378 * common/common-exceptions.h: Rename include guard.
14379 * common/common-defs.h: Rename include guard.
14380 * common/common-debug.h: Rename include guard.
14381 * common/cleanups.h: Rename include guard.
14382 * common/buffer.h: Rename include guard.
14383 * common/btrace-common.h: Rename include guard.
14384 * common/break-common.h: Rename include guard.
14385 * cli/cli-utils.h: Rename include guard.
14386 * cli/cli-style.h: Rename include guard.
14387 * cli/cli-setshow.h: Rename include guard.
14388 * cli/cli-script.h: Rename include guard.
14389 * cli/cli-interp.h: Rename include guard.
14390 * cli/cli-decode.h: Rename include guard.
14391 * cli/cli-cmds.h: Rename include guard.
14392 * charset-list.h: Add include guard.
14393 * buildsym-legacy.h: Rename include guard.
14394 * bfin-tdep.h: Add include guard.
14395 * ax.h: Rename include guard.
14396 * arm-linux-tdep.h: Add include guard.
14397 * arm-fbsd-tdep.h: Add include guard.
14398 * arch/xtensa.h: Rename include guard.
14399 * arch/tic6x.h: Add include guard.
14400 * arch/i386.h: Add include guard.
14401 * arch/arm.h: Rename include guard.
14402 * arch/arm-linux.h: Rename include guard.
14403 * arch/arm-get-next-pcs.h: Rename include guard.
14404 * arch/amd64.h: Add include guard.
14405 * arch/aarch64-insn.h: Rename include guard.
14406 * arch-utils.h: Rename include guard.
14407 * annotate.h: Add include guard.
14408 * amd64-darwin-tdep.h: Rename include guard.
14409 * aarch64-linux-tdep.h: Add include guard.
14410 * aarch64-fbsd-tdep.h: Add include guard.
14411 * aarch32-linux-nat.h: Add include guard.
14412
ab9268d2
PW
144132019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14414
14415 * macrotab.c (macro_define_internal): New function that
14416 factorizes macro_define_object_internal and macro_define_function
14417 code.
14418 (macro_define_object_internal): Use macro_define_internal.
14419 (macro_define_function): Likewise.
14420
bb0da2b4
PW
144212019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14422
14423 * macrocmd.c (extract_identifier): Return
14424 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14425 callers.
14426
424eb552
JB
144272019-02-06 John Baldwin <jhb@FreeBSD.org>
14428
14429 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14430
1688cb29
TT
144312019-02-05 Tom Tromey <tom@tromey.com>
14432
14433 * target.c (target_stack::unpush): Move assertion earlier.
14434
b5eba2d8
TT
144352019-01-30 Tom Tromey <tom@tromey.com>
14436
14437 PR python/23615:
14438 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14439 (gdbpy_parse_and_eval): Likewise.
14440 * python/python-internal.h (gdbpy_allow_threads): New class.
14441
7054e2ff
JB
144422019-01-28 John Baldwin <jhb@FreeBSD.org>
14443
14444 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14445 (aarch64_fbsd_fpregmap): Move earlier.
14446 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14447 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14448 instead of individual calls to trad_frame_set_reg_addr.
14449 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14450 earlier.
14451 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14452 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14453 instead of individual calls to trad_frame_set_reg_addr.
14454
36c25ffa
AH
144552019-01-28 Alan Hayward <alan.hayward@arm.com>
14456
14457 * CONTRIBUTE: Replace contribution list with wiki link.
14458
a0707f3c
TT
144592019-01-25 Tom Tromey <tom@tromey.com>
14460
14461 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14462
0747795c
TT
144632019-01-25 Tom Tromey <tom@tromey.com>
14464
14465 * xtensa-linux-nat.c: Fix common/ includes.
14466 * xml-support.h: Fix common/ includes.
14467 * xml-support.c: Fix common/ includes.
14468 * x86-linux-nat.c: Fix common/ includes.
14469 * windows-nat.c: Fix common/ includes.
14470 * varobj.h: Fix common/ includes.
14471 * varobj.c: Fix common/ includes.
14472 * value.c: Fix common/ includes.
14473 * valops.c: Fix common/ includes.
14474 * utils.c: Fix common/ includes.
14475 * unittests/xml-utils-selftests.c: Fix common/ includes.
14476 * unittests/utils-selftests.c: Fix common/ includes.
14477 * unittests/unpack-selftests.c: Fix common/ includes.
14478 * unittests/tracepoint-selftests.c: Fix common/ includes.
14479 * unittests/style-selftests.c: Fix common/ includes.
14480 * unittests/string_view-selftests.c: Fix common/ includes.
14481 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14482 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14483 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14484 * unittests/rsp-low-selftests.c: Fix common/ includes.
14485 * unittests/parse-connection-spec-selftests.c: Fix common/
14486 includes.
14487 * unittests/optional-selftests.c: Fix common/ includes.
14488 * unittests/offset-type-selftests.c: Fix common/ includes.
14489 * unittests/observable-selftests.c: Fix common/ includes.
14490 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14491 * unittests/memrange-selftests.c: Fix common/ includes.
14492 * unittests/memory-map-selftests.c: Fix common/ includes.
14493 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14494 * unittests/function-view-selftests.c: Fix common/ includes.
14495 * unittests/environ-selftests.c: Fix common/ includes.
14496 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14497 * unittests/common-utils-selftests.c: Fix common/ includes.
14498 * unittests/cli-utils-selftests.c: Fix common/ includes.
14499 * unittests/array-view-selftests.c: Fix common/ includes.
14500 * ui-file.c: Fix common/ includes.
14501 * tui/tui-io.c: Fix common/ includes.
14502 * tracepoint.h: Fix common/ includes.
14503 * tracepoint.c: Fix common/ includes.
14504 * tracefile-tfile.c: Fix common/ includes.
14505 * top.h: Fix common/ includes.
14506 * top.c: Fix common/ includes.
14507 * thread.c: Fix common/ includes.
14508 * target/waitstatus.h: Fix common/ includes.
14509 * target/waitstatus.c: Fix common/ includes.
14510 * target.h: Fix common/ includes.
14511 * target.c: Fix common/ includes.
14512 * target-memory.c: Fix common/ includes.
14513 * target-descriptions.c: Fix common/ includes.
14514 * symtab.h: Fix common/ includes.
14515 * symfile.c: Fix common/ includes.
14516 * stap-probe.c: Fix common/ includes.
14517 * spu-linux-nat.c: Fix common/ includes.
14518 * sparc-nat.c: Fix common/ includes.
14519 * source.c: Fix common/ includes.
14520 * solib.c: Fix common/ includes.
14521 * solib-target.c: Fix common/ includes.
14522 * ser-unix.c: Fix common/ includes.
14523 * ser-tcp.c: Fix common/ includes.
14524 * ser-pipe.c: Fix common/ includes.
14525 * ser-base.c: Fix common/ includes.
14526 * selftest-arch.c: Fix common/ includes.
14527 * s12z-tdep.c: Fix common/ includes.
14528 * rust-exp.y: Fix common/ includes.
14529 * rs6000-aix-tdep.c: Fix common/ includes.
14530 * riscv-tdep.c: Fix common/ includes.
14531 * remote.c: Fix common/ includes.
14532 * remote-notif.h: Fix common/ includes.
14533 * remote-fileio.h: Fix common/ includes.
14534 * remote-fileio.c: Fix common/ includes.
14535 * regcache.h: Fix common/ includes.
14536 * regcache.c: Fix common/ includes.
14537 * record-btrace.c: Fix common/ includes.
14538 * python/python.c: Fix common/ includes.
14539 * python/py-type.c: Fix common/ includes.
14540 * python/py-inferior.c: Fix common/ includes.
14541 * progspace.h: Fix common/ includes.
14542 * producer.c: Fix common/ includes.
14543 * procfs.c: Fix common/ includes.
14544 * proc-api.c: Fix common/ includes.
14545 * printcmd.c: Fix common/ includes.
14546 * ppc-linux-nat.c: Fix common/ includes.
14547 * parser-defs.h: Fix common/ includes.
14548 * osdata.c: Fix common/ includes.
14549 * obsd-nat.c: Fix common/ includes.
14550 * nat/x86-linux.c: Fix common/ includes.
14551 * nat/x86-linux-dregs.c: Fix common/ includes.
14552 * nat/x86-dregs.h: Fix common/ includes.
14553 * nat/x86-dregs.c: Fix common/ includes.
14554 * nat/ppc-linux.c: Fix common/ includes.
14555 * nat/mips-linux-watch.h: Fix common/ includes.
14556 * nat/mips-linux-watch.c: Fix common/ includes.
14557 * nat/linux-waitpid.c: Fix common/ includes.
14558 * nat/linux-ptrace.h: Fix common/ includes.
14559 * nat/linux-ptrace.c: Fix common/ includes.
14560 * nat/linux-procfs.c: Fix common/ includes.
14561 * nat/linux-personality.c: Fix common/ includes.
14562 * nat/linux-osdata.c: Fix common/ includes.
14563 * nat/linux-namespaces.c: Fix common/ includes.
14564 * nat/linux-btrace.h: Fix common/ includes.
14565 * nat/linux-btrace.c: Fix common/ includes.
14566 * nat/fork-inferior.c: Fix common/ includes.
14567 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14568 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14569 * nat/aarch64-linux.c: Fix common/ includes.
14570 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14571 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14572 * namespace.h: Fix common/ includes.
14573 * mips-linux-tdep.c: Fix common/ includes.
14574 * minsyms.c: Fix common/ includes.
14575 * mi/mi-parse.h: Fix common/ includes.
14576 * mi/mi-main.c: Fix common/ includes.
14577 * mi/mi-cmd-env.c: Fix common/ includes.
14578 * memrange.h: Fix common/ includes.
14579 * memattr.c: Fix common/ includes.
14580 * maint.h: Fix common/ includes.
14581 * maint.c: Fix common/ includes.
14582 * main.c: Fix common/ includes.
14583 * machoread.c: Fix common/ includes.
14584 * location.c: Fix common/ includes.
14585 * linux-thread-db.c: Fix common/ includes.
14586 * linux-nat.c: Fix common/ includes.
14587 * linux-fork.c: Fix common/ includes.
14588 * inline-frame.c: Fix common/ includes.
14589 * infrun.c: Fix common/ includes.
14590 * inflow.c: Fix common/ includes.
14591 * inferior.h: Fix common/ includes.
14592 * inferior.c: Fix common/ includes.
14593 * infcmd.c: Fix common/ includes.
14594 * inf-ptrace.c: Fix common/ includes.
14595 * inf-child.c: Fix common/ includes.
14596 * ia64-linux-nat.c: Fix common/ includes.
14597 * i387-tdep.c: Fix common/ includes.
14598 * i386-tdep.c: Fix common/ includes.
14599 * i386-linux-tdep.c: Fix common/ includes.
14600 * i386-linux-nat.c: Fix common/ includes.
14601 * i386-go32-tdep.c: Fix common/ includes.
14602 * i386-fbsd-tdep.c: Fix common/ includes.
14603 * i386-fbsd-nat.c: Fix common/ includes.
14604 * guile/scm-type.c: Fix common/ includes.
14605 * guile/guile.c: Fix common/ includes.
14606 * go32-nat.c: Fix common/ includes.
14607 * gnu-nat.c: Fix common/ includes.
14608 * gdbthread.h: Fix common/ includes.
14609 * gdbarch-selftests.c: Fix common/ includes.
14610 * gdb_usleep.c: Fix common/ includes.
14611 * gdb_select.h: Fix common/ includes.
14612 * gdb_bfd.c: Fix common/ includes.
14613 * gcore.c: Fix common/ includes.
14614 * fork-child.c: Fix common/ includes.
14615 * findvar.c: Fix common/ includes.
14616 * fbsd-nat.c: Fix common/ includes.
14617 * event-top.c: Fix common/ includes.
14618 * event-loop.c: Fix common/ includes.
14619 * dwarf2read.c: Fix common/ includes.
14620 * dwarf2loc.c: Fix common/ includes.
14621 * dwarf2-frame.c: Fix common/ includes.
14622 * dwarf-index-cache.c: Fix common/ includes.
14623 * dtrace-probe.c: Fix common/ includes.
14624 * disasm-selftests.c: Fix common/ includes.
14625 * defs.h: Fix common/ includes.
14626 * csky-tdep.c: Fix common/ includes.
14627 * cp-valprint.c: Fix common/ includes.
14628 * cp-support.h: Fix common/ includes.
14629 * cp-support.c: Fix common/ includes.
14630 * corelow.c: Fix common/ includes.
14631 * completer.h: Fix common/ includes.
14632 * completer.c: Fix common/ includes.
14633 * compile/compile.c: Fix common/ includes.
14634 * compile/compile-loc2c.c: Fix common/ includes.
14635 * compile/compile-cplus-types.c: Fix common/ includes.
14636 * compile/compile-cplus-symbols.c: Fix common/ includes.
14637 * command.h: Fix common/ includes.
14638 * cli/cli-dump.c: Fix common/ includes.
14639 * cli/cli-cmds.c: Fix common/ includes.
14640 * charset.c: Fix common/ includes.
14641 * build-id.c: Fix common/ includes.
14642 * btrace.h: Fix common/ includes.
14643 * btrace.c: Fix common/ includes.
14644 * breakpoint.h: Fix common/ includes.
14645 * breakpoint.c: Fix common/ includes.
14646 * ax.h:
14647 (enum agent_op): Fix common/ includes.
14648 * ax-general.c (struct aop_map): Fix common/ includes.
14649 * ax-gdb.c: Fix common/ includes.
14650 * auxv.c: Fix common/ includes.
14651 * auto-load.c: Fix common/ includes.
14652 * arm-tdep.c: Fix common/ includes.
14653 * arch/riscv.c: Fix common/ includes.
14654 * arch/ppc-linux-common.c: Fix common/ includes.
14655 * arch/i386.c: Fix common/ includes.
14656 * arch/arm.c: Fix common/ includes.
14657 * arch/arm-linux.c: Fix common/ includes.
14658 * arch/arm-get-next-pcs.c: Fix common/ includes.
14659 * arch/amd64.c: Fix common/ includes.
14660 * arch/aarch64.c: Fix common/ includes.
14661 * arch/aarch64-insn.c: Fix common/ includes.
14662 * arch-utils.c: Fix common/ includes.
14663 * amd64-windows-tdep.c: Fix common/ includes.
14664 * amd64-tdep.c: Fix common/ includes.
14665 * amd64-sol2-tdep.c: Fix common/ includes.
14666 * amd64-obsd-tdep.c: Fix common/ includes.
14667 * amd64-nbsd-tdep.c: Fix common/ includes.
14668 * amd64-linux-tdep.c: Fix common/ includes.
14669 * amd64-linux-nat.c: Fix common/ includes.
14670 * amd64-fbsd-tdep.c: Fix common/ includes.
14671 * amd64-fbsd-nat.c: Fix common/ includes.
14672 * amd64-dicos-tdep.c: Fix common/ includes.
14673 * amd64-darwin-tdep.c: Fix common/ includes.
14674 * agent.c: Fix common/ includes.
14675 * ada-lang.h: Fix common/ includes.
14676 * ada-lang.c: Fix common/ includes.
14677 * aarch64-tdep.c: Fix common/ includes.
14678
2f5c153e
TT
146792019-01-25 Tom Tromey <tom@tromey.com>
14680
14681 * common/create-version.sh: Use common/version.h.
14682
adc6a863
PA
146832019-01-24 Pedro Alves <palves@redhat.com>
14684
14685 * infrun.c (signal_stop, signal_print, signal_program)
14686 (signal_catch, signal_pass): Now arrays instead of pointers.
14687 (update_signals_program_target, do_target_resume)
14688 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14689 * linux-nat.c (linux_nat_target::pass_signals)
14690 (linux_nat_target::create_inferior, linux_nat_target::attach):
14691 Adjust.
14692 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14693 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14694 * procfs.c (procfs_target::pass_signals): Adjust.
14695 * record-full.c (record_full_target::resume): Adjust.
14696 * remote.c (remote_target::pass_signals)
14697 (remote_target::program_signals): Adjust.
14698 * target-debug.h (target_debug_print_signals): Now takes a
14699 gdb::array_view as parameter. Adjust.
14700 * target.h (target_ops) <pass_signals, program_signals>: Replace
14701 pointer and length parameters with gdb::array_view.
14702 (target_pass_signals, target_program_signals): Likewise.
14703 * target-delegates.c: Regenerate.
14704
3046d67a
PA
147052019-01-24 Pedro Alves <palves@redhat.com>
14706
14707 * common/forward-scope-exit.h
14708 (forward_scope_exit::forward_scope_exit): Pass arguments to
14709 m_bind_function directly, instead of creating a std::bind and
14710 copying that.
14711
353229bf
AH
147122019-01-24 Alan Hayward <alan.hayward@arm.com>
14713
14714 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14715 for static members.
14716 (pass_in_v_vfp_candidate): Likewise.
14717
311dc83a
TT
147182019-01-23 Tom Tromey <tom@tromey.com>
14719 Pedro Alves <palves@redhat.com>
14720
14721 * regcache.c (class regcache_invalidator): Remove.
14722 (regcache::raw_write): Use make_scope_exit.
14723
296bd123
TT
147242019-01-23 Tom Tromey <tom@tromey.com>
14725
14726 * ui-out.h (class ui_out_emit_type): Update comment.
14727
979a0d13
TT
147282019-01-23 Tom Tromey <tom@tromey.com>
14729
14730 * infrun.c (fetch_inferior_event): Update comment.
14731
d238133d
TT
147322019-01-23 Tom Tromey <tom@tromey.com>
14733 Pedro Alves <palves@redhat.com>
14734
14735 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14736 parameter.
14737 (fetch_inferior_event): Use SCOPE_EXIT.
14738
14739
9885e6bb
TT
147402019-01-23 Tom Tromey <tom@tromey.com>
14741 Pedro Alves <palves@redhat.com>
14742
14743 * infrun.c (disable_thread_events): Delete.
14744 (stop_all_threads): Use SCOPE_EXIT.
14745
286526c1
TT
147462019-01-23 Tom Tromey <tom@tromey.com>
14747 Pedro Alves <palves@redhat.com>
14748
14749 * symfile.c: Include forward-scope-exit.h.
14750 (clear_symtab_users_cleanup): Replace forward declaration with
14751 a FORWARD_SCOPE_EXIT.
14752 (syms_from_objfile_1): Use the forward_scope_exit and
14753 gdb::optional instead of cleanup_function.
14754 (reread_symbols): Use the forward_scope_exit instead of
14755 cleanup_function.
14756 (clear_symtab_users_cleanup): Remove function.
14757
1db93f14
TT
147582019-01-23 Tom Tromey <tom@tromey.com>
14759 Pedro Alves <palves@redhat.com>
14760
14761 * linux-nat.c: Include scope-exit.h.
14762 (cleanup_target_stop): Remove.
14763 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14764 SCOPE_EXIT.
14765
2cc83d1e
TT
147662019-01-23 Tom Tromey <tom@tromey.com>
14767 Pedro Alves <palves@redhat.com>
14768
14769 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14770 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14771
694c6bf5
TT
147722019-01-23 Tom Tromey <tom@tromey.com>
14773 Andrew Burgess <andrew.burgess@embecosm.com>
14774 Pedro Alves <palves@redhat.com>
14775
14776 * infrun.c (fetch_inferior_event): Use scope_exit.
14777 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14778 * top.c (execute_command): Use scope_exit.
14779 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14780 * utils.c (do_bpstat_clear_actions_cleanup)
14781 (make_bpstat_clear_actions_cleanup): Remove.
14782
4c41382a
TT
147832019-01-23 Tom Tromey <tom@tromey.com>
14784 Pedro Alves <palves@redhat.com>
14785
14786 * infrun.c: Include "common/scope-exit.h"
14787 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14788 (wait_for_inferior): Use SCOPE_EXIT.
14789 (fetch_inferior_event): Use scope_exit.
14790
89f8fb50
TT
147912019-01-23 Tom Tromey <tom@tromey.com>
14792 Pedro Alves <palves@redhat.com>
14793
14794 * breakpoint.c (create_breakpoint): Remove cleanup.
14795
5419bdae
TT
147962019-01-23 Tom Tromey <tom@tromey.com>
14797 Andrew Burgess <andrew.burgess@embecosm.com>
14798 Pedro Alves <palves@redhat.com>
14799
e587ef42
PA
148002019-01-23 Pedro Alves <palves@redhat.com>
14801
14802 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14803
77f0e74c
PA
148042019-01-23 Pedro Alves <palves@redhat.com>
14805 Andrew Burgess <andrew.burgess@embecosm.com>
14806
14807 * gdbthread.h: Include "common/forward-scope-exit.h".
14808 (scoped_finish_thread_state): Redefine custom class in terms of
14809 forward_scope_exit.
14810
5b9b3e53
PA
148112019-01-23 Pedro Alves <palves@redhat.com>
14812 Andrew Burgess <andrew.burgess@embecosm.com>
14813
14814 * common/forward-scope-exit.h: New file.
14815
54b65c9b
PA
148162019-01-23 Pedro Alves <palves@redhat.com>
14817 Andrew Burgess <andrew.burgess@embecosm.com>
14818 Tom Tromey <tom@tromey.com>
14819
14820 * common/scope-exit.h: New file.
14821
cf08fb29
PA
148222019-01-23 Pedro Alves <palves@redhat.com>
14823
14824 * common/preprocessor.h (ESC): Rename to ...
14825 (ESC_PARENS): ... this.
14826 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14827 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14828
ae73e2e2
TT
148292019-01-23 Tom Tromey <tom@tromey.com>
14830
14831 * language.h (class scoped_switch_to_sym_language_if_auto):
14832 Initialize m_lang in both cases.
14833
6594e122
AH
148342019-01-23 Alan Hayward <alan.hayward@arm.com>
14835
14836 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14837 with XCNEW.
14838
a7c9855d
TT
148392019-01-22 Tom Tromey <tom@tromey.com>
14840
14841 * corelow.c: Do not include sys/file.h.
14842
93cc1d53
TT
148432019-01-22 Tom Tromey <tom@tromey.com>
14844
14845 * tui/tui-wingeneral.h: Include gdb_curses.h.
14846
38561778
TT
148472019-01-22 Tom Tromey <tom@tromey.com>
14848
14849 * source-cache.h (class source_cache) <get_source_lines,
14850 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14851
37b3ab5b
TT
148522019-01-22 Tom Tromey <tom@tromey.com>
14853
14854 * remote-fileio.h (struct remote_target): Declare.
14855
3fabc016
TT
148562019-01-22 Tom Tromey <tom@tromey.com>
14857
14858 * python/py-arch.c: Do not include py-ref.h.
14859 * python/py-bpevent.c: Do not include py-ref.h.
14860 * python/py-cmd.c: Do not include py-ref.h.
14861 * python/py-continueevent.c: Do not include py-ref.h.
14862 * python/py-event.h: Do not include py-ref.h.
14863 * python/py-evtregistry.c: Do not include py-ref.h.
14864 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14865 * python/py-frame.c: Do not include py-ref.h.
14866 * python/py-framefilter.c: Do not include py-ref.h.
14867 * python/py-function.c: Do not include py-ref.h.
14868 * python/py-infevents.c: Do not include py-ref.h.
14869 * python/py-linetable.c: Do not include py-ref.h.
14870 * python/py-objfile.c: Do not include py-ref.h.
14871 * python/py-param.c: Do not include py-ref.h.
14872 * python/py-prettyprint.c: Do not include py-ref.h.
14873 * python/py-progspace.c: Do not include py-ref.h.
14874 * python/py-symbol.c: Do not include py-ref.h.
14875 * python/py-symtab.c: Do not include py-ref.h.
14876 * python/py-type.c: Do not include py-ref.h.
14877 * python/py-unwind.c: Do not include py-ref.h.
14878 * python/py-utils.c: Do not include py-ref.h.
14879 * python/py-value.c: Do not include py-ref.h.
14880 * python/py-varobj.c: Do not include py-ref.h.
14881 * python/py-xmethods.c: Do not include py-ref.h.
14882 * python/python.c: Do not include py-ref.h.
14883 * varobj.c: Do not include py-ref.h.
14884
6b4d7774
TT
148852019-01-22 Tom Tromey <tom@tromey.com>
14886
14887 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14888 keyword for bcache.
14889
7af7e9b5
TT
148902019-01-22 Tom Tromey <tom@tromey.com>
14891
14892 * compile/compile-cplus-types.c: Remove a comment by #include.
14893
951d1049
TT
148942019-01-22 Tom Tromey <tom@tromey.com>
14895
14896 * compile/gcc-c-plugin.h: Include compile-internal.h.
14897
d65d5705
TT
148982019-01-22 Tom Tromey <tom@tromey.com>
14899
14900 * stabsread.c (EXTERN): Do not define.
14901 (symnum, next_symbol_text_func, processing_gcc_compilation)
14902 (within_function, global_sym_chain, global_stabs)
14903 (previous_stab_code, this_object_header_files)
14904 (n_this_object_header_files)
14905 (n_allocated_this_object_header_files): Define.
14906 * stabsread.h (EXTERN): Never define. Use "extern".
14907
b6fb1ee5
PW
149082019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14909
14910 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14911 history_value.
14912
be6d4f74
TT
149132019-01-21 Tom Tromey <tom@tromey.com>
14914
14915 * ui-out.c: Fix includes.
14916 * tui/tui-source.c: Fix includes.
14917 * target.c: Fix includes.
14918 * remote.c: Fix includes.
14919 * regcache.c: Fix includes.
14920 * python/py-block.c: Fix includes.
14921 * printcmd.c: Fix includes.
14922 * or1k-tdep.c: Fix includes.
14923 * mi/mi-main.c: Fix includes.
14924 * m32r-tdep.c: Fix includes.
14925 * csky-tdep.c: Fix includes.
14926 * compile/compile-cplus-types.c: Fix includes.
14927 * cli/cli-interp.c: Fix includes.
14928
73021deb
AH
149292019-01-21 Alan Hayward <alan.hayward@arm.com>
14930
14931 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14932 for padding.
14933
7932255d
TT
149342019-01-16 Tom Tromey <tom@tromey.com>
14935
14936 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14937 earlier.
14938 (struct objfile) <msymbols_range>: Move from top level.
14939 <msymbols>: New method.
14940 (class objfile_msymbols): Remove.
14941 * symtab.c (default_collect_symbol_completion_matches_break_on):
14942 Update.
14943 * symmisc.c (dump_msymbols): Update.
14944 * stabsread.c (scan_file_globals): Update.
14945 * objc-lang.c (info_selectors_command, info_classes_command)
14946 (find_methods): Update.
14947 * minsyms.c (find_solib_trampoline_target): Update.
14948 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14949 * coffread.c (coff_symfile_read): Update.
14950 * ada-lang.c (ada_lookup_simple_minsym)
14951 (ada_collect_symbol_completion_matches): Update.
14952
604b1bfb
TT
149532019-01-16 Tom Tromey <tom@tromey.com>
14954
14955 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14956 type. Remove no-argument constructor.
14957 <iterator::operator++>: Simplify.
14958 <begin>: Update.
14959 <end>: Use minimal_symbol_count.
14960
f252c6d5
TT
149612019-01-16 Tom Tromey <tom@tromey.com>
14962
14963 * objfiles.h (struct objfile) <psymtabs>: New method.
14964 (class objfile_psymtabs): Remove.
14965 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14966 typedef.
14967 <range>: New method.
14968 (require_partial_symbols): Change return type.
14969 * psymtab.c (require_partial_symbols)
14970 (psym_expand_symtabs_matching): Update.
14971 * mdebugread.c (parse_partial_symbols): Update.
14972 * dbxread.c (dbx_end_psymtab): Update.
14973
b669c953
TT
149742019-01-15 Tom Tromey <tom@tromey.com>
14975
14976 * symtab.c (lookup_objfile_from_block)
14977 (lookup_symbol_in_objfile_symtabs)
14978 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14979 (find_line_symtab, info_sources_command)
14980 (default_collect_symbol_completion_matches_break_on)
14981 (make_source_files_completion_list): Update.
14982 * symmisc.c (print_objfile_statistics, dump_objfile)
14983 (maintenance_print_symbols, maintenance_info_symtabs)
14984 (maintenance_check_symtabs, maintenance_info_line_tables):
14985 Update.
14986 * source.c (select_source_symtab)
14987 (forget_cached_source_info_for_objfile): Update.
14988 * objfiles.h (class objfile_compunits): Remove.
14989 (struct objfile) <compunits_range>: New typedef.
14990 (compunits): New method.
14991 * objfiles.c (objfile_relocate1): Update.
14992 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14993 * maint.c (count_symtabs_and_blocks): Update.
14994 * linespec.c (iterate_over_all_matching_symtabs): Update.
14995 * cp-support.c (add_symbol_overload_list_qualified): Update.
14996 * coffread.c (coff_symtab_read): Update.
14997 * ada-lang.c (add_nonlocal_symbols)
14998 (ada_collect_symbol_completion_matches)
14999 (ada_add_global_exceptions): Update.
15000
7e955d83
TT
150012019-01-15 Tom Tromey <tom@tromey.com>
15002
15003 * progspace.h (program_space) <objfiles_safe_range>: New
15004 typedef.
15005 <objfiles_safe>: New method.
15006 * objfiles.h (class all_objfiles_safe): Remove.
15007 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15008 * jit.c (jit_inferior_exit_hook): Update.
15009
2030c079
TT
150102019-01-17 Tom Tromey <tom@tromey.com>
15011
15012 * progspace.h (program_space) <objfiles_range>: New typedef.
15013 <objfiles>: New method.
15014 <objfiles_head>: Rename from objfiles.
15015 (object_files): Update.
15016 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15017 * guile/scm-pretty-print.c
15018 (ppscm_find_pretty_printer_from_objfiles): Update.
15019 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15020 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15021 Update.
15022 * python/py-progspace.c (pspy_get_objfiles): Update.
15023 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15024 Update.
15025 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15026 (objfpy_lookup_objfile_by_build_id): Update.
15027 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15028 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15029 Update.
15030 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15031 (expand_symtab_containing_pc, lookup_objfile_from_block)
15032 (lookup_static_symbol, basic_lookup_transparent_type)
15033 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15034 (find_line_symtab, info_sources_command)
15035 (default_collect_symbol_completion_matches_break_on)
15036 (make_source_files_completion_list, find_main_name): Update.
15037 * symmisc.c (print_symbol_bcache_statistics)
15038 (print_objfile_statistics, maintenance_print_symbols)
15039 (maintenance_print_msymbols, maintenance_print_objfiles)
15040 (maintenance_info_symtabs, maintenance_check_symtabs)
15041 (maintenance_expand_symtabs, maintenance_info_line_tables):
15042 Update.
15043 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15044 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15045 (map_overlay_command, unmap_overlay_command)
15046 (simple_overlay_update, expand_symtabs_matching)
15047 (map_symbol_filenames): Update.
15048 * symfile-debug.c (set_debug_symfile): Update.
15049 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15050 Update.
15051 * source.c (select_source_symtab, forget_cached_source_info):
15052 Update.
15053 * solib.c (solib_read_symbols): Update.
15054 * solib-spu.c (append_ocl_sos): Update.
15055 * psymtab.c (maintenance_print_psymbols)
15056 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15057 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15058 * printcmd.c (info_symbol_command): Update.
15059 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15060 Update.
15061 * objfiles.h (class all_objfiles): Remove.
15062 * objfiles.c (have_partial_symbols, have_full_symbols)
15063 (have_minimal_symbols, qsort_cmp, update_section_map)
15064 (shared_objfile_contains_address_p)
15065 (default_iterate_over_objfiles_in_search_order): Update.
15066 * objc-lang.c (info_selectors_command, info_classes_command)
15067 (find_methods): Update.
15068 * minsyms.c (find_solib_trampoline_target): Update.
15069 * maint.c (maintenance_info_sections)
15070 (maintenance_translate_address, count_symtabs_and_blocks):
15071 Update.
15072 * main.c (captured_main_1): Update.
15073 * linux-thread-db.c (try_thread_db_load_from_pdir)
15074 (has_libpthread): Update.
15075 * linespec.c (iterate_over_all_matching_symtabs)
15076 (search_minsyms_for_name): Update.
15077 * jit.c (jit_find_objf_with_entry_addr): Update.
15078 * hppa-tdep.c (find_unwind_entry)
15079 (hppa_lookup_stub_minimal_symbol): Update.
15080 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15081 Update.
15082 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15083 (elf_gnu_ifunc_resolve_by_got): Update.
15084 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15085 * dwarf-index-write.c (save_gdb_index_command): Update.
15086 * cp-support.c (add_symbol_overload_list_qualified): Update.
15087 * breakpoint.c (create_overlay_event_breakpoint)
15088 (create_longjmp_master_breakpoint)
15089 (create_std_terminate_master_breakpoint)
15090 (create_exception_master_breakpoint): Update.
15091 * blockframe.c (find_pc_partial_function): Update.
15092 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15093 (ada_collect_symbol_completion_matches)
15094 (ada_add_global_exceptions): Update.
15095
776489e0
TT
150962019-01-17 Tom Tromey <tom@tromey.com>
15097
15098 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15099 declare VEC.
15100 (solib_target_parse_libraries): Change return type.
15101 (library_list_start_segment, library_list_start_section)
15102 (library_list_end_library, library_list_start_library); Update.
15103 (solib_target_free_library_list): Remove.
15104 (solib_target_parse_libraries): Remove cleanup. Change return
15105 type.
15106 (solib_target_current_sos): Update.
15107
6471e7d2
TT
151082019-01-17 Tom Tromey <tromey@bapiya>
15109
15110 * valprint.c: Replace "the the" with "the".
15111 * symtab.c: Replace "the the" with "the".
15112 * solib.c: Replace "the the" with "the".
15113 * solib-dsbt.c: Replace "the the" with "the".
15114 * linespec.c: Replace "the the" with "the".
15115 * dwarf2loc.h: Replace "the the" with "the".
15116 * amd64-windows-tdep.c: Replace "the the" with "the".
15117 * aarch64-tdep.c: Replace "the the" with "the".
15118
c24bdb02
KS
151192019-01-16 Keith Seitz <keiths@redhat.com>
15120
15121 PR gdb/23773
15122 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15123 <builder>: Rename to ..
15124 <m_builder>: ... this and make private.
15125 (dwarf2_cu::get_builder): New method. Change all users of
15126 `builder' to use this method.
15127 (dwarf2_start_symtab): Move to ...
15128 (dwarf2_cu::start_symtab): ... here. Update all callers
15129 (setup_type_unit_groups): Move to ...
15130 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15131 callers.
15132 (dwarf2_cu::reset_builder): New method.
15133 (process_full_compunit, process_full_type_unit): Use
15134 dwarf2_cu::reset_builder.
15135 (follow_die_offset): Record the ancestor CU if it is different
15136 from the followed DIE's CU.
15137 (follow_die_sig_1): Likewise.
15138
8d64371b
TT
151392019-01-15 Tom Tromey <tom@tromey.com>
15140
15141 * remote.c (class remote_state) <buf>: Now a char_vector.
15142 <buf_size>: Remove.
15143 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15144 parameter.
15145 (remote_target::getpkt_or_notif_sane_1)
15146 (remote_target::getpkt_sane)
15147 (remote_target::getpkt_or_notif_sane): Likewise.
15148 (class remote_target) <putpkt>: New overload.
15149 (remote_target::read_frame): Change type of "buf_p". Remove
15150 sizeof_p parameter.
15151 (packet_ok): New overload.
15152 (packet_check_result): New overload.
15153 Update all uses.
15154
bb277751
TT
151552019-01-14 Tom Tromey <tom@tromey.com>
15156
15157 * remote-notif.c (handle_notification, remote_notif_ack)
15158 (remote_notif_parse): Make "buf" const.
15159 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15160 const.
15161 (remote_notif_parse, remote_notif_ack, handle_notification):
15162 Likewise.
15163 * remote.c (remote_notif_stop_parse): Make "buf" const.
15164 (remote_target::remote_parse_stop_reply): Make "buf" const.
15165 (remote_notif_stop_ack): Make "buf" const.
15166
05be00a8
TT
151672019-01-14 Tom Tromey <tom@tromey.com>
15168
15169 * remote.c (remote_console_output): Make parameter const.
15170
491adeca
TT
151712019-01-14 Tom Tromey <tom@tromey.com>
15172
15173 * target-debug.h (target_debug_print_signals): Constify.
15174 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15175 * procfs.c (procfs_target::pass_signals): Update.
15176 * linux-nat.c (linux_nat_target::pass_signals): Update.
15177 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15178 * target-delegates.c: Rebuild.
15179 * remote.c (remote_target::program_signals): Update.
15180 (remote_target::pass_signals): Update.
15181 * target.c (target_pass_signals): Constify argument.
15182 (target_program_signals): Likewise.
15183 * target.h (struct target_ops) <pass_signals, program_signals>:
15184 Constify argument.
15185 (target_pass_signals, target_program_signals): Constify argument.
15186
bbd94648
TT
151872019-01-14 Tom Tromey <tom@tromey.com>
15188
15189 PR tui/28819:
15190 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15191
6f072a10
PFC
151922019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15193
15194 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15195 field.
15196 * rs6000-tdep.c: Include reggroups.h.
15197 (IS_V_ALIAS_PSEUDOREG): Define.
15198 (rs6000_register_name): Return names for the "vX" aliases.
15199 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15200 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15201 aliases. Call default_register_reggroup_p for all other
15202 pseudo-registers.
15203 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15204 New functions.
15205 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15206 Handle "vX" aliases.
15207 (v_alias_pseudo_register_collect): New function.
15208 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15209 (rs6000_gdbarch_init): Initialize "vX" aliases as
15210 pseudo-registers. Restore registration of
15211 rs6000_pseudo_register_reggroup_p with
15212 set_tdesc_pseudo_register_reggroup_p.
15213
1a782351
MF
152142019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15215
15216 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15217 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15218 set_gdbarch_num_pseudo_regs.
15219
d73cff18
PW
152202019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15221
15222 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15223 Remove arg prefixname, add do_set and do_show.
15224 Add member functions set_list and show_list.
15225 * cli/cli-style.c (class cli_style_option): Update accordingly.
15226 (style_set_list): Move to file scope.
15227 (style_show_list): Likewise.
15228 (set_style): Call help_list.
15229 (show_style): Call cmd_show_list.
15230 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15231 Update to use the new macro.
15232
60a90376
JB
152332019-10-12 Joel Brobecker <brobecker@adacore.com>
15234
15235 * ada-lang.c (_initialize_ada_language): Expand the help text
15236 for the "catch exception" command.
15237
9d7c67bf
PW
152382019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15239
15240 * symtab.c (matching_obj_sections): Initialize obj,
15241 declare it closer to its usage.
15242
7cf47dc4
TT
152432019-01-10 Tom Tromey <tom@tromey.com>
15244
15245 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15246 (basic_inf_threads_range): Remove.
15247 (inf_threads_range, inf_non_exited_threads_range)
15248 (safe_inf_threads_range): Use next_adapter.
15249
d3cb6808
KS
152502019-01-10 Keith Seitz <keiths@redhat.com>
15251
15252 PR gdb/23712
15253 PR symtab/23010
15254 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15255 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15256
63a20375
KS
152572019-01-10 Keith Seitz <keiths@redhat.com>
15258
15259 PR gdb/23712
15260 PR symtab/23010
15261 * dictionary.c (pending_to_vector): Remove.
15262 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15263 Remove _1 suffix, replacing functions of the same name. Update
15264 all callers.
15265 (dict_create_hashed, dict_create_hashed_expandable)
15266 (dict_create_linear, dict_create_linear_expandable, dict_free)
15267 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15268 Make functions static.
15269
b026f593
KS
152702019-01-10 Keith Seitz <keiths@redhat.com>
15271
15272 PR gdb/23712
15273 PR symtab/23010
15274 * dictionary.h (struct dictionary): Replace declaration with
15275 multidictionary.
15276 (dict_create_hashed, dict_create_hashed_expandable)
15277 (dict_create_linear, dict_create_linear_expandable)
15278 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15279 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15280 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15281 taking multidictionary argument.
15282 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15283 * block.h (struct block) <dict>: Change to multidictionary
15284 and rename `multidict'.
15285 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15286 symmisc.c: Update all dictionary references to multidictionary.
15287
c7748ee9
KS
152882019-01-10 Keith Seitz <keiths@redhat.com>
15289
15290 PR gdb/23712
15291 PR symtab/23010
15292 * dictionary.c: Include unordered_map.
15293 (pending_to_vector): New function.
15294 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15295 Rewrite the non-"_1" functions to take vector instead
15296 of linked list.
15297 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15298 "new" _1 versions of the same name.
15299 (multidictionary): Define.
15300 (std::hash<enum language): New definition.
15301 (collate_pending_symbols_by_language, mdict_create_hashed)
15302 (mdict_create_hashed_expandable, mdict_create_linear)
15303 (mdict_create_linear_expandable, mdict_free)
15304 (find_language_dictionary, create_new_language_dictionary)
15305 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15306 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15307 (mdict_size, mdict_empty): New functions.
15308 * dictionary.h (mdict_iterator): Define.
15309
67aa1f3c
PA
153102019-01-10 Pedro Alves <palves@redhat.com>
15311
15312 * breakpoint.c (read_uploaded_action)
15313 (create_tracepoint_from_upload): Adjust to use
15314 gdb::unique_xmalloc_ptr.
15315 * ctf.c (ctf_write_uploaded_tp):
15316 (SET_ARRAY_FIELD): Use emplace_back.
15317 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15318 * tracefile-tfile.c (tfile_write_uploaded_tp):
15319 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15320 gdb::unique_xmalloc_ptr.
15321 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15322 at_string, cond_string, cmd_strings>: Replace char pointers
15323 with gdb::unique_xmalloc_ptr.
15324
2f667667
PA
153252019-01-10 Pedro Alves <palves@redhat.com>
15326
15327 * solib-target.c (library_list_start_library): Don't xstrdup name.
15328
36cb7237
PA
153292019-01-10 Pedro Alves <palves@redhat.com>
15330
15331 * mdebugread.c (parse_partial_symbols): Use
15332 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15333
da584958
AB
153342019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15335
15336 * linux-fork.c (scoped_switch_fork_info)
15337 <~scoped_switch_fork_info>: Fix incorrect variable name.
15338
1ef8573c
AB
153392019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15340
15341 * linux-fork.c (scoped_switch_fork_info)
15342 <scoped_switch_fork_info>: Make explicit.
15343 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15344
8d7bcccb
TT
153452019-01-10 Tom Tromey <tom@tromey.com>
15346
15347 * objfiles.h (objfile::reset_psymtabs): Update.
15348 * objfiles.c (objfile::objfile): Update.
15349 * psymtab.h (psymtab_storage::obstack): Update.
15350 (psymtab_storage::m_obstack): Use gdb::optional.
15351 (class psymtab_storage): Update comment. Remove objfile
15352 parameter.
15353 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15354
b596a3c7
TT
153552019-01-10 Tom Tromey <tom@tromey.com>
15356
15357 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15358 <free_psymtabs>: Now private.
15359 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15360 (allocate_psymtab): Use new method.
15361
a9342b62
TT
153622019-01-10 Tom Tromey <tom@tromey.com>
15363
15364 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15365 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15366 * mdebugread.c (parse_partial_symbols): Use
15367 allocate_dependencies.
15368 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15369 allocate_dependencies.
15370 (process_psymtab_comp_unit_reader)
15371 (build_type_psymtab_dependencies): Likewise.
15372 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15373
5af70966
TT
153742019-01-10 Tom Tromey <tom@tromey.com>
15375
15376 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15377 PSYMBOL_SET_LANGUAGE.
15378 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15379
5923a04c
TT
153802019-01-10 Tom Tromey <tom@tromey.com>
15381
15382 * psymtab.h (psymtab_storage::obstack): New method.
15383 <m_obstack>: Rename from obstack; now private.
15384 * psymtab.c (psymtab_storage): Update.
15385 * dwarf2read.c (create_addrmap_from_index)
15386 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15387 Update.
15388
6d6a12bf
TT
153892019-01-10 Tom Tromey <tom@tromey.com>
15390
15391 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15392 * objfiles.h (objfile::reset_psymtabs): New method.
15393
d320c2b5
TT
153942019-01-10 Tom Tromey <tom@tromey.com>
15395
15396 * symmisc.c (print_symbol_bcache_statistics): Update.
15397 (print_objfile_statistics): Update.
15398 * symfile.c (reread_symbols): Update.
15399 * psymtab.h (class psymtab_storage): New.
15400 * psymtab.c (psymtab_storage): New constructor.
15401 (~psymtab_storage): New destructor.
15402 (require_partial_symbols): Update.
15403 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15404 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15405 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15406 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15407 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15408 (start_psymtab_common, end_psymtab_common)
15409 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15410 (allocate_psymtab): Update.
15411 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15412 Update.
15413 (dump_psymtab_addrmap, maintenance_print_psymbols)
15414 (maintenance_check_psymtabs): Update.
15415 (class objfile_psymtabs): Move to objfiles.h.
15416 * psympriv.h (discard_psymtab): Now inline.
15417 (psymtab_discarder::psymtab_discarder): Update.
15418 (psymtab_discarder::~psymtab_discarder): Update.
15419 (ALL_OBJFILE_PSYMTABS): Rewrite.
15420 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15421 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15422 Remove fields.
15423 <partial_symtabs>: New field.
15424 (class objfile_psymtabs): Move from psymtab.h. Update.
15425 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15426 psymbol_cache.
15427 (objfile::~objfile): Don't destroy psymbol_cache.
15428 * mdebugread.c (parse_partial_symbols): Update.
15429 * dwarf2read.c (create_addrmap_from_index)
15430 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15431 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15432 (add_partial_subprogram, dwarf2_ranges_read): Update.
15433 * dwarf-index-write.c (write_address_map)
15434 (write_one_signatured_type, recursively_write_psymbols)
15435 (class debug_names, class debug_names, write_psymtabs_to_index):
15436 Update.
15437
1d94a5a3
TT
154382019-01-10 Tom Tromey <tom@tromey.com>
15439
15440 * symtab.h (SYMBOL_SET_NAMES): Update.
15441 (symbol_set_names): Update.
15442 (MSYMBOL_SET_NAMES): Update.
15443 * symtab.c (symbol_set_names): Change argument to be an
15444 objfile_per_bfd_storage.
15445 * psymtab.c (add_psymbol_to_bcache): Update.
15446 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15447
0f14768a
TT
154482019-01-10 Tom Tromey <tom@tromey.com>
15449
15450 * symtab.c (create_demangled_names_hash): Change argument to be an
15451 objfile_per_bfd_storage.
15452 (symbol_set_names): Update.
15453
6eee24ce
TT
154542019-01-10 Tom Tromey <tom@tromey.com>
15455
15456 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15457 init_psymbol_list.
15458 * psymtab.c (init_psymbol_list): Do nothing if already called.
15459 * psympriv.h (init_psymbol_list): Add comment.
15460 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15461 init_psymbol_list.
15462 * dbxread.c (dbx_symfile_read): Unconditionally call
15463 init_psymbol_list.
15464
75aedd27
TT
154652019-01-10 Tom Tromey <tom@tromey.com>
15466
15467 * xcoffread.c (scan_xcoff_symtab): Update.
15468 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15469 "where".
15470 * mdebugread.c (parse_partial_symbols)
15471 (handle_psymbol_enumerators): Update.
15472 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15473 * dbxread.c (read_dbx_symtab): Update.
15474 * psympriv.h (psymbol_placement): New enum.
15475 (add_psymbol_to_list): Update.
15476
939652a5
TT
154772019-01-10 Tom Tromey <tom@tromey.com>
15478
15479 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15480 static_psymbols parameters.
15481 (scan_xcoff_symtab): Update.
15482 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15483 static_psymbols parameters.
15484 * psympriv.h (start_psymtab_common): Update.
15485 * mdebugread.c (parse_partial_symbols): Update.
15486 * dwarf2read.c (create_partial_symtab): Update.
15487 * dbxread.c (read_dbx_symtab): Update.
15488 (start_psymtab): Remove global_psymbols and static_psymbols
15489 parameters.
15490
baa62830
TT
154912019-01-10 Tom Tromey <tom@tromey.com>
15492
15493 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15494 * psymtab.c (allocate_psymtab): Add comment.
15495 * psympriv.h (allocate_psymtab): Add comment.
15496 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15497 initializations.
15498 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15499
0e8f53ba
TT
155002019-01-10 Tom Tromey <tom@tromey.com>
15501
15502 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15503 Don't declare.
15504 * mipsread.c: Include mdebugread.h.
15505 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15506 Declare.
15507 * elfread.c: Include mdebugread.h.
15508
b22a7c6a
TT
155092019-01-09 Tom Tromey <tom@tromey.com>
15510
15511 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15512 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15513 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15514 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15515 (psym_lookup_symbol, psym_find_last_source_symtab)
15516 (psym_forget_cached_source_info, psym_print_stats)
15517 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15518 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15519 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15520 (psym_find_compunit_symtab_by_address)
15521 (maintenance_print_psymbols, maintenance_info_psymtabs)
15522 (maintenance_check_psymtabs): Use ranged for.
15523 * psymtab.h (class objfile_psymtabs): New.
15524 (require_partial_symbols): Return objfile_psymtabs.
15525 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15526
3b9d3ac2
TT
155272019-01-09 Tom Tromey <tom@tromey.com>
15528
15529 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15530 (find_pc_mapped_section, list_overlays_command)
15531 (map_overlay_command, unmap_overlay_command)
15532 (simple_overlay_update): Use all_objfiles.
15533 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15534 * printcmd.c (info_symbol_command): Use all_objfiles.
15535 * objfiles.h (ALL_OBJSECTIONS): Remove.
15536 * maint.c (maintenance_translate_address): Use all_objfiles.
15537 * gcore.c (gcore_create_callback): Use all_objfiles.
15538 (objfile_find_memory_regions): Likewise.
15539
8b31193a
TT
155402019-01-09 Tom Tromey <tom@tromey.com>
15541
15542 * symtab.c (find_line_symtab, info_sources_command)
15543 (make_source_files_completion_list): Use objfile_compunits.
15544 * source.c (select_source_symtab): Use objfile_compunits.
15545 * objfiles.h (struct objfile): Update comment.
15546 (ALL_OBJFILES): Remove.
15547 (ALL_FILETABS): Remove.
15548 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15549 objfile_compunits.
15550
d5da8b3c
TT
155512019-01-09 Tom Tromey <tom@tromey.com>
15552
15553 * symmisc.c (print_objfile_statistics, dump_objfile)
15554 (maintenance_print_symbols): Use compunit_filetabs.
15555 * source.c (forget_cached_source_info_for_objfile): Use
15556 compunit_filetabs.
15557 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15558 (ALL_FILETABS): Use compunit_filetabs.
15559 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15560 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15561
5accd1a0
TT
155622019-01-09 Tom Tromey <tom@tromey.com>
15563
15564 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15565 (compunit_filetabs): New.
15566 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15567 compunit_filetabs.
15568 (info_sources_command, make_source_files_completion_list): Remove
15569 declaration.
15570 * symmisc.c (print_objfile_statistics, dump_objfile)
15571 (maintenance_print_symbols): Remove declaration.
15572 (maintenance_info_symtabs): Use compunit_filetabs.
15573 (maintenance_info_line_tables): Likewise.
15574 * source.c (select_source_symtab): Change local variable name.
15575 (forget_cached_source_info_for_objfile): Remove declaration.
15576 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15577 * objfiles.c (objfile_relocate1): Remove declaration.
15578 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15579 declaration.
15580 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15581 * coffread.c (coff_symtab_read): Remove declaration.
15582 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15583 compunit_filetabs.
15584
d8aeb77f
TT
155852019-01-09 Tom Tromey <tom@tromey.com>
15586
15587 * symtab.c (lookup_objfile_from_block)
15588 (find_pc_sect_compunit_symtab, search_symbols)
15589 (default_collect_symbol_completion_matches_break_on): Use
15590 objfile_compunits.
15591 * objfiles.h (ALL_COMPUNITS): Remove.
15592 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15593 * cp-support.c (add_symbol_overload_list_qualified): Use
15594 objfile_compunits.
15595 * ada-lang.c (ada_collect_symbol_completion_matches)
15596 (ada_add_global_exceptions): Use objfile_compunits.
15597
592553c4
TT
155982019-01-09 Tom Tromey <tom@tromey.com>
15599
15600 * source.c (select_source_symtab)
15601 (forget_cached_source_info_for_objfile): Remove declaration.
15602 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15603 declaration.
15604 * maint.c (count_symtabs_and_blocks): Remove declaration.
15605 * cp-support.c (add_symbol_overload_list_qualified): Remove
15606 declaration.
15607 * coffread.c (coff_symtab_read): Remove declaration.
15608 * symtab.c (lookup_symbol_in_objfile_symtabs)
15609 (basic_lookup_transparent_type_1): Use objfile_compunits.
15610 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15611 (info_sources_command, search_symbols)
15612 (default_collect_symbol_completion_matches_break_on)
15613 (make_source_files_completion_list): Remove declaration.
15614 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15615 (ada_collect_symbol_completion_matches)
15616 (ada_add_global_exceptions): Remove declaration.
15617 * linespec.c (iterate_over_all_matching_symtabs): Use
15618 objfile_compunits.
15619 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15620 (class objfile_compunits): New.
15621 (ALL_COMPUNITS): Use objfile_compunits.
15622 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15623 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15624 objfile_compunits.
15625 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15626
5325b9bf
TT
156272019-01-09 Tom Tromey <tom@tromey.com>
15628
15629 * symtab.c (search_symbols)
15630 (default_collect_symbol_completion_matches_break_on): Use
15631 objfile_msymbols.
15632 * ada-lang.c (ada_lookup_simple_minsym)
15633 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15634 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15635 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15636 objfile_msymbols.
15637 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15638 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15639 * objc-lang.c (find_methods): Use objfile_msymbols.
15640 (info_selectors_command, info_classes_command): Likewise.
15641 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15642 * objfiles.h (class objfile_msymbols): New.
15643 (ALL_OBJFILE_MSYMBOLS): Remove.
15644 (ALL_MSYMBOLS): Remove.
15645
cac85af2
TT
156462019-01-09 Tom Tromey <tom@tromey.com>
15647
15648 * common/next-iterator.h (next_adapter): Add Iterator template
15649 parameter.
15650 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15651 (class all_objfiles_safe): New.
15652 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15653 * objfiles.c (put_objfile_before): Update comment.
15654 (add_separate_debug_objfile): Likewise.
15655 (free_all_objfiles): Use all_objfiles_safe.
15656 (objfile_purge_solibs): Likewise.
15657
aed57c53
TT
156582019-01-09 Tom Tromey <tom@tromey.com>
15659
15660 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15661 (expand_symtab_containing_pc, lookup_static_symbol)
15662 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15663 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15664 all_objfiles.
15665 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15666 * breakpoint.c (create_overlay_event_breakpoint)
15667 (create_longjmp_master_breakpoint)
15668 (create_std_terminate_master_breakpoint)
15669 (create_exception_master_breakpoint): Use all_objfiles.
15670 * linux-thread-db.c (try_thread_db_load_from_pdir)
15671 (has_libpthread): Use all_objfiles.
15672 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15673 * linespec.c (iterate_over_all_matching_symtabs)
15674 (search_minsyms_for_name): Use all_objfiles.
15675 * maint.c (maintenance_info_sections): Use all_objfiles.
15676 * main.c (captured_main_1): Use all_objfiles.
15677 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15678 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15679 * guile/scm-pretty-print.c
15680 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15681 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15682 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15683 (maintenance_print_msymbols): Use all_objfiles.
15684 * source.c (select_source_symtab): Use all_objfiles.
15685 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15686 * symfile.c (remove_symbol_file_command)
15687 (expand_symtabs_matching, map_symbol_filenames): Use
15688 all_objfiles.
15689 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15690 all_objfiles.
15691 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15692 * objc-lang.c (find_methods): Use all_objfiles.
15693 * objfiles.c (have_partial_symbols, have_full_symbols)
15694 (have_minimal_symbols, qsort_cmp)
15695 (default_iterate_over_objfiles_in_search_order): Use
15696 all_objfiles.
15697 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15698 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15699 (maintenance_check_psymtabs): Use all_objfiles.
15700 (ALL_PSYMTABS): Remove.
15701 * compile/compile-object-run.c (do_module_cleanup): Use
15702 all_objfiles.
15703 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15704 * cp-support.c (add_symbol_overload_list_qualified): Use
15705 all_objfiles.
15706 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15707 Use all_objfiles.
15708 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15709 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15710 all_objfiles.
15711 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15712 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15713 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15714 Uses all_objfiles.
15715 * solib.c (solib_read_symbols): Use all_objfiles
15716
99d89cde
TT
157172019-01-09 Tom Tromey <tom@tromey.com>
15718
15719 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15720 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15721 all_objfiles.
15722 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15723 * symmisc.c (print_symbol_bcache_statistics)
15724 (print_objfile_statistics, maintenance_print_objfiles)
15725 (maintenance_info_symtabs, maintenance_check_symtabs)
15726 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15727 all_objfiles.
15728 * source.c (forget_cached_source_info): Use all_objfiles.
15729 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15730 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15731 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15732 * objfiles.c (update_section_map): Use all_objfiles.
15733 (shared_objfile_contains_address_p): Likewise.
15734 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15735 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15736
21708325
TT
157372019-01-09 Tom Tromey <tom@tromey.com>
15738
15739 * common/next-iterator.h: New file.
15740 * objfiles.h (class all_objfiles): New.
15741 (struct objfile_iterator): New.
15742
669e09f6
PW
157432019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15744
15745 * NEWS: Move the description of the changed "frame", "select-frame",
15746 and "info frame" commands to the Changed commands section.
15747
041be526
SM
157482019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15749
15750 * gdbtypes.c (check_stub_method_group): Remove handling of old
15751 mangling schemes.
15752 * linespec.c (find_methods): Likewise.
15753 * stabsread.c (read_member_functions): Likewise.
15754 * valops.c (search_struct_method): Likewise.
15755 (value_struct_elt_for_reference): Likewise.
15756 * NEWS: Mention this change.
15757
0e2a2133
AB
157582019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15759
15760 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15761 print_source_lines.
15762 * source.c (print_source_lines_base): Update line number check.
15763 (print_source_lines): New function.
15764 (source_lines_range::source_lines_range): New function.
15765 * source.h (class source_lines_range): New class.
15766 (print_source_lines): New declaration.
15767
1055a3b4
PW
157682019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15769
15770 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15771
cfeadda5
TT
157722019-01-08 Tom Tromey <tom@tromey.com>
15773 Simon Marchi <simon.marchi@ericsson.com>
15774
15775 PR gdb/24060
15776 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15777 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15778 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15779 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15780 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15781 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15782
583068ca
AB
157832019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15784
15785 * source.c (select_source_symtab): Move header comment to
15786 declaration in source.h.
15787 (forget_cached_source_info_for_objfile): Likewise.
15788 (forget_cached_source_info): Likewise.
15789 (identify_source_line): Likewise.
15790 * source.h (identify_source_line): Move declaration from symtab.h
15791 and add comment from source.c
15792 (print_source_lines): Likewise.
15793 (forget_cached_source_info_for_objfile): Likewise.
15794 (forget_cached_source_info): Likewise.
15795 (select_source_symtab): Likewise.
15796 (enum print_source_lines_flag): Move definition from symtab.h.
15797 * symtab.h (identify_source_line): Move declaration to source.h.
15798 (print_source_lines): Likewise.
15799 (forget_cached_source_info_for_objfile): Likewise.
15800 (forget_cached_source_info): Likewise.
15801 (select_source_symtab): Likewise.
15802 (enum print_source_lines_flag): Move definition to source.h.
15803 * tui/tui-hooks.c: Add 'source.h' include.
15804
ec98a4ad
AB
158052019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15806
15807 * source.c (print_source_lines_base): Handle requests to print
15808 reverse line number sequences, and guard against empty lines
15809 string.
15810
62ea19c1
AB
158112019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15812
15813 * source.c (print_source_lines_base): Fix skip of '\r' if next
15814 character is '\n'.
15815
9d30e1fd
TT
158162019-01-06 Tom Tromey <tom@tromey.com>
15817
15818 * c-exp.y (struct c_parse_state) <macro_original_text,
15819 expansion_obstack>: New member.
15820 (macro_original_text, expansion_obstack): Remove globals.
15821 (scan_macro_expansion, scanning_macro_expansion)
15822 (finished_macro_expansion): Update.
15823 (scan_macro_cleanup): Remove.
15824 (yylex, c_parse): Update.
15825
c65bac38
TT
158262019-01-06 Tom Tromey <tom@tromey.com>
15827
15828 * c-exp.y (struct c_parse_state) <strings>: New member.
15829 (operator_stoken): Update.
15830
02e12e38
TT
158312019-01-06 Tom Tromey <tom@tromey.com>
15832
15833 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15834 (union type_stack_elt) <typelist_val>: Now a pointer to
15835 std::vector.
15836 (type_stack_cleanup): Don't declare.
15837 (push_typelist): Update.
15838 * parse.c (pop_typelist): Return a std::vector.
15839 (push_typelist): Take a std::vector.
15840 (follow_types): Update. Do not free args.
15841 (type_stack_cleanup): Remove.
15842 * c-exp.y (struct c_parse_state): New.
15843 (cpstate): New global.
15844 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15845 (nonempty_typelist): Update.
15846 (func_mod): Create a new vector.
15847 (c_parse): Create a c_parse_state.
15848 (check_parameter_typelist): Do not delete params.
15849 (function_method): Update. Do not delete type_list.
15850
f097f5ad
TT
158512019-01-06 Tom Tromey <tom@tromey.com>
15852
15853 PR gdb/28155:
15854 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15855 check_typedef.
15856 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15857 (print_return_value): Likewise.
15858
d2adf9f1
TT
158592019-01-05 Tom Tromey <tom@tromey.com>
15860
15861 * contrib/cleanup_check.py: Remove.
15862 * contrib/gcc-with-excheck: Remove.
15863 * contrib/exsummary.py: Remove.
15864 * contrib/excheck.py: Remove.
15865
2eab46b1
JB
158662019-01-05 Joel Brobecker <brobecker@adacore.com>
15867
15868 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15869 NULL. Initialize tpprev to NULL instead of assigning it
15870 to NULL on the next statement.
15871 * windows-nat.c (windows_delete_thread): Remove check for
15872 main_thread_id before printing thread exit notifications.
15873 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15874 Remove thread ID check against main_thread_id.
15875 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15876 windows_delete_thread.
15877 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15878
48c5e7e2
TT
158792019-01-04 Tom Tromey <tom@tromey.com>
15880
15881 * compile/compile.c (_initialize_compile): Use upper case for
15882 metasyntactic variables.
15883 * symmisc.c (_initialize_symmisc): Use upper case for
15884 metasyntactic variables.
15885 * psymtab.c (_initialize_psymtab): Use upper case for
15886 metasyntactic variables.
15887 * demangle.c (demangle_command): Use upper case for metasyntactic
15888 variables.
15889 (_initialize_demangler): Likewise.
15890 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15891 variables.
15892
986041cd
TT
158932019-01-03 Tom Tromey <tom@tromey.com>
15894
15895 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15896
7c711119
TT
158972019-01-03 Tom Tromey <tom@tromey.com>
15898
15899 * python/py-symtab.c (salpy_str): Update.
15900 (struct salpy_sal_object) <symtab>: Now a PyObject.
15901 (salpy_dealloc): Update.
15902 (del_objfile_sal): Use gdbpy_ref.
15903
1b20edf0
TT
159042019-01-03 Tom Tromey <tom@tromey.com>
15905
15906 * python/py-type.c (convert_field): Use new_reference. Return
15907 gdbpy_ref.
15908 (make_fielditem): Return gdbpy_ref.
15909 (typy_fields): Update.
15910 (typy_getitem): Update.
15911 (field_name): Return gdbpy_ref. Use new_reference.
15912 (typy_iterator_iternext): Update.
15913
ea41325b
TT
159142019-01-03 Tom Tromey <tom@tromey.com>
15915
15916 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15917
2a3c71d6
TT
159182019-01-03 Tom Tromey <tom@tromey.com>
15919
15920 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15921 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15922 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15923 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15924 (pspy_set_type_printers): Likewise.
15925 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15926 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15927 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15928 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15929 (objfpy_set_type_printers): Likewise.
15930
5c329e6a
TT
159312019-01-03 Tom Tromey <tom@tromey.com>
15932
15933 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15934 (gdbpy_print_stack): Use gdbpy_err_fetch.
15935 * python/python-internal.h (class gdbpy_err_fetch): New class.
15936 (class gdbpy_enter) <m_error_type, m_error_value,
15937 m_error_traceback>: Remove.
15938 <m_error>: New member.
15939 (gdbpy_exception_to_string): Don't declare.
15940 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15941 * python/py-value.c (convert_value_from_python): Use
15942 gdbpy_err_fetch.
15943 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15944 gdbpy_exception_to_string.
15945 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15946 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15947 gdbpy_err_fetch.
15948
169bb27b
AB
159492019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15950
15951 * linux-nat.c (delete_lwp_cleanup): Delete.
15952 (struct lwp_deleter): New struct.
15953 (lwp_info_up): New typedef.
15954 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15955 lwp_info_up.
15956
a07c8880
AB
159572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15958
15959 * linux-fork.c (class scoped_switch_fork_info): New class.
15960 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15961
26089c49
AB
159622019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15963
15964 * valops.c (find_overload_match): Remove use of null_cleanup, and
15965 calls to do_cleanups.
15966
06d3e5b0
AB
159672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15968
15969 * compile/compile-cplus-types.c
15970 (compile_cplus_instance::decl_name): Handle changes to
15971 cp_func_name.
15972 * cp-support.c (cp_func_name): Update header comment, update
15973 return type.
15974 * cp-support.h (cp_func_name): Update return type in declaration.
15975 * valops.c (find_overload_match): Move temp_func local to top
15976 level of function and change its type. Use temp_func to hold and
15977 delete temporary string obtained from cp_func_name.
15978
66644cd3
AB
159792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15980
15981 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15982 gdb::char_vector, remove cleanup, and update uses of `msg`.
15983
592d8c0a
JW
159842019-01-03 Jim Wilson <jimw@sifive.com>
15985
15986 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15987
c55d06ec
TT
159882019-01-02 Tom Tromey <tom@tromey.com>
15989
15990 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15991 (tdesc_parse_xml): Remove cleanups.
15992 * target-descriptions.h (make_cleanup_free_target_description):
15993 Don't declare.
15994 (target_desc_deleter): New struct.
15995 (target_desc_up): New typedef.
15996 * target-descriptions.c (target_desc_deleter::operator()): Rename
15997 from free_target_description.
15998 (make_cleanup_free_target_description): Remove.
15999
3a6ae42d
TT
160002019-01-02 Tom Tromey <tom@tromey.com>
16001
16002 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16003 constructor, destructor.
16004 (linespec_parser): Remove typedef.
16005 (~linespec_parser): Rename from linespec_parser_delete.
16006 (linespec_lex_to_end, linespec_complete_label)
16007 (linespec_complete): Update.
16008 (decode_line_full): Remove cleanups.
16009 (decode_line_1): Update.
16010
61fd3e73
TT
160112019-01-02 Tom Tromey <tom@tromey.com>
16012
16013 * python/python-internal.h (inferior_to_inferior_object): Change
16014 return type.
16015 * python/py-exitedevent.c (create_exited_event_object): Update.
16016 * python/py-inferior.c (inferior_to_inferior_object): Return
16017 gdbpy_ref.
16018 (python_new_inferior, python_inferior_deleted)
16019 (thread_to_thread_object, delete_thread_object)
16020 (build_inferior_list, gdbpy_selected_inferior): Update.
16021 * python/py-infthread.c (create_thread_object): Update. Also fail
16022 if inferior_to_inferior_object fails.
16023
d20172fc
SM
160242019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16025
16026 * inferior.h (class inferior) <displaced_step_state>: New field.
16027 * infrun.h (struct displaced_step_state): Move here from
16028 infrun.c. Initialize fields, add constructor.
16029 <inf>: Remove field.
16030 <reset>: New method.
16031 * infrun.c (struct displaced_step_inferior_state): Move to
16032 infrun.h.
16033 (displaced_step_inferior_states): Remove.
16034 (get_displaced_stepping_state): Adust.
16035 (displaced_step_in_progress_any_inferior): Adjust.
16036 (displaced_step_in_progress_thread): Adjust.
16037 (displaced_step_in_progress): Adjust.
16038 (add_displaced_stepping_state): Remove.
16039 (get_displaced_step_closure_by_addr): Adjust.
16040 (remove_displaced_stepping_state): Remove.
16041 (infrun_inferior_exit): Call displaced_step_state.reset.
16042 (use_displaced_stepping): Don't check for NULL.
16043 (displaced_step_prepare_throw): Call
16044 get_displaced_stepping_state.
16045 (displaced_step_fixup): Don't check for NULL.
16046 (prepare_for_detach): Don't check for NULL.
16047
e3319240
PW
160482019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16049
16050 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16051 in case of call that did not complete.
16052
5d36dfb9
AU
160532019-01-02 Andrey Utkin <autkin@undo.io>
16054
16055 * symfile.c (find_separate_debug_file): Fix search of debug files for
16056 remote debuggee.
16057
8833fbf0
TT
160582019-01-02 Tom Tromey <tom@tromey.com>
16059
16060 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16061 indentation.
16062 * python/py-frame.c (frapy_older): Remove cast.
16063 (frapy_newer): Likewise.
16064 * python/py-breakpoint.c (local_setattro): Remove cast.
16065 * python/py-arch.c (archpy_name): Remove local variable.
16066 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16067
4ada3dfd
JB
160682019-01-02 Joel Brobecker <brobecker@adacore.com>
16069
16070 * unittests/basic_string_view/element_access/char/empty.cc:
16071 Fix year range in copyright header.
16072
113b7b81
AB
160732019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16074
16075 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16076 Delete.
16077 <operator==>: Update with for removed field.
16078 <hash>: Likewise.
16079 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16080 <isa_features>: ...this.
16081 <abi_features>: New field.
16082 (riscv_isa_flen): Update comment.
16083 (riscv_abi_xlen): New declaration.
16084 (riscv_abi_flen): New declaration.
16085 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16086 isa_features.
16087 (riscv_abi_xlen): New function.
16088 (riscv_isa_flen): Update to get answer from isa_features.
16089 (riscv_abi_flen): New function.
16090 (riscv_has_fp_abi): Update to get answer from abi_features.
16091 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16092 xlen and flen.
16093 (riscv_call_info) <xlen, flen>: Update comment.
16094 (riscv_call_arg_struct): Remove invalid assertions
16095 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16096 is removed.
16097 (riscv_gdbarch_init): Gather isa features and abi features
16098 separately, ensure both match on the gdbarch when reusing an old
16099 gdbarch. Relax an error check to allow 32-bit abi float to run on
16100 a target with 64-bit float hardware.
16101
b18ca514
PW
161022019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16103
16104 * source.c (search_command_helper): Stop reverse search
16105 when line 1 has been searched.
16106
ec70d8db
PW
161072019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16108
16109 * record-full.c (record_full_base_target::close): Rewrite
16110 record_full_core_buf_list free logic.
16111
5b38f9c1
PW
161122019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16113
16114 * break-catch-syscall.c (print_one_catch_syscall): xfree
16115 the last text.
16116
66d91b39
JB
161172019-01-01 Joel Brobecker <brobecker@adacore.com>
16118
16119 * top.c (print_gdb_version): Update Copyright year in version
16120 message.
16121
42a4f53d
JB
161222019-01-01 Joel Brobecker <brobecker@adacore.com>
16123
16124 Update copyright year range in all GDB files.
16125
7e955d83 161262019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16127
5bbd631d 16128 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16129
5bbd631d 16130For older changes see ChangeLog-2018.
c906108c
SS
16131\f
16132Local Variables:
16133mode: change-log
16134left-margin: 8
16135fill-column: 74
16136version-control: never
57da7796 16137coding: utf-8
c906108c 16138End:
5bbd631d 16139