d12bd1c5a5767dee4b3959690b3a21404bce1082
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-03 Christian Biesinger <cbiesinger@google.com>
2
3 * bcache.c (hash): Remove.
4 (hash_continue): Remove.
5 * bcache.h (hash): Remove.
6 (hash_continue): Remove.
7 (struct bcache) <ctor>: Update.
8 * psymtab.c (psymbol_hash): Update.
9 * stabsread.c (hashname): Update.
10 * utils.h (fast_hash): Add an argument for a start value,
11 defaulting to zero.
12
13 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
15 (destroy_block_symbol_cache): New function.
16 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
17 (resize_symbol_cache): Likewise.
18
19 2019-12-02 Tom Tromey <tom@tromey.com>
20
21 * unittests/tui-selftests.c (run_tests): Make conditional.
22 (_initialize_tui_selftest): Make conditional.
23
24 2019-12-02 Christian Biesinger <cbiesinger@google.com>
25
26 * aix-thread.c (debug_aix_thread): Change type to bool.
27
28 2019-12-02 Luis Machado <luis.machado@linaro.org>
29
30 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
31
32 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * dwarf2read.c (read_tag_string_type): Read the fields required to
35 make a dynamic string, and possibly create a dynamic range for the
36 string.
37 (attr_to_dynamic_prop): Setup is_reference based on the type of
38 attribute being processed.
39 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
40 (resolve_dynamic_array): Rename to...
41 (resolve_dynamic_array_or_string): ...this, update header comment,
42 and accept TYPE_CODE_STRING.
43 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
44
45 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
48 of its implementation from...
49 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
50 the new function.
51
52 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
53
54 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
55 create a range with stride where appropriate.
56 * f-valprint.c: Include 'gdbarch.h'.
57 (f77_print_array_1): Take the stride into account when walking the
58 array. Also convert the stride into addressable units.
59 * gdbtypes.c (create_range_type): Initialise the stride to
60 constant zero.
61 (create_range_type_with_stride): New function, initialise the
62 range as normal, and then setup the stride.
63 (has_static_range): Include the stride here. Also change the
64 return type to bool.
65 (create_array_type_with_stride): Consider the range stride if the
66 array isn't given its own stride.
67 (resolve_dynamic_range): Resolve the stride if needed.
68 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
69 (struct range_bounds) <flag_is_byte_stride>: New member variable.
70 (TYPE_BIT_STRIDE): Define.
71 (TYPE_ARRAY_BIT_STRIDE): Define.
72 (create_range_type_with_stride): Declare.
73 * valarith.c (value_subscripted_rvalue): Take range stride into
74 account when walking the array.
75
76 2019-12-01 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
79 specially.
80
81 2019-12-01 Tom Tromey <tom@tromey.com>
82
83 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
84 \0.
85 * unittests/tui-selftests.c: New file.
86 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
87
88 2019-12-01 Tom Tromey <tom@tromey.com>
89
90 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
91
92 2019-12-01 Tom Tromey <tom@tromey.com>
93
94 * NEWS: Document new settings.
95 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
96 * tui/tui-win.c (_initialize_tui_win): Add border style
97 observers.
98 * tui/tui-io.h (tui_apply_style): Declare.
99 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
100 longer static.
101 (apply_ansi_escape, tui_set_reverse_mode): Update.
102 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
103 Add "skip_intensity" parameter.
104 <changed>: New member.
105 <do_set_value>: Declare.
106 (tui_border_style, tui_active_border_style): Declare.
107 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
108 globals.
109 (cli_style_option): Initialize "changed".
110 (cli_style_option::do_set_value): New function.
111 (cli_style_option::add_setshow_commands): Add "skip_intensity"
112 parameter. Update.
113 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
114 (_initialize_cli_style): Update. Create TUI border style
115 commands.
116
117 2019-12-01 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
120 parameter.
121 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
122 parameter.
123 * tui/tui-win.h (compact_source): Declare.
124 * tui/tui-win.c (compact_source): New global.
125 (tui_set_compact_source, tui_show_compact_source): New functions.
126 (_initialize_tui_win): Add "compact-source" setting.
127 * tui/tui-source.c (tui_source_window::set_contents): Handle
128 compact_source setting.
129 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
130 * NEWS: Document new setting.
131
132 2019-11-30 Tom Tromey <tom@tromey.com>
133
134 * dwarf2read.c (dwarf2_add_field): Include field offset when
135 computing variant part length.
136
137 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
138 * NEWS: Mention define-prefix. Tell that command names can now
139 contain a . character.
140
141 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
142
143 * command.h (valid_cmd_char_p): Declare.
144 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
145 the check of valid command char.
146 (find_command_name_length, valid_user_defined_cmd_name_p): Use
147 valid_cmd_char_p.
148 * cli/cli-script.c (validate_comname): Likewise.
149 * completer.c (gdb_completer_command_word_break_characters):
150 Do not remove . from the word break char, update comments.
151 (complete_line_internal_1): Use valid_cmd_char_p.
152 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
153 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
154
155 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
156
157 * cli/cli-script.c (do_define_command): Ensure a redefined
158 prefix command is kept as a prefix command.
159 (define_prefix_command): New function.
160 (show_user_1): Report user defined prefixes.
161 (_initialize_cli_script): Create the new 'define-prefix' command.
162 Add completers for 'define' and 'document'.
163 * top.c (execute_command): If command is a user-defined prefix only
164 command, report the list of commands for this prefix command.
165
166 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
167
168 * valops.c (find_oload_champ): Improve debug output.
169
170 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 * valops.c (find_oload_champ): Print part of debug messages
173 before the badness vector is std::move'd.
174
175 2019-11-28 Tom Tromey <tom@tromey.com>
176
177 * value.c (creal_internal_fn): Fix comment.
178
179 2019-11-28 Tom Tromey <tom@tromey.com>
180
181 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
182 flag_bound_evaluated>: Now unsigned.
183
184 2019-11-28 Tom Tromey <tom@tromey.com>
185
186 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
187 declare.
188
189 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
190
191 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
192 debug output.
193 * jit.c (jit_unregister_code): Add debug print to match
194 `jit_register_code`.
195
196 2019-11-27 Christian Biesinger <cbiesinger@google.com>
197
198 * NEWS: Mention the new multithreaded symbol loading.
199
200 2019-11-27 Christian Biesinger <cbiesinger@google.com>
201
202 * maint.c (n_worker_threads): Default to 0.
203 (worker_threads_disabled): New function.
204 * maint.h (worker_threads_disabled): New function.
205 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
206 here if worker_threads_disabled () is true.
207 (minimal_symbol_reader::install): Skip all threading if
208 worker_threads_disabled () is true.
209
210 2019-11-27 Christian Biesinger <cbiesinger@google.com>
211
212 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
213 hash code if possible.
214 (add_minsym_to_demangled_hash_table): Likewise.
215 (minimal_symbol_reader::install): Compute the hash codes for msymbol
216 on the background thread.
217 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
218 Add these fields.
219
220 2019-11-27 Christian Biesinger <cbiesinger@google.com>
221
222 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
223 of the mangled name on the background thread.
224 * symtab.c (symbol_set_names): Allow passing in the hash of the
225 linkage_name.
226 * symtab.h (symbol_set_names): Likewise.
227
228 2019-11-27 Kevin Buettner <kevinb@redhat.com>
229
230 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
231 physnames are computed for inherited DIEs.
232
233 2019-11-27 Tom Tromey <tromey@adacore.com>
234
235 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
236 backslashes.
237 * cp-support.c: Remove unnecessary backslashes.
238
239 2019-11-27 Christian Biesinger <cbiesinger@google.com>
240
241 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
242 with sym->set_linkage_name.
243 * coffread.c (coff_read_enum_type): Likewise.
244 * mdebugread.c (parse_symbol): Likewise.
245 * stabsread.c (patch_block_stabs): Likewise.
246 (define_symbol): Likewise.
247 (read_enum_type): Likewise.
248 (common_block_end): Likewise.
249 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
250 function.
251 (SYMBOL_SET_LINKAGE_NAME): Remove.
252 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
253 with sym->set_linkage_name.
254
255 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
258 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
259 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
260 * NEWS: Mention new MI command.
261
262 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
265 '-symbol-info-types', and '-symbol-info-variables'.
266 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
267 (mi_cmd_symbol_info_types): Declare.
268 (mi_cmd_symbol_info_variables): Declare.
269 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
270 (output_debug_symbol): New function.
271 (output_nondebug_symbol): New function.
272 (mi_symbol_info): New function.
273 (mi_info_functions_or_variables): New function.
274 (mi_cmd_symbol_info_functions): New function.
275 (mi_cmd_symbol_info_types): New function.
276 (mi_cmd_symbol_info_variables): New function.
277 * NEWS: Mention new commands.
278
279 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * symtab.c (symbol_to_info_string): New function, most content
282 moved from print_symbol_info, but updated to return a std::string.
283 (print_symbol_info): Update to use symbol_to_info_string and print
284 returned string.
285 * symtab.h (symbol_to_info_string): Declare new function.
286
287 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * python/python.c (gdbpy_rbreak): Convert to using
290 global_symbol_searcher.
291 * symtab.c (file_matches): Convert return type to bool, change
292 file list to std::vector, update header comment.
293 (search_symbols): Rename to...
294 (global_symbol_searcher::search): ...this and update now its
295 a member function of global_symbol_searcher. Take account of the
296 changes to file_matches.
297 (symtab_symbol_info): Convert to using global_symbol_searcher.
298 (rbreak_command): Likewise.
299 (search_module_symbols): Likewise.
300 * symtab.h (enum symbol_search): Update comment.
301 (search_symbols): Remove declaration.
302 (class global_symbol_searcher): New class.
303
304 2019-11-26 Tom Tromey <tromey@adacore.com>
305
306 * cp-support.c (_initialize_cp_support): Conditionally initialize
307 gdb_demangle_attempt_core_dump.
308
309 2019-11-26 Tom Tromey <tom@tromey.com>
310
311 * python/py-function.c (fnpy_init): Update.
312 * value.h (add_internal_function): Adjust declaration.
313 * value.c (function_destroyer): Remove.
314 (do_add_internal_function): Don't set destroyer or copy name.
315 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
316 Set name_allocated.
317 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
318 (cmdpy_init): Set name_allocated.
319 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
320 member.
321 (~cmd_list_element): Free "name" if needed.
322
323 2019-11-26 Tom Tromey <tom@tromey.com>
324
325 * value.h (add_internal_function): Add new overload. Move
326 documentation from value.h.
327 * value.c (do_add_internal_function): New function.
328 (add_internal_function): Use it. Add new overload.
329 (function_destroyer): Don't free doc.
330 * python/py-function.c (fnpy_init): Update.
331
332 2019-11-26 Tom Tromey <tom@tromey.com>
333
334 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
335 (cmdpy_init): Set "doc_allocated".
336
337 2019-11-26 Tom Tromey <tom@tromey.com>
338
339 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
340 name of worker thread.
341 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
342 pthread_setname_np.
343 * configure, config.in: Rebuild.
344
345 2019-11-26 Tom Tromey <tom@tromey.com>
346
347 * python/python.c (class gdbpy_gil): New.
348 (struct gdbpy_event): Add constructor, destructor, operator().
349 (gdbpy_post_event): Use run_on_main_thread.
350 (gdbpy_initialize_events): Remove.
351 (do_start_initialization): Update.
352
353 2019-11-26 Tom Tromey <tom@tromey.com>
354
355 * NEWS: Add entry.
356 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
357 commands. Call update_thread_pool_size.
358 (update_thread_pool_size, maintenance_set_worker_threads): New
359 functions.
360 (n_worker_threads): New global.
361
362 2019-11-26 Christian Biesinger <cbiesinger@google.com>
363 Tom Tromey <tom@tromey.com>
364
365 * minsyms.c (minimal_symbol_reader::install): Use
366 parallel_for_each.
367 * gdbsupport/parallel-for.h: New file.
368 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
369
370 2019-11-26 Christian Biesinger <cbiesinger@google.com>
371 Tom Tromey <tom@tromey.com>
372
373 * gdbsupport/thread-pool.h: New file.
374 * gdbsupport/thread-pool.c: New file.
375 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
376 (HFILES_NO_SRCDIR): Add thread-pool.h.
377
378 2019-11-26 Tom Tromey <tom@tromey.com>
379
380 * event-top.h (thread_local_segv_handler): Declare.
381 * event-top.c (thread_local_segv_handler): New global.
382 (install_handle_sigsegv, handle_sigsegv): New functions.
383 (async_init_signals): Install SIGSEGV handler.
384 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
385 thread-local.
386 (report_failed_demangle): New function.
387 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
388 handler-setting code, instead use segv_handler. Run warning code
389 on main thread.
390
391 2019-11-26 Tom Tromey <tom@tromey.com>
392
393 * run-on-main-thread.c: New file.
394 * run-on-main-thread.h: New file.
395 * unittests/main-thread-selftests.c: New file.
396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
397 main-thread-selftests.c.
398 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
399 (COMMON_SFILES): Add run-on-main-thread.c.
400
401 2019-11-26 Tom Tromey <tom@tromey.com>
402
403 * main.c (setup_alternate_signal_stack): Remove.
404 (captured_main_1): Use gdb::alternate_signal_stack.
405 * gdbsupport/alt-stack.h: New file.
406
407 2019-11-26 Tom Tromey <tom@tromey.com>
408
409 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
410 Remove comment.
411 (save_original_signals_state, restore_original_signals_state): Use
412 gdb_sigmask.
413 * linux-nat.c (block_child_signals, restore_child_signals_mask)
414 (_initialize_linux_nat): Use gdb_sigmask.
415 * guile/guile.c (_initialize_guile): Use block_signals.
416 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
417 * gdbsupport/gdb-sigmask.h: New file.
418 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
419 * cp-support.c (gdb_demangle): Use gdb_sigmask.
420 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
421 pthread_sigmask.
422 * configure, config.in: Rebuild.
423 * gdbsupport/block-signals.h: New file.
424
425 2019-11-26 Tom Tromey <tom@tromey.com>
426
427 * acinclude.m4: Include ax_pthread.m4.
428 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
429 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
430 (CLIBS): Use PTHREAD_LIBS.
431 (aclocal_m4_deps): Add ax_pthread.m4.
432 * config.in, configure: Rebuild.
433 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
434
435 2019-11-26 Tom Tromey <tom@tromey.com>
436
437 * symtab.h (struct minimal_symbol) <name_set>: New member.
438 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
439 Don't call symbol_set_names.
440 (minimal_symbol_reader::install): Call symbol_set_names.
441
442 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
443
444 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
445 restore_active_ext_lang, as GIL is needed for (indirectly)
446 called PyOS_InterruptOccurred.
447
448 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
449
450 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
451 definition.
452
453 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
454
455 * remote-sim.c (simulator_command): Make static, remove
456 declaration.
457
458 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
459
460 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
461 static.
462 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
463 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
464 (main): Likewise.
465 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
466 (main): Likewise.
467 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
468 (main): Likewise.
469 * unittests/basic_string_view/element_access/char/1.cc (test01):
470 Likewise.
471 (main): Likewise.
472 * unittests/basic_string_view/element_access/char/empty.cc (main):
473 Likewise.
474 * unittests/basic_string_view/element_access/char/front_back.cc
475 (test01): Likewise.
476 (main): Likewise.
477 * unittests/basic_string_view/inserters/char/2.cc (test05):
478 Likewise.
479 (main): Likewise.
480 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
481 (test01): Likewise.
482 (main): Likewise.
483 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
484 (test01): Likewise.
485 (main): Likewise.
486 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
487 Likewise.
488 * unittests/basic_string_view/operations/compare/char/1.cc
489 (test01): Likewise.
490 (main): Likewise.
491 * unittests/basic_string_view/operations/compare/char/13650.cc
492 (test01): Likewise.
493 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
494 Likewise.
495 (main): Likewise.
496 * unittests/basic_string_view/operations/data/char/1.cc (test01):
497 Likewise.
498 (main): Likewise.
499 * unittests/basic_string_view/operations/find/char/1.cc (test01):
500 Likewise.
501 (main): Likewise.
502 * unittests/basic_string_view/operations/find/char/2.cc (test02):
503 Likewise.
504 (main): Likewise.
505 * unittests/basic_string_view/operations/find/char/3.cc (test03):
506 Likewise.
507 (main): Likewise.
508 * unittests/basic_string_view/operations/find/char/4.cc (main):
509 Likewise.
510 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
511 Likewise.
512 (main): Likewise.
513 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
514 Likewise.
515 (main): Likewise.
516 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
517 Likewise.
518 (main): Likewise.
519 * unittests/basic_string_view/operations/substr/char/1.cc
520 (test01): Likewise.
521 (main): Likewise.
522 * unittests/basic_string_view/operators/char/2.cc (main):
523 Likewise.
524 * unittests/optional/assignment/1.cc (test): Likewise.
525 * unittests/optional/assignment/2.cc (test): Likewise.
526 * unittests/optional/assignment/3.cc (test): Likewise.
527 * unittests/optional/assignment/4.cc (test): Likewise.
528 * unittests/optional/assignment/5.cc (test): Likewise.
529 * unittests/optional/assignment/6.cc (test): Likewise.
530 * unittests/optional/assignment/7.cc (test): Likewise.
531 * unittests/optional/cons/copy.cc (test): Likewise.
532 * unittests/optional/cons/default.cc (test): Likewise.
533 * unittests/optional/cons/move.cc (test): Likewise.
534 * unittests/optional/cons/value.cc (test): Likewise.
535 * unittests/optional/in_place.cc (test): Likewise.
536 * unittests/optional/observers/1.cc (test): Likewise.
537 * unittests/optional/observers/2.cc (test): Likewise.
538
539 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
540
541 * tui-win.h (tui_set_var_cmd): Remove.
542 * tui-win.c (tui_set_var_cmd): Make static.
543
544 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
545
546 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
547 rbreak_command_wrapper): Remove.
548 * symtab.c (rbreak_command_wrapper): Remove.
549
550 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
551
552 * inferior.h (info_terminal_command): Remove declaration.
553 * inflow.c (info_terminal_command): Make static.
554
555 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
556
557 * inferior.c (exit_inferior_silent): Remove.
558
559 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
560
561 * dictionary.c (dict_empty, mdict_empty): Remove.
562 * dictionary.c (mdict_empty): Remove.
563
564 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
565
566 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
567 (arc_insn_get_memory_offset): Likewise.
568 (arc_insn_dump): Likewise.
569 * cp-support.c (test_cp_symbol_name_matches): Likewise.
570 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
571 * dictionary.c (dict_iterator_next): Likewise.
572 (dict_iter_match_first): Likewise.
573 (dict_iter_match_next): Likewise.
574 * f-lang.c (evaluate_subexp_f): Likewise.
575 * hppa-tdep.c (hppa_read_pc): Likewise.
576 * i386-tdep.c (i386_floatformat_for_type): Likewise.
577 * parse.c (write_exp_elt_msym): Likewise.
578 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
579 * remote.c (remote_packet_size): Likewise.
580 (remote_notif_stop_parse): Likewise.
581 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
582 * s12z-tdep.c (s12z_disassemble_info): Likewise.
583 * source.c (prepare_path_for_appending): Likewise.
584 * sparc64-linux-tdep.c
585 (sparc64_linux_handle_segmentation_fault); Likewise.
586 * stack.c (frame_selection_by_function_completer): Likewise.
587
588 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
589
590 * completer.c (set_gdb_completion_word_break_characters):
591 Remove.
592
593 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
594
595 * dwarf-index-write.c: Include dwarf-index-write.h.
596 * mi/mi-interp.c: Include mi/mi-interp.h.
597
598 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
599
600 * aarch32-tdep.c: Include aarch32-tdep.h.
601 * aarch32-tdep.h: Forward-declare struct target_desc.
602
603 2019-11-26 Christian Biesinger <cbiesinger@google.com>
604
605 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
606 strerror.
607 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
608 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
609
610 2019-11-25 Tom de Vries <tdevries@suse.de>
611
612 * contrib/words.sh: Add -c option.
613
614 2019-11-25 Christian Biesinger <cbiesinger@google.com>
615
616 * solib.c (solib_find_1): Change int to bool.
617 (exec_file_find): Change int to bool.
618 (solib_find): Change int to bool.
619 (solib_read_symbols): Change int to bool.
620 (solib_used): Change int to bool.
621 (solib_add): Change int to bool.
622 (info_sharedlibrary_command): Change int to bool.
623 (solib_contains_address_p): Change int to bool.
624 (solib_keep_data_in_core): Change int to bool.
625 (in_solib_dynsym_resolve_code): Change int to bool.
626 (reload_shared_libraries_1): Change int to bool.
627 (gdb_sysroot_changed): Change int to bool.
628 * solib.h (solib_read_symbols): Change int to bool.
629 (solib_contains_address_p): Change int to bool.
630 (solib_keep_data_in_core): Change int to bool.
631 (in_solib_dynsym_resolve_code): Change int to bool.
632 (libpthread_name_p): Change int to bool.
633
634 2019-11-25 Luis Machado <luis.machado@linaro.org>
635
636 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
637 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
638 (remote_packet_max_chars): New static global.
639 (show_remote_packet_max_chars): New function.
640 (remote_target::putpkt_binary): Adjust to use new
641 remote_packet_max_chars option.
642 (remote_target::getpkt_or_notif_sane_1): Likewise.
643 (_initialize_remote): Register new remote-packet-max-chars option.
644
645 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
646
647 * m68k-linux-nat.c: Include gdbarch.h.
648
649 2019-11-24 Tom Tromey <tom@tromey.com>
650
651 * symfile.c (read_symbols): Update.
652 * psymtab.c (require_partial_symbols): Change type of "verbose" to
653 bool.
654 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
655 (psym_lookup_symbol, psym_find_last_source_symtab)
656 (psym_forget_cached_source_info, psym_print_stats)
657 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
658 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
659 (psym_map_matching_symbols, psym_expand_symtabs_matching)
660 (psym_find_compunit_symtab_by_address)
661 (maintenance_print_psymbols, maintenance_info_psymtabs)
662 (maintenance_check_psymtabs): Update.
663 * psymtab.h (require_partial_symbols): Change type of "verbose" to
664 bool.
665
666 2019-11-22 Tom Tromey <tom@tromey.com>
667
668 * observable.h: Update comments.
669
670 2019-11-22 Tom Tromey <tromey@adacore.com>
671
672 * ada-tasks.c (ada_task_is_alive): Make parameter const.
673 (print_ada_task_info): Don't try to fetch thread id if task is not
674 alive.
675
676 2019-11-22 Christian Biesinger <cbiesinger@google.com>
677
678 * ada-exp.y: Update.
679 * ada-lang.c (sort_choices): Update.
680 (ada_print_symbol_signature): Update.
681 (resolve_subexp): Update.
682 (ada_parse_renaming): Update.
683 (ada_read_renaming_var_value): Update.
684 (lesseq_defined_than): Update.
685 (remove_extra_symbols): Update.
686 (remove_irrelevant_renamings): Update.
687 (ada_add_block_symbols): Update.
688 (ada_collect_symbol_completion_matches): Update.
689 (ada_is_renaming_symbol): Update.
690 (aggregate_assign_from_choices): Update.
691 (ada_evaluate_subexp): Update.
692 (ada_has_this_exception_support): Update.
693 (ada_is_non_standard_exception_sym): Update.
694 (ada_add_exceptions_from_frame): Update.
695 (ada_add_global_exceptions): Update.
696 (ada_print_subexp): Update.
697 * ax-gdb.c (gen_var_ref): Update.
698 (gen_maybe_namespace_elt): Update.
699 (gen_expr_for_cast): Update.
700 (gen_expr): Update.
701 * block.h: Update.
702 * blockframe.c (find_pc_partial_function): Update.
703 * breakpoint.c (print_breakpoint_location): Update.
704 (update_static_tracepoint): Update.
705 * btrace.c (ftrace_print_function_name): Update.
706 (ftrace_function_switched): Update.
707 * buildsym.c (find_symbol_in_list): Update.
708 * c-exp.y: Update.
709 * c-typeprint.c (c_print_typedef): Update.
710 (c_type_print_template_args): Update.
711 * cli/cli-cmds.c (edit_command): Update.
712 (list_command): Update.
713 (print_sal_location): Update.
714 * coffread.c (patch_opaque_types): Update.
715 (process_coff_symbol): Update.
716 (coff_read_enum_type): Update.
717 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
718 (convert_one_symbol): Update.
719 (hash_symname): Update.
720 (eq_symname): Update.
721 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
722 * compile/compile-cplus-types.c (debug_print_scope): Update.
723 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
724 * compile/compile-object-load.c (get_out_value_type): Update.
725 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
726 (search_symbol_list): Update.
727 (cp_lookup_symbol_imports_or_template): Update.
728 * cp-support.c (overload_list_add_symbol): Update.
729 * ctfread.c (psymtab_to_symtab): Update.
730 * dbxread.c (cp_set_block_scope): Update.
731 * dictionary.c (iter_match_first_hashed): Update.
732 (iter_match_next_hashed): Update.
733 (insert_symbol_hashed): Update.
734 (iter_match_next_linear): Update.
735 * dictionary.h: Update.
736 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
737 (locexpr_describe_location_piece): Update.
738 (locexpr_describe_location_1): Update.
739 (locexpr_generate_c_location): Update.
740 (loclist_describe_location): Update.
741 (loclist_generate_c_location): Update.
742 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
743 (read_func_scope): Update.
744 (process_enumeration_scope): Update.
745 (new_symbol): Update.
746 (dwarf2_const_value): Update.
747 (dwarf2_symbol_mark_computed): Update.
748 * eval.c (evaluate_funcall): Update.
749 (evaluate_subexp_standard): Update.
750 * expprint.c (print_subexp_standard): Update.
751 (dump_subexp_body_standard): Update.
752 * f-valprint.c (info_common_command_for_block): Update.
753 * findvar.c (get_hosting_frame): Update.
754 (default_read_var_value): Update.
755 * go-lang.c (go_symbol_package_name): Update.
756 * guile/scm-block.c (bkscm_print_block_smob): Update.
757 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
758 (gdbscm_symbol_name): Update.
759 (gdbscm_symbol_linkage_name): Update.
760 (gdbscm_symbol_print_name): Update.
761 * infcall.c (get_function_name): Update.
762 * infcmd.c (jump_command): Update.
763 (finish_command): Update.
764 * infrun.c (insert_exception_resume_breakpoint): Update.
765 * linespec.c (canonicalize_linespec): Update.
766 (create_sals_line_offset): Update.
767 (convert_linespec_to_sals): Update.
768 (complete_label): Update.
769 (find_label_symbols_in_block): Update.
770 * m2-typeprint.c (m2_print_typedef): Update.
771 * mdebugread.c (mdebug_reg_to_regnum): Update.
772 (parse_symbol): Update.
773 (mylookup_symbol): Update.
774 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
775 (list_args_or_locals): Update.
776 * objc-lang.c (compare_selectors): Update.
777 (info_selectors_command): Update.
778 (compare_classes): Update.
779 (info_classes_command): Update.
780 (find_imps): Update.
781 * p-typeprint.c (pascal_print_typedef): Update.
782 * printcmd.c (build_address_symbolic): Update.
783 (info_address_command): Update.
784 (print_variable_and_value): Update.
785 * python/py-framefilter.c (extract_sym): Update.
786 (py_print_single_arg): Update.
787 * python/py-symbol.c (sympy_str): Update.
788 (sympy_get_name): Update.
789 (sympy_get_linkage_name): Update.
790 * python/python.c (gdbpy_rbreak): Update.
791 * record-btrace.c (btrace_get_bfun_name): Update.
792 (btrace_call_history): Update.
793 * rust-lang.c (rust_print_typedef): Update.
794 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
795 * stabsread.c (stab_reg_to_regnum): Update.
796 (define_symbol): Update.
797 (read_enum_type): Update.
798 (common_block_end): Update.
799 (cleanup_undefined_types_1): Update.
800 (scan_file_globals): Update.
801 * stack.c (print_frame_arg): Update.
802 (print_frame_args): Update.
803 (find_frame_funname): Update.
804 (info_frame_command_core): Update.
805 (iterate_over_block_locals): Update.
806 (print_block_frame_labels): Update.
807 (do_print_variable_and_value): Update.
808 (iterate_over_block_arg_vars): Update.
809 (return_command): Update.
810 * symmisc.c (dump_symtab_1): Update.
811 (print_symbol): Update.
812 * symtab.c (eq_symbol_entry): Update.
813 (symbol_cache_dump): Update.
814 (lookup_language_this): Update.
815 (find_pc_sect_line): Update.
816 (skip_prologue_sal): Update.
817 (symbol_search::compare_search_syms): Update.
818 (treg_matches_sym_type_name): Update.
819 (search_symbols): Update.
820 (print_symbol_info): Update.
821 (rbreak_command): Update.
822 (completion_list_add_symbol): Update.
823 (find_gnu_ifunc): Update.
824 (get_symbol_address): Update.
825 (search_module_symbols): Update.
826 (info_module_subcommand): Update.
827 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
828 (SYMBOL_LINKAGE_NAME): Remove.
829 (SYMBOL_DEMANGLED_NAME): Remove.
830 (SYMBOL_PRINT_NAME): Remove.
831 (SYMBOL_SEARCH_NAME): Remove.
832 * tracepoint.c (set_traceframe_context): Update.
833 (validate_actionline): Update.
834 (collection_list::collect_symbol): Update.
835 (encode_actions_1): Update.
836 (info_scope_command): Update.
837 (print_one_static_tracepoint_marker): Update.
838 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
839 * valops.c (address_of_variable): Update.
840 (find_overload_match): Update.
841 (find_oload_champ): Update.
842
843 2019-11-22 Christian Biesinger <cbiesinger@google.com>
844
845 * ada-lang.c (ada_lookup_simple_minsym): Update.
846 (ada_collect_symbol_completion_matches): Update.
847 * ada-tasks.c (read_atcb): Update.
848 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
849 (amd64_windows_skip_trampoline_code): Update.
850 * arm-tdep.c (skip_prologue_function): Update.
851 (arm_skip_stack_protector): Update.
852 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
853 (arm_wince_skip_main_prologue): Update.
854 * ax-gdb.c (gen_expr): Update.
855 * block.c (call_site_for_pc): Update.
856 * blockframe.c (find_pc_partial_function): Update.
857 * breakpoint.c (set_breakpoint_location_function): Update.
858 * btrace.c (ftrace_print_function_name): Update.
859 (ftrace_function_switched): Update.
860 * c-valprint.c (print_unpacked_pointer): Update.
861 * coffread.c (coff_symfile_read): Update.
862 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
863 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
864 * dwarf-index-write.c (write_psymbols): Update.
865 * dwarf2loc.c (call_site_to_target_addr): Update.
866 (func_verify_no_selftailcall): Update.
867 (tailcall_dump): Update.
868 (call_site_find_chain_1): Update.
869 (dwarf_expr_reg_to_entry_parameter): Update.
870 * elfread.c (elf_gnu_ifunc_record_cache): Update.
871 * eval.c (evaluate_funcall): Update.
872 (evaluate_subexp_standard): Update.
873 (evaluate_subexp_for_sizeof): Update.
874 * expprint.c (print_subexp_standard): Update.
875 (dump_subexp_body_standard): Update.
876 * frame.c (get_prev_frame_always_1): Update.
877 * frv-tdep.c (frv_skip_main_prologue): Update.
878 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
879 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
880 (gnuv3_get_typename_from_type_info): Update.
881 (gnuv3_skip_trampoline): Update.
882 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
883 * i386-tdep.c (i386_skip_main_prologue): Update.
884 (i386_pe_skip_trampoline_code): Update.
885 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
886 * infcall.c (get_function_name): Update.
887 * linespec.c (minsym_found): Update.
888 * linux-fork.c (info_checkpoints_command): Update.
889 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
890 (m32c_m16c_pointer_to_address): Update.
891 * maint.c (maintenance_translate_address): Update.
892 * minsyms.c (add_minsym_to_hash_table): Update.
893 (add_minsym_to_demangled_hash_table): Update.
894 (lookup_minimal_symbol_mangled): Update.
895 (lookup_minimal_symbol_demangled): Update.
896 (lookup_minimal_symbol_linkage): Update.
897 (lookup_minimal_symbol_text): Update.
898 (lookup_minimal_symbol_by_pc_name): Update.
899 (minimal_symbol_is_less_than): Update.
900 (compact_minimal_symbols): Update.
901 (build_minimal_symbol_hash_tables): Update.
902 (find_solib_trampoline_target): Update.
903 * mips-tdep.c (mips_stub_frame_sniffer): Update.
904 (mips_skip_pic_trampoline_code): Update.
905 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
906 * objc-lang.c (info_selectors_command): Update.
907 (info_classes_command): Update.
908 (find_methods): Update.
909 (find_imps): Update.
910 * p-valprint.c (pascal_val_print): Update.
911 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
912 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
913 * printcmd.c (build_address_symbolic): Update.
914 (info_symbol_command): Update.
915 * psymtab.c (psymbol_name_matches): Update.
916 (match_partial_symbol): Update.
917 (lookup_partial_symbol): Update.
918 (print_partial_symbols): Update.
919 (sort_pst_symbols): Update.
920 (maintenance_check_psymtabs): Update.
921 * python/py-framefilter.c (py_print_frame): Update.
922 * python/python.c (gdbpy_rbreak): Update.
923 * record-btrace.c (btrace_get_bfun_name): Update.
924 (btrace_call_history): Update.
925 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
926 (rs6000_skip_trampoline_code): Update.
927 * sol-thread.c (info_cb): Update.
928 * stabsread.c (scan_file_globals): Update.
929 * stack.c (find_frame_funname): Update.
930 (info_frame_command_core): Update.
931 * symmisc.c (dump_msymbols): Update.
932 * symtab.c (symbol_natural_name): Rename to..,
933 (general_symbol_info::natural_name): ...this.
934 (symbol_demangled_name): Rename to...
935 (general_symbol_info::demangled_name): ...this.
936 (symbol_search_name): Rename to...
937 (general_symbol_info::search_name): ...this.
938 (symbol_matches_search_name): Update.
939 (find_pc_sect_line): Update.
940 (skip_prologue_sal): Update.
941 (search_symbols): Update.
942 (print_msymbol_info): Update.
943 (rbreak_command): Update.
944 (completion_list_add_msymbol): Update.
945 (completion_list_objc_symbol): Update.
946 (get_msymbol_address): Update.
947 * symtab.h (struct general_symbol_info): Add member functions
948 natural_name (), linkage_name (), print_name (), demangled_name (),
949 and search_name ().
950 (SYMBOL_NATURAL_NAME): Update.
951 (symbol_natural_name): Move to a member function on general_symbol_info.
952 (SYMBOL_DEMANGLED_NAME): Update.
953 (symbol_demangled_name): Move to a member function on
954 general_symbol_info.
955 (SYMBOL_SEARCH_NAME): Update.
956 (symbol_search_name): Move to a member function on general_symbol_info.
957 (MSYMBOL_NATURAL_NAME): Remove.
958 (MSYMBOL_LINKAGE_NAME): Remove.
959 (MSYMBOL_PRINT_NAME): Remove.
960 (MSYMBOL_DEMANGLED_NAME): Remove.
961 (MSYMBOL_SEARCH_NAME): Remove.
962 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
963
964 2019-11-22 Christian Biesinger <cbiesinger@google.com>
965
966 * symtab.c (create_demangled_names_hash): Use per_bfd->
967 minimal_symbol_count for computing the initial size, if greater
968 than our default size.
969
970 2019-11-22 Tom de Vries <tdevries@suse.de>
971
972 * contrib/words.sh: Improve words extraction.
973
974 2019-11-22 Tom de Vries <tdevries@suse.de>
975
976 * contrib/words.sh: Combine sed invocations.
977
978 2019-11-21 Christian Biesinger <cbiesinger@google.com>
979
980 * Makefile.in: Update.
981 * demangle.c: Rename to...
982 * gdb-demangle.c: ..this.
983 (is_cplus_marker): Change return type to bool.
984 (_initialize_demangler): Rename to...
985 (_initialize_gdb_demangle): ...this.
986 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
987 * symtab.h (demangle): Remove declaration; instead include
988 gdb-demangle.h.
989
990 2019-11-21 Tom Tromey <tromey@adacore.com>
991
992 * gdbsupport/format.c (format_pieces): Parse %I64d.
993 * unittests/format_pieces-selftests.c (test_windows_formats): New
994 function.
995 (run_tests): Call it.
996
997 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
998
999 Byte reverse display of variables with DW_END_big, DW_END_little
1000 (DW_AT_endianity) dwarf attributes if different than the native
1001 byte order.
1002 * ada-lang.c (ada_value_binop):
1003 Use type_byte_order instead of gdbarch_byte_order.
1004 * ada-valprint.c (printstr):
1005 (ada_val_print_string):
1006 * ada-lang.c (value_pointer):
1007 (ada_value_binop):
1008 Use type_byte_order instead of gdbarch_byte_order.
1009 * c-lang.c (c_get_string):
1010 Use type_byte_order instead of gdbarch_byte_order.
1011 * c-valprint.c (c_val_print_array):
1012 Use type_byte_order instead of gdbarch_byte_order.
1013 * cp-valprint.c (cp_print_class_member):
1014 Use type_byte_order instead of gdbarch_byte_order.
1015 * dwarf2loc.c (rw_pieced_value):
1016 Use type_byte_order instead of gdbarch_byte_order.
1017 * dwarf2read.c (read_base_type): Handle DW_END_big,
1018 DW_END_little
1019 * f-lang.c (f_get_encoding):
1020 Use type_byte_order instead of gdbarch_byte_order.
1021 * findvar.c (default_read_var_value):
1022 Use type_byte_order instead of gdbarch_byte_order.
1023 * gdbtypes.c (check_types_equal):
1024 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1025 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1026 and TYPE_ENDIANITY_LITTLE if set.
1027 (type_byte_order): new function.
1028 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1029 (struct main_type) <flag_endianity_not_default>:
1030 New field.
1031 (type_byte_order): New function.
1032 * infcmd.c (default_print_one_register_info):
1033 Use type_byte_order instead of gdbarch_byte_order.
1034 * p-lang.c (pascal_printstr):
1035 Use type_byte_order instead of gdbarch_byte_order.
1036 * p-valprint.c (pascal_val_print):
1037 Use type_byte_order instead of gdbarch_byte_order.
1038 * printcmd.c (print_scalar_formatted):
1039 Use type_byte_order instead of gdbarch_byte_order.
1040 * solib-darwin.c (darwin_current_sos):
1041 Use type_byte_order instead of gdbarch_byte_order.
1042 * solib-svr4.c (solib_svr4_r_ldsomap):
1043 Use type_byte_order instead of gdbarch_byte_order.
1044 * stap-probe.c (stap_modify_semaphore):
1045 Use type_byte_order instead of gdbarch_byte_order.
1046 * target-float.c (target_float_same_format_p):
1047 Use type_byte_order instead of gdbarch_byte_order.
1048 * valarith.c (scalar_binop):
1049 (value_bit_index):
1050 Use type_byte_order instead of gdbarch_byte_order.
1051 * valops.c (value_cast):
1052 Use type_byte_order instead of gdbarch_byte_order.
1053 * valprint.c (generic_emit_char):
1054 (generic_printstr):
1055 (val_print_string):
1056 Use type_byte_order instead of gdbarch_byte_order.
1057 * value.c (unpack_long):
1058 (unpack_bits_as_long):
1059 (unpack_value_bitfield):
1060 (modify_field):
1061 (pack_long):
1062 (pack_unsigned_long):
1063 Use type_byte_order instead of gdbarch_byte_order.
1064 * findvar.c (unsigned_pointer_to_address):
1065 (signed_pointer_to_address):
1066 (unsigned_address_to_pointer):
1067 (address_to_signed_pointer):
1068 (default_read_var_value):
1069 (default_value_from_register):
1070 Use type_byte_order instead of gdbarch_byte_order.
1071 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1072 Use type_byte_order instead of gdbarch_byte_order.
1073 * riscv-tdep.c (riscv_print_one_register_info):
1074 Use type_byte_order instead of gdbarch_byte_order.
1075
1076 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1079 (current_ui_gdb_stdin_ptr): Likewise.
1080 (current_ui_gdb_stderr_ptr): Likewise.
1081 (current_ui_gdb_stdlog_ptr): Likewise.
1082 (current_ui_current_uiout_ptr): Likewise.
1083 (gen_ret_current_ui_field_ptr): Remove.
1084
1085 2019-11-21 Tom de Vries <tdevries@suse.de>
1086
1087 PR gdb/24956
1088 * cli/cli-script.c (execute_control_command): Only switch to
1089 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1090
1091 2019-11-19 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1094 Now static. Change type of "name".
1095 (tui_set_win_height_command): Don't copy "arg".
1096 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1097 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1098
1099 2019-11-19 Ali Tamur <tamur@google.com>
1100
1101 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1102 "if (attr != nullptr)".
1103 (dwarf2_find_base_address): Likewise.
1104 (dwarf2_build_include_psymtabs): Likewise.
1105 (read_cutu_die_from_dwo): Likewise.
1106 (read_func_scope): Likewise.
1107 (read_call_site_scope): Likewise.
1108 (dwarf2_get_pc_bounds): Likewise.
1109 (dwarf2_record_block_ranges): Likewise.
1110 (dwarf2_add_field): Likewise.
1111 (dwarf2_add_member_fn): Likewise.
1112 (read_structure_type): Likewise.
1113 (read_enumeration_type): Likewise.
1114 (read_array_type): Likewise.
1115 (read_array_order): Likewise.
1116 (read_set_type): Likewise.
1117 (read_common_block): Likewise.
1118 (read_tag_reference_type): Likewise.
1119 (read_tag_string_type): Likewise.
1120 (read_subroutine_type): Likewise.
1121 (read_base_type): Likewise.
1122 (read_subrange_type): Likewise.
1123 (new_symbol): Likewise.
1124 (prepare_one_comp_unit): Likewise.
1125
1126 2019-11-19 Tom Tromey <tromey@adacore.com>
1127
1128 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1129 result in error when DebugActiveProcess fails.
1130
1131 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1132 Pedro Alves <palves@redhat.com>
1133
1134 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1135 * target.c (target_stack::push): Call 'unpush' if there's a
1136 target on top of the stack.
1137
1138 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1139
1140 * python/py-block.c (blpy_dealloc): Call tp_free.
1141 (blpy_block_syms_dealloc): Likewise.
1142 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1143 * python/py-inferior.c (infpy_dealloc): Likewise.
1144 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1145 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1146 * python/py-symbol.c (sympy_dealloc): Likewise.
1147 * python/py-symtab.c (stpy_dealloc): Likewise.
1148 * python/py-type.c (typy_iterator_dealloc): Likewise.
1149
1150 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1151
1152 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1153 constructor instead of using a class initializer.
1154
1155 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1156
1157 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1158 * configure: Regenerate.
1159 * configure.ac: Don't source common.host.
1160 * gdbsupport/common.host: Remove.
1161 * gdbsupport/mingw-strerror.c: Remove.
1162 * gdbsupport/posix-strerror.c: Rename to...
1163 * gdbsupport/safe-strerror.c: ...this.
1164
1165 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1166
1167 * maint.c (scoped_command_stats::print_time): Use localtime_r
1168 instead of localtime (provided through gnulib if necessary).
1169 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1170 of ctime.
1171
1172 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1173
1174 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1175 avoid compile errors.
1176
1177 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1178
1179 * config.in: Regenerate.
1180 * configure: Regenerate.
1181 * gdbsupport/common.m4: No longer check for strerror_r.
1182 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1183 POSIX version of strerror_r, now that gnulib provides it if
1184 necessary.
1185
1186 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1187
1188 * README (`configure' options): Update.
1189
1190 2019-11-14 Tom Tromey <tromey@adacore.com>
1191
1192 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1193 expected type for the RHS if the LHS is a convenience variable.
1194
1195 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1198 Provide explicit default and copy constructor.
1199
1200 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1201
1202 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1203 only call Py_INCREF (newbp) in the bppy_pending_object case.
1204
1205 2019-11-13 Tom Tromey <tromey@adacore.com>
1206
1207 PR build/25182:
1208 * psympriv.h (partial_symbol): Remove static assert.
1209 * symtab.h (general_symbol_info, symbol): Remove static assert.
1210
1211 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * gdbsupport/format.c (format_pieces::format_pieces): Support
1214 printf 'z' size modifier.
1215 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1216 * printcmd.c (ui_printf): Handle size_t_arg.
1217 * ui-out.c (ui_out::vmessage): Likewise.
1218 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1219 function.
1220 (run_tests): Call test_format_int_sizes.
1221
1222 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1223
1224 * ada-exp.y (write_ambiguous_var): Update.
1225 * buildsym.c (add_symbol_to_list): Update.
1226 * dwarf2read.c (read_variable): Update.
1227 (new_symbol): Update.
1228 * jit.c (finalize_symtab): Update.
1229 * language.c (language_alloc_type_symbol): Update.
1230 * symtab.c (fixup_symbol_section): Update.
1231 (initialize_objfile_symbol_1): Move code to...
1232 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1233 (allocate_symbol): Update.
1234 (allocate_template_symbol): Update.
1235 (get_symbol_address): Update.
1236 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1237 of having as a field, and add a constructor.
1238 (SYMBOL_VALUE): Update.
1239 (SYMBOL_VALUE_ADDRESS): Update.
1240 (SET_SYMBOL_VALUE_ADDRESS): Update.
1241 (SYMBOL_VALUE_BYTES): Update.
1242 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1243 (SYMBOL_BLOCK_VALUE): Update.
1244 (SYMBOL_VALUE_CHAIN): Update.
1245 (SYMBOL_LANGUAGE): Update.
1246 (SYMBOL_SECTION): Update.
1247 (SYMBOL_OBJ_SECTION): Update.
1248 (SYMBOL_SET_LANGUAGE): Update.
1249 (SYMBOL_SET_LINKAGE_NAME): Update.
1250 (SYMBOL_SET_NAMES): Update.
1251 (SYMBOL_NATURAL_NAME): Update.
1252 (SYMBOL_LINKAGE_NAME): Update.
1253 (SYMBOL_DEMANGLED_NAME): Update.
1254 (SYMBOL_SEARCH_NAME): Update.
1255 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1256 (struct symbol): Update.
1257 (struct template_symbol): Update.
1258 (struct rust_vtable_symbol): Update.
1259 * xcoffread.c (SYMBOL_DUP): Update.
1260
1261 2019-11-12 Tom Tromey <tom@tromey.com>
1262
1263 * tui/tui-layout.c (show_layout): Set current_layout.
1264 (show_source_disasm_command, show_data)
1265 (show_source_or_disasm_and_command): Don't set current_layout.
1266
1267 2019-11-12 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1270
1271 2019-11-12 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-win.c (resize_message): New global.
1274 (show_tui_resize_message): New function.
1275 (tui_async_resize_screen): Print message if requested.
1276 (_initialize_tui_win): Add tui-resize-message setting.
1277 * NEWS: Add entry for new commands.
1278
1279 2019-11-11 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1282 functions.
1283
1284 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1285
1286 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1287
1288 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1291 function.
1292 * python/python-internal.h (gdbpy_lookup_static_symbols):
1293 Declare new function.
1294 * python/python.c (python_GdbMethods): Add
1295 gdb.lookup_static_symbols method.
1296 * NEWS: Mention gdb.lookup_static_symbols.
1297
1298 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1301 static block of current object file first. Also fix typo in
1302 header comment.
1303
1304 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * stack.c (set_last_displayed_sal): Delete.
1307 (last_displayed_sal_valid): Delete.
1308 (last_displayed_pspace): Delete.
1309 (last_displayed_addr): Delete.
1310 (last_displayed_symtab): Delete.
1311 (last_displayed_line): Delete.
1312 (class last_displayed_symtab_info_type): New.
1313 (last_displayed_symtab_info): New static global variable.
1314 (print_frame_info): Call methods on last_displayed_symtab_info.
1315 (clear_last_displayed_sal): Update header comment, and make use of
1316 last_displayed_symtab_info.
1317 (last_displayed_sal_is_valid): Likewise.
1318 (get_last_displayed_pspace): Likewise.
1319 (get_last_displayed_addr): Likewise.
1320 (get_last_displayed_symtab): Likewise.
1321 (get_last_displayed_line): Likewise.
1322 (get_last_displayed_sal): Likewise.
1323 * stack.h (clear_last_displayed_sal): Update header comment.
1324 (last_displayed_sal_is_valid): Likewise.
1325 (get_last_displayed_pspace): Likewise.
1326 (get_last_displayed_addr): Likewise.
1327 (get_last_displayed_symtab): Likewise.
1328 (get_last_displayed_line): Likewise.
1329 (get_last_displayed_sal): Likewise.
1330
1331 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * stack.c (frame_show_address): Convert return type to bool.
1334 * stack.h (frame_show_address): Likewise, and update header
1335 comment.
1336
1337 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1340 * unittests/vec-utils-selftests.c: New file.
1341 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1342
1343 2019-11-10 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1346 (tui_highlight_win): Likewise.
1347 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1348 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1349 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1350 Don't set can_highlight.
1351
1352 2019-11-10 Tom Tromey <tom@tromey.com>
1353
1354 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1355 Remove unused declaration.
1356
1357 2019-11-08 Tom Tromey <tromey@adacore.com>
1358
1359 * top.c (read_command_file): Update.
1360 (command_line_input): Make return type const.
1361 * python/py-gdb-readline.c: Update.
1362 * linespec.c (decode_line_2): Update.
1363 * defs.h (command_line_input): Make return type const.
1364 * cli/cli-script.c (read_next_line): Make return type const.
1365 * ada-lang.c (get_selections): Update.
1366
1367 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1368
1369 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1370 * mi/mi-main.c (output_cores): Likewise.
1371 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1372 (linux_xfer_osdata_modules): Likewise.
1373 * remote.c (register_remote_support_xml): Likewise.
1374 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1375 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1376
1377 2019-11-06 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-interp.c: Don't include readline.h.
1380 * tui/tui-hooks.c: Don't include readline.h.
1381 * symmisc.c: Include tilde.h, not readline.h.
1382 * symfile.c: Include tilde.h, not readline.h.
1383 * source.c: Include tilde.h, not readline.h.
1384 * solib.c: Include tilde.h, not readline.h.
1385 * psymtab.c: Include tilde.h, not readline.h.
1386 * exec.c: Include tilde.h, not readline.h.
1387 * corelow.c: Include tilde.h, not readline.h.
1388 * cli/cli-dump.c: Include tilde.h, not readline.h.
1389 * cli/cli-cmds.c: Don't include readline.h.
1390
1391 2019-11-05 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1394 (tui_disassemble): Set addr_size.
1395 (tui_disasm_window::set_contents): Use addr_size.
1396
1397 2019-11-05 Tom Tromey <tom@tromey.com>
1398
1399 * rust-lang.c (rust_language_defn): Update.
1400 * python/py-value.c (valpy_string): Call c_get_string.
1401 * p-lang.c (pascal_language_defn): Update.
1402 * opencl-lang.c (opencl_language_defn): Update.
1403 * objc-lang.c (objc_language_defn): Update.
1404 * m2-lang.c (m2_language_defn): Update.
1405 * language.c (unknown_language_defn, auto_language_defn): Update.
1406 (default_get_string): Remove.
1407 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1408 * go-lang.c (go_language_defn): Update.
1409 * f-lang.c (f_language_defn): Update.
1410 * d-lang.c (d_language_defn): Update.
1411 * c-lang.c (c_language_defn, cplus_language_defn)
1412 (asm_language_defn, minimal_language_defn): Update.
1413 * ada-lang.c (ada_language_defn): Update.
1414 * language.h (struct language_defn) <la_get_string>: Remove.
1415 (LA_GET_STRING): Remove.
1416 (default_get_string): Don't declare.
1417
1418 2019-11-05 Tom Tromey <tom@tromey.com>
1419
1420 * tui/tui-source.h (struct tui_source_window): Inline
1421 constructor. Remove destructor.
1422 <style_changed, m_observable>: Move to superclass.
1423 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1424 (struct tui_source_window_base): Move private members to end.
1425 <style_changed, m_observable>: Move from tui_source_window.
1426 * tui/tui-winsource.c (tui_copy_source_line): Move from
1427 tui-source.c. Rename from copy_source_line. Add special handling
1428 for negative line number.
1429 (tui_source_window_base::style_changed): Move from
1430 tui_source_window.
1431 (tui_source_window_base): Register observer.
1432 (~tui_source_window_base): New.
1433 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1434 rename.
1435 (tui_source_window::set_contents): Use tui_copy_source_line.
1436 (tui_source_window::tui_source_window): Move to tui-source.h.
1437 (tui_source_window::~tui_source_window): Remove.
1438 (tui_source_window::style_changed): Move to superclass.
1439 * tui/tui-disasm.c (tui_disassemble): Create string file with
1440 styling, when possible. Add "addr_size" parameter.
1441 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1442 Don't compute maximum size.
1443 (len_without_escapes): New function
1444
1445 2019-11-05 Tom Tromey <tom@tromey.com>
1446
1447 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1448 std::string.
1449 * tui/tui-winsource.c (tui_show_source_line): Update.
1450 * tui/tui-source.c (tui_source_window::set_contents): Update.
1451 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1452
1453 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1454
1455 * symtab.h (gdb_static_assert): Put && operator at the beginning
1456 of the line instead of the end.
1457
1458 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1459
1460 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1461 and sizeof (symbol).
1462 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1463
1464 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1465
1466 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1467 * configure.host: Mark *-*-solaris2.10* obsolete.
1468 * configure.tgt: Mark Solaris < 11 obsolete.
1469 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1470 Update target triplet.
1471
1472 2019-11-01 Tom Tromey <tromey@adacore.com>
1473
1474 * utils.c (print_sys_errmsg): Simplify.
1475
1476 2019-11-01 Tom Tromey <tromey@adacore.com>
1477
1478 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1479
1480 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1481
1482 * configure: Regenerate.
1483 * configure.ac: Remove check for strerror_r.
1484 * gdbsupport/common.m4: Check for strerror_r.
1485
1486 2019-11-01 Luis Machado <luis.machado@linaro.org>
1487
1488 PR gdb/25124
1489
1490 * arm-tdep.c (arm_per_objfile): Rename to ...
1491 (arm_per_bfd): ... this.
1492 (arm_objfile_data_key): Rename to ...
1493 (arm_bfd_data_key): ... this.
1494 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1495 data.
1496 (arm_record_special_symbol): Likewise.
1497
1498 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1499
1500 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1501 end.
1502 * c-typeprint.c (c_print_typedef): Likewise.
1503 * f-typeprint.c (f_print_typedef): Likewise.
1504 * m2-typeprint.c (m2_print_typedef): Likewise.
1505 * p-typeprint.c (pascal_print_typedef): Likewise.
1506 * rust-lang.c (rust_print_typedef): Likewise.
1507 * symtab.c (print_symbol_info): Print a newline after calling
1508 typedef_print.
1509
1510 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * symtab.c (info_module_cmdlist): New variable.
1513 (info_module_command): New function.
1514 (search_module_symbols): New function.
1515 (info_module_subcommand): New function.
1516 (struct info_modules_var_func_options): New struct.
1517 (info_modules_var_func_options_defs): New variable.
1518 (make_info_modules_var_func_options_def_group): New function.
1519 (info_module_functions_command): New function.
1520 (info_module_variables_command): New function.
1521 (info_module_var_func_command_completer): New function.
1522 (_initialize_symtab): Register new 'info module functions' and
1523 'info module variables' commands.
1524 * symtab.h (typedef symbol_search_in_module): New typedef.
1525 (search_module_symbols): Declare new function.
1526 * NEWS: Mention new commands.
1527
1528 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1531 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1532 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1533 MODULES_DOMAIN.
1534 (scan_partial_symbols): Only create partial module symbols for non
1535 declarations.
1536 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1537 and MODULES_DOMAIN.
1538 * symtab.c (search_domain_name): Likewise.
1539 (search_symbols): Likewise.
1540 (print_symbol_info): Likewise.
1541 (symtab_symbol_info): Likewise.
1542 (info_modules_command): New function.
1543 (_initialize_symtab): Register 'info modules' command.
1544 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1545 * NEWS: Mention new 'info modules' command.
1546
1547 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1548
1549 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1550 and $_gdb_maint_setting_str.
1551
1552 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1553
1554 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1555 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1556 (str_value_from_setting, gdb_setting_str_internal_fn)
1557 (gdb_maint_setting_str_internal_fn): New functions.
1558 (_initialize_cli_cmds): Define the new convenience functions.
1559 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1560 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1561
1562 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1563
1564 * agent.c (set_can_use_agent): When the setting is turned on,
1565 look up agent symbols if we don't have them yet.
1566 (agent_new_objfile): Don't look up agent symbols when the agent
1567 setting is off.
1568
1569 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1570
1571 * config.in: Regenerate.
1572
1573 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1574
1575 * configure: Regenerate.
1576 * configure.ac: Check for strerror_r.
1577 * gdbsupport/common-utils.h (safe_strerror): Change return value
1578 to const char * and document that this function is now threadsafe.
1579 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1580 thread_local and call strerror_r, if available.
1581 * utils.c (perror_string): Update.
1582 (print_sys_errmsg): Update.
1583
1584 2019-10-31 Luis Machado <luis.machado@linaro.org>
1585
1586 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1587 objfile_key.
1588 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1589 objfile to fetch per-bfd data.
1590 (arm_find_exidx_entry): Likewise.
1591
1592 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1593
1594 * gdbsupport/agent.c (debug_agent): Change type to bool.
1595 (use_agent): Likewise.
1596 (all_agent_symbols_look_up): Likewise.
1597 (agent_loaded_p): Change return value to bool.
1598 (agent_look_up_symbols): Update.
1599 (agent_capability_check): Change return value to bool.
1600 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1601 (debug_agent): Change type to bool.
1602 (use_agent): Likewise.
1603 (agent_capability_check): Change return value to bool.
1604
1605 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1606
1607 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1608 (build_minimal_symbol_hash_tables): Code to clear the table moved
1609 to clear_minimal_symbol_hash_tables.
1610 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1611 when needed.
1612
1613 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * infcmd.c: Remove includes.
1616 * infrun.c: Remove includes.
1617
1618 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1621 (grow_vect): Remove declaration.
1622 (ada_type_of_array): Remove declaration.
1623 (ada_update_initial_language): Remove declaration.
1624 (ada_fold_name): Remove declaration.
1625 (ada_fill_in_ada_prototype): Remove declaration.
1626 (user_select_syms): Remove declaration.
1627 (get_selections): Remove declaration.
1628 (ada_tag_type): Remove declaration.
1629 (ada_value_tag): Remove declaration.
1630 (ada_is_others_clause): Remove declaration.
1631 (ada_in_variant): Remove declaration.
1632 (ada_value_struct_elt): Remove declaration.
1633 (ada_attribute_name): Remove declaration.
1634 (ada_system_address_type): Remove declaration.
1635 * ada-lang.c (ada_watch_location_expression): Make static.
1636 (GROW_VECT): Move here from ada-lang.h.
1637 (grow_vect): Make static.
1638 (ada_update_initial_language): Make static.
1639 (ada_fold_name): Make static.
1640 (ada_type_of_array): Make static.
1641 (encoded_ordered_before): Move up.
1642 (sort_choices): Move up.
1643 (print_signatures): Move up.
1644 (ada_print_symbol_signature): Move up.
1645 (get_selections): Move up and make static.
1646 (user_select_syms): Move up and make static.
1647 (ada_value_struct_elt): Move up and make static.
1648 (ada_tag_type): Make static.
1649 (ada_value_tag): Make static.
1650 (ada_is_others_clause): Make static.
1651 (ada_in_variant): Make static.
1652 (ada_attribute_name): Make static.
1653
1654 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 * ada-lang.c: Remove includes.
1657 * ada-typeprint.c: Remove includes.
1658 * ada-valprint.c: Remove includes.
1659
1660 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * addrmap.c: Add static assertions of type size, moved from
1663 _initialize_addrmap.
1664 (_initialize_addrmap): Remove.
1665
1666 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1667
1668 * coffread.c (record_minimal_symbol): Update.
1669 (process_coff_symbol): Update.
1670 * dbxread.c (read_dbx_symtab): Update.
1671 * dwarf2read.c (add_partial_symbol): Update.
1672 (fixup_go_packaging): Update.
1673 (load_partial_dies): Update.
1674 (new_symbol): Update.
1675 * elfread.c (record_minimal_symbol): Change signature to use
1676 gdb::string_view instead of name+len.
1677 (elf_symtab_read): Update.
1678 (elf_rel_plt_read): Update.
1679 * mdebugread.c (parse_partial_symbols): Update.
1680 (handle_psymbol_enumerators): Update.
1681 (new_symbol): Update.
1682 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1683 to use gdb::string_view instead of name+len.
1684 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1685 * psympriv.h (add_psymbol_to_list): Likewise.
1686 * psymtab.c (add_psymbol_to_bcache): Likewise.
1687 (add_psymbol_to_list): Likewise.
1688 * stabsread.c (define_symbol): Update.
1689 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1690 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1691 (symbol_set_names): Likewise.
1692 * xcoffread.c (scan_xcoff_symtab): Update.
1693
1694 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1695
1696 * symtab.h (symbol_set_names): Document that copy_name must be
1697 set to true for non-nullterminated strings.
1698 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1699 linkage_name if the entry was not found and we need to demangle.
1700
1701 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1702
1703 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1704 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1705 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1706 * gdbsupport/gdb_binary_search.h: New file.
1707
1708 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1709
1710 * NEWS: Mention new --with-system-gdbinit-dir option.
1711 * config.in: Regenerate.
1712 * configure: Regenerate.
1713 * configure.ac: Add new option --with-system-gdbinit-dir.
1714 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1715 for a ".gdb" suffix.
1716 * main.c (get_init_files): Change system_gdbinit argument to
1717 a vector and return the files in SYSTEM_GDBINIT_DIR in
1718 addition to SYSTEM_GDBINIT.
1719 (captured_main_1): Update.
1720 (print_gdb_help): Update.
1721 * top.c (print_gdb_configuration): Also print the value of
1722 SYSTEM_GDBINIT_DIR.
1723
1724 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1725
1726 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1727 that takes gdb::string_view arguments.
1728
1729 2019-10-26 Tom de Vries <tdevries@suse.de>
1730
1731 * aarch64-linux-tdep.c: Fix typos in comments.
1732 * aarch64-tdep.c: Same.
1733 * ada-lang.c: Same.
1734 * amd64-nat.c: Same.
1735 * arc-tdep.c: Same.
1736 * arch/aarch64-insn.c: Same.
1737 * block.c: Same.
1738 * breakpoint.h: Same.
1739 * btrace.h: Same.
1740 * c-varobj.c: Same.
1741 * cli/cli-decode.c: Same.
1742 * cli/cli-script.c: Same.
1743 * cli/cli-utils.h: Same.
1744 * coff-pe-read.c: Same.
1745 * coffread.c: Same.
1746 * compile/compile-cplus-symbols.c: Same.
1747 * compile/compile-object-run.c: Same.
1748 * completer.c: Same.
1749 * corelow.c: Same.
1750 * cp-support.c: Same.
1751 * demangle.c: Same.
1752 * dwarf-index-write.c: Same.
1753 * dwarf2-frame.c: Same.
1754 * dwarf2-frame.h: Same.
1755 * eval.c: Same.
1756 * frame-base.h: Same.
1757 * frame.h: Same.
1758 * gdbcmd.h: Same.
1759 * gdbtypes.h: Same.
1760 * gnu-nat.c: Same.
1761 * guile/scm-objfile.c: Same.
1762 * i386-tdep.c: Same.
1763 * i386-tdep.h: Same.
1764 * infcall.c: Same.
1765 * infcall.h: Same.
1766 * linux-nat.c: Same.
1767 * m68k-tdep.c: Same.
1768 * macroexp.c: Same.
1769 * memattr.c: Same.
1770 * mi/mi-cmd-disas.c: Same.
1771 * mi/mi-getopt.h: Same.
1772 * mi/mi-main.c: Same.
1773 * minsyms.c: Same.
1774 * nat/aarch64-sve-linux-sigcontext.h: Same.
1775 * objfiles.h: Same.
1776 * ppc-linux-nat.c: Same.
1777 * ppc-linux-tdep.c: Same.
1778 * ppc-tdep.h: Same.
1779 * progspace.h: Same.
1780 * prologue-value.h: Same.
1781 * python/py-evtregistry.c: Same.
1782 * python/py-instruction.h: Same.
1783 * record-btrace.c: Same.
1784 * record-full.c: Same.
1785 * remote.c: Same.
1786 * rs6000-tdep.c: Same.
1787 * ser-tcp.c: Same.
1788 * sol-thread.c: Same.
1789 * sparc-sol2-tdep.c: Same.
1790 * sparc64-tdep.c: Same.
1791 * stabsread.c: Same.
1792 * symfile.c: Same.
1793 * symtab.h: Same.
1794 * target.c: Same.
1795 * tracepoint.c: Same.
1796 * tui/tui-data.h: Same.
1797 * tui/tui-io.c: Same.
1798 * tui/tui-win.c: Same.
1799 * tui/tui.c: Same.
1800 * unittests/rsp-low-selftests.c: Same.
1801 * user-regs.h: Same.
1802 * utils.c: Same.
1803 * utils.h: Same.
1804 * valarith.c: Same.
1805 * valops.c: Same.
1806 * valprint.c: Same.
1807 * valprint.h: Same.
1808 * value.c: Same.
1809 * value.h: Same.
1810 * varobj.c: Same.
1811 * x86-nat.h: Same.
1812 * xtensa-tdep.c: Same.
1813
1814 2019-10-25 Ali Tamur <tamur@google.com>
1815
1816 * charset.c (find_charset_names): Reflect API change.
1817
1818 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1819
1820 * symtab.c (struct demangled_name_entry): Change demangled name
1821 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1822 part of the struct anymore.
1823 (symbol_set_names): No longer obstack allocate + copy the demangled
1824 name, just store the allocated name from bfd.
1825
1826 2019-10-25 Tom Tromey <tromey@adacore.com>
1827
1828 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1829 (bsearch_cie_cmp, add_cie): Remove.
1830 (find_cie): Reimplement.
1831 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1832 (dwarf2_build_frame_info): Update.
1833
1834 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1835
1836 PR gdb/25126
1837 * symfile.c (reread_symbols): Call forget_cached_source_info to
1838 clear the stale source cache.
1839
1840 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1841
1842 * configure: Regenerate.
1843 * configure.ac: Remove code that sets python_has_threads.
1844
1845 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1846
1847 * config.in: Regenerate.
1848 * configure: Regenerate.
1849 * configure.ac: Remove the code that uses sed to get the python
1850 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1851
1852 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1855 error paths.
1856
1857 2019-10-23 Tom Tromey <tom@tromey.com>
1858
1859 * arc-tdep.c: Remove ".." from include.
1860 * frv-tdep.c: Remove ".." from include.
1861 * lm32-tdep.c: Remove ".." from include.
1862 * microblaze-tdep.c: Remove ".." from include.
1863 * or1k-tdep.h: Remove ".." from include.
1864 * s12z-tdep.c: Remove ".." from include.
1865 * Makefile.in (OPCODES_CFLAGS): Add comment.
1866 (TOP_CFLAGS): New variable.
1867 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1868
1869 2019-10-23 Tom Tromey <tom@tromey.com>
1870
1871 * Makefile.in (READLINE_DIR): Update.
1872
1873 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874
1875 * infcall.c (call_function_by_hand_dummy): Fix the function
1876 comment. And extract out a code section into...
1877 (reserve_stack_space): ...this new function.
1878
1879 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1880
1881 * infcall.c (value_arg_coerce): Remove an unused parameter.
1882 (call_function_by_hand_dummy): Update the call to
1883 'value_arg_coerce'.
1884
1885 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1886
1887 * infcall.c (call_function_by_hand_dummy): Refactor.
1888
1889 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1890
1891 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1892
1893 2019-10-23 Tom Tromey <tom@tromey.com>
1894
1895 * configure: Rebuild.
1896 * configure.ac: Don't check for sigprocmask.
1897 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1898
1899 2019-10-23 Tom Tromey <tom@tromey.com>
1900
1901 * configure: Rebuild.
1902 * acinclude.m4: Use m4_include, not sinclude.
1903
1904 2019-10-23 Tom de Vries <tdevries@suse.de>
1905
1906 PR breakpoints/24687
1907 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1908
1909 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1910
1911 * symtab.c (struct demangled_name_entry) <language>: Change from
1912 bitfield to regular variable.
1913
1914 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1915
1916 * symtab.c (struct demangled_name_entry): Add a constructor.
1917 (free_demangled_name_entry): New function to call the destructor
1918 for demangled_name_entry.
1919 (create_demangled_names_hash): Pass free_demangled_name_entry to
1920 htab_create_alloc.
1921 (symbol_set_names): Call placement new for demangled_name_entry.
1922 * utils.c: No longer include xxhash.h here, now that fast_hash
1923 is inlined in the header.
1924 * utils.h: Instead, include it here.
1925
1926 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1927
1928 * Makefile.in: Link with libxxhash.
1929 * config.in: Regenerate.
1930 * configure: Regenerate.
1931 * configure.ac: Search for libxxhash.
1932 * utils.c (fast_hash): Use xxhash if present.
1933
1934 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1935
1936 * utils.h (fast_hash): New function.
1937 * symtab.c (hash_demangled_name_entry): Call new function
1938 fast_hash.
1939
1940 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1941
1942 * symtab.c (struct demangled_name_entry): Change type of mangled
1943 to gdb::string_view. Also adds a constructor that takes the
1944 mangled name.
1945 (hash_demangled_name_entry): Update.
1946 (eq_demangled_name_entry): Update.
1947 (free_demangled_name_entry): New function to call the destructor
1948 now that this is not a POD anymore.
1949 (create_demangled_names_hash): Pass free_demangled_name_entry to
1950 htab_create_alloc.
1951 (symbol_set_names): Update.
1952
1953 2019-10-21 Ali Tamur <tamu@google.com>
1954
1955 * dwarf2read.c (dir_index): Change type.
1956 (file_name_index): Likewise.
1957 (line_header::include_dir_at): Change comment and implementation on
1958 whether it is DWARF 5.
1959 (line_header::is_valid_file_index): New function.
1960 (line_header::file_name_at): Change comment and implementation on
1961 whether it is DWARF 5.
1962 (line_header::file_names): Change to private field renamed as
1963 m_file_names and introduce a new accessor method.
1964 (line_header::file_names_size): New method.
1965 (line_header::include_dirs): Change to private field and rename as
1966 m_include_dirs.
1967 (dw2_get_file_names_reader): Define local var at a smaller scope and
1968 reflect API change.
1969 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1970 (process_structure_scope): Likewise.
1971 (line_header::add_include_dir): Change message and reflect renaming.
1972 (line_header::add_file_name): Likewise.
1973 (read_formatted_entries): Handle DW_FORM_data16.
1974 (dwarf_decode_line_header): Fix line header length calculation.
1975 (psymtab_include_file_name): Change comment and API.
1976 (lnp_state_machine::m_file): Update comment and reflect type change.
1977 (lnp_state_machine::record_line): Reflect type change.
1978 (dwarf_decode_lines): Reflect API change.
1979 (file_file_name): Likewise.
1980 (file_full_name): Likewise.
1981
1982 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1985
1986 2019-10-21 Tom Tromey <tom@tromey.com>
1987
1988 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1989
1990 2019-10-21 Tom Tromey <tom@tromey.com>
1991
1992 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1993 NM_H. Use AC_CONFIG_LINKS.
1994 * configure: Rebuild.
1995 * Makefile.in (NM_H): New variable.
1996 (generated_files): Add NM_H. Remove gcore.
1997 (nm.h, stamp-nmh): New targets.
1998
1999 2019-10-20 Tom Tromey <tom@tromey.com>
2000
2001 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2002 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2003 obsolete comment.
2004 (put_objfile_before): Now static.
2005
2006 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2007
2008 * gdbsupport/common-utils.h (startswith): Change return type to
2009 bool.
2010
2011 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2012
2013 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2014 * breakpoint.c (bp_locations_compare): Rename to...
2015 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2016 (update_global_location_list): Use std::sort instead of qsort.
2017 * buildsym.c (compare_line_numbers): Rename to...
2018 (lte_is_less_than): ...this, and change to std::sort semantics.
2019 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2020 instead of qsort.
2021 * disasm.c (compare_lines): Rename to...
2022 (line_is_less_than): ...this, and change to std::sort semantics.
2023 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2024 of qsort.
2025 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2026 (fde_is_less_than): ...this, and change to std::sort semantics.
2027 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2028 * mdebugread.c (compare_blocks):
2029 (block_is_less_than): ...this, and change to std::sort semantics.
2030 (sort_blocks): Call std::sort instead of qsort.
2031 * objfiles.c (qsort_cmp): Rename to...
2032 (sort_cmp): ...this, and change to std::sort semantics.
2033 (update_section_map): Call std::sort instead of qsort.
2034 * remote.c (compare_pnums): Remove.
2035 (map_regcache_remote_table): Call std::sort instead of qsort.
2036 * utils.c (compare_positive_ints): Remove.
2037 * utils.h (compare_positive_ints): Remove.
2038 * xcoffread.c (compare_lte): Remove.
2039 (arrange_linetable): Call std::sort instead of qsort.
2040
2041 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2042
2043 * symfile.c (init_entry_point_info): Fix typo.
2044 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2045
2046 2019-10-18 Tom de Vries <tdevries@suse.de>
2047
2048 * aarch64-tdep.c: Fix typos in comments.
2049 * ada-lang.c: Same.
2050 * ada-tasks.c: Same.
2051 * alpha-tdep.c: Same.
2052 * alpha-tdep.h: Same.
2053 * amd64-nat.c: Same.
2054 * amd64-windows-tdep.c: Same.
2055 * arc-tdep.c: Same.
2056 * arc-tdep.h: Same.
2057 * arch-utils.c: Same.
2058 * arm-nbsd-tdep.c: Same.
2059 * arm-tdep.c: Same.
2060 * ax-gdb.c: Same.
2061 * blockframe.c: Same.
2062 * btrace.c: Same.
2063 * c-varobj.c: Same.
2064 * coff-pe-read.c: Same.
2065 * coffread.c: Same.
2066 * cris-tdep.c: Same.
2067 * darwin-nat.c: Same.
2068 * dbxread.c: Same.
2069 * dcache.c: Same.
2070 * disasm.c: Same.
2071 * dtrace-probe.c: Same.
2072 * dwarf-index-write.c: Same.
2073 * dwarf2-frame-tailcall.c: Same.
2074 * dwarf2-frame.c: Same.
2075 * dwarf2read.c: Same.
2076 * eval.c: Same.
2077 * exceptions.c: Same.
2078 * fbsd-tdep.c: Same.
2079 * findvar.c: Same.
2080 * frame.c: Same.
2081 * frv-tdep.c: Same.
2082 * gnu-v3-abi.c: Same.
2083 * go32-nat.c: Same.
2084 * h8300-tdep.c: Same.
2085 * hppa-tdep.c: Same.
2086 * i386-linux-tdep.c: Same.
2087 * i386-tdep.c: Same.
2088 * ia64-libunwind-tdep.c: Same.
2089 * ia64-tdep.c: Same.
2090 * infcmd.c: Same.
2091 * infrun.c: Same.
2092 * linespec.c: Same.
2093 * linux-nat.c: Same.
2094 * linux-thread-db.c: Same.
2095 * machoread.c: Same.
2096 * mdebugread.c: Same.
2097 * mep-tdep.c: Same.
2098 * mn10300-tdep.c: Same.
2099 * namespace.c: Same.
2100 * objfiles.c: Same.
2101 * opencl-lang.c: Same.
2102 * or1k-tdep.c: Same.
2103 * osabi.c: Same.
2104 * ppc-linux-nat.c: Same.
2105 * ppc-linux-tdep.c: Same.
2106 * ppc-sysv-tdep.c: Same.
2107 * printcmd.c: Same.
2108 * procfs.c: Same.
2109 * record-btrace.c: Same.
2110 * record-full.c: Same.
2111 * remote-fileio.c: Same.
2112 * remote.c: Same.
2113 * rs6000-tdep.c: Same.
2114 * s12z-tdep.c: Same.
2115 * score-tdep.c: Same.
2116 * ser-base.c: Same.
2117 * ser-go32.c: Same.
2118 * skip.c: Same.
2119 * sol-thread.c: Same.
2120 * solib-svr4.c: Same.
2121 * solib.c: Same.
2122 * source.c: Same.
2123 * sparc-nat.c: Same.
2124 * sparc-sol2-tdep.c: Same.
2125 * sparc-tdep.c: Same.
2126 * sparc64-tdep.c: Same.
2127 * stabsread.c: Same.
2128 * stack.c: Same.
2129 * symfile.c: Same.
2130 * symtab.c: Same.
2131 * target-descriptions.c: Same.
2132 * target-float.c: Same.
2133 * thread.c: Same.
2134 * utils.c: Same.
2135 * valops.c: Same.
2136 * valprint.c: Same.
2137 * value.c: Same.
2138 * varobj.c: Same.
2139 * windows-nat.c: Same.
2140 * xcoffread.c: Same.
2141 * xstormy16-tdep.c: Same.
2142 * xtensa-tdep.c: Same.
2143
2144 2019-10-17 Tom Tromey <tromey@adacore.com>
2145
2146 * configure: Rebuild.
2147 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2148 in AC_CONFIG_FILES invocation.
2149 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2150 new-style config.status invocation.
2151
2152 2019-10-17 Tom de Vries <tdevries@suse.de>
2153
2154 * arm-nbsd-nat.c: Fix typos in comments.
2155 * arm-tdep.c: Same.
2156 * darwin-nat-info.c: Same.
2157 * dwarf2read.c: Same.
2158 * elfread.c: Same.
2159 * event-top.c: Same.
2160 * findvar.c: Same.
2161 * gdbtypes.c: Same.
2162 * hppa-tdep.c: Same.
2163 * i386-tdep.c: Same.
2164 * jit.c: Same.
2165 * main.c: Same.
2166 * mdebugread.c: Same.
2167 * moxie-tdep.c: Same.
2168 * nto-procfs.c: Same.
2169 * osabi.c: Same.
2170 * ppc-linux-tdep.c: Same.
2171 * remote.c: Same.
2172 * riscv-tdep.c: Same.
2173 * s390-tdep.c: Same.
2174 * sh-tdep.c: Same.
2175 * sparc-linux-tdep.c: Same.
2176 * sparc-nat.c: Same.
2177 * stack.c: Same.
2178 * target-descriptions.c: Same.
2179 * top.c: Same.
2180 * varobj.c: Same.
2181
2182 2019-10-16 Tom Tromey <tom@tromey.com>
2183
2184 * objfiles.h (struct objfile) <original_name>: Now const.
2185
2186 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2187
2188 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2189 pass on to sigsetjmp's second argument.
2190 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2191
2192 2019-10-16 Keith Seitz <keiths@redhat.com>
2193
2194 PR gdb/23567
2195 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2196 sections whose size is greater than the file size.
2197
2198 2019-10-16 Jim Wilson <jimw@sifive.com>
2199
2200 * riscv-tdep.c (riscv_gcc_target_options): New.
2201 (riscv_gnu_triplet_regexp): New.
2202 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2203 set_gdbarch_gnu_triplet_regexp.
2204
2205 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2206
2207 * Makefile.in: Add xml-builtin.h.
2208 * features/feature_to_c.sh: Add an include for xml-builtin.h
2209 to ensure that the compiler checks that the types match.
2210 * xml-builtin.h: New file.
2211 * xml-support.c (fetch_xml_builtin): Add missing const.
2212 * xml-support.h: Remove declaration of xml_builtins.
2213
2214 2019-10-16 Tom de Vries <tdevries@suse.de>
2215
2216 PR tdep/25096
2217 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2218 (amd64_classify_aggregate): ... here.
2219 (amd64_classify_aggregate_field): Handled fiels of nested structs
2220 recursively.
2221
2222 2019-10-16 Tom de Vries <tdevries@suse.de>
2223
2224 PR tdep/24104
2225 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2226 that handles 'theclass'.
2227
2228 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * linespec.c (decode_digits_ordinary): Update comment.
2231 * make-target-delegates: No longer need to handle VEC case.
2232 * memrange.c (normalize_mem_ranges): Update comment.
2233 * namespace.c (add_using_directive): Update comment.
2234 * objc-lang.c (uniquify_strings): Update comment.
2235 * ppc-linux-nat.c (struct thread_points): Update comment.
2236 * probe.h (find_probes_in_objfile): Update comment.
2237 * target.h (enum flash_preserve_mode): Update comment.
2238 * varobj.c (varobj_restrict_range): Update comment.
2239 * varobj.h (varobj_list_children): Update comment.
2240
2241 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * Makefile.in: Remove references to vec.h and vec.c.
2244 * aarch64-tdep.c: No longer include vec.h.
2245 * ada-lang.c: Likewise.
2246 * ada-lang.h: Likewise.
2247 * arm-tdep.c: Likewise.
2248 * ax.h: Likewise.
2249 * breakpoint.h: Likewise.
2250 * charset.c: Likewise.
2251 * cp-support.h: Likewise.
2252 * dtrace-probe.c: Likewise.
2253 * dwarf2read.c: Likewise.
2254 * extension.h: Likewise.
2255 * gdb_bfd.c: Likewise.
2256 * gdbsupport/gdb_vecs.h: Likewise.
2257 * gdbsupport/vec.c: Remove.
2258 * gdbsupport/vec.h: Remove.
2259 * gdbthread.h: Likewise.
2260 * guile/scm-type.c: Likewise.
2261 * inline-frame.c: Likewise.
2262 * machoread.c: Likewise.
2263 * memattr.c: Likewise.
2264 * memrange.h: Likewise.
2265 * namespace.h: Likewise.
2266 * nat/linux-btrace.h: Likewise.
2267 * osdata.c: Likewise.
2268 * parser-defs.h: Likewise.
2269 * progspace.h: Likewise.
2270 * python/py-type.c: Likewise.
2271 * record-btrace.c: Likewise.
2272 * rust-exp.y: Likewise.
2273 * solib-target.c: Likewise.
2274 * stap-probe.c: Likewise.
2275 * target-descriptions.c: Likewise.
2276 * target-memory.c: Likewise.
2277 * target.h: Likewise.
2278 * varobj.c: Likewise.
2279 * varobj.h: Likewise.
2280 * xml-support.h: Likewise.
2281
2282 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2285 Update for new std::vector based implementation.
2286 (process_psymtab_comp_unit_reader): Likewise.
2287 (scan_partial_symbols): Likewise.
2288 (recursively_compute_inclusions): Likewise.
2289 (compute_compunit_symtab_includes): Likewise.
2290 (process_imported_unit_die): Likewise.
2291 (queue_and_load_dwo_tu): Likewise.
2292 (follow_die_sig_1): Likewise.
2293 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2294 (typedef dwarf2_per_cu_ptr): Remove.
2295 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2296 function.
2297 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2298 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2299 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2300 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2301 std::vector.
2302
2303 2019-10-15 Tom Tromey <tromey@adacore.com>
2304
2305 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2306 TID.
2307
2308 2019-10-15 Tom Tromey <tromey@adacore.com>
2309
2310 * windows-nat.c (windows_nat_target::fetch_registers)
2311 (windows_nat_target::store_registers): Rename "pid" to "tid".
2312
2313 2019-10-15 Tom Tromey <tromey@adacore.com>
2314
2315 * gdbarch.h, gdbarch.c: Rebuild.
2316 * gdbarch.sh (gcc_target_options): Change return type to
2317 std::string.
2318 * compile/compile.c (get_args): Update.
2319 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2320 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2321 std::string.
2322 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2323 std::string.
2324 * arch-utils.c (default_gcc_target_options): Return std::string.
2325 * arch-utils.h (default_gcc_target_options): Return std::string.
2326 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2327
2328 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2329
2330 * breakpoint.c (breakpoint_chain): Make static.
2331 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2332 of accessing breakpoint_chain.
2333
2334 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2335
2336 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2337 to a gdb::function_view and return value to bool.
2338 * breakpoint.h (iterate_over_breakpoints): Likewise.
2339 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2340 (pop_dummy_frame): Update.
2341 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2342 (gdbscm_breakpoints): Update.
2343 * python/py-breakpoint.c (build_bp_list): Update.
2344 (gdbpy_breakpoints): Update.
2345 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2346 Update.
2347 (bpfinishpy_handle_stop): Update.
2348 (bpfinishpy_handle_exit): Update.
2349 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2350 (svr4_update_solib_event_breakpoints): Update.
2351
2352 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2353
2354 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2355 when unwrapping single-field structs.
2356
2357 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * dwarf2read.c: Remove includes.
2360
2361 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * ui-out.c (ui_out::call_do_message): Silence
2364 -Wformat-nonliteral warning.
2365
2366 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2369 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2370 include: readline/tilde.h.
2371
2372 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2373
2374 * remote.c (remote_target::get_trace_status): Remove declaration of
2375 trace_regblock_size.
2376
2377 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2378
2379 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2380 (show_user): Remove declaration of cmdlist.
2381 * cli/cli-cmds.h (max_user_call_depth): Declare.
2382 * cli/cli-script.c (execute_user_command): Remove declaration
2383 of max_user_call_depth.
2384
2385 2019-10-11 Jim Wilson <jimw@sifive.com>
2386
2387 * gdbsupport/print-utils.h (pulongest): Fix comment.
2388 (plongest): Likewise.
2389 (phex): Add missing comment, mention leading zeros.
2390 (phex_nz): Add mention of no leading zeros to comment.
2391
2392 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2393 plongest instead of unsigned long long cast.
2394
2395 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2396
2397 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2398 for external_editor_command and gdbtk_test.
2399
2400 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2401
2402 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2403 * varobj.c (varobjdebug): Move comment to...
2404 * varobj.h (varobjdebug): ...here, and declare.
2405
2406 2019-10-09 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2409 erase_data_content.
2410
2411 2019-10-09 Tom Tromey <tom@tromey.com>
2412
2413 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2414 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2415 * tui/tui-command.c (tui_cmd_window::resize)
2416 (tui_refresh_cmd_win): Update.
2417 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2418 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2419 * tui/tui-data.c (~tui_gen_win_info): Remove.
2420 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2421 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2422 (tui_redisplay_readline, tui_mld_flush)
2423 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2424 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2425 (tui_data_window::erase_data_content)
2426 (tui_data_item_window::rerender)
2427 (tui_data_item_window::refresh_window): Update.
2428 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2429 (box_win, tui_gen_win_info::make_window)
2430 (tui_gen_win_info::make_visible): Update.
2431 (tui_delete_win): Remove.
2432 * tui/tui-winsource.c
2433 (tui_source_window_base::do_erase_source_content): Update.
2434 (tui_show_source_line, tui_source_window_base::update_tab_width)
2435 (tui_source_window_base::update_exec_info): Update.
2436 * tui/tui-data.h (struct curses_deleter): New.
2437 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2438 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2439
2440 2019-10-09 Tom Tromey <tom@tromey.com>
2441
2442 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2443
2444 2019-10-09 Tom Tromey <tom@tromey.com>
2445
2446 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2447 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2448
2449 2019-10-09 Tom Tromey <tom@tromey.com>
2450
2451 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2452 window height directly.
2453 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2454 declare.
2455 * tui/tui-layout.c (tui_default_win_height): Remove.
2456 (tui_default_win_viewport_height): Remove.
2457
2458 2019-10-09 Tom Tromey <tom@tromey.com>
2459
2460 * tui/tui.h: Remove comments.
2461
2462 2019-10-09 Tom de Vries <tdevries@suse.de>
2463
2464 * python/lib/gdb/printer/bound_registers.py: Use
2465 '^builtin_type_bound128' as regexp argument for
2466 add_builtin_pretty_printer.
2467
2468 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2469
2470 * guile/guile.c (guile_extension_script_ops): Remove forward
2471 declaration and mark as static.
2472 (guile_script_ops): Likewise.
2473 (extension_language_guile): Move further down in the file so
2474 it can reference the definitions for guile_{extension_,}script_ops.
2475
2476 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2477
2478 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2479 except SORTL, DFLTCC, and KDSA.
2480
2481 2019-10-08 Tom Tromey <tromey@adacore.com>
2482
2483 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2484 (struct safe_symbol_file_add_args): Remove.
2485
2486 2019-10-08 Tom Tromey <tromey@adacore.com>
2487
2488 * windows-nat.c: Don't include buildsym-legacy.h.
2489
2490 2019-10-08 Tom Tromey <tromey@adacore.com>
2491
2492 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2493
2494 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2495
2496 * gdbtypes.c (overload_debug): Move comment to header.
2497 * gdbtypes.h (overload_debug): Declare.
2498 * valops.c: Remove declaration of overload_debug, instead
2499 include gdbtypes.h.
2500
2501 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2502
2503 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2504 through _().
2505 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2506 move comment...
2507 * language.h (lang_frame_mismatch_warn): ... here. Also add
2508 declaration.
2509 * top.c (lang_frame_mismatch_warn): Remove declaration.
2510 (check_frame_language_change): Pass lang_frame_mismatch_warn
2511 through _().
2512
2513 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2514
2515 * c-lang.h (vtbl_ptr_name): Declare.
2516 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2517 it from the header.
2518 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2519
2520 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2521
2522 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2523 gdb_static_assert.
2524
2525 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2526
2527 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2528 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2529 * ctfread.c: New file.
2530 * ctfread.h: New file.
2531 * elfread.c: Include ctfread.h.
2532 (struct elfinfo text_p): New member ctfsect.
2533 (elf_locate_sections): Mark CTF section.
2534 (elf_symfile_read): Call elfctf_build_psymtabs.
2535 * Makefile.in (LIBCTF): Add.
2536 (CLIBS): Use it.
2537 (CDEPS): Likewise.
2538 (DIST): Add ctfread.c.
2539
2540 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * ctfread.c (struct nextfield): Renamed to ...
2543 (struct ctf_nextfield): ... this.
2544 (struct field_info): Renamed to ...
2545 (strut ctf_field_info): ... this.
2546 (attach_fields_to_type): Update for renamed structures.
2547 (ctf_add_member_cb): Likewise.
2548 (ctf_add_enum_member_cb): Likewise.
2549 (process_struct_members): Likewise.
2550 (process_enum_type): Likewise.
2551
2552 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2553
2554 * tracectf.h: Rename, was ctf.h.
2555 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2556 * tracefile.c: Likewise.
2557 * tracepoint.c: Remove unused include ctf.h.
2558 * mi/mi-main.c: Likewise.
2559 * Makefile.in Replace ctf.c with tracectf.c.
2560
2561 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2562
2563 * version.in: Change version number to "9.0.50.DATE-git".
2564
2565 2019-10-03 Tom Tromey <tom@tromey.com>
2566
2567 PR rust/24976:
2568 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2569
2570 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2573 cp_search_name_hash.
2574 * NEWS: Add entry about nested function support.
2575
2576 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2577 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2580 for nested static variables when searchin VAR_DOMAIN.
2581 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2582 global scope, update comment.
2583 (add_partial_subprogram): Call add_partial_subprogram recursively
2584 for nested subroutines when processinng Fortran.
2585 (load_partial_dies): Process the child entities of a subprogram
2586 when processing Fortran.
2587 (partial_die_parent_scope): Handle building scope
2588 for Fortran nested functions.
2589 (process_die): Record that nested functions have a scope.
2590 (new_symbol): Always record Fortran subprograms on the global
2591 symbol list.
2592 (determine_prefix): How to build the prefix for Fortran
2593 subprograms.
2594
2595 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2598 have just sent the thread a SIGSTOP and are waiting for it to
2599 arrive.
2600
2601 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * btrace.c (btrace_add_pc): Remove whitespace before the template
2604 parameter in 'std::vector <...>'.
2605 (parse_xml_btrace_block): Likewise.
2606 (btrace_maint_decode_pt): Likewise.
2607 (btrace_maint_update_packets): Likewise.
2608 (btrace_maint_print_packets): Likewise.
2609 * btrace.h (struct btrace_maint_info): Likewise.
2610 * dwarf2read.c (struct type_unit_group): Likewise.
2611 (build_type_psymtabs_reader): Likewise.
2612 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2613 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2614 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2615
2616 2019-10-03 Tom de Vries <tdevries@suse.de>
2617
2618 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2619 the first line of the help text for set/show style metadata.
2620
2621 2019-10-02 Tom Tromey <tromey@adacore.com>
2622
2623 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2624 * gdbsupport/common-inferior.c: New file.
2625 * infcmd.c (startup_with_shell): Don't define.
2626 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2627 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2628 * inferior.h (startup_with_shell): Don't declare.
2629
2630 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2631
2632 * gdbsupport/gdb_assert.h: Include errors.h.
2633 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2634
2635 2019-10-02 Tom Tromey <tromey@adacore.com>
2636
2637 * NEWS: Add $_ada_exception entry.
2638 * ada-lang.c (struct ada_catchpoint): Add constructor.
2639 <m_kind>: New member.
2640 (allocate_location_exception, re_set_exception): Remove
2641 "ex" parameter.
2642 (should_stop_exception): Compute $_ada_exception.
2643 (check_status_exception, print_it_exception)
2644 (print_one_exception, print_mention_exception): Remove
2645 "ex" parameter.
2646 (allocate_location_catch_exception, re_set_catch_exception)
2647 (check_status_exception, print_it_catch_exception)
2648 (print_one_catch_exception, print_mention_catch_exception)
2649 (print_recreate_catch_exception)
2650 (allocate_location_catch_exception_unhandled)
2651 (re_set_catch_exception_unhandled)
2652 (check_status_exception, print_it_catch_exception_unhandled)
2653 (print_one_catch_exception_unhandled)
2654 (print_mention_catch_exception_unhandled)
2655 (print_recreate_catch_exception_unhandled)
2656 (allocate_location_catch_assert, re_set_catch_assert)
2657 (check_status_assert, print_it_catch_assert)
2658 (print_one_catch_assert, print_mention_catch_assert)
2659 (print_recreate_catch_assert)
2660 (allocate_location_catch_handlers, re_set_catch_handlers)
2661 (check_status_handlers, print_it_catch_handlers)
2662 (print_one_catch_handlers, print_mention_catch_handlers)
2663 (print_recreate_catch_handlers): Remove.
2664 (create_ada_exception_catchpoint): Update.
2665 (initialize_ada_catchpoint_ops): Update.
2666
2667 2019-10-02 Tom Tromey <tromey@adacore.com>
2668
2669 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2670 (create_excep_cond_exprs): Simplify exception string computation.
2671 (ada_exception_catchpoint_cond_string): Likewise.
2672
2673 2019-10-02 Tom Tromey <tromey@adacore.com>
2674
2675 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2676 * ada-lang.c (lesseq_defined_than): Handle
2677 LOC_STATIC.
2678 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2679 parameter.
2680 (dwarf2_has_info): Likewise.
2681 (new_symbol): Set maybe_copied on symbol when
2682 appropriate.
2683 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2684 parameter.
2685 <can_copy>: New member.
2686 * elfread.c (record_minimal_symbol): Set maybe_copied
2687 on symbol when appropriate.
2688 (elf_symfile_read): Update call to dwarf2_has_info.
2689 * minsyms.c (lookup_minimal_symbol_linkage): New
2690 function.
2691 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2692 * symtab.c (get_symbol_address, get_msymbol_address):
2693 New functions.
2694 * symtab.h (get_symbol_address, get_msymbol_address):
2695 Declare.
2696 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2697 maybe_copied.
2698 (struct symbol, struct minimal_symbol) <maybe_copied>:
2699 New member.
2700
2701 2019-10-02 Tom Tromey <tromey@adacore.com>
2702
2703 * source.c (struct current_source_location): New.
2704 (current_source_key): New global.
2705 (current_source_symtab, current_source_line)
2706 (current_source_pspace): Remove.
2707 (get_source_location): New function.
2708 (get_current_source_symtab_and_line)
2709 (set_default_source_symtab_and_line)
2710 (set_current_source_symtab_and_line)
2711 (clear_current_source_symtab_and_line, select_source_symtab)
2712 (info_source_command, print_source_lines_base)
2713 (info_line_command, search_command_helper, _initialize_source):
2714 Update.
2715
2716 2019-10-02 Tom Tromey <tromey@adacore.com>
2717
2718 * source.c (select_source_symtab): Don't call
2719 decode_line_with_current_source.
2720
2721 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * symtab.c (lookup_global_symbol): Search global block.
2724
2725 2019-10-02 Tom Tromey <tromey@adacore.com>
2726
2727 * coffread.c (process_coff_symbol): Update.
2728 * dwarf2read.c (var_decode_location, new_symbol): Update.
2729 * mdebugread.c (parse_symbol): Update.
2730 * objfiles.c (relocate_one_symbol): Update.
2731 * stabsread.c (define_symbol, fix_common_block)
2732 (scan_file_globals): Update.
2733 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2734 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2735 * xcoffread.c (process_xcoff_symbol): Update.
2736
2737 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2738
2739 * MAINTAINERS: Update my email address.
2740
2741 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2744 std::vector.
2745 (build_type_psymtabs_reader): Update for std::vector.
2746 (build_type_psymtab_dependencies): Likewise.
2747 * dwarf2read.h: Remove use of DEF_VEC_P.
2748 (typedef sig_type_ptr): Delete.
2749
2750 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2753 to std::vector.
2754 (btrace_maint_decode_pt): Likewise, and move allocation of the
2755 vector outside of the loop.
2756 (btrace_maint_update_packets): Update to handle change from VEC to
2757 std::vector.
2758 (btrace_maint_print_packets): Likewise.
2759 (maint_info_btrace_cmd): Likewise.
2760 * btrace.h: Remove use of DEF_VEC_O.
2761 (typedef btrace_pt_packet_s): Delete.
2762 (struct btrace_maint_info) <packets>: Change fromm VEC to
2763 std::vector.
2764 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2765
2766 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2769 make accesses into the vector constant references.
2770 (btrace_add_pc): Update for std::vector.
2771 (btrace_stitch_bts): Likewise.
2772 (parse_xml_btrace_block): Likewise.
2773 (btrace_maint_update_packets): Likewise.
2774 (btrace_maint_print_packets): Likewise.
2775 (maint_info_btrace_cmd): Likewise.
2776 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2777 std::vector.
2778 (btrace_data::empty): Likewise.
2779 (btrace_data_append): Likewise.
2780 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2781 (typedef btrace_block_s): Delete.
2782 (struct btrace_block): Add constructor.
2783 (struct btrace_data_bts) <blocks>: Change to std::vector.
2784 * nat/linux-btrace.c (perf_event_read_bts): Update for
2785 std::vector.
2786 (linux_read_bts): Likewise.
2787
2788 2019-10-01 Tom Tromey <tom@tromey.com>
2789
2790 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2791
2792 2019-10-01 Tom Tromey <tom@tromey.com>
2793
2794 * stack.c (print_frame, info_frame_command_core): Use
2795 styled_string.
2796 * linux-thread-db.c (try_thread_db_load_1)
2797 (try_thread_db_load_from_pdir_1): Use styled_string.
2798 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2799 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2800 (maybe_print_unsupported_script_warning)
2801 (maybe_print_script_not_found_warning): Use styled_string.
2802 * ada-lang.c (user_select_syms): Use styled_string.
2803
2804 2019-10-01 Tom Tromey <tom@tromey.com>
2805
2806 * p-lang.c (pascal_printstr): Use metadata style.
2807 * value.c (show_convenience): Use metadata style.
2808 * valprint.c (valprint_check_validity, val_print_optimized_out)
2809 (val_print_not_saved, val_print_unavailable)
2810 (val_print_invalid_address, generic_val_print, val_print)
2811 (value_check_printable, val_print_array_elements): Use metadata
2812 style.
2813 * ui-out.h (class ui_out) <field_fmt>: New overload.
2814 <do_field_fmt>: Add style parameter.
2815 * ui-out.c (ui_out::field_fmt): New overload.
2816 * typeprint.c (type_print_unknown_return_type)
2817 (val_print_not_allocated, val_print_not_associated): Use metadata
2818 style.
2819 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2820 parameter.
2821 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2822 * tracepoint.c (tvariables_info_1): Use metadata style.
2823 * stack.c (print_frame_arg, print_frame_info, print_frame)
2824 (info_frame_command_core): Use metadata style.
2825 * skip.c (info_skip_command): Use metadata style.
2826 * rust-lang.c (rust_print_enum): Use metadata style.
2827 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2828 metadata style.
2829 * python/py-framefilter.c (py_print_single_arg): Use metadata
2830 style.
2831 * printcmd.c (do_one_display, print_variable_and_value): Use
2832 metadata style.
2833 * p-valprint.c (pascal_val_print)
2834 (pascal_object_print_value_fields): Use metadata style.
2835 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2836 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2837 parameter.
2838 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2839 * m2-valprint.c (m2_print_long_set): Use metadata style.
2840 * m2-typeprint.c (m2_print_type): Use metadata style.
2841 * infcmd.c (print_return_value_1): Use metadata style.
2842 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2843 * f-valprint.c (info_common_command_for_block): Use metadata
2844 style.
2845 * f-typeprint.c (f_type_print_base): Use metadata style.
2846 * expprint.c (print_subexp_standard): Use metadata style.
2847 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2848 * cli/cli-style.h (class cli_style_option): Add constructor.
2849 (metadata_style): Declare.
2850 * cli/cli-style.c (metadata_style): New global.
2851 (_initialize_cli_style): Register metadata style.
2852 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2853 parameter.
2854 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2855 * c-typeprint.c (c_type_print_base_struct_union)
2856 (c_type_print_base_1): Use metadata style.
2857 * breakpoint.c (watchpoint_value_print)
2858 (print_one_breakpoint_location): Use metadata style.
2859 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2860 style.
2861 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2862 style.
2863 * ada-valprint.c (val_print_packed_array_elements, printstr)
2864 (print_field_values, ada_val_print_ref, ada_val_print): Use
2865 metadata style.
2866 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2867 style.
2868 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2869 style.
2870 * ada-lang.c (user_select_syms): Use metadata style.
2871
2872 2019-10-01 Tom Tromey <tom@tromey.com>
2873
2874 * cli/cli-cmds.c (pwd_command): Style output.
2875
2876 2019-10-01 Pedro Alves <palves@redhat.com>
2877 Tom Tromey <tom@tromey.com>
2878
2879 * symtab.c (print_symbol_info): Use %ps.
2880 (print_msymbol_info): Use %ps.
2881 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2882 * printcmd.c (print_variable_and_value): Use %ps.
2883 * macrocmd.c (show_pp_source_pos): Use %ps.
2884 * infrun.c (print_exited_reason): Use ui_out::message.
2885 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2886 (describe_other_breakpoints): Use ui_out::message and new
2887 formats.
2888 (say_where): Use new formats.
2889 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2890 and new formats.
2891
2892 2019-10-01 Pedro Alves <palves@redhat.com>
2893 Tom Tromey <tom@tromey.com>
2894
2895 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2896 (test_gdb_formats): New function.
2897 (run_tests): Call it.
2898 (test_format_specifier): Update.
2899 * utils.h (fputs_filtered): Update comment.
2900 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2901 (fputs_styled_unfiltered): Declare.
2902 * utils.c (fputs_styled_unfiltered): New function.
2903 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2904 (vfprintf_filtered): Update.
2905 (vfprintf_unfiltered, vprintf_filtered): Update.
2906 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2907 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2908 disallow_ui_out_field>: New constants.
2909 (enum class field_kind): New.
2910 (struct base_field_s, struct signed_field_s): New.
2911 (signed_field): New function.
2912 (struct string_field_s): New.
2913 (string_field): New function.
2914 (struct styled_string_s): New.
2915 (styled_string): New function.
2916 (class ui_out) <message>: Add comment.
2917 <vmessage, call_do_message>: New methods.
2918 <do_message>: Add style parameter.
2919 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2920 methods.
2921 (ui_out::message): Rewrite.
2922 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2923 parameter.
2924 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2925 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2926 gdb_extensions parameter.
2927 (class format_piece): Add parameter to constructor.
2928 (n_int_args): New field.
2929 * gdbsupport/format.c (format_pieces::format_pieces): Add
2930 gdb_extensions parameter. Handle '*'.
2931 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2932 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2933 vfprintf_styled_no_gdbfmt.
2934 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2935 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2936 unfiltered output.
2937 * ui-style.h (struct ui_file_style) <ptr>: New method.
2938
2939 2019-10-01 Tom Tromey <tom@tromey.com>
2940
2941 * unittests/format_pieces-selftests.c: Update. Add final format.
2942 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2943 empty literal pieces.
2944
2945 2019-10-01 Tom Tromey <tom@tromey.com>
2946
2947 * ui-out.h (enum class ui_out_style_kind): Remove.
2948 (class ui_out) <field_string, field_stsream, do_field_string>:
2949 Change type of "style".
2950 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2951 (ui_out::field_string): Update.
2952 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2953 of "style".
2954 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2955 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2956 * stack.c (print_frame_arg, print_frame_info, print_frame):
2957 Update.
2958 * source.c (print_source_lines_base): Update.
2959 * solib.c (info_sharedlibrary_command): Update.
2960 * skip.c (info_skip_command): Update.
2961 * record-btrace.c (btrace_call_history_src_line)
2962 (btrace_call_history): Update.
2963 * python/py-framefilter.c (py_print_frame): Update.
2964 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2965 "style".
2966 * mi/mi-out.c (mi_ui_out::do_table_header)
2967 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2968 (mi_ui_out::do_field_string): Update.
2969 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2970 Update.
2971 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2972 "style".
2973 * cli-out.c (cli_ui_out::do_table_header)
2974 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2975 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2976 (cli_ui_out::do_field_fmt): Update.
2977 * breakpoint.c (print_breakpoint_location): Update.
2978 (update_static_tracepoint): Update.
2979
2980 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2981
2982 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2983 conversion of gdb_datadir.
2984 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2985 remove not needed c_str ().
2986
2987 2019-09-30 Ali Tamur <tamur@google.com>
2988
2989 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2990 (dwarf2_string_attr): Likewise.
2991
2992 2019-09-30 Ali Tamur <tamur@google.com>
2993
2994 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2995 (process_full_type_unit): Likewise.
2996 (dump_die_shallow): Likewise.
2997 (cu_debug_loc_section): Likewise.
2998
2999 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3000
3001 * minsyms.c (compare_minimal_symbols): Rename to...
3002 (minimal_symbol_is_less_than): ...this, and adjust to STL
3003 conventions (return bool, take arguments as references)
3004 (minimal_symbol_reader::install): Call std::sort instead
3005 of qsort.
3006
3007 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3008
3009 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3010 hash and why.
3011 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3012 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3013
3014 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3017 * psympriv.h (add_psymbol_to_list): Move comment here and update
3018 it.
3019
3020 2019-09-29 Tom de Vries <tdevries@suse.de>
3021
3022 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3023 Use $tmpdir/$(basename "$output_file").dwz instead of
3024 "${output_file}.dwz".
3025
3026 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 PR gdb/25045
3029 * hppa-linux-nat.c: Include gdbarch.h.
3030
3031 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3032
3033 * blockframe.c (find_pc_partial_function): Change return type to bool.
3034 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3035 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3036 (stub_gnu_ifunc_resolve_name): Likewise.
3037 * symtab.c (compare_filenames_for_search): Likewise.
3038 (compare_glob_filenames_for_search): Likewise.
3039 (matching_obj_sections): Likewise.
3040 (symbol_matches_domain): Likewise.
3041 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3042 (find_line_pc): Change return type to bool.
3043 (find_line_pc_range): Likewise.
3044 (producer_is_realview): Likewise.
3045 * symtab.h (symbol_matches_domain): Likewise.
3046 (find_pc_partial_function): Likewise.
3047 (find_pc_line_pc_range): Likewise.
3048 (in_gnu_ifunc_stub): Likewise.
3049 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3050 (find_line_pc): Likewise.
3051 (find_line_pc_range): Likewise.
3052 (matching_obj_sections): Likewise.
3053 (find_line_symtab): Change out parameter to bool.
3054 (producer_is_realview): Change return type to bool.
3055 (compare_filenames_for_search): Likewise.
3056 (compare_glob_filenames_for_search): Likewise.
3057
3058 2019-09-26 Tom Tromey <tom@tromey.com>
3059
3060 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3061 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3062 * gdb_usleep.h: Remove.
3063 * gdb_usleep.c: Remove.
3064 * utils.c: Don't include gdb_usleep.h.
3065
3066 2019-09-26 Tom Tromey <tromey@adacore.com>
3067
3068 * python/py-type.c (type_to_type_object): Call check_typedef
3069 for stub types.
3070
3071 2019-09-26 Tom Tromey <tom@tromey.com>
3072
3073 * utils.h (initialize_utils): Don't declare.
3074 * top.c (gdb_init): Don't call initialize_utils.
3075 * utils.c (initialize_utils): Remove. Move contents...
3076 (_initialize_utils): ... here.
3077
3078 2019-09-25 Tom Tromey <tom@tromey.com>
3079
3080 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3081 * utils.h (make_hex_string): Don't declare.
3082 * utils.c (make_hex_string): Remove.
3083
3084 2019-09-24 Tom de Vries <tdevries@suse.de>
3085
3086 PR gdb/23815
3087 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3088 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3089
3090 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3091
3092 * NEWS: Mention new simulator port for PRU.
3093
3094 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3095
3096 * ada-exp.y (write_object_remaining): Update.
3097 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3098 and eliminate the static buffer.
3099 (ada_decode_symbol): Update.
3100 (ada_la_decode): Update.
3101 (ada_sniff_from_mangled_name): Update.
3102 (is_valid_name_for_wild_match): Update.
3103 (ada_lookup_name_info::matches): Update and simplify.
3104 (name_matches_regex): Update.
3105 (ada_add_global_exceptions): Update.
3106 * ada-lang.h (ada_decode): Update signature.
3107 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3108 * dwarf-index-write.c (debug_names::insert): Update.
3109
3110 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3113 formatting.
3114
3115 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3116
3117 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3118 Change "nonzero" to "true" in documentation.
3119
3120 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3121
3122 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3123 (_initialize_darwin_solib): Don't set
3124 darwin_so_ops.lookup_lib_global_symbol.
3125 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3126 set_gdbarch_iterate_over_objfiles_in_search_order.
3127 (elf_lookup_lib_symbol): Rename to...
3128 (svr4_iterate_over_objfiles_in_search_order): this, and update
3129 to iterate semantics.
3130 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3131 * solib.c (solib_global_lookup): Remove.
3132 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3133 (solib_global_lookup): Remove.
3134 * symtab.c (lookup_global_or_static_symbol): Remove call to
3135 solib_global_lookup.
3136
3137 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3138
3139 * NEWS: Move entries about default MI version now being
3140 version 3, and about the GDB/MI fix for multi-location
3141 breakpoints to the "since GDB 8.3" section.
3142
3143 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3144
3145 GDB 8.3.1 released.
3146
3147 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3148
3149 * NEWS: Mention that Cell/B.E. debugging support was removed.
3150 * MAINTAINERS: Remove spu target.
3151
3152 * config/djgpp/fnchange.lst: Remove entries for removed files.
3153
3154 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3155 spu-multiarch.o, and spu-tdep.o.
3156 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3157 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3158 spu-multiarch.c, and spu-tdep.c.
3159 * spu-linux-nat.c: Remove file.
3160 * spu-multiarch.c: Remove file.
3161 * spu-tdep.c: Remove file.
3162 * spu-tdep.h: Remove file.
3163 * solib-spu.c: Remove file.
3164 * solib-spu.h: Remove file.
3165
3166 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3167 * configure.nat (spu-linux): Remove.
3168 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3169 solib-multiarch.o from gdb_target_obs.
3170 (spu*-*-*): Remove.
3171
3172 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3173 feature flag.
3174 (ppc_linux_no_features): Update.
3175 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3176 Cell/B.E. support.
3177 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3178 (tdesc_powerpc_cell64l): Likewise.
3179 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3180 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3181 Cell/B.E. support.
3182 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3183 Do not include "features/rs6000/powerpc-cell32l.c" or
3184 "features/rs6000/powerpc-cell64l.c".
3185 (ppc_linux_spu_section): Remove.
3186 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3187 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3188 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3189 (ppc_linux_spe_context_lookup): Remove.
3190 (ppc_linux_spe_context_inferior_created): Remove.
3191 (ppc_linux_spe_context_solib_loaded): Remove.
3192 (ppc_linux_spe_context_solib_unloaded): Remove.
3193 (ppc_linux_spe_context): Remove.
3194 (struct ppu2spu_cache): Remove.
3195 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3196 (struct ppu2spu_data): Remove.
3197 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3198 ppu2spu_unwind): Remove.
3199 (ppc_linux_init_abi): Remove Cell/B.E. support.
3200 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3201
3202 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3203 (rs6000/powerpc-cell64l-expedite): Likewise
3204 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3205 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3206 rs6000/powerpc-cell64l.xml.
3207 * features/rs6000/powerpc-cell32l.xml: Remove.
3208 * features/rs6000/powerpc-cell64l.xml: Likewise.
3209 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3210 * features/rs6000/powerpc-cell64l.c: Likewise.
3211 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3212 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3213 * regformats/reg-spu.dat: Remove.
3214
3215 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3216 * corelow.c (struct spuid_list): Remove.
3217 (add_to_spuid_list): Remove.
3218 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3219 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3220 (remote_protocol_features): Remove associated entries.
3221 (_initialize_remote): No longer initialize them.
3222 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3223 * linux-nat.c (SPUFS_MAGIC): Remove.
3224 (linux_proc_xfer_spu): Remove.
3225 (spu_enumerate_spu_ids): Remove.
3226 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3227 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3228 (linux_make_corefile_notes): No longer call it.
3229
3230 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3231 (cooked_write_test): Likewise.
3232
3233 2019-09-20 Tom Tromey <tom@tromey.com>
3234
3235 * NEWS: Mention case-sensitivity of TUI commands.
3236 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3237 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3238 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3239
3240 2019-09-20 Tom Tromey <tom@tromey.com>
3241
3242 * tui/tui-source.c (tui_source_window::set_contents): Use
3243 make_unique_xstrdup.
3244 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3245 make_unique_xstrdup.
3246
3247 2019-09-20 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-data.c: Remove separator comments.
3250 * tui/tui-layout.c: Remove separator comments.
3251 * tui/tui-win.c: Remove separator comments.
3252 * tui/tui-wingeneral.c: Remove separator comments.
3253
3254 2019-09-20 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui.h (strcat_to_buf): Don't declare.
3257 * tui/tui.c (strcat_to_buf): Remove.
3258
3259 2019-09-20 Tom Tromey <tom@tromey.com>
3260
3261 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3262 from "fullname".
3263 * tui/tui-source.c (tui_source_window::set_contents)
3264 (tui_source_window::location_matches_p)
3265 (tui_source_window::maybe_update): Update.
3266
3267 2019-09-20 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3270 Update.
3271 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3272 prefix.
3273 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3274 (tui_data_window::line_from_reg_element_no)
3275 (tui_data_window::first_reg_element_no_inline)
3276 (tui_data_window::show_registers)
3277 (tui_data_window::show_register_group)
3278 (tui_data_window::display_registers_from)
3279 (tui_data_window::display_registers_from_line)
3280 (tui_data_window::first_data_item_displayed)
3281 (tui_data_window::delete_data_content_windows)
3282 (tui_data_window::erase_data_content)
3283 (tui_data_window::do_scroll_vertical)
3284 (tui_data_window::refresh_window)
3285 (tui_data_window::check_register_values): Update.
3286
3287 2019-09-20 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3290 (struct tui_locator_window) <full_name, proc_name>: Now
3291 std::string.
3292 * tui/tui-stack.c (tui_locator_window::make_status_line)
3293 (tui_locator_window::set_locator_fullname)
3294 (tui_locator_window::set_locator_info): Update.
3295 * tui/tui-source.c (tui_source_window::set_contents)
3296 (tui_source_window::showing_source_p): Update.
3297
3298 2019-09-20 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3301 Don't call tui_locator_win_info_ptr.
3302
3303 2019-09-20 Tom Tromey <tom@tromey.com>
3304
3305 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3306
3307 2019-09-20 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3310 height for locator.
3311 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3312 * tui/tui-layout.c (show_source_disasm_command, show_data)
3313 (show_source_or_disasm_and_command): Use 1 as height for locator.
3314
3315 2019-09-20 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui.c (tui_enable): Update.
3318 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3319 Update.
3320 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3321 Update.
3322 * tui/tui-data.c (win_resized): Now bool.
3323 (tui_win_resized): Return bool.
3324 (tui_set_win_resized_to): Accept a bool.
3325
3326 2019-09-20 Tom Tromey <tom@tromey.com>
3327
3328 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3329 Change type of "refresh_values_only".
3330 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3331 type of "refresh_values_only".
3332
3333 2019-09-20 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3336 std::string.
3337 (tui_disassemble): Add "pos" parameter.
3338 (tui_disasm_window::set_contents): Simplify.
3339
3340 2019-09-20 Tom Tromey <tom@tromey.com>
3341
3342 * tui/tui-winsource.h (struct tui_source_window_base)
3343 <show_source_content>: Now private.
3344 * tui/tui-winsource.c
3345 (tui_source_window_base::show_source_content): Don't handle empty
3346 content case.
3347
3348 2019-09-20 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-layout.c (show_source_disasm_command)
3351 (show_source_or_disasm_and_command): Don't call
3352 show_source_content.
3353
3354 2019-09-20 Tom Tromey <tom@tromey.com>
3355
3356 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3357 Declare.
3358 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3359 from tui_make_status_line.
3360 (tui_locator_window::rerender): Update.
3361
3362 2019-09-20 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3365 (tui_locator_window::rerender): Update.
3366
3367 2019-09-20 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-winsource.h (struct tui_source_window_base)
3370 <~tui_source_window_base>: Don't declare.
3371 <fullname>: Remove.
3372 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3373 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3374 member.
3375 * tui/tui-source.c (tui_source_window::set_contents): Update.
3376 (tui_source_window::location_matches_p)
3377 (tui_source_window::maybe_update): Update.
3378
3379 2019-09-20 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-winsource.h (~tui_source_element): Remove.
3382 (tui_source_element): Update.
3383 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3384 * tui/tui-winsource.c (tui_show_source_line): Update.
3385 * tui/tui-source.c (tui_source_window::set_contents): Update.
3386 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3387
3388 2019-09-20 Tom Tromey <tom@tromey.com>
3389
3390 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3391 declare.
3392 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3393 tui_clear_source_windows_detail.
3394 * tui/tui-winsource.h (struct tui_source_window_base)
3395 <clear_detail>: Don't declare.
3396 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3397 Remove.
3398 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3399
3400 2019-09-20 Tom Tromey <tromey@adacore.com>
3401
3402 PR ada/24919:
3403 * block.c (contained_in): Fix final return value.
3404
3405 2019-09-20 Alan Modra <amodra@gmail.com>
3406
3407 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3408 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3409 (read_indirect_string_from_dwz): Use bfd accessor.
3410 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3411 * machoread.c (macho_symfile_read_all_oso): Likewise.
3412 * solib.c (solib_bfd_open): Likewise.
3413
3414 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3415
3416 * eval.c: Move declaration of overload_resolution to...
3417 * value.h: ...here.
3418
3419 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3420
3421 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3422 * arm-linux-tdep.c: Likewise.
3423 * arm-nbsd-nat.c: Likewise.
3424 * arm-tdep.h: Declare arm_apcs_32.
3425 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3426
3427 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3428
3429 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3430 * dwarf2read.h: Declare dwarf_always_disassemble.
3431
3432 2019-09-19 Tom de Vries <tdevries@suse.de>
3433
3434 PR gdb/25009
3435 * source-cache.c (source_cache::ensure): Catch exception thrown during
3436 construction of the highlighter.
3437
3438 2019-09-18 Alan Modra <amodra@gmail.com>
3439
3440 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3441 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3442 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3443 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3444 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3445 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3446 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3447 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3448 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3449 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3450 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3451 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3452 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3453 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3454 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3455 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3456 * mi/mi-interp.c: Update throughout for bfd section macro and
3457 function changes.
3458 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3459 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3460
3461 2019-09-18 Tom Tromey <tom@tromey.com>
3462
3463 * NEWS: Add entry.
3464 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3465 call rl_initialize.
3466 (tui_enable): Do not call rl_initialize.
3467
3468 2019-09-18 Christian Groessler <chris@groessler.org>
3469
3470 * alpha-linux-nat.c: Include gdbarch.h.
3471
3472 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * ui-file.c: Include cli/cli-style.h.
3475 (term_cli_styling): Remove cli_styling declaration.
3476
3477 2019-09-18 Alan Modra <amodra@gmail.com>
3478
3479 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3480 to bfd_asymbol_section.
3481
3482 2019-09-18 Alan Modra <amodra@gmail.com>
3483
3484 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3485 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3486 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3487
3488 2019-09-18 Alan Modra <amodra@gmail.com>
3489
3490 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3491 * spu-linux-nat.c (spu_bfd_open): Likewise.
3492
3493 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3494
3495 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3496 to bool to match definition in dwarf2read.c.
3497
3498 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3499
3500 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3501 (print_signatures): Likewise.
3502 (trust_pad_over_xvs): Likewise.
3503 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3504 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3505 * arm-linux-nat.c (arm_apcs_32): Likewise.
3506 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3507 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3508 * arm-tdep.c (arm_debug): Likewise.
3509 (arm_apcs_32): Likewise.
3510 * auto-load.c (debug_auto_load): Likewise.
3511 (auto_load_gdb_scripts): Likewise.
3512 (global_auto_load): Likewise.
3513 (auto_load_local_gdbinit): Likewise.
3514 (auto_load_local_gdbinit_loaded): Likewise.
3515 * auto-load.h (global_auto_load): Likewise.
3516 (auto_load_local_gdbinit): Likewise.
3517 (auto_load_local_gdbinit_loaded): Likewise.
3518 * breakpoint.c (disconnected_dprintf): Likewise.
3519 (breakpoint_proceeded): Likewise.
3520 (automatic_hardware_breakpoints): Likewise.
3521 (always_inserted_mode): Likewise.
3522 (target_exact_watchpoints): Likewise.
3523 (_initialize_breakpoint): Update.
3524 * breakpoint.h (target_exact_watchpoints): Change to bool.
3525 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3526 * cli/cli-cmds.c (trace_commands): Likewise.
3527 * cli/cli-cmds.h (trace_commands): Likewise.
3528 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3529 to bool*.
3530 * cli/cli-logging.c (logging_overwrite): Change to bool.
3531 (logging_redirect): Likewise.
3532 (debug_redirect): Likewise.
3533 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3534 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3535 to bool.
3536 <boolean_option_def>: Update.
3537 (struct flag_option_def): Change default type of Context to bool
3538 from int.
3539 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3540 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3541 (get_setshow_command_value_string): Likewise.
3542 * cli/cli-style.c (cli_styling): Change to bool.
3543 (source_styling): Likewise.
3544 * cli/cli-style.h (source_styling): Likewise.
3545 (cli_styling): Likewise.
3546 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3547 to bool.
3548 * command.h (var_types): Update comment.
3549 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3550 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3551 bool.
3552 (debug_compile_cplus_scopes): Likewise.
3553 * compile/compile-internal.h (compile_debug): Likewise.
3554 * compile/compile.c (compile_debug): Likewise.
3555 (struct compile_options) <raw>: Likewise.
3556 * cp-support.c (catch_demangler_crashes): Likewise.
3557 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3558 (usr_cmd_cris_dwarf2_cfi): Likewise.
3559 * csky-tdep.c (csky_debug): Likewise.
3560 * darwin-nat.c (enable_mach_exceptions): Likewise.
3561 * dcache.c (dcache_enabled_p): Likewise.
3562 * defs.h (info_verbose): Likewise.
3563 * demangle.c (demangle): Likewise.
3564 (asm_demangle): Likewise.
3565 * dwarf-index-cache.c (debug_index_cache): Likewise.
3566 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3567 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3568 * dwarf2read.c (check_physname): Likewise.
3569 (use_deprecated_index_sections): Likewise.
3570 (dwarf_always_disassemble): Likewise.
3571 * eval.c (overload_resolution): Likewise.
3572 * event-top.c (set_editing_cmd_var): Likewise.
3573 (exec_done_display_p): Likewise.
3574 * event-top.h (set_editing_cmd_var): Likewise.
3575 (exec_done_display_p): Likewise.
3576 * exec.c (write_files): Likewise.
3577 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3578 (debug_fbsd_nat): Likewise.
3579 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3580 Likewise.
3581 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3582 <backtrace_past_entry> Likewise.
3583 * gdb-demangle.h (demangle): Likewise.
3584 (asm_demangle): Likewise.
3585 * gdb_bfd.c (bfd_sharing): Likewise.
3586 * gdbcore.h (write_files): Likewise.
3587 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3588 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3589 * gdbthread.h (print_thread_events): Likewise.
3590 * gdbtypes.c (opaque_type_resolution): Likewise.
3591 (strict_type_checking): Likewise.
3592 * gnu-nat.c (gnu_debug_flag): Likewise.
3593 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3594 * guile/scm-param.c (pascm_variable): Add boolval.
3595 (add_setshow_generic): Update.
3596 (pascm_param_value): Update.
3597 (pascm_set_param_value_x): Update.
3598 * hppa-tdep.c (hppa_debug): Change to bool..
3599 * infcall.c (may_call_functions_p): Likewise.
3600 (coerce_float_to_double_p): Likewise.
3601 (unwind_on_signal_p): Likewise.
3602 (unwind_on_terminating_exception_p): Likewise.
3603 * infcmd.c (startup_with_shell): Likewise.
3604 * inferior.c (print_inferior_events): Likewise.
3605 * inferior.h (startup_with_shell): Likewise.
3606 (print_inferior_events): Likewise.
3607 * infrun.c (step_stop_if_no_debug): Likewise.
3608 (detach_fork): Likewise.
3609 (debug_displaced): Likewise.
3610 (disable_randomization): Likewise.
3611 (non_stop): Likewise.
3612 (non_stop_1): Likewise.
3613 (observer_mode): Likewise.
3614 (observer_mode_1): Likewise.
3615 (set_observer_mode): Update.
3616 (sched_multi): Change to bool.
3617 * infrun.h (debug_displaced): Likewise.
3618 (sched_multi): Likewise.
3619 (step_stop_if_no_debug): Likewise.
3620 (non_stop): Likewise.
3621 (disable_randomization): Likewise.
3622 * linux-tdep.c (use_coredump_filter): Likewise.
3623 (dump_excluded_mappings): Likewise.
3624 * linux-thread-db.c (auto_load_thread_db): Likewise.
3625 (check_thread_db_on_load): Likewise.
3626 * main.c (captured_main_1): Update.
3627 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3628 xx2_opt, boolean_opt>: Change to bool.
3629 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3630 * maint.c (maintenance_profile_p): Likewise.
3631 (per_command_time): Likewise.
3632 (per_command_space): Likewise.
3633 (per_command_symtab): Likewise.
3634 * memattr.c (inaccessible_by_default): Likewise.
3635 * mi/mi-main.c (mi_async): Likewise.
3636 (mi_async_1): Likewise.
3637 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3638 * nat/fork-inferior.h (startup_with_shell): Likewise.
3639 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3640 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3641 * nios2-tdep.c (nios2_debug): Likewise.
3642 * or1k-tdep.c (or1k_debug): Likewise.
3643 * parse.c (parser_debug): Likewise.
3644 * parser-defs.h (parser_debug): Likewise.
3645 * printcmd.c (print_symbol_filename): Likewise.
3646 * proc-api.c (procfs_trace): Likewise.
3647 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3648 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3649 (set_parameter_value): Update.
3650 (add_setshow_generic): Update.
3651 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3652 to bool*.
3653 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3654 int*.
3655 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3656 * record-btrace.c (record_btrace_target::store_registers): Update.
3657 * record-full.c (record_full_memory_query): Change to bool.
3658 (record_full_stop_at_limit): Likewise.
3659 * record-full.h (record_full_memory_query): Likewise.
3660 * remote-notif.c (notif_debug): Likewise.
3661 * remote-notif.h (notif_debug): Likewise.
3662 * remote.c (use_range_stepping): Likewise.
3663 (interrupt_on_connect): Likewise.
3664 (remote_break): Likewise.
3665 * ser-tcp.c (tcp_auto_retry): Likewise.
3666 * ser-unix.c (serial_hwflow): Likewise.
3667 * skip.c (debug_skip): Likewise.
3668 * solib-aix.c (solib_aix_debug): Likewise.
3669 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3670 (spu_auto_flush_cache_p): Likewise.
3671 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3672 Likewise.
3673 (struct info_print_options) <quiet>: Likewise.
3674 * symfile-debug.c (debug_symfile): Likewise.
3675 * symfile.c (auto_solib_add): Likewise.
3676 (separate_debug_file_debug): Likewise.
3677 * symfile.h (auto_solib_add): Likewise.
3678 (separate_debug_file_debug): Likewise.
3679 * symtab.c (basenames_may_differ): Likewise.
3680 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3681 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3682 (struct info_types_options) <quiet>: Likewise.
3683 * symtab.h (demangle): Likewise.
3684 (basenames_may_differ): Likewise.
3685 * target-dcache.c (stack_cache_enabled_1): Likewise.
3686 (code_cache_enabled_1): Likewise.
3687 * target.c (trust_readonly): Likewise.
3688 (may_write_registers): Likewise.
3689 (may_write_memory): Likewise.
3690 (may_insert_breakpoints): Likewise.
3691 (may_insert_tracepoints): Likewise.
3692 (may_insert_fast_tracepoints): Likewise.
3693 (may_stop): Likewise.
3694 (auto_connect_native_target): Likewise.
3695 (target_stop_and_wait): Update.
3696 (target_async_permitted): Change to bool.
3697 (target_async_permitted_1): Likewise.
3698 (may_write_registers_1): Likewise.
3699 (may_write_memory_1): Likewise.
3700 (may_insert_breakpoints_1): Likewise.
3701 (may_insert_tracepoints_1): Likewise.
3702 (may_insert_fast_tracepoints_1): Likewise.
3703 (may_stop_1): Likewise.
3704 * target.h (target_async_permitted): Likewise.
3705 (may_write_registers): Likewise.
3706 (may_write_memory): Likewise.
3707 (may_insert_breakpoints): Likewise.
3708 (may_insert_tracepoints): Likewise.
3709 (may_insert_fast_tracepoints): Likewise.
3710 (may_stop): Likewise.
3711 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3712 (make_thread_apply_all_options_def_group): Change argument from int*
3713 to bool*.
3714 (thread_apply_all_command): Update.
3715 (print_thread_events): Change to bool.
3716 * top.c (confirm): Likewise.
3717 (command_editing_p): Likewise.
3718 (history_expansion_p): Likewise.
3719 (write_history_p): Likewise.
3720 (info_verbose): Likewise.
3721 * top.h (confirm): Likewise.
3722 (history_expansion_p): Likewise.
3723 * tracepoint.c (disconnected_tracing): Likewise.
3724 (circular_trace_buffer): Likewise.
3725 * typeprint.c (print_methods): Likewise.
3726 (print_typedefs): Likewise.
3727 * utils.c (debug_timestamp): Likewise.
3728 (sevenbit_strings): Likewise.
3729 (pagination_enabled): Likewise.
3730 * utils.h (sevenbit_strings): Likewise.
3731 (pagination_enabled): Likewise.
3732 * valops.c (overload_resolution): Likewise.
3733 * valprint.h (struct value_print_options) <prettyformat_arrays,
3734 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3735 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3736 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3737 Likewise.
3738 * windows-nat.c (new_console): Likewise.
3739 (cygwin_exceptions): Likewise.
3740 (new_group): Likewise.
3741 (debug_exec): Likewise.
3742 (debug_events): Likewise.
3743 (debug_memory): Likewise.
3744 (debug_exceptions): Likewise.
3745 (useshell): Likewise.
3746 * windows-tdep.c (maint_display_all_tib): Likewise.
3747 * xml-support.c (debug_xml): Likewise.
3748
3749 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3750
3751 * source.c (prepare_path_for_appending): New function.
3752 (openp): Make use of new function.
3753 (find_and_open_source): Search for the compilation directory and
3754 source file as a relative path beneath the directory search path.
3755
3756 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * source-cache.c (source_cache::get_line_charpos): Catch
3759 exceptions and return false, this matches the behaviour documented
3760 in the header file.
3761
3762 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3763
3764 * ada-tasks.c (info_task): Remove quoting of the task's name.
3765
3766 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3767
3768 * symfile.c (auto_solib_add): Replace comment with a reference
3769 to the header file.
3770
3771 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3772
3773 * NEWS: Mention that gdb can now be compiled with Python 3
3774 on Windows.
3775
3776 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * maint.c (maint_print_section_data::maint_print_section_data):
3779 Force use of 'float log10 (float)' by casting the argument to
3780 float.
3781
3782 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3783
3784 * maint.c: Add 'cmath' include.
3785 (struct maint_print_section_data): New structure.
3786 (print_section_index): New function.
3787 (print_bfd_section_info): Add header comment, small whitespace
3788 cleanup, and update to call new print_section_index function.
3789 (print_objfile_section_info): Likewise.
3790 (maint_obj_section_from_bfd_section): New function.
3791 (print_bfd_section_info_maybe_relocated): New function.
3792 (maintenance_info_sections): Add header comment, always use
3793 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3794
3795 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3796
3797 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3798 inner scope, add check that the objfile has psymtabs before
3799 checking psymtabs_addrmap.
3800 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3801
3802 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3803
3804 * NEWS: Announce that Ada task names are now shown at more places,
3805 and between quotes (except in info task output).
3806 * gdb/ada-tasks.c (task_to_str): New function.
3807 (display_current_task_id): Call task_to_str.
3808 (task_command_1): Likewise.
3809 (print_ada_task_info): In non-mi mode, Properly align headers and data
3810 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3811
3812 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3813
3814 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3815 prstatus.pr_lwp.pr_info instead of making it up.
3816
3817 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3818
3819 * auto-load.c (auto_load_expand_dir_vars): Update.
3820 * defs.h (gdb_datadir): Change to std::string.
3821 (python_libdir): Likewise.
3822 (relocate_gdb_directory): Change return type to std::string.
3823 * guile/guile.c (gdbscm_data_directory): Update.
3824 (initialize_scheme_side): Update.
3825 * jit.c (jit_reader_dir): Change to std::string.
3826 (jit_reader_load_command): Update.
3827 * main.c (gdb_datadir): Change to std::string.
3828 (python_libdir): Likewise.
3829 (set_gdb_data_directory): Update.
3830 (relocate_path): Change to return std::string.
3831 (relocate_gdb_directory): Change to return std::string.
3832 (relocate_gdbinit_path_maybe_in_datadir): Update.
3833 (captured_main_1): Update.
3834 * python/python.c (do_start_initialization): Update.
3835 * top.c (show_gdb_datadir): Update.
3836 * xml-syscall.c (xml_init_syscalls_info): Update.
3837 (init_syscalls_info): Update.
3838
3839 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3840
3841 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3842 out of get_init_files.
3843 (get_init_files): Update.
3844
3845 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3846
3847 * main.c (get_init_files): Change to use std::string.
3848 (captured_main_1): Update.
3849 (print_gdb_help): Update.
3850
3851 2019-09-11 Ali Tamur <tamur@google.com>
3852
3853 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3854 implementation.
3855
3856 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3857
3858 * dbxread.c (read_dbx_symtab): Update.
3859 * dwarf2read.c (load_partial_dies): Update.
3860 * mdebugread.c (parse_partial_symbols): Update.
3861 (handle_psymbol_enumerators): Update.
3862 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3863 * psymtab.c (add_psymbol_to_bcache): Likewise.
3864 (add_psymbol_to_list): Likewise.
3865 * symtab.c (symbol_set_names): Likewise.
3866 * symtab.h (symbol_set_names): Likewise.
3867 * xcoffread.c (scan_xcoff_symtab): Update.
3868
3869 2019-09-11 Tom Tromey <tom@tromey.com>
3870
3871 * symfile-mem.c (symbol_file_add_from_memory): Use
3872 bfd_set_filename.
3873 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3874 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3875
3876 2019-09-10 Tom Tromey <tromey@adacore.com>
3877
3878 * dwarf-index-write.c (write_psymbols): Extend error message.
3879 (debug_names::insert): Add Ada code.
3880 (debug_names::write_psymbols): Remove Ada check.
3881 (debug_names) <m_string_obstack>: New member.
3882 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3883 (gdb_index_symbol_name_matcher::matches): Remove.
3884 (mapped_index_base::find_name_components_bounds): Add "lang"
3885 parameter.
3886 (mapped_index_base::build_name_components): Also split names
3887 according to Ada syntax.
3888 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3889 type of "match_callback".
3890 (check_match, check_find_bounds_finds)
3891 (dw2_expand_symtabs_matching): Update.
3892 (dw2_debug_names_iterator): Add new constructor.
3893 (dw2_debug_names_map_matching_symbols): New function.
3894 (dw2_debug_names_expand_symtabs_matching): Update.
3895 (dwarf2_debug_names_functions): Use
3896 dw2_debug_names_map_matching_symbols.
3897
3898 2019-09-10 Tom Tromey <tromey@adacore.com>
3899
3900 * dwarf2read.c (dw2_get_file_names_reader): Add the
3901 CU's file name to the results.
3902
3903 2019-09-10 Tom Tromey <tromey@adacore.com>
3904
3905 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3906 map_matching_symbols. Update.
3907 * dwarf2read.c (dw2_map_matching_symbols): Update.
3908 * psymtab.c (match_partial_symbol): Change type; update.
3909 (psym_map_matching_symbols): Likewise.
3910 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3911 type; update.
3912 * symfile.h (struct quick_symbol_functions)
3913 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3914 Remove "match".
3915
3916 2019-09-10 Tom Tromey <tromey@adacore.com>
3917
3918 * psymtab.c (map_block): Remove.
3919 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3920 * symtab.c (iterate_over_symbols_terminated): New function.
3921 * symtab.c (iterate_over_symbols_terminated): Declare.
3922
3923 2019-09-10 Tom Tromey <tromey@adacore.com>
3924
3925 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3926 * language.h (struct language_defn) <la_iterate_over_symbols>:
3927 Return bool.
3928 * symtab.c (iterate_over_symbols): Return bool.
3929 * symtab.h (iterate_over_symbols): Return bool.
3930
3931 2019-09-10 Tom Tromey <tromey@adacore.com>
3932
3933 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3934 (add_nonlocal_symbols): Update.
3935 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3936 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3937 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3938 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3939 Change type of "callback". Remove "data".
3940
3941
3942 2019-09-09 Ali Tamur <tamur@google.com>
3943
3944 * dwarf2read.c (comp_unit_head): Update comment.
3945 (dwarf2_dwo_name): New function declaration.
3946 (dwarf_unit_type_name): New function declaration.
3947 (read_comp_unit_head): Add support for new compilation units,
3948 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3949 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3950 (currently named as "signature") in their header. Also clarify error
3951 messages.
3952 (lookup_dwo_id): New function. Returns the dwo id of the given
3953 compile unit.
3954 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3955 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3956 functions.
3957 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3958 (dwarf2_dwo_name): Get the dwo name if present.
3959 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3960 purposes.
3961
3962 2019-09-09 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3965
3966 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * python/python.c (do_start_initialization): Make progname_copy static,
3969 to avoid a leak report.
3970
3971 2019-09-08 Tom Tromey <tom@tromey.com>
3972
3973 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3974
3975 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3978 Change type to gdb::optional<block_enum>.
3979 (dw2_symtab_iter_init): Change block_index parameter type
3980 to gdb::optional<block_enum>.
3981 (dw2_lookup_symbol): Change block_index parameter
3982 type to block_enum.c
3983 (dw2_debug_names_lookup_symbol): Likewise.
3984 * psymtab.c (psym_lookup_symbol): Likewise.
3985 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3986 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3987 Likewise.
3988
3989 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3990
3991 * defs.h (relocate_gdb_directory): Change int to bool in
3992 signature and rename flag to relocatable.
3993 * main.c (relocate_path): Likewise.
3994 (relocate_gdb_directory): Likewise.
3995
3996 2019-09-06 Alan Modra <amodra@gmail.com>
3997
3998 * coffread.c (coff_symfile_read): Constify filename variable.
3999 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4000 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4001 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4002 * solib.c (reload_shared_libraries_1): Likewise.
4003 * symfile.c (reread_symbols): Likewise.
4004 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4005 * solib-darwin.c (darwin_bfd_open): Likewise.
4006 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4007
4008 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4011 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4012
4013 2019-09-03 Tom Tromey <tromey@adacore.com>
4014
4015 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4016 types.
4017 (has_negatives): Unbias a range type bound.
4018 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4019 * gdbtypes.c (operator==): Handle new field.
4020 (create_range_type): Add "bias" parameter.
4021 (create_static_range_type, resolve_dynamic_range): Update.
4022 * gdbtypes.h (struct range_bounds) <bias>: New member.
4023 (create_range_type): Add bias parameter.
4024 * printcmd.c (print_scalar_formatted): Unbias range types.
4025 * value.c (unpack_long): Unbias range types.
4026 (pack_long): Bias range types.
4027
4028 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4029
4030 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4031 probe arguments.
4032
4033 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4034
4035 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4036 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4037 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4038 (compile_probe_arg): Likewise.
4039 * probe.h (get_argument_count): Likewise.
4040 * solib-svr4.c (solib_event_probe_action): Likewise.
4041 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4042
4043 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4044
4045 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4046 code to here...
4047 (svr4_create_solib_event_breakpoints): ...from here.
4048
4049 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4050
4051 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4052 suffix from warning message.
4053
4054 2019-08-30 Tom Tromey <tom@tromey.com>
4055
4056 * tui/tui-winsource.h (struct tui_source_window_base)
4057 <refresh_all>: Don't declare.
4058 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4059 Remove.
4060 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4061 tui_show_locator_content.
4062 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4063 declare.
4064 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4065 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4066 declare.
4067
4068 2019-08-30 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4071
4072 2019-08-30 Tom Tromey <tom@tromey.com>
4073
4074 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4075 Remove unnecessary forward declarations.
4076
4077 2019-08-30 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4080 rerender.
4081 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4082 tui_show_locator_content.
4083
4084 2019-08-30 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4087 (tui_locator_window::rerender): Rewrite using body of previous
4088 tui_show_locator_content.
4089
4090 2019-08-30 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4093 set_locator_fullname>: New methods.
4094 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4095 Rename from tui_set_locator_fullname.
4096 (tui_locator_window::set_locator_info): Rename from
4097 tui_set_locator_info. Return bool.
4098 (tui_update_locator_fullname, tui_show_frame_info): Update.
4099
4100 2019-08-30 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4103
4104 2019-08-30 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4107 call touchwin.
4108
4109 2019-08-30 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-wingeneral.c (box_win): Assume win_info and
4112 win_info->handle cannot be NULL.
4113
4114 2019-08-30 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4117 refresh_window>: Declare.
4118 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4119 resize.
4120 (tui_data_item_window::rerender): Rename from
4121 tui_display_register.
4122 (tui_data_item_window::refresh_window): New method.
4123 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4124 no-op.
4125
4126 2019-08-30 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4129 regs_column_count, current_group>: Move later. Now private.
4130 <get_current_group>: New method.
4131 * tui/tui-regs.c (tui_reg_command): Update.
4132 * tui/tui-layout.c (tui_set_layout): Update.
4133
4134 2019-08-30 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4137 (tui_data_window::rerender): Don't call
4138 check_and_display_highlight_if_needed.
4139 (tui_data_window::refresh_all): Remove call to
4140 erase_data_content.
4141
4142 2019-08-30 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4145 (tui_data_window::display_registers_from)
4146 (tui_data_window::display_reg_element_at_line)
4147 (tui_data_window::display_registers_from_line): Remove checks of
4148 "empty".
4149
4150 2019-08-30 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4153 Don't declare.
4154 * tui/tui-regs.c (tui_data_window::show_registers): Call
4155 rerender.
4156 (tui_data_window::rerender): Rename from display_all_data.
4157 (tui_data_window::rerender): Remove old implementation.
4158
4159 2019-08-30 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4162 text.
4163 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4164
4165 2019-08-29 Bernhard Wodok <barto@gmx.net>
4166 Sergio Durigan Junior <sergiodj@redhat.com>
4167
4168 PR win32/24284
4169 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4170
4171 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4174 when searching for types.
4175
4176 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 * f-lang.c (f_language_defn): Use f_print_typedef.
4179 * f-lang.h (f_print_typedef): Declare.
4180 * f-typeprint.c (f_print_typedef): Define.
4181
4182 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4183
4184 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4185
4186 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4187
4188 * cli/cli-utils.c (info_print_options_defs): Delete.
4189 (make_info_print_options_def_group): Delete.
4190 (extract_info_print_options): Delete.
4191 (info_print_command_completer): Delete.
4192 (info_print_args_help): Add extra parameter, and optionally
4193 include text about -n flag.
4194 * cli/cli-utils.h (struct info_print_options): Delete.
4195 (extract_info_print_options): Delete declaration.
4196 (info_print_command_completer): Delete declaration.
4197 (info_print_args_help): Add extra parameter, extend header
4198 comment.
4199 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4200 search_symbols.
4201 * stack.c (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_locals_command): Update to use new local functions.
4206 (info_args_command): Likewise.
4207 (_initialize_stack): Add extra parameter to calls to
4208 info_print_args_help.
4209 * symtab.c (search_symbols): Add extra parameter, use this to
4210 possibly excluse non-debug symbols.
4211 (symtab_symbol_info): Add extra parameter, which is passed on to
4212 search_symbols.
4213 (struct info_print_options): New type.
4214 (info_print_options_defs): New file scoped variable.
4215 (make_info_print_options_def_group): New static function.
4216 (info_print_command_completer): New static function.
4217 (info_variables_command): Update to use local functions, and pass
4218 extra parameter through to symtab_symbol_info.
4219 (info_functions_command): Likewise.
4220 (info_types_command): Pass additional argument through to
4221 symtab_symbol_info.
4222 (rbreak_command): Pass extra argument to search_symbols.
4223 (_initialize_symtab): Add extra arguments for calls to
4224 info_print_args_help, and update help text for 'info variables',
4225 'whereis', and 'info functions' commands.
4226 * symtab.h (search_symbols): Add extra argument to declaration.
4227 * NEWS: Mention new flags.
4228
4229 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4230
4231 * symtab.c (lookup_static_symbol): Call the new function (and move
4232 it down to be next to lookup_global_symbol).
4233 (struct global_sym_lookup_data): Add block_enum member and rename to...
4234 (struct global_or_static_sym_lookup_data): ...this.
4235 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4236 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4237 (lookup_symbol_global_or_static_iterator_cb): ...this.
4238 (lookup_global_or_static_symbol): New function.
4239 (lookup_global_symbol): Call new function.
4240
4241 2019-08-26 Tom de Vries <tdevries@suse.de>
4242
4243 PR c++/24852
4244 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4245 when pc_probe.prob == NULL.
4246
4247 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4250 variable symbol_linkage to symbol_linkage_.
4251
4252 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4255 represent whether the symbol is static, dynamic, or we don't
4256 know.
4257
4258 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4259
4260 * gdb/rx-tdep.c (rx_register_names): New.
4261 (rx_register_name): Delete.
4262 (rx_psw_type): Delete.
4263 (rx_fpsw_type): Delete.
4264 (rx_register_type): Delete.
4265 (rx_gdbarch_init): Convert target-descriptions.
4266 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4267 * gdb/features/Makefile: Add rx.xml.
4268 * gdb/features/rx.xml: New.
4269 * gdb/features/rx.c: Generated.
4270 * gdb/NEWS: Mention target description support.
4271
4272 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4273
4274 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4275 *slot_ptr.
4276
4277 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4278
4279 * configure.ac: Don't check for 'dlfcn.h' (moved to
4280 gdbsupport/common.m4).
4281 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4282 'gdbsupport/'.
4283 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4284 * compile/compile-c-support.c: Include
4285 'gdbsupport/gdb-dlfcn.h'.
4286 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4287 * gdb-dlfcn.c: Move to...
4288 * gdbsupport/gdb-dlfcn.c: ... here.
4289 * gdb-dlfcn.h: Move to...
4290 * gdbsupport/gdb-dlfcn.h: ... here.
4291
4292 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4293
4294 * nios2-tdep.c (struct reg_value): Improve comments. Make
4295 the offset field signed.
4296
4297 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4298
4299 * python/lib/gdb/__init__.py (_execute_file): New function.
4300 * python/python.c (python_run_simple_file): Call gdb._execute_file
4301 on Windows.
4302
4303 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4304
4305 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4306 all uses as this was never set to anything but a zero value.
4307
4308 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4309
4310 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4311
4312 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4313
4314 * tui/tui-data.h (tui_gen_win_info): Add an =default
4315 move constructor, required by some GCC versions.
4316
4317 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4318
4319 * go32-nat.c (go32_sysinfo): Add hygon_p.
4320
4321 2019-08-20 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4324 line_from_reg_element_no, first_reg_element_no_inline,
4325 display_all_data, delete_data_content_windows,
4326 erase_data_content>: Now private.
4327
4328 2019-08-20 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4331 (tui_unhighlight_win, tui_highlight_win)
4332 (tui_win_info::make_window): Update.
4333 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4334
4335 2019-08-20 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4338 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4339 (MAX_PID_WIDTH): Move to tui-stack.c.
4340 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4341 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4342 (MAX_PID_WIDTH): Move from tui-data.h.
4343
4344 2019-08-20 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4347 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4348 (box_win): Update.
4349 (tui_gen_win_info::make_window): Rename from tui_make_window.
4350 (tui_win_info::make_window): New method.
4351 (tui_gen_win_info::make_visible): Update.
4352 * tui/tui-source.c (tui_source_window::set_contents): Update.
4353 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4354 (tui_data_window::display_registers_from): Update.
4355 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4356 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4357 Declare.
4358 <can_box>: Remove.
4359 <title>: Remove.
4360 (struct tui_win_info) <make_window>: Declare.
4361 <can_box>: Now virtual.
4362 <title>: New member.
4363 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4364 * tui/tui-command.c (tui_cmd_window::resize): Update.
4365
4366 2019-08-20 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4369 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4370 (tui_data_window::check_register_values): Update.
4371
4372 2019-08-20 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-regs.h (struct tui_data_window): Use
4375 DISABLE_COPY_AND_ASSIGN.
4376 <regs_content>: Change type, removing unique_ptr.
4377 <tui_data_window>: Add move constructor.
4378 * tui/tui-regs.c (tui_data_window::show_registers)
4379 (tui_data_window::show_register_group)
4380 (tui_data_window::display_registers_from)
4381 (tui_data_window::display_registers_from)
4382 (tui_data_window::first_data_item_displayed)
4383 (tui_data_window::delete_data_content_windows)
4384 (tui_data_window::rerender, tui_data_window::refresh_window)
4385 (tui_data_window::check_register_values): Update.
4386
4387 2019-08-20 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4390 show_register_group>: Declare.
4391 (tui_show_register_group): Don't declare.
4392 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4393 tui_show_registers.
4394 (tui_data_window::show_register_group): Rename from
4395 tui_show_register_group.
4396 (tui_data_window::check_register_values, tui_reg_command):
4397 Update.
4398 * tui/tui-layout.c (tui_set_layout): Update.
4399
4400 2019-08-20 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4403 Declare.
4404 (tui_check_register_values): Don't declare.
4405 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4406 from tui_check_register_values.
4407 * tui/tui-hooks.c (tui_register_changed): Update.
4408
4409 2019-08-20 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui-regs.c (tui_reg_layout): Move later.
4412 (tui_show_registers): Don't enable TUI mode or change layout.
4413
4414 2019-08-20 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-regs.h (struct tui_data_item_window)
4417 <~tui_data_item_window>: Remove.
4418 <content>: Now a unique_xmalloc_ptr.
4419 * tui/tui-regs.c (tui_register_format): Return a
4420 unique_xmalloc_ptr.
4421 (tui_get_register): Update.
4422 (~tui_data_item_window): Remove.
4423 (tui_data_window::display_registers_from, tui_display_register):
4424 Update.
4425 * tui/tui-io.h (tui_expand_tabs): Update.
4426 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4427 Remove "col" parameter.
4428
4429 2019-08-20 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4432 field.
4433 * tui/tui-regs.c (~tui_data_item_window): Update.
4434
4435 2019-08-20 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4438 earlier.
4439
4440 2019-08-20 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4443
4444 2019-08-20 Tom Tromey <tom@tromey.com>
4445
4446 * tui/tui-source.h (struct tui_source_window): Update.
4447 * tui/tui-regs.c (tui_show_registers): Update.
4448 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4449 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4450 (NO_REGS_STRING): Remove defines.
4451
4452 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4453
4454 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4455 unnecessary thread walk if remote doesn't support the packet.
4456
4457 2019-08-19 Tom Tromey <tromey@adacore.com>
4458
4459 * python/py-value.c (value_has_field): Fix indentation.
4460
4461 2019-08-19 Tom Tromey <tromey@adacore.com>
4462
4463 * printcmd.c (do_one_display, info_display_command): Update.
4464 * block.h (contained_in): Return bool. Add allow_nested
4465 parameter.
4466 * block.c (contained_in): Return bool. Add allow_nested
4467 parameter.
4468
4469 2019-08-19 Tom Tromey <tom@tromey.com>
4470
4471 * configure: Rebuild.
4472 * configure.ac: Disallow the combination of -static-libstdc++ and
4473 source highlight.
4474 * source-cache.c (get_language_name): Handle rust.
4475 (source_cache::get_source_lines): Ignore highlighting exceptions.
4476
4477 2019-08-16 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4480 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4481 (struct tui_source_window_base) <make_visible, refresh_window,
4482 resize>: Remove methods.
4483 <execution_info>: Remove field.
4484 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4485 (tui_show_source_line, tui_source_window_base)
4486 (~tui_source_window_base): Update.
4487 (tui_source_window_base::resize)
4488 (tui_source_window_base::make_visible)
4489 (tui_source_window_base::refresh_window): Remove.
4490 (tui_source_window_base::update_exec_info): Update.
4491 * tui/tui-source.c (tui_source_window::set_contents): Update.
4492 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4493
4494 2019-08-16 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4497 deprecated_query_hook.
4498
4499 2019-08-16 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4502 (tui_update_source_windows_with_line): Update.
4503 * tui/tui-source.h (struct tui_source_window)
4504 <show_symtab_source>: Declare.
4505 (tui_show_symtab_source): Don't declare.
4506 * tui/tui-source.c (tui_show_symtab_source): Rename from
4507 tui_show_symtab_source.
4508
4509 2019-08-16 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-winsource.h (struct tui_source_window_base)
4512 <set_contents>: Declare.
4513 * tui/tui-winsource.c
4514 (tui_source_window_base::update_source_window_as_is): Update.
4515 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4516 Declare.
4517 (tui_set_source_content): Don't declare.
4518 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4519 tui_set_source_content.
4520 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4521 Declare.
4522 (tui_set_disassem_content): Don't declare.
4523 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4524 tui_set_disassem_content.
4525
4526 2019-08-16 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.h (struct tui_source_window_base)
4529 <update_breakpoint_info>: Declare.
4530 (tui_update_breakpoint_info): Don't declare.
4531 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4532 (tui_update_all_breakpoint_info): Update.
4533 (tui_source_window_base::update_breakpoint_info): Rename from
4534 tui_update_breakpoint_info.
4535 (tui_source_window_base::update_exec_info): Update.
4536
4537 2019-08-16 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-winsource.h (struct tui_source_window_base)
4540 <update_source_window>: Declare.
4541 (tui_update_source_window): Don't declare.
4542 * tui/tui-winsource.c
4543 (tui_source_window_base::update_source_window): Rename from
4544 tui_update_source_window.
4545 (tui_source_window_base::rerender): Update.
4546 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4547 * tui/tui-disasm.c (tui_show_disassem)
4548 (tui_show_disassem_and_update_source)
4549 (tui_disasm_window::maybe_update): Update.
4550
4551 2019-08-16 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-winsource.h (struct tui_source_window_base)
4554 <update_source_window_as_is>: Declare.
4555 (tui_update_source_window_as_is): Don't declare.
4556 * tui/tui-winsource.c (tui_update_source_window): Update
4557 (tui_source_window_base::update_source_window_as_is): Rename from
4558 tui_update_source_window_as_is.
4559 (tui_source_window_base::refill): Update.
4560 * tui/tui-source.c (tui_show_symtab_source): Update.
4561 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4562 Update.
4563
4564 2019-08-16 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-winsource.h (tui_update_source_window)
4567 (tui_update_source_window_as_is): Remove "noerror" parameter.
4568 * tui/tui-winsource.c (tui_update_source_window)
4569 (tui_update_source_window_as_is): Remove "noerror" parameter.
4570 (tui_update_source_windows_with_addr)
4571 (tui_update_source_windows_with_line)
4572 (tui_source_window_base::rerender)
4573 (tui_source_window_base::refill): Update.
4574 * tui/tui-source.h (tui_set_source_content)
4575 (tui_show_symtab_source): Remove "noerror" parameter.
4576 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4577 parameter.
4578 (tui_show_symtab_source): Likewise.
4579 (tui_source_window::maybe_update): Update.
4580 * tui/tui-disasm.c (tui_show_disassem)
4581 (tui_show_disassem_and_update_source)
4582 (tui_disasm_window::do_scroll_vertical)
4583 (tui_disasm_window::maybe_update): Update.
4584
4585 2019-08-16 Tom Tromey <tom@tromey.com>
4586
4587 * tui/tui.c (tui_is_window_visible): Update.
4588 * tui/tui-wingeneral.c (tui_make_window)
4589 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4590 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4591 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4592 (tui_set_win_height_command, parse_scrolling_args): Update.
4593 * tui/tui-source.c (tui_source_window::style_changed): Update.
4594 * tui/tui-regs.c (tui_show_registers)
4595 (tui_data_window::first_data_item_displayed)
4596 (tui_data_window::delete_data_content_windows)
4597 (tui_check_register_values, tui_reg_command): Update.
4598 * tui/tui-disasm.c (tui_show_disassem): Update.
4599 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4600 method.
4601 <is_visible>: Remove field.
4602 * tui/tui-data.c (tui_next_win, tui_prev_win)
4603 (tui_delete_invisible_windows): Update.
4604
4605 2019-08-16 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-winsource.h (struct tui_source_window_base)
4608 <m_has_locator>: Remove.
4609 * tui/tui-layout.c (show_source_disasm_command, show_data)
4610 (show_source_or_disasm_and_command): Update.
4611
4612 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4613
4614 * NEWS (Other MI changes): New subsection.
4615 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4616 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4617 * arch-utils.c (default_get_pc_address_flags): New function.
4618 * arch-utils.h (default_get_pc_address_flags): New declaration.
4619 * gdbarch.sh: Add get_pc_address_flags.
4620 * gdbarch.c: Regenerate.
4621 * gdbarch.h: Likewise.
4622 * stack.c (print_pc): New function.
4623 (print_frame_info) (print_frame): Call print_pc.
4624
4625 2019-08-16 Tom de Vries <tdevries@suse.de>
4626
4627 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4628 print_objfile_section_info.
4629
4630 2019-08-15 Tom Tromey <tom@tromey.com>
4631
4632 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4633 calling update_cmdwin_start_line.
4634 * tui/tui-winsource.h (struct tui_source_window_base)
4635 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4636 <rerender>: Declare.
4637 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4638 Call rerender.
4639 (tui_source_window_base::set_new_height): Remove.
4640 (tui_source_window_base::rerender): Rename from
4641 do_make_visible_with_new_height.
4642 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4643 resize method.
4644 (tui_win_info::make_invisible_and_set_new_height)
4645 (tui_win_info::make_visible_with_new_height): Remove.
4646 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4647 Declare.
4648 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4649 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4650 do_make_visible_with_new_height>: Don't declare.
4651 <rerender>: Declare.
4652 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4653 set_new_height.
4654 (tui_data_window::do_make_visible_with_new_height): Remove.
4655 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4656 call tui_show_locator_content.
4657 (tui_gen_win_info::resize): Call rerender.
4658 (show_source_or_disasm_and_command): Don't call
4659 tui_show_locator_content.
4660 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4661 method.
4662 (struct tui_win_info) <rerender>: Declare.
4663 <set_new_height, make_invisible_and_set_new_height,
4664 make_visible_with_new_height>: Don't declare.
4665 * tui/tui-data.c (tui_win_list::rerender): New method.
4666 * tui/tui-command.h (struct tui_cmd_window)
4667 <do_make_visible_with_new_height>: Don't declare.
4668 * tui/tui-command.c
4669 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4670
4671 2019-08-15 Tom Tromey <tromey@adacore.com>
4672
4673 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4674 * ada-lang.c (ada_enum_name): Likewise.
4675
4676 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4677
4678 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4679 leading underscore.
4680 (GdbOutputErrorFile): Likewise.
4681 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4682 accordingly.
4683 (execute_unwinders): Rename to have a leading underscore.
4684 (auto_load_packages): Likewise.
4685 (global scope): Adjust call to auto_load_packages accordingly.
4686 (GdbSetPythonDirectory): Likewise.
4687 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4688 instead of execute_unwinders.
4689
4690 2019-08-15 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4693 (show_data): Don't change window visibility.
4694 (tui_gen_win_info::resize): Remove special case for command
4695 window. Use wresize, when available.
4696 (show_source_or_disasm_and_command): Don't change window
4697 visibility.
4698 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4699 <make_visible>: New method.
4700 * tui/tui-command.c (tui_cmd_window::resize): New method.
4701
4702 2019-08-15 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4705 (struct tui_source_windows): New.
4706 * tui/tui-winsource.c (tui_display_main): Update.
4707 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4708 (new_height_ok, parse_scrolling_args): Update.
4709 * tui/tui-layout.c (show_layout, show_data): Update.
4710 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4711 (tui_add_to_source_windows): Don't declare.
4712 * tui/tui-data.c (source_windows, tui_source_windows)
4713 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4714
4715 2019-08-15 Tom Tromey <tom@tromey.com>
4716
4717 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4718 Rename from reset.
4719 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4720 * tui/tui-layout.c (show_source_disasm_command, show_data):
4721 Update.
4722 (tui_gen_win_info::resize): Rename.
4723 (show_source_or_disasm_and_command): Update.
4724 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4725 reset.
4726
4727 2019-08-15 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4730 * tui/tui-interp.c (tui_interp::init): Don't call
4731 tui_initialize_static_data.
4732 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4733
4734 2019-08-15 Tom Tromey <tom@tromey.com>
4735
4736 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4737 examine tui_win_list.
4738
4739 2019-08-15 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4742 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4743 tui_clear_source_content.
4744 (tui_clear_source_content): Remove.
4745 (tui_source_window_base::do_erase_source_content): Hoist call to
4746 content.clear().
4747 * tui/tui-stack.c (tui_show_frame_info): Don't call
4748 tui_clear_source_content.
4749
4750 2019-08-15 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-winsource.h (struct tui_source_window_base)
4753 <do_erase_source_content>: New method.
4754 <erase_source_content>: New method.
4755 (tui_erase_source_content): Don't declare.
4756 * tui/tui-winsource.c (tui_clear_source_content): Update.
4757 (tui_source_window_base::do_erase_source_content): Rename from
4758 tui_erase_source_content.
4759 (tui_source_window_base::show_source_content): Update.
4760 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4761 * tui/tui-source.h (struct tui_source_window)
4762 <erase_source_content>: New method.
4763 * tui/tui-disasm.h (struct tui_disasm_window)
4764 <erase_source_content>: New method.
4765
4766 2019-08-15 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4769 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4770 constructor.
4771 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4772 * tui/tui-source.c (tui_set_source_content): Update.
4773 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4774
4775 2019-08-15 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4778 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4779 tui-source.c.
4780 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4781 Declare.
4782 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4783 method.
4784 (tui_source_window::maybe_update): Update.
4785
4786 2019-08-15 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4789 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4790 tui-disasm.c.
4791 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4792 Declare.
4793 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4794 method.
4795 (tui_disasm_window::maybe_update): Update.
4796
4797 2019-08-15 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-winsource.h (struct tui_source_window_base)
4800 <maybe_update>: Declare.
4801 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4802 method.
4803 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4804 Declare.
4805 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4806 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4807 Declare.
4808 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4809
4810 2019-08-15 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4813
4814 2019-08-15 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-wingeneral.c: Include tui-stack.h.
4817 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4818 (struct tui_locator_window): Move from tui-data.h.
4819 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4820 (tui_initialize_static_data): Move from tui-data.c.
4821 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4822 (struct tui_locator_window): Move to tui-stack.c.
4823 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4824 (tui_initialize_static_data): Move to tui-stack.c.
4825
4826 2019-08-15 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-layout.c (show_source_disasm_command)
4829 (show_source_or_disasm_and_command): Use make_visible method, not
4830 tui_make_window.
4831 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4832 Remove.
4833
4834 2019-08-15 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-wingeneral.h (tui_make_window): Update.
4837 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4838 parameter.
4839 (tui_gen_win_info::make_visible): Update.
4840 * tui/tui-regs.c (tui_data_window::display_registers_from):
4841 Update.
4842 * tui/tui-layout.c (show_source_disasm_command)
4843 (show_source_or_disasm_and_command): Update.
4844 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4845 (enum tui_box): Remove.
4846 (struct tui_win_info) <can_box>: New method.
4847 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4848 method.
4849
4850 2019-08-15 Tom de Vries <tdevries@suse.de>
4851
4852 * linux-nat-trad.c: Include gdbarch.h.
4853
4854 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4855
4856 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4857 register sizes.
4858
4859 2019-08-14 Tom Tromey <tromey@adacore.com>
4860
4861 * darwin-nat.c: Include gdbarch.h.
4862 * darwin-nat-info.c: Include gdbarch.h.
4863
4864 2019-08-13 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4867 Remove.
4868 * tui/tui-data.c (tui_initialize_static_data): Update.
4869
4870 2019-08-13 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-winsource.h (struct tui_exec_info_window)
4873 <~tui_exec_info_window, maybe_allocate_content, get_content,
4874 m_content>: Remove.
4875 (struct tui_source_window_base) <set_exec_info_content,
4876 show_exec_info_content>: Don't declare.
4877 * tui/tui-winsource.c
4878 (tui_exec_info_window::maybe_allocate_content): Remove.
4879 (tui_source_window_base::update_exec_info): Rename from
4880 set_exec_info_content.
4881 (tui_source_window_base::show_exec_info_content)
4882 (tui_source_window_base::update_exec_info): Remove.
4883
4884 2019-08-13 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4887 declare.
4888 * tui/tui-winsource.c (tui_update_source_window_as_is)
4889 (tui_update_source_windows_with_addr, tui_erase_source_content):
4890 Update.
4891 (tui_clear_exec_info_content): Remove.
4892
4893 2019-08-13 Tom Tromey <tom@tromey.com>
4894
4895 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4896 declare.
4897 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4898 call tui_erase_exec_info_content.
4899 (tui_clear_exec_info_content): Rename from
4900 tui_erase_exec_info_content.
4901 (tui_clear_exec_info_content): Delete.
4902
4903 2019-08-13 Tom Tromey <tom@tromey.com>
4904
4905 * tui/tui-winsource.h (struct tui_source_window_base)
4906 <show_exec_info_content>: Declare.
4907 (tui_show_exec_info_content): Don't declare.
4908 * tui/tui-winsource.c
4909 (tui_source_window_base::show_exec_info_content): Rename from
4910 tui_show_exec_info_content.
4911 (tui_source_window_base::update_exec_info): Update.
4912
4913 2019-08-13 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4916 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4917 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4918 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4919 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4920 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4921 ... here.
4922
4923 2019-08-13 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-winsource.h (struct tui_source_window_base)
4926 <update_exec_info>: Declare.
4927 (tui_update_exec_info): Don't declare.
4928 * tui/tui-winsource.c (tui_update_source_window_as_is)
4929 (tui_source_window_base::refresh_all)
4930 (tui_update_all_breakpoint_info): Update.
4931 (tui_source_window_base::update_exec_info): Rename from
4932 tui_update_exec_info.
4933 * tui/tui-stack.c (tui_show_frame_info): Update.
4934
4935 2019-08-13 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-winsource.h (struct tui_source_window_base)
4938 <set_exec_info_content>: Declare.
4939 (tui_set_exec_info_content): Don't declare.
4940 * tui/tui-winsource.c
4941 (tui_source_window_base::set_exec_info_content): Rename from
4942 tui_set_exec_info_content.
4943 (tui_update_exec_info): Update.
4944
4945 2019-08-13 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-winsource.h (struct tui_source_window_base)
4948 <show_source_content>: Declare.
4949 (tui_show_source_content): Don't declare.
4950 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4951 (tui_source_window_base::show_source_content): Rename from
4952 tui_show_source_content.
4953 (tui_source_window_base::refresh_all): Update.
4954 * tui/tui-layout.c (show_source_disasm_command)
4955 (show_source_or_disasm_and_command): Update.
4956
4957 2019-08-13 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-winsource.c (tui_erase_source_content)
4960 (tui_show_source_content, tui_source_window_base::refresh_all):
4961 Update.
4962 * tui/tui-wingeneral.h
4963 (tui_check_and_display_highlight_if_needed): Don't declare.
4964 * tui/tui-wingeneral.c
4965 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4966 check_and_display_highlight_if_needed.
4967 * tui/tui-win.c (tui_rehighlight_all)
4968 (tui_win_info::make_visible_with_new_height): Update.
4969 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4970 (tui_data_window::erase_data_content)
4971 (tui_data_window::display_all_data): Update.
4972 * tui/tui-data.h (struct tui_win_info)
4973 <check_and_display_highlight_if_needed>: Declare.
4974
4975 2019-08-13 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui-win.c (tui_resize_all): Call
4978 tui_delete_invisible_windows.
4979 * tui/tui-layout.c (show_layout): Call
4980 tui_delete_invisible_windows.
4981 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4982 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4983
4984 2019-08-13 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4987 tui_add_win_to_layout.
4988
4989 2019-08-13 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4992 * tui/tui-layout.c (tui_default_win_height): Now static.
4993
4994 2019-08-13 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4997 single switch.
4998 (show_source_disasm_command, show_source_or_disasm_and_command):
4999 Don't check current layout.
5000
5001 2019-08-13 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-wingeneral.c (make_all_visible): Remove.
5004 (tui_make_all_invisible): Simplify.
5005 * tui/tui-layout.c (tui_make_all_invisible): Move from
5006 tui-wingeneral.c; simplify.
5007 (show_layout): Hoist call to tui_make_all_invisible.
5008 (show_data): Don't call tui_make_all_invisible.
5009
5010 2019-08-13 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5013 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5014
5015 2019-08-13 Tom Tromey <tom@tromey.com>
5016
5017 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5018 tui-data.c.
5019 (show_source_disasm_command, show_data)
5020 (show_source_or_disasm_and_command): Don't use
5021 tui_set_current_layout_to.
5022 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5023 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5024 tui-layout.c.
5025 (tui_set_current_layout_to): Remove.
5026
5027 2019-08-13 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-layout.c (tui_set_layout): Update.
5030 * tui/tui-data.h (struct tui_layout_def): Remove.
5031 (tui_layout_def): Don't declare.
5032 * tui/tui-data.c (layout_def): Remove.
5033 (tui_layout_def): Remove.
5034
5035 2019-08-13 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-winsource.h (struct tui_source_window_base)
5038 <clear_detail>: No longer "override".
5039 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5040 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5041 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5042 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5043 Remove.
5044 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5045
5046 2019-08-13 Tom Tromey <tromey@adacore.com>
5047
5048 * tracepoint.c: Don't include readline.h or history.h.
5049
5050 2019-08-12 Tom Tromey <tom@tromey.com>
5051
5052 * configure: Rebuild.
5053 * configure.ac: Check for readline 7.
5054 * NEWS: Mention readline 7 requirement.
5055 * README: Update.
5056
5057 2019-08-12 Tom Tromey <tom@tromey.com>
5058
5059 * mingw-hdep.c (gdb_select): Remove readline hack.
5060
5061 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5062
5063 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5064 when the function fails.
5065
5066 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5067
5068 * s390-tdep.c (s390_type_align): New function.
5069 (s390_gdbarch_init): Set it as type_align gdbarch method.
5070
5071 2019-08-09 Tom de Vries <tdevries@suse.de>
5072
5073 PR gdb/24591
5074 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5075 pc_low with relocation offset.
5076
5077 2019-08-07 Tom Tromey <tromey@adacore.com>
5078
5079 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5080 (print_frame_args): Update.
5081 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5082 Update.
5083 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5084 * frame.h (struct frame_arg): Add initializers.
5085 <error>: Now a unique_xmalloc_ptr.
5086
5087 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5088
5089 * NEWS: Expand the Pointer Authentication entry.
5090 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5091 (aarch64_frame_unmask_lr): ... to this.
5092 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5093 Call aarch64_frame_unmask_lr.
5094 * frame.c (struct frame_info): Add "masked" variable.
5095 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5096 (fprint_frame): Check for masked pc.
5097 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5098 declarations.
5099 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5100 * stack.c (print_frame): Check for masked pc.
5101
5102 2019-08-06 Tom Tromey <tom@tromey.com>
5103
5104 * stabsread.c (patch_block_stabs, read_one_struct_field)
5105 (read_enum_type): Use obstack_strndup.
5106 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5107 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5108 * dwarf2read.c (guess_full_die_structure_name)
5109 (anonymous_struct_prefix): Use obstack_strndup.
5110 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5111 * c-exp.y (yylex): Use obstack_strndup.
5112 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5113 (write_var_or_type): Use obstack_strndup.
5114
5115 2019-08-06 Tom Tromey <tom@tromey.com>
5116
5117 * symfile.c (reread_symbols): Use obstack_strdup.
5118 * stabsread.c (read_type): Use obstack_strdup.
5119 * gdb_obstack.h (obstack_strdup): New overload.
5120 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5121 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5122 (dwarf2_canonicalize_name): Use obstack_strdup.
5123 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5124 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5125 Use obstack_strdup.
5126
5127 2019-08-06 Tom Tromey <tom@tromey.com>
5128
5129 * gdb_obstack.h (obstack_strdup): Define.
5130 * gdb_obstack.c (obstack_strdup): Don't define.
5131
5132 2019-08-06 Tom Tromey <tom@tromey.com>
5133
5134 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5135 obstack_strdup.
5136 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5137 obstack_strdup.
5138 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5139 * stabsread.c (common_block_start): Use obstack_strdup.
5140 * objfiles.c (set_objfile_main_name, objfile): Use
5141 obstack_strdup.
5142 * namespace.c (add_using_directive): Use obstack_strdup.
5143 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5144 * jit.c (finalize_symtab): Use obstack_strdup.
5145 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5146 (guess_partial_die_structure_name, partial_die_info::fixup)
5147 (dwarf2_name): Use obstack_strdup.
5148 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5149 obstack_strdup.
5150 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5151 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5152 obstack_strdup.
5153 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5154
5155 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5156
5157 * unittests/help-doc-selftests.c: New file.
5158 * Makefile.in: Add the new file.
5159
5160 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5161
5162 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5163 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5164 the full first line, except when FOR_VALUE_PREFIX. In this case,
5165 the trailing '.' is not output, and the first character is uppercased.
5166 (print_help_for_command): Update call to print_doc_line.
5167 (print_doc_of_command): Likewise.
5168 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5169 * cli/cli-option.c (append_indented_doc): Do not append newline.
5170 (build_help_option): Append newline after first appended_indented_doc
5171 only if a second call is done.
5172 (build_help): Append 2 new lines before each option, except the first
5173 one.
5174 * compile/compile.c (_initialize_compile): Add new lines after
5175 %OPTIONS%, when not at the end of the help.
5176 Change help doc or code
5177 producing the help doc to respect the invariants.
5178 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5179 Also removed the new line after 'Options:', as all other commands
5180 do not put an empty line between 'Options:' and the first option.
5181 * printcmd.c (_initialize_printcmd): Likewise.
5182 * stack.c (_initialize_stack): Likewise.
5183 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5184 incorrectly telling COMMAND is optional.
5185 * ada-lang.c (_initialize_ada_language): Change help doc or code
5186 producing the help doc to respect the invariants.
5187 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5188 * breakpoint.c (_initialize_breakpoint): Likewise.
5189 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5190 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5191 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5192 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5193 _initialize_cli_style): Likewise.
5194 * corelow.c (core_target_info): Likewise.
5195 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5196 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5197 * filesystem.c (_initialize_filesystem): Likewise.
5198 * frame.c (_initialize_frame): Likewise.
5199 * gnu-nat.c (add_task_commands): Likewise.
5200 * infcall.c (_initialize_infcall): Likewise.
5201 * infcmd.c (_initialize_infcmd): Likewise.
5202 * interps.c (_initialize_interpreter): Likewise.
5203 * language.c (_initialize_language): Likewise.
5204 * linux-fork.c (_initialize_linux_fork): Likewise.
5205 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5206 * maint.c (_initialize_maint_cmds): Likewise.
5207 * memattr.c (_initialize_mem): Likewise.
5208 * printcmd.c (_initialize_printcmd): Likewise.
5209 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5210 _RegEx): Likewise.
5211 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5212 * record-btrace.c (_initialize_record_btrace): Likewise.
5213 * record-full.c (_initialize_record_full): Likewise.
5214 * record.c (_initialize_record): Likewise.
5215 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5216 * regcache.c (_initialize_regcache): Likewise.
5217 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5218 _initialize_remote): Likewise.
5219 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5220 * serial.c (_initialize_serial): Likewise.
5221 * skip.c (_initialize_step_skip): Likewise.
5222 * source.c (_initialize_source): Likewise.
5223 * stack.c (_initialize_stack): Likewise.
5224 * symfile.c (_initialize_symfile): Likewise.
5225 * symtab.c (_initialize_symtab): Likewise.
5226 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5227 * top.c (init_main): Likewise.
5228 * tracefile-tfile.c (tfile_target_info): Likewise.
5229 * tracepoint.c (_initialize_tracepoint): Likewise.
5230 * tui/tui-win.c (_initialize_tui_win): Likewise.
5231 * utils.c (add_internal_problem_command): Likewise.
5232 * valprint.c (value_print_option_defs): Likewise.
5233
5234 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5235
5236 PR build/24886
5237 * configure.ac: Drop enable-libmcheck support.
5238 * configure, config.in: Rebuild.
5239 * libmcheck.m4: Remove.
5240 * acinclude.m4: Don't include it.
5241 * Makefile.in: Don't distribute it.
5242 * top.c (print_gdb_configuration): Don't mention it.
5243
5244 2019-08-06 Tom Tromey <tom@tromey.com>
5245
5246 * utils.c (set_output_style): Sometimes pass stream to
5247 emit_style_escape.
5248 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5249 * record-btrace.c (btrace_insn_history): Update.
5250 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5251 method.
5252 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5253 Update initializers.
5254 <m_uiout>: New field.
5255 <m_di>: Move lower.
5256 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5257 Remove "uiout" parameter.
5258 (dump_insns): Update.
5259 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5260 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5261
5262 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5263
5264 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5265 (error_in_psymtab_expansion): Likewise.
5266 (lookup_symbol_via_quick_fns): Likewise.
5267 (basic_lookup_transparent_type_quick): Likewise.
5268 (basic_lookup_transparent_type_1): Likewise.
5269
5270 2019-08-06 Tom Tromey <tromey@adacore.com>
5271
5272 * source.c (last_source_error): Now bool.
5273 (print_source_lines_base): Make "noprint" bool. Only open
5274 source file when last_source_visited changes.
5275
5276 2019-08-06 Tom Tromey <tromey@adacore.com>
5277
5278 * annotate.c (annotate_source_line): Use g_source_cache.
5279 * source-cache.c (source_cache::get_plain_source_lines): Change
5280 parameters. Populate m_offset_cache.
5281 (source_cache::ensure): New method.
5282 (source_cache::get_line_charpos): New method.
5283 (extract_lines): Move lower. Change parameters.
5284 (source_cache::get_source_lines): Move lower.
5285 * source-cache.h (class source_cache): Update comment.
5286 <get_line_charpos>: New method.
5287 <get_source_lines>: Update comment.
5288 <clear>: Clear m_offset_cache.
5289 <get_plain_source_lines>: Change parameters.
5290 <ensure>: New method
5291 <m_offset_cache>: New member.
5292 * source.c (forget_cached_source_info_for_objfile): Update.
5293 (info_source_command): Use g_source_cache.
5294 (find_source_lines, open_source_file_with_line_charpos): Remove.
5295 (print_source_lines_base, search_command_helper): Use g_source_cache.
5296 * source.h (open_source_file_with_line_charpos): Don't declare.
5297 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5298 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5299 Use g_source_cache.
5300
5301 2019-08-06 Tom Tromey <tromey@adacore.com>
5302
5303 * source-cache.c (source_cache::get_plain_source_lines):
5304 Remove "first_line" and "last_line" parameters.
5305 (source_cache::get_source_lines): Cache plain text.
5306 * source-cache.h (class source_cache)
5307 <get_plain_source_lines>: Update.
5308
5309 2019-08-06 Tom Tromey <tromey@adacore.com>
5310
5311 * source-cache.c (extract_lines): No longer a method.
5312 Changed type of parameter. Include final newline.
5313 (selftests::extract_lines_test): New function.
5314 (_initialize_source_cache): Likewise.
5315 * source-cache.h (class source_cache)
5316 <extract_lines>: Don't declare.
5317
5318 2019-08-06 Tom Tromey <tromey@adacore.com>
5319
5320 * breakpoint.c (init_breakpoint_sal): Update.
5321 (breakpoint): Update.
5322 * breakpoint.h (struct breakpoint) <filter>: Now a
5323 unique_xmalloc_ptr.
5324
5325 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5326
5327 * NEWS: Mention dictionary access on blocks.
5328 * python/py-block.c (blpy_getitem): New function.
5329 (block_object_as_mapping): New struct.
5330 (block_object_type): Use new struct for tp_as_mapping field.
5331
5332 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5333
5334 * objfiles.h (objfile): Add a comment describing partial symbols.
5335
5336 2019-08-05 Tom Tromey <tromey@adacore.com>
5337
5338 * compile/compile.c (_initialize_compile): Use _(), not N_().
5339 * thread.c (_initialize_thread): Use _(), not N_().
5340 * stack.c (_initialize_stack): Use _(), not N_().
5341 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5342
5343 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * dwarf2read.c (struct dw2_symtab_iterator):
5346 <want_specific_block>: Remove.
5347 <block_index>: Change type to gdb::optional.
5348 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5349 change type of BLOCK_INDEX parameter to gdb::optional.
5350 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5351 (dw2_lookup_symbol): Don't pass argument for
5352 WANT_SPECIFIC_BLOCK.
5353 (dw2_expand_symtabs_for_function): Don't pass argument for
5354 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5355 (class dw2_debug_names_iterator)
5356 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5357 parameter, change BLOCK_INDEX type to gdb::optional.
5358 <m_want_specific_block>: Remove.
5359 <m_block_index>: Change type to gdb::optional.
5360 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5361 gdb::optional. Re-write in function of gdb::optional.
5362 (dw2_debug_names_lookup_symbol): Don't pass argument for
5363 WANT_SPECIFIC_BLOCK.
5364 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5365 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5366 BLOCK_INDEX.
5367
5368 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5369
5370 * NEWS: Mention changes to "info sources" command.
5371
5372 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5373
5374 * symtab.c (filename_partial_match_opts): New struct type.
5375 (struct output_source_filename_data): New members
5376 regexp, c_regexp, partial_match.
5377 (output_source_filename): Use new members to decide to print file.
5378 (info_sources_option_defs): New variable.
5379 (make_info_sources_options_def_group, print_info_sources_header,
5380 info_sources_command_completer):
5381 New functions.
5382 (info_sources_command): Read new optional arguments.
5383 (_initialize_symtab): Update info sources help.
5384
5385 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5386
5387 * ada-lang.c (exception_support_info_v0): Renamed from...
5388 (default_exception_support_info): ... this. Create new
5389 definition for v1.
5390 (ada_has_this_exception_support): Look up catch_handlers_sym.
5391 (ada_exception_support_info_sniffer): Try v0 after default.
5392
5393 2019-08-01 Tom Tromey <tromey@adacore.com>
5394
5395 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5396 gdbarch.h.
5397
5398 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5399
5400 * s12z-tdep.c: Fix include path for s12z-opc.h.
5401
5402 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5403
5404 * NEWS: Require GNU make 3.82.
5405
5406 2019-07-16 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5409 declare.
5410
5411 2019-07-30 Tom Tromey <tromey@adacore.com>
5412
5413 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5414
5415 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5416
5417 * printcmd.c (print_address_symbolic): Print negative offsets.
5418 (build_address_symbolic): Force signed arithmetic when computing
5419 offset.
5420
5421 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5422
5423 PR/24474: Add a function to lookup static variables.
5424 * NEWS: Mention this new function.
5425 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5426 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5427 * python/python.c (python_GdbMethods): Add new function.
5428
5429 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5430
5431 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5432 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5433 (objfpy_lookup_static_symbol): New function.
5434 (objfile_object_methods): Add new functions.
5435
5436 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5437
5438 * NEWS: Mention 'set|show print frame-info'. Mention new
5439 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5440 backtrace argument. Mention that python frame filtering code
5441 is now consistent with what 'backtrace' command prints.
5442
5443 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5444
5445 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5446 comments.
5447 (print_frame_info_auto, print_frame_info_source_line,
5448 print_frame_info_location, print_frame_info_source_and_location,
5449 print_frame_info_location_and_address, print_frame_info_short_location):
5450 New declarations.
5451 (struct frame_print_options): New member print_frame_info.
5452 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5453 * stack.h (get_user_print_what_frame_info): New declaration.
5454 (frame_show_address): New declaration.
5455 * stack.c (print_frame_arguments_choices): New value 'presence'.
5456 (print_frame_info_auto, print_frame_info_source_line,
5457 print_frame_info_location, print_frame_info_source_and_location,
5458 print_frame_info_location_and_address, print_frame_info_short_location,
5459 print_frame_info_choices, print_frame_info_print_what): New definitions.
5460 (print_frame_args): Only print dots for args if print frame-arguments
5461 is 'presence'.
5462 (frame_print_option_defs): New element for "frame-info".
5463 (get_user_print_what_frame_info): New function.
5464 (frame_show_address): Make non static. Move comment to stack.h.
5465 (print_frame_info_to_print_what): New function.
5466 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5467 to decide what to print.
5468 (backtrace_command_1): Handle the new print_frame_arguments_presence
5469 value.
5470 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5471 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5472 (py_print_frame): In non-mi mode, use LOCATION as default for
5473 print_what, similarly to frame information printed directly by
5474 backtrace command. Handle frame-info user option in non MI mode.
5475
5476 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5477
5478 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5479 Add case for debugging 32-bit target on 64-bit host. Revise
5480 comment.
5481
5482 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5483
5484 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5485 instead of find_function_entry_range_from_pc.
5486
5487 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5488
5489 * stack.c (find_frame_funname): Remove code which preferred
5490 minsym over symtab sym in "certain pathological cases".
5491
5492 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5493 parameter. Change type of "do_demangle" to bool.
5494 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5495 Pass suitable "prefer_sym_over_minsym" flag to
5496 build_address_symbolic(). Don't output "+" for negative offsets.
5497 * printcmd.c (print_address_symbolic): Update invocation of
5498 build_address_symbolic to include a "prefer_sym_over_minsym"
5499 flag.
5500 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5501 Restrict cases in which use of minimal symbol is preferred to that
5502 of a found symbol. Update comments.
5503
5504 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5505 for entry pc when entry pc is out of range for that FDE.
5506
5507 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5508
5509 PR gdb/24839:
5510 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5511 type.
5512
5513 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5514
5515 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5516 this function's Python signature.
5517
5518
5519 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5520
5521 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5522 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5523 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5524 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5525 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5526
5527
5528 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5529
5530 * h8300-tdep.c (h8300_register_name_common): New.
5531 h8300_register_name): Use h8300_register_name_common.
5532 (h8300s_register_name): Likewise.
5533 (h8300sx_register_name): Likewise.
5534 (h8300h_register_nam): New.
5535 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5536
5537
5538 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5539
5540 * arm-tdep.c (arm_skip_cmse_entry): New function.
5541 (arm_is_sgstubs_section): New function.
5542 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5543
5544 2019-07-22 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5547 Don't self-assign.
5548
5549 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5552 type_print.
5553
5554 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5555
5556 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5557 so that GDB doesn't match any msymbols when searching in the
5558 TYPES_DOMAIN.
5559 (print_symbol_info): Print using typedef_print or type_print based
5560 on the type of the symbol. Add updated FIXME comment moved from...
5561 (_initialize_symtab): ... move and update FIXME comment to above.
5562
5563 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5564
5565 * NEWS: Mention adding -q option to "info types".
5566 * symtab.c (struct info_types_options): New struct.
5567 (info_types_options_defs): New variable.
5568 (make_info_types_options_def_group): New function.
5569 (info_types_command): Use gdb::option framework to parse options.
5570 (info_types_command_completer): New function.
5571 (_initialize_symtab): Extend the help text on "info types" and
5572 register command completer.
5573
5574 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5575
5576 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5577 (lookup_symbol_in_objfile): Change int to block_enum and add a
5578 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5579
5580 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5581
5582 * MAINTAINERS (Write After Approval): Add self.
5583
5584 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5585
5586 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5587 instruction to the dummy code region.
5588
5589 2019-07-19 Tom Tromey <tromey@adacore.com>
5590
5591 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5592 (ARGSUSED, PARAMS, __func__): Remove rules.
5593
5594 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5595
5596 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5597 * features/arm/arm-with-iwmmxt.c: Remove.
5598 * features/arm/arm-with-iwmmxt.xml: Remove.
5599 * features/arm/arm-with-m-fpa-layout.c: Remove.
5600 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5601 * features/arm/arm-with-m-vfp-d16.c: Remove.
5602 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5603 * features/arm/arm-with-m.c: Remove.
5604 * features/arm/arm-with-m.xml: Remove.
5605 * features/arm/arm-with-neon.c: Remove.
5606 * features/arm/arm-with-neon.xml: Remove.
5607 * features/arm/arm-with-vfpv2.c: Remove.
5608 * features/arm/arm-with-vfpv2.xml: Remove.
5609 * features/arm/arm-with-vfpv3.c: Remove.
5610 * features/arm/arm-with-vfpv3.xml: Remove.
5611
5612 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5613
5614 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5615
5616 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5617
5618 * arch/aarch32.c (aarch32_create_target_description): Create
5619 target descriptions using features.
5620 * arch/arm.c (arm_create_target_description)
5621 (arm_create_mprofile_target_description): Likewise.
5622 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5623
5624 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5625
5626 * Makefile.in: Add new files.
5627 * aarch32-tdep.c: New file.
5628 * aarch32-tdep.h: New file.
5629 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5630 Call aarch32_read_description.
5631 * arch/aarch32.c: New file.
5632 * arch/aarch32.h: New file.
5633 * arch/arm.c (arm_create_target_description)
5634 (arm_create_mprofile_target_description): New function.
5635 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5636 (arm_create_target_description)
5637 (arm_create_mprofile_target_description): New declaration.
5638 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5639 read_description functions.
5640 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5641 Likewise.
5642 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5643 * arm-tdep.c (tdesc_arm_list): New variable.
5644 (arm_register_g_packet_guesses): Call create description functions.
5645 (arm_read_description) (arm_read_mprofile_description): New
5646 function.
5647 * arm-tdep.h (arm_read_description)
5648 (arm_read_mprofile_description): Add declaration.
5649 * configure.tgt: Add new files.
5650
5651 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5652
5653 * top.c (new_ui_command): Open specified terminal just once.
5654
5655 2019-07-18 Tom Tromey <tromey@adacore.com>
5656
5657 * symtab.c (main_name): Constify return type.
5658 * symfile.c (set_initial_language): Update.
5659 * symtab.h (main_name): Constify return type.
5660
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5662
5663 * tui/tui-winsource.c (tui_update_source_window)
5664 (tui_update_source_window_as_is)
5665 (tui_update_source_windows_with_line): Remove return.
5666 * tui/tui-disasm.c (tui_show_disassem)
5667 (tui_show_disassem_and_update_source): Remove return.
5668 * tui/tui.c (tui_reset): Remove return.
5669 * tui/tui-wingeneral.c
5670 (tui_check_and_display_highlight_if_needed): Remove return.
5671
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5675
5676 2019-07-17 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-winsource.h (struct tui_exec_info_window)
5679 (struct tui_source_window_base): Move from tui-data.h.
5680 * tui/tui-winsource.c: Move many method definitions from
5681 elsewhere. Remove "structuring" comments.
5682 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5683 (tui_source_window_base::refresh_window): Move to
5684 tui-winsource.c.
5685 * tui/tui-win.c (tui_source_window_base::refresh_all)
5686 (tui_source_window_base::update_tab_width)
5687 (tui_source_window_base::set_new_height)
5688 (tui_source_window_base::do_make_visible_with_new_height): Move to
5689 tui-winsource.c.
5690 * tui/tui-source.h: Update.
5691 * tui/tui-source.c (tui_source_window_base::reset): Move to
5692 tui-winsource.c.
5693 * tui/tui-disasm.h: Update.
5694 * tui/tui-data.h (struct tui_exec_info_window): Move to
5695 tui-winsource.h.
5696 (struct tui_source_window_base): Likewise.
5697 * tui/tui-data.c (tui_source_window_base::clear_detail)
5698 (tui_source_window_base, ~tui_source_window_base): Move to
5699 tui-winsource.c.
5700
5701 2019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-win.c (tui_resize_all)
5704 (tui_source_window_base::update_tab_width)
5705 (tui_adjust_win_heights): Update.
5706 (tui_win_info::make_invisible_and_set_new_height): Rename from
5707 make_invisible_and_set_new_height.
5708 * tui/tui-data.h (struct tui_win_info)
5709 <make_invisible_and_set_new_height>: New method.
5710
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui.c: Update.
5714 * tui/tui-source.h (struct tui_source_window): Move from
5715 tui-data.h.
5716 * tui/tui-layout.c: Update.
5717 * tui/tui-disasm.c: Update.
5718 * tui/tui-data.h (struct tui_source_window): Move to
5719 tui-source.h.
5720
5721 2019-07-17 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5724 tui-data.h.
5725 * tui/tui-data.h (struct tui_disasm_window): Move to
5726 tui-disasm.h.
5727
5728 2019-07-17 Tom Tromey <tom@tromey.com>
5729
5730 * tui/tui-regs.h (struct tui_data_item_window): Move from
5731 tui-data.h.
5732 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5733 * tui/tui-data.h (struct tui_data_item_window): Move to
5734 tui-regs.h.
5735 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5736
5737 2019-07-17 Tom Tromey <tom@tromey.com>
5738
5739 * tui/tui.c: Update.
5740 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5741 (tui_cmd_window::max_height): Move to tui-command.c.
5742 * tui/tui-layout.c: Update.
5743 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5744 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5745 tui-command.c.
5746 * tui/tui-command.h (struct tui_cmd_window): Move from
5747 tui-data.h.
5748 * tui/tui-command.c: Remove "structuring" comments.
5749 (tui_cmd_window::clear_detail)
5750 (tui_cmd_window::do_make_visible_with_new_height)
5751 (tui_cmd_window::max_height): Move from elsewhere.
5752
5753 2019-07-17 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5756 Now static.
5757 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5758 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5759
5760 2019-07-17 Tom Tromey <tom@tromey.com>
5761
5762 * tui/tui.c: Update.
5763 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5764 tui-regs.c.
5765 * tui/tui-windata.h: Remove file.
5766 * tui/tui-windata.c: Remove file.
5767 * tui/tui-win.c (tui_data_window::set_new_height)
5768 (tui_data_window::do_make_visible_with_new_height): Move to
5769 tui-regs.c.
5770 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5771 * tui/tui-regs.c: Remove "structuring" comments.
5772 (tui_data_window::first_data_item_displayed)
5773 (tui_data_window::delete_data_content_windows)
5774 (tui_data_window::erase_data_content)
5775 (tui_data_window::display_all_data)
5776 (tui_data_window::refresh_all)
5777 (tui_data_window::do_scroll_vertical)
5778 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5779 (tui_data_window::do_make_visible_with_new_height)
5780 (tui_data_window::refresh_window): Move from elsewhere.
5781 (_initialize_tui_regs): Move to end of file.
5782 * tui/tui-layout.c: Update.
5783 * tui/tui-hooks.c: Update.
5784 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5785 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5786 tui-regs.c.
5787 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5788
5789 2019-07-17 Tom Tromey <tom@tromey.com>
5790
5791 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5792 seen.
5793
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-win.c (tui_source_window_base::set_new_height)
5797 (tui_source_window_base::do_make_visible_with_new_height): Use
5798 m_has_locator field directly.
5799 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5800 method.
5801 (struct tui_source_window_base) <has_locator>: Likewise.
5802
5803 2019-07-17 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5806 Don't declare.
5807 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5808 Remove.
5809 * tui/tui-win.c (tui_source_window_base::set_new_height)
5810 (tui_source_window_base::set_new_height)
5811 (make_invisible_and_set_new_height)
5812 (tui_source_window_base::do_make_visible_with_new_height)
5813 (tui_source_window_base::do_make_visible_with_new_height):
5814 Update.
5815 * tui/tui-layout.c (show_source_disasm_command, show_data)
5816 (show_source_or_disasm_and_command): Update.
5817 * tui/tui-layout.c (show_layout): Update.
5818
5819 2019-07-17 Tom Tromey <tom@tromey.com>
5820
5821 * tui/tui-layout.c (make_data_window): Remove.
5822 (show_data): Unify creation and re-initialization cases.
5823
5824 2019-07-17 Tom Tromey <tom@tromey.com>
5825
5826 * tui/tui-layout.c (make_source_window, make_disasm_window):
5827 Remove.
5828 (show_data): Unify creation and re-initialization cases.
5829
5830 2019-07-17 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-layout.c (make_command_window): Remove.
5833 (show_source_disasm_command, show_source_or_disasm_and_command):
5834 Unify creation and re-initialization cases.
5835
5836 2019-07-17 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5839 creation and re-initialization cases.
5840
5841 2019-07-17 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-regs.c (tui_get_register): Return void.
5844
5845 2019-07-17 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5848 Simplify.
5849
5850 2019-07-17 Tom Tromey <tom@tromey.com>
5851
5852 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5853 resetting.
5854
5855 2019-07-17 Tom Tromey <tom@tromey.com>
5856
5857 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5858 * tui/tui-regs.c (tui_reg_layout): New function.
5859 (tui_show_registers, tui_reg_command): Use it.
5860 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5861 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5862 parameters.
5863 (tui_layout_command): Remove.
5864
5865 2019-07-17 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-layout.h (tui/tui-layout): Return void.
5868 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5869
5870 2019-07-17 Tom Tromey <tom@tromey.com>
5871
5872 * tui/tui-layout.c (show_source_disasm_command, show_data):
5873 Update.
5874 (reset_locator): Remove.
5875 (show_source_or_disasm_and_command): Update.
5876
5877 2019-07-17 Tom Tromey <tom@tromey.com>
5878
5879 * tui/tui-source.c (tui_source_window_base::reset): Remove
5880 win_type parameter.
5881 * tui/tui-layout.c (make_command_window, make_source_window)
5882 (make_disasm_window, make_data_window)
5883 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5884 (reset_locator, show_source_or_disasm_and_command): Update.
5885 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5886 win_type parameter.
5887 (struct tui_source_window_base) <reset>: Likewise.
5888
5889 2019-07-17 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-layout.c (show_source_disasm_command): Use
5892 reset_locator.
5893 (reset_locator): New function.
5894 (init_and_make_win): Remove.
5895 (show_source_or_disasm_and_command): Use reset_locator.
5896
5897 2019-07-17 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5900 condition.
5901 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5902 Remove condition.
5903 * tui/tui-source.c (tui_source_window_base::reset): New method.
5904 * tui/tui-layout.c (make_command_window): Don't call
5905 init_and_make_win.
5906 (make_source_window, make_disasm_window): Don't call
5907 make_source_or_disasm_window.
5908 (make_data_window): Don't call init_and_make_win. Change calling
5909 convention.
5910 (show_source_disasm_command, show_data): Simplify.
5911 (make_source_or_disasm_window): Remove.
5912 (show_source_or_disasm_and_command): Simplify.
5913 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5914 (struct tui_source_window_base) <reset>: Likewise.
5915 <execution_info>: Remove initializer.
5916 * tui/tui-data.c (tui_source_window_base): Initialize
5917 execution_info.
5918
5919 2019-07-17 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5922 variable.
5923
5924 2019-07-17 Tom Tromey <tom@tromey.com>
5925
5926 * tui/tui.c (tui_rl_other_window): Update.
5927 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5928 superclass method first. Always iterate over regs_content.
5929 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5930 method.
5931 * tui/tui-win.c (tui_set_focus_command): Update.
5932
5933 2019-07-17 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-win.c (tui_set_focus_command): Rename from
5936 tui_set_focus. Call tui_enable.
5937 (tui_set_focus_command): Remove.
5938
5939 2019-07-17 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5942 refresh_window.
5943 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5944 touchwin.
5945 (tui_data_window::refresh_window): Call refresh_window on data
5946 items. Always call superclass refresh_window.
5947 (tui_win_info::refresh): Remove.
5948 (tui_source_window_base::refresh_window): Update.
5949 (tui_refresh_all): Update.
5950 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5951 refresh_window.
5952 (show_source_or_disasm_and_command): Likewise.
5953 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5954 (struct tui_source_window_base) <refresh>: Likewise.
5955
5956 2019-07-17 Tom Tromey <tom@tromey.com>
5957
5958 * tui/tui-winsource.c (tui_clear_source_content)
5959 (tui_show_source_content): Update.
5960 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5961 whether content is empty.
5962 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5963 Remove.
5964
5965 2019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5968 window's contents.
5969 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5970 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5971
5972 2019-07-17 Tom Tromey <tom@tromey.com>
5973
5974 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5975 (struct tui_data_item_window): Update.
5976
5977 2019-07-17 Tom Tromey <tom@tromey.com>
5978
5979 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5980 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5981 defines.
5982
5983 2019-07-17 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-winsource.h (tui_erase_source_content)
5986 (tui_clear_source_content): Remove "display_prompt" parameter.
5987 * tui/tui-winsource.c (tui_update_source_window_as_is)
5988 (tui_update_source_windows_with_addr): Update.
5989 (tui_clear_source_content): Remove "display_prompt" parameter.
5990 (tui_erase_source_content): Likewise. Simplify.
5991 (tui_show_source_content): Update.
5992 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5993 * tui/tui-stack.c (tui_show_frame_info): Update.
5994 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5995 Remove defines.
5996
5997 2019-07-17 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6000 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6001 parameter.
6002 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6003 parameter.
6004
6005 2019-07-17 Tom Tromey <tom@tromey.com>
6006
6007 * tui/tui-winsource.c (tui_clear_source_content)
6008 (tui_show_source_content, tui_show_exec_info_content)
6009 (tui_clear_exec_info_content): Update.
6010 * tui/tui-stack.c (tui_show_locator_content): Update.
6011 (tui_show_frame_info): Update.
6012 * tui/tui-source.h (tui_source_window): Don't declare.
6013 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6014 from tui_source_is_displayed.
6015 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6016 Remove field.
6017 (struct tui_source_window_base) <content_in_use>: New field. Now
6018 bool.
6019 (struct tui_source_window) <showing_source_p>: New method.
6020 (TUI_SRC_WIN): Change cast.
6021 * tui/tui-data.c (tui_initialize_static_data): Update.
6022
6023 2019-07-17 Tom Tromey <tom@tromey.com>
6024
6025 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6026 location_matches_p.
6027 * tui/tui-source.c (tui_source_window::location_matches_p): New
6028 method.
6029 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6030 method.
6031 * tui/tui-data.h (struct tui_source_window_base)
6032 <location_matches_p>: New method.
6033 (struct tui_source_window, struct tui_disasm_window)
6034 <location_matches_p>: Likewise.
6035
6036 2019-07-17 Tom Tromey <tom@tromey.com>
6037
6038 * tui/tui-win.c (tui_set_win_height_command): Rename from
6039 tui_set_win_height.
6040 (tui_set_win_height_command): Remove.
6041
6042 2019-07-17 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-source.c (tui_source_window): New constructor. Add
6045 observer.
6046 (~tui_source_window): New destructor.
6047 (tui_source_window::style_changed): New method.
6048 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6049 (tui_attach_detach_observers): Update.
6050 * tui/tui-data.h (struct tui_source_window): Make constructor not
6051 inline. Add destructor.
6052 (struct tui_source_window) <style_changed>: New method.
6053 <m_observable>: New member.
6054
6055 2019-07-17 Tom Tromey <tom@tromey.com>
6056
6057 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6058 * tui/tui-win.c (tui_resize_all): Fix typo.
6059
6060 2019-07-17 Tom Tromey <tom@tromey.com>
6061
6062 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6063 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6064 (tui_refresh_all): Remove "list" parameter. Use foreach.
6065 * tui/tui-win.c (window_name_completer): Use foreach.
6066 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6067 (update_tab_width): Likewise.
6068 * tui/tui-layout.c (show_layout): Update.
6069 * tui/tui-data.h (class tui_window_iterator): New.
6070 (struct all_tui_windows): New.
6071 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6072
6073 2019-07-17 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6076 parameter. Don't reference globals.
6077 (tui_reg_command): Update.
6078
6079 2019-07-17 Tom Tromey <tom@tromey.com>
6080
6081 * tui/tui-regs.c (tui_show_registers): Simplify.
6082
6083 2019-07-17 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui-regs.c (tui_show_registers): Update.
6086 (tui_show_register_group): Add win_info parameter.
6087
6088 2019-07-17 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6091 Rename from tui_display_reg_element_at_line.
6092 (tui_data_window::display_registers_from_line): Update.
6093 * tui/tui-data.h (struct tui_data_window)
6094 <display_reg_element_at_line>: New method.
6095
6096 2019-07-17 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui-regs.h (tui_display_registers_from)
6099 (tui_display_registers_from_line): Don't declare.
6100 * tui/tui-windata.c (tui_data_window::display_all_data)
6101 (tui_data_window::refresh_all)
6102 (tui_data_window::do_scroll_vertical): Update.
6103 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6104 from tui_display_registers_from.
6105 (tui_display_reg_element_at_line): Update.
6106 (tui_data_window::display_registers_from_line): Rename from
6107 tui_display_registers_from_line.
6108 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6109 display_registers_from_line>: New methods.
6110
6111 2019-07-17 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6114 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6115 from tui_erase_data_content.
6116 (tui_data_window::display_all_data)
6117 (tui_data_window::refresh_all)
6118 (tui_data_window::do_scroll_vertical): Update.
6119 * tui/tui-regs.c (tui_show_registers): Update.
6120 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6121 New method.
6122
6123 2019-07-17 Tom Tromey <tom@tromey.com>
6124
6125 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6126 declare.
6127 * tui/tui-windata.c
6128 (tui_data_window::delete_data_content_windows): Rename from
6129 tui_delete_data_content_windows.
6130 (tui_data_window::display_all_data)
6131 (tui_data_window::do_scroll_vertical): Update.
6132 * tui/tui-data.h (struct tui_data_window)
6133 <delete_data_content_windows>: New method.
6134
6135 2019-07-17 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6138 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6139
6140 2019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6143 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6144 from tui_display_all_data.
6145 * tui/tui-win.c
6146 (tui_data_window::do_make_visible_with_new_height): Update.
6147 * tui/tui-regs.c (tui_show_registers): Update.
6148 * tui/tui-layout.c (tui_set_layout): Update.
6149 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6150 method.
6151
6152 2019-07-17 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6155 * tui/tui-windata.c (tui_display_data_from): Remove.
6156 (tui_data_window::refresh_all): Update.
6157
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6161 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6162 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6163 tui_display_registers_from_line.
6164 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6165 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6166 "force_display" parameter.
6167
6168 2019-07-17 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6171 declare.
6172 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6173 Rename from tui_first_reg_element_no_inline.
6174 (tui_display_reg_element_at_line)
6175 (tui_display_registers_from_line): Update.
6176 * tui/tui-data.h (struct tui_data_window)
6177 <first_reg_element_no_inline>: New method.
6178
6179 2019-07-17 Tom Tromey <tom@tromey.com>
6180
6181 * tui/tui-windata.c (tui_display_data_from)
6182 (tui_data_window::do_scroll_vertical): Update.
6183 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6184 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6185 Rename from tui_line_from_reg_element_no.
6186 (tui_display_registers_from_line): Update.
6187 * tui/tui-data.h (struct tui_data_window)
6188 <line_from_reg_element_no>: New method.
6189
6190 2019-07-17 Tom Tromey <tom@tromey.com>
6191
6192 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6193 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6194 tui_last_regs_line_no.
6195 (tui_display_reg_element_at_line)
6196 (tui_display_registers_from_line): Update.
6197 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6198 method.
6199
6200 2019-07-17 Tom Tromey <tom@tromey.com>
6201
6202 PR tui/24722:
6203 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6204 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6205 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6206 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6207 (tui_update_breakpoint_info): Likewise.
6208 * tui/tui-hooks.c (tui_event_create_breakpoint)
6209 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6210 Update.
6211
6212 2019-07-17 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6215
6216 2019-07-17 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-winsource.c (tui_update_source_window_as_is)
6219 (tui_update_source_windows_with_addr): Update.
6220 * tui/tui-source.h (tui_set_source_content)
6221 (tui_show_symtab_source): Add "win_info" parameter.
6222 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6223 parameter.
6224 (tui_show_symtab_source): Likewise.
6225
6226 2019-07-17 Tom Tromey <tom@tromey.com>
6227
6228 * tui/tui-wingeneral.c
6229 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6230
6231 2019-07-17 Tom Tromey <tom@tromey.com>
6232
6233 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6234 (struct tui_cmd_window) <can_scroll>: New method.
6235 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6236 method.
6237
6238 2019-07-17 Tom Tromey <tromey@adacore.com>
6239
6240 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6241 do_field_signed>: Rename. Change type of "value".
6242 * ui-out.c (ui_out::field_signed): Rename from field_int.
6243 Change type of "value".
6244 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6245 type of "value".
6246 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6247 do_field_int. Change type of "value".
6248 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6249 do_field_int. Change type of "value".
6250 * tracepoint.c (trace_status_mi, tfind_1)
6251 (print_one_static_tracepoint_marker): Update.
6252 * thread.c (print_thread_info_1, print_selected_thread_frame):
6253 Update.
6254 * stack.c (print_frame, print_frame_info): Update.
6255 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6256 Update.
6257 * source.c (print_source_lines_base): Update.
6258 * skip.c (info_skip_command): Update.
6259 * record-btrace.c (btrace_ui_out_decode_error)
6260 (btrace_call_history_src_line): Update.
6261 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6262 Update.
6263 * progspace.c (print_program_space): Update.
6264 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6265 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6266 do_field_int. Change type of "value".
6267 * mi/mi-out.c (mi_ui_out::do_table_begin)
6268 (mi_ui_out::do_table_header): Update.
6269 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6270 type of "value".
6271 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6272 (mi_cmd_data_list_changed_registers, output_register)
6273 (mi_cmd_data_read_memory, mi_load_progress)
6274 (mi_cmd_trace_frame_collected): Update.
6275 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6276 Update.
6277 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6278 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6279 (mi_cmd_var_list_children, varobj_update_one): Update.
6280 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6281 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6282 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6283 * inferior.c (print_inferior): Update.
6284 * gdb_bfd.c (print_one_bfd): Update.
6285 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6286 Update.
6287 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6288 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6289 do_field_int. Change type of "value".
6290 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6291 do_field_int. Change type of "value".
6292 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6293 (print_one_breakpoint_location, print_it_catch_fork)
6294 (print_one_catch_fork, print_it_catch_vfork)
6295 (print_one_catch_vfork, print_it_catch_solib)
6296 (print_it_catch_exec, print_it_ranged_breakpoint)
6297 (print_mention_watchpoint, print_mention_masked_watchpoint)
6298 (bkpt_print_it, update_static_tracepoint): Update.
6299 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6300 * break-catch-syscall.c (print_it_catch_syscall): Update.
6301 * ada-tasks.c (print_ada_task_info): Update.
6302 * ada-lang.c (print_it_exception, print_mention_exception):
6303 Update.
6304
6305 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 PR breakpoints/24541
6308 * gdbarch.c: Regenerate.
6309 * gdbarch.h: Regenerate.
6310 * gdbarch.sh: Adjust return type and parameter types for
6311 'stap_adjust_register'.
6312 (i386_stap_adjust_register): Adjust signature and return new
6313 register name.
6314 * stap-probe.c (stap_parse_register_operand): Adjust use of
6315 'gdbarch_stap_adjust_register'.
6316
6317 2019-07-17 Tom Tromey <tromey@adacore.com>
6318
6319 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6320 declare VEC.
6321 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6322 std::vector.
6323 (struct s390_process_info): Add initializers.
6324 (s390_add_process): Use new.
6325 (s390_linux_nat_target::low_forget_process): Use delete.
6326 (s390_linux_nat_target::low_new_fork)
6327 (s390_linux_nat_target::stopped_by_watchpoint)
6328 (s390_linux_nat_target::low_prepare_to_resume)
6329 (s390_linux_nat_target::insert_watchpoint)
6330 (s390_linux_nat_target::insert_hw_breakpoint)
6331 (s390_linux_nat_target::remove_watchpoint)
6332 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6333
6334 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6335
6336 * aarch64-fbsd-nat.c: Include regcache.h.
6337 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6338 argument.
6339 (aarch64_fbsd_nat_target::fetch_registers)
6340 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6341 variable.
6342 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6343
6344 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6345
6346 * fbsd-nat.c: Include gdbarch.h.
6347
6348 2019-07-15 Tom Tromey <tromey@adacore.com>
6349
6350 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6351
6352 2019-07-15 Tom Tromey <tromey@adacore.com>
6353
6354 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6355 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6356 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6357 * cli-out.c (cli_ui_out::do_field_int): New method.
6358 * ui-out.c (ui_out::field_unsigned): New method.
6359 * symfile.c (generic_load): Use field_unsigned.
6360 (print_transfer_performance): Likewise.
6361 * record-btrace.c (ui_out_field_uint): Remove.
6362 (btrace_call_history_insn_range, btrace_call_history): Use
6363 field_unsigned.
6364 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6365 field_unsigned.
6366 * ui-out.h (class ui_out) <field_unsigned>: New method.
6367 <do_field_unsigned>: Likewise.
6368
6369 2019-07-15 Tom Tromey <tromey@adacore.com>
6370
6371 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6372 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6373 * target.c (flash_erase_command): Use field_string.
6374 * infrun.c (print_signal_received_reason): Use field_string.
6375 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6376 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6377 field_string.
6378 * ada-tasks.c (print_ada_task_info): Use field_string.
6379
6380 2019-07-15 Tom Tromey <tromey@adacore.com>
6381
6382 * target.c (flash_erase_command): Use field_core_addr.
6383 * symfile.c (generic_load): Use field_core_addr.
6384 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6385 Use field_core_addr.
6386 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6387 field_core_addr.
6388
6389 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6392 value if its desired type is smaller than a CORE_ADDR and signed.
6393
6394 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6397 of changes to field names, and use new is_reference field to
6398 decide if a property is a reference or not.
6399 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6400 field.
6401 (struct dwarf2_property_baton): Update header comment, rename
6402 'referenced_type' to 'property_type' and update comments.
6403 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6404 default property type, store in property baton, update to take
6405 accound of renamed field.
6406 (read_func_scope): Update call to attr_to_dynamic_prop.
6407 (read_array_type): Likewise.
6408 (dwarf2_per_cu_addr_sized_int_type): New function.
6409 (read_subrange_index_type): Move type finding code to
6410 dwarf2_per_cu_addr_sized_int_type.
6411 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6412 (dwarf2_per_cu_addr_type): New function.
6413 (set_die_type): Update calls to attr_to_dynamic_prop.
6414
6415 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * dwarf2read.c (read_subrange_index_type): New function.
6418 (read_subrange_type): Move code into new function and call it.
6419 * gdbtypes.c (create_range_type): Add some asserts.
6420
6421 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6424 update return statements.
6425 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6426 declaration, and update comment to match.
6427 * gdbtypes.c (resolve_dynamic_array): Update call to
6428 dwarf2_evaluate_property to match new return type.
6429
6430 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6431
6432 * valarith.c (value_subscripted_rvalue): Change lowerbound
6433 parameter type from int to LONGEST.
6434 * value.h (value_subscripted_rvalue): Likewise in declaration.
6435
6436 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * cli/cli-utils.c (info_print_command_completer): New function.
6439 * cli/cli-utils.h: Add 'completer.h' include, and forward
6440 declaration for 'struct cmd_list_element'.
6441 (info_print_command_completer): Declare.
6442 * stack.c (_initialize_stack): Add completer for 'info locals' and
6443 'info args'.
6444 * symtab.c (_initialize_symtab): Add completer for 'info
6445 variables' and 'info functions'.
6446 * NEWS: Mention completion for additional info commands.
6447
6448 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6449
6450 * cli/cli-utils.c (extract_info_print_args): Delete.
6451 (extract_arg_maybe_quoted): Delete.
6452 (info_print_options_defs): New variable.
6453 (make_info_print_options_def_group): New function.
6454 (extract_info_print_options): Define new function.
6455 * cli/cli-utils.h (extract_info_print_args): Delete.
6456 (struct info_print_options): New structure.
6457 (extract_info_print_options): Declare new function.
6458 * stack.c (info_locals_command): Update to use new
6459 extract_info_print_options, also add a header comment.
6460 (info_args_command): Likewise.
6461 * symtab.c (info_variables_command): Likewise.
6462 (info_functions_command): Likewise.
6463
6464 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6467 to extract string arguments.
6468 * common/common-utils.c (extract_string_maybe_quoted): New function.
6469 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6470
6471 2019-07-11 Tom Tromey <tromey@adacore.com>
6472
6473 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6474 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6475 * top.h (gdbinit): Don't declare.
6476 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6477 into...
6478 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6479 * top.c (gdb_init): Don't call init_cli_cmds.
6480 (gdbinit): Remove.
6481 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6482
6483 2019-07-11 Tom Tromey <tromey@adacore.com>
6484
6485 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6486 after it has been moved.
6487
6488 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * valops.c (value_must_coerce_to_target): Change return type to
6491 bool.
6492 * value.h (value_must_coerce_to_target): Likewise.
6493
6494 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * breakpoint.c (is_hardware_watchpoint): Remove
6497 forward-declaration.
6498 (is_masked_watchpoint): Change return type to bool.
6499 (is_tracepoint): Likewise.
6500 (is_breakpoint): Likewise.
6501 (is_hardware_watchpoint): Likewise.
6502 (is_watchpoint): Likewise.
6503 (is_no_memory_software_watchpoint): Likewise.
6504 (is_catchpoint): Likewise.
6505 (breakpoint_1): Make FILTER parameter's return type bool.
6506 is_masked_watchpoint): Change return type to bool.
6507 (save_breakpoints): Make FILTER parameter's return type bool.
6508 * breakpoint.h (is_breakpoint): Change return type to bool.
6509 (is_watchpoint): Likewise.
6510 (is_catchpoint): Likewise.
6511 (is_tracepoint): Likewise.
6512
6513 2019-07-10 Tom Tromey <tom@tromey.com>
6514
6515 * defs.h: Don't include gdbarch.h.
6516 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6517 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6518 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6519 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6520 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6521 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6522 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6523 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6524 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6525 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6526 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6527 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6528 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6529 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6530 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6531 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6532 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6533 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6534 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6535 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6536 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6537 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6538 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6539 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6540 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6541 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6542 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6543
6544 2019-07-10 Tom Tromey <tromey@adacore.com>
6545
6546 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6547 * breakpoint.c (init_ada_exception_breakpoint): Register as
6548 bp_catchpoint.
6549 (print_one_breakpoint_location, print_one_breakpoint): Use
6550 is_ada_exception_catchpoint.
6551 * ada-lang.c (class ada_catchpoint_location): Pass
6552 bp_loc_software_breakpoint to bp_location constructor.
6553 (is_ada_exception_catchpoint): New function.
6554
6555 2019-07-10 Tom Tromey <tromey@adacore.com>
6556
6557 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6558 VEC.
6559 (struct arm_exidx_entry): New method operator<.
6560 (struct arm_exidx_data) <section_maps>: Change type.
6561 (arm_exidx_data_free): Remove.
6562 (arm_exidx_data_key): Change type. Move lower.
6563 (arm_exidx_new_objfile): Update.
6564 (arm_compare_exidx_entries): Remove.
6565 (arm_find_exidx_entry, _initialize_arm_tdep)
6566
6567 2019-07-10 Tom Tromey <tromey@adacore.com>
6568
6569 * solib-spu.c (ocl_program_data_key): Change type.
6570 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6571 Update.
6572
6573 2019-07-10 Tom Tromey <tromey@adacore.com>
6574
6575 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6576 (struct solib_aix_inferior_data) <library_list>: Change type.
6577 (solib_aix_inferior_data_handle): Change type.
6578 (get_solib_aix_inferior_data): Update.
6579 (solib_aix_free_library_list): Remove.
6580 (library_list_start_library): Update.
6581 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6582 return type.
6583 (solib_aix_get_library_list)
6584 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6585 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6586
6587 2019-07-10 Tom Tromey <tromey@adacore.com>
6588
6589 * solib-dsbt.c (struct dsbt_info): Add initializers.
6590 (solib_dsbt_pspace_data): Change type.
6591 (dsbt_pspace_data_cleanup): Remove.
6592 (get_dsbt_info, _initialize_dsbt_solib): Update.
6593
6594 2019-07-10 Tom Tromey <tromey@adacore.com>
6595
6596 * spu-tdep.c (spu_overlay_data): Change type.
6597 (spu_get_overlay_table, spu_overlay_new_objfile)
6598 (_initialize_spu_tdep): Update.
6599
6600 2019-07-10 Tom Tromey <tromey@adacore.com>
6601
6602 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6603 destructor.
6604 (dbx_objfile_data_key): Change type and declare later.
6605 (DBX_SYMFILE_INFO): Rewrite.
6606 * dbxread.c (dbx_objfile_data_key): Change type.
6607 (dbx_symfile_init): Update.
6608 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6609 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6610 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6611
6612 2019-07-10 Tom Tromey <tromey@adacore.com>
6613
6614 * jit.c (jit_program_space_key): Change type. Move lower.
6615 (get_jit_program_space_data): Update.
6616 (jit_program_space_data_cleanup): Remove.
6617 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6618 Update.
6619 (struct jit_program_space_data): Add initializers.
6620
6621 2019-07-10 Tom Tromey <tromey@adacore.com>
6622
6623 * solib-darwin.c (struct darwin_info): Add initializers.
6624 (solib_darwin_pspace_data): Change type.
6625 (darwin_pspace_data_cleanup): Remove.
6626 (get_darwin_info, _initialize_darwin_solib): Update.
6627
6628 2019-07-10 Tom Tromey <tromey@adacore.com>
6629
6630 * remote-sim.c (struct sim_inferior_data): Add initializers,
6631 constructor, and destructor.
6632 (sim_inferior_data_key): Change type. Move lower.
6633 (check_for_duplicate_sim_descriptor): Update.
6634 (get_sim_inferior_data): Use new. Update.
6635 (~sim_inferior_data_cleanup): Rename from
6636 sim_inferior_data_cleanup. Simplify.
6637 (gdbsim_close_inferior, simulator_command)
6638 (sim_command_completer, _initialize_remote_sim): Update.
6639 (next_pid, INITIAL_PID): Move earlier.
6640
6641 2019-07-10 Tom Tromey <tromey@adacore.com>
6642
6643 * python/python-internal.h (create_thread_object): Return
6644 gdbpy_ref.
6645 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6646 * python/py-inferior.c (struct threadlist_entry): Add
6647 constructor.
6648 <thread_obj>: Now a gdbpy_ref.
6649 (thread_to_thread_object): Update.
6650 (add_thread_object): Use new.
6651 (delete_thread_object): Use delete.
6652 (infpy_threads): Update.
6653 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6654 GIL.
6655
6656 2019-07-10 Tom Tromey <tromey@adacore.com>
6657
6658 * valops.c (value_cast): Specialize error message for Ada.
6659
6660 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6663
6664 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6665
6666 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6667 bpstat_should_step): Return bool, adjust comments.
6668 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6669 bpstat_should_step): Likewise.
6670
6671 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6672
6673 * features/Makefile: Use feature target descriptions for Arm.
6674 * features/arm/arm-core.c: Generate new file.
6675 * features/arm/arm-fpa.c: Likewise.
6676 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6677 * features/arm/arm-m-profile.c: Likewise.
6678 * features/arm/arm-vfpv2.c: Likewise.
6679 * features/arm/arm-vfpv3.c: Likewise.
6680 * features/arm/xscale-iwmmxt.c: Likewise.
6681 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6682
6683 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6684
6685 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6686 ptrace earlier.
6687
6688 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6689
6690 * features/aarch64-pauth.c: Regenerate.
6691
6692 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6695 bool.
6696 (bpstat_what): Use false instead of 0.
6697
6698 2019-07-09 Pedro Alves <palves@redhat.com>
6699
6700 * break-catch-throw.c (is_exception_catchpoint): New.
6701 * breakpoint.c (print_one_breakpoint_location): New parameter
6702 'raw_loc'. Handle it. Use
6703 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6704 looking at the breakpoint's type.
6705 (print_one_breakpoint): If handling "maint info breakpoints", also
6706 print locations of exception catchpoints.
6707 * breakpoint.h (is_exception_catchpoint): Declare.
6708
6709 2019-07-09 Pedro Alves <palves@redhat.com>
6710
6711 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6712 "addr" field.
6713 (allocate_location_exception_catchpoint): New.
6714 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6715 (initialize_throw_catchpoint_ops): Install
6716 allocate_location_exception_catchpoint as allocate_location
6717 method.
6718 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6719 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6720 bp_loc_other.
6721 (breakpoint_address_is_meaningful): Delete.
6722 (bl_address_is_meaningful): New.
6723 (breakpoint_locations_match): Adjust comment.
6724 (bp_location_from_bp_type): New, factored out of...
6725 (bp_location::bp_location(breakpoint *)): ... this.
6726 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6727 factored out of...
6728 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6729 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6730 breakpoint_address_is_meaningful.
6731 (bp_locations_compare): Adjust comment.
6732 (update_global_location_list): Use bl_address_is_meaningful
6733 instead of breakpoint_address_is_meaningful.
6734 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6735 explicit.
6736 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6737 * python/py-breakpoint.c (bppy_get_location): No longer check
6738 whether location is null.
6739
6740 2019-07-09 Pedro Alves <palves@redhat.com>
6741
6742 PR c++/15468
6743 * breakpoint.c (print_one_breakpoint_location): Remove
6744 single-location assert.
6745
6746 2019-07-09 Tom Tromey <tom@tromey.com>
6747
6748 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6749 * configure: Rebuild.
6750 * configure.ac: Change common to gdbsupport.
6751 * gdbsupport: Rename from common.
6752 * acinclude.m4: Change common to gdbsupport.
6753 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6754 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6755 gdbsupport.
6756 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6757 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6758 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6759 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6760 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6761 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6762 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6763 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6764 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6765 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6766 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6767 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6768 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6769 coff-pe-read.c, command.h, compile/compile-c-support.c,
6770 compile/compile-c.h, compile/compile-cplus-symbols.c,
6771 compile/compile-cplus-types.c, compile/compile-cplus.h,
6772 compile/compile-loc2c.c, compile/compile.c, completer.c,
6773 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6774 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6775 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6776 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6777 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6778 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6779 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6780 features/aarch64-core.c, features/aarch64-fpu.c,
6781 features/aarch64-pauth.c, features/aarch64-sve.c,
6782 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6783 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6784 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6785 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6786 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6787 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6788 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6789 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6790 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6791 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6792 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6793 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6794 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6795 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6796 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6797 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6798 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6799 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6800 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6801 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6802 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6803 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6804 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6805 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6806 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6807 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6808 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6809 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6810 minsyms.c, mips-linux-tdep.c, namespace.h,
6811 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6812 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6813 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6814 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6815 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6816 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6817 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6818 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6819 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6820 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6821 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6822 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6823 procfs.c, producer.c, progspace.h, psymtab.h,
6824 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6825 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6826 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6827 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6828 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6829 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6830 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6831 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6832 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6833 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6834 target-memory.c, target.c, target.h, target/waitstatus.c,
6835 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6836 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6837 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6838 unittests/array-view-selftests.c,
6839 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6840 unittests/common-utils-selftests.c,
6841 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6842 unittests/format_pieces-selftests.c,
6843 unittests/function-view-selftests.c,
6844 unittests/lookup_name_info-selftests.c,
6845 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6846 unittests/mkdir-recursive-selftests.c,
6847 unittests/observable-selftests.c,
6848 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6849 unittests/parse-connection-spec-selftests.c,
6850 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6851 unittests/scoped_fd-selftests.c,
6852 unittests/scoped_mmap-selftests.c,
6853 unittests/scoped_restore-selftests.c,
6854 unittests/string_view-selftests.c, unittests/style-selftests.c,
6855 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6856 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6857 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6858 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6859 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6860 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6861
6862 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6865 bool value.
6866 (decode_digits_ordinary): Set explicit_line field in sal.
6867 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6868 symtab_and_line that was set on an explicit line number in
6869 assembler code. Do always update the recorded symtab and line if
6870 we do skip the prologue.
6871
6872 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * breakpoint.c (set_breakpoint_location_function): Remove
6875 explicit_loc parameter.
6876 (momentary_breakpoint_from_master): Update call to
6877 set_breakpoint_location_function.
6878 (add_location_to_breakpoint): Likewise.
6879
6880 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6883 required features based on default bfd type when no specific bfd
6884 is present.
6885
6886 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6887
6888 * NEWS: Mention that GDB printf and eval commands can now print
6889 C-style and Ada-style convenience var strings without
6890 calling the inferior.
6891 * printcmd.c (printf_c_string): Locally print GDB internal var
6892 instead of transiting via the inferior.
6893 (printf_wide_c_string): Likewise.
6894
6895 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6896
6897 PR breakpoints/25011
6898 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6899
6900 2019-07-04 Tom Tromey <tom@tromey.com>
6901
6902 PR tui/24724:
6903 * tui/tui-winsource.c (tui_clear_source_content): Update.
6904 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6905 (tui_update_breakpoint_info): Update.
6906 (tui_set_exec_info_content): Update.
6907 * tui/tui-source.c (tui_set_source_content_nil): Update.
6908 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6909 has_break.
6910 * tui/tui-data.h (enum tui_bp_flag): New.
6911 (tui_bp_flags): New enum flags type.
6912 (struct tui_source_element) <break_mode>: Change type. Rename
6913 from has_break.
6914 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6915 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6916 constants.
6917 * tui/tui-winsource.h: Fix comment.
6918
6919 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6920
6921 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6922 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6923 (store_fpregs_to_thread)
6924 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6925 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6926 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6927 (IWMMXT_REGS_SIZE): Add define.
6928 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6929 (fetch_vfp_regs, store_vfp_regs)
6930 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6931 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6932
6933 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6934
6935 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6936 defines.
6937 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6938 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6939 (ARM_INT_REGISTER_SIZE): ...to this.
6940 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6941 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6942 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6943 (arm_linux_collect_gregset, supply_nwfpe_register)
6944 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6945 defines.
6946 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6947 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6948 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6949 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6950 (arm_return_in_memory, arm_store_return_value)
6951 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6952 (arm_record_ld_st_multiple): Likewise.
6953 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6954 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6955
6956 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6957
6958 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6959 AARCH64_DISPLACED_MODIFIED_INSNS.
6960 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6961 (aarch64_displaced_step_copy_insn): Likewise.
6962 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6963 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6964 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6965 ARM_DISPLACED_MODIFIED_INSNS.
6966 * arm-tdep.c (arm_gdbarch_init): Likewise.
6967 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6968 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6969 (struct arm_displaced_step_closure): Use
6970 ARM_DISPLACED_MODIFIED_INSNS.
6971
6972 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6973
6974 * features/Makefile: Remove unused xml files.
6975 * features/aarch64.xml: Remove.
6976 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6977 * features/i386/amd64-avx-avx512.xml: Remove.
6978 * features/i386/amd64-avx-linux.xml: Remove.
6979 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6980 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6981 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6982 * features/i386/amd64-avx-mpx.xml: Remove.
6983 * features/i386/amd64-avx.xml: Remove.
6984 * features/i386/amd64-linux.xml: Remove.
6985 * features/i386/amd64-mpx-linux.xml: Remove.
6986 * features/i386/amd64-mpx.xml: Remove.
6987 * features/i386/amd64.xml: Remove.
6988 * features/i386/i386-avx-avx512-linux.xml: Remove.
6989 * features/i386/i386-avx-avx512.xml: Remove.
6990 * features/i386/i386-avx-linux.xml: Remove.
6991 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6992 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6993 * features/i386/i386-avx-mpx-linux.xml: Remove.
6994 * features/i386/i386-avx-mpx.xml: Remove.
6995 * features/i386/i386-avx.xml: Remove.
6996 * features/i386/i386-linux.xml: Remove.
6997 * features/i386/i386-mmx-linux.xml: Remove.
6998 * features/i386/i386-mmx.xml: Remove.
6999 * features/i386/i386-mpx-linux.xml: Remove.
7000 * features/i386/i386-mpx.xml: Remove.
7001 * features/i386/i386.xml: Remove.
7002 * features/i386/x32-avx-avx512-linux.xml: Remove.
7003 * features/i386/x32-avx-linux.xml: Remove.
7004 * features/i386/x32-linux.xml: Remove.
7005
7006 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7007
7008 * regformats/aarch64.dat: Remove.
7009 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7010 * regformats/i386/amd64-avx-linux.dat: Remove.
7011 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7012 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7013 * regformats/i386/amd64-linux.dat: Remove.
7014 * regformats/i386/amd64-mpx-linux.dat: Remove.
7015 * regformats/i386/amd64.dat: Remove.
7016 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7017 * regformats/i386/i386-avx-linux.dat: Remove.
7018 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7019 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7020 * regformats/i386/i386-linux.dat: Remove.
7021 * regformats/i386/i386-mmx-linux.dat: Remove.
7022 * regformats/i386/i386-mpx-linux.dat: Remove.
7023 * regformats/i386/i386.dat: Remove.
7024 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7025 * regformats/i386/x32-avx-linux.dat: Remove.
7026 * regformats/i386/x32-linux.dat: Remove.
7027
7028 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7029
7030 * aarch64-tdep.c: Remove xml self tests.
7031 * amd64-linux-tdep.c: Likewise.
7032 * amd64-tdep.c: Likewise.
7033 * i386-linux-tdep.c: Likewise.
7034 * i386-tdep.c: Likewise.
7035
7036 2019-07-03 Pedro Alves <palves@redhat.com>
7037
7038 PR cli/24732
7039 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7040 (pipe_cmd_option_defs): New.
7041 (make_pipe_cmd_options_def_group): New.
7042 (pipe_command): Use gdb::option::process_options.
7043 (pipe_command_completer): New function.
7044 (_initialize_cli_cmds): Install completer for "pipe" command.
7045
7046 2019-07-03 Pedro Alves <palves@redhat.com>
7047
7048 * cli/cli-option.c (union option_value) <string>: New field.
7049 (struct option_def_and_value): Add ctor, move ctor, dtor and
7050 use DISABLE_COPY_AND_ASSIGN.
7051 (option_def_and_value::clear_value): New.
7052 (parse_option, save_option_value_in_ctx, get_val_type_str)
7053 (add_setshow_cmds_for_options): Handle var_string.
7054 * cli-option.h (union option_def::var_address) <string>: New
7055 field.
7056 (struct string_option_def): New.
7057 * maint-test-options.c (struct test_options_opts): Add default
7058 ctor and use DISABLE_COPY_AND_ASSIGN.
7059 <string_opt>: New field.
7060 (test_options_opts::~test_options_opts): New.
7061 (test_options_opts::dump): Also dump "-string".
7062 (test_options_option_defs): Install "string.
7063
7064 2019-07-03 Pedro Alves <palves@redhat.com>
7065
7066 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7067 option_value with a null enumeration.
7068 (complete_options): Save the option values in the context.
7069 (save_option_value_in_ctx): New, factored out from ...
7070 (process_options): ... here.
7071 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7072 of the function.
7073 * maint-test-options.c (test_options_opts::dump): New, factored
7074 out from ...
7075 (maintenance_test_options_command_mode): ... here.
7076 (maintenance_test_options_command_completion_result): Delete.
7077 (maintenance_test_options_command_completion_text): Update
7078 comment.
7079 (maintenance_show_test_options_completion_result): Change
7080 prototype. Just print
7081 maintenance_test_options_command_completion_text.
7082 (save_completion_result): New.
7083 (maintenance_test_options_completer_mode): Pass options context to
7084 complete_options, and then save a dump.
7085 (_initialize_maint_test_options): Use add_cmd to install "maint
7086 show test-options-completion-result".
7087
7088 2019-07-03 Pedro Alves <palves@redhat.com>
7089
7090 * NEWS (New commands): Mention "with" and "maint with".
7091 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7092 (with_command, with_command_completer): New.
7093 (pipe_command): Adjust to new repeat_previous
7094 interface.
7095 (_initialize_cli_cmds): Install the "with" command and its "w"
7096 alias.
7097 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7098 declarations.
7099 * cli/cli-setshow.c (parse_cli_var_uinteger)
7100 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7101 argument strings for all var_types.
7102 (get_setshow_command_value_string): New, factored out from ...
7103 (do_show_command): ... this.
7104 * cli/cli-setshow.h: Include <string>.
7105 (get_setshow_command_value_string): Declare.
7106 * command.h (repeat_previous): Now returns const char *. Adjust
7107 comment.
7108 * maint.c: Include "cli/cli-cmds.h".
7109 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7110 (_initialize_maint_cmds): Register the "maintenance with" command.
7111 * top.c (repeat_previous): Move bits from pipe_command here:
7112 Return the saved command line, if any; error out if there's no
7113 command to relaunch.
7114
7115 2019-07-03 Pedro Alves <palves@redhat.com>
7116
7117 * NEWS (New commands): Mention "maint set/show test-settings"
7118 instead of "maint test-settings".
7119 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7120 (maintenance_test_settings_set_list): Rename to ...
7121 (maintenance_set_test_settings_list): ... this.
7122 (maintenance_test_settings_show_list): Rename to ...
7123 (maintenance_show_test_settings_list): ... this.
7124 (maintenance_test_settings_cmd): Delete.
7125 (maintenance_test_settings_set_cmd): ...
7126 (maintenance_set_test_settings_cmd): ... this.
7127 (maintenance_test_settings_show_cmd): ...
7128 (maintenance_show_test_settings_cmd): ... this.
7129 (maintenance_test_settings_show_value_cmd):
7130 (maintenance_show_test_settings_value_cmd): ... this.
7131 (_initialize_maint_test_settings): No longer install the "maint
7132 test-settings" prefix command. Rename "maint test-settings set"
7133 to "maint set test-settings", and "maint test-settings show" to
7134 "maint show test-settings". Adjust all subcommands.
7135
7136 2019-07-03 Pedro Alves <palves@redhat.com>
7137
7138 * maint-test-settings.c: Fix file's intro comment. Replace all
7139 references to "test-options" with references to "test-settings",
7140 in comments.
7141
7142 2019-07-03 Pedro Alves <palves@redhat.com>
7143
7144 * maint-test-settings.c (maintenance_test_settings_xxx)
7145 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7146 New.
7147 (maintenance_test_settings_enums): Use them.
7148 (maintenance_test_settings_enum): Default to
7149 maintenance_test_settings_xxx.
7150 (_initialize_maint_test_settings): Initialize
7151 MAINTENANCE_TEST_SETTINGS_FILENAME.
7152
7153 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * breakpoint.h (remove_breakpoints_inf): Change return type to
7156 void, move function documentation here.
7157 * breakpoint.c (remove_breakpoints_inf): Change return type to
7158 void, move function documentation to header.
7159
7160 2019-07-02 Pedro Alves <palves@redhat.com>
7161
7162 * NEWS (Completion improvements): Mention "info threads".
7163 * thread.c (struct info_threads_opts, info_threads_option_defs)
7164 (make_info_threads_options_def_group): New.
7165 (info_threads_command): Use gdb::option::process_options.
7166 (info_threads_command_completer): New.
7167 (_initialize_thread): Use gdb::option::build_help to build the
7168 help text for "info threads".
7169
7170 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * defs.h (generic_load): Move from here...
7173 * symfile.h (generic_load): ... to here. Rename name parameter
7174 to args.
7175 * symfile.c (generic_load): Add comment.
7176
7177 2019-07-01 Tom Tromey <tromey@adacore.com>
7178
7179 * dwarf2read.c
7180 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7181 declaration of without_params. Fix formatting.
7182
7183 2019-07-01 Tom Tromey <tromey@adacore.com>
7184
7185 * ada-exp.y (find_primitive_type): Update.
7186 * ada-lang.h (ada_lookup_symbol): Update.
7187 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7188 parameter.
7189 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7190
7191 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7192
7193 PR breakpoints/24541
7194 * gdbarch.c: Regenerate.
7195 * gdbarch.h: Regenerate.
7196 * gdbarch.sh: Add 'stap_adjust_register'.
7197 * i386-tdep.c: Include '<unordered_set>'.
7198 (i386_stap_adjust_register): New function.
7199 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7200 * stap-probe.c (stap_parse_register_operand): Call
7201 'gdbarch_stap_adjust_register'.
7202
7203 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7204
7205 PR python/24742
7206 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7207 * python/python.c (do_start_initialization): Use 'xmalloc'
7208 instead of 'PyMem_Malloc'.
7209
7210 2019-06-28 Tom Tromey <tromey@adacore.com>
7211
7212 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7213 for Ada.
7214
7215 2019-06-27 Tom Tromey <tromey@adacore.com>
7216
7217 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7218 objfile_key.
7219 (arm_find_mapping_symbol, arm_record_special_symbol)
7220 (_initialize_arm_tdep): Update.
7221 (arm_objfile_data_free): Remove.
7222
7223 2019-06-27 Tom Tromey <tromey@adacore.com>
7224
7225 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7226 to cp_print_static_field.
7227
7228 2019-06-26 Tom Tromey <tromey@adacore.com>
7229
7230 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7231 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7232 declare.
7233
7234 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7235
7236 * features/aarch64-core.c (create_feature_aarch64_core):
7237 Regenerate.
7238 * features/aarch64-core.xml: Add cpsr flags.
7239
7240 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7241
7242 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7243 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7244
7245 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7246
7247 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7248 field.
7249 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7250 use.
7251 (arm_record_special_symbol): Don't insert new symbol in sorted
7252 position, push it at the end.
7253
7254 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7255
7256 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7257 (arm_mapping_symbol_s): Remove.
7258 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7259 (arm_mapping_symbol_vec): New typedef.
7260 (struct arm_per_objfile): Add constructor.
7261 <section_maps>: Change type to
7262 std::unique_ptr<arm_mapping_symbol_vec[]>.
7263 (arm_compare_mapping_symbols): Remove.
7264 (arm_find_mapping_symbol): Adjust to section_maps type change.
7265 (arm_objfile_data_free): Call delete on arm_per_objfile.
7266 (arm_record_special_symbol): Adjust to section_maps type change.
7267 Allocate arm_per_objfile with new.
7268
7269 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7270
7271 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7272 with the command prefix.
7273
7274 2019-06-25 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7277 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7278
7279 2019-06-25 Tom Tromey <tom@tromey.com>
7280
7281 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7282 type.
7283 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7284 protected.
7285
7286 2019-06-25 Tom Tromey <tom@tromey.com>
7287
7288 * tui/tui-winsource.c
7289 (tui_source_window_base::set_is_exec_point_at): Add check against
7290 LOA_ADDRESS.
7291
7292 2019-06-25 Tom Tromey <tom@tromey.com>
7293
7294 * tui/tui-source.c (tui_set_source_content): Don't check before
7295 xfree.
7296 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7297
7298 2019-06-25 Tom Tromey <tom@tromey.com>
7299
7300 * tui/tui-winsource.h (tui_update_source_window_as_is)
7301 (tui_alloc_source_buffer, tui_line_is_displayed)
7302 (tui_addr_is_displayed): Change type of win_info.
7303 * tui/tui-winsource.c (tui_update_source_window_as_is)
7304 (tui_clear_source_content, tui_show_source_line)
7305 (tui_show_source_content, tui_source_window_base::refill)
7306 (tui_source_window_base::set_is_exec_point_at)
7307 (tui_source_window_base::set_is_exec_point_at)
7308 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7309 (tui_alloc_source_buffer, tui_line_is_displayed)
7310 (tui_addr_is_displayed): Change type of win_info. Update.
7311 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7312 (tui_source_window_base::do_make_visible_with_new_height):
7313 Update.
7314 * tui/tui-source.c (tui_set_source_content)
7315 (tui_set_source_content_nil)
7316 (tui_source_window::do_scroll_vertical): Update.
7317 * tui/tui-layout.c (show_layout): Update.
7318 * tui/tui-disasm.c (tui_set_disassem_content)
7319 (tui_disasm_window::do_scroll_vertical): Update.
7320 * tui/tui-data.h (tui_win_content): Remove.
7321 (struct tui_gen_win_info) <content, content_size>: Remove.
7322 (struct tui_source_element): Add initializers and destructor.
7323 (union tui_which_element, struct tui_win_element): Remove.
7324 (struct tui_source_window_base) <content>: New field.
7325 (struct tui_data_window): Remove destructor.
7326 (tui_alloc_content, tui_free_win_content)
7327 (tui_free_all_source_wins_content): Don't declare.
7328 * tui/tui-data.c (tui_initialize_static_data): Update.
7329 (init_content_element, tui_alloc_content): Remove.
7330 (~tui_gen_win_info): Update.
7331 (~tui_data_window, tui_free_all_source_wins_content)
7332 (tui_free_win_content, free_content, free_content_elements):
7333 Remove.
7334
7335 2019-06-25 Tom Tromey <tom@tromey.com>
7336
7337 * tui/tui-winsource.h (tui_clear_source_content)
7338 (tui_erase_source_content, tui_show_source_content): Change type
7339 of win_info.
7340 * tui/tui-winsource.c (tui_clear_source_content)
7341 (tui_erase_source_content, tui_show_source_content): Change type
7342 of win_info.
7343 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7344 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7345 win_info.
7346 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7347 win_info.
7348 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7349
7350 2019-06-25 Tom Tromey <tom@tromey.com>
7351
7352 * tui/tui-winsource.c (tui_clear_source_content)
7353 (tui_source_window_base::set_is_exec_point_at): Update.
7354 * tui/tui-source.c (tui_set_source_content_nil): Update.
7355 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7356 a bool.
7357 * tui/tui-data.c (init_content_element): Update.
7358
7359 2019-06-25 Tom Tromey <tom@tromey.com>
7360
7361 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7362 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7363 * tui/tui-layout.c (init_and_make_win): Update.
7364 * tui/tui.h (enum tui_win_type): Update.
7365 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7366 tui_win_is_auxillary.
7367 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7368 tui_win_is_auxillary.
7369
7370 2019-06-25 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7373 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7374 (tui_delete_data_content_windows, tui_display_all_data)
7375 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7376 Update.
7377 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7378 * tui/tui-regs.c (tui_last_regs_line_no)
7379 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7380 (tui_show_registers): Update.
7381 (tui_show_register_group): Return void. Update.
7382 (tui_display_registers_from, tui_display_reg_element_at_line)
7383 (tui_display_registers_from_line, tui_check_register_values):
7384 Update.
7385 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7386 member.
7387 (struct tui_data_window) <regs_content>: Now a std::vector.
7388 <regs_content_count>: Remove.
7389 (tui_add_content_elements, tui_free_data_content): Don't declare.
7390 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7391 (init_content_element): Remove DATA_WIN case. Add assert.
7392 (tui_add_content_elements): Remove.
7393 (tui_data_window): Update.
7394 (tui_free_data_content): Remove.
7395 (free_content_elements): Remove DATA_WIN case.
7396
7397 2019-06-25 Tom Tromey <tom@tromey.com>
7398
7399 * tui/tui-data.c (tui_data_item_window): Update.
7400 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7401 * tui/tui-windata.c (tui_display_all_data)
7402 (tui_display_data_from_line): Update.
7403 (tui_check_data_values): Remove.
7404 * tui/tui-regs.c (tui_show_register_group)
7405 (tui_display_reg_element_at_line): Update.
7406 * tui/tui-hooks.c (tui_register_changed)
7407 (tui_refresh_frame_and_register_information): Call
7408 tui_check_register_values.
7409 * tui/tui-data.h (struct tui_data_window) <data_content,
7410 data_content_count, data_type>: Remove.
7411 (enum tui_data_type): Remove.
7412
7413 * tui/tui-data.c (tui_data_window::clear_detail)
7414 (~tui_data_window): Update.
7415
7416 2019-06-25 Tom Tromey <tom@tromey.com>
7417
7418 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7419 declare.
7420 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7421 Rename from tui_first_data_item_displayed. Update.
7422 (tui_data_window::refresh_all)
7423 (tui_data_window::do_scroll_vertical): Update.
7424 * tui/tui-data.h (struct tui_data_window)
7425 <first_data_item_displayed>: Declare new method.
7426
7427 2019-06-25 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7430 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7431 contents...
7432 (tui_initialize_static_data): ...here.
7433
7434 2019-06-25 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7437 (tui_display_registers_from, tui_check_register_values): Update.
7438 (tui_display_register): Remove win_info parameter; update.
7439 (tui_get_register): Change type of parameters.
7440 * tui/tui-data.h (struct tui_data_element): Remove.
7441 (union tui_which_element) <data>: Remove.
7442 <data_window>: Change type.
7443 (struct tui_data_item_window): New.
7444 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7445 case. Add assert.
7446 (~tui_data_item_window): New destructor.
7447 (free_content_elements): Remove DATA_ITEM_WIN case.
7448
7449 2019-06-25 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7452 Remove.
7453
7454 2019-06-25 Tom Tromey <tom@tromey.com>
7455
7456 * tui/tui-data.h (struct tui_command_element): Remove.
7457 (union tui_which_element) <command>: Remove.
7458 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7459 assert.
7460 (free_content_elements): Remove CMD_WIN case.
7461
7462 2019-06-25 Tom Tromey <tom@tromey.com>
7463
7464 * tui/tui-layout.c (tui_set_layout): Update.
7465 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7466 * tui/tui-data.c (layout_def): Update.
7467
7468 2019-06-25 Tom Tromey <tom@tromey.com>
7469
7470 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7471 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7472 (tui_source_window_base::set_new_height): Update.
7473 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7474 Update.
7475 (tui_set_locator_fullname, tui_set_locator_info)
7476 (tui_show_frame_info): Update.
7477 * tui/tui-source.c (tui_set_source_content)
7478 (tui_source_is_displayed): Update.
7479 * tui/tui-layout.c (show_source_disasm_command, show_data)
7480 (show_source_or_disasm_and_command): Update.
7481 * tui/tui-disasm.c (tui_set_disassem_content)
7482 (tui_get_begin_asm_address): Update.
7483 * tui/tui-data.h (struct tui_locator_element): Remove.
7484 (union tui_which_element) <locator>: Remove.
7485 (struct tui_locator_window): New.
7486 (tui_locator_win_info_ptr): Change return type.
7487 * tui/tui-data.c (_locator): Change type.
7488 (tui_locator_win_info_ptr): Change return type.
7489 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7490 (tui_alloc_content): Add assert.
7491
7492 2019-06-25 Tom Tromey <tom@tromey.com>
7493
7494 * tui/tui-winsource.c
7495 (tui_exec_info_window::maybe_allocate_content): New method.
7496 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7497 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7498 (make_source_or_disasm_window): Add cast.
7499 * tui/tui-data.h (union tui_which_element) <simple_string>:
7500 Remove.
7501 (struct tui_source_info): New.
7502 (struct tui_source_window_base) <execution_info>: Change type.
7503 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7504 case, and add assert.
7505 (tui_alloc_content): Add assert.
7506
7507 2019-06-25 Tom Tromey <tom@tromey.com>
7508
7509 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7510 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7511 * tui/tui-data.c (tui_alloc_win_info): Remove.
7512
7513 2019-06-25 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7516 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7517 can_highlight.
7518
7519 2019-06-25 Tom Tromey <tom@tromey.com>
7520
7521 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7522 make_visible_with_new_height method.
7523 (tui_win_info::make_visible_with_new_height): New method.
7524 (tui_source_window_base::do_make_visible_with_new_height)
7525 (tui_data_window::do_make_visible_with_new_height)
7526 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7527 (make_visible_with_new_height): Remove.
7528 (tui_resize_all, tui_adjust_win_heights): Use
7529 make_visible_with_new_height method.
7530 * tui/tui-data.h (struct tui_win_info)
7531 <do_make_visible_with_new_height, make_visible_with_new_height>:
7532 New methods.
7533 (struct tui_source_window_base, struct tui_data_window)
7534 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7535 methods.
7536
7537 2019-06-25 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7540 method.
7541 (update_tab_width): Call update_tab_width method.
7542 * tui/tui-data.h (struct tui_win_info)
7543 (struct tui_source_window_base) <update_tab_width>: New methods.
7544
7545 2019-06-25 Tom Tromey <tom@tromey.com>
7546
7547 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7548 parameter.
7549 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7550 parameter.
7551 (tui_gen_win_info::make_visible): Update.
7552 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7553 parameter.
7554 * tui/tui-data.h (enum tui_box): New enum.
7555 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7556
7557 2019-06-25 Tom Tromey <tom@tromey.com>
7558
7559 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7560 init_and_make_win for EXEC_INFO_WIN.
7561 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7562 longer inline.
7563 (struct tui_win_info) <~tui_win_info>: Inline.
7564 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7565 Don't declare.
7566 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7567 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7568 Remove.
7569 (tui_initialize_static_data): Update.
7570 (~tui_gen_win_info): Handle more cleanup here.
7571 (~tui_source_window_base): Delete "execution_info".
7572 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7573
7574 2019-06-25 Tom Tromey <tom@tromey.com>
7575
7576 * tui/tui-layout.c (make_command_window): Don't set
7577 can_highlight.
7578 (show_source_disasm_command): Call the reset method.
7579 (show_data): Don't set can_highlight. Call the reset method.
7580 (tui_gen_win_info::reset): Rename from init_gen_win_info
7581 (init_and_make_win): Simplify. Return tui_gen_win_info.
7582 (show_source_or_disasm_and_command): Call the reset method.
7583 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7584 (struct tui_cmd_window): Set can_highlight.
7585
7586 2019-06-25 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7589 from make_visible.
7590 (tui_make_visible, tui_make_invisible): Rewrite.
7591 (tui_win_info::make_visible): Remove.
7592 (tui_source_window_base::make_visible): Update.
7593 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7594 method. Moved from...
7595 (struct tui_win_info) <make_visible>: ...here.
7596
7597 2019-06-25 Tom Tromey <tom@tromey.com>
7598
7599 * tui/tui-winsource.c
7600 (tui_source_window_base::do_scroll_horizontal): Remove direction
7601 parameter.
7602 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7603 direction parameter.
7604 * tui/tui-win.c (tui_win_info::forward_scroll)
7605 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7606 (tui_win_info::right_scroll): Update.
7607 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7608 direction parameter.
7609 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7610 direction parameter.
7611 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7612 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7613 Remove direction parameter.
7614 (struct tui_source_window_base, struct tui_source_window)
7615 (struct tui_disasm_window, struct tui_data_window)
7616 (struct tui_cmd_window): Update.
7617
7618 2019-06-25 Tom Tromey <tom@tromey.com>
7619
7620 * tui/tui-winsource.h (tui_set_exec_info_content)
7621 (tui_show_exec_info_content, tui_erase_exec_info_content)
7622 (tui_clear_exec_info_content, tui_update_exec_info): Change
7623 argument to tui_source_window_base.
7624 * tui/tui-winsource.c (tui_set_exec_info_content)
7625 (tui_show_exec_info_content, tui_erase_exec_info_content)
7626 (tui_clear_exec_info_content, tui_update_exec_info): Change
7627 argument to tui_source_window_base.
7628
7629 2019-06-25 Tom Tromey <tom@tromey.com>
7630
7631 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7632 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7633
7634 2019-06-25 Tom Tromey <tom@tromey.com>
7635
7636 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7637 check.
7638
7639 2019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7642 type to void.
7643 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7644 type to void.
7645 * tui/tui-source.c (tui_set_source_content): Update.
7646 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7647
7648 2019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-win.c (window_name_completer, tui_set_focus)
7651 (tui_all_windows_info): Use name method.
7652 * tui/tui-data.h (struct tui_gen_win_info)
7653 (struct tui_source_window, struct tui_disasm_window)
7654 (struct tui_data_window, struct tui_cmd_window) <name>: New
7655 method.
7656 (tui_win_name): Don't declare.
7657 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7658 (tui_win_name): Remove.
7659
7660 2019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-winsource.h (tui_update_source_window)
7663 (tui_update_source_window_as_is): Change parameter type.
7664 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7665 to be a tui_source_window_base.
7666 (tui_update_source_window_as_is): Likewise.
7667 * tui/tui-win.c (make_visible_with_new_height): Update.
7668
7669 2019-06-25 Tom Tromey <tom@tromey.com>
7670
7671 * tui/tui-winsource.c (tui_erase_source_content)
7672 (tui_show_source_content, tui_show_exec_info_content)
7673 (tui_erase_exec_info_content): Use refresh_window method.
7674 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7675 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7676 from tui_refresh_win.
7677 (tui_data_window::refresh_window): New method.
7678 (tui_win_info::refresh, tui_source_window_base::refresh)
7679 (tui_refresh_all): Use refresh_window method.
7680 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7681 method.
7682 * tui/tui-regs.c (tui_display_register): Call refresh_window
7683 method.
7684 * tui/tui-layout.c (show_source_disasm_command)
7685 (show_source_or_disasm_and_command): Call refresh_window method.
7686 * tui/tui-data.h (struct tui_gen_win_info)
7687 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7688 New method.
7689
7690 2019-06-25 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui.c (tui_rl_other_window, tui_enable)
7693 (tui_is_window_visible, tui_get_command_dimension): Update.
7694 * tui/tui-winsource.c (tui_update_source_window_as_is)
7695 (tui_clear_source_content, tui_erase_source_content)
7696 (tui_show_source_line, tui_source_window_base::refill)
7697 (tui_source_window_base::do_scroll_horizontal)
7698 (tui_source_window_base::set_is_exec_point_at)
7699 (tui_update_breakpoint_info, tui_set_exec_info_content)
7700 (tui_alloc_source_buffer, tui_line_is_displayed)
7701 (tui_addr_is_displayed): Update.
7702 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7703 (tui_check_and_display_highlight_if_needed)
7704 (tui_win_info::make_visible, tui_win_info::refresh)
7705 (tui_refresh_all): Update.
7706 * tui/tui-windata.c (tui_first_data_item_displayed)
7707 (tui_delete_data_content_windows, tui_erase_data_content)
7708 (tui_display_all_data, tui_data_window::refresh_all)
7709 (tui_check_data_values): Update.
7710 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7711 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7712 (tui_win_info::backward_scroll, tui_refresh_all_win)
7713 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7714 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7715 (tui_source_window_base::set_new_height)
7716 (tui_data_window::set_new_height)
7717 (make_invisible_and_set_new_height)
7718 (make_visible_with_new_height, new_height_ok)
7719 (parse_scrolling_args): Update.
7720 * tui/tui-stack.c (tui_show_frame_info): Update.
7721 * tui/tui-source.c (tui_set_source_content)
7722 (tui_set_source_content_nil, tui_source_is_displayed)
7723 (tui_source_window::do_scroll_vertical): Update.
7724 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7725 (tui_display_registers_from, tui_display_reg_element_at_line)
7726 (tui_check_register_values, tui_reg_command): Update.
7727 * tui/tui-layout.c (tui_default_win_height)
7728 (show_source_disasm_command, show_data, init_and_make_win)
7729 (show_source_or_disasm_and_command): Update.
7730 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7731 (tui_redisplay_readline, tui_mld_flush)
7732 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7733 (tui_getc): Update.
7734 * tui/tui-disasm.c (tui_set_disassem_content)
7735 (tui_disasm_window::do_scroll_vertical): Update.
7736 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7737 Now virtual.
7738 (struct tui_win_info): Derive from tui_gen_win_info.
7739 <~tui_win_info>: Mark as override.
7740 <generic>: Remove member.
7741 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7742 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7743 (~tui_data_window, ~tui_win_info)
7744 (tui_free_all_source_wins_content): Update.
7745 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7746
7747 2019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-layout.c (init_and_make_win): Use new.
7750 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7751 destructor, initializers.
7752 (tui_alloc_generic_win_info): Don't declare.
7753 * tui/tui-data.c (_locator): Add argument to constructor.
7754 (source_win, disasm_win): New globals.
7755 (exec_info): Remove.
7756 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7757 Update.
7758 (tui_alloc_generic_win_info): Remove.
7759 (init_content_element): Use new.
7760 (tui_win_info::tui_win_info): Update.
7761 (free_content_elements) <case DATA_WIN>: Use delete.
7762
7763 2019-06-25 Tom Tromey <tom@tromey.com>
7764
7765 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7766 * tui/tui-windata.c (tui_first_data_item_displayed)
7767 (tui_delete_data_content_windows): Update.
7768 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7769 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7770 (tui_display_registers_from, tui_check_register_values): Update.
7771 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7772 pointer.
7773 * tui/tui-data.c (init_content_element): Update. Allocate the new
7774 window.
7775 (tui_free_data_content): Update.
7776 (free_content_elements) <case DATA_WIN>: Free the window.
7777
7778 2019-06-25 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7781 Update.
7782 * tui/tui-layout.c (make_command_window)
7783 (show_source_disasm_command, show_data, init_and_make_win)
7784 (show_source_or_disasm_and_command): Update.
7785 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7786 method.
7787 <can_highight, is_highlighted>: Now bool.
7788 (tui_set_win_highlight): Don't declare.
7789 * tui/tui-data.c (tui_set_win_highlight): Remove.
7790
7791 2019-06-25 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-wingeneral.c (make_visible): Remove check of window
7794 type.
7795
7796 2019-06-25 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-win.c (tui_win_info::max_height)
7799 (tui_cmd_window::max_height): New methods.
7800 (new_height_ok): Call max_height.
7801 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7802 <max_height>: New method.
7803
7804 2019-06-25 Tom Tromey <tom@tromey.com>
7805
7806 * tui/tui-win.c (tui_source_window_base::set_new_height)
7807 (tui_data_window::set_new_height): New methods.
7808 (make_invisible_and_set_new_height): Call set_new_height method.
7809 * tui/tui-data.h (struct tui_win_info)
7810 (struct tui_source_window_base, struct tui_data_window)
7811 <set_new_height>: New method.
7812
7813 2019-06-25 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7816 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7817 tui_refresh_data_win.
7818 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7819 method.
7820 (tui_refresh_all_win): Call the refresh_all method.
7821 (tui_set_focus): Likewise.
7822 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7823 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7824 Likewise.
7825
7826 2019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-winsource.h (tui_refill_source_window)
7829 (tui_set_is_exec_point_at): Don't declare.
7830 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7831 (tui_source_window_base::refill): Rename from
7832 tui_refill_source_window.
7833 (tui_source_window_base::do_scroll_horizontal): Update.
7834 (tui_source_window_base::set_is_exec_point_at): Rename from
7835 tui_set_is_exec_point_at.
7836 (tui_update_all_breakpoint_info): Update.
7837 * tui/tui-stack.c (tui_show_frame_info): Update.
7838 * tui/tui-layout.c (show_data): Add cast.
7839 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7840 * tui/tui-data.h (struct tui_source_window_base) <refill,
7841 set_is_exec_point_at>: New methods.
7842 (tui_source_windows, tui_add_to_source_windows): Update types.
7843 (tui_add_to_source_windows): Remove redundant declaration.
7844 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7845 (tui_source_windows): Change return type.
7846 (tui_clear_source_windows_detail): Update.
7847 (tui_add_to_source_windows): Change type of parameter.
7848 (tui_free_all_source_wins_content): Update.
7849
7850 2019-06-25 Tom Tromey <tom@tromey.com>
7851
7852 * tui/tui-wingeneral.c (tui_win_info::refresh)
7853 (tui_source_window_base::refresh): New methods.
7854 (tui_refresh_all): Call the refresh method.
7855 * tui/tui-data.h (struct tui_win_info)
7856 (struct tui_source_window_base) <refresh>: New method.
7857
7858 2019-06-25 Tom Tromey <tom@tromey.com>
7859
7860 * tui/tui.h (tui_is_window_visible): Return bool.
7861 * tui/tui.c (tui_is_window_visible): Return bool.
7862 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7863 (tui_make_visible, tui_make_invisible)
7864 (tui_win_info::make_visible)
7865 (tui_source_window_base::make_visible, make_all_visible)
7866 (tui_make_all_visible, tui_make_all_invisible): Update.
7867 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7868 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7869 bool.
7870 (struct tui_win_info, struct tui_source_window_base)
7871 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7872 * tui/tui-data.c (tui_init_generic_part): Update.
7873
7874 2019-06-25 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7877 (tui_source_window_base::make_visible): New methods.
7878 (make_all_visible): Make method call.
7879 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7880 (struct tui_source_window_base, struct tui_cmd_window): Override
7881 make_visible.
7882 (tui_win_is_source_type): Don't declare.
7883 * tui/tui-data.c (tui_win_is_source_type): Remove.
7884
7885 2019-06-25 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7888 NULL check.
7889
7890 2019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7893 Inline constructor. Add initializers for members.
7894 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7895 constructors; now inline in class.
7896
7897 2019-06-25 Tom Tromey <tom@tromey.com>
7898
7899 * tui/tui-regs.c (tui_show_registers): Update.
7900 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7901 bool.
7902 * tui/tui-data.c (tui_data_window::clear_detail)
7903 (tui_data_window): Update.
7904
7905 2019-06-25 Tom Tromey <tom@tromey.com>
7906
7907 * tui/tui-windata.c (tui_display_all_data)
7908 (tui_display_data_from_line, tui_display_data_from)
7909 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7910 Update.
7911 * tui/tui-regs.c (tui_last_regs_line_no)
7912 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7913 (tui_show_registers, tui_show_register_group)
7914 (tui_display_registers_from, tui_display_reg_element_at_line)
7915 (tui_display_registers_from_line, tui_check_register_values)
7916 (tui_reg_next, tui_reg_prev): Update.
7917 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7918 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7919 tui_data_window.
7920 (struct tui_win_info) <detail>: Remove. Add new fields from
7921 tui_data_info.
7922 (TUI_DATA_WIN): Add cast.
7923 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7924 (~tui_data_window): Simplify.
7925
7926 2019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-layout.c (show_source_disasm_command)
7929 (show_source_or_disasm_and_command): Update.
7930 * tui/tui-io.c (update_cmdwin_start_line)
7931 (tui_redisplay_readline): Update.
7932 * tui/tui-data.h (struct tui_command_info): Remove.
7933 (struct tui_win_info) <detail>: Remove command_info member.
7934 (struct tui_data_window) <start_line>: New member, from
7935 tui_command_info.
7936 (TUI_CMD_WIN): Add casts.
7937
7938 2019-06-25 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-winsource.c (tui_update_source_window)
7941 (tui_refill_source_window)
7942 (tui_source_window_base::do_scroll_horizontal)
7943 (tui_update_breakpoint_info, tui_set_exec_info_content)
7944 (tui_show_exec_info_content, tui_erase_exec_info_content)
7945 (tui_clear_exec_info_content): Update.
7946 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7947 Update.
7948 * tui/tui-win.c (make_invisible_and_set_new_height)
7949 (make_visible_with_new_height): Update.
7950 * tui/tui-source.c (tui_set_source_content)
7951 (tui_show_symtab_source): Update.
7952 * tui/tui-layout.c (extract_display_start_addr)
7953 (show_source_disasm_command, show_data)
7954 (make_source_or_disasm_window)
7955 (show_source_or_disasm_and_command): Update.
7956 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7957 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7958 "gdbarch".
7959 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7960 to tui_source_window_base.
7961 (struct tui_win_info) <detail>: Remove source_info member.
7962 (struct tui_source_window_base) <has_locator>: Inline.
7963 Move contents from tui_source_info; rename has_locator member to
7964 m_has_locator.
7965 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7966 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7967 header file.
7968 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7969 Simplify.
7970 (tui_free_all_source_wins_content): Cast to
7971 tui_source_window_base.
7972
7973 2019-06-25 Tom Tromey <tom@tromey.com>
7974
7975 * tui/tui-win.c (make_invisible_and_set_new_height)
7976 (make_visible_with_new_height): Call has_locator method.
7977 * tui/tui-layout.c (show_source_disasm_command, show_data)
7978 (show_source_or_disasm_and_command): Update for bool change.
7979 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7980 (tui_win_info) <has_locator>: New method.
7981 (struct tui_source_window_base) <has_locator>: New method.
7982 (tui_win_has_locator): Don't declare.
7983 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7984 from tui_win_has_locator.
7985 (tui_source_window_base): Use false, not FALSE.
7986
7987 2019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7990 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7991 clear_detail method directly.
7992 (tui_clear_win_detail): Remove.
7993
7994 2019-06-25 Tom Tromey <tom@tromey.com>
7995
7996 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7997 "this", not TUI_DISASM_WIN.
7998
7999 2019-06-25 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8002 declare.
8003 * tui/tui-winsource.c
8004 (tui_source_window_base::do_scroll_horizontal): Rename from
8005 tui_horizontal_source_scroll.
8006 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8007 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8008 from tui_vertical_data_scroll.
8009 * tui/tui-win.h (tui_scroll): Don't declare.
8010 * tui/tui-win.c (tui_win_info::forward_scroll)
8011 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8012 (tui_win_info::right_scroll): Rename and update.
8013 (tui_scroll_forward_command, tui_scroll_backward_command)
8014 (tui_scroll_left_command, tui_scroll_right_command): Update.
8015 (tui_scroll): Remove.
8016 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8017 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8018 from tui_vertical_source_scroll.
8019 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8020 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8021 from tui_vertical_disassem_scroll.
8022 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8023 do_scroll_horizontal>: New methods.
8024 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8025 Likewise.
8026 (struct tui_source_window_base): Add do_scroll_horizontal.
8027 (struct tui_source_window, struct tui_disasm_window): Add
8028 do_scroll_vertical.
8029 (struct tui_data_window, struct tui_cmd_window): Add
8030 do_scroll_horizontal and do_scroll_vertical.
8031 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8032
8033 2019-06-25 Tom Tromey <tom@tromey.com>
8034
8035 * tui/tui-data.h (struct tui_source_window_base): New struct.
8036 (struct tui_source_window): Derive from tui_source_window_base.
8037 (struct tui_disasm_window): New struct.
8038 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8039 from tui_source_window::clear_detail.
8040 (tui_source_window_base): Rename from tui_source_window.
8041 (~tui_source_window_base): Rename from ~tui_source_window.
8042 (tui_alloc_win_info): Create a tui_disasm_window.
8043
8044 2019-06-25 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-data.h (struct tui_source_window)
8047 (struct tui_data_window): Declare destructors.
8048 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8049 destructors.
8050 (tui_win_info): Simplify.
8051
8052 2019-06-25 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-winsource.c (tui_display_main)
8055 (tui_update_source_windows_with_addr)
8056 (tui_update_all_breakpoint_info): Update.
8057 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8058 (new_height_ok, parse_scrolling_args): Update.
8059 * tui/tui-stack.c (tui_show_frame_info): Update.
8060 * tui/tui-data.h (struct tui_list): Remove.
8061 (tui_source_windows): Return a reference to a std::vector.
8062 * tui/tui-data.c (source_windows): Now a std::vector.
8063 (tui_source_windows): Change return type.
8064 (tui_clear_source_windows): Rewrite.
8065 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8066 (tui_free_all_source_wins_content): Rewrite.
8067
8068 2019-06-25 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8071 (struct tui_data_window, struct tui_cmd_window): Declare
8072 clear_detail method.
8073 * tui/tui-data.c (tui_source_window::clear_detail)
8074 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8075 methods.
8076 (tui_clear_win_detail): Simplify.
8077
8078 2019-06-25 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui-layout.c (make_source_window, make_disasm_window)
8081 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8082 Return the new window.
8083 (show_source_disasm_command, show_data)
8084 (show_source_or_disasm_and_command): Update.
8085
8086 2019-06-25 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8089 parameter. Return the new window.
8090 (show_source_disasm_command): Update and remove NULL check.
8091 (show_source_or_disasm_and_command): Update.
8092
8093 2019-06-25 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8096
8097 2019-06-25 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-data.h (struct tui_win_info): Make constructor
8100 protected. Make destructor virtual. Add initializers.
8101 (tui_source_window, tui_data_window, tui_cmd_window): New
8102 classes.
8103 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8104 constructor. Add "type" parameter.
8105 (tui_source_window, tui_data_window, tui_cmd_window): New
8106 constructors.
8107 (tui_alloc_win_info): Instantiate the appropriate subclass.
8108
8109 2019-06-25 Tom Tromey <tom@tromey.com>
8110
8111 * tui/tui-win.c (tui_resize_all): Use delete.
8112 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8113 destructor.
8114 (tui_free_window): Don't declare.
8115 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8116 Update.
8117
8118 2019-06-25 Tom Tromey <tom@tromey.com>
8119
8120 * tui/tui-data.h (struct tui_win_info): Add constructor.
8121 * tui/tui-data.c (tui_alloc_win_info): Use new.
8122 (tui_free_window): Use delete.
8123
8124 2019-06-22 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8127 declare.
8128 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8129
8130 2019-06-22 Tom Tromey <tom@tromey.com>
8131
8132 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8133 declare.
8134 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8135
8136 2019-06-22 Tom de Vries <tdevries@suse.de>
8137
8138 * dwarf2read.c (create_addrmap_from_aranges)
8139 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8140 instead of '%zu'.
8141
8142 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * dwarf2read.h (dwarf2_section_info_def): Remove.
8145 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8146 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8147 std::vector<dwarf2_section_info>.
8148 (struct dwo_file) <~dwo_file>: Remove.
8149 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8150 types field.
8151 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8152 (dwarf2_read_debug_names): Likewise.
8153 (create_debug_types_hash_table): Change parameter type to
8154 array_view, adjust code accordingly.
8155 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8156 (partial_die_info::fixup): Likewise.
8157 (determine_prefix): Likewise.
8158 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8159
8160 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8161
8162 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8163 gdb_bfd_ref_ptr.
8164 <~dwo_file>: Remove call to gdb_bfd_unref.
8165 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8166 gdb_bfd_ref_ptr::get.
8167
8168 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8169
8170 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8171 type to htab_up.
8172 * dwarf2read.c (struct dwo_file): Initialize fields.
8173 <~dwo_file>: New.
8174 (free_dwo_file): Remove, move content to ~dwo_file.
8175 (struct dwo_file_deleter): Remove.
8176 (dwo_file_up>: Remove custom deleter.
8177 (free_dwo_files): Remove.
8178 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8179 dwo_files.
8180 (process_skeletonless_type_units): Call unique_ptr::get.
8181 (allocate_dwo_file_hash_table): Add deleter to created hash
8182 table. Change return type to htab_up.
8183 (lookup_dwo_file_slot): Don't memset dwo_file, call
8184 unique_ptr::get.
8185 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8186 (create_dwo_unit_in_dwp_v2): Likewise.
8187 (open_and_init_dwo_file): Likewise.
8188 (free_dwo_file_from_slot): Remove.
8189
8190 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8191
8192 * dwarf2read.h (struct dwarf2_section_info) <readin,
8193 is_virtual>: Change type to bool.
8194 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8195 true instead of 1.
8196
8197 2019-06-19 Tom Tromey <tom@tromey.com>
8198
8199 * tui/tui-data.h (tui_init_content_element): Don't declare.
8200
8201 2019-06-19 Tom Tromey <tom@tromey.com>
8202
8203 * tui/tui-data.h (tui_init_win_info): Don't declare.
8204
8205 2019-06-19 Tom de Vries <tdevries@suse.de>
8206
8207 * dwarf2read.h (abstract_to_concrete): Change type to
8208 std::unordered_map<sect_offset, std::vector<sect_offset>,
8209 gdb::hash_enum<sect_offset>>.
8210
8211 2019-06-19 Tom Tromey <tromey@adacore.com>
8212
8213 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8214 EVAL_AVOID_SIDE_EFFECTS specially.
8215
8216 2019-06-19 Tom Tromey <tromey@adacore.com>
8217
8218 * source-cache.c (highlighter): New global.
8219 (source_cache::get_source_lines): Create a highlighter on demand.
8220
8221 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8222
8223 * defs.h (deprecated_interactive_hook): Delete declaration.
8224 * interps.c (clear_interpreter_hooks): Remove use of
8225 deprecated_interactive_hook.
8226 * top.c (deprecated_interactive_hook): Delete definition.
8227 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8228
8229 2019-06-18 Tom de Vries <tdevries@suse.de>
8230
8231 PR gdb/24515
8232 * dwarf2read.h (abstract_to_concrete): Change type from
8233 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8234 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8235 * dwarf2read.c (read_variable): Update.
8236 (dwarf2_fetch_die_loc_sect_off): Update.
8237
8238 2019-06-17 Tom de Vries <tdevries@suse.de>
8239
8240 PR gdb/24617
8241 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8242 accessing parent[parent_len - 1].
8243
8244 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8245
8246 PR gdb/24364
8247 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8248 call dtrace_process_dof with NULL dof.
8249
8250 2019-06-16 Tom de Vries <tdevries@suse.de>
8251
8252 PR gdb/24445
8253 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8254
8255 2019-06-16 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8258 (make_all_visible): Use address of member.
8259
8260 2019-06-16 Tom Tromey <tom@tromey.com>
8261
8262 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8263 (tui_free_window, free_content, free_content_elements): Remove
8264 unnecessary cast.
8265 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8266 cast.
8267 * tui/tui-regs.c (tui_show_register_group)
8268 (tui_display_registers_from, tui_display_reg_element_at_line):
8269 Remove unnecessary cast.
8270
8271 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8272
8273 * linux-nat.c (normal_mask): Delete.
8274 (_initialize_linux_nat): Don't initialise normal_mask.
8275
8276 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8277
8278 PR gdb/24445
8279 * dwarf-index-write.h (write_psymtabs_to_index): Add
8280 dwz_basename parameter.
8281 * dwarf-index-write.c (write_gdbindex): Move file writing to
8282 write_gdbindex_1. Change return type void.
8283 (assert_file_size): Move up, remove filename parameter.
8284 (write_gdbindex_1): New function.
8285 (write_debug_names): Change return type to void, call
8286 assert_file_size.
8287 (struct index_wip_file): New struct.
8288 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8289 file logic to index_wip_file. Write index for dwz file if
8290 needed.
8291 (save_gdb_index_command): Pass basename of dwz file, if present.
8292 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8293 build-id of dwz file, if present.
8294 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8295 (dwarf2_get_dwz_file): Likewise.
8296 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8297 (dwarf2_get_dwz_file): Likewise.
8298
8299 2019-06-16 Tom Tromey <tom@tromey.com>
8300
8301 * coffread.c (process_coff_symbol): Use xstrdup.
8302 * value.c (create_internalvar): Use xstrdup.
8303
8304 2019-06-16 Tom Tromey <tom@tromey.com>
8305
8306 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8307 * breakpoint.c (stopin_command, stopat_command)
8308 (until_break_command, decode_location_default): Remove unnecessary
8309 cast.
8310 * utils.c (subset_compare): Remove unnecessary cast.
8311 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8312 cast.
8313 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8314 cast.
8315 * infcmd.c (path_command): Remove unnecessary cast.
8316 * coffread.c (decode_type): Remove unnecessary cast.
8317 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8318 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8319 * tui/tui-stack.c (tui_show_locator_content)
8320 (tui_show_frame_info): Remove unnecessary cast.
8321 * tui/tui-win.c (tui_scroll_forward_command)
8322 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8323 (parse_scrolling_args): Remove unnecessary cast.
8324 * tui/tui-data.c (init_win_info, tui_del_window)
8325 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8326 (free_content_elements): Remove unnecessary cast.
8327 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8328 unnecessary cast.
8329 * tui/tui-source.c (tui_set_source_content)
8330 (tui_vertical_source_scroll): Remove unnecessary cast.
8331 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8332 cast.
8333 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8334 * tui/tui-regs.c (tui_display_registers_from)
8335 (tui_display_register): Remove unnecessary cast.
8336 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8337 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8338 (make_visible): Remove unnecessary cast.
8339 * tui/tui-winsource.c (tui_erase_source_content)
8340 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8341 unnecessary cast.
8342 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8343 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8344 * stabsread.c (read_type, read_array_type, read_range_type):
8345 Remove unnecessary cast.
8346 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8347 (parse_symbol, parse_type, upgrade_type, parse_external)
8348 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8349 unnecessary cast.
8350 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8351
8352 2019-06-16 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-data.c (tui_alloc_generic_win_info)
8355 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8356 checks.
8357
8358 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8359 Andrew Burgess <andrew.burgess@embecosm.com>
8360
8361 * f-typeprint.c (f_print_type): Don't return early for not
8362 associated or not allocated types.
8363 (f_type_print_varspec_suffix): Add print_rank parameter and print
8364 ranks of array types in case they dangling.
8365 (f_type_print_base): Add print_rank parameter.
8366
8367 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8368
8369 * NEWS: Mention new MI commands.
8370 * break-catch-throw.c (enum exception_event_kind): Move to
8371 breakpoint.h.
8372 (print_mention_exception_catchpoint): Output text as a single
8373 message.
8374 (catch_exception_command_1): Rename to...
8375 (catch_exception_event): ...this, make non-static, update header
8376 command, and change some parameter types.
8377 (catch_catch_command): Update for changes to
8378 catch_exception_command_1.
8379 (catch_throw_command): Likewise.
8380 (catch_rethrow_command): Likewise.
8381 * breakpoint.c (enum exception_event_kind): Delete.
8382 * breakpoint.h (enum exception_event_kind): Moved here from
8383 break-catch-throw.c.
8384 (catch_exception_event): Declare.
8385 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8386 (mi_cmd_catch_throw): New function.
8387 (mi_cmd_catch_rethrow): New function.
8388 (mi_cmd_catch_catch): New function.
8389 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8390 'catch-catch' entries.
8391 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8392 (mi_cmd_catch_rethrow): Declare.
8393 (mi_cmd_catch_catch): Declare.
8394
8395 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * annotate.c (annotate_source_line): Change return type to void,
8398 update implementation to match.
8399 * annotate.h (annotate_source_line): Change return type to void,
8400 update header comment.
8401 * stack.c (print_frame_info): Don't change what frame information
8402 is printed based on whether annotations are on or not.
8403
8404 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8405
8406 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8407 (annotate_source): Make static.
8408 (annotate_source_line): Moved from source.c and renamed from
8409 identify_source_line. Update the return type.
8410 * annotate.h (annotate_source): Delete declaration.
8411 (annotate_source_line): Declaration moved from source.h, and
8412 renamed from identify_source_line. Return type updated.
8413 * source.c (identify_source_line): Moved to annotate.c and renamed
8414 to annotate_source_line.
8415 (info_line_command): Remove check of annotation_level.
8416 * source.h (identify_source_line): Move declaration to annotate.h
8417 and rename to annotate_source_line.
8418 * stack.c: Add 'annotate.h' include.
8419 (print_frame_info): Remove check of annotation_level before
8420 calling annotate_source_line.
8421
8422 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8423
8424 * source-cache.c (source_cache::get_plain_source_lines): Use
8425 open_source_file_with_line_charpos instead of just
8426 open_source_file, remove call to find_source_lines.
8427 (source_cache::get_source_lines): Likewise.
8428 * source.c (find_source_lines): Make static.
8429 (get_filename_and_charpos): Renamed into...
8430 (open_source_file_with_line_charpos): ..this along with changes to
8431 return a scoped_fd, and some other minor clean ups.
8432 (identify_source_line): Use open_source_file_with_line_charpos.
8433 (search_command_helper): Use open_source_file_with_line_charpos
8434 instead of just open_source_file, remove call to
8435 find_source_lines.
8436 * source.h (open_source_file_with_line_charpos): Declare new
8437 function.
8438 (find_source_lines): Delete declaration.
8439
8440 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8441
8442 * source.c (get_filename_and_charpos): Remove fullname
8443 parameter.
8444 (identify_source_line): Update call to get_filename_and_charpos.
8445
8446 2019-06-14 Tom Tromey <tromey@adacore.com>
8447
8448 PR gdb/24502:
8449 * ui-style.h (skip_ansi_escape): Update comment.
8450 * ui-file.h (class no_terminal_escape_file): New class.
8451 * ui-file.c (no_terminal_escape_file::write)
8452 (no_terminal_escape_file::puts): New methods.
8453 * cli/cli-logging.c (handle_redirections): Use
8454 no_terminal_escape_file.
8455
8456 2019-06-14 Tom Tromey <tromey@adacore.com>
8457
8458 * NEWS: Move convenience variable news above Python news.
8459
8460 2019-06-14 Tom Tromey <tom@tromey.com>
8461
8462 * gnulib: Move directory to top-level.
8463 * configure.ac: Don't configure gnulib.
8464 * configure: Rebuild.
8465 * common/common-defs.h: Use new path to gnulib.
8466 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8467 (GNULIB_H): Remove.
8468 (INCGNU): Look in new gnulib location.
8469 (HFILES_NO_SRCDIR): Remove gnulib files.
8470 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8471 (generated_files): Remove GNULIB_H.
8472 ($(LIBGNU), all-lib): Remove targets.
8473 (distclean): Don't mention GNULIB_BUILDDIR.
8474 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8475
8476 2019-06-14 Tom Tromey <tromey@adacore.com>
8477
8478 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8479 Warn if symbol file does not provide any symbols.
8480
8481 2019-06-14 Tom Tromey <tromey@adacore.com>
8482
8483 * source.c (find_and_open_source): Respect basenames_may_differ.
8484
8485 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8486
8487 * annotate.c (annotate_breakpoints_invalid): Make use of
8488 scoped_restore_terminal_state.
8489 (annotate_frames_invalid): Likewise.
8490
8491 2019-06-14 Tom Tromey <tromey@adacore.com>
8492
8493 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8494 allow assignment to an internalvar.
8495
8496 2019-06-14 Tom Tromey <tromey@adacore.com>
8497
8498 * ada-lex.l: Allow "_" in attribute names.
8499
8500 2019-06-14 Tom Tromey <tromey@adacore.com>
8501
8502 PR gdb/24653:
8503 * regcache.c (registers_changed): Don't call alloca.
8504 * top.c (execute_command): Don't call alloca.
8505
8506 2019-06-13 Pedro Alves <palves@redhat.com>
8507
8508 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8509 'expression'. When parsing an expression, error out if there's
8510 junk after "unlimited".
8511 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8512 (do_set_command): Adjust calls to is_unlimited_literal.
8513
8514 2019-06-13 Pedro Alves <palves@redhat.com>
8515
8516 * compile/compile.c (make_compile_options_def_group): Add braces
8517 around array_view initializer.
8518 * thread.c (make_thread_apply_all_options_def_group)
8519 (make_thread_apply_all_options_def_group): Likewise.
8520
8521 2019-06-13 Pedro Alves <palves@redhat.com>
8522
8523 * NEWS (New commands): Mention "maint test-options
8524 require-delimiter", "maint test-options unknown-is-error", "maint
8525 test-options unknown-is-operand" and "maint show
8526 test-options-completion-result".
8527 (New command options, command completion): New section.
8528 (Completion improvements): New section.
8529 Mention that you can abbreviate "unlimited".
8530
8531 2019-06-13 Pedro Alves <palves@redhat.com>
8532
8533 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8534 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8535 * unittests/cli-utils-selftests.c (test_parse_flags)
8536 (test_parse_flags_qcs): Delete.
8537 (test_cli_utils): Don't call deleted functions.
8538
8539 2019-06-13 Pedro Alves <palves@redhat.com>
8540
8541 * thread.c: Include "cli/cli-option.h".
8542 (tp_array_compar_ascending): Global.
8543 (tp_array_compar): Delete function.
8544 (tp_array_compar_ascending, tp_array_compar_descending): New
8545 functions.
8546 (ascending_option_def, qcs_flag_option_def)
8547 (thr_qcs_flags_option_defs)
8548 (make_thread_apply_all_options_def_group)
8549 (make_thread_apply_options_def_group): New.
8550 (thread_apply_all_command): Use gdb::option::process_options.
8551 (thread_apply_command_completer)
8552 (thread_apply_all_command_completer): New.
8553 (thread_apply_command): Use gdb::option::process_options.
8554 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8555 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8556 to generate help text of "thread apply". Adjust "taas"'s help.
8557 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8558 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8559
8560 2019-06-13 Pedro Alves <palves@redhat.com>
8561
8562 * thread.c (thread_apply_command): Check for invalid TID with
8563 isdigit instead of !isalpha.
8564
8565 2019-06-13 Pedro Alves <palves@redhat.com>
8566
8567 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8568 (validate_flags_qcs): New.
8569 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8570 (validate_flags_qcs): Declare.
8571 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8572 (make_frame_apply_options_def_group): New.
8573 (frame_apply_command_count): Process options with
8574 gdb::option::process_options.
8575 (frame_apply_completer): New.
8576 (frame_apply_level_completer, frame_apply_all_completer)
8577 (frame_apply_completer): New.
8578 (_initialize_stack): Update help of "frame apply", "frame apply
8579 level", "frame apply all" and "faas" to mention supported options
8580 and install command completers.
8581 * stack.h (frame_apply_all_completer): Declare.
8582 * thread.c: Include "stack.h".
8583 (tfaas_command): Add "--".
8584 (_initialize_thread): Update help "tfaas" to mention supported
8585 options and install command completer.
8586
8587 2019-06-13 Pedro Alves <palves@redhat.com>
8588
8589 * completer.c (complete_nested_command_line): New.
8590 (gdb_completion_word_break_characters_throw): Add assertion.
8591 * completer.h (complete_nested_command_line): Declare.
8592
8593 2019-06-13 Pedro Alves <palves@redhat.com>
8594
8595 * stack.c (parse_backtrace_qualifiers): New.
8596 (backtrace_command): Use it.
8597 (backtrace_command_completer): Complete on qualifiers.
8598
8599 2019-06-13 Pedro Alves <palves@redhat.com>
8600
8601 * frame.c: Include "cli/cli-option.h.
8602 (user_set_backtrace_options): New.
8603 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8604 Delete.
8605 (get_prev_frame): Adjust.
8606 (boolean_option_def, uinteger_option_def)
8607 (set_backtrace_option_defs): New.
8608 (_initialize_frame): Adjust and use
8609 gdb::option::add_setshow_cmds_for_options to install "set
8610 backtrace past-main" and "set backtrace past-entry".
8611 * frame.h: Include "cli/cli-option.h".
8612 (struct frame_print_options): Forward declare.
8613 (print_frame_arguments_all, print_frame_arguments_scalars)
8614 (print_frame_arguments_none): Declare.
8615 (print_entry_values): Delete declaration.
8616 (struct frame_print_options, user_frame_print_options): New.
8617 (struct set_backtrace_options): New.
8618 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8619 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8620 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8621 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8622 (list_args_or_locals): Add frame_print_options parameter.
8623 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8624 * python/py-framefilter.c (enumerate_args): Pass down
8625 USER_FRAME_PRINT_OPTIONS.
8626 * stack.c: Include "cli/cli-option.h".
8627 (print_frame_arguments_all, print_frame_arguments_scalars)
8628 (print_frame_arguments_none): Declare.
8629 (print_raw_frame_arguments, print_entry_values): Delete.
8630 (user_frame_print_options): New.
8631 (boolean_option_def, enum_option_def, frame_print_option_defs):
8632 New.
8633 (struct backtrace_cmd_options): New.
8634 (bt_flag_option_def): New.
8635 (backtrace_command_option_defs): New.
8636 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8637 (print_frame_arg, read_frame_arg, print_frame_args)
8638 (print_frame_info, print_frame): Add frame_print_options parameter
8639 and use it.
8640 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8641 (backtrace_command_1): Add frame_print_options and
8642 backtrace_cmd_options parameters and use them.
8643 (make_backtrace_options_def_group): New.
8644 (backtrace_command): Process command options with
8645 gdb::option::process_options.
8646 (backtrace_command_completer): New.
8647 (_initialize_stack): Extend "backtrace"'s help to mention
8648 supported options. Install completer for "backtrace".
8649 Install some settings commands with add_setshow_cmds_for_options.
8650
8651 2019-06-13 Pedro Alves <palves@redhat.com>
8652
8653 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8654 and that "set/show print raw frame-arguments" are now deprecated.
8655
8656 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8657 command.
8658 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8659 * stack.c (_initialize_stack): Install "set/show print
8660 raw-frame-arguments", and deprecate "set/show print raw
8661 frame-arguments".
8662 * valprint.c (_initialize_valprint): Deprecate "set/show print
8663 raw".
8664
8665 2019-06-13 Pedro Alves <palves@redhat.com>
8666
8667 * compile/compile.c (struct compile_options): New.
8668 (compile_flag_option_def, compile_command_option_defs)
8669 (make_compile_options_def_group): New.
8670 (compile_file_command): Handle options with
8671 gdb::option::process_options.
8672 (compile_file_command_completer): New function.
8673 (compile_code_command): Handle options with
8674 gdb::option::process_options.
8675 (compile_code_command_completer): New function.
8676 (_initialize_compiler): Install completers for "compile code" and
8677 "compile file". Mention available options in "compile code" and
8678 "compile code"'s help.
8679 * completer.c (advance_to_completion_word): New, factored out from
8680 ...
8681 (advance_to_expression_complete_word_point): ... this.
8682 (advance_to_filename_complete_word_point): New.
8683 * completer.h (advance_to_filename_complete_word_point): New
8684 declaration.
8685
8686 2019-06-13 Pedro Alves <palves@redhat.com>
8687
8688 * compile/compile.c: Include "cli/cli-option.h".
8689 (compile_print_value): Scope data pointer is now a
8690 value_print_options pointer; adjust.
8691 (compile_print_command): Process options. Scope data pointer is
8692 now a value_print_options pointer; adjust.
8693 (_initialize_compile): Update "compile print"'s help to include
8694 supported options. Install a completer for "compile print".
8695 * cp-valprint.c (show_vtblprint, show_objectprint)
8696 (show_static_field_print): Delete.
8697 (_initialize_cp_valprint): Don't install "set print
8698 static-members", "set print vtbl", "set print object" here.
8699 * printcmd.c: Include "cli/cli-option.h" and
8700 "common/gdb_optional.h".
8701 (print_command_parse_format): Rework to fill in a
8702 value_print_options instead of a format_data.
8703 (print_value): Change parameter type from format_data pointer to
8704 value_print_options reference. Adjust.
8705 (print_command_1): Process options. Adjust to pass down a
8706 value_print_options.
8707 (print_command_completer): New.
8708 (_initialize_printcmd): Install print_command_completer as
8709 handle_brkchars completer for the "print" command. Update
8710 "print"'s help to include supported options.
8711 * valprint.c: Include "cli/cli-option.h".
8712 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8713 here from cp-valprint.c.
8714 (boolean_option_def, uinteger_option_def)
8715 (value_print_option_defs, make_value_print_options_def_group):
8716 New. Use gdb::option::add_setshow_cmds_for_options to install
8717 "set print elements", "set print null-stop", "set print repeats",
8718 "set print pretty", "set print union", "set print array", "set
8719 print address", "set print symbol", "set print array-indexes".
8720 * valprint.h: Include <string> and "cli/cli-option.h".
8721 (make_value_print_options_def_group): Declare.
8722 (print_value): Change parameter type from format_data pointer to
8723 value_print_options reference.
8724 (print_command_completer): Declare.
8725
8726 2019-06-13 Pedro Alves <palves@redhat.com>
8727
8728 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8729 (COMMON_SFILES): Add maint-test-settings.c.
8730 * cli/cli-decode.c (boolean_enums): New global, factored out from
8731 ...
8732 (add_setshow_boolean_cmd): ... here.
8733 * cli/cli-decode.h (boolean_enums): Declare.
8734 * cli/cli-option.c: New file.
8735 * cli/cli-option.h: New file.
8736 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8737 factored out from ...
8738 (parse_cli_boolean_value(const char *)): ... this.
8739 (is_unlimited_literal): Change parameter type to pointer to
8740 pointer. Adjust and advance ARG pointer.
8741 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8742 (parse_cli_var_enum): New, factored out from ...
8743 (do_set_command): ... this. Adjust.
8744 * cli/cli-setshow.h (parse_cli_boolean_value)
8745 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8746 (parse_cli_var_enum): Declare.
8747 * cli/cli-utils.c: Include "cli/cli-option.h".
8748 (get_ulongest): New.
8749 * cli/cli-utils.h (get_ulongest): Declare.
8750 (check_for_argument): New overloads.
8751 * maint-test-options.c: New file.
8752
8753 2019-06-13 Pedro Alves <palves@redhat.com>
8754
8755 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8756 parse a range if "-" is at the end of the string.
8757
8758 2019-06-13 Pedro Alves <palves@redhat.com>
8759
8760 * cli/cli-setshow.c (parse_auto_binary_operation)
8761 (parse_cli_boolean_value): Don't allow "o".
8762
8763 2019-06-13 Pedro Alves <palves@redhat.com>
8764
8765 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8766 * NEWS: Mention maint test-settings KIND.
8767 * maint-test-settings.c: New file.
8768
8769 2019-06-13 Pedro Alves <palves@redhat.com>
8770
8771 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8772 completer.
8773 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8774 "set" completers.
8775
8776 2019-06-13 Pedro Alves <palves@redhat.com>
8777
8778 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8779 after item.
8780
8781 2019-06-13 Pedro Alves <palves@redhat.com>
8782
8783 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8784
8785 2019-06-13 Pedro Alves <palves@redhat.com>
8786
8787 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8788 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8789 call.
8790 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8791 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8792 calls.
8793 (check_for_argument): Skip spaces after argument.
8794
8795 2019-06-13 Pedro Alves <palves@redhat.com>
8796
8797 * thread.c (thread_apply_command): Adjust TID parsing.
8798 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8799 detected before end of string.
8800 (tid_is_in_list): Error out if LIST is invalid.
8801
8802 2019-06-13 Pedro Alves <palves@redhat.com>
8803
8804 * completer.c (complete_line_internal_1): Rewind completion word
8805 point.
8806 (completion_tracker::advance_custom_word_point_by): Change
8807 parameter type to int.
8808 * completer.h (completion_tracker::advance_custom_word_point_by):
8809 Likewise.
8810
8811 2019-06-13 Pedro Alves <palves@redhat.com>
8812
8813 * completer.c (advance_to_completion_word): Handle delimiters.
8814
8815 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8816
8817 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8818
8819 2019-06-11 Tom Tromey <tom@tromey.com>
8820
8821 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8822 (xmalloc_failed): Move to alloc.c.
8823 * alloc.c: New file.
8824 * Makefile.in (COMMON_SFILES): Add alloc.c.
8825
8826 2019-06-11 Tom Tromey <tom@tromey.com>
8827
8828 * nat/linux-waitpid.c: Don't include server.h.
8829 (linux_debug): Remove.
8830 (my_waitpid): Update.
8831
8832 2019-06-11 Tom Tromey <tromey@adacore.com>
8833
8834 * infcall.c (_initialize_infcall): Remove trailing newline from
8835 help.
8836 * user-regs.c (_initialize_user_regs): Remove trailing newline
8837 from help.
8838 * typeprint.c (_initialize_typeprint): Remove trailing newline
8839 from help.
8840 * reverse.c (_initialize_reverse): Remove trailing newlines from
8841 help.
8842 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8843 from help.
8844 * language.c (add_set_language_command): Remove trailing newline
8845 from help.
8846 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8847 help.
8848 * disasm.c (_initialize_disasm): Remove trailing newline from
8849 help.
8850 * top.c (init_main): Remove trailing newline from help.
8851 * interps.c (_initialize_interpreter): Remove trailing newline
8852 from help.
8853 * btrace.c (_initialize_btrace): Remove trailing newlines from
8854 help.
8855 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8856 from help.
8857 * python/python.c (_initialize_python): Remove trailing newline
8858 from help.
8859 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8860 help.
8861 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8862 from help. Reformat some text.
8863 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8864 from help.
8865 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8866 newline from help.
8867
8868 2019-06-11 Tom Tromey <tromey@adacore.com>
8869
8870 * darwin-nat.c (darwin_decode_exception_message)
8871 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8872
8873 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8874
8875 * valops.c (value_slice): Check for not allocated or not
8876 associated values.
8877
8878 2019-06-10 Tom de Vries <tdevries@suse.de>
8879
8880 PR gdb/24618
8881 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8882 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8883 invalid.
8884
8885 2019-06-10 Tom de Vries <tdevries@suse.de>
8886
8887 PR gdb/24611
8888 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8889 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8890
8891 2019-06-10 Tom de Vries <tdevries@suse.de>
8892
8893 PR symtab/24545
8894 * symtab.c (struct demangled_name_entry): Add language field.
8895 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8896 static minimal symbol". Set and use language field.
8897
8898 2019-06-10 Tom Tromey <tromey@adacore.com>
8899
8900 * ada-lang.c (_initialize_ada_language): Update help text.
8901
8902 2019-06-10 Tom Tromey <tromey@adacore.com>
8903
8904 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8905 with a newline.
8906 * guile/guile.c (handle_boot_error): Don't end warning with a
8907 newline.
8908 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8909 warning with a newline.
8910 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8911 newline.
8912 (s12z_frame_cache): Likewise.
8913 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8914 a newline.
8915 * solib-svr4.c (disable_probes_interface): Don't end warning with
8916 a newline.
8917 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8918 newline.
8919 * python/python.c (do_finish_initialization): Don't end warning
8920 with a newline.
8921
8922 2019-06-10 Tom Tromey <tom@tromey.com>
8923
8924 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8925 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8926 gdbpy_enter.
8927
8928 2019-06-10 Tom Tromey <tromey@adacore.com>
8929
8930 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8931 data.
8932 (elf_new_init): Don't call stabsread_new_init.
8933 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8934 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8935 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8936
8937 2019-06-10 Tom de Vries <tdevries@suse.de>
8938
8939 PR symtab/16264
8940 PR symtab/24517
8941 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8942
8943 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8944
8945 * source.c (find_and_open_source): Also rewrite relative file
8946 names.
8947
8948 2019-04-26 Amos Bird <amosbird@gmail.com>
8949
8950 * annotate.c (annotate_thread_exited): Add "thread-exited"
8951 annotation.
8952
8953 2019-06-06 Tom Tromey <tromey@adacore.com>
8954
8955 * maint.h (class scoped_command_stats): Use
8956 DISABLE_COPY_AND_ASSIGN.
8957 <print_time>: New method.
8958 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8959 print_time.
8960 (scoped_command_stats::print_time): New method.
8961
8962 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8965 instructions of lengths 6 or 8 bytes.
8966
8967 2019-06-04 Pedro Alves <palves@redhat.com>
8968
8969 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8970
8971 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8972 * breakpoint.c (condition_completer): Likewise.
8973 * cli/cli-dump.c (scan_expression): Likewise.
8974 * common/filestuff.c (mkdir_recursive): Likewise.
8975 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8976 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8977 (gdb_abspath): Likewise.
8978 * compile/compile-cplus-types.c
8979 (compile_cplus_instance::decl_name): Likewise.
8980 * completer.c (complete_explicit_location):
8981 (signal_completer, reg_or_group_completer_1): Likewise.
8982 * cp-support.c (cp_remove_params_if_any): Likewise.
8983 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8984 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8985 * infcmd.c (strip_bg_char): Likewise.
8986 * linespec.c (copy_token_string): Likewise.
8987 * mi/mi-main.c (output_cores): Likewise.
8988 * psymtab.c (psymtab_search_name):
8989 * symfile.c (test_set_ext_lang_command): Likewise.
8990 * target.c (target_fileio_read_stralloc): Likewise.
8991 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8992 * value.c (complete_internalvar): Likewise.
8993
8994 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8995
8996 Add objfile property to gdb.Type.
8997 * NEWS: Mention Python API addition.
8998 * python/py-type.c (typy_get_objfile): New method.
8999
9000 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9001
9002 * NEWS: Mention the new set|show style [title|highlight].
9003 Mention changes to "show style", "help" and "apropos".
9004
9005 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9006
9007 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9008 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9009 instead of print_help_for_command.
9010 (print_doc_of_command): New function.
9011 (help_list): Add 'apropos -v word' suggestion.
9012 (print_help_for_command): Style the command name using title style.
9013 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9014 (_initialize_cli_cmds): Describe -v in apropos_command help.
9015
9016 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9017
9018 * cli/cli-style.h (cli_style_option): Add name in constructor,
9019 add m_name class member, add constructor with intensity,
9020 add name class function.
9021 (cli_style_option::add_setshow_commands): Remove name argument.
9022 (highlight_style, title_style): New styles.
9023 * cli/cli-style.c (do_show): New function that shows a style
9024 characteristic styling the style name with itself.
9025 (set_style_name): New function.
9026 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9027 Update all callers according to the changes in cli/cli-style.h.
9028 * utils.h (fputs_highlighted): New function.
9029 * utils.c (fputs_highlighted): Likewise.
9030
9031 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9032
9033 * NEWS: Mention new pipe command and new convenience variables.
9034
9035 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9036
9037 * cli/cli-cmds.c (pipe_command): New function.
9038 (_initialize_cli_cmds): Call add_com for pipe_command.
9039 Define | as an alias for pipe.
9040 (exit_status_set_internal_vars): New function.
9041 (shell_escape): Call exit_status_set_internal_vars.
9042 cli/cli-decode.c (find_command_name_length): Recognize | as
9043 a single character command.
9044
9045 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9046
9047 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9048 top.c (execute_command_to_ui_file): New function, mostly a copy
9049 of execute_command_to_string.
9050 (execute_command_to_string): Implement by calling
9051 execute_command_to_ui_file.
9052
9053 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9054
9055 * top.h (saved_command_line): Remove declaration.
9056 * top.c (previous_saved_command_line, previous_repeat_arguments):
9057 New variables.
9058 (saved_command_line): Make static, define together with other
9059 'repeat variables'.
9060 (dont_repeat): Clear repeat_arguments.
9061 (repeat_previous, get_saved_command_line, save_command_line):
9062 New functions.
9063 (gdb_init): Initialize saved_command_line
9064 and previous_saved_command_line.
9065 * main.c (captured_main_1): Remove saved_command_line initialization.
9066 * event-top.c (handle_line_of_input): Update to use
9067 the new 'repeat' related functions instead of direct access to
9068 saved_command_line.
9069 * command.h (repeat_previous, get_saved_command_line,
9070 save_command_line): New declarations.
9071 (dont_repeat): Add comment.
9072
9073 2019-05-30 Tom Tromey <tromey@adacore.com>
9074
9075 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9076 Fix comment.
9077 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9078
9079 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9080
9081 PR cli/24587
9082 * completer.c (complete): Initialize variable word.
9083
9084 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9085
9086 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9087 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9088 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9089 'body' is NULL to the outter 'if', protecting the '!is_define'
9090 situation as well.
9091
9092 2019-05-29 Tom Tromey <tromey@adacore.com>
9093
9094 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9095 (dwarf_unknown): New function.
9096 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9097 (dwarf_type_encoding_name): Use dwarf_unknown.
9098
9099 2019-05-29 Tom Tromey <tromey@adacore.com>
9100
9101 PR c++/20020:
9102 * cp-valprint.c (cp_print_value_fields): Call
9103 cp_print_static_field inside "try".
9104
9105 2019-05-29 Tom Tromey <tromey@adacore.com>
9106
9107 * inflow.c (struct terminal_info): Add default operator=.
9108 * configure: Rebuild.
9109 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9110 -Wdeprecated-copy-dtor, -Wredundant-move.
9111
9112 2019-05-29 Tom Tromey <tromey@adacore.com>
9113
9114 * NEWS: Add entry.
9115 * infcmd.c (print_return_value_1): Handle finish_print
9116 option.
9117 (show_print_finish): New function.
9118 (_initialize_infcmd): Add "set/show print finish" commands.
9119 * valprint.c (user_print_options): Initialize new member.
9120 * valprint.h (struct value_print_options) <finish_print>: New
9121 member.
9122
9123 2019-05-28 Tom Tromey <tromey@adacore.com>
9124
9125 * ada-lang.c (ada_remove_Xbn_suffix)
9126 (find_old_style_renaming_symbol)
9127 (parse_old_style_renaming): Remove.
9128 (ada_find_renaming_symbol): Don't call
9129 find_old_style_renaming_symbol.
9130 (ada_is_renaming_symbol): Rename from
9131 ada_find_renaming_symbol. Remove "block" parameter. Return
9132 bool. Now static.
9133 (ada_read_var_value): Update and simplify.
9134 * ada-exp.y (write_var_or_type): Remove old code.
9135
9136 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9137
9138 PR gdb/25010
9139 * event-top.c: Remove include comment.
9140 * inflow.c (class scoped_ignore_sigttou): Move from here...
9141 * inflow.h (class scoped_ignore_sigttou): ...to here.
9142 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9143 * top.c: Remove include comment.
9144
9145 2019-05-27 Tom Tromey <tom@tromey.com>
9146
9147 * NEWS: Fix typo.
9148
9149 2019-05-22 Tom Tromey <tromey@adacore.com>
9150
9151 * target.c (target_follow_exec): Constify parameter.
9152 * target-delegates.c: Rebuild.
9153 * remote.c (remote_target::follow_exec): Constify parameter.
9154 * infrun.c (follow_exec): Constify parameter.
9155 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9156 (target_follow_exec): Likewise.
9157
9158 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9159
9160 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9161 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9162
9163 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9164
9165 * NEWS: Add debugredirect and testsuite sections.
9166
9167 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9168
9169 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9170 target descriptions using exclusively floating point register name
9171 aliases.
9172
9173 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 PR gdb/18644:
9176 * f-lang.c (build_fortran_types): Handle the case where
9177 gdbarch_floatformat_for_type returns a nullptr.
9178
9179 2019-05-21 Tom de Vries <tdevries@suse.de>
9180
9181 PR cli/24587
9182 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9183
9184 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 PR gdb/18644:
9187 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9188 16-byte floats.
9189 * i386-tdep.c (i386_floatformat_for_type): Use
9190 floatformats_ia64_quad for the 16-byte floating point component
9191 within a fortran 32-byte complex number.
9192
9193 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9194
9195 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9196 delete default constructor.
9197 (find_partial_die): Update to return const struct.
9198 (partial_die_parent_scope): Move variable declaration into scope
9199 of its use and change its type to auto.
9200 (guess_partial_die_structure_name): Likewise.
9201 (partial_die_info::fixup): Likewise.
9202
9203 2019-05-17 Tom Tromey <tromey@adacore.com>
9204
9205 * source.c (find_and_open_source): Remove cast.
9206
9207 2019-05-17 Tom Tromey <tromey@adacore.com>
9208
9209 * annotate.c (annotate_source): Make "filename" const.
9210 * annotate.h (annotate_source): Use const.
9211
9212 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9213
9214 * disasm.c (set_disassembler_options): Send errors to stderr.
9215
9216 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9217
9218 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9219 (cli_interp_base::set_logging): Check debug_redirect.
9220 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9221 * cli/cli-logging.c (debug_redirect): Add static variable.
9222 (pop_output_files): Add default param.
9223 (handle_redirections): Print debug setting.
9224 (show_logging_command): Likewise.
9225 (_initialize_cli_logging): Add debugredirect command.
9226 * interps.c (current_interp_set_logging): Add debug_redirect
9227 parameter.
9228 * interps.h (set_logging): Add debug_redirect parameter.
9229 (current_interp_set_logging): Likewise.
9230 * mi/mi-common.h: Likewise.
9231 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9232
9233 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9234 Tom Tromey <tromey@adacore.com>
9235
9236 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9237 directly.
9238 * cli/cli-interp.h (make_logging_output): Remove declaration.
9239 * cli/cli-logging.c (make_logging_output): Remove function.
9240 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9241 directly.
9242 * ui-file.c (tee_file::tee_file): Remove bools.
9243 (tee_file::~tee_file): Remove deletes.
9244 * ui-file.h (tee_file): Remove bools.
9245
9246 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9247
9248 * mi/mi-cmds.h (mi_cmd_complete): New function.
9249 * mi/mi-main.c (mi_cmd_complete): Likewise.
9250 * mi/mi-cmds.c: Define new MI command -complete.
9251 * NEWS: Mention new -complete command.
9252
9253 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9254
9255 * completer.h (complete): New function.
9256 * completer.c (complete): Likewise.
9257 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9258 function defined in completer.h.
9259
9260 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9261
9262 * MAINTAINERS (Write After Approval): Add myself.
9263
9264 2019-05-17 Tom de Vries <tdevries@suse.de>
9265
9266 PR gdb/24094
9267 * dwarf2read.c (struct cu_partial_die_info): New struct.
9268 (find_partial_die): Return cu_partial_die_info.
9269 (partial_die_parent_scope, guess_partial_die_structure_name)
9270 (partial_die_info::fixup): Handle new return type of find_partial_die.
9271
9272 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9273
9274 PR breakpoints/24541
9275 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9276 "std::string", simplifying the algorithm.
9277
9278 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9279
9280 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9281 (stap_static_probe_ops::get_probes): Likewise.
9282
9283 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9284
9285 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9286 '-')" and "else if".
9287 (stap_parse_single_operand): Join checks for
9288 "gdbarch_stap_parse_special_token_p" and
9289 "gdbarch_stap_parse_special_token" in the same "if" statement.
9290 Invert check when verifying for operation on register
9291 displacement.
9292
9293 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9294
9295 * stap-probe.c (stap_get_opcode): Update comment.
9296 (stap_get_expected_argument_type): Likewise.
9297 (handle_stap_probe): Likewise.
9298
9299 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9300
9301 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9302 return type to 'bool'. Adjust comment. Use 'bool' when
9303 appropriate.
9304 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9305 * stap-probe.c (stap_parse_argument_1): Likewise.
9306 (stap_is_operator): Likewise.
9307 (stap_is_generic_prefix): Likewise.
9308 (stap_is_register_prefix): Likewise.
9309 (stap_is_register_indirection_prefix): Likewise.
9310 (stap_is_integer_prefix): Likewise.
9311 (stap_generic_check_suffix): Likewise.
9312 (stap_check_integer_suffix): Likewise.
9313 (stap_check_register_suffix): Likewise.
9314 (stap_check_register_indirection_suffix): Likewise.
9315 (stap_parse_register_operand): Likewise.
9316 (stap_parse_single_operand): Likewise.
9317 (stap_parse_argument_1): Likewise.
9318 (stap_probe::get_argument_count): Likewise.
9319 (stap_is_operator): Likewise.
9320
9321 2019-05-16 Tom Tromey <tromey@adacore.com>
9322
9323 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9324 keyword to foreach.
9325
9326 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * linux-thread-db.c (try_thread_db_load_1): Change return type
9329 to bool.
9330 (try_thread_db_load): Likewise.
9331 (try_thread_db_load_from_pdir_1): Likewise.
9332 (try_thread_db_load_from_pdir): Likewise.
9333 (try_thread_db_load_from_sdir): Likewise.
9334 (try_thread_db_load_from_dir): Likewise.
9335 (thread_db_load_search): Likewise.
9336 (has_libpthread): Likewise.
9337 (thread_db_load): Likewise.
9338
9339 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9342 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9343 NULL, and complain/return if that's the case.
9344
9345 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9346
9347 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9348 (advance, posn, abstract_read_memory): New functions.
9349 [struct mem_read_abstraction]: New struct.
9350 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9351
9352 2019-05-14 Tom Tromey <tromey@adacore.com>
9353
9354 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9355 value is not lval_memory.
9356
9357 2019-05-14 Tom Tromey <tromey@adacore.com>
9358
9359 * solib.c (info_sharedlibrary_command): Style the file name.
9360
9361 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9362
9363 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9364 (aarch64_vnv_type): Likewise.
9365 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9366 * common/tdesc.c: Likewise.
9367 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9368 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9369 * features/aarch64-fpu.xml: Add ieee half view.
9370 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9371 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9372 * gdbtypes.h (struct builtin_type): Likewise.
9373 (struct objfile_type): Likewise.
9374
9375 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9376
9377 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9378 typo.
9379 * location.h (string_to_event_location): Likewise.
9380
9381 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9382
9383 GDB 8.3 released.
9384
9385 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9388 New variable declaration.
9389 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9390 New variable.
9391 (print_one_breakpoint): Use ui_out::test_flags and new global
9392 variable to compute use_fixed_output.
9393 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9394 Remove.
9395 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9396 (mi_multi_location_breakpoint_output_fixed): Remove.
9397 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9398 new variable.
9399 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9400 fix_multi_location_breakpoint_output flag if version >= 3.
9401 * ui-out.h (enum ui_out_flag)
9402 <fix_multi_location_breakpoint_output>: New enumerator.
9403
9404 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9407
9408 2019-05-10 Tom Tromey <tromey@adacore.com>
9409
9410 * ada-lang.c (catch_ada_completer): New function.
9411 (_initialize_ada_language): Use it.
9412
9413 2019-05-10 Tom Tromey <tromey@adacore.com>
9414
9415 * thread.c (print_thread_info): Make "requested_threads" const.
9416 * gdbthread.h (print_thread_info): Make "requested_threads"
9417 const.
9418 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9419 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9420
9421 2019-05-08 Tom Tromey <tom@tromey.com>
9422
9423 * gdbtypes.c (objfile_type_data): Change type.
9424 (objfile_type, _initialize_gdbtypes): Update.
9425
9426 2019-05-08 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9429 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9430 (_initialize_dwarf2_frame): Update.
9431
9432 2019-05-08 Tom Tromey <tom@tromey.com>
9433
9434 * objc-lang.c (objc_objfile_data): Change type.
9435 (find_methods): Update.
9436 (_initialize_objc_lang): Remove.
9437
9438 2019-05-08 Tom Tromey <tom@tromey.com>
9439
9440 * stabsread.c (rs6000_builtin_type_data): Change type.
9441 (rs6000_builtin_type, _initialize_stabsread): Update.
9442
9443 2019-05-08 Tom Tromey <tom@tromey.com>
9444
9445 * mips-tdep.c (mips_pdr_data): Remove.
9446 (_initialize_mips_tdep): Update.
9447
9448 2019-05-08 Tom Tromey <tom@tromey.com>
9449
9450 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9451 (hppa_init_objfile_priv_data, read_unwind_info)
9452 (find_unwind_entry, _initialize_hppa_tdep): Update.
9453
9454 2019-05-08 Tom Tromey <tom@tromey.com>
9455
9456 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9457 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9458 on obstack.
9459 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9460
9461 2019-05-08 Tom Tromey <tom@tromey.com>
9462
9463 * mdebugread.c (basic_type_data): Change type.
9464 (basic_type, _initialize_mdebugread): Update.
9465
9466 2019-05-08 Tom Tromey <tom@tromey.com>
9467
9468 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9469
9470 2019-05-08 Tom Tromey <tom@tromey.com>
9471
9472 * nto-tdep.c (nto_inferior_data_reg): Change type.
9473 (nto_inferior_data): Update.
9474 (nto_inferior_data_cleanup, nto_new_inferior_data)
9475 (_initialize_nto_tdep): Remove.
9476 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9477
9478 2019-05-08 Tom Tromey <tom@tromey.com>
9479
9480 * ada-lang.c (struct ada_inferior_data): Add initializers.
9481 (ada_inferior_data): Change type.
9482 (ada_inferior_data_cleanup): Remove.
9483 (get_ada_inferior_data, ada_inferior_exit)
9484 (struct ada_pspace_data): Add initializers, destructor.
9485 (ada_pspace_data_handle): Change type.
9486 (get_ada_pspace_data): Update.
9487 (ada_pspace_data_cleanup): Remove.
9488
9489 2019-05-08 Tom Tromey <tom@tromey.com>
9490
9491 * coffread.c (struct coff_symfile_info): Add initializers.
9492 (coff_objfile_data_key): Move lower. Change type.
9493 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9494 Update.
9495 (coff_free_info): Remove.
9496
9497 2019-05-08 Tom Tromey <tom@tromey.com>
9498
9499 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9500 (fbsd_pspace_data_handle): Move lower. Change type.
9501 (get_fbsd_pspace_data): Update.
9502 (fbsd_pspace_data_cleanup): Remove.
9503 (_initialize_fbsd_tdep): Update.
9504
9505 2019-05-08 Tom Tromey <tom@tromey.com>
9506
9507 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9508 (get_ada_tasks_pspace_data): Update.
9509 (ada_tasks_pspace_data_cleanup): Remove.
9510 (_initialize_tasks): Update.
9511 (ada_tasks_inferior_data_handle): Change type.
9512 (get_ada_tasks_inferior_data): Update.
9513 (ada_tasks_inferior_data_cleanup): Remove.
9514 (struct ada_tasks_pspace_data): Add initializers.
9515
9516 2019-05-08 Tom Tromey <tom@tromey.com>
9517
9518 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9519 * symfile-debug.c (debug_sym_get_probes): Change type.
9520 * stap-probe.c (handle_stap_probe):
9521 (stap_static_probe_ops::get_probes): Change type.
9522 * probe.h (class static_probe_ops) <get_probes>: Change type.
9523 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9524 (parse_probes_in_pspace): Update.
9525 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9526 Update.
9527 (any_static_probe_ops::get_probes): Change type.
9528 * elfread.c (elfread_data): New typedef.
9529 (probe_key): Change type.
9530 (elf_get_probes): Likewise. Update.
9531 (probe_key_free): Remove.
9532 (_initialize_elfread): Update.
9533 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9534 Change type.
9535 (dtrace_process_dof_probe, dtrace_process_dof)
9536 (dtrace_static_probe_ops::get_probe): Change type.
9537
9538 2019-05-08 Tom Tromey <tom@tromey.com>
9539
9540 * xcoffread.c (struct xcoff_symfile_info): Rename from
9541 coff_symfile_info. Add initializers.
9542 (xcoff_objfile_data_key): Move lower. Change type.
9543 (XCOFF_DATA): Rewrite.
9544 (xcoff_free_info): Remove.
9545 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9546 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9547 (xcoff_initial_scan): Update.
9548
9549 2019-05-08 Tom Tromey <tom@tromey.com>
9550
9551 * solib-svr4.c (struct svr4_info): Add initializers and
9552 destructor.
9553 <probes_table>: Now an htab_up.
9554 (solib_svr4_pspace_data): Change type.
9555 (free_probes_table): Simplify.
9556 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9557 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9558 (probes_table_remove_objfile_probes, register_solib_event_probe)
9559 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9560 (_initialize_svr4_solib): Update.
9561
9562 2019-05-08 Tom Tromey <tom@tromey.com>
9563
9564 * remote.c (remote_pspace_data): Change type.
9565 (remote_pspace_data_cleanup): Remove.
9566 (get_remote_exec_file, set_pspace_remote_exec_file)
9567 (_initialize_remote): Update.
9568
9569 2019-05-08 Tom Tromey <tom@tromey.com>
9570
9571 * breakpoint.c (breakpoint_objfile_key): Change type.
9572 (get_breakpoint_objfile_data): Update.
9573 (free_breakpoint_objfile_data): Remove.
9574 (_initialize_breakpoint): Update.
9575
9576 2019-05-08 Tom Tromey <tom@tromey.com>
9577
9578 * linux-tdep.c (struct linux_info): Add initializers.
9579 (linux_inferior_data): Move. Change type.
9580 (invalidate_linux_cache_inf): Update.
9581 (linux_inferior_data_cleanup): Remove.
9582 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9583
9584 2019-05-08 Tom Tromey <tom@tromey.com>
9585
9586 * auxv.c (auxv_inferior_data): Move. Change type.
9587 (auxv_inferior_data_cleanup): Remove.
9588 (invalidate_auxv_cache_inf): Rewrite.
9589 (get_auxv_inferior_data, _initialize_auxv): Update.
9590
9591 2019-05-08 Tom Tromey <tom@tromey.com>
9592
9593 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9594 (symfile_debug_objfile_data_key): Change type.
9595 (symfile_debug_installed, debug_qf_has_symbols)
9596 (debug_qf_find_last_source_symtab)
9597 (debug_qf_forget_cached_source_info)
9598 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9599 (debug_qf_print_stats, debug_qf_dump)
9600 (debug_qf_expand_symtabs_for_function)
9601 (debug_qf_expand_all_symtabs)
9602 (debug_qf_expand_symtabs_with_fullname)
9603 (debug_qf_map_matching_symbols)
9604 (debug_qf_expand_symtabs_matching)
9605 (debug_qf_find_pc_sect_compunit_symtab)
9606 (debug_qf_map_symbol_filenames)
9607 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9608 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9609 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9610 (debug_sym_read_linetable, debug_sym_relocate): Update.
9611 (symfile_debug_free_objfile): Remove.
9612 (install_symfile_debug_logging, _initialize_symfile_debug):
9613 Update.
9614
9615 2019-05-08 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9618 allocate_on_obstack.
9619 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9620 (get_dwarf2_per_objfile): Update.
9621 (set_dwarf2_per_objfile): Remove.
9622 (dwarf2_has_info, dwarf2_get_section_info): Update.
9623 (dwarf2_free_objfile): Remove.
9624 (_initialize_dwarf2_read): Update.
9625
9626 2019-05-08 Tom Tromey <tom@tromey.com>
9627
9628 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9629 initializers.
9630 <unsupported_script_warning_printed,
9631 script_not_found_warning_printed>: Now bool.
9632 (auto_load_pspace_data): Change type.
9633 (~auto_load_pspace_info): Rename from
9634 auto_load_pspace_data_cleanup.
9635 (get_auto_load_pspace_data, init_loaded_scripts_info)
9636 (clear_section_scripts, maybe_print_unsupported_script_warning)
9637 (maybe_print_script_not_found_warning, _initialize_auto_load):
9638 Update.
9639
9640 2019-05-08 Tom Tromey <tom@tromey.com>
9641
9642 * objfiles.c (objfile_pspace_info): Add destructor and
9643 initializers.
9644 (objfiles_pspace_data): Change type.
9645 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9646 (get_objfile_pspace_data): Update.
9647 (objfiles_bfd_data): Change type.
9648 (get_objfile_bfd_data): Update.
9649 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9650
9651 2019-05-08 Tom Tromey <tom@tromey.com>
9652
9653 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9654 Change type.
9655 (get_catch_syscall_inferior_data): Update.
9656 (catch_syscall_inferior_data_cleanup): Remove.
9657 (_initialize_break_catch_syscall): Update.
9658
9659 2019-05-08 Tom Tromey <tom@tromey.com>
9660
9661 * inflow.c (struct terminal_info): Add destructor and
9662 initializers.
9663 (inflow_inferior_data): Change type.
9664 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9665 (get_inflow_inferior_data, inflow_inferior_exit)
9666 (swap_terminal_info, _initialize_inflow): Update.
9667
9668 2019-05-08 Tom Tromey <tom@tromey.com>
9669
9670 * target-dcache.c (target_dcache_cleanup): Remove.
9671 (target_dcache_aspace_key): Change type.
9672 (target_dcache_init_p, target_dcache_invalidate)
9673 (target_dcache_get, target_dcache_get_or_init)
9674 (_initialize_target_dcache): Update.
9675 * dcache.h (struct dcache_deleter): New.
9676
9677 2019-05-08 Tom Tromey <tom@tromey.com>
9678
9679 * symtab.c (struct symbol_cache): Add destructor and
9680 initializers.
9681 (symbol_cache_key): Move. Change type.
9682 (make_symbol_cache, free_symbol_cache): Remove.
9683 (get_symbol_cache): Update.
9684 (symbol_cache_cleanup): Remove.
9685 (ALL_PSPACES, symbol_cache_flush)
9686 (maintenance_print_symbol_cache)
9687 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9688 Update.
9689
9690 2019-05-08 Tom Tromey <tom@tromey.com>
9691
9692 * symtab.c (struct main_info): Add destructor and initializers.
9693 (main_progspace_key): Move. Change type.
9694 (get_main_info): Update.
9695 (main_info_cleanup): Remove.
9696 (_initialize_symtab): Update.
9697
9698 2019-05-08 Tom Tromey <tom@tromey.com>
9699
9700 * registry.h (DECLARE_REGISTRY): Define the _key class.
9701
9702 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9703
9704 * NEWS: Merge two 'New commands' sections.
9705
9706 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9707
9708 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9709 parameter and use Ada language definition instead.
9710 (ada_val_print_ptr): Remove unused language parameter.
9711 (ada_val_print_num): Remove language parameter and use Ada language
9712 definition instead.
9713 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9714 parameter.
9715 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9716 parameter and use Ada language definition instead.
9717 (ada_val_print_1): Update all ada_val_print_xxx calls.
9718 Remove language parameter.
9719 (ada_val_print): Update ada_val_print_1 call.
9720
9721 2019-05-08 Tom Tromey <tromey@adacore.com>
9722
9723 * remote.c (remote_hw_watchpoint_limit)
9724 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9725 Now static.
9726
9727 2019-05-08 Tom Tromey <tromey@adacore.com>
9728
9729 * maint.c (_initialize_maint_cmds): Move initialization code to
9730 remote.c.
9731 (watchdog, show_watchdog): Move to remote.c.
9732 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9733 "watchdog" static.
9734 (_initialize_remote): Move initialization code from maint.c.
9735 * defs.h (watchdog): Don't declare.
9736
9737 2019-05-08 Tom Tromey <tromey@adacore.com>
9738
9739 * tui/tui-interp.c: Include main.h.
9740 * interps.c: Include main.h.
9741 * main.h (interpreter_p): Declare.
9742 * defs.h (interpreter_p): Don't declare.
9743
9744 2019-05-08 Tom Tromey <tromey@adacore.com>
9745
9746 * dwarf2loc.c: Include dwarf2read.h.
9747 * defs.h (read_unsigned_leb128): Don't declare.
9748 * dwarf2read.h (read_unsigned_leb128): Declare.
9749
9750 2019-05-08 Tom Tromey <tromey@adacore.com>
9751
9752 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9753 method.
9754
9755 2019-05-08 Tom Tromey <tromey@adacore.com>
9756
9757 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9758 when no wrap column is set.
9759
9760 2019-05-08 Tom Tromey <tromey@adacore.com>
9761
9762 * c-lang.c (c_get_string): Handle non-C-style arrays.
9763
9764 2019-05-08 Tom Tromey <tromey@adacore.com>
9765
9766 * typeprint.c (print_offset_data::update): Print the bit offset,
9767 not the number of bits remaining.
9768
9769 2019-05-08 Tom Tromey <tromey@adacore.com>
9770
9771 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9772 padding at end of comment.
9773
9774 2019-05-08 Tom Tromey <tromey@adacore.com>
9775
9776 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9777 Compare main types.
9778
9779 2019-05-06 Tom Tromey <tom@tromey.com>
9780
9781 * common/scoped_mmap.c: Include common-defs.h.
9782 * common/scoped_mmap.h: Don't include config.h.
9783
9784 2019-05-04 Tom Tromey <tom@tromey.com>
9785
9786 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9787 (struct aarch64_call_info): Add initializers.
9788 <si>: Now a std::vector.
9789 (pass_on_stack, aarch64_push_dummy_call): Update.
9790
9791 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9792 Tom Tromey <tom@tromey.com>
9793
9794 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9795 (ppc_threads): Now a std::vector. Now static.
9796 (hwdebug_find_thread_points_by_tid)
9797 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9798 Update.
9799
9800 2019-05-04 Tom Tromey <tom@tromey.com>
9801
9802 * arc-tdep.c (arc_tdesc_init): Return bool.
9803
9804 2019-05-04 Tom Tromey <tom@tromey.com>
9805
9806 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9807 Use gdb_assert_not_reached.
9808
9809 2019-05-04 Tom Tromey <tom@tromey.com>
9810
9811 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9812 "false".
9813
9814 2019-05-04 Tom Tromey <tom@tromey.com>
9815
9816 * arc-tdep.c (arc_tdesc_init): Use bool.
9817
9818 2019-05-04 Tom Tromey <tom@tromey.com>
9819
9820 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9821
9822 2019-05-04 Tom Tromey <tom@tromey.com>
9823
9824 * cli/cli-cmds.c (valid_command_p): Return bool.
9825
9826 2019-05-04 Tom Tromey <tom@tromey.com>
9827
9828 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9829 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9830
9831 2019-05-04 Raul Tambre <raul@tambre.ee>
9832
9833 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9834 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9835 operator for comparison.
9836
9837 2019-05-04 Tom Tromey <tom@tromey.com>
9838
9839 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9840 (lookup_partial_symbol, print_partial_symbols)
9841 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9842 (psymbol_compare): Update.
9843 (add_psymbol_to_bcache): Clear the entire psymbol.
9844 (maintenance_check_psymtabs): Update.
9845 * psympriv.h (struct partial_symbol): Don't derive from
9846 general_symbol_info.
9847 <obj_section, unrelocated_address, address,
9848 set_unrelocated_address>: Update.
9849 <ginfo>: New member.
9850 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9851 (debug_names::write_psymbols): Update.
9852
9853 2019-05-04 Tom de Vries <tdevries@suse.de>
9854
9855 * contrib/cc-with-tweaks.sh: Support -n arg.
9856
9857 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9858
9859 * corelow.c (core_target::detach): Ensure frame cache and
9860 register caches are cleared.
9861 inferior.c (exit_inferior_1): Likewise.
9862
9863 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9864 Tom Tromey <tom@tromey.com>
9865
9866 * dictionary.c (collate_pending_symbols_by_language): Remove
9867 "struct" from foreach.
9868 * symtab.c (lookup_global_symbol_from_objfile)
9869 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9870 foreach.
9871 * ser-tcp.c (net_open): Remove "struct" from foreach.
9872 * objfiles.c (objfile_relocate, objfile_rebase)
9873 (objfile_has_symbols): Remove "struct" from foreach.
9874 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9875 from foreach.
9876 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9877 foreach.
9878 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9879 "struct" from foreach.
9880 * ada-lang.c (create_excep_cond_exprs)
9881 (ada_exception_catchpoint_cond_string): Remove "struct" from
9882 foreach.
9883
9884 2019-05-03 Tom Tromey <tromey@adacore.com>
9885
9886 * ada-exp.y (convert_char_literal): Check suffix of each
9887 enumerator.
9888
9889 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9890
9891 PR ada/21406:
9892 * ada-exp.y (yywrap): Don't define.
9893 * ada-lex.l (%option): Add noyywrap
9894 (yywrap): Remove.
9895
9896 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9897
9898 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9899 _WIN32_WINNT to the XP level, unless already defined to a higher
9900 level.
9901
9902 * unittests/parse-connection-spec-selftests.c:
9903 * ser-tcp.c:
9904 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9905 override.
9906
9907 * symfile.c (find_separate_debug_file): Remove colon from the
9908 drive spec of DOS/Windows file names of the target, so that the
9909 file name produced from DEBUGDIR and the target's directory will
9910 be valid on DOS/Windows systems.
9911
9912 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * rust-lang.c (val_print_struct): Handle printing structures
9915 containing strings.
9916
9917 2019-05-02 Tom Tromey <tromey@adacore.com>
9918
9919 * valarith.c (_initialize_valarith): Remove.
9920
9921 2019-05-01 Tom Tromey <tromey@adacore.com>
9922
9923 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9924 bitfields.
9925
9926 2019-05-01 Tom Tromey <tromey@adacore.com>
9927
9928 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9929 for big-endian copies.
9930
9931 2019-04-30 Ali Tamur <tamur@google.com>
9932 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9933 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9934 (read_3_bytes): New function.
9935
9936 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9937
9938 * windows-nat.c (main_thread_id): Delete.
9939 (handle_output_debug_string): Replace main_thread_id by
9940 current_event.dwThreadId.
9941 (fake_create_process): Likewise.
9942 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9943 Do not set main_thread_id.
9944 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9945 current_event.dwThreadId.
9946 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9947
9948 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9949
9950 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9951 Use current_event.dwThreadId instead of main_thread_id.
9952
9953 2019-04-30 Tom Tromey <tromey@adacore.com>
9954
9955 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9956 (create_excep_cond_exprs): Iterate over program spaces.
9957 (ada_exception_catchpoint_cond_string): Examine all minimal
9958 symbols for exception types.
9959
9960 2019-04-30 Tom Tromey <tromey@adacore.com>
9961
9962 PR c++/24470:
9963 * dwarf2read.c (process_structure_scope): Handle case where type
9964 has template parameters but no symbol was created.
9965
9966 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9967 Chris January <chris.january@arm.com>
9968
9969 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9970 qualifier.
9971 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9972
9973 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * f-typeprint.c (f_print_type): Update rules for printing
9976 whitespace.
9977 (f_type_print_varspec_suffix): Likewise.
9978
9979 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9980 Chris January <chris.january@arm.com>
9981
9982 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9983 function arguments.
9984
9985 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9986
9987 * f-lang.c (build_fortran_types): Change name of void type to
9988 lower case.
9989 * f-typeprint.c (f_type_print_base): Print the name of the void
9990 type, rather than a fixed string.
9991 * f-valprint.c (f_decorations): Use lower case void string.
9992
9993 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9994 Chris January <chris.january@arm.com>
9995
9996 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9997 types for Fortran.
9998
9999 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10000 Chris January <chris.january@arm.com>
10001 David Lecomber <david.lecomber@arm.com>
10002
10003 * f-exp.y (BINOP_INTRINSIC): New token.
10004 (exp): New parser rule handling BINOP_INTRINSIC.
10005 (f77_keywords): Add new builtin procedures.
10006 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10007 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10008 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10009 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10010 (print_unop_subexp_f): New function.
10011 (print_binop_subexp_f): New function.
10012 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10013 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10014 (dump_subexp_body_f): Likewise.
10015 (operator_check_f): Likewise.
10016 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10017 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10018
10019 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10020
10021 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10022 UNOP_KIND.
10023 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10024 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10025 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10026 (operator_length_f): New fuction.
10027 (print_subexp_f): New function.
10028 (op_name_f): New function.
10029 (dump_subexp_body_f): New function.
10030 (operator_check_f): New function.
10031 (exp_descriptor_f): Replace standard expression handling functions
10032 with new functions.
10033 * gdb/fortran-operator.def: New file.
10034 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10035 * gdb/std-operator.def: Remove UNOP_KIND.
10036
10037 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10038
10039 * std-operator.def: Remove unbalanced, stray double quote
10040 character.
10041
10042 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10043 Chris January <chris.january@arm.com>
10044 Daniel Everett <daniel.everett@arm.com>
10045 Nick Forrington <nick.forrington@arm.com>
10046 Richard Bunt <richard.bunt@arm.com>
10047
10048 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10049 of depth when printing anonymous structs or unions.
10050 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10051 Don't print either the top-level value, or the children if the
10052 max-depth is exceeded.
10053 (ppscm_print_children): When printing the key of a map, allow one
10054 extra level of depth.
10055 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10056 print either the top-level value, or the children if the max-depth
10057 is exceeded.
10058 (print_children): When printing the key of a map, allow one extra
10059 level of depth.
10060 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10061 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10062 (user_print_options): Initialise max_depth field.
10063 (val_print_scalar_or_string_type_p): New function.
10064 (val_print): Check to see if the max depth has been reached.
10065 (val_print_check_max_depth): Define new function.
10066 (show_print_max_depth): New function.
10067 (_initialize_valprint): Add 'print max-depth' option.
10068 * valprint.h (struct value_print_options) <max_depth>: New field.
10069 (val_print_check_max_depth): Declare new function.
10070 * NEWS: Document new feature.
10071
10072 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10073
10074 * ada-lang.c (ada_language_defn): Initialise new field.
10075 * c-lang.c (c_is_string_type_p): New function.
10076 (c_language_defn): Initialise new field.
10077 (cplus_language_defn): Initialise new field.
10078 (asm_language_defn): Initialise new field.
10079 (minimal_language_defn): Initialise new field.
10080 * c-lang.h (c_is_string_type_p): Declare new function.
10081 * d-lang.c (d_language_defn): Initialise new field.
10082 * f-lang.c (f_is_string_type_p): New function.
10083 (f_language_defn): Initialise new field.
10084 * go-lang.c (go_is_string_type_p): New function.
10085 (go_language_defn): Initialise new field.
10086 * language.c (default_is_string_type_p): New function.
10087 (unknown_language_defn): Initialise new field.
10088 (auto_language_defn): Initialise new field.
10089 * language.h (struct language_defn) <la_is_string_type_p>: New
10090 member variable.
10091 (default_is_string_type_p): Declare new function.
10092 * m2-lang.c (m2_language_defn): Initialise new field.
10093 * objc-lang.c (objc_language_defn): Initialise new field.
10094 * opencl-lang.c (opencl_language_defn): Initialise new field.
10095 * p-lang.c (pascal_is_string_type_p): New function.
10096 (pascal_language_defn): Initialise new field.
10097 * rust-lang.c (rust_is_string_type_p): New function.
10098 (rust_language_defn): Initialise new field.
10099
10100 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10101
10102 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10103 New field.
10104 * ada-lang.c (ada_language_defn): Initialise new field.
10105 * c-lang.c (c_language_defn): Likewise.
10106 (cplus_language_defn): Likewise.
10107 (asm_language_defn): Likewise.
10108 (minimal_language_defn): Likewise.
10109 * d-lang.c (d_language_defn): Likewise.
10110 * f-lang.c (f_language_defn): Likewise.
10111 * go-lang.c (go_language_defn): Likewise.
10112 * language.c (unknown_language_defn): Likewise.
10113 (auto_language_defn): Likewise.
10114 * m2-lang.c (m2_language_defn): Likewise.
10115 * objc-lang.c (objc_language_defn): Likewise.
10116 * opencl-lang.c (opencl_language_defn): Likewise.
10117 * p-lang.c (pascal_language_defn): Likewise.
10118 * rust-lang.c (rust_language_defn): Likewise.
10119
10120 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10121
10122 * ada-lang.c (ada_is_character_type): Change return type to bool.
10123 (ada_is_string_type): Likewise.
10124 * ada-lang.h (ada_is_character_type): Update declaration
10125 (ada_is_string_type): Likewise.
10126
10127 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10128
10129 Support style in 'frame|thread apply'
10130
10131 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10132 * record.c (record_start, record_stop): Update callers of
10133 execute_command_to_string with false.
10134 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10135 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10136 methods.
10137 (class string_file): New constructor with term_out parameter.
10138 Override methods term_out and can_emit_style_escape. New member
10139 term_out.
10140 (class stdio_file): Override can_emit_style_escape.
10141 (class tee_file): Override term_out and can_emit_style_escape.
10142 * utils.h (can_emit_style_escape): Remove.
10143 * utils.c (can_emit_style_escape): Likewise.
10144 Update all callers of can_emit_style_escape (SOMESTREAM) to
10145 SOMESTREAM->can_emit_style_escape.
10146 * source-cache.c (source_cache::get_source_lines): Likewise.
10147 * stack.c (frame_apply_command_count): Call execute_command_to_string
10148 passing the term_out characteristic of the current gdb_stdout.
10149 * thread.c (thr_try_catch_cmd): Likewise.
10150 * top.c (execute_command_to_string): pass term_out parameter
10151 to construct the string_file for the command output.
10152 * ui-file.c (term_cli_styling): New function (most code moved
10153 from utils.c can_emit_style_escape).
10154 (string_file::string_file, string_file::can_emit_style_escape,
10155 stdio_file::can_emit_style_escape, tee_file::term_out,
10156 tee_file::can_emit_style_escape): New functions.
10157
10158 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * NEWS: Mention the new set|show may-call-functions.
10161 * infcall.c (may_call_functions_p): New variable.
10162 (show_may_call_functions_p): New function.
10163 (call_function_by_hand_dummy): Throws an error if not
10164 may-call-functions.
10165 (_initialize_infcall): Call add_setshow_boolean_cmd for
10166 may-call-functions.
10167
10168 2019-04-25 Keith Seitz <keiths@redhat.com>
10169
10170 PR c++/24367
10171 * cp-support.c (inspect_type): Don't attempt substitutions
10172 of symbol with the same name.
10173
10174 2019-04-25 Tom Tromey <tromey@adacore.com>
10175
10176 PR gdb/24475:
10177 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10178 static.
10179
10180 2019-04-25 Tom Tromey <tromey@adacore.com>
10181
10182 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10183 rvalue reference.
10184 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10185 (gdb_xml_parser::parse): Use std::move.
10186 * python/python-internal.h (gdbpy_convert_exception): Take a const
10187 reference.
10188 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10189 std::move.
10190 * python/py-utils.c (gdbpy_convert_exception): Take a const
10191 reference.
10192 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10193 Use std::move.
10194 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10195 Use std::move.
10196 * mi/mi-main.c (mi_print_exception): Take a const reference.
10197 * main.c (handle_command_errors): Take a const reference.
10198 * linespec.c (parse_linespec): Use std::move.
10199 * infcall.c (run_inferior_call): Use std::move.
10200 (call_function_by_hand_dummy): Use std::move.
10201 * exec.c (try_open_exec_file): Use std::move.
10202 * exceptions.h (exception_print, exception_fprintf)
10203 (exception_print_same): Update.
10204 * exceptions.c (print_exception, exception_print)
10205 (exception_fprintf, exception_print_same): Change parameters to
10206 const reference.
10207 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10208 * common/new-op.c: Use std::move.
10209 * common/common-exceptions.h (struct gdb_exception): Add move
10210 constructor.
10211 (struct gdb_exception_error, struct gdb_exception_quit, struct
10212 gdb_quit_bad_alloc): Change constructor to move constructor.
10213 (throw_exception): Change parameter to rvalue reference.
10214 * common/common-exceptions.c (throw_exception): Take rvalue
10215 reference.
10216 * cli/cli-interp.c (safe_execute_command): Use std::move.
10217 * breakpoint.c (insert_bp_location, location_to_sals): Use
10218 std::move.
10219
10220 2019-04-25 Tom Tromey <tromey@adacore.com>
10221
10222 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10223 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10224 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10225 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10226 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10227 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10228 guile/scm-value.c: Use unpack.
10229 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10230 gdbscm_gdb_exception.
10231 (gdbscm_throw_gdb_exception): Likewise.
10232 (struct gdbscm_gdb_exception): New.
10233 (unpack): New function.
10234 (gdbscm_wrap): Use unpack.
10235
10236 2019-04-25 Tom Tromey <tromey@adacore.com>
10237
10238 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10239 (gdb_rl_callback_handler): Use std::move.
10240 * common/common-exceptions.h (struct gdb_exception): Add move
10241 assignment operator.
10242 (throw_exception_sjlj): Change "exception" to const reference.
10243 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10244 (throw_exception_sjlj): Change "exception" to const reference.
10245
10246 2019-04-25 Tom Tromey <tromey@adacore.com>
10247
10248 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10249 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10250 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10251 Update.
10252 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10253 Update.
10254 * mi/mi-interp.c (mi_interp::exec): Update.
10255 * linespec.c (parse_linespec): Update.
10256 * infcall.c (run_inferior_call): Update.
10257 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10258 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10259 (gdbscm_lookup_global_symbol): Update.
10260 * guile/scm-param.c (gdbscm_parameter_value): Update.
10261 * guile/scm-frame.c (gdbscm_frame_read_register)
10262 (gdbscm_frame_read_var): Update.
10263 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10264 * exec.c (try_open_exec_file): Update.
10265 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10266 (gdb_rl_callback_handler): Update.
10267 * common/common-exceptions.h (exception_none): Don't declare.
10268 * common/common-exceptions.c (exception_none): Don't define.
10269 (struct catcher) <exception>: Update.
10270 * cli/cli-interp.c (safe_execute_command): Update.
10271 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10272
10273 2019-04-25 Ali Tamur <tamur@google.com>
10274
10275 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10276 (read_attribute_value): Likewise.
10277 (dwarf2_read_addr_index): Update comment.
10278 (read_str_index): Add DW_FORM_strx.
10279 (dwarf2_string_attr): Likewise.
10280 (dwarf2_const_value_attr): Likewise.
10281 (dump_die_shallow): Likewise.
10282 (dwarf2_fetch_constant_bytes): Likewise.
10283 (skip_form_bytes): Likewise.
10284 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10285
10286 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10287
10288 PR corefiles/11608
10289 PR corefiles/18187
10290 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10291 OFFSET. Verify if current mapping contains an ELF header.
10292 (linux_find_memory_regions_full): Adjust call to
10293 dump_mapping_p.
10294
10295 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10296 Kang Li <kanglictf@gmail.com>
10297
10298 PR gdb/21600
10299
10300 * dwarf2-frame.c (read_initial_length): Be consistent about using
10301 unsigned representation of length.
10302 (decode_frame_entry_1): Likewise. Check for wraparound of
10303 end pointer as well as buffer overflow.
10304
10305 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10306
10307 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10308 "vq".
10309
10310 2019-04-24 Tom Tromey <tromey@adacore.com>
10311
10312 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10313
10314 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * s12z-tdep.c (s12z_unwind_pc): Delete.
10317 (s12z_unwind_sp): Delete.
10318 (s12z_gdbarch_init): Don't register deleted functions with
10319 gdbarch.
10320
10321 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10322
10323 * rl78-tdep.c (rl78_unwind_sp): Delete.
10324 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10325
10326 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10329 (xstormy16_unwind_pc): Delete.
10330 (xstormy16_dummy_id): Delete.
10331 (xstormy16_gdbarch_init): Don't register deleted functions with
10332 gdbarch.
10333
10334 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * vax-tdep.c (vax_unwind_pc): Delete.
10337 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10338
10339 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10340
10341 * v850-tdep.c (v850_unwind_sp): Delete.
10342 (v850_unwind_pc): Delete.
10343 (v850_dummy_id): Delete.
10344 (v850_gdbarch_init): Don't register deleted functions with
10345 gdbarch.
10346
10347 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10350 (tilegx_unwind_pc): Delete.
10351 (tilegx_unwind_dummy_id): Delete.
10352 (tilegx_gdbarch_init): Don't register deleted functions with
10353 gdbarch.
10354
10355 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10358 (tic6x_dummy_id): Delete.
10359 (tic6x_gdbarch_init): Don't register deleted functions with
10360 gdbarch.
10361
10362 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * sparc-tdep.c (sparc_unwind_pc): Delete.
10365 (sparc32_gdbarch_init): Don't register deleted function with
10366 gdbarch.
10367
10368 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10369
10370 * sh-tdep.c (sh_unwind_sp): Delete.
10371 (sh_unwind_pc): Delete.
10372 (sh_dummy_id): Delete.
10373 (sh_gdbarch_init): Don't register deleted functions with
10374 gdbarch.
10375
10376 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10377
10378 * score-tdep.c (score_unwind_sp): Delete.
10379 (score_unwind_pc): Delete.
10380 (score_dummy_id): Delete.
10381 (score_gdbarch_init): Don't register deleted functions with
10382 gdbarch.
10383
10384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10385
10386 * rx-tdep.c (rx_unwind_pc): Delete.
10387 (rx_unwind_sp): Delete.
10388 (rx_dummy_id): Delete.
10389 (rx_gdbarch_init): Don't register deleted functions with
10390 gdbarch. Update comment.
10391
10392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10395 (rs6000_dummy_id): Delete.
10396 (rs6000_gdbarch_init): Don't register deleted functions with
10397 gdbarch.
10398
10399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10400
10401 * or1k-tdep.c (or1k_dummy_id): Delete.
10402 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10403
10404 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10405
10406 * nios2-tdep.c (nios2_dummy_id): Delete.
10407 (nios2_unwind_sp): Delete.
10408 (nios2_gdbarch_init): Don't register deleted functions with
10409 gdbarch.
10410
10411 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * nds32-tdep.c (nds32_dummy_id): Delete.
10414 (nds32_unwind_pc): Delete.
10415 (nds32_unwind_sp): Delete.
10416 (nds32_gdbarch_init): Don't register deleted functions with
10417 gdbarch.
10418
10419 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * msp430-tdep.c (msp430_unwind_pc): Delete.
10422 (msp430_unwind_sp): Delete.
10423 (msp430_dummy_id): Delete.
10424 (msp430_gdbarch_init): Don't register deleted functions with
10425 gdbarch.
10426
10427 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10428
10429 * moxie-tdep.c (moxie_unwind_sp): Delete.
10430 (moxie_unwind_pc): Delete.
10431 (moxie_dummy_id): Delete.
10432 (moxie_gdbarch_init): Don't register deleted functions with
10433 gdbarch.
10434
10435 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10436
10437 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10438 (mn10300_unwind_pc): Delete.
10439 (mn10300_unwind_sp): Delete.
10440 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10441 mn10300_unwind_sp.
10442 (mn10300_frame_unwind_init): Don't register deleted functions with
10443 gdbarch.
10444
10445 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10446
10447 * mep-tdep.c (mep_unwind_pc): Delete.
10448 (mep_unwind_sp): Delete.
10449 (mep_dummy_id): Delete.
10450 (mep_gdbarch_init): Don't register deleted functions with
10451 gdbarch.
10452
10453 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10456 (m68hc11_unwind_sp): Delete.
10457 (m68hc11_gdbarch_init): Don't register deleted functions with
10458 gdbarch.
10459
10460 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * m32r-tdep.c (m32r_unwind_sp): Delete.
10463 (m32r_unwind_pc): Delete.
10464 (m32r_dummy_id): Delete.
10465 (m32r_gdbarch_init): Don't register deleted functions with
10466 gdbarch.
10467
10468 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10469
10470 * m32c-tdep.c (m32c_unwind_pc): Delete.
10471 (m32c_unwind_sp): Delete.
10472 (m32c_dummy_id): Delete.
10473 (m32c_gdbarch_init): Don't register deleted functions with
10474 gdbarch.
10475
10476 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10477
10478 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10479 (lm32_unwind_pc): Delete.
10480 (lm32_dummy_id): Delete.
10481 (lm32_gdbarch_init): Don't register deleted functions with
10482 gdbarch.
10483
10484 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10487 (iq2000_unwind_pc): Delete.
10488 (iq2000_dummy_id): Delete.
10489 (iq2000_gdbarch_init): Don't register deleted functions with
10490 gdbarch.
10491
10492 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * nds32-tdep.c (nds32_type_align): Delete.
10495 (nds32_push_dummy_call): Use type_align instead.
10496
10497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * arm-tdep.c (arm_type_align): Only handle vector override case.
10500 (arm_push_dummy_call): Use type_align.
10501 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10502
10503 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10504
10505 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10506 case.
10507 (pass_on_stack): Use type_align.
10508 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10509 function.
10510
10511 2019-04-23 Tom Tromey <tromey@adacore.com>
10512
10513 * dwarf2read.c (line_header::file_name_at): Remove unused
10514 overload.
10515
10516 2019-04-23 Tom de Vries <tdevries@suse.de>
10517
10518 PR gdb/24438
10519 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10520 invocation.
10521
10522
10523 2019-03-27 Ali Tamur <tamur@google.com>
10524
10525 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10526 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10527 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10528 (dwarf_expr_context::get_addr_index): Likewise
10529 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10530 (symbol_needs_eval_context::get_addr_index): Likewise
10531 (disassemble_dwarf_expression): Add DW_OP_addrx
10532 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10533 (read_cutu_die_from_dwo): Update comment
10534 (skip_one_die): Add DW_FORM_addrx
10535 (read_attribute_value): Likewise
10536 (var_decode_location): Add DW_OP_addrx
10537 (dwarf2_const_value_attr): Add DW_FORM_addrx
10538 (dump_die_shallow): Likewise
10539 (dwarf2_fetch_constant_bytes): Likewise
10540 (decode_locdesc): Add DW_OP_addrx
10541 (skip_form_bytes): Add DW_FORM_addrx
10542
10543 2019-04-22 Ali Tamur <tamur@google.com>
10544
10545 * MAINTAINERS (Write After Approval): Add self.
10546
10547 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10548
10549 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10550 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10551 (open_symbol_file_object): Likewise.
10552 (svr4_default_sos): Add info parameter.
10553 (svr4_read_so_list): Likewise.
10554 (svr4_current_sos_direct): Adjust functions calls to pass down
10555 info.
10556 (svr4_current_sos_1): Add info parameter.
10557 (svr4_current_sos): Call get_svr4_info, pass info down to
10558 svr4_current_sos_1.
10559 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10560 get_svr4_info.
10561 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10562 get_svr4_info.
10563 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10564 to get_svr4_info.
10565 (probes_table_remove_objfile_probes): Likewise.
10566 (register_solib_event_probe): Add info parameter.
10567 (solist_update_incremental): Pass info parameter down to
10568 svr4_read_so_list.
10569 (disable_probes_interface): Add info parameter.
10570 (svr4_handle_solib_event): Pass current_program_space to
10571 get_svr4_info. Adjust disable_probes_interface cleanup.
10572 (svr4_create_probe_breakpoints): Add info parameter, pass it
10573 down to register_solib_event_probe.
10574 (svr4_create_solib_event_breakpoints): Add info parameter,
10575 pass it down to svr4_create_probe_breakpoints.
10576 (enable_break): Pass info down to
10577 svr4_create_solib_event_breakpoints.
10578 (svr4_solib_create_inferior_hook): Pass current_program_space to
10579 get_svr4_info.
10580 (svr4_clear_solib): Likewise.
10581
10582 2019-04-22 Pedro Alves <palves@redhat.com>
10583
10584 * solib-svr4.c (svr4_free_objfile_observer): New.
10585 (probe_and_action::objfile): New field.
10586 (probes_table_htab_remove_objfile_probes)
10587 (probes_table_remove_objfile_probes): New functions.
10588 (register_solib_event_probe): Add 'objfile' parameter. Store it
10589 in the new probe_and_action. Don't store the probe in 'lookup'.
10590 (svr4_create_probe_breakpoints): Pass objfile to
10591 register_solib_event_probe.
10592 (_initialize_svr4_solib): Register a free_objfile observer.
10593
10594 2019-04-19 Tom Tromey <tom@tromey.com>
10595
10596 * common/queue.h: Remove.
10597
10598 2019-04-19 Tom Tromey <tom@tromey.com>
10599
10600 * event-loop.c: Don't include "common/queue.h".
10601
10602 2019-04-19 Tom Tromey <tom@tromey.com>
10603
10604 * remote.c (remote_target): Use delete.
10605 * remote-notif.h: Include <list>, not "common/queue.h".
10606 (notif_client_p): Remove typedef.
10607 (remote_notif_state): Add constructor, destructor, initializer.
10608 <notif_queue>: Now a std::list.
10609 (remote_notif_state_xfree): Don't declare.
10610 * remote-notif.c (remote_notif_process, handle_notification)
10611 (remote_notif_state_allocate): Update.
10612 (~remote_notif_state): Rename from remote_notif_state_xfree.
10613
10614 2019-04-19 Tom Tromey <tom@tromey.com>
10615
10616 * symfile.c (reread_symbols): Update.
10617 * objfiles.c (objfile_register_static_link)
10618 (objfile_lookup_static_link): Update
10619 (~objfile) Don't delete static_links.
10620 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10621
10622 2019-04-19 Tom Tromey <tom@tromey.com>
10623
10624 * type-stack.h (struct type_stack) <insert>: Constify string.
10625 * type-stack.c (type_stack::insert): Constify string.
10626 * gdbtypes.h (lookup_template_type): Update.
10627 (address_space_name_to_int): Update.
10628 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10629 const.
10630 (lookup_template_type): Make name const.
10631 * c-exp.y: Update rules.
10632 (lex_one_token, classify_name, classify_inner_name)
10633 (c_print_token): Update.
10634 * p-exp.y: Update rules.
10635 (yylex): Update.
10636 * f-exp.y: Update rules.
10637 (yylex): Update.
10638 * d-exp.y: Update rules.
10639 (lex_one_token, classify_name, classify_inner_name): Update.
10640 * parse.c (write_dollar_variable, copy_name): Return std::string.
10641 * parser-defs.h (copy_name): Change return type.
10642 * m2-exp.y: Update rules.
10643 (yylex): Update.
10644 * go-exp.y (lex_one_token): Update.
10645 Update rules.
10646 (classify_unsafe_function, classify_packaged_name)
10647 (classify_name, yylex): Update.
10648
10649 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10650
10651 * configure.ac: add --enable-source-highlight switch.
10652 * configure: Regenerate.
10653 * top.c (print_gdb_version): plumb --enable-source-highlight
10654 status to "show configuration".
10655
10656 2019-04-19 Tom Tromey <tromey@adacore.com>
10657
10658 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10659 Check ADA_TYPE_P.
10660 (empty_record, ada_template_to_fixed_record_type_1)
10661 (template_to_static_fixed_type)
10662 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10663 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10664 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10665 macros.
10666
10667 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10668
10669 PR symtab/24423:
10670 * source.c (print_source_lines_base): Advance "iter" when a
10671 control character is seen.
10672
10673 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10674
10675 * inferior.h (struct infcall_suspend_state_deleter):
10676 Catch exception in destructor to avoid crash.
10677
10678 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10679
10680 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10681 close to the add_com "shell".
10682
10683 2019-04-18 Tom Tromey <tromey@adacore.com>
10684
10685 * process-stratum-target.h (class process_stratum_target)
10686 <stratum>: Add "final".
10687
10688 2019-04-17 Tom Tromey <tromey@adacore.com>
10689
10690 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10691 against nullptr before use.
10692
10693 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10694
10695 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10696
10697 2019-04-17 Jim Wilson <jimw@sifive.com>
10698 Andrew Burgess <andrew.burgess@embecosm.com>
10699
10700 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10701 code read might fail, assume 4-byte breakpoint in that case.
10702
10703 2019-04-15 Leszek Swirski <leszeks@google.com>
10704
10705 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10706 rather than a hand-rolled POD check when checking for forced MEMORY
10707 classification.
10708
10709 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10710
10711 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10712 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10713 function.
10714 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10715 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10716 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10717 declaration.
10718
10719 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10720
10721 * aarch64-linux-nat.c
10722 (aarch64_linux_nat_target::thread_architecture): Add override.
10723 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10724 each VQ.
10725
10726 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10727
10728 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10729
10730 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10731
10732 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10733 target types of size 96-bits, add some additional comments, and
10734 check that the builtin type we found was the correct size.
10735
10736 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10737
10738 * utils.c (prompt_for_continue): Don't restore the styling at the
10739 end, as applied_style has the wrong value. This fixes styling in
10740 long lists of file names that are interrupted by the "Continue?"
10741 prompt.
10742
10743 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10744
10745 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10746 * c-lang.c (c_language_defn): Likewise.
10747 (cplus_language_defn): Likewise.
10748 (asm_language_defn): Likewise.
10749 (minimal_language_defn): Likewise.
10750 * d-lang.c (d_language_defn): Likewise.
10751 * f-lang.c (f_language_defn): Likewise.
10752 * go-lang.c (go_language_defn): Likewise.
10753 * language.c (unknown_language_defn): Likewise.
10754 (auto_language_defn): Likewise.
10755 * language.h (struct language_defn): Remove la_magic field.
10756 (LANG_MAGIC): Delete.
10757 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10758 * objc-lang.c (objc_language_defn): Likewise.
10759 * opencl-lang.c (opencl_language_defn): Likewise.
10760 * p-lang.c (pascal_language_defn): Likewise.
10761 * rust-lang.c (rust_language_defn): Likewise.
10762
10763 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * riscv-tdep.c (riscv_type_align): New function.
10766 (riscv_type_alignment): Delete.
10767 (riscv_arg_location): Use 'type_align'.
10768 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10769
10770 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10771
10772 * gdbtypes.c (type_align): A struct with no non-static fields also
10773 has alignment of 1.
10774
10775 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10776
10777 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10778 component to 0.
10779 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10780 member.
10781 (riscv_struct_info::analyse): New implementation using new
10782 analyse_inner member function.
10783 (riscv_struct_info::field_offset): New member function.
10784 (riscv_struct_info::m_offsets): New member variable.
10785 (riscv_struct_info::analyse_inner): New private member function,
10786 takes the old implementation of riscv_struct_info::analyse but
10787 extended to track field offsets.
10788 (riscv_call_arg_struct): Update the struct folding special cases
10789 to handle cases where empty C++ structs, which are non-zero
10790 length, are found.
10791 (riscv_arg_location): Initialise the length of each location, a
10792 non-zero length now indicates the location is in use.
10793 (riscv_push_dummy_call): Allow for the first location having a
10794 non-zero offset when setting up arguments.
10795 (riscv_return_value): Likewise, but for return values.
10796
10797 2019-04-11 Tom Tromey <tromey@adacore.com>
10798
10799 * utils.c (internal_vproblem): Make "msg" const.
10800
10801 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10802
10803 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10804 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10805 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10806 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10807
10808 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10809
10810 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10811 function.
10812 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10813 of amd64_collect_native_gregset.
10814 (amd64_linux_nat_target::store_registers): Likewise.
10815
10816 2019-04-10 Tom Tromey <tom@tromey.com>
10817
10818 * symtab.c (lookup_global_symbol_from_objfile)
10819 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10820 * objfiles.h (class separate_debug_iterator): New.
10821 (class separate_debug_range): New.
10822 (struct objfile) <separate_debug_objfiles>: New method.
10823 (objfile_separate_debug_iterate): Don't declare.
10824 * objfiles.c (separate_debug_iterator::operator++): Rename from
10825 objfile_separate_debug_iterate.
10826 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10827 iterator.
10828 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10829 iterator.
10830
10831 2019-04-10 Tom Tromey <tom@tromey.com>
10832
10833 * symfile.c (reread_symbols): Remove old comment.
10834 * objfiles.c (free_all_objfiles): Fix a typo.
10835
10836 2019-04-10 Tom Tromey <tom@tromey.com>
10837
10838 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10839 * minsyms.c (lookup_minimal_symbol): Use foreach.
10840 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10841 (lookup_minimal_symbol_solib_trampoline): Likewise.
10842 * symfile.c (reread_symbols): Use foreach.
10843
10844 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10845 Tom Tromey <tromey@adacore.com>
10846
10847 PR rust/24414:
10848 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10849 (rust_lex_int_test): Change "value" to be LONGEST.
10850 (rust_lex_tests): Add test for long integer literal.
10851
10852 2019-04-09 Tom Tromey <tromey@adacore.com>
10853
10854 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10855 to bool.
10856 (extended_remote_target::attach): Update.
10857 (remote_target::remote_notice_new_inferior): Update.
10858 (remote_target::add_current_inferior_and_thread): Update.
10859 * inferior.c (exit_inferior_1): Use "false".
10860 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10861
10862 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10863
10864 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10865 the "start" command.
10866
10867 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10868
10869 * python/py-inferior.c (infpy_thread_from_thread_handle):
10870 Adjust comments to reflect renaming of thread_from_thread_handle
10871 to thread_from_handle. Adjust keywords. Fix type error message.
10872 (inferior_object_methods): Add thread_from_handle. Retain
10873 thread_from_thread_handle, but mark it as deprecated.
10874
10875 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10876
10877 * gdbthread.h (find_thread_by_handle): Revise declaration.
10878 * thread.c (find_thread_by_handle): Likewise. Adjust
10879 implementation too.
10880 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10881 support for buffer objects as handles.
10882
10883 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10884
10885 * python/py-infthread.c (thpy_thread_handle): New function.
10886 (thread_object_methods): Register thpy_thread_handle.
10887
10888 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10889
10890 * gdbthread.h (thread_to_thread_handle): Declare.
10891 * thread.c (gdbtypes.h): Include.
10892 (thread_to_thread_handle): New function.
10893
10894 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10895 (target_thread_info_to_thread_handle): Declare.
10896 * target.c (target_thread_info_to_thread_handle): New function.
10897 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10898 * target-delegates.c: Regenerate.
10899
10900 * linux-thread-db.c (class thread_db_target): Add method
10901 thread_info_to_thread_handle.
10902 (thread_db_target::thread_info_to_thread_handle): Define.
10903 * remote.c (class remote_target): Add new method
10904 thread_info_to_thread_handle.
10905 (remote_target::thread_info_to_thread_handle): Define.
10906
10907 2019-04-08 Pedro Alves <palves@redhat.com>
10908
10909 * common/common-exceptions.c (throw_exception): Don't create
10910 named object to throw; throw directly.
10911 (throw_it): Likewise. Don't initialize gdb_exception::message
10912 here, with new; pass FMT and AP to the ctor instead.
10913 * common/common-exceptions.h: Include <string>.
10914 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10915 const char *, va_list)): New ctor. Use std::make_shared.
10916 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10917 errors)): Delete.
10918 (gdb_exception_error::gdb_exception_error(enum errors, const char
10919 *, va_list)): New.
10920 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10921 Add assertion.
10922 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10923 errors)): Delete.
10924 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10925 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10926 Add assertion.
10927
10928 2019-04-08 Tom Tromey <tom@tromey.com>
10929
10930 * valops.c (value_rtti_indirect_type): Replace throw_exception
10931 with throw.
10932 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10933 with throw.
10934 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10935 throw.
10936 * target.c (target_translate_tls_address): Replace throw_exception
10937 with throw.
10938 * stack.c (frame_apply_command_count): Replace throw_exception
10939 with throw.
10940 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10941 throw.
10942 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10943 with throw.
10944 * rs6000-tdep.c (rs6000_frame_cache)
10945 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10946 * remote.c: Replace throw_exception with throw.
10947 * record-full.c (record_full_message, record_full_wait_1)
10948 (record_full_restore): Replace throw_exception with throw.
10949 * record-btrace.c:
10950 (get_thread_current_frame_id, record_btrace_start_replaying)
10951 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10952 (cmd_record_btrace_start): Replace throw_exception with throw.
10953 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10954 throw.
10955 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10956 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10957 * linespec.c:
10958 (find_linespec_symbols): Replace throw_exception with throw.
10959 * infrun.c (displaced_step_prepare, resume): Replace
10960 throw_exception with throw.
10961 * infcmd.c (post_create_inferior): Replace throw_exception with
10962 throw.
10963 * inf-loop.c (inferior_event_handler): Replace throw_exception
10964 with throw.
10965 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10966 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10967 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10968 (get_prev_frame_always, get_frame_pc_if_available)
10969 (get_frame_address_in_block_if_available, get_frame_language):
10970 Replace throw_exception with throw.
10971 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10972 throw_exception with throw.
10973 * eval.c (fetch_subexp_value, evaluate_var_value)
10974 (evaluate_funcall, evaluate_subexp_standard): Replace
10975 throw_exception with throw.
10976 * dwarf2loc.c (call_site_find_chain)
10977 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10978 Replace throw_exception with throw.
10979 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10980 with throw.
10981 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10982 throw.
10983 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10984 * completer.c (complete_line_internal): Replace throw_exception
10985 with throw.
10986 * compile/compile-object-run.c (compile_object_run): Replace
10987 throw_exception with throw.
10988 * cli/cli-script.c (process_next_line): Replace throw_exception
10989 with throw.
10990 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10991 (btrace_enable, btrace_maint_update_pt_packets): Replace
10992 throw_exception with throw.
10993 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10994 throw_exception with throw.
10995 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10996 throw_exception with throw.
10997 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10998 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10999 * aarch64-tdep.c (aarch64_make_prologue_cache)
11000 (aarch64_make_stub_cache): Replace throw_exception with throw.
11001
11002 2019-04-08 Tom Tromey <tom@tromey.com>
11003
11004 * common/common-exceptions.c (throw_exception): Rename from
11005 throw_exception_cxx. Remove old copy. Make argument const.
11006 (throw_it): Create and throw exception objects directly.
11007 * common/common-exceptions.h (throw_exception): Make argument
11008 const.
11009 (struct gdb_exception_error): Add constructor.
11010 (struct gdb_exception_quit): Add constructor.
11011
11012 2019-04-08 Tom Tromey <tom@tromey.com>
11013
11014 * common/common-exceptions.h (exception_rethrow): Don't declare.
11015 (TRY_SJLJ): Update comment.
11016 (TRY, CATCH, END_CATCH): Remove.
11017 * common/common-exceptions.c (exception_rethrow): Remove.
11018
11019 2019-04-08 Tom Tromey <tom@tromey.com>
11020
11021 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11022 Remove.
11023 (gdb_exception_error): Rename from
11024 gdb_exception_RETURN_MASK_ERROR.
11025 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11026 (gdb_quit_bad_alloc): Update.
11027 * aarch64-tdep.c: Update.
11028 * ada-lang.c: Update.
11029 * ada-typeprint.c: Update.
11030 * ada-valprint.c: Update.
11031 * amd64-tdep.c: Update.
11032 * arch-utils.c: Update.
11033 * break-catch-throw.c: Update.
11034 * breakpoint.c: Update.
11035 * btrace.c: Update.
11036 * c-varobj.c: Update.
11037 * cli/cli-cmds.c: Update.
11038 * cli/cli-interp.c: Update.
11039 * cli/cli-script.c: Update.
11040 * common/common-exceptions.c: Update.
11041 * common/new-op.c: Update.
11042 * common/selftest.c: Update.
11043 * compile/compile-c-symbols.c: Update.
11044 * compile/compile-cplus-symbols.c: Update.
11045 * compile/compile-object-load.c: Update.
11046 * compile/compile-object-run.c: Update.
11047 * completer.c: Update.
11048 * corelow.c: Update.
11049 * cp-abi.c: Update.
11050 * cp-support.c: Update.
11051 * cp-valprint.c: Update.
11052 * darwin-nat.c: Update.
11053 * disasm-selftests.c: Update.
11054 * dtrace-probe.c: Update.
11055 * dwarf-index-cache.c: Update.
11056 * dwarf-index-write.c: Update.
11057 * dwarf2-frame-tailcall.c: Update.
11058 * dwarf2-frame.c: Update.
11059 * dwarf2loc.c: Update.
11060 * dwarf2read.c: Update.
11061 * eval.c: Update.
11062 * event-loop.c: Update.
11063 * event-top.c: Update.
11064 * exec.c: Update.
11065 * f-valprint.c: Update.
11066 * fbsd-tdep.c: Update.
11067 * frame-unwind.c: Update.
11068 * frame.c: Update.
11069 * gdbtypes.c: Update.
11070 * gnu-v3-abi.c: Update.
11071 * guile/guile-internal.h: Update.
11072 * guile/scm-block.c: Update.
11073 * guile/scm-breakpoint.c: Update.
11074 * guile/scm-cmd.c: Update.
11075 * guile/scm-disasm.c: Update.
11076 * guile/scm-frame.c: Update.
11077 * guile/scm-lazy-string.c: Update.
11078 * guile/scm-math.c: Update.
11079 * guile/scm-param.c: Update.
11080 * guile/scm-ports.c: Update.
11081 * guile/scm-pretty-print.c: Update.
11082 * guile/scm-symbol.c: Update.
11083 * guile/scm-symtab.c: Update.
11084 * guile/scm-type.c: Update.
11085 * guile/scm-value.c: Update.
11086 * i386-linux-tdep.c: Update.
11087 * i386-tdep.c: Update.
11088 * inf-loop.c: Update.
11089 * infcall.c: Update.
11090 * infcmd.c: Update.
11091 * infrun.c: Update.
11092 * jit.c: Update.
11093 * language.c: Update.
11094 * linespec.c: Update.
11095 * linux-fork.c: Update.
11096 * linux-nat.c: Update.
11097 * linux-tdep.c: Update.
11098 * linux-thread-db.c: Update.
11099 * main.c: Update.
11100 * mi/mi-cmd-break.c: Update.
11101 * mi/mi-cmd-stack.c: Update.
11102 * mi/mi-interp.c: Update.
11103 * mi/mi-main.c: Update.
11104 * objc-lang.c: Update.
11105 * p-valprint.c: Update.
11106 * parse.c: Update.
11107 * ppc-linux-tdep.c: Update.
11108 * printcmd.c: Update.
11109 * python/py-arch.c: Update.
11110 * python/py-breakpoint.c: Update.
11111 * python/py-cmd.c: Update.
11112 * python/py-finishbreakpoint.c: Update.
11113 * python/py-frame.c: Update.
11114 * python/py-framefilter.c: Update.
11115 * python/py-gdb-readline.c: Update.
11116 * python/py-inferior.c: Update.
11117 * python/py-infthread.c: Update.
11118 * python/py-lazy-string.c: Update.
11119 * python/py-linetable.c: Update.
11120 * python/py-objfile.c: Update.
11121 * python/py-param.c: Update.
11122 * python/py-prettyprint.c: Update.
11123 * python/py-progspace.c: Update.
11124 * python/py-record-btrace.c: Update.
11125 * python/py-record.c: Update.
11126 * python/py-symbol.c: Update.
11127 * python/py-type.c: Update.
11128 * python/py-unwind.c: Update.
11129 * python/py-utils.c: Update.
11130 * python/py-value.c: Update.
11131 * python/python.c: Update.
11132 * record-btrace.c: Update.
11133 * record-full.c: Update.
11134 * remote-fileio.c: Update.
11135 * remote.c: Update.
11136 * riscv-tdep.c: Update.
11137 * rs6000-aix-tdep.c: Update.
11138 * rs6000-tdep.c: Update.
11139 * rust-exp.y: Update.
11140 * rust-lang.c: Update.
11141 * s390-tdep.c: Update.
11142 * selftest-arch.c: Update.
11143 * solib-dsbt.c: Update.
11144 * solib-frv.c: Update.
11145 * solib-spu.c: Update.
11146 * solib-svr4.c: Update.
11147 * solib.c: Update.
11148 * sparc64-linux-tdep.c: Update.
11149 * stack.c: Update.
11150 * symfile-mem.c: Update.
11151 * symmisc.c: Update.
11152 * target.c: Update.
11153 * thread.c: Update.
11154 * top.c: Update.
11155 * tracefile-tfile.c: Update.
11156 * tui/tui.c: Update.
11157 * typeprint.c: Update.
11158 * unittests/cli-utils-selftests.c: Update.
11159 * unittests/parse-connection-spec-selftests.c: Update.
11160 * valops.c: Update.
11161 * valprint.c: Update.
11162 * value.c: Update.
11163 * varobj.c: Update.
11164 * windows-nat.c: Update.
11165 * x86-linux-nat.c: Update.
11166 * xml-support.c: Update.
11167
11168 2019-04-08 Tom Tromey <tom@tromey.com>
11169
11170 * xml-support.c: Use C++ exception handling.
11171 * x86-linux-nat.c: Use C++ exception handling.
11172 * windows-nat.c: Use C++ exception handling.
11173 * varobj.c: Use C++ exception handling.
11174 * value.c: Use C++ exception handling.
11175 * valprint.c: Use C++ exception handling.
11176 * valops.c: Use C++ exception handling.
11177 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11178 handling.
11179 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11180 * typeprint.c: Use C++ exception handling.
11181 * tui/tui.c: Use C++ exception handling.
11182 * tracefile-tfile.c: Use C++ exception handling.
11183 * top.c: Use C++ exception handling.
11184 * thread.c: Use C++ exception handling.
11185 * target.c: Use C++ exception handling.
11186 * symmisc.c: Use C++ exception handling.
11187 * symfile-mem.c: Use C++ exception handling.
11188 * stack.c: Use C++ exception handling.
11189 * sparc64-linux-tdep.c: Use C++ exception handling.
11190 * solib.c: Use C++ exception handling.
11191 * solib-svr4.c: Use C++ exception handling.
11192 * solib-spu.c: Use C++ exception handling.
11193 * solib-frv.c: Use C++ exception handling.
11194 * solib-dsbt.c: Use C++ exception handling.
11195 * selftest-arch.c: Use C++ exception handling.
11196 * s390-tdep.c: Use C++ exception handling.
11197 * rust-lang.c: Use C++ exception handling.
11198 * rust-exp.y: Use C++ exception handling.
11199 * rs6000-tdep.c: Use C++ exception handling.
11200 * rs6000-aix-tdep.c: Use C++ exception handling.
11201 * riscv-tdep.c: Use C++ exception handling.
11202 * remote.c: Use C++ exception handling.
11203 * remote-fileio.c: Use C++ exception handling.
11204 * record-full.c: Use C++ exception handling.
11205 * record-btrace.c: Use C++ exception handling.
11206 * python/python.c: Use C++ exception handling.
11207 * python/py-value.c: Use C++ exception handling.
11208 * python/py-utils.c: Use C++ exception handling.
11209 * python/py-unwind.c: Use C++ exception handling.
11210 * python/py-type.c: Use C++ exception handling.
11211 * python/py-symbol.c: Use C++ exception handling.
11212 * python/py-record.c: Use C++ exception handling.
11213 * python/py-record-btrace.c: Use C++ exception handling.
11214 * python/py-progspace.c: Use C++ exception handling.
11215 * python/py-prettyprint.c: Use C++ exception handling.
11216 * python/py-param.c: Use C++ exception handling.
11217 * python/py-objfile.c: Use C++ exception handling.
11218 * python/py-linetable.c: Use C++ exception handling.
11219 * python/py-lazy-string.c: Use C++ exception handling.
11220 * python/py-infthread.c: Use C++ exception handling.
11221 * python/py-inferior.c: Use C++ exception handling.
11222 * python/py-gdb-readline.c: Use C++ exception handling.
11223 * python/py-framefilter.c: Use C++ exception handling.
11224 * python/py-frame.c: Use C++ exception handling.
11225 * python/py-finishbreakpoint.c: Use C++ exception handling.
11226 * python/py-cmd.c: Use C++ exception handling.
11227 * python/py-breakpoint.c: Use C++ exception handling.
11228 * python/py-arch.c: Use C++ exception handling.
11229 * printcmd.c: Use C++ exception handling.
11230 * ppc-linux-tdep.c: Use C++ exception handling.
11231 * parse.c: Use C++ exception handling.
11232 * p-valprint.c: Use C++ exception handling.
11233 * objc-lang.c: Use C++ exception handling.
11234 * mi/mi-main.c: Use C++ exception handling.
11235 * mi/mi-interp.c: Use C++ exception handling.
11236 * mi/mi-cmd-stack.c: Use C++ exception handling.
11237 * mi/mi-cmd-break.c: Use C++ exception handling.
11238 * main.c: Use C++ exception handling.
11239 * linux-thread-db.c: Use C++ exception handling.
11240 * linux-tdep.c: Use C++ exception handling.
11241 * linux-nat.c: Use C++ exception handling.
11242 * linux-fork.c: Use C++ exception handling.
11243 * linespec.c: Use C++ exception handling.
11244 * language.c: Use C++ exception handling.
11245 * jit.c: Use C++ exception handling.
11246 * infrun.c: Use C++ exception handling.
11247 * infcmd.c: Use C++ exception handling.
11248 * infcall.c: Use C++ exception handling.
11249 * inf-loop.c: Use C++ exception handling.
11250 * i386-tdep.c: Use C++ exception handling.
11251 * i386-linux-tdep.c: Use C++ exception handling.
11252 * guile/scm-value.c: Use C++ exception handling.
11253 * guile/scm-type.c: Use C++ exception handling.
11254 * guile/scm-symtab.c: Use C++ exception handling.
11255 * guile/scm-symbol.c: Use C++ exception handling.
11256 * guile/scm-pretty-print.c: Use C++ exception handling.
11257 * guile/scm-ports.c: Use C++ exception handling.
11258 * guile/scm-param.c: Use C++ exception handling.
11259 * guile/scm-math.c: Use C++ exception handling.
11260 * guile/scm-lazy-string.c: Use C++ exception handling.
11261 * guile/scm-frame.c: Use C++ exception handling.
11262 * guile/scm-disasm.c: Use C++ exception handling.
11263 * guile/scm-cmd.c: Use C++ exception handling.
11264 * guile/scm-breakpoint.c: Use C++ exception handling.
11265 * guile/scm-block.c: Use C++ exception handling.
11266 * guile/guile-internal.h: Use C++ exception handling.
11267 * gnu-v3-abi.c: Use C++ exception handling.
11268 * gdbtypes.c: Use C++ exception handling.
11269 * frame.c: Use C++ exception handling.
11270 * frame-unwind.c: Use C++ exception handling.
11271 * fbsd-tdep.c: Use C++ exception handling.
11272 * f-valprint.c: Use C++ exception handling.
11273 * exec.c: Use C++ exception handling.
11274 * event-top.c: Use C++ exception handling.
11275 * event-loop.c: Use C++ exception handling.
11276 * eval.c: Use C++ exception handling.
11277 * dwarf2read.c: Use C++ exception handling.
11278 * dwarf2loc.c: Use C++ exception handling.
11279 * dwarf2-frame.c: Use C++ exception handling.
11280 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11281 * dwarf-index-write.c: Use C++ exception handling.
11282 * dwarf-index-cache.c: Use C++ exception handling.
11283 * dtrace-probe.c: Use C++ exception handling.
11284 * disasm-selftests.c: Use C++ exception handling.
11285 * darwin-nat.c: Use C++ exception handling.
11286 * cp-valprint.c: Use C++ exception handling.
11287 * cp-support.c: Use C++ exception handling.
11288 * cp-abi.c: Use C++ exception handling.
11289 * corelow.c: Use C++ exception handling.
11290 * completer.c: Use C++ exception handling.
11291 * compile/compile-object-run.c: Use C++ exception handling.
11292 * compile/compile-object-load.c: Use C++ exception handling.
11293 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11294 * compile/compile-c-symbols.c: Use C++ exception handling.
11295 * common/selftest.c: Use C++ exception handling.
11296 * common/new-op.c: Use C++ exception handling.
11297 * cli/cli-script.c: Use C++ exception handling.
11298 * cli/cli-interp.c: Use C++ exception handling.
11299 * cli/cli-cmds.c: Use C++ exception handling.
11300 * c-varobj.c: Use C++ exception handling.
11301 * btrace.c: Use C++ exception handling.
11302 * breakpoint.c: Use C++ exception handling.
11303 * break-catch-throw.c: Use C++ exception handling.
11304 * arch-utils.c: Use C++ exception handling.
11305 * amd64-tdep.c: Use C++ exception handling.
11306 * ada-valprint.c: Use C++ exception handling.
11307 * ada-typeprint.c: Use C++ exception handling.
11308 * ada-lang.c: Use C++ exception handling.
11309 * aarch64-tdep.c: Use C++ exception handling.
11310
11311 2019-04-08 Tom Tromey <tom@tromey.com>
11312
11313 * xml-support.c (gdb_xml_parser::parse): Update.
11314 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11315 * value.c (show_convenience): Update.
11316 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11317 (test_parse_flags_qcs): Update.
11318 * thread.c (thr_try_catch_cmd): Update.
11319 * target.c (target_translate_tls_address): Update.
11320 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11321 (info_frame_command_core, frame_apply_command_count): Update.
11322 * rust-exp.y (rust_lex_exception_test): Update.
11323 * riscv-tdep.c (riscv_print_one_register_info): Update.
11324 * remote.c (remote_target::enable_btrace): Update.
11325 * record-btrace.c (record_btrace_enable_warn): Update.
11326 * python/py-utils.c (gdbpy_convert_exception): Update.
11327 * printcmd.c (do_one_display, print_variable_and_value): Update.
11328 * mi/mi-main.c (mi_print_exception): Update.
11329 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11330 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11331 * linux-nat.c (linux_nat_target::attach): Update.
11332 * linux-fork.c (class scoped_switch_fork_info): Update.
11333 * infrun.c (displaced_step_prepare): Update.
11334 * infcall.c (call_function_by_hand_dummy): Update.
11335 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11336 * gnu-v3-abi.c (print_one_vtable): Update.
11337 * frame.c (get_prev_frame_always): Update.
11338 * f-valprint.c (info_common_command_for_block): Update.
11339 * exec.c (try_open_exec_file): Update.
11340 * exceptions.c (print_exception, exception_print)
11341 (exception_fprintf, exception_print_same): Update.
11342 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11343 * dwarf-index-cache.c (index_cache::store)
11344 (index_cache::lookup_gdb_index): Update.
11345 * darwin-nat.c (maybe_cache_shell): Update.
11346 * cp-valprint.c (cp_print_value_fields): Update.
11347 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11348 (gcc_cplus_symbol_address): Update.
11349 * compile/compile-c-symbols.c (gcc_convert_symbol)
11350 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11351 * common/selftest.c: Update.
11352 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11353 a std::string.
11354 (exception_try_scope_entry, exception_try_scope_exit): Don't
11355 declare.
11356 (struct exception_try_scope): Remove.
11357 (TRY): Don't use exception_try_scope.
11358 (struct gdb_exception): Add constructor, operator=.
11359 <what>: New method.
11360 (struct gdb_exception_RETURN_MASK_ALL)
11361 (struct gdb_exception_RETURN_MASK_ERROR)
11362 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11363 (struct gdb_quit_bad_alloc): Update.
11364 * common/common-exceptions.c (exception_none): Change
11365 initializer.
11366 (struct catcher) <state, exception>: Initialize inline.
11367 <prev>: Remove member.
11368 (current_catcher): Remove.
11369 (catchers): New global.
11370 (exceptions_state_mc_init): Simplify.
11371 (catcher_pop): Remove.
11372 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11373 (try_scope_depth, exception_try_scope_entry)
11374 (exception_try_scope_exit): Remove.
11375 (throw_exception_sjlj): Update.
11376 (exception_messages, exception_messages_size): Remove.
11377 (throw_it): Simplify.
11378 (gdb_exception_sliced_copy): Remove.
11379 (throw_exception_cxx): Update.
11380 * cli/cli-script.c (script_from_file): Update.
11381 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11382 Update.
11383 * ada-valprint.c (ada_val_print): Update.
11384 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11385 (create_excep_cond_exprs): Update.
11386
11387 2019-04-08 Tom Tromey <tom@tromey.com>
11388
11389 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11390 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11391 (TRY, CATCH, END_CATCH): Remove some definitions.
11392 * common/common-exceptions.c: Don't use GDB_XCPT.
11393 (catcher_list_size): Remove.
11394 (throw_exception, throw_it): Simplify.
11395
11396 2019-04-05 Tom Tromey <tom@tromey.com>
11397
11398 Revert the header-sorting patch.
11399 * ft32-tdep.c: Revert.
11400 * frv-tdep.c: Revert.
11401 * frv-linux-tdep.c: Revert.
11402 * frame.c: Revert.
11403 * frame-unwind.c: Revert.
11404 * frame-base.c: Revert.
11405 * fork-child.c: Revert.
11406 * findvar.c: Revert.
11407 * findcmd.c: Revert.
11408 * filesystem.c: Revert.
11409 * filename-seen-cache.h: Revert.
11410 * filename-seen-cache.c: Revert.
11411 * fbsd-tdep.c: Revert.
11412 * fbsd-nat.h: Revert.
11413 * fbsd-nat.c: Revert.
11414 * f-valprint.c: Revert.
11415 * f-typeprint.c: Revert.
11416 * f-lang.c: Revert.
11417 * extension.h: Revert.
11418 * extension.c: Revert.
11419 * extension-priv.h: Revert.
11420 * expprint.c: Revert.
11421 * exec.h: Revert.
11422 * exec.c: Revert.
11423 * exceptions.c: Revert.
11424 * event-top.c: Revert.
11425 * event-loop.c: Revert.
11426 * eval.c: Revert.
11427 * elfread.c: Revert.
11428 * dwarf2read.h: Revert.
11429 * dwarf2read.c: Revert.
11430 * dwarf2loc.c: Revert.
11431 * dwarf2expr.h: Revert.
11432 * dwarf2expr.c: Revert.
11433 * dwarf2-frame.c: Revert.
11434 * dwarf2-frame-tailcall.c: Revert.
11435 * dwarf-index-write.h: Revert.
11436 * dwarf-index-write.c: Revert.
11437 * dwarf-index-common.c: Revert.
11438 * dwarf-index-cache.h: Revert.
11439 * dwarf-index-cache.c: Revert.
11440 * dummy-frame.c: Revert.
11441 * dtrace-probe.c: Revert.
11442 * disasm.h: Revert.
11443 * disasm.c: Revert.
11444 * disasm-selftests.c: Revert.
11445 * dictionary.c: Revert.
11446 * dicos-tdep.c: Revert.
11447 * demangle.c: Revert.
11448 * dcache.h: Revert.
11449 * dcache.c: Revert.
11450 * darwin-nat.h: Revert.
11451 * darwin-nat.c: Revert.
11452 * darwin-nat-info.c: Revert.
11453 * d-valprint.c: Revert.
11454 * d-namespace.c: Revert.
11455 * d-lang.c: Revert.
11456 * ctf.c: Revert.
11457 * csky-tdep.c: Revert.
11458 * csky-linux-tdep.c: Revert.
11459 * cris-tdep.c: Revert.
11460 * cris-linux-tdep.c: Revert.
11461 * cp-valprint.c: Revert.
11462 * cp-support.c: Revert.
11463 * cp-namespace.c: Revert.
11464 * cp-abi.c: Revert.
11465 * corelow.c: Revert.
11466 * corefile.c: Revert.
11467 * continuations.c: Revert.
11468 * completer.h: Revert.
11469 * completer.c: Revert.
11470 * complaints.c: Revert.
11471 * coffread.c: Revert.
11472 * coff-pe-read.c: Revert.
11473 * cli-out.h: Revert.
11474 * cli-out.c: Revert.
11475 * charset.c: Revert.
11476 * c-varobj.c: Revert.
11477 * c-valprint.c: Revert.
11478 * c-typeprint.c: Revert.
11479 * c-lang.c: Revert.
11480 * buildsym.c: Revert.
11481 * buildsym-legacy.c: Revert.
11482 * build-id.h: Revert.
11483 * build-id.c: Revert.
11484 * btrace.c: Revert.
11485 * bsd-uthread.c: Revert.
11486 * breakpoint.h: Revert.
11487 * breakpoint.c: Revert.
11488 * break-catch-throw.c: Revert.
11489 * break-catch-syscall.c: Revert.
11490 * break-catch-sig.c: Revert.
11491 * blockframe.c: Revert.
11492 * block.c: Revert.
11493 * bfin-tdep.c: Revert.
11494 * bfin-linux-tdep.c: Revert.
11495 * bfd-target.c: Revert.
11496 * bcache.c: Revert.
11497 * ax-general.c: Revert.
11498 * ax-gdb.h: Revert.
11499 * ax-gdb.c: Revert.
11500 * avr-tdep.c: Revert.
11501 * auxv.c: Revert.
11502 * auto-load.c: Revert.
11503 * arm-wince-tdep.c: Revert.
11504 * arm-tdep.c: Revert.
11505 * arm-symbian-tdep.c: Revert.
11506 * arm-pikeos-tdep.c: Revert.
11507 * arm-obsd-tdep.c: Revert.
11508 * arm-nbsd-tdep.c: Revert.
11509 * arm-nbsd-nat.c: Revert.
11510 * arm-linux-tdep.c: Revert.
11511 * arm-linux-nat.c: Revert.
11512 * arm-fbsd-tdep.c: Revert.
11513 * arm-fbsd-nat.c: Revert.
11514 * arm-bsd-tdep.c: Revert.
11515 * arch-utils.c: Revert.
11516 * arc-tdep.c: Revert.
11517 * arc-newlib-tdep.c: Revert.
11518 * annotate.h: Revert.
11519 * annotate.c: Revert.
11520 * amd64-windows-tdep.c: Revert.
11521 * amd64-windows-nat.c: Revert.
11522 * amd64-tdep.c: Revert.
11523 * amd64-sol2-tdep.c: Revert.
11524 * amd64-obsd-tdep.c: Revert.
11525 * amd64-obsd-nat.c: Revert.
11526 * amd64-nbsd-tdep.c: Revert.
11527 * amd64-nbsd-nat.c: Revert.
11528 * amd64-nat.c: Revert.
11529 * amd64-linux-tdep.c: Revert.
11530 * amd64-linux-nat.c: Revert.
11531 * amd64-fbsd-tdep.c: Revert.
11532 * amd64-fbsd-nat.c: Revert.
11533 * amd64-dicos-tdep.c: Revert.
11534 * amd64-darwin-tdep.c: Revert.
11535 * amd64-bsd-nat.c: Revert.
11536 * alpha-tdep.c: Revert.
11537 * alpha-obsd-tdep.c: Revert.
11538 * alpha-nbsd-tdep.c: Revert.
11539 * alpha-mdebug-tdep.c: Revert.
11540 * alpha-linux-tdep.c: Revert.
11541 * alpha-linux-nat.c: Revert.
11542 * alpha-bsd-tdep.c: Revert.
11543 * alpha-bsd-nat.c: Revert.
11544 * aix-thread.c: Revert.
11545 * agent.c: Revert.
11546 * addrmap.c: Revert.
11547 * ada-varobj.c: Revert.
11548 * ada-valprint.c: Revert.
11549 * ada-typeprint.c: Revert.
11550 * ada-tasks.c: Revert.
11551 * ada-lang.c: Revert.
11552 * aarch64-tdep.c: Revert.
11553 * aarch64-ravenscar-thread.c: Revert.
11554 * aarch64-newlib-tdep.c: Revert.
11555 * aarch64-linux-tdep.c: Revert.
11556 * aarch64-linux-nat.c: Revert.
11557 * aarch64-fbsd-tdep.c: Revert.
11558 * aarch64-fbsd-nat.c: Revert.
11559 * aarch32-linux-nat.c: Revert.
11560
11561 2019-04-05 Tom Tromey <tom@tromey.com>
11562
11563 * ft32-tdep.c: Sort headers.
11564 * frv-tdep.c: Sort headers.
11565 * frv-linux-tdep.c: Sort headers.
11566 * frame.c: Sort headers.
11567 * frame-unwind.c: Sort headers.
11568 * frame-base.c: Sort headers.
11569 * fork-child.c: Sort headers.
11570 * findvar.c: Sort headers.
11571 * findcmd.c: Sort headers.
11572 * filesystem.c: Sort headers.
11573 * filename-seen-cache.h: Sort headers.
11574 * filename-seen-cache.c: Sort headers.
11575 * fbsd-tdep.c: Sort headers.
11576 * fbsd-nat.h: Sort headers.
11577 * fbsd-nat.c: Sort headers.
11578 * f-valprint.c: Sort headers.
11579 * f-typeprint.c: Sort headers.
11580 * f-lang.c: Sort headers.
11581 * extension.h: Sort headers.
11582 * extension.c: Sort headers.
11583 * extension-priv.h: Sort headers.
11584 * expprint.c: Sort headers.
11585 * exec.h: Sort headers.
11586 * exec.c: Sort headers.
11587 * exceptions.c: Sort headers.
11588 * event-top.c: Sort headers.
11589 * event-loop.c: Sort headers.
11590 * eval.c: Sort headers.
11591 * elfread.c: Sort headers.
11592 * dwarf2read.h: Sort headers.
11593 * dwarf2read.c: Sort headers.
11594 * dwarf2loc.c: Sort headers.
11595 * dwarf2expr.h: Sort headers.
11596 * dwarf2expr.c: Sort headers.
11597 * dwarf2-frame.c: Sort headers.
11598 * dwarf2-frame-tailcall.c: Sort headers.
11599 * dwarf-index-write.h: Sort headers.
11600 * dwarf-index-write.c: Sort headers.
11601 * dwarf-index-common.c: Sort headers.
11602 * dwarf-index-cache.h: Sort headers.
11603 * dwarf-index-cache.c: Sort headers.
11604 * dummy-frame.c: Sort headers.
11605 * dtrace-probe.c: Sort headers.
11606 * disasm.h: Sort headers.
11607 * disasm.c: Sort headers.
11608 * disasm-selftests.c: Sort headers.
11609 * dictionary.c: Sort headers.
11610 * dicos-tdep.c: Sort headers.
11611 * demangle.c: Sort headers.
11612 * dcache.h: Sort headers.
11613 * dcache.c: Sort headers.
11614 * darwin-nat.h: Sort headers.
11615 * darwin-nat.c: Sort headers.
11616 * darwin-nat-info.c: Sort headers.
11617 * d-valprint.c: Sort headers.
11618 * d-namespace.c: Sort headers.
11619 * d-lang.c: Sort headers.
11620 * ctf.c: Sort headers.
11621 * csky-tdep.c: Sort headers.
11622 * csky-linux-tdep.c: Sort headers.
11623 * cris-tdep.c: Sort headers.
11624 * cris-linux-tdep.c: Sort headers.
11625 * cp-valprint.c: Sort headers.
11626 * cp-support.c: Sort headers.
11627 * cp-namespace.c: Sort headers.
11628 * cp-abi.c: Sort headers.
11629 * corelow.c: Sort headers.
11630 * corefile.c: Sort headers.
11631 * continuations.c: Sort headers.
11632 * completer.h: Sort headers.
11633 * completer.c: Sort headers.
11634 * complaints.c: Sort headers.
11635 * coffread.c: Sort headers.
11636 * coff-pe-read.c: Sort headers.
11637 * cli-out.h: Sort headers.
11638 * cli-out.c: Sort headers.
11639 * charset.c: Sort headers.
11640 * c-varobj.c: Sort headers.
11641 * c-valprint.c: Sort headers.
11642 * c-typeprint.c: Sort headers.
11643 * c-lang.c: Sort headers.
11644 * buildsym.c: Sort headers.
11645 * buildsym-legacy.c: Sort headers.
11646 * build-id.h: Sort headers.
11647 * build-id.c: Sort headers.
11648 * btrace.c: Sort headers.
11649 * bsd-uthread.c: Sort headers.
11650 * breakpoint.h: Sort headers.
11651 * breakpoint.c: Sort headers.
11652 * break-catch-throw.c: Sort headers.
11653 * break-catch-syscall.c: Sort headers.
11654 * break-catch-sig.c: Sort headers.
11655 * blockframe.c: Sort headers.
11656 * block.c: Sort headers.
11657 * bfin-tdep.c: Sort headers.
11658 * bfin-linux-tdep.c: Sort headers.
11659 * bfd-target.c: Sort headers.
11660 * bcache.c: Sort headers.
11661 * ax-general.c: Sort headers.
11662 * ax-gdb.h: Sort headers.
11663 * ax-gdb.c: Sort headers.
11664 * avr-tdep.c: Sort headers.
11665 * auxv.c: Sort headers.
11666 * auto-load.c: Sort headers.
11667 * arm-wince-tdep.c: Sort headers.
11668 * arm-tdep.c: Sort headers.
11669 * arm-symbian-tdep.c: Sort headers.
11670 * arm-pikeos-tdep.c: Sort headers.
11671 * arm-obsd-tdep.c: Sort headers.
11672 * arm-nbsd-tdep.c: Sort headers.
11673 * arm-nbsd-nat.c: Sort headers.
11674 * arm-linux-tdep.c: Sort headers.
11675 * arm-linux-nat.c: Sort headers.
11676 * arm-fbsd-tdep.c: Sort headers.
11677 * arm-fbsd-nat.c: Sort headers.
11678 * arm-bsd-tdep.c: Sort headers.
11679 * arch-utils.c: Sort headers.
11680 * arc-tdep.c: Sort headers.
11681 * arc-newlib-tdep.c: Sort headers.
11682 * annotate.h: Sort headers.
11683 * annotate.c: Sort headers.
11684 * amd64-windows-tdep.c: Sort headers.
11685 * amd64-windows-nat.c: Sort headers.
11686 * amd64-tdep.c: Sort headers.
11687 * amd64-sol2-tdep.c: Sort headers.
11688 * amd64-obsd-tdep.c: Sort headers.
11689 * amd64-obsd-nat.c: Sort headers.
11690 * amd64-nbsd-tdep.c: Sort headers.
11691 * amd64-nbsd-nat.c: Sort headers.
11692 * amd64-nat.c: Sort headers.
11693 * amd64-linux-tdep.c: Sort headers.
11694 * amd64-linux-nat.c: Sort headers.
11695 * amd64-fbsd-tdep.c: Sort headers.
11696 * amd64-fbsd-nat.c: Sort headers.
11697 * amd64-dicos-tdep.c: Sort headers.
11698 * amd64-darwin-tdep.c: Sort headers.
11699 * amd64-bsd-nat.c: Sort headers.
11700 * alpha-tdep.c: Sort headers.
11701 * alpha-obsd-tdep.c: Sort headers.
11702 * alpha-nbsd-tdep.c: Sort headers.
11703 * alpha-mdebug-tdep.c: Sort headers.
11704 * alpha-linux-tdep.c: Sort headers.
11705 * alpha-linux-nat.c: Sort headers.
11706 * alpha-bsd-tdep.c: Sort headers.
11707 * alpha-bsd-nat.c: Sort headers.
11708 * aix-thread.c: Sort headers.
11709 * agent.c: Sort headers.
11710 * addrmap.c: Sort headers.
11711 * ada-varobj.c: Sort headers.
11712 * ada-valprint.c: Sort headers.
11713 * ada-typeprint.c: Sort headers.
11714 * ada-tasks.c: Sort headers.
11715 * ada-lang.c: Sort headers.
11716 * aarch64-tdep.c: Sort headers.
11717 * aarch64-ravenscar-thread.c: Sort headers.
11718 * aarch64-newlib-tdep.c: Sort headers.
11719 * aarch64-linux-tdep.c: Sort headers.
11720 * aarch64-linux-nat.c: Sort headers.
11721 * aarch64-fbsd-tdep.c: Sort headers.
11722 * aarch64-fbsd-nat.c: Sort headers.
11723 * aarch32-linux-nat.c: Sort headers.
11724
11725 2019-04-04 Tom Tromey <tom@tromey.com>
11726
11727 * varobj.c (varobj_create): Update.
11728 * rust-exp.y (struct rust_parser) <update_innermost_block,
11729 lookup_symbol>: New methods.
11730 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11731 Rename.
11732 (rust_parser::rust_lookup_type)
11733 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11734 * printcmd.c (display_command, do_one_display): Update.
11735 * parser-defs.h (struct parser_state) <parser_state>: Add
11736 "tracker" parameter.
11737 (block_tracker): New member.
11738 (class innermost_block_tracker) <innermost_block_tracker>: Add
11739 "types" parameter.
11740 <reset>: Remove method.
11741 (innermost_block): Don't declare.
11742 (null_post_parser): Update.
11743 * parse.c (innermost_block): Remove global.
11744 (write_dollar_variable): Update.
11745 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11746 Remove "tracker_types" parameter.
11747 (parse_expression): Add "tracker" parameter.
11748 (parse_expression_for_completion): Update.
11749 (null_post_parser): Add "tracker" parameter.
11750 * p-exp.y: Update rules.
11751 * m2-exp.y: Update rules.
11752 * language.h (struct language_defn) <la_post_parser>: Add
11753 "tracker" parameter.
11754 * go-exp.y: Update rules.
11755 * f-exp.y: Update rules.
11756 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11757 parameter.
11758 * d-exp.y: Update rules.
11759 * c-exp.y: Update rules.
11760 * breakpoint.c (set_breakpoint_condition): Create an
11761 innermost_block_tracker.
11762 (watch_command_1): Likewise.
11763 * ada-lang.c (resolve): Add "tracker" parameter.
11764 (resolve_subexp): Likewise.
11765 * ada-exp.y (write_var_from_sym): Update.
11766
11767 2019-04-04 Tom Tromey <tom@tromey.com>
11768
11769 * type-stack.h: New file.
11770 * type-stack.c: New file.
11771 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11772 type-stack.h.
11773 (insert_into_type_stack, insert_type, push_type, push_type_int)
11774 (insert_type_address_space, pop_type, pop_type_int)
11775 (pop_typelist, pop_type_stack, append_type_stack)
11776 (push_type_stack, get_type_stack, push_typelist)
11777 (follow_type_instance_flags, follow_types): Don't declare.
11778 * parse.c (type_stack): Remove global.
11779 (parse_exp_in_context): Update.
11780 (insert_into_type_stack, insert_type, push_type, push_type_int)
11781 (insert_type_address_space, pop_type, pop_type_int)
11782 (pop_typelist, pop_type_stack, append_type_stack)
11783 (push_type_stack, get_type_stack, push_typelist)
11784 (follow_type_instance_flags, follow_types): Remove (moved to
11785 type-stack.c).
11786 * f-exp.y (type_stack): New global.
11787 Update rules.
11788 (push_kind_type, f_parse): Update.
11789 * d-exp.y (type_stack): New global.
11790 Update rules.
11791 (d_parse): Update.
11792 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11793 Update rules.
11794 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11795 (HFILES_NO_SRCDIR): Add type-stack.h.
11796
11797 2019-04-04 Tom Tromey <tom@tromey.com>
11798
11799 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11800 (rust_parser::convert_ast_to_expression, rust_parse)
11801 (rust_lex_test_completion, rust_lex_tests): Update.
11802 * parser-defs.h (struct expr_completion_state): New.
11803 (struct parser_state) <parser_state>: Add completion parameter.
11804 <mark_struct_expression, mark_completion_tag>: New methods.
11805 <parse_completion, m_completion_state>: New members.
11806 (prefixify_expression, null_post_parser): Update.
11807 (mark_struct_expression, mark_completion_tag): Don't declare.
11808 * parse.c (parse_completion, expout_last_struct)
11809 (expout_tag_completion_type, expout_completion_name): Remove
11810 globals.
11811 (parser_state::mark_struct_expression)
11812 (parser_state::mark_completion_tag): Now methods.
11813 (prefixify_expression): Add last_struct parameter.
11814 (prefixify_subexp): Likewise.
11815 (parse_exp_1): Update.
11816 (parse_exp_in_context): Add cstate parameter. Update.
11817 (parse_expression_for_completion): Create an
11818 expr_completion_state.
11819 (null_post_parser): Add "completion" parameter.
11820 * p-exp.y: Update rules.
11821 (yylex): Update.
11822 * language.h (struct language_defn) <la_post_parser>: Add
11823 "completing" parameter.
11824 * go-exp.y: Update rules.
11825 (lex_one_token): Update.
11826 * expression.h (parse_completion): Don't declare.
11827 * d-exp.y: Update rules.
11828 (lex_one_token): Update rules.
11829 * c-exp.y: Update rules.
11830 (lex_one_token): Update.
11831 * ada-lang.c (resolve): Add "parse_completion" parameter.
11832 (resolve_subexp): Likewise.
11833 (ada_resolve_function): Likewise.
11834
11835 2019-04-04 Tom Tromey <tom@tromey.com>
11836
11837 * parser-defs.h (struct parser_state) <start_arglist,
11838 end_arglist>: New methods.
11839 <arglist_len, m_funcall_chain>: New members.
11840 (arglist_len, start_arglist, end_arglist): Don't declare.
11841 * parse.c (arglist_len, funcall_chain): Remove global.
11842 (start_arglist, end_arglist): Remove functions.
11843 (parse_exp_in_context): Update.
11844 * p-exp.y: Update rules.
11845 * m2-exp.y: Update rules.
11846 * go-exp.y: Update rules.
11847 * f-exp.y: Update rules.
11848 * d-exp.y: Update rules.
11849 * c-exp.y: Update rules.
11850
11851 2019-04-04 Tom Tromey <tom@tromey.com>
11852
11853 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11854 lex_operator, push_back>: New methods.
11855 Update all rules.
11856 (rust_parser::lex_hex, lex_escape): Rename and update.
11857 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11858 (rust_parser::lex_operator): Rename and update.
11859 (rust_parser::lex_number, rustyylex, rustyyerror)
11860 (rust_lex_test_init, rust_lex_test_sequence)
11861 (rust_lex_test_push_back, rust_lex_tests): Update.
11862 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11863 parameter.
11864 <lexptr, prev_lexptr>: New members.
11865 (lexptr, prev_lexptr): Don't declare.
11866 * parse.c (lexptr, prev_lexptr): Remove globals.
11867 (parse_exp_in_context): Update.
11868 * p-exp.y (yylex, yyerror): Update.
11869 * m2-exp.y (parse_number, yylex, yyerror): Update.
11870 * go-exp.y (lex_one_token, yyerror): Update.
11871 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11872 * d-exp.y (lex_one_token, yyerror): Update.
11873 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11874 (lex_one_token, yyerror): Update.
11875 * ada-lex.l (YY_INPUT): Update.
11876 (rewind_to_char): Update.
11877 * ada-exp.y (yyerror): Update.
11878
11879 2019-04-04 Tom Tromey <tom@tromey.com>
11880
11881 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11882 * parser-defs.h (struct parser_state) <parser_state>: Add new
11883 parameter.
11884 <comma_terminates>: New member.
11885 (comma_terminates): Don't declare global.
11886 * parse.c (comma_terminates): Remove global.
11887 (parse_exp_in_context): Update.
11888 * p-exp.y (yylex): Update.
11889 * m2-exp.y (yylex): Update.
11890 * go-exp.y (lex_one_token): Update.
11891 * f-exp.y (yylex): Update.
11892 * d-exp.y (lex_one_token): Update.
11893 * c-exp.y (lex_one_token): Update.
11894 * ada-lex.l: Update.
11895
11896 2019-04-04 Tom Tromey <tom@tromey.com>
11897
11898 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11899 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11900 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11901 * parser-defs.h (paren_depth): Don't declare.
11902 * parse.c (paren_depth): Remove global.
11903 (parse_exp_in_context): Update.
11904 * p-exp.y (paren_depth): New global.
11905 (pascal_parse): Initialize it.
11906 * m2-exp.y (paren_depth): New global.
11907 (m2_parse): Initialize it.
11908 * go-exp.y (paren_depth): New global.
11909 (go_parse): Initialize it.
11910 * f-exp.y (paren_depth): New global.
11911 (f_parse): Initialize it.
11912 * d-exp.y (paren_depth): New global.
11913 (d_parse): Initialize it.
11914 * c-exp.y (paren_depth): New global.
11915 (c_parse): Initialize it.
11916 * ada-lex.l (paren_depth): New global.
11917 (lexer_init): Initialize it.
11918
11919 2019-04-04 Tom Tromey <tom@tromey.com>
11920
11921 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11922 (rust_parser::convert_ast_to_type)
11923 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11924 * parser-defs.h (struct parser_state) <parser_state>: Add
11925 parameters. Initialize new members.
11926 <expression_context_block, expression_context_pc>: New members.
11927 * parse.c (expression_context_block, expression_context_pc):
11928 Remove globals.
11929 (parse_exp_in_context): Update.
11930 * p-exp.y: Update all rules.
11931 (yylex): Update.
11932 * m2-exp.y: Update all rules.
11933 (yylex): Update.
11934 * go-exp.y (yylex): Update.
11935 * f-exp.y (yylex): Update.
11936 * d-exp.y: Update all rules.
11937 (yylex): Update.
11938 * c-exp.y: Update all rules.
11939 (lex_one_token, classify_name, yylex, c_parse): Update.
11940 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11941
11942 2019-04-04 Tom Tromey <tom@tromey.com>
11943
11944 * gdbarch.h, gdbarch.c: Rebuild.
11945 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11946 * stap-probe.h:
11947 (struct stap_parse_info): Replace "parser_state" with
11948 "expr_builder".
11949 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11950 (parser_state): New class.
11951 * parse.c (expr_builder): Rename.
11952 (expr_builder::release): Rename.
11953 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11954 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11955 (write_exp_elt_longcst, write_exp_elt_floatcst)
11956 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11957 (write_exp_string_vector, write_exp_bitstring)
11958 (write_exp_msymbol, mark_struct_expression)
11959 (write_dollar_variable)
11960 (insert_type_address_space, increase_expout_size): Replace
11961 "parser_state" with "expr_builder".
11962 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11963 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11964 "parser_state" with "expr_builder".
11965
11966 2019-04-04 Tom Tromey <tom@tromey.com>
11967
11968 * rust-exp.y: Replace "parse_language" with method call.
11969 * p-exp.y:
11970 (yylex): Replace "parse_language" with method call.
11971 * m2-exp.y:
11972 (yylex): Replace "parse_language" with method call.
11973 * go-exp.y (classify_name): Replace "parse_language" with method
11974 call.
11975 * f-exp.y (yylex): Replace "parse_language" with method call.
11976 * d-exp.y (lex_one_token): Replace "parse_language" with method
11977 call.
11978 * c-exp.y:
11979 (lex_one_token, classify_name, yylex): Replace "parse_language"
11980 with method call.
11981 * ada-exp.y (find_primitive_type, type_char)
11982 (type_system_address): Replace "parse_language" with method call.
11983
11984 2019-04-04 Tom Tromey <tom@tromey.com>
11985
11986 * rust-exp.y: Replace "parse_gdbarch" with method call.
11987 * parse.c (write_dollar_variable, insert_type_address_space):
11988 Replace "parse_gdbarch" with method call.
11989 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11990 call.
11991 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11992 call.
11993 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11994 "parse_gdbarch" with method call.
11995 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11996 with method call.
11997 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11998 "parse_gdbarch" with method call.
11999 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12000 "parse_gdbarch" with method call.
12001 * c-exp.y (parse_type, parse_number, classify_name): Replace
12002 "parse_gdbarch" with method call.
12003 * ada-lex.l: Replace "parse_gdbarch" with method call.
12004 * ada-exp.y (parse_type, find_primitive_type, type_char)
12005 (type_system_address): Replace "parse_gdbarch" with method call.
12006
12007 2019-04-04 Tom Tromey <tom@tromey.com>
12008
12009 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12010 * stap-probe.c (stap_parse_argument): Update.
12011 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12012 initial_size parameter.
12013 * rust-exp.y (rust_lex_tests): Update.
12014 * parse.c (parser_state): Update.
12015 (parse_exp_in_context): Update.
12016 * parser-defs.h (struct parser_state) <parser_state>: Remove
12017 "initial_size" parameter.
12018
12019 2019-04-04 Tom Tromey <tom@tromey.com>
12020
12021 * parser-defs.h (increase_expout_size): Don't declare.
12022 * parse.c (increase_expout_size): Now static.
12023
12024 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12025
12026 * gnu-nat.c (gnu_nat_target::wait): Fix
12027 target_waitstatus_to_string call.
12028
12029 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12030
12031 * eval.c (evaluate_subexp_standard): Handle internal functions
12032 during Fortran function call handling.
12033
12034 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12035
12036 * NEWS: Mention new internal functions.
12037 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12038 (read_base_type): Use dwarf2_init_complex_target_type.
12039 * value.c (creal_internal_fn): New function.
12040 (cimag_internal_fn): New function.
12041 (_initialize_values): Register new internal functions.
12042
12043 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12044
12045 * infrun.c (stop_all_threads): If debug_infrun, always
12046 trace the wait status after wait_one, using
12047 target_waitstatus_to_string and target_pid_to_str.
12048 (handle_inferior_event): Replace various trace of
12049 wait status kind by a single trace.
12050 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12051 wait status kind image by target_waitstatus_to_string.
12052 * target/waitstatus.c (target_waitstatus_to_string): Fix
12053 obsolete comment.
12054
12055 2019-04-01 Tom Tromey <tromey@adacore.com>
12056
12057 PR symtab/23331:
12058 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12059
12060 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12061 Pedro Alves <palves@redhat.com>
12062
12063 * top.c (quit_force): Call 'finalize_values'.
12064 * value.c (finalize_values): New function.
12065 * value.h (finalize_values): Declare.
12066
12067 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12068
12069 * NEWS: Announce $_gdb_major and $_gdb_minor.
12070
12071 * top.c (init_gdb_version_vars): New function.
12072 (gdb_init): Call init_gdb_version_vars.
12073
12074 2019-03-29 Tom Tromey <tromey@adacore.com>
12075
12076 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12077 help text. Remove dead code.
12078
12079 2019-03-29 Keith Seitz <keiths@redhat.com>
12080
12081 From Siddhesh Poyarekar:
12082 * f-lang.h (f77_get_upperbound): Return LONGEST.
12083 (f77_get_lowerbound): Likewise.
12084 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12085 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12086 print them.
12087 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12088 plongest to format print it.
12089 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12090 (f77_get_upperbound): Likewise.
12091 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12092 LOWER_BOUND to LONGEST.
12093 (f77_create_arrayprint_offset_tbl): Likewise.
12094
12095 2019-03-29 Keith Seitz <keiths@redhat.com>
12096
12097 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12098 %s/pulongest for TYPE_LENGTH instead of %d in format
12099 strings.
12100 * ada-typerint.c (ada_print_type): Likewise.
12101 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12102 * compile/compile-c-support.c (generate_register_struct): Likewise.
12103 * gdbtypes.c (recursive_dump_type): Likewise.
12104 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12105 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12106 instead of %d in format strings.
12107 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12108 to std::min to ULONGEST.
12109 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12110 instead of %d in format strings.
12111 * tracepoint.c (info_scope_command): Likewise.
12112 * typeprint.c (print_offset_data::update)
12113 (print_offset_data::finish): Likewise.
12114 * xtensa-tdep.c (xtensa_store_return_value)
12115 (xtensa_push_dummy_call): Likewise.
12116
12117 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12118
12119 * windows-nat.c (display_selector): Fixed format specifications
12120 for 64-bit Cygwin.
12121
12122 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12123
12124 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12125
12126 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12127
12128 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12129 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12130 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12131 (nios2_linux_init_abi): Install it.
12132
12133 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12134
12135 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12136
12137 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12138
12139 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12140
12141 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12142 Tom Tromey <tromey@adacore.com>
12143
12144 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12145
12146 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12147
12148 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12149 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12150 method to compute the bounds of range types. Also print "[evaluated]"
12151 if the bounds' values come from a dynamic evaluation.
12152
12153 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12156 whitespace when pretty printing is on.
12157
12158 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12159
12160 * ppc-linux-nat.c: Add include.
12161
12162 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12163
12164 * NEWS: Mention AArch64 Pointer Authentication.
12165
12166 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12167
12168 * arm-linux-nat.c: Add include.
12169
12170 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * source-cache.c (source_cache::get_source_lines): Re-read
12173 fullname after calling open_source_file.
12174
12175 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12176
12177 * NEWS: Mention TLS support for FreeBSD.
12178
12179 2019-03-25 Tom Tromey <tromey@adacore.com>
12180
12181 * minsyms.c (BUNCH_SIZE): Update comment.
12182 (~minimal_symbol_reader): Remove old comment.
12183 (compact_minimal_symbols): Update comment.
12184 (minimal_symbol_reader::install): Remove old comment. Update
12185 other comments.
12186
12187 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12188
12189 * s390-linux-nat.c: Add include.
12190
12191 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12192
12193 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12194 Call linux_get_hwcap.
12195 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12196 Likewise.
12197 (aarch64_linux_get_hwcap): Remove function.
12198 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12199 declaration.
12200 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12201 linux_get_hwcap.
12202 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12203 * linux-tdep.c (linux_get_hwcap): Add function.
12204 (linux_get_hwcap2): Likewise.
12205 * linux-tdep.h (linux_get_hwcap): Add declaration.
12206 (linux_get_hwcap2): Likewise.
12207 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12208 (ppc_linux_get_hwcap2): Likewise.
12209 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12210 linux_get_hwcap.
12211 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12212 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12213 (ppc_linux_nat_target::read_description): Likewise.
12214 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12215 * s390-linux-nat.c: Likewise.
12216 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12217
12218 2019-03-24 Tom Tromey <tom@tromey.com>
12219
12220 * ada-lang.c (standard_lookup): Simplify initialization.
12221 (ada_lookup_symbol_nonlocal): Simplify return.
12222 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12223 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12224 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12225 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12226 initialization.
12227 * solib.c (solib_global_lookup): Simplify.
12228 * symtab.c (null_block_symbol): Remove.
12229 (symbol_cache_lookup): Simplify returns.
12230 (lookup_language_this): Simplify returns.
12231 (lookup_symbol_aux): Simplify return.
12232 (lookup_local_symbol): Simplify returns.
12233 (lookup_global_symbol_from_objfile): Simplify return.
12234 (lookup_symbol_in_objfile_symtabs)
12235 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12236 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12237 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12238 * cp-namespace.c (cp_lookup_bare_symbol)
12239 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12240 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12241 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12242 (cp_lookup_symbol_via_imports): Simplify initialization.
12243 (find_symbol_in_baseclass): Likewise.
12244 * symtab.h (null_block_symbol): Remove.
12245 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12246 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12247 (d_lookup_symbol_module): Likewise.
12248 (find_symbol_in_baseclass): Simplify initialization.
12249
12250 2019-03-24 Tom Tromey <tom@tromey.com>
12251
12252 * expression.h: Don't include symtab.h.
12253 (struct block): Forward declare.
12254
12255 2019-03-24 Tom Tromey <tom@tromey.com>
12256
12257 * c-exp.y (typebase): Remove casts.
12258 * gdbtypes.c (lookup_unsigned_typename, )
12259 (lookup_signed_typename): Remove cast.
12260 * eval.c (parse_to_comma_and_eval): Remove cast.
12261 * parse.c (write_dollar_variable): Remove cast.
12262 * block.h (struct block) <superblock>: Now const.
12263 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12264 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12265 (map_block): Make "block" const.
12266 * symfile.h (struct quick_symbol_functions)
12267 <map_matching_symbols>: Constify block argument to "callback".
12268 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12269 const.
12270 (find_pc_sect_compunit_symtab): Make "b" const.
12271 (find_symbol_at_address): Likewise.
12272 (search_symbols): Likewise.
12273 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12274 (dw2_debug_names_lookup_symbol): Likewise.
12275 (dw2_map_matching_symbols): Update.
12276 * p-valprint.c (pascal_val_print): Remove "block".
12277 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12278 (aux_add_nonlocal_symbols): Make "block" const.
12279 (resolve_subexp): Remove cast.
12280 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12281 const.
12282 (iterate_over_file_blocks): Likewise.
12283 * f-exp.y (%union) <bval>: Remove.
12284 * coffread.c (patch_opaque_types): Make "b" const.
12285 * spu-tdep.c (spu_catch_start): Make "block" const.
12286 * c-valprint.c (print_unpacked_pointer): Remove "block".
12287 * symmisc.c (dump_symtab_1): Make "b" const.
12288 (block_depth): Make "block" const.
12289 * d-exp.y (%union) <bval>: Remove.
12290 * cp-support.h (cp_lookup_rtti_type): Update.
12291 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12292 * psymtab.c (psym_lookup_symbol): Make "block" const.
12293 (maintenance_check_psymtabs): Make "b" const.
12294 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12295 (enumerate_locals, enumerate_args): Update.
12296 * python/py-symtab.c (stpy_global_block): Make "block" const.
12297 (stpy_static_block): Likewise.
12298 * inline-frame.c (block_starting_point_at): Make "new_block"
12299 const.
12300 * block.c (find_block_in_blockvector): Make return type const.
12301 (blockvector_for_pc_sect): Make "b" const.
12302 (find_block_in_blockvector): Make "b" const.
12303
12304 2019-03-23 Tom Tromey <tom@tromey.com>
12305
12306 * varobj.c (varobj_create): Update.
12307 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12308 * printcmd.c (display_command, do_one_display): Don't reset
12309 innermost_block.
12310 * parser-defs.h (enum innermost_block_tracker_type): Move to
12311 expression.h.
12312 (innermost_block): Update comment.
12313 * parse.c (parse_exp_1): Add tracker_types parameter.
12314 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12315 tracker_types parameter. Reset innermost_block.
12316 (parse_exp_in_context): Remove.
12317 (parse_expression_for_completion): Update.
12318 * objfiles.c (~objfile): Don't reset expression_context_block or
12319 innermost_block.
12320 * expression.h (enum innermost_block_tracker_type): Move from
12321 parser-defs.h.
12322 (parse_exp_1): Add tracker_types parameter.
12323 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12324 reset innermost_block.
12325
12326 2019-03-23 Tom Tromey <tom@tromey.com>
12327
12328 * objfiles.h: Include bcache.h.
12329
12330 2019-03-23 Tom Tromey <tom@tromey.com>
12331
12332 * linespec.c (get_current_search_block): Use
12333 scoped_restore_current_language.
12334 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12335
12336 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12337 Jiong Wang <jiong.wang@arm.com>
12338
12339 * aarch64-linux-tdep.c
12340 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12341 section.
12342 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12343
12344 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12345 Jiong Wang <jiong.wang@arm.com>
12346
12347 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12348 instructions.
12349 (aarch64_analyze_prologue_test): Add PACIASP test.
12350 (aarch64_prologue_prev_register): Unmask PC value.
12351
12352 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12353 Jiong Wang <jiong.wang@arm.com>
12354
12355 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12356 (aarch64_dwarf2_prev_register): Unmask PC value.
12357 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12358 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12359 DW_CFA_AARCH64_negate_ra_state.
12360 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12361
12362 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12363 Jiong Wang <jiong.wang@arm.com>
12364
12365 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12366 registers.
12367 (aarch64_pseudo_register_name): Likewise.
12368 (aarch64_pseudo_register_type): Likewise.
12369 (aarch64_pseudo_register_reggroup_p): Likewise.
12370 (aarch64_gdbarch_init): Add pauth registers.
12371 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12372 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12373 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12374 (struct gdbarch_tdep): Add regnum for ra_state.
12375
12376 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12377 Jiong Wang <jiong.wang@arm.com>
12378
12379 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12380
12381 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12382 Jiong Wang <jiong.wang@arm.com>
12383
12384 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12385 function.
12386 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12387 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12388 (aarch64_gdbarch_init): Add puth registers.
12389 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12390 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12391 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12392
12393 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12394 Jiong Wang <jiong.wang@arm.com>
12395
12396 * aarch64-linux-nat.c
12397 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12398 * aarch64-linux-tdep.c
12399 (aarch64_linux_core_read_description): Likewise.
12400 (aarch64_linux_get_hwcap): New function.
12401 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12402 (aarch64_linux_get_hwcap): New declaration.
12403
12404 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12405 Jiong Wang <jiong.wang@arm.com>
12406
12407 * aarch64-linux-nat.c
12408 (aarch64_linux_nat_target::read_description): Add pauth param.
12409 * aarch64-linux-tdep.c
12410 (aarch64_linux_core_read_description): Likewise.
12411 * aarch64-tdep.c (struct target_desc): Add in pauth.
12412 (aarch64_read_description): Add pauth param.
12413 (aarch64_gdbarch_init): Likewise.
12414 * aarch64-tdep.h (aarch64_read_description): Likewise.
12415 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12416 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12417 * features/Makefile: Add new files.
12418 * features/aarch64-pauth.c: New file.
12419 * features/aarch64-pauth.xml: New file.
12420
12421 2019-03-20 Tom Tromey <tromey@adacore.com>
12422
12423 * infrun.c (handle_inferior_event): Rename from
12424 handle_inferior_event_1. Create a scoped_value_mark.
12425 (handle_inferior_event): Remove.
12426
12427 2019-03-19 Tom Tromey <tromey@adacore.com>
12428
12429 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12430 * infrun.h (print_stop_event): Add "displays" parameter.
12431 * infrun.c (print_stop_event): Add "displays" parameter.
12432
12433 2019-03-19 Pedro Alves <palves@redhat.com>
12434
12435 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12436 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12437 to -1. Fix TABs vs spaces.
12438 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12439 * tui/tui-out.h (tui_ui_out) Add intro comments.
12440 <m_line, m_start_of_line>: In-class initialize, and add describing
12441 comment.
12442
12443 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12444
12445 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12446 variable names.
12447 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12448
12449 2019-03-18 Pedro Alves <palves@redhat.com>
12450 Eli Zaretskii <eliz@gnu.org>
12451
12452 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12453 m_line and m_start_of_line.
12454
12455 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12456
12457 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12458 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12459 it returns a newline. This fixes a regression in TU mode, whereby
12460 the next line is output on the same screen line as the user input.
12461
12462 2019-03-18 Tom Tromey <tromey@adacore.com>
12463
12464 * minsyms.c (minimal_symbol_reader::install): Remove call to
12465 obstack_blank.
12466
12467 2019-03-18 Pedro Alves <palves@redhat.com>
12468
12469 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12470 New globals.
12471 (apply_style): New, factored out from ...
12472 (apply_ansi_escape): ... this. Handle reverse video mode.
12473 (tui_set_reverse_mode): New function.
12474 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12475 * tui/tui-winsource.c (tui_show_source_line): Use
12476 tui_set_reverse_mode instead of setting A_STANDOUT.
12477 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12478 New setter methods.
12479
12480 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12481
12482 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12483 Handle tabs.
12484
12485 2019-03-18 Tom Tromey <tromey@adacore.com>
12486
12487 * ada-lang.c (empty_array): Add "high" parameter.
12488 (ada_evaluate_subexp): Update.
12489
12490 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12491
12492 * unittests/string_view-selftests.c: Define
12493 _initialize_string_view_selftests unconditionally.
12494
12495 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12496
12497 PR gdb/24350
12498 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12499
12500 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12501
12502 PR gdb/24351
12503 * windows-nat.c (display_selector): Fix format specifiers.
12504
12505 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12506
12507 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12508 tui_refill_source_window instead of tui_refresh_win, to update the
12509 current execution line. This fixes redisplay of the current line
12510 when stepping through the code with "next" or "step".
12511
12512 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12513
12514 * source-cache.c (source_cache::get_source_lines): Call
12515 find_source_lines to initialize s->nlines. This fixes vertical
12516 scrolling of TUI source window when the DOWN arrow is pressed.
12517
12518 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12519
12520 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12521 linux-thread-db.c (_initialize_thread_db): Likewise.
12522
12523 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12524
12525 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12526 wclrtoeol in tui_show_source_line". This reverts changes made in
12527 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12528
12529 2019-03-15 Tom Tromey <tom@tromey.com>
12530
12531 * symtab.h (struct minimal_symbol): Derive from
12532 general_symbol_info.
12533 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12534 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12535 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12536 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12537 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12538 (MSYMBOL_SEARCH_NAME): Update.
12539 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12540 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12541 * minsyms.c (minimal_symbol_reader::record_full): Update.
12542
12543 2019-03-15 Tom Tromey <tom@tromey.com>
12544
12545 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12546
12547 2019-03-15 Tom Tromey <tom@tromey.com>
12548
12549 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12550 unique_xmalloc_ptr.
12551 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12552 Update.
12553 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12554 (build_minimal_symbol_hash_tables)
12555 (minimal_symbol_reader::install): Update.
12556
12557 2019-03-15 Tom Tromey <tom@tromey.com>
12558
12559 * symtab.c (create_demangled_names_hash): Update.
12560 (symbol_set_names): Update.
12561 * objfiles.h (struct objfile_per_bfd_storage)
12562 <demangled_names_hash>: Now an htab_up.
12563 * objfiles.c (objfile_per_bfd_storage): Simplify.
12564
12565 2019-03-15 Tom Tromey <tom@tromey.com>
12566
12567 * objfiles.h (struct objfile_per_bfd_storage): Declare
12568 destructor.
12569 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12570 New.
12571 (get_objfile_bfd_data): Use new. Don't initialize
12572 language_of_main.
12573 (free_objfile_per_bfd_storage): Remove.
12574 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12575
12576 2019-03-15 Tom Tromey <tom@tromey.com>
12577
12578 * symfile.c (reread_symbols): Update.
12579 * objfiles.c (objfile::objfile): Update.
12580 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12581 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12582 comment.
12583 (minimal_symbol_reader::install): Update.
12584 (terminate_minimal_symbol_table): Remove.
12585 * jit.c (jit_object_close_impl): Update.
12586
12587 2019-03-15 Tom Tromey <tom@tromey.com>
12588
12589 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12590 initializations.
12591
12592 2019-03-15 Tom Tromey <tom@tromey.com>
12593
12594 * objfiles.h (struct objfile_per_bfd_storage)
12595 <demangled_hash_languages>: Now a bitset.
12596 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12597 (lookup_minimal_symbol): Update.
12598
12599 2019-03-15 Tom Tromey <tom@tromey.com>
12600
12601 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12602 Don't return the symbol.
12603 * coffread.c (record_minimal_symbol): Use record_full.
12604
12605 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12606
12607 The MS-Windows port of ncurses fails to switch to a color pair if
12608 one or both of the colors are the implicit default colors. This
12609 change records the default colors when TUI is initialized, and
12610 then specifies them explicitly when a color pair uses the default
12611 colors. This allows color styling in TUI mode on MS-Windows.
12612
12613 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12614 ncurses_norm_attr.
12615 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12616 colors in ncurses_norm_attr.
12617 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12618 "none", replace it with the default color recorded in
12619 ncurses_norm_attr.
12620
12621 2019-03-14 Tom Tromey <tromey@adacore.com>
12622
12623 * source-cache.h (class source_cache) <get_source_lines>: Return
12624 std::string.
12625 * source-cache.c (source_cache::extract_lines): Handle case where
12626 first_pos==npos. Return std::string.
12627 (source_cache::get_source_lines): Update.
12628
12629 2019-03-14 Tom Tromey <tromey@adacore.com>
12630
12631 * NEWS: Add item for "style sources" commands.
12632 * source-cache.c (source_cache::get_source_lines): Check
12633 source_styling.
12634 * cli/cli-style.c (source_styling): New global.
12635 (_initialize_cli_style): Add "style sources" commands.
12636 (show_style_sources): New function.
12637 * cli/cli-style.h (source_styling): Declare.
12638
12639 2019-03-14 Pedro Alves <palves@redhat.com>
12640 Tom Tromey <tromey@adacore.com>
12641
12642 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12643 * tui/tui-winsource.c (tui_refill_source_window): New function,
12644 from...
12645 (tui_horizontal_source_scroll): ... here. Move some logic.
12646 * cli/cli-style.c (set_style_enabled): Notify new observable.
12647 * tui/tui-hooks.c (tui_redisplay_source): New function.
12648 (tui_attach_detach_observers): Attach or detach
12649 tui_redisplay_source.
12650 * observable.h (source_styling_changed): New observable.
12651 * observable.c: Define source_styling_changed observable.
12652
12653 2019-03-13 Tom Tromey <tromey@adacore.com>
12654
12655 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12656 (i386_gnu_nat_target::store_registers): Update.
12657 * target-debug.h (target_debug_print_std_string): New macro.
12658 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12659 * windows-tdep.c (display_one_tib): Update.
12660 * tui/tui-stack.c (tui_make_status_line): Update.
12661 * top.c (print_inferior_quit_action): Update.
12662 * thread.c (thr_try_catch_cmd): Update.
12663 (add_thread_with_info): Update.
12664 (thread_target_id_str): Update.
12665 (thr_try_catch_cmd): Update.
12666 (thread_command): Update.
12667 (thread_find_command): Update.
12668 * record-btrace.c (record_btrace_target::info_record)
12669 (record_btrace_resume_thread, record_btrace_target::resume)
12670 (record_btrace_cancel_resume, record_btrace_step_thread)
12671 (record_btrace_target::wait, record_btrace_target::wait)
12672 (record_btrace_target::wait, record_btrace_target::stop): Update.
12673 * progspace.c (print_program_space): Update.
12674 * process-stratum-target.c
12675 (process_stratum_target::thread_address_space): Update.
12676 * linux-fork.c (linux_fork_mourn_inferior)
12677 (detach_checkpoint_command, info_checkpoints_command)
12678 (linux_fork_context): Update.
12679 (linux_fork_detach): Update.
12680 (class scoped_switch_fork_info): Update.
12681 (delete_checkpoint_command): Update.
12682 * infrun.c (follow_fork_inferior): Update.
12683 (follow_fork_inferior): Update.
12684 (proceed_after_vfork_done): Update.
12685 (handle_vfork_child_exec_or_exit): Update.
12686 (follow_exec): Update.
12687 (displaced_step_prepare_throw): Update.
12688 (displaced_step_restore): Update.
12689 (start_step_over): Update.
12690 (resume_1): Update.
12691 (clear_proceed_status_thread): Update.
12692 (proceed): Update.
12693 (print_target_wait_results): Update.
12694 (do_target_wait): Update.
12695 (context_switch): Update.
12696 (stop_all_threads): Update.
12697 (restart_threads): Update.
12698 (finish_step_over): Update.
12699 (handle_signal_stop): Update.
12700 (switch_back_to_stepped_thread): Update.
12701 (keep_going_pass_signal): Update.
12702 (print_exited_reason): Update.
12703 (normal_stop): Update.
12704 * inferior.c (inferior_pid_to_str): Change return type.
12705 (print_selected_inferior): Update.
12706 (add_inferior): Update.
12707 (detach_inferior): Update.
12708 * dummy-frame.c (fprint_dummy_frames): Update.
12709 * dcache.c (dcache_info_1): Update.
12710 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12711 (btrace_fetch, btrace_clear): Update.
12712 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12713 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12714 type.
12715 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12716 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12717 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12718 * gdbarch.c, gdbarch.h: Rebuild.
12719 * gdbarch.sh (core_pid_to_str): Change return type.
12720 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12721 return type.
12722 (windows_nat_target::pid_to_str): Change return type.
12723 (windows_delete_thread): Update.
12724 (windows_nat_target::attach): Update.
12725 (windows_nat_target::files_info): Update.
12726 * target-delegates.c: Rebuild.
12727 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12728 return type.
12729 (sol_thread_target::pid_to_str): Change return type.
12730 * remote.c (class remote_target) <pid_to_str>: Change return
12731 type.
12732 (remote_target::pid_to_str): Change return type.
12733 (extended_remote_target::attach, remote_target::remote_stop_ns)
12734 (remote_target::remote_notif_remove_queued_reply)
12735 (remote_target::push_stop_reply, remote_target::disable_btrace):
12736 Update.
12737 (extended_remote_target::attach): Update.
12738 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12739 type.
12740 (gdbsim_target::pid_to_str): Change return type.
12741 * ravenscar-thread.c (struct ravenscar_thread_target)
12742 <pid_to_str>: Change return type.
12743 (ravenscar_thread_target::pid_to_str): Change return type.
12744 * procfs.c (class procfs_target) <pid_to_str>: Change return
12745 type.
12746 (procfs_target::pid_to_str): Change return type.
12747 (procfs_target::attach): Update.
12748 (procfs_target::detach): Update.
12749 (procfs_target::fetch_registers): Update.
12750 (procfs_target::store_registers): Update.
12751 (procfs_target::wait): Update.
12752 (procfs_target::files_info): Update.
12753 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12754 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12755 return type.
12756 (nto_procfs_target::pid_to_str): Change return type.
12757 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12758 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12759 return type.
12760 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12761 (exit_lwp): Update.
12762 (attach_proc_task_lwp_callback, get_detach_signal)
12763 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12764 (linux_nat_target::resume, wait_lwp, stop_callback)
12765 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12766 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12767 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12768 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12769 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12770 type.
12771 (inf_ptrace_target::attach): Update.
12772 (inf_ptrace_target::files_info): Update.
12773 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12774 type.
12775 (go32_nat_target::pid_to_str): Change return type.
12776 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12777 (gnu_nat_target::wait): Update.
12778 (gnu_nat_target::wait): Update.
12779 (gnu_nat_target::resume): Update.
12780 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12781 (fbsd_nat_target::wait): Update.
12782 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12783 type.
12784 (darwin_nat_target::attach): Update.
12785 * corelow.c (class core_target) <pid_to_str>: Change return type.
12786 (core_target::pid_to_str): Change return type.
12787 * target.c (normal_pid_to_str): Change return type.
12788 (default_pid_to_str): Likewise.
12789 (target_pid_to_str): Change return type.
12790 (target_translate_tls_address): Update.
12791 (target_announce_detach): Update.
12792 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12793 return type.
12794 (bsd_uthread_target::pid_to_str): Change return type.
12795 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12796 type.
12797 (bsd_kvm_target::pid_to_str): Change return type.
12798 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12799 return type.
12800 (aix_thread_target::pid_to_str): Change return type.
12801 * target.h (struct target_ops) <pid_to_str>: Change return type.
12802 (target_pid_to_str, normal_pid_to_str): Likewise.
12803 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12804 type.
12805 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12806 type.
12807 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12808 return type.
12809 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12810 type.
12811 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12812 type.
12813 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12814 return type.
12815
12816 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12817
12818 * NEWS: Mention that the new default MI version is 3. Mention
12819 changes to the output of commands and events that deal with
12820 multi-location breakpoints.
12821 * breakpoint.c: Include "mi/mi-out.h".
12822 (print_one_breakpoint): Change output syntax if using MI version
12823 >= 3.
12824 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12825 New.
12826 (mi_multi_location_breakpoint_output_fixed): New.
12827 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12828 (mi_cmd_fix_multi_location_breakpoint_output): New.
12829 (mi_multi_location_breakpoint_output_fixed): New.
12830 * mi/mi-cmds.c (mi_cmds): Register command
12831 -fix-multi-location-breakpoint-output.
12832 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12833 interpreter "mi".
12834
12835 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12836
12837 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12838 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12839 instantiate mi_ui_out based on interpreter name.
12840 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12841 * mi/mi-main.c (mi_load_progress): Likewise.
12842
12843 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12844
12845 * NEWS: Combine separate "New targets" sections for 8.3.
12846
12847 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12848
12849 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12850 (ppcfbsd_init_abi): Install gdbarch
12851 "fetch_tls_load_module_address" and "get_thread_local_address"
12852 methods.
12853
12854 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12855
12856 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12857 (riscv_fbsd_init_abi): Install gdbarch
12858 "fetch_tls_load_module_address" and "get_thread_local_address"
12859 methods.
12860
12861 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12862
12863 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12864 (i386fbsd_init_abi): Install gdbarch
12865 "fetch_tls_load_module_address" and "get_thread_local_address"
12866 methods.
12867
12868 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12869
12870 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12871 (amd64fbsd_init_abi): Install gdbarch
12872 "fetch_tls_load_module_address" and "get_thread_local_address"
12873 methods.
12874
12875 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12876
12877 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12878 (struct fbsd_pspace_data): New type.
12879 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12880 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12881 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12882 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12883 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12884
12885 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12886
12887 * gdbtypes.c (lookup_struct_elt): New function.
12888 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12889 * gdbtypes.h (struct struct_elt): New type.
12890 (lookup_struct_elt): New prototype.
12891
12892 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12893
12894 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12895 remove disabled code block.
12896
12897 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12898
12899 * gdbarch.sh (get_thread_local_address): New method.
12900 * gdbarch.h, gdbarch.c: Regenerate.
12901 * target.c (target_translate_tls_address): Use
12902 gdbarch_get_thread_local_address if present instead of
12903 target::get_thread_local_address.
12904
12905 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12906
12907 * target.h (target::get_thread_local_address): Update comment.
12908
12909 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12910
12911 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12912 objfile->separate_debug_objfile_backlink if not NULL.
12913
12914 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12915
12916 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12917 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12918 (amd64bsd_store_inferior_registers): Likewise.
12919 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12920 Enable segment base registers.
12921 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12922 PT_GETFSBASE and PT_GETGSBASE.
12923 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12924 PT_SETGSBASE.
12925 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12926 segment base registers.
12927 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12928
12929 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12930
12931 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12932 Update calls to i386_target_description to add 'segments'
12933 parameter.
12934 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12935 add segment base registers.
12936 * arch/i386.c (i386_create_target_description): Add 'segments'
12937 parameter to enable segment base registers.
12938 * arch/i386.h (i386_create_target_description): Likewise.
12939 * features/i386/32bit-segments.xml: New file.
12940 * features/i386/32bit-segments.c: Generate.
12941 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12942 call to i386_target_description to add 'segments' parameter.
12943 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12944 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12945 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12946 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12947 if feature is present.
12948 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12949 Add 'segments' parameter to call to i386_target_description.
12950 (i386_target_description): Add 'segments' parameter to enable
12951 segment base registers.
12952 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12953 to call to i386_target_description.
12954 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12955 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12956 Define I386_NUM_REGS.
12957 (i386_target_description): Add 'segments' parameter to enable
12958 segment base registers.
12959
12960 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12961
12962 PR/24325
12963 * source-cache.c: #undef open and close, to avoid unresolved
12964 externals during linking.
12965
12966 2019-03-12 Tom Tromey <tromey@adacore.com>
12967
12968 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12969 const. Add initializers.
12970 (_initialize_remote): Don't initialize ptid globals.
12971
12972 2019-03-12 Pedro Alves <palves@redhat.com>
12973
12974 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12975
12976 2019-03-12 Pedro Alves <palves@redhat.com>
12977
12978 * cp-name-parser.y (main): Remove unused 'len' variable.
12979
12980 2019-03-12 Tom Tromey <tromey@adacore.com>
12981
12982 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12983 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12984
12985 2019-03-12 Tom Tromey <tromey@adacore.com>
12986
12987 * linux-nat.c (iterate_over_lwps): Update.
12988 (stop_callback): Remove parameter.
12989 (stop_wait_callback, detach_callback, resume_set_callback)
12990 (select_singlestep_lwp_callback, set_ignore_sigint)
12991 (status_callback, resumed_callback, resume_clear_callback)
12992 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12993 data parameter.
12994 (linux_nat_target::detach, linux_nat_target::resume)
12995 (linux_stop_and_wait_all_lwps, select_event_lwp)
12996 (linux_nat_filter_event, linux_nat_wait_1)
12997 (linux_nat_target::kill, linux_nat_target::stop)
12998 (linux_nat_target::stop): Update.
12999 (linux_nat_resume_callback): Change type.
13000 (resume_stopped_resumed_lwps, count_events_callback)
13001 (select_event_lwp_callback): Likewise.
13002 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13003 * arm-linux-nat.c (struct update_registers_data): Remove.
13004 (update_registers_callback): Change type.
13005 (arm_linux_insert_hw_breakpoint1): Update.
13006 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13007 parameter.
13008 (x86_linux_dr_set_addr): Update.
13009 (x86_linux_dr_set_control): Update.
13010 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13011 (iterate_over_lwps): Use gdb::function_view.
13012 * nat/aarch64-linux-hw-point.c (struct
13013 aarch64_dr_update_callback_param): Remove.
13014 (debug_reg_change_callback): Change type.
13015 (aarch64_notify_debug_reg_change): Update.
13016 * s390-linux-nat.c (s390_refresh_per_info): Update.
13017
13018 2019-03-11 Tom Tromey <tromey@adacore.com>
13019
13020 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13021 redundant assignment to "this_cu".
13022
13023 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13024
13025 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13026
13027 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13028
13029 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13030 from...
13031 (rank_one_type): ... this.
13032
13033 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13034
13035 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13036 from...
13037 (rank_one_type): ... this.
13038
13039 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13040
13041 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13042 from...
13043 (rank_one_type): ... this.
13044
13045 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13046
13047 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13048 from...
13049 (rank_one_type): ... this.
13050
13051 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13052
13053 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13054 from...
13055 (rank_one_type): ... this.
13056
13057 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13058
13059 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13060 from...
13061 (rank_one_type): ... this.
13062
13063 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13064
13065 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13066 from...
13067 (rank_one_type): ... this.
13068
13069 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13070
13071 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13072 from...
13073 (rank_one_type): ... this.
13074
13075 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13076
13077 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13078 from...
13079 (rank_one_type): ... this.
13080
13081 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13082
13083 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13084 from...
13085 (rank_one_type): ... this.
13086
13087 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13088
13089 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13090 from...
13091 (rank_one_type): ... this.
13092
13093 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13094
13095 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13096 from...
13097 (rank_one_type): ... this.
13098
13099 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13100
13101 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13102 inferior-events' shows the example events.
13103
13104 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13105
13106 Support styling on native MS-Windows console
13107
13108 PR/24315
13109 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13110 on MS-Windows if $TERM is not defined.
13111
13112 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13113
13114 * posix-hdep.c (gdb_console_fputs):
13115 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13116 functions.
13117 * ui-file.h (gdb_console_fputs): Add prototype.
13118
13119 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13120 back to fputs only if the former returns zero.
13121
13122 2019-03-07 Tom Tromey <tom@tromey.com>
13123
13124 * symmisc.c (print_symbol_bcache_statistics): Update.
13125 (print_objfile_statistics): Update.
13126 * symfile.c (allocate_symtab): Update.
13127 * stabsread.c: Don't include bcache.h.
13128 * psymtab.h (struct psymbol_bcache): Don't declare.
13129 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13130 (psymbol_bcache_init, psymbol_bcache_free)
13131 (psymbol_bcache_get_bcache): Don't declare.
13132 * psymtab.c (struct psymbol_bcache): Remove.
13133 (psymtab_storage::psymtab_storage): Update.
13134 (psymtab_storage::~psymtab_storage): Update.
13135 (psymbol_bcache_init, psymbol_bcache_free)
13136 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13137 (add_psymbol_to_bcache): Update.
13138 (allocate_psymtab): Update.
13139 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13140 macro_cache>: No longer pointers.
13141 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13142 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13143 * macrotab.c (macro_bcache): Update.
13144 * macroexp.c: Don't include bcache.h.
13145 * gdbtypes.c (check_types_worklist): Update.
13146 (types_deeply_equal): Remove TRY/CATCH. Update.
13147 * elfread.c (elf_symtab_read): Update.
13148 * dwarf2read.c: Don't include bcache.h.
13149 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13150 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13151 (print_bcache_statistics, bcache_memory_used): Don't declare.
13152 (struct bcache): Move from bcache.c. Add constructor, destructor,
13153 methods. Rename all data members.
13154 * bcache.c (struct bcache): Move to bcache.h.
13155 (bcache::expand_hash_table): Rename from expand_hash_table.
13156 (bcache): Remove.
13157 (bcache::insert): Rename from bcache_full.
13158 (bcache::compare): Rename from bcache_compare.
13159 (bcache_xmalloc): Remove.
13160 (bcache::~bcache): Rename from bcache_xfree.
13161 (bcache::print_statistics): Rename from print_bcache_statistics.
13162 (bcache::memory_used): Rename from bcache_memory_used.
13163
13164 2019-03-07 Pedro Alves <palves@redhat.com>
13165
13166 * infrun.c (normal_stop): Also check for
13167 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13168
13169 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13170
13171 * f-lang.c (value_from_host_double): Moved to...
13172 * value.c (value_from_host_double): ...here.
13173 * value.h (value_from_host_double): Declare.
13174 * guile/scm-math.c (vlscm_convert_typed_number): Use
13175 value_from_host_double.
13176 (vlscm_convert_number): Likewise.
13177 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13178 * python/py-value.c (convert_value_from_python): Likewise.
13179
13180 2019-03-06 Tom Tromey <tom@tromey.com>
13181
13182 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13183
13184 2019-03-06 Tom Tromey <tom@tromey.com>
13185
13186 * utils.h (free_current_contents): Don't declare.
13187 * utils.c (free_current_contents): Remove.
13188
13189 2019-03-06 Tom Tromey <tom@tromey.com>
13190
13191 * top.c (quit_force): Update.
13192 * main.c (captured_command_loop): Update.
13193 * common/new-op.c (operator new): Update.
13194 * common/common-exceptions.c (struct catcher)
13195 <save_cleanup_chain>: Remove member.
13196 (exceptions_state_mc_init): Update.
13197 (exception_try_scope_entry): Return nullptr.
13198 (exception_try_scope_exit, exception_rethrow)
13199 (throw_exception_sjlj, throw_exception_cxx): Update.
13200 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13201 (all_cleanups, do_cleanups, discard_cleanups)
13202 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13203 (restore_cleanups, restore_final_cleanups): Don't declare.
13204 (do_final_cleanups): Remove parameter.
13205 * common/cleanups.c (cleanup_chain, make_cleanup)
13206 (make_cleanup_dtor, all_cleanups, do_cleanups)
13207 (discard_my_cleanups, discard_cleanups)
13208 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13209 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13210 (null_cleanup): Remove.
13211 (do_final_cleanups): Remove parameter.
13212
13213 2019-03-06 Tom Tromey <tom@tromey.com>
13214
13215 * remote.c (remote_target::remote_parse_stop_reply): Use
13216 unique_xmalloc_ptr.
13217
13218 2019-03-06 Tom Tromey <tom@tromey.com>
13219
13220 * stabsread.c (struct stabs_field_info): Rename from field_info.
13221 <list, fnlist>: Add initializers.
13222 <obstack>: New member.
13223 (read_member_functions, read_struct_fields, read_baseclasses):
13224 Allocate on obstack. Don't use cleanups.
13225 (read_one_struct_field, read_member_functions, read_struct_fields)
13226 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13227 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13228 (read_struct_type): Update.
13229
13230 2019-03-06 Tom Tromey <tom@tromey.com>
13231
13232 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13233 * common/filestuff.h (make_cleanup_close): Don't declare.
13234 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13235 Remove.
13236
13237 2019-03-06 Tom Tromey <tom@tromey.com>
13238
13239 * solib-aix.c: Use make_scope_exit.
13240
13241 2019-03-06 Tom Tromey <tom@tromey.com>
13242
13243 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13244 Use make_scope_exit.
13245
13246 2019-03-06 Tom Tromey <tom@tromey.com>
13247
13248 * solib-svr4.c (disable_probes_interface): Remove parameter.
13249 (svr4_handle_solib_event): Use make_scope_exit.
13250
13251 2019-03-06 Tom Tromey <tom@tromey.com>
13252
13253 * remote.c (struct stop_reply_deleter): Remove.
13254 (stop_reply_up): Update.
13255 (struct stop_reply): Derive from notif_event. Don't typedef.
13256 <regcache>: Now a std::vector.
13257 (stop_reply_xfree): Remove.
13258 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13259 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13260 (remote_target::discard_pending_stop_replies): Use delete.
13261 (remote_target::remote_parse_stop_reply): Update.
13262 (remote_target::process_stop_reply): Update.
13263 * remote-notif.h (struct notif_event): Add virtual destructor.
13264 Remove "dtr" member.
13265 (struct notif_client) <alloc_event>: Return a unique_ptr.
13266 (notif_event_xfree): Don't declare.
13267 (notif_event_up): New typedef.
13268 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13269 (notif_event_xfree, do_notif_event_xfree): Remove.
13270 (remote_notif_state_xfree): Update.
13271
13272 2019-03-06 Tom Tromey <tom@tromey.com>
13273
13274 * infrun.c (displaced_step_clear_cleanup): Now a
13275 forward_scope_exit type.
13276 (displaced_step_prepare_throw): Update.
13277 (displaced_step_fixup): Update.
13278
13279 2019-03-06 Tom Tromey <tom@tromey.com>
13280
13281 * inferior.h (class inferior): Update comment.
13282 * gdbthread.h (class thread_info): Update comment.
13283
13284 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13285 Tom Tromey <tom@tromey.com>
13286
13287 * stabsread.h (struct stab_section_list): Remove.
13288 (coffstab_build_psymtabs): Update.
13289 * dbxread.c (symbuf_sections): Now a std::vector.
13290 (sect_idx): New global.
13291 (fill_symbuf): Update.
13292 (coffstab_build_psymtabs): Change type of stabsects parameter.
13293 Update.
13294 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13295 std::vector.
13296 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13297 (coff_locate_sections): Update.
13298 (coff_symfile_read): Remove cleanups. Update.
13299 (init_stringtab): Add storage parameter.
13300 (free_stringtab, free_stringtab_cleanup): Remove.
13301 (init_lineno): Add storage parameter.
13302 (free_linetab, free_linetab_cleanup): Remove.
13303
13304 2019-03-06 Pedro Alves <palves@redhat.com>
13305
13306 * linux-fork.c (fork_info::clobber_regs): Delete.
13307 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13308 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13309 comment. Adjust.
13310 (scoped_switch_fork_info::scoped_switch_fork_info)
13311 (checkpoint_command, linux_fork_context): Adjust
13312 fork_save_infrun_state calls.
13313
13314 2019-03-06 Pedro Alves <palves@redhat.com>
13315
13316 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13317 (inf_has_multiple_threads): Return 'bool' and rewrite using
13318 inferior_info::threads().
13319
13320 2019-03-06 Pedro Alves <palves@redhat.com>
13321
13322 * linux-fork.c: Include <list>.
13323 (fork_list): Now a std::list instance.
13324 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13325 (forks_exist_p, find_last_fork): Adjust.
13326 (new_fork): Delete.
13327 (one_fork_p): New.
13328 (add_fork): Adjust.
13329 (free_fork): Delete, folded into fork_info::~fork_info().
13330 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13331 Adjust.
13332 (init_fork_list): Delete.
13333 (linux_fork_killall, linux_fork_mourn_inferior)
13334 (linux_fork_detach, info_checkpoints_command): Adjust.
13335 (_initialize_linux_fork): No longer call init_fork_list.
13336
13337 2019-03-06 Pedro Alves <palves@redhat.com>
13338
13339 * linux-fork.c (new_fork): New, split out of ...
13340 (add_fork): ... this. Return void. Move "first fork" special
13341 case from here, to ...
13342 (checkpoint_command): ... here.
13343 * linux-linux.h (add_fork): Return void.
13344
13345 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13346
13347 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13348
13349 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13350 Chris January <chris.january@arm.com>
13351 David Lecomber <david.lecomber@arm.com>
13352
13353 * f-exp.y: New token, UNOP_INTRINSIC.
13354 (exp): New pattern using UNOP_INTRINSIC token.
13355 (f77_keywords): Add 'abs' keyword.
13356 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13357 (value_from_host_double): New function.
13358 (evaluate_subexp_f): Support UNOP_ABS.
13359
13360 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13361
13362 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13363 types.
13364
13365 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13366
13367 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13368 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13369 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13370
13371 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13372
13373 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13374
13375 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13376 Chris January <chris.january@arm.com>
13377
13378 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13379 * f-exp.y: Define 'KIND' token.
13380 (exp): New pattern for KIND expressions.
13381 (ptype): Handle types with a kind extension.
13382 (direct_abs_decl): Extend to spot kind extensions.
13383 (f77_keywords): Add 'kind' to the list.
13384 (push_kind_type): New function.
13385 (convert_to_kind_type): New function.
13386 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13387 * parse.c (operator_length_standard): Likewise.
13388 * parser-defs.h (enum type_pieces): Add tp_kind.
13389 * std-operator.def: Add UNOP_KIND.
13390
13391 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13392
13393 * f-exp.y (f_parse): Set yydebug.
13394
13395 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13396
13397 * f-lang.c (evaluate_subexp_f): New function.
13398 (exp_descriptor_f): New global.
13399 (f_language_defn): Use exp_descriptor_f instead of
13400 exp_descriptor_standard.
13401
13402 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13403
13404 * f-exp.y (struct token): Add comments.
13405 (dot_ops): Remove uppercase versions and the end marker.
13406 (f77_keywords): Likewise.
13407 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13408 entries in the dot_ops array are case insensitive, and use
13409 strncasecmp to compare strings. Also some whitespace cleanup in
13410 this area. Similar for the f77_keywords array, except entries in
13411 this list might be case sensitive.
13412
13413 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13414
13415 * f-exp.y (struct f77_boolean_val): Add comments.
13416 (boolean_values): Remove uppercase versions, and end marker.
13417 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13418 and use strncasecmp to achieve case insensitivity. Additionally,
13419 perform whitespace cleanup around this code.
13420
13421 2019-03-06 Tom Tromey <tromey@adacore.com>
13422
13423 * remote-sim.c (gdbsim_target_open): Use result of
13424 gdb_argv::release.
13425
13426 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13427 Dirk Schubert <dirk.schubert@arm.com>
13428 Chris January <chris.january@arm.com>
13429
13430 * eval.c (evaluate_subexp_standard): Call Fortran argument
13431 wrapping logic.
13432 * f-lang.c (struct value): A value which can be passed into a
13433 Fortran function call.
13434 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13435 where appropriate.
13436 (struct type): Value ready for a Fortran function call.
13437 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13438 is needed.
13439 * f-lang.h (fortran_argument_convert): Declaration.
13440 (fortran_preserve_arg_pointer): Declaration.
13441 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13442
13443 2019-03-05 Tom Tromey <tromey@adacore.com>
13444
13445 * python/py-prettyprint.c (print_string_repr): Remove #if.
13446 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13447
13448 2019-03-05 Tom Tromey <tromey@adacore.com>
13449
13450 * target.c (the_dummy_target): Move later. Change type to
13451 "dummy_target".
13452 (initialize_targets): Don't initialize the_dummy_target.
13453
13454 2019-03-05 Tom Tromey <tromey@adacore.com>
13455
13456 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13457 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13458
13459 2019-03-05 Tom Tromey <tromey@adacore.com>
13460
13461 * windows-nat.c (windows_nat_target::attach)
13462 (windows_nat_target::detach): Don't call gdb_flush.
13463 * valprint.c (generic_val_print, val_print, val_print_string):
13464 Don't call gdb_flush.
13465 * utils.c (defaulted_query): Don't call gdb_flush.
13466 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13467 * target.c (target_announce_detach): Don't call gdb_flush.
13468 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13469 * remote.c (extended_remote_target::attach): Don't call
13470 gdb_flush.
13471 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13472 * printcmd.c (do_examine): Don't call gdb_flush.
13473 (info_display_command): Don't call gdb_flush.
13474 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13475 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13476 * memattr.c (info_mem_command): Don't call gdb_flush.
13477 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13478 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13479 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13480 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13481 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13482 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13483 (gnu_nat_target::detach): Don't call gdb_flush.
13484 * f-valprint.c (f_val_print): Don't call gdb_flush.
13485 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13486 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13487 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13488 gdb_flush.
13489 * c-valprint.c (c_val_print): Don't call gdb_flush.
13490 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13491
13492 2019-03-05 Tom Tromey <tromey@adacore.com>
13493
13494 * varobj.c (update_dynamic_varobj_children): Update.
13495 (install_default_visualizer): Use reset, not release.
13496 * value.c (set_internalvar): Update.
13497 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13498 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13499 ATTRIBUTE_UNUSED_RESULT.
13500
13501 2019-03-05 Tom Tromey <tromey@adacore.com>
13502
13503 * remote.c (class scoped_remote_fd) <release>: Add
13504 ATTRIBUTE_UNUSED_RESULT.
13505
13506 2019-03-05 Tom Tromey <tromey@adacore.com>
13507
13508 * macroexp.c (struct macro_buffer) <release>: Add
13509 ATTRIBUTE_UNUSED_RESULT.
13510
13511 2019-03-05 Tom Tromey <tromey@adacore.com>
13512
13513 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13514 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13515 ATTRIBUTE_UNUSED_RESULT.
13516
13517 2019-03-05 Tom Tromey <tromey@adacore.com>
13518
13519 * common/scoped_fd.h (class scoped_fd) <release>: Add
13520 ATTRIBUTE_UNUSED_RESULT.
13521
13522 2019-03-05 Tom Tromey <tromey@adacore.com>
13523
13524 * parser-defs.h (struct parser_state) <release>: Add
13525 ATTRIBUTE_UNUSED_RESULT.
13526
13527 2019-03-05 Tom Tromey <tromey@adacore.com>
13528
13529 * utils.h (class gdb_argv) <release>: Add
13530 ATTRIBUTE_UNUSED_RESULT.
13531 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13532
13533 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13534
13535 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13536 for-loop range, to avoid compiler warnings.
13537
13538 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13539 avoid compiler warnings about unused variables.
13540
13541 * NEWS: Mention end of support for native debugging on MS-Windows
13542 before XP.
13543
13544 PR gdb/24292
13545 * common/netstuff.c:
13546 * gdbserver/gdbreplay.c
13547 * gdbserver/remote-utils.c:
13548 * ser-tcp.c:
13549 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13550 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13551 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13552 'getaddrinfo' and 'freeaddrinfo' were not available before
13553 Windows XP, and mingw.org's MinGW headers by default define
13554 _WIN32_WINNT to 0x500.
13555
13556 2019-03-01 Gary Benson <gbenson@redhat.com>
13557
13558 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13559
13560 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13561 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13562
13563 PR gdb/8527
13564 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13565 set_sigint_trap, clear_sigint_trap.
13566
13567 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13568
13569 * target.c (target_detach): Clear the regcache and the
13570 frame cache.
13571
13572 2019-02-27 Pedro Alves <palves@redhat.com>
13573
13574 * utils.c (set_screen_size): When we cap the height/width sizes,
13575 tweak the corresponding command variable to show "unlimited":
13576
13577 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13578 Pedro Alves <palves@redhat.com>
13579
13580 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13581 before calling rl_set_screen_size.
13582
13583 2019-02-27 Tom Tromey <tromey@adacore.com>
13584
13585 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13586 define.
13587 * python/py-value.c: Remove Python 2.4 workaround.
13588 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13589 workaround.
13590 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13591 Python 2.4 workaround.
13592 * python/python-internal.h: Remove Python 2.4 comment.
13593 (Py_ssize_t): Don't define.
13594 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13595 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13596 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13597 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13598 * python/python.c (do_start_initialization): Remove Python 2.4
13599 workaround.
13600 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13601 (print_children): Remove Python 2.4 workaround.
13602 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13603 workaround.
13604 (CHARBUFFERPROC_NAME): Remove.
13605 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13606 Python 2.4 workaround.
13607
13608 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13609
13610 * NEWS: Note minimum Python version.
13611
13612 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13613
13614 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13615 code from these functions. Remove corresponding ifdefs. Use
13616 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13617 Remove gotos and target of gotos.
13618 (infpy_search_memory): Likewise.
13619
13620 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13621
13622 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13623 (hppa_gdbarch_init): Don't register deleted functions with
13624 gdbarch.
13625
13626 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13629 (h8300_unwind_sp): Delete.
13630 (h8300_dummy_id): Delete.
13631 (h8300_gdbarch_init): Don't register deleted functions with
13632 gdbarch.
13633
13634 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13635
13636 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13637 (ft32_unwind_pc): Delete.
13638 (ft32_unwind_sp): Delete.
13639 (ft32_gdbarch_init): Don't register deleted functions with
13640 gdbarch.
13641
13642 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13643
13644 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13645 (frv_unwind_pc): Delete.
13646 (frv_unwind_sp): Delete.
13647 (frv_gdbarch_init): Don't register deleted functions with
13648 gdbarch.
13649
13650 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13651
13652 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13653 (riscv_unwind_pc): Delete.
13654 (riscv_unwind_sp): Delete.
13655 (riscv_gdbarch_init): Don't register deleted functions with
13656 gdbarch.
13657
13658 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13659
13660 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13661 (csky_unwind_pc): Delete.
13662 (csky_unwind_sp): Delete.
13663 (csky_gdbarch_init): Don't register deleted functions with
13664 gdbarch.
13665
13666 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13667
13668 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13669 (cris_unwind_pc): Delete.
13670 (cris_unwind_sp): Delete.
13671 (cris_gdbarch_init): Don't register deleted functions with
13672 gdbarch.
13673
13674 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13675
13676 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13677 (bfin_unwind_pc): Delete.
13678 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13679
13680 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13681
13682 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13683 (arm_unwind_pc): Delete.
13684 (arm_unwind_sp): Delete.
13685 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13686
13687 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13690 (arc_unwind_pc): Delete.
13691 (arc_unwind_sp): Delete.
13692 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13693
13694 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13695
13696 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13697 (alpha_unwind_pc): Delete.
13698 (alpha_gdbarch_init): Don't register deleted functions with
13699 gdbarch.
13700
13701 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13702
13703 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13704 (aarch64_unwind_pc): Delete.
13705 (aarch64_unwind_sp): Delete.
13706 (aarch64_gdbarch_init): Don't register deleted functions with
13707 gdbarch.
13708
13709 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13710
13711 * gdbtypes.c (type_align): Don't consider static members when
13712 computing structure alignment.
13713
13714 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13715
13716 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13717 return 0 for other types.
13718 * arch-utils.c (default_type_align): Always return 0.
13719 * gdbarch.h: Regenerate.
13720 * gdbarch.sh (type_align): Extend comment.
13721 * gdbtypes.c (type_align): Add additional comments, always call
13722 gdbarch_type_align before applying the default rules.
13723 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13724 generic code will then apply a suitable default.
13725 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13726 types, return 0 for other types.
13727
13728 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13729
13730 * NEWS: Create a new section for the next release branch.
13731 Rename the section of the current branch, now that it has
13732 been cut.
13733
13734 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13735
13736 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13737 * version.in: Bump version to 8.3.50.DATE-git.
13738
13739 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13740
13741 * aix-thread.c (ptid_cmp): Remove unused variable.
13742 (get_signaled_thread): Likewise.
13743 (store_regs_user_thread): Likewise.
13744 (store_regs_kernel_thread): Likewise.
13745 (fetch_regs_kernel_thread): Remove shadowed variable.
13746
13747 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 * features/riscv/32bit-cpu.xml: Add register numbers.
13750 * features/riscv/32bit-fpu.c: Regenerate.
13751 * features/riscv/32bit-fpu.xml: Add register numbers.
13752 * features/riscv/64bit-cpu.xml: Add register numbers.
13753 * features/riscv/64bit-fpu.c: Regenerate.
13754 * features/riscv/64bit-fpu.xml: Add register numbers.
13755
13756 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13757
13758 * NEWS: Mention two argument form of gdb.Value constructor.
13759 * python/py-value.c (convert_buffer_and_type_to_value): New
13760 function.
13761 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13762 Add support for handling an optional second argument. Call
13763 convert_buffer_and_type_to_value as appropriate.
13764 * python/python-internal.h (Py_buffer_deleter): New struct.
13765 (Py_buffer_up): New typedef.
13766
13767 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13768
13769 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13770 instead of releasing ownership.
13771
13772 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13773
13774 * dwarf2read.c (open_and_init_dwp_file): Call
13775 elf_numsections instead of bfd_count_sections to initialize
13776 dwp_file->num_sections.
13777
13778 2019-02-25 Tom Tromey <tromey@adacore.com>
13779
13780 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13781
13782 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13783
13784 * gcore.in: Add '--readnever' option when invoking GDB.
13785
13786 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13787
13788 * MAINTAINERS: Update my email address.
13789
13790 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13791
13792 * build-id.c (build_id_to_debug_bfd_1): New function.
13793 (build_id_to_debug_bfd): Look for separate debug file in
13794 sysroot.
13795
13796 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13797
13798 * gdbarch.sh: Update the copyright year range that is placed into
13799 generated files.
13800
13801 2019-02-22 Keith Seitz <keiths@redhat.com>
13802
13803 PR symtab/23853
13804 * linespec.c (create_sals_line_offset): Search for the default
13805 symtab's filename instead of its fullname.
13806
13807 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13808
13809 * NEWS: Update style defaults.
13810
13811 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13812
13813 * main.c (captured_main_1): Disable styling in batch mode.
13814
13815 2019-02-20 Tom Tromey <tom@tromey.com>
13816
13817 * symtab.c (symtab_symbol_info): Fix typos.
13818
13819 2019-02-20 Tom Tromey <tromey@adacore.com>
13820
13821 * findcmd.c (_initialize_mem_search): Use upper case for
13822 metasyntactic variables.
13823
13824 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13825
13826 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13827 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13828
13829 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13830
13831 * top.h (source_file_name): Change to std::string.
13832 * top.c (source_file_name): Likewise.
13833 (command_line_input): Adjust.
13834 * cli/cli-script.c (script_from_file): Adjust.
13835
13836 2019-02-19 Tom Tromey <tromey@adacore.com>
13837
13838 * ravenscar-thread.c
13839 (ravenscar_thread_target::update_thread_list): Don't call
13840 ada_build_task_list.
13841 * ada-lang.h (ada_build_task_list): Don't declare.
13842 * ada-tasks.c (struct ada_tasks_inferior_data)
13843 <task_list_valid_p>: Now bool.
13844 (read_known_tasks, ada_task_list_changed)
13845 (ada_tasks_invalidate_inferior_data): Update.
13846 (read_known_tasks_array): Return bool.
13847 (read_known_tasks_list): Likewise.
13848 (read_known_tasks): Return void.
13849 (ada_build_task_list): Now static.
13850
13851 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13852
13853 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13854 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13855
13856 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13857
13858 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13859 variant for ada_tasks_pspace_data_handle and
13860 ada_tasks_inferior_data_handle.
13861 (ada_tasks_pspace_data_cleanup): New function.
13862 (ada_tasks_inferior_data_cleanup): New function.
13863
13864 2019-02-17 Tom Tromey <tom@tromey.com>
13865
13866 * macrotab.h (macro_source_fullname): Return a std::string.
13867 * macrotab.c (macro_include, check_for_redefinition)
13868 (macro_undef, macro_lookup_definition, foreach_macro)
13869 (foreach_macro_in_scope): Update.
13870 (macro_source_fullname): Return a std::string.
13871 * macrocmd.c (show_pp_source_pos): Update.
13872
13873 2019-02-17 Tom Tromey <tom@tromey.com>
13874
13875 * macrocmd.c (show_pp_source_pos): Style the file names.
13876
13877 2019-02-17 Tom Tromey <tom@tromey.com>
13878
13879 PR tui/24197:
13880 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13881
13882 2019-02-17 Tom Tromey <tom@tromey.com>
13883
13884 * ada-lang.c (user_select_syms): Use filtered printing.
13885 * utils.c (wrap_style): New global.
13886 (desired_style): Remove.
13887 (emit_style_escape): Add stream parameter.
13888 (set_output_style, reset_terminal_style, prompt_for_continue):
13889 Update.
13890 (flush_wrap_buffer): Only flush gdb_stdout.
13891 (wrap_here): Set wrap_style.
13892 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13893 treat escape sequences as a character. Change when wrap buffer is
13894 flushed.
13895 (fputs_styled): Do not set the output style when the default is
13896 requested.
13897 * ui-style.h (struct ui_file_style) <is_default>: New method.
13898 * source.c (print_source_lines_base): Emit escape sequences in one
13899 piece.
13900
13901 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13902
13903 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13904 integers and enumeration types.
13905
13906 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13907
13908 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13909 instead of lookup_symbol_in_language
13910 (do_exact_match): New function.
13911 (ada_get_symbol_name_matcher): Return do_exact_match when
13912 doing a verbatim match.
13913
13914 2019-02-15 Tom Tromey <tromey@adacore.com>
13915
13916 * ravenscar-thread.c (ravenscar_thread_target::resume)
13917 (ravenscar_thread_target::wait): Special case wildcard requests.
13918
13919 2019-02-15 Tom Tromey <tromey@adacore.com>
13920
13921 * ravenscar-thread.c (base_ptid): Remove.
13922 (struct ravenscar_thread_target) <close>: New method.
13923 <m_base_ptid>: New member.
13924 <update_inferior_ptid, active_task, task_is_currently_active,
13925 runtime_initialized>: Declare methods.
13926 <ravenscar_thread_target>: Add constructor.
13927 (ravenscar_thread_target::task_is_currently_active)
13928 (ravenscar_thread_target::update_inferior_ptid)
13929 (ravenscar_runtime_initialized): Rename. Now methods.
13930 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13931 (ravenscar_thread_target::update_thread_list): Update.
13932 (ravenscar_thread_target::active_task): Now method.
13933 (ravenscar_thread_target::store_registers)
13934 (ravenscar_thread_target::prepare_to_store)
13935 (ravenscar_thread_target::prepare_to_store)
13936 (ravenscar_thread_target::mourn_inferior): Update.
13937 (ravenscar_inferior_created): Use "new" to create target.
13938 (ravenscar_thread_target::get_ada_task_ptid): Update.
13939 (_initialize_ravenscar): Don't initialize base_ptid.
13940 (ravenscar_ops): Remove global.
13941
13942 2019-02-15 Tom Tromey <tromey@adacore.com>
13943
13944 * target.h (push_target): Declare new overload.
13945 * target.c (push_target): New overload, taking an rvalue reference.
13946 * remote.c (remote_target::open_1): Use push_target overload.
13947 * corelow.c (core_target_open): Use push_target overload.
13948
13949 2019-02-15 Tom Tromey <tromey@adacore.com>
13950
13951 * ravenscar-thread.c (is_ravenscar_task)
13952 (ravenscar_task_is_currently_active): Return bool.
13953 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13954 (_initialize_ravenscar): Remove "(void)".
13955 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13956 Return bool.
13957
13958 2019-02-15 Tom Tromey <tromey@adacore.com>
13959
13960 * ravenscar-thread.c (ravenscar_runtime_initializer)
13961 (has_ravenscar_runtime, get_running_thread_id)
13962 (ravenscar_thread_target::resume): Fix indentation.
13963
13964 2019-02-15 Tom Tromey <tromey@adacore.com>
13965
13966 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13967 from ravenscar_arch_ops.
13968 (sparc_ravenscar_ops::fetch_registers)
13969 (sparc_ravenscar_ops::store_registers): Now methods.
13970 (sparc_ravenscar_prepare_to_store): Remove.
13971 (sparc_ravenscar_ops): Redefine.
13972 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13973 methods and destructor. Remove members.
13974 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13975 (ravenscar_thread_target::store_registers)
13976 (ravenscar_thread_target::prepare_to_store): Update.
13977 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13978 Remove.
13979 (struct ppc_ravenscar_powerpc_ops): Derive from
13980 ravenscar_arch_ops.
13981 (ppc_ravenscar_powerpc_ops::fetch_registers)
13982 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13983 (ppc_ravenscar_powerpc_ops): Redefine.
13984 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13985 (ppc_ravenscar_e500_ops::fetch_registers)
13986 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13987 (ppc_ravenscar_e500_ops): Redefine.
13988 * aarch64-ravenscar-thread.c
13989 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13990 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13991 (aarch64_ravenscar_fetch_registers)
13992 (aarch64_ravenscar_store_registers): Now methods.
13993 (aarch64_ravenscar_ops): Redefine.
13994
13995 2019-02-15 Tom Tromey <tromey@adacore.com>
13996
13997 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13998 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13999 (ravenscar_thread_target::stopped_by_watchpoint)
14000 (ravenscar_thread_target::stopped_data_address)
14001 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14002
14003 2019-02-15 Tom Tromey <tromey@adacore.com>
14004
14005 * ravenscar-thread.c: Fix some typos.
14006
14007 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14008 Tom Tromey <tromey@adacore.com>
14009
14010 * ada-lang.c (ada_exception_sal): Change addr_string to a
14011 std::string.
14012 (create_ada_exception_catchpoint): Update.
14013
14014 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14015 Tom Tromey <tromey@adacore.com>
14016
14017 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14018 (bp_location_ops): Remove.
14019 (base_breakpoint_allocate_location): Update.
14020 (free_bp_location): Update.
14021 * ada-lang.c (class ada_catchpoint_location)
14022 <ada_catchpoint_location>: Remove ops parameter.
14023 (ada_catchpoint_location_dtor): Remove.
14024 (ada_catchpoint_location_ops): Remove.
14025 (allocate_location_exception): Update.
14026 * breakpoint.h (struct bp_location_ops): Remove.
14027 (class bp_location) <bp_location>: Remove bp_location_ops
14028 parameter.
14029 <~bp_location>: Add destructor.
14030 <ops>: Remove.
14031
14032 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14033 Pedro Alves <palves@redhat.com>
14034
14035 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14036 'PATH_MAX'.
14037
14038 2019-02-14 David Michael <fedora.dm0@gmail.com>
14039 Samuel Thibault <samuel.thibault@gnu.org>
14040 Thomas Schwinge <thomas@codesourcery.com>
14041
14042 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14043 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14044
14045 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14046
14047 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14048 (check_empty): Use "const char *".
14049
14050 * gnu-nat.c (gnu_nat_target::detach): Instead of
14051 'detach_inferior (pid)' call
14052 'detach_inferior (find_inferior_pid (pid))'.
14053
14054 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14055 'nat/fork-inferior.o'.
14056 * gnu-nat.c: #include "nat/fork-inferior.h".
14057
14058 * gnu-nat.c (gnu_nat_target::detach): Instead of
14059 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14060 * gnu-nat.h: #include "inf-child.h".
14061 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14062 'i386_gnu_nat_target::fetch_registers'.
14063 (gnu_store_registers): Rename/move to
14064 'i386_gnu_nat_target::store_registers'.
14065
14066 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14067 * gnu-nat.h (mach_thread_info): New function.
14068 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14069
14070 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14071
14072 2019-02-14 Frederic Konrad <konrad@adacore.com>
14073
14074 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14075
14076 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14077
14078 * windows-nat.c (windows_add_thread): Add new parameter
14079 "main_thread_p" with default value set to false. Update
14080 function documentation as well as all callers.
14081 (windows_delete_thread): Likewise.
14082 (fake_create_process): Update call to windows_add_thread.
14083 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14084 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14085 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14086 call to windows_delete_thread.
14087
14088 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14089
14090 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14091
14092 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14093
14094 * symfile.c (find_separate_debug_file): Use canonical path of
14095 sysroot with child_path instead of gdb_sysroot if it is valid.
14096
14097 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14098
14099 * symfile.c (find_separate_debug_file): Use child_path to
14100 determine if an object file is under a sysroot.
14101
14102 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14103
14104 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14105 unittests/child-path-selftests.c.
14106 * common/pathstuff.c (child_path): New function.
14107 * common/pathstuff.h (child_path): New prototype.
14108 * unittests/child-path-selftests.c: New file.
14109
14110 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14111
14112 * symfile.c (find_separate_debug_file): Look for separate debug
14113 files in debug directories under the sysroot.
14114
14115 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14116
14117 * symtab.h (struct minimal_symbol data_p): New const method.
14118 (struct minimal_symbol text_p): Likewise.
14119 * symtab.c (output_source_filename): Use file name style
14120 to print file name.
14121 (print_symbol_info): Likewise.
14122 (print_msymbol_info): Use address style to print addresses.
14123 Use function name style to print executable text symbols.
14124 (expand_symtab_containing_pc): Use data_p.
14125 (find_pc_sect_compunit_symtab): Likewise.
14126
14127 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14128
14129 * breakpoint.c (describe_other_breakpoints): Use address style
14130 to print addresses.
14131 (say_where): Likewise.
14132
14133 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14134
14135 * ada-typeprint.c (print_func_type): Print function name
14136 style to print function name.
14137 * c-typeprint.c (c_print_type_1): Likewise.
14138
14139 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14140
14141 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14142 for execve.
14143
14144 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14145
14146 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14147 type_stack.
14148
14149 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14150
14151 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14152 TYPE_CODE_REF types.
14153
14154 2019-02-08 Jim Wilson <jimw@sifive.com>
14155
14156 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14157 (riscv_linux_fregset): New.
14158 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14159
14160 2019-02-07 Tom Tromey <tom@tromey.com>
14161
14162 * thread.c (thread_cancel_execution_command): Update.
14163 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14164 methods.
14165 (struct thread_fsm_ops): Remove.
14166 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14167 (thread_fsm_should_stop, thread_fsm_return_value)
14168 (thread_fsm_set_finished, thread_fsm_finished_p)
14169 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14170 Don't declare.
14171 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14172 * infrun.c (clear_proceed_status_thread)
14173 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14174 (print_stop_event): Update.
14175 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14176 Add constructor.
14177 (step_command_fsm_ops): Remove.
14178 (new_step_command_fsm): Remove.
14179 (step_1): Update.
14180 (step_command_fsm::should_stop): Rename from
14181 step_command_fsm_should_stop.
14182 (step_command_fsm::clean_up): Rename from
14183 step_command_fsm_clean_up.
14184 (step_command_fsm::do_async_reply_reason): Rename from
14185 step_command_fsm_async_reply_reason.
14186 (struct until_next_fsm): Inherit from thread_fsm. Add
14187 constructor.
14188 (until_next_fsm_ops): Remove.
14189 (new_until_next_fsm): Remove.
14190 (until_next_fsm::should_stop): Rename from
14191 until_next_fsm_should_stop.
14192 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14193 (until_next_fsm::do_async_reply_reason): Rename from
14194 until_next_fsm_async_reply_reason.
14195 (struct finish_command_fsm): Inherit from thread_fsm. Add
14196 constructor. Change type of breakpoint.
14197 (finish_command_fsm_ops): Remove.
14198 (new_finish_command_fsm): Remove.
14199 (finish_command_fsm::should_stop): Rename from
14200 finish_command_fsm_should_stop.
14201 (finish_command_fsm::clean_up): Rename from
14202 finish_command_fsm_clean_up.
14203 (finish_command_fsm::return_value): Rename from
14204 finish_command_fsm_return_value.
14205 (finish_command_fsm::do_async_reply_reason): Rename from
14206 finish_command_fsm_async_reply_reason.
14207 (finish_command): Update.
14208 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14209 Add constructor.
14210 (call_thread_fsm_ops): Remove.
14211 (call_thread_fsm::call_thread_fsm): Rename from
14212 new_call_thread_fsm.
14213 (call_thread_fsm::should_stop): Rename from
14214 call_thread_fsm_should_stop.
14215 (call_thread_fsm::should_notify_stop): Rename from
14216 call_thread_fsm_should_notify_stop.
14217 (run_inferior_call, call_function_by_hand_dummy): Update.
14218 * cli/cli-interp.c (should_print_stop_to_console): Update.
14219 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14220 Add constructor. Change type of location_breakpoint,
14221 caller_breakpoint.
14222 (until_break_fsm_ops): Remove.
14223 (new_until_break_fsm): Remove.
14224 (until_break_fsm::should_stop): Rename from
14225 until_break_fsm_should_stop.
14226 (until_break_fsm::clean_up): Rename from
14227 until_break_fsm_clean_up.
14228 (until_break_fsm::do_async_reply_reason): Rename from
14229 until_break_fsm_async_reply_reason.
14230 (until_break_command): Update.
14231 * thread-fsm.c: Remove.
14232 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14233
14234 2019-02-07 Tom Tromey <tom@tromey.com>
14235
14236 * yy-remap.h: Add include guard.
14237 * xtensa-tdep.h: Add include guard.
14238 * xcoffread.h: Rename include guard.
14239 * varobj-iter.h: Add include guard.
14240 * tui/tui.h: Rename include guard.
14241 * tui/tui-winsource.h: Rename include guard.
14242 * tui/tui-wingeneral.h: Rename include guard.
14243 * tui/tui-windata.h: Rename include guard.
14244 * tui/tui-win.h: Rename include guard.
14245 * tui/tui-stack.h: Rename include guard.
14246 * tui/tui-source.h: Rename include guard.
14247 * tui/tui-regs.h: Rename include guard.
14248 * tui/tui-out.h: Rename include guard.
14249 * tui/tui-layout.h: Rename include guard.
14250 * tui/tui-io.h: Rename include guard.
14251 * tui/tui-hooks.h: Rename include guard.
14252 * tui/tui-file.h: Rename include guard.
14253 * tui/tui-disasm.h: Rename include guard.
14254 * tui/tui-data.h: Rename include guard.
14255 * tui/tui-command.h: Rename include guard.
14256 * tic6x-tdep.h: Add include guard.
14257 * target/waitstatus.h: Rename include guard.
14258 * target/wait.h: Rename include guard.
14259 * target/target.h: Rename include guard.
14260 * target/resume.h: Rename include guard.
14261 * target-float.h: Rename include guard.
14262 * stabsread.h: Add include guard.
14263 * rs6000-tdep.h: Add include guard.
14264 * riscv-fbsd-tdep.h: Add include guard.
14265 * regformats/regdef.h: Rename include guard.
14266 * record.h: Rename include guard.
14267 * python/python.h: Rename include guard.
14268 * python/python-internal.h: Rename include guard.
14269 * python/py-stopevent.h: Rename include guard.
14270 * python/py-ref.h: Rename include guard.
14271 * python/py-record.h: Rename include guard.
14272 * python/py-record-full.h: Rename include guard.
14273 * python/py-record-btrace.h: Rename include guard.
14274 * python/py-instruction.h: Rename include guard.
14275 * python/py-events.h: Rename include guard.
14276 * python/py-event.h: Rename include guard.
14277 * procfs.h: Add include guard.
14278 * proc-utils.h: Add include guard.
14279 * p-lang.h: Add include guard.
14280 * or1k-tdep.h: Rename include guard.
14281 * observable.h: Rename include guard.
14282 * nto-tdep.h: Rename include guard.
14283 * nat/x86-linux.h: Rename include guard.
14284 * nat/x86-linux-dregs.h: Rename include guard.
14285 * nat/x86-gcc-cpuid.h: Add include guard.
14286 * nat/x86-dregs.h: Rename include guard.
14287 * nat/x86-cpuid.h: Rename include guard.
14288 * nat/ppc-linux.h: Rename include guard.
14289 * nat/mips-linux-watch.h: Rename include guard.
14290 * nat/linux-waitpid.h: Rename include guard.
14291 * nat/linux-ptrace.h: Rename include guard.
14292 * nat/linux-procfs.h: Rename include guard.
14293 * nat/linux-osdata.h: Rename include guard.
14294 * nat/linux-nat.h: Rename include guard.
14295 * nat/linux-namespaces.h: Rename include guard.
14296 * nat/linux-btrace.h: Rename include guard.
14297 * nat/glibc_thread_db.h: Rename include guard.
14298 * nat/gdb_thread_db.h: Rename include guard.
14299 * nat/gdb_ptrace.h: Rename include guard.
14300 * nat/fork-inferior.h: Rename include guard.
14301 * nat/amd64-linux-siginfo.h: Rename include guard.
14302 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14303 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14304 * nat/aarch64-linux.h: Rename include guard.
14305 * nat/aarch64-linux-hw-point.h: Rename include guard.
14306 * mn10300-tdep.h: Add include guard.
14307 * mips-linux-tdep.h: Add include guard.
14308 * mi/mi-parse.h: Rename include guard.
14309 * mi/mi-out.h: Rename include guard.
14310 * mi/mi-main.h: Rename include guard.
14311 * mi/mi-interp.h: Rename include guard.
14312 * mi/mi-getopt.h: Rename include guard.
14313 * mi/mi-console.h: Rename include guard.
14314 * mi/mi-common.h: Rename include guard.
14315 * mi/mi-cmds.h: Rename include guard.
14316 * mi/mi-cmd-break.h: Rename include guard.
14317 * m2-lang.h: Add include guard.
14318 * location.h: Rename include guard.
14319 * linux-record.h: Rename include guard.
14320 * linux-nat.h: Add include guard.
14321 * linux-fork.h: Add include guard.
14322 * i386-darwin-tdep.h: Rename include guard.
14323 * hppa-linux-offsets.h: Add include guard.
14324 * guile/guile.h: Rename include guard.
14325 * guile/guile-internal.h: Rename include guard.
14326 * gnu-nat.h: Rename include guard.
14327 * gdb-stabs.h: Rename include guard.
14328 * frv-tdep.h: Add include guard.
14329 * f-lang.h: Add include guard.
14330 * event-loop.h: Add include guard.
14331 * darwin-nat.h: Rename include guard.
14332 * cp-abi.h: Rename include guard.
14333 * config/sparc/nm-sol2.h: Rename include guard.
14334 * config/nm-nto.h: Rename include guard.
14335 * config/nm-linux.h: Add include guard.
14336 * config/i386/nm-i386gnu.h: Rename include guard.
14337 * config/djgpp/nl_types.h: Rename include guard.
14338 * config/djgpp/langinfo.h: Rename include guard.
14339 * compile/gcc-cp-plugin.h: Add include guard.
14340 * compile/gcc-c-plugin.h: Add include guard.
14341 * compile/compile.h: Rename include guard.
14342 * compile/compile-object-run.h: Rename include guard.
14343 * compile/compile-object-load.h: Rename include guard.
14344 * compile/compile-internal.h: Rename include guard.
14345 * compile/compile-cplus.h: Rename include guard.
14346 * compile/compile-c.h: Rename include guard.
14347 * common/xml-utils.h: Rename include guard.
14348 * common/x86-xstate.h: Rename include guard.
14349 * common/version.h: Rename include guard.
14350 * common/vec.h: Rename include guard.
14351 * common/tdesc.h: Rename include guard.
14352 * common/selftest.h: Rename include guard.
14353 * common/scoped_restore.h: Rename include guard.
14354 * common/scoped_mmap.h: Rename include guard.
14355 * common/scoped_fd.h: Rename include guard.
14356 * common/safe-iterator.h: Rename include guard.
14357 * common/run-time-clock.h: Rename include guard.
14358 * common/refcounted-object.h: Rename include guard.
14359 * common/queue.h: Rename include guard.
14360 * common/ptid.h: Rename include guard.
14361 * common/print-utils.h: Rename include guard.
14362 * common/preprocessor.h: Rename include guard.
14363 * common/pathstuff.h: Rename include guard.
14364 * common/observable.h: Rename include guard.
14365 * common/netstuff.h: Rename include guard.
14366 * common/job-control.h: Rename include guard.
14367 * common/host-defs.h: Rename include guard.
14368 * common/gdb_wait.h: Rename include guard.
14369 * common/gdb_vecs.h: Rename include guard.
14370 * common/gdb_unlinker.h: Rename include guard.
14371 * common/gdb_unique_ptr.h: Rename include guard.
14372 * common/gdb_tilde_expand.h: Rename include guard.
14373 * common/gdb_sys_time.h: Rename include guard.
14374 * common/gdb_string_view.h: Rename include guard.
14375 * common/gdb_splay_tree.h: Rename include guard.
14376 * common/gdb_setjmp.h: Rename include guard.
14377 * common/gdb_ref_ptr.h: Rename include guard.
14378 * common/gdb_optional.h: Rename include guard.
14379 * common/gdb_locale.h: Rename include guard.
14380 * common/gdb_assert.h: Rename include guard.
14381 * common/filtered-iterator.h: Rename include guard.
14382 * common/filestuff.h: Rename include guard.
14383 * common/fileio.h: Rename include guard.
14384 * common/environ.h: Rename include guard.
14385 * common/common-utils.h: Rename include guard.
14386 * common/common-types.h: Rename include guard.
14387 * common/common-regcache.h: Rename include guard.
14388 * common/common-inferior.h: Rename include guard.
14389 * common/common-gdbthread.h: Rename include guard.
14390 * common/common-exceptions.h: Rename include guard.
14391 * common/common-defs.h: Rename include guard.
14392 * common/common-debug.h: Rename include guard.
14393 * common/cleanups.h: Rename include guard.
14394 * common/buffer.h: Rename include guard.
14395 * common/btrace-common.h: Rename include guard.
14396 * common/break-common.h: Rename include guard.
14397 * cli/cli-utils.h: Rename include guard.
14398 * cli/cli-style.h: Rename include guard.
14399 * cli/cli-setshow.h: Rename include guard.
14400 * cli/cli-script.h: Rename include guard.
14401 * cli/cli-interp.h: Rename include guard.
14402 * cli/cli-decode.h: Rename include guard.
14403 * cli/cli-cmds.h: Rename include guard.
14404 * charset-list.h: Add include guard.
14405 * buildsym-legacy.h: Rename include guard.
14406 * bfin-tdep.h: Add include guard.
14407 * ax.h: Rename include guard.
14408 * arm-linux-tdep.h: Add include guard.
14409 * arm-fbsd-tdep.h: Add include guard.
14410 * arch/xtensa.h: Rename include guard.
14411 * arch/tic6x.h: Add include guard.
14412 * arch/i386.h: Add include guard.
14413 * arch/arm.h: Rename include guard.
14414 * arch/arm-linux.h: Rename include guard.
14415 * arch/arm-get-next-pcs.h: Rename include guard.
14416 * arch/amd64.h: Add include guard.
14417 * arch/aarch64-insn.h: Rename include guard.
14418 * arch-utils.h: Rename include guard.
14419 * annotate.h: Add include guard.
14420 * amd64-darwin-tdep.h: Rename include guard.
14421 * aarch64-linux-tdep.h: Add include guard.
14422 * aarch64-fbsd-tdep.h: Add include guard.
14423 * aarch32-linux-nat.h: Add include guard.
14424
14425 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14426
14427 * macrotab.c (macro_define_internal): New function that
14428 factorizes macro_define_object_internal and macro_define_function
14429 code.
14430 (macro_define_object_internal): Use macro_define_internal.
14431 (macro_define_function): Likewise.
14432
14433 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14434
14435 * macrocmd.c (extract_identifier): Return
14436 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14437 callers.
14438
14439 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14440
14441 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14442
14443 2019-02-05 Tom Tromey <tom@tromey.com>
14444
14445 * target.c (target_stack::unpush): Move assertion earlier.
14446
14447 2019-01-30 Tom Tromey <tom@tromey.com>
14448
14449 PR python/23615:
14450 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14451 (gdbpy_parse_and_eval): Likewise.
14452 * python/python-internal.h (gdbpy_allow_threads): New class.
14453
14454 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14455
14456 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14457 (aarch64_fbsd_fpregmap): Move earlier.
14458 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14459 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14460 instead of individual calls to trad_frame_set_reg_addr.
14461 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14462 earlier.
14463 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14464 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14465 instead of individual calls to trad_frame_set_reg_addr.
14466
14467 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14468
14469 * CONTRIBUTE: Replace contribution list with wiki link.
14470
14471 2019-01-25 Tom Tromey <tom@tromey.com>
14472
14473 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14474
14475 2019-01-25 Tom Tromey <tom@tromey.com>
14476
14477 * xtensa-linux-nat.c: Fix common/ includes.
14478 * xml-support.h: Fix common/ includes.
14479 * xml-support.c: Fix common/ includes.
14480 * x86-linux-nat.c: Fix common/ includes.
14481 * windows-nat.c: Fix common/ includes.
14482 * varobj.h: Fix common/ includes.
14483 * varobj.c: Fix common/ includes.
14484 * value.c: Fix common/ includes.
14485 * valops.c: Fix common/ includes.
14486 * utils.c: Fix common/ includes.
14487 * unittests/xml-utils-selftests.c: Fix common/ includes.
14488 * unittests/utils-selftests.c: Fix common/ includes.
14489 * unittests/unpack-selftests.c: Fix common/ includes.
14490 * unittests/tracepoint-selftests.c: Fix common/ includes.
14491 * unittests/style-selftests.c: Fix common/ includes.
14492 * unittests/string_view-selftests.c: Fix common/ includes.
14493 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14494 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14495 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14496 * unittests/rsp-low-selftests.c: Fix common/ includes.
14497 * unittests/parse-connection-spec-selftests.c: Fix common/
14498 includes.
14499 * unittests/optional-selftests.c: Fix common/ includes.
14500 * unittests/offset-type-selftests.c: Fix common/ includes.
14501 * unittests/observable-selftests.c: Fix common/ includes.
14502 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14503 * unittests/memrange-selftests.c: Fix common/ includes.
14504 * unittests/memory-map-selftests.c: Fix common/ includes.
14505 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14506 * unittests/function-view-selftests.c: Fix common/ includes.
14507 * unittests/environ-selftests.c: Fix common/ includes.
14508 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14509 * unittests/common-utils-selftests.c: Fix common/ includes.
14510 * unittests/cli-utils-selftests.c: Fix common/ includes.
14511 * unittests/array-view-selftests.c: Fix common/ includes.
14512 * ui-file.c: Fix common/ includes.
14513 * tui/tui-io.c: Fix common/ includes.
14514 * tracepoint.h: Fix common/ includes.
14515 * tracepoint.c: Fix common/ includes.
14516 * tracefile-tfile.c: Fix common/ includes.
14517 * top.h: Fix common/ includes.
14518 * top.c: Fix common/ includes.
14519 * thread.c: Fix common/ includes.
14520 * target/waitstatus.h: Fix common/ includes.
14521 * target/waitstatus.c: Fix common/ includes.
14522 * target.h: Fix common/ includes.
14523 * target.c: Fix common/ includes.
14524 * target-memory.c: Fix common/ includes.
14525 * target-descriptions.c: Fix common/ includes.
14526 * symtab.h: Fix common/ includes.
14527 * symfile.c: Fix common/ includes.
14528 * stap-probe.c: Fix common/ includes.
14529 * spu-linux-nat.c: Fix common/ includes.
14530 * sparc-nat.c: Fix common/ includes.
14531 * source.c: Fix common/ includes.
14532 * solib.c: Fix common/ includes.
14533 * solib-target.c: Fix common/ includes.
14534 * ser-unix.c: Fix common/ includes.
14535 * ser-tcp.c: Fix common/ includes.
14536 * ser-pipe.c: Fix common/ includes.
14537 * ser-base.c: Fix common/ includes.
14538 * selftest-arch.c: Fix common/ includes.
14539 * s12z-tdep.c: Fix common/ includes.
14540 * rust-exp.y: Fix common/ includes.
14541 * rs6000-aix-tdep.c: Fix common/ includes.
14542 * riscv-tdep.c: Fix common/ includes.
14543 * remote.c: Fix common/ includes.
14544 * remote-notif.h: Fix common/ includes.
14545 * remote-fileio.h: Fix common/ includes.
14546 * remote-fileio.c: Fix common/ includes.
14547 * regcache.h: Fix common/ includes.
14548 * regcache.c: Fix common/ includes.
14549 * record-btrace.c: Fix common/ includes.
14550 * python/python.c: Fix common/ includes.
14551 * python/py-type.c: Fix common/ includes.
14552 * python/py-inferior.c: Fix common/ includes.
14553 * progspace.h: Fix common/ includes.
14554 * producer.c: Fix common/ includes.
14555 * procfs.c: Fix common/ includes.
14556 * proc-api.c: Fix common/ includes.
14557 * printcmd.c: Fix common/ includes.
14558 * ppc-linux-nat.c: Fix common/ includes.
14559 * parser-defs.h: Fix common/ includes.
14560 * osdata.c: Fix common/ includes.
14561 * obsd-nat.c: Fix common/ includes.
14562 * nat/x86-linux.c: Fix common/ includes.
14563 * nat/x86-linux-dregs.c: Fix common/ includes.
14564 * nat/x86-dregs.h: Fix common/ includes.
14565 * nat/x86-dregs.c: Fix common/ includes.
14566 * nat/ppc-linux.c: Fix common/ includes.
14567 * nat/mips-linux-watch.h: Fix common/ includes.
14568 * nat/mips-linux-watch.c: Fix common/ includes.
14569 * nat/linux-waitpid.c: Fix common/ includes.
14570 * nat/linux-ptrace.h: Fix common/ includes.
14571 * nat/linux-ptrace.c: Fix common/ includes.
14572 * nat/linux-procfs.c: Fix common/ includes.
14573 * nat/linux-personality.c: Fix common/ includes.
14574 * nat/linux-osdata.c: Fix common/ includes.
14575 * nat/linux-namespaces.c: Fix common/ includes.
14576 * nat/linux-btrace.h: Fix common/ includes.
14577 * nat/linux-btrace.c: Fix common/ includes.
14578 * nat/fork-inferior.c: Fix common/ includes.
14579 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14580 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14581 * nat/aarch64-linux.c: Fix common/ includes.
14582 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14583 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14584 * namespace.h: Fix common/ includes.
14585 * mips-linux-tdep.c: Fix common/ includes.
14586 * minsyms.c: Fix common/ includes.
14587 * mi/mi-parse.h: Fix common/ includes.
14588 * mi/mi-main.c: Fix common/ includes.
14589 * mi/mi-cmd-env.c: Fix common/ includes.
14590 * memrange.h: Fix common/ includes.
14591 * memattr.c: Fix common/ includes.
14592 * maint.h: Fix common/ includes.
14593 * maint.c: Fix common/ includes.
14594 * main.c: Fix common/ includes.
14595 * machoread.c: Fix common/ includes.
14596 * location.c: Fix common/ includes.
14597 * linux-thread-db.c: Fix common/ includes.
14598 * linux-nat.c: Fix common/ includes.
14599 * linux-fork.c: Fix common/ includes.
14600 * inline-frame.c: Fix common/ includes.
14601 * infrun.c: Fix common/ includes.
14602 * inflow.c: Fix common/ includes.
14603 * inferior.h: Fix common/ includes.
14604 * inferior.c: Fix common/ includes.
14605 * infcmd.c: Fix common/ includes.
14606 * inf-ptrace.c: Fix common/ includes.
14607 * inf-child.c: Fix common/ includes.
14608 * ia64-linux-nat.c: Fix common/ includes.
14609 * i387-tdep.c: Fix common/ includes.
14610 * i386-tdep.c: Fix common/ includes.
14611 * i386-linux-tdep.c: Fix common/ includes.
14612 * i386-linux-nat.c: Fix common/ includes.
14613 * i386-go32-tdep.c: Fix common/ includes.
14614 * i386-fbsd-tdep.c: Fix common/ includes.
14615 * i386-fbsd-nat.c: Fix common/ includes.
14616 * guile/scm-type.c: Fix common/ includes.
14617 * guile/guile.c: Fix common/ includes.
14618 * go32-nat.c: Fix common/ includes.
14619 * gnu-nat.c: Fix common/ includes.
14620 * gdbthread.h: Fix common/ includes.
14621 * gdbarch-selftests.c: Fix common/ includes.
14622 * gdb_usleep.c: Fix common/ includes.
14623 * gdb_select.h: Fix common/ includes.
14624 * gdb_bfd.c: Fix common/ includes.
14625 * gcore.c: Fix common/ includes.
14626 * fork-child.c: Fix common/ includes.
14627 * findvar.c: Fix common/ includes.
14628 * fbsd-nat.c: Fix common/ includes.
14629 * event-top.c: Fix common/ includes.
14630 * event-loop.c: Fix common/ includes.
14631 * dwarf2read.c: Fix common/ includes.
14632 * dwarf2loc.c: Fix common/ includes.
14633 * dwarf2-frame.c: Fix common/ includes.
14634 * dwarf-index-cache.c: Fix common/ includes.
14635 * dtrace-probe.c: Fix common/ includes.
14636 * disasm-selftests.c: Fix common/ includes.
14637 * defs.h: Fix common/ includes.
14638 * csky-tdep.c: Fix common/ includes.
14639 * cp-valprint.c: Fix common/ includes.
14640 * cp-support.h: Fix common/ includes.
14641 * cp-support.c: Fix common/ includes.
14642 * corelow.c: Fix common/ includes.
14643 * completer.h: Fix common/ includes.
14644 * completer.c: Fix common/ includes.
14645 * compile/compile.c: Fix common/ includes.
14646 * compile/compile-loc2c.c: Fix common/ includes.
14647 * compile/compile-cplus-types.c: Fix common/ includes.
14648 * compile/compile-cplus-symbols.c: Fix common/ includes.
14649 * command.h: Fix common/ includes.
14650 * cli/cli-dump.c: Fix common/ includes.
14651 * cli/cli-cmds.c: Fix common/ includes.
14652 * charset.c: Fix common/ includes.
14653 * build-id.c: Fix common/ includes.
14654 * btrace.h: Fix common/ includes.
14655 * btrace.c: Fix common/ includes.
14656 * breakpoint.h: Fix common/ includes.
14657 * breakpoint.c: Fix common/ includes.
14658 * ax.h:
14659 (enum agent_op): Fix common/ includes.
14660 * ax-general.c (struct aop_map): Fix common/ includes.
14661 * ax-gdb.c: Fix common/ includes.
14662 * auxv.c: Fix common/ includes.
14663 * auto-load.c: Fix common/ includes.
14664 * arm-tdep.c: Fix common/ includes.
14665 * arch/riscv.c: Fix common/ includes.
14666 * arch/ppc-linux-common.c: Fix common/ includes.
14667 * arch/i386.c: Fix common/ includes.
14668 * arch/arm.c: Fix common/ includes.
14669 * arch/arm-linux.c: Fix common/ includes.
14670 * arch/arm-get-next-pcs.c: Fix common/ includes.
14671 * arch/amd64.c: Fix common/ includes.
14672 * arch/aarch64.c: Fix common/ includes.
14673 * arch/aarch64-insn.c: Fix common/ includes.
14674 * arch-utils.c: Fix common/ includes.
14675 * amd64-windows-tdep.c: Fix common/ includes.
14676 * amd64-tdep.c: Fix common/ includes.
14677 * amd64-sol2-tdep.c: Fix common/ includes.
14678 * amd64-obsd-tdep.c: Fix common/ includes.
14679 * amd64-nbsd-tdep.c: Fix common/ includes.
14680 * amd64-linux-tdep.c: Fix common/ includes.
14681 * amd64-linux-nat.c: Fix common/ includes.
14682 * amd64-fbsd-tdep.c: Fix common/ includes.
14683 * amd64-fbsd-nat.c: Fix common/ includes.
14684 * amd64-dicos-tdep.c: Fix common/ includes.
14685 * amd64-darwin-tdep.c: Fix common/ includes.
14686 * agent.c: Fix common/ includes.
14687 * ada-lang.h: Fix common/ includes.
14688 * ada-lang.c: Fix common/ includes.
14689 * aarch64-tdep.c: Fix common/ includes.
14690
14691 2019-01-25 Tom Tromey <tom@tromey.com>
14692
14693 * common/create-version.sh: Use common/version.h.
14694
14695 2019-01-24 Pedro Alves <palves@redhat.com>
14696
14697 * infrun.c (signal_stop, signal_print, signal_program)
14698 (signal_catch, signal_pass): Now arrays instead of pointers.
14699 (update_signals_program_target, do_target_resume)
14700 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14701 * linux-nat.c (linux_nat_target::pass_signals)
14702 (linux_nat_target::create_inferior, linux_nat_target::attach):
14703 Adjust.
14704 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14705 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14706 * procfs.c (procfs_target::pass_signals): Adjust.
14707 * record-full.c (record_full_target::resume): Adjust.
14708 * remote.c (remote_target::pass_signals)
14709 (remote_target::program_signals): Adjust.
14710 * target-debug.h (target_debug_print_signals): Now takes a
14711 gdb::array_view as parameter. Adjust.
14712 * target.h (target_ops) <pass_signals, program_signals>: Replace
14713 pointer and length parameters with gdb::array_view.
14714 (target_pass_signals, target_program_signals): Likewise.
14715 * target-delegates.c: Regenerate.
14716
14717 2019-01-24 Pedro Alves <palves@redhat.com>
14718
14719 * common/forward-scope-exit.h
14720 (forward_scope_exit::forward_scope_exit): Pass arguments to
14721 m_bind_function directly, instead of creating a std::bind and
14722 copying that.
14723
14724 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14725
14726 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14727 for static members.
14728 (pass_in_v_vfp_candidate): Likewise.
14729
14730 2019-01-23 Tom Tromey <tom@tromey.com>
14731 Pedro Alves <palves@redhat.com>
14732
14733 * regcache.c (class regcache_invalidator): Remove.
14734 (regcache::raw_write): Use make_scope_exit.
14735
14736 2019-01-23 Tom Tromey <tom@tromey.com>
14737
14738 * ui-out.h (class ui_out_emit_type): Update comment.
14739
14740 2019-01-23 Tom Tromey <tom@tromey.com>
14741
14742 * infrun.c (fetch_inferior_event): Update comment.
14743
14744 2019-01-23 Tom Tromey <tom@tromey.com>
14745 Pedro Alves <palves@redhat.com>
14746
14747 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14748 parameter.
14749 (fetch_inferior_event): Use SCOPE_EXIT.
14750
14751
14752 2019-01-23 Tom Tromey <tom@tromey.com>
14753 Pedro Alves <palves@redhat.com>
14754
14755 * infrun.c (disable_thread_events): Delete.
14756 (stop_all_threads): Use SCOPE_EXIT.
14757
14758 2019-01-23 Tom Tromey <tom@tromey.com>
14759 Pedro Alves <palves@redhat.com>
14760
14761 * symfile.c: Include forward-scope-exit.h.
14762 (clear_symtab_users_cleanup): Replace forward declaration with
14763 a FORWARD_SCOPE_EXIT.
14764 (syms_from_objfile_1): Use the forward_scope_exit and
14765 gdb::optional instead of cleanup_function.
14766 (reread_symbols): Use the forward_scope_exit instead of
14767 cleanup_function.
14768 (clear_symtab_users_cleanup): Remove function.
14769
14770 2019-01-23 Tom Tromey <tom@tromey.com>
14771 Pedro Alves <palves@redhat.com>
14772
14773 * linux-nat.c: Include scope-exit.h.
14774 (cleanup_target_stop): Remove.
14775 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14776 SCOPE_EXIT.
14777
14778 2019-01-23 Tom Tromey <tom@tromey.com>
14779 Pedro Alves <palves@redhat.com>
14780
14781 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14782 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14783
14784 2019-01-23 Tom Tromey <tom@tromey.com>
14785 Andrew Burgess <andrew.burgess@embecosm.com>
14786 Pedro Alves <palves@redhat.com>
14787
14788 * infrun.c (fetch_inferior_event): Use scope_exit.
14789 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14790 * top.c (execute_command): Use scope_exit.
14791 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14792 * utils.c (do_bpstat_clear_actions_cleanup)
14793 (make_bpstat_clear_actions_cleanup): Remove.
14794
14795 2019-01-23 Tom Tromey <tom@tromey.com>
14796 Pedro Alves <palves@redhat.com>
14797
14798 * infrun.c: Include "common/scope-exit.h"
14799 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14800 (wait_for_inferior): Use SCOPE_EXIT.
14801 (fetch_inferior_event): Use scope_exit.
14802
14803 2019-01-23 Tom Tromey <tom@tromey.com>
14804 Pedro Alves <palves@redhat.com>
14805
14806 * breakpoint.c (create_breakpoint): Remove cleanup.
14807
14808 2019-01-23 Tom Tromey <tom@tromey.com>
14809 Andrew Burgess <andrew.burgess@embecosm.com>
14810 Pedro Alves <palves@redhat.com>
14811
14812 2019-01-23 Pedro Alves <palves@redhat.com>
14813
14814 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14815
14816 2019-01-23 Pedro Alves <palves@redhat.com>
14817 Andrew Burgess <andrew.burgess@embecosm.com>
14818
14819 * gdbthread.h: Include "common/forward-scope-exit.h".
14820 (scoped_finish_thread_state): Redefine custom class in terms of
14821 forward_scope_exit.
14822
14823 2019-01-23 Pedro Alves <palves@redhat.com>
14824 Andrew Burgess <andrew.burgess@embecosm.com>
14825
14826 * common/forward-scope-exit.h: New file.
14827
14828 2019-01-23 Pedro Alves <palves@redhat.com>
14829 Andrew Burgess <andrew.burgess@embecosm.com>
14830 Tom Tromey <tom@tromey.com>
14831
14832 * common/scope-exit.h: New file.
14833
14834 2019-01-23 Pedro Alves <palves@redhat.com>
14835
14836 * common/preprocessor.h (ESC): Rename to ...
14837 (ESC_PARENS): ... this.
14838 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14839 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14840
14841 2019-01-23 Tom Tromey <tom@tromey.com>
14842
14843 * language.h (class scoped_switch_to_sym_language_if_auto):
14844 Initialize m_lang in both cases.
14845
14846 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14847
14848 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14849 with XCNEW.
14850
14851 2019-01-22 Tom Tromey <tom@tromey.com>
14852
14853 * corelow.c: Do not include sys/file.h.
14854
14855 2019-01-22 Tom Tromey <tom@tromey.com>
14856
14857 * tui/tui-wingeneral.h: Include gdb_curses.h.
14858
14859 2019-01-22 Tom Tromey <tom@tromey.com>
14860
14861 * source-cache.h (class source_cache) <get_source_lines,
14862 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14863
14864 2019-01-22 Tom Tromey <tom@tromey.com>
14865
14866 * remote-fileio.h (struct remote_target): Declare.
14867
14868 2019-01-22 Tom Tromey <tom@tromey.com>
14869
14870 * python/py-arch.c: Do not include py-ref.h.
14871 * python/py-bpevent.c: Do not include py-ref.h.
14872 * python/py-cmd.c: Do not include py-ref.h.
14873 * python/py-continueevent.c: Do not include py-ref.h.
14874 * python/py-event.h: Do not include py-ref.h.
14875 * python/py-evtregistry.c: Do not include py-ref.h.
14876 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14877 * python/py-frame.c: Do not include py-ref.h.
14878 * python/py-framefilter.c: Do not include py-ref.h.
14879 * python/py-function.c: Do not include py-ref.h.
14880 * python/py-infevents.c: Do not include py-ref.h.
14881 * python/py-linetable.c: Do not include py-ref.h.
14882 * python/py-objfile.c: Do not include py-ref.h.
14883 * python/py-param.c: Do not include py-ref.h.
14884 * python/py-prettyprint.c: Do not include py-ref.h.
14885 * python/py-progspace.c: Do not include py-ref.h.
14886 * python/py-symbol.c: Do not include py-ref.h.
14887 * python/py-symtab.c: Do not include py-ref.h.
14888 * python/py-type.c: Do not include py-ref.h.
14889 * python/py-unwind.c: Do not include py-ref.h.
14890 * python/py-utils.c: Do not include py-ref.h.
14891 * python/py-value.c: Do not include py-ref.h.
14892 * python/py-varobj.c: Do not include py-ref.h.
14893 * python/py-xmethods.c: Do not include py-ref.h.
14894 * python/python.c: Do not include py-ref.h.
14895 * varobj.c: Do not include py-ref.h.
14896
14897 2019-01-22 Tom Tromey <tom@tromey.com>
14898
14899 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14900 keyword for bcache.
14901
14902 2019-01-22 Tom Tromey <tom@tromey.com>
14903
14904 * compile/compile-cplus-types.c: Remove a comment by #include.
14905
14906 2019-01-22 Tom Tromey <tom@tromey.com>
14907
14908 * compile/gcc-c-plugin.h: Include compile-internal.h.
14909
14910 2019-01-22 Tom Tromey <tom@tromey.com>
14911
14912 * stabsread.c (EXTERN): Do not define.
14913 (symnum, next_symbol_text_func, processing_gcc_compilation)
14914 (within_function, global_sym_chain, global_stabs)
14915 (previous_stab_code, this_object_header_files)
14916 (n_this_object_header_files)
14917 (n_allocated_this_object_header_files): Define.
14918 * stabsread.h (EXTERN): Never define. Use "extern".
14919
14920 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14921
14922 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14923 history_value.
14924
14925 2019-01-21 Tom Tromey <tom@tromey.com>
14926
14927 * ui-out.c: Fix includes.
14928 * tui/tui-source.c: Fix includes.
14929 * target.c: Fix includes.
14930 * remote.c: Fix includes.
14931 * regcache.c: Fix includes.
14932 * python/py-block.c: Fix includes.
14933 * printcmd.c: Fix includes.
14934 * or1k-tdep.c: Fix includes.
14935 * mi/mi-main.c: Fix includes.
14936 * m32r-tdep.c: Fix includes.
14937 * csky-tdep.c: Fix includes.
14938 * compile/compile-cplus-types.c: Fix includes.
14939 * cli/cli-interp.c: Fix includes.
14940
14941 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14942
14943 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14944 for padding.
14945
14946 2019-01-16 Tom Tromey <tom@tromey.com>
14947
14948 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14949 earlier.
14950 (struct objfile) <msymbols_range>: Move from top level.
14951 <msymbols>: New method.
14952 (class objfile_msymbols): Remove.
14953 * symtab.c (default_collect_symbol_completion_matches_break_on):
14954 Update.
14955 * symmisc.c (dump_msymbols): Update.
14956 * stabsread.c (scan_file_globals): Update.
14957 * objc-lang.c (info_selectors_command, info_classes_command)
14958 (find_methods): Update.
14959 * minsyms.c (find_solib_trampoline_target): Update.
14960 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14961 * coffread.c (coff_symfile_read): Update.
14962 * ada-lang.c (ada_lookup_simple_minsym)
14963 (ada_collect_symbol_completion_matches): Update.
14964
14965 2019-01-16 Tom Tromey <tom@tromey.com>
14966
14967 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14968 type. Remove no-argument constructor.
14969 <iterator::operator++>: Simplify.
14970 <begin>: Update.
14971 <end>: Use minimal_symbol_count.
14972
14973 2019-01-16 Tom Tromey <tom@tromey.com>
14974
14975 * objfiles.h (struct objfile) <psymtabs>: New method.
14976 (class objfile_psymtabs): Remove.
14977 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14978 typedef.
14979 <range>: New method.
14980 (require_partial_symbols): Change return type.
14981 * psymtab.c (require_partial_symbols)
14982 (psym_expand_symtabs_matching): Update.
14983 * mdebugread.c (parse_partial_symbols): Update.
14984 * dbxread.c (dbx_end_psymtab): Update.
14985
14986 2019-01-15 Tom Tromey <tom@tromey.com>
14987
14988 * symtab.c (lookup_objfile_from_block)
14989 (lookup_symbol_in_objfile_symtabs)
14990 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14991 (find_line_symtab, info_sources_command)
14992 (default_collect_symbol_completion_matches_break_on)
14993 (make_source_files_completion_list): Update.
14994 * symmisc.c (print_objfile_statistics, dump_objfile)
14995 (maintenance_print_symbols, maintenance_info_symtabs)
14996 (maintenance_check_symtabs, maintenance_info_line_tables):
14997 Update.
14998 * source.c (select_source_symtab)
14999 (forget_cached_source_info_for_objfile): Update.
15000 * objfiles.h (class objfile_compunits): Remove.
15001 (struct objfile) <compunits_range>: New typedef.
15002 (compunits): New method.
15003 * objfiles.c (objfile_relocate1): Update.
15004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15005 * maint.c (count_symtabs_and_blocks): Update.
15006 * linespec.c (iterate_over_all_matching_symtabs): Update.
15007 * cp-support.c (add_symbol_overload_list_qualified): Update.
15008 * coffread.c (coff_symtab_read): Update.
15009 * ada-lang.c (add_nonlocal_symbols)
15010 (ada_collect_symbol_completion_matches)
15011 (ada_add_global_exceptions): Update.
15012
15013 2019-01-15 Tom Tromey <tom@tromey.com>
15014
15015 * progspace.h (program_space) <objfiles_safe_range>: New
15016 typedef.
15017 <objfiles_safe>: New method.
15018 * objfiles.h (class all_objfiles_safe): Remove.
15019 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15020 * jit.c (jit_inferior_exit_hook): Update.
15021
15022 2019-01-17 Tom Tromey <tom@tromey.com>
15023
15024 * progspace.h (program_space) <objfiles_range>: New typedef.
15025 <objfiles>: New method.
15026 <objfiles_head>: Rename from objfiles.
15027 (object_files): Update.
15028 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15029 * guile/scm-pretty-print.c
15030 (ppscm_find_pretty_printer_from_objfiles): Update.
15031 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15032 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15033 Update.
15034 * python/py-progspace.c (pspy_get_objfiles): Update.
15035 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15036 Update.
15037 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15038 (objfpy_lookup_objfile_by_build_id): Update.
15039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15040 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15041 Update.
15042 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15043 (expand_symtab_containing_pc, lookup_objfile_from_block)
15044 (lookup_static_symbol, basic_lookup_transparent_type)
15045 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15046 (find_line_symtab, info_sources_command)
15047 (default_collect_symbol_completion_matches_break_on)
15048 (make_source_files_completion_list, find_main_name): Update.
15049 * symmisc.c (print_symbol_bcache_statistics)
15050 (print_objfile_statistics, maintenance_print_symbols)
15051 (maintenance_print_msymbols, maintenance_print_objfiles)
15052 (maintenance_info_symtabs, maintenance_check_symtabs)
15053 (maintenance_expand_symtabs, maintenance_info_line_tables):
15054 Update.
15055 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15056 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15057 (map_overlay_command, unmap_overlay_command)
15058 (simple_overlay_update, expand_symtabs_matching)
15059 (map_symbol_filenames): Update.
15060 * symfile-debug.c (set_debug_symfile): Update.
15061 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15062 Update.
15063 * source.c (select_source_symtab, forget_cached_source_info):
15064 Update.
15065 * solib.c (solib_read_symbols): Update.
15066 * solib-spu.c (append_ocl_sos): Update.
15067 * psymtab.c (maintenance_print_psymbols)
15068 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15069 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15070 * printcmd.c (info_symbol_command): Update.
15071 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15072 Update.
15073 * objfiles.h (class all_objfiles): Remove.
15074 * objfiles.c (have_partial_symbols, have_full_symbols)
15075 (have_minimal_symbols, qsort_cmp, update_section_map)
15076 (shared_objfile_contains_address_p)
15077 (default_iterate_over_objfiles_in_search_order): Update.
15078 * objc-lang.c (info_selectors_command, info_classes_command)
15079 (find_methods): Update.
15080 * minsyms.c (find_solib_trampoline_target): Update.
15081 * maint.c (maintenance_info_sections)
15082 (maintenance_translate_address, count_symtabs_and_blocks):
15083 Update.
15084 * main.c (captured_main_1): Update.
15085 * linux-thread-db.c (try_thread_db_load_from_pdir)
15086 (has_libpthread): Update.
15087 * linespec.c (iterate_over_all_matching_symtabs)
15088 (search_minsyms_for_name): Update.
15089 * jit.c (jit_find_objf_with_entry_addr): Update.
15090 * hppa-tdep.c (find_unwind_entry)
15091 (hppa_lookup_stub_minimal_symbol): Update.
15092 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15093 Update.
15094 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15095 (elf_gnu_ifunc_resolve_by_got): Update.
15096 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15097 * dwarf-index-write.c (save_gdb_index_command): Update.
15098 * cp-support.c (add_symbol_overload_list_qualified): Update.
15099 * breakpoint.c (create_overlay_event_breakpoint)
15100 (create_longjmp_master_breakpoint)
15101 (create_std_terminate_master_breakpoint)
15102 (create_exception_master_breakpoint): Update.
15103 * blockframe.c (find_pc_partial_function): Update.
15104 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15105 (ada_collect_symbol_completion_matches)
15106 (ada_add_global_exceptions): Update.
15107
15108 2019-01-17 Tom Tromey <tom@tromey.com>
15109
15110 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15111 declare VEC.
15112 (solib_target_parse_libraries): Change return type.
15113 (library_list_start_segment, library_list_start_section)
15114 (library_list_end_library, library_list_start_library); Update.
15115 (solib_target_free_library_list): Remove.
15116 (solib_target_parse_libraries): Remove cleanup. Change return
15117 type.
15118 (solib_target_current_sos): Update.
15119
15120 2019-01-17 Tom Tromey <tromey@bapiya>
15121
15122 * valprint.c: Replace "the the" with "the".
15123 * symtab.c: Replace "the the" with "the".
15124 * solib.c: Replace "the the" with "the".
15125 * solib-dsbt.c: Replace "the the" with "the".
15126 * linespec.c: Replace "the the" with "the".
15127 * dwarf2loc.h: Replace "the the" with "the".
15128 * amd64-windows-tdep.c: Replace "the the" with "the".
15129 * aarch64-tdep.c: Replace "the the" with "the".
15130
15131 2019-01-16 Keith Seitz <keiths@redhat.com>
15132
15133 PR gdb/23773
15134 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15135 <builder>: Rename to ..
15136 <m_builder>: ... this and make private.
15137 (dwarf2_cu::get_builder): New method. Change all users of
15138 `builder' to use this method.
15139 (dwarf2_start_symtab): Move to ...
15140 (dwarf2_cu::start_symtab): ... here. Update all callers
15141 (setup_type_unit_groups): Move to ...
15142 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15143 callers.
15144 (dwarf2_cu::reset_builder): New method.
15145 (process_full_compunit, process_full_type_unit): Use
15146 dwarf2_cu::reset_builder.
15147 (follow_die_offset): Record the ancestor CU if it is different
15148 from the followed DIE's CU.
15149 (follow_die_sig_1): Likewise.
15150
15151 2019-01-15 Tom Tromey <tom@tromey.com>
15152
15153 * remote.c (class remote_state) <buf>: Now a char_vector.
15154 <buf_size>: Remove.
15155 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15156 parameter.
15157 (remote_target::getpkt_or_notif_sane_1)
15158 (remote_target::getpkt_sane)
15159 (remote_target::getpkt_or_notif_sane): Likewise.
15160 (class remote_target) <putpkt>: New overload.
15161 (remote_target::read_frame): Change type of "buf_p". Remove
15162 sizeof_p parameter.
15163 (packet_ok): New overload.
15164 (packet_check_result): New overload.
15165 Update all uses.
15166
15167 2019-01-14 Tom Tromey <tom@tromey.com>
15168
15169 * remote-notif.c (handle_notification, remote_notif_ack)
15170 (remote_notif_parse): Make "buf" const.
15171 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15172 const.
15173 (remote_notif_parse, remote_notif_ack, handle_notification):
15174 Likewise.
15175 * remote.c (remote_notif_stop_parse): Make "buf" const.
15176 (remote_target::remote_parse_stop_reply): Make "buf" const.
15177 (remote_notif_stop_ack): Make "buf" const.
15178
15179 2019-01-14 Tom Tromey <tom@tromey.com>
15180
15181 * remote.c (remote_console_output): Make parameter const.
15182
15183 2019-01-14 Tom Tromey <tom@tromey.com>
15184
15185 * target-debug.h (target_debug_print_signals): Constify.
15186 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15187 * procfs.c (procfs_target::pass_signals): Update.
15188 * linux-nat.c (linux_nat_target::pass_signals): Update.
15189 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15190 * target-delegates.c: Rebuild.
15191 * remote.c (remote_target::program_signals): Update.
15192 (remote_target::pass_signals): Update.
15193 * target.c (target_pass_signals): Constify argument.
15194 (target_program_signals): Likewise.
15195 * target.h (struct target_ops) <pass_signals, program_signals>:
15196 Constify argument.
15197 (target_pass_signals, target_program_signals): Constify argument.
15198
15199 2019-01-14 Tom Tromey <tom@tromey.com>
15200
15201 PR tui/28819:
15202 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15203
15204 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15205
15206 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15207 field.
15208 * rs6000-tdep.c: Include reggroups.h.
15209 (IS_V_ALIAS_PSEUDOREG): Define.
15210 (rs6000_register_name): Return names for the "vX" aliases.
15211 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15212 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15213 aliases. Call default_register_reggroup_p for all other
15214 pseudo-registers.
15215 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15216 New functions.
15217 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15218 Handle "vX" aliases.
15219 (v_alias_pseudo_register_collect): New function.
15220 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15221 (rs6000_gdbarch_init): Initialize "vX" aliases as
15222 pseudo-registers. Restore registration of
15223 rs6000_pseudo_register_reggroup_p with
15224 set_tdesc_pseudo_register_reggroup_p.
15225
15226 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15227
15228 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15229 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15230 set_gdbarch_num_pseudo_regs.
15231
15232 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15233
15234 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15235 Remove arg prefixname, add do_set and do_show.
15236 Add member functions set_list and show_list.
15237 * cli/cli-style.c (class cli_style_option): Update accordingly.
15238 (style_set_list): Move to file scope.
15239 (style_show_list): Likewise.
15240 (set_style): Call help_list.
15241 (show_style): Call cmd_show_list.
15242 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15243 Update to use the new macro.
15244
15245 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15246
15247 * ada-lang.c (_initialize_ada_language): Expand the help text
15248 for the "catch exception" command.
15249
15250 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15251
15252 * symtab.c (matching_obj_sections): Initialize obj,
15253 declare it closer to its usage.
15254
15255 2019-01-10 Tom Tromey <tom@tromey.com>
15256
15257 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15258 (basic_inf_threads_range): Remove.
15259 (inf_threads_range, inf_non_exited_threads_range)
15260 (safe_inf_threads_range): Use next_adapter.
15261
15262 2019-01-10 Keith Seitz <keiths@redhat.com>
15263
15264 PR gdb/23712
15265 PR symtab/23010
15266 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15267 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15268
15269 2019-01-10 Keith Seitz <keiths@redhat.com>
15270
15271 PR gdb/23712
15272 PR symtab/23010
15273 * dictionary.c (pending_to_vector): Remove.
15274 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15275 Remove _1 suffix, replacing functions of the same name. Update
15276 all callers.
15277 (dict_create_hashed, dict_create_hashed_expandable)
15278 (dict_create_linear, dict_create_linear_expandable, dict_free)
15279 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15280 Make functions static.
15281
15282 2019-01-10 Keith Seitz <keiths@redhat.com>
15283
15284 PR gdb/23712
15285 PR symtab/23010
15286 * dictionary.h (struct dictionary): Replace declaration with
15287 multidictionary.
15288 (dict_create_hashed, dict_create_hashed_expandable)
15289 (dict_create_linear, dict_create_linear_expandable)
15290 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15291 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15292 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15293 taking multidictionary argument.
15294 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15295 * block.h (struct block) <dict>: Change to multidictionary
15296 and rename `multidict'.
15297 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15298 symmisc.c: Update all dictionary references to multidictionary.
15299
15300 2019-01-10 Keith Seitz <keiths@redhat.com>
15301
15302 PR gdb/23712
15303 PR symtab/23010
15304 * dictionary.c: Include unordered_map.
15305 (pending_to_vector): New function.
15306 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15307 Rewrite the non-"_1" functions to take vector instead
15308 of linked list.
15309 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15310 "new" _1 versions of the same name.
15311 (multidictionary): Define.
15312 (std::hash<enum language): New definition.
15313 (collate_pending_symbols_by_language, mdict_create_hashed)
15314 (mdict_create_hashed_expandable, mdict_create_linear)
15315 (mdict_create_linear_expandable, mdict_free)
15316 (find_language_dictionary, create_new_language_dictionary)
15317 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15318 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15319 (mdict_size, mdict_empty): New functions.
15320 * dictionary.h (mdict_iterator): Define.
15321
15322 2019-01-10 Pedro Alves <palves@redhat.com>
15323
15324 * breakpoint.c (read_uploaded_action)
15325 (create_tracepoint_from_upload): Adjust to use
15326 gdb::unique_xmalloc_ptr.
15327 * ctf.c (ctf_write_uploaded_tp):
15328 (SET_ARRAY_FIELD): Use emplace_back.
15329 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15330 * tracefile-tfile.c (tfile_write_uploaded_tp):
15331 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15332 gdb::unique_xmalloc_ptr.
15333 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15334 at_string, cond_string, cmd_strings>: Replace char pointers
15335 with gdb::unique_xmalloc_ptr.
15336
15337 2019-01-10 Pedro Alves <palves@redhat.com>
15338
15339 * solib-target.c (library_list_start_library): Don't xstrdup name.
15340
15341 2019-01-10 Pedro Alves <palves@redhat.com>
15342
15343 * mdebugread.c (parse_partial_symbols): Use
15344 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15345
15346 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15347
15348 * linux-fork.c (scoped_switch_fork_info)
15349 <~scoped_switch_fork_info>: Fix incorrect variable name.
15350
15351 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15352
15353 * linux-fork.c (scoped_switch_fork_info)
15354 <scoped_switch_fork_info>: Make explicit.
15355 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15356
15357 2019-01-10 Tom Tromey <tom@tromey.com>
15358
15359 * objfiles.h (objfile::reset_psymtabs): Update.
15360 * objfiles.c (objfile::objfile): Update.
15361 * psymtab.h (psymtab_storage::obstack): Update.
15362 (psymtab_storage::m_obstack): Use gdb::optional.
15363 (class psymtab_storage): Update comment. Remove objfile
15364 parameter.
15365 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15366
15367 2019-01-10 Tom Tromey <tom@tromey.com>
15368
15369 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15370 <free_psymtabs>: Now private.
15371 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15372 (allocate_psymtab): Use new method.
15373
15374 2019-01-10 Tom Tromey <tom@tromey.com>
15375
15376 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15377 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15378 * mdebugread.c (parse_partial_symbols): Use
15379 allocate_dependencies.
15380 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15381 allocate_dependencies.
15382 (process_psymtab_comp_unit_reader)
15383 (build_type_psymtab_dependencies): Likewise.
15384 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15385
15386 2019-01-10 Tom Tromey <tom@tromey.com>
15387
15388 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15389 PSYMBOL_SET_LANGUAGE.
15390 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15391
15392 2019-01-10 Tom Tromey <tom@tromey.com>
15393
15394 * psymtab.h (psymtab_storage::obstack): New method.
15395 <m_obstack>: Rename from obstack; now private.
15396 * psymtab.c (psymtab_storage): Update.
15397 * dwarf2read.c (create_addrmap_from_index)
15398 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15399 Update.
15400
15401 2019-01-10 Tom Tromey <tom@tromey.com>
15402
15403 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15404 * objfiles.h (objfile::reset_psymtabs): New method.
15405
15406 2019-01-10 Tom Tromey <tom@tromey.com>
15407
15408 * symmisc.c (print_symbol_bcache_statistics): Update.
15409 (print_objfile_statistics): Update.
15410 * symfile.c (reread_symbols): Update.
15411 * psymtab.h (class psymtab_storage): New.
15412 * psymtab.c (psymtab_storage): New constructor.
15413 (~psymtab_storage): New destructor.
15414 (require_partial_symbols): Update.
15415 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15416 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15417 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15418 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15419 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15420 (start_psymtab_common, end_psymtab_common)
15421 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15422 (allocate_psymtab): Update.
15423 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15424 Update.
15425 (dump_psymtab_addrmap, maintenance_print_psymbols)
15426 (maintenance_check_psymtabs): Update.
15427 (class objfile_psymtabs): Move to objfiles.h.
15428 * psympriv.h (discard_psymtab): Now inline.
15429 (psymtab_discarder::psymtab_discarder): Update.
15430 (psymtab_discarder::~psymtab_discarder): Update.
15431 (ALL_OBJFILE_PSYMTABS): Rewrite.
15432 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15433 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15434 Remove fields.
15435 <partial_symtabs>: New field.
15436 (class objfile_psymtabs): Move from psymtab.h. Update.
15437 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15438 psymbol_cache.
15439 (objfile::~objfile): Don't destroy psymbol_cache.
15440 * mdebugread.c (parse_partial_symbols): Update.
15441 * dwarf2read.c (create_addrmap_from_index)
15442 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15443 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15444 (add_partial_subprogram, dwarf2_ranges_read): Update.
15445 * dwarf-index-write.c (write_address_map)
15446 (write_one_signatured_type, recursively_write_psymbols)
15447 (class debug_names, class debug_names, write_psymtabs_to_index):
15448 Update.
15449
15450 2019-01-10 Tom Tromey <tom@tromey.com>
15451
15452 * symtab.h (SYMBOL_SET_NAMES): Update.
15453 (symbol_set_names): Update.
15454 (MSYMBOL_SET_NAMES): Update.
15455 * symtab.c (symbol_set_names): Change argument to be an
15456 objfile_per_bfd_storage.
15457 * psymtab.c (add_psymbol_to_bcache): Update.
15458 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15459
15460 2019-01-10 Tom Tromey <tom@tromey.com>
15461
15462 * symtab.c (create_demangled_names_hash): Change argument to be an
15463 objfile_per_bfd_storage.
15464 (symbol_set_names): Update.
15465
15466 2019-01-10 Tom Tromey <tom@tromey.com>
15467
15468 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15469 init_psymbol_list.
15470 * psymtab.c (init_psymbol_list): Do nothing if already called.
15471 * psympriv.h (init_psymbol_list): Add comment.
15472 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15473 init_psymbol_list.
15474 * dbxread.c (dbx_symfile_read): Unconditionally call
15475 init_psymbol_list.
15476
15477 2019-01-10 Tom Tromey <tom@tromey.com>
15478
15479 * xcoffread.c (scan_xcoff_symtab): Update.
15480 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15481 "where".
15482 * mdebugread.c (parse_partial_symbols)
15483 (handle_psymbol_enumerators): Update.
15484 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15485 * dbxread.c (read_dbx_symtab): Update.
15486 * psympriv.h (psymbol_placement): New enum.
15487 (add_psymbol_to_list): Update.
15488
15489 2019-01-10 Tom Tromey <tom@tromey.com>
15490
15491 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15492 static_psymbols parameters.
15493 (scan_xcoff_symtab): Update.
15494 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15495 static_psymbols parameters.
15496 * psympriv.h (start_psymtab_common): Update.
15497 * mdebugread.c (parse_partial_symbols): Update.
15498 * dwarf2read.c (create_partial_symtab): Update.
15499 * dbxread.c (read_dbx_symtab): Update.
15500 (start_psymtab): Remove global_psymbols and static_psymbols
15501 parameters.
15502
15503 2019-01-10 Tom Tromey <tom@tromey.com>
15504
15505 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15506 * psymtab.c (allocate_psymtab): Add comment.
15507 * psympriv.h (allocate_psymtab): Add comment.
15508 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15509 initializations.
15510 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15511
15512 2019-01-10 Tom Tromey <tom@tromey.com>
15513
15514 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15515 Don't declare.
15516 * mipsread.c: Include mdebugread.h.
15517 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15518 Declare.
15519 * elfread.c: Include mdebugread.h.
15520
15521 2019-01-09 Tom Tromey <tom@tromey.com>
15522
15523 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15524 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15525 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15526 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15527 (psym_lookup_symbol, psym_find_last_source_symtab)
15528 (psym_forget_cached_source_info, psym_print_stats)
15529 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15530 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15531 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15532 (psym_find_compunit_symtab_by_address)
15533 (maintenance_print_psymbols, maintenance_info_psymtabs)
15534 (maintenance_check_psymtabs): Use ranged for.
15535 * psymtab.h (class objfile_psymtabs): New.
15536 (require_partial_symbols): Return objfile_psymtabs.
15537 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15538
15539 2019-01-09 Tom Tromey <tom@tromey.com>
15540
15541 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15542 (find_pc_mapped_section, list_overlays_command)
15543 (map_overlay_command, unmap_overlay_command)
15544 (simple_overlay_update): Use all_objfiles.
15545 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15546 * printcmd.c (info_symbol_command): Use all_objfiles.
15547 * objfiles.h (ALL_OBJSECTIONS): Remove.
15548 * maint.c (maintenance_translate_address): Use all_objfiles.
15549 * gcore.c (gcore_create_callback): Use all_objfiles.
15550 (objfile_find_memory_regions): Likewise.
15551
15552 2019-01-09 Tom Tromey <tom@tromey.com>
15553
15554 * symtab.c (find_line_symtab, info_sources_command)
15555 (make_source_files_completion_list): Use objfile_compunits.
15556 * source.c (select_source_symtab): Use objfile_compunits.
15557 * objfiles.h (struct objfile): Update comment.
15558 (ALL_OBJFILES): Remove.
15559 (ALL_FILETABS): Remove.
15560 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15561 objfile_compunits.
15562
15563 2019-01-09 Tom Tromey <tom@tromey.com>
15564
15565 * symmisc.c (print_objfile_statistics, dump_objfile)
15566 (maintenance_print_symbols): Use compunit_filetabs.
15567 * source.c (forget_cached_source_info_for_objfile): Use
15568 compunit_filetabs.
15569 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15570 (ALL_FILETABS): Use compunit_filetabs.
15571 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15572 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15573
15574 2019-01-09 Tom Tromey <tom@tromey.com>
15575
15576 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15577 (compunit_filetabs): New.
15578 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15579 compunit_filetabs.
15580 (info_sources_command, make_source_files_completion_list): Remove
15581 declaration.
15582 * symmisc.c (print_objfile_statistics, dump_objfile)
15583 (maintenance_print_symbols): Remove declaration.
15584 (maintenance_info_symtabs): Use compunit_filetabs.
15585 (maintenance_info_line_tables): Likewise.
15586 * source.c (select_source_symtab): Change local variable name.
15587 (forget_cached_source_info_for_objfile): Remove declaration.
15588 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15589 * objfiles.c (objfile_relocate1): Remove declaration.
15590 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15591 declaration.
15592 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15593 * coffread.c (coff_symtab_read): Remove declaration.
15594 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15595 compunit_filetabs.
15596
15597 2019-01-09 Tom Tromey <tom@tromey.com>
15598
15599 * symtab.c (lookup_objfile_from_block)
15600 (find_pc_sect_compunit_symtab, search_symbols)
15601 (default_collect_symbol_completion_matches_break_on): Use
15602 objfile_compunits.
15603 * objfiles.h (ALL_COMPUNITS): Remove.
15604 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15605 * cp-support.c (add_symbol_overload_list_qualified): Use
15606 objfile_compunits.
15607 * ada-lang.c (ada_collect_symbol_completion_matches)
15608 (ada_add_global_exceptions): Use objfile_compunits.
15609
15610 2019-01-09 Tom Tromey <tom@tromey.com>
15611
15612 * source.c (select_source_symtab)
15613 (forget_cached_source_info_for_objfile): Remove declaration.
15614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15615 declaration.
15616 * maint.c (count_symtabs_and_blocks): Remove declaration.
15617 * cp-support.c (add_symbol_overload_list_qualified): Remove
15618 declaration.
15619 * coffread.c (coff_symtab_read): Remove declaration.
15620 * symtab.c (lookup_symbol_in_objfile_symtabs)
15621 (basic_lookup_transparent_type_1): Use objfile_compunits.
15622 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15623 (info_sources_command, search_symbols)
15624 (default_collect_symbol_completion_matches_break_on)
15625 (make_source_files_completion_list): Remove declaration.
15626 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15627 (ada_collect_symbol_completion_matches)
15628 (ada_add_global_exceptions): Remove declaration.
15629 * linespec.c (iterate_over_all_matching_symtabs): Use
15630 objfile_compunits.
15631 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15632 (class objfile_compunits): New.
15633 (ALL_COMPUNITS): Use objfile_compunits.
15634 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15635 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15636 objfile_compunits.
15637 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15638
15639 2019-01-09 Tom Tromey <tom@tromey.com>
15640
15641 * symtab.c (search_symbols)
15642 (default_collect_symbol_completion_matches_break_on): Use
15643 objfile_msymbols.
15644 * ada-lang.c (ada_lookup_simple_minsym)
15645 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15646 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15647 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15648 objfile_msymbols.
15649 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15650 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15651 * objc-lang.c (find_methods): Use objfile_msymbols.
15652 (info_selectors_command, info_classes_command): Likewise.
15653 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15654 * objfiles.h (class objfile_msymbols): New.
15655 (ALL_OBJFILE_MSYMBOLS): Remove.
15656 (ALL_MSYMBOLS): Remove.
15657
15658 2019-01-09 Tom Tromey <tom@tromey.com>
15659
15660 * common/next-iterator.h (next_adapter): Add Iterator template
15661 parameter.
15662 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15663 (class all_objfiles_safe): New.
15664 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15665 * objfiles.c (put_objfile_before): Update comment.
15666 (add_separate_debug_objfile): Likewise.
15667 (free_all_objfiles): Use all_objfiles_safe.
15668 (objfile_purge_solibs): Likewise.
15669
15670 2019-01-09 Tom Tromey <tom@tromey.com>
15671
15672 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15673 (expand_symtab_containing_pc, lookup_static_symbol)
15674 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15675 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15676 all_objfiles.
15677 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15678 * breakpoint.c (create_overlay_event_breakpoint)
15679 (create_longjmp_master_breakpoint)
15680 (create_std_terminate_master_breakpoint)
15681 (create_exception_master_breakpoint): Use all_objfiles.
15682 * linux-thread-db.c (try_thread_db_load_from_pdir)
15683 (has_libpthread): Use all_objfiles.
15684 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15685 * linespec.c (iterate_over_all_matching_symtabs)
15686 (search_minsyms_for_name): Use all_objfiles.
15687 * maint.c (maintenance_info_sections): Use all_objfiles.
15688 * main.c (captured_main_1): Use all_objfiles.
15689 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15690 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15691 * guile/scm-pretty-print.c
15692 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15693 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15694 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15695 (maintenance_print_msymbols): Use all_objfiles.
15696 * source.c (select_source_symtab): Use all_objfiles.
15697 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15698 * symfile.c (remove_symbol_file_command)
15699 (expand_symtabs_matching, map_symbol_filenames): Use
15700 all_objfiles.
15701 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15702 all_objfiles.
15703 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15704 * objc-lang.c (find_methods): Use all_objfiles.
15705 * objfiles.c (have_partial_symbols, have_full_symbols)
15706 (have_minimal_symbols, qsort_cmp)
15707 (default_iterate_over_objfiles_in_search_order): Use
15708 all_objfiles.
15709 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15710 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15711 (maintenance_check_psymtabs): Use all_objfiles.
15712 (ALL_PSYMTABS): Remove.
15713 * compile/compile-object-run.c (do_module_cleanup): Use
15714 all_objfiles.
15715 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15716 * cp-support.c (add_symbol_overload_list_qualified): Use
15717 all_objfiles.
15718 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15719 Use all_objfiles.
15720 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15721 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15722 all_objfiles.
15723 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15724 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15725 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15726 Uses all_objfiles.
15727 * solib.c (solib_read_symbols): Use all_objfiles
15728
15729 2019-01-09 Tom Tromey <tom@tromey.com>
15730
15731 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15732 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15733 all_objfiles.
15734 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15735 * symmisc.c (print_symbol_bcache_statistics)
15736 (print_objfile_statistics, maintenance_print_objfiles)
15737 (maintenance_info_symtabs, maintenance_check_symtabs)
15738 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15739 all_objfiles.
15740 * source.c (forget_cached_source_info): Use all_objfiles.
15741 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15742 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15743 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15744 * objfiles.c (update_section_map): Use all_objfiles.
15745 (shared_objfile_contains_address_p): Likewise.
15746 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15747 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15748
15749 2019-01-09 Tom Tromey <tom@tromey.com>
15750
15751 * common/next-iterator.h: New file.
15752 * objfiles.h (class all_objfiles): New.
15753 (struct objfile_iterator): New.
15754
15755 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15756
15757 * NEWS: Move the description of the changed "frame", "select-frame",
15758 and "info frame" commands to the Changed commands section.
15759
15760 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15761
15762 * gdbtypes.c (check_stub_method_group): Remove handling of old
15763 mangling schemes.
15764 * linespec.c (find_methods): Likewise.
15765 * stabsread.c (read_member_functions): Likewise.
15766 * valops.c (search_struct_method): Likewise.
15767 (value_struct_elt_for_reference): Likewise.
15768 * NEWS: Mention this change.
15769
15770 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15771
15772 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15773 print_source_lines.
15774 * source.c (print_source_lines_base): Update line number check.
15775 (print_source_lines): New function.
15776 (source_lines_range::source_lines_range): New function.
15777 * source.h (class source_lines_range): New class.
15778 (print_source_lines): New declaration.
15779
15780 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15781
15782 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15783
15784 2019-01-08 Tom Tromey <tom@tromey.com>
15785 Simon Marchi <simon.marchi@ericsson.com>
15786
15787 PR gdb/24060
15788 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15789 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15790 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15791 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15792 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15793 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15794
15795 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15796
15797 * source.c (select_source_symtab): Move header comment to
15798 declaration in source.h.
15799 (forget_cached_source_info_for_objfile): Likewise.
15800 (forget_cached_source_info): Likewise.
15801 (identify_source_line): Likewise.
15802 * source.h (identify_source_line): Move declaration from symtab.h
15803 and add comment from source.c
15804 (print_source_lines): Likewise.
15805 (forget_cached_source_info_for_objfile): Likewise.
15806 (forget_cached_source_info): Likewise.
15807 (select_source_symtab): Likewise.
15808 (enum print_source_lines_flag): Move definition from symtab.h.
15809 * symtab.h (identify_source_line): Move declaration to source.h.
15810 (print_source_lines): Likewise.
15811 (forget_cached_source_info_for_objfile): Likewise.
15812 (forget_cached_source_info): Likewise.
15813 (select_source_symtab): Likewise.
15814 (enum print_source_lines_flag): Move definition to source.h.
15815 * tui/tui-hooks.c: Add 'source.h' include.
15816
15817 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15818
15819 * source.c (print_source_lines_base): Handle requests to print
15820 reverse line number sequences, and guard against empty lines
15821 string.
15822
15823 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15824
15825 * source.c (print_source_lines_base): Fix skip of '\r' if next
15826 character is '\n'.
15827
15828 2019-01-06 Tom Tromey <tom@tromey.com>
15829
15830 * c-exp.y (struct c_parse_state) <macro_original_text,
15831 expansion_obstack>: New member.
15832 (macro_original_text, expansion_obstack): Remove globals.
15833 (scan_macro_expansion, scanning_macro_expansion)
15834 (finished_macro_expansion): Update.
15835 (scan_macro_cleanup): Remove.
15836 (yylex, c_parse): Update.
15837
15838 2019-01-06 Tom Tromey <tom@tromey.com>
15839
15840 * c-exp.y (struct c_parse_state) <strings>: New member.
15841 (operator_stoken): Update.
15842
15843 2019-01-06 Tom Tromey <tom@tromey.com>
15844
15845 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15846 (union type_stack_elt) <typelist_val>: Now a pointer to
15847 std::vector.
15848 (type_stack_cleanup): Don't declare.
15849 (push_typelist): Update.
15850 * parse.c (pop_typelist): Return a std::vector.
15851 (push_typelist): Take a std::vector.
15852 (follow_types): Update. Do not free args.
15853 (type_stack_cleanup): Remove.
15854 * c-exp.y (struct c_parse_state): New.
15855 (cpstate): New global.
15856 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15857 (nonempty_typelist): Update.
15858 (func_mod): Create a new vector.
15859 (c_parse): Create a c_parse_state.
15860 (check_parameter_typelist): Do not delete params.
15861 (function_method): Update. Do not delete type_list.
15862
15863 2019-01-06 Tom Tromey <tom@tromey.com>
15864
15865 PR gdb/28155:
15866 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15867 check_typedef.
15868 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15869 (print_return_value): Likewise.
15870
15871 2019-01-05 Tom Tromey <tom@tromey.com>
15872
15873 * contrib/cleanup_check.py: Remove.
15874 * contrib/gcc-with-excheck: Remove.
15875 * contrib/exsummary.py: Remove.
15876 * contrib/excheck.py: Remove.
15877
15878 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15879
15880 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15881 NULL. Initialize tpprev to NULL instead of assigning it
15882 to NULL on the next statement.
15883 * windows-nat.c (windows_delete_thread): Remove check for
15884 main_thread_id before printing thread exit notifications.
15885 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15886 Remove thread ID check against main_thread_id.
15887 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15888 windows_delete_thread.
15889 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15890
15891 2019-01-04 Tom Tromey <tom@tromey.com>
15892
15893 * compile/compile.c (_initialize_compile): Use upper case for
15894 metasyntactic variables.
15895 * symmisc.c (_initialize_symmisc): Use upper case for
15896 metasyntactic variables.
15897 * psymtab.c (_initialize_psymtab): Use upper case for
15898 metasyntactic variables.
15899 * demangle.c (demangle_command): Use upper case for metasyntactic
15900 variables.
15901 (_initialize_demangler): Likewise.
15902 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15903 variables.
15904
15905 2019-01-03 Tom Tromey <tom@tromey.com>
15906
15907 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15908
15909 2019-01-03 Tom Tromey <tom@tromey.com>
15910
15911 * python/py-symtab.c (salpy_str): Update.
15912 (struct salpy_sal_object) <symtab>: Now a PyObject.
15913 (salpy_dealloc): Update.
15914 (del_objfile_sal): Use gdbpy_ref.
15915
15916 2019-01-03 Tom Tromey <tom@tromey.com>
15917
15918 * python/py-type.c (convert_field): Use new_reference. Return
15919 gdbpy_ref.
15920 (make_fielditem): Return gdbpy_ref.
15921 (typy_fields): Update.
15922 (typy_getitem): Update.
15923 (field_name): Return gdbpy_ref. Use new_reference.
15924 (typy_iterator_iternext): Update.
15925
15926 2019-01-03 Tom Tromey <tom@tromey.com>
15927
15928 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15929
15930 2019-01-03 Tom Tromey <tom@tromey.com>
15931
15932 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15933 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15934 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15935 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15936 (pspy_set_type_printers): Likewise.
15937 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15938 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15939 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15940 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15941 (objfpy_set_type_printers): Likewise.
15942
15943 2019-01-03 Tom Tromey <tom@tromey.com>
15944
15945 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15946 (gdbpy_print_stack): Use gdbpy_err_fetch.
15947 * python/python-internal.h (class gdbpy_err_fetch): New class.
15948 (class gdbpy_enter) <m_error_type, m_error_value,
15949 m_error_traceback>: Remove.
15950 <m_error>: New member.
15951 (gdbpy_exception_to_string): Don't declare.
15952 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15953 * python/py-value.c (convert_value_from_python): Use
15954 gdbpy_err_fetch.
15955 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15956 gdbpy_exception_to_string.
15957 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15958 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15959 gdbpy_err_fetch.
15960
15961 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15962
15963 * linux-nat.c (delete_lwp_cleanup): Delete.
15964 (struct lwp_deleter): New struct.
15965 (lwp_info_up): New typedef.
15966 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15967 lwp_info_up.
15968
15969 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15970
15971 * linux-fork.c (class scoped_switch_fork_info): New class.
15972 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15973
15974 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15975
15976 * valops.c (find_overload_match): Remove use of null_cleanup, and
15977 calls to do_cleanups.
15978
15979 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15980
15981 * compile/compile-cplus-types.c
15982 (compile_cplus_instance::decl_name): Handle changes to
15983 cp_func_name.
15984 * cp-support.c (cp_func_name): Update header comment, update
15985 return type.
15986 * cp-support.h (cp_func_name): Update return type in declaration.
15987 * valops.c (find_overload_match): Move temp_func local to top
15988 level of function and change its type. Use temp_func to hold and
15989 delete temporary string obtained from cp_func_name.
15990
15991 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15992
15993 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15994 gdb::char_vector, remove cleanup, and update uses of `msg`.
15995
15996 2019-01-03 Jim Wilson <jimw@sifive.com>
15997
15998 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15999
16000 2019-01-02 Tom Tromey <tom@tromey.com>
16001
16002 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16003 (tdesc_parse_xml): Remove cleanups.
16004 * target-descriptions.h (make_cleanup_free_target_description):
16005 Don't declare.
16006 (target_desc_deleter): New struct.
16007 (target_desc_up): New typedef.
16008 * target-descriptions.c (target_desc_deleter::operator()): Rename
16009 from free_target_description.
16010 (make_cleanup_free_target_description): Remove.
16011
16012 2019-01-02 Tom Tromey <tom@tromey.com>
16013
16014 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16015 constructor, destructor.
16016 (linespec_parser): Remove typedef.
16017 (~linespec_parser): Rename from linespec_parser_delete.
16018 (linespec_lex_to_end, linespec_complete_label)
16019 (linespec_complete): Update.
16020 (decode_line_full): Remove cleanups.
16021 (decode_line_1): Update.
16022
16023 2019-01-02 Tom Tromey <tom@tromey.com>
16024
16025 * python/python-internal.h (inferior_to_inferior_object): Change
16026 return type.
16027 * python/py-exitedevent.c (create_exited_event_object): Update.
16028 * python/py-inferior.c (inferior_to_inferior_object): Return
16029 gdbpy_ref.
16030 (python_new_inferior, python_inferior_deleted)
16031 (thread_to_thread_object, delete_thread_object)
16032 (build_inferior_list, gdbpy_selected_inferior): Update.
16033 * python/py-infthread.c (create_thread_object): Update. Also fail
16034 if inferior_to_inferior_object fails.
16035
16036 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16037
16038 * inferior.h (class inferior) <displaced_step_state>: New field.
16039 * infrun.h (struct displaced_step_state): Move here from
16040 infrun.c. Initialize fields, add constructor.
16041 <inf>: Remove field.
16042 <reset>: New method.
16043 * infrun.c (struct displaced_step_inferior_state): Move to
16044 infrun.h.
16045 (displaced_step_inferior_states): Remove.
16046 (get_displaced_stepping_state): Adust.
16047 (displaced_step_in_progress_any_inferior): Adjust.
16048 (displaced_step_in_progress_thread): Adjust.
16049 (displaced_step_in_progress): Adjust.
16050 (add_displaced_stepping_state): Remove.
16051 (get_displaced_step_closure_by_addr): Adjust.
16052 (remove_displaced_stepping_state): Remove.
16053 (infrun_inferior_exit): Call displaced_step_state.reset.
16054 (use_displaced_stepping): Don't check for NULL.
16055 (displaced_step_prepare_throw): Call
16056 get_displaced_stepping_state.
16057 (displaced_step_fixup): Don't check for NULL.
16058 (prepare_for_detach): Don't check for NULL.
16059
16060 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16061
16062 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16063 in case of call that did not complete.
16064
16065 2019-01-02 Andrey Utkin <autkin@undo.io>
16066
16067 * symfile.c (find_separate_debug_file): Fix search of debug files for
16068 remote debuggee.
16069
16070 2019-01-02 Tom Tromey <tom@tromey.com>
16071
16072 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16073 indentation.
16074 * python/py-frame.c (frapy_older): Remove cast.
16075 (frapy_newer): Likewise.
16076 * python/py-breakpoint.c (local_setattro): Remove cast.
16077 * python/py-arch.c (archpy_name): Remove local variable.
16078 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16079
16080 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16081
16082 * unittests/basic_string_view/element_access/char/empty.cc:
16083 Fix year range in copyright header.
16084
16085 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16086
16087 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16088 Delete.
16089 <operator==>: Update with for removed field.
16090 <hash>: Likewise.
16091 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16092 <isa_features>: ...this.
16093 <abi_features>: New field.
16094 (riscv_isa_flen): Update comment.
16095 (riscv_abi_xlen): New declaration.
16096 (riscv_abi_flen): New declaration.
16097 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16098 isa_features.
16099 (riscv_abi_xlen): New function.
16100 (riscv_isa_flen): Update to get answer from isa_features.
16101 (riscv_abi_flen): New function.
16102 (riscv_has_fp_abi): Update to get answer from abi_features.
16103 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16104 xlen and flen.
16105 (riscv_call_info) <xlen, flen>: Update comment.
16106 (riscv_call_arg_struct): Remove invalid assertions
16107 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16108 is removed.
16109 (riscv_gdbarch_init): Gather isa features and abi features
16110 separately, ensure both match on the gdbarch when reusing an old
16111 gdbarch. Relax an error check to allow 32-bit abi float to run on
16112 a target with 64-bit float hardware.
16113
16114 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16115
16116 * source.c (search_command_helper): Stop reverse search
16117 when line 1 has been searched.
16118
16119 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16120
16121 * record-full.c (record_full_base_target::close): Rewrite
16122 record_full_core_buf_list free logic.
16123
16124 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16125
16126 * break-catch-syscall.c (print_one_catch_syscall): xfree
16127 the last text.
16128
16129 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16130
16131 * top.c (print_gdb_version): Update Copyright year in version
16132 message.
16133
16134 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16135
16136 Update copyright year range in all GDB files.
16137
16138 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16139
16140 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16141
16142 For older changes see ChangeLog-2018.
16143 \f
16144 Local Variables:
16145 mode: change-log
16146 left-margin: 8
16147 fill-column: 74
16148 version-control: never
16149 coding: utf-8
16150 End:
16151
This page took 0.45929 seconds and 4 git commands to generate.