gdb/NEWS: Say "Changes in GDB 9" rather than "Changes since GDB 8.3"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
41ec388b
JB
12019-12-11 Joel Brobecker <brobecker@adacore.com>
2
3 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
4
c87abc50
JB
52019-12-11 Joel Brobecker <brobecker@adacore.com>
6
7 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
8 * version.in: Bump version to 9.0.90.DATE-git.
9
2e744276
TT
102019-12-11 Tom Tromey <tromey@adacore.com>
11
12 PR build/25268:
13 * gdbsupport/thread-pool.c (set_thread_name): New function.
14 (thread_pool::set_thread_count): Don't call pthread_setname_np.
15 (thread_pool::thread_function): Call set_thread_name.
16
aac4760f
TT
172019-12-11 Tom Tromey <tromey@adacore.com>
18
19 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
20 bfd_get_signed_8.
21
d8edc8b7
PW
222019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
23
24 * NEWS: Document -raw-values option and the related setting commands.
25 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
26 only set it on when /r is given.
27 * valprint.c (value_print_option_defs): New element raw-values.
28 * Makefile.in: Add the new file.
29
cb511130
CB
302019-12-10 Christian Biesinger <cbiesinger@google.com>
31
32 * gdbsupport/safe-strerror.c: Supress the unused function warning
33 for select_strerror_r.
34
ab7d13f0
CB
352019-12-10 Christian Biesinger <cbiesinger@google.com>
36
37 * config.in: Regenerate.
38 * configure: Regenerate.
39 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
40 safe_strerror instead of strerror.
41 * gdbsupport/common.m4: Don't check for strerror.
42 * gdbsupport/safe-strerror.c: Support both the glibc version
43 of strerror_r and the XSI version.
44
6c71eb7d
TT
452019-12-10 Tom Tromey <tromey@adacore.com>
46
47 * ada-typeprint.c (print_choices): Use a single "?".
48 (print_variant_part): Print "?" if the discriminant name
49 is not known.
50
bac7c5cf
GB
512019-12-10 George Barrett <bob@bob131.so>
52
53 Fix scripted probe breakpoints.
54 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
55 declaration forward.
56 (breakpoint_ops_for_event_location_type)
57 (breakpoint_ops_for_event_location): Add function definitions.
58 (break_command_1, trace_command): Use
59 breakpoint_ops_for_event_location.
60 * breakpoint.h (breakpoint_ops_for_event_location): Add function
61 declarations.
62 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
63 breakpoint_ops_for_event_location.
64 * python/py-breakpoint.c (bppy_init): Use
65 breakpoint_ops_for_event_location.
66
330f1d38
TBA
672019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
70 when ranking an lvalue argument for an rvalue parameter.
71
b1f0c0b9
WA
722019-12-08 Wataru Ashihara <wataash@wataash.com>
73
74 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
75 template argument for scoped_restore_tmpl from bool to int.
76
aa2d5a42
KS
772019-12-07 Keith Seitz <keiths@redhat.com>
78
79 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
80 (build_id_to_debug_bfd): Make static, rewriting to use
81 build_id_to_bfd_suffix.
82 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
83 adding `suffix' parameter. Append SUFFIX to file names
84 when searching for matching files.
85 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
86 (build_id_to_exec_bfd): Likewise.
87 * build-id.h (build_id_to_debug_bfd): Clarify that function
88 searches for BFD of debug info file.
89 (build_id_to_exec_bfd): Declare.
90 * corelow.c: Include build-id.h.
91 (locate_exec_from_corefile_build_id): New function.
92 (core_target_open): If no executable BFD is found,
93 search for a core file BFD using build-id.
94
dfb65191
CB
952019-12-06 Christian Biesinger <cbiesinger@google.com>
96
97 * bcache.c: Put in namespace gdb.
98 * bcache.h: Likewise.
99 * gdbtypes.c (check_types_worklist): Update.
100 (types_deeply_equal): Update.
101 * macrotab.c (struct macro_table) <bcache>: Update.
102 (new_macro_table): Update.
103 * macrotab.h (struct bcache): Put this forward declaration
104 inside namespace gdb.
105 (new_macro_table): Update.
106 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
107 Update.
108 <macro_cache>: Update.
109 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
110
93e55f0a
TV
1112019-12-06 Tom de Vries <tdevries@suse.de>
112
113 PR symtab/24971
114 * block.c (best_symbol, better_symbol): New function.
115 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
116 decl.
117
06acc08f
TBA
1182019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
121 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
122 for ranking see-through reference cases.
123
e0fad1ea
PW
1242019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
125 * stack.c (faas_command): Check a command is provided.
126 * thread.c (taas_command, tfaas_command): Likewise.
127
908641f5
PW
1282019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
129 * inferior.c (prune_inferiors): Only call delete_inferior,
130 Do not modify the inferior list.
131
b858499d
SM
1322019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * c-exp.y: Update calls to lookup_typename,
135 lookup_signed_typename and lookup_unsigned_typename.
136 * c-lang.c (evaluate_subexp_c): Likewise.
137 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
138 Likewise.
139 * eval.c (binop_promote): Likewise.
140 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
141 (lookup_unsigned_typename): Likewise.
142 (lookup_signed_typename): Likewise.
143 * gdbtypes.h (lookup_unsigned_typename): Likewise.
144 (lookup_signed_typename): Likewise.
145 (lookup_typename): Likewise.
146 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
147 lookup_typename, lookup_signed_typename,
148 lookup_unsigned_typename.
149 * m2-exp.y: Likewise.
150 * printcmd.c (printf_wide_c_string): Likewise.
151 (ui_printf): Likewise.
152 * python/py-type.c (typy_lookup_typename): Likewise.
153 * python/py-xmethods.c (python_xmethod_worker::invoke):
154 Likewise.
155 * rust-exp.y: Likewise.
156
3a8fa228
CB
1572019-12-04 Christian Biesinger <cbiesinger@google.com>
158
159 * configure.nat (obsd64): Add missing files x86-nat.o and
160 nat/x86-dregs.o.
161
2dbc041e
TT
1622019-12-04 Tom Tromey <tom@tromey.com>
163
164 * valprint.c (val_print_string): Use metadata_style.
165 * go-valprint.c (print_go_string): Use metadata style.
166 * p-valprint.c (pascal_object_print_static_field): Use metadata
167 style.
168 * cp-valprint.c (cp_print_static_field): Use metadata style.
169
36c8fb93
AB
1702019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
171 Chris January <chris.january@arm.com>
172
173 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
174 tokens.
175 (typebase): New patterns for complex, single/double precision, and
176 single/double complex.
177 (f77_keywords): Change token for complex keyword, and add single,
178 double, and precision keywords.
179
c6170c2c
SM
1802019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
183 "info io_registers".
184
894ecaf4
SM
1852019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * regcache.c (cooked_read_test): Initialize thread list of
188 mock_inferior.
189
be155ebb
SM
1902019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
191
192 * aarch64-linux-tdep.c: Remove includes.
193
c577cdd7
SM
1942019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * aarch64-tdep.c: Remove includes.
197
610cfd61
SM
1982019-12-04 Simon Marchi <simon.marchi@efficios.com>
199
200 * filtered-iterator.h (filtered_iterator) <operator==,
201 operator!=>: Compare wrapped iterators, not wrapped pointers.
202 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
203 unittests/filtered_iterator-selftests.c.
204 * unittests/filtered_iterator-selftests.c: New file.
205
a05cf17a
TT
2062019-12-04 Tom Tromey <tromey@adacore.com>
207
208 * gdbtypes.c (create_range_type): Inherit endianity
209 from base type.
210
d5a22e77
TT
2112019-12-04 Tom Tromey <tromey@adacore.com>
212
213 * ada-lang.c (decode_constrained_packed_array)
214 (ada_value_assign, value_assign_to_component): Update.
215 * dwarf2loc.c (rw_pieced_value, access_memory)
216 (dwarf2_compile_expr_to_ax): Update.
217 * dwarf2read.c (dwarf2_add_field): Update.
218 * eval.c (evaluate_subexp_standard): Update.
219 * gdbarch.c, gdbarch.h: Rebuild.
220 * gdbarch.sh (bits_big_endian): Remove.
221 * gdbtypes.h (union field_location): Update comment.
222 * target-descriptions.c (make_gdb_type): Update.
223 * valarith.c (value_bit_index): Update.
224 * value.c (struct value) <bitpos>: Update comment.
225 (unpack_bits_as_long, modify_field): Update.
226 * value.h (value_bitpos): Update comment.
227
7ab4a236
TT
2282019-12-04 Tom Tromey <tromey@adacore.com>
229
230 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
231 endian-ness.
232
103a685e
TT
2332019-12-04 Tom Tromey <tromey@adacore.com>
234
235 * dwarf2read.c (dwarf2_init_float_type)
236 (dwarf2_init_complex_target_type): Add byte_order parameter.
237 (read_base_type): Compute byte order earlier.
238 * gdbtypes.c (init_float_type): Add byte_order parameter.
239 * gdbtypes.h (init_float_type): Add byte_order parameter.
240
7a9e9f9f
TT
2412019-12-04 Tom Tromey <tromey@adacore.com>
242
243 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
244
feee869b
TT
2452019-12-04 Tom Tromey <tromey@adacore.com>
246
247 * dwarf2read.c (process_structure_scope): Initialize
248 "discr_offset".
249
c2512106
AB
2502019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
253 add it into the search spec.
254 (parse_max_results_option): New function.
255 (mi_info_functions_or_variables): Parse -max-results flag and pass
256 it to mi_symbol_info.
257 (mi_cmd_symbol_info_modules): Likewise.
258 (mi_cmd_symbol_info_types): Likewise.
259 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
260 return type to bool, change result container into a set, and don't
261 add new results if we have enough already.
262 (global_symbol_searcher::add_matching_msymbols): Change return
263 type to bool, and don't add new results if we have enough already.
264 (sort_search_symbols_remove_dups): Delete.
265 (global_symbol_searcher::search): Early exit from search loop when
266 we have enough results. Use a std::set to collect the results
267 from calling add_matching_symbols.
268 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
269 member function.
270 (global_symbol_searcher) <m_max_search_results>: New member
271 variable.
272 (global_symbol_searcher) <add_matching_symbols>: Update header
273 comment and change return type to bool.
274 (global_symbol_searcher) <add_matching_msymbols>: Update header
275 comment and change return type to bool.
276
f97a63c5
AB
2772019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * symtab.c (symbol_search::compare_search_syms): Update header
280 comment.
281 (global_symbol_searcher::is_suitable_msymbol): New function.
282 (global_symbol_searcher::expand_symtabs): New function.
283 (global_symbol_searcher::add_matching_symbols): New function.
284 (global_symbol_searcher::add_matching_msymbols): New function.
285 (global_symbol_searcher::search): Move most of the content
286 into the new functions above, and call them as needed.
287 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
288 function.
289 (global_symbol_searcher) <add_matching_symbols>: New member
290 function.
291 (global_symbol_searcher) <add_matching_msymbols>: New member
292 function.
293 (global_symbol_searcher) <is_suitable_msymbol>: New member
294 function.
295
293b38d6
AB
2962019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
299 -symbol-info-module-variables entries.
300 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
301 (mi_cmd_symbol_info_module_variables): Declare.
302 * mi/mi-symbol-cmds.c
303 (module_symbol_search_iterator): New typedef.
304 (output_module_symbols_in_single_module_and_file): New function.
305 (output_module_symbols_in_single_module): New function.
306 (mi_info_module_functions_or_variables): New function.
307 (mi_cmd_symbol_info_module_functions): New function.
308 (mi_cmd_symbol_info_module_variables): New function.
309 * NEWS: Mention new MI command.
310
4cbd39b2
CB
3112019-12-03 Christian Biesinger <cbiesinger@google.com>
312
313 * bcache.c (hash): Remove.
314 (hash_continue): Remove.
315 * bcache.h (hash): Remove.
316 (hash_continue): Remove.
317 (struct bcache) <ctor>: Update.
318 * psymtab.c (psymbol_hash): Update.
319 * stabsread.c (hashname): Update.
320 * utils.h (fast_hash): Add an argument for a start value,
321 defaulting to zero.
322
82f910ea
PW
3232019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
324 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
325 (destroy_block_symbol_cache): New function.
326 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
327 (resize_symbol_cache): Likewise.
328
de2396d0
TT
3292019-12-02 Tom Tromey <tom@tromey.com>
330
331 * unittests/tui-selftests.c (run_tests): Make conditional.
332 (_initialize_tui_selftest): Make conditional.
333
638d85bc
CB
3342019-12-02 Christian Biesinger <cbiesinger@google.com>
335
336 * aix-thread.c (debug_aix_thread): Change type to bool.
337
7532a164
LM
3382019-12-02 Luis Machado <luis.machado@linaro.org>
339
340 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
341
216a7e6b
AB
3422019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * dwarf2read.c (read_tag_string_type): Read the fields required to
345 make a dynamic string, and possibly create a dynamic range for the
346 string.
347 (attr_to_dynamic_prop): Setup is_reference based on the type of
348 attribute being processed.
349 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
350 (resolve_dynamic_array): Rename to...
351 (resolve_dynamic_array_or_string): ...this, update header comment,
352 and accept TYPE_CODE_STRING.
353 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
354
11a8b164
AB
3552019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
358 of its implementation from...
359 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
360 the new function.
361
5bbd8269
AB
3622019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
363
364 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
365 create a range with stride where appropriate.
366 * f-valprint.c: Include 'gdbarch.h'.
367 (f77_print_array_1): Take the stride into account when walking the
368 array. Also convert the stride into addressable units.
369 * gdbtypes.c (create_range_type): Initialise the stride to
370 constant zero.
371 (create_range_type_with_stride): New function, initialise the
372 range as normal, and then setup the stride.
373 (has_static_range): Include the stride here. Also change the
374 return type to bool.
375 (create_array_type_with_stride): Consider the range stride if the
376 array isn't given its own stride.
377 (resolve_dynamic_range): Resolve the stride if needed.
378 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
379 (struct range_bounds) <flag_is_byte_stride>: New member variable.
380 (TYPE_BIT_STRIDE): Define.
381 (TYPE_ARRAY_BIT_STRIDE): Define.
382 (create_range_type_with_stride): Declare.
383 * valarith.c (value_subscripted_rvalue): Take range stride into
384 account when walking the array.
385
82e3b564
TT
3862019-12-01 Tom Tromey <tom@tromey.com>
387
388 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
389 specially.
390
517d261d
TT
3912019-12-01 Tom Tromey <tom@tromey.com>
392
393 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
394 \0.
395 * unittests/tui-selftests.c: New file.
396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
397
484c9b64
TT
3982019-12-01 Tom Tromey <tom@tromey.com>
399
400 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
401
a2a7af0c
TT
4022019-12-01 Tom Tromey <tom@tromey.com>
403
404 * NEWS: Document new settings.
405 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
406 * tui/tui-win.c (_initialize_tui_win): Add border style
407 observers.
408 * tui/tui-io.h (tui_apply_style): Declare.
409 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
410 longer static.
411 (apply_ansi_escape, tui_set_reverse_mode): Update.
412 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
413 Add "skip_intensity" parameter.
414 <changed>: New member.
415 <do_set_value>: Declare.
416 (tui_border_style, tui_active_border_style): Declare.
417 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
418 globals.
419 (cli_style_option): Initialize "changed".
420 (cli_style_option::do_set_value): New function.
421 (cli_style_option::add_setshow_commands): Add "skip_intensity"
422 parameter. Update.
423 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
424 (_initialize_cli_style): Update. Create TUI border style
425 commands.
426
d1da6b01
TT
4272019-12-01 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
430 parameter.
431 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
432 parameter.
433 * tui/tui-win.h (compact_source): Declare.
434 * tui/tui-win.c (compact_source): New global.
435 (tui_set_compact_source, tui_show_compact_source): New functions.
436 (_initialize_tui_win): Add "compact-source" setting.
437 * tui/tui-source.c (tui_source_window::set_contents): Handle
438 compact_source setting.
439 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
440 * NEWS: Document new setting.
441
489dbda6
TT
4422019-11-30 Tom Tromey <tom@tromey.com>
443
444 * dwarf2read.c (dwarf2_add_field): Include field offset when
445 computing variant part length.
446
bf498525
PW
4472019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
448 * NEWS: Mention define-prefix. Tell that command names can now
449 contain a . character.
450
be09caf1
PW
4512019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
452
453 * command.h (valid_cmd_char_p): Declare.
454 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
455 the check of valid command char.
456 (find_command_name_length, valid_user_defined_cmd_name_p): Use
457 valid_cmd_char_p.
458 * cli/cli-script.c (validate_comname): Likewise.
459 * completer.c (gdb_completer_command_word_break_characters):
460 Do not remove . from the word break char, update comments.
461 (complete_line_internal_1): Use valid_cmd_char_p.
462 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
463 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
464
c6ac7fc9
PW
4652019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
466
467 * cli/cli-script.c (do_define_command): Ensure a redefined
468 prefix command is kept as a prefix command.
469 (define_prefix_command): New function.
470 (show_user_1): Report user defined prefixes.
471 (_initialize_cli_script): Create the new 'define-prefix' command.
472 Add completers for 'define' and 'document'.
473 * top.c (execute_command): If command is a user-defined prefix only
474 command, report the list of commands for this prefix command.
475
a992a3b0
TBA
4762019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477
478 * valops.c (find_oload_champ): Improve debug output.
479
e9194a1a
TBA
4802019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481
482 * valops.c (find_oload_champ): Print part of debug messages
483 before the badness vector is std::move'd.
484
53a008a6
TT
4852019-11-28 Tom Tromey <tom@tromey.com>
486
487 * value.c (creal_internal_fn): Fix comment.
488
bab05c83
TT
4892019-11-28 Tom Tromey <tom@tromey.com>
490
491 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
492 flag_bound_evaluated>: Now unsigned.
493
2522f049
TT
4942019-11-28 Tom Tromey <tom@tromey.com>
495
496 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
497 declare.
498
38b49e22
MS
4992019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
500
501 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
502 debug output.
503 * jit.c (jit_unregister_code): Add debug print to match
504 `jit_register_code`.
505
35125921
CB
5062019-11-27 Christian Biesinger <cbiesinger@google.com>
507
508 * NEWS: Mention the new multithreaded symbol loading.
509
62e77f56
CB
5102019-11-27 Christian Biesinger <cbiesinger@google.com>
511
512 * maint.c (n_worker_threads): Default to 0.
513 (worker_threads_disabled): New function.
514 * maint.h (worker_threads_disabled): New function.
515 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
516 here if worker_threads_disabled () is true.
517 (minimal_symbol_reader::install): Skip all threading if
518 worker_threads_disabled () is true.
519
f29d7f6b
CB
5202019-11-27 Christian Biesinger <cbiesinger@google.com>
521
522 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
523 hash code if possible.
524 (add_minsym_to_demangled_hash_table): Likewise.
525 (minimal_symbol_reader::install): Compute the hash codes for msymbol
526 on the background thread.
527 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
528 Add these fields.
529
e76b2246
CB
5302019-11-27 Christian Biesinger <cbiesinger@google.com>
531
532 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
533 of the mangled name on the background thread.
534 * symtab.c (symbol_set_names): Allow passing in the hash of the
535 linkage_name.
536 * symtab.h (symbol_set_names): Likewise.
537
8d9a2568
KB
5382019-11-27 Kevin Buettner <kevinb@redhat.com>
539
540 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
541 physnames are computed for inherited DIEs.
542
fad03f6e
TT
5432019-11-27 Tom Tromey <tromey@adacore.com>
544
545 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
546 backslashes.
547 * cp-support.c: Remove unnecessary backslashes.
548
43678b0a
CB
5492019-11-27 Christian Biesinger <cbiesinger@google.com>
550
551 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
552 with sym->set_linkage_name.
553 * coffread.c (coff_read_enum_type): Likewise.
554 * mdebugread.c (parse_symbol): Likewise.
555 * stabsread.c (patch_block_stabs): Likewise.
556 (define_symbol): Likewise.
557 (read_enum_type): Likewise.
558 (common_block_end): Likewise.
559 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
560 function.
561 (SYMBOL_SET_LINKAGE_NAME): Remove.
562 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
563 with sym->set_linkage_name.
564
db5960b4
AB
5652019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
568 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
569 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
570 * NEWS: Mention new MI command.
571
7dc42066
AB
5722019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
575 '-symbol-info-types', and '-symbol-info-variables'.
576 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
577 (mi_cmd_symbol_info_types): Declare.
578 (mi_cmd_symbol_info_variables): Declare.
579 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
580 (output_debug_symbol): New function.
581 (output_nondebug_symbol): New function.
582 (mi_symbol_info): New function.
583 (mi_info_functions_or_variables): New function.
584 (mi_cmd_symbol_info_functions): New function.
585 (mi_cmd_symbol_info_types): New function.
586 (mi_cmd_symbol_info_variables): New function.
587 * NEWS: Mention new commands.
588
5f512a7d
AB
5892019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * symtab.c (symbol_to_info_string): New function, most content
592 moved from print_symbol_info, but updated to return a std::string.
593 (print_symbol_info): Update to use symbol_to_info_string and print
594 returned string.
595 * symtab.h (symbol_to_info_string): Declare new function.
596
470c0b1c
AB
5972019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * python/python.c (gdbpy_rbreak): Convert to using
600 global_symbol_searcher.
601 * symtab.c (file_matches): Convert return type to bool, change
602 file list to std::vector, update header comment.
603 (search_symbols): Rename to...
604 (global_symbol_searcher::search): ...this and update now its
605 a member function of global_symbol_searcher. Take account of the
606 changes to file_matches.
607 (symtab_symbol_info): Convert to using global_symbol_searcher.
608 (rbreak_command): Likewise.
609 (search_module_symbols): Likewise.
610 * symtab.h (enum symbol_search): Update comment.
611 (search_symbols): Remove declaration.
612 (class global_symbol_searcher): New class.
613
57357d9d
TT
6142019-11-26 Tom Tromey <tromey@adacore.com>
615
616 * cp-support.c (_initialize_cp_support): Conditionally initialize
617 gdb_demangle_attempt_core_dump.
618
3ea16160
TT
6192019-11-26 Tom Tromey <tom@tromey.com>
620
621 * python/py-function.c (fnpy_init): Update.
622 * value.h (add_internal_function): Adjust declaration.
623 * value.c (function_destroyer): Remove.
624 (do_add_internal_function): Don't set destroyer or copy name.
625 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
626 Set name_allocated.
627 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
628 (cmdpy_init): Set name_allocated.
629 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
630 member.
631 (~cmd_list_element): Free "name" if needed.
632
1a6d41c6
TT
6332019-11-26 Tom Tromey <tom@tromey.com>
634
635 * value.h (add_internal_function): Add new overload. Move
636 documentation from value.h.
637 * value.c (do_add_internal_function): New function.
638 (add_internal_function): Use it. Add new overload.
639 (function_destroyer): Don't free doc.
640 * python/py-function.c (fnpy_init): Update.
641
8318f3c3
TT
6422019-11-26 Tom Tromey <tom@tromey.com>
643
644 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
645 (cmdpy_init): Set "doc_allocated".
646
4da8c3a8
TT
6472019-11-26 Tom Tromey <tom@tromey.com>
648
649 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
650 name of worker thread.
651 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
652 pthread_setname_np.
653 * configure, config.in: Rebuild.
654
971db5e2
TT
6552019-11-26 Tom Tromey <tom@tromey.com>
656
657 * python/python.c (class gdbpy_gil): New.
658 (struct gdbpy_event): Add constructor, destructor, operator().
659 (gdbpy_post_event): Use run_on_main_thread.
660 (gdbpy_initialize_events): Remove.
661 (do_start_initialization): Update.
662
22138db6
TT
6632019-11-26 Tom Tromey <tom@tromey.com>
664
665 * NEWS: Add entry.
666 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
667 commands. Call update_thread_pool_size.
668 (update_thread_pool_size, maintenance_set_worker_threads): New
669 functions.
670 (n_worker_threads): New global.
671
d55c9a68
TT
6722019-11-26 Christian Biesinger <cbiesinger@google.com>
673 Tom Tromey <tom@tromey.com>
674
675 * minsyms.c (minimal_symbol_reader::install): Use
676 parallel_for_each.
677 * gdbsupport/parallel-for.h: New file.
678 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
679
a0b57563
CB
6802019-11-26 Christian Biesinger <cbiesinger@google.com>
681 Tom Tromey <tom@tromey.com>
682
683 * gdbsupport/thread-pool.h: New file.
684 * gdbsupport/thread-pool.c: New file.
685 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
686 (HFILES_NO_SRCDIR): Add thread-pool.h.
687
3b3978bc
TT
6882019-11-26 Tom Tromey <tom@tromey.com>
689
690 * event-top.h (thread_local_segv_handler): Declare.
691 * event-top.c (thread_local_segv_handler): New global.
692 (install_handle_sigsegv, handle_sigsegv): New functions.
693 (async_init_signals): Install SIGSEGV handler.
694 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
695 thread-local.
696 (report_failed_demangle): New function.
697 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
698 handler-setting code, instead use segv_handler. Run warning code
699 on main thread.
700
9411c49e
TT
7012019-11-26 Tom Tromey <tom@tromey.com>
702
703 * run-on-main-thread.c: New file.
704 * run-on-main-thread.h: New file.
705 * unittests/main-thread-selftests.c: New file.
706 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
707 main-thread-selftests.c.
708 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
709 (COMMON_SFILES): Add run-on-main-thread.c.
710
c3efb965
TT
7112019-11-26 Tom Tromey <tom@tromey.com>
712
713 * main.c (setup_alternate_signal_stack): Remove.
714 (captured_main_1): Use gdb::alternate_signal_stack.
715 * gdbsupport/alt-stack.h: New file.
716
21987b9c
TT
7172019-11-26 Tom Tromey <tom@tromey.com>
718
719 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
720 Remove comment.
721 (save_original_signals_state, restore_original_signals_state): Use
722 gdb_sigmask.
723 * linux-nat.c (block_child_signals, restore_child_signals_mask)
724 (_initialize_linux_nat): Use gdb_sigmask.
725 * guile/guile.c (_initialize_guile): Use block_signals.
726 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
727 * gdbsupport/gdb-sigmask.h: New file.
728 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
729 * cp-support.c (gdb_demangle): Use gdb_sigmask.
730 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
731 pthread_sigmask.
732 * configure, config.in: Rebuild.
733 * gdbsupport/block-signals.h: New file.
734
5e030278
TT
7352019-11-26 Tom Tromey <tom@tromey.com>
736
737 * acinclude.m4: Include ax_pthread.m4.
738 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
739 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
740 (CLIBS): Use PTHREAD_LIBS.
741 (aclocal_m4_deps): Add ax_pthread.m4.
742 * config.in, configure: Rebuild.
743 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
744
5a79c107
TT
7452019-11-26 Tom Tromey <tom@tromey.com>
746
747 * symtab.h (struct minimal_symbol) <name_set>: New member.
748 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
749 Don't call symbol_set_names.
750 (minimal_symbol_reader::install): Call symbol_set_names.
751
aa369509
PW
7522019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
753
754 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
755 restore_active_ext_lang, as GIL is needed for (indirectly)
756 called PyOS_InterruptOccurred.
757
cadc9cb8
SM
7582019-11-26 Simon Marchi <simon.marchi@efficios.com>
759
760 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
761 definition.
762
d04afd58
SM
7632019-11-26 Simon Marchi <simon.marchi@efficios.com>
764
765 * remote-sim.c (simulator_command): Make static, remove
766 declaration.
767
dd694d77
SM
7682019-11-26 Simon Marchi <simon.marchi@efficios.com>
769
770 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
771 static.
772 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
773 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
774 (main): Likewise.
775 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
776 (main): Likewise.
777 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
778 (main): Likewise.
779 * unittests/basic_string_view/element_access/char/1.cc (test01):
780 Likewise.
781 (main): Likewise.
782 * unittests/basic_string_view/element_access/char/empty.cc (main):
783 Likewise.
784 * unittests/basic_string_view/element_access/char/front_back.cc
785 (test01): Likewise.
786 (main): Likewise.
787 * unittests/basic_string_view/inserters/char/2.cc (test05):
788 Likewise.
789 (main): Likewise.
790 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
791 (test01): Likewise.
792 (main): Likewise.
793 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
794 (test01): Likewise.
795 (main): Likewise.
796 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
797 Likewise.
798 * unittests/basic_string_view/operations/compare/char/1.cc
799 (test01): Likewise.
800 (main): Likewise.
801 * unittests/basic_string_view/operations/compare/char/13650.cc
802 (test01): Likewise.
803 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
804 Likewise.
805 (main): Likewise.
806 * unittests/basic_string_view/operations/data/char/1.cc (test01):
807 Likewise.
808 (main): Likewise.
809 * unittests/basic_string_view/operations/find/char/1.cc (test01):
810 Likewise.
811 (main): Likewise.
812 * unittests/basic_string_view/operations/find/char/2.cc (test02):
813 Likewise.
814 (main): Likewise.
815 * unittests/basic_string_view/operations/find/char/3.cc (test03):
816 Likewise.
817 (main): Likewise.
818 * unittests/basic_string_view/operations/find/char/4.cc (main):
819 Likewise.
820 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
821 Likewise.
822 (main): Likewise.
823 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
824 Likewise.
825 (main): Likewise.
826 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
827 Likewise.
828 (main): Likewise.
829 * unittests/basic_string_view/operations/substr/char/1.cc
830 (test01): Likewise.
831 (main): Likewise.
832 * unittests/basic_string_view/operators/char/2.cc (main):
833 Likewise.
834 * unittests/optional/assignment/1.cc (test): Likewise.
835 * unittests/optional/assignment/2.cc (test): Likewise.
836 * unittests/optional/assignment/3.cc (test): Likewise.
837 * unittests/optional/assignment/4.cc (test): Likewise.
838 * unittests/optional/assignment/5.cc (test): Likewise.
839 * unittests/optional/assignment/6.cc (test): Likewise.
840 * unittests/optional/assignment/7.cc (test): Likewise.
841 * unittests/optional/cons/copy.cc (test): Likewise.
842 * unittests/optional/cons/default.cc (test): Likewise.
843 * unittests/optional/cons/move.cc (test): Likewise.
844 * unittests/optional/cons/value.cc (test): Likewise.
845 * unittests/optional/in_place.cc (test): Likewise.
846 * unittests/optional/observers/1.cc (test): Likewise.
847 * unittests/optional/observers/2.cc (test): Likewise.
848
3b5c1d49
SM
8492019-11-26 Simon Marchi <simon.marchi@efficios.com>
850
851 * tui-win.h (tui_set_var_cmd): Remove.
852 * tui-win.c (tui_set_var_cmd): Make static.
853
adce99fe
SM
8542019-11-26 Simon Marchi <simon.marchi@efficios.com>
855
856 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
857 rbreak_command_wrapper): Remove.
858 * symtab.c (rbreak_command_wrapper): Remove.
859
fe3adccf
SM
8602019-11-26 Simon Marchi <simon.marchi@efficios.com>
861
862 * inferior.h (info_terminal_command): Remove declaration.
863 * inflow.c (info_terminal_command): Make static.
864
b926335f
SM
8652019-11-26 Simon Marchi <simon.marchi@efficios.com>
866
867 * inferior.c (exit_inferior_silent): Remove.
868
b62f6f54
SM
8692019-11-26 Simon Marchi <simon.marchi@efficios.com>
870
871 * dictionary.c (dict_empty, mdict_empty): Remove.
872 * dictionary.c (mdict_empty): Remove.
873
cb8c24b6
SM
8742019-11-26 Simon Marchi <simon.marchi@efficios.com>
875
876 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
877 (arc_insn_get_memory_offset): Likewise.
878 (arc_insn_dump): Likewise.
879 * cp-support.c (test_cp_symbol_name_matches): Likewise.
880 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
881 * dictionary.c (dict_iterator_next): Likewise.
882 (dict_iter_match_first): Likewise.
883 (dict_iter_match_next): Likewise.
884 * f-lang.c (evaluate_subexp_f): Likewise.
885 * hppa-tdep.c (hppa_read_pc): Likewise.
886 * i386-tdep.c (i386_floatformat_for_type): Likewise.
887 * parse.c (write_exp_elt_msym): Likewise.
888 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
889 * remote.c (remote_packet_size): Likewise.
890 (remote_notif_stop_parse): Likewise.
891 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
892 * s12z-tdep.c (s12z_disassemble_info): Likewise.
893 * source.c (prepare_path_for_appending): Likewise.
894 * sparc64-linux-tdep.c
895 (sparc64_linux_handle_segmentation_fault); Likewise.
896 * stack.c (frame_selection_by_function_completer): Likewise.
897
781597ff
SM
8982019-11-26 Simon Marchi <simon.marchi@efficios.com>
899
900 * completer.c (set_gdb_completion_word_break_characters):
901 Remove.
902
23baa4cc
SM
9032019-11-26 Simon Marchi <simon.marchi@efficios.com>
904
905 * dwarf-index-write.c: Include dwarf-index-write.h.
906 * mi/mi-interp.c: Include mi/mi-interp.h.
907
23767560
SM
9082019-11-26 Simon Marchi <simon.marchi@efficios.com>
909
910 * aarch32-tdep.c: Include aarch32-tdep.h.
911 * aarch32-tdep.h: Forward-declare struct target_desc.
912
6d91ce9a
CB
9132019-11-26 Christian Biesinger <cbiesinger@google.com>
914
915 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
916 strerror.
917 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
918 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
919
3cf2f237
TV
9202019-11-25 Tom de Vries <tdevries@suse.de>
921
922 * contrib/words.sh: Add -c option.
923
5b89c67a
CB
9242019-11-25 Christian Biesinger <cbiesinger@google.com>
925
926 * solib.c (solib_find_1): Change int to bool.
927 (exec_file_find): Change int to bool.
928 (solib_find): Change int to bool.
929 (solib_read_symbols): Change int to bool.
930 (solib_used): Change int to bool.
931 (solib_add): Change int to bool.
932 (info_sharedlibrary_command): Change int to bool.
933 (solib_contains_address_p): Change int to bool.
934 (solib_keep_data_in_core): Change int to bool.
935 (in_solib_dynsym_resolve_code): Change int to bool.
936 (reload_shared_libraries_1): Change int to bool.
937 (gdb_sysroot_changed): Change int to bool.
938 * solib.h (solib_read_symbols): Change int to bool.
939 (solib_contains_address_p): Change int to bool.
940 (solib_keep_data_in_core): Change int to bool.
941 (in_solib_dynsym_resolve_code): Change int to bool.
942 (libpthread_name_p): Change int to bool.
943
6cc8564b
LM
9442019-11-25 Luis Machado <luis.machado@linaro.org>
945
946 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
947 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
948 (remote_packet_max_chars): New static global.
949 (show_remote_packet_max_chars): New function.
950 (remote_target::putpkt_binary): Adjust to use new
951 remote_packet_max_chars option.
952 (remote_target::getpkt_or_notif_sane_1): Likewise.
953 (_initialize_remote): Register new remote-packet-max-chars option.
954
a7cdaa91
SM
9552019-11-24 Simon Marchi <simon.marchi@efficios.com>
956
957 * m68k-linux-nat.c: Include gdbarch.h.
958
26abc753
TT
9592019-11-24 Tom Tromey <tom@tromey.com>
960
961 * symfile.c (read_symbols): Update.
962 * psymtab.c (require_partial_symbols): Change type of "verbose" to
963 bool.
964 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
965 (psym_lookup_symbol, psym_find_last_source_symtab)
966 (psym_forget_cached_source_info, psym_print_stats)
967 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
968 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
969 (psym_map_matching_symbols, psym_expand_symtabs_matching)
970 (psym_find_compunit_symtab_by_address)
971 (maintenance_print_psymbols, maintenance_info_psymtabs)
972 (maintenance_check_psymtabs): Update.
973 * psymtab.h (require_partial_symbols): Change type of "verbose" to
974 bool.
975
012fc909
TT
9762019-11-22 Tom Tromey <tom@tromey.com>
977
978 * observable.h: Update comments.
979
c83d8d32
TT
9802019-11-22 Tom Tromey <tromey@adacore.com>
981
982 * ada-tasks.c (ada_task_is_alive): Make parameter const.
983 (print_ada_task_info): Don't try to fetch thread id if task is not
984 alive.
985
987012b8
CB
9862019-11-22 Christian Biesinger <cbiesinger@google.com>
987
988 * ada-exp.y: Update.
989 * ada-lang.c (sort_choices): Update.
990 (ada_print_symbol_signature): Update.
991 (resolve_subexp): Update.
992 (ada_parse_renaming): Update.
993 (ada_read_renaming_var_value): Update.
994 (lesseq_defined_than): Update.
995 (remove_extra_symbols): Update.
996 (remove_irrelevant_renamings): Update.
997 (ada_add_block_symbols): Update.
998 (ada_collect_symbol_completion_matches): Update.
999 (ada_is_renaming_symbol): Update.
1000 (aggregate_assign_from_choices): Update.
1001 (ada_evaluate_subexp): Update.
1002 (ada_has_this_exception_support): Update.
1003 (ada_is_non_standard_exception_sym): Update.
1004 (ada_add_exceptions_from_frame): Update.
1005 (ada_add_global_exceptions): Update.
1006 (ada_print_subexp): Update.
1007 * ax-gdb.c (gen_var_ref): Update.
1008 (gen_maybe_namespace_elt): Update.
1009 (gen_expr_for_cast): Update.
1010 (gen_expr): Update.
1011 * block.h: Update.
1012 * blockframe.c (find_pc_partial_function): Update.
1013 * breakpoint.c (print_breakpoint_location): Update.
1014 (update_static_tracepoint): Update.
1015 * btrace.c (ftrace_print_function_name): Update.
1016 (ftrace_function_switched): Update.
1017 * buildsym.c (find_symbol_in_list): Update.
1018 * c-exp.y: Update.
1019 * c-typeprint.c (c_print_typedef): Update.
1020 (c_type_print_template_args): Update.
1021 * cli/cli-cmds.c (edit_command): Update.
1022 (list_command): Update.
1023 (print_sal_location): Update.
1024 * coffread.c (patch_opaque_types): Update.
1025 (process_coff_symbol): Update.
1026 (coff_read_enum_type): Update.
1027 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1028 (convert_one_symbol): Update.
1029 (hash_symname): Update.
1030 (eq_symname): Update.
1031 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1032 * compile/compile-cplus-types.c (debug_print_scope): Update.
1033 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1034 * compile/compile-object-load.c (get_out_value_type): Update.
1035 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1036 (search_symbol_list): Update.
1037 (cp_lookup_symbol_imports_or_template): Update.
1038 * cp-support.c (overload_list_add_symbol): Update.
1039 * ctfread.c (psymtab_to_symtab): Update.
1040 * dbxread.c (cp_set_block_scope): Update.
1041 * dictionary.c (iter_match_first_hashed): Update.
1042 (iter_match_next_hashed): Update.
1043 (insert_symbol_hashed): Update.
1044 (iter_match_next_linear): Update.
1045 * dictionary.h: Update.
1046 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1047 (locexpr_describe_location_piece): Update.
1048 (locexpr_describe_location_1): Update.
1049 (locexpr_generate_c_location): Update.
1050 (loclist_describe_location): Update.
1051 (loclist_generate_c_location): Update.
1052 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1053 (read_func_scope): Update.
1054 (process_enumeration_scope): Update.
1055 (new_symbol): Update.
1056 (dwarf2_const_value): Update.
1057 (dwarf2_symbol_mark_computed): Update.
1058 * eval.c (evaluate_funcall): Update.
1059 (evaluate_subexp_standard): Update.
1060 * expprint.c (print_subexp_standard): Update.
1061 (dump_subexp_body_standard): Update.
1062 * f-valprint.c (info_common_command_for_block): Update.
1063 * findvar.c (get_hosting_frame): Update.
1064 (default_read_var_value): Update.
1065 * go-lang.c (go_symbol_package_name): Update.
1066 * guile/scm-block.c (bkscm_print_block_smob): Update.
1067 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1068 (gdbscm_symbol_name): Update.
1069 (gdbscm_symbol_linkage_name): Update.
1070 (gdbscm_symbol_print_name): Update.
1071 * infcall.c (get_function_name): Update.
1072 * infcmd.c (jump_command): Update.
1073 (finish_command): Update.
1074 * infrun.c (insert_exception_resume_breakpoint): Update.
1075 * linespec.c (canonicalize_linespec): Update.
1076 (create_sals_line_offset): Update.
1077 (convert_linespec_to_sals): Update.
1078 (complete_label): Update.
1079 (find_label_symbols_in_block): Update.
1080 * m2-typeprint.c (m2_print_typedef): Update.
1081 * mdebugread.c (mdebug_reg_to_regnum): Update.
1082 (parse_symbol): Update.
1083 (mylookup_symbol): Update.
1084 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1085 (list_args_or_locals): Update.
1086 * objc-lang.c (compare_selectors): Update.
1087 (info_selectors_command): Update.
1088 (compare_classes): Update.
1089 (info_classes_command): Update.
1090 (find_imps): Update.
1091 * p-typeprint.c (pascal_print_typedef): Update.
1092 * printcmd.c (build_address_symbolic): Update.
1093 (info_address_command): Update.
1094 (print_variable_and_value): Update.
1095 * python/py-framefilter.c (extract_sym): Update.
1096 (py_print_single_arg): Update.
1097 * python/py-symbol.c (sympy_str): Update.
1098 (sympy_get_name): Update.
1099 (sympy_get_linkage_name): Update.
1100 * python/python.c (gdbpy_rbreak): Update.
1101 * record-btrace.c (btrace_get_bfun_name): Update.
1102 (btrace_call_history): Update.
1103 * rust-lang.c (rust_print_typedef): Update.
1104 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1105 * stabsread.c (stab_reg_to_regnum): Update.
1106 (define_symbol): Update.
1107 (read_enum_type): Update.
1108 (common_block_end): Update.
1109 (cleanup_undefined_types_1): Update.
1110 (scan_file_globals): Update.
1111 * stack.c (print_frame_arg): Update.
1112 (print_frame_args): Update.
1113 (find_frame_funname): Update.
1114 (info_frame_command_core): Update.
1115 (iterate_over_block_locals): Update.
1116 (print_block_frame_labels): Update.
1117 (do_print_variable_and_value): Update.
1118 (iterate_over_block_arg_vars): Update.
1119 (return_command): Update.
1120 * symmisc.c (dump_symtab_1): Update.
1121 (print_symbol): Update.
1122 * symtab.c (eq_symbol_entry): Update.
1123 (symbol_cache_dump): Update.
1124 (lookup_language_this): Update.
1125 (find_pc_sect_line): Update.
1126 (skip_prologue_sal): Update.
1127 (symbol_search::compare_search_syms): Update.
1128 (treg_matches_sym_type_name): Update.
1129 (search_symbols): Update.
1130 (print_symbol_info): Update.
1131 (rbreak_command): Update.
1132 (completion_list_add_symbol): Update.
1133 (find_gnu_ifunc): Update.
1134 (get_symbol_address): Update.
1135 (search_module_symbols): Update.
1136 (info_module_subcommand): Update.
1137 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1138 (SYMBOL_LINKAGE_NAME): Remove.
1139 (SYMBOL_DEMANGLED_NAME): Remove.
1140 (SYMBOL_PRINT_NAME): Remove.
1141 (SYMBOL_SEARCH_NAME): Remove.
1142 * tracepoint.c (set_traceframe_context): Update.
1143 (validate_actionline): Update.
1144 (collection_list::collect_symbol): Update.
1145 (encode_actions_1): Update.
1146 (info_scope_command): Update.
1147 (print_one_static_tracepoint_marker): Update.
1148 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1149 * valops.c (address_of_variable): Update.
1150 (find_overload_match): Update.
1151 (find_oload_champ): Update.
1152
c9d95fa3
CB
11532019-11-22 Christian Biesinger <cbiesinger@google.com>
1154
1155 * ada-lang.c (ada_lookup_simple_minsym): Update.
1156 (ada_collect_symbol_completion_matches): Update.
1157 * ada-tasks.c (read_atcb): Update.
1158 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1159 (amd64_windows_skip_trampoline_code): Update.
1160 * arm-tdep.c (skip_prologue_function): Update.
1161 (arm_skip_stack_protector): Update.
1162 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1163 (arm_wince_skip_main_prologue): Update.
1164 * ax-gdb.c (gen_expr): Update.
1165 * block.c (call_site_for_pc): Update.
1166 * blockframe.c (find_pc_partial_function): Update.
1167 * breakpoint.c (set_breakpoint_location_function): Update.
1168 * btrace.c (ftrace_print_function_name): Update.
1169 (ftrace_function_switched): Update.
1170 * c-valprint.c (print_unpacked_pointer): Update.
1171 * coffread.c (coff_symfile_read): Update.
1172 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1173 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1174 * dwarf-index-write.c (write_psymbols): Update.
1175 * dwarf2loc.c (call_site_to_target_addr): Update.
1176 (func_verify_no_selftailcall): Update.
1177 (tailcall_dump): Update.
1178 (call_site_find_chain_1): Update.
1179 (dwarf_expr_reg_to_entry_parameter): Update.
1180 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1181 * eval.c (evaluate_funcall): Update.
1182 (evaluate_subexp_standard): Update.
1183 (evaluate_subexp_for_sizeof): Update.
1184 * expprint.c (print_subexp_standard): Update.
1185 (dump_subexp_body_standard): Update.
1186 * frame.c (get_prev_frame_always_1): Update.
1187 * frv-tdep.c (frv_skip_main_prologue): Update.
1188 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1189 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1190 (gnuv3_get_typename_from_type_info): Update.
1191 (gnuv3_skip_trampoline): Update.
1192 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1193 * i386-tdep.c (i386_skip_main_prologue): Update.
1194 (i386_pe_skip_trampoline_code): Update.
1195 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1196 * infcall.c (get_function_name): Update.
1197 * linespec.c (minsym_found): Update.
1198 * linux-fork.c (info_checkpoints_command): Update.
1199 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1200 (m32c_m16c_pointer_to_address): Update.
1201 * maint.c (maintenance_translate_address): Update.
1202 * minsyms.c (add_minsym_to_hash_table): Update.
1203 (add_minsym_to_demangled_hash_table): Update.
1204 (lookup_minimal_symbol_mangled): Update.
1205 (lookup_minimal_symbol_demangled): Update.
1206 (lookup_minimal_symbol_linkage): Update.
1207 (lookup_minimal_symbol_text): Update.
1208 (lookup_minimal_symbol_by_pc_name): Update.
1209 (minimal_symbol_is_less_than): Update.
1210 (compact_minimal_symbols): Update.
1211 (build_minimal_symbol_hash_tables): Update.
1212 (find_solib_trampoline_target): Update.
1213 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1214 (mips_skip_pic_trampoline_code): Update.
1215 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1216 * objc-lang.c (info_selectors_command): Update.
1217 (info_classes_command): Update.
1218 (find_methods): Update.
1219 (find_imps): Update.
1220 * p-valprint.c (pascal_val_print): Update.
1221 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1222 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1223 * printcmd.c (build_address_symbolic): Update.
1224 (info_symbol_command): Update.
1225 * psymtab.c (psymbol_name_matches): Update.
1226 (match_partial_symbol): Update.
1227 (lookup_partial_symbol): Update.
1228 (print_partial_symbols): Update.
1229 (sort_pst_symbols): Update.
1230 (maintenance_check_psymtabs): Update.
1231 * python/py-framefilter.c (py_print_frame): Update.
1232 * python/python.c (gdbpy_rbreak): Update.
1233 * record-btrace.c (btrace_get_bfun_name): Update.
1234 (btrace_call_history): Update.
1235 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1236 (rs6000_skip_trampoline_code): Update.
1237 * sol-thread.c (info_cb): Update.
1238 * stabsread.c (scan_file_globals): Update.
1239 * stack.c (find_frame_funname): Update.
1240 (info_frame_command_core): Update.
1241 * symmisc.c (dump_msymbols): Update.
1242 * symtab.c (symbol_natural_name): Rename to..,
1243 (general_symbol_info::natural_name): ...this.
1244 (symbol_demangled_name): Rename to...
1245 (general_symbol_info::demangled_name): ...this.
1246 (symbol_search_name): Rename to...
1247 (general_symbol_info::search_name): ...this.
1248 (symbol_matches_search_name): Update.
1249 (find_pc_sect_line): Update.
1250 (skip_prologue_sal): Update.
1251 (search_symbols): Update.
1252 (print_msymbol_info): Update.
1253 (rbreak_command): Update.
1254 (completion_list_add_msymbol): Update.
1255 (completion_list_objc_symbol): Update.
1256 (get_msymbol_address): Update.
1257 * symtab.h (struct general_symbol_info): Add member functions
1258 natural_name (), linkage_name (), print_name (), demangled_name (),
1259 and search_name ().
1260 (SYMBOL_NATURAL_NAME): Update.
1261 (symbol_natural_name): Move to a member function on general_symbol_info.
1262 (SYMBOL_DEMANGLED_NAME): Update.
1263 (symbol_demangled_name): Move to a member function on
1264 general_symbol_info.
1265 (SYMBOL_SEARCH_NAME): Update.
1266 (symbol_search_name): Move to a member function on general_symbol_info.
1267 (MSYMBOL_NATURAL_NAME): Remove.
1268 (MSYMBOL_LINKAGE_NAME): Remove.
1269 (MSYMBOL_PRINT_NAME): Remove.
1270 (MSYMBOL_DEMANGLED_NAME): Remove.
1271 (MSYMBOL_SEARCH_NAME): Remove.
1272 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1273
f8bab2d6
CB
12742019-11-22 Christian Biesinger <cbiesinger@google.com>
1275
1276 * symtab.c (create_demangled_names_hash): Use per_bfd->
1277 minimal_symbol_count for computing the initial size, if greater
1278 than our default size.
1279
85e7588d
TV
12802019-11-22 Tom de Vries <tdevries@suse.de>
1281
1282 * contrib/words.sh: Improve words extraction.
1283
f6180073
TV
12842019-11-22 Tom de Vries <tdevries@suse.de>
1285
1286 * contrib/words.sh: Combine sed invocations.
1287
f10ffa41
CB
12882019-11-21 Christian Biesinger <cbiesinger@google.com>
1289
1290 * Makefile.in: Update.
1291 * demangle.c: Rename to...
1292 * gdb-demangle.c: ..this.
1293 (is_cplus_marker): Change return type to bool.
1294 (_initialize_demangler): Rename to...
1295 (_initialize_gdb_demangle): ...this.
1296 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1297 * symtab.h (demangle): Remove declaration; instead include
1298 gdb-demangle.h.
1299
6ba18521
TT
13002019-11-21 Tom Tromey <tromey@adacore.com>
1301
1302 * gdbsupport/format.c (format_pieces): Parse %I64d.
1303 * unittests/format_pieces-selftests.c (test_windows_formats): New
1304 function.
1305 (run_tests): Call it.
1306
34877895
PJ
13072019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1308
1309 Byte reverse display of variables with DW_END_big, DW_END_little
1310 (DW_AT_endianity) dwarf attributes if different than the native
1311 byte order.
1312 * ada-lang.c (ada_value_binop):
1313 Use type_byte_order instead of gdbarch_byte_order.
1314 * ada-valprint.c (printstr):
1315 (ada_val_print_string):
1316 * ada-lang.c (value_pointer):
1317 (ada_value_binop):
1318 Use type_byte_order instead of gdbarch_byte_order.
1319 * c-lang.c (c_get_string):
1320 Use type_byte_order instead of gdbarch_byte_order.
1321 * c-valprint.c (c_val_print_array):
1322 Use type_byte_order instead of gdbarch_byte_order.
1323 * cp-valprint.c (cp_print_class_member):
1324 Use type_byte_order instead of gdbarch_byte_order.
1325 * dwarf2loc.c (rw_pieced_value):
1326 Use type_byte_order instead of gdbarch_byte_order.
1327 * dwarf2read.c (read_base_type): Handle DW_END_big,
1328 DW_END_little
1329 * f-lang.c (f_get_encoding):
1330 Use type_byte_order instead of gdbarch_byte_order.
1331 * findvar.c (default_read_var_value):
1332 Use type_byte_order instead of gdbarch_byte_order.
1333 * gdbtypes.c (check_types_equal):
1334 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1335 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1336 and TYPE_ENDIANITY_LITTLE if set.
1337 (type_byte_order): new function.
1338 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1339 (struct main_type) <flag_endianity_not_default>:
1340 New field.
1341 (type_byte_order): New function.
1342 * infcmd.c (default_print_one_register_info):
1343 Use type_byte_order instead of gdbarch_byte_order.
1344 * p-lang.c (pascal_printstr):
1345 Use type_byte_order instead of gdbarch_byte_order.
1346 * p-valprint.c (pascal_val_print):
1347 Use type_byte_order instead of gdbarch_byte_order.
1348 * printcmd.c (print_scalar_formatted):
1349 Use type_byte_order instead of gdbarch_byte_order.
1350 * solib-darwin.c (darwin_current_sos):
1351 Use type_byte_order instead of gdbarch_byte_order.
1352 * solib-svr4.c (solib_svr4_r_ldsomap):
1353 Use type_byte_order instead of gdbarch_byte_order.
1354 * stap-probe.c (stap_modify_semaphore):
1355 Use type_byte_order instead of gdbarch_byte_order.
1356 * target-float.c (target_float_same_format_p):
1357 Use type_byte_order instead of gdbarch_byte_order.
1358 * valarith.c (scalar_binop):
1359 (value_bit_index):
1360 Use type_byte_order instead of gdbarch_byte_order.
1361 * valops.c (value_cast):
1362 Use type_byte_order instead of gdbarch_byte_order.
1363 * valprint.c (generic_emit_char):
1364 (generic_printstr):
1365 (val_print_string):
1366 Use type_byte_order instead of gdbarch_byte_order.
1367 * value.c (unpack_long):
1368 (unpack_bits_as_long):
1369 (unpack_value_bitfield):
1370 (modify_field):
1371 (pack_long):
1372 (pack_unsigned_long):
1373 Use type_byte_order instead of gdbarch_byte_order.
1374 * findvar.c (unsigned_pointer_to_address):
1375 (signed_pointer_to_address):
1376 (unsigned_address_to_pointer):
1377 (address_to_signed_pointer):
1378 (default_read_var_value):
1379 (default_value_from_register):
1380 Use type_byte_order instead of gdbarch_byte_order.
1381 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1382 Use type_byte_order instead of gdbarch_byte_order.
1383 * riscv-tdep.c (riscv_print_one_register_info):
1384 Use type_byte_order instead of gdbarch_byte_order.
1385
87fb00ea
SM
13862019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1389 (current_ui_gdb_stdin_ptr): Likewise.
1390 (current_ui_gdb_stderr_ptr): Likewise.
1391 (current_ui_gdb_stdlog_ptr): Likewise.
1392 (current_ui_current_uiout_ptr): Likewise.
1393 (gen_ret_current_ui_field_ptr): Remove.
1394
65d1cd5f
TV
13952019-11-21 Tom de Vries <tdevries@suse.de>
1396
1397 PR gdb/24956
1398 * cli/cli-script.c (execute_control_command): Only switch to
1399 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1400
9f6ad286
TT
14012019-11-19 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1404 Now static. Change type of "name".
1405 (tui_set_win_height_command): Don't copy "arg".
1406 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1407 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1408
435d3d88
AT
14092019-11-19 Ali Tamur <tamur@google.com>
1410
1411 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1412 "if (attr != nullptr)".
1413 (dwarf2_find_base_address): Likewise.
1414 (dwarf2_build_include_psymtabs): Likewise.
1415 (read_cutu_die_from_dwo): Likewise.
1416 (read_func_scope): Likewise.
1417 (read_call_site_scope): Likewise.
1418 (dwarf2_get_pc_bounds): Likewise.
1419 (dwarf2_record_block_ranges): Likewise.
1420 (dwarf2_add_field): Likewise.
1421 (dwarf2_add_member_fn): Likewise.
1422 (read_structure_type): Likewise.
1423 (read_enumeration_type): Likewise.
1424 (read_array_type): Likewise.
1425 (read_array_order): Likewise.
1426 (read_set_type): Likewise.
1427 (read_common_block): Likewise.
1428 (read_tag_reference_type): Likewise.
1429 (read_tag_string_type): Likewise.
1430 (read_subroutine_type): Likewise.
1431 (read_base_type): Likewise.
1432 (read_subrange_type): Likewise.
1433 (new_symbol): Likewise.
1434 (prepare_one_comp_unit): Likewise.
1435
c9739b6a
TT
14362019-11-19 Tom Tromey <tromey@adacore.com>
1437
1438 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1439 result in error when DebugActiveProcess fails.
1440
494409bb
SDJ
14412019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1442 Pedro Alves <palves@redhat.com>
1443
1444 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1445 * target.c (target_stack::push): Call 'unpush' if there's a
1446 target on top of the stack.
1447
2e953aca
PW
14482019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1449
1450 * python/py-block.c (blpy_dealloc): Call tp_free.
1451 (blpy_block_syms_dealloc): Likewise.
1452 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1453 * python/py-inferior.c (infpy_dealloc): Likewise.
1454 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1455 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1456 * python/py-symbol.c (sympy_dealloc): Likewise.
1457 * python/py-symtab.c (stpy_dealloc): Likewise.
1458 * python/py-type.c (typy_iterator_dealloc): Likewise.
1459
6edc43ec
CB
14602019-11-18 Christian Biesinger <cbiesinger@google.com>
1461
1462 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1463 constructor instead of using a class initializer.
1464
cd850b40
CB
14652019-11-15 Christian Biesinger <cbiesinger@google.com>
1466
1467 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1468 * configure: Regenerate.
1469 * configure.ac: Don't source common.host.
1470 * gdbsupport/common.host: Remove.
1471 * gdbsupport/mingw-strerror.c: Remove.
1472 * gdbsupport/posix-strerror.c: Rename to...
1473 * gdbsupport/safe-strerror.c: ...this.
1474
53fea9c7
CB
14752019-11-15 Christian Biesinger <cbiesinger@google.com>
1476
1477 * maint.c (scoped_command_stats::print_time): Use localtime_r
1478 instead of localtime (provided through gnulib if necessary).
1479 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1480 of ctime.
1481
f8e27d88
CB
14822019-11-15 Christian Biesinger <cbiesinger@google.com>
1483
1484 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1485 avoid compile errors.
1486
5abebf3c
CB
14872019-11-15 Christian Biesinger <cbiesinger@google.com>
1488
1489 * config.in: Regenerate.
1490 * configure: Regenerate.
1491 * gdbsupport/common.m4: No longer check for strerror_r.
1492 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1493 POSIX version of strerror_r, now that gnulib provides it if
1494 necessary.
1495
9a351667
CB
14962019-11-14 Christian Biesinger <cbiesinger@google.com>
1497
1498 * README (`configure' options): Update.
1499
55708e99
TT
15002019-11-14 Tom Tromey <tromey@adacore.com>
1501
1502 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1503 expected type for the RHS if the LHS is a convenience variable.
1504
4b09bb2e
SM
15052019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1508 Provide explicit default and copy constructor.
1509
bd454f8b
PW
15102019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1511
1512 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1513 only call Py_INCREF (newbp) in the bppy_pending_object case.
1514
d1aa3cf0
TT
15152019-11-13 Tom Tromey <tromey@adacore.com>
1516
1517 PR build/25182:
1518 * psympriv.h (partial_symbol): Remove static assert.
1519 * symtab.h (general_symbol_info, symbol): Remove static assert.
1520
e06f3d6e
AB
15212019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1522
1523 * gdbsupport/format.c (format_pieces::format_pieces): Support
1524 printf 'z' size modifier.
1525 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1526 * printcmd.c (ui_printf): Handle size_t_arg.
1527 * ui-out.c (ui_out::vmessage): Likewise.
1528 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1529 function.
1530 (run_tests): Call test_format_int_sizes.
1531
468c0cbb
CB
15322019-11-12 Christian Biesinger <cbiesinger@google.com>
1533
1534 * ada-exp.y (write_ambiguous_var): Update.
1535 * buildsym.c (add_symbol_to_list): Update.
1536 * dwarf2read.c (read_variable): Update.
1537 (new_symbol): Update.
1538 * jit.c (finalize_symtab): Update.
1539 * language.c (language_alloc_type_symbol): Update.
1540 * symtab.c (fixup_symbol_section): Update.
1541 (initialize_objfile_symbol_1): Move code to...
1542 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1543 (allocate_symbol): Update.
1544 (allocate_template_symbol): Update.
1545 (get_symbol_address): Update.
1546 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1547 of having as a field, and add a constructor.
1548 (SYMBOL_VALUE): Update.
1549 (SYMBOL_VALUE_ADDRESS): Update.
1550 (SET_SYMBOL_VALUE_ADDRESS): Update.
1551 (SYMBOL_VALUE_BYTES): Update.
1552 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1553 (SYMBOL_BLOCK_VALUE): Update.
1554 (SYMBOL_VALUE_CHAIN): Update.
1555 (SYMBOL_LANGUAGE): Update.
1556 (SYMBOL_SECTION): Update.
1557 (SYMBOL_OBJ_SECTION): Update.
1558 (SYMBOL_SET_LANGUAGE): Update.
1559 (SYMBOL_SET_LINKAGE_NAME): Update.
1560 (SYMBOL_SET_NAMES): Update.
1561 (SYMBOL_NATURAL_NAME): Update.
1562 (SYMBOL_LINKAGE_NAME): Update.
1563 (SYMBOL_DEMANGLED_NAME): Update.
1564 (SYMBOL_SEARCH_NAME): Update.
1565 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1566 (struct symbol): Update.
1567 (struct template_symbol): Update.
1568 (struct rust_vtable_symbol): Update.
1569 * xcoffread.c (SYMBOL_DUP): Update.
1570
ed2c82c3
TT
15712019-11-12 Tom Tromey <tom@tromey.com>
1572
1573 * tui/tui-layout.c (show_layout): Set current_layout.
1574 (show_source_disasm_command, show_data)
1575 (show_source_or_disasm_and_command): Don't set current_layout.
1576
d9fcefd5
TT
15772019-11-12 Tom Tromey <tom@tromey.com>
1578
1579 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1580
45e42163
TT
15812019-11-12 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-win.c (resize_message): New global.
1584 (show_tui_resize_message): New function.
1585 (tui_async_resize_screen): Print message if requested.
1586 (_initialize_tui_win): Add tui-resize-message setting.
1587 * NEWS: Add entry for new commands.
1588
c86d74cc
TT
15892019-11-11 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1592 functions.
1593
7b7b9424
CB
15942019-11-11 Christian Biesinger <cbiesinger@google.com>
1595
1596 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1597
086baaf1
AB
15982019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1601 function.
1602 * python/python-internal.h (gdbpy_lookup_static_symbols):
1603 Declare new function.
1604 * python/python.c (python_GdbMethods): Add
1605 gdb.lookup_static_symbols method.
1606 * NEWS: Mention gdb.lookup_static_symbols.
1607
09ff83af
AB
16082019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1611 static block of current object file first. Also fix typo in
1612 header comment.
1613
eb2dd8df
AB
16142019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * stack.c (set_last_displayed_sal): Delete.
1617 (last_displayed_sal_valid): Delete.
1618 (last_displayed_pspace): Delete.
1619 (last_displayed_addr): Delete.
1620 (last_displayed_symtab): Delete.
1621 (last_displayed_line): Delete.
1622 (class last_displayed_symtab_info_type): New.
1623 (last_displayed_symtab_info): New static global variable.
1624 (print_frame_info): Call methods on last_displayed_symtab_info.
1625 (clear_last_displayed_sal): Update header comment, and make use of
1626 last_displayed_symtab_info.
1627 (last_displayed_sal_is_valid): Likewise.
1628 (get_last_displayed_pspace): Likewise.
1629 (get_last_displayed_addr): Likewise.
1630 (get_last_displayed_symtab): Likewise.
1631 (get_last_displayed_line): Likewise.
1632 (get_last_displayed_sal): Likewise.
1633 * stack.h (clear_last_displayed_sal): Update header comment.
1634 (last_displayed_sal_is_valid): Likewise.
1635 (get_last_displayed_pspace): Likewise.
1636 (get_last_displayed_addr): Likewise.
1637 (get_last_displayed_symtab): Likewise.
1638 (get_last_displayed_line): Likewise.
1639 (get_last_displayed_sal): Likewise.
1640
62137775
AB
16412019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * stack.c (frame_show_address): Convert return type to bool.
1644 * stack.h (frame_show_address): Likewise, and update header
1645 comment.
1646
cf57ad6d
AB
16472019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1648
1649 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1650 * unittests/vec-utils-selftests.c: New file.
1651 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1652
0b026263
TT
16532019-11-10 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1656 (tui_highlight_win): Likewise.
1657 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1658 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1659 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1660 Don't set can_highlight.
1661
b049ce2d
TT
16622019-11-10 Tom Tromey <tom@tromey.com>
1663
1664 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1665 Remove unused declaration.
1666
992a7040
TT
16672019-11-08 Tom Tromey <tromey@adacore.com>
1668
1669 * top.c (read_command_file): Update.
1670 (command_line_input): Make return type const.
1671 * python/py-gdb-readline.c: Update.
1672 * linespec.c (decode_line_2): Update.
1673 * defs.h (command_line_input): Make return type const.
1674 * cli/cli-script.c (read_next_line): Make return type const.
1675 * ada-lang.c (get_selections): Update.
1676
ca3a04f6
CB
16772019-11-06 Christian Biesinger <cbiesinger@google.com>
1678
1679 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1680 * mi/mi-main.c (output_cores): Likewise.
1681 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1682 (linux_xfer_osdata_modules): Likewise.
1683 * remote.c (register_remote_support_xml): Likewise.
1684 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1685 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1686
e0eac551
TT
16872019-11-06 Tom Tromey <tom@tromey.com>
1688
1689 * tui/tui-interp.c: Don't include readline.h.
1690 * tui/tui-hooks.c: Don't include readline.h.
1691 * symmisc.c: Include tilde.h, not readline.h.
1692 * symfile.c: Include tilde.h, not readline.h.
1693 * source.c: Include tilde.h, not readline.h.
1694 * solib.c: Include tilde.h, not readline.h.
1695 * psymtab.c: Include tilde.h, not readline.h.
1696 * exec.c: Include tilde.h, not readline.h.
1697 * corelow.c: Include tilde.h, not readline.h.
1698 * cli/cli-dump.c: Include tilde.h, not readline.h.
1699 * cli/cli-cmds.c: Don't include readline.h.
1700
825165c5
TT
17012019-11-05 Tom Tromey <tom@tromey.com>
1702
1703 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1704 (tui_disassemble): Set addr_size.
1705 (tui_disasm_window::set_contents): Use addr_size.
1706
91ae903f
TT
17072019-11-05 Tom Tromey <tom@tromey.com>
1708
1709 * rust-lang.c (rust_language_defn): Update.
1710 * python/py-value.c (valpy_string): Call c_get_string.
1711 * p-lang.c (pascal_language_defn): Update.
1712 * opencl-lang.c (opencl_language_defn): Update.
1713 * objc-lang.c (objc_language_defn): Update.
1714 * m2-lang.c (m2_language_defn): Update.
1715 * language.c (unknown_language_defn, auto_language_defn): Update.
1716 (default_get_string): Remove.
1717 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1718 * go-lang.c (go_language_defn): Update.
1719 * f-lang.c (f_language_defn): Update.
1720 * d-lang.c (d_language_defn): Update.
1721 * c-lang.c (c_language_defn, cplus_language_defn)
1722 (asm_language_defn, minimal_language_defn): Update.
1723 * ada-lang.c (ada_language_defn): Update.
1724 * language.h (struct language_defn) <la_get_string>: Remove.
1725 (LA_GET_STRING): Remove.
1726 (default_get_string): Don't declare.
1727
1df2f9ef
TT
17282019-11-05 Tom Tromey <tom@tromey.com>
1729
1730 * tui/tui-source.h (struct tui_source_window): Inline
1731 constructor. Remove destructor.
1732 <style_changed, m_observable>: Move to superclass.
1733 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1734 (struct tui_source_window_base): Move private members to end.
1735 <style_changed, m_observable>: Move from tui_source_window.
1736 * tui/tui-winsource.c (tui_copy_source_line): Move from
1737 tui-source.c. Rename from copy_source_line. Add special handling
1738 for negative line number.
1739 (tui_source_window_base::style_changed): Move from
1740 tui_source_window.
1741 (tui_source_window_base): Register observer.
1742 (~tui_source_window_base): New.
1743 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1744 rename.
1745 (tui_source_window::set_contents): Use tui_copy_source_line.
1746 (tui_source_window::tui_source_window): Move to tui-source.h.
1747 (tui_source_window::~tui_source_window): Remove.
1748 (tui_source_window::style_changed): Move to superclass.
1749 * tui/tui-disasm.c (tui_disassemble): Create string file with
1750 styling, when possible. Add "addr_size" parameter.
1751 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1752 Don't compute maximum size.
1753 (len_without_escapes): New function
1754
5d051055
TT
17552019-11-05 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1758 std::string.
1759 * tui/tui-winsource.c (tui_show_source_line): Update.
1760 * tui/tui-source.c (tui_source_window::set_contents): Update.
1761 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1762
ade7beea
CB
17632019-11-05 Christian Biesinger <cbiesinger@google.com>
1764
1765 * symtab.h (gdb_static_assert): Put && operator at the beginning
1766 of the line instead of the end.
1767
3573abe1
CB
17682019-11-04 Christian Biesinger <cbiesinger@google.com>
1769
1770 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1771 and sizeof (symbol).
1772 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1773
dae8b3eb
RO
17742019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1775
1776 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1777 * configure.host: Mark *-*-solaris2.10* obsolete.
1778 * configure.tgt: Mark Solaris < 11 obsolete.
1779 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1780 Update target triplet.
1781
5df96a4e
TT
17822019-11-01 Tom Tromey <tromey@adacore.com>
1783
1784 * utils.c (print_sys_errmsg): Simplify.
1785
b7481649
TT
17862019-11-01 Tom Tromey <tromey@adacore.com>
1787
1788 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1789
e48f6033
CB
17902019-11-01 Christian Biesinger <cbiesinger@google.com>
1791
1792 * configure: Regenerate.
1793 * configure.ac: Remove check for strerror_r.
1794 * gdbsupport/common.m4: Check for strerror_r.
1795
bd5766ec
LM
17962019-11-01 Luis Machado <luis.machado@linaro.org>
1797
1798 PR gdb/25124
1799
1800 * arm-tdep.c (arm_per_objfile): Rename to ...
1801 (arm_per_bfd): ... this.
1802 (arm_objfile_data_key): Rename to ...
1803 (arm_bfd_data_key): ... this.
1804 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1805 data.
1806 (arm_record_special_symbol): Likewise.
1807
e1709896
AB
18082019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1811 end.
1812 * c-typeprint.c (c_print_typedef): Likewise.
1813 * f-typeprint.c (f_print_typedef): Likewise.
1814 * m2-typeprint.c (m2_print_typedef): Likewise.
1815 * p-typeprint.c (pascal_print_typedef): Likewise.
1816 * rust-lang.c (rust_print_typedef): Likewise.
1817 * symtab.c (print_symbol_info): Print a newline after calling
1818 typedef_print.
1819
165f8965
AB
18202019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * symtab.c (info_module_cmdlist): New variable.
1823 (info_module_command): New function.
1824 (search_module_symbols): New function.
1825 (info_module_subcommand): New function.
1826 (struct info_modules_var_func_options): New struct.
1827 (info_modules_var_func_options_defs): New variable.
1828 (make_info_modules_var_func_options_def_group): New function.
1829 (info_module_functions_command): New function.
1830 (info_module_variables_command): New function.
1831 (info_module_var_func_command_completer): New function.
1832 (_initialize_symtab): Register new 'info module functions' and
1833 'info module variables' commands.
1834 * symtab.h (typedef symbol_search_in_module): New typedef.
1835 (search_module_symbols): Declare new function.
1836 * NEWS: Mention new commands.
1837
59c35742
AB
18382019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1841 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1842 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1843 MODULES_DOMAIN.
1844 (scan_partial_symbols): Only create partial module symbols for non
1845 declarations.
1846 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1847 and MODULES_DOMAIN.
1848 * symtab.c (search_domain_name): Likewise.
1849 (search_symbols): Likewise.
1850 (print_symbol_info): Likewise.
1851 (symtab_symbol_info): Likewise.
1852 (info_modules_command): New function.
1853 (_initialize_symtab): Register 'info modules' command.
1854 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1855 * NEWS: Mention new 'info modules' command.
1856
aed61d02
PW
18572019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1858
1859 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1860 and $_gdb_maint_setting_str.
1861
9ad9b77d
PW
18622019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1863
1864 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1865 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1866 (str_value_from_setting, gdb_setting_str_internal_fn)
1867 (gdb_maint_setting_str_internal_fn): New functions.
1868 (_initialize_cli_cmds): Define the new convenience functions.
1869 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1870 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1871
8d6efaa2
CB
18722019-10-31 Christian Biesinger <cbiesinger@google.com>
1873
1874 * agent.c (set_can_use_agent): When the setting is turned on,
1875 look up agent symbols if we don't have them yet.
1876 (agent_new_objfile): Don't look up agent symbols when the agent
1877 setting is off.
1878
33cb1647
CB
18792019-10-31 Christian Biesinger <cbiesinger@google.com>
1880
1881 * config.in: Regenerate.
1882
b231e86a
CB
18832019-10-31 Christian Biesinger <cbiesinger@google.com>
1884
1885 * configure: Regenerate.
1886 * configure.ac: Check for strerror_r.
1887 * gdbsupport/common-utils.h (safe_strerror): Change return value
1888 to const char * and document that this function is now threadsafe.
1889 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1890 thread_local and call strerror_r, if available.
1891 * utils.c (perror_string): Update.
1892 (print_sys_errmsg): Update.
1893
a2726d4f
LM
18942019-10-31 Luis Machado <luis.machado@linaro.org>
1895
1896 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1897 objfile_key.
1898 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1899 objfile to fetch per-bfd data.
1900 (arm_find_exidx_entry): Likewise.
1901
75cafaa6
CB
19022019-10-31 Christian Biesinger <cbiesinger@google.com>
1903
1904 * gdbsupport/agent.c (debug_agent): Change type to bool.
1905 (use_agent): Likewise.
1906 (all_agent_symbols_look_up): Likewise.
1907 (agent_loaded_p): Change return value to bool.
1908 (agent_look_up_symbols): Update.
1909 (agent_capability_check): Change return value to bool.
1910 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1911 (debug_agent): Change type to bool.
1912 (use_agent): Likewise.
1913 (agent_capability_check): Change return value to bool.
1914
808590ec
CB
19152019-10-30 Christian Biesinger <cbiesinger@google.com>
1916
1917 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1918 (build_minimal_symbol_hash_tables): Code to clear the table moved
1919 to clear_minimal_symbol_hash_tables.
1920 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1921 when needed.
1922
f18ad8a1
SM
19232019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1924
1925 * infcmd.c: Remove includes.
1926 * infrun.c: Remove includes.
1927
de93309a
SM
19282019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1931 (grow_vect): Remove declaration.
1932 (ada_type_of_array): Remove declaration.
1933 (ada_update_initial_language): Remove declaration.
1934 (ada_fold_name): Remove declaration.
1935 (ada_fill_in_ada_prototype): Remove declaration.
1936 (user_select_syms): Remove declaration.
1937 (get_selections): Remove declaration.
1938 (ada_tag_type): Remove declaration.
1939 (ada_value_tag): Remove declaration.
1940 (ada_is_others_clause): Remove declaration.
1941 (ada_in_variant): Remove declaration.
1942 (ada_value_struct_elt): Remove declaration.
1943 (ada_attribute_name): Remove declaration.
1944 (ada_system_address_type): Remove declaration.
1945 * ada-lang.c (ada_watch_location_expression): Make static.
1946 (GROW_VECT): Move here from ada-lang.h.
1947 (grow_vect): Make static.
1948 (ada_update_initial_language): Make static.
1949 (ada_fold_name): Make static.
1950 (ada_type_of_array): Make static.
1951 (encoded_ordered_before): Move up.
1952 (sort_choices): Move up.
1953 (print_signatures): Move up.
1954 (ada_print_symbol_signature): Move up.
1955 (get_selections): Move up and make static.
1956 (user_select_syms): Move up and make static.
1957 (ada_value_struct_elt): Move up and make static.
1958 (ada_tag_type): Make static.
1959 (ada_value_tag): Make static.
1960 (ada_is_others_clause): Make static.
1961 (ada_in_variant): Make static.
1962 (ada_attribute_name): Make static.
1963
cdc46a9f
SM
19642019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * ada-lang.c: Remove includes.
1967 * ada-typeprint.c: Remove includes.
1968 * ada-valprint.c: Remove includes.
1969
90421c56
SM
19702019-10-29 Simon Marchi <simon.marchi@efficios.com>
1971
1972 * addrmap.c: Add static assertions of type size, moved from
1973 _initialize_addrmap.
1974 (_initialize_addrmap): Remove.
1975
31edb802
CB
19762019-10-29 Christian Biesinger <cbiesinger@google.com>
1977
1978 * coffread.c (record_minimal_symbol): Update.
1979 (process_coff_symbol): Update.
1980 * dbxread.c (read_dbx_symtab): Update.
1981 * dwarf2read.c (add_partial_symbol): Update.
1982 (fixup_go_packaging): Update.
1983 (load_partial_dies): Update.
1984 (new_symbol): Update.
1985 * elfread.c (record_minimal_symbol): Change signature to use
1986 gdb::string_view instead of name+len.
1987 (elf_symtab_read): Update.
1988 (elf_rel_plt_read): Update.
1989 * mdebugread.c (parse_partial_symbols): Update.
1990 (handle_psymbol_enumerators): Update.
1991 (new_symbol): Update.
1992 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1993 to use gdb::string_view instead of name+len.
1994 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1995 * psympriv.h (add_psymbol_to_list): Likewise.
1996 * psymtab.c (add_psymbol_to_bcache): Likewise.
1997 (add_psymbol_to_list): Likewise.
1998 * stabsread.c (define_symbol): Update.
1999 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2000 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2001 (symbol_set_names): Likewise.
2002 * xcoffread.c (scan_xcoff_symtab): Update.
2003
0c921b21
CB
20042019-10-29 Christian Biesinger <cbiesinger@google.com>
2005
2006 * symtab.h (symbol_set_names): Document that copy_name must be
2007 set to true for non-nullterminated strings.
2008 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2009 linkage_name if the entry was not found and we need to demangle.
2010
35e65c49
CB
20112019-10-29 Christian Biesinger <cbiesinger@google.com>
2012
2013 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2014 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2015 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2016 * gdbsupport/gdb_binary_search.h: New file.
2017
ed2a2229
CB
20182019-10-29 Christian Biesinger <cbiesinger@google.com>
2019
2020 * NEWS: Mention new --with-system-gdbinit-dir option.
2021 * config.in: Regenerate.
2022 * configure: Regenerate.
2023 * configure.ac: Add new option --with-system-gdbinit-dir.
2024 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2025 for a ".gdb" suffix.
2026 * main.c (get_init_files): Change system_gdbinit argument to
2027 a vector and return the files in SYSTEM_GDBINIT_DIR in
2028 addition to SYSTEM_GDBINIT.
2029 (captured_main_1): Update.
2030 (print_gdb_help): Update.
2031 * top.c (print_gdb_configuration): Also print the value of
2032 SYSTEM_GDBINIT_DIR.
2033
87f34879
CB
20342019-10-28 Christian Biesinger <cbiesinger@google.com>
2035
2036 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2037 that takes gdb::string_view arguments.
2038
30baf67b
TV
20392019-10-26 Tom de Vries <tdevries@suse.de>
2040
2041 * aarch64-linux-tdep.c: Fix typos in comments.
2042 * aarch64-tdep.c: Same.
2043 * ada-lang.c: Same.
2044 * amd64-nat.c: Same.
2045 * arc-tdep.c: Same.
2046 * arch/aarch64-insn.c: Same.
2047 * block.c: Same.
2048 * breakpoint.h: Same.
2049 * btrace.h: Same.
2050 * c-varobj.c: Same.
2051 * cli/cli-decode.c: Same.
2052 * cli/cli-script.c: Same.
2053 * cli/cli-utils.h: Same.
2054 * coff-pe-read.c: Same.
2055 * coffread.c: Same.
2056 * compile/compile-cplus-symbols.c: Same.
2057 * compile/compile-object-run.c: Same.
2058 * completer.c: Same.
2059 * corelow.c: Same.
2060 * cp-support.c: Same.
2061 * demangle.c: Same.
2062 * dwarf-index-write.c: Same.
2063 * dwarf2-frame.c: Same.
2064 * dwarf2-frame.h: Same.
2065 * eval.c: Same.
2066 * frame-base.h: Same.
2067 * frame.h: Same.
2068 * gdbcmd.h: Same.
2069 * gdbtypes.h: Same.
2070 * gnu-nat.c: Same.
2071 * guile/scm-objfile.c: Same.
2072 * i386-tdep.c: Same.
2073 * i386-tdep.h: Same.
2074 * infcall.c: Same.
2075 * infcall.h: Same.
2076 * linux-nat.c: Same.
2077 * m68k-tdep.c: Same.
2078 * macroexp.c: Same.
2079 * memattr.c: Same.
2080 * mi/mi-cmd-disas.c: Same.
2081 * mi/mi-getopt.h: Same.
2082 * mi/mi-main.c: Same.
2083 * minsyms.c: Same.
2084 * nat/aarch64-sve-linux-sigcontext.h: Same.
2085 * objfiles.h: Same.
2086 * ppc-linux-nat.c: Same.
2087 * ppc-linux-tdep.c: Same.
2088 * ppc-tdep.h: Same.
2089 * progspace.h: Same.
2090 * prologue-value.h: Same.
2091 * python/py-evtregistry.c: Same.
2092 * python/py-instruction.h: Same.
2093 * record-btrace.c: Same.
2094 * record-full.c: Same.
2095 * remote.c: Same.
2096 * rs6000-tdep.c: Same.
2097 * ser-tcp.c: Same.
2098 * sol-thread.c: Same.
2099 * sparc-sol2-tdep.c: Same.
2100 * sparc64-tdep.c: Same.
2101 * stabsread.c: Same.
2102 * symfile.c: Same.
2103 * symtab.h: Same.
2104 * target.c: Same.
2105 * tracepoint.c: Same.
2106 * tui/tui-data.h: Same.
2107 * tui/tui-io.c: Same.
2108 * tui/tui-win.c: Same.
2109 * tui/tui.c: Same.
2110 * unittests/rsp-low-selftests.c: Same.
2111 * user-regs.h: Same.
2112 * utils.c: Same.
2113 * utils.h: Same.
2114 * valarith.c: Same.
2115 * valops.c: Same.
2116 * valprint.c: Same.
2117 * valprint.h: Same.
2118 * value.c: Same.
2119 * value.h: Same.
2120 * varobj.c: Same.
2121 * x86-nat.h: Same.
2122 * xtensa-tdep.c: Same.
2123
1834d45f
AT
21242019-10-25 Ali Tamur <tamur@google.com>
2125
2126 * charset.c (find_charset_names): Reflect API change.
2127
5396ae17
CB
21282019-10-25 Christian Biesinger <cbiesinger@google.com>
2129
2130 * symtab.c (struct demangled_name_entry): Change demangled name
2131 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2132 part of the struct anymore.
2133 (symbol_set_names): No longer obstack allocate + copy the demangled
2134 name, just store the allocated name from bfd.
2135
93878f47
TT
21362019-10-25 Tom Tromey <tromey@adacore.com>
2137
2138 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2139 (bsearch_cie_cmp, add_cie): Remove.
2140 (find_cie): Reimplement.
2141 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2142 (dwarf2_build_frame_info): Update.
2143
7b71fc97
L
21442019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2145
2146 PR gdb/25126
2147 * symfile.c (reread_symbols): Call forget_cached_source_info to
2148 clear the stale source cache.
2149
cbb5a2ea
CB
21502019-10-24 Christian Biesinger <cbiesinger@google.com>
2151
2152 * configure: Regenerate.
2153 * configure.ac: Remove code that sets python_has_threads.
2154
71737c43
CB
21552019-10-24 Christian Biesinger <cbiesinger@google.com>
2156
2157 * config.in: Regenerate.
2158 * configure: Regenerate.
2159 * configure.ac: Remove the code that uses sed to get the python
2160 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2161
33d569b7
AB
21622019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2165 error paths.
2166
f16f7b7c
TT
21672019-10-23 Tom Tromey <tom@tromey.com>
2168
2169 * arc-tdep.c: Remove ".." from include.
2170 * frv-tdep.c: Remove ".." from include.
2171 * lm32-tdep.c: Remove ".." from include.
2172 * microblaze-tdep.c: Remove ".." from include.
2173 * or1k-tdep.h: Remove ".." from include.
2174 * s12z-tdep.c: Remove ".." from include.
2175 * Makefile.in (OPCODES_CFLAGS): Add comment.
2176 (TOP_CFLAGS): New variable.
2177 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2178
6999161a
TT
21792019-10-23 Tom Tromey <tom@tromey.com>
2180
2181 * Makefile.in (READLINE_DIR): Update.
2182
12e7c35e
TBA
21832019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2184
2185 * infcall.c (call_function_by_hand_dummy): Fix the function
2186 comment. And extract out a code section into...
2187 (reserve_stack_space): ...this new function.
2188
37055cad
TBA
21892019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2190
2191 * infcall.c (value_arg_coerce): Remove an unused parameter.
2192 (call_function_by_hand_dummy): Update the call to
2193 'value_arg_coerce'.
2194
39bcc47c
TBA
21952019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2196
2197 * infcall.c (call_function_by_hand_dummy): Refactor.
2198
bd888c0f
TBA
21992019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2200
2201 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2202
c12d372d
TT
22032019-10-23 Tom Tromey <tom@tromey.com>
2204
2205 * configure: Rebuild.
2206 * configure.ac: Don't check for sigprocmask.
2207 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2208
4d0b984b
TT
22092019-10-23 Tom Tromey <tom@tromey.com>
2210
2211 * configure: Rebuild.
2212 * acinclude.m4: Use m4_include, not sinclude.
2213
7e785608
TV
22142019-10-23 Tom de Vries <tdevries@suse.de>
2215
2216 PR breakpoints/24687
2217 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2218
403772ef
CB
22192019-10-22 Christian Biesinger <cbiesinger@google.com>
2220
2221 * symtab.c (struct demangled_name_entry) <language>: Change from
2222 bitfield to regular variable.
2223
3a494279
CB
22242019-10-22 Christian Biesinger <cbiesinger@google.com>
2225
2226 * symtab.c (struct demangled_name_entry): Add a constructor.
2227 (free_demangled_name_entry): New function to call the destructor
2228 for demangled_name_entry.
2229 (create_demangled_names_hash): Pass free_demangled_name_entry to
2230 htab_create_alloc.
2231 (symbol_set_names): Call placement new for demangled_name_entry.
2232 * utils.c: No longer include xxhash.h here, now that fast_hash
2233 is inlined in the header.
2234 * utils.h: Instead, include it here.
2235
ccb1ba62
CB
22362019-10-22 Christian Biesinger <cbiesinger@google.com>
2237
2238 * Makefile.in: Link with libxxhash.
2239 * config.in: Regenerate.
2240 * configure: Regenerate.
2241 * configure.ac: Search for libxxhash.
2242 * utils.c (fast_hash): Use xxhash if present.
2243
1a6ff1a9
CB
22442019-10-22 Christian Biesinger <cbiesinger@google.com>
2245
2246 * utils.h (fast_hash): New function.
2247 * symtab.c (hash_demangled_name_entry): Call new function
2248 fast_hash.
2249
7bb43059
CB
22502019-10-22 Christian Biesinger <cbiesinger@google.com>
2251
2252 * symtab.c (struct demangled_name_entry): Change type of mangled
2253 to gdb::string_view. Also adds a constructor that takes the
2254 mangled name.
2255 (hash_demangled_name_entry): Update.
2256 (eq_demangled_name_entry): Update.
2257 (free_demangled_name_entry): New function to call the destructor
2258 now that this is not a POD anymore.
2259 (create_demangled_names_hash): Pass free_demangled_name_entry to
2260 htab_create_alloc.
2261 (symbol_set_names): Update.
2262
7ba99d21
AT
22632019-10-21 Ali Tamur <tamu@google.com>
2264
2265 * dwarf2read.c (dir_index): Change type.
2266 (file_name_index): Likewise.
2267 (line_header::include_dir_at): Change comment and implementation on
2268 whether it is DWARF 5.
2269 (line_header::is_valid_file_index): New function.
2270 (line_header::file_name_at): Change comment and implementation on
2271 whether it is DWARF 5.
2272 (line_header::file_names): Change to private field renamed as
2273 m_file_names and introduce a new accessor method.
2274 (line_header::file_names_size): New method.
2275 (line_header::include_dirs): Change to private field and rename as
2276 m_include_dirs.
2277 (dw2_get_file_names_reader): Define local var at a smaller scope and
2278 reflect API change.
2279 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2280 (process_structure_scope): Likewise.
2281 (line_header::add_include_dir): Change message and reflect renaming.
2282 (line_header::add_file_name): Likewise.
2283 (read_formatted_entries): Handle DW_FORM_data16.
2284 (dwarf_decode_line_header): Fix line header length calculation.
2285 (psymtab_include_file_name): Change comment and API.
2286 (lnp_state_machine::m_file): Update comment and reflect type change.
2287 (lnp_state_machine::record_line): Reflect type change.
2288 (dwarf_decode_lines): Reflect API change.
2289 (file_file_name): Likewise.
2290 (file_full_name): Likewise.
2291
45f47c3a
AB
22922019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2295
e5f3c0e3
TT
22962019-10-21 Tom Tromey <tom@tromey.com>
2297
2298 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2299
a0a461e5
TT
23002019-10-21 Tom Tromey <tom@tromey.com>
2301
2302 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2303 NM_H. Use AC_CONFIG_LINKS.
2304 * configure: Rebuild.
2305 * Makefile.in (NM_H): New variable.
2306 (generated_files): Add NM_H. Remove gcore.
2307 (nm.h, stamp-nmh): New targets.
2308
54d83b8d
TT
23092019-10-20 Tom Tromey <tom@tromey.com>
2310
2311 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2312 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2313 obsolete comment.
2314 (put_objfile_before): Now static.
2315
23771117
SM
23162019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * gdbsupport/common-utils.h (startswith): Change return type to
2319 bool.
2320
39ef2f62
CB
23212019-10-19 Christian Biesinger <cbiesinger@google.com>
2322
2323 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2324 * breakpoint.c (bp_locations_compare): Rename to...
2325 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2326 (update_global_location_list): Use std::sort instead of qsort.
2327 * buildsym.c (compare_line_numbers): Rename to...
2328 (lte_is_less_than): ...this, and change to std::sort semantics.
2329 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2330 instead of qsort.
2331 * disasm.c (compare_lines): Rename to...
2332 (line_is_less_than): ...this, and change to std::sort semantics.
2333 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2334 of qsort.
2335 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2336 (fde_is_less_than): ...this, and change to std::sort semantics.
2337 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2338 * mdebugread.c (compare_blocks):
2339 (block_is_less_than): ...this, and change to std::sort semantics.
2340 (sort_blocks): Call std::sort instead of qsort.
2341 * objfiles.c (qsort_cmp): Rename to...
2342 (sort_cmp): ...this, and change to std::sort semantics.
2343 (update_section_map): Call std::sort instead of qsort.
2344 * remote.c (compare_pnums): Remove.
2345 (map_regcache_remote_table): Call std::sort instead of qsort.
2346 * utils.c (compare_positive_ints): Remove.
2347 * utils.h (compare_positive_ints): Remove.
2348 * xcoffread.c (compare_lte): Remove.
2349 (arrange_linetable): Call std::sort instead of qsort.
2350
f71433ee
SDJ
23512019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2352
2353 * symfile.c (init_entry_point_info): Fix typo.
2354 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2355
85102364
TV
23562019-10-18 Tom de Vries <tdevries@suse.de>
2357
2358 * aarch64-tdep.c: Fix typos in comments.
2359 * ada-lang.c: Same.
2360 * ada-tasks.c: Same.
2361 * alpha-tdep.c: Same.
2362 * alpha-tdep.h: Same.
2363 * amd64-nat.c: Same.
2364 * amd64-windows-tdep.c: Same.
2365 * arc-tdep.c: Same.
2366 * arc-tdep.h: Same.
2367 * arch-utils.c: Same.
2368 * arm-nbsd-tdep.c: Same.
2369 * arm-tdep.c: Same.
2370 * ax-gdb.c: Same.
2371 * blockframe.c: Same.
2372 * btrace.c: Same.
2373 * c-varobj.c: Same.
2374 * coff-pe-read.c: Same.
2375 * coffread.c: Same.
2376 * cris-tdep.c: Same.
2377 * darwin-nat.c: Same.
2378 * dbxread.c: Same.
2379 * dcache.c: Same.
2380 * disasm.c: Same.
2381 * dtrace-probe.c: Same.
2382 * dwarf-index-write.c: Same.
2383 * dwarf2-frame-tailcall.c: Same.
2384 * dwarf2-frame.c: Same.
2385 * dwarf2read.c: Same.
2386 * eval.c: Same.
2387 * exceptions.c: Same.
2388 * fbsd-tdep.c: Same.
2389 * findvar.c: Same.
2390 * frame.c: Same.
2391 * frv-tdep.c: Same.
2392 * gnu-v3-abi.c: Same.
2393 * go32-nat.c: Same.
2394 * h8300-tdep.c: Same.
2395 * hppa-tdep.c: Same.
2396 * i386-linux-tdep.c: Same.
2397 * i386-tdep.c: Same.
2398 * ia64-libunwind-tdep.c: Same.
2399 * ia64-tdep.c: Same.
2400 * infcmd.c: Same.
2401 * infrun.c: Same.
2402 * linespec.c: Same.
2403 * linux-nat.c: Same.
2404 * linux-thread-db.c: Same.
2405 * machoread.c: Same.
2406 * mdebugread.c: Same.
2407 * mep-tdep.c: Same.
2408 * mn10300-tdep.c: Same.
2409 * namespace.c: Same.
2410 * objfiles.c: Same.
2411 * opencl-lang.c: Same.
2412 * or1k-tdep.c: Same.
2413 * osabi.c: Same.
2414 * ppc-linux-nat.c: Same.
2415 * ppc-linux-tdep.c: Same.
2416 * ppc-sysv-tdep.c: Same.
2417 * printcmd.c: Same.
2418 * procfs.c: Same.
2419 * record-btrace.c: Same.
2420 * record-full.c: Same.
2421 * remote-fileio.c: Same.
2422 * remote.c: Same.
2423 * rs6000-tdep.c: Same.
2424 * s12z-tdep.c: Same.
2425 * score-tdep.c: Same.
2426 * ser-base.c: Same.
2427 * ser-go32.c: Same.
2428 * skip.c: Same.
2429 * sol-thread.c: Same.
2430 * solib-svr4.c: Same.
2431 * solib.c: Same.
2432 * source.c: Same.
2433 * sparc-nat.c: Same.
2434 * sparc-sol2-tdep.c: Same.
2435 * sparc-tdep.c: Same.
2436 * sparc64-tdep.c: Same.
2437 * stabsread.c: Same.
2438 * stack.c: Same.
2439 * symfile.c: Same.
2440 * symtab.c: Same.
2441 * target-descriptions.c: Same.
2442 * target-float.c: Same.
2443 * thread.c: Same.
2444 * utils.c: Same.
2445 * valops.c: Same.
2446 * valprint.c: Same.
2447 * value.c: Same.
2448 * varobj.c: Same.
2449 * windows-nat.c: Same.
2450 * xcoffread.c: Same.
2451 * xstormy16-tdep.c: Same.
2452 * xtensa-tdep.c: Same.
2453
c5adaa19
TT
24542019-10-17 Tom Tromey <tromey@adacore.com>
2455
2456 * configure: Rebuild.
2457 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2458 in AC_CONFIG_FILES invocation.
2459 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2460 new-style config.status invocation.
2461
405feb71
TV
24622019-10-17 Tom de Vries <tdevries@suse.de>
2463
2464 * arm-nbsd-nat.c: Fix typos in comments.
2465 * arm-tdep.c: Same.
2466 * darwin-nat-info.c: Same.
2467 * dwarf2read.c: Same.
2468 * elfread.c: Same.
2469 * event-top.c: Same.
2470 * findvar.c: Same.
2471 * gdbtypes.c: Same.
2472 * hppa-tdep.c: Same.
2473 * i386-tdep.c: Same.
2474 * jit.c: Same.
2475 * main.c: Same.
2476 * mdebugread.c: Same.
2477 * moxie-tdep.c: Same.
2478 * nto-procfs.c: Same.
2479 * osabi.c: Same.
2480 * ppc-linux-tdep.c: Same.
2481 * remote.c: Same.
2482 * riscv-tdep.c: Same.
2483 * s390-tdep.c: Same.
2484 * sh-tdep.c: Same.
2485 * sparc-linux-tdep.c: Same.
2486 * sparc-nat.c: Same.
2487 * stack.c: Same.
2488 * target-descriptions.c: Same.
2489 * top.c: Same.
2490 * varobj.c: Same.
2491
befcd486
TT
24922019-10-16 Tom Tromey <tom@tromey.com>
2493
2494 * objfiles.h (struct objfile) <original_name>: Now const.
2495
17bfe554
CB
24962019-10-16 Christian Biesinger <cbiesinger@google.com>
2497
2498 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2499 pass on to sigsetjmp's second argument.
2500 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2501
950b7495
KS
25022019-10-16 Keith Seitz <keiths@redhat.com>
2503
2504 PR gdb/23567
2505 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2506 sections whose size is greater than the file size.
2507
ff371ec9
JW
25082019-10-16 Jim Wilson <jimw@sifive.com>
2509
2510 * riscv-tdep.c (riscv_gcc_target_options): New.
2511 (riscv_gnu_triplet_regexp): New.
2512 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2513 set_gdbarch_gnu_triplet_regexp.
2514
fec4e896
CB
25152019-10-16 Christian Biesinger <cbiesinger@google.com>
2516
2517 * Makefile.in: Add xml-builtin.h.
2518 * features/feature_to_c.sh: Add an include for xml-builtin.h
2519 to ensure that the compiler checks that the types match.
2520 * xml-builtin.h: New file.
2521 * xml-support.c (fetch_xml_builtin): Add missing const.
2522 * xml-support.h: Remove declaration of xml_builtins.
2523
d10eccaa
TV
25242019-10-16 Tom de Vries <tdevries@suse.de>
2525
2526 PR tdep/25096
2527 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2528 (amd64_classify_aggregate): ... here.
2529 (amd64_classify_aggregate_field): Handled fiels of nested structs
2530 recursively.
2531
745ff14e
TV
25322019-10-16 Tom de Vries <tdevries@suse.de>
2533
2534 PR tdep/24104
2535 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2536 that handles 'theclass'.
2537
791b7405
AB
25382019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * linespec.c (decode_digits_ordinary): Update comment.
2541 * make-target-delegates: No longer need to handle VEC case.
2542 * memrange.c (normalize_mem_ranges): Update comment.
2543 * namespace.c (add_using_directive): Update comment.
2544 * objc-lang.c (uniquify_strings): Update comment.
2545 * ppc-linux-nat.c (struct thread_points): Update comment.
2546 * probe.h (find_probes_in_objfile): Update comment.
2547 * target.h (enum flash_preserve_mode): Update comment.
2548 * varobj.c (varobj_restrict_range): Update comment.
2549 * varobj.h (varobj_list_children): Update comment.
2550
0dc32745
AB
25512019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * Makefile.in: Remove references to vec.h and vec.c.
2554 * aarch64-tdep.c: No longer include vec.h.
2555 * ada-lang.c: Likewise.
2556 * ada-lang.h: Likewise.
2557 * arm-tdep.c: Likewise.
2558 * ax.h: Likewise.
2559 * breakpoint.h: Likewise.
2560 * charset.c: Likewise.
2561 * cp-support.h: Likewise.
2562 * dtrace-probe.c: Likewise.
2563 * dwarf2read.c: Likewise.
2564 * extension.h: Likewise.
2565 * gdb_bfd.c: Likewise.
2566 * gdbsupport/gdb_vecs.h: Likewise.
2567 * gdbsupport/vec.c: Remove.
2568 * gdbsupport/vec.h: Remove.
2569 * gdbthread.h: Likewise.
2570 * guile/scm-type.c: Likewise.
2571 * inline-frame.c: Likewise.
2572 * machoread.c: Likewise.
2573 * memattr.c: Likewise.
2574 * memrange.h: Likewise.
2575 * namespace.h: Likewise.
2576 * nat/linux-btrace.h: Likewise.
2577 * osdata.c: Likewise.
2578 * parser-defs.h: Likewise.
2579 * progspace.h: Likewise.
2580 * python/py-type.c: Likewise.
2581 * record-btrace.c: Likewise.
2582 * rust-exp.y: Likewise.
2583 * solib-target.c: Likewise.
2584 * stap-probe.c: Likewise.
2585 * target-descriptions.c: Likewise.
2586 * target-memory.c: Likewise.
2587 * target.h: Likewise.
2588 * varobj.c: Likewise.
2589 * varobj.h: Likewise.
2590 * xml-support.h: Likewise.
2591
ae640021
AB
25922019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2595 Update for new std::vector based implementation.
2596 (process_psymtab_comp_unit_reader): Likewise.
2597 (scan_partial_symbols): Likewise.
2598 (recursively_compute_inclusions): Likewise.
2599 (compute_compunit_symtab_includes): Likewise.
2600 (process_imported_unit_die): Likewise.
2601 (queue_and_load_dwo_tu): Likewise.
2602 (follow_die_sig_1): Likewise.
2603 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2604 (typedef dwarf2_per_cu_ptr): Remove.
2605 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2606 function.
2607 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2608 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2609 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2610 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2611 std::vector.
2612
55dfc88f
TT
26132019-10-15 Tom Tromey <tromey@adacore.com>
2614
2615 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2616 TID.
2617
96b49c5e
TT
26182019-10-15 Tom Tromey <tromey@adacore.com>
2619
2620 * windows-nat.c (windows_nat_target::fetch_registers)
2621 (windows_nat_target::store_registers): Rename "pid" to "tid".
2622
953cff56
TT
26232019-10-15 Tom Tromey <tromey@adacore.com>
2624
2625 * gdbarch.h, gdbarch.c: Rebuild.
2626 * gdbarch.sh (gcc_target_options): Change return type to
2627 std::string.
2628 * compile/compile.c (get_args): Update.
2629 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2630 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2631 std::string.
2632 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2633 std::string.
2634 * arch-utils.c (default_gcc_target_options): Return std::string.
2635 * arch-utils.h (default_gcc_target_options): Return std::string.
2636 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2637
81e6b8eb
CB
26382019-10-15 Christian Biesinger <cbiesinger@google.com>
2639
2640 * breakpoint.c (breakpoint_chain): Make static.
2641 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2642 of accessing breakpoint_chain.
2643
95da600f
CB
26442019-10-15 Christian Biesinger <cbiesinger@google.com>
2645
2646 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2647 to a gdb::function_view and return value to bool.
2648 * breakpoint.h (iterate_over_breakpoints): Likewise.
2649 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2650 (pop_dummy_frame): Update.
2651 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2652 (gdbscm_breakpoints): Update.
2653 * python/py-breakpoint.c (build_bp_list): Update.
2654 (gdbpy_breakpoints): Update.
2655 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2656 Update.
2657 (bpfinishpy_handle_stop): Update.
2658 (bpfinishpy_handle_exit): Update.
2659 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2660 (svr4_update_solib_event_breakpoints): Update.
2661
ba18312d
AA
26622019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2663
2664 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2665 when unwrapping single-field structs.
2666
6acc1a0b
SM
26672019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * dwarf2read.c: Remove includes.
2670
284782de
SM
26712019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * ui-out.c (ui_out::call_do_message): Silence
2674 -Wformat-nonliteral warning.
2675
073bbbb0
SM
26762019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2677
2678 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2679 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2680 include: readline/tilde.h.
2681
7b9a15e1
CB
26822019-10-12 Christian Biesinger <cbiesinger@google.com>
2683
2684 * remote.c (remote_target::get_trace_status): Remove declaration of
2685 trace_regblock_size.
2686
cc8dee1f
CB
26872019-10-12 Christian Biesinger <cbiesinger@google.com>
2688
2689 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2690 (show_user): Remove declaration of cmdlist.
2691 * cli/cli-cmds.h (max_user_call_depth): Declare.
2692 * cli/cli-script.c (execute_user_command): Remove declaration
2693 of max_user_call_depth.
2694
a83d4ef6
JW
26952019-10-11 Jim Wilson <jimw@sifive.com>
2696
5f93c5a6
JW
2697 * gdbsupport/print-utils.h (pulongest): Fix comment.
2698 (plongest): Likewise.
2699 (phex): Add missing comment, mention leading zeros.
2700 (phex_nz): Add mention of no leading zeros to comment.
2701
a83d4ef6
JW
2702 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2703 plongest instead of unsigned long long cast.
2704
26344e0c
CB
27052019-10-10 Christian Biesinger <cbiesinger@google.com>
2706
2707 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2708 for external_editor_command and gdbtk_test.
2709
c2c440a9
CB
27102019-10-10 Christian Biesinger <cbiesinger@google.com>
2711
2712 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2713 * varobj.c (varobjdebug): Move comment to...
2714 * varobj.h (varobjdebug): ...here, and declare.
2715
a31bff9d
TT
27162019-10-09 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2719 erase_data_content.
2720
7523da63
TT
27212019-10-09 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2724 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2725 * tui/tui-command.c (tui_cmd_window::resize)
2726 (tui_refresh_cmd_win): Update.
2727 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2728 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2729 * tui/tui-data.c (~tui_gen_win_info): Remove.
2730 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2731 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2732 (tui_redisplay_readline, tui_mld_flush)
2733 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2734 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2735 (tui_data_window::erase_data_content)
2736 (tui_data_item_window::rerender)
2737 (tui_data_item_window::refresh_window): Update.
2738 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2739 (box_win, tui_gen_win_info::make_window)
2740 (tui_gen_win_info::make_visible): Update.
2741 (tui_delete_win): Remove.
2742 * tui/tui-winsource.c
2743 (tui_source_window_base::do_erase_source_content): Update.
2744 (tui_show_source_line, tui_source_window_base::update_tab_width)
2745 (tui_source_window_base::update_exec_info): Update.
2746 * tui/tui-data.h (struct curses_deleter): New.
2747 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2748 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2749
a7798e7f
TT
27502019-10-09 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2753
5c45899e
TT
27542019-10-09 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2757 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2758
6d7fd9aa
TT
27592019-10-09 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2762 window height directly.
2763 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2764 declare.
2765 * tui/tui-layout.c (tui_default_win_height): Remove.
2766 (tui_default_win_viewport_height): Remove.
2767
d2dd1084
TT
27682019-10-09 Tom Tromey <tom@tromey.com>
2769
2770 * tui/tui.h: Remove comments.
2771
cff32449
TV
27722019-10-09 Tom de Vries <tdevries@suse.de>
2773
2774 * python/lib/gdb/printer/bound_registers.py: Use
2775 '^builtin_type_bound128' as regexp argument for
2776 add_builtin_pretty_printer.
2777
6a25e8a2
CB
27782019-10-09 Christian Biesinger <cbiesinger@google.com>
2779
2780 * guile/guile.c (guile_extension_script_ops): Remove forward
2781 declaration and mark as static.
2782 (guile_script_ops): Likewise.
2783 (extension_language_guile): Move further down in the file so
2784 it can reference the definitions for guile_{extension_,}script_ops.
2785
6d9d6da4
AA
27862019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2787
2788 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2789 except SORTL, DFLTCC, and KDSA.
2790
3abea05d
TT
27912019-10-08 Tom Tromey <tromey@adacore.com>
2792
2793 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2794 (struct safe_symbol_file_add_args): Remove.
2795
dde996e2
TT
27962019-10-08 Tom Tromey <tromey@adacore.com>
2797
2798 * windows-nat.c: Don't include buildsym-legacy.h.
2799
cd6fdaa1
TT
28002019-10-08 Tom Tromey <tromey@adacore.com>
2801
2802 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2803
79bb1944
CB
28042019-10-08 Christian Biesinger <cbiesinger@google.com>
2805
2806 * gdbtypes.c (overload_debug): Move comment to header.
2807 * gdbtypes.h (overload_debug): Declare.
2808 * valops.c: Remove declaration of overload_debug, instead
2809 include gdbtypes.h.
2810
34916edc
CB
28112019-10-08 Christian Biesinger <cbiesinger@google.com>
2812
2813 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2814 through _().
2815 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2816 move comment...
2817 * language.h (lang_frame_mismatch_warn): ... here. Also add
2818 declaration.
2819 * top.c (lang_frame_mismatch_warn): Remove declaration.
2820 (check_frame_language_change): Pass lang_frame_mismatch_warn
2821 through _().
2822
bad5c026
CB
28232019-10-07 Christian Biesinger <cbiesinger@google.com>
2824
2825 * c-lang.h (vtbl_ptr_name): Declare.
2826 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2827 it from the header.
2828 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2829
51f1fdc3
CB
28302019-10-07 Christian Biesinger <cbiesinger@google.com>
2831
2832 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2833 gdb_static_assert.
2834
30d1f018
WP
28352019-10-07 Weimin Pan <weimin.pan@oracle.com>
2836
606813d5
WP
2837 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2838 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2839 * ctfread.c: New file.
2840 * ctfread.h: New file.
2841 * elfread.c: Include ctfread.h.
2842 (struct elfinfo text_p): New member ctfsect.
2843 (elf_locate_sections): Mark CTF section.
2844 (elf_symfile_read): Call elfctf_build_psymtabs.
2845 * Makefile.in (LIBCTF): Add.
2846 (CLIBS): Use it.
2847 (CDEPS): Likewise.
2848 (DIST): Add ctfread.c.
606813d5
WP
2849
28502019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * ctfread.c (struct nextfield): Renamed to ...
2853 (struct ctf_nextfield): ... this.
2854 (struct field_info): Renamed to ...
2855 (strut ctf_field_info): ... this.
2856 (attach_fields_to_type): Update for renamed structures.
2857 (ctf_add_member_cb): Likewise.
2858 (ctf_add_enum_member_cb): Likewise.
2859 (process_struct_members): Likewise.
2860 (process_enum_type): Likewise.
30d1f018 2861
518fe38c
WP
28622019-10-07 Weimin Pan <weimin.pan@oracle.com>
2863
2864 * tracectf.h: Rename, was ctf.h.
2865 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2866 * tracefile.c: Likewise.
2867 * tracepoint.c: Remove unused include ctf.h.
2868 * mi/mi-main.c: Likewise.
2869 * Makefile.in Replace ctf.c with tracectf.c.
2870
225f296a
JB
28712019-10-06 Joel Brobecker <brobecker@adacore.com>
2872
2873 * version.in: Change version number to "9.0.50.DATE-git".
2874
77c2dba3
TT
28752019-10-03 Tom Tromey <tom@tromey.com>
2876
2877 PR rust/24976:
2878 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2879
179aed7f
AB
28802019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2881
2882 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2883 cp_search_name_hash.
2884 * NEWS: Add entry about nested function support.
2885
0a4b0913
AB
28862019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2887 Andrew Burgess <andrew.burgess@embecosm.com>
2888
2889 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2890 for nested static variables when searchin VAR_DOMAIN.
2891 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2892 global scope, update comment.
2893 (add_partial_subprogram): Call add_partial_subprogram recursively
2894 for nested subroutines when processinng Fortran.
2895 (load_partial_dies): Process the child entities of a subprogram
2896 when processing Fortran.
2897 (partial_die_parent_scope): Handle building scope
2898 for Fortran nested functions.
2899 (process_die): Record that nested functions have a scope.
2900 (new_symbol): Always record Fortran subprograms on the global
2901 symbol list.
2902 (determine_prefix): How to build the prefix for Fortran
2903 subprograms.
2904
d8c06f22
AB
29052019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2908 have just sent the thread a SIGSTOP and are waiting for it to
2909 arrive.
2910
a8b3b8e9
AB
29112019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * btrace.c (btrace_add_pc): Remove whitespace before the template
2914 parameter in 'std::vector <...>'.
2915 (parse_xml_btrace_block): Likewise.
2916 (btrace_maint_decode_pt): Likewise.
2917 (btrace_maint_update_packets): Likewise.
2918 (btrace_maint_print_packets): Likewise.
2919 * btrace.h (struct btrace_maint_info): Likewise.
2920 * dwarf2read.c (struct type_unit_group): Likewise.
2921 (build_type_psymtabs_reader): Likewise.
2922 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2923 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2924 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2925
4d825eab
TV
29262019-10-03 Tom de Vries <tdevries@suse.de>
2927
2928 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2929 the first line of the help text for set/show style metadata.
2930
80fd2826
TT
29312019-10-02 Tom Tromey <tromey@adacore.com>
2932
2933 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2934 * gdbsupport/common-inferior.c: New file.
2935 * infcmd.c (startup_with_shell): Don't define.
2936 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2937 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2938 * inferior.h (startup_with_shell): Don't declare.
2939
70054538
CB
29402019-10-02 Christian Biesinger <cbiesinger@google.com>
2941
2942 * gdbsupport/gdb_assert.h: Include errors.h.
2943 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2944
37f6a7f4
TT
29452019-10-02 Tom Tromey <tromey@adacore.com>
2946
2947 * NEWS: Add $_ada_exception entry.
2948 * ada-lang.c (struct ada_catchpoint): Add constructor.
2949 <m_kind>: New member.
2950 (allocate_location_exception, re_set_exception): Remove
2951 "ex" parameter.
2952 (should_stop_exception): Compute $_ada_exception.
2953 (check_status_exception, print_it_exception)
2954 (print_one_exception, print_mention_exception): Remove
2955 "ex" parameter.
2956 (allocate_location_catch_exception, re_set_catch_exception)
2957 (check_status_exception, print_it_catch_exception)
2958 (print_one_catch_exception, print_mention_catch_exception)
2959 (print_recreate_catch_exception)
2960 (allocate_location_catch_exception_unhandled)
2961 (re_set_catch_exception_unhandled)
2962 (check_status_exception, print_it_catch_exception_unhandled)
2963 (print_one_catch_exception_unhandled)
2964 (print_mention_catch_exception_unhandled)
2965 (print_recreate_catch_exception_unhandled)
2966 (allocate_location_catch_assert, re_set_catch_assert)
2967 (check_status_assert, print_it_catch_assert)
2968 (print_one_catch_assert, print_mention_catch_assert)
2969 (print_recreate_catch_assert)
2970 (allocate_location_catch_handlers, re_set_catch_handlers)
2971 (check_status_handlers, print_it_catch_handlers)
2972 (print_one_catch_handlers, print_mention_catch_handlers)
2973 (print_recreate_catch_handlers): Remove.
2974 (create_ada_exception_catchpoint): Update.
2975 (initialize_ada_catchpoint_ops): Update.
2976
fccf9de1
TT
29772019-10-02 Tom Tromey <tromey@adacore.com>
2978
2979 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2980 (create_excep_cond_exprs): Simplify exception string computation.
2981 (ada_exception_catchpoint_cond_string): Likewise.
2982
4b610737
TT
29832019-10-02 Tom Tromey <tromey@adacore.com>
2984
2985 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2986 * ada-lang.c (lesseq_defined_than): Handle
2987 LOC_STATIC.
2988 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2989 parameter.
2990 (dwarf2_has_info): Likewise.
2991 (new_symbol): Set maybe_copied on symbol when
2992 appropriate.
2993 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2994 parameter.
2995 <can_copy>: New member.
2996 * elfread.c (record_minimal_symbol): Set maybe_copied
2997 on symbol when appropriate.
2998 (elf_symfile_read): Update call to dwarf2_has_info.
2999 * minsyms.c (lookup_minimal_symbol_linkage): New
3000 function.
3001 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3002 * symtab.c (get_symbol_address, get_msymbol_address):
3003 New functions.
3004 * symtab.h (get_symbol_address, get_msymbol_address):
3005 Declare.
3006 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3007 maybe_copied.
3008 (struct symbol, struct minimal_symbol) <maybe_copied>:
3009 New member.
3010
1dd58850
TT
30112019-10-02 Tom Tromey <tromey@adacore.com>
3012
3013 * source.c (struct current_source_location): New.
3014 (current_source_key): New global.
3015 (current_source_symtab, current_source_line)
3016 (current_source_pspace): Remove.
3017 (get_source_location): New function.
3018 (get_current_source_symtab_and_line)
3019 (set_default_source_symtab_and_line)
3020 (set_current_source_symtab_and_line)
3021 (clear_current_source_symtab_and_line, select_source_symtab)
3022 (info_source_command, print_source_lines_base)
3023 (info_line_command, search_command_helper, _initialize_source):
3024 Update.
3025
5c281dbb
TT
30262019-10-02 Tom Tromey <tromey@adacore.com>
3027
3028 * source.c (select_source_symtab): Don't call
3029 decode_line_with_current_source.
3030
d3d32391
AB
30312019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * symtab.c (lookup_global_symbol): Search global block.
3034
38583298
TT
30352019-10-02 Tom Tromey <tromey@adacore.com>
3036
3037 * coffread.c (process_coff_symbol): Update.
3038 * dwarf2read.c (var_decode_location, new_symbol): Update.
3039 * mdebugread.c (parse_symbol): Update.
3040 * objfiles.c (relocate_one_symbol): Update.
3041 * stabsread.c (define_symbol, fix_common_block)
3042 (scan_file_globals): Update.
3043 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3044 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3045 * xcoffread.c (process_xcoff_symbol): Update.
3046
9344c18f
AA
30472019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3048
3049 * MAINTAINERS: Update my email address.
3050
df07e2c7
AB
30512019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3054 std::vector.
3055 (build_type_psymtabs_reader): Update for std::vector.
3056 (build_type_psymtab_dependencies): Likewise.
3057 * dwarf2read.h: Remove use of DEF_VEC_P.
3058 (typedef sig_type_ptr): Delete.
3059
554ac434
AB
30602019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3063 to std::vector.
3064 (btrace_maint_decode_pt): Likewise, and move allocation of the
3065 vector outside of the loop.
3066 (btrace_maint_update_packets): Update to handle change from VEC to
3067 std::vector.
3068 (btrace_maint_print_packets): Likewise.
3069 (maint_info_btrace_cmd): Likewise.
3070 * btrace.h: Remove use of DEF_VEC_O.
3071 (typedef btrace_pt_packet_s): Delete.
3072 (struct btrace_maint_info) <packets>: Change fromm VEC to
3073 std::vector.
3074 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3075
46f29a9a
AB
30762019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3077
3078 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3079 make accesses into the vector constant references.
3080 (btrace_add_pc): Update for std::vector.
3081 (btrace_stitch_bts): Likewise.
3082 (parse_xml_btrace_block): Likewise.
3083 (btrace_maint_update_packets): Likewise.
3084 (btrace_maint_print_packets): Likewise.
3085 (maint_info_btrace_cmd): Likewise.
3086 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3087 std::vector.
3088 (btrace_data::empty): Likewise.
3089 (btrace_data_append): Likewise.
3090 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3091 (typedef btrace_block_s): Delete.
3092 (struct btrace_block): Add constructor.
3093 (struct btrace_data_bts) <blocks>: Change to std::vector.
3094 * nat/linux-btrace.c (perf_event_read_bts): Update for
3095 std::vector.
3096 (linux_read_bts): Likewise.
3097
d770d56f
TT
30982019-10-01 Tom Tromey <tom@tromey.com>
3099
3100 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3101
9d636d67
TT
31022019-10-01 Tom Tromey <tom@tromey.com>
3103
3104 * stack.c (print_frame, info_frame_command_core): Use
3105 styled_string.
3106 * linux-thread-db.c (try_thread_db_load_1)
3107 (try_thread_db_load_from_pdir_1): Use styled_string.
3108 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3109 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3110 (maybe_print_unsupported_script_warning)
3111 (maybe_print_script_not_found_warning): Use styled_string.
3112 * ada-lang.c (user_select_syms): Use styled_string.
3113
7f6aba03
TT
31142019-10-01 Tom Tromey <tom@tromey.com>
3115
3116 * p-lang.c (pascal_printstr): Use metadata style.
3117 * value.c (show_convenience): Use metadata style.
3118 * valprint.c (valprint_check_validity, val_print_optimized_out)
3119 (val_print_not_saved, val_print_unavailable)
3120 (val_print_invalid_address, generic_val_print, val_print)
3121 (value_check_printable, val_print_array_elements): Use metadata
3122 style.
3123 * ui-out.h (class ui_out) <field_fmt>: New overload.
3124 <do_field_fmt>: Add style parameter.
3125 * ui-out.c (ui_out::field_fmt): New overload.
3126 * typeprint.c (type_print_unknown_return_type)
3127 (val_print_not_allocated, val_print_not_associated): Use metadata
3128 style.
3129 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3130 parameter.
3131 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3132 * tracepoint.c (tvariables_info_1): Use metadata style.
3133 * stack.c (print_frame_arg, print_frame_info, print_frame)
3134 (info_frame_command_core): Use metadata style.
3135 * skip.c (info_skip_command): Use metadata style.
3136 * rust-lang.c (rust_print_enum): Use metadata style.
3137 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3138 metadata style.
3139 * python/py-framefilter.c (py_print_single_arg): Use metadata
3140 style.
3141 * printcmd.c (do_one_display, print_variable_and_value): Use
3142 metadata style.
3143 * p-valprint.c (pascal_val_print)
3144 (pascal_object_print_value_fields): Use metadata style.
3145 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3146 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3147 parameter.
3148 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3149 * m2-valprint.c (m2_print_long_set): Use metadata style.
3150 * m2-typeprint.c (m2_print_type): Use metadata style.
3151 * infcmd.c (print_return_value_1): Use metadata style.
3152 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3153 * f-valprint.c (info_common_command_for_block): Use metadata
3154 style.
3155 * f-typeprint.c (f_type_print_base): Use metadata style.
3156 * expprint.c (print_subexp_standard): Use metadata style.
3157 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3158 * cli/cli-style.h (class cli_style_option): Add constructor.
3159 (metadata_style): Declare.
3160 * cli/cli-style.c (metadata_style): New global.
3161 (_initialize_cli_style): Register metadata style.
3162 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3163 parameter.
3164 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3165 * c-typeprint.c (c_type_print_base_struct_union)
3166 (c_type_print_base_1): Use metadata style.
3167 * breakpoint.c (watchpoint_value_print)
3168 (print_one_breakpoint_location): Use metadata style.
3169 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3170 style.
3171 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3172 style.
3173 * ada-valprint.c (val_print_packed_array_elements, printstr)
3174 (print_field_values, ada_val_print_ref, ada_val_print): Use
3175 metadata style.
3176 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3177 style.
3178 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3179 style.
3180 * ada-lang.c (user_select_syms): Use metadata style.
3181
14309bb6
TT
31822019-10-01 Tom Tromey <tom@tromey.com>
3183
3184 * cli/cli-cmds.c (pwd_command): Style output.
3185
6a831f06
PA
31862019-10-01 Pedro Alves <palves@redhat.com>
3187 Tom Tromey <tom@tromey.com>
3188
3189 * symtab.c (print_symbol_info): Use %ps.
3190 (print_msymbol_info): Use %ps.
3191 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3192 * printcmd.c (print_variable_and_value): Use %ps.
3193 * macrocmd.c (show_pp_source_pos): Use %ps.
3194 * infrun.c (print_exited_reason): Use ui_out::message.
3195 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3196 (describe_other_breakpoints): Use ui_out::message and new
3197 formats.
3198 (say_where): Use new formats.
3199 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3200 and new formats.
3201
2a3c1174
PA
32022019-10-01 Pedro Alves <palves@redhat.com>
3203 Tom Tromey <tom@tromey.com>
3204
3205 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3206 (test_gdb_formats): New function.
3207 (run_tests): Call it.
3208 (test_format_specifier): Update.
3209 * utils.h (fputs_filtered): Update comment.
3210 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3211 (fputs_styled_unfiltered): Declare.
3212 * utils.c (fputs_styled_unfiltered): New function.
3213 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3214 (vfprintf_filtered): Update.
3215 (vfprintf_unfiltered, vprintf_filtered): Update.
3216 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3217 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3218 disallow_ui_out_field>: New constants.
3219 (enum class field_kind): New.
3220 (struct base_field_s, struct signed_field_s): New.
3221 (signed_field): New function.
3222 (struct string_field_s): New.
3223 (string_field): New function.
3224 (struct styled_string_s): New.
3225 (styled_string): New function.
3226 (class ui_out) <message>: Add comment.
3227 <vmessage, call_do_message>: New methods.
3228 <do_message>: Add style parameter.
3229 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3230 methods.
3231 (ui_out::message): Rewrite.
3232 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3233 parameter.
3234 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3235 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3236 gdb_extensions parameter.
3237 (class format_piece): Add parameter to constructor.
3238 (n_int_args): New field.
3239 * gdbsupport/format.c (format_pieces::format_pieces): Add
3240 gdb_extensions parameter. Handle '*'.
3241 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3242 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3243 vfprintf_styled_no_gdbfmt.
3244 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3245 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3246 unfiltered output.
3247 * ui-style.h (struct ui_file_style) <ptr>: New method.
3248
0dfe5bfb
TT
32492019-10-01 Tom Tromey <tom@tromey.com>
3250
3251 * unittests/format_pieces-selftests.c: Update. Add final format.
3252 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3253 empty literal pieces.
3254
e43b10e1
TT
32552019-10-01 Tom Tromey <tom@tromey.com>
3256
3257 * ui-out.h (enum class ui_out_style_kind): Remove.
3258 (class ui_out) <field_string, field_stsream, do_field_string>:
3259 Change type of "style".
3260 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3261 (ui_out::field_string): Update.
3262 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3263 of "style".
3264 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3265 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3266 * stack.c (print_frame_arg, print_frame_info, print_frame):
3267 Update.
3268 * source.c (print_source_lines_base): Update.
3269 * solib.c (info_sharedlibrary_command): Update.
3270 * skip.c (info_skip_command): Update.
3271 * record-btrace.c (btrace_call_history_src_line)
3272 (btrace_call_history): Update.
3273 * python/py-framefilter.c (py_print_frame): Update.
3274 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3275 "style".
3276 * mi/mi-out.c (mi_ui_out::do_table_header)
3277 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3278 (mi_ui_out::do_field_string): Update.
3279 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3280 Update.
3281 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3282 "style".
3283 * cli-out.c (cli_ui_out::do_table_header)
3284 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3285 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3286 (cli_ui_out::do_field_fmt): Update.
3287 * breakpoint.c (print_breakpoint_location): Update.
3288 (update_static_tracepoint): Update.
3289
cd7c32c3
PW
32902019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3291
3292 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3293 conversion of gdb_datadir.
3294 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3295 remove not needed c_str ().
3296
8fe0f950
AT
32972019-09-30 Ali Tamur <tamur@google.com>
3298
3299 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3300 (dwarf2_string_attr): Likewise.
3301
5f48f8f3
AT
33022019-09-30 Ali Tamur <tamur@google.com>
3303
3304 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3305 (process_full_type_unit): Likewise.
3306 (dump_die_shallow): Likewise.
3307 (cu_debug_loc_section): Likewise.
3308
6fb08628
CB
33092019-09-28 Christian Biesinger <cbiesinger@google.com>
3310
3311 * minsyms.c (compare_minimal_symbols): Rename to...
3312 (minimal_symbol_is_less_than): ...this, and adjust to STL
3313 conventions (return bool, take arguments as references)
3314 (minimal_symbol_reader::install): Call std::sort instead
3315 of qsort.
3316
c7ee338a
CB
33172019-09-29 Christian Biesinger <cbiesinger@google.com>
3318
3319 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3320 hash and why.
3321 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3322 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3323
703a86c2
SM
33242019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3327 * psympriv.h (add_psymbol_to_list): Move comment here and update
3328 it.
3329
0df0352a
TV
33302019-09-29 Tom de Vries <tdevries@suse.de>
3331
3332 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3333 Use $tmpdir/$(basename "$output_file").dwz instead of
3334 "${output_file}.dwz".
3335
ad75efa6
SM
33362019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 PR gdb/25045
3339 * hppa-linux-nat.c: Include gdbarch.h.
3340
ececd218
CB
33412019-09-26 Christian Biesinger <cbiesinger@google.com>
3342
3343 * blockframe.c (find_pc_partial_function): Change return type to bool.
3344 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3345 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3346 (stub_gnu_ifunc_resolve_name): Likewise.
3347 * symtab.c (compare_filenames_for_search): Likewise.
3348 (compare_glob_filenames_for_search): Likewise.
3349 (matching_obj_sections): Likewise.
3350 (symbol_matches_domain): Likewise.
3351 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3352 (find_line_pc): Change return type to bool.
3353 (find_line_pc_range): Likewise.
3354 (producer_is_realview): Likewise.
3355 * symtab.h (symbol_matches_domain): Likewise.
3356 (find_pc_partial_function): Likewise.
3357 (find_pc_line_pc_range): Likewise.
3358 (in_gnu_ifunc_stub): Likewise.
3359 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3360 (find_line_pc): Likewise.
3361 (find_line_pc_range): Likewise.
3362 (matching_obj_sections): Likewise.
3363 (find_line_symtab): Change out parameter to bool.
3364 (producer_is_realview): Change return type to bool.
3365 (compare_filenames_for_search): Likewise.
3366 (compare_glob_filenames_for_search): Likewise.
3367
27a900b8
TT
33682019-09-26 Tom Tromey <tom@tromey.com>
3369
3370 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3371 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3372 * gdb_usleep.h: Remove.
3373 * gdb_usleep.c: Remove.
3374 * utils.c: Don't include gdb_usleep.h.
3375
5d63b30a
TT
33762019-09-26 Tom Tromey <tromey@adacore.com>
3377
3378 * python/py-type.c (type_to_type_object): Call check_typedef
3379 for stub types.
3380
12904d37
TT
33812019-09-26 Tom Tromey <tom@tromey.com>
3382
3383 * utils.h (initialize_utils): Don't declare.
3384 * top.c (gdb_init): Don't call initialize_utils.
3385 * utils.c (initialize_utils): Remove. Move contents...
3386 (_initialize_utils): ... here.
3387
858f25f0
TT
33882019-09-25 Tom Tromey <tom@tromey.com>
3389
3390 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3391 * utils.h (make_hex_string): Don't declare.
3392 * utils.c (make_hex_string): Remove.
3393
3d435220
TV
33942019-09-24 Tom de Vries <tdevries@suse.de>
3395
3396 PR gdb/23815
3397 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3398 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3399
ddd44b70
DD
34002019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3401
3402 * NEWS: Mention new simulator port for PRU.
3403
f945dedf
CB
34042019-09-23 Christian Biesinger <cbiesinger@google.com>
3405
3406 * ada-exp.y (write_object_remaining): Update.
3407 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3408 and eliminate the static buffer.
3409 (ada_decode_symbol): Update.
3410 (ada_la_decode): Update.
3411 (ada_sniff_from_mangled_name): Update.
3412 (is_valid_name_for_wild_match): Update.
3413 (ada_lookup_name_info::matches): Update and simplify.
3414 (name_matches_regex): Update.
3415 (ada_add_global_exceptions): Update.
3416 * ada-lang.h (ada_decode): Update signature.
3417 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3418 * dwarf-index-write.c (debug_names::insert): Update.
3419
7ab78ccb
SM
34202019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3421
3422 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3423 formatting.
3424
9252448b
SM
34252019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3428 Change "nonzero" to "true" in documentation.
3429
626ca2c0
CB
34302019-09-20 Christian Biesinger <cbiesinger@google.com>
3431
3432 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3433 (_initialize_darwin_solib): Don't set
3434 darwin_so_ops.lookup_lib_global_symbol.
3435 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3436 set_gdbarch_iterate_over_objfiles_in_search_order.
3437 (elf_lookup_lib_symbol): Rename to...
3438 (svr4_iterate_over_objfiles_in_search_order): this, and update
3439 to iterate semantics.
3440 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3441 * solib.c (solib_global_lookup): Remove.
3442 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3443 (solib_global_lookup): Remove.
3444 * symtab.c (lookup_global_or_static_symbol): Remove call to
3445 solib_global_lookup.
3446
5a3a0d63
JB
34472019-09-20 Joel Brobecker <brobecker@adacore.com>
3448
3449 * NEWS: Move entries about default MI version now being
3450 version 3, and about the GDB/MI fix for multi-location
3451 breakpoints to the "since GDB 8.3" section.
3452
ffea1427
JB
34532019-09-20 Joel Brobecker <brobecker@adacore.com>
3454
3455 GDB 8.3.1 released.
3456
abf516c6
UW
34572019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3458
3459 * NEWS: Mention that Cell/B.E. debugging support was removed.
3460 * MAINTAINERS: Remove spu target.
3461
3462 * config/djgpp/fnchange.lst: Remove entries for removed files.
3463
3464 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3465 spu-multiarch.o, and spu-tdep.o.
3466 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3467 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3468 spu-multiarch.c, and spu-tdep.c.
3469 * spu-linux-nat.c: Remove file.
3470 * spu-multiarch.c: Remove file.
3471 * spu-tdep.c: Remove file.
3472 * spu-tdep.h: Remove file.
3473 * solib-spu.c: Remove file.
3474 * solib-spu.h: Remove file.
3475
3476 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3477 * configure.nat (spu-linux): Remove.
3478 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3479 solib-multiarch.o from gdb_target_obs.
3480 (spu*-*-*): Remove.
3481
3482 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3483 feature flag.
3484 (ppc_linux_no_features): Update.
3485 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3486 Cell/B.E. support.
3487 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3488 (tdesc_powerpc_cell64l): Likewise.
3489 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3490 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3491 Cell/B.E. support.
3492 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3493 Do not include "features/rs6000/powerpc-cell32l.c" or
3494 "features/rs6000/powerpc-cell64l.c".
3495 (ppc_linux_spu_section): Remove.
3496 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3497 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3498 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3499 (ppc_linux_spe_context_lookup): Remove.
3500 (ppc_linux_spe_context_inferior_created): Remove.
3501 (ppc_linux_spe_context_solib_loaded): Remove.
3502 (ppc_linux_spe_context_solib_unloaded): Remove.
3503 (ppc_linux_spe_context): Remove.
3504 (struct ppu2spu_cache): Remove.
3505 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3506 (struct ppu2spu_data): Remove.
3507 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3508 ppu2spu_unwind): Remove.
3509 (ppc_linux_init_abi): Remove Cell/B.E. support.
3510 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3511
3512 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3513 (rs6000/powerpc-cell64l-expedite): Likewise
3514 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3515 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3516 rs6000/powerpc-cell64l.xml.
3517 * features/rs6000/powerpc-cell32l.xml: Remove.
3518 * features/rs6000/powerpc-cell64l.xml: Likewise.
3519 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3520 * features/rs6000/powerpc-cell64l.c: Likewise.
3521 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3522 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3523 * regformats/reg-spu.dat: Remove.
3524
3525 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3526 * corelow.c (struct spuid_list): Remove.
3527 (add_to_spuid_list): Remove.
3528 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3529 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3530 (remote_protocol_features): Remove associated entries.
3531 (_initialize_remote): No longer initialize them.
3532 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3533 * linux-nat.c (SPUFS_MAGIC): Remove.
3534 (linux_proc_xfer_spu): Remove.
3535 (spu_enumerate_spu_ids): Remove.
3536 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3537 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3538 (linux_make_corefile_notes): No longer call it.
3539
3540 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3541 (cooked_write_test): Likewise.
3542
78e8cb91
TT
35432019-09-20 Tom Tromey <tom@tromey.com>
3544
3545 * NEWS: Mention case-sensitivity of TUI commands.
3546 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3547 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3548 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3549
f074b67e
TT
35502019-09-20 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-source.c (tui_source_window::set_contents): Use
3553 make_unique_xstrdup.
3554 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3555 make_unique_xstrdup.
3556
63c4bf19
TT
35572019-09-20 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-data.c: Remove separator comments.
3560 * tui/tui-layout.c: Remove separator comments.
3561 * tui/tui-win.c: Remove separator comments.
3562 * tui/tui-wingeneral.c: Remove separator comments.
3563
43df9b2f
TT
35642019-09-20 Tom Tromey <tom@tromey.com>
3565
3566 * tui/tui.h (strcat_to_buf): Don't declare.
3567 * tui/tui.c (strcat_to_buf): Remove.
3568
7226433c
TT
35692019-09-20 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3572 from "fullname".
3573 * tui/tui-source.c (tui_source_window::set_contents)
3574 (tui_source_window::location_matches_p)
3575 (tui_source_window::maybe_update): Update.
3576
80df3337
TT
35772019-09-20 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3580 Update.
3581 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3582 prefix.
3583 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3584 (tui_data_window::line_from_reg_element_no)
3585 (tui_data_window::first_reg_element_no_inline)
3586 (tui_data_window::show_registers)
3587 (tui_data_window::show_register_group)
3588 (tui_data_window::display_registers_from)
3589 (tui_data_window::display_registers_from_line)
3590 (tui_data_window::first_data_item_displayed)
3591 (tui_data_window::delete_data_content_windows)
3592 (tui_data_window::erase_data_content)
3593 (tui_data_window::do_scroll_vertical)
3594 (tui_data_window::refresh_window)
3595 (tui_data_window::check_register_values): Update.
3596
9923f347
TT
35972019-09-20 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3600 (struct tui_locator_window) <full_name, proc_name>: Now
3601 std::string.
3602 * tui/tui-stack.c (tui_locator_window::make_status_line)
3603 (tui_locator_window::set_locator_fullname)
3604 (tui_locator_window::set_locator_info): Update.
3605 * tui/tui-source.c (tui_source_window::set_contents)
3606 (tui_source_window::showing_source_p): Update.
3607
b76251ab
TT
36082019-09-20 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3611 Don't call tui_locator_win_info_ptr.
3612
0891be08
TT
36132019-09-20 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3616
1b935acf
TT
36172019-09-20 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3620 height for locator.
3621 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3622 * tui/tui-layout.c (show_source_disasm_command, show_data)
3623 (show_source_or_disasm_and_command): Use 1 as height for locator.
3624
9abd8a65
TT
36252019-09-20 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui.c (tui_enable): Update.
3628 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3629 Update.
3630 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3631 Update.
3632 * tui/tui-data.c (win_resized): Now bool.
3633 (tui_win_resized): Return bool.
3634 (tui_set_win_resized_to): Accept a bool.
3635
b5457826
TT
36362019-09-20 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3639 Change type of "refresh_values_only".
3640 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3641 type of "refresh_values_only".
3642
6b915f7d
TT
36432019-09-20 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3646 std::string.
3647 (tui_disassemble): Add "pos" parameter.
3648 (tui_disasm_window::set_contents): Simplify.
3649
2ad52f6f
TT
36502019-09-20 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-winsource.h (struct tui_source_window_base)
3653 <show_source_content>: Now private.
3654 * tui/tui-winsource.c
3655 (tui_source_window_base::show_source_content): Don't handle empty
3656 content case.
3657
b3b1bde6
TT
36582019-09-20 Tom Tromey <tom@tromey.com>
3659
3660 * tui/tui-layout.c (show_source_disasm_command)
3661 (show_source_or_disasm_and_command): Don't call
3662 show_source_content.
3663
71a25ed2
TT
36642019-09-20 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3667 Declare.
3668 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3669 from tui_make_status_line.
3670 (tui_locator_window::rerender): Update.
3671
f8532154
TT
36722019-09-20 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3675 (tui_locator_window::rerender): Update.
3676
2d81b349
TT
36772019-09-20 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-winsource.h (struct tui_source_window_base)
3680 <~tui_source_window_base>: Don't declare.
3681 <fullname>: Remove.
3682 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3683 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3684 member.
3685 * tui/tui-source.c (tui_source_window::set_contents): Update.
3686 (tui_source_window::location_matches_p)
3687 (tui_source_window::maybe_update): Update.
3688
f14bec58
TT
36892019-09-20 Tom Tromey <tom@tromey.com>
3690
3691 * tui/tui-winsource.h (~tui_source_element): Remove.
3692 (tui_source_element): Update.
3693 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3694 * tui/tui-winsource.c (tui_show_source_line): Update.
3695 * tui/tui-source.c (tui_source_window::set_contents): Update.
3696 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3697
78d5933a
TT
36982019-09-20 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3701 declare.
3702 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3703 tui_clear_source_windows_detail.
3704 * tui/tui-winsource.h (struct tui_source_window_base)
3705 <clear_detail>: Don't declare.
3706 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3707 Remove.
3708 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3709
d4207696
TT
37102019-09-20 Tom Tromey <tromey@adacore.com>
3711
3712 PR ada/24919:
3713 * block.c (contained_in): Fix final return value.
3714
00f93c44
AM
37152019-09-20 Alan Modra <amodra@gmail.com>
3716
3717 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3718 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3719 (read_indirect_string_from_dwz): Use bfd accessor.
3720 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3721 * machoread.c (macho_symfile_read_all_oso): Likewise.
3722 * solib.c (solib_bfd_open): Likewise.
3723
e4153ae6
CB
37242019-09-19 Christian Biesinger <cbiesinger@google.com>
3725
3726 * eval.c: Move declaration of overload_resolution to...
3727 * value.h: ...here.
3728
c7ae7675
CB
37292019-09-19 Christian Biesinger <cbiesinger@google.com>
3730
3731 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3732 * arm-linux-tdep.c: Likewise.
3733 * arm-nbsd-nat.c: Likewise.
3734 * arm-tdep.h: Declare arm_apcs_32.
3735 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3736
e86f08d2
CB
37372019-09-19 Christian Biesinger <cbiesinger@google.com>
3738
3739 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3740 * dwarf2read.h: Declare dwarf_always_disassemble.
3741
f64e2f40
TV
37422019-09-19 Tom de Vries <tdevries@suse.de>
3743
3744 PR gdb/25009
3745 * source-cache.c (source_cache::ensure): Catch exception thrown during
3746 construction of the highlighter.
3747
fd361982
AM
37482019-09-18 Alan Modra <amodra@gmail.com>
3749
3750 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3751 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3752 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3753 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3754 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3755 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3756 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3757 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3758 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3759 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3760 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3761 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3762 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3763 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3764 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3765 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3766 * mi/mi-interp.c: Update throughout for bfd section macro and
3767 function changes.
3768 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3769 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3770
11061048
TT
37712019-09-18 Tom Tromey <tom@tromey.com>
3772
3773 * NEWS: Add entry.
3774 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3775 call rl_initialize.
3776 (tui_enable): Do not call rl_initialize.
3777
7a27b85f
CG
37782019-09-18 Christian Groessler <chris@groessler.org>
3779
3780 * alpha-linux-nat.c: Include gdbarch.h.
3781
f64eea3a
SM
37822019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * ui-file.c: Include cli/cli-style.h.
3785 (term_cli_styling): Remove cli_styling declaration.
3786
e6f7f6d1
AM
37872019-09-18 Alan Modra <amodra@gmail.com>
3788
3789 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3790 to bfd_asymbol_section.
3791
1d38e9d1
AM
37922019-09-18 Alan Modra <amodra@gmail.com>
3793
3794 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3795 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3796 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3797
90d92a63
AM
37982019-09-18 Alan Modra <amodra@gmail.com>
3799
3800 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3801 * spu-linux-nat.c (spu_bfd_open): Likewise.
3802
a3d181d2
CB
38032019-09-18 Christian Biesinger <cbiesinger@google.com>
3804
3805 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3806 to bool to match definition in dwarf2read.c.
3807
491144b5
CB
38082019-09-17 Christian Biesinger <cbiesinger@google.com>
3809
3810 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3811 (print_signatures): Likewise.
3812 (trust_pad_over_xvs): Likewise.
3813 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3814 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3815 * arm-linux-nat.c (arm_apcs_32): Likewise.
3816 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3817 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3818 * arm-tdep.c (arm_debug): Likewise.
3819 (arm_apcs_32): Likewise.
3820 * auto-load.c (debug_auto_load): Likewise.
3821 (auto_load_gdb_scripts): Likewise.
3822 (global_auto_load): Likewise.
3823 (auto_load_local_gdbinit): Likewise.
3824 (auto_load_local_gdbinit_loaded): Likewise.
3825 * auto-load.h (global_auto_load): Likewise.
3826 (auto_load_local_gdbinit): Likewise.
3827 (auto_load_local_gdbinit_loaded): Likewise.
3828 * breakpoint.c (disconnected_dprintf): Likewise.
3829 (breakpoint_proceeded): Likewise.
3830 (automatic_hardware_breakpoints): Likewise.
3831 (always_inserted_mode): Likewise.
3832 (target_exact_watchpoints): Likewise.
3833 (_initialize_breakpoint): Update.
3834 * breakpoint.h (target_exact_watchpoints): Change to bool.
3835 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3836 * cli/cli-cmds.c (trace_commands): Likewise.
3837 * cli/cli-cmds.h (trace_commands): Likewise.
3838 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3839 to bool*.
3840 * cli/cli-logging.c (logging_overwrite): Change to bool.
3841 (logging_redirect): Likewise.
3842 (debug_redirect): Likewise.
3843 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3844 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3845 to bool.
3846 <boolean_option_def>: Update.
3847 (struct flag_option_def): Change default type of Context to bool
3848 from int.
3849 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3850 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3851 (get_setshow_command_value_string): Likewise.
3852 * cli/cli-style.c (cli_styling): Change to bool.
3853 (source_styling): Likewise.
3854 * cli/cli-style.h (source_styling): Likewise.
3855 (cli_styling): Likewise.
3856 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3857 to bool.
3858 * command.h (var_types): Update comment.
3859 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3860 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3861 bool.
3862 (debug_compile_cplus_scopes): Likewise.
3863 * compile/compile-internal.h (compile_debug): Likewise.
3864 * compile/compile.c (compile_debug): Likewise.
3865 (struct compile_options) <raw>: Likewise.
3866 * cp-support.c (catch_demangler_crashes): Likewise.
3867 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3868 (usr_cmd_cris_dwarf2_cfi): Likewise.
3869 * csky-tdep.c (csky_debug): Likewise.
3870 * darwin-nat.c (enable_mach_exceptions): Likewise.
3871 * dcache.c (dcache_enabled_p): Likewise.
3872 * defs.h (info_verbose): Likewise.
3873 * demangle.c (demangle): Likewise.
3874 (asm_demangle): Likewise.
3875 * dwarf-index-cache.c (debug_index_cache): Likewise.
3876 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3877 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3878 * dwarf2read.c (check_physname): Likewise.
3879 (use_deprecated_index_sections): Likewise.
3880 (dwarf_always_disassemble): Likewise.
3881 * eval.c (overload_resolution): Likewise.
3882 * event-top.c (set_editing_cmd_var): Likewise.
3883 (exec_done_display_p): Likewise.
3884 * event-top.h (set_editing_cmd_var): Likewise.
3885 (exec_done_display_p): Likewise.
3886 * exec.c (write_files): Likewise.
3887 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3888 (debug_fbsd_nat): Likewise.
3889 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3890 Likewise.
3891 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3892 <backtrace_past_entry> Likewise.
3893 * gdb-demangle.h (demangle): Likewise.
3894 (asm_demangle): Likewise.
3895 * gdb_bfd.c (bfd_sharing): Likewise.
3896 * gdbcore.h (write_files): Likewise.
3897 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3898 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3899 * gdbthread.h (print_thread_events): Likewise.
3900 * gdbtypes.c (opaque_type_resolution): Likewise.
3901 (strict_type_checking): Likewise.
3902 * gnu-nat.c (gnu_debug_flag): Likewise.
3903 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3904 * guile/scm-param.c (pascm_variable): Add boolval.
3905 (add_setshow_generic): Update.
3906 (pascm_param_value): Update.
3907 (pascm_set_param_value_x): Update.
3908 * hppa-tdep.c (hppa_debug): Change to bool..
3909 * infcall.c (may_call_functions_p): Likewise.
3910 (coerce_float_to_double_p): Likewise.
3911 (unwind_on_signal_p): Likewise.
3912 (unwind_on_terminating_exception_p): Likewise.
3913 * infcmd.c (startup_with_shell): Likewise.
3914 * inferior.c (print_inferior_events): Likewise.
3915 * inferior.h (startup_with_shell): Likewise.
3916 (print_inferior_events): Likewise.
3917 * infrun.c (step_stop_if_no_debug): Likewise.
3918 (detach_fork): Likewise.
3919 (debug_displaced): Likewise.
3920 (disable_randomization): Likewise.
3921 (non_stop): Likewise.
3922 (non_stop_1): Likewise.
3923 (observer_mode): Likewise.
3924 (observer_mode_1): Likewise.
3925 (set_observer_mode): Update.
3926 (sched_multi): Change to bool.
3927 * infrun.h (debug_displaced): Likewise.
3928 (sched_multi): Likewise.
3929 (step_stop_if_no_debug): Likewise.
3930 (non_stop): Likewise.
3931 (disable_randomization): Likewise.
3932 * linux-tdep.c (use_coredump_filter): Likewise.
3933 (dump_excluded_mappings): Likewise.
3934 * linux-thread-db.c (auto_load_thread_db): Likewise.
3935 (check_thread_db_on_load): Likewise.
3936 * main.c (captured_main_1): Update.
3937 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3938 xx2_opt, boolean_opt>: Change to bool.
3939 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3940 * maint.c (maintenance_profile_p): Likewise.
3941 (per_command_time): Likewise.
3942 (per_command_space): Likewise.
3943 (per_command_symtab): Likewise.
3944 * memattr.c (inaccessible_by_default): Likewise.
3945 * mi/mi-main.c (mi_async): Likewise.
3946 (mi_async_1): Likewise.
3947 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3948 * nat/fork-inferior.h (startup_with_shell): Likewise.
3949 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3950 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3951 * nios2-tdep.c (nios2_debug): Likewise.
3952 * or1k-tdep.c (or1k_debug): Likewise.
3953 * parse.c (parser_debug): Likewise.
3954 * parser-defs.h (parser_debug): Likewise.
3955 * printcmd.c (print_symbol_filename): Likewise.
3956 * proc-api.c (procfs_trace): Likewise.
3957 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3958 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3959 (set_parameter_value): Update.
3960 (add_setshow_generic): Update.
3961 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3962 to bool*.
3963 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3964 int*.
3965 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3966 * record-btrace.c (record_btrace_target::store_registers): Update.
3967 * record-full.c (record_full_memory_query): Change to bool.
3968 (record_full_stop_at_limit): Likewise.
3969 * record-full.h (record_full_memory_query): Likewise.
3970 * remote-notif.c (notif_debug): Likewise.
3971 * remote-notif.h (notif_debug): Likewise.
3972 * remote.c (use_range_stepping): Likewise.
3973 (interrupt_on_connect): Likewise.
3974 (remote_break): Likewise.
3975 * ser-tcp.c (tcp_auto_retry): Likewise.
3976 * ser-unix.c (serial_hwflow): Likewise.
3977 * skip.c (debug_skip): Likewise.
3978 * solib-aix.c (solib_aix_debug): Likewise.
3979 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3980 (spu_auto_flush_cache_p): Likewise.
3981 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3982 Likewise.
3983 (struct info_print_options) <quiet>: Likewise.
3984 * symfile-debug.c (debug_symfile): Likewise.
3985 * symfile.c (auto_solib_add): Likewise.
3986 (separate_debug_file_debug): Likewise.
3987 * symfile.h (auto_solib_add): Likewise.
3988 (separate_debug_file_debug): Likewise.
3989 * symtab.c (basenames_may_differ): Likewise.
3990 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3991 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3992 (struct info_types_options) <quiet>: Likewise.
3993 * symtab.h (demangle): Likewise.
3994 (basenames_may_differ): Likewise.
3995 * target-dcache.c (stack_cache_enabled_1): Likewise.
3996 (code_cache_enabled_1): Likewise.
3997 * target.c (trust_readonly): Likewise.
3998 (may_write_registers): Likewise.
3999 (may_write_memory): Likewise.
4000 (may_insert_breakpoints): Likewise.
4001 (may_insert_tracepoints): Likewise.
4002 (may_insert_fast_tracepoints): Likewise.
4003 (may_stop): Likewise.
4004 (auto_connect_native_target): Likewise.
4005 (target_stop_and_wait): Update.
4006 (target_async_permitted): Change to bool.
4007 (target_async_permitted_1): Likewise.
4008 (may_write_registers_1): Likewise.
4009 (may_write_memory_1): Likewise.
4010 (may_insert_breakpoints_1): Likewise.
4011 (may_insert_tracepoints_1): Likewise.
4012 (may_insert_fast_tracepoints_1): Likewise.
4013 (may_stop_1): Likewise.
4014 * target.h (target_async_permitted): Likewise.
4015 (may_write_registers): Likewise.
4016 (may_write_memory): Likewise.
4017 (may_insert_breakpoints): Likewise.
4018 (may_insert_tracepoints): Likewise.
4019 (may_insert_fast_tracepoints): Likewise.
4020 (may_stop): Likewise.
4021 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4022 (make_thread_apply_all_options_def_group): Change argument from int*
4023 to bool*.
4024 (thread_apply_all_command): Update.
4025 (print_thread_events): Change to bool.
4026 * top.c (confirm): Likewise.
4027 (command_editing_p): Likewise.
4028 (history_expansion_p): Likewise.
4029 (write_history_p): Likewise.
4030 (info_verbose): Likewise.
4031 * top.h (confirm): Likewise.
4032 (history_expansion_p): Likewise.
4033 * tracepoint.c (disconnected_tracing): Likewise.
4034 (circular_trace_buffer): Likewise.
4035 * typeprint.c (print_methods): Likewise.
4036 (print_typedefs): Likewise.
4037 * utils.c (debug_timestamp): Likewise.
4038 (sevenbit_strings): Likewise.
4039 (pagination_enabled): Likewise.
4040 * utils.h (sevenbit_strings): Likewise.
4041 (pagination_enabled): Likewise.
4042 * valops.c (overload_resolution): Likewise.
4043 * valprint.h (struct value_print_options) <prettyformat_arrays,
4044 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4045 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4046 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4047 Likewise.
4048 * windows-nat.c (new_console): Likewise.
4049 (cygwin_exceptions): Likewise.
4050 (new_group): Likewise.
4051 (debug_exec): Likewise.
4052 (debug_events): Likewise.
4053 (debug_memory): Likewise.
4054 (debug_exceptions): Likewise.
4055 (useshell): Likewise.
4056 * windows-tdep.c (maint_display_all_tib): Likewise.
4057 * xml-support.c (debug_xml): Likewise.
4058
f1b620e9
MG
40592019-09-17 Mike Gulick <mgulick@mathworks.com>
4060
4061 * source.c (prepare_path_for_appending): New function.
4062 (openp): Make use of new function.
4063 (find_and_open_source): Search for the compilation directory and
4064 source file as a relative path beneath the directory search path.
4065
67f3ed6a
AB
40662019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * source-cache.c (source_cache::get_line_charpos): Catch
4069 exceptions and return false, this matches the behaviour documented
4070 in the header file.
4071
74332189
JB
40722019-09-17 Joel Brobecker <brobecker@adacore.com>
4073
4074 * ada-tasks.c (info_task): Remove quoting of the task's name.
4075
f2f24aa9
CB
40762019-09-16 Christian Biesinger <cbiesinger@google.com>
4077
4078 * symfile.c (auto_solib_add): Replace comment with a reference
4079 to the header file.
4080
6a062a93
CB
40812019-09-14 Christian Biesinger <cbiesinger@google.com>
4082
4083 * NEWS: Mention that gdb can now be compiled with Python 3
4084 on Windows.
4085
ec6c8338
AB
40862019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * maint.c (maint_print_section_data::maint_print_section_data):
4089 Force use of 'float log10 (float)' by casting the argument to
4090 float.
4091
aa17805f
AB
40922019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * maint.c: Add 'cmath' include.
4095 (struct maint_print_section_data): New structure.
4096 (print_section_index): New function.
4097 (print_bfd_section_info): Add header comment, small whitespace
4098 cleanup, and update to call new print_section_index function.
4099 (print_objfile_section_info): Likewise.
4100 (maint_obj_section_from_bfd_section): New function.
4101 (print_bfd_section_info_maybe_relocated): New function.
4102 (maintenance_info_sections): Add header comment, always use
4103 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4104
3dd9bb46
AB
41052019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4108 inner scope, add check that the objfile has psymtabs before
4109 checking psymtabs_addrmap.
4110 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4111
4993045d
PW
41122019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4113
4114 * NEWS: Announce that Ada task names are now shown at more places,
4115 and between quotes (except in info task output).
4116 * gdb/ada-tasks.c (task_to_str): New function.
4117 (display_current_task_id): Call task_to_str.
4118 (task_command_1): Likewise.
4119 (print_ada_task_info): In non-mi mode, Properly align headers and data
4120 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4121
7a289707
RO
41222019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4123
4124 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4125 prstatus.pr_lwp.pr_info instead of making it up.
4126
f2aec7f6
CB
41272019-09-11 Christian Biesinger <cbiesinger@google.com>
4128
4129 * auto-load.c (auto_load_expand_dir_vars): Update.
4130 * defs.h (gdb_datadir): Change to std::string.
4131 (python_libdir): Likewise.
4132 (relocate_gdb_directory): Change return type to std::string.
4133 * guile/guile.c (gdbscm_data_directory): Update.
4134 (initialize_scheme_side): Update.
4135 * jit.c (jit_reader_dir): Change to std::string.
4136 (jit_reader_load_command): Update.
4137 * main.c (gdb_datadir): Change to std::string.
4138 (python_libdir): Likewise.
4139 (set_gdb_data_directory): Update.
4140 (relocate_path): Change to return std::string.
4141 (relocate_gdb_directory): Change to return std::string.
4142 (relocate_gdbinit_path_maybe_in_datadir): Update.
4143 (captured_main_1): Update.
4144 * python/python.c (do_start_initialization): Update.
4145 * top.c (show_gdb_datadir): Update.
4146 * xml-syscall.c (xml_init_syscalls_info): Update.
4147 (init_syscalls_info): Update.
4148
9224a013
CB
41492019-09-11 Christian Biesinger <cbiesinger@google.com>
4150
4151 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4152 out of get_init_files.
4153 (get_init_files): Update.
4154
f48cd836
CB
41552019-09-11 Christian Biesinger <cbiesinger@google.com>
4156
4157 * main.c (get_init_files): Change to use std::string.
4158 (captured_main_1): Update.
4159 (print_gdb_help): Update.
4160
9cab7ecd
AT
41612019-09-11 Ali Tamur <tamur@google.com>
4162
4163 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4164 implementation.
4165
67547d89
CB
41662019-09-11 Christian Biesinger <cbiesinger@google.com>
4167
4168 * dbxread.c (read_dbx_symtab): Update.
4169 * dwarf2read.c (load_partial_dies): Update.
4170 * mdebugread.c (parse_partial_symbols): Update.
4171 (handle_psymbol_enumerators): Update.
4172 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4173 * psymtab.c (add_psymbol_to_bcache): Likewise.
4174 (add_psymbol_to_list): Likewise.
4175 * symtab.c (symbol_set_names): Likewise.
4176 * symtab.h (symbol_set_names): Likewise.
4177 * xcoffread.c (scan_xcoff_symtab): Update.
4178
64b2d4a0
TT
41792019-09-11 Tom Tromey <tom@tromey.com>
4180
4181 * symfile-mem.c (symbol_file_add_from_memory): Use
4182 bfd_set_filename.
4183 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4184 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4185
3b00ef10
TT
41862019-09-10 Tom Tromey <tromey@adacore.com>
4187
4188 * dwarf-index-write.c (write_psymbols): Extend error message.
4189 (debug_names::insert): Add Ada code.
4190 (debug_names::write_psymbols): Remove Ada check.
4191 (debug_names) <m_string_obstack>: New member.
4192 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4193 (gdb_index_symbol_name_matcher::matches): Remove.
4194 (mapped_index_base::find_name_components_bounds): Add "lang"
4195 parameter.
4196 (mapped_index_base::build_name_components): Also split names
4197 according to Ada syntax.
4198 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4199 type of "match_callback".
4200 (check_match, check_find_bounds_finds)
4201 (dw2_expand_symtabs_matching): Update.
4202 (dw2_debug_names_iterator): Add new constructor.
4203 (dw2_debug_names_map_matching_symbols): New function.
4204 (dw2_debug_names_expand_symtabs_matching): Update.
4205 (dwarf2_debug_names_functions): Use
4206 dw2_debug_names_map_matching_symbols.
4207
aa391654
TT
42082019-09-10 Tom Tromey <tromey@adacore.com>
4209
4210 * dwarf2read.c (dw2_get_file_names_reader): Add the
4211 CU's file name to the results.
4212
b054970d
TT
42132019-09-10 Tom Tromey <tromey@adacore.com>
4214
4215 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4216 map_matching_symbols. Update.
4217 * dwarf2read.c (dw2_map_matching_symbols): Update.
4218 * psymtab.c (match_partial_symbol): Change type; update.
4219 (psym_map_matching_symbols): Likewise.
4220 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4221 type; update.
4222 * symfile.h (struct quick_symbol_functions)
4223 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4224 Remove "match".
4225
6a3dbf1b
TT
42262019-09-10 Tom Tromey <tromey@adacore.com>
4227
4228 * psymtab.c (map_block): Remove.
4229 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4230 * symtab.c (iterate_over_symbols_terminated): New function.
4231 * symtab.c (iterate_over_symbols_terminated): Declare.
4232
6969f124
TT
42332019-09-10 Tom Tromey <tromey@adacore.com>
4234
4235 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4236 * language.h (struct language_defn) <la_iterate_over_symbols>:
4237 Return bool.
4238 * symtab.c (iterate_over_symbols): Return bool.
4239 * symtab.h (iterate_over_symbols): Return bool.
4240
199b4314
TT
42412019-09-10 Tom Tromey <tromey@adacore.com>
4242
4243 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4244 (add_nonlocal_symbols): Update.
4245 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4246 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4247 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4248 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4249 Change type of "callback". Remove "data".
4250
a084a2a6
AT
4251
42522019-09-09 Ali Tamur <tamur@google.com>
4253
4254 * dwarf2read.c (comp_unit_head): Update comment.
4255 (dwarf2_dwo_name): New function declaration.
4256 (dwarf_unit_type_name): New function declaration.
4257 (read_comp_unit_head): Add support for new compilation units,
4258 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4259 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4260 (currently named as "signature") in their header. Also clarify error
4261 messages.
4262 (lookup_dwo_id): New function. Returns the dwo id of the given
4263 compile unit.
4264 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4265 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4266 functions.
4267 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4268 (dwarf2_dwo_name): Get the dwo name if present.
4269 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4270 purposes.
4271
25a2915e
TT
42722019-09-09 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4275
e4df0874
PW
42762019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4277
4278 * python/python.c (do_start_initialization): Make progname_copy static,
4279 to avoid a leak report.
4280
8634b462
TT
42812019-09-08 Tom Tromey <tom@tromey.com>
4282
4283 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4284
c7f839cb
SM
42852019-09-07 Simon Marchi <simon.marchi@efficios.com>
4286
4287 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4288 Change type to gdb::optional<block_enum>.
4289 (dw2_symtab_iter_init): Change block_index parameter type
4290 to gdb::optional<block_enum>.
4291 (dw2_lookup_symbol): Change block_index parameter
4292 type to block_enum.c
4293 (dw2_debug_names_lookup_symbol): Likewise.
4294 * psymtab.c (psym_lookup_symbol): Likewise.
4295 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4296 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4297 Likewise.
4298
ead0e69a
CB
42992019-09-06 Christian Biesinger <cbiesinger@google.com>
4300
4301 * defs.h (relocate_gdb_directory): Change int to bool in
4302 signature and rename flag to relocatable.
4303 * main.c (relocate_path): Likewise.
4304 (relocate_gdb_directory): Likewise.
4305
b16c44de
AM
43062019-09-06 Alan Modra <amodra@gmail.com>
4307
4308 * coffread.c (coff_symfile_read): Constify filename variable.
4309 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4310 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4311 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4312 * solib.c (reload_shared_libraries_1): Likewise.
4313 * symfile.c (reread_symbols): Likewise.
4314 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4315 * solib-darwin.c (darwin_bfd_open): Likewise.
4316 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4317
06ff036e
AB
43182019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4319
4320 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4321 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4322
4e962e74
TT
43232019-09-03 Tom Tromey <tromey@adacore.com>
4324
4325 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4326 types.
4327 (has_negatives): Unbias a range type bound.
4328 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4329 * gdbtypes.c (operator==): Handle new field.
4330 (create_range_type): Add "bias" parameter.
4331 (create_static_range_type, resolve_dynamic_range): Update.
4332 * gdbtypes.h (struct range_bounds) <bias>: New member.
4333 (create_range_type): Add bias parameter.
4334 * printcmd.c (print_scalar_formatted): Unbias range types.
4335 * value.c (unpack_long): Unbias range types.
4336 (pack_long): Bias range types.
4337
d90b8f26
AH
43382019-09-02 Alan Hayward <alan.hayward@arm.com>
4339
4340 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4341 probe arguments.
4342
fe01123e
AH
43432019-09-02 Alan Hayward <alan.hayward@arm.com>
4344
4345 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4346 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4347 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4348 (compile_probe_arg): Likewise.
4349 * probe.h (get_argument_count): Likewise.
4350 * solib-svr4.c (solib_event_probe_action): Likewise.
4351 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4352
e661ef01
AH
43532019-09-02 Alan Hayward <alan.hayward@arm.com>
4354
4355 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4356 code to here...
4357 (svr4_create_solib_event_breakpoints): ...from here.
4358
47a536d9
SDJ
43592019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4360
4361 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4362 suffix from warning message.
4363
d6a00eba
TT
43642019-08-30 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-winsource.h (struct tui_source_window_base)
4367 <refresh_all>: Don't declare.
4368 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4369 Remove.
4370 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4371 tui_show_locator_content.
4372 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4373 declare.
4374 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4375 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4376 declare.
4377
55b2657b
TT
43782019-08-30 Tom Tromey <tom@tromey.com>
4379
4380 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4381
12a8555a
TT
43822019-08-30 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4385 Remove unnecessary forward declarations.
4386
900ac242
TT
43872019-08-30 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4390 rerender.
4391 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4392 tui_show_locator_content.
4393
99ab33fb
TT
43942019-08-30 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4397 (tui_locator_window::rerender): Rewrite using body of previous
4398 tui_show_locator_content.
4399
e594a5d1
TT
44002019-08-30 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4403 set_locator_fullname>: New methods.
4404 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4405 Rename from tui_set_locator_fullname.
4406 (tui_locator_window::set_locator_info): Rename from
4407 tui_set_locator_info. Return bool.
4408 (tui_update_locator_fullname, tui_show_frame_info): Update.
4409
715bb467
TT
44102019-08-30 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4413
772f3f03
TT
44142019-08-30 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4417 call touchwin.
4418
108e13ab
TT
44192019-08-30 Tom Tromey <tom@tromey.com>
4420
4421 * tui/tui-wingeneral.c (box_win): Assume win_info and
4422 win_info->handle cannot be NULL.
4423
cdaa6eb4
TT
44242019-08-30 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4427 refresh_window>: Declare.
4428 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4429 resize.
4430 (tui_data_item_window::rerender): Rename from
4431 tui_display_register.
4432 (tui_data_item_window::refresh_window): New method.
4433 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4434 no-op.
4435
89df7f90
TT
44362019-08-30 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4439 regs_column_count, current_group>: Move later. Now private.
4440 <get_current_group>: New method.
4441 * tui/tui-regs.c (tui_reg_command): Update.
4442 * tui/tui-layout.c (tui_set_layout): Update.
4443
1bf2866a
TT
44442019-08-30 Tom Tromey <tom@tromey.com>
4445
4446 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4447 (tui_data_window::rerender): Don't call
4448 check_and_display_highlight_if_needed.
4449 (tui_data_window::refresh_all): Remove call to
4450 erase_data_content.
4451
0670413d
TT
44522019-08-30 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4455 (tui_data_window::display_registers_from)
4456 (tui_data_window::display_reg_element_at_line)
4457 (tui_data_window::display_registers_from_line): Remove checks of
4458 "empty".
4459
18bb55c7
TT
44602019-08-30 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4463 Don't declare.
4464 * tui/tui-regs.c (tui_data_window::show_registers): Call
4465 rerender.
4466 (tui_data_window::rerender): Rename from display_all_data.
4467 (tui_data_window::rerender): Remove old implementation.
4468
1f6d2f10
TT
44692019-08-30 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4472 text.
4473 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4474
16d01f9c
BW
44752019-08-29 Bernhard Wodok <barto@gmx.net>
4476 Sergio Durigan Junior <sergiodj@redhat.com>
4477
4478 PR win32/24284
4479 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4480
d8f27c60
AB
44812019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4484 when searching for types.
4485
1f20c35e
AB
44862019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4487
4488 * f-lang.c (f_language_defn): Use f_print_typedef.
4489 * f-lang.h (f_print_typedef): Declare.
4490 * f-typeprint.c (f_print_typedef): Define.
4491
550105b7
CB
44922019-08-27 Christian Biesinger <cbiesinger@google.com>
4493
4494 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4495
4acfdd20
AB
44962019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * cli/cli-utils.c (info_print_options_defs): Delete.
4499 (make_info_print_options_def_group): Delete.
4500 (extract_info_print_options): Delete.
4501 (info_print_command_completer): Delete.
4502 (info_print_args_help): Add extra parameter, and optionally
4503 include text about -n flag.
4504 * cli/cli-utils.h (struct info_print_options): Delete.
4505 (extract_info_print_options): Delete declaration.
4506 (info_print_command_completer): Delete declaration.
4507 (info_print_args_help): Add extra parameter, extend header
4508 comment.
4509 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4510 search_symbols.
4511 * stack.c (struct info_print_options): New type.
4512 (info_print_options_defs): New file scoped variable.
4513 (make_info_print_options_def_group): New static function.
4514 (info_print_command_completer): New static function.
4515 (info_locals_command): Update to use new local functions.
4516 (info_args_command): Likewise.
4517 (_initialize_stack): Add extra parameter to calls to
4518 info_print_args_help.
4519 * symtab.c (search_symbols): Add extra parameter, use this to
4520 possibly excluse non-debug symbols.
4521 (symtab_symbol_info): Add extra parameter, which is passed on to
4522 search_symbols.
4523 (struct info_print_options): New type.
4524 (info_print_options_defs): New file scoped variable.
4525 (make_info_print_options_def_group): New static function.
4526 (info_print_command_completer): New static function.
4527 (info_variables_command): Update to use local functions, and pass
4528 extra parameter through to symtab_symbol_info.
4529 (info_functions_command): Likewise.
4530 (info_types_command): Pass additional argument through to
4531 symtab_symbol_info.
4532 (rbreak_command): Pass extra argument to search_symbols.
4533 (_initialize_symtab): Add extra arguments for calls to
4534 info_print_args_help, and update help text for 'info variables',
4535 'whereis', and 'info functions' commands.
4536 * symtab.h (search_symbols): Add extra argument to declaration.
4537 * NEWS: Mention new flags.
4538
9aa55206
CB
45392019-08-26 Christian Biesinger <cbiesinger@google.com>
4540
4541 * symtab.c (lookup_static_symbol): Call the new function (and move
4542 it down to be next to lookup_global_symbol).
4543 (struct global_sym_lookup_data): Add block_enum member and rename to...
4544 (struct global_or_static_sym_lookup_data): ...this.
4545 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4546 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4547 (lookup_symbol_global_or_static_iterator_cb): ...this.
4548 (lookup_global_or_static_symbol): New function.
4549 (lookup_global_symbol): Call new function.
4550
5c31b358
TV
45512019-08-26 Tom de Vries <tdevries@suse.de>
4552
4553 PR c++/24852
4554 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4555 when pc_probe.prob == NULL.
4556
23c13d42
SM
45572019-08-25 Simon Marchi <simon.marchi@efficios.com>
4558
4559 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4560 variable symbol_linkage to symbol_linkage_.
4561
beadd3e8
SM
45622019-08-25 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4565 represent whether the symbol is static, dynamic, or we don't
4566 know.
4567
e3ec872f
YS
45682019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4569
4570 * gdb/rx-tdep.c (rx_register_names): New.
4571 (rx_register_name): Delete.
4572 (rx_psw_type): Delete.
4573 (rx_fpsw_type): Delete.
4574 (rx_register_type): Delete.
4575 (rx_gdbarch_init): Convert target-descriptions.
4576 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4577 * gdb/features/Makefile: Add rx.xml.
4578 * gdb/features/rx.xml: New.
4579 * gdb/features/rx.c: Generated.
4580 * gdb/NEWS: Mention target description support.
4581
d0509ba4
CB
45822019-08-22 Christian Biesinger <cbiesinger@google.com>
4583
4584 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4585 *slot_ptr.
4586
2d41fa11
SDJ
45872019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4588
4589 * configure.ac: Don't check for 'dlfcn.h' (moved to
4590 gdbsupport/common.m4).
4591 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4592 'gdbsupport/'.
4593 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4594 * compile/compile-c-support.c: Include
4595 'gdbsupport/gdb-dlfcn.h'.
4596 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4597 * gdb-dlfcn.c: Move to...
4598 * gdbsupport/gdb-dlfcn.c: ... here.
4599 * gdb-dlfcn.h: Move to...
4600 * gdbsupport/gdb-dlfcn.h: ... here.
4601
de8af808
SL
46022019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4603
4604 * nios2-tdep.c (struct reg_value): Improve comments. Make
4605 the offset field signed.
4606
27204489
CB
46072019-08-22 Christian Biesinger <cbiesinger@google.com>
4608
4609 * python/lib/gdb/__init__.py (_execute_file): New function.
4610 * python/python.c (python_run_simple_file): Call gdb._execute_file
4611 on Windows.
4612
43771869
AB
46132019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4616 all uses as this was never set to anything but a zero value.
4617
26c957f1
PA
46182019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4619
4620 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4621
c07aae6e
CB
46222019-08-21 Christian Biesinger <cbiesinger@google.com>
4623
4624 * tui/tui-data.h (tui_gen_win_info): Add an =default
4625 move constructor, required by some GCC versions.
4626
3960cb7a
JF
46272019-08-21 Jinke Fan <fanjinke51@yeah.net>
4628
4629 * go32-nat.c (go32_sysinfo): Add hygon_p.
4630
04c72a68
TT
46312019-08-20 Tom Tromey <tom@tromey.com>
4632
4633 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4634 line_from_reg_element_no, first_reg_element_no_inline,
4635 display_all_data, delete_data_content_windows,
4636 erase_data_content>: Now private.
4637
072272ce
TT
46382019-08-20 Tom Tromey <tom@tromey.com>
4639
4640 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4641 (tui_unhighlight_win, tui_highlight_win)
4642 (tui_win_info::make_window): Update.
4643 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4644
973961bd
TT
46452019-08-20 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4648 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4649 (MAX_PID_WIDTH): Move to tui-stack.c.
4650 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4651 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4652 (MAX_PID_WIDTH): Move from tui-data.h.
4653
ab0e1f1a
TT
46542019-08-20 Tom Tromey <tom@tromey.com>
4655
4656 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4657 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4658 (box_win): Update.
4659 (tui_gen_win_info::make_window): Rename from tui_make_window.
4660 (tui_win_info::make_window): New method.
4661 (tui_gen_win_info::make_visible): Update.
4662 * tui/tui-source.c (tui_source_window::set_contents): Update.
4663 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4664 (tui_data_window::display_registers_from): Update.
4665 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4666 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4667 Declare.
4668 <can_box>: Remove.
4669 <title>: Remove.
4670 (struct tui_win_info) <make_window>: Declare.
4671 <can_box>: Now virtual.
4672 <title>: New member.
4673 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4674 * tui/tui-command.c (tui_cmd_window::resize): Update.
4675
100c2bf3
TT
46762019-08-20 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4679 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4680 (tui_data_window::check_register_values): Update.
4681
fa4dc567
TT
46822019-08-20 Tom Tromey <tom@tromey.com>
4683
4684 * tui/tui-regs.h (struct tui_data_window): Use
4685 DISABLE_COPY_AND_ASSIGN.
4686 <regs_content>: Change type, removing unique_ptr.
4687 <tui_data_window>: Add move constructor.
4688 * tui/tui-regs.c (tui_data_window::show_registers)
4689 (tui_data_window::show_register_group)
4690 (tui_data_window::display_registers_from)
4691 (tui_data_window::display_registers_from)
4692 (tui_data_window::first_data_item_displayed)
4693 (tui_data_window::delete_data_content_windows)
4694 (tui_data_window::rerender, tui_data_window::refresh_window)
4695 (tui_data_window::check_register_values): Update.
4696
ca02d7c8
TT
46972019-08-20 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4700 show_register_group>: Declare.
4701 (tui_show_register_group): Don't declare.
4702 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4703 tui_show_registers.
4704 (tui_data_window::show_register_group): Rename from
4705 tui_show_register_group.
4706 (tui_data_window::check_register_values, tui_reg_command):
4707 Update.
4708 * tui/tui-layout.c (tui_set_layout): Update.
4709
63356bfd
TT
47102019-08-20 Tom Tromey <tom@tromey.com>
4711
4712 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4713 Declare.
4714 (tui_check_register_values): Don't declare.
4715 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4716 from tui_check_register_values.
4717 * tui/tui-hooks.c (tui_register_changed): Update.
4718
42cc14a7
TT
47192019-08-20 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-regs.c (tui_reg_layout): Move later.
4722 (tui_show_registers): Don't enable TUI mode or change layout.
4723
b9ad3686
TT
47242019-08-20 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-regs.h (struct tui_data_item_window)
4727 <~tui_data_item_window>: Remove.
4728 <content>: Now a unique_xmalloc_ptr.
4729 * tui/tui-regs.c (tui_register_format): Return a
4730 unique_xmalloc_ptr.
4731 (tui_get_register): Update.
4732 (~tui_data_item_window): Remove.
4733 (tui_data_window::display_registers_from, tui_display_register):
4734 Update.
4735 * tui/tui-io.h (tui_expand_tabs): Update.
4736 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4737 Remove "col" parameter.
4738
8e114aab
TT
47392019-08-20 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4742 field.
4743 * tui/tui-regs.c (~tui_data_item_window): Update.
4744
1a4f81dd
TT
47452019-08-20 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4748 earlier.
4749
0f8d8876
TT
47502019-08-20 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4753
605dc2c2
TT
47542019-08-20 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-source.h (struct tui_source_window): Update.
4757 * tui/tui-regs.c (tui_show_registers): Update.
4758 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4759 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4760 (NO_REGS_STRING): Remove defines.
4761
aedbe3bb
CM
47622019-08-20 Conrad Meyer <cem@FreeBSD.org>
4763
4764 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4765 unnecessary thread walk if remote doesn't support the packet.
4766
7ce8f214
TT
47672019-08-19 Tom Tromey <tromey@adacore.com>
4768
4769 * python/py-value.c (value_has_field): Fix indentation.
4770
f21c2bd7
TT
47712019-08-19 Tom Tromey <tromey@adacore.com>
4772
4773 * printcmd.c (do_one_display, info_display_command): Update.
4774 * block.h (contained_in): Return bool. Add allow_nested
4775 parameter.
4776 * block.c (contained_in): Return bool. Add allow_nested
4777 parameter.
4778
d806ea2d
TT
47792019-08-19 Tom Tromey <tom@tromey.com>
4780
4781 * configure: Rebuild.
4782 * configure.ac: Disallow the combination of -static-libstdc++ and
4783 source highlight.
4784 * source-cache.c (get_language_name): Handle rust.
4785 (source_cache::get_source_lines): Ignore highlighting exceptions.
4786
398fdd60
TT
47872019-08-16 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4790 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4791 (struct tui_source_window_base) <make_visible, refresh_window,
4792 resize>: Remove methods.
4793 <execution_info>: Remove field.
4794 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4795 (tui_show_source_line, tui_source_window_base)
4796 (~tui_source_window_base): Update.
4797 (tui_source_window_base::resize)
4798 (tui_source_window_base::make_visible)
4799 (tui_source_window_base::refresh_window): Remove.
4800 (tui_source_window_base::update_exec_info): Update.
4801 * tui/tui-source.c (tui_source_window::set_contents): Update.
4802 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4803
e699d331
TT
48042019-08-16 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4807 deprecated_query_hook.
4808
bb01dbfc
TT
48092019-08-16 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4812 (tui_update_source_windows_with_line): Update.
4813 * tui/tui-source.h (struct tui_source_window)
4814 <show_symtab_source>: Declare.
4815 (tui_show_symtab_source): Don't declare.
4816 * tui/tui-source.c (tui_show_symtab_source): Rename from
4817 tui_show_symtab_source.
4818
81c82c4b
TT
48192019-08-16 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-winsource.h (struct tui_source_window_base)
4822 <set_contents>: Declare.
4823 * tui/tui-winsource.c
4824 (tui_source_window_base::update_source_window_as_is): Update.
4825 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4826 Declare.
4827 (tui_set_source_content): Don't declare.
4828 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4829 tui_set_source_content.
4830 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4831 Declare.
4832 (tui_set_disassem_content): Don't declare.
4833 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4834 tui_set_disassem_content.
4835
2ddaf614
TT
48362019-08-16 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-winsource.h (struct tui_source_window_base)
4839 <update_breakpoint_info>: Declare.
4840 (tui_update_breakpoint_info): Don't declare.
4841 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4842 (tui_update_all_breakpoint_info): Update.
4843 (tui_source_window_base::update_breakpoint_info): Rename from
4844 tui_update_breakpoint_info.
4845 (tui_source_window_base::update_exec_info): Update.
4846
017f9828
TT
48472019-08-16 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-winsource.h (struct tui_source_window_base)
4850 <update_source_window>: Declare.
4851 (tui_update_source_window): Don't declare.
4852 * tui/tui-winsource.c
4853 (tui_source_window_base::update_source_window): Rename from
4854 tui_update_source_window.
4855 (tui_source_window_base::rerender): Update.
4856 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4857 * tui/tui-disasm.c (tui_show_disassem)
4858 (tui_show_disassem_and_update_source)
4859 (tui_disasm_window::maybe_update): Update.
4860
ed8358e9
TT
48612019-08-16 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-winsource.h (struct tui_source_window_base)
4864 <update_source_window_as_is>: Declare.
4865 (tui_update_source_window_as_is): Don't declare.
4866 * tui/tui-winsource.c (tui_update_source_window): Update
4867 (tui_source_window_base::update_source_window_as_is): Rename from
4868 tui_update_source_window_as_is.
4869 (tui_source_window_base::refill): Update.
4870 * tui/tui-source.c (tui_show_symtab_source): Update.
4871 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4872 Update.
4873
20149b6b
TT
48742019-08-16 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-winsource.h (tui_update_source_window)
4877 (tui_update_source_window_as_is): Remove "noerror" parameter.
4878 * tui/tui-winsource.c (tui_update_source_window)
4879 (tui_update_source_window_as_is): Remove "noerror" parameter.
4880 (tui_update_source_windows_with_addr)
4881 (tui_update_source_windows_with_line)
4882 (tui_source_window_base::rerender)
4883 (tui_source_window_base::refill): Update.
4884 * tui/tui-source.h (tui_set_source_content)
4885 (tui_show_symtab_source): Remove "noerror" parameter.
4886 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4887 parameter.
4888 (tui_show_symtab_source): Likewise.
4889 (tui_source_window::maybe_update): Update.
4890 * tui/tui-disasm.c (tui_show_disassem)
4891 (tui_show_disassem_and_update_source)
4892 (tui_disasm_window::do_scroll_vertical)
4893 (tui_disasm_window::maybe_update): Update.
4894
2d83e710
TT
48952019-08-16 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui.c (tui_is_window_visible): Update.
4898 * tui/tui-wingeneral.c (tui_make_window)
4899 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4900 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4901 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4902 (tui_set_win_height_command, parse_scrolling_args): Update.
4903 * tui/tui-source.c (tui_source_window::style_changed): Update.
4904 * tui/tui-regs.c (tui_show_registers)
4905 (tui_data_window::first_data_item_displayed)
4906 (tui_data_window::delete_data_content_windows)
4907 (tui_check_register_values, tui_reg_command): Update.
4908 * tui/tui-disasm.c (tui_show_disassem): Update.
4909 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4910 method.
4911 <is_visible>: Remove field.
4912 * tui/tui-data.c (tui_next_win, tui_prev_win)
4913 (tui_delete_invisible_windows): Update.
4914
d4ab829a
TT
49152019-08-16 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-winsource.h (struct tui_source_window_base)
4918 <m_has_locator>: Remove.
4919 * tui/tui-layout.c (show_source_disasm_command, show_data)
4920 (show_source_or_disasm_and_command): Update.
4921
aa7ca1bb
AH
49222019-08-16 Alan Hayward <alan.hayward@arm.com>
4923
4924 * NEWS (Other MI changes): New subsection.
4925 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4926 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4927 * arch-utils.c (default_get_pc_address_flags): New function.
4928 * arch-utils.h (default_get_pc_address_flags): New declaration.
4929 * gdbarch.sh: Add get_pc_address_flags.
4930 * gdbarch.c: Regenerate.
4931 * gdbarch.h: Likewise.
4932 * stack.c (print_pc): New function.
4933 (print_frame_info) (print_frame): Call print_pc.
4934
6eac171f
TV
49352019-08-16 Tom de Vries <tdevries@suse.de>
4936
4937 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4938 print_objfile_section_info.
4939
3df505f6
TT
49402019-08-15 Tom Tromey <tom@tromey.com>
4941
4942 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4943 calling update_cmdwin_start_line.
4944 * tui/tui-winsource.h (struct tui_source_window_base)
4945 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4946 <rerender>: Declare.
4947 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4948 Call rerender.
4949 (tui_source_window_base::set_new_height): Remove.
4950 (tui_source_window_base::rerender): Rename from
4951 do_make_visible_with_new_height.
4952 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4953 resize method.
4954 (tui_win_info::make_invisible_and_set_new_height)
4955 (tui_win_info::make_visible_with_new_height): Remove.
4956 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4957 Declare.
4958 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4959 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4960 do_make_visible_with_new_height>: Don't declare.
4961 <rerender>: Declare.
4962 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4963 set_new_height.
4964 (tui_data_window::do_make_visible_with_new_height): Remove.
4965 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4966 call tui_show_locator_content.
4967 (tui_gen_win_info::resize): Call rerender.
4968 (show_source_or_disasm_and_command): Don't call
4969 tui_show_locator_content.
4970 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4971 method.
4972 (struct tui_win_info) <rerender>: Declare.
4973 <set_new_height, make_invisible_and_set_new_height,
4974 make_visible_with_new_height>: Don't declare.
4975 * tui/tui-data.c (tui_win_list::rerender): New method.
4976 * tui/tui-command.h (struct tui_cmd_window)
4977 <do_make_visible_with_new_height>: Don't declare.
4978 * tui/tui-command.c
4979 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4980
272560b5
TT
49812019-08-15 Tom Tromey <tromey@adacore.com>
4982
4983 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4984 * ada-lang.c (ada_enum_name): Likewise.
4985
08235187
CB
49862019-08-15 Christian Biesinger <cbiesinger@google.com>
4987
4988 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4989 leading underscore.
4990 (GdbOutputErrorFile): Likewise.
4991 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4992 accordingly.
4993 (execute_unwinders): Rename to have a leading underscore.
4994 (auto_load_packages): Likewise.
4995 (global scope): Adjust call to auto_load_packages accordingly.
4996 (GdbSetPythonDirectory): Likewise.
4997 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4998 instead of execute_unwinders.
4999
db502012
TT
50002019-08-15 Tom Tromey <tom@tromey.com>
5001
5002 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5003 (show_data): Don't change window visibility.
5004 (tui_gen_win_info::resize): Remove special case for command
5005 window. Use wresize, when available.
5006 (show_source_or_disasm_and_command): Don't change window
5007 visibility.
5008 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5009 <make_visible>: New method.
5010 * tui/tui-command.c (tui_cmd_window::resize): New method.
5011
3891b65e
TT
50122019-08-15 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5015 (struct tui_source_windows): New.
5016 * tui/tui-winsource.c (tui_display_main): Update.
5017 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5018 (new_height_ok, parse_scrolling_args): Update.
5019 * tui/tui-layout.c (show_layout, show_data): Update.
5020 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5021 (tui_add_to_source_windows): Don't declare.
5022 * tui/tui-data.c (source_windows, tui_source_windows)
5023 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5024
ee556432
TT
50252019-08-15 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5028 Rename from reset.
5029 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5030 * tui/tui-layout.c (show_source_disasm_command, show_data):
5031 Update.
5032 (tui_gen_win_info::resize): Rename.
5033 (show_source_or_disasm_and_command): Update.
5034 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5035 reset.
5036
46f438e3
TT
50372019-08-15 Tom Tromey <tom@tromey.com>
5038
5039 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5040 * tui/tui-interp.c (tui_interp::init): Don't call
5041 tui_initialize_static_data.
5042 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5043
f4ce562c
TT
50442019-08-15 Tom Tromey <tom@tromey.com>
5045
5046 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5047 examine tui_win_list.
5048
c398c3d0
TT
50492019-08-15 Tom Tromey <tom@tromey.com>
5050
5051 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5052 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5053 tui_clear_source_content.
5054 (tui_clear_source_content): Remove.
5055 (tui_source_window_base::do_erase_source_content): Hoist call to
5056 content.clear().
5057 * tui/tui-stack.c (tui_show_frame_info): Don't call
5058 tui_clear_source_content.
5059
e25d2004
TT
50602019-08-15 Tom Tromey <tom@tromey.com>
5061
5062 * tui/tui-winsource.h (struct tui_source_window_base)
5063 <do_erase_source_content>: New method.
5064 <erase_source_content>: New method.
5065 (tui_erase_source_content): Don't declare.
5066 * tui/tui-winsource.c (tui_clear_source_content): Update.
5067 (tui_source_window_base::do_erase_source_content): Rename from
5068 tui_erase_source_content.
5069 (tui_source_window_base::show_source_content): Update.
5070 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5071 * tui/tui-source.h (struct tui_source_window)
5072 <erase_source_content>: New method.
5073 * tui/tui-disasm.h (struct tui_disasm_window)
5074 <erase_source_content>: New method.
5075
002f15c2
TT
50762019-08-15 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5079 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5080 constructor.
5081 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5082 * tui/tui-source.c (tui_set_source_content): Update.
5083 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5084
c9033fe8
TT
50852019-08-15 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5088 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5089 tui-source.c.
5090 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5091 Declare.
5092 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5093 method.
5094 (tui_source_window::maybe_update): Update.
5095
088f37dd
TT
50962019-08-15 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5099 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5100 tui-disasm.c.
5101 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5102 Declare.
5103 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5104 method.
5105 (tui_disasm_window::maybe_update): Update.
5106
a54700c6
TT
51072019-08-15 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-winsource.h (struct tui_source_window_base)
5110 <maybe_update>: Declare.
5111 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5112 method.
5113 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5114 Declare.
5115 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5116 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5117 Declare.
5118 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5119
e2a678a5
TT
51202019-08-15 Tom Tromey <tom@tromey.com>
5121
5122 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5123
f2dda477
TT
51242019-08-15 Tom Tromey <tom@tromey.com>
5125
5126 * tui/tui-wingeneral.c: Include tui-stack.h.
5127 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5128 (struct tui_locator_window): Move from tui-data.h.
5129 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5130 (tui_initialize_static_data): Move from tui-data.c.
5131 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5132 (struct tui_locator_window): Move to tui-stack.c.
5133 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5134 (tui_initialize_static_data): Move to tui-stack.c.
5135
ed4a1084
TT
51362019-08-15 Tom Tromey <tom@tromey.com>
5137
5138 * tui/tui-layout.c (show_source_disasm_command)
5139 (show_source_or_disasm_and_command): Use make_visible method, not
5140 tui_make_window.
5141 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5142 Remove.
5143
65962b20
TT
51442019-08-15 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-wingeneral.h (tui_make_window): Update.
5147 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5148 parameter.
5149 (tui_gen_win_info::make_visible): Update.
5150 * tui/tui-regs.c (tui_data_window::display_registers_from):
5151 Update.
5152 * tui/tui-layout.c (show_source_disasm_command)
5153 (show_source_or_disasm_and_command): Update.
5154 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5155 (enum tui_box): Remove.
5156 (struct tui_win_info) <can_box>: New method.
5157 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5158 method.
5159
2208ee91
TV
51602019-08-15 Tom de Vries <tdevries@suse.de>
5161
5162 * linux-nat-trad.c: Include gdbarch.h.
5163
75faf5c4
AH
51642019-08-14 Alan Hayward <alan.hayward@arm.com>
5165
5166 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5167 register sizes.
5168
b1c896b3
TT
51692019-08-14 Tom Tromey <tromey@adacore.com>
5170
5171 * darwin-nat.c: Include gdbarch.h.
5172 * darwin-nat-info.c: Include gdbarch.h.
5173
6405cd73
TT
51742019-08-13 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5177 Remove.
5178 * tui/tui-data.c (tui_initialize_static_data): Update.
5179
5216580d
TT
51802019-08-13 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.h (struct tui_exec_info_window)
5183 <~tui_exec_info_window, maybe_allocate_content, get_content,
5184 m_content>: Remove.
5185 (struct tui_source_window_base) <set_exec_info_content,
5186 show_exec_info_content>: Don't declare.
5187 * tui/tui-winsource.c
5188 (tui_exec_info_window::maybe_allocate_content): Remove.
5189 (tui_source_window_base::update_exec_info): Rename from
5190 set_exec_info_content.
5191 (tui_source_window_base::show_exec_info_content)
5192 (tui_source_window_base::update_exec_info): Remove.
5193
93858ad3
TT
51942019-08-13 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5197 declare.
5198 * tui/tui-winsource.c (tui_update_source_window_as_is)
5199 (tui_update_source_windows_with_addr, tui_erase_source_content):
5200 Update.
5201 (tui_clear_exec_info_content): Remove.
5202
e321e7ce
TT
52032019-08-13 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5206 declare.
5207 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5208 call tui_erase_exec_info_content.
5209 (tui_clear_exec_info_content): Rename from
5210 tui_erase_exec_info_content.
5211 (tui_clear_exec_info_content): Delete.
5212
8270ac62
TT
52132019-08-13 Tom Tromey <tom@tromey.com>
5214
5215 * tui/tui-winsource.h (struct tui_source_window_base)
5216 <show_exec_info_content>: Declare.
5217 (tui_show_exec_info_content): Don't declare.
5218 * tui/tui-winsource.c
5219 (tui_source_window_base::show_exec_info_content): Rename from
5220 tui_show_exec_info_content.
5221 (tui_source_window_base::update_exec_info): Update.
5222
7b56485d
TT
52232019-08-13 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5226 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5227 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5228 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5229 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5230 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5231 ... here.
5232
7ba913dc
TT
52332019-08-13 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-winsource.h (struct tui_source_window_base)
5236 <update_exec_info>: Declare.
5237 (tui_update_exec_info): Don't declare.
5238 * tui/tui-winsource.c (tui_update_source_window_as_is)
5239 (tui_source_window_base::refresh_all)
5240 (tui_update_all_breakpoint_info): Update.
5241 (tui_source_window_base::update_exec_info): Rename from
5242 tui_update_exec_info.
5243 * tui/tui-stack.c (tui_show_frame_info): Update.
5244
37a4a131
TT
52452019-08-13 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-winsource.h (struct tui_source_window_base)
5248 <set_exec_info_content>: Declare.
5249 (tui_set_exec_info_content): Don't declare.
5250 * tui/tui-winsource.c
5251 (tui_source_window_base::set_exec_info_content): Rename from
5252 tui_set_exec_info_content.
5253 (tui_update_exec_info): Update.
5254
0bd27e07
TT
52552019-08-13 Tom Tromey <tom@tromey.com>
5256
5257 * tui/tui-winsource.h (struct tui_source_window_base)
5258 <show_source_content>: Declare.
5259 (tui_show_source_content): Don't declare.
5260 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5261 (tui_source_window_base::show_source_content): Rename from
5262 tui_show_source_content.
5263 (tui_source_window_base::refresh_all): Update.
5264 * tui/tui-layout.c (show_source_disasm_command)
5265 (show_source_or_disasm_and_command): Update.
5266
b4ef5aeb
TT
52672019-08-13 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-winsource.c (tui_erase_source_content)
5270 (tui_show_source_content, tui_source_window_base::refresh_all):
5271 Update.
5272 * tui/tui-wingeneral.h
5273 (tui_check_and_display_highlight_if_needed): Don't declare.
5274 * tui/tui-wingeneral.c
5275 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5276 check_and_display_highlight_if_needed.
5277 * tui/tui-win.c (tui_rehighlight_all)
5278 (tui_win_info::make_visible_with_new_height): Update.
5279 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5280 (tui_data_window::erase_data_content)
5281 (tui_data_window::display_all_data): Update.
5282 * tui/tui-data.h (struct tui_win_info)
5283 <check_and_display_highlight_if_needed>: Declare.
5284
fede5273
TT
52852019-08-13 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui-win.c (tui_resize_all): Call
5288 tui_delete_invisible_windows.
5289 * tui/tui-layout.c (show_layout): Call
5290 tui_delete_invisible_windows.
5291 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5292 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5293
22c3f490
TT
52942019-08-13 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5297 tui_add_win_to_layout.
5298
16cb7910
TT
52992019-08-13 Tom Tromey <tom@tromey.com>
5300
5301 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5302 * tui/tui-layout.c (tui_default_win_height): Now static.
5303
cc0c3ffb
TT
53042019-08-13 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5307 single switch.
5308 (show_source_disasm_command, show_source_or_disasm_and_command):
5309 Don't check current layout.
5310
3f3ffe54
TT
53112019-08-13 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-wingeneral.c (make_all_visible): Remove.
5314 (tui_make_all_invisible): Simplify.
5315 * tui/tui-layout.c (tui_make_all_invisible): Move from
5316 tui-wingeneral.c; simplify.
5317 (show_layout): Hoist call to tui_make_all_invisible.
5318 (show_data): Don't call tui_make_all_invisible.
5319
69258091
TT
53202019-08-13 Tom Tromey <tom@tromey.com>
5321
5322 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5323 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5324
62cf57fe
TT
53252019-08-13 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5328 tui-data.c.
5329 (show_source_disasm_command, show_data)
5330 (show_source_or_disasm_and_command): Don't use
5331 tui_set_current_layout_to.
5332 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5333 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5334 tui-layout.c.
5335 (tui_set_current_layout_to): Remove.
5336
2afade5d
TT
53372019-08-13 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-layout.c (tui_set_layout): Update.
5340 * tui/tui-data.h (struct tui_layout_def): Remove.
5341 (tui_layout_def): Don't declare.
5342 * tui/tui-data.c (layout_def): Remove.
5343 (tui_layout_def): Remove.
5344
a3504e96
TT
53452019-08-13 Tom Tromey <tom@tromey.com>
5346
5347 * tui/tui-winsource.h (struct tui_source_window_base)
5348 <clear_detail>: No longer "override".
5349 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5350 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5351 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5352 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5353 Remove.
5354 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5355
29c92911
TT
53562019-08-13 Tom Tromey <tromey@adacore.com>
5357
5358 * tracepoint.c: Don't include readline.h or history.h.
5359
86c6b807
TT
53602019-08-12 Tom Tromey <tom@tromey.com>
5361
5362 * configure: Rebuild.
5363 * configure.ac: Check for readline 7.
5364 * NEWS: Mention readline 7 requirement.
5365 * README: Update.
5366
5db2718c
TT
53672019-08-12 Tom Tromey <tom@tromey.com>
5368
5369 * mingw-hdep.c (gdb_select): Remove readline hack.
5370
dac36daf
PFC
53712019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5372
5373 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5374 when the function fails.
5375
1022c627
AA
53762019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5377
5378 * s390-tdep.c (s390_type_align): New function.
5379 (s390_gdbarch_init): Set it as type_align gdbarch method.
5380
eba4caf2
TV
53812019-08-09 Tom de Vries <tdevries@suse.de>
5382
5383 PR gdb/24591
5384 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5385 pc_low with relocation offset.
5386
123cd851
TT
53872019-08-07 Tom Tromey <tromey@adacore.com>
5388
5389 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5390 (print_frame_args): Update.
5391 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5392 Update.
5393 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5394 * frame.h (struct frame_arg): Add initializers.
5395 <error>: Now a unique_xmalloc_ptr.
5396
3d31bc39
AH
53972019-08-07 Alan Hayward <alan.hayward@arm.com>
5398
5399 * NEWS: Expand the Pointer Authentication entry.
5400 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5401 (aarch64_frame_unmask_lr): ... to this.
5402 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5403 Call aarch64_frame_unmask_lr.
5404 * frame.c (struct frame_info): Add "masked" variable.
5405 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5406 (fprint_frame): Check for masked pc.
5407 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5408 declarations.
5409 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5410 * stack.c (print_frame): Check for masked pc.
5411
0cf9feb9
TT
54122019-08-06 Tom Tromey <tom@tromey.com>
5413
5414 * stabsread.c (patch_block_stabs, read_one_struct_field)
5415 (read_enum_type): Use obstack_strndup.
5416 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5417 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5418 * dwarf2read.c (guess_full_die_structure_name)
5419 (anonymous_struct_prefix): Use obstack_strndup.
5420 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5421 * c-exp.y (yylex): Use obstack_strndup.
5422 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5423 (write_var_or_type): Use obstack_strndup.
5424
efba19b0
TT
54252019-08-06 Tom Tromey <tom@tromey.com>
5426
5427 * symfile.c (reread_symbols): Use obstack_strdup.
5428 * stabsread.c (read_type): Use obstack_strdup.
5429 * gdb_obstack.h (obstack_strdup): New overload.
5430 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5431 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5432 (dwarf2_canonicalize_name): Use obstack_strdup.
5433 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5434 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5435 Use obstack_strdup.
5436
f25102f7
TT
54372019-08-06 Tom Tromey <tom@tromey.com>
5438
5439 * gdb_obstack.h (obstack_strdup): Define.
5440 * gdb_obstack.c (obstack_strdup): Don't define.
5441
021887d8
TT
54422019-08-06 Tom Tromey <tom@tromey.com>
5443
5444 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5445 obstack_strdup.
5446 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5447 obstack_strdup.
5448 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5449 * stabsread.c (common_block_start): Use obstack_strdup.
5450 * objfiles.c (set_objfile_main_name, objfile): Use
5451 obstack_strdup.
5452 * namespace.c (add_using_directive): Use obstack_strdup.
5453 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5454 * jit.c (finalize_symtab): Use obstack_strdup.
5455 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5456 (guess_partial_die_structure_name, partial_die_info::fixup)
5457 (dwarf2_name): Use obstack_strdup.
5458 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5459 obstack_strdup.
5460 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5461 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5462 obstack_strdup.
5463 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5464
d2834edc
PW
54652019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5466
5467 * unittests/help-doc-selftests.c: New file.
5468 * Makefile.in: Add the new file.
5469
590042fc
PW
54702019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5471
5472 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5473 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5474 the full first line, except when FOR_VALUE_PREFIX. In this case,
5475 the trailing '.' is not output, and the first character is uppercased.
5476 (print_help_for_command): Update call to print_doc_line.
5477 (print_doc_of_command): Likewise.
5478 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5479 * cli/cli-option.c (append_indented_doc): Do not append newline.
5480 (build_help_option): Append newline after first appended_indented_doc
5481 only if a second call is done.
5482 (build_help): Append 2 new lines before each option, except the first
5483 one.
5484 * compile/compile.c (_initialize_compile): Add new lines after
5485 %OPTIONS%, when not at the end of the help.
5486 Change help doc or code
5487 producing the help doc to respect the invariants.
5488 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5489 Also removed the new line after 'Options:', as all other commands
5490 do not put an empty line between 'Options:' and the first option.
5491 * printcmd.c (_initialize_printcmd): Likewise.
5492 * stack.c (_initialize_stack): Likewise.
5493 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5494 incorrectly telling COMMAND is optional.
5495 * ada-lang.c (_initialize_ada_language): Change help doc or code
5496 producing the help doc to respect the invariants.
5497 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5498 * breakpoint.c (_initialize_breakpoint): Likewise.
5499 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5500 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5501 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5502 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5503 _initialize_cli_style): Likewise.
5504 * corelow.c (core_target_info): Likewise.
5505 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5506 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5507 * filesystem.c (_initialize_filesystem): Likewise.
5508 * frame.c (_initialize_frame): Likewise.
5509 * gnu-nat.c (add_task_commands): Likewise.
5510 * infcall.c (_initialize_infcall): Likewise.
5511 * infcmd.c (_initialize_infcmd): Likewise.
5512 * interps.c (_initialize_interpreter): Likewise.
5513 * language.c (_initialize_language): Likewise.
5514 * linux-fork.c (_initialize_linux_fork): Likewise.
5515 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5516 * maint.c (_initialize_maint_cmds): Likewise.
5517 * memattr.c (_initialize_mem): Likewise.
5518 * printcmd.c (_initialize_printcmd): Likewise.
5519 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5520 _RegEx): Likewise.
5521 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5522 * record-btrace.c (_initialize_record_btrace): Likewise.
5523 * record-full.c (_initialize_record_full): Likewise.
5524 * record.c (_initialize_record): Likewise.
5525 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5526 * regcache.c (_initialize_regcache): Likewise.
5527 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5528 _initialize_remote): Likewise.
5529 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5530 * serial.c (_initialize_serial): Likewise.
5531 * skip.c (_initialize_step_skip): Likewise.
5532 * source.c (_initialize_source): Likewise.
5533 * stack.c (_initialize_stack): Likewise.
5534 * symfile.c (_initialize_symfile): Likewise.
5535 * symtab.c (_initialize_symtab): Likewise.
5536 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5537 * top.c (init_main): Likewise.
5538 * tracefile-tfile.c (tfile_target_info): Likewise.
5539 * tracepoint.c (_initialize_tracepoint): Likewise.
5540 * tui/tui-win.c (_initialize_tui_win): Likewise.
5541 * utils.c (add_internal_problem_command): Likewise.
5542 * valprint.c (value_print_option_defs): Likewise.
5543
404f2902
FCE
55442019-08-06 Frank Ch. Eigler <fche@redhat.com>
5545
5546 PR build/24886
5547 * configure.ac: Drop enable-libmcheck support.
5548 * configure, config.in: Rebuild.
5549 * libmcheck.m4: Remove.
5550 * acinclude.m4: Don't include it.
5551 * Makefile.in: Don't distribute it.
5552 * top.c (print_gdb_configuration): Don't mention it.
5553
046bebe1
TT
55542019-08-06 Tom Tromey <tom@tromey.com>
5555
5556 * utils.c (set_output_style): Sometimes pass stream to
5557 emit_style_escape.
5558 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5559 * record-btrace.c (btrace_insn_history): Update.
5560 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5561 method.
5562 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5563 Update initializers.
5564 <m_uiout>: New field.
5565 <m_di>: Move lower.
5566 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5567 Remove "uiout" parameter.
5568 (dump_insns): Update.
5569 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5570 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5571
ddbcedf5
CB
55722019-08-06 Christian Biesinger <cbiesinger@google.com>
5573
5574 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5575 (error_in_psymtab_expansion): Likewise.
5576 (lookup_symbol_via_quick_fns): Likewise.
5577 (basic_lookup_transparent_type_quick): Likewise.
5578 (basic_lookup_transparent_type_1): Likewise.
5579
b08b16c8
TT
55802019-08-06 Tom Tromey <tromey@adacore.com>
5581
5582 * source.c (last_source_error): Now bool.
5583 (print_source_lines_base): Make "noprint" bool. Only open
5584 source file when last_source_visited changes.
5585
cb44333d
TT
55862019-08-06 Tom Tromey <tromey@adacore.com>
5587
5588 * annotate.c (annotate_source_line): Use g_source_cache.
5589 * source-cache.c (source_cache::get_plain_source_lines): Change
5590 parameters. Populate m_offset_cache.
5591 (source_cache::ensure): New method.
5592 (source_cache::get_line_charpos): New method.
5593 (extract_lines): Move lower. Change parameters.
5594 (source_cache::get_source_lines): Move lower.
5595 * source-cache.h (class source_cache): Update comment.
5596 <get_line_charpos>: New method.
5597 <get_source_lines>: Update comment.
5598 <clear>: Clear m_offset_cache.
5599 <get_plain_source_lines>: Change parameters.
5600 <ensure>: New method
5601 <m_offset_cache>: New member.
5602 * source.c (forget_cached_source_info_for_objfile): Update.
5603 (info_source_command): Use g_source_cache.
5604 (find_source_lines, open_source_file_with_line_charpos): Remove.
5605 (print_source_lines_base, search_command_helper): Use g_source_cache.
5606 * source.h (open_source_file_with_line_charpos): Don't declare.
5607 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5608 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5609 Use g_source_cache.
5610
872dceaa
TT
56112019-08-06 Tom Tromey <tromey@adacore.com>
5612
5613 * source-cache.c (source_cache::get_plain_source_lines):
5614 Remove "first_line" and "last_line" parameters.
5615 (source_cache::get_source_lines): Cache plain text.
5616 * source-cache.h (class source_cache)
5617 <get_plain_source_lines>: Update.
5618
269249d9
TT
56192019-08-06 Tom Tromey <tromey@adacore.com>
5620
5621 * source-cache.c (extract_lines): No longer a method.
5622 Changed type of parameter. Include final newline.
5623 (selftests::extract_lines_test): New function.
5624 (_initialize_source_cache): Likewise.
5625 * source-cache.h (class source_cache)
5626 <extract_lines>: Don't declare.
5627
c0e8dcd8
TT
56282019-08-06 Tom Tromey <tromey@adacore.com>
5629
5630 * breakpoint.c (init_breakpoint_sal): Update.
5631 (breakpoint): Update.
5632 * breakpoint.h (struct breakpoint) <filter>: Now a
5633 unique_xmalloc_ptr.
5634
0b27c27d
CB
56352019-08-05 Christian Biesinger <cbiesinger@google.com>
5636
5637 * NEWS: Mention dictionary access on blocks.
5638 * python/py-block.c (blpy_getitem): New function.
5639 (block_object_as_mapping): New struct.
5640 (block_object_type): Use new struct for tp_as_mapping field.
5641
4ee94178
CB
56422019-08-05 Christian Biesinger <cbiesinger@google.com>
5643
5644 * objfiles.h (objfile): Add a comment describing partial symbols.
5645
8abfcabc
TT
56462019-08-05 Tom Tromey <tromey@adacore.com>
5647
5648 * compile/compile.c (_initialize_compile): Use _(), not N_().
5649 * thread.c (_initialize_thread): Use _(), not N_().
5650 * stack.c (_initialize_stack): Use _(), not N_().
5651 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5652
2b79f376
SM
56532019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * dwarf2read.c (struct dw2_symtab_iterator):
5656 <want_specific_block>: Remove.
5657 <block_index>: Change type to gdb::optional.
5658 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5659 change type of BLOCK_INDEX parameter to gdb::optional.
5660 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5661 (dw2_lookup_symbol): Don't pass argument for
5662 WANT_SPECIFIC_BLOCK.
5663 (dw2_expand_symtabs_for_function): Don't pass argument for
5664 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5665 (class dw2_debug_names_iterator)
5666 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5667 parameter, change BLOCK_INDEX type to gdb::optional.
5668 <m_want_specific_block>: Remove.
5669 <m_block_index>: Change type to gdb::optional.
5670 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5671 gdb::optional. Re-write in function of gdb::optional.
5672 (dw2_debug_names_lookup_symbol): Don't pass argument for
5673 WANT_SPECIFIC_BLOCK.
5674 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5675 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5676 BLOCK_INDEX.
5677
ae60f04e
PW
56782019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5679
5680 * NEWS: Mention changes to "info sources" command.
5681
28cd9371
PW
56822019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5683
5684 * symtab.c (filename_partial_match_opts): New struct type.
5685 (struct output_source_filename_data): New members
5686 regexp, c_regexp, partial_match.
5687 (output_source_filename): Use new members to decide to print file.
5688 (info_sources_option_defs): New variable.
5689 (make_info_sources_options_def_group, print_info_sources_header,
5690 info_sources_command_completer):
5691 New functions.
5692 (info_sources_command): Read new optional arguments.
5693 (_initialize_symtab): Update info sources help.
5694
ca683e3a
AO
56952019-08-02 Alexandre Oliva <oliva@adacore.com>
5696
5697 * ada-lang.c (exception_support_info_v0): Renamed from...
5698 (default_exception_support_info): ... this. Create new
5699 definition for v1.
5700 (ada_has_this_exception_support): Look up catch_handlers_sym.
5701 (ada_exception_support_info_sniffer): Try v0 after default.
5702
f1264162
TT
57032019-08-01 Tom Tromey <tromey@adacore.com>
5704
5705 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5706 gdbarch.h.
5707
0a7b2485
CB
57082019-08-01 Christian Biesinger <cbiesinger@google.com>
5709
5710 * s12z-tdep.c: Fix include path for s12z-opc.h.
5711
c6bdbeb7
AH
57122019-08-01 Alan Hayward <alan.hayward@arm.com>
5713
5714 * NEWS: Require GNU make 3.82.
5715
a2bd7b82
TT
57162019-07-16 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5719 declare.
5720
aa3b6533
TT
57212019-07-30 Tom Tromey <tromey@adacore.com>
5722
5723 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5724
a1530dc7
KB
57252019-07-30 Kevin Buettner <kevinb@redhat.com>
5726
5727 * printcmd.c (print_address_symbolic): Print negative offsets.
5728 (build_address_symbolic): Force signed arithmetic when computing
5729 offset.
5730
2906593f
CB
57312019-07-30 Christian Biesinger <cbiesinger@google.com>
5732
5733 PR/24474: Add a function to lookup static variables.
5734 * NEWS: Mention this new function.
5735 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5736 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5737 * python/python.c (python_GdbMethods): Add new function.
5738
c620ed88
CB
57392019-07-29 Christian Biesinger <cbiesinger@google.com>
5740
5741 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5742 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5743 (objfpy_lookup_static_symbol): New function.
5744 (objfile_object_methods): Add new functions.
5745
bc4268a5
PW
57462019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * NEWS: Mention 'set|show print frame-info'. Mention new
5749 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5750 backtrace argument. Mention that python frame filtering code
5751 is now consistent with what 'backtrace' command prints.
5752
4b5e8d19
PW
57532019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5754
5755 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5756 comments.
5757 (print_frame_info_auto, print_frame_info_source_line,
5758 print_frame_info_location, print_frame_info_source_and_location,
5759 print_frame_info_location_and_address, print_frame_info_short_location):
5760 New declarations.
5761 (struct frame_print_options): New member print_frame_info.
5762 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5763 * stack.h (get_user_print_what_frame_info): New declaration.
5764 (frame_show_address): New declaration.
5765 * stack.c (print_frame_arguments_choices): New value 'presence'.
5766 (print_frame_info_auto, print_frame_info_source_line,
5767 print_frame_info_location, print_frame_info_source_and_location,
5768 print_frame_info_location_and_address, print_frame_info_short_location,
5769 print_frame_info_choices, print_frame_info_print_what): New definitions.
5770 (print_frame_args): Only print dots for args if print frame-arguments
5771 is 'presence'.
5772 (frame_print_option_defs): New element for "frame-info".
5773 (get_user_print_what_frame_info): New function.
5774 (frame_show_address): Make non static. Move comment to stack.h.
5775 (print_frame_info_to_print_what): New function.
5776 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5777 to decide what to print.
5778 (backtrace_command_1): Handle the new print_frame_arguments_presence
5779 value.
5780 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5781 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5782 (py_print_frame): In non-mi mode, use LOCATION as default for
5783 print_what, similarly to frame information printed directly by
5784 backtrace command. Handle frame-info user option in non MI mode.
5785
6bdfee81
KB
57862019-07-27 Kevin Buettner <kevinb@redhat.com>
5787
5788 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5789 Add case for debugging 32-bit target on 64-bit host. Revise
5790 comment.
5791
98a617f8
KB
57922019-07-27 Kevin Buettner <kevinb@redhat.com>
5793
5794 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5795 instead of find_function_entry_range_from_pc.
5796
567238c9
KB
57972019-07-27 Kevin Buettner <kevinb@redhat.com>
5798
5799 * stack.c (find_frame_funname): Remove code which preferred
5800 minsym over symtab sym in "certain pathological cases".
5801
2dc80cf8
KB
5802 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5803 parameter. Change type of "do_demangle" to bool.
5804 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5805 Pass suitable "prefer_sym_over_minsym" flag to
5806 build_address_symbolic(). Don't output "+" for negative offsets.
5807 * printcmd.c (print_address_symbolic): Update invocation of
5808 build_address_symbolic to include a "prefer_sym_over_minsym"
5809 flag.
5810 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5811 Restrict cases in which use of minimal symbol is preferred to that
5812 of a found symbol. Update comments.
5813
1aff7173
KB
5814 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5815 for entry pc when entry pc is out of range for that FDE.
5816
89b085ac
BC
58172019-07-26 Brian Callahan <bcallah@openbsd.org>
5818
5819 PR gdb/24839:
5820 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5821 type.
5822
f32feb4a
CB
58232019-07-25 Christian Biesinger <cbiesinger@google.com>
5824
5825 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5826 this function's Python signature.
5827
5828
58292019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5830
5831 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5832 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5833 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5834 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5835 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5836
5837
c54e4253
YS
58382019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5839
5840 * h8300-tdep.c (h8300_register_name_common): New.
5841 h8300_register_name): Use h8300_register_name_common.
5842 (h8300s_register_name): Likewise.
5843 (h8300sx_register_name): Likewise.
5844 (h8300h_register_nam): New.
5845 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5846
5847
40eadf04
SP
58482019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5849
5850 * arm-tdep.c (arm_skip_cmse_entry): New function.
5851 (arm_is_sgstubs_section): New function.
5852 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5853
bfa2a36d
TT
58542019-07-22 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5857 Don't self-assign.
5858
a8e9d247
AB
58592019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5862 type_print.
5863
eb86c5e2
AB
58642019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5867 so that GDB doesn't match any msymbols when searching in the
5868 TYPES_DOMAIN.
5869 (print_symbol_info): Print using typedef_print or type_print based
5870 on the type of the symbol. Add updated FIXME comment moved from...
5871 (_initialize_symtab): ... move and update FIXME comment to above.
5872
a8eab7c6
AB
58732019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * NEWS: Mention adding -q option to "info types".
5876 * symtab.c (struct info_types_options): New struct.
5877 (info_types_options_defs): New variable.
5878 (make_info_types_options_def_group): New function.
5879 (info_types_command): Use gdb::option framework to parse options.
5880 (info_types_command_completer): New function.
5881 (_initialize_symtab): Extend the help text on "info types" and
5882 register command completer.
5883
b4603c34
CB
58842019-07-21 Christian Biesinger <cbiesinger@google.com>
5885
5886 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5887 (lookup_symbol_in_objfile): Change int to block_enum and add a
5888 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5889
c8cdc1e0
CB
58902019-07-20 Christian Biesinger <cbiesinger@google.com>
5891
5892 * MAINTAINERS (Write After Approval): Add self.
5893
01e175fe
AB
58942019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5897 instruction to the dummy code region.
5898
56f79b63
TT
58992019-07-19 Tom Tromey <tromey@adacore.com>
5900
5901 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5902 (ARGSUSED, PARAMS, __func__): Remove rules.
5903
4c5aa8e0
AH
59042019-07-19 Alan Hayward <alan.hayward@arm.com>
5905
5906 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5907 * features/arm/arm-with-iwmmxt.c: Remove.
5908 * features/arm/arm-with-iwmmxt.xml: Remove.
5909 * features/arm/arm-with-m-fpa-layout.c: Remove.
5910 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5911 * features/arm/arm-with-m-vfp-d16.c: Remove.
5912 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5913 * features/arm/arm-with-m.c: Remove.
5914 * features/arm/arm-with-m.xml: Remove.
5915 * features/arm/arm-with-neon.c: Remove.
5916 * features/arm/arm-with-neon.xml: Remove.
5917 * features/arm/arm-with-vfpv2.c: Remove.
5918 * features/arm/arm-with-vfpv2.xml: Remove.
5919 * features/arm/arm-with-vfpv3.c: Remove.
5920 * features/arm/arm-with-vfpv3.xml: Remove.
5921
f42b2617
AH
59222019-07-19 Alan Hayward <alan.hayward@arm.com>
5923
5924 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5925
f29ec966
AH
59262019-07-19 Alan Hayward <alan.hayward@arm.com>
5927
5928 * arch/aarch32.c (aarch32_create_target_description): Create
5929 target descriptions using features.
5930 * arch/arm.c (arm_create_target_description)
5931 (arm_create_mprofile_target_description): Likewise.
5932 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5933
d105cce5
AH
59342019-07-19 Alan Hayward <alan.hayward@arm.com>
5935
5936 * Makefile.in: Add new files.
5937 * aarch32-tdep.c: New file.
5938 * aarch32-tdep.h: New file.
5939 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5940 Call aarch32_read_description.
5941 * arch/aarch32.c: New file.
5942 * arch/aarch32.h: New file.
5943 * arch/arm.c (arm_create_target_description)
5944 (arm_create_mprofile_target_description): New function.
5945 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5946 (arm_create_target_description)
5947 (arm_create_mprofile_target_description): New declaration.
5948 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5949 read_description functions.
5950 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5951 Likewise.
5952 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5953 * arm-tdep.c (tdesc_arm_list): New variable.
5954 (arm_register_g_packet_guesses): Call create description functions.
5955 (arm_read_description) (arm_read_mprofile_description): New
5956 function.
5957 * arm-tdep.h (arm_read_description)
5958 (arm_read_mprofile_description): Add declaration.
5959 * configure.tgt: Add new files.
5960
afe09f0b
GL
59612019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5962
5963 * top.c (new_ui_command): Open specified terminal just once.
5964
cd215b2e
TT
59652019-07-18 Tom Tromey <tromey@adacore.com>
5966
5967 * symtab.c (main_name): Constify return type.
5968 * symfile.c (set_initial_language): Update.
5969 * symtab.h (main_name): Constify return type.
5970
d8f68fcb
TT
59712019-07-17 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-winsource.c (tui_update_source_window)
5974 (tui_update_source_window_as_is)
5975 (tui_update_source_windows_with_line): Remove return.
5976 * tui/tui-disasm.c (tui_show_disassem)
5977 (tui_show_disassem_and_update_source): Remove return.
5978 * tui/tui.c (tui_reset): Remove return.
5979 * tui/tui-wingeneral.c
5980 (tui_check_and_display_highlight_if_needed): Remove return.
5981
ca5af91e
TT
59822019-07-17 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5985
5104fe36
TT
59862019-07-17 Tom Tromey <tom@tromey.com>
5987
5988 * tui/tui-winsource.h (struct tui_exec_info_window)
5989 (struct tui_source_window_base): Move from tui-data.h.
5990 * tui/tui-winsource.c: Move many method definitions from
5991 elsewhere. Remove "structuring" comments.
5992 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5993 (tui_source_window_base::refresh_window): Move to
5994 tui-winsource.c.
5995 * tui/tui-win.c (tui_source_window_base::refresh_all)
5996 (tui_source_window_base::update_tab_width)
5997 (tui_source_window_base::set_new_height)
5998 (tui_source_window_base::do_make_visible_with_new_height): Move to
5999 tui-winsource.c.
6000 * tui/tui-source.h: Update.
6001 * tui/tui-source.c (tui_source_window_base::reset): Move to
6002 tui-winsource.c.
6003 * tui/tui-disasm.h: Update.
6004 * tui/tui-data.h (struct tui_exec_info_window): Move to
6005 tui-winsource.h.
6006 (struct tui_source_window_base): Likewise.
6007 * tui/tui-data.c (tui_source_window_base::clear_detail)
6008 (tui_source_window_base, ~tui_source_window_base): Move to
6009 tui-winsource.c.
6010
daa15dde
TT
60112019-07-17 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-win.c (tui_resize_all)
6014 (tui_source_window_base::update_tab_width)
6015 (tui_adjust_win_heights): Update.
6016 (tui_win_info::make_invisible_and_set_new_height): Rename from
6017 make_invisible_and_set_new_height.
6018 * tui/tui-data.h (struct tui_win_info)
6019 <make_invisible_and_set_new_height>: New method.
6020
bfad4537
TT
60212019-07-17 Tom Tromey <tom@tromey.com>
6022
6023 * tui/tui.c: Update.
6024 * tui/tui-source.h (struct tui_source_window): Move from
6025 tui-data.h.
6026 * tui/tui-layout.c: Update.
6027 * tui/tui-disasm.c: Update.
6028 * tui/tui-data.h (struct tui_source_window): Move to
6029 tui-source.h.
6030
88f7e873
TT
60312019-07-17 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6034 tui-data.h.
6035 * tui/tui-data.h (struct tui_disasm_window): Move to
6036 tui-disasm.h.
6037
96bd6233
TT
60382019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-regs.h (struct tui_data_item_window): Move from
6041 tui-data.h.
6042 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6043 * tui/tui-data.h (struct tui_data_item_window): Move to
6044 tui-regs.h.
6045 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6046
ce38393b
TT
60472019-07-17 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui.c: Update.
6050 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6051 (tui_cmd_window::max_height): Move to tui-command.c.
6052 * tui/tui-layout.c: Update.
6053 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6054 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6055 tui-command.c.
6056 * tui/tui-command.h (struct tui_cmd_window): Move from
6057 tui-data.h.
6058 * tui/tui-command.c: Remove "structuring" comments.
6059 (tui_cmd_window::clear_detail)
6060 (tui_cmd_window::do_make_visible_with_new_height)
6061 (tui_cmd_window::max_height): Move from elsewhere.
6062
2d8b51cb
TT
60632019-07-17 Tom Tromey <tom@tromey.com>
6064
6065 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6066 Now static.
6067 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6068 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6069
18ab23af
TT
60702019-07-17 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui.c: Update.
6073 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6074 tui-regs.c.
6075 * tui/tui-windata.h: Remove file.
6076 * tui/tui-windata.c: Remove file.
6077 * tui/tui-win.c (tui_data_window::set_new_height)
6078 (tui_data_window::do_make_visible_with_new_height): Move to
6079 tui-regs.c.
6080 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6081 * tui/tui-regs.c: Remove "structuring" comments.
6082 (tui_data_window::first_data_item_displayed)
6083 (tui_data_window::delete_data_content_windows)
6084 (tui_data_window::erase_data_content)
6085 (tui_data_window::display_all_data)
6086 (tui_data_window::refresh_all)
6087 (tui_data_window::do_scroll_vertical)
6088 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6089 (tui_data_window::do_make_visible_with_new_height)
6090 (tui_data_window::refresh_window): Move from elsewhere.
6091 (_initialize_tui_regs): Move to end of file.
6092 * tui/tui-layout.c: Update.
6093 * tui/tui-hooks.c: Update.
6094 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6095 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6096 tui-regs.c.
6097 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6098
88b7e7cc
TT
60992019-07-17 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6102 seen.
6103
0fcd3711
TT
61042019-07-17 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-win.c (tui_source_window_base::set_new_height)
6107 (tui_source_window_base::do_make_visible_with_new_height): Use
6108 m_has_locator field directly.
6109 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6110 method.
6111 (struct tui_source_window_base) <has_locator>: Likewise.
6112
4a38112d
TT
61132019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6116 Don't declare.
6117 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6118 Remove.
6119 * tui/tui-win.c (tui_source_window_base::set_new_height)
6120 (tui_source_window_base::set_new_height)
6121 (make_invisible_and_set_new_height)
6122 (tui_source_window_base::do_make_visible_with_new_height)
6123 (tui_source_window_base::do_make_visible_with_new_height):
6124 Update.
6125 * tui/tui-layout.c (show_source_disasm_command, show_data)
6126 (show_source_or_disasm_and_command): Update.
6127 * tui/tui-layout.c (show_layout): Update.
6128
09129226
TT
61292019-07-17 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui-layout.c (make_data_window): Remove.
6132 (show_data): Unify creation and re-initialization cases.
6133
4a8a5e84
TT
61342019-07-17 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-layout.c (make_source_window, make_disasm_window):
6137 Remove.
6138 (show_data): Unify creation and re-initialization cases.
6139
76d2be8e
TT
61402019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-layout.c (make_command_window): Remove.
6143 (show_source_disasm_command, show_source_or_disasm_and_command):
6144 Unify creation and re-initialization cases.
6145
890b8bde
TT
61462019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6149 creation and re-initialization cases.
6150
2cdfa113
TT
61512019-07-17 Tom Tromey <tom@tromey.com>
6152
6153 * tui/tui-regs.c (tui_get_register): Return void.
6154
8e3cfd09
TT
61552019-07-17 Tom Tromey <tom@tromey.com>
6156
6157 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6158 Simplify.
6159
f4e04977
TT
61602019-07-17 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6163 resetting.
6164
0379b883
TT
61652019-07-17 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6168 * tui/tui-regs.c (tui_reg_layout): New function.
6169 (tui_show_registers, tui_reg_command): Use it.
6170 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6171 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6172 parameters.
6173 (tui_layout_command): Remove.
6174
b7fbad91
TT
61752019-07-17 Tom Tromey <tom@tromey.com>
6176
6177 * tui/tui-layout.h (tui/tui-layout): Return void.
6178 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6179
4e1e56b9
TT
61802019-07-17 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-layout.c (show_source_disasm_command, show_data):
6183 Update.
6184 (reset_locator): Remove.
6185 (show_source_or_disasm_and_command): Update.
6186
1e0c09ba
TT
61872019-07-17 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-source.c (tui_source_window_base::reset): Remove
6190 win_type parameter.
6191 * tui/tui-layout.c (make_command_window, make_source_window)
6192 (make_disasm_window, make_data_window)
6193 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6194 (reset_locator, show_source_or_disasm_and_command): Update.
6195 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6196 win_type parameter.
6197 (struct tui_source_window_base) <reset>: Likewise.
6198
1bf605de
TT
61992019-07-17 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-layout.c (show_source_disasm_command): Use
6202 reset_locator.
6203 (reset_locator): New function.
6204 (init_and_make_win): Remove.
6205 (show_source_or_disasm_and_command): Use reset_locator.
6206
098f9ed4
TT
62072019-07-17 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6210 condition.
6211 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6212 Remove condition.
6213 * tui/tui-source.c (tui_source_window_base::reset): New method.
6214 * tui/tui-layout.c (make_command_window): Don't call
6215 init_and_make_win.
6216 (make_source_window, make_disasm_window): Don't call
6217 make_source_or_disasm_window.
6218 (make_data_window): Don't call init_and_make_win. Change calling
6219 convention.
6220 (show_source_disasm_command, show_data): Simplify.
6221 (make_source_or_disasm_window): Remove.
6222 (show_source_or_disasm_and_command): Simplify.
6223 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6224 (struct tui_source_window_base) <reset>: Likewise.
6225 <execution_info>: Remove initializer.
6226 * tui/tui-data.c (tui_source_window_base): Initialize
6227 execution_info.
6228
80110957
TT
62292019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6232 variable.
6233
cf82af05
TT
62342019-07-17 Tom Tromey <tom@tromey.com>
6235
6236 * tui/tui.c (tui_rl_other_window): Update.
6237 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6238 superclass method first. Always iterate over regs_content.
6239 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6240 method.
6241 * tui/tui-win.c (tui_set_focus_command): Update.
6242
01aeb396
TT
62432019-07-17 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-win.c (tui_set_focus_command): Rename from
6246 tui_set_focus. Call tui_enable.
6247 (tui_set_focus_command): Remove.
6248
fd6c75ee
TT
62492019-07-17 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6252 refresh_window.
6253 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6254 touchwin.
6255 (tui_data_window::refresh_window): Call refresh_window on data
6256 items. Always call superclass refresh_window.
6257 (tui_win_info::refresh): Remove.
6258 (tui_source_window_base::refresh_window): Update.
6259 (tui_refresh_all): Update.
6260 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6261 refresh_window.
6262 (show_source_or_disasm_and_command): Likewise.
6263 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6264 (struct tui_source_window_base) <refresh>: Likewise.
6265
f6cc34a9
TT
62662019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-winsource.c (tui_clear_source_content)
6269 (tui_show_source_content): Update.
6270 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6271 whether content is empty.
6272 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6273 Remove.
6274
f31ec9af
TT
62752019-07-17 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6278 window's contents.
6279 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6280 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6281
d1b6f1e5
TT
62822019-07-17 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6285 (struct tui_data_item_window): Update.
6286
d9743a13
TT
62872019-07-17 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6290 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6291 defines.
6292
caf0bc4e
TT
62932019-07-17 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-winsource.h (tui_erase_source_content)
6296 (tui_clear_source_content): Remove "display_prompt" parameter.
6297 * tui/tui-winsource.c (tui_update_source_window_as_is)
6298 (tui_update_source_windows_with_addr): Update.
6299 (tui_clear_source_content): Remove "display_prompt" parameter.
6300 (tui_erase_source_content): Likewise. Simplify.
6301 (tui_show_source_content): Update.
6302 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6303 * tui/tui-stack.c (tui_show_frame_info): Update.
6304 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6305 Remove defines.
6306
9d391078
TT
63072019-07-17 Tom Tromey <tom@tromey.com>
6308
6309 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6310 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6311 parameter.
6312 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6313 parameter.
6314
a38da35d
TT
63152019-07-17 Tom Tromey <tom@tromey.com>
6316
6317 * tui/tui-winsource.c (tui_clear_source_content)
6318 (tui_show_source_content, tui_show_exec_info_content)
6319 (tui_clear_exec_info_content): Update.
6320 * tui/tui-stack.c (tui_show_locator_content): Update.
6321 (tui_show_frame_info): Update.
6322 * tui/tui-source.h (tui_source_window): Don't declare.
6323 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6324 from tui_source_is_displayed.
6325 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6326 Remove field.
6327 (struct tui_source_window_base) <content_in_use>: New field. Now
6328 bool.
6329 (struct tui_source_window) <showing_source_p>: New method.
6330 (TUI_SRC_WIN): Change cast.
6331 * tui/tui-data.c (tui_initialize_static_data): Update.
6332
c2cd8994
TT
63332019-07-17 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6336 location_matches_p.
6337 * tui/tui-source.c (tui_source_window::location_matches_p): New
6338 method.
6339 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6340 method.
6341 * tui/tui-data.h (struct tui_source_window_base)
6342 <location_matches_p>: New method.
6343 (struct tui_source_window, struct tui_disasm_window)
6344 <location_matches_p>: Likewise.
6345
4dde7b34
TT
63462019-07-17 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-win.c (tui_set_win_height_command): Rename from
6349 tui_set_win_height.
6350 (tui_set_win_height_command): Remove.
6351
b73dd877
TT
63522019-07-17 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-source.c (tui_source_window): New constructor. Add
6355 observer.
6356 (~tui_source_window): New destructor.
6357 (tui_source_window::style_changed): New method.
6358 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6359 (tui_attach_detach_observers): Update.
6360 * tui/tui-data.h (struct tui_source_window): Make constructor not
6361 inline. Add destructor.
6362 (struct tui_source_window) <style_changed>: New method.
6363 <m_observable>: New member.
6364
ae2b5380
TT
63652019-07-17 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6368 * tui/tui-win.c (tui_resize_all): Fix typo.
6369
1ce3e844
TT
63702019-07-17 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6373 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6374 (tui_refresh_all): Remove "list" parameter. Use foreach.
6375 * tui/tui-win.c (window_name_completer): Use foreach.
6376 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6377 (update_tab_width): Likewise.
6378 * tui/tui-layout.c (show_layout): Update.
6379 * tui/tui-data.h (class tui_window_iterator): New.
6380 (struct all_tui_windows): New.
6381 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6382
fe3eaf1c
TT
63832019-07-17 Tom Tromey <tom@tromey.com>
6384
6385 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6386 parameter. Don't reference globals.
6387 (tui_reg_command): Update.
6388
368c1354
TT
63892019-07-17 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-regs.c (tui_show_registers): Simplify.
6392
e80cd204
TT
63932019-07-17 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-regs.c (tui_show_registers): Update.
6396 (tui_show_register_group): Add win_info parameter.
6397
aca2dd16
TT
63982019-07-17 Tom Tromey <tom@tromey.com>
6399
6400 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6401 Rename from tui_display_reg_element_at_line.
6402 (tui_data_window::display_registers_from_line): Update.
6403 * tui/tui-data.h (struct tui_data_window)
6404 <display_reg_element_at_line>: New method.
6405
517e9505
TT
64062019-07-17 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui-regs.h (tui_display_registers_from)
6409 (tui_display_registers_from_line): Don't declare.
6410 * tui/tui-windata.c (tui_data_window::display_all_data)
6411 (tui_data_window::refresh_all)
6412 (tui_data_window::do_scroll_vertical): Update.
6413 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6414 from tui_display_registers_from.
6415 (tui_display_reg_element_at_line): Update.
6416 (tui_data_window::display_registers_from_line): Rename from
6417 tui_display_registers_from_line.
6418 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6419 display_registers_from_line>: New methods.
6420
f76d8b19
TT
64212019-07-17 Tom Tromey <tom@tromey.com>
6422
6423 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6424 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6425 from tui_erase_data_content.
6426 (tui_data_window::display_all_data)
6427 (tui_data_window::refresh_all)
6428 (tui_data_window::do_scroll_vertical): Update.
6429 * tui/tui-regs.c (tui_show_registers): Update.
6430 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6431 New method.
6432
b4094625
TT
64332019-07-17 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6436 declare.
6437 * tui/tui-windata.c
6438 (tui_data_window::delete_data_content_windows): Rename from
6439 tui_delete_data_content_windows.
6440 (tui_data_window::display_all_data)
6441 (tui_data_window::do_scroll_vertical): Update.
6442 * tui/tui-data.h (struct tui_data_window)
6443 <delete_data_content_windows>: New method.
6444
c223a729
TT
64452019-07-17 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6448 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6449
50daf268
TT
64502019-07-17 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6453 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6454 from tui_display_all_data.
6455 * tui/tui-win.c
6456 (tui_data_window::do_make_visible_with_new_height): Update.
6457 * tui/tui-regs.c (tui_show_registers): Update.
6458 * tui/tui-layout.c (tui_set_layout): Update.
6459 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6460 method.
6461
df5f8cab
TT
64622019-07-17 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6465 * tui/tui-windata.c (tui_display_data_from): Remove.
6466 (tui_data_window::refresh_all): Update.
6467
80cb6c27
TT
64682019-07-17 Tom Tromey <tom@tromey.com>
6469
6470 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6471 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6472 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6473 tui_display_registers_from_line.
6474 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6475 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6476 "force_display" parameter.
6477
baff0c28
TT
64782019-07-17 Tom Tromey <tom@tromey.com>
6479
6480 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6481 declare.
6482 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6483 Rename from tui_first_reg_element_no_inline.
6484 (tui_display_reg_element_at_line)
6485 (tui_display_registers_from_line): Update.
6486 * tui/tui-data.h (struct tui_data_window)
6487 <first_reg_element_no_inline>: New method.
6488
3b23c5f2
TT
64892019-07-17 Tom Tromey <tom@tromey.com>
6490
6491 * tui/tui-windata.c (tui_display_data_from)
6492 (tui_data_window::do_scroll_vertical): Update.
6493 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6494 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6495 Rename from tui_line_from_reg_element_no.
6496 (tui_display_registers_from_line): Update.
6497 * tui/tui-data.h (struct tui_data_window)
6498 <line_from_reg_element_no>: New method.
6499
0b5ec218
TT
65002019-07-17 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6503 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6504 tui_last_regs_line_no.
6505 (tui_display_reg_element_at_line)
6506 (tui_display_registers_from_line): Update.
6507 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6508 method.
6509
0807ab7b
TT
65102019-07-17 Tom Tromey <tom@tromey.com>
6511
6512 PR tui/24722:
6513 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6514 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6515 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6516 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6517 (tui_update_breakpoint_info): Likewise.
6518 * tui/tui-hooks.c (tui_event_create_breakpoint)
6519 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6520 Update.
6521
9ad7fdef
TT
65222019-07-17 Tom Tromey <tom@tromey.com>
6523
6524 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6525
5813316f
TT
65262019-07-17 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-winsource.c (tui_update_source_window_as_is)
6529 (tui_update_source_windows_with_addr): Update.
6530 * tui/tui-source.h (tui_set_source_content)
6531 (tui_show_symtab_source): Add "win_info" parameter.
6532 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6533 parameter.
6534 (tui_show_symtab_source): Likewise.
6535
00e264e7
TT
65362019-07-17 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-wingeneral.c
6539 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6540
06210ce4
TT
65412019-07-17 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6544 (struct tui_cmd_window) <can_scroll>: New method.
6545 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6546 method.
6547
381befee
TT
65482019-07-17 Tom Tromey <tromey@adacore.com>
6549
6550 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6551 do_field_signed>: Rename. Change type of "value".
6552 * ui-out.c (ui_out::field_signed): Rename from field_int.
6553 Change type of "value".
6554 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6555 type of "value".
6556 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6557 do_field_int. Change type of "value".
6558 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6559 do_field_int. Change type of "value".
6560 * tracepoint.c (trace_status_mi, tfind_1)
6561 (print_one_static_tracepoint_marker): Update.
6562 * thread.c (print_thread_info_1, print_selected_thread_frame):
6563 Update.
6564 * stack.c (print_frame, print_frame_info): Update.
6565 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6566 Update.
6567 * source.c (print_source_lines_base): Update.
6568 * skip.c (info_skip_command): Update.
6569 * record-btrace.c (btrace_ui_out_decode_error)
6570 (btrace_call_history_src_line): Update.
6571 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6572 Update.
6573 * progspace.c (print_program_space): Update.
6574 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6575 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6576 do_field_int. Change type of "value".
6577 * mi/mi-out.c (mi_ui_out::do_table_begin)
6578 (mi_ui_out::do_table_header): Update.
6579 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6580 type of "value".
6581 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6582 (mi_cmd_data_list_changed_registers, output_register)
6583 (mi_cmd_data_read_memory, mi_load_progress)
6584 (mi_cmd_trace_frame_collected): Update.
6585 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6586 Update.
6587 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6588 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6589 (mi_cmd_var_list_children, varobj_update_one): Update.
6590 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6591 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6593 * inferior.c (print_inferior): Update.
6594 * gdb_bfd.c (print_one_bfd): Update.
6595 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6596 Update.
6597 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6598 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6599 do_field_int. Change type of "value".
6600 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6601 do_field_int. Change type of "value".
6602 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6603 (print_one_breakpoint_location, print_it_catch_fork)
6604 (print_one_catch_fork, print_it_catch_vfork)
6605 (print_one_catch_vfork, print_it_catch_solib)
6606 (print_it_catch_exec, print_it_ranged_breakpoint)
6607 (print_mention_watchpoint, print_mention_masked_watchpoint)
6608 (bkpt_print_it, update_static_tracepoint): Update.
6609 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6610 * break-catch-syscall.c (print_it_catch_syscall): Update.
6611 * ada-tasks.c (print_ada_task_info): Update.
6612 * ada-lang.c (print_it_exception, print_mention_exception):
6613 Update.
6614
6b78c3f8
AB
66152019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 PR breakpoints/24541
6618 * gdbarch.c: Regenerate.
6619 * gdbarch.h: Regenerate.
6620 * gdbarch.sh: Adjust return type and parameter types for
6621 'stap_adjust_register'.
6622 (i386_stap_adjust_register): Adjust signature and return new
6623 register name.
6624 * stap-probe.c (stap_parse_register_operand): Adjust use of
6625 'gdbarch_stap_adjust_register'.
6626
d72a9b85
TT
66272019-07-17 Tom Tromey <tromey@adacore.com>
6628
6629 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6630 declare VEC.
6631 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6632 std::vector.
6633 (struct s390_process_info): Add initializers.
6634 (s390_add_process): Use new.
6635 (s390_linux_nat_target::low_forget_process): Use delete.
6636 (s390_linux_nat_target::low_new_fork)
6637 (s390_linux_nat_target::stopped_by_watchpoint)
6638 (s390_linux_nat_target::low_prepare_to_resume)
6639 (s390_linux_nat_target::insert_watchpoint)
6640 (s390_linux_nat_target::insert_hw_breakpoint)
6641 (s390_linux_nat_target::remove_watchpoint)
6642 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6643
206e6c58
JB
66442019-07-16 John Baldwin <jhb@FreeBSD.org>
6645
6646 * aarch64-fbsd-nat.c: Include regcache.h.
6647 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6648 argument.
6649 (aarch64_fbsd_nat_target::fetch_registers)
6650 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6651 variable.
6652 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6653
cbde90f2
JB
66542019-07-16 John Baldwin <jhb@FreeBSD.org>
6655
6656 * fbsd-nat.c: Include gdbarch.h.
6657
07128006
TT
66582019-07-15 Tom Tromey <tromey@adacore.com>
6659
6660 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6661
1f77b012
TT
66622019-07-15 Tom Tromey <tromey@adacore.com>
6663
6664 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6665 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6666 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6667 * cli-out.c (cli_ui_out::do_field_int): New method.
6668 * ui-out.c (ui_out::field_unsigned): New method.
6669 * symfile.c (generic_load): Use field_unsigned.
6670 (print_transfer_performance): Likewise.
6671 * record-btrace.c (ui_out_field_uint): Remove.
6672 (btrace_call_history_insn_range, btrace_call_history): Use
6673 field_unsigned.
6674 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6675 field_unsigned.
6676 * ui-out.h (class ui_out) <field_unsigned>: New method.
6677 <do_field_unsigned>: Likewise.
6678
33eca680
TT
66792019-07-15 Tom Tromey <tromey@adacore.com>
6680
6681 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6682 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6683 * target.c (flash_erase_command): Use field_string.
6684 * infrun.c (print_signal_received_reason): Use field_string.
6685 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6686 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6687 field_string.
6688 * ada-tasks.c (print_ada_task_info): Use field_string.
6689
ca8d69be
TT
66902019-07-15 Tom Tromey <tromey@adacore.com>
6691
6692 * target.c (flash_erase_command): Use field_core_addr.
6693 * symfile.c (generic_load): Use field_core_addr.
6694 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6695 Use field_core_addr.
6696 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6697 field_core_addr.
6698
0d4e84ed
AB
66992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6702 value if its desired type is smaller than a CORE_ADDR and signed.
6703
9a49df9d
AB
67042019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6707 of changes to field names, and use new is_reference field to
6708 decide if a property is a reference or not.
6709 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6710 field.
6711 (struct dwarf2_property_baton): Update header comment, rename
6712 'referenced_type' to 'property_type' and update comments.
6713 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6714 default property type, store in property baton, update to take
6715 accound of renamed field.
6716 (read_func_scope): Update call to attr_to_dynamic_prop.
6717 (read_array_type): Likewise.
6718 (dwarf2_per_cu_addr_sized_int_type): New function.
6719 (read_subrange_index_type): Move type finding code to
6720 dwarf2_per_cu_addr_sized_int_type.
6721 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6722 (dwarf2_per_cu_addr_type): New function.
6723 (set_die_type): Update calls to attr_to_dynamic_prop.
6724
b86352cf
AB
67252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * dwarf2read.c (read_subrange_index_type): New function.
6728 (read_subrange_type): Move code into new function and call it.
6729 * gdbtypes.c (create_range_type): Add some asserts.
6730
603490bf
AB
67312019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6734 update return statements.
6735 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6736 declaration, and update comment to match.
6737 * gdbtypes.c (resolve_dynamic_array): Update call to
6738 dwarf2_evaluate_property to match new return type.
6739
592f9d27
AB
67402019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * valarith.c (value_subscripted_rvalue): Change lowerbound
6743 parameter type from int to LONGEST.
6744 * value.h (value_subscripted_rvalue): Likewise in declaration.
6745
60cfcb20
AB
67462019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 * cli/cli-utils.c (info_print_command_completer): New function.
6749 * cli/cli-utils.h: Add 'completer.h' include, and forward
6750 declaration for 'struct cmd_list_element'.
6751 (info_print_command_completer): Declare.
6752 * stack.c (_initialize_stack): Add completer for 'info locals' and
6753 'info args'.
6754 * symtab.c (_initialize_symtab): Add completer for 'info
6755 variables' and 'info functions'.
6756 * NEWS: Mention completion for additional info commands.
6757
b16507e0
AB
67582019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * cli/cli-utils.c (extract_info_print_args): Delete.
6761 (extract_arg_maybe_quoted): Delete.
6762 (info_print_options_defs): New variable.
6763 (make_info_print_options_def_group): New function.
6764 (extract_info_print_options): Define new function.
6765 * cli/cli-utils.h (extract_info_print_args): Delete.
6766 (struct info_print_options): New structure.
6767 (extract_info_print_options): Declare new function.
6768 * stack.c (info_locals_command): Update to use new
6769 extract_info_print_options, also add a header comment.
6770 (info_args_command): Likewise.
6771 * symtab.c (info_variables_command): Likewise.
6772 (info_functions_command): Likewise.
6773
021d8588
AB
67742019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6777 to extract string arguments.
6778 * common/common-utils.c (extract_string_maybe_quoted): New function.
6779 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6780
b777eb6d
TT
67812019-07-11 Tom Tromey <tromey@adacore.com>
6782
6783 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6784 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6785 * top.h (gdbinit): Don't declare.
6786 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6787 into...
6788 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6789 * top.c (gdb_init): Don't call init_cli_cmds.
6790 (gdbinit): Remove.
6791 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6792
72ee03ff
TT
67932019-07-11 Tom Tromey <tromey@adacore.com>
6794
6795 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6796 after it has been moved.
6797
00db9531
SM
67982019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6799
6800 * valops.c (value_must_coerce_to_target): Change return type to
6801 bool.
6802 * value.h (value_must_coerce_to_target): Likewise.
6803
f2478a7e
SM
68042019-07-10 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * breakpoint.c (is_hardware_watchpoint): Remove
6807 forward-declaration.
6808 (is_masked_watchpoint): Change return type to bool.
6809 (is_tracepoint): Likewise.
6810 (is_breakpoint): Likewise.
6811 (is_hardware_watchpoint): Likewise.
6812 (is_watchpoint): Likewise.
6813 (is_no_memory_software_watchpoint): Likewise.
6814 (is_catchpoint): Likewise.
6815 (breakpoint_1): Make FILTER parameter's return type bool.
6816 is_masked_watchpoint): Change return type to bool.
6817 (save_breakpoints): Make FILTER parameter's return type bool.
6818 * breakpoint.h (is_breakpoint): Change return type to bool.
6819 (is_watchpoint): Likewise.
6820 (is_catchpoint): Likewise.
6821 (is_tracepoint): Likewise.
6822
0d12e84c
TT
68232019-07-10 Tom Tromey <tom@tromey.com>
6824
6825 * defs.h: Don't include gdbarch.h.
6826 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6827 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6828 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6829 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6830 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6831 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6832 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6833 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6834 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6835 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6836 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6837 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6838 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6839 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6840 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6841 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6842 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6843 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6844 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6845 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6846 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6847 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6848 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6849 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6850 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6851 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6852 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6853
f06f1252
TT
68542019-07-10 Tom Tromey <tromey@adacore.com>
6855
6856 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6857 * breakpoint.c (init_ada_exception_breakpoint): Register as
6858 bp_catchpoint.
6859 (print_one_breakpoint_location, print_one_breakpoint): Use
6860 is_ada_exception_catchpoint.
6861 * ada-lang.c (class ada_catchpoint_location): Pass
6862 bp_loc_software_breakpoint to bp_location constructor.
6863 (is_ada_exception_catchpoint): New function.
6864
7a5d944b
TT
68652019-07-10 Tom Tromey <tromey@adacore.com>
6866
6867 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6868 VEC.
6869 (struct arm_exidx_entry): New method operator<.
6870 (struct arm_exidx_data) <section_maps>: Change type.
6871 (arm_exidx_data_free): Remove.
6872 (arm_exidx_data_key): Change type. Move lower.
6873 (arm_exidx_new_objfile): Update.
6874 (arm_compare_exidx_entries): Remove.
6875 (arm_find_exidx_entry, _initialize_arm_tdep)
6876
48c66e1d
TT
68772019-07-10 Tom Tromey <tromey@adacore.com>
6878
6879 * solib-spu.c (ocl_program_data_key): Change type.
6880 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6881 Update.
6882
a269fbf1
TT
68832019-07-10 Tom Tromey <tromey@adacore.com>
6884
6885 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6886 (struct solib_aix_inferior_data) <library_list>: Change type.
6887 (solib_aix_inferior_data_handle): Change type.
6888 (get_solib_aix_inferior_data): Update.
6889 (solib_aix_free_library_list): Remove.
6890 (library_list_start_library): Update.
6891 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6892 return type.
6893 (solib_aix_get_library_list)
6894 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6895 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6896
c294730c
TT
68972019-07-10 Tom Tromey <tromey@adacore.com>
6898
6899 * solib-dsbt.c (struct dsbt_info): Add initializers.
6900 (solib_dsbt_pspace_data): Change type.
6901 (dsbt_pspace_data_cleanup): Remove.
6902 (get_dsbt_info, _initialize_dsbt_solib): Update.
6903
9d52077d
TT
69042019-07-10 Tom Tromey <tromey@adacore.com>
6905
6906 * spu-tdep.c (spu_overlay_data): Change type.
6907 (spu_get_overlay_table, spu_overlay_new_objfile)
6908 (_initialize_spu_tdep): Update.
6909
22a20dca
TT
69102019-07-10 Tom Tromey <tromey@adacore.com>
6911
6912 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6913 destructor.
6914 (dbx_objfile_data_key): Change type and declare later.
6915 (DBX_SYMFILE_INFO): Rewrite.
6916 * dbxread.c (dbx_objfile_data_key): Change type.
6917 (dbx_symfile_init): Update.
6918 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6919 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6920 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6921
cb60f420
TT
69222019-07-10 Tom Tromey <tromey@adacore.com>
6923
6924 * jit.c (jit_program_space_key): Change type. Move lower.
6925 (get_jit_program_space_data): Update.
6926 (jit_program_space_data_cleanup): Remove.
6927 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6928 Update.
6929 (struct jit_program_space_data): Add initializers.
6930
51df2ae3
TT
69312019-07-10 Tom Tromey <tromey@adacore.com>
6932
6933 * solib-darwin.c (struct darwin_info): Add initializers.
6934 (solib_darwin_pspace_data): Change type.
6935 (darwin_pspace_data_cleanup): Remove.
6936 (get_darwin_info, _initialize_darwin_solib): Update.
6937
18101a35
TT
69382019-07-10 Tom Tromey <tromey@adacore.com>
6939
6940 * remote-sim.c (struct sim_inferior_data): Add initializers,
6941 constructor, and destructor.
6942 (sim_inferior_data_key): Change type. Move lower.
6943 (check_for_duplicate_sim_descriptor): Update.
6944 (get_sim_inferior_data): Use new. Update.
6945 (~sim_inferior_data_cleanup): Rename from
6946 sim_inferior_data_cleanup. Simplify.
6947 (gdbsim_close_inferior, simulator_command)
6948 (sim_command_completer, _initialize_remote_sim): Update.
6949 (next_pid, INITIAL_PID): Move earlier.
6950
05b08ac1
TT
69512019-07-10 Tom Tromey <tromey@adacore.com>
6952
6953 * python/python-internal.h (create_thread_object): Return
6954 gdbpy_ref.
6955 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6956 * python/py-inferior.c (struct threadlist_entry): Add
6957 constructor.
6958 <thread_obj>: Now a gdbpy_ref.
6959 (thread_to_thread_object): Update.
6960 (add_thread_object): Use new.
6961 (delete_thread_object): Use delete.
6962 (infpy_threads): Update.
6963 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6964 GIL.
6965
32372d80
TT
69662019-07-10 Tom Tromey <tromey@adacore.com>
6967
6968 * valops.c (value_cast): Specialize error message for Ada.
6969
5c458ae8
SM
69702019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6973
4c462cb0
SM
69742019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6975
6976 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6977 bpstat_should_step): Return bool, adjust comments.
6978 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6979 bpstat_should_step): Likewise.
6980
89abbcc2
AH
69812019-07-10 Alan Hayward <alan.hayward@arm.com>
6982
6983 * features/Makefile: Use feature target descriptions for Arm.
6984 * features/arm/arm-core.c: Generate new file.
6985 * features/arm/arm-fpa.c: Likewise.
6986 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6987 * features/arm/arm-m-profile.c: Likewise.
6988 * features/arm/arm-vfpv2.c: Likewise.
6989 * features/arm/arm-vfpv3.c: Likewise.
6990 * features/arm/xscale-iwmmxt.c: Likewise.
6991 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6992
166a82be
AH
69932019-07-10 Alan Hayward <alan.hayward@arm.com>
6994
6995 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6996 ptrace earlier.
6997
9fb4c7e9
AH
69982019-07-10 Alan Hayward <alan.hayward@arm.com>
6999
7000 * features/aarch64-pauth.c: Regenerate.
7001
e2d0f980
SM
70022019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7003
7004 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7005 bool.
7006 (bpstat_what): Use false instead of 0.
7007
a38118e5
PA
70082019-07-09 Pedro Alves <palves@redhat.com>
7009
7010 * break-catch-throw.c (is_exception_catchpoint): New.
7011 * breakpoint.c (print_one_breakpoint_location): New parameter
7012 'raw_loc'. Handle it. Use
7013 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7014 looking at the breakpoint's type.
7015 (print_one_breakpoint): If handling "maint info breakpoints", also
7016 print locations of exception catchpoints.
7017 * breakpoint.h (is_exception_catchpoint): Declare.
7018
cb1e4e32
PA
70192019-07-09 Pedro Alves <palves@redhat.com>
7020
7021 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7022 "addr" field.
7023 (allocate_location_exception_catchpoint): New.
7024 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7025 (initialize_throw_catchpoint_ops): Install
7026 allocate_location_exception_catchpoint as allocate_location
7027 method.
7028 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7029 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7030 bp_loc_other.
7031 (breakpoint_address_is_meaningful): Delete.
7032 (bl_address_is_meaningful): New.
7033 (breakpoint_locations_match): Adjust comment.
7034 (bp_location_from_bp_type): New, factored out of...
7035 (bp_location::bp_location(breakpoint *)): ... this.
7036 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7037 factored out of...
7038 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7039 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7040 breakpoint_address_is_meaningful.
7041 (bp_locations_compare): Adjust comment.
7042 (update_global_location_list): Use bl_address_is_meaningful
7043 instead of breakpoint_address_is_meaningful.
7044 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7045 explicit.
7046 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7047 * python/py-breakpoint.c (bppy_get_location): No longer check
7048 whether location is null.
7049
b58a68fe
PA
70502019-07-09 Pedro Alves <palves@redhat.com>
7051
7052 PR c++/15468
7053 * breakpoint.c (print_one_breakpoint_location): Remove
7054 single-location assert.
7055
268a13a5
TT
70562019-07-09 Tom Tromey <tom@tromey.com>
7057
7058 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7059 * configure: Rebuild.
7060 * configure.ac: Change common to gdbsupport.
7061 * gdbsupport: Rename from common.
7062 * acinclude.m4: Change common to gdbsupport.
7063 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7064 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7065 gdbsupport.
7066 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7067 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7068 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7069 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7070 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7071 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7072 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7073 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7074 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7075 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7076 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7077 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7078 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7079 coff-pe-read.c, command.h, compile/compile-c-support.c,
7080 compile/compile-c.h, compile/compile-cplus-symbols.c,
7081 compile/compile-cplus-types.c, compile/compile-cplus.h,
7082 compile/compile-loc2c.c, compile/compile.c, completer.c,
7083 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7084 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7085 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7086 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7087 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7088 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7089 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7090 features/aarch64-core.c, features/aarch64-fpu.c,
7091 features/aarch64-pauth.c, features/aarch64-sve.c,
7092 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7093 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7094 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7095 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7096 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7097 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7098 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7099 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7100 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7101 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7102 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7103 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7104 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7105 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7106 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7107 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7108 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7109 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7110 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7111 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7112 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7113 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7114 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7115 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7116 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7117 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7118 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7119 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7120 minsyms.c, mips-linux-tdep.c, namespace.h,
7121 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7122 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7123 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7124 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7125 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7126 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7127 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7128 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7129 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7130 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7131 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7132 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7133 procfs.c, producer.c, progspace.h, psymtab.h,
7134 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7135 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7136 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7137 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7138 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7139 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7140 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7141 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7142 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7143 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7144 target-memory.c, target.c, target.h, target/waitstatus.c,
7145 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7146 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7147 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7148 unittests/array-view-selftests.c,
7149 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7150 unittests/common-utils-selftests.c,
7151 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7152 unittests/format_pieces-selftests.c,
7153 unittests/function-view-selftests.c,
7154 unittests/lookup_name_info-selftests.c,
7155 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7156 unittests/mkdir-recursive-selftests.c,
7157 unittests/observable-selftests.c,
7158 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7159 unittests/parse-connection-spec-selftests.c,
7160 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7161 unittests/scoped_fd-selftests.c,
7162 unittests/scoped_mmap-selftests.c,
7163 unittests/scoped_restore-selftests.c,
7164 unittests/string_view-selftests.c, unittests/style-selftests.c,
7165 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7166 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7167 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7168 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7169 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7170 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7171
5b0e2db4
AB
71722019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7175 bool value.
7176 (decode_digits_ordinary): Set explicit_line field in sal.
7177 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7178 symtab_and_line that was set on an explicit line number in
7179 assembler code. Do always update the recorded symtab and line if
7180 we do skip the prologue.
7181
0ba852ab
AB
71822019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * breakpoint.c (set_breakpoint_location_function): Remove
7185 explicit_loc parameter.
7186 (momentary_breakpoint_from_master): Update call to
7187 set_breakpoint_location_function.
7188 (add_location_to_breakpoint): Likewise.
7189
b3a7d171
AB
71902019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7193 required features based on default bfd type when no specific bfd
7194 is present.
7195
1f6f6e21
PW
71962019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7197
7198 * NEWS: Mention that GDB printf and eval commands can now print
7199 C-style and Ada-style convenience var strings without
7200 calling the inferior.
7201 * printcmd.c (printf_c_string): Locally print GDB internal var
7202 instead of transiting via the inferior.
7203 (printf_wide_c_string): Likewise.
7204
72052019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7206
5862c886 7207 PR breakpoints/25011
ea142fbf
AH
7208 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7209
0598af48
TT
72102019-07-04 Tom Tromey <tom@tromey.com>
7211
7212 PR tui/24724:
7213 * tui/tui-winsource.c (tui_clear_source_content): Update.
7214 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7215 (tui_update_breakpoint_info): Update.
7216 (tui_set_exec_info_content): Update.
7217 * tui/tui-source.c (tui_set_source_content_nil): Update.
7218 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7219 has_break.
7220 * tui/tui-data.h (enum tui_bp_flag): New.
7221 (tui_bp_flags): New enum flags type.
7222 (struct tui_source_element) <break_mode>: Change type. Rename
7223 from has_break.
7224 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7225 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7226 constants.
7227 * tui/tui-winsource.h: Fix comment.
7228
350fab54
AH
72292019-07-04 Alan Hayward <alan.hayward@arm.com>
7230
7231 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7232 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7233 (store_fpregs_to_thread)
7234 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7235 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7236 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7237 (IWMMXT_REGS_SIZE): Add define.
7238 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7239 (fetch_vfp_regs, store_vfp_regs)
7240 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7241 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7242
f0452268
AH
72432019-07-04 Alan Hayward <alan.hayward@arm.com>
7244
7245 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7246 defines.
7247 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7248 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7249 (ARM_INT_REGISTER_SIZE): ...to this.
7250 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7251 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7252 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7253 (arm_linux_collect_gregset, supply_nwfpe_register)
7254 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7255 defines.
7256 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7257 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7258 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7259 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7260 (arm_return_in_memory, arm_store_return_value)
7261 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7262 (arm_record_ld_st_multiple): Likewise.
7263 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7264 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7265
e935475c
AH
72662019-07-04 Alan Hayward <alan.hayward@arm.com>
7267
7268 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7269 AARCH64_DISPLACED_MODIFIED_INSNS.
7270 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7271 (aarch64_displaced_step_copy_insn): Likewise.
7272 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7273 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7274 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7275 ARM_DISPLACED_MODIFIED_INSNS.
7276 * arm-tdep.c (arm_gdbarch_init): Likewise.
7277 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7278 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7279 (struct arm_displaced_step_closure): Use
7280 ARM_DISPLACED_MODIFIED_INSNS.
7281
df0bb381
AH
72822019-07-04 Alan Hayward <alan.hayward@arm.com>
7283
7284 * features/Makefile: Remove unused xml files.
7285 * features/aarch64.xml: Remove.
7286 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7287 * features/i386/amd64-avx-avx512.xml: Remove.
7288 * features/i386/amd64-avx-linux.xml: Remove.
7289 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7290 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7291 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7292 * features/i386/amd64-avx-mpx.xml: Remove.
7293 * features/i386/amd64-avx.xml: Remove.
7294 * features/i386/amd64-linux.xml: Remove.
7295 * features/i386/amd64-mpx-linux.xml: Remove.
7296 * features/i386/amd64-mpx.xml: Remove.
7297 * features/i386/amd64.xml: Remove.
7298 * features/i386/i386-avx-avx512-linux.xml: Remove.
7299 * features/i386/i386-avx-avx512.xml: Remove.
7300 * features/i386/i386-avx-linux.xml: Remove.
7301 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7302 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7303 * features/i386/i386-avx-mpx-linux.xml: Remove.
7304 * features/i386/i386-avx-mpx.xml: Remove.
7305 * features/i386/i386-avx.xml: Remove.
7306 * features/i386/i386-linux.xml: Remove.
7307 * features/i386/i386-mmx-linux.xml: Remove.
7308 * features/i386/i386-mmx.xml: Remove.
7309 * features/i386/i386-mpx-linux.xml: Remove.
7310 * features/i386/i386-mpx.xml: Remove.
7311 * features/i386/i386.xml: Remove.
7312 * features/i386/x32-avx-avx512-linux.xml: Remove.
7313 * features/i386/x32-avx-linux.xml: Remove.
7314 * features/i386/x32-linux.xml: Remove.
7315
edd6266a
AH
73162019-07-04 Alan Hayward <alan.hayward@arm.com>
7317
7318 * regformats/aarch64.dat: Remove.
7319 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7320 * regformats/i386/amd64-avx-linux.dat: Remove.
7321 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7322 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7323 * regformats/i386/amd64-linux.dat: Remove.
7324 * regformats/i386/amd64-mpx-linux.dat: Remove.
7325 * regformats/i386/amd64.dat: Remove.
7326 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7327 * regformats/i386/i386-avx-linux.dat: Remove.
7328 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7329 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7330 * regformats/i386/i386-linux.dat: Remove.
7331 * regformats/i386/i386-mmx-linux.dat: Remove.
7332 * regformats/i386/i386-mpx-linux.dat: Remove.
7333 * regformats/i386/i386.dat: Remove.
7334 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7335 * regformats/i386/x32-avx-linux.dat: Remove.
7336 * regformats/i386/x32-linux.dat: Remove.
7337
2b40fda7
AH
73382019-07-04 Alan Hayward <alan.hayward@arm.com>
7339
7340 * aarch64-tdep.c: Remove xml self tests.
7341 * amd64-linux-tdep.c: Likewise.
7342 * amd64-tdep.c: Likewise.
7343 * i386-linux-tdep.c: Likewise.
7344 * i386-tdep.c: Likewise.
7345
5f4ba3e7
PA
73462019-07-03 Pedro Alves <palves@redhat.com>
7347
7348 PR cli/24732
7349 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7350 (pipe_cmd_option_defs): New.
7351 (make_pipe_cmd_options_def_group): New.
7352 (pipe_command): Use gdb::option::process_options.
7353 (pipe_command_completer): New function.
7354 (_initialize_cli_cmds): Install completer for "pipe" command.
7355
3d9be6f5
PA
73562019-07-03 Pedro Alves <palves@redhat.com>
7357
7358 * cli/cli-option.c (union option_value) <string>: New field.
7359 (struct option_def_and_value): Add ctor, move ctor, dtor and
7360 use DISABLE_COPY_AND_ASSIGN.
7361 (option_def_and_value::clear_value): New.
7362 (parse_option, save_option_value_in_ctx, get_val_type_str)
7363 (add_setshow_cmds_for_options): Handle var_string.
7364 * cli-option.h (union option_def::var_address) <string>: New
7365 field.
7366 (struct string_option_def): New.
7367 * maint-test-options.c (struct test_options_opts): Add default
7368 ctor and use DISABLE_COPY_AND_ASSIGN.
7369 <string_opt>: New field.
7370 (test_options_opts::~test_options_opts): New.
7371 (test_options_opts::dump): Also dump "-string".
7372 (test_options_option_defs): Install "string.
7373
41fc454c
PA
73742019-07-03 Pedro Alves <palves@redhat.com>
7375
7376 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7377 option_value with a null enumeration.
7378 (complete_options): Save the option values in the context.
7379 (save_option_value_in_ctx): New, factored out from ...
7380 (process_options): ... here.
7381 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7382 of the function.
7383 * maint-test-options.c (test_options_opts::dump): New, factored
7384 out from ...
7385 (maintenance_test_options_command_mode): ... here.
7386 (maintenance_test_options_command_completion_result): Delete.
7387 (maintenance_test_options_command_completion_text): Update
7388 comment.
7389 (maintenance_show_test_options_completion_result): Change
7390 prototype. Just print
7391 maintenance_test_options_command_completion_text.
7392 (save_completion_result): New.
7393 (maintenance_test_options_completer_mode): Pass options context to
7394 complete_options, and then save a dump.
7395 (_initialize_maint_test_options): Use add_cmd to install "maint
7396 show test-options-completion-result".
7397
fdbc9870
PA
73982019-07-03 Pedro Alves <palves@redhat.com>
7399
7400 * NEWS (New commands): Mention "with" and "maint with".
7401 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7402 (with_command, with_command_completer): New.
7403 (pipe_command): Adjust to new repeat_previous
7404 interface.
7405 (_initialize_cli_cmds): Install the "with" command and its "w"
7406 alias.
7407 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7408 declarations.
7409 * cli/cli-setshow.c (parse_cli_var_uinteger)
7410 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7411 argument strings for all var_types.
7412 (get_setshow_command_value_string): New, factored out from ...
7413 (do_show_command): ... this.
7414 * cli/cli-setshow.h: Include <string>.
7415 (get_setshow_command_value_string): Declare.
7416 * command.h (repeat_previous): Now returns const char *. Adjust
7417 comment.
7418 * maint.c: Include "cli/cli-cmds.h".
7419 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7420 (_initialize_maint_cmds): Register the "maintenance with" command.
7421 * top.c (repeat_previous): Move bits from pipe_command here:
7422 Return the saved command line, if any; error out if there's no
7423 command to relaunch.
7424
c6ac8931
PA
74252019-07-03 Pedro Alves <palves@redhat.com>
7426
7427 * NEWS (New commands): Mention "maint set/show test-settings"
7428 instead of "maint test-settings".
7429 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7430 (maintenance_test_settings_set_list): Rename to ...
7431 (maintenance_set_test_settings_list): ... this.
7432 (maintenance_test_settings_show_list): Rename to ...
7433 (maintenance_show_test_settings_list): ... this.
7434 (maintenance_test_settings_cmd): Delete.
7435 (maintenance_test_settings_set_cmd): ...
7436 (maintenance_set_test_settings_cmd): ... this.
7437 (maintenance_test_settings_show_cmd): ...
7438 (maintenance_show_test_settings_cmd): ... this.
7439 (maintenance_test_settings_show_value_cmd):
7440 (maintenance_show_test_settings_value_cmd): ... this.
7441 (_initialize_maint_test_settings): No longer install the "maint
7442 test-settings" prefix command. Rename "maint test-settings set"
7443 to "maint set test-settings", and "maint test-settings show" to
7444 "maint show test-settings". Adjust all subcommands.
7445
d1fcf2fd
PA
74462019-07-03 Pedro Alves <palves@redhat.com>
7447
7448 * maint-test-settings.c: Fix file's intro comment. Replace all
7449 references to "test-options" with references to "test-settings",
7450 in comments.
7451
970f9d09
PA
74522019-07-03 Pedro Alves <palves@redhat.com>
7453
7454 * maint-test-settings.c (maintenance_test_settings_xxx)
7455 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7456 New.
7457 (maintenance_test_settings_enums): Use them.
7458 (maintenance_test_settings_enum): Default to
7459 maintenance_test_settings_xxx.
7460 (_initialize_maint_test_settings): Initialize
7461 MAINTENANCE_TEST_SETTINGS_FILENAME.
7462
f3869b1a
SM
74632019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * breakpoint.h (remove_breakpoints_inf): Change return type to
7466 void, move function documentation here.
7467 * breakpoint.c (remove_breakpoints_inf): Change return type to
7468 void, move function documentation to header.
7469
54d66006
PA
74702019-07-02 Pedro Alves <palves@redhat.com>
7471
7472 * NEWS (Completion improvements): Mention "info threads".
7473 * thread.c (struct info_threads_opts, info_threads_option_defs)
7474 (make_info_threads_options_def_group): New.
7475 (info_threads_command): Use gdb::option::process_options.
7476 (info_threads_command_completer): New.
7477 (_initialize_thread): Use gdb::option::build_help to build the
7478 help text for "info threads".
7479
854f6088
SM
74802019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7481
7482 * defs.h (generic_load): Move from here...
7483 * symfile.h (generic_load): ... to here. Rename name parameter
7484 to args.
7485 * symfile.c (generic_load): Add comment.
7486
54ee4252
TT
74872019-07-01 Tom Tromey <tromey@adacore.com>
7488
7489 * dwarf2read.c
7490 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7491 declaration of without_params. Fix formatting.
7492
65392b3e
TT
74932019-07-01 Tom Tromey <tromey@adacore.com>
7494
7495 * ada-exp.y (find_primitive_type): Update.
7496 * ada-lang.h (ada_lookup_symbol): Update.
7497 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7498 parameter.
7499 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7500
7d7571f0
SDJ
75012019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7502
7503 PR breakpoints/24541
7504 * gdbarch.c: Regenerate.
7505 * gdbarch.h: Regenerate.
7506 * gdbarch.sh: Add 'stap_adjust_register'.
7507 * i386-tdep.c: Include '<unordered_set>'.
7508 (i386_stap_adjust_register): New function.
7509 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7510 * stap-probe.c (stap_parse_register_operand): Call
7511 'gdbarch_stap_adjust_register'.
7512
5af5392a
SDJ
75132019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7514
7515 PR python/24742
7516 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7517 * python/python.c (do_start_initialization): Use 'xmalloc'
7518 instead of 'PyMem_Malloc'.
7519
10d06d82
TT
75202019-06-28 Tom Tromey <tromey@adacore.com>
7521
7522 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7523 for Ada.
7524
1b7f24cd
TT
75252019-06-27 Tom Tromey <tromey@adacore.com>
7526
7527 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7528 objfile_key.
7529 (arm_find_mapping_symbol, arm_record_special_symbol)
7530 (_initialize_arm_tdep): Update.
7531 (arm_objfile_data_free): Remove.
7532
3d507ff2
TT
75332019-06-27 Tom Tromey <tromey@adacore.com>
7534
7535 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7536 to cp_print_static_field.
7537
762c164d
TT
75382019-06-26 Tom Tromey <tromey@adacore.com>
7539
7540 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7541 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7542 declare.
7543
aa2f9bcf
AH
75442019-06-26 Alan Hayward <alan.hayward@arm.com>
7545
7546 * features/aarch64-core.c (create_feature_aarch64_core):
7547 Regenerate.
7548 * features/aarch64-core.xml: Add cpsr flags.
7549
3426ae57
AH
75502019-06-26 Alan Hayward <alan.hayward@arm.com>
7551
7552 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7553 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7554
4838e44c
SM
75552019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7556
7557 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7558 field.
7559 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7560 use.
7561 (arm_record_special_symbol): Don't insert new symbol in sorted
7562 position, push it at the end.
7563
54cc7474
SM
75642019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7565
7566 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7567 (arm_mapping_symbol_s): Remove.
7568 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7569 (arm_mapping_symbol_vec): New typedef.
7570 (struct arm_per_objfile): Add constructor.
7571 <section_maps>: Change type to
7572 std::unique_ptr<arm_mapping_symbol_vec[]>.
7573 (arm_compare_mapping_symbols): Remove.
7574 (arm_find_mapping_symbol): Adjust to section_maps type change.
7575 (arm_objfile_data_free): Call delete on arm_per_objfile.
7576 (arm_record_special_symbol): Adjust to section_maps type change.
7577 Allocate arm_per_objfile with new.
7578
b65b566c
PW
75792019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7580
7581 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7582 with the command prefix.
7583
c2fc64f5
TT
75842019-06-25 Tom Tromey <tom@tromey.com>
7585
7586 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7587 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7588
fb54fa76
TT
75892019-06-25 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7592 type.
7593 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7594 protected.
7595
f7952c57
TT
75962019-06-25 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-winsource.c
7599 (tui_source_window_base::set_is_exec_point_at): Add check against
7600 LOA_ADDRESS.
7601
17568d78
TT
76022019-06-25 Tom Tromey <tom@tromey.com>
7603
7604 * tui/tui-source.c (tui_set_source_content): Don't check before
7605 xfree.
7606 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7607
53e7cdba
TT
76082019-06-25 Tom Tromey <tom@tromey.com>
7609
7610 * tui/tui-winsource.h (tui_update_source_window_as_is)
7611 (tui_alloc_source_buffer, tui_line_is_displayed)
7612 (tui_addr_is_displayed): Change type of win_info.
7613 * tui/tui-winsource.c (tui_update_source_window_as_is)
7614 (tui_clear_source_content, tui_show_source_line)
7615 (tui_show_source_content, tui_source_window_base::refill)
7616 (tui_source_window_base::set_is_exec_point_at)
7617 (tui_source_window_base::set_is_exec_point_at)
7618 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7619 (tui_alloc_source_buffer, tui_line_is_displayed)
7620 (tui_addr_is_displayed): Change type of win_info. Update.
7621 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7622 (tui_source_window_base::do_make_visible_with_new_height):
7623 Update.
7624 * tui/tui-source.c (tui_set_source_content)
7625 (tui_set_source_content_nil)
7626 (tui_source_window::do_scroll_vertical): Update.
7627 * tui/tui-layout.c (show_layout): Update.
7628 * tui/tui-disasm.c (tui_set_disassem_content)
7629 (tui_disasm_window::do_scroll_vertical): Update.
7630 * tui/tui-data.h (tui_win_content): Remove.
7631 (struct tui_gen_win_info) <content, content_size>: Remove.
7632 (struct tui_source_element): Add initializers and destructor.
7633 (union tui_which_element, struct tui_win_element): Remove.
7634 (struct tui_source_window_base) <content>: New field.
7635 (struct tui_data_window): Remove destructor.
7636 (tui_alloc_content, tui_free_win_content)
7637 (tui_free_all_source_wins_content): Don't declare.
7638 * tui/tui-data.c (tui_initialize_static_data): Update.
7639 (init_content_element, tui_alloc_content): Remove.
7640 (~tui_gen_win_info): Update.
7641 (~tui_data_window, tui_free_all_source_wins_content)
7642 (tui_free_win_content, free_content, free_content_elements):
7643 Remove.
7644
7908abbf
TT
76452019-06-25 Tom Tromey <tom@tromey.com>
7646
7647 * tui/tui-winsource.h (tui_clear_source_content)
7648 (tui_erase_source_content, tui_show_source_content): Change type
7649 of win_info.
7650 * tui/tui-winsource.c (tui_clear_source_content)
7651 (tui_erase_source_content, tui_show_source_content): Change type
7652 of win_info.
7653 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7654 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7655 win_info.
7656 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7657 win_info.
7658 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7659
02c28df0
TT
76602019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-winsource.c (tui_clear_source_content)
7663 (tui_source_window_base::set_is_exec_point_at): Update.
7664 * tui/tui-source.c (tui_set_source_content_nil): Update.
7665 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7666 a bool.
7667 * tui/tui-data.c (init_content_element): Update.
7668
6658b1bf
TT
76692019-06-25 Tom Tromey <tom@tromey.com>
7670
7671 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7672 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7673 * tui/tui-layout.c (init_and_make_win): Update.
7674 * tui/tui.h (enum tui_win_type): Update.
7675 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7676 tui_win_is_auxillary.
7677 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7678 tui_win_is_auxillary.
7679
21e1c91e
TT
76802019-06-25 Tom Tromey <tom@tromey.com>
7681
7682 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7683 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7684 (tui_delete_data_content_windows, tui_display_all_data)
7685 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7686 Update.
7687 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7688 * tui/tui-regs.c (tui_last_regs_line_no)
7689 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7690 (tui_show_registers): Update.
7691 (tui_show_register_group): Return void. Update.
7692 (tui_display_registers_from, tui_display_reg_element_at_line)
7693 (tui_display_registers_from_line, tui_check_register_values):
7694 Update.
7695 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7696 member.
7697 (struct tui_data_window) <regs_content>: Now a std::vector.
7698 <regs_content_count>: Remove.
7699 (tui_add_content_elements, tui_free_data_content): Don't declare.
7700 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7701 (init_content_element): Remove DATA_WIN case. Add assert.
7702 (tui_add_content_elements): Remove.
7703 (tui_data_window): Update.
7704 (tui_free_data_content): Remove.
7705 (free_content_elements): Remove DATA_WIN case.
7706
115ac53b
TT
77072019-06-25 Tom Tromey <tom@tromey.com>
7708
7709 * tui/tui-data.c (tui_data_item_window): Update.
7710 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7711 * tui/tui-windata.c (tui_display_all_data)
7712 (tui_display_data_from_line): Update.
7713 (tui_check_data_values): Remove.
7714 * tui/tui-regs.c (tui_show_register_group)
7715 (tui_display_reg_element_at_line): Update.
7716 * tui/tui-hooks.c (tui_register_changed)
7717 (tui_refresh_frame_and_register_information): Call
7718 tui_check_register_values.
7719 * tui/tui-data.h (struct tui_data_window) <data_content,
7720 data_content_count, data_type>: Remove.
7721 (enum tui_data_type): Remove.
7722
7723 * tui/tui-data.c (tui_data_window::clear_detail)
7724 (~tui_data_window): Update.
7725
eaf9738b
TT
77262019-06-25 Tom Tromey <tom@tromey.com>
7727
7728 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7729 declare.
7730 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7731 Rename from tui_first_data_item_displayed. Update.
7732 (tui_data_window::refresh_all)
7733 (tui_data_window::do_scroll_vertical): Update.
7734 * tui/tui-data.h (struct tui_data_window)
7735 <first_data_item_displayed>: Declare new method.
7736
31ca4723
TT
77372019-06-25 Tom Tromey <tom@tromey.com>
7738
7739 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7740 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7741 contents...
7742 (tui_initialize_static_data): ...here.
7743
41bcff7f
TT
77442019-06-25 Tom Tromey <tom@tromey.com>
7745
7746 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7747 (tui_display_registers_from, tui_check_register_values): Update.
7748 (tui_display_register): Remove win_info parameter; update.
7749 (tui_get_register): Change type of parameters.
7750 * tui/tui-data.h (struct tui_data_element): Remove.
7751 (union tui_which_element) <data>: Remove.
7752 <data_window>: Change type.
7753 (struct tui_data_item_window): New.
7754 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7755 case. Add assert.
7756 (~tui_data_item_window): New destructor.
7757 (free_content_elements): Remove DATA_ITEM_WIN case.
7758
d2802c33
TT
77592019-06-25 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7762 Remove.
7763
dd835f8b
TT
77642019-06-25 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-data.h (struct tui_command_element): Remove.
7767 (union tui_which_element) <command>: Remove.
7768 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7769 assert.
7770 (free_content_elements): Remove CMD_WIN case.
7771
bd7db367
TT
77722019-06-25 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-layout.c (tui_set_layout): Update.
7775 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7776 * tui/tui-data.c (layout_def): Update.
7777
3add462f
TT
77782019-06-25 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7781 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7782 (tui_source_window_base::set_new_height): Update.
7783 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7784 Update.
7785 (tui_set_locator_fullname, tui_set_locator_info)
7786 (tui_show_frame_info): Update.
7787 * tui/tui-source.c (tui_set_source_content)
7788 (tui_source_is_displayed): Update.
7789 * tui/tui-layout.c (show_source_disasm_command, show_data)
7790 (show_source_or_disasm_and_command): Update.
7791 * tui/tui-disasm.c (tui_set_disassem_content)
7792 (tui_get_begin_asm_address): Update.
7793 * tui/tui-data.h (struct tui_locator_element): Remove.
7794 (union tui_which_element) <locator>: Remove.
7795 (struct tui_locator_window): New.
7796 (tui_locator_win_info_ptr): Change return type.
7797 * tui/tui-data.c (_locator): Change type.
7798 (tui_locator_win_info_ptr): Change return type.
7799 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7800 (tui_alloc_content): Add assert.
7801
489e9d8b
TT
78022019-06-25 Tom Tromey <tom@tromey.com>
7803
7804 * tui/tui-winsource.c
7805 (tui_exec_info_window::maybe_allocate_content): New method.
7806 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7807 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7808 (make_source_or_disasm_window): Add cast.
7809 * tui/tui-data.h (union tui_which_element) <simple_string>:
7810 Remove.
7811 (struct tui_source_info): New.
7812 (struct tui_source_window_base) <execution_info>: Change type.
7813 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7814 case, and add assert.
7815 (tui_alloc_content): Add assert.
7816
c3fabb7d
TT
78172019-06-25 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7820 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7821 * tui/tui-data.c (tui_alloc_win_info): Remove.
7822
bbc228ee
TT
78232019-06-25 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7826 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7827 can_highlight.
7828
5fcee43a
TT
78292019-06-25 Tom Tromey <tom@tromey.com>
7830
7831 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7832 make_visible_with_new_height method.
7833 (tui_win_info::make_visible_with_new_height): New method.
7834 (tui_source_window_base::do_make_visible_with_new_height)
7835 (tui_data_window::do_make_visible_with_new_height)
7836 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7837 (make_visible_with_new_height): Remove.
7838 (tui_resize_all, tui_adjust_win_heights): Use
7839 make_visible_with_new_height method.
7840 * tui/tui-data.h (struct tui_win_info)
7841 <do_make_visible_with_new_height, make_visible_with_new_height>:
7842 New methods.
7843 (struct tui_source_window_base, struct tui_data_window)
7844 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7845 methods.
7846
d83f1fe6
TT
78472019-06-25 Tom Tromey <tom@tromey.com>
7848
7849 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7850 method.
7851 (update_tab_width): Call update_tab_width method.
7852 * tui/tui-data.h (struct tui_win_info)
7853 (struct tui_source_window_base) <update_tab_width>: New methods.
7854
17374de4
TT
78552019-06-25 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7858 parameter.
7859 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7860 parameter.
7861 (tui_gen_win_info::make_visible): Update.
7862 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7863 parameter.
7864 * tui/tui-data.h (enum tui_box): New enum.
7865 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7866
f936bca2
TT
78672019-06-25 Tom Tromey <tom@tromey.com>
7868
7869 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7870 init_and_make_win for EXEC_INFO_WIN.
7871 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7872 longer inline.
7873 (struct tui_win_info) <~tui_win_info>: Inline.
7874 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7875 Don't declare.
7876 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7877 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7878 Remove.
7879 (tui_initialize_static_data): Update.
7880 (~tui_gen_win_info): Handle more cleanup here.
7881 (~tui_source_window_base): Delete "execution_info".
7882 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7883
d6ba6a11
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-layout.c (make_command_window): Don't set
7887 can_highlight.
7888 (show_source_disasm_command): Call the reset method.
7889 (show_data): Don't set can_highlight. Call the reset method.
7890 (tui_gen_win_info::reset): Rename from init_gen_win_info
7891 (init_and_make_win): Simplify. Return tui_gen_win_info.
7892 (show_source_or_disasm_and_command): Call the reset method.
7893 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7894 (struct tui_cmd_window): Set can_highlight.
7895
48a3bd16
TT
78962019-06-25 Tom Tromey <tom@tromey.com>
7897
7898 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7899 from make_visible.
7900 (tui_make_visible, tui_make_invisible): Rewrite.
7901 (tui_win_info::make_visible): Remove.
7902 (tui_source_window_base::make_visible): Update.
7903 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7904 method. Moved from...
7905 (struct tui_win_info) <make_visible>: ...here.
7906
c3bd716f
TT
79072019-06-25 Tom Tromey <tom@tromey.com>
7908
7909 * tui/tui-winsource.c
7910 (tui_source_window_base::do_scroll_horizontal): Remove direction
7911 parameter.
7912 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7913 direction parameter.
7914 * tui/tui-win.c (tui_win_info::forward_scroll)
7915 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7916 (tui_win_info::right_scroll): Update.
7917 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7918 direction parameter.
7919 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7920 direction parameter.
7921 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7922 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7923 Remove direction parameter.
7924 (struct tui_source_window_base, struct tui_source_window)
7925 (struct tui_disasm_window, struct tui_data_window)
7926 (struct tui_cmd_window): Update.
7927
21c32dca
TT
79282019-06-25 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-winsource.h (tui_set_exec_info_content)
7931 (tui_show_exec_info_content, tui_erase_exec_info_content)
7932 (tui_clear_exec_info_content, tui_update_exec_info): Change
7933 argument to tui_source_window_base.
7934 * tui/tui-winsource.c (tui_set_exec_info_content)
7935 (tui_show_exec_info_content, tui_erase_exec_info_content)
7936 (tui_clear_exec_info_content, tui_update_exec_info): Change
7937 argument to tui_source_window_base.
7938
73fbdc65
TT
79392019-06-25 Tom Tromey <tom@tromey.com>
7940
7941 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7942 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7943
33325343
TT
79442019-06-25 Tom Tromey <tom@tromey.com>
7945
7946 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7947 check.
7948
29d2c474
TT
79492019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7952 type to void.
7953 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7954 type to void.
7955 * tui/tui-source.c (tui_set_source_content): Update.
7956 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7957
152f3f4b
TT
79582019-06-25 Tom Tromey <tom@tromey.com>
7959
7960 * tui/tui-win.c (window_name_completer, tui_set_focus)
7961 (tui_all_windows_info): Use name method.
7962 * tui/tui-data.h (struct tui_gen_win_info)
7963 (struct tui_source_window, struct tui_disasm_window)
7964 (struct tui_data_window, struct tui_cmd_window) <name>: New
7965 method.
7966 (tui_win_name): Don't declare.
7967 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7968 (tui_win_name): Remove.
7969
be4da588
TT
79702019-06-25 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-winsource.h (tui_update_source_window)
7973 (tui_update_source_window_as_is): Change parameter type.
7974 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7975 to be a tui_source_window_base.
7976 (tui_update_source_window_as_is): Likewise.
7977 * tui/tui-win.c (make_visible_with_new_height): Update.
7978
5b81daba
TT
79792019-06-25 Tom Tromey <tom@tromey.com>
7980
7981 * tui/tui-winsource.c (tui_erase_source_content)
7982 (tui_show_source_content, tui_show_exec_info_content)
7983 (tui_erase_exec_info_content): Use refresh_window method.
7984 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7985 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7986 from tui_refresh_win.
7987 (tui_data_window::refresh_window): New method.
7988 (tui_win_info::refresh, tui_source_window_base::refresh)
7989 (tui_refresh_all): Use refresh_window method.
7990 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7991 method.
7992 * tui/tui-regs.c (tui_display_register): Call refresh_window
7993 method.
7994 * tui/tui-layout.c (show_source_disasm_command)
7995 (show_source_or_disasm_and_command): Call refresh_window method.
7996 * tui/tui-data.h (struct tui_gen_win_info)
7997 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7998 New method.
7999
cb2ce893
TT
80002019-06-25 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui.c (tui_rl_other_window, tui_enable)
8003 (tui_is_window_visible, tui_get_command_dimension): Update.
8004 * tui/tui-winsource.c (tui_update_source_window_as_is)
8005 (tui_clear_source_content, tui_erase_source_content)
8006 (tui_show_source_line, tui_source_window_base::refill)
8007 (tui_source_window_base::do_scroll_horizontal)
8008 (tui_source_window_base::set_is_exec_point_at)
8009 (tui_update_breakpoint_info, tui_set_exec_info_content)
8010 (tui_alloc_source_buffer, tui_line_is_displayed)
8011 (tui_addr_is_displayed): Update.
8012 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8013 (tui_check_and_display_highlight_if_needed)
8014 (tui_win_info::make_visible, tui_win_info::refresh)
8015 (tui_refresh_all): Update.
8016 * tui/tui-windata.c (tui_first_data_item_displayed)
8017 (tui_delete_data_content_windows, tui_erase_data_content)
8018 (tui_display_all_data, tui_data_window::refresh_all)
8019 (tui_check_data_values): Update.
8020 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8021 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8022 (tui_win_info::backward_scroll, tui_refresh_all_win)
8023 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8024 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8025 (tui_source_window_base::set_new_height)
8026 (tui_data_window::set_new_height)
8027 (make_invisible_and_set_new_height)
8028 (make_visible_with_new_height, new_height_ok)
8029 (parse_scrolling_args): Update.
8030 * tui/tui-stack.c (tui_show_frame_info): Update.
8031 * tui/tui-source.c (tui_set_source_content)
8032 (tui_set_source_content_nil, tui_source_is_displayed)
8033 (tui_source_window::do_scroll_vertical): Update.
8034 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8035 (tui_display_registers_from, tui_display_reg_element_at_line)
8036 (tui_check_register_values, tui_reg_command): Update.
8037 * tui/tui-layout.c (tui_default_win_height)
8038 (show_source_disasm_command, show_data, init_and_make_win)
8039 (show_source_or_disasm_and_command): Update.
8040 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8041 (tui_redisplay_readline, tui_mld_flush)
8042 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8043 (tui_getc): Update.
8044 * tui/tui-disasm.c (tui_set_disassem_content)
8045 (tui_disasm_window::do_scroll_vertical): Update.
8046 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8047 Now virtual.
8048 (struct tui_win_info): Derive from tui_gen_win_info.
8049 <~tui_win_info>: Mark as override.
8050 <generic>: Remove member.
8051 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8052 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8053 (~tui_data_window, ~tui_win_info)
8054 (tui_free_all_source_wins_content): Update.
8055 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8056
ab313b35
TT
80572019-06-25 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-layout.c (init_and_make_win): Use new.
8060 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8061 destructor, initializers.
8062 (tui_alloc_generic_win_info): Don't declare.
8063 * tui/tui-data.c (_locator): Add argument to constructor.
8064 (source_win, disasm_win): New globals.
8065 (exec_info): Remove.
8066 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8067 Update.
8068 (tui_alloc_generic_win_info): Remove.
8069 (init_content_element): Use new.
8070 (tui_win_info::tui_win_info): Update.
8071 (free_content_elements) <case DATA_WIN>: Use delete.
8072
dc2c33e4
TT
80732019-06-25 Tom Tromey <tom@tromey.com>
8074
8075 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8076 * tui/tui-windata.c (tui_first_data_item_displayed)
8077 (tui_delete_data_content_windows): Update.
8078 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8079 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8080 (tui_display_registers_from, tui_check_register_values): Update.
8081 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8082 pointer.
8083 * tui/tui-data.c (init_content_element): Update. Allocate the new
8084 window.
8085 (tui_free_data_content): Update.
8086 (free_content_elements) <case DATA_WIN>: Free the window.
8087
214a5cbe
TT
80882019-06-25 Tom Tromey <tom@tromey.com>
8089
8090 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8091 Update.
8092 * tui/tui-layout.c (make_command_window)
8093 (show_source_disasm_command, show_data, init_and_make_win)
8094 (show_source_or_disasm_and_command): Update.
8095 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8096 method.
8097 <can_highight, is_highlighted>: Now bool.
8098 (tui_set_win_highlight): Don't declare.
8099 * tui/tui-data.c (tui_set_win_highlight): Remove.
8100
8e2daf15
TT
81012019-06-25 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-wingeneral.c (make_visible): Remove check of window
8104 type.
8105
8903bd8a
TT
81062019-06-25 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-win.c (tui_win_info::max_height)
8109 (tui_cmd_window::max_height): New methods.
8110 (new_height_ok): Call max_height.
8111 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8112 <max_height>: New method.
8113
3f02ce1e
TT
81142019-06-25 Tom Tromey <tom@tromey.com>
8115
8116 * tui/tui-win.c (tui_source_window_base::set_new_height)
8117 (tui_data_window::set_new_height): New methods.
8118 (make_invisible_and_set_new_height): Call set_new_height method.
8119 * tui/tui-data.h (struct tui_win_info)
8120 (struct tui_source_window_base, struct tui_data_window)
8121 <set_new_height>: New method.
8122
1825f487
TT
81232019-06-25 Tom Tromey <tom@tromey.com>
8124
8125 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8126 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8127 tui_refresh_data_win.
8128 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8129 method.
8130 (tui_refresh_all_win): Call the refresh_all method.
8131 (tui_set_focus): Likewise.
8132 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8133 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8134 Likewise.
8135
ad54d15b
TT
81362019-06-25 Tom Tromey <tom@tromey.com>
8137
8138 * tui/tui-winsource.h (tui_refill_source_window)
8139 (tui_set_is_exec_point_at): Don't declare.
8140 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8141 (tui_source_window_base::refill): Rename from
8142 tui_refill_source_window.
8143 (tui_source_window_base::do_scroll_horizontal): Update.
8144 (tui_source_window_base::set_is_exec_point_at): Rename from
8145 tui_set_is_exec_point_at.
8146 (tui_update_all_breakpoint_info): Update.
8147 * tui/tui-stack.c (tui_show_frame_info): Update.
8148 * tui/tui-layout.c (show_data): Add cast.
8149 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8150 * tui/tui-data.h (struct tui_source_window_base) <refill,
8151 set_is_exec_point_at>: New methods.
8152 (tui_source_windows, tui_add_to_source_windows): Update types.
8153 (tui_add_to_source_windows): Remove redundant declaration.
8154 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8155 (tui_source_windows): Change return type.
8156 (tui_clear_source_windows_detail): Update.
8157 (tui_add_to_source_windows): Change type of parameter.
8158 (tui_free_all_source_wins_content): Update.
8159
2042b506
TT
81602019-06-25 Tom Tromey <tom@tromey.com>
8161
8162 * tui/tui-wingeneral.c (tui_win_info::refresh)
8163 (tui_source_window_base::refresh): New methods.
8164 (tui_refresh_all): Call the refresh method.
8165 * tui/tui-data.h (struct tui_win_info)
8166 (struct tui_source_window_base) <refresh>: New method.
8167
56122977
TT
81682019-06-25 Tom Tromey <tom@tromey.com>
8169
8170 * tui/tui.h (tui_is_window_visible): Return bool.
8171 * tui/tui.c (tui_is_window_visible): Return bool.
8172 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8173 (tui_make_visible, tui_make_invisible)
8174 (tui_win_info::make_visible)
8175 (tui_source_window_base::make_visible, make_all_visible)
8176 (tui_make_all_visible, tui_make_all_invisible): Update.
8177 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8178 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8179 bool.
8180 (struct tui_win_info, struct tui_source_window_base)
8181 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8182 * tui/tui-data.c (tui_init_generic_part): Update.
8183
cda37efb
TT
81842019-06-25 Tom Tromey <tom@tromey.com>
8185
8186 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8187 (tui_source_window_base::make_visible): New methods.
8188 (make_all_visible): Make method call.
8189 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8190 (struct tui_source_window_base, struct tui_cmd_window): Override
8191 make_visible.
8192 (tui_win_is_source_type): Don't declare.
8193 * tui/tui-data.c (tui_win_is_source_type): Remove.
8194
6a0ee02c
TT
81952019-06-25 Tom Tromey <tom@tromey.com>
8196
8197 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8198 NULL check.
8199
63901aec
TT
82002019-06-25 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8203 Inline constructor. Add initializers for members.
8204 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8205 constructors; now inline in class.
8206
ceb13a13
TT
82072019-06-25 Tom Tromey <tom@tromey.com>
8208
8209 * tui/tui-regs.c (tui_show_registers): Update.
8210 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8211 bool.
8212 * tui/tui-data.c (tui_data_window::clear_detail)
8213 (tui_data_window): Update.
8214
238eb706
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-windata.c (tui_display_all_data)
8218 (tui_display_data_from_line, tui_display_data_from)
8219 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8220 Update.
8221 * tui/tui-regs.c (tui_last_regs_line_no)
8222 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8223 (tui_show_registers, tui_show_register_group)
8224 (tui_display_registers_from, tui_display_reg_element_at_line)
8225 (tui_display_registers_from_line, tui_check_register_values)
8226 (tui_reg_next, tui_reg_prev): Update.
8227 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8228 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8229 tui_data_window.
8230 (struct tui_win_info) <detail>: Remove. Add new fields from
8231 tui_data_info.
8232 (TUI_DATA_WIN): Add cast.
8233 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8234 (~tui_data_window): Simplify.
8235
81491aa0
TT
82362019-06-25 Tom Tromey <tom@tromey.com>
8237
8238 * tui/tui-layout.c (show_source_disasm_command)
8239 (show_source_or_disasm_and_command): Update.
8240 * tui/tui-io.c (update_cmdwin_start_line)
8241 (tui_redisplay_readline): Update.
8242 * tui/tui-data.h (struct tui_command_info): Remove.
8243 (struct tui_win_info) <detail>: Remove command_info member.
8244 (struct tui_data_window) <start_line>: New member, from
8245 tui_command_info.
8246 (TUI_CMD_WIN): Add casts.
8247
e6e41501
TT
82482019-06-25 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-winsource.c (tui_update_source_window)
8251 (tui_refill_source_window)
8252 (tui_source_window_base::do_scroll_horizontal)
8253 (tui_update_breakpoint_info, tui_set_exec_info_content)
8254 (tui_show_exec_info_content, tui_erase_exec_info_content)
8255 (tui_clear_exec_info_content): Update.
8256 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8257 Update.
8258 * tui/tui-win.c (make_invisible_and_set_new_height)
8259 (make_visible_with_new_height): Update.
8260 * tui/tui-source.c (tui_set_source_content)
8261 (tui_show_symtab_source): Update.
8262 * tui/tui-layout.c (extract_display_start_addr)
8263 (show_source_disasm_command, show_data)
8264 (make_source_or_disasm_window)
8265 (show_source_or_disasm_and_command): Update.
8266 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8267 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8268 "gdbarch".
8269 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8270 to tui_source_window_base.
8271 (struct tui_win_info) <detail>: Remove source_info member.
8272 (struct tui_source_window_base) <has_locator>: Inline.
8273 Move contents from tui_source_info; rename has_locator member to
8274 m_has_locator.
8275 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8276 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8277 header file.
8278 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8279 Simplify.
8280 (tui_free_all_source_wins_content): Cast to
8281 tui_source_window_base.
8282
44f0e208
TT
82832019-06-25 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-win.c (make_invisible_and_set_new_height)
8286 (make_visible_with_new_height): Call has_locator method.
8287 * tui/tui-layout.c (show_source_disasm_command, show_data)
8288 (show_source_or_disasm_and_command): Update for bool change.
8289 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8290 (tui_win_info) <has_locator>: New method.
8291 (struct tui_source_window_base) <has_locator>: New method.
8292 (tui_win_has_locator): Don't declare.
8293 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8294 from tui_win_has_locator.
8295 (tui_source_window_base): Use false, not FALSE.
8296
7778b912
TT
82972019-06-25 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8300 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8301 clear_detail method directly.
8302 (tui_clear_win_detail): Remove.
8303
f83d391c
TT
83042019-06-25 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8307 "this", not TUI_DISASM_WIN.
8308
13446e05
TT
83092019-06-25 Tom Tromey <tom@tromey.com>
8310
8311 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8312 declare.
8313 * tui/tui-winsource.c
8314 (tui_source_window_base::do_scroll_horizontal): Rename from
8315 tui_horizontal_source_scroll.
8316 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8317 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8318 from tui_vertical_data_scroll.
8319 * tui/tui-win.h (tui_scroll): Don't declare.
8320 * tui/tui-win.c (tui_win_info::forward_scroll)
8321 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8322 (tui_win_info::right_scroll): Rename and update.
8323 (tui_scroll_forward_command, tui_scroll_backward_command)
8324 (tui_scroll_left_command, tui_scroll_right_command): Update.
8325 (tui_scroll): Remove.
8326 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8327 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8328 from tui_vertical_source_scroll.
8329 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8330 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8331 from tui_vertical_disassem_scroll.
8332 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8333 do_scroll_horizontal>: New methods.
8334 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8335 Likewise.
8336 (struct tui_source_window_base): Add do_scroll_horizontal.
8337 (struct tui_source_window, struct tui_disasm_window): Add
8338 do_scroll_vertical.
8339 (struct tui_data_window, struct tui_cmd_window): Add
8340 do_scroll_horizontal and do_scroll_vertical.
8341 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8342
5cf82909
TT
83432019-06-25 Tom Tromey <tom@tromey.com>
8344
8345 * tui/tui-data.h (struct tui_source_window_base): New struct.
8346 (struct tui_source_window): Derive from tui_source_window_base.
8347 (struct tui_disasm_window): New struct.
8348 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8349 from tui_source_window::clear_detail.
8350 (tui_source_window_base): Rename from tui_source_window.
8351 (~tui_source_window_base): Rename from ~tui_source_window.
8352 (tui_alloc_win_info): Create a tui_disasm_window.
8353
ee1d42d6
TT
83542019-06-25 Tom Tromey <tom@tromey.com>
8355
8356 * tui/tui-data.h (struct tui_source_window)
8357 (struct tui_data_window): Declare destructors.
8358 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8359 destructors.
8360 (tui_win_info): Simplify.
8361
b4eb2452
TT
83622019-06-25 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-winsource.c (tui_display_main)
8365 (tui_update_source_windows_with_addr)
8366 (tui_update_all_breakpoint_info): Update.
8367 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8368 (new_height_ok, parse_scrolling_args): Update.
8369 * tui/tui-stack.c (tui_show_frame_info): Update.
8370 * tui/tui-data.h (struct tui_list): Remove.
8371 (tui_source_windows): Return a reference to a std::vector.
8372 * tui/tui-data.c (source_windows): Now a std::vector.
8373 (tui_source_windows): Change return type.
8374 (tui_clear_source_windows): Rewrite.
8375 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8376 (tui_free_all_source_wins_content): Rewrite.
8377
8761a91b
TT
83782019-06-25 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8381 (struct tui_data_window, struct tui_cmd_window): Declare
8382 clear_detail method.
8383 * tui/tui-data.c (tui_source_window::clear_detail)
8384 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8385 methods.
8386 (tui_clear_win_detail): Simplify.
8387
0ed69eda
TT
83882019-06-25 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-layout.c (make_source_window, make_disasm_window)
8391 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8392 Return the new window.
8393 (show_source_disasm_command, show_data)
8394 (show_source_or_disasm_and_command): Update.
8395
82432e10
TT
83962019-06-25 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8399 parameter. Return the new window.
8400 (show_source_disasm_command): Update and remove NULL check.
8401 (show_source_or_disasm_and_command): Update.
8402
ec328aa5
TT
84032019-06-25 Tom Tromey <tom@tromey.com>
8404
8405 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8406
33b906ab
TT
84072019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-data.h (struct tui_win_info): Make constructor
8410 protected. Make destructor virtual. Add initializers.
8411 (tui_source_window, tui_data_window, tui_cmd_window): New
8412 classes.
8413 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8414 constructor. Add "type" parameter.
8415 (tui_source_window, tui_data_window, tui_cmd_window): New
8416 constructors.
8417 (tui_alloc_win_info): Instantiate the appropriate subclass.
8418
e7e11af4
TT
84192019-06-25 Tom Tromey <tom@tromey.com>
8420
8421 * tui/tui-win.c (tui_resize_all): Use delete.
8422 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8423 destructor.
8424 (tui_free_window): Don't declare.
8425 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8426 Update.
8427
6792b55e
TT
84282019-06-25 Tom Tromey <tom@tromey.com>
8429
8430 * tui/tui-data.h (struct tui_win_info): Add constructor.
8431 * tui/tui-data.c (tui_alloc_win_info): Use new.
8432 (tui_free_window): Use delete.
8433
f95675e1
TT
84342019-06-22 Tom Tromey <tom@tromey.com>
8435
8436 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8437 declare.
8438 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8439
5bff081c
TT
84402019-06-22 Tom Tromey <tom@tromey.com>
8441
8442 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8443 declare.
8444 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8445
47e3f474
TV
84462019-06-22 Tom de Vries <tdevries@suse.de>
8447
8448 * dwarf2read.c (create_addrmap_from_aranges)
8449 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8450 instead of '%zu'.
8451
fd5866f6
SM
84522019-06-21 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * dwarf2read.h (dwarf2_section_info_def): Remove.
8455 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8456 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8457 std::vector<dwarf2_section_info>.
8458 (struct dwo_file) <~dwo_file>: Remove.
8459 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8460 types field.
8461 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8462 (dwarf2_read_debug_names): Likewise.
8463 (create_debug_types_hash_table): Change parameter type to
8464 array_view, adjust code accordingly.
8465 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8466 (partial_die_info::fixup): Likewise.
8467 (determine_prefix): Likewise.
8468 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8469
fb1eb2f9
SM
84702019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8471
8472 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8473 gdb_bfd_ref_ptr.
8474 <~dwo_file>: Remove call to gdb_bfd_unref.
8475 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8476 gdb_bfd_ref_ptr::get.
8477
51ac9db5
SM
84782019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8481 type to htab_up.
8482 * dwarf2read.c (struct dwo_file): Initialize fields.
8483 <~dwo_file>: New.
8484 (free_dwo_file): Remove, move content to ~dwo_file.
8485 (struct dwo_file_deleter): Remove.
8486 (dwo_file_up>: Remove custom deleter.
8487 (free_dwo_files): Remove.
8488 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8489 dwo_files.
8490 (process_skeletonless_type_units): Call unique_ptr::get.
8491 (allocate_dwo_file_hash_table): Add deleter to created hash
8492 table. Change return type to htab_up.
8493 (lookup_dwo_file_slot): Don't memset dwo_file, call
8494 unique_ptr::get.
8495 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8496 (create_dwo_unit_in_dwp_v2): Likewise.
8497 (open_and_init_dwo_file): Likewise.
8498 (free_dwo_file_from_slot): Remove.
8499
dc4ccb6f
SM
85002019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8501
8502 * dwarf2read.h (struct dwarf2_section_info) <readin,
8503 is_virtual>: Change type to bool.
8504 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8505 true instead of 1.
8506
e6a1c5cb
TT
85072019-06-19 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-data.h (tui_init_content_element): Don't declare.
8510
6f6ffbeb
TT
85112019-06-19 Tom Tromey <tom@tromey.com>
8512
8513 * tui/tui-data.h (tui_init_win_info): Don't declare.
8514
f23f598e
TV
85152019-06-19 Tom de Vries <tdevries@suse.de>
8516
8517 * dwarf2read.h (abstract_to_concrete): Change type to
8518 std::unordered_map<sect_offset, std::vector<sect_offset>,
8519 gdb::hash_enum<sect_offset>>.
8520
680e1bee
TT
85212019-06-19 Tom Tromey <tromey@adacore.com>
8522
8523 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8524 EVAL_AVOID_SIDE_EFFECTS specially.
8525
dcf37923
TT
85262019-06-19 Tom Tromey <tromey@adacore.com>
8527
8528 * source-cache.c (highlighter): New global.
8529 (source_cache::get_source_lines): Create a highlighter on demand.
8530
494986d5
AB
85312019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8532
8533 * defs.h (deprecated_interactive_hook): Delete declaration.
8534 * interps.c (clear_interpreter_hooks): Remove use of
8535 deprecated_interactive_hook.
8536 * top.c (deprecated_interactive_hook): Delete definition.
8537 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8538
3360b6e7
TV
85392019-06-18 Tom de Vries <tdevries@suse.de>
8540
8541 PR gdb/24515
8542 * dwarf2read.h (abstract_to_concrete): Change type from
8543 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8544 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8545 * dwarf2read.c (read_variable): Update.
8546 (dwarf2_fetch_die_loc_sect_off): Update.
8547
310b3441
TV
85482019-06-17 Tom de Vries <tdevries@suse.de>
8549
8550 PR gdb/24617
8551 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8552 accessing parent[parent_len - 1].
8553
ba9777be
PP
85542019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8555
8556 PR gdb/24364
8557 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8558 call dtrace_process_dof with NULL dof.
8559
2b9f6e89
TV
85602019-06-16 Tom de Vries <tdevries@suse.de>
8561
8562 PR gdb/24445
8563 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8564
431b3ead
TT
85652019-06-16 Tom Tromey <tom@tromey.com>
8566
8567 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8568 (make_all_visible): Use address of member.
8569
d04b44a1
TT
85702019-06-16 Tom Tromey <tom@tromey.com>
8571
8572 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8573 (tui_free_window, free_content, free_content_elements): Remove
8574 unnecessary cast.
8575 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8576 cast.
8577 * tui/tui-regs.c (tui_show_register_group)
8578 (tui_display_registers_from, tui_display_reg_element_at_line):
8579 Remove unnecessary cast.
8580
bf5142e7
AB
85812019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * linux-nat.c (normal_mask): Delete.
8584 (_initialize_linux_nat): Don't initialise normal_mask.
8585
c4973306
SM
85862019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8587
8588 PR gdb/24445
8589 * dwarf-index-write.h (write_psymtabs_to_index): Add
8590 dwz_basename parameter.
8591 * dwarf-index-write.c (write_gdbindex): Move file writing to
8592 write_gdbindex_1. Change return type void.
8593 (assert_file_size): Move up, remove filename parameter.
8594 (write_gdbindex_1): New function.
8595 (write_debug_names): Change return type to void, call
8596 assert_file_size.
8597 (struct index_wip_file): New struct.
8598 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8599 file logic to index_wip_file. Write index for dwz file if
8600 needed.
8601 (save_gdb_index_command): Pass basename of dwz file, if present.
8602 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8603 build-id of dwz file, if present.
8604 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8605 (dwarf2_get_dwz_file): Likewise.
8606 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8607 (dwarf2_get_dwz_file): Likewise.
8608
395f9c91
TT
86092019-06-16 Tom Tromey <tom@tromey.com>
8610
8611 * coffread.c (process_coff_symbol): Use xstrdup.
8612 * value.c (create_internalvar): Use xstrdup.
8613
cafb3438
TT
86142019-06-16 Tom Tromey <tom@tromey.com>
8615
8616 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8617 * breakpoint.c (stopin_command, stopat_command)
8618 (until_break_command, decode_location_default): Remove unnecessary
8619 cast.
8620 * utils.c (subset_compare): Remove unnecessary cast.
8621 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8622 cast.
8623 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8624 cast.
8625 * infcmd.c (path_command): Remove unnecessary cast.
8626 * coffread.c (decode_type): Remove unnecessary cast.
8627 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8628 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8629 * tui/tui-stack.c (tui_show_locator_content)
8630 (tui_show_frame_info): Remove unnecessary cast.
8631 * tui/tui-win.c (tui_scroll_forward_command)
8632 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8633 (parse_scrolling_args): Remove unnecessary cast.
8634 * tui/tui-data.c (init_win_info, tui_del_window)
8635 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8636 (free_content_elements): Remove unnecessary cast.
8637 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8638 unnecessary cast.
8639 * tui/tui-source.c (tui_set_source_content)
8640 (tui_vertical_source_scroll): Remove unnecessary cast.
8641 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8642 cast.
8643 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8644 * tui/tui-regs.c (tui_display_registers_from)
8645 (tui_display_register): Remove unnecessary cast.
8646 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8647 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8648 (make_visible): Remove unnecessary cast.
8649 * tui/tui-winsource.c (tui_erase_source_content)
8650 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8651 unnecessary cast.
8652 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8653 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8654 * stabsread.c (read_type, read_array_type, read_range_type):
8655 Remove unnecessary cast.
8656 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8657 (parse_symbol, parse_type, upgrade_type, parse_external)
8658 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8659 unnecessary cast.
8660 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8661
730ead81
TT
86622019-06-16 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-data.c (tui_alloc_generic_win_info)
8665 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8666 checks.
8667
584a927c
AB
86682019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8669 Andrew Burgess <andrew.burgess@embecosm.com>
8670
8671 * f-typeprint.c (f_print_type): Don't return early for not
8672 associated or not allocated types.
8673 (f_type_print_varspec_suffix): Add print_rank parameter and print
8674 ranks of array types in case they dangling.
8675 (f_type_print_base): Add print_rank parameter.
8676
30056ea0
AB
86772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * NEWS: Mention new MI commands.
8680 * break-catch-throw.c (enum exception_event_kind): Move to
8681 breakpoint.h.
8682 (print_mention_exception_catchpoint): Output text as a single
8683 message.
8684 (catch_exception_command_1): Rename to...
8685 (catch_exception_event): ...this, make non-static, update header
8686 command, and change some parameter types.
8687 (catch_catch_command): Update for changes to
8688 catch_exception_command_1.
8689 (catch_throw_command): Likewise.
8690 (catch_rethrow_command): Likewise.
8691 * breakpoint.c (enum exception_event_kind): Delete.
8692 * breakpoint.h (enum exception_event_kind): Moved here from
8693 break-catch-throw.c.
8694 (catch_exception_event): Declare.
8695 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8696 (mi_cmd_catch_throw): New function.
8697 (mi_cmd_catch_rethrow): New function.
8698 (mi_cmd_catch_catch): New function.
8699 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8700 'catch-catch' entries.
8701 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8702 (mi_cmd_catch_rethrow): Declare.
8703 (mi_cmd_catch_catch): Declare.
8704
ec8e2b6d
AB
87052019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * annotate.c (annotate_source_line): Change return type to void,
8708 update implementation to match.
8709 * annotate.h (annotate_source_line): Change return type to void,
8710 update header comment.
8711 * stack.c (print_frame_info): Don't change what frame information
8712 is printed based on whether annotations are on or not.
8713
0d3abd8c
AB
87142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8715
8716 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8717 (annotate_source): Make static.
8718 (annotate_source_line): Moved from source.c and renamed from
8719 identify_source_line. Update the return type.
8720 * annotate.h (annotate_source): Delete declaration.
8721 (annotate_source_line): Declaration moved from source.h, and
8722 renamed from identify_source_line. Return type updated.
8723 * source.c (identify_source_line): Moved to annotate.c and renamed
8724 to annotate_source_line.
8725 (info_line_command): Remove check of annotation_level.
8726 * source.h (identify_source_line): Move declaration to annotate.h
8727 and rename to annotate_source_line.
8728 * stack.c: Add 'annotate.h' include.
8729 (print_frame_info): Remove check of annotation_level before
8730 calling annotate_source_line.
8731
00df30ae
AB
87322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 * source-cache.c (source_cache::get_plain_source_lines): Use
8735 open_source_file_with_line_charpos instead of just
8736 open_source_file, remove call to find_source_lines.
8737 (source_cache::get_source_lines): Likewise.
8738 * source.c (find_source_lines): Make static.
8739 (get_filename_and_charpos): Renamed into...
8740 (open_source_file_with_line_charpos): ..this along with changes to
8741 return a scoped_fd, and some other minor clean ups.
8742 (identify_source_line): Use open_source_file_with_line_charpos.
8743 (search_command_helper): Use open_source_file_with_line_charpos
8744 instead of just open_source_file, remove call to
8745 find_source_lines.
8746 * source.h (open_source_file_with_line_charpos): Declare new
8747 function.
8748 (find_source_lines): Delete declaration.
8749
afda45a2
AB
87502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8751
8752 * source.c (get_filename_and_charpos): Remove fullname
8753 parameter.
8754 (identify_source_line): Update call to get_filename_and_charpos.
8755
0735b091
TT
87562019-06-14 Tom Tromey <tromey@adacore.com>
8757
8758 PR gdb/24502:
8759 * ui-style.h (skip_ansi_escape): Update comment.
8760 * ui-file.h (class no_terminal_escape_file): New class.
8761 * ui-file.c (no_terminal_escape_file::write)
8762 (no_terminal_escape_file::puts): New methods.
8763 * cli/cli-logging.c (handle_redirections): Use
8764 no_terminal_escape_file.
8765
52ce35e2
TT
87662019-06-14 Tom Tromey <tromey@adacore.com>
8767
8768 * NEWS: Move convenience variable news above Python news.
8769
73cc7272
TT
87702019-06-14 Tom Tromey <tom@tromey.com>
8771
8772 * gnulib: Move directory to top-level.
8773 * configure.ac: Don't configure gnulib.
8774 * configure: Rebuild.
8775 * common/common-defs.h: Use new path to gnulib.
8776 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8777 (GNULIB_H): Remove.
8778 (INCGNU): Look in new gnulib location.
8779 (HFILES_NO_SRCDIR): Remove gnulib files.
8780 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8781 (generated_files): Remove GNULIB_H.
8782 ($(LIBGNU), all-lib): Remove targets.
8783 (distclean): Don't mention GNULIB_BUILDDIR.
8784 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8785
f5686554
TT
87862019-06-14 Tom Tromey <tromey@adacore.com>
8787
8788 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8789 Warn if symbol file does not provide any symbols.
8790
a0c1ffed
TT
87912019-06-14 Tom Tromey <tromey@adacore.com>
8792
8793 * source.c (find_and_open_source): Respect basenames_may_differ.
8794
7c39e397
AB
87952019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8796
8797 * annotate.c (annotate_breakpoints_invalid): Make use of
8798 scoped_restore_terminal_state.
8799 (annotate_frames_invalid): Likewise.
8800
f411722c
TT
88012019-06-14 Tom Tromey <tromey@adacore.com>
8802
8803 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8804 allow assignment to an internalvar.
8805
4268ec18
TT
88062019-06-14 Tom Tromey <tromey@adacore.com>
8807
8808 * ada-lex.l: Allow "_" in attribute names.
8809
abdb711e
TT
88102019-06-14 Tom Tromey <tromey@adacore.com>
8811
8812 PR gdb/24653:
8813 * regcache.c (registers_changed): Don't call alloca.
8814 * top.c (execute_command): Don't call alloca.
8815
4c048731
PA
88162019-06-13 Pedro Alves <palves@redhat.com>
8817
8818 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8819 'expression'. When parsing an expression, error out if there's
8820 junk after "unlimited".
8821 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8822 (do_set_command): Adjust calls to is_unlimited_literal.
8823
66eb1ed3
PA
88242019-06-13 Pedro Alves <palves@redhat.com>
8825
8826 * compile/compile.c (make_compile_options_def_group): Add braces
8827 around array_view initializer.
8828 * thread.c (make_thread_apply_all_options_def_group)
8829 (make_thread_apply_all_options_def_group): Likewise.
8830
3345721a
PA
88312019-06-13 Pedro Alves <palves@redhat.com>
8832
8833 * NEWS (New commands): Mention "maint test-options
8834 require-delimiter", "maint test-options unknown-is-error", "maint
8835 test-options unknown-is-operand" and "maint show
8836 test-options-completion-result".
8837 (New command options, command completion): New section.
8838 (Completion improvements): New section.
8839 Mention that you can abbreviate "unlimited".
8840
6206060d
PA
88412019-06-13 Pedro Alves <palves@redhat.com>
8842
8843 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8844 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8845 * unittests/cli-utils-selftests.c (test_parse_flags)
8846 (test_parse_flags_qcs): Delete.
8847 (test_cli_utils): Don't call deleted functions.
8848
6665660a
PA
88492019-06-13 Pedro Alves <palves@redhat.com>
8850
8851 * thread.c: Include "cli/cli-option.h".
8852 (tp_array_compar_ascending): Global.
8853 (tp_array_compar): Delete function.
8854 (tp_array_compar_ascending, tp_array_compar_descending): New
8855 functions.
8856 (ascending_option_def, qcs_flag_option_def)
8857 (thr_qcs_flags_option_defs)
8858 (make_thread_apply_all_options_def_group)
8859 (make_thread_apply_options_def_group): New.
8860 (thread_apply_all_command): Use gdb::option::process_options.
8861 (thread_apply_command_completer)
8862 (thread_apply_all_command_completer): New.
8863 (thread_apply_command): Use gdb::option::process_options.
8864 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8865 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8866 to generate help text of "thread apply". Adjust "taas"'s help.
8867 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8868 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8869
f7e13587
PA
88702019-06-13 Pedro Alves <palves@redhat.com>
8871
8872 * thread.c (thread_apply_command): Check for invalid TID with
8873 isdigit instead of !isalpha.
8874
5d707134
PA
88752019-06-13 Pedro Alves <palves@redhat.com>
8876
8877 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8878 (validate_flags_qcs): New.
8879 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8880 (validate_flags_qcs): Declare.
8881 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8882 (make_frame_apply_options_def_group): New.
8883 (frame_apply_command_count): Process options with
8884 gdb::option::process_options.
8885 (frame_apply_completer): New.
8886 (frame_apply_level_completer, frame_apply_all_completer)
8887 (frame_apply_completer): New.
8888 (_initialize_stack): Update help of "frame apply", "frame apply
8889 level", "frame apply all" and "faas" to mention supported options
8890 and install command completers.
8891 * stack.h (frame_apply_all_completer): Declare.
8892 * thread.c: Include "stack.h".
8893 (tfaas_command): Add "--".
8894 (_initialize_thread): Update help "tfaas" to mention supported
8895 options and install command completer.
8896
272d4594
PA
88972019-06-13 Pedro Alves <palves@redhat.com>
8898
8899 * completer.c (complete_nested_command_line): New.
8900 (gdb_completion_word_break_characters_throw): Add assertion.
8901 * completer.h (complete_nested_command_line): Declare.
8902
90a1ef87
PA
89032019-06-13 Pedro Alves <palves@redhat.com>
8904
8905 * stack.c (parse_backtrace_qualifiers): New.
8906 (backtrace_command): Use it.
8907 (backtrace_command_completer): Complete on qualifiers.
8908
d4c16835
PA
89092019-06-13 Pedro Alves <palves@redhat.com>
8910
8911 * frame.c: Include "cli/cli-option.h.
8912 (user_set_backtrace_options): New.
8913 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8914 Delete.
8915 (get_prev_frame): Adjust.
8916 (boolean_option_def, uinteger_option_def)
8917 (set_backtrace_option_defs): New.
8918 (_initialize_frame): Adjust and use
8919 gdb::option::add_setshow_cmds_for_options to install "set
8920 backtrace past-main" and "set backtrace past-entry".
8921 * frame.h: Include "cli/cli-option.h".
8922 (struct frame_print_options): Forward declare.
8923 (print_frame_arguments_all, print_frame_arguments_scalars)
8924 (print_frame_arguments_none): Declare.
8925 (print_entry_values): Delete declaration.
8926 (struct frame_print_options, user_frame_print_options): New.
8927 (struct set_backtrace_options): New.
8928 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8929 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8930 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8931 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8932 (list_args_or_locals): Add frame_print_options parameter.
8933 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8934 * python/py-framefilter.c (enumerate_args): Pass down
8935 USER_FRAME_PRINT_OPTIONS.
8936 * stack.c: Include "cli/cli-option.h".
8937 (print_frame_arguments_all, print_frame_arguments_scalars)
8938 (print_frame_arguments_none): Declare.
8939 (print_raw_frame_arguments, print_entry_values): Delete.
8940 (user_frame_print_options): New.
8941 (boolean_option_def, enum_option_def, frame_print_option_defs):
8942 New.
8943 (struct backtrace_cmd_options): New.
8944 (bt_flag_option_def): New.
8945 (backtrace_command_option_defs): New.
8946 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8947 (print_frame_arg, read_frame_arg, print_frame_args)
8948 (print_frame_info, print_frame): Add frame_print_options parameter
8949 and use it.
8950 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8951 (backtrace_command_1): Add frame_print_options and
8952 backtrace_cmd_options parameters and use them.
8953 (make_backtrace_options_def_group): New.
8954 (backtrace_command): Process command options with
8955 gdb::option::process_options.
8956 (backtrace_command_completer): New.
8957 (_initialize_stack): Extend "backtrace"'s help to mention
8958 supported options. Install completer for "backtrace".
8959 Install some settings commands with add_setshow_cmds_for_options.
8960
2daf894e
PA
89612019-06-13 Pedro Alves <palves@redhat.com>
8962
8963 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8964 and that "set/show print raw frame-arguments" are now deprecated.
8965
8966 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8967 command.
8968 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8969 * stack.c (_initialize_stack): Install "set/show print
8970 raw-frame-arguments", and deprecate "set/show print raw
8971 frame-arguments".
8972 * valprint.c (_initialize_valprint): Deprecate "set/show print
8973 raw".
8974
e6ed716c
PA
89752019-06-13 Pedro Alves <palves@redhat.com>
8976
8977 * compile/compile.c (struct compile_options): New.
8978 (compile_flag_option_def, compile_command_option_defs)
8979 (make_compile_options_def_group): New.
8980 (compile_file_command): Handle options with
8981 gdb::option::process_options.
8982 (compile_file_command_completer): New function.
8983 (compile_code_command): Handle options with
8984 gdb::option::process_options.
8985 (compile_code_command_completer): New function.
8986 (_initialize_compiler): Install completers for "compile code" and
8987 "compile file". Mention available options in "compile code" and
8988 "compile code"'s help.
8989 * completer.c (advance_to_completion_word): New, factored out from
8990 ...
8991 (advance_to_expression_complete_word_point): ... this.
8992 (advance_to_filename_complete_word_point): New.
8993 * completer.h (advance_to_filename_complete_word_point): New
8994 declaration.
8995
7d8062de
PA
89962019-06-13 Pedro Alves <palves@redhat.com>
8997
8998 * compile/compile.c: Include "cli/cli-option.h".
8999 (compile_print_value): Scope data pointer is now a
9000 value_print_options pointer; adjust.
9001 (compile_print_command): Process options. Scope data pointer is
9002 now a value_print_options pointer; adjust.
9003 (_initialize_compile): Update "compile print"'s help to include
9004 supported options. Install a completer for "compile print".
9005 * cp-valprint.c (show_vtblprint, show_objectprint)
9006 (show_static_field_print): Delete.
9007 (_initialize_cp_valprint): Don't install "set print
9008 static-members", "set print vtbl", "set print object" here.
9009 * printcmd.c: Include "cli/cli-option.h" and
9010 "common/gdb_optional.h".
9011 (print_command_parse_format): Rework to fill in a
9012 value_print_options instead of a format_data.
9013 (print_value): Change parameter type from format_data pointer to
9014 value_print_options reference. Adjust.
9015 (print_command_1): Process options. Adjust to pass down a
9016 value_print_options.
9017 (print_command_completer): New.
9018 (_initialize_printcmd): Install print_command_completer as
9019 handle_brkchars completer for the "print" command. Update
9020 "print"'s help to include supported options.
9021 * valprint.c: Include "cli/cli-option.h".
9022 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9023 here from cp-valprint.c.
9024 (boolean_option_def, uinteger_option_def)
9025 (value_print_option_defs, make_value_print_options_def_group):
9026 New. Use gdb::option::add_setshow_cmds_for_options to install
9027 "set print elements", "set print null-stop", "set print repeats",
9028 "set print pretty", "set print union", "set print array", "set
9029 print address", "set print symbol", "set print array-indexes".
9030 * valprint.h: Include <string> and "cli/cli-option.h".
9031 (make_value_print_options_def_group): Declare.
9032 (print_value): Change parameter type from format_data pointer to
9033 value_print_options reference.
9034 (print_command_completer): Declare.
9035
9d0faba9
PA
90362019-06-13 Pedro Alves <palves@redhat.com>
9037
9038 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9039 (COMMON_SFILES): Add maint-test-settings.c.
9040 * cli/cli-decode.c (boolean_enums): New global, factored out from
9041 ...
9042 (add_setshow_boolean_cmd): ... here.
9043 * cli/cli-decode.h (boolean_enums): Declare.
9044 * cli/cli-option.c: New file.
9045 * cli/cli-option.h: New file.
9046 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9047 factored out from ...
9048 (parse_cli_boolean_value(const char *)): ... this.
9049 (is_unlimited_literal): Change parameter type to pointer to
9050 pointer. Adjust and advance ARG pointer.
9051 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9052 (parse_cli_var_enum): New, factored out from ...
9053 (do_set_command): ... this. Adjust.
9054 * cli/cli-setshow.h (parse_cli_boolean_value)
9055 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9056 (parse_cli_var_enum): Declare.
9057 * cli/cli-utils.c: Include "cli/cli-option.h".
9058 (get_ulongest): New.
9059 * cli/cli-utils.h (get_ulongest): Declare.
9060 (check_for_argument): New overloads.
9061 * maint-test-options.c: New file.
9062
2c722807
PA
90632019-06-13 Pedro Alves <palves@redhat.com>
9064
9065 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9066 parse a range if "-" is at the end of the string.
9067
dee7b4c8
PA
90682019-06-13 Pedro Alves <palves@redhat.com>
9069
9070 * cli/cli-setshow.c (parse_auto_binary_operation)
9071 (parse_cli_boolean_value): Don't allow "o".
9072
dca0f6c0
PA
90732019-06-13 Pedro Alves <palves@redhat.com>
9074
9075 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9076 * NEWS: Mention maint test-settings KIND.
9077 * maint-test-settings.c: New file.
9078
597bf39d
PA
90792019-06-13 Pedro Alves <palves@redhat.com>
9080
9081 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9082 completer.
9083 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9084 "set" completers.
9085
48c410fb
PA
90862019-06-13 Pedro Alves <palves@redhat.com>
9087
9088 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9089 after item.
9090
93bcb043
PA
90912019-06-13 Pedro Alves <palves@redhat.com>
9092
9093 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9094
cbba3ecd
PA
90952019-06-13 Pedro Alves <palves@redhat.com>
9096
9097 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9098 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9099 call.
9100 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9101 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9102 calls.
9103 (check_for_argument): Skip spaces after argument.
9104
b9a3f842
PA
91052019-06-13 Pedro Alves <palves@redhat.com>
9106
9107 * thread.c (thread_apply_command): Adjust TID parsing.
9108 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9109 detected before end of string.
9110 (tid_is_in_list): Error out if LIST is invalid.
9111
3844e605
PA
91122019-06-13 Pedro Alves <palves@redhat.com>
9113
9114 * completer.c (complete_line_internal_1): Rewind completion word
9115 point.
9116 (completion_tracker::advance_custom_word_point_by): Change
9117 parameter type to int.
9118 * completer.h (completion_tracker::advance_custom_word_point_by):
9119 Likewise.
9120
00b56dbe
PA
91212019-06-13 Pedro Alves <palves@redhat.com>
9122
9123 * completer.c (advance_to_completion_word): Handle delimiters.
9124
d106773e
PA
91252019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9126
9127 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9128
08f10e02
TT
91292019-06-11 Tom Tromey <tom@tromey.com>
9130
9131 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9132 (xmalloc_failed): Move to alloc.c.
9133 * alloc.c: New file.
9134 * Makefile.in (COMMON_SFILES): Add alloc.c.
9135
1c7fe951
TT
91362019-06-11 Tom Tromey <tom@tromey.com>
9137
9138 * nat/linux-waitpid.c: Don't include server.h.
9139 (linux_debug): Remove.
9140 (my_waitpid): Update.
9141
89549d7f
TT
91422019-06-11 Tom Tromey <tromey@adacore.com>
9143
9144 * infcall.c (_initialize_infcall): Remove trailing newline from
9145 help.
9146 * user-regs.c (_initialize_user_regs): Remove trailing newline
9147 from help.
9148 * typeprint.c (_initialize_typeprint): Remove trailing newline
9149 from help.
9150 * reverse.c (_initialize_reverse): Remove trailing newlines from
9151 help.
9152 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9153 from help.
9154 * language.c (add_set_language_command): Remove trailing newline
9155 from help.
9156 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9157 help.
9158 * disasm.c (_initialize_disasm): Remove trailing newline from
9159 help.
9160 * top.c (init_main): Remove trailing newline from help.
9161 * interps.c (_initialize_interpreter): Remove trailing newline
9162 from help.
9163 * btrace.c (_initialize_btrace): Remove trailing newlines from
9164 help.
9165 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9166 from help.
9167 * python/python.c (_initialize_python): Remove trailing newline
9168 from help.
9169 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9170 help.
9171 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9172 from help. Reformat some text.
9173 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9174 from help.
9175 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9176 newline from help.
9177
86108c13
TT
91782019-06-11 Tom Tromey <tromey@adacore.com>
9179
9180 * darwin-nat.c (darwin_decode_exception_message)
9181 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9182
a7067863
AB
91832019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * valops.c (value_slice): Check for not allocated or not
9186 associated values.
9187
9ab08412
TV
91882019-06-10 Tom de Vries <tdevries@suse.de>
9189
9190 PR gdb/24618
9191 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9192 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9193 invalid.
9194
f19e22e9
TV
91952019-06-10 Tom de Vries <tdevries@suse.de>
9196
9197 PR gdb/24611
9198 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9199 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9200
e99f9db0
TV
92012019-06-10 Tom de Vries <tdevries@suse.de>
9202
9203 PR symtab/24545
9204 * symtab.c (struct demangled_name_entry): Add language field.
9205 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9206 static minimal symbol". Set and use language field.
9207
9bf7038b
TT
92082019-06-10 Tom Tromey <tromey@adacore.com>
9209
9210 * ada-lang.c (_initialize_ada_language): Update help text.
9211
422186a9
TT
92122019-06-10 Tom Tromey <tromey@adacore.com>
9213
9214 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9215 with a newline.
9216 * guile/guile.c (handle_boot_error): Don't end warning with a
9217 newline.
9218 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9219 warning with a newline.
9220 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9221 newline.
9222 (s12z_frame_cache): Likewise.
9223 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9224 a newline.
9225 * solib-svr4.c (disable_probes_interface): Don't end warning with
9226 a newline.
9227 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9228 newline.
9229 * python/python.c (do_finish_initialization): Don't end warning
9230 with a newline.
9231
25ce02ee
TT
92322019-06-10 Tom Tromey <tom@tromey.com>
9233
9234 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9235 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9236 gdbpy_enter.
9237
caa429d8
TT
92382019-06-10 Tom Tromey <tromey@adacore.com>
9239
9240 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9241 data.
9242 (elf_new_init): Don't call stabsread_new_init.
9243 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9244 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9245 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9246
81873cc8
TV
92472019-06-10 Tom de Vries <tdevries@suse.de>
9248
9249 PR symtab/16264
9250 PR symtab/24517
9251 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9252
4fa0265e
РИ
92532019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9254
9255 * source.c (find_and_open_source): Also rewrite relative file
9256 names.
9257
1a3da2cd
AB
92582019-04-26 Amos Bird <amosbird@gmail.com>
9259
9260 * annotate.c (annotate_thread_exited): Add "thread-exited"
9261 annotation.
9262
3847a7bf
TT
92632019-06-06 Tom Tromey <tromey@adacore.com>
9264
9265 * maint.h (class scoped_command_stats): Use
9266 DISABLE_COPY_AND_ASSIGN.
9267 <print_time>: New method.
9268 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9269 print_time.
9270 (scoped_command_stats::print_time): New method.
9271
312617a3
AB
92722019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9273
9274 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9275 instructions of lengths 6 or 8 bytes.
9276
b02f78f9
PA
92772019-06-04 Pedro Alves <palves@redhat.com>
9278
9279 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9280
9281 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9282 * breakpoint.c (condition_completer): Likewise.
9283 * cli/cli-dump.c (scan_expression): Likewise.
9284 * common/filestuff.c (mkdir_recursive): Likewise.
9285 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9286 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9287 (gdb_abspath): Likewise.
9288 * compile/compile-cplus-types.c
9289 (compile_cplus_instance::decl_name): Likewise.
9290 * completer.c (complete_explicit_location):
9291 (signal_completer, reg_or_group_completer_1): Likewise.
9292 * cp-support.c (cp_remove_params_if_any): Likewise.
9293 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9294 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9295 * infcmd.c (strip_bg_char): Likewise.
9296 * linespec.c (copy_token_string): Likewise.
9297 * mi/mi-main.c (output_cores): Likewise.
9298 * psymtab.c (psymtab_search_name):
9299 * symfile.c (test_set_ext_lang_command): Likewise.
9300 * target.c (target_fileio_read_stralloc): Likewise.
9301 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9302 * value.c (complete_internalvar): Likewise.
9303
e1f2e1a2
CB
93042019-06-04 Christian Biesinger <cbiesinger@google.com>
9305
9306 Add objfile property to gdb.Type.
d3238f7d
PA
9307 * NEWS: Mention Python API addition.
9308 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9309
e664d728
PW
93102019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9311
9312 * NEWS: Mention the new set|show style [title|highlight].
9313 Mention changes to "show style", "help" and "apropos".
9314
66d8c862
PW
93152019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9316
9317 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9318 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9319 instead of print_help_for_command.
9320 (print_doc_of_command): New function.
9321 (help_list): Add 'apropos -v word' suggestion.
9322 (print_help_for_command): Style the command name using title style.
9323 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9324 (_initialize_cli_cmds): Describe -v in apropos_command help.
9325
9303eb2f
PW
93262019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9327
9328 * cli/cli-style.h (cli_style_option): Add name in constructor,
9329 add m_name class member, add constructor with intensity,
9330 add name class function.
9331 (cli_style_option::add_setshow_commands): Remove name argument.
9332 (highlight_style, title_style): New styles.
9333 * cli/cli-style.c (do_show): New function that shows a style
9334 characteristic styling the style name with itself.
9335 (set_style_name): New function.
9336 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9337 Update all callers according to the changes in cli/cli-style.h.
9338 * utils.h (fputs_highlighted): New function.
9339 * utils.c (fputs_highlighted): Likewise.
9340
e2c52041
PW
93412019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * NEWS: Mention new pipe command and new convenience variables.
9344
947d3946
PW
93452019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9346
9347 * cli/cli-cmds.c (pipe_command): New function.
9348 (_initialize_cli_cmds): Call add_com for pipe_command.
9349 Define | as an alias for pipe.
9350 (exit_status_set_internal_vars): New function.
9351 (shell_escape): Call exit_status_set_internal_vars.
9352 cli/cli-decode.c (find_command_name_length): Recognize | as
9353 a single character command.
9354
b8fd0918
PW
93552019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9356
9357 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9358 top.c (execute_command_to_ui_file): New function, mostly a copy
9359 of execute_command_to_string.
9360 (execute_command_to_string): Implement by calling
9361 execute_command_to_ui_file.
9362
68bb5386
PW
93632019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9364
9365 * top.h (saved_command_line): Remove declaration.
9366 * top.c (previous_saved_command_line, previous_repeat_arguments):
9367 New variables.
9368 (saved_command_line): Make static, define together with other
9369 'repeat variables'.
9370 (dont_repeat): Clear repeat_arguments.
9371 (repeat_previous, get_saved_command_line, save_command_line):
9372 New functions.
9373 (gdb_init): Initialize saved_command_line
9374 and previous_saved_command_line.
9375 * main.c (captured_main_1): Remove saved_command_line initialization.
9376 * event-top.c (handle_line_of_input): Update to use
9377 the new 'repeat' related functions instead of direct access to
9378 saved_command_line.
9379 * command.h (repeat_previous, get_saved_command_line,
9380 save_command_line): New declarations.
9381 (dont_repeat): Add comment.
9382
bfcdb852
TT
93832019-05-30 Tom Tromey <tromey@adacore.com>
9384
9385 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9386 Fix comment.
9387 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9388
0ef209f2
JV
93892019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9390
9391 PR cli/24587
9392 * completer.c (complete): Initialize variable word.
9393
955b06fa
SDJ
93942019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9395
9396 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9397 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9398 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9399 'body' is NULL to the outter 'if', protecting the '!is_define'
9400 situation as well.
9401
fa9c3fa0
TT
94022019-05-29 Tom Tromey <tromey@adacore.com>
9403
9404 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9405 (dwarf_unknown): New function.
9406 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9407 (dwarf_type_encoding_name): Use dwarf_unknown.
9408
4330d61d
TT
94092019-05-29 Tom Tromey <tromey@adacore.com>
9410
9411 PR c++/20020:
9412 * cp-valprint.c (cp_print_value_fields): Call
9413 cp_print_static_field inside "try".
9414
33a6bc35
TT
94152019-05-29 Tom Tromey <tromey@adacore.com>
9416
9417 * inflow.c (struct terminal_info): Add default operator=.
9418 * configure: Rebuild.
9419 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9420 -Wdeprecated-copy-dtor, -Wredundant-move.
9421
000439d5
TT
94222019-05-29 Tom Tromey <tromey@adacore.com>
9423
9424 * NEWS: Add entry.
9425 * infcmd.c (print_return_value_1): Handle finish_print
9426 option.
9427 (show_print_finish): New function.
9428 (_initialize_infcmd): Add "set/show print finish" commands.
9429 * valprint.c (user_print_options): Initialize new member.
9430 * valprint.h (struct value_print_options) <finish_print>: New
9431 member.
9432
c0e70c62
TT
94332019-05-28 Tom Tromey <tromey@adacore.com>
9434
9435 * ada-lang.c (ada_remove_Xbn_suffix)
9436 (find_old_style_renaming_symbol)
9437 (parse_old_style_renaming): Remove.
9438 (ada_find_renaming_symbol): Don't call
9439 find_old_style_renaming_symbol.
9440 (ada_is_renaming_symbol): Rename from
9441 ada_find_renaming_symbol. Remove "block" parameter. Return
9442 bool. Now static.
9443 (ada_read_var_value): Update and simplify.
9444 * ada-exp.y (write_var_or_type): Remove old code.
9445
766f8836
AH
94462019-05-28 Alan Hayward <alan.hayward@arm.com>
9447
68255adc 9448 PR gdb/25010
766f8836
AH
9449 * event-top.c: Remove include comment.
9450 * inflow.c (class scoped_ignore_sigttou): Move from here...
9451 * inflow.h (class scoped_ignore_sigttou): ...to here.
9452 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9453 * top.c: Remove include comment.
9454
eb41253a
TT
94552019-05-27 Tom Tromey <tom@tromey.com>
9456
9457 * NEWS: Fix typo.
9458
4ca51187
TT
94592019-05-22 Tom Tromey <tromey@adacore.com>
9460
9461 * target.c (target_follow_exec): Constify parameter.
9462 * target-delegates.c: Rebuild.
9463 * remote.c (remote_target::follow_exec): Constify parameter.
9464 * infrun.c (follow_exec): Constify parameter.
9465 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9466 (target_follow_exec): Likewise.
9467
8fca4da0
AH
94682019-05-22 Alan Hayward <alan.hayward@arm.com>
9469
9470 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9471 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9472
b7060614
AH
94732019-05-22 Alan Hayward <alan.hayward@arm.com>
9474
9475 * NEWS: Add debugredirect and testsuite sections.
9476
0a5954bd
SC
94772019-05-22 Simon Cook <simon.cook@embecosm.com>
9478
9479 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9480 target descriptions using exclusively floating point register name
9481 aliases.
9482
dc42e902
AB
94832019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9484
9485 PR gdb/18644:
9486 * f-lang.c (build_fortran_types): Handle the case where
9487 gdbarch_floatformat_for_type returns a nullptr.
9488
fb7806c7
TV
94892019-05-21 Tom de Vries <tdevries@suse.de>
9490
9491 PR cli/24587
9492 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9493
34d11c68
AB
94942019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9495
9496 PR gdb/18644:
9497 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9498 16-byte floats.
9499 * i386-tdep.c (i386_floatformat_for_type): Use
9500 floatformats_ia64_quad for the 16-byte floating point component
9501 within a fortran 32-byte complex number.
9502
122cf0f2
AB
95032019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9504
9505 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9506 delete default constructor.
9507 (find_partial_die): Update to return const struct.
9508 (partial_die_parent_scope): Move variable declaration into scope
9509 of its use and change its type to auto.
9510 (guess_partial_die_structure_name): Likewise.
9511 (partial_die_info::fixup): Likewise.
9512
33d0e35a
TT
95132019-05-17 Tom Tromey <tromey@adacore.com>
9514
9515 * source.c (find_and_open_source): Remove cast.
9516
a45575b0
TT
95172019-05-17 Tom Tromey <tromey@adacore.com>
9518
9519 * annotate.c (annotate_source): Make "filename" const.
9520 * annotate.h (annotate_source): Use const.
9521
81f47ac2
AH
95222019-05-17 Alan Hayward <alan.hayward@arm.com>
9523
9524 * disasm.c (set_disassembler_options): Send errors to stderr.
9525
ca1285d1
AH
95262019-05-17 Alan Hayward <alan.hayward@arm.com>
9527
9528 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9529 (cli_interp_base::set_logging): Check debug_redirect.
9530 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9531 * cli/cli-logging.c (debug_redirect): Add static variable.
9532 (pop_output_files): Add default param.
9533 (handle_redirections): Print debug setting.
9534 (show_logging_command): Likewise.
9535 (_initialize_cli_logging): Add debugredirect command.
9536 * interps.c (current_interp_set_logging): Add debug_redirect
9537 parameter.
9538 * interps.h (set_logging): Add debug_redirect parameter.
9539 (current_interp_set_logging): Likewise.
9540 * mi/mi-common.h: Likewise.
9541 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9542
95432019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9544 Tom Tromey <tromey@adacore.com>
9545
9546 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9547 directly.
9548 * cli/cli-interp.h (make_logging_output): Remove declaration.
9549 * cli/cli-logging.c (make_logging_output): Remove function.
9550 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9551 directly.
9552 * ui-file.c (tee_file::tee_file): Remove bools.
9553 (tee_file::~tee_file): Remove deletes.
9554 * ui-file.h (tee_file): Remove bools.
9555
26648588
JV
95562019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9557
9558 * mi/mi-cmds.h (mi_cmd_complete): New function.
9559 * mi/mi-main.c (mi_cmd_complete): Likewise.
9560 * mi/mi-cmds.c: Define new MI command -complete.
9561 * NEWS: Mention new -complete command.
9562
6e035501
JV
95632019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9564
9565 * completer.h (complete): New function.
9566 * completer.c (complete): Likewise.
9567 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9568 function defined in completer.h.
9569
7d0e2ece
JV
95702019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9571
e79be6e5 9572 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9573
fb816e8b
TV
95742019-05-17 Tom de Vries <tdevries@suse.de>
9575
9576 PR gdb/24094
9577 * dwarf2read.c (struct cu_partial_die_info): New struct.
9578 (find_partial_die): Return cu_partial_die_info.
9579 (partial_die_parent_scope, guess_partial_die_structure_name)
9580 (partial_die_info::fixup): Handle new return type of find_partial_die.
9581
677052f2
SDJ
95822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9583
a1726c38 9584 PR breakpoints/24541
677052f2
SDJ
9585 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9586 "std::string", simplifying the algorithm.
9587
f3da9116
SDJ
95882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9589
9590 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9591 (stap_static_probe_ops::get_probes): Likewise.
9592
f1bb75ab
SDJ
95932019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9594
9595 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9596 '-')" and "else if".
9597 (stap_parse_single_operand): Join checks for
9598 "gdbarch_stap_parse_special_token_p" and
9599 "gdbarch_stap_parse_special_token" in the same "if" statement.
9600 Invert check when verifying for operation on register
9601 displacement.
9602
3ca58cde
SDJ
96032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9604
9605 * stap-probe.c (stap_get_opcode): Update comment.
9606 (stap_get_expected_argument_type): Likewise.
9607 (handle_stap_probe): Likewise.
9608
af2d9bee
SDJ
96092019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9610
9611 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9612 return type to 'bool'. Adjust comment. Use 'bool' when
9613 appropriate.
9614 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9615 * stap-probe.c (stap_parse_argument_1): Likewise.
9616 (stap_is_operator): Likewise.
9617 (stap_is_generic_prefix): Likewise.
9618 (stap_is_register_prefix): Likewise.
9619 (stap_is_register_indirection_prefix): Likewise.
9620 (stap_is_integer_prefix): Likewise.
9621 (stap_generic_check_suffix): Likewise.
9622 (stap_check_integer_suffix): Likewise.
9623 (stap_check_register_suffix): Likewise.
9624 (stap_check_register_indirection_suffix): Likewise.
9625 (stap_parse_register_operand): Likewise.
9626 (stap_parse_single_operand): Likewise.
9627 (stap_parse_argument_1): Likewise.
9628 (stap_probe::get_argument_count): Likewise.
9629 (stap_is_operator): Likewise.
9630
61c9c421
TT
96312019-05-16 Tom Tromey <tromey@adacore.com>
9632
9633 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9634 keyword to foreach.
9635
9ddc1af1
SM
96362019-05-15 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * linux-thread-db.c (try_thread_db_load_1): Change return type
9639 to bool.
9640 (try_thread_db_load): Likewise.
9641 (try_thread_db_load_from_pdir_1): Likewise.
9642 (try_thread_db_load_from_pdir): Likewise.
9643 (try_thread_db_load_from_sdir): Likewise.
9644 (try_thread_db_load_from_dir): Likewise.
9645 (thread_db_load_search): Likewise.
9646 (has_libpthread): Likewise.
9647 (thread_db_load): Likewise.
9648
7bede828
SDJ
96492019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9650
9651 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9652 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9653 NULL, and complain/return if that's the case.
9654
c5358db4
JD
96552019-05-15 John Darrington <john@darrington.wattle.id.au>
9656
9657 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9658 (advance, posn, abstract_read_memory): New functions.
9659 [struct mem_read_abstraction]: New struct.
9660 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9661
c408a94f
TT
96622019-05-14 Tom Tromey <tromey@adacore.com>
9663
9664 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9665 value is not lval_memory.
9666
e7bd7fba
TT
96672019-05-14 Tom Tromey <tromey@adacore.com>
9668
9669 * solib.c (info_sharedlibrary_command): Style the file name.
9670
a6d0f249
AH
96712019-05-14 Alan Hayward <alan.hayward@arm.com>
9672
9673 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9674 (aarch64_vnv_type): Likewise.
9675 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9676 * common/tdesc.c: Likewise.
9677 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9678 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9679 * features/aarch64-fpu.xml: Add ieee half view.
9680 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9681 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9682 * gdbtypes.h (struct builtin_type): Likewise.
9683 (struct objfile_type): Likewise.
9684
66b8bb74
SM
96852019-05-12 Paul Naert <paul.naert@polymtl.ca>
9686
9687 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9688 typo.
9689 * location.h (string_to_event_location): Likewise.
9690
21c219fd
JB
96912019-05-11 Joel Brobecker <brobecker@adacore.com>
9692
9693 GDB 8.3 released.
9694
13674803
SM
96952019-05-10 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9698 New variable declaration.
9699 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9700 New variable.
9701 (print_one_breakpoint): Use ui_out::test_flags and new global
9702 variable to compute use_fixed_output.
9703 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9704 Remove.
9705 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9706 (mi_multi_location_breakpoint_output_fixed): Remove.
9707 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9708 new variable.
9709 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9710 fix_multi_location_breakpoint_output flag if version >= 3.
9711 * ui-out.h (enum ui_out_flag)
9712 <fix_multi_location_breakpoint_output>: New enumerator.
9713
a9eac7f9
SM
97142019-05-10 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9717
71bed2db
TT
97182019-05-10 Tom Tromey <tromey@adacore.com>
9719
9720 * ada-lang.c (catch_ada_completer): New function.
9721 (_initialize_ada_language): Use it.
9722
24c54127
TT
97232019-05-10 Tom Tromey <tromey@adacore.com>
9724
9725 * thread.c (print_thread_info): Make "requested_threads" const.
9726 * gdbthread.h (print_thread_info): Make "requested_threads"
9727 const.
9728 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9729 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9730
7a102139
TT
97312019-05-08 Tom Tromey <tom@tromey.com>
9732
9733 * gdbtypes.c (objfile_type_data): Change type.
9734 (objfile_type, _initialize_gdbtypes): Update.
9735
924d79e2
TT
97362019-05-08 Tom Tromey <tom@tromey.com>
9737
9738 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9739 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9740 (_initialize_dwarf2_frame): Update.
9741
4c58e337
TT
97422019-05-08 Tom Tromey <tom@tromey.com>
9743
9744 * objc-lang.c (objc_objfile_data): Change type.
9745 (find_methods): Update.
9746 (_initialize_objc_lang): Remove.
9747
d772d2ab
TT
97482019-05-08 Tom Tromey <tom@tromey.com>
9749
9750 * stabsread.c (rs6000_builtin_type_data): Change type.
9751 (rs6000_builtin_type, _initialize_stabsread): Update.
9752
d11d83f4
TT
97532019-05-08 Tom Tromey <tom@tromey.com>
9754
9755 * mips-tdep.c (mips_pdr_data): Remove.
9756 (_initialize_mips_tdep): Update.
9757
9a73f0ad
TT
97582019-05-08 Tom Tromey <tom@tromey.com>
9759
9760 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9761 (hppa_init_objfile_priv_data, read_unwind_info)
9762 (find_unwind_entry, _initialize_hppa_tdep): Update.
9763
8127a2fa
TT
97642019-05-08 Tom Tromey <tom@tromey.com>
9765
9766 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9767 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9768 on obstack.
9769 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9770
91d3055d
TT
97712019-05-08 Tom Tromey <tom@tromey.com>
9772
9773 * mdebugread.c (basic_type_data): Change type.
9774 (basic_type, _initialize_mdebugread): Update.
9775
31930bd3
TT
97762019-05-08 Tom Tromey <tom@tromey.com>
9777
9778 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9779
bdb3ed9e
TT
97802019-05-08 Tom Tromey <tom@tromey.com>
9781
9782 * nto-tdep.c (nto_inferior_data_reg): Change type.
9783 (nto_inferior_data): Update.
9784 (nto_inferior_data_cleanup, nto_new_inferior_data)
9785 (_initialize_nto_tdep): Remove.
9786 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9787
f37b313d
TT
97882019-05-08 Tom Tromey <tom@tromey.com>
9789
9790 * ada-lang.c (struct ada_inferior_data): Add initializers.
9791 (ada_inferior_data): Change type.
9792 (ada_inferior_data_cleanup): Remove.
9793 (get_ada_inferior_data, ada_inferior_exit)
9794 (struct ada_pspace_data): Add initializers, destructor.
9795 (ada_pspace_data_handle): Change type.
9796 (get_ada_pspace_data): Update.
9797 (ada_pspace_data_cleanup): Remove.
9798
24699405
TT
97992019-05-08 Tom Tromey <tom@tromey.com>
9800
9801 * coffread.c (struct coff_symfile_info): Add initializers.
9802 (coff_objfile_data_key): Move lower. Change type.
9803 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9804 Update.
9805 (coff_free_info): Remove.
9806
d4e05d2f
TT
98072019-05-08 Tom Tromey <tom@tromey.com>
9808
9809 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9810 (fbsd_pspace_data_handle): Move lower. Change type.
9811 (get_fbsd_pspace_data): Update.
9812 (fbsd_pspace_data_cleanup): Remove.
9813 (_initialize_fbsd_tdep): Update.
9814
14ef6690
TT
98152019-05-08 Tom Tromey <tom@tromey.com>
9816
9817 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9818 (get_ada_tasks_pspace_data): Update.
9819 (ada_tasks_pspace_data_cleanup): Remove.
9820 (_initialize_tasks): Update.
9821 (ada_tasks_inferior_data_handle): Change type.
9822 (get_ada_tasks_inferior_data): Update.
9823 (ada_tasks_inferior_data_cleanup): Remove.
9824 (struct ada_tasks_pspace_data): Add initializers.
9825
814cf43a
TT
98262019-05-08 Tom Tromey <tom@tromey.com>
9827
9828 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9829 * symfile-debug.c (debug_sym_get_probes): Change type.
9830 * stap-probe.c (handle_stap_probe):
9831 (stap_static_probe_ops::get_probes): Change type.
9832 * probe.h (class static_probe_ops) <get_probes>: Change type.
9833 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9834 (parse_probes_in_pspace): Update.
9835 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9836 Update.
9837 (any_static_probe_ops::get_probes): Change type.
9838 * elfread.c (elfread_data): New typedef.
9839 (probe_key): Change type.
9840 (elf_get_probes): Likewise. Update.
9841 (probe_key_free): Remove.
9842 (_initialize_elfread): Update.
9843 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9844 Change type.
9845 (dtrace_process_dof_probe, dtrace_process_dof)
9846 (dtrace_static_probe_ops::get_probe): Change type.
9847
02dc647e
TT
98482019-05-08 Tom Tromey <tom@tromey.com>
9849
9850 * xcoffread.c (struct xcoff_symfile_info): Rename from
9851 coff_symfile_info. Add initializers.
9852 (xcoff_objfile_data_key): Move lower. Change type.
9853 (XCOFF_DATA): Rewrite.
9854 (xcoff_free_info): Remove.
9855 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9856 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9857 (xcoff_initial_scan): Update.
9858
09232438
TT
98592019-05-08 Tom Tromey <tom@tromey.com>
9860
9861 * solib-svr4.c (struct svr4_info): Add initializers and
9862 destructor.
9863 <probes_table>: Now an htab_up.
9864 (solib_svr4_pspace_data): Change type.
9865 (free_probes_table): Simplify.
9866 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9867 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9868 (probes_table_remove_objfile_probes, register_solib_event_probe)
9869 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9870 (_initialize_svr4_solib): Update.
9871
7b4a314f
TT
98722019-05-08 Tom Tromey <tom@tromey.com>
9873
9874 * remote.c (remote_pspace_data): Change type.
9875 (remote_pspace_data_cleanup): Remove.
9876 (get_remote_exec_file, set_pspace_remote_exec_file)
9877 (_initialize_remote): Update.
9878
51d3063a
TT
98792019-05-08 Tom Tromey <tom@tromey.com>
9880
9881 * breakpoint.c (breakpoint_objfile_key): Change type.
9882 (get_breakpoint_objfile_data): Update.
9883 (free_breakpoint_objfile_data): Remove.
9884 (_initialize_breakpoint): Update.
9885
89fb8848
TT
98862019-05-08 Tom Tromey <tom@tromey.com>
9887
9888 * linux-tdep.c (struct linux_info): Add initializers.
9889 (linux_inferior_data): Move. Change type.
9890 (invalidate_linux_cache_inf): Update.
9891 (linux_inferior_data_cleanup): Remove.
9892 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9893
e9b89e2d
TT
98942019-05-08 Tom Tromey <tom@tromey.com>
9895
9896 * auxv.c (auxv_inferior_data): Move. Change type.
9897 (auxv_inferior_data_cleanup): Remove.
9898 (invalidate_auxv_cache_inf): Rewrite.
9899 (get_auxv_inferior_data, _initialize_auxv): Update.
9900
8c42777c
TT
99012019-05-08 Tom Tromey <tom@tromey.com>
9902
9903 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9904 (symfile_debug_objfile_data_key): Change type.
9905 (symfile_debug_installed, debug_qf_has_symbols)
9906 (debug_qf_find_last_source_symtab)
9907 (debug_qf_forget_cached_source_info)
9908 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9909 (debug_qf_print_stats, debug_qf_dump)
9910 (debug_qf_expand_symtabs_for_function)
9911 (debug_qf_expand_all_symtabs)
9912 (debug_qf_expand_symtabs_with_fullname)
9913 (debug_qf_map_matching_symbols)
9914 (debug_qf_expand_symtabs_matching)
9915 (debug_qf_find_pc_sect_compunit_symtab)
9916 (debug_qf_map_symbol_filenames)
9917 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9918 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9919 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9920 (debug_sym_read_linetable, debug_sym_relocate): Update.
9921 (symfile_debug_free_objfile): Remove.
9922 (install_symfile_debug_logging, _initialize_symfile_debug):
9923 Update.
9924
5bfd760d
TT
99252019-05-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9928 allocate_on_obstack.
9929 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9930 (get_dwarf2_per_objfile): Update.
9931 (set_dwarf2_per_objfile): Remove.
9932 (dwarf2_has_info, dwarf2_get_section_info): Update.
9933 (dwarf2_free_objfile): Remove.
9934 (_initialize_dwarf2_read): Update.
9935
e85e19b4
TT
99362019-05-08 Tom Tromey <tom@tromey.com>
9937
9938 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9939 initializers.
9940 <unsupported_script_warning_printed,
9941 script_not_found_warning_printed>: Now bool.
9942 (auto_load_pspace_data): Change type.
9943 (~auto_load_pspace_info): Rename from
9944 auto_load_pspace_data_cleanup.
9945 (get_auto_load_pspace_data, init_loaded_scripts_info)
9946 (clear_section_scripts, maybe_print_unsupported_script_warning)
9947 (maybe_print_script_not_found_warning, _initialize_auto_load):
9948 Update.
9949
f6aa7436
TT
99502019-05-08 Tom Tromey <tom@tromey.com>
9951
9952 * objfiles.c (objfile_pspace_info): Add destructor and
9953 initializers.
9954 (objfiles_pspace_data): Change type.
9955 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9956 (get_objfile_pspace_data): Update.
9957 (objfiles_bfd_data): Change type.
9958 (get_objfile_bfd_data): Update.
9959 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9960
6ae614f6
TT
99612019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9964 Change type.
9965 (get_catch_syscall_inferior_data): Update.
9966 (catch_syscall_inferior_data_cleanup): Remove.
9967 (_initialize_break_catch_syscall): Update.
9968
6509b8eb
TT
99692019-05-08 Tom Tromey <tom@tromey.com>
9970
9971 * inflow.c (struct terminal_info): Add destructor and
9972 initializers.
9973 (inflow_inferior_data): Change type.
9974 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9975 (get_inflow_inferior_data, inflow_inferior_exit)
9976 (swap_terminal_info, _initialize_inflow): Update.
9977
35632941
TT
99782019-05-08 Tom Tromey <tom@tromey.com>
9979
9980 * target-dcache.c (target_dcache_cleanup): Remove.
9981 (target_dcache_aspace_key): Change type.
9982 (target_dcache_init_p, target_dcache_invalidate)
9983 (target_dcache_get, target_dcache_get_or_init)
9984 (_initialize_target_dcache): Update.
9985 * dcache.h (struct dcache_deleter): New.
9986
3017b94d
TT
99872019-05-08 Tom Tromey <tom@tromey.com>
9988
9989 * symtab.c (struct symbol_cache): Add destructor and
9990 initializers.
9991 (symbol_cache_key): Move. Change type.
9992 (make_symbol_cache, free_symbol_cache): Remove.
9993 (get_symbol_cache): Update.
9994 (symbol_cache_cleanup): Remove.
9995 (ALL_PSPACES, symbol_cache_flush)
9996 (maintenance_print_symbol_cache)
9997 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9998 Update.
9999
a32ad8c5
TT
100002019-05-08 Tom Tromey <tom@tromey.com>
10001
10002 * symtab.c (struct main_info): Add destructor and initializers.
10003 (main_progspace_key): Move. Change type.
10004 (get_main_info): Update.
10005 (main_info_cleanup): Remove.
10006 (_initialize_symtab): Update.
10007
5f6e90a0
TT
100082019-05-08 Tom Tromey <tom@tromey.com>
10009
10010 * registry.h (DECLARE_REGISTRY): Define the _key class.
10011
1bd0c6e4
AB
100122019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10013
10014 * NEWS: Merge two 'New commands' sections.
10015
2228ef77
XR
100162019-05-08 Joel Brobecker <brobecker@adacore.com>
10017
10018 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10019 parameter and use Ada language definition instead.
10020 (ada_val_print_ptr): Remove unused language parameter.
10021 (ada_val_print_num): Remove language parameter and use Ada language
10022 definition instead.
10023 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10024 parameter.
10025 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10026 parameter and use Ada language definition instead.
10027 (ada_val_print_1): Update all ada_val_print_xxx calls.
10028 Remove language parameter.
10029 (ada_val_print): Update ada_val_print_1 call.
10030
60fcc1c3
TT
100312019-05-08 Tom Tromey <tromey@adacore.com>
10032
10033 * remote.c (remote_hw_watchpoint_limit)
10034 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10035 Now static.
10036
ed2b7c17
TT
100372019-05-08 Tom Tromey <tromey@adacore.com>
10038
10039 * maint.c (_initialize_maint_cmds): Move initialization code to
10040 remote.c.
10041 (watchdog, show_watchdog): Move to remote.c.
10042 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10043 "watchdog" static.
10044 (_initialize_remote): Move initialization code from maint.c.
10045 * defs.h (watchdog): Don't declare.
10046
b0be6c91
TT
100472019-05-08 Tom Tromey <tromey@adacore.com>
10048
10049 * tui/tui-interp.c: Include main.h.
10050 * interps.c: Include main.h.
10051 * main.h (interpreter_p): Declare.
10052 * defs.h (interpreter_p): Don't declare.
10053
587ee17b
TT
100542019-05-08 Tom Tromey <tromey@adacore.com>
10055
10056 * dwarf2loc.c: Include dwarf2read.h.
10057 * defs.h (read_unsigned_leb128): Don't declare.
10058 * dwarf2read.h (read_unsigned_leb128): Declare.
10059
ca1df239
TT
100602019-05-08 Tom Tromey <tromey@adacore.com>
10061
10062 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10063 method.
10064
99f20f08
TT
100652019-05-08 Tom Tromey <tromey@adacore.com>
10066
10067 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10068 when no wrap column is set.
10069
80e55b13
TT
100702019-05-08 Tom Tromey <tromey@adacore.com>
10071
10072 * c-lang.c (c_get_string): Handle non-C-style arrays.
10073
9d3421af
TT
100742019-05-08 Tom Tromey <tromey@adacore.com>
10075
10076 * typeprint.c (print_offset_data::update): Print the bit offset,
10077 not the number of bits remaining.
10078
844333e2
TT
100792019-05-08 Tom Tromey <tromey@adacore.com>
10080
10081 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10082 padding at end of comment.
10083
988915ee
TT
100842019-05-08 Tom Tromey <tromey@adacore.com>
10085
10086 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10087 Compare main types.
10088
26bfd823
TT
100892019-05-06 Tom Tromey <tom@tromey.com>
10090
10091 * common/scoped_mmap.c: Include common-defs.h.
10092 * common/scoped_mmap.h: Don't include config.h.
10093
89055eaa
TT
100942019-05-04 Tom Tromey <tom@tromey.com>
10095
10096 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10097 (struct aarch64_call_info): Add initializers.
10098 <si>: Now a std::vector.
10099 (pass_on_stack, aarch64_push_dummy_call): Update.
10100
5da01df5
TT
101012019-05-04 Simon Marchi <simon.marchi@efficios.com>
10102 Tom Tromey <tom@tromey.com>
10103
10104 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10105 (ppc_threads): Now a std::vector. Now static.
10106 (hwdebug_find_thread_points_by_tid)
10107 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10108 Update.
10109
fbdf05a1
TT
101102019-05-04 Tom Tromey <tom@tromey.com>
10111
10112 * arc-tdep.c (arc_tdesc_init): Return bool.
10113
06d16ec9
TT
101142019-05-04 Tom Tromey <tom@tromey.com>
10115
10116 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10117 Use gdb_assert_not_reached.
10118
9c056022
TT
101192019-05-04 Tom Tromey <tom@tromey.com>
10120
10121 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10122 "false".
10123
fa9c2a59
TT
101242019-05-04 Tom Tromey <tom@tromey.com>
10125
10126 * arc-tdep.c (arc_tdesc_init): Use bool.
10127
e2eb806a
TT
101282019-05-04 Tom Tromey <tom@tromey.com>
10129
10130 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10131
6fe87677
TT
101322019-05-04 Tom Tromey <tom@tromey.com>
10133
10134 * cli/cli-cmds.c (valid_command_p): Return bool.
10135
7f008c9e
TT
101362019-05-04 Tom Tromey <tom@tromey.com>
10137
10138 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10139 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10140
b6484282
RT
101412019-05-04 Raul Tambre <raul@tambre.ee>
10142
10143 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10144 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10145 operator for comparison.
10146
af97b416
TT
101472019-05-04 Tom Tromey <tom@tromey.com>
10148
10149 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10150 (lookup_partial_symbol, print_partial_symbols)
10151 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10152 (psymbol_compare): Update.
10153 (add_psymbol_to_bcache): Clear the entire psymbol.
10154 (maintenance_check_psymtabs): Update.
10155 * psympriv.h (struct partial_symbol): Don't derive from
10156 general_symbol_info.
10157 <obj_section, unrelocated_address, address,
10158 set_unrelocated_address>: Update.
10159 <ginfo>: New member.
10160 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10161 (debug_names::write_psymbols): Update.
10162
9d6d4be8
TV
101632019-05-04 Tom de Vries <tdevries@suse.de>
10164
10165 * contrib/cc-with-tweaks.sh: Support -n arg.
10166
66452beb
PW
101672019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10168
10169 * corelow.c (core_target::detach): Ensure frame cache and
10170 register caches are cleared.
10171 inferior.c (exit_inferior_1): Likewise.
10172
bde09ab7
TT
101732019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10174 Tom Tromey <tom@tromey.com>
10175
10176 * dictionary.c (collate_pending_symbols_by_language): Remove
10177 "struct" from foreach.
10178 * symtab.c (lookup_global_symbol_from_objfile)
10179 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10180 foreach.
10181 * ser-tcp.c (net_open): Remove "struct" from foreach.
10182 * objfiles.c (objfile_relocate, objfile_rebase)
10183 (objfile_has_symbols): Remove "struct" from foreach.
10184 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10185 from foreach.
10186 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10187 foreach.
10188 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10189 "struct" from foreach.
10190 * ada-lang.c (create_excep_cond_exprs)
10191 (ada_exception_catchpoint_cond_string): Remove "struct" from
10192 foreach.
10193
222a8d25
TT
101942019-05-03 Tom Tromey <tromey@adacore.com>
10195
10196 * ada-exp.y (convert_char_literal): Check suffix of each
10197 enumerator.
10198
fcd60b84
DP
101992019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10200
10201 PR ada/21406:
10202 * ada-exp.y (yywrap): Don't define.
10203 * ada-lex.l (%option): Add noyywrap
10204 (yywrap): Remove.
10205
5f2459c2
EZ
102062019-05-03 Eli Zaretskii <eliz@gnu.org>
10207
353ea2d1
EZ
10208 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10209 _WIN32_WINNT to the XP level, unless already defined to a higher
10210 level.
10211
10212 * unittests/parse-connection-spec-selftests.c:
10213 * ser-tcp.c:
10214 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10215 override.
10216
5f2459c2
EZ
10217 * symfile.c (find_separate_debug_file): Remove colon from the
10218 drive spec of DOS/Windows file names of the target, so that the
10219 file name produced from DEBUGDIR and the target's directory will
10220 be valid on DOS/Windows systems.
10221
80062eb9
AB
102222019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10223
10224 * rust-lang.c (val_print_struct): Handle printing structures
10225 containing strings.
10226
b8c05e85
TT
102272019-05-02 Tom Tromey <tromey@adacore.com>
10228
10229 * valarith.c (_initialize_valarith): Remove.
10230
4504bbde
TT
102312019-05-01 Tom Tromey <tromey@adacore.com>
10232
10233 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10234 bitfields.
10235
d48e62f4
TT
102362019-05-01 Tom Tromey <tromey@adacore.com>
10237
10238 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10239 for big-endian copies.
10240
15f18d14
AT
102412019-04-30 Ali Tamur <tamur@google.com>
10242 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10243 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10244 (read_3_bytes): New function.
10245
ab4ee614
JB
102462019-04-30 Joel Brobecker <brobecker@adacore.com>
10247
10248 * windows-nat.c (main_thread_id): Delete.
10249 (handle_output_debug_string): Replace main_thread_id by
10250 current_event.dwThreadId.
10251 (fake_create_process): Likewise.
10252 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10253 Do not set main_thread_id.
10254 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10255 current_event.dwThreadId.
10256 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10257
8ed5b76e
JB
102582019-04-30 Joel Brobecker <brobecker@adacore.com>
10259
10260 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10261 Use current_event.dwThreadId instead of main_thread_id.
10262
2ff0a947
TT
102632019-04-30 Tom Tromey <tromey@adacore.com>
10264
10265 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10266 (create_excep_cond_exprs): Iterate over program spaces.
10267 (ada_exception_catchpoint_cond_string): Examine all minimal
10268 symbols for exception types.
10269
a776957c
TT
102702019-04-30 Tom Tromey <tromey@adacore.com>
10271
10272 PR c++/24470:
10273 * dwarf2read.c (process_structure_scope): Handle case where type
10274 has template parameters but no symbol was created.
10275
bc68014d
AB
102762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10277 Chris January <chris.january@arm.com>
10278
10279 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10280 qualifier.
10281 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10282
f1fdc960
AB
102832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10284
10285 * f-typeprint.c (f_print_type): Update rules for printing
10286 whitespace.
10287 (f_type_print_varspec_suffix): Likewise.
10288
bf7a4de1
AB
102892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10290 Chris January <chris.january@arm.com>
10291
10292 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10293 function arguments.
10294
bbe75b9d
AB
102952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * f-lang.c (build_fortran_types): Change name of void type to
10298 lower case.
10299 * f-typeprint.c (f_type_print_base): Print the name of the void
10300 type, rather than a fixed string.
10301 * f-valprint.c (f_decorations): Use lower case void string.
10302
1db455a7
AB
103032019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10304 Chris January <chris.january@arm.com>
10305
10306 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10307 types for Fortran.
10308
b6d03bb2
AB
103092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10310 Chris January <chris.january@arm.com>
10311 David Lecomber <david.lecomber@arm.com>
10312
10313 * f-exp.y (BINOP_INTRINSIC): New token.
10314 (exp): New parser rule handling BINOP_INTRINSIC.
10315 (f77_keywords): Add new builtin procedures.
10316 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10317 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10318 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10319 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10320 (print_unop_subexp_f): New function.
10321 (print_binop_subexp_f): New function.
10322 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10323 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10324 (dump_subexp_body_f): Likewise.
10325 (operator_check_f): Likewise.
10326 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10327 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10328
83228e93
AB
103292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10332 UNOP_KIND.
10333 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10334 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10335 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10336 (operator_length_f): New fuction.
10337 (print_subexp_f): New function.
10338 (op_name_f): New function.
10339 (dump_subexp_body_f): New function.
10340 (operator_check_f): New function.
10341 (exp_descriptor_f): Replace standard expression handling functions
10342 with new functions.
10343 * gdb/fortran-operator.def: New file.
10344 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10345 * gdb/std-operator.def: Remove UNOP_KIND.
10346
6fdcd7cc
AB
103472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * std-operator.def: Remove unbalanced, stray double quote
10350 character.
10351
2e62ab40
AB
103522019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10353 Chris January <chris.january@arm.com>
10354 Daniel Everett <daniel.everett@arm.com>
10355 Nick Forrington <nick.forrington@arm.com>
10356 Richard Bunt <richard.bunt@arm.com>
10357
10358 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10359 of depth when printing anonymous structs or unions.
10360 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10361 Don't print either the top-level value, or the children if the
10362 max-depth is exceeded.
10363 (ppscm_print_children): When printing the key of a map, allow one
10364 extra level of depth.
10365 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10366 print either the top-level value, or the children if the max-depth
10367 is exceeded.
10368 (print_children): When printing the key of a map, allow one extra
10369 level of depth.
10370 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10371 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10372 (user_print_options): Initialise max_depth field.
10373 (val_print_scalar_or_string_type_p): New function.
10374 (val_print): Check to see if the max depth has been reached.
10375 (val_print_check_max_depth): Define new function.
10376 (show_print_max_depth): New function.
10377 (_initialize_valprint): Add 'print max-depth' option.
10378 * valprint.h (struct value_print_options) <max_depth>: New field.
10379 (val_print_check_max_depth): Declare new function.
10380 * NEWS: Document new feature.
10381
4be290b2
AB
103822019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10383
10384 * ada-lang.c (ada_language_defn): Initialise new field.
10385 * c-lang.c (c_is_string_type_p): New function.
10386 (c_language_defn): Initialise new field.
10387 (cplus_language_defn): Initialise new field.
10388 (asm_language_defn): Initialise new field.
10389 (minimal_language_defn): Initialise new field.
10390 * c-lang.h (c_is_string_type_p): Declare new function.
10391 * d-lang.c (d_language_defn): Initialise new field.
10392 * f-lang.c (f_is_string_type_p): New function.
10393 (f_language_defn): Initialise new field.
10394 * go-lang.c (go_is_string_type_p): New function.
10395 (go_language_defn): Initialise new field.
10396 * language.c (default_is_string_type_p): New function.
10397 (unknown_language_defn): Initialise new field.
10398 (auto_language_defn): Initialise new field.
10399 * language.h (struct language_defn) <la_is_string_type_p>: New
10400 member variable.
10401 (default_is_string_type_p): Declare new function.
10402 * m2-lang.c (m2_language_defn): Initialise new field.
10403 * objc-lang.c (objc_language_defn): Initialise new field.
10404 * opencl-lang.c (opencl_language_defn): Initialise new field.
10405 * p-lang.c (pascal_is_string_type_p): New function.
10406 (pascal_language_defn): Initialise new field.
10407 * rust-lang.c (rust_is_string_type_p): New function.
10408 (rust_language_defn): Initialise new field.
10409
721b08c6
AB
104102019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10411
10412 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10413 New field.
10414 * ada-lang.c (ada_language_defn): Initialise new field.
10415 * c-lang.c (c_language_defn): Likewise.
10416 (cplus_language_defn): Likewise.
10417 (asm_language_defn): Likewise.
10418 (minimal_language_defn): Likewise.
10419 * d-lang.c (d_language_defn): Likewise.
10420 * f-lang.c (f_language_defn): Likewise.
10421 * go-lang.c (go_language_defn): Likewise.
10422 * language.c (unknown_language_defn): Likewise.
10423 (auto_language_defn): Likewise.
10424 * m2-lang.c (m2_language_defn): Likewise.
10425 * objc-lang.c (objc_language_defn): Likewise.
10426 * opencl-lang.c (opencl_language_defn): Likewise.
10427 * p-lang.c (pascal_language_defn): Likewise.
10428 * rust-lang.c (rust_language_defn): Likewise.
10429
fc913e53
AB
104302019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10431
10432 * ada-lang.c (ada_is_character_type): Change return type to bool.
10433 (ada_is_string_type): Likewise.
10434 * ada-lang.h (ada_is_character_type): Update declaration
10435 (ada_is_string_type): Likewise.
10436
fa731fa0
PW
104372019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10438
10439 Support style in 'frame|thread apply'
10440
10441 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10442 * record.c (record_start, record_stop): Update callers of
10443 execute_command_to_string with false.
10444 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10445 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10446 methods.
10447 (class string_file): New constructor with term_out parameter.
10448 Override methods term_out and can_emit_style_escape. New member
10449 term_out.
10450 (class stdio_file): Override can_emit_style_escape.
10451 (class tee_file): Override term_out and can_emit_style_escape.
10452 * utils.h (can_emit_style_escape): Remove.
10453 * utils.c (can_emit_style_escape): Likewise.
10454 Update all callers of can_emit_style_escape (SOMESTREAM) to
10455 SOMESTREAM->can_emit_style_escape.
10456 * source-cache.c (source_cache::get_source_lines): Likewise.
10457 * stack.c (frame_apply_command_count): Call execute_command_to_string
10458 passing the term_out characteristic of the current gdb_stdout.
10459 * thread.c (thr_try_catch_cmd): Likewise.
10460 * top.c (execute_command_to_string): pass term_out parameter
10461 to construct the string_file for the command output.
10462 * ui-file.c (term_cli_styling): New function (most code moved
10463 from utils.c can_emit_style_escape).
10464 (string_file::string_file, string_file::can_emit_style_escape,
10465 stdio_file::can_emit_style_escape, tee_file::term_out,
10466 tee_file::can_emit_style_escape): New functions.
10467
136afab8
PW
104682019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10469
10470 * NEWS: Mention the new set|show may-call-functions.
10471 * infcall.c (may_call_functions_p): New variable.
10472 (show_may_call_functions_p): New function.
10473 (call_function_by_hand_dummy): Throws an error if not
10474 may-call-functions.
10475 (_initialize_infcall): Call add_setshow_boolean_cmd for
10476 may-call-functions.
10477
725cbb63
KS
104782019-04-25 Keith Seitz <keiths@redhat.com>
10479
10480 PR c++/24367
10481 * cp-support.c (inspect_type): Don't attempt substitutions
10482 of symbol with the same name.
10483
3d1cbb78
TT
104842019-04-25 Tom Tromey <tromey@adacore.com>
10485
10486 PR gdb/24475:
10487 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10488 static.
10489
94aeb44b
TT
104902019-04-25 Tom Tromey <tromey@adacore.com>
10491
10492 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10493 rvalue reference.
10494 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10495 (gdb_xml_parser::parse): Use std::move.
10496 * python/python-internal.h (gdbpy_convert_exception): Take a const
10497 reference.
10498 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10499 std::move.
10500 * python/py-utils.c (gdbpy_convert_exception): Take a const
10501 reference.
10502 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10503 Use std::move.
10504 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10505 Use std::move.
10506 * mi/mi-main.c (mi_print_exception): Take a const reference.
10507 * main.c (handle_command_errors): Take a const reference.
10508 * linespec.c (parse_linespec): Use std::move.
10509 * infcall.c (run_inferior_call): Use std::move.
10510 (call_function_by_hand_dummy): Use std::move.
10511 * exec.c (try_open_exec_file): Use std::move.
10512 * exceptions.h (exception_print, exception_fprintf)
10513 (exception_print_same): Update.
10514 * exceptions.c (print_exception, exception_print)
10515 (exception_fprintf, exception_print_same): Change parameters to
10516 const reference.
10517 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10518 * common/new-op.c: Use std::move.
10519 * common/common-exceptions.h (struct gdb_exception): Add move
10520 constructor.
10521 (struct gdb_exception_error, struct gdb_exception_quit, struct
10522 gdb_quit_bad_alloc): Change constructor to move constructor.
10523 (throw_exception): Change parameter to rvalue reference.
10524 * common/common-exceptions.c (throw_exception): Take rvalue
10525 reference.
10526 * cli/cli-interp.c (safe_execute_command): Use std::move.
10527 * breakpoint.c (insert_bp_location, location_to_sals): Use
10528 std::move.
10529
680d7fd5
TT
105302019-04-25 Tom Tromey <tromey@adacore.com>
10531
10532 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10533 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10534 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10535 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10536 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10537 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10538 guile/scm-value.c: Use unpack.
10539 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10540 gdbscm_gdb_exception.
10541 (gdbscm_throw_gdb_exception): Likewise.
10542 (struct gdbscm_gdb_exception): New.
10543 (unpack): New function.
10544 (gdbscm_wrap): Use unpack.
10545
c6fdd8b2
TT
105462019-04-25 Tom Tromey <tromey@adacore.com>
10547
10548 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10549 (gdb_rl_callback_handler): Use std::move.
10550 * common/common-exceptions.h (struct gdb_exception): Add move
10551 assignment operator.
10552 (throw_exception_sjlj): Change "exception" to const reference.
10553 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10554 (throw_exception_sjlj): Change "exception" to const reference.
10555
cc06b668
TT
105562019-04-25 Tom Tromey <tromey@adacore.com>
10557
10558 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10559 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10560 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10561 Update.
10562 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10563 Update.
10564 * mi/mi-interp.c (mi_interp::exec): Update.
10565 * linespec.c (parse_linespec): Update.
10566 * infcall.c (run_inferior_call): Update.
10567 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10568 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10569 (gdbscm_lookup_global_symbol): Update.
10570 * guile/scm-param.c (gdbscm_parameter_value): Update.
10571 * guile/scm-frame.c (gdbscm_frame_read_register)
10572 (gdbscm_frame_read_var): Update.
10573 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10574 * exec.c (try_open_exec_file): Update.
10575 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10576 (gdb_rl_callback_handler): Update.
10577 * common/common-exceptions.h (exception_none): Don't declare.
10578 * common/common-exceptions.c (exception_none): Don't define.
10579 (struct catcher) <exception>: Update.
10580 * cli/cli-interp.c (safe_execute_command): Update.
10581 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10582
cf532bd1
AT
105832019-04-25 Ali Tamur <tamur@google.com>
10584
10585 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10586 (read_attribute_value): Likewise.
10587 (dwarf2_read_addr_index): Update comment.
10588 (read_str_index): Add DW_FORM_strx.
10589 (dwarf2_string_attr): Likewise.
10590 (dwarf2_const_value_attr): Likewise.
10591 (dump_die_shallow): Likewise.
10592 (dwarf2_fetch_constant_bytes): Likewise.
10593 (skip_form_bytes): Likewise.
10594 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10595
82433e3e
SDJ
105962019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10597
10598 PR corefiles/11608
10599 PR corefiles/18187
10600 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10601 OFFSET. Verify if current mapping contains an ELF header.
10602 (linux_find_memory_regions_full): Adjust call to
10603 dump_mapping_p.
10604
723adb65
SL
106052019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10606 Kang Li <kanglictf@gmail.com>
10607
10608 PR gdb/21600
10609
10610 * dwarf2-frame.c (read_initial_length): Be consistent about using
10611 unsigned representation of length.
10612 (decode_frame_entry_1): Likewise. Check for wraparound of
10613 end pointer as well as buffer overflow.
10614
596179f7
SDJ
106152019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10616
10617 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10618 "vq".
10619
a59240a4
TT
106202019-04-24 Tom Tromey <tromey@adacore.com>
10621
10622 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10623
f872fdbb
AB
106242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10625
10626 * s12z-tdep.c (s12z_unwind_pc): Delete.
10627 (s12z_unwind_sp): Delete.
10628 (s12z_gdbarch_init): Don't register deleted functions with
10629 gdbarch.
10630
b614e6f3
AB
106312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10632
10633 * rl78-tdep.c (rl78_unwind_sp): Delete.
10634 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10635
14faed38
AB
106362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10639 (xstormy16_unwind_pc): Delete.
10640 (xstormy16_dummy_id): Delete.
10641 (xstormy16_gdbarch_init): Don't register deleted functions with
10642 gdbarch.
10643
541aad8a
AB
106442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * vax-tdep.c (vax_unwind_pc): Delete.
10647 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10648
29222070
AB
106492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10650
10651 * v850-tdep.c (v850_unwind_sp): Delete.
10652 (v850_unwind_pc): Delete.
10653 (v850_dummy_id): Delete.
10654 (v850_gdbarch_init): Don't register deleted functions with
10655 gdbarch.
10656
0f534d76
AB
106572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10658
10659 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10660 (tilegx_unwind_pc): Delete.
10661 (tilegx_unwind_dummy_id): Delete.
10662 (tilegx_gdbarch_init): Don't register deleted functions with
10663 gdbarch.
10664
1ba7b7f9
AB
106652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10668 (tic6x_dummy_id): Delete.
10669 (tic6x_gdbarch_init): Don't register deleted functions with
10670 gdbarch.
10671
d31f262c
AB
106722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * sparc-tdep.c (sparc_unwind_pc): Delete.
10675 (sparc32_gdbarch_init): Don't register deleted function with
10676 gdbarch.
10677
6d14d64d
AB
106782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * sh-tdep.c (sh_unwind_sp): Delete.
10681 (sh_unwind_pc): Delete.
10682 (sh_dummy_id): Delete.
10683 (sh_gdbarch_init): Don't register deleted functions with
10684 gdbarch.
10685
a40dde9d
AB
106862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * score-tdep.c (score_unwind_sp): Delete.
10689 (score_unwind_pc): Delete.
10690 (score_dummy_id): Delete.
10691 (score_gdbarch_init): Don't register deleted functions with
10692 gdbarch.
10693
47c47d69
AB
106942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10695
10696 * rx-tdep.c (rx_unwind_pc): Delete.
10697 (rx_unwind_sp): Delete.
10698 (rx_dummy_id): Delete.
10699 (rx_gdbarch_init): Don't register deleted functions with
10700 gdbarch. Update comment.
10701
833a4480
AB
107022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10703
10704 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10705 (rs6000_dummy_id): Delete.
10706 (rs6000_gdbarch_init): Don't register deleted functions with
10707 gdbarch.
10708
3f2cef49
AB
107092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10710
10711 * or1k-tdep.c (or1k_dummy_id): Delete.
10712 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10713
96acf884
AB
107142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * nios2-tdep.c (nios2_dummy_id): Delete.
10717 (nios2_unwind_sp): Delete.
10718 (nios2_gdbarch_init): Don't register deleted functions with
10719 gdbarch.
10720
ca0ab0aa
AB
107212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10722
10723 * nds32-tdep.c (nds32_dummy_id): Delete.
10724 (nds32_unwind_pc): Delete.
10725 (nds32_unwind_sp): Delete.
10726 (nds32_gdbarch_init): Don't register deleted functions with
10727 gdbarch.
10728
c8259044
AB
107292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * msp430-tdep.c (msp430_unwind_pc): Delete.
10732 (msp430_unwind_sp): Delete.
10733 (msp430_dummy_id): Delete.
10734 (msp430_gdbarch_init): Don't register deleted functions with
10735 gdbarch.
10736
27f113c8
AB
107372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10738
10739 * moxie-tdep.c (moxie_unwind_sp): Delete.
10740 (moxie_unwind_pc): Delete.
10741 (moxie_dummy_id): Delete.
10742 (moxie_gdbarch_init): Don't register deleted functions with
10743 gdbarch.
10744
aee6c3cd
AB
107452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10748 (mn10300_unwind_pc): Delete.
10749 (mn10300_unwind_sp): Delete.
10750 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10751 mn10300_unwind_sp.
10752 (mn10300_frame_unwind_init): Don't register deleted functions with
10753 gdbarch.
10754
8e2b5aea
AB
107552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10756
10757 * mep-tdep.c (mep_unwind_pc): Delete.
10758 (mep_unwind_sp): Delete.
10759 (mep_dummy_id): Delete.
10760 (mep_gdbarch_init): Don't register deleted functions with
10761 gdbarch.
10762
43cf3ede
AB
107632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10766 (m68hc11_unwind_sp): Delete.
10767 (m68hc11_gdbarch_init): Don't register deleted functions with
10768 gdbarch.
10769
5e79b7bb
AB
107702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10771
10772 * m32r-tdep.c (m32r_unwind_sp): Delete.
10773 (m32r_unwind_pc): Delete.
10774 (m32r_dummy_id): Delete.
10775 (m32r_gdbarch_init): Don't register deleted functions with
10776 gdbarch.
10777
89b268d8
AB
107782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * m32c-tdep.c (m32c_unwind_pc): Delete.
10781 (m32c_unwind_sp): Delete.
10782 (m32c_dummy_id): Delete.
10783 (m32c_gdbarch_init): Don't register deleted functions with
10784 gdbarch.
10785
946c28d2
AB
107862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10789 (lm32_unwind_pc): Delete.
10790 (lm32_dummy_id): Delete.
10791 (lm32_gdbarch_init): Don't register deleted functions with
10792 gdbarch.
10793
bf12844a
AB
107942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10797 (iq2000_unwind_pc): Delete.
10798 (iq2000_dummy_id): Delete.
10799 (iq2000_gdbarch_init): Don't register deleted functions with
10800 gdbarch.
10801
ecbc06d2
AB
108022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * nds32-tdep.c (nds32_type_align): Delete.
10805 (nds32_push_dummy_call): Use type_align instead.
10806
030197b4
AB
108072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10808
10809 * arm-tdep.c (arm_type_align): Only handle vector override case.
10810 (arm_push_dummy_call): Use type_align.
10811 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10812
b907456c
AB
108132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10816 case.
10817 (pass_on_stack): Use type_align.
10818 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10819 function.
10820
9e97ba43
TT
108212019-04-23 Tom Tromey <tromey@adacore.com>
10822
10823 * dwarf2read.c (line_header::file_name_at): Remove unused
10824 overload.
10825
6892f601
TV
108262019-04-23 Tom de Vries <tdevries@suse.de>
10827
10828 PR gdb/24438
10829 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10830 invocation.
10831
336d760d
AT
10832
108332019-03-27 Ali Tamur <tamur@google.com>
10834
10835 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10836 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10837 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10838 (dwarf_expr_context::get_addr_index): Likewise
10839 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10840 (symbol_needs_eval_context::get_addr_index): Likewise
10841 (disassemble_dwarf_expression): Add DW_OP_addrx
10842 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10843 (read_cutu_die_from_dwo): Update comment
10844 (skip_one_die): Add DW_FORM_addrx
10845 (read_attribute_value): Likewise
10846 (var_decode_location): Add DW_OP_addrx
10847 (dwarf2_const_value_attr): Add DW_FORM_addrx
10848 (dump_die_shallow): Likewise
10849 (dwarf2_fetch_constant_bytes): Likewise
10850 (decode_locdesc): Add DW_OP_addrx
10851 (skip_form_bytes): Add DW_FORM_addrx
10852
ad9d13f8
AT
108532019-04-22 Ali Tamur <tamur@google.com>
10854
10855 * MAINTAINERS (Write After Approval): Add self.
10856
d70cc3ba
SM
108572019-04-22 Simon Marchi <simon.marchi@efficios.com>
10858
10859 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10860 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10861 (open_symbol_file_object): Likewise.
10862 (svr4_default_sos): Add info parameter.
10863 (svr4_read_so_list): Likewise.
10864 (svr4_current_sos_direct): Adjust functions calls to pass down
10865 info.
10866 (svr4_current_sos_1): Add info parameter.
10867 (svr4_current_sos): Call get_svr4_info, pass info down to
10868 svr4_current_sos_1.
10869 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10870 get_svr4_info.
10871 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10872 get_svr4_info.
10873 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10874 to get_svr4_info.
10875 (probes_table_remove_objfile_probes): Likewise.
10876 (register_solib_event_probe): Add info parameter.
10877 (solist_update_incremental): Pass info parameter down to
10878 svr4_read_so_list.
10879 (disable_probes_interface): Add info parameter.
10880 (svr4_handle_solib_event): Pass current_program_space to
10881 get_svr4_info. Adjust disable_probes_interface cleanup.
10882 (svr4_create_probe_breakpoints): Add info parameter, pass it
10883 down to register_solib_event_probe.
10884 (svr4_create_solib_event_breakpoints): Add info parameter,
10885 pass it down to svr4_create_probe_breakpoints.
10886 (enable_break): Pass info down to
10887 svr4_create_solib_event_breakpoints.
10888 (svr4_solib_create_inferior_hook): Pass current_program_space to
10889 get_svr4_info.
10890 (svr4_clear_solib): Likewise.
10891
7905fc35
PA
108922019-04-22 Pedro Alves <palves@redhat.com>
10893
10894 * solib-svr4.c (svr4_free_objfile_observer): New.
10895 (probe_and_action::objfile): New field.
10896 (probes_table_htab_remove_objfile_probes)
10897 (probes_table_remove_objfile_probes): New functions.
10898 (register_solib_event_probe): Add 'objfile' parameter. Store it
10899 in the new probe_and_action. Don't store the probe in 'lookup'.
10900 (svr4_create_probe_breakpoints): Pass objfile to
10901 register_solib_event_probe.
10902 (_initialize_svr4_solib): Register a free_objfile observer.
10903
fb881986
TT
109042019-04-19 Tom Tromey <tom@tromey.com>
10905
10906 * common/queue.h: Remove.
10907
8732db6c
TT
109082019-04-19 Tom Tromey <tom@tromey.com>
10909
10910 * event-loop.c: Don't include "common/queue.h".
10911
97dfbadd
TT
109122019-04-19 Tom Tromey <tom@tromey.com>
10913
10914 * remote.c (remote_target): Use delete.
10915 * remote-notif.h: Include <list>, not "common/queue.h".
10916 (notif_client_p): Remove typedef.
10917 (remote_notif_state): Add constructor, destructor, initializer.
10918 <notif_queue>: Now a std::list.
10919 (remote_notif_state_xfree): Don't declare.
10920 * remote-notif.c (remote_notif_process, handle_notification)
10921 (remote_notif_state_allocate): Update.
10922 (~remote_notif_state): Rename from remote_notif_state_xfree.
10923
cf250e36
TT
109242019-04-19 Tom Tromey <tom@tromey.com>
10925
10926 * symfile.c (reread_symbols): Update.
10927 * objfiles.c (objfile_register_static_link)
10928 (objfile_lookup_static_link): Update
10929 (~objfile) Don't delete static_links.
10930 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10931
61f4b350
TT
109322019-04-19 Tom Tromey <tom@tromey.com>
10933
10934 * type-stack.h (struct type_stack) <insert>: Constify string.
10935 * type-stack.c (type_stack::insert): Constify string.
10936 * gdbtypes.h (lookup_template_type): Update.
10937 (address_space_name_to_int): Update.
10938 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10939 const.
10940 (lookup_template_type): Make name const.
10941 * c-exp.y: Update rules.
10942 (lex_one_token, classify_name, classify_inner_name)
10943 (c_print_token): Update.
10944 * p-exp.y: Update rules.
10945 (yylex): Update.
10946 * f-exp.y: Update rules.
10947 (yylex): Update.
10948 * d-exp.y: Update rules.
10949 (lex_one_token, classify_name, classify_inner_name): Update.
10950 * parse.c (write_dollar_variable, copy_name): Return std::string.
10951 * parser-defs.h (copy_name): Change return type.
10952 * m2-exp.y: Update rules.
10953 (yylex): Update.
10954 * go-exp.y (lex_one_token): Update.
10955 Update rules.
10956 (classify_unsafe_function, classify_packaged_name)
10957 (classify_name, yylex): Update.
10958
189b8c2e
ST
109592019-04-19 Sergei Trofimovich <siarheit@google.com>
10960
10961 * configure.ac: add --enable-source-highlight switch.
10962 * configure: Regenerate.
10963 * top.c (print_gdb_version): plumb --enable-source-highlight
10964 status to "show configuration".
10965
8ecb59f8
TT
109662019-04-19 Tom Tromey <tromey@adacore.com>
10967
10968 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10969 Check ADA_TYPE_P.
10970 (empty_record, ada_template_to_fixed_record_type_1)
10971 (template_to_static_fixed_type)
10972 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10973 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10974 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10975 macros.
10976
62160ec9
TT
109772019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10978
10979 PR symtab/24423:
10980 * source.c (print_source_lines_base): Advance "iter" when a
10981 control character is seen.
10982
f2ae8bc8
PW
109832019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10984
10985 * inferior.h (struct infcall_suspend_state_deleter):
10986 Catch exception in destructor to avoid crash.
10987
d563b953
PW
109882019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10989
10990 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10991 close to the add_com "shell".
10992
dc34c897
TT
109932019-04-18 Tom Tromey <tromey@adacore.com>
10994
10995 * process-stratum-target.h (class process_stratum_target)
10996 <stratum>: Add "final".
10997
a12e5744
TT
109982019-04-17 Tom Tromey <tromey@adacore.com>
10999
11000 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11001 against nullptr before use.
11002
a7e559cc
AH
110032019-04-17 Alan Hayward <alan.hayward@arm.com>
11004
11005 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11006
c01660c6
AB
110072019-04-17 Jim Wilson <jimw@sifive.com>
11008 Andrew Burgess <andrew.burgess@embecosm.com>
11009
11010 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11011 code read might fail, assume 4-byte breakpoint in that case.
11012
4aa866af
LS
110132019-04-15 Leszek Swirski <leszeks@google.com>
11014
11015 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11016 rather than a hand-rolled POD check when checking for forced MEMORY
11017 classification.
11018
48574d91
AH
110192019-04-15 Alan Hayward <alan.hayward@arm.com>
11020
11021 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11022 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11023 function.
11024 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11025 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11026 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11027 declaration.
11028
4da037ef
AH
110292019-04-15 Alan Hayward <alan.hayward@arm.com>
11030
11031 * aarch64-linux-nat.c
11032 (aarch64_linux_nat_target::thread_architecture): Add override.
11033 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11034 each VQ.
11035
ccb8d7e8
AH
110362019-04-15 Alan Hayward <alan.hayward@arm.com>
11037
11038 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11039
35add35e
AB
110402019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11041
11042 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11043 target types of size 96-bits, add some additional comments, and
11044 check that the builtin type we found was the correct size.
11045
51196bbc
EZ
110462019-04-12 Eli Zaretskii <eliz@gnu.org>
11047
11048 * utils.c (prompt_for_continue): Don't restore the styling at the
11049 end, as applied_style has the wrong value. This fixes styling in
11050 long lists of file names that are interrupted by the "Continue?"
11051 prompt.
11052
62253a61
AB
110532019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11056 * c-lang.c (c_language_defn): Likewise.
11057 (cplus_language_defn): Likewise.
11058 (asm_language_defn): Likewise.
11059 (minimal_language_defn): Likewise.
11060 * d-lang.c (d_language_defn): Likewise.
11061 * f-lang.c (f_language_defn): Likewise.
11062 * go-lang.c (go_language_defn): Likewise.
11063 * language.c (unknown_language_defn): Likewise.
11064 (auto_language_defn): Likewise.
11065 * language.h (struct language_defn): Remove la_magic field.
11066 (LANG_MAGIC): Delete.
11067 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11068 * objc-lang.c (objc_language_defn): Likewise.
11069 * opencl-lang.c (opencl_language_defn): Likewise.
11070 * p-lang.c (pascal_language_defn): Likewise.
11071 * rust-lang.c (rust_language_defn): Likewise.
11072
a9158a86
AB
110732019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11074
11075 * riscv-tdep.c (riscv_type_align): New function.
11076 (riscv_type_alignment): Delete.
11077 (riscv_arg_location): Use 'type_align'.
11078 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11079
41077b66
AB
110802019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11081
11082 * gdbtypes.c (type_align): A struct with no non-static fields also
11083 has alignment of 1.
11084
9f0272f8
AB
110852019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11086
11087 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11088 component to 0.
11089 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11090 member.
11091 (riscv_struct_info::analyse): New implementation using new
11092 analyse_inner member function.
11093 (riscv_struct_info::field_offset): New member function.
11094 (riscv_struct_info::m_offsets): New member variable.
11095 (riscv_struct_info::analyse_inner): New private member function,
11096 takes the old implementation of riscv_struct_info::analyse but
11097 extended to track field offsets.
11098 (riscv_call_arg_struct): Update the struct folding special cases
11099 to handle cases where empty C++ structs, which are non-zero
11100 length, are found.
11101 (riscv_arg_location): Initialise the length of each location, a
11102 non-zero length now indicates the location is in use.
11103 (riscv_push_dummy_call): Allow for the first location having a
11104 non-zero offset when setting up arguments.
11105 (riscv_return_value): Likewise, but for return values.
11106
02cf60c7
TT
111072019-04-11 Tom Tromey <tromey@adacore.com>
11108
11109 * utils.c (internal_vproblem): Make "msg" const.
11110
68811f8f
AH
111112019-04-11 Alan Hayward <alan.hayward@arm.com>
11112
11113 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11114 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11115 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11116 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11117
3f52fdbc
KB
111182019-04-10 Kevin Buettner <kevinb@redhat.com>
11119
11120 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11121 function.
11122 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11123 of amd64_collect_native_gregset.
11124 (amd64_linux_nat_target::store_registers): Likewise.
11125
e9ad22ee
TT
111262019-04-10 Tom Tromey <tom@tromey.com>
11127
11128 * symtab.c (lookup_global_symbol_from_objfile)
11129 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11130 * objfiles.h (class separate_debug_iterator): New.
11131 (class separate_debug_range): New.
11132 (struct objfile) <separate_debug_objfiles>: New method.
11133 (objfile_separate_debug_iterate): Don't declare.
11134 * objfiles.c (separate_debug_iterator::operator++): Rename from
11135 objfile_separate_debug_iterate.
11136 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11137 iterator.
11138 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11139 iterator.
11140
ee371134
TT
111412019-04-10 Tom Tromey <tom@tromey.com>
11142
11143 * symfile.c (reread_symbols): Remove old comment.
11144 * objfiles.c (free_all_objfiles): Fix a typo.
11145
bf227d61
TT
111462019-04-10 Tom Tromey <tom@tromey.com>
11147
11148 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11149 * minsyms.c (lookup_minimal_symbol): Use foreach.
11150 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11151 (lookup_minimal_symbol_solib_trampoline): Likewise.
11152 * symfile.c (reread_symbols): Use foreach.
11153
8dc433a0
TT
111542019-04-09 Ivan Begert <ivanbegert@gmail.com>
11155 Tom Tromey <tromey@adacore.com>
11156
11157 PR rust/24414:
11158 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11159 (rust_lex_int_test): Change "value" to be LONGEST.
11160 (rust_lex_tests): Add test for long integer literal.
11161
9ab8741a
TT
111622019-04-09 Tom Tromey <tromey@adacore.com>
11163
11164 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11165 to bool.
11166 (extended_remote_target::attach): Update.
11167 (remote_target::remote_notice_new_inferior): Update.
11168 (remote_target::add_current_inferior_and_thread): Update.
11169 * inferior.c (exit_inferior_1): Use "false".
11170 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11171
e242fd12
SM
111722019-04-09 Simon Marchi <simon.marchi@efficios.com>
11173
9ca1957f 11174 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11175 the "start" command.
11176
2b0c8b01
KB
111772019-04-08 Kevin Buettner <kevinb@redhat.com>
11178
11179 * python/py-inferior.c (infpy_thread_from_thread_handle):
11180 Adjust comments to reflect renaming of thread_from_thread_handle
11181 to thread_from_handle. Adjust keywords. Fix type error message.
11182 (inferior_object_methods): Add thread_from_handle. Retain
11183 thread_from_thread_handle, but mark it as deprecated.
11184
50a82723
KB
111852019-04-08 Kevin Buettner <kevinb@redhat.com>
11186
11187 * gdbthread.h (find_thread_by_handle): Revise declaration.
11188 * thread.c (find_thread_by_handle): Likewise. Adjust
11189 implementation too.
11190 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11191 support for buffer objects as handles.
11192
cf63b016
KB
111932019-04-08 Kevin Buettner <kevinb@redhat.com>
11194
11195 * python/py-infthread.c (thpy_thread_handle): New function.
11196 (thread_object_methods): Register thpy_thread_handle.
11197
3d6c6204
KB
111982019-04-08 Kevin Buettner <kevinb@redhat.com>
11199
11200 * gdbthread.h (thread_to_thread_handle): Declare.
11201 * thread.c (gdbtypes.h): Include.
11202 (thread_to_thread_handle): New function.
11203
11204 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11205 (target_thread_info_to_thread_handle): Declare.
11206 * target.c (target_thread_info_to_thread_handle): New function.
11207 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11208 * target-delegates.c: Regenerate.
11209
11210 * linux-thread-db.c (class thread_db_target): Add method
11211 thread_info_to_thread_handle.
11212 (thread_db_target::thread_info_to_thread_handle): Define.
11213 * remote.c (class remote_target): Add new method
11214 thread_info_to_thread_handle.
11215 (remote_target::thread_info_to_thread_handle): Define.
11216
56be6ea8
PA
112172019-04-08 Pedro Alves <palves@redhat.com>
11218
11219 * common/common-exceptions.c (throw_exception): Don't create
11220 named object to throw; throw directly.
11221 (throw_it): Likewise. Don't initialize gdb_exception::message
11222 here, with new; pass FMT and AP to the ctor instead.
11223 * common/common-exceptions.h: Include <string>.
11224 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11225 const char *, va_list)): New ctor. Use std::make_shared.
11226 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11227 errors)): Delete.
11228 (gdb_exception_error::gdb_exception_error(enum errors, const char
11229 *, va_list)): New.
11230 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11231 Add assertion.
11232 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11233 errors)): Delete.
11234 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11235 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11236 Add assertion.
11237
eedc3f4f
TT
112382019-04-08 Tom Tromey <tom@tromey.com>
11239
11240 * valops.c (value_rtti_indirect_type): Replace throw_exception
11241 with throw.
11242 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11243 with throw.
11244 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11245 throw.
11246 * target.c (target_translate_tls_address): Replace throw_exception
11247 with throw.
11248 * stack.c (frame_apply_command_count): Replace throw_exception
11249 with throw.
11250 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11251 throw.
11252 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11253 with throw.
11254 * rs6000-tdep.c (rs6000_frame_cache)
11255 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11256 * remote.c: Replace throw_exception with throw.
11257 * record-full.c (record_full_message, record_full_wait_1)
11258 (record_full_restore): Replace throw_exception with throw.
11259 * record-btrace.c:
11260 (get_thread_current_frame_id, record_btrace_start_replaying)
11261 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11262 (cmd_record_btrace_start): Replace throw_exception with throw.
11263 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11264 throw.
11265 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11266 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11267 * linespec.c:
11268 (find_linespec_symbols): Replace throw_exception with throw.
11269 * infrun.c (displaced_step_prepare, resume): Replace
11270 throw_exception with throw.
11271 * infcmd.c (post_create_inferior): Replace throw_exception with
11272 throw.
11273 * inf-loop.c (inferior_event_handler): Replace throw_exception
11274 with throw.
11275 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11276 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11277 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11278 (get_prev_frame_always, get_frame_pc_if_available)
11279 (get_frame_address_in_block_if_available, get_frame_language):
11280 Replace throw_exception with throw.
11281 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11282 throw_exception with throw.
11283 * eval.c (fetch_subexp_value, evaluate_var_value)
11284 (evaluate_funcall, evaluate_subexp_standard): Replace
11285 throw_exception with throw.
11286 * dwarf2loc.c (call_site_find_chain)
11287 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11288 Replace throw_exception with throw.
11289 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11290 with throw.
11291 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11292 throw.
11293 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11294 * completer.c (complete_line_internal): Replace throw_exception
11295 with throw.
11296 * compile/compile-object-run.c (compile_object_run): Replace
11297 throw_exception with throw.
11298 * cli/cli-script.c (process_next_line): Replace throw_exception
11299 with throw.
11300 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11301 (btrace_enable, btrace_maint_update_pt_packets): Replace
11302 throw_exception with throw.
11303 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11304 throw_exception with throw.
11305 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11306 throw_exception with throw.
11307 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11308 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11309 * aarch64-tdep.c (aarch64_make_prologue_cache)
11310 (aarch64_make_stub_cache): Replace throw_exception with throw.
11311
26003a20
TT
113122019-04-08 Tom Tromey <tom@tromey.com>
11313
11314 * common/common-exceptions.c (throw_exception): Rename from
11315 throw_exception_cxx. Remove old copy. Make argument const.
11316 (throw_it): Create and throw exception objects directly.
11317 * common/common-exceptions.h (throw_exception): Make argument
11318 const.
11319 (struct gdb_exception_error): Add constructor.
11320 (struct gdb_exception_quit): Add constructor.
11321
d272eb37
TT
113222019-04-08 Tom Tromey <tom@tromey.com>
11323
11324 * common/common-exceptions.h (exception_rethrow): Don't declare.
11325 (TRY_SJLJ): Update comment.
11326 (TRY, CATCH, END_CATCH): Remove.
11327 * common/common-exceptions.c (exception_rethrow): Remove.
11328
230d2906
TT
113292019-04-08 Tom Tromey <tom@tromey.com>
11330
11331 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11332 Remove.
11333 (gdb_exception_error): Rename from
11334 gdb_exception_RETURN_MASK_ERROR.
11335 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11336 (gdb_quit_bad_alloc): Update.
11337 * aarch64-tdep.c: Update.
11338 * ada-lang.c: Update.
11339 * ada-typeprint.c: Update.
11340 * ada-valprint.c: Update.
11341 * amd64-tdep.c: Update.
11342 * arch-utils.c: Update.
11343 * break-catch-throw.c: Update.
11344 * breakpoint.c: Update.
11345 * btrace.c: Update.
11346 * c-varobj.c: Update.
11347 * cli/cli-cmds.c: Update.
11348 * cli/cli-interp.c: Update.
11349 * cli/cli-script.c: Update.
11350 * common/common-exceptions.c: Update.
11351 * common/new-op.c: Update.
11352 * common/selftest.c: Update.
11353 * compile/compile-c-symbols.c: Update.
11354 * compile/compile-cplus-symbols.c: Update.
11355 * compile/compile-object-load.c: Update.
11356 * compile/compile-object-run.c: Update.
11357 * completer.c: Update.
11358 * corelow.c: Update.
11359 * cp-abi.c: Update.
11360 * cp-support.c: Update.
11361 * cp-valprint.c: Update.
11362 * darwin-nat.c: Update.
11363 * disasm-selftests.c: Update.
11364 * dtrace-probe.c: Update.
11365 * dwarf-index-cache.c: Update.
11366 * dwarf-index-write.c: Update.
11367 * dwarf2-frame-tailcall.c: Update.
11368 * dwarf2-frame.c: Update.
11369 * dwarf2loc.c: Update.
11370 * dwarf2read.c: Update.
11371 * eval.c: Update.
11372 * event-loop.c: Update.
11373 * event-top.c: Update.
11374 * exec.c: Update.
11375 * f-valprint.c: Update.
11376 * fbsd-tdep.c: Update.
11377 * frame-unwind.c: Update.
11378 * frame.c: Update.
11379 * gdbtypes.c: Update.
11380 * gnu-v3-abi.c: Update.
11381 * guile/guile-internal.h: Update.
11382 * guile/scm-block.c: Update.
11383 * guile/scm-breakpoint.c: Update.
11384 * guile/scm-cmd.c: Update.
11385 * guile/scm-disasm.c: Update.
11386 * guile/scm-frame.c: Update.
11387 * guile/scm-lazy-string.c: Update.
11388 * guile/scm-math.c: Update.
11389 * guile/scm-param.c: Update.
11390 * guile/scm-ports.c: Update.
11391 * guile/scm-pretty-print.c: Update.
11392 * guile/scm-symbol.c: Update.
11393 * guile/scm-symtab.c: Update.
11394 * guile/scm-type.c: Update.
11395 * guile/scm-value.c: Update.
11396 * i386-linux-tdep.c: Update.
11397 * i386-tdep.c: Update.
11398 * inf-loop.c: Update.
11399 * infcall.c: Update.
11400 * infcmd.c: Update.
11401 * infrun.c: Update.
11402 * jit.c: Update.
11403 * language.c: Update.
11404 * linespec.c: Update.
11405 * linux-fork.c: Update.
11406 * linux-nat.c: Update.
11407 * linux-tdep.c: Update.
11408 * linux-thread-db.c: Update.
11409 * main.c: Update.
11410 * mi/mi-cmd-break.c: Update.
11411 * mi/mi-cmd-stack.c: Update.
11412 * mi/mi-interp.c: Update.
11413 * mi/mi-main.c: Update.
11414 * objc-lang.c: Update.
11415 * p-valprint.c: Update.
11416 * parse.c: Update.
11417 * ppc-linux-tdep.c: Update.
11418 * printcmd.c: Update.
11419 * python/py-arch.c: Update.
11420 * python/py-breakpoint.c: Update.
11421 * python/py-cmd.c: Update.
11422 * python/py-finishbreakpoint.c: Update.
11423 * python/py-frame.c: Update.
11424 * python/py-framefilter.c: Update.
11425 * python/py-gdb-readline.c: Update.
11426 * python/py-inferior.c: Update.
11427 * python/py-infthread.c: Update.
11428 * python/py-lazy-string.c: Update.
11429 * python/py-linetable.c: Update.
11430 * python/py-objfile.c: Update.
11431 * python/py-param.c: Update.
11432 * python/py-prettyprint.c: Update.
11433 * python/py-progspace.c: Update.
11434 * python/py-record-btrace.c: Update.
11435 * python/py-record.c: Update.
11436 * python/py-symbol.c: Update.
11437 * python/py-type.c: Update.
11438 * python/py-unwind.c: Update.
11439 * python/py-utils.c: Update.
11440 * python/py-value.c: Update.
11441 * python/python.c: Update.
11442 * record-btrace.c: Update.
11443 * record-full.c: Update.
11444 * remote-fileio.c: Update.
11445 * remote.c: Update.
11446 * riscv-tdep.c: Update.
11447 * rs6000-aix-tdep.c: Update.
11448 * rs6000-tdep.c: Update.
11449 * rust-exp.y: Update.
11450 * rust-lang.c: Update.
11451 * s390-tdep.c: Update.
11452 * selftest-arch.c: Update.
11453 * solib-dsbt.c: Update.
11454 * solib-frv.c: Update.
11455 * solib-spu.c: Update.
11456 * solib-svr4.c: Update.
11457 * solib.c: Update.
11458 * sparc64-linux-tdep.c: Update.
11459 * stack.c: Update.
11460 * symfile-mem.c: Update.
11461 * symmisc.c: Update.
11462 * target.c: Update.
11463 * thread.c: Update.
11464 * top.c: Update.
11465 * tracefile-tfile.c: Update.
11466 * tui/tui.c: Update.
11467 * typeprint.c: Update.
11468 * unittests/cli-utils-selftests.c: Update.
11469 * unittests/parse-connection-spec-selftests.c: Update.
11470 * valops.c: Update.
11471 * valprint.c: Update.
11472 * value.c: Update.
11473 * varobj.c: Update.
11474 * windows-nat.c: Update.
11475 * x86-linux-nat.c: Update.
11476 * xml-support.c: Update.
11477
a70b8144
TT
114782019-04-08 Tom Tromey <tom@tromey.com>
11479
11480 * xml-support.c: Use C++ exception handling.
11481 * x86-linux-nat.c: Use C++ exception handling.
11482 * windows-nat.c: Use C++ exception handling.
11483 * varobj.c: Use C++ exception handling.
11484 * value.c: Use C++ exception handling.
11485 * valprint.c: Use C++ exception handling.
11486 * valops.c: Use C++ exception handling.
11487 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11488 handling.
11489 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11490 * typeprint.c: Use C++ exception handling.
11491 * tui/tui.c: Use C++ exception handling.
11492 * tracefile-tfile.c: Use C++ exception handling.
11493 * top.c: Use C++ exception handling.
11494 * thread.c: Use C++ exception handling.
11495 * target.c: Use C++ exception handling.
11496 * symmisc.c: Use C++ exception handling.
11497 * symfile-mem.c: Use C++ exception handling.
11498 * stack.c: Use C++ exception handling.
11499 * sparc64-linux-tdep.c: Use C++ exception handling.
11500 * solib.c: Use C++ exception handling.
11501 * solib-svr4.c: Use C++ exception handling.
11502 * solib-spu.c: Use C++ exception handling.
11503 * solib-frv.c: Use C++ exception handling.
11504 * solib-dsbt.c: Use C++ exception handling.
11505 * selftest-arch.c: Use C++ exception handling.
11506 * s390-tdep.c: Use C++ exception handling.
11507 * rust-lang.c: Use C++ exception handling.
11508 * rust-exp.y: Use C++ exception handling.
11509 * rs6000-tdep.c: Use C++ exception handling.
11510 * rs6000-aix-tdep.c: Use C++ exception handling.
11511 * riscv-tdep.c: Use C++ exception handling.
11512 * remote.c: Use C++ exception handling.
11513 * remote-fileio.c: Use C++ exception handling.
11514 * record-full.c: Use C++ exception handling.
11515 * record-btrace.c: Use C++ exception handling.
11516 * python/python.c: Use C++ exception handling.
11517 * python/py-value.c: Use C++ exception handling.
11518 * python/py-utils.c: Use C++ exception handling.
11519 * python/py-unwind.c: Use C++ exception handling.
11520 * python/py-type.c: Use C++ exception handling.
11521 * python/py-symbol.c: Use C++ exception handling.
11522 * python/py-record.c: Use C++ exception handling.
11523 * python/py-record-btrace.c: Use C++ exception handling.
11524 * python/py-progspace.c: Use C++ exception handling.
11525 * python/py-prettyprint.c: Use C++ exception handling.
11526 * python/py-param.c: Use C++ exception handling.
11527 * python/py-objfile.c: Use C++ exception handling.
11528 * python/py-linetable.c: Use C++ exception handling.
11529 * python/py-lazy-string.c: Use C++ exception handling.
11530 * python/py-infthread.c: Use C++ exception handling.
11531 * python/py-inferior.c: Use C++ exception handling.
11532 * python/py-gdb-readline.c: Use C++ exception handling.
11533 * python/py-framefilter.c: Use C++ exception handling.
11534 * python/py-frame.c: Use C++ exception handling.
11535 * python/py-finishbreakpoint.c: Use C++ exception handling.
11536 * python/py-cmd.c: Use C++ exception handling.
11537 * python/py-breakpoint.c: Use C++ exception handling.
11538 * python/py-arch.c: Use C++ exception handling.
11539 * printcmd.c: Use C++ exception handling.
11540 * ppc-linux-tdep.c: Use C++ exception handling.
11541 * parse.c: Use C++ exception handling.
11542 * p-valprint.c: Use C++ exception handling.
11543 * objc-lang.c: Use C++ exception handling.
11544 * mi/mi-main.c: Use C++ exception handling.
11545 * mi/mi-interp.c: Use C++ exception handling.
11546 * mi/mi-cmd-stack.c: Use C++ exception handling.
11547 * mi/mi-cmd-break.c: Use C++ exception handling.
11548 * main.c: Use C++ exception handling.
11549 * linux-thread-db.c: Use C++ exception handling.
11550 * linux-tdep.c: Use C++ exception handling.
11551 * linux-nat.c: Use C++ exception handling.
11552 * linux-fork.c: Use C++ exception handling.
11553 * linespec.c: Use C++ exception handling.
11554 * language.c: Use C++ exception handling.
11555 * jit.c: Use C++ exception handling.
11556 * infrun.c: Use C++ exception handling.
11557 * infcmd.c: Use C++ exception handling.
11558 * infcall.c: Use C++ exception handling.
11559 * inf-loop.c: Use C++ exception handling.
11560 * i386-tdep.c: Use C++ exception handling.
11561 * i386-linux-tdep.c: Use C++ exception handling.
11562 * guile/scm-value.c: Use C++ exception handling.
11563 * guile/scm-type.c: Use C++ exception handling.
11564 * guile/scm-symtab.c: Use C++ exception handling.
11565 * guile/scm-symbol.c: Use C++ exception handling.
11566 * guile/scm-pretty-print.c: Use C++ exception handling.
11567 * guile/scm-ports.c: Use C++ exception handling.
11568 * guile/scm-param.c: Use C++ exception handling.
11569 * guile/scm-math.c: Use C++ exception handling.
11570 * guile/scm-lazy-string.c: Use C++ exception handling.
11571 * guile/scm-frame.c: Use C++ exception handling.
11572 * guile/scm-disasm.c: Use C++ exception handling.
11573 * guile/scm-cmd.c: Use C++ exception handling.
11574 * guile/scm-breakpoint.c: Use C++ exception handling.
11575 * guile/scm-block.c: Use C++ exception handling.
11576 * guile/guile-internal.h: Use C++ exception handling.
11577 * gnu-v3-abi.c: Use C++ exception handling.
11578 * gdbtypes.c: Use C++ exception handling.
11579 * frame.c: Use C++ exception handling.
11580 * frame-unwind.c: Use C++ exception handling.
11581 * fbsd-tdep.c: Use C++ exception handling.
11582 * f-valprint.c: Use C++ exception handling.
11583 * exec.c: Use C++ exception handling.
11584 * event-top.c: Use C++ exception handling.
11585 * event-loop.c: Use C++ exception handling.
11586 * eval.c: Use C++ exception handling.
11587 * dwarf2read.c: Use C++ exception handling.
11588 * dwarf2loc.c: Use C++ exception handling.
11589 * dwarf2-frame.c: Use C++ exception handling.
11590 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11591 * dwarf-index-write.c: Use C++ exception handling.
11592 * dwarf-index-cache.c: Use C++ exception handling.
11593 * dtrace-probe.c: Use C++ exception handling.
11594 * disasm-selftests.c: Use C++ exception handling.
11595 * darwin-nat.c: Use C++ exception handling.
11596 * cp-valprint.c: Use C++ exception handling.
11597 * cp-support.c: Use C++ exception handling.
11598 * cp-abi.c: Use C++ exception handling.
11599 * corelow.c: Use C++ exception handling.
11600 * completer.c: Use C++ exception handling.
11601 * compile/compile-object-run.c: Use C++ exception handling.
11602 * compile/compile-object-load.c: Use C++ exception handling.
11603 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11604 * compile/compile-c-symbols.c: Use C++ exception handling.
11605 * common/selftest.c: Use C++ exception handling.
11606 * common/new-op.c: Use C++ exception handling.
11607 * cli/cli-script.c: Use C++ exception handling.
11608 * cli/cli-interp.c: Use C++ exception handling.
11609 * cli/cli-cmds.c: Use C++ exception handling.
11610 * c-varobj.c: Use C++ exception handling.
11611 * btrace.c: Use C++ exception handling.
11612 * breakpoint.c: Use C++ exception handling.
11613 * break-catch-throw.c: Use C++ exception handling.
11614 * arch-utils.c: Use C++ exception handling.
11615 * amd64-tdep.c: Use C++ exception handling.
11616 * ada-valprint.c: Use C++ exception handling.
11617 * ada-typeprint.c: Use C++ exception handling.
11618 * ada-lang.c: Use C++ exception handling.
11619 * aarch64-tdep.c: Use C++ exception handling.
11620
3d6e9d23
TT
116212019-04-08 Tom Tromey <tom@tromey.com>
11622
11623 * xml-support.c (gdb_xml_parser::parse): Update.
11624 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11625 * value.c (show_convenience): Update.
11626 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11627 (test_parse_flags_qcs): Update.
11628 * thread.c (thr_try_catch_cmd): Update.
11629 * target.c (target_translate_tls_address): Update.
11630 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11631 (info_frame_command_core, frame_apply_command_count): Update.
11632 * rust-exp.y (rust_lex_exception_test): Update.
11633 * riscv-tdep.c (riscv_print_one_register_info): Update.
11634 * remote.c (remote_target::enable_btrace): Update.
11635 * record-btrace.c (record_btrace_enable_warn): Update.
11636 * python/py-utils.c (gdbpy_convert_exception): Update.
11637 * printcmd.c (do_one_display, print_variable_and_value): Update.
11638 * mi/mi-main.c (mi_print_exception): Update.
11639 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11640 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11641 * linux-nat.c (linux_nat_target::attach): Update.
11642 * linux-fork.c (class scoped_switch_fork_info): Update.
11643 * infrun.c (displaced_step_prepare): Update.
11644 * infcall.c (call_function_by_hand_dummy): Update.
11645 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11646 * gnu-v3-abi.c (print_one_vtable): Update.
11647 * frame.c (get_prev_frame_always): Update.
11648 * f-valprint.c (info_common_command_for_block): Update.
11649 * exec.c (try_open_exec_file): Update.
11650 * exceptions.c (print_exception, exception_print)
11651 (exception_fprintf, exception_print_same): Update.
11652 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11653 * dwarf-index-cache.c (index_cache::store)
11654 (index_cache::lookup_gdb_index): Update.
11655 * darwin-nat.c (maybe_cache_shell): Update.
11656 * cp-valprint.c (cp_print_value_fields): Update.
11657 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11658 (gcc_cplus_symbol_address): Update.
11659 * compile/compile-c-symbols.c (gcc_convert_symbol)
11660 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11661 * common/selftest.c: Update.
11662 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11663 a std::string.
11664 (exception_try_scope_entry, exception_try_scope_exit): Don't
11665 declare.
11666 (struct exception_try_scope): Remove.
11667 (TRY): Don't use exception_try_scope.
11668 (struct gdb_exception): Add constructor, operator=.
11669 <what>: New method.
11670 (struct gdb_exception_RETURN_MASK_ALL)
11671 (struct gdb_exception_RETURN_MASK_ERROR)
11672 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11673 (struct gdb_quit_bad_alloc): Update.
11674 * common/common-exceptions.c (exception_none): Change
11675 initializer.
11676 (struct catcher) <state, exception>: Initialize inline.
11677 <prev>: Remove member.
11678 (current_catcher): Remove.
11679 (catchers): New global.
11680 (exceptions_state_mc_init): Simplify.
11681 (catcher_pop): Remove.
11682 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11683 (try_scope_depth, exception_try_scope_entry)
11684 (exception_try_scope_exit): Remove.
11685 (throw_exception_sjlj): Update.
11686 (exception_messages, exception_messages_size): Remove.
11687 (throw_it): Simplify.
11688 (gdb_exception_sliced_copy): Remove.
11689 (throw_exception_cxx): Update.
11690 * cli/cli-script.c (script_from_file): Update.
11691 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11692 Update.
11693 * ada-valprint.c (ada_val_print): Update.
11694 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11695 (create_excep_cond_exprs): Update.
11696
c5c10118
TT
116972019-04-08 Tom Tromey <tom@tromey.com>
11698
11699 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11700 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11701 (TRY, CATCH, END_CATCH): Remove some definitions.
11702 * common/common-exceptions.c: Don't use GDB_XCPT.
11703 (catcher_list_size): Remove.
11704 (throw_exception, throw_it): Simplify.
11705
4de283e4
TT
117062019-04-05 Tom Tromey <tom@tromey.com>
11707
11708 Revert the header-sorting patch.
11709 * ft32-tdep.c: Revert.
11710 * frv-tdep.c: Revert.
11711 * frv-linux-tdep.c: Revert.
11712 * frame.c: Revert.
11713 * frame-unwind.c: Revert.
11714 * frame-base.c: Revert.
11715 * fork-child.c: Revert.
11716 * findvar.c: Revert.
11717 * findcmd.c: Revert.
11718 * filesystem.c: Revert.
11719 * filename-seen-cache.h: Revert.
11720 * filename-seen-cache.c: Revert.
11721 * fbsd-tdep.c: Revert.
11722 * fbsd-nat.h: Revert.
11723 * fbsd-nat.c: Revert.
11724 * f-valprint.c: Revert.
11725 * f-typeprint.c: Revert.
11726 * f-lang.c: Revert.
11727 * extension.h: Revert.
11728 * extension.c: Revert.
11729 * extension-priv.h: Revert.
11730 * expprint.c: Revert.
11731 * exec.h: Revert.
11732 * exec.c: Revert.
11733 * exceptions.c: Revert.
11734 * event-top.c: Revert.
11735 * event-loop.c: Revert.
11736 * eval.c: Revert.
11737 * elfread.c: Revert.
11738 * dwarf2read.h: Revert.
11739 * dwarf2read.c: Revert.
11740 * dwarf2loc.c: Revert.
11741 * dwarf2expr.h: Revert.
11742 * dwarf2expr.c: Revert.
11743 * dwarf2-frame.c: Revert.
11744 * dwarf2-frame-tailcall.c: Revert.
11745 * dwarf-index-write.h: Revert.
11746 * dwarf-index-write.c: Revert.
11747 * dwarf-index-common.c: Revert.
11748 * dwarf-index-cache.h: Revert.
11749 * dwarf-index-cache.c: Revert.
11750 * dummy-frame.c: Revert.
11751 * dtrace-probe.c: Revert.
11752 * disasm.h: Revert.
11753 * disasm.c: Revert.
11754 * disasm-selftests.c: Revert.
11755 * dictionary.c: Revert.
11756 * dicos-tdep.c: Revert.
11757 * demangle.c: Revert.
11758 * dcache.h: Revert.
11759 * dcache.c: Revert.
11760 * darwin-nat.h: Revert.
11761 * darwin-nat.c: Revert.
11762 * darwin-nat-info.c: Revert.
11763 * d-valprint.c: Revert.
11764 * d-namespace.c: Revert.
11765 * d-lang.c: Revert.
11766 * ctf.c: Revert.
11767 * csky-tdep.c: Revert.
11768 * csky-linux-tdep.c: Revert.
11769 * cris-tdep.c: Revert.
11770 * cris-linux-tdep.c: Revert.
11771 * cp-valprint.c: Revert.
11772 * cp-support.c: Revert.
11773 * cp-namespace.c: Revert.
11774 * cp-abi.c: Revert.
11775 * corelow.c: Revert.
11776 * corefile.c: Revert.
11777 * continuations.c: Revert.
11778 * completer.h: Revert.
11779 * completer.c: Revert.
11780 * complaints.c: Revert.
11781 * coffread.c: Revert.
11782 * coff-pe-read.c: Revert.
11783 * cli-out.h: Revert.
11784 * cli-out.c: Revert.
11785 * charset.c: Revert.
11786 * c-varobj.c: Revert.
11787 * c-valprint.c: Revert.
11788 * c-typeprint.c: Revert.
11789 * c-lang.c: Revert.
11790 * buildsym.c: Revert.
11791 * buildsym-legacy.c: Revert.
11792 * build-id.h: Revert.
11793 * build-id.c: Revert.
11794 * btrace.c: Revert.
11795 * bsd-uthread.c: Revert.
11796 * breakpoint.h: Revert.
11797 * breakpoint.c: Revert.
11798 * break-catch-throw.c: Revert.
11799 * break-catch-syscall.c: Revert.
11800 * break-catch-sig.c: Revert.
11801 * blockframe.c: Revert.
11802 * block.c: Revert.
11803 * bfin-tdep.c: Revert.
11804 * bfin-linux-tdep.c: Revert.
11805 * bfd-target.c: Revert.
11806 * bcache.c: Revert.
11807 * ax-general.c: Revert.
11808 * ax-gdb.h: Revert.
11809 * ax-gdb.c: Revert.
11810 * avr-tdep.c: Revert.
11811 * auxv.c: Revert.
11812 * auto-load.c: Revert.
11813 * arm-wince-tdep.c: Revert.
11814 * arm-tdep.c: Revert.
11815 * arm-symbian-tdep.c: Revert.
11816 * arm-pikeos-tdep.c: Revert.
11817 * arm-obsd-tdep.c: Revert.
11818 * arm-nbsd-tdep.c: Revert.
11819 * arm-nbsd-nat.c: Revert.
11820 * arm-linux-tdep.c: Revert.
11821 * arm-linux-nat.c: Revert.
11822 * arm-fbsd-tdep.c: Revert.
11823 * arm-fbsd-nat.c: Revert.
11824 * arm-bsd-tdep.c: Revert.
11825 * arch-utils.c: Revert.
11826 * arc-tdep.c: Revert.
11827 * arc-newlib-tdep.c: Revert.
11828 * annotate.h: Revert.
11829 * annotate.c: Revert.
11830 * amd64-windows-tdep.c: Revert.
11831 * amd64-windows-nat.c: Revert.
11832 * amd64-tdep.c: Revert.
11833 * amd64-sol2-tdep.c: Revert.
11834 * amd64-obsd-tdep.c: Revert.
11835 * amd64-obsd-nat.c: Revert.
11836 * amd64-nbsd-tdep.c: Revert.
11837 * amd64-nbsd-nat.c: Revert.
11838 * amd64-nat.c: Revert.
11839 * amd64-linux-tdep.c: Revert.
11840 * amd64-linux-nat.c: Revert.
11841 * amd64-fbsd-tdep.c: Revert.
11842 * amd64-fbsd-nat.c: Revert.
11843 * amd64-dicos-tdep.c: Revert.
11844 * amd64-darwin-tdep.c: Revert.
11845 * amd64-bsd-nat.c: Revert.
11846 * alpha-tdep.c: Revert.
11847 * alpha-obsd-tdep.c: Revert.
11848 * alpha-nbsd-tdep.c: Revert.
11849 * alpha-mdebug-tdep.c: Revert.
11850 * alpha-linux-tdep.c: Revert.
11851 * alpha-linux-nat.c: Revert.
11852 * alpha-bsd-tdep.c: Revert.
11853 * alpha-bsd-nat.c: Revert.
11854 * aix-thread.c: Revert.
11855 * agent.c: Revert.
11856 * addrmap.c: Revert.
11857 * ada-varobj.c: Revert.
11858 * ada-valprint.c: Revert.
11859 * ada-typeprint.c: Revert.
11860 * ada-tasks.c: Revert.
11861 * ada-lang.c: Revert.
11862 * aarch64-tdep.c: Revert.
11863 * aarch64-ravenscar-thread.c: Revert.
11864 * aarch64-newlib-tdep.c: Revert.
11865 * aarch64-linux-tdep.c: Revert.
11866 * aarch64-linux-nat.c: Revert.
11867 * aarch64-fbsd-tdep.c: Revert.
11868 * aarch64-fbsd-nat.c: Revert.
11869 * aarch32-linux-nat.c: Revert.
11870
d55e5aa6
TT
118712019-04-05 Tom Tromey <tom@tromey.com>
11872
11873 * ft32-tdep.c: Sort headers.
11874 * frv-tdep.c: Sort headers.
11875 * frv-linux-tdep.c: Sort headers.
11876 * frame.c: Sort headers.
11877 * frame-unwind.c: Sort headers.
11878 * frame-base.c: Sort headers.
11879 * fork-child.c: Sort headers.
11880 * findvar.c: Sort headers.
11881 * findcmd.c: Sort headers.
11882 * filesystem.c: Sort headers.
11883 * filename-seen-cache.h: Sort headers.
11884 * filename-seen-cache.c: Sort headers.
11885 * fbsd-tdep.c: Sort headers.
11886 * fbsd-nat.h: Sort headers.
11887 * fbsd-nat.c: Sort headers.
11888 * f-valprint.c: Sort headers.
11889 * f-typeprint.c: Sort headers.
11890 * f-lang.c: Sort headers.
11891 * extension.h: Sort headers.
11892 * extension.c: Sort headers.
11893 * extension-priv.h: Sort headers.
11894 * expprint.c: Sort headers.
11895 * exec.h: Sort headers.
11896 * exec.c: Sort headers.
11897 * exceptions.c: Sort headers.
11898 * event-top.c: Sort headers.
11899 * event-loop.c: Sort headers.
11900 * eval.c: Sort headers.
11901 * elfread.c: Sort headers.
11902 * dwarf2read.h: Sort headers.
11903 * dwarf2read.c: Sort headers.
11904 * dwarf2loc.c: Sort headers.
11905 * dwarf2expr.h: Sort headers.
11906 * dwarf2expr.c: Sort headers.
11907 * dwarf2-frame.c: Sort headers.
11908 * dwarf2-frame-tailcall.c: Sort headers.
11909 * dwarf-index-write.h: Sort headers.
11910 * dwarf-index-write.c: Sort headers.
11911 * dwarf-index-common.c: Sort headers.
11912 * dwarf-index-cache.h: Sort headers.
11913 * dwarf-index-cache.c: Sort headers.
11914 * dummy-frame.c: Sort headers.
11915 * dtrace-probe.c: Sort headers.
11916 * disasm.h: Sort headers.
11917 * disasm.c: Sort headers.
11918 * disasm-selftests.c: Sort headers.
11919 * dictionary.c: Sort headers.
11920 * dicos-tdep.c: Sort headers.
11921 * demangle.c: Sort headers.
11922 * dcache.h: Sort headers.
11923 * dcache.c: Sort headers.
11924 * darwin-nat.h: Sort headers.
11925 * darwin-nat.c: Sort headers.
11926 * darwin-nat-info.c: Sort headers.
11927 * d-valprint.c: Sort headers.
11928 * d-namespace.c: Sort headers.
11929 * d-lang.c: Sort headers.
11930 * ctf.c: Sort headers.
11931 * csky-tdep.c: Sort headers.
11932 * csky-linux-tdep.c: Sort headers.
11933 * cris-tdep.c: Sort headers.
11934 * cris-linux-tdep.c: Sort headers.
11935 * cp-valprint.c: Sort headers.
11936 * cp-support.c: Sort headers.
11937 * cp-namespace.c: Sort headers.
11938 * cp-abi.c: Sort headers.
11939 * corelow.c: Sort headers.
11940 * corefile.c: Sort headers.
11941 * continuations.c: Sort headers.
11942 * completer.h: Sort headers.
11943 * completer.c: Sort headers.
11944 * complaints.c: Sort headers.
11945 * coffread.c: Sort headers.
11946 * coff-pe-read.c: Sort headers.
11947 * cli-out.h: Sort headers.
11948 * cli-out.c: Sort headers.
11949 * charset.c: Sort headers.
11950 * c-varobj.c: Sort headers.
11951 * c-valprint.c: Sort headers.
11952 * c-typeprint.c: Sort headers.
11953 * c-lang.c: Sort headers.
11954 * buildsym.c: Sort headers.
11955 * buildsym-legacy.c: Sort headers.
11956 * build-id.h: Sort headers.
11957 * build-id.c: Sort headers.
11958 * btrace.c: Sort headers.
11959 * bsd-uthread.c: Sort headers.
11960 * breakpoint.h: Sort headers.
11961 * breakpoint.c: Sort headers.
11962 * break-catch-throw.c: Sort headers.
11963 * break-catch-syscall.c: Sort headers.
11964 * break-catch-sig.c: Sort headers.
11965 * blockframe.c: Sort headers.
11966 * block.c: Sort headers.
11967 * bfin-tdep.c: Sort headers.
11968 * bfin-linux-tdep.c: Sort headers.
11969 * bfd-target.c: Sort headers.
11970 * bcache.c: Sort headers.
11971 * ax-general.c: Sort headers.
11972 * ax-gdb.h: Sort headers.
11973 * ax-gdb.c: Sort headers.
11974 * avr-tdep.c: Sort headers.
11975 * auxv.c: Sort headers.
11976 * auto-load.c: Sort headers.
11977 * arm-wince-tdep.c: Sort headers.
11978 * arm-tdep.c: Sort headers.
11979 * arm-symbian-tdep.c: Sort headers.
11980 * arm-pikeos-tdep.c: Sort headers.
11981 * arm-obsd-tdep.c: Sort headers.
11982 * arm-nbsd-tdep.c: Sort headers.
11983 * arm-nbsd-nat.c: Sort headers.
11984 * arm-linux-tdep.c: Sort headers.
11985 * arm-linux-nat.c: Sort headers.
11986 * arm-fbsd-tdep.c: Sort headers.
11987 * arm-fbsd-nat.c: Sort headers.
11988 * arm-bsd-tdep.c: Sort headers.
11989 * arch-utils.c: Sort headers.
11990 * arc-tdep.c: Sort headers.
11991 * arc-newlib-tdep.c: Sort headers.
11992 * annotate.h: Sort headers.
11993 * annotate.c: Sort headers.
11994 * amd64-windows-tdep.c: Sort headers.
11995 * amd64-windows-nat.c: Sort headers.
11996 * amd64-tdep.c: Sort headers.
11997 * amd64-sol2-tdep.c: Sort headers.
11998 * amd64-obsd-tdep.c: Sort headers.
11999 * amd64-obsd-nat.c: Sort headers.
12000 * amd64-nbsd-tdep.c: Sort headers.
12001 * amd64-nbsd-nat.c: Sort headers.
12002 * amd64-nat.c: Sort headers.
12003 * amd64-linux-tdep.c: Sort headers.
12004 * amd64-linux-nat.c: Sort headers.
12005 * amd64-fbsd-tdep.c: Sort headers.
12006 * amd64-fbsd-nat.c: Sort headers.
12007 * amd64-dicos-tdep.c: Sort headers.
12008 * amd64-darwin-tdep.c: Sort headers.
12009 * amd64-bsd-nat.c: Sort headers.
12010 * alpha-tdep.c: Sort headers.
12011 * alpha-obsd-tdep.c: Sort headers.
12012 * alpha-nbsd-tdep.c: Sort headers.
12013 * alpha-mdebug-tdep.c: Sort headers.
12014 * alpha-linux-tdep.c: Sort headers.
12015 * alpha-linux-nat.c: Sort headers.
12016 * alpha-bsd-tdep.c: Sort headers.
12017 * alpha-bsd-nat.c: Sort headers.
12018 * aix-thread.c: Sort headers.
12019 * agent.c: Sort headers.
12020 * addrmap.c: Sort headers.
12021 * ada-varobj.c: Sort headers.
12022 * ada-valprint.c: Sort headers.
12023 * ada-typeprint.c: Sort headers.
12024 * ada-tasks.c: Sort headers.
12025 * ada-lang.c: Sort headers.
12026 * aarch64-tdep.c: Sort headers.
12027 * aarch64-ravenscar-thread.c: Sort headers.
12028 * aarch64-newlib-tdep.c: Sort headers.
12029 * aarch64-linux-tdep.c: Sort headers.
12030 * aarch64-linux-nat.c: Sort headers.
12031 * aarch64-fbsd-tdep.c: Sort headers.
12032 * aarch64-fbsd-nat.c: Sort headers.
12033 * aarch32-linux-nat.c: Sort headers.
12034
699bd4cf
TT
120352019-04-04 Tom Tromey <tom@tromey.com>
12036
12037 * varobj.c (varobj_create): Update.
12038 * rust-exp.y (struct rust_parser) <update_innermost_block,
12039 lookup_symbol>: New methods.
12040 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12041 Rename.
12042 (rust_parser::rust_lookup_type)
12043 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12044 * printcmd.c (display_command, do_one_display): Update.
12045 * parser-defs.h (struct parser_state) <parser_state>: Add
12046 "tracker" parameter.
12047 (block_tracker): New member.
12048 (class innermost_block_tracker) <innermost_block_tracker>: Add
12049 "types" parameter.
12050 <reset>: Remove method.
12051 (innermost_block): Don't declare.
12052 (null_post_parser): Update.
12053 * parse.c (innermost_block): Remove global.
12054 (write_dollar_variable): Update.
12055 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12056 Remove "tracker_types" parameter.
12057 (parse_expression): Add "tracker" parameter.
12058 (parse_expression_for_completion): Update.
12059 (null_post_parser): Add "tracker" parameter.
12060 * p-exp.y: Update rules.
12061 * m2-exp.y: Update rules.
12062 * language.h (struct language_defn) <la_post_parser>: Add
12063 "tracker" parameter.
12064 * go-exp.y: Update rules.
12065 * f-exp.y: Update rules.
12066 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12067 parameter.
12068 * d-exp.y: Update rules.
12069 * c-exp.y: Update rules.
12070 * breakpoint.c (set_breakpoint_condition): Create an
12071 innermost_block_tracker.
12072 (watch_command_1): Likewise.
12073 * ada-lang.c (resolve): Add "tracker" parameter.
12074 (resolve_subexp): Likewise.
12075 * ada-exp.y (write_var_from_sym): Update.
12076
dac43e32
TT
120772019-04-04 Tom Tromey <tom@tromey.com>
12078
12079 * type-stack.h: New file.
12080 * type-stack.c: New file.
12081 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12082 type-stack.h.
12083 (insert_into_type_stack, insert_type, push_type, push_type_int)
12084 (insert_type_address_space, pop_type, pop_type_int)
12085 (pop_typelist, pop_type_stack, append_type_stack)
12086 (push_type_stack, get_type_stack, push_typelist)
12087 (follow_type_instance_flags, follow_types): Don't declare.
12088 * parse.c (type_stack): Remove global.
12089 (parse_exp_in_context): Update.
12090 (insert_into_type_stack, insert_type, push_type, push_type_int)
12091 (insert_type_address_space, pop_type, pop_type_int)
12092 (pop_typelist, pop_type_stack, append_type_stack)
12093 (push_type_stack, get_type_stack, push_typelist)
12094 (follow_type_instance_flags, follow_types): Remove (moved to
12095 type-stack.c).
12096 * f-exp.y (type_stack): New global.
12097 Update rules.
12098 (push_kind_type, f_parse): Update.
12099 * d-exp.y (type_stack): New global.
12100 Update rules.
12101 (d_parse): Update.
12102 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12103 Update rules.
12104 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12105 (HFILES_NO_SRCDIR): Add type-stack.h.
12106
2a612529
TT
121072019-04-04 Tom Tromey <tom@tromey.com>
12108
12109 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12110 (rust_parser::convert_ast_to_expression, rust_parse)
12111 (rust_lex_test_completion, rust_lex_tests): Update.
12112 * parser-defs.h (struct expr_completion_state): New.
12113 (struct parser_state) <parser_state>: Add completion parameter.
12114 <mark_struct_expression, mark_completion_tag>: New methods.
12115 <parse_completion, m_completion_state>: New members.
12116 (prefixify_expression, null_post_parser): Update.
12117 (mark_struct_expression, mark_completion_tag): Don't declare.
12118 * parse.c (parse_completion, expout_last_struct)
12119 (expout_tag_completion_type, expout_completion_name): Remove
12120 globals.
12121 (parser_state::mark_struct_expression)
12122 (parser_state::mark_completion_tag): Now methods.
12123 (prefixify_expression): Add last_struct parameter.
12124 (prefixify_subexp): Likewise.
12125 (parse_exp_1): Update.
12126 (parse_exp_in_context): Add cstate parameter. Update.
12127 (parse_expression_for_completion): Create an
12128 expr_completion_state.
12129 (null_post_parser): Add "completion" parameter.
12130 * p-exp.y: Update rules.
12131 (yylex): Update.
12132 * language.h (struct language_defn) <la_post_parser>: Add
12133 "completing" parameter.
12134 * go-exp.y: Update rules.
12135 (lex_one_token): Update.
12136 * expression.h (parse_completion): Don't declare.
12137 * d-exp.y: Update rules.
12138 (lex_one_token): Update rules.
12139 * c-exp.y: Update rules.
12140 (lex_one_token): Update.
12141 * ada-lang.c (resolve): Add "parse_completion" parameter.
12142 (resolve_subexp): Likewise.
12143 (ada_resolve_function): Likewise.
12144
43476f0b
TT
121452019-04-04 Tom Tromey <tom@tromey.com>
12146
12147 * parser-defs.h (struct parser_state) <start_arglist,
12148 end_arglist>: New methods.
12149 <arglist_len, m_funcall_chain>: New members.
12150 (arglist_len, start_arglist, end_arglist): Don't declare.
12151 * parse.c (arglist_len, funcall_chain): Remove global.
12152 (start_arglist, end_arglist): Remove functions.
12153 (parse_exp_in_context): Update.
12154 * p-exp.y: Update rules.
12155 * m2-exp.y: Update rules.
12156 * go-exp.y: Update rules.
12157 * f-exp.y: Update rules.
12158 * d-exp.y: Update rules.
12159 * c-exp.y: Update rules.
12160
5776fca3
TT
121612019-04-04 Tom Tromey <tom@tromey.com>
12162
12163 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12164 lex_operator, push_back>: New methods.
12165 Update all rules.
12166 (rust_parser::lex_hex, lex_escape): Rename and update.
12167 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12168 (rust_parser::lex_operator): Rename and update.
12169 (rust_parser::lex_number, rustyylex, rustyyerror)
12170 (rust_lex_test_init, rust_lex_test_sequence)
12171 (rust_lex_test_push_back, rust_lex_tests): Update.
12172 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12173 parameter.
12174 <lexptr, prev_lexptr>: New members.
12175 (lexptr, prev_lexptr): Don't declare.
12176 * parse.c (lexptr, prev_lexptr): Remove globals.
12177 (parse_exp_in_context): Update.
12178 * p-exp.y (yylex, yyerror): Update.
12179 * m2-exp.y (parse_number, yylex, yyerror): Update.
12180 * go-exp.y (lex_one_token, yyerror): Update.
12181 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12182 * d-exp.y (lex_one_token, yyerror): Update.
12183 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12184 (lex_one_token, yyerror): Update.
12185 * ada-lex.l (YY_INPUT): Update.
12186 (rewind_to_char): Update.
12187 * ada-exp.y (yyerror): Update.
12188
8621b685
TT
121892019-04-04 Tom Tromey <tom@tromey.com>
12190
12191 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12192 * parser-defs.h (struct parser_state) <parser_state>: Add new
12193 parameter.
12194 <comma_terminates>: New member.
12195 (comma_terminates): Don't declare global.
12196 * parse.c (comma_terminates): Remove global.
12197 (parse_exp_in_context): Update.
12198 * p-exp.y (yylex): Update.
12199 * m2-exp.y (yylex): Update.
12200 * go-exp.y (lex_one_token): Update.
12201 * f-exp.y (yylex): Update.
12202 * d-exp.y (lex_one_token): Update.
12203 * c-exp.y (lex_one_token): Update.
12204 * ada-lex.l: Update.
12205
28aaf3fd
TT
122062019-04-04 Tom Tromey <tom@tromey.com>
12207
12208 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12209 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12210 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12211 * parser-defs.h (paren_depth): Don't declare.
12212 * parse.c (paren_depth): Remove global.
12213 (parse_exp_in_context): Update.
12214 * p-exp.y (paren_depth): New global.
12215 (pascal_parse): Initialize it.
12216 * m2-exp.y (paren_depth): New global.
12217 (m2_parse): Initialize it.
12218 * go-exp.y (paren_depth): New global.
12219 (go_parse): Initialize it.
12220 * f-exp.y (paren_depth): New global.
12221 (f_parse): Initialize it.
12222 * d-exp.y (paren_depth): New global.
12223 (d_parse): Initialize it.
12224 * c-exp.y (paren_depth): New global.
12225 (c_parse): Initialize it.
12226 * ada-lex.l (paren_depth): New global.
12227 (lexer_init): Initialize it.
12228
1e58a4a4
TT
122292019-04-04 Tom Tromey <tom@tromey.com>
12230
12231 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12232 (rust_parser::convert_ast_to_type)
12233 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12234 * parser-defs.h (struct parser_state) <parser_state>: Add
12235 parameters. Initialize new members.
12236 <expression_context_block, expression_context_pc>: New members.
12237 * parse.c (expression_context_block, expression_context_pc):
12238 Remove globals.
12239 (parse_exp_in_context): Update.
12240 * p-exp.y: Update all rules.
12241 (yylex): Update.
12242 * m2-exp.y: Update all rules.
12243 (yylex): Update.
12244 * go-exp.y (yylex): Update.
12245 * f-exp.y (yylex): Update.
12246 * d-exp.y: Update all rules.
12247 (yylex): Update.
12248 * c-exp.y: Update all rules.
12249 (lex_one_token, classify_name, yylex, c_parse): Update.
12250 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12251
37eedb39
TT
122522019-04-04 Tom Tromey <tom@tromey.com>
12253
12254 * gdbarch.h, gdbarch.c: Rebuild.
12255 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12256 * stap-probe.h:
12257 (struct stap_parse_info): Replace "parser_state" with
12258 "expr_builder".
12259 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12260 (parser_state): New class.
12261 * parse.c (expr_builder): Rename.
12262 (expr_builder::release): Rename.
12263 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12264 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12265 (write_exp_elt_longcst, write_exp_elt_floatcst)
12266 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12267 (write_exp_string_vector, write_exp_bitstring)
12268 (write_exp_msymbol, mark_struct_expression)
12269 (write_dollar_variable)
12270 (insert_type_address_space, increase_expout_size): Replace
12271 "parser_state" with "expr_builder".
12272 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12273 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12274 "parser_state" with "expr_builder".
12275
73923d7e
TT
122762019-04-04 Tom Tromey <tom@tromey.com>
12277
12278 * rust-exp.y: Replace "parse_language" with method call.
12279 * p-exp.y:
12280 (yylex): Replace "parse_language" with method call.
12281 * m2-exp.y:
12282 (yylex): Replace "parse_language" with method call.
12283 * go-exp.y (classify_name): Replace "parse_language" with method
12284 call.
12285 * f-exp.y (yylex): Replace "parse_language" with method call.
12286 * d-exp.y (lex_one_token): Replace "parse_language" with method
12287 call.
12288 * c-exp.y:
12289 (lex_one_token, classify_name, yylex): Replace "parse_language"
12290 with method call.
12291 * ada-exp.y (find_primitive_type, type_char)
12292 (type_system_address): Replace "parse_language" with method call.
12293
fa9f5be6
TT
122942019-04-04 Tom Tromey <tom@tromey.com>
12295
12296 * rust-exp.y: Replace "parse_gdbarch" with method call.
12297 * parse.c (write_dollar_variable, insert_type_address_space):
12298 Replace "parse_gdbarch" with method call.
12299 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12300 call.
12301 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12302 call.
12303 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12304 "parse_gdbarch" with method call.
12305 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12306 with method call.
12307 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12308 "parse_gdbarch" with method call.
12309 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12310 "parse_gdbarch" with method call.
12311 * c-exp.y (parse_type, parse_number, classify_name): Replace
12312 "parse_gdbarch" with method call.
12313 * ada-lex.l: Replace "parse_gdbarch" with method call.
12314 * ada-exp.y (parse_type, find_primitive_type, type_char)
12315 (type_system_address): Replace "parse_gdbarch" with method call.
12316
1201a264
TT
123172019-04-04 Tom Tromey <tom@tromey.com>
12318
12319 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12320 * stap-probe.c (stap_parse_argument): Update.
12321 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12322 initial_size parameter.
12323 * rust-exp.y (rust_lex_tests): Update.
12324 * parse.c (parser_state): Update.
12325 (parse_exp_in_context): Update.
12326 * parser-defs.h (struct parser_state) <parser_state>: Remove
12327 "initial_size" parameter.
12328
e3980ce2
TT
123292019-04-04 Tom Tromey <tom@tromey.com>
12330
12331 * parser-defs.h (increase_expout_size): Don't declare.
12332 * parse.c (increase_expout_size): Now static.
12333
e9f8e3f1
TS
123342019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12335
12336 * gnu-nat.c (gnu_nat_target::wait): Fix
12337 target_waitstatus_to_string call.
12338
d7df6549
AB
123392019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12340
12341 * eval.c (evaluate_subexp_standard): Handle internal functions
12342 during Fortran function call handling.
12343
8bdc1658
AB
123442019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12345
12346 * NEWS: Mention new internal functions.
12347 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12348 (read_base_type): Use dwarf2_init_complex_target_type.
12349 * value.c (creal_internal_fn): New function.
12350 (cimag_internal_fn): New function.
12351 (_initialize_values): Register new internal functions.
12352
c29705b7
PW
123532019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12354
12355 * infrun.c (stop_all_threads): If debug_infrun, always
12356 trace the wait status after wait_one, using
12357 target_waitstatus_to_string and target_pid_to_str.
12358 (handle_inferior_event): Replace various trace of
12359 wait status kind by a single trace.
12360 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12361 wait status kind image by target_waitstatus_to_string.
12362 * target/waitstatus.c (target_waitstatus_to_string): Fix
12363 obsolete comment.
12364
05caa1d2
TT
123652019-04-01 Tom Tromey <tromey@adacore.com>
12366
12367 PR symtab/23331:
12368 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12369
9d1447e0
SDJ
123702019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12371 Pedro Alves <palves@redhat.com>
12372
12373 * top.c (quit_force): Call 'finalize_values'.
12374 * value.c (finalize_values): New function.
12375 * value.h (finalize_values): Declare.
12376
7734102d
EZ
123772019-03-30 Eli Zaretskii <eliz@gnu.org>
12378
12379 * NEWS: Announce $_gdb_major and $_gdb_minor.
12380
12381 * top.c (init_gdb_version_vars): New function.
12382 (gdb_init): Call init_gdb_version_vars.
12383
188e1fa9
TT
123842019-03-29 Tom Tromey <tromey@adacore.com>
12385
12386 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12387 help text. Remove dead code.
12388
2880242d
KS
123892019-03-29 Keith Seitz <keiths@redhat.com>
12390
12391 From Siddhesh Poyarekar:
12392 * f-lang.h (f77_get_upperbound): Return LONGEST.
12393 (f77_get_lowerbound): Likewise.
12394 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12395 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12396 print them.
12397 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12398 plongest to format print it.
12399 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12400 (f77_get_upperbound): Likewise.
12401 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12402 LOWER_BOUND to LONGEST.
12403 (f77_create_arrayprint_offset_tbl): Likewise.
12404
cc1defb1
KS
124052019-03-29 Keith Seitz <keiths@redhat.com>
12406
12407 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12408 %s/pulongest for TYPE_LENGTH instead of %d in format
12409 strings.
12410 * ada-typerint.c (ada_print_type): Likewise.
12411 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12412 * compile/compile-c-support.c (generate_register_struct): Likewise.
12413 * gdbtypes.c (recursive_dump_type): Likewise.
12414 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12415 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12416 instead of %d in format strings.
12417 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12418 to std::min to ULONGEST.
12419 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12420 instead of %d in format strings.
12421 * tracepoint.c (info_scope_command): Likewise.
12422 * typeprint.c (print_offset_data::update)
12423 (print_offset_data::finish): Likewise.
12424 * xtensa-tdep.c (xtensa_store_return_value)
12425 (xtensa_push_dummy_call): Likewise.
12426
e432ccf1
JT
124272019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12428
12429 * windows-nat.c (display_selector): Fixed format specifications
12430 for 64-bit Cygwin.
12431
65d2b333
PW
124322019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12433
12434 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12435
f489207e
SL
124362019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12437
12438 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12439 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12440 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12441 (nios2_linux_init_abi): Install it.
12442
bffa1015
AH
124432019-03-28 Alan Hayward <alan.hayward@arm.com>
12444
12445 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12446
fc96163a
AH
124472019-03-28 Alan Hayward <alan.hayward@arm.com>
12448
12449 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12450
20dc7e9b
PW
124512019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12452 Tom Tromey <tromey@adacore.com>
12453
12454 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12455
7f5331a8
JB
124562019-03-26 Joel Brobecker <brobecker@adacore.com>
12457
12458 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12459 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12460 method to compute the bounds of range types. Also print "[evaluated]"
12461 if the bounds' values come from a dynamic evaluation.
12462
18c77628
AB
124632019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12466 whitespace when pretty printing is on.
12467
53c973f2
AH
124682019-03-26 Alan Hayward <alan.hayward@arm.com>
12469
e79be6e5 12470 * ppc-linux-nat.c: Add include.
53c973f2 12471
d851aa71
AH
124722019-03-26 Alan Hayward <alan.hayward@arm.com>
12473
e79be6e5 12474 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12475
2fe7bab7
AH
124762019-03-26 Alan Hayward <alan.hayward@arm.com>
12477
e79be6e5 12478 * arm-linux-nat.c: Add include.
2fe7bab7 12479
068ef30e
SM
124802019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12481
12482 * source-cache.c (source_cache::get_source_lines): Re-read
12483 fullname after calling open_source_file.
12484
81a24d04
JB
124852019-03-25 John Baldwin <jhb@FreeBSD.org>
12486
12487 * NEWS: Mention TLS support for FreeBSD.
12488
79e7ae11
TT
124892019-03-25 Tom Tromey <tromey@adacore.com>
12490
12491 * minsyms.c (BUNCH_SIZE): Update comment.
12492 (~minimal_symbol_reader): Remove old comment.
12493 (compact_minimal_symbols): Update comment.
12494 (minimal_symbol_reader::install): Remove old comment. Update
12495 other comments.
12496
d45963c2
AH
124972019-03-25 Alan Hayward <alan.hayward@arm.com>
12498
12499 * s390-linux-nat.c: Add include.
12500
0f83012e
AH
125012019-03-25 Alan Hayward <alan.hayward@arm.com>
12502
12503 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12504 Call linux_get_hwcap.
12505 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12506 Likewise.
12507 (aarch64_linux_get_hwcap): Remove function.
12508 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12509 declaration.
12510 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12511 linux_get_hwcap.
12512 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12513 * linux-tdep.c (linux_get_hwcap): Add function.
12514 (linux_get_hwcap2): Likewise.
12515 * linux-tdep.h (linux_get_hwcap): Add declaration.
12516 (linux_get_hwcap2): Likewise.
12517 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12518 (ppc_linux_get_hwcap2): Likewise.
12519 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12520 linux_get_hwcap.
12521 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12522 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12523 (ppc_linux_nat_target::read_description): Likewise.
12524 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12525 * s390-linux-nat.c: Likewise.
12526 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12527
6640a367
TT
125282019-03-24 Tom Tromey <tom@tromey.com>
12529
12530 * ada-lang.c (standard_lookup): Simplify initialization.
12531 (ada_lookup_symbol_nonlocal): Simplify return.
12532 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12533 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12534 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12535 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12536 initialization.
12537 * solib.c (solib_global_lookup): Simplify.
12538 * symtab.c (null_block_symbol): Remove.
12539 (symbol_cache_lookup): Simplify returns.
12540 (lookup_language_this): Simplify returns.
12541 (lookup_symbol_aux): Simplify return.
12542 (lookup_local_symbol): Simplify returns.
12543 (lookup_global_symbol_from_objfile): Simplify return.
12544 (lookup_symbol_in_objfile_symtabs)
12545 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12546 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12547 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12548 * cp-namespace.c (cp_lookup_bare_symbol)
12549 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12550 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12551 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12552 (cp_lookup_symbol_via_imports): Simplify initialization.
12553 (find_symbol_in_baseclass): Likewise.
12554 * symtab.h (null_block_symbol): Remove.
12555 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12556 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12557 (d_lookup_symbol_module): Likewise.
12558 (find_symbol_in_baseclass): Simplify initialization.
12559
a930ebcd
TT
125602019-03-24 Tom Tromey <tom@tromey.com>
12561
12562 * expression.h: Don't include symtab.h.
12563 (struct block): Forward declare.
12564
582942f4
TT
125652019-03-24 Tom Tromey <tom@tromey.com>
12566
12567 * c-exp.y (typebase): Remove casts.
12568 * gdbtypes.c (lookup_unsigned_typename, )
12569 (lookup_signed_typename): Remove cast.
12570 * eval.c (parse_to_comma_and_eval): Remove cast.
12571 * parse.c (write_dollar_variable): Remove cast.
12572 * block.h (struct block) <superblock>: Now const.
12573 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12574 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12575 (map_block): Make "block" const.
12576 * symfile.h (struct quick_symbol_functions)
12577 <map_matching_symbols>: Constify block argument to "callback".
12578 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12579 const.
12580 (find_pc_sect_compunit_symtab): Make "b" const.
12581 (find_symbol_at_address): Likewise.
12582 (search_symbols): Likewise.
12583 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12584 (dw2_debug_names_lookup_symbol): Likewise.
12585 (dw2_map_matching_symbols): Update.
12586 * p-valprint.c (pascal_val_print): Remove "block".
12587 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12588 (aux_add_nonlocal_symbols): Make "block" const.
12589 (resolve_subexp): Remove cast.
12590 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12591 const.
12592 (iterate_over_file_blocks): Likewise.
12593 * f-exp.y (%union) <bval>: Remove.
12594 * coffread.c (patch_opaque_types): Make "b" const.
12595 * spu-tdep.c (spu_catch_start): Make "block" const.
12596 * c-valprint.c (print_unpacked_pointer): Remove "block".
12597 * symmisc.c (dump_symtab_1): Make "b" const.
12598 (block_depth): Make "block" const.
12599 * d-exp.y (%union) <bval>: Remove.
12600 * cp-support.h (cp_lookup_rtti_type): Update.
12601 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12602 * psymtab.c (psym_lookup_symbol): Make "block" const.
12603 (maintenance_check_psymtabs): Make "b" const.
12604 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12605 (enumerate_locals, enumerate_args): Update.
12606 * python/py-symtab.c (stpy_global_block): Make "block" const.
12607 (stpy_static_block): Likewise.
12608 * inline-frame.c (block_starting_point_at): Make "new_block"
12609 const.
12610 * block.c (find_block_in_blockvector): Make return type const.
12611 (blockvector_for_pc_sect): Make "b" const.
12612 (find_block_in_blockvector): Make "b" const.
12613
7ad417dd
TT
126142019-03-23 Tom Tromey <tom@tromey.com>
12615
12616 * varobj.c (varobj_create): Update.
12617 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12618 * printcmd.c (display_command, do_one_display): Don't reset
12619 innermost_block.
12620 * parser-defs.h (enum innermost_block_tracker_type): Move to
12621 expression.h.
12622 (innermost_block): Update comment.
12623 * parse.c (parse_exp_1): Add tracker_types parameter.
12624 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12625 tracker_types parameter. Reset innermost_block.
12626 (parse_exp_in_context): Remove.
12627 (parse_expression_for_completion): Update.
12628 * objfiles.c (~objfile): Don't reset expression_context_block or
12629 innermost_block.
12630 * expression.h (enum innermost_block_tracker_type): Move from
12631 parser-defs.h.
12632 (parse_exp_1): Add tracker_types parameter.
12633 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12634 reset innermost_block.
12635
b366c208
TT
126362019-03-23 Tom Tromey <tom@tromey.com>
12637
12638 * objfiles.h: Include bcache.h.
12639
9bb9b2f9
TT
126402019-03-23 Tom Tromey <tom@tromey.com>
12641
12642 * linespec.c (get_current_search_block): Use
12643 scoped_restore_current_language.
12644 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12645
59c28372
AH
126462019-03-22 Alan Hayward <alan.hayward@arm.com>
12647 Jiong Wang <jiong.wang@arm.com>
12648
12649 * aarch64-linux-tdep.c
12650 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12651 section.
12652 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12653
17e116a7
AH
126542019-03-22 Alan Hayward <alan.hayward@arm.com>
12655 Jiong Wang <jiong.wang@arm.com>
12656
12657 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12658 instructions.
12659 (aarch64_analyze_prologue_test): Add PACIASP test.
12660 (aarch64_prologue_prev_register): Unmask PC value.
12661
11e1b75f
AH
126622019-03-22 Alan Hayward <alan.hayward@arm.com>
12663 Jiong Wang <jiong.wang@arm.com>
12664
12665 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12666 (aarch64_dwarf2_prev_register): Unmask PC value.
12667 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12668 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12669 DW_CFA_AARCH64_negate_ra_state.
12670 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12671
34dcc7cf
AH
126722019-03-22 Alan Hayward <alan.hayward@arm.com>
12673 Jiong Wang <jiong.wang@arm.com>
12674
12675 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12676 registers.
12677 (aarch64_pseudo_register_name): Likewise.
12678 (aarch64_pseudo_register_type): Likewise.
12679 (aarch64_pseudo_register_reggroup_p): Likewise.
12680 (aarch64_gdbarch_init): Add pauth registers.
12681 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12682 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12683 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12684 (struct gdbarch_tdep): Add regnum for ra_state.
12685
1ef53e6b
AH
126862019-03-22 Alan Hayward <alan.hayward@arm.com>
12687 Jiong Wang <jiong.wang@arm.com>
12688
12689 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12690
76bed0fd
AH
126912019-03-22 Alan Hayward <alan.hayward@arm.com>
12692 Jiong Wang <jiong.wang@arm.com>
12693
12694 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12695 function.
12696 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12697 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12698 (aarch64_gdbarch_init): Add puth registers.
12699 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12700 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12701 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12702
ee4fbcfa
AH
127032019-03-22 Alan Hayward <alan.hayward@arm.com>
12704 Jiong Wang <jiong.wang@arm.com>
12705
12706 * aarch64-linux-nat.c
12707 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12708 * aarch64-linux-tdep.c
12709 (aarch64_linux_core_read_description): Likewise.
12710 (aarch64_linux_get_hwcap): New function.
12711 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12712 (aarch64_linux_get_hwcap): New declaration.
12713
6dc0ebde
AH
127142019-03-22 Alan Hayward <alan.hayward@arm.com>
12715 Jiong Wang <jiong.wang@arm.com>
12716
12717 * aarch64-linux-nat.c
12718 (aarch64_linux_nat_target::read_description): Add pauth param.
12719 * aarch64-linux-tdep.c
12720 (aarch64_linux_core_read_description): Likewise.
12721 * aarch64-tdep.c (struct target_desc): Add in pauth.
12722 (aarch64_read_description): Add pauth param.
12723 (aarch64_gdbarch_init): Likewise.
12724 * aarch64-tdep.h (aarch64_read_description): Likewise.
12725 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12726 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12727 * features/Makefile: Add new files.
12728 * features/aarch64-pauth.c: New file.
12729 * features/aarch64-pauth.xml: New file.
12730
595915c1
TT
127312019-03-20 Tom Tromey <tromey@adacore.com>
12732
12733 * infrun.c (handle_inferior_event): Rename from
12734 handle_inferior_event_1. Create a scoped_value_mark.
12735 (handle_inferior_event): Remove.
12736
4c7d57e7
TT
127372019-03-19 Tom Tromey <tromey@adacore.com>
12738
12739 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12740 * infrun.h (print_stop_event): Add "displays" parameter.
12741 * infrun.c (print_stop_event): Add "displays" parameter.
12742
cb246234
PA
127432019-03-19 Pedro Alves <palves@redhat.com>
12744
12745 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12746 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12747 to -1. Fix TABs vs spaces.
12748 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12749 * tui/tui-out.h (tui_ui_out) Add intro comments.
12750 <m_line, m_start_of_line>: In-class initialize, and add describing
12751 comment.
12752
3a0e45b2
AH
127532019-03-18 Alan Hayward <alan.hayward@arm.com>
12754
12755 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12756 variable names.
12757 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12758
5371b850
PA
127592019-03-18 Pedro Alves <palves@redhat.com>
12760 Eli Zaretskii <eliz@gnu.org>
12761
12762 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12763 m_line and m_start_of_line.
12764
b17c4cd0
EZ
127652019-03-18 Eli Zaretskii <eliz@gnu.org>
12766
12767 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12768 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12769 it returns a newline. This fixes a regression in TU mode, whereby
12770 the next line is output on the same screen line as the user input.
12771
4bd56d18
TT
127722019-03-18 Tom Tromey <tromey@adacore.com>
12773
12774 * minsyms.c (minimal_symbol_reader::install): Remove call to
12775 obstack_blank.
12776
55c10aca
PA
127772019-03-18 Pedro Alves <palves@redhat.com>
12778
12779 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12780 New globals.
12781 (apply_style): New, factored out from ...
12782 (apply_ansi_escape): ... this. Handle reverse video mode.
12783 (tui_set_reverse_mode): New function.
12784 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12785 * tui/tui-winsource.c (tui_show_source_line): Use
12786 tui_set_reverse_mode instead of setting A_STANDOUT.
12787 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12788 New setter methods.
12789
647bb750
HD
127902019-03-18 Hannes Domani <ssbssa@yahoo.de>
12791
12792 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12793 Handle tabs.
12794
bff8c71f
TT
127952019-03-18 Tom Tromey <tromey@adacore.com>
12796
12797 * ada-lang.c (empty_array): Add "high" parameter.
12798 (ada_evaluate_subexp): Update.
12799
58785d98
ST
128002019-03-17 Sergei Trofimovich <siarheit@google.com>
12801
12802 * unittests/string_view-selftests.c: Define
12803 _initialize_string_view_selftests unconditionally.
12804
d4cbef22
ВМ
128052019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12806
12807 PR gdb/24350
12808 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12809
fce4c071
ВМ
128102019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12811
12812 PR gdb/24351
12813 * windows-nat.c (display_selector): Fix format specifiers.
12814
f7f0a123
EZ
128152019-03-17 Eli Zaretskii <eliz@gnu.org>
12816
12817 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12818 tui_refill_source_window instead of tui_refresh_win, to update the
12819 current execution line. This fixes redisplay of the current line
12820 when stepping through the code with "next" or "step".
12821
ab42892f
EZ
128222019-03-16 Eli Zaretskii <eliz@gnu.org>
12823
12824 * source-cache.c (source_cache::get_source_lines): Call
12825 find_source_lines to initialize s->nlines. This fixes vertical
12826 scrolling of TUI source window when the DOWN arrow is pressed.
12827
8d8c087f
PW
128282019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12829
12830 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12831 linux-thread-db.c (_initialize_thread_db): Likewise.
12832
798e1c30
EZ
128332019-03-16 Eli Zaretskii <eliz@gnu.org>
12834
12835 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12836 wclrtoeol in tui_show_source_line". This reverts changes made in
12837 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12838
eefba3da
TT
128392019-03-15 Tom Tromey <tom@tromey.com>
12840
12841 * symtab.h (struct minimal_symbol): Derive from
12842 general_symbol_info.
12843 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12844 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12845 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12846 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12847 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12848 (MSYMBOL_SEARCH_NAME): Update.
12849 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12850 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12851 * minsyms.c (minimal_symbol_reader::record_full): Update.
12852
0de2420c
TT
128532019-03-15 Tom Tromey <tom@tromey.com>
12854
12855 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12856
042d75e4
TT
128572019-03-15 Tom Tromey <tom@tromey.com>
12858
12859 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12860 unique_xmalloc_ptr.
12861 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12862 Update.
12863 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12864 (build_minimal_symbol_hash_tables)
12865 (minimal_symbol_reader::install): Update.
12866
db92718b
TT
128672019-03-15 Tom Tromey <tom@tromey.com>
12868
12869 * symtab.c (create_demangled_names_hash): Update.
12870 (symbol_set_names): Update.
12871 * objfiles.h (struct objfile_per_bfd_storage)
12872 <demangled_names_hash>: Now an htab_up.
12873 * objfiles.c (objfile_per_bfd_storage): Simplify.
12874
d6797f46
TT
128752019-03-15 Tom Tromey <tom@tromey.com>
12876
12877 * objfiles.h (struct objfile_per_bfd_storage): Declare
12878 destructor.
12879 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12880 New.
12881 (get_objfile_bfd_data): Use new. Don't initialize
12882 language_of_main.
12883 (free_objfile_per_bfd_storage): Remove.
12884 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12885
741d7538
TT
128862019-03-15 Tom Tromey <tom@tromey.com>
12887
12888 * symfile.c (reread_symbols): Update.
12889 * objfiles.c (objfile::objfile): Update.
12890 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12891 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12892 comment.
12893 (minimal_symbol_reader::install): Update.
12894 (terminate_minimal_symbol_table): Remove.
12895 * jit.c (jit_object_close_impl): Update.
12896
788c80d1
TT
128972019-03-15 Tom Tromey <tom@tromey.com>
12898
12899 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12900 initializations.
12901
1b7a07cb
TT
129022019-03-15 Tom Tromey <tom@tromey.com>
12903
12904 * objfiles.h (struct objfile_per_bfd_storage)
12905 <demangled_hash_languages>: Now a bitset.
12906 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12907 (lookup_minimal_symbol): Update.
12908
3db066bc
TT
129092019-03-15 Tom Tromey <tom@tromey.com>
12910
12911 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12912 Don't return the symbol.
12913 * coffread.c (record_minimal_symbol): Use record_full.
12914
3fff2c37
EZ
129152019-03-14 Eli Zaretskii <eliz@gnu.org>
12916
12917 The MS-Windows port of ncurses fails to switch to a color pair if
12918 one or both of the colors are the implicit default colors. This
12919 change records the default colors when TUI is initialized, and
12920 then specifies them explicitly when a color pair uses the default
12921 colors. This allows color styling in TUI mode on MS-Windows.
12922
12923 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12924 ncurses_norm_attr.
12925 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12926 colors in ncurses_norm_attr.
12927 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12928 "none", replace it with the default color recorded in
12929 ncurses_norm_attr.
12930
3b336828
TT
129312019-03-14 Tom Tromey <tromey@adacore.com>
12932
12933 * source-cache.h (class source_cache) <get_source_lines>: Return
12934 std::string.
12935 * source-cache.c (source_cache::extract_lines): Handle case where
12936 first_pos==npos. Return std::string.
12937 (source_cache::get_source_lines): Update.
12938
d085f989
TT
129392019-03-14 Tom Tromey <tromey@adacore.com>
12940
12941 * NEWS: Add item for "style sources" commands.
12942 * source-cache.c (source_cache::get_source_lines): Check
12943 source_styling.
12944 * cli/cli-style.c (source_styling): New global.
12945 (_initialize_cli_style): Add "style sources" commands.
12946 (show_style_sources): New function.
12947 * cli/cli-style.h (source_styling): Declare.
12948
6f11e682
TT
129492019-03-14 Pedro Alves <palves@redhat.com>
12950 Tom Tromey <tromey@adacore.com>
12951
12952 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12953 * tui/tui-winsource.c (tui_refill_source_window): New function,
12954 from...
12955 (tui_horizontal_source_scroll): ... here. Move some logic.
12956 * cli/cli-style.c (set_style_enabled): Notify new observable.
12957 * tui/tui-hooks.c (tui_redisplay_source): New function.
12958 (tui_attach_detach_observers): Attach or detach
12959 tui_redisplay_source.
12960 * observable.h (source_styling_changed): New observable.
12961 * observable.c: Define source_styling_changed observable.
12962
a068643d
TT
129632019-03-13 Tom Tromey <tromey@adacore.com>
12964
12965 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12966 (i386_gnu_nat_target::store_registers): Update.
12967 * target-debug.h (target_debug_print_std_string): New macro.
12968 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12969 * windows-tdep.c (display_one_tib): Update.
12970 * tui/tui-stack.c (tui_make_status_line): Update.
12971 * top.c (print_inferior_quit_action): Update.
12972 * thread.c (thr_try_catch_cmd): Update.
12973 (add_thread_with_info): Update.
12974 (thread_target_id_str): Update.
12975 (thr_try_catch_cmd): Update.
12976 (thread_command): Update.
12977 (thread_find_command): Update.
12978 * record-btrace.c (record_btrace_target::info_record)
12979 (record_btrace_resume_thread, record_btrace_target::resume)
12980 (record_btrace_cancel_resume, record_btrace_step_thread)
12981 (record_btrace_target::wait, record_btrace_target::wait)
12982 (record_btrace_target::wait, record_btrace_target::stop): Update.
12983 * progspace.c (print_program_space): Update.
12984 * process-stratum-target.c
12985 (process_stratum_target::thread_address_space): Update.
12986 * linux-fork.c (linux_fork_mourn_inferior)
12987 (detach_checkpoint_command, info_checkpoints_command)
12988 (linux_fork_context): Update.
12989 (linux_fork_detach): Update.
12990 (class scoped_switch_fork_info): Update.
12991 (delete_checkpoint_command): Update.
12992 * infrun.c (follow_fork_inferior): Update.
12993 (follow_fork_inferior): Update.
12994 (proceed_after_vfork_done): Update.
12995 (handle_vfork_child_exec_or_exit): Update.
12996 (follow_exec): Update.
12997 (displaced_step_prepare_throw): Update.
12998 (displaced_step_restore): Update.
12999 (start_step_over): Update.
13000 (resume_1): Update.
13001 (clear_proceed_status_thread): Update.
13002 (proceed): Update.
13003 (print_target_wait_results): Update.
13004 (do_target_wait): Update.
13005 (context_switch): Update.
13006 (stop_all_threads): Update.
13007 (restart_threads): Update.
13008 (finish_step_over): Update.
13009 (handle_signal_stop): Update.
13010 (switch_back_to_stepped_thread): Update.
13011 (keep_going_pass_signal): Update.
13012 (print_exited_reason): Update.
13013 (normal_stop): Update.
13014 * inferior.c (inferior_pid_to_str): Change return type.
13015 (print_selected_inferior): Update.
13016 (add_inferior): Update.
13017 (detach_inferior): Update.
13018 * dummy-frame.c (fprint_dummy_frames): Update.
13019 * dcache.c (dcache_info_1): Update.
13020 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13021 (btrace_fetch, btrace_clear): Update.
13022 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13023 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13024 type.
13025 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13026 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13027 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13028 * gdbarch.c, gdbarch.h: Rebuild.
13029 * gdbarch.sh (core_pid_to_str): Change return type.
13030 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13031 return type.
13032 (windows_nat_target::pid_to_str): Change return type.
13033 (windows_delete_thread): Update.
13034 (windows_nat_target::attach): Update.
13035 (windows_nat_target::files_info): Update.
13036 * target-delegates.c: Rebuild.
13037 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13038 return type.
13039 (sol_thread_target::pid_to_str): Change return type.
13040 * remote.c (class remote_target) <pid_to_str>: Change return
13041 type.
13042 (remote_target::pid_to_str): Change return type.
13043 (extended_remote_target::attach, remote_target::remote_stop_ns)
13044 (remote_target::remote_notif_remove_queued_reply)
13045 (remote_target::push_stop_reply, remote_target::disable_btrace):
13046 Update.
13047 (extended_remote_target::attach): Update.
13048 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13049 type.
13050 (gdbsim_target::pid_to_str): Change return type.
13051 * ravenscar-thread.c (struct ravenscar_thread_target)
13052 <pid_to_str>: Change return type.
13053 (ravenscar_thread_target::pid_to_str): Change return type.
13054 * procfs.c (class procfs_target) <pid_to_str>: Change return
13055 type.
13056 (procfs_target::pid_to_str): Change return type.
13057 (procfs_target::attach): Update.
13058 (procfs_target::detach): Update.
13059 (procfs_target::fetch_registers): Update.
13060 (procfs_target::store_registers): Update.
13061 (procfs_target::wait): Update.
13062 (procfs_target::files_info): Update.
13063 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13064 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13065 return type.
13066 (nto_procfs_target::pid_to_str): Change return type.
13067 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13068 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13069 return type.
13070 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13071 (exit_lwp): Update.
13072 (attach_proc_task_lwp_callback, get_detach_signal)
13073 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13074 (linux_nat_target::resume, wait_lwp, stop_callback)
13075 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13076 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13077 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13078 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13079 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13080 type.
13081 (inf_ptrace_target::attach): Update.
13082 (inf_ptrace_target::files_info): Update.
13083 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13084 type.
13085 (go32_nat_target::pid_to_str): Change return type.
13086 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13087 (gnu_nat_target::wait): Update.
13088 (gnu_nat_target::wait): Update.
13089 (gnu_nat_target::resume): Update.
13090 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13091 (fbsd_nat_target::wait): Update.
13092 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13093 type.
13094 (darwin_nat_target::attach): Update.
13095 * corelow.c (class core_target) <pid_to_str>: Change return type.
13096 (core_target::pid_to_str): Change return type.
13097 * target.c (normal_pid_to_str): Change return type.
13098 (default_pid_to_str): Likewise.
13099 (target_pid_to_str): Change return type.
13100 (target_translate_tls_address): Update.
13101 (target_announce_detach): Update.
13102 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13103 return type.
13104 (bsd_uthread_target::pid_to_str): Change return type.
13105 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13106 type.
13107 (bsd_kvm_target::pid_to_str): Change return type.
13108 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13109 return type.
13110 (aix_thread_target::pid_to_str): Change return type.
13111 * target.h (struct target_ops) <pid_to_str>: Change return type.
13112 (target_pid_to_str, normal_pid_to_str): Likewise.
13113 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13114 type.
13115 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13116 type.
13117 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13118 return type.
13119 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13120 type.
13121 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13122 type.
13123 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13124 return type.
13125
b4be1b06
SM
131262019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13127
13128 * NEWS: Mention that the new default MI version is 3. Mention
13129 changes to the output of commands and events that deal with
13130 multi-location breakpoints.
13131 * breakpoint.c: Include "mi/mi-out.h".
13132 (print_one_breakpoint): Change output syntax if using MI version
13133 >= 3.
13134 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13135 New.
13136 (mi_multi_location_breakpoint_output_fixed): New.
13137 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13138 (mi_cmd_fix_multi_location_breakpoint_output): New.
13139 (mi_multi_location_breakpoint_output_fixed): New.
13140 * mi/mi-cmds.c (mi_cmds): Register command
13141 -fix-multi-location-breakpoint-output.
13142 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13143 interpreter "mi".
13144
8e5e5494
SM
131452019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13146
13147 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13148 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13149 instantiate mi_ui_out based on interpreter name.
13150 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13151 * mi/mi-main.c (mi_load_progress): Likewise.
13152
197df35e
JB
131532019-03-12 John Baldwin <jhb@FreeBSD.org>
13154
13155 * NEWS: Combine separate "New targets" sections for 8.3.
13156
8399425f
JB
131572019-03-12 John Baldwin <jhb@FreeBSD.org>
13158
13159 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13160 (ppcfbsd_init_abi): Install gdbarch
13161 "fetch_tls_load_module_address" and "get_thread_local_address"
13162 methods.
13163
b0f87ed0
JB
131642019-03-12 John Baldwin <jhb@FreeBSD.org>
13165
13166 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13167 (riscv_fbsd_init_abi): Install gdbarch
13168 "fetch_tls_load_module_address" and "get_thread_local_address"
13169 methods.
13170
ce25aa57
JB
131712019-03-12 John Baldwin <jhb@FreeBSD.org>
13172
13173 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13174 (i386fbsd_init_abi): Install gdbarch
13175 "fetch_tls_load_module_address" and "get_thread_local_address"
13176 methods.
13177
f5424cfa
JB
131782019-03-12 John Baldwin <jhb@FreeBSD.org>
13179
13180 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13181 (amd64fbsd_init_abi): Install gdbarch
13182 "fetch_tls_load_module_address" and "get_thread_local_address"
13183 methods.
13184
945f3901
JB
131852019-03-12 John Baldwin <jhb@FreeBSD.org>
13186
13187 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13188 (struct fbsd_pspace_data): New type.
13189 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13190 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13191 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13192 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13193 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13194
ef0bd204
JB
131952019-03-12 John Baldwin <jhb@FreeBSD.org>
13196
13197 * gdbtypes.c (lookup_struct_elt): New function.
13198 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13199 * gdbtypes.h (struct struct_elt): New type.
13200 (lookup_struct_elt): New prototype.
13201
36c53a02
JB
132022019-03-12 John Baldwin <jhb@FreeBSD.org>
13203
13204 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13205 remove disabled code block.
13206
6e056c81
JB
132072019-03-12 John Baldwin <jhb@FreeBSD.org>
13208
13209 * gdbarch.sh (get_thread_local_address): New method.
13210 * gdbarch.h, gdbarch.c: Regenerate.
13211 * target.c (target_translate_tls_address): Use
13212 gdbarch_get_thread_local_address if present instead of
13213 target::get_thread_local_address.
13214
cd250a18
JB
132152019-03-12 John Baldwin <jhb@FreeBSD.org>
13216
13217 * target.h (target::get_thread_local_address): Update comment.
13218
df22c1e5
JB
132192019-03-12 John Baldwin <jhb@FreeBSD.org>
13220
13221 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13222 objfile->separate_debug_objfile_backlink if not NULL.
13223
dd6876c9
JB
132242019-03-12 John Baldwin <jhb@FreeBSD.org>
13225
13226 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13227 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13228 (amd64bsd_store_inferior_registers): Likewise.
13229 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13230 Enable segment base registers.
13231 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13232 PT_GETFSBASE and PT_GETGSBASE.
13233 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13234 PT_SETGSBASE.
13235 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13236 segment base registers.
13237 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13238
1163a4b7
JB
132392019-03-12 John Baldwin <jhb@FreeBSD.org>
13240
13241 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13242 Update calls to i386_target_description to add 'segments'
13243 parameter.
13244 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13245 add segment base registers.
13246 * arch/i386.c (i386_create_target_description): Add 'segments'
13247 parameter to enable segment base registers.
13248 * arch/i386.h (i386_create_target_description): Likewise.
13249 * features/i386/32bit-segments.xml: New file.
13250 * features/i386/32bit-segments.c: Generate.
13251 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13252 call to i386_target_description to add 'segments' parameter.
13253 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13254 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13255 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13256 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13257 if feature is present.
13258 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13259 Add 'segments' parameter to call to i386_target_description.
13260 (i386_target_description): Add 'segments' parameter to enable
13261 segment base registers.
13262 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13263 to call to i386_target_description.
13264 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13265 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13266 Define I386_NUM_REGS.
13267 (i386_target_description): Add 'segments' parameter to enable
13268 segment base registers.
13269
3a350822
EZ
132702019-03-12 Eli Zaretskii <eliz@gnu.org>
13271
13272 PR/24325
13273 * source-cache.c: #undef open and close, to avoid unresolved
13274 externals during linking.
13275
ffdd69cf
TT
132762019-03-12 Tom Tromey <tromey@adacore.com>
13277
13278 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13279 const. Add initializers.
13280 (_initialize_remote): Don't initialize ptid globals.
13281
ec148c57
PA
132822019-03-12 Pedro Alves <palves@redhat.com>
13283
13284 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13285
32764270
PA
132862019-03-12 Pedro Alves <palves@redhat.com>
13287
13288 * cp-name-parser.y (main): Remove unused 'len' variable.
13289
17547186
TT
132902019-03-12 Tom Tromey <tromey@adacore.com>
13291
13292 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13293 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13294
d3a70e03
TT
132952019-03-12 Tom Tromey <tromey@adacore.com>
13296
13297 * linux-nat.c (iterate_over_lwps): Update.
13298 (stop_callback): Remove parameter.
13299 (stop_wait_callback, detach_callback, resume_set_callback)
13300 (select_singlestep_lwp_callback, set_ignore_sigint)
13301 (status_callback, resumed_callback, resume_clear_callback)
13302 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13303 data parameter.
13304 (linux_nat_target::detach, linux_nat_target::resume)
13305 (linux_stop_and_wait_all_lwps, select_event_lwp)
13306 (linux_nat_filter_event, linux_nat_wait_1)
13307 (linux_nat_target::kill, linux_nat_target::stop)
13308 (linux_nat_target::stop): Update.
13309 (linux_nat_resume_callback): Change type.
13310 (resume_stopped_resumed_lwps, count_events_callback)
13311 (select_event_lwp_callback): Likewise.
13312 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13313 * arm-linux-nat.c (struct update_registers_data): Remove.
13314 (update_registers_callback): Change type.
13315 (arm_linux_insert_hw_breakpoint1): Update.
13316 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13317 parameter.
13318 (x86_linux_dr_set_addr): Update.
13319 (x86_linux_dr_set_control): Update.
13320 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13321 (iterate_over_lwps): Use gdb::function_view.
13322 * nat/aarch64-linux-hw-point.c (struct
13323 aarch64_dr_update_callback_param): Remove.
13324 (debug_reg_change_callback): Change type.
13325 (aarch64_notify_debug_reg_change): Update.
13326 * s390-linux-nat.c (s390_refresh_per_info): Update.
13327
82cb27ff
TT
133282019-03-11 Tom Tromey <tromey@adacore.com>
13329
13330 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13331 redundant assignment to "this_cu".
13332
568c0683
SM
133332019-03-08 Simon Marchi <simon.marchi@efficios.com>
13334
13335 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13336
f09ce22d
SM
133372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13338
13339 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13340 from...
13341 (rank_one_type): ... this.
13342
595f96a9
SM
133432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13344
13345 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13346 from...
13347 (rank_one_type): ... this.
13348
2598a94b
SM
133492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13350
13351 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13352 from...
13353 (rank_one_type): ... this.
13354
7f17b20d
SM
133552019-03-08 Simon Marchi <simon.marchi@efficios.com>
13356
13357 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13358 from...
13359 (rank_one_type): ... this.
13360
2c509035
SM
133612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13362
13363 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13364 from...
13365 (rank_one_type): ... this.
13366
0dd322dc
SM
133672019-03-08 Simon Marchi <simon.marchi@efficios.com>
13368
13369 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13370 from...
13371 (rank_one_type): ... this.
13372
41ea4728
SM
133732019-03-08 Simon Marchi <simon.marchi@efficios.com>
13374
13375 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13376 from...
13377 (rank_one_type): ... this.
13378
793cd1d2
SM
133792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13382 from...
13383 (rank_one_type): ... this.
13384
34910087
SM
133852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13386
13387 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13388 from...
13389 (rank_one_type): ... this.
13390
f1f832d6
SM
133912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13392
13393 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13394 from...
13395 (rank_one_type): ... this.
13396
b9f4512f
SM
133972019-03-08 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13400 from...
13401 (rank_one_type): ... this.
13402
9293fc63
SM
134032019-03-08 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13406 from...
13407 (rank_one_type): ... this.
13408
e3abbe7e
PW
134092019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13410
13411 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13412 inferior-events' shows the example events.
13413
e4adb939
EZ
134142019-03-08 Eli Zaretskii <eliz@gnu.org>
13415
13416 Support styling on native MS-Windows console
13417
13418 PR/24315
13419 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13420 on MS-Windows if $TERM is not defined.
13421
13422 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13423
13424 * posix-hdep.c (gdb_console_fputs):
13425 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13426 functions.
13427 * ui-file.h (gdb_console_fputs): Add prototype.
13428
13429 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13430 back to fputs only if the former returns zero.
13431
25629dfd
TT
134322019-03-07 Tom Tromey <tom@tromey.com>
13433
13434 * symmisc.c (print_symbol_bcache_statistics): Update.
13435 (print_objfile_statistics): Update.
13436 * symfile.c (allocate_symtab): Update.
13437 * stabsread.c: Don't include bcache.h.
13438 * psymtab.h (struct psymbol_bcache): Don't declare.
13439 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13440 (psymbol_bcache_init, psymbol_bcache_free)
13441 (psymbol_bcache_get_bcache): Don't declare.
13442 * psymtab.c (struct psymbol_bcache): Remove.
13443 (psymtab_storage::psymtab_storage): Update.
13444 (psymtab_storage::~psymtab_storage): Update.
13445 (psymbol_bcache_init, psymbol_bcache_free)
13446 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13447 (add_psymbol_to_bcache): Update.
13448 (allocate_psymtab): Update.
13449 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13450 macro_cache>: No longer pointers.
13451 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13452 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13453 * macrotab.c (macro_bcache): Update.
13454 * macroexp.c: Don't include bcache.h.
13455 * gdbtypes.c (check_types_worklist): Update.
13456 (types_deeply_equal): Remove TRY/CATCH. Update.
13457 * elfread.c (elf_symtab_read): Update.
13458 * dwarf2read.c: Don't include bcache.h.
13459 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13460 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13461 (print_bcache_statistics, bcache_memory_used): Don't declare.
13462 (struct bcache): Move from bcache.c. Add constructor, destructor,
13463 methods. Rename all data members.
13464 * bcache.c (struct bcache): Move to bcache.h.
13465 (bcache::expand_hash_table): Rename from expand_hash_table.
13466 (bcache): Remove.
13467 (bcache::insert): Rename from bcache_full.
13468 (bcache::compare): Rename from bcache_compare.
13469 (bcache_xmalloc): Remove.
13470 (bcache::~bcache): Rename from bcache_xfree.
13471 (bcache::print_statistics): Rename from print_bcache_statistics.
13472 (bcache::memory_used): Rename from bcache_memory_used.
13473
fe726667
PA
134742019-03-07 Pedro Alves <palves@redhat.com>
13475
13476 * infrun.c (normal_stop): Also check for
13477 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13478
7584bb30
AB
134792019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13480
13481 * f-lang.c (value_from_host_double): Moved to...
13482 * value.c (value_from_host_double): ...here.
13483 * value.h (value_from_host_double): Declare.
13484 * guile/scm-math.c (vlscm_convert_typed_number): Use
13485 value_from_host_double.
13486 (vlscm_convert_number): Likewise.
13487 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13488 * python/py-value.c (convert_value_from_python): Likewise.
13489
a7b1986e
TT
134902019-03-06 Tom Tromey <tom@tromey.com>
13491
13492 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13493
0ccf4211
TT
134942019-03-06 Tom Tromey <tom@tromey.com>
13495
13496 * utils.h (free_current_contents): Don't declare.
13497 * utils.c (free_current_contents): Remove.
13498
fe7b42e5
TT
134992019-03-06 Tom Tromey <tom@tromey.com>
13500
13501 * top.c (quit_force): Update.
13502 * main.c (captured_command_loop): Update.
13503 * common/new-op.c (operator new): Update.
13504 * common/common-exceptions.c (struct catcher)
13505 <save_cleanup_chain>: Remove member.
13506 (exceptions_state_mc_init): Update.
13507 (exception_try_scope_entry): Return nullptr.
13508 (exception_try_scope_exit, exception_rethrow)
13509 (throw_exception_sjlj, throw_exception_cxx): Update.
13510 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13511 (all_cleanups, do_cleanups, discard_cleanups)
13512 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13513 (restore_cleanups, restore_final_cleanups): Don't declare.
13514 (do_final_cleanups): Remove parameter.
13515 * common/cleanups.c (cleanup_chain, make_cleanup)
13516 (make_cleanup_dtor, all_cleanups, do_cleanups)
13517 (discard_my_cleanups, discard_cleanups)
13518 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13519 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13520 (null_cleanup): Remove.
13521 (do_final_cleanups): Remove parameter.
13522
c6321f19
TT
135232019-03-06 Tom Tromey <tom@tromey.com>
13524
13525 * remote.c (remote_target::remote_parse_stop_reply): Use
13526 unique_xmalloc_ptr.
13527
61b30099
TT
135282019-03-06 Tom Tromey <tom@tromey.com>
13529
13530 * stabsread.c (struct stabs_field_info): Rename from field_info.
13531 <list, fnlist>: Add initializers.
13532 <obstack>: New member.
13533 (read_member_functions, read_struct_fields, read_baseclasses):
13534 Allocate on obstack. Don't use cleanups.
13535 (read_one_struct_field, read_member_functions, read_struct_fields)
13536 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13537 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13538 (read_struct_type): Update.
13539
6cceac94
TT
135402019-03-06 Tom Tromey <tom@tromey.com>
13541
13542 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13543 * common/filestuff.h (make_cleanup_close): Don't declare.
13544 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13545 Remove.
13546
72412762
TT
135472019-03-06 Tom Tromey <tom@tromey.com>
13548
13549 * solib-aix.c: Use make_scope_exit.
13550
2b6ff1c0
TT
135512019-03-06 Tom Tromey <tom@tromey.com>
13552
13553 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13554 Use make_scope_exit.
13555
d01c5877
TT
135562019-03-06 Tom Tromey <tom@tromey.com>
13557
13558 * solib-svr4.c (disable_probes_interface): Remove parameter.
13559 (svr4_handle_solib_event): Use make_scope_exit.
13560
32603266
TT
135612019-03-06 Tom Tromey <tom@tromey.com>
13562
13563 * remote.c (struct stop_reply_deleter): Remove.
13564 (stop_reply_up): Update.
13565 (struct stop_reply): Derive from notif_event. Don't typedef.
13566 <regcache>: Now a std::vector.
13567 (stop_reply_xfree): Remove.
13568 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13569 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13570 (remote_target::discard_pending_stop_replies): Use delete.
13571 (remote_target::remote_parse_stop_reply): Update.
13572 (remote_target::process_stop_reply): Update.
13573 * remote-notif.h (struct notif_event): Add virtual destructor.
13574 Remove "dtr" member.
13575 (struct notif_client) <alloc_event>: Return a unique_ptr.
13576 (notif_event_xfree): Don't declare.
13577 (notif_event_up): New typedef.
13578 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13579 (notif_event_xfree, do_notif_event_xfree): Remove.
13580 (remote_notif_state_xfree): Update.
13581
9799571e
TT
135822019-03-06 Tom Tromey <tom@tromey.com>
13583
13584 * infrun.c (displaced_step_clear_cleanup): Now a
13585 forward_scope_exit type.
13586 (displaced_step_prepare_throw): Update.
13587 (displaced_step_fixup): Update.
13588
09e3c4ca
TT
135892019-03-06 Tom Tromey <tom@tromey.com>
13590
13591 * inferior.h (class inferior): Update comment.
13592 * gdbthread.h (class thread_info): Update comment.
13593
e2a03548
TT
135942019-03-06 Joel Brobecker <brobecker@adacore.com>
13595 Tom Tromey <tom@tromey.com>
13596
13597 * stabsread.h (struct stab_section_list): Remove.
13598 (coffstab_build_psymtabs): Update.
13599 * dbxread.c (symbuf_sections): Now a std::vector.
13600 (sect_idx): New global.
13601 (fill_symbuf): Update.
13602 (coffstab_build_psymtabs): Change type of stabsects parameter.
13603 Update.
13604 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13605 std::vector.
13606 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13607 (coff_locate_sections): Update.
13608 (coff_symfile_read): Remove cleanups. Update.
13609 (init_stringtab): Add storage parameter.
13610 (free_stringtab, free_stringtab_cleanup): Remove.
13611 (init_lineno): Add storage parameter.
13612 (free_linetab, free_linetab_cleanup): Remove.
13613
b7e60d85
PA
136142019-03-06 Pedro Alves <palves@redhat.com>
13615
13616 * linux-fork.c (fork_info::clobber_regs): Delete.
13617 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13618 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13619 comment. Adjust.
13620 (scoped_switch_fork_info::scoped_switch_fork_info)
13621 (checkpoint_command, linux_fork_context): Adjust
13622 fork_save_infrun_state calls.
13623
e52c971f
PA
136242019-03-06 Pedro Alves <palves@redhat.com>
13625
13626 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13627 (inf_has_multiple_threads): Return 'bool' and rewrite using
13628 inferior_info::threads().
13629
06974e6c
PA
136302019-03-06 Pedro Alves <palves@redhat.com>
13631
13632 * linux-fork.c: Include <list>.
13633 (fork_list): Now a std::list instance.
13634 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13635 (forks_exist_p, find_last_fork): Adjust.
13636 (new_fork): Delete.
13637 (one_fork_p): New.
13638 (add_fork): Adjust.
13639 (free_fork): Delete, folded into fork_info::~fork_info().
13640 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13641 Adjust.
13642 (init_fork_list): Delete.
13643 (linux_fork_killall, linux_fork_mourn_inferior)
13644 (linux_fork_detach, info_checkpoints_command): Adjust.
13645 (_initialize_linux_fork): No longer call init_fork_list.
13646
72f31aea
PA
136472019-03-06 Pedro Alves <palves@redhat.com>
13648
13649 * linux-fork.c (new_fork): New, split out of ...
13650 (add_fork): ... this. Return void. Move "first fork" special
13651 case from here, to ...
13652 (checkpoint_command): ... here.
13653 * linux-linux.h (add_fork): Return void.
13654
efbecbc1
AB
136552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13656
13657 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13658
0841c79a
AB
136592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13660 Chris January <chris.january@arm.com>
13661 David Lecomber <david.lecomber@arm.com>
13662
13663 * f-exp.y: New token, UNOP_INTRINSIC.
13664 (exp): New pattern using UNOP_INTRINSIC token.
13665 (f77_keywords): Add 'abs' keyword.
13666 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13667 (value_from_host_double): New function.
13668 (evaluate_subexp_f): Support UNOP_ABS.
13669
4a270568
AB
136702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13671
13672 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13673 types.
13674
067630bd
AB
136752019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13676
13677 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13678 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13679 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13680
3be47f7a
AB
136812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13684
4d00f5d8
AB
136852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13686 Chris January <chris.january@arm.com>
13687
13688 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13689 * f-exp.y: Define 'KIND' token.
13690 (exp): New pattern for KIND expressions.
13691 (ptype): Handle types with a kind extension.
13692 (direct_abs_decl): Extend to spot kind extensions.
13693 (f77_keywords): Add 'kind' to the list.
13694 (push_kind_type): New function.
13695 (convert_to_kind_type): New function.
13696 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13697 * parse.c (operator_length_standard): Likewise.
13698 * parser-defs.h (enum type_pieces): Add tp_kind.
13699 * std-operator.def: Add UNOP_KIND.
13700
e454224f
AB
137012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13702
13703 * f-exp.y (f_parse): Set yydebug.
13704
9dad4a58
AB
137052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13706
13707 * f-lang.c (evaluate_subexp_f): New function.
13708 (exp_descriptor_f): New global.
13709 (f_language_defn): Use exp_descriptor_f instead of
13710 exp_descriptor_standard.
13711
c8f91604
AB
137122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * f-exp.y (struct token): Add comments.
13715 (dot_ops): Remove uppercase versions and the end marker.
13716 (f77_keywords): Likewise.
13717 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13718 entries in the dot_ops array are case insensitive, and use
13719 strncasecmp to compare strings. Also some whitespace cleanup in
13720 this area. Similar for the f77_keywords array, except entries in
13721 this list might be case sensitive.
13722
dd9f2c76
AB
137232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13724
13725 * f-exp.y (struct f77_boolean_val): Add comments.
13726 (boolean_values): Remove uppercase versions, and end marker.
13727 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13728 and use strncasecmp to achieve case insensitivity. Additionally,
13729 perform whitespace cleanup around this code.
13730
67a3048c
TT
137312019-03-06 Tom Tromey <tromey@adacore.com>
13732
13733 * remote-sim.c (gdbsim_target_open): Use result of
13734 gdb_argv::release.
13735
aa3cfbda
RB
137362019-03-06 Richard Bunt <richard.bunt@arm.com>
13737 Dirk Schubert <dirk.schubert@arm.com>
13738 Chris January <chris.january@arm.com>
13739
13740 * eval.c (evaluate_subexp_standard): Call Fortran argument
13741 wrapping logic.
13742 * f-lang.c (struct value): A value which can be passed into a
13743 Fortran function call.
13744 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13745 where appropriate.
13746 (struct type): Value ready for a Fortran function call.
13747 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13748 is needed.
13749 * f-lang.h (fortran_argument_convert): Declaration.
13750 (fortran_preserve_arg_pointer): Declaration.
13751 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13752
ea38e5df
TT
137532019-03-05 Tom Tromey <tromey@adacore.com>
13754
13755 * python/py-prettyprint.c (print_string_repr): Remove #if.
13756 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13757
06b5b831
TT
137582019-03-05 Tom Tromey <tromey@adacore.com>
13759
13760 * target.c (the_dummy_target): Move later. Change type to
13761 "dummy_target".
13762 (initialize_targets): Don't initialize the_dummy_target.
13763
edbd9e45
TT
137642019-03-05 Tom Tromey <tromey@adacore.com>
13765
13766 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13767 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13768
c119e040
TT
137692019-03-05 Tom Tromey <tromey@adacore.com>
13770
13771 * windows-nat.c (windows_nat_target::attach)
13772 (windows_nat_target::detach): Don't call gdb_flush.
13773 * valprint.c (generic_val_print, val_print, val_print_string):
13774 Don't call gdb_flush.
13775 * utils.c (defaulted_query): Don't call gdb_flush.
13776 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13777 * target.c (target_announce_detach): Don't call gdb_flush.
13778 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13779 * remote.c (extended_remote_target::attach): Don't call
13780 gdb_flush.
13781 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13782 * printcmd.c (do_examine): Don't call gdb_flush.
13783 (info_display_command): Don't call gdb_flush.
13784 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13785 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13786 * memattr.c (info_mem_command): Don't call gdb_flush.
13787 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13788 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13789 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13790 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13791 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13792 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13793 (gnu_nat_target::detach): Don't call gdb_flush.
13794 * f-valprint.c (f_val_print): Don't call gdb_flush.
13795 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13796 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13797 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13798 gdb_flush.
13799 * c-valprint.c (c_val_print): Don't call gdb_flush.
13800 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13801
895dafa6
TT
138022019-03-05 Tom Tromey <tromey@adacore.com>
13803
13804 * varobj.c (update_dynamic_varobj_children): Update.
13805 (install_default_visualizer): Use reset, not release.
13806 * value.c (set_internalvar): Update.
13807 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13808 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13809 ATTRIBUTE_UNUSED_RESULT.
13810
88a774b9
TT
138112019-03-05 Tom Tromey <tromey@adacore.com>
13812
13813 * remote.c (class scoped_remote_fd) <release>: Add
13814 ATTRIBUTE_UNUSED_RESULT.
13815
4e4a8b93
TT
138162019-03-05 Tom Tromey <tromey@adacore.com>
13817
13818 * macroexp.c (struct macro_buffer) <release>: Add
13819 ATTRIBUTE_UNUSED_RESULT.
13820
083eef1f
TT
138212019-03-05 Tom Tromey <tromey@adacore.com>
13822
13823 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13824 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13825 ATTRIBUTE_UNUSED_RESULT.
13826
3cabd438
TT
138272019-03-05 Tom Tromey <tromey@adacore.com>
13828
13829 * common/scoped_fd.h (class scoped_fd) <release>: Add
13830 ATTRIBUTE_UNUSED_RESULT.
13831
41e3300a
TT
138322019-03-05 Tom Tromey <tromey@adacore.com>
13833
13834 * parser-defs.h (struct parser_state) <release>: Add
13835 ATTRIBUTE_UNUSED_RESULT.
13836
18cb7c9f
TT
138372019-03-05 Tom Tromey <tromey@adacore.com>
13838
13839 * utils.h (class gdb_argv) <release>: Add
13840 ATTRIBUTE_UNUSED_RESULT.
13841 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13842
41fa577f
EZ
138432019-03-02 Eli Zaretskii <eliz@gnu.org>
13844
a6a4b2c6
EZ
13845 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13846 for-loop range, to avoid compiler warnings.
13847
13848 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13849 avoid compiler warnings about unused variables.
13850
742a7df5
EZ
13851 * NEWS: Mention end of support for native debugging on MS-Windows
13852 before XP.
13853
41fa577f
EZ
13854 PR gdb/24292
13855 * common/netstuff.c:
13856 * gdbserver/gdbreplay.c
13857 * gdbserver/remote-utils.c:
13858 * ser-tcp.c:
13859 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13860 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13861 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13862 'getaddrinfo' and 'freeaddrinfo' were not available before
13863 Windows XP, and mingw.org's MinGW headers by default define
13864 _WIN32_WINNT to 0x500.
13865
827f438f
GB
138662019-03-01 Gary Benson <gbenson@redhat.com>
13867
13868 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13869
92137da0
RO
138702019-02-28 Brian Vandenberg <phantall@gmail.com>
13871 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13872
13873 PR gdb/8527
13874 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13875 set_sigint_trap, clear_sigint_trap.
13876
799efbe8
PW
138772019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13878
13879 * target.c (target_detach): Clear the regcache and the
13880 frame cache.
13881
8ed25214
PA
138822019-02-27 Pedro Alves <palves@redhat.com>
13883
13884 * utils.c (set_screen_size): When we cap the height/width sizes,
13885 tweak the corresponding command variable to show "unlimited":
13886
23031e31
SJ
138872019-02-27 Saagar Jha <saagar@saagarjha.com>
13888 Pedro Alves <palves@redhat.com>
13889
13890 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13891 before calling rl_set_screen_size.
13892
6c28e44a
TT
138932019-02-27 Tom Tromey <tromey@adacore.com>
13894
13895 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13896 define.
13897 * python/py-value.c: Remove Python 2.4 workaround.
13898 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13899 workaround.
13900 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13901 Python 2.4 workaround.
13902 * python/python-internal.h: Remove Python 2.4 comment.
13903 (Py_ssize_t): Don't define.
13904 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13905 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13906 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13907 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13908 * python/python.c (do_start_initialization): Remove Python 2.4
13909 workaround.
13910 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13911 (print_children): Remove Python 2.4 workaround.
13912 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13913 workaround.
13914 (CHARBUFFERPROC_NAME): Remove.
13915 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13916 Python 2.4 workaround.
13917
2c3fc25d 139182019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13919
2c3fc25d
KB
13920 * NEWS: Note minimum Python version.
13921
6ca62222
KB
139222019-02-27 Kevin Buettner <kevinb@redhat.com>
13923
13924 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13925 code from these functions. Remove corresponding ifdefs. Use
13926 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13927 Remove gotos and target of gotos.
13928 (infpy_search_memory): Likewise.
13929
f4bc7d2c
AB
139302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13931
13932 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13933 (hppa_gdbarch_init): Don't register deleted functions with
13934 gdbarch.
13935
9734a586
AB
139362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13937
13938 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13939 (h8300_unwind_sp): Delete.
13940 (h8300_dummy_id): Delete.
13941 (h8300_gdbarch_init): Don't register deleted functions with
13942 gdbarch.
13943
68b867f3
AB
139442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13945
13946 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13947 (ft32_unwind_pc): Delete.
13948 (ft32_unwind_sp): Delete.
13949 (ft32_gdbarch_init): Don't register deleted functions with
13950 gdbarch.
13951
2fbe7ad0
AB
139522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13953
13954 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13955 (frv_unwind_pc): Delete.
13956 (frv_unwind_sp): Delete.
13957 (frv_gdbarch_init): Don't register deleted functions with
13958 gdbarch.
13959
76055cbe
AB
139602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13961
13962 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13963 (riscv_unwind_pc): Delete.
13964 (riscv_unwind_sp): Delete.
13965 (riscv_gdbarch_init): Don't register deleted functions with
13966 gdbarch.
13967
4133e5a1
AB
139682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13969
13970 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13971 (csky_unwind_pc): Delete.
13972 (csky_unwind_sp): Delete.
13973 (csky_gdbarch_init): Don't register deleted functions with
13974 gdbarch.
13975
8010f576
AB
139762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13977
13978 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13979 (cris_unwind_pc): Delete.
13980 (cris_unwind_sp): Delete.
13981 (cris_gdbarch_init): Don't register deleted functions with
13982 gdbarch.
13983
b56bf084
AB
139842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13985
13986 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13987 (bfin_unwind_pc): Delete.
13988 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13989
a19a650f
AB
139902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13991
13992 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13993 (arm_unwind_pc): Delete.
13994 (arm_unwind_sp): Delete.
13995 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13996
f8278c3c
AB
139972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13998
13999 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14000 (arc_unwind_pc): Delete.
14001 (arc_unwind_sp): Delete.
14002 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14003
480e46cf
AB
140042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14007 (alpha_unwind_pc): Delete.
14008 (alpha_gdbarch_init): Don't register deleted functions with
14009 gdbarch.
14010
7a995095
AB
140112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14014 (aarch64_unwind_pc): Delete.
14015 (aarch64_unwind_sp): Delete.
14016 (aarch64_gdbarch_init): Don't register deleted functions with
14017 gdbarch.
14018
bf9a735e
AB
140192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14020
14021 * gdbtypes.c (type_align): Don't consider static members when
14022 computing structure alignment.
14023
5561fc30
AB
140242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14025
14026 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14027 return 0 for other types.
14028 * arch-utils.c (default_type_align): Always return 0.
14029 * gdbarch.h: Regenerate.
14030 * gdbarch.sh (type_align): Extend comment.
14031 * gdbtypes.c (type_align): Add additional comments, always call
14032 gdbarch_type_align before applying the default rules.
14033 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14034 generic code will then apply a suitable default.
14035 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14036 types, return 0 for other types.
14037
9335e75a
JB
140382019-02-27 Joel Brobecker <brobecker@adacore.com>
14039
14040 * NEWS: Create a new section for the next release branch.
14041 Rename the section of the current branch, now that it has
14042 been cut.
14043
3d34d8de
JB
140442019-02-27 Joel Brobecker <brobecker@adacore.com>
14045
14046 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14047 * version.in: Bump version to 8.3.50.DATE-git.
14048
143420fb
SM
140492019-02-26 Simon Marchi <simon.marchi@efficios.com>
14050
14051 * aix-thread.c (ptid_cmp): Remove unused variable.
14052 (get_signaled_thread): Likewise.
14053 (store_regs_user_thread): Likewise.
14054 (store_regs_kernel_thread): Likewise.
14055 (fetch_regs_kernel_thread): Remove shadowed variable.
14056
172fb711
AB
140572019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14058
14059 * features/riscv/32bit-cpu.xml: Add register numbers.
14060 * features/riscv/32bit-fpu.c: Regenerate.
14061 * features/riscv/32bit-fpu.xml: Add register numbers.
14062 * features/riscv/64bit-cpu.xml: Add register numbers.
14063 * features/riscv/64bit-fpu.c: Regenerate.
14064 * features/riscv/64bit-fpu.xml: Add register numbers.
14065
26c89782
KB
140662019-02-26 Kevin Buettner <kevinb@redhat.com>
14067
af54ade9 14068 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14069 * python/py-value.c (convert_buffer_and_type_to_value): New
14070 function.
14071 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14072 Add support for handling an optional second argument. Call
14073 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14074 * python/python-internal.h (Py_buffer_deleter): New struct.
14075 (Py_buffer_up): New typedef.
14076
0f58c9e8
JB
140772019-02-25 John Baldwin <jhb@FreeBSD.org>
14078
14079 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14080 instead of releasing ownership.
14081
0a0f4c01
JR
140822019-02-25 Jordan Rupprecht <rupprecht@google.com>
14083
14084 * dwarf2read.c (open_and_init_dwp_file): Call
14085 elf_numsections instead of bfd_count_sections to initialize
14086 dwp_file->num_sections.
14087
cd5a152c
TT
140882019-02-25 Tom Tromey <tromey@adacore.com>
14089
14090 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14091
8a6a8513
SDJ
140922019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14093
14094 * gcore.in: Add '--readnever' option when invoking GDB.
14095
04dcda9c
SM
140962019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14097
14098 * MAINTAINERS: Update my email address.
14099
07bc701d
SM
141002019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14101
14102 * build-id.c (build_id_to_debug_bfd_1): New function.
14103 (build_id_to_debug_bfd): Look for separate debug file in
14104 sysroot.
14105
c6f4a5d0
AB
141062019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14107
14108 * gdbarch.sh: Update the copyright year range that is placed into
14109 generated files.
14110
9600246d
KS
141112019-02-22 Keith Seitz <keiths@redhat.com>
14112
14113 PR symtab/23853
14114 * linespec.c (create_sals_line_offset): Search for the default
14115 symtab's filename instead of its fullname.
14116
7557a514
AH
141172019-02-21 Alan Hayward <alan.hayward@arm.com>
14118
14119 * NEWS: Update style defaults.
14120
ee2bcb0c
AH
141212019-02-21 Alan Hayward <alan.hayward@arm.com>
14122
14123 * main.c (captured_main_1): Disable styling in batch mode.
14124
0c95f9ed
TT
141252019-02-20 Tom Tromey <tom@tromey.com>
14126
14127 * symtab.c (symtab_symbol_info): Fix typos.
14128
c763b894
TT
141292019-02-20 Tom Tromey <tromey@adacore.com>
14130
14131 * findcmd.c (_initialize_mem_search): Use upper case for
14132 metasyntactic variables.
14133
0ef8a082
AH
141342019-02-20 Alan Hayward <alan.hayward@arm.com>
14135
14136 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14137 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14138
6caa91b6
SM
141392019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14140
14141 * top.h (source_file_name): Change to std::string.
14142 * top.c (source_file_name): Likewise.
14143 (command_line_input): Adjust.
14144 * cli/cli-script.c (script_from_file): Adjust.
14145
98814c6c
TT
141462019-02-19 Tom Tromey <tromey@adacore.com>
14147
14148 * ravenscar-thread.c
14149 (ravenscar_thread_target::update_thread_list): Don't call
14150 ada_build_task_list.
14151 * ada-lang.h (ada_build_task_list): Don't declare.
14152 * ada-tasks.c (struct ada_tasks_inferior_data)
14153 <task_list_valid_p>: Now bool.
14154 (read_known_tasks, ada_task_list_changed)
14155 (ada_tasks_invalidate_inferior_data): Update.
14156 (read_known_tasks_array): Return bool.
14157 (read_known_tasks_list): Likewise.
14158 (read_known_tasks): Return void.
14159 (ada_build_task_list): Now static.
14160
70cd633e
AB
141612019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14162
14163 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14164 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14165
040b3e95
PW
141662019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14167
14168 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14169 variant for ada_tasks_pspace_data_handle and
14170 ada_tasks_inferior_data_handle.
14171 (ada_tasks_pspace_data_cleanup): New function.
14172 (ada_tasks_inferior_data_cleanup): New function.
14173
9409233b
TT
141742019-02-17 Tom Tromey <tom@tromey.com>
14175
14176 * macrotab.h (macro_source_fullname): Return a std::string.
14177 * macrotab.c (macro_include, check_for_redefinition)
14178 (macro_undef, macro_lookup_definition, foreach_macro)
14179 (foreach_macro_in_scope): Update.
14180 (macro_source_fullname): Return a std::string.
14181 * macrocmd.c (show_pp_source_pos): Update.
14182
6506371f
TT
141832019-02-17 Tom Tromey <tom@tromey.com>
14184
14185 * macrocmd.c (show_pp_source_pos): Style the file names.
14186
0c820d67
TT
141872019-02-17 Tom Tromey <tom@tromey.com>
14188
14189 PR tui/24197:
14190 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14191
a0087920
TT
141922019-02-17 Tom Tromey <tom@tromey.com>
14193
14194 * ada-lang.c (user_select_syms): Use filtered printing.
14195 * utils.c (wrap_style): New global.
14196 (desired_style): Remove.
14197 (emit_style_escape): Add stream parameter.
14198 (set_output_style, reset_terminal_style, prompt_for_continue):
14199 Update.
14200 (flush_wrap_buffer): Only flush gdb_stdout.
14201 (wrap_here): Set wrap_style.
14202 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14203 treat escape sequences as a character. Change when wrap buffer is
14204 flushed.
14205 (fputs_styled): Do not set the output style when the default is
14206 requested.
14207 * ui-style.h (struct ui_file_style) <is_default>: New method.
14208 * source.c (print_source_lines_base): Emit escape sequences in one
14209 piece.
14210
75ba10dc
JB
142112019-02-17 Joel Brobecker <brobecker@adacore.com>
14212
14213 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14214 integers and enumeration types.
14215
a2cd4f14
JB
142162019-02-17 Joel Brobecker <brobecker@adacore.com>
14217
14218 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14219 instead of lookup_symbol_in_language
14220 (do_exact_match): New function.
14221 (ada_get_symbol_name_matcher): Return do_exact_match when
14222 doing a verbatim match.
14223
485b851b
TT
142242019-02-15 Tom Tromey <tromey@adacore.com>
14225
14226 * ravenscar-thread.c (ravenscar_thread_target::resume)
14227 (ravenscar_thread_target::wait): Special case wildcard requests.
14228
0b790b1e
TT
142292019-02-15 Tom Tromey <tromey@adacore.com>
14230
14231 * ravenscar-thread.c (base_ptid): Remove.
14232 (struct ravenscar_thread_target) <close>: New method.
14233 <m_base_ptid>: New member.
14234 <update_inferior_ptid, active_task, task_is_currently_active,
14235 runtime_initialized>: Declare methods.
14236 <ravenscar_thread_target>: Add constructor.
14237 (ravenscar_thread_target::task_is_currently_active)
14238 (ravenscar_thread_target::update_inferior_ptid)
14239 (ravenscar_runtime_initialized): Rename. Now methods.
14240 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14241 (ravenscar_thread_target::update_thread_list): Update.
14242 (ravenscar_thread_target::active_task): Now method.
14243 (ravenscar_thread_target::store_registers)
14244 (ravenscar_thread_target::prepare_to_store)
14245 (ravenscar_thread_target::prepare_to_store)
14246 (ravenscar_thread_target::mourn_inferior): Update.
14247 (ravenscar_inferior_created): Use "new" to create target.
14248 (ravenscar_thread_target::get_ada_task_ptid): Update.
14249 (_initialize_ravenscar): Don't initialize base_ptid.
14250 (ravenscar_ops): Remove global.
14251
dea57a62
TT
142522019-02-15 Tom Tromey <tromey@adacore.com>
14253
14254 * target.h (push_target): Declare new overload.
14255 * target.c (push_target): New overload, taking an rvalue reference.
14256 * remote.c (remote_target::open_1): Use push_target overload.
14257 * corelow.c (core_target_open): Use push_target overload.
14258
989f3c58
TT
142592019-02-15 Tom Tromey <tromey@adacore.com>
14260
14261 * ravenscar-thread.c (is_ravenscar_task)
14262 (ravenscar_task_is_currently_active): Return bool.
14263 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14264 (_initialize_ravenscar): Remove "(void)".
14265 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14266 Return bool.
14267
6cbcc006
TT
142682019-02-15 Tom Tromey <tromey@adacore.com>
14269
14270 * ravenscar-thread.c (ravenscar_runtime_initializer)
14271 (has_ravenscar_runtime, get_running_thread_id)
14272 (ravenscar_thread_target::resume): Fix indentation.
14273
7657f14d
TT
142742019-02-15 Tom Tromey <tromey@adacore.com>
14275
14276 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14277 from ravenscar_arch_ops.
14278 (sparc_ravenscar_ops::fetch_registers)
14279 (sparc_ravenscar_ops::store_registers): Now methods.
14280 (sparc_ravenscar_prepare_to_store): Remove.
14281 (sparc_ravenscar_ops): Redefine.
14282 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14283 methods and destructor. Remove members.
14284 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14285 (ravenscar_thread_target::store_registers)
14286 (ravenscar_thread_target::prepare_to_store): Update.
14287 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14288 Remove.
14289 (struct ppc_ravenscar_powerpc_ops): Derive from
14290 ravenscar_arch_ops.
14291 (ppc_ravenscar_powerpc_ops::fetch_registers)
14292 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14293 (ppc_ravenscar_powerpc_ops): Redefine.
14294 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14295 (ppc_ravenscar_e500_ops::fetch_registers)
14296 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14297 (ppc_ravenscar_e500_ops): Redefine.
14298 * aarch64-ravenscar-thread.c
14299 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14300 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14301 (aarch64_ravenscar_fetch_registers)
14302 (aarch64_ravenscar_store_registers): Now methods.
14303 (aarch64_ravenscar_ops): Redefine.
14304
5b6ea500
TT
143052019-02-15 Tom Tromey <tromey@adacore.com>
14306
14307 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14308 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14309 (ravenscar_thread_target::stopped_by_watchpoint)
14310 (ravenscar_thread_target::stopped_data_address)
14311 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14312
e397fd39
TT
143132019-02-15 Tom Tromey <tromey@adacore.com>
14314
14315 * ravenscar-thread.c: Fix some typos.
14316
cc12f4a8
TT
143172019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14318 Tom Tromey <tromey@adacore.com>
14319
14320 * ada-lang.c (ada_exception_sal): Change addr_string to a
14321 std::string.
14322 (create_ada_exception_catchpoint): Update.
14323
5f486660
TT
143242019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14325 Tom Tromey <tromey@adacore.com>
14326
14327 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14328 (bp_location_ops): Remove.
14329 (base_breakpoint_allocate_location): Update.
14330 (free_bp_location): Update.
14331 * ada-lang.c (class ada_catchpoint_location)
14332 <ada_catchpoint_location>: Remove ops parameter.
14333 (ada_catchpoint_location_dtor): Remove.
14334 (ada_catchpoint_location_ops): Remove.
14335 (allocate_location_exception): Update.
14336 * breakpoint.h (struct bp_location_ops): Remove.
14337 (class bp_location) <bp_location>: Remove bp_location_ops
14338 parameter.
14339 <~bp_location>: Add destructor.
14340 <ops>: Remove.
14341
b671c7fb
TS
143422019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14343 Pedro Alves <palves@redhat.com>
14344
14345 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14346 'PATH_MAX'.
14347
8071c5ce
DM
143482019-02-14 David Michael <fedora.dm0@gmail.com>
14349 Samuel Thibault <samuel.thibault@gnu.org>
14350 Thomas Schwinge <thomas@codesourcery.com>
14351
14352 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14353 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14354
b1041ae0
TS
143552019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14356
924514e1
TS
14357 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14358 (check_empty): Use "const char *".
14359
c29ee8d4
TS
14360 * gnu-nat.c (gnu_nat_target::detach): Instead of
14361 'detach_inferior (pid)' call
14362 'detach_inferior (find_inferior_pid (pid))'.
14363
6c6ef69f
TS
14364 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14365 'nat/fork-inferior.o'.
14366 * gnu-nat.c: #include "nat/fork-inferior.h".
14367
2d0a338c
TS
14368 * gnu-nat.c (gnu_nat_target::detach): Instead of
14369 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14370 * gnu-nat.h: #include "inf-child.h".
14371 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14372 'i386_gnu_nat_target::fetch_registers'.
14373 (gnu_store_registers): Rename/move to
14374 'i386_gnu_nat_target::store_registers'.
14375
cabb5f06
TS
14376 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14377 * gnu-nat.h (mach_thread_info): New function.
14378 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14379
b1041ae0
TS
14380 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14381
2988d01e
KF
143822019-02-14 Frederic Konrad <konrad@adacore.com>
14383
14384 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14385
c559d709
JB
143862019-02-14 Joel Brobecker <brobecker@adacore.com>
14387
14388 * windows-nat.c (windows_add_thread): Add new parameter
14389 "main_thread_p" with default value set to false. Update
14390 function documentation as well as all callers.
14391 (windows_delete_thread): Likewise.
14392 (fake_create_process): Update call to windows_add_thread.
14393 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14394 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14395 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14396 call to windows_delete_thread.
14397
007024cc
SM
143982019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14399
14400 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14401
f62318e9
JB
144022019-02-12 John Baldwin <jhb@FreeBSD.org>
14403
14404 * symfile.c (find_separate_debug_file): Use canonical path of
14405 sysroot with child_path instead of gdb_sysroot if it is valid.
14406
cd4b7848
JB
144072019-02-12 John Baldwin <jhb@FreeBSD.org>
14408
14409 * symfile.c (find_separate_debug_file): Use child_path to
14410 determine if an object file is under a sysroot.
14411
efac4bfe
JB
144122019-02-12 John Baldwin <jhb@FreeBSD.org>
14413
14414 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14415 unittests/child-path-selftests.c.
14416 * common/pathstuff.c (child_path): New function.
14417 * common/pathstuff.h (child_path): New prototype.
14418 * unittests/child-path-selftests.c: New file.
14419
402d2bfe
JB
144202019-02-12 John Baldwin <jhb@FreeBSD.org>
14421
14422 * symfile.c (find_separate_debug_file): Look for separate debug
14423 files in debug directories under the sysroot.
14424
1ed9f74e
PW
144252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14426
14427 * symtab.h (struct minimal_symbol data_p): New const method.
14428 (struct minimal_symbol text_p): Likewise.
14429 * symtab.c (output_source_filename): Use file name style
14430 to print file name.
14431 (print_symbol_info): Likewise.
14432 (print_msymbol_info): Use address style to print addresses.
14433 Use function name style to print executable text symbols.
14434 (expand_symtab_containing_pc): Use data_p.
14435 (find_pc_sect_compunit_symtab): Likewise.
14436
2636d81d
PW
144372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14438
14439 * breakpoint.c (describe_other_breakpoints): Use address style
14440 to print addresses.
14441 (say_where): Likewise.
14442
ac8c53cc
PW
144432019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14444
14445 * ada-typeprint.c (print_func_type): Print function name
14446 style to print function name.
14447 * c-typeprint.c (c_print_type_1): Likewise.
14448
ea638c43
AH
144492019-02-11 Alan Hayward <alan.hayward@arm.com>
14450
14451 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14452 for execve.
14453
ab759ca8
PW
144542019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14455
14456 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14457 type_stack.
14458
aff29d1c
JB
144592019-02-10 Joel Brobecker <brobecker@adacore.com>
14460
14461 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14462 TYPE_CODE_REF types.
14463
617126bc
JW
144642019-02-08 Jim Wilson <jimw@sifive.com>
14465
14466 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14467 (riscv_linux_fregset): New.
14468 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14469
46e3ed7f
TT
144702019-02-07 Tom Tromey <tom@tromey.com>
14471
14472 * thread.c (thread_cancel_execution_command): Update.
14473 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14474 methods.
14475 (struct thread_fsm_ops): Remove.
14476 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14477 (thread_fsm_should_stop, thread_fsm_return_value)
14478 (thread_fsm_set_finished, thread_fsm_finished_p)
14479 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14480 Don't declare.
14481 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14482 * infrun.c (clear_proceed_status_thread)
14483 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14484 (print_stop_event): Update.
14485 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14486 Add constructor.
14487 (step_command_fsm_ops): Remove.
14488 (new_step_command_fsm): Remove.
14489 (step_1): Update.
14490 (step_command_fsm::should_stop): Rename from
14491 step_command_fsm_should_stop.
14492 (step_command_fsm::clean_up): Rename from
14493 step_command_fsm_clean_up.
14494 (step_command_fsm::do_async_reply_reason): Rename from
14495 step_command_fsm_async_reply_reason.
14496 (struct until_next_fsm): Inherit from thread_fsm. Add
14497 constructor.
14498 (until_next_fsm_ops): Remove.
14499 (new_until_next_fsm): Remove.
14500 (until_next_fsm::should_stop): Rename from
14501 until_next_fsm_should_stop.
14502 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14503 (until_next_fsm::do_async_reply_reason): Rename from
14504 until_next_fsm_async_reply_reason.
14505 (struct finish_command_fsm): Inherit from thread_fsm. Add
14506 constructor. Change type of breakpoint.
14507 (finish_command_fsm_ops): Remove.
14508 (new_finish_command_fsm): Remove.
14509 (finish_command_fsm::should_stop): Rename from
14510 finish_command_fsm_should_stop.
14511 (finish_command_fsm::clean_up): Rename from
14512 finish_command_fsm_clean_up.
14513 (finish_command_fsm::return_value): Rename from
14514 finish_command_fsm_return_value.
14515 (finish_command_fsm::do_async_reply_reason): Rename from
14516 finish_command_fsm_async_reply_reason.
14517 (finish_command): Update.
14518 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14519 Add constructor.
14520 (call_thread_fsm_ops): Remove.
14521 (call_thread_fsm::call_thread_fsm): Rename from
14522 new_call_thread_fsm.
14523 (call_thread_fsm::should_stop): Rename from
14524 call_thread_fsm_should_stop.
14525 (call_thread_fsm::should_notify_stop): Rename from
14526 call_thread_fsm_should_notify_stop.
14527 (run_inferior_call, call_function_by_hand_dummy): Update.
14528 * cli/cli-interp.c (should_print_stop_to_console): Update.
14529 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14530 Add constructor. Change type of location_breakpoint,
14531 caller_breakpoint.
14532 (until_break_fsm_ops): Remove.
14533 (new_until_break_fsm): Remove.
14534 (until_break_fsm::should_stop): Rename from
14535 until_break_fsm_should_stop.
14536 (until_break_fsm::clean_up): Rename from
14537 until_break_fsm_clean_up.
14538 (until_break_fsm::do_async_reply_reason): Rename from
14539 until_break_fsm_async_reply_reason.
14540 (until_break_command): Update.
14541 * thread-fsm.c: Remove.
14542 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14543
1a5c2598
TT
145442019-02-07 Tom Tromey <tom@tromey.com>
14545
14546 * yy-remap.h: Add include guard.
14547 * xtensa-tdep.h: Add include guard.
14548 * xcoffread.h: Rename include guard.
14549 * varobj-iter.h: Add include guard.
14550 * tui/tui.h: Rename include guard.
14551 * tui/tui-winsource.h: Rename include guard.
14552 * tui/tui-wingeneral.h: Rename include guard.
14553 * tui/tui-windata.h: Rename include guard.
14554 * tui/tui-win.h: Rename include guard.
14555 * tui/tui-stack.h: Rename include guard.
14556 * tui/tui-source.h: Rename include guard.
14557 * tui/tui-regs.h: Rename include guard.
14558 * tui/tui-out.h: Rename include guard.
14559 * tui/tui-layout.h: Rename include guard.
14560 * tui/tui-io.h: Rename include guard.
14561 * tui/tui-hooks.h: Rename include guard.
14562 * tui/tui-file.h: Rename include guard.
14563 * tui/tui-disasm.h: Rename include guard.
14564 * tui/tui-data.h: Rename include guard.
14565 * tui/tui-command.h: Rename include guard.
14566 * tic6x-tdep.h: Add include guard.
14567 * target/waitstatus.h: Rename include guard.
14568 * target/wait.h: Rename include guard.
14569 * target/target.h: Rename include guard.
14570 * target/resume.h: Rename include guard.
14571 * target-float.h: Rename include guard.
14572 * stabsread.h: Add include guard.
14573 * rs6000-tdep.h: Add include guard.
14574 * riscv-fbsd-tdep.h: Add include guard.
14575 * regformats/regdef.h: Rename include guard.
14576 * record.h: Rename include guard.
14577 * python/python.h: Rename include guard.
14578 * python/python-internal.h: Rename include guard.
14579 * python/py-stopevent.h: Rename include guard.
14580 * python/py-ref.h: Rename include guard.
14581 * python/py-record.h: Rename include guard.
14582 * python/py-record-full.h: Rename include guard.
14583 * python/py-record-btrace.h: Rename include guard.
14584 * python/py-instruction.h: Rename include guard.
14585 * python/py-events.h: Rename include guard.
14586 * python/py-event.h: Rename include guard.
14587 * procfs.h: Add include guard.
14588 * proc-utils.h: Add include guard.
14589 * p-lang.h: Add include guard.
14590 * or1k-tdep.h: Rename include guard.
14591 * observable.h: Rename include guard.
14592 * nto-tdep.h: Rename include guard.
14593 * nat/x86-linux.h: Rename include guard.
14594 * nat/x86-linux-dregs.h: Rename include guard.
14595 * nat/x86-gcc-cpuid.h: Add include guard.
14596 * nat/x86-dregs.h: Rename include guard.
14597 * nat/x86-cpuid.h: Rename include guard.
14598 * nat/ppc-linux.h: Rename include guard.
14599 * nat/mips-linux-watch.h: Rename include guard.
14600 * nat/linux-waitpid.h: Rename include guard.
14601 * nat/linux-ptrace.h: Rename include guard.
14602 * nat/linux-procfs.h: Rename include guard.
14603 * nat/linux-osdata.h: Rename include guard.
14604 * nat/linux-nat.h: Rename include guard.
14605 * nat/linux-namespaces.h: Rename include guard.
14606 * nat/linux-btrace.h: Rename include guard.
14607 * nat/glibc_thread_db.h: Rename include guard.
14608 * nat/gdb_thread_db.h: Rename include guard.
14609 * nat/gdb_ptrace.h: Rename include guard.
14610 * nat/fork-inferior.h: Rename include guard.
14611 * nat/amd64-linux-siginfo.h: Rename include guard.
14612 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14613 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14614 * nat/aarch64-linux.h: Rename include guard.
14615 * nat/aarch64-linux-hw-point.h: Rename include guard.
14616 * mn10300-tdep.h: Add include guard.
14617 * mips-linux-tdep.h: Add include guard.
14618 * mi/mi-parse.h: Rename include guard.
14619 * mi/mi-out.h: Rename include guard.
14620 * mi/mi-main.h: Rename include guard.
14621 * mi/mi-interp.h: Rename include guard.
14622 * mi/mi-getopt.h: Rename include guard.
14623 * mi/mi-console.h: Rename include guard.
14624 * mi/mi-common.h: Rename include guard.
14625 * mi/mi-cmds.h: Rename include guard.
14626 * mi/mi-cmd-break.h: Rename include guard.
14627 * m2-lang.h: Add include guard.
14628 * location.h: Rename include guard.
14629 * linux-record.h: Rename include guard.
14630 * linux-nat.h: Add include guard.
14631 * linux-fork.h: Add include guard.
14632 * i386-darwin-tdep.h: Rename include guard.
14633 * hppa-linux-offsets.h: Add include guard.
14634 * guile/guile.h: Rename include guard.
14635 * guile/guile-internal.h: Rename include guard.
14636 * gnu-nat.h: Rename include guard.
14637 * gdb-stabs.h: Rename include guard.
14638 * frv-tdep.h: Add include guard.
14639 * f-lang.h: Add include guard.
14640 * event-loop.h: Add include guard.
14641 * darwin-nat.h: Rename include guard.
14642 * cp-abi.h: Rename include guard.
14643 * config/sparc/nm-sol2.h: Rename include guard.
14644 * config/nm-nto.h: Rename include guard.
14645 * config/nm-linux.h: Add include guard.
14646 * config/i386/nm-i386gnu.h: Rename include guard.
14647 * config/djgpp/nl_types.h: Rename include guard.
14648 * config/djgpp/langinfo.h: Rename include guard.
14649 * compile/gcc-cp-plugin.h: Add include guard.
14650 * compile/gcc-c-plugin.h: Add include guard.
14651 * compile/compile.h: Rename include guard.
14652 * compile/compile-object-run.h: Rename include guard.
14653 * compile/compile-object-load.h: Rename include guard.
14654 * compile/compile-internal.h: Rename include guard.
14655 * compile/compile-cplus.h: Rename include guard.
14656 * compile/compile-c.h: Rename include guard.
14657 * common/xml-utils.h: Rename include guard.
14658 * common/x86-xstate.h: Rename include guard.
14659 * common/version.h: Rename include guard.
14660 * common/vec.h: Rename include guard.
14661 * common/tdesc.h: Rename include guard.
14662 * common/selftest.h: Rename include guard.
14663 * common/scoped_restore.h: Rename include guard.
14664 * common/scoped_mmap.h: Rename include guard.
14665 * common/scoped_fd.h: Rename include guard.
14666 * common/safe-iterator.h: Rename include guard.
14667 * common/run-time-clock.h: Rename include guard.
14668 * common/refcounted-object.h: Rename include guard.
14669 * common/queue.h: Rename include guard.
14670 * common/ptid.h: Rename include guard.
14671 * common/print-utils.h: Rename include guard.
14672 * common/preprocessor.h: Rename include guard.
14673 * common/pathstuff.h: Rename include guard.
14674 * common/observable.h: Rename include guard.
14675 * common/netstuff.h: Rename include guard.
14676 * common/job-control.h: Rename include guard.
14677 * common/host-defs.h: Rename include guard.
14678 * common/gdb_wait.h: Rename include guard.
14679 * common/gdb_vecs.h: Rename include guard.
14680 * common/gdb_unlinker.h: Rename include guard.
14681 * common/gdb_unique_ptr.h: Rename include guard.
14682 * common/gdb_tilde_expand.h: Rename include guard.
14683 * common/gdb_sys_time.h: Rename include guard.
14684 * common/gdb_string_view.h: Rename include guard.
14685 * common/gdb_splay_tree.h: Rename include guard.
14686 * common/gdb_setjmp.h: Rename include guard.
14687 * common/gdb_ref_ptr.h: Rename include guard.
14688 * common/gdb_optional.h: Rename include guard.
14689 * common/gdb_locale.h: Rename include guard.
14690 * common/gdb_assert.h: Rename include guard.
14691 * common/filtered-iterator.h: Rename include guard.
14692 * common/filestuff.h: Rename include guard.
14693 * common/fileio.h: Rename include guard.
14694 * common/environ.h: Rename include guard.
14695 * common/common-utils.h: Rename include guard.
14696 * common/common-types.h: Rename include guard.
14697 * common/common-regcache.h: Rename include guard.
14698 * common/common-inferior.h: Rename include guard.
14699 * common/common-gdbthread.h: Rename include guard.
14700 * common/common-exceptions.h: Rename include guard.
14701 * common/common-defs.h: Rename include guard.
14702 * common/common-debug.h: Rename include guard.
14703 * common/cleanups.h: Rename include guard.
14704 * common/buffer.h: Rename include guard.
14705 * common/btrace-common.h: Rename include guard.
14706 * common/break-common.h: Rename include guard.
14707 * cli/cli-utils.h: Rename include guard.
14708 * cli/cli-style.h: Rename include guard.
14709 * cli/cli-setshow.h: Rename include guard.
14710 * cli/cli-script.h: Rename include guard.
14711 * cli/cli-interp.h: Rename include guard.
14712 * cli/cli-decode.h: Rename include guard.
14713 * cli/cli-cmds.h: Rename include guard.
14714 * charset-list.h: Add include guard.
14715 * buildsym-legacy.h: Rename include guard.
14716 * bfin-tdep.h: Add include guard.
14717 * ax.h: Rename include guard.
14718 * arm-linux-tdep.h: Add include guard.
14719 * arm-fbsd-tdep.h: Add include guard.
14720 * arch/xtensa.h: Rename include guard.
14721 * arch/tic6x.h: Add include guard.
14722 * arch/i386.h: Add include guard.
14723 * arch/arm.h: Rename include guard.
14724 * arch/arm-linux.h: Rename include guard.
14725 * arch/arm-get-next-pcs.h: Rename include guard.
14726 * arch/amd64.h: Add include guard.
14727 * arch/aarch64-insn.h: Rename include guard.
14728 * arch-utils.h: Rename include guard.
14729 * annotate.h: Add include guard.
14730 * amd64-darwin-tdep.h: Rename include guard.
14731 * aarch64-linux-tdep.h: Add include guard.
14732 * aarch64-fbsd-tdep.h: Add include guard.
14733 * aarch32-linux-nat.h: Add include guard.
14734
ab9268d2
PW
147352019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14736
14737 * macrotab.c (macro_define_internal): New function that
14738 factorizes macro_define_object_internal and macro_define_function
14739 code.
14740 (macro_define_object_internal): Use macro_define_internal.
14741 (macro_define_function): Likewise.
14742
bb0da2b4
PW
147432019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14744
14745 * macrocmd.c (extract_identifier): Return
14746 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14747 callers.
14748
424eb552
JB
147492019-02-06 John Baldwin <jhb@FreeBSD.org>
14750
14751 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14752
1688cb29
TT
147532019-02-05 Tom Tromey <tom@tromey.com>
14754
14755 * target.c (target_stack::unpush): Move assertion earlier.
14756
b5eba2d8
TT
147572019-01-30 Tom Tromey <tom@tromey.com>
14758
14759 PR python/23615:
14760 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14761 (gdbpy_parse_and_eval): Likewise.
14762 * python/python-internal.h (gdbpy_allow_threads): New class.
14763
7054e2ff
JB
147642019-01-28 John Baldwin <jhb@FreeBSD.org>
14765
14766 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14767 (aarch64_fbsd_fpregmap): Move earlier.
14768 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14769 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14770 instead of individual calls to trad_frame_set_reg_addr.
14771 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14772 earlier.
14773 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14774 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14775 instead of individual calls to trad_frame_set_reg_addr.
14776
36c25ffa
AH
147772019-01-28 Alan Hayward <alan.hayward@arm.com>
14778
14779 * CONTRIBUTE: Replace contribution list with wiki link.
14780
a0707f3c
TT
147812019-01-25 Tom Tromey <tom@tromey.com>
14782
14783 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14784
0747795c
TT
147852019-01-25 Tom Tromey <tom@tromey.com>
14786
14787 * xtensa-linux-nat.c: Fix common/ includes.
14788 * xml-support.h: Fix common/ includes.
14789 * xml-support.c: Fix common/ includes.
14790 * x86-linux-nat.c: Fix common/ includes.
14791 * windows-nat.c: Fix common/ includes.
14792 * varobj.h: Fix common/ includes.
14793 * varobj.c: Fix common/ includes.
14794 * value.c: Fix common/ includes.
14795 * valops.c: Fix common/ includes.
14796 * utils.c: Fix common/ includes.
14797 * unittests/xml-utils-selftests.c: Fix common/ includes.
14798 * unittests/utils-selftests.c: Fix common/ includes.
14799 * unittests/unpack-selftests.c: Fix common/ includes.
14800 * unittests/tracepoint-selftests.c: Fix common/ includes.
14801 * unittests/style-selftests.c: Fix common/ includes.
14802 * unittests/string_view-selftests.c: Fix common/ includes.
14803 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14804 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14805 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14806 * unittests/rsp-low-selftests.c: Fix common/ includes.
14807 * unittests/parse-connection-spec-selftests.c: Fix common/
14808 includes.
14809 * unittests/optional-selftests.c: Fix common/ includes.
14810 * unittests/offset-type-selftests.c: Fix common/ includes.
14811 * unittests/observable-selftests.c: Fix common/ includes.
14812 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14813 * unittests/memrange-selftests.c: Fix common/ includes.
14814 * unittests/memory-map-selftests.c: Fix common/ includes.
14815 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14816 * unittests/function-view-selftests.c: Fix common/ includes.
14817 * unittests/environ-selftests.c: Fix common/ includes.
14818 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14819 * unittests/common-utils-selftests.c: Fix common/ includes.
14820 * unittests/cli-utils-selftests.c: Fix common/ includes.
14821 * unittests/array-view-selftests.c: Fix common/ includes.
14822 * ui-file.c: Fix common/ includes.
14823 * tui/tui-io.c: Fix common/ includes.
14824 * tracepoint.h: Fix common/ includes.
14825 * tracepoint.c: Fix common/ includes.
14826 * tracefile-tfile.c: Fix common/ includes.
14827 * top.h: Fix common/ includes.
14828 * top.c: Fix common/ includes.
14829 * thread.c: Fix common/ includes.
14830 * target/waitstatus.h: Fix common/ includes.
14831 * target/waitstatus.c: Fix common/ includes.
14832 * target.h: Fix common/ includes.
14833 * target.c: Fix common/ includes.
14834 * target-memory.c: Fix common/ includes.
14835 * target-descriptions.c: Fix common/ includes.
14836 * symtab.h: Fix common/ includes.
14837 * symfile.c: Fix common/ includes.
14838 * stap-probe.c: Fix common/ includes.
14839 * spu-linux-nat.c: Fix common/ includes.
14840 * sparc-nat.c: Fix common/ includes.
14841 * source.c: Fix common/ includes.
14842 * solib.c: Fix common/ includes.
14843 * solib-target.c: Fix common/ includes.
14844 * ser-unix.c: Fix common/ includes.
14845 * ser-tcp.c: Fix common/ includes.
14846 * ser-pipe.c: Fix common/ includes.
14847 * ser-base.c: Fix common/ includes.
14848 * selftest-arch.c: Fix common/ includes.
14849 * s12z-tdep.c: Fix common/ includes.
14850 * rust-exp.y: Fix common/ includes.
14851 * rs6000-aix-tdep.c: Fix common/ includes.
14852 * riscv-tdep.c: Fix common/ includes.
14853 * remote.c: Fix common/ includes.
14854 * remote-notif.h: Fix common/ includes.
14855 * remote-fileio.h: Fix common/ includes.
14856 * remote-fileio.c: Fix common/ includes.
14857 * regcache.h: Fix common/ includes.
14858 * regcache.c: Fix common/ includes.
14859 * record-btrace.c: Fix common/ includes.
14860 * python/python.c: Fix common/ includes.
14861 * python/py-type.c: Fix common/ includes.
14862 * python/py-inferior.c: Fix common/ includes.
14863 * progspace.h: Fix common/ includes.
14864 * producer.c: Fix common/ includes.
14865 * procfs.c: Fix common/ includes.
14866 * proc-api.c: Fix common/ includes.
14867 * printcmd.c: Fix common/ includes.
14868 * ppc-linux-nat.c: Fix common/ includes.
14869 * parser-defs.h: Fix common/ includes.
14870 * osdata.c: Fix common/ includes.
14871 * obsd-nat.c: Fix common/ includes.
14872 * nat/x86-linux.c: Fix common/ includes.
14873 * nat/x86-linux-dregs.c: Fix common/ includes.
14874 * nat/x86-dregs.h: Fix common/ includes.
14875 * nat/x86-dregs.c: Fix common/ includes.
14876 * nat/ppc-linux.c: Fix common/ includes.
14877 * nat/mips-linux-watch.h: Fix common/ includes.
14878 * nat/mips-linux-watch.c: Fix common/ includes.
14879 * nat/linux-waitpid.c: Fix common/ includes.
14880 * nat/linux-ptrace.h: Fix common/ includes.
14881 * nat/linux-ptrace.c: Fix common/ includes.
14882 * nat/linux-procfs.c: Fix common/ includes.
14883 * nat/linux-personality.c: Fix common/ includes.
14884 * nat/linux-osdata.c: Fix common/ includes.
14885 * nat/linux-namespaces.c: Fix common/ includes.
14886 * nat/linux-btrace.h: Fix common/ includes.
14887 * nat/linux-btrace.c: Fix common/ includes.
14888 * nat/fork-inferior.c: Fix common/ includes.
14889 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14890 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14891 * nat/aarch64-linux.c: Fix common/ includes.
14892 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14893 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14894 * namespace.h: Fix common/ includes.
14895 * mips-linux-tdep.c: Fix common/ includes.
14896 * minsyms.c: Fix common/ includes.
14897 * mi/mi-parse.h: Fix common/ includes.
14898 * mi/mi-main.c: Fix common/ includes.
14899 * mi/mi-cmd-env.c: Fix common/ includes.
14900 * memrange.h: Fix common/ includes.
14901 * memattr.c: Fix common/ includes.
14902 * maint.h: Fix common/ includes.
14903 * maint.c: Fix common/ includes.
14904 * main.c: Fix common/ includes.
14905 * machoread.c: Fix common/ includes.
14906 * location.c: Fix common/ includes.
14907 * linux-thread-db.c: Fix common/ includes.
14908 * linux-nat.c: Fix common/ includes.
14909 * linux-fork.c: Fix common/ includes.
14910 * inline-frame.c: Fix common/ includes.
14911 * infrun.c: Fix common/ includes.
14912 * inflow.c: Fix common/ includes.
14913 * inferior.h: Fix common/ includes.
14914 * inferior.c: Fix common/ includes.
14915 * infcmd.c: Fix common/ includes.
14916 * inf-ptrace.c: Fix common/ includes.
14917 * inf-child.c: Fix common/ includes.
14918 * ia64-linux-nat.c: Fix common/ includes.
14919 * i387-tdep.c: Fix common/ includes.
14920 * i386-tdep.c: Fix common/ includes.
14921 * i386-linux-tdep.c: Fix common/ includes.
14922 * i386-linux-nat.c: Fix common/ includes.
14923 * i386-go32-tdep.c: Fix common/ includes.
14924 * i386-fbsd-tdep.c: Fix common/ includes.
14925 * i386-fbsd-nat.c: Fix common/ includes.
14926 * guile/scm-type.c: Fix common/ includes.
14927 * guile/guile.c: Fix common/ includes.
14928 * go32-nat.c: Fix common/ includes.
14929 * gnu-nat.c: Fix common/ includes.
14930 * gdbthread.h: Fix common/ includes.
14931 * gdbarch-selftests.c: Fix common/ includes.
14932 * gdb_usleep.c: Fix common/ includes.
14933 * gdb_select.h: Fix common/ includes.
14934 * gdb_bfd.c: Fix common/ includes.
14935 * gcore.c: Fix common/ includes.
14936 * fork-child.c: Fix common/ includes.
14937 * findvar.c: Fix common/ includes.
14938 * fbsd-nat.c: Fix common/ includes.
14939 * event-top.c: Fix common/ includes.
14940 * event-loop.c: Fix common/ includes.
14941 * dwarf2read.c: Fix common/ includes.
14942 * dwarf2loc.c: Fix common/ includes.
14943 * dwarf2-frame.c: Fix common/ includes.
14944 * dwarf-index-cache.c: Fix common/ includes.
14945 * dtrace-probe.c: Fix common/ includes.
14946 * disasm-selftests.c: Fix common/ includes.
14947 * defs.h: Fix common/ includes.
14948 * csky-tdep.c: Fix common/ includes.
14949 * cp-valprint.c: Fix common/ includes.
14950 * cp-support.h: Fix common/ includes.
14951 * cp-support.c: Fix common/ includes.
14952 * corelow.c: Fix common/ includes.
14953 * completer.h: Fix common/ includes.
14954 * completer.c: Fix common/ includes.
14955 * compile/compile.c: Fix common/ includes.
14956 * compile/compile-loc2c.c: Fix common/ includes.
14957 * compile/compile-cplus-types.c: Fix common/ includes.
14958 * compile/compile-cplus-symbols.c: Fix common/ includes.
14959 * command.h: Fix common/ includes.
14960 * cli/cli-dump.c: Fix common/ includes.
14961 * cli/cli-cmds.c: Fix common/ includes.
14962 * charset.c: Fix common/ includes.
14963 * build-id.c: Fix common/ includes.
14964 * btrace.h: Fix common/ includes.
14965 * btrace.c: Fix common/ includes.
14966 * breakpoint.h: Fix common/ includes.
14967 * breakpoint.c: Fix common/ includes.
14968 * ax.h:
14969 (enum agent_op): Fix common/ includes.
14970 * ax-general.c (struct aop_map): Fix common/ includes.
14971 * ax-gdb.c: Fix common/ includes.
14972 * auxv.c: Fix common/ includes.
14973 * auto-load.c: Fix common/ includes.
14974 * arm-tdep.c: Fix common/ includes.
14975 * arch/riscv.c: Fix common/ includes.
14976 * arch/ppc-linux-common.c: Fix common/ includes.
14977 * arch/i386.c: Fix common/ includes.
14978 * arch/arm.c: Fix common/ includes.
14979 * arch/arm-linux.c: Fix common/ includes.
14980 * arch/arm-get-next-pcs.c: Fix common/ includes.
14981 * arch/amd64.c: Fix common/ includes.
14982 * arch/aarch64.c: Fix common/ includes.
14983 * arch/aarch64-insn.c: Fix common/ includes.
14984 * arch-utils.c: Fix common/ includes.
14985 * amd64-windows-tdep.c: Fix common/ includes.
14986 * amd64-tdep.c: Fix common/ includes.
14987 * amd64-sol2-tdep.c: Fix common/ includes.
14988 * amd64-obsd-tdep.c: Fix common/ includes.
14989 * amd64-nbsd-tdep.c: Fix common/ includes.
14990 * amd64-linux-tdep.c: Fix common/ includes.
14991 * amd64-linux-nat.c: Fix common/ includes.
14992 * amd64-fbsd-tdep.c: Fix common/ includes.
14993 * amd64-fbsd-nat.c: Fix common/ includes.
14994 * amd64-dicos-tdep.c: Fix common/ includes.
14995 * amd64-darwin-tdep.c: Fix common/ includes.
14996 * agent.c: Fix common/ includes.
14997 * ada-lang.h: Fix common/ includes.
14998 * ada-lang.c: Fix common/ includes.
14999 * aarch64-tdep.c: Fix common/ includes.
15000
2f5c153e
TT
150012019-01-25 Tom Tromey <tom@tromey.com>
15002
15003 * common/create-version.sh: Use common/version.h.
15004
adc6a863
PA
150052019-01-24 Pedro Alves <palves@redhat.com>
15006
15007 * infrun.c (signal_stop, signal_print, signal_program)
15008 (signal_catch, signal_pass): Now arrays instead of pointers.
15009 (update_signals_program_target, do_target_resume)
15010 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15011 * linux-nat.c (linux_nat_target::pass_signals)
15012 (linux_nat_target::create_inferior, linux_nat_target::attach):
15013 Adjust.
15014 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15015 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15016 * procfs.c (procfs_target::pass_signals): Adjust.
15017 * record-full.c (record_full_target::resume): Adjust.
15018 * remote.c (remote_target::pass_signals)
15019 (remote_target::program_signals): Adjust.
15020 * target-debug.h (target_debug_print_signals): Now takes a
15021 gdb::array_view as parameter. Adjust.
15022 * target.h (target_ops) <pass_signals, program_signals>: Replace
15023 pointer and length parameters with gdb::array_view.
15024 (target_pass_signals, target_program_signals): Likewise.
15025 * target-delegates.c: Regenerate.
15026
3046d67a
PA
150272019-01-24 Pedro Alves <palves@redhat.com>
15028
15029 * common/forward-scope-exit.h
15030 (forward_scope_exit::forward_scope_exit): Pass arguments to
15031 m_bind_function directly, instead of creating a std::bind and
15032 copying that.
15033
353229bf
AH
150342019-01-24 Alan Hayward <alan.hayward@arm.com>
15035
15036 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15037 for static members.
15038 (pass_in_v_vfp_candidate): Likewise.
15039
311dc83a
TT
150402019-01-23 Tom Tromey <tom@tromey.com>
15041 Pedro Alves <palves@redhat.com>
15042
15043 * regcache.c (class regcache_invalidator): Remove.
15044 (regcache::raw_write): Use make_scope_exit.
15045
296bd123
TT
150462019-01-23 Tom Tromey <tom@tromey.com>
15047
15048 * ui-out.h (class ui_out_emit_type): Update comment.
15049
979a0d13
TT
150502019-01-23 Tom Tromey <tom@tromey.com>
15051
15052 * infrun.c (fetch_inferior_event): Update comment.
15053
d238133d
TT
150542019-01-23 Tom Tromey <tom@tromey.com>
15055 Pedro Alves <palves@redhat.com>
15056
15057 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15058 parameter.
15059 (fetch_inferior_event): Use SCOPE_EXIT.
15060
15061
9885e6bb
TT
150622019-01-23 Tom Tromey <tom@tromey.com>
15063 Pedro Alves <palves@redhat.com>
15064
15065 * infrun.c (disable_thread_events): Delete.
15066 (stop_all_threads): Use SCOPE_EXIT.
15067
286526c1
TT
150682019-01-23 Tom Tromey <tom@tromey.com>
15069 Pedro Alves <palves@redhat.com>
15070
15071 * symfile.c: Include forward-scope-exit.h.
15072 (clear_symtab_users_cleanup): Replace forward declaration with
15073 a FORWARD_SCOPE_EXIT.
15074 (syms_from_objfile_1): Use the forward_scope_exit and
15075 gdb::optional instead of cleanup_function.
15076 (reread_symbols): Use the forward_scope_exit instead of
15077 cleanup_function.
15078 (clear_symtab_users_cleanup): Remove function.
15079
1db93f14
TT
150802019-01-23 Tom Tromey <tom@tromey.com>
15081 Pedro Alves <palves@redhat.com>
15082
15083 * linux-nat.c: Include scope-exit.h.
15084 (cleanup_target_stop): Remove.
15085 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15086 SCOPE_EXIT.
15087
2cc83d1e
TT
150882019-01-23 Tom Tromey <tom@tromey.com>
15089 Pedro Alves <palves@redhat.com>
15090
15091 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15092 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15093
694c6bf5
TT
150942019-01-23 Tom Tromey <tom@tromey.com>
15095 Andrew Burgess <andrew.burgess@embecosm.com>
15096 Pedro Alves <palves@redhat.com>
15097
15098 * infrun.c (fetch_inferior_event): Use scope_exit.
15099 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15100 * top.c (execute_command): Use scope_exit.
15101 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15102 * utils.c (do_bpstat_clear_actions_cleanup)
15103 (make_bpstat_clear_actions_cleanup): Remove.
15104
4c41382a
TT
151052019-01-23 Tom Tromey <tom@tromey.com>
15106 Pedro Alves <palves@redhat.com>
15107
15108 * infrun.c: Include "common/scope-exit.h"
15109 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15110 (wait_for_inferior): Use SCOPE_EXIT.
15111 (fetch_inferior_event): Use scope_exit.
15112
89f8fb50
TT
151132019-01-23 Tom Tromey <tom@tromey.com>
15114 Pedro Alves <palves@redhat.com>
15115
15116 * breakpoint.c (create_breakpoint): Remove cleanup.
15117
5419bdae
TT
151182019-01-23 Tom Tromey <tom@tromey.com>
15119 Andrew Burgess <andrew.burgess@embecosm.com>
15120 Pedro Alves <palves@redhat.com>
15121
e587ef42
PA
151222019-01-23 Pedro Alves <palves@redhat.com>
15123
15124 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15125
77f0e74c
PA
151262019-01-23 Pedro Alves <palves@redhat.com>
15127 Andrew Burgess <andrew.burgess@embecosm.com>
15128
15129 * gdbthread.h: Include "common/forward-scope-exit.h".
15130 (scoped_finish_thread_state): Redefine custom class in terms of
15131 forward_scope_exit.
15132
5b9b3e53
PA
151332019-01-23 Pedro Alves <palves@redhat.com>
15134 Andrew Burgess <andrew.burgess@embecosm.com>
15135
15136 * common/forward-scope-exit.h: New file.
15137
54b65c9b
PA
151382019-01-23 Pedro Alves <palves@redhat.com>
15139 Andrew Burgess <andrew.burgess@embecosm.com>
15140 Tom Tromey <tom@tromey.com>
15141
15142 * common/scope-exit.h: New file.
15143
cf08fb29
PA
151442019-01-23 Pedro Alves <palves@redhat.com>
15145
15146 * common/preprocessor.h (ESC): Rename to ...
15147 (ESC_PARENS): ... this.
15148 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15149 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15150
ae73e2e2
TT
151512019-01-23 Tom Tromey <tom@tromey.com>
15152
15153 * language.h (class scoped_switch_to_sym_language_if_auto):
15154 Initialize m_lang in both cases.
15155
6594e122
AH
151562019-01-23 Alan Hayward <alan.hayward@arm.com>
15157
15158 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15159 with XCNEW.
15160
a7c9855d
TT
151612019-01-22 Tom Tromey <tom@tromey.com>
15162
15163 * corelow.c: Do not include sys/file.h.
15164
93cc1d53
TT
151652019-01-22 Tom Tromey <tom@tromey.com>
15166
15167 * tui/tui-wingeneral.h: Include gdb_curses.h.
15168
38561778
TT
151692019-01-22 Tom Tromey <tom@tromey.com>
15170
15171 * source-cache.h (class source_cache) <get_source_lines,
15172 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15173
37b3ab5b
TT
151742019-01-22 Tom Tromey <tom@tromey.com>
15175
15176 * remote-fileio.h (struct remote_target): Declare.
15177
3fabc016
TT
151782019-01-22 Tom Tromey <tom@tromey.com>
15179
15180 * python/py-arch.c: Do not include py-ref.h.
15181 * python/py-bpevent.c: Do not include py-ref.h.
15182 * python/py-cmd.c: Do not include py-ref.h.
15183 * python/py-continueevent.c: Do not include py-ref.h.
15184 * python/py-event.h: Do not include py-ref.h.
15185 * python/py-evtregistry.c: Do not include py-ref.h.
15186 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15187 * python/py-frame.c: Do not include py-ref.h.
15188 * python/py-framefilter.c: Do not include py-ref.h.
15189 * python/py-function.c: Do not include py-ref.h.
15190 * python/py-infevents.c: Do not include py-ref.h.
15191 * python/py-linetable.c: Do not include py-ref.h.
15192 * python/py-objfile.c: Do not include py-ref.h.
15193 * python/py-param.c: Do not include py-ref.h.
15194 * python/py-prettyprint.c: Do not include py-ref.h.
15195 * python/py-progspace.c: Do not include py-ref.h.
15196 * python/py-symbol.c: Do not include py-ref.h.
15197 * python/py-symtab.c: Do not include py-ref.h.
15198 * python/py-type.c: Do not include py-ref.h.
15199 * python/py-unwind.c: Do not include py-ref.h.
15200 * python/py-utils.c: Do not include py-ref.h.
15201 * python/py-value.c: Do not include py-ref.h.
15202 * python/py-varobj.c: Do not include py-ref.h.
15203 * python/py-xmethods.c: Do not include py-ref.h.
15204 * python/python.c: Do not include py-ref.h.
15205 * varobj.c: Do not include py-ref.h.
15206
6b4d7774
TT
152072019-01-22 Tom Tromey <tom@tromey.com>
15208
15209 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15210 keyword for bcache.
15211
7af7e9b5
TT
152122019-01-22 Tom Tromey <tom@tromey.com>
15213
15214 * compile/compile-cplus-types.c: Remove a comment by #include.
15215
951d1049
TT
152162019-01-22 Tom Tromey <tom@tromey.com>
15217
15218 * compile/gcc-c-plugin.h: Include compile-internal.h.
15219
d65d5705
TT
152202019-01-22 Tom Tromey <tom@tromey.com>
15221
15222 * stabsread.c (EXTERN): Do not define.
15223 (symnum, next_symbol_text_func, processing_gcc_compilation)
15224 (within_function, global_sym_chain, global_stabs)
15225 (previous_stab_code, this_object_header_files)
15226 (n_this_object_header_files)
15227 (n_allocated_this_object_header_files): Define.
15228 * stabsread.h (EXTERN): Never define. Use "extern".
15229
b6fb1ee5
PW
152302019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15231
15232 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15233 history_value.
15234
be6d4f74
TT
152352019-01-21 Tom Tromey <tom@tromey.com>
15236
15237 * ui-out.c: Fix includes.
15238 * tui/tui-source.c: Fix includes.
15239 * target.c: Fix includes.
15240 * remote.c: Fix includes.
15241 * regcache.c: Fix includes.
15242 * python/py-block.c: Fix includes.
15243 * printcmd.c: Fix includes.
15244 * or1k-tdep.c: Fix includes.
15245 * mi/mi-main.c: Fix includes.
15246 * m32r-tdep.c: Fix includes.
15247 * csky-tdep.c: Fix includes.
15248 * compile/compile-cplus-types.c: Fix includes.
15249 * cli/cli-interp.c: Fix includes.
15250
73021deb
AH
152512019-01-21 Alan Hayward <alan.hayward@arm.com>
15252
15253 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15254 for padding.
15255
7932255d
TT
152562019-01-16 Tom Tromey <tom@tromey.com>
15257
15258 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15259 earlier.
15260 (struct objfile) <msymbols_range>: Move from top level.
15261 <msymbols>: New method.
15262 (class objfile_msymbols): Remove.
15263 * symtab.c (default_collect_symbol_completion_matches_break_on):
15264 Update.
15265 * symmisc.c (dump_msymbols): Update.
15266 * stabsread.c (scan_file_globals): Update.
15267 * objc-lang.c (info_selectors_command, info_classes_command)
15268 (find_methods): Update.
15269 * minsyms.c (find_solib_trampoline_target): Update.
15270 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15271 * coffread.c (coff_symfile_read): Update.
15272 * ada-lang.c (ada_lookup_simple_minsym)
15273 (ada_collect_symbol_completion_matches): Update.
15274
604b1bfb
TT
152752019-01-16 Tom Tromey <tom@tromey.com>
15276
15277 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15278 type. Remove no-argument constructor.
15279 <iterator::operator++>: Simplify.
15280 <begin>: Update.
15281 <end>: Use minimal_symbol_count.
15282
f252c6d5
TT
152832019-01-16 Tom Tromey <tom@tromey.com>
15284
15285 * objfiles.h (struct objfile) <psymtabs>: New method.
15286 (class objfile_psymtabs): Remove.
15287 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15288 typedef.
15289 <range>: New method.
15290 (require_partial_symbols): Change return type.
15291 * psymtab.c (require_partial_symbols)
15292 (psym_expand_symtabs_matching): Update.
15293 * mdebugread.c (parse_partial_symbols): Update.
15294 * dbxread.c (dbx_end_psymtab): Update.
15295
b669c953
TT
152962019-01-15 Tom Tromey <tom@tromey.com>
15297
15298 * symtab.c (lookup_objfile_from_block)
15299 (lookup_symbol_in_objfile_symtabs)
15300 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15301 (find_line_symtab, info_sources_command)
15302 (default_collect_symbol_completion_matches_break_on)
15303 (make_source_files_completion_list): Update.
15304 * symmisc.c (print_objfile_statistics, dump_objfile)
15305 (maintenance_print_symbols, maintenance_info_symtabs)
15306 (maintenance_check_symtabs, maintenance_info_line_tables):
15307 Update.
15308 * source.c (select_source_symtab)
15309 (forget_cached_source_info_for_objfile): Update.
15310 * objfiles.h (class objfile_compunits): Remove.
15311 (struct objfile) <compunits_range>: New typedef.
15312 (compunits): New method.
15313 * objfiles.c (objfile_relocate1): Update.
15314 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15315 * maint.c (count_symtabs_and_blocks): Update.
15316 * linespec.c (iterate_over_all_matching_symtabs): Update.
15317 * cp-support.c (add_symbol_overload_list_qualified): Update.
15318 * coffread.c (coff_symtab_read): Update.
15319 * ada-lang.c (add_nonlocal_symbols)
15320 (ada_collect_symbol_completion_matches)
15321 (ada_add_global_exceptions): Update.
15322
7e955d83
TT
153232019-01-15 Tom Tromey <tom@tromey.com>
15324
15325 * progspace.h (program_space) <objfiles_safe_range>: New
15326 typedef.
15327 <objfiles_safe>: New method.
15328 * objfiles.h (class all_objfiles_safe): Remove.
15329 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15330 * jit.c (jit_inferior_exit_hook): Update.
15331
2030c079
TT
153322019-01-17 Tom Tromey <tom@tromey.com>
15333
15334 * progspace.h (program_space) <objfiles_range>: New typedef.
15335 <objfiles>: New method.
15336 <objfiles_head>: Rename from objfiles.
15337 (object_files): Update.
15338 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15339 * guile/scm-pretty-print.c
15340 (ppscm_find_pretty_printer_from_objfiles): Update.
15341 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15342 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15343 Update.
15344 * python/py-progspace.c (pspy_get_objfiles): Update.
15345 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15346 Update.
15347 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15348 (objfpy_lookup_objfile_by_build_id): Update.
15349 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15350 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15351 Update.
15352 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15353 (expand_symtab_containing_pc, lookup_objfile_from_block)
15354 (lookup_static_symbol, basic_lookup_transparent_type)
15355 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15356 (find_line_symtab, info_sources_command)
15357 (default_collect_symbol_completion_matches_break_on)
15358 (make_source_files_completion_list, find_main_name): Update.
15359 * symmisc.c (print_symbol_bcache_statistics)
15360 (print_objfile_statistics, maintenance_print_symbols)
15361 (maintenance_print_msymbols, maintenance_print_objfiles)
15362 (maintenance_info_symtabs, maintenance_check_symtabs)
15363 (maintenance_expand_symtabs, maintenance_info_line_tables):
15364 Update.
15365 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15366 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15367 (map_overlay_command, unmap_overlay_command)
15368 (simple_overlay_update, expand_symtabs_matching)
15369 (map_symbol_filenames): Update.
15370 * symfile-debug.c (set_debug_symfile): Update.
15371 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15372 Update.
15373 * source.c (select_source_symtab, forget_cached_source_info):
15374 Update.
15375 * solib.c (solib_read_symbols): Update.
15376 * solib-spu.c (append_ocl_sos): Update.
15377 * psymtab.c (maintenance_print_psymbols)
15378 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15379 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15380 * printcmd.c (info_symbol_command): Update.
15381 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15382 Update.
15383 * objfiles.h (class all_objfiles): Remove.
15384 * objfiles.c (have_partial_symbols, have_full_symbols)
15385 (have_minimal_symbols, qsort_cmp, update_section_map)
15386 (shared_objfile_contains_address_p)
15387 (default_iterate_over_objfiles_in_search_order): Update.
15388 * objc-lang.c (info_selectors_command, info_classes_command)
15389 (find_methods): Update.
15390 * minsyms.c (find_solib_trampoline_target): Update.
15391 * maint.c (maintenance_info_sections)
15392 (maintenance_translate_address, count_symtabs_and_blocks):
15393 Update.
15394 * main.c (captured_main_1): Update.
15395 * linux-thread-db.c (try_thread_db_load_from_pdir)
15396 (has_libpthread): Update.
15397 * linespec.c (iterate_over_all_matching_symtabs)
15398 (search_minsyms_for_name): Update.
15399 * jit.c (jit_find_objf_with_entry_addr): Update.
15400 * hppa-tdep.c (find_unwind_entry)
15401 (hppa_lookup_stub_minimal_symbol): Update.
15402 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15403 Update.
15404 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15405 (elf_gnu_ifunc_resolve_by_got): Update.
15406 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15407 * dwarf-index-write.c (save_gdb_index_command): Update.
15408 * cp-support.c (add_symbol_overload_list_qualified): Update.
15409 * breakpoint.c (create_overlay_event_breakpoint)
15410 (create_longjmp_master_breakpoint)
15411 (create_std_terminate_master_breakpoint)
15412 (create_exception_master_breakpoint): Update.
15413 * blockframe.c (find_pc_partial_function): Update.
15414 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15415 (ada_collect_symbol_completion_matches)
15416 (ada_add_global_exceptions): Update.
15417
776489e0
TT
154182019-01-17 Tom Tromey <tom@tromey.com>
15419
15420 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15421 declare VEC.
15422 (solib_target_parse_libraries): Change return type.
15423 (library_list_start_segment, library_list_start_section)
15424 (library_list_end_library, library_list_start_library); Update.
15425 (solib_target_free_library_list): Remove.
15426 (solib_target_parse_libraries): Remove cleanup. Change return
15427 type.
15428 (solib_target_current_sos): Update.
15429
6471e7d2
TT
154302019-01-17 Tom Tromey <tromey@bapiya>
15431
15432 * valprint.c: Replace "the the" with "the".
15433 * symtab.c: Replace "the the" with "the".
15434 * solib.c: Replace "the the" with "the".
15435 * solib-dsbt.c: Replace "the the" with "the".
15436 * linespec.c: Replace "the the" with "the".
15437 * dwarf2loc.h: Replace "the the" with "the".
15438 * amd64-windows-tdep.c: Replace "the the" with "the".
15439 * aarch64-tdep.c: Replace "the the" with "the".
15440
c24bdb02
KS
154412019-01-16 Keith Seitz <keiths@redhat.com>
15442
15443 PR gdb/23773
15444 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15445 <builder>: Rename to ..
15446 <m_builder>: ... this and make private.
15447 (dwarf2_cu::get_builder): New method. Change all users of
15448 `builder' to use this method.
15449 (dwarf2_start_symtab): Move to ...
15450 (dwarf2_cu::start_symtab): ... here. Update all callers
15451 (setup_type_unit_groups): Move to ...
15452 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15453 callers.
15454 (dwarf2_cu::reset_builder): New method.
15455 (process_full_compunit, process_full_type_unit): Use
15456 dwarf2_cu::reset_builder.
15457 (follow_die_offset): Record the ancestor CU if it is different
15458 from the followed DIE's CU.
15459 (follow_die_sig_1): Likewise.
15460
8d64371b
TT
154612019-01-15 Tom Tromey <tom@tromey.com>
15462
15463 * remote.c (class remote_state) <buf>: Now a char_vector.
15464 <buf_size>: Remove.
15465 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15466 parameter.
15467 (remote_target::getpkt_or_notif_sane_1)
15468 (remote_target::getpkt_sane)
15469 (remote_target::getpkt_or_notif_sane): Likewise.
15470 (class remote_target) <putpkt>: New overload.
15471 (remote_target::read_frame): Change type of "buf_p". Remove
15472 sizeof_p parameter.
15473 (packet_ok): New overload.
15474 (packet_check_result): New overload.
15475 Update all uses.
15476
bb277751
TT
154772019-01-14 Tom Tromey <tom@tromey.com>
15478
15479 * remote-notif.c (handle_notification, remote_notif_ack)
15480 (remote_notif_parse): Make "buf" const.
15481 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15482 const.
15483 (remote_notif_parse, remote_notif_ack, handle_notification):
15484 Likewise.
15485 * remote.c (remote_notif_stop_parse): Make "buf" const.
15486 (remote_target::remote_parse_stop_reply): Make "buf" const.
15487 (remote_notif_stop_ack): Make "buf" const.
15488
05be00a8
TT
154892019-01-14 Tom Tromey <tom@tromey.com>
15490
15491 * remote.c (remote_console_output): Make parameter const.
15492
491adeca
TT
154932019-01-14 Tom Tromey <tom@tromey.com>
15494
15495 * target-debug.h (target_debug_print_signals): Constify.
15496 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15497 * procfs.c (procfs_target::pass_signals): Update.
15498 * linux-nat.c (linux_nat_target::pass_signals): Update.
15499 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15500 * target-delegates.c: Rebuild.
15501 * remote.c (remote_target::program_signals): Update.
15502 (remote_target::pass_signals): Update.
15503 * target.c (target_pass_signals): Constify argument.
15504 (target_program_signals): Likewise.
15505 * target.h (struct target_ops) <pass_signals, program_signals>:
15506 Constify argument.
15507 (target_pass_signals, target_program_signals): Constify argument.
15508
bbd94648
TT
155092019-01-14 Tom Tromey <tom@tromey.com>
15510
15511 PR tui/28819:
15512 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15513
6f072a10
PFC
155142019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15515
15516 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15517 field.
15518 * rs6000-tdep.c: Include reggroups.h.
15519 (IS_V_ALIAS_PSEUDOREG): Define.
15520 (rs6000_register_name): Return names for the "vX" aliases.
15521 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15522 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15523 aliases. Call default_register_reggroup_p for all other
15524 pseudo-registers.
15525 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15526 New functions.
15527 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15528 Handle "vX" aliases.
15529 (v_alias_pseudo_register_collect): New function.
15530 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15531 (rs6000_gdbarch_init): Initialize "vX" aliases as
15532 pseudo-registers. Restore registration of
15533 rs6000_pseudo_register_reggroup_p with
15534 set_tdesc_pseudo_register_reggroup_p.
15535
1a782351
MF
155362019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15537
15538 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15539 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15540 set_gdbarch_num_pseudo_regs.
15541
d73cff18
PW
155422019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15543
15544 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15545 Remove arg prefixname, add do_set and do_show.
15546 Add member functions set_list and show_list.
15547 * cli/cli-style.c (class cli_style_option): Update accordingly.
15548 (style_set_list): Move to file scope.
15549 (style_show_list): Likewise.
15550 (set_style): Call help_list.
15551 (show_style): Call cmd_show_list.
15552 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15553 Update to use the new macro.
15554
60a90376
JB
155552019-10-12 Joel Brobecker <brobecker@adacore.com>
15556
15557 * ada-lang.c (_initialize_ada_language): Expand the help text
15558 for the "catch exception" command.
15559
9d7c67bf
PW
155602019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15561
15562 * symtab.c (matching_obj_sections): Initialize obj,
15563 declare it closer to its usage.
15564
7cf47dc4
TT
155652019-01-10 Tom Tromey <tom@tromey.com>
15566
15567 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15568 (basic_inf_threads_range): Remove.
15569 (inf_threads_range, inf_non_exited_threads_range)
15570 (safe_inf_threads_range): Use next_adapter.
15571
d3cb6808
KS
155722019-01-10 Keith Seitz <keiths@redhat.com>
15573
15574 PR gdb/23712
15575 PR symtab/23010
15576 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15577 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15578
63a20375
KS
155792019-01-10 Keith Seitz <keiths@redhat.com>
15580
15581 PR gdb/23712
15582 PR symtab/23010
15583 * dictionary.c (pending_to_vector): Remove.
15584 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15585 Remove _1 suffix, replacing functions of the same name. Update
15586 all callers.
15587 (dict_create_hashed, dict_create_hashed_expandable)
15588 (dict_create_linear, dict_create_linear_expandable, dict_free)
15589 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15590 Make functions static.
15591
b026f593
KS
155922019-01-10 Keith Seitz <keiths@redhat.com>
15593
15594 PR gdb/23712
15595 PR symtab/23010
15596 * dictionary.h (struct dictionary): Replace declaration with
15597 multidictionary.
15598 (dict_create_hashed, dict_create_hashed_expandable)
15599 (dict_create_linear, dict_create_linear_expandable)
15600 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15601 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15602 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15603 taking multidictionary argument.
15604 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15605 * block.h (struct block) <dict>: Change to multidictionary
15606 and rename `multidict'.
15607 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15608 symmisc.c: Update all dictionary references to multidictionary.
15609
c7748ee9
KS
156102019-01-10 Keith Seitz <keiths@redhat.com>
15611
15612 PR gdb/23712
15613 PR symtab/23010
15614 * dictionary.c: Include unordered_map.
15615 (pending_to_vector): New function.
15616 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15617 Rewrite the non-"_1" functions to take vector instead
15618 of linked list.
15619 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15620 "new" _1 versions of the same name.
15621 (multidictionary): Define.
15622 (std::hash<enum language): New definition.
15623 (collate_pending_symbols_by_language, mdict_create_hashed)
15624 (mdict_create_hashed_expandable, mdict_create_linear)
15625 (mdict_create_linear_expandable, mdict_free)
15626 (find_language_dictionary, create_new_language_dictionary)
15627 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15628 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15629 (mdict_size, mdict_empty): New functions.
15630 * dictionary.h (mdict_iterator): Define.
15631
67aa1f3c
PA
156322019-01-10 Pedro Alves <palves@redhat.com>
15633
15634 * breakpoint.c (read_uploaded_action)
15635 (create_tracepoint_from_upload): Adjust to use
15636 gdb::unique_xmalloc_ptr.
15637 * ctf.c (ctf_write_uploaded_tp):
15638 (SET_ARRAY_FIELD): Use emplace_back.
15639 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15640 * tracefile-tfile.c (tfile_write_uploaded_tp):
15641 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15642 gdb::unique_xmalloc_ptr.
15643 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15644 at_string, cond_string, cmd_strings>: Replace char pointers
15645 with gdb::unique_xmalloc_ptr.
15646
2f667667
PA
156472019-01-10 Pedro Alves <palves@redhat.com>
15648
15649 * solib-target.c (library_list_start_library): Don't xstrdup name.
15650
36cb7237
PA
156512019-01-10 Pedro Alves <palves@redhat.com>
15652
15653 * mdebugread.c (parse_partial_symbols): Use
15654 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15655
da584958
AB
156562019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15657
15658 * linux-fork.c (scoped_switch_fork_info)
15659 <~scoped_switch_fork_info>: Fix incorrect variable name.
15660
1ef8573c
AB
156612019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15662
15663 * linux-fork.c (scoped_switch_fork_info)
15664 <scoped_switch_fork_info>: Make explicit.
15665 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15666
8d7bcccb
TT
156672019-01-10 Tom Tromey <tom@tromey.com>
15668
15669 * objfiles.h (objfile::reset_psymtabs): Update.
15670 * objfiles.c (objfile::objfile): Update.
15671 * psymtab.h (psymtab_storage::obstack): Update.
15672 (psymtab_storage::m_obstack): Use gdb::optional.
15673 (class psymtab_storage): Update comment. Remove objfile
15674 parameter.
15675 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15676
b596a3c7
TT
156772019-01-10 Tom Tromey <tom@tromey.com>
15678
15679 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15680 <free_psymtabs>: Now private.
15681 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15682 (allocate_psymtab): Use new method.
15683
a9342b62
TT
156842019-01-10 Tom Tromey <tom@tromey.com>
15685
15686 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15687 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15688 * mdebugread.c (parse_partial_symbols): Use
15689 allocate_dependencies.
15690 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15691 allocate_dependencies.
15692 (process_psymtab_comp_unit_reader)
15693 (build_type_psymtab_dependencies): Likewise.
15694 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15695
5af70966
TT
156962019-01-10 Tom Tromey <tom@tromey.com>
15697
15698 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15699 PSYMBOL_SET_LANGUAGE.
15700 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15701
5923a04c
TT
157022019-01-10 Tom Tromey <tom@tromey.com>
15703
15704 * psymtab.h (psymtab_storage::obstack): New method.
15705 <m_obstack>: Rename from obstack; now private.
15706 * psymtab.c (psymtab_storage): Update.
15707 * dwarf2read.c (create_addrmap_from_index)
15708 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15709 Update.
15710
6d6a12bf
TT
157112019-01-10 Tom Tromey <tom@tromey.com>
15712
15713 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15714 * objfiles.h (objfile::reset_psymtabs): New method.
15715
d320c2b5
TT
157162019-01-10 Tom Tromey <tom@tromey.com>
15717
15718 * symmisc.c (print_symbol_bcache_statistics): Update.
15719 (print_objfile_statistics): Update.
15720 * symfile.c (reread_symbols): Update.
15721 * psymtab.h (class psymtab_storage): New.
15722 * psymtab.c (psymtab_storage): New constructor.
15723 (~psymtab_storage): New destructor.
15724 (require_partial_symbols): Update.
15725 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15726 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15727 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15728 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15729 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15730 (start_psymtab_common, end_psymtab_common)
15731 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15732 (allocate_psymtab): Update.
15733 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15734 Update.
15735 (dump_psymtab_addrmap, maintenance_print_psymbols)
15736 (maintenance_check_psymtabs): Update.
15737 (class objfile_psymtabs): Move to objfiles.h.
15738 * psympriv.h (discard_psymtab): Now inline.
15739 (psymtab_discarder::psymtab_discarder): Update.
15740 (psymtab_discarder::~psymtab_discarder): Update.
15741 (ALL_OBJFILE_PSYMTABS): Rewrite.
15742 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15743 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15744 Remove fields.
15745 <partial_symtabs>: New field.
15746 (class objfile_psymtabs): Move from psymtab.h. Update.
15747 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15748 psymbol_cache.
15749 (objfile::~objfile): Don't destroy psymbol_cache.
15750 * mdebugread.c (parse_partial_symbols): Update.
15751 * dwarf2read.c (create_addrmap_from_index)
15752 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15753 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15754 (add_partial_subprogram, dwarf2_ranges_read): Update.
15755 * dwarf-index-write.c (write_address_map)
15756 (write_one_signatured_type, recursively_write_psymbols)
15757 (class debug_names, class debug_names, write_psymtabs_to_index):
15758 Update.
15759
1d94a5a3
TT
157602019-01-10 Tom Tromey <tom@tromey.com>
15761
15762 * symtab.h (SYMBOL_SET_NAMES): Update.
15763 (symbol_set_names): Update.
15764 (MSYMBOL_SET_NAMES): Update.
15765 * symtab.c (symbol_set_names): Change argument to be an
15766 objfile_per_bfd_storage.
15767 * psymtab.c (add_psymbol_to_bcache): Update.
15768 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15769
0f14768a
TT
157702019-01-10 Tom Tromey <tom@tromey.com>
15771
15772 * symtab.c (create_demangled_names_hash): Change argument to be an
15773 objfile_per_bfd_storage.
15774 (symbol_set_names): Update.
15775
6eee24ce
TT
157762019-01-10 Tom Tromey <tom@tromey.com>
15777
15778 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15779 init_psymbol_list.
15780 * psymtab.c (init_psymbol_list): Do nothing if already called.
15781 * psympriv.h (init_psymbol_list): Add comment.
15782 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15783 init_psymbol_list.
15784 * dbxread.c (dbx_symfile_read): Unconditionally call
15785 init_psymbol_list.
15786
75aedd27
TT
157872019-01-10 Tom Tromey <tom@tromey.com>
15788
15789 * xcoffread.c (scan_xcoff_symtab): Update.
15790 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15791 "where".
15792 * mdebugread.c (parse_partial_symbols)
15793 (handle_psymbol_enumerators): Update.
15794 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15795 * dbxread.c (read_dbx_symtab): Update.
15796 * psympriv.h (psymbol_placement): New enum.
15797 (add_psymbol_to_list): Update.
15798
939652a5
TT
157992019-01-10 Tom Tromey <tom@tromey.com>
15800
15801 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15802 static_psymbols parameters.
15803 (scan_xcoff_symtab): Update.
15804 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15805 static_psymbols parameters.
15806 * psympriv.h (start_psymtab_common): Update.
15807 * mdebugread.c (parse_partial_symbols): Update.
15808 * dwarf2read.c (create_partial_symtab): Update.
15809 * dbxread.c (read_dbx_symtab): Update.
15810 (start_psymtab): Remove global_psymbols and static_psymbols
15811 parameters.
15812
baa62830
TT
158132019-01-10 Tom Tromey <tom@tromey.com>
15814
15815 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15816 * psymtab.c (allocate_psymtab): Add comment.
15817 * psympriv.h (allocate_psymtab): Add comment.
15818 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15819 initializations.
15820 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15821
0e8f53ba
TT
158222019-01-10 Tom Tromey <tom@tromey.com>
15823
15824 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15825 Don't declare.
15826 * mipsread.c: Include mdebugread.h.
15827 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15828 Declare.
15829 * elfread.c: Include mdebugread.h.
15830
b22a7c6a
TT
158312019-01-09 Tom Tromey <tom@tromey.com>
15832
15833 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15834 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15835 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15836 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15837 (psym_lookup_symbol, psym_find_last_source_symtab)
15838 (psym_forget_cached_source_info, psym_print_stats)
15839 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15840 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15841 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15842 (psym_find_compunit_symtab_by_address)
15843 (maintenance_print_psymbols, maintenance_info_psymtabs)
15844 (maintenance_check_psymtabs): Use ranged for.
15845 * psymtab.h (class objfile_psymtabs): New.
15846 (require_partial_symbols): Return objfile_psymtabs.
15847 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15848
3b9d3ac2
TT
158492019-01-09 Tom Tromey <tom@tromey.com>
15850
15851 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15852 (find_pc_mapped_section, list_overlays_command)
15853 (map_overlay_command, unmap_overlay_command)
15854 (simple_overlay_update): Use all_objfiles.
15855 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15856 * printcmd.c (info_symbol_command): Use all_objfiles.
15857 * objfiles.h (ALL_OBJSECTIONS): Remove.
15858 * maint.c (maintenance_translate_address): Use all_objfiles.
15859 * gcore.c (gcore_create_callback): Use all_objfiles.
15860 (objfile_find_memory_regions): Likewise.
15861
8b31193a
TT
158622019-01-09 Tom Tromey <tom@tromey.com>
15863
15864 * symtab.c (find_line_symtab, info_sources_command)
15865 (make_source_files_completion_list): Use objfile_compunits.
15866 * source.c (select_source_symtab): Use objfile_compunits.
15867 * objfiles.h (struct objfile): Update comment.
15868 (ALL_OBJFILES): Remove.
15869 (ALL_FILETABS): Remove.
15870 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15871 objfile_compunits.
15872
d5da8b3c
TT
158732019-01-09 Tom Tromey <tom@tromey.com>
15874
15875 * symmisc.c (print_objfile_statistics, dump_objfile)
15876 (maintenance_print_symbols): Use compunit_filetabs.
15877 * source.c (forget_cached_source_info_for_objfile): Use
15878 compunit_filetabs.
15879 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15880 (ALL_FILETABS): Use compunit_filetabs.
15881 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15882 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15883
5accd1a0
TT
158842019-01-09 Tom Tromey <tom@tromey.com>
15885
15886 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15887 (compunit_filetabs): New.
15888 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15889 compunit_filetabs.
15890 (info_sources_command, make_source_files_completion_list): Remove
15891 declaration.
15892 * symmisc.c (print_objfile_statistics, dump_objfile)
15893 (maintenance_print_symbols): Remove declaration.
15894 (maintenance_info_symtabs): Use compunit_filetabs.
15895 (maintenance_info_line_tables): Likewise.
15896 * source.c (select_source_symtab): Change local variable name.
15897 (forget_cached_source_info_for_objfile): Remove declaration.
15898 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15899 * objfiles.c (objfile_relocate1): Remove declaration.
15900 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15901 declaration.
15902 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15903 * coffread.c (coff_symtab_read): Remove declaration.
15904 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15905 compunit_filetabs.
15906
d8aeb77f
TT
159072019-01-09 Tom Tromey <tom@tromey.com>
15908
15909 * symtab.c (lookup_objfile_from_block)
15910 (find_pc_sect_compunit_symtab, search_symbols)
15911 (default_collect_symbol_completion_matches_break_on): Use
15912 objfile_compunits.
15913 * objfiles.h (ALL_COMPUNITS): Remove.
15914 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15915 * cp-support.c (add_symbol_overload_list_qualified): Use
15916 objfile_compunits.
15917 * ada-lang.c (ada_collect_symbol_completion_matches)
15918 (ada_add_global_exceptions): Use objfile_compunits.
15919
592553c4
TT
159202019-01-09 Tom Tromey <tom@tromey.com>
15921
15922 * source.c (select_source_symtab)
15923 (forget_cached_source_info_for_objfile): Remove declaration.
15924 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15925 declaration.
15926 * maint.c (count_symtabs_and_blocks): Remove declaration.
15927 * cp-support.c (add_symbol_overload_list_qualified): Remove
15928 declaration.
15929 * coffread.c (coff_symtab_read): Remove declaration.
15930 * symtab.c (lookup_symbol_in_objfile_symtabs)
15931 (basic_lookup_transparent_type_1): Use objfile_compunits.
15932 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15933 (info_sources_command, search_symbols)
15934 (default_collect_symbol_completion_matches_break_on)
15935 (make_source_files_completion_list): Remove declaration.
15936 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15937 (ada_collect_symbol_completion_matches)
15938 (ada_add_global_exceptions): Remove declaration.
15939 * linespec.c (iterate_over_all_matching_symtabs): Use
15940 objfile_compunits.
15941 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15942 (class objfile_compunits): New.
15943 (ALL_COMPUNITS): Use objfile_compunits.
15944 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15945 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15946 objfile_compunits.
15947 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15948
5325b9bf
TT
159492019-01-09 Tom Tromey <tom@tromey.com>
15950
15951 * symtab.c (search_symbols)
15952 (default_collect_symbol_completion_matches_break_on): Use
15953 objfile_msymbols.
15954 * ada-lang.c (ada_lookup_simple_minsym)
15955 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15956 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15957 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15958 objfile_msymbols.
15959 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15960 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15961 * objc-lang.c (find_methods): Use objfile_msymbols.
15962 (info_selectors_command, info_classes_command): Likewise.
15963 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15964 * objfiles.h (class objfile_msymbols): New.
15965 (ALL_OBJFILE_MSYMBOLS): Remove.
15966 (ALL_MSYMBOLS): Remove.
15967
cac85af2
TT
159682019-01-09 Tom Tromey <tom@tromey.com>
15969
15970 * common/next-iterator.h (next_adapter): Add Iterator template
15971 parameter.
15972 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15973 (class all_objfiles_safe): New.
15974 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15975 * objfiles.c (put_objfile_before): Update comment.
15976 (add_separate_debug_objfile): Likewise.
15977 (free_all_objfiles): Use all_objfiles_safe.
15978 (objfile_purge_solibs): Likewise.
15979
aed57c53
TT
159802019-01-09 Tom Tromey <tom@tromey.com>
15981
15982 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15983 (expand_symtab_containing_pc, lookup_static_symbol)
15984 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15985 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15986 all_objfiles.
15987 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15988 * breakpoint.c (create_overlay_event_breakpoint)
15989 (create_longjmp_master_breakpoint)
15990 (create_std_terminate_master_breakpoint)
15991 (create_exception_master_breakpoint): Use all_objfiles.
15992 * linux-thread-db.c (try_thread_db_load_from_pdir)
15993 (has_libpthread): Use all_objfiles.
15994 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15995 * linespec.c (iterate_over_all_matching_symtabs)
15996 (search_minsyms_for_name): Use all_objfiles.
15997 * maint.c (maintenance_info_sections): Use all_objfiles.
15998 * main.c (captured_main_1): Use all_objfiles.
15999 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16000 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16001 * guile/scm-pretty-print.c
16002 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16003 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16004 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16005 (maintenance_print_msymbols): Use all_objfiles.
16006 * source.c (select_source_symtab): Use all_objfiles.
16007 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16008 * symfile.c (remove_symbol_file_command)
16009 (expand_symtabs_matching, map_symbol_filenames): Use
16010 all_objfiles.
16011 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16012 all_objfiles.
16013 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16014 * objc-lang.c (find_methods): Use all_objfiles.
16015 * objfiles.c (have_partial_symbols, have_full_symbols)
16016 (have_minimal_symbols, qsort_cmp)
16017 (default_iterate_over_objfiles_in_search_order): Use
16018 all_objfiles.
16019 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16020 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16021 (maintenance_check_psymtabs): Use all_objfiles.
16022 (ALL_PSYMTABS): Remove.
16023 * compile/compile-object-run.c (do_module_cleanup): Use
16024 all_objfiles.
16025 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16026 * cp-support.c (add_symbol_overload_list_qualified): Use
16027 all_objfiles.
16028 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16029 Use all_objfiles.
16030 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16031 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16032 all_objfiles.
16033 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16034 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16035 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16036 Uses all_objfiles.
16037 * solib.c (solib_read_symbols): Use all_objfiles
16038
99d89cde
TT
160392019-01-09 Tom Tromey <tom@tromey.com>
16040
16041 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16042 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16043 all_objfiles.
16044 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16045 * symmisc.c (print_symbol_bcache_statistics)
16046 (print_objfile_statistics, maintenance_print_objfiles)
16047 (maintenance_info_symtabs, maintenance_check_symtabs)
16048 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16049 all_objfiles.
16050 * source.c (forget_cached_source_info): Use all_objfiles.
16051 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16052 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16053 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16054 * objfiles.c (update_section_map): Use all_objfiles.
16055 (shared_objfile_contains_address_p): Likewise.
16056 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16057 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16058
21708325
TT
160592019-01-09 Tom Tromey <tom@tromey.com>
16060
16061 * common/next-iterator.h: New file.
16062 * objfiles.h (class all_objfiles): New.
16063 (struct objfile_iterator): New.
16064
669e09f6
PW
160652019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16066
16067 * NEWS: Move the description of the changed "frame", "select-frame",
16068 and "info frame" commands to the Changed commands section.
16069
041be526
SM
160702019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16071
16072 * gdbtypes.c (check_stub_method_group): Remove handling of old
16073 mangling schemes.
16074 * linespec.c (find_methods): Likewise.
16075 * stabsread.c (read_member_functions): Likewise.
16076 * valops.c (search_struct_method): Likewise.
16077 (value_struct_elt_for_reference): Likewise.
16078 * NEWS: Mention this change.
16079
0e2a2133
AB
160802019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16081
16082 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16083 print_source_lines.
16084 * source.c (print_source_lines_base): Update line number check.
16085 (print_source_lines): New function.
16086 (source_lines_range::source_lines_range): New function.
16087 * source.h (class source_lines_range): New class.
16088 (print_source_lines): New declaration.
16089
1055a3b4
PW
160902019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16091
16092 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16093
cfeadda5
TT
160942019-01-08 Tom Tromey <tom@tromey.com>
16095 Simon Marchi <simon.marchi@ericsson.com>
16096
16097 PR gdb/24060
16098 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16099 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16100 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16101 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16102 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16103 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16104
583068ca
AB
161052019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16106
16107 * source.c (select_source_symtab): Move header comment to
16108 declaration in source.h.
16109 (forget_cached_source_info_for_objfile): Likewise.
16110 (forget_cached_source_info): Likewise.
16111 (identify_source_line): Likewise.
16112 * source.h (identify_source_line): Move declaration from symtab.h
16113 and add comment from source.c
16114 (print_source_lines): Likewise.
16115 (forget_cached_source_info_for_objfile): Likewise.
16116 (forget_cached_source_info): Likewise.
16117 (select_source_symtab): Likewise.
16118 (enum print_source_lines_flag): Move definition from symtab.h.
16119 * symtab.h (identify_source_line): Move declaration to source.h.
16120 (print_source_lines): Likewise.
16121 (forget_cached_source_info_for_objfile): Likewise.
16122 (forget_cached_source_info): Likewise.
16123 (select_source_symtab): Likewise.
16124 (enum print_source_lines_flag): Move definition to source.h.
16125 * tui/tui-hooks.c: Add 'source.h' include.
16126
ec98a4ad
AB
161272019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16128
16129 * source.c (print_source_lines_base): Handle requests to print
16130 reverse line number sequences, and guard against empty lines
16131 string.
16132
62ea19c1
AB
161332019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16134
16135 * source.c (print_source_lines_base): Fix skip of '\r' if next
16136 character is '\n'.
16137
9d30e1fd
TT
161382019-01-06 Tom Tromey <tom@tromey.com>
16139
16140 * c-exp.y (struct c_parse_state) <macro_original_text,
16141 expansion_obstack>: New member.
16142 (macro_original_text, expansion_obstack): Remove globals.
16143 (scan_macro_expansion, scanning_macro_expansion)
16144 (finished_macro_expansion): Update.
16145 (scan_macro_cleanup): Remove.
16146 (yylex, c_parse): Update.
16147
c65bac38
TT
161482019-01-06 Tom Tromey <tom@tromey.com>
16149
16150 * c-exp.y (struct c_parse_state) <strings>: New member.
16151 (operator_stoken): Update.
16152
02e12e38
TT
161532019-01-06 Tom Tromey <tom@tromey.com>
16154
16155 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16156 (union type_stack_elt) <typelist_val>: Now a pointer to
16157 std::vector.
16158 (type_stack_cleanup): Don't declare.
16159 (push_typelist): Update.
16160 * parse.c (pop_typelist): Return a std::vector.
16161 (push_typelist): Take a std::vector.
16162 (follow_types): Update. Do not free args.
16163 (type_stack_cleanup): Remove.
16164 * c-exp.y (struct c_parse_state): New.
16165 (cpstate): New global.
16166 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16167 (nonempty_typelist): Update.
16168 (func_mod): Create a new vector.
16169 (c_parse): Create a c_parse_state.
16170 (check_parameter_typelist): Do not delete params.
16171 (function_method): Update. Do not delete type_list.
16172
f097f5ad
TT
161732019-01-06 Tom Tromey <tom@tromey.com>
16174
16175 PR gdb/28155:
16176 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16177 check_typedef.
16178 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16179 (print_return_value): Likewise.
16180
d2adf9f1
TT
161812019-01-05 Tom Tromey <tom@tromey.com>
16182
16183 * contrib/cleanup_check.py: Remove.
16184 * contrib/gcc-with-excheck: Remove.
16185 * contrib/exsummary.py: Remove.
16186 * contrib/excheck.py: Remove.
16187
2eab46b1
JB
161882019-01-05 Joel Brobecker <brobecker@adacore.com>
16189
16190 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16191 NULL. Initialize tpprev to NULL instead of assigning it
16192 to NULL on the next statement.
16193 * windows-nat.c (windows_delete_thread): Remove check for
16194 main_thread_id before printing thread exit notifications.
16195 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16196 Remove thread ID check against main_thread_id.
16197 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16198 windows_delete_thread.
16199 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16200
48c5e7e2
TT
162012019-01-04 Tom Tromey <tom@tromey.com>
16202
16203 * compile/compile.c (_initialize_compile): Use upper case for
16204 metasyntactic variables.
16205 * symmisc.c (_initialize_symmisc): Use upper case for
16206 metasyntactic variables.
16207 * psymtab.c (_initialize_psymtab): Use upper case for
16208 metasyntactic variables.
16209 * demangle.c (demangle_command): Use upper case for metasyntactic
16210 variables.
16211 (_initialize_demangler): Likewise.
16212 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16213 variables.
16214
986041cd
TT
162152019-01-03 Tom Tromey <tom@tromey.com>
16216
16217 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16218
7c711119
TT
162192019-01-03 Tom Tromey <tom@tromey.com>
16220
16221 * python/py-symtab.c (salpy_str): Update.
16222 (struct salpy_sal_object) <symtab>: Now a PyObject.
16223 (salpy_dealloc): Update.
16224 (del_objfile_sal): Use gdbpy_ref.
16225
1b20edf0
TT
162262019-01-03 Tom Tromey <tom@tromey.com>
16227
16228 * python/py-type.c (convert_field): Use new_reference. Return
16229 gdbpy_ref.
16230 (make_fielditem): Return gdbpy_ref.
16231 (typy_fields): Update.
16232 (typy_getitem): Update.
16233 (field_name): Return gdbpy_ref. Use new_reference.
16234 (typy_iterator_iternext): Update.
16235
ea41325b
TT
162362019-01-03 Tom Tromey <tom@tromey.com>
16237
16238 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16239
2a3c71d6
TT
162402019-01-03 Tom Tromey <tom@tromey.com>
16241
16242 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16243 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16244 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16245 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16246 (pspy_set_type_printers): Likewise.
16247 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16248 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16249 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16250 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16251 (objfpy_set_type_printers): Likewise.
16252
5c329e6a
TT
162532019-01-03 Tom Tromey <tom@tromey.com>
16254
16255 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16256 (gdbpy_print_stack): Use gdbpy_err_fetch.
16257 * python/python-internal.h (class gdbpy_err_fetch): New class.
16258 (class gdbpy_enter) <m_error_type, m_error_value,
16259 m_error_traceback>: Remove.
16260 <m_error>: New member.
16261 (gdbpy_exception_to_string): Don't declare.
16262 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16263 * python/py-value.c (convert_value_from_python): Use
16264 gdbpy_err_fetch.
16265 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16266 gdbpy_exception_to_string.
16267 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16268 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16269 gdbpy_err_fetch.
16270
169bb27b
AB
162712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16272
16273 * linux-nat.c (delete_lwp_cleanup): Delete.
16274 (struct lwp_deleter): New struct.
16275 (lwp_info_up): New typedef.
16276 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16277 lwp_info_up.
16278
a07c8880
AB
162792019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16280
16281 * linux-fork.c (class scoped_switch_fork_info): New class.
16282 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16283
26089c49
AB
162842019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16285
16286 * valops.c (find_overload_match): Remove use of null_cleanup, and
16287 calls to do_cleanups.
16288
06d3e5b0
AB
162892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16290
16291 * compile/compile-cplus-types.c
16292 (compile_cplus_instance::decl_name): Handle changes to
16293 cp_func_name.
16294 * cp-support.c (cp_func_name): Update header comment, update
16295 return type.
16296 * cp-support.h (cp_func_name): Update return type in declaration.
16297 * valops.c (find_overload_match): Move temp_func local to top
16298 level of function and change its type. Use temp_func to hold and
16299 delete temporary string obtained from cp_func_name.
16300
66644cd3
AB
163012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16302
16303 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16304 gdb::char_vector, remove cleanup, and update uses of `msg`.
16305
592d8c0a
JW
163062019-01-03 Jim Wilson <jimw@sifive.com>
16307
16308 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16309
c55d06ec
TT
163102019-01-02 Tom Tromey <tom@tromey.com>
16311
16312 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16313 (tdesc_parse_xml): Remove cleanups.
16314 * target-descriptions.h (make_cleanup_free_target_description):
16315 Don't declare.
16316 (target_desc_deleter): New struct.
16317 (target_desc_up): New typedef.
16318 * target-descriptions.c (target_desc_deleter::operator()): Rename
16319 from free_target_description.
16320 (make_cleanup_free_target_description): Remove.
16321
3a6ae42d
TT
163222019-01-02 Tom Tromey <tom@tromey.com>
16323
16324 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16325 constructor, destructor.
16326 (linespec_parser): Remove typedef.
16327 (~linespec_parser): Rename from linespec_parser_delete.
16328 (linespec_lex_to_end, linespec_complete_label)
16329 (linespec_complete): Update.
16330 (decode_line_full): Remove cleanups.
16331 (decode_line_1): Update.
16332
61fd3e73
TT
163332019-01-02 Tom Tromey <tom@tromey.com>
16334
16335 * python/python-internal.h (inferior_to_inferior_object): Change
16336 return type.
16337 * python/py-exitedevent.c (create_exited_event_object): Update.
16338 * python/py-inferior.c (inferior_to_inferior_object): Return
16339 gdbpy_ref.
16340 (python_new_inferior, python_inferior_deleted)
16341 (thread_to_thread_object, delete_thread_object)
16342 (build_inferior_list, gdbpy_selected_inferior): Update.
16343 * python/py-infthread.c (create_thread_object): Update. Also fail
16344 if inferior_to_inferior_object fails.
16345
d20172fc
SM
163462019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16347
16348 * inferior.h (class inferior) <displaced_step_state>: New field.
16349 * infrun.h (struct displaced_step_state): Move here from
16350 infrun.c. Initialize fields, add constructor.
16351 <inf>: Remove field.
16352 <reset>: New method.
16353 * infrun.c (struct displaced_step_inferior_state): Move to
16354 infrun.h.
16355 (displaced_step_inferior_states): Remove.
16356 (get_displaced_stepping_state): Adust.
16357 (displaced_step_in_progress_any_inferior): Adjust.
16358 (displaced_step_in_progress_thread): Adjust.
16359 (displaced_step_in_progress): Adjust.
16360 (add_displaced_stepping_state): Remove.
16361 (get_displaced_step_closure_by_addr): Adjust.
16362 (remove_displaced_stepping_state): Remove.
16363 (infrun_inferior_exit): Call displaced_step_state.reset.
16364 (use_displaced_stepping): Don't check for NULL.
16365 (displaced_step_prepare_throw): Call
16366 get_displaced_stepping_state.
16367 (displaced_step_fixup): Don't check for NULL.
16368 (prepare_for_detach): Don't check for NULL.
16369
e3319240
PW
163702019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16371
16372 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16373 in case of call that did not complete.
16374
5d36dfb9
AU
163752019-01-02 Andrey Utkin <autkin@undo.io>
16376
16377 * symfile.c (find_separate_debug_file): Fix search of debug files for
16378 remote debuggee.
16379
8833fbf0
TT
163802019-01-02 Tom Tromey <tom@tromey.com>
16381
16382 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16383 indentation.
16384 * python/py-frame.c (frapy_older): Remove cast.
16385 (frapy_newer): Likewise.
16386 * python/py-breakpoint.c (local_setattro): Remove cast.
16387 * python/py-arch.c (archpy_name): Remove local variable.
16388 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16389
4ada3dfd
JB
163902019-01-02 Joel Brobecker <brobecker@adacore.com>
16391
16392 * unittests/basic_string_view/element_access/char/empty.cc:
16393 Fix year range in copyright header.
16394
113b7b81
AB
163952019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16396
16397 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16398 Delete.
16399 <operator==>: Update with for removed field.
16400 <hash>: Likewise.
16401 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16402 <isa_features>: ...this.
16403 <abi_features>: New field.
16404 (riscv_isa_flen): Update comment.
16405 (riscv_abi_xlen): New declaration.
16406 (riscv_abi_flen): New declaration.
16407 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16408 isa_features.
16409 (riscv_abi_xlen): New function.
16410 (riscv_isa_flen): Update to get answer from isa_features.
16411 (riscv_abi_flen): New function.
16412 (riscv_has_fp_abi): Update to get answer from abi_features.
16413 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16414 xlen and flen.
16415 (riscv_call_info) <xlen, flen>: Update comment.
16416 (riscv_call_arg_struct): Remove invalid assertions
16417 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16418 is removed.
16419 (riscv_gdbarch_init): Gather isa features and abi features
16420 separately, ensure both match on the gdbarch when reusing an old
16421 gdbarch. Relax an error check to allow 32-bit abi float to run on
16422 a target with 64-bit float hardware.
16423
b18ca514
PW
164242019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16425
16426 * source.c (search_command_helper): Stop reverse search
16427 when line 1 has been searched.
16428
ec70d8db
PW
164292019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16430
16431 * record-full.c (record_full_base_target::close): Rewrite
16432 record_full_core_buf_list free logic.
16433
5b38f9c1
PW
164342019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16435
16436 * break-catch-syscall.c (print_one_catch_syscall): xfree
16437 the last text.
16438
66d91b39
JB
164392019-01-01 Joel Brobecker <brobecker@adacore.com>
16440
16441 * top.c (print_gdb_version): Update Copyright year in version
16442 message.
16443
42a4f53d
JB
164442019-01-01 Joel Brobecker <brobecker@adacore.com>
16445
16446 Update copyright year range in all GDB files.
16447
7e955d83 164482019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16449
5bbd631d 16450 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16451
5bbd631d 16452For older changes see ChangeLog-2018.
c906108c
SS
16453\f
16454Local Variables:
16455mode: change-log
16456left-margin: 8
16457fill-column: 74
16458version-control: never
57da7796 16459coding: utf-8
c906108c 16460End:
5bbd631d 16461
This page took 2.983605 seconds and 4 git commands to generate.